Browse Source

add files simples client

v0.0.1
Simples IP Desenvolvimento 2 years ago
commit
acd51270e3
  1. 3
      .vscode/settings.json
  2. 0
      README.md
  3. 78
      app/Provider/Crypt.php
  4. 5
      app/helpers/functions.php
  5. 13
      composer.json
  6. 18
      composer.lock
  7. 6
      config/app.php
  8. 14
      config/display_erros.php
  9. 5
      config/includes.php
  10. 176
      index.php
  11. 1122
      public/css/styles.css
  12. BIN
      public/images/alerta.png
  13. 2
      public/images/arrow-down.svg
  14. 1
      public/images/audio-icon.svg
  15. 1
      public/images/camera-icon.svg
  16. 1
      public/images/clip.svg
  17. 363
      public/images/community_message.svg
  18. 2
      public/images/cross-circle.svg
  19. 1
      public/images/double-check-seen.svg
  20. 1
      public/images/double-check-unseen.svg
  21. 1
      public/images/double-check.svg
  22. 1
      public/images/down-arrow.svg
  23. 2
      public/images/enter.svg
  24. BIN
      public/images/favicon.ico
  25. 2
      public/images/file.svg
  26. 1
      public/images/gt-arrow.svg
  27. 1
      public/images/icons.svg
  28. BIN
      public/images/icons/csv-file.png
  29. BIN
      public/images/icons/doc-file.png
  30. BIN
      public/images/icons/notfound-file.png
  31. BIN
      public/images/icons/pdf-file.png
  32. BIN
      public/images/icons/ppt-file.png
  33. BIN
      public/images/icons/txt-file.png
  34. BIN
      public/images/icons/xls-file.png
  35. BIN
      public/images/icons/zip-file.png
  36. BIN
      public/images/loading.gif
  37. 1
      public/images/manage_chats.svg
  38. 1
      public/images/menu-icon.svg
  39. 1
      public/images/message-icon.svg
  40. 1
      public/images/message-tail-receiver.svg
  41. 1
      public/images/message-tail-sender.svg
  42. BIN
      public/images/messenger.png
  43. 1
      public/images/microphone-seen.svg
  44. 2
      public/images/microphone.svg
  45. 1
      public/images/notifications.svg
  46. 2
      public/images/paper-plane.svg
  47. 1
      public/images/pause.svg
  48. 2
      public/images/picture.svg
  49. 1
      public/images/placeholder-image.svg
  50. 1
      public/images/play-audio-icon.svg
  51. 2
      public/images/play.svg
  52. 1
      public/images/power.svg
  53. 2
      public/images/redo.svg
  54. 1
      public/images/search-icon.svg
  55. 1
      public/images/single-check.svg
  56. 1
      public/images/status.svg
  57. 70
      public/images/stop.svg
  58. BIN
      public/images/telegram.png
  59. 2
      public/images/trash.svg
  60. BIN
      public/images/user.png
  61. BIN
      public/images/wallpaper_simpleschat.png
  62. BIN
      public/images/whatsapp.png
  63. 155
      public/index.html
  64. 5
      public/js/config.js
  65. 56
      public/js/cronometro.js
  66. 2
      public/js/jquery-3.6.0.min.js
  67. 452
      public/js/main.js
  68. 263
      public/js/requests.js
  69. 588
      public/js/util.js
  70. BIN
      public/sound/notification.mp3
  71. 4
      storage/logs/display_erros.log
  72. 7
      vendor/autoload.php
  73. 479
      vendor/composer/ClassLoader.php
  74. 283
      vendor/composer/InstalledVersions.php
  75. 21
      vendor/composer/LICENSE
  76. 10
      vendor/composer/autoload_classmap.php
  77. 9
      vendor/composer/autoload_namespaces.php
  78. 10
      vendor/composer/autoload_psr4.php
  79. 55
      vendor/composer/autoload_real.php
  80. 36
      vendor/composer/autoload_static.php
  81. 5
      vendor/composer/installed.json
  82. 24
      vendor/composer/installed.php

3
.vscode/settings.json vendored

@ -0,0 +1,3 @@
{
"svn.ignoreMissingSvnWarning": true
}

78
app/Provider/Crypt.php

@ -0,0 +1,78 @@
<?php
namespace app\Provider;
/**
* Description of Cripto
*
* @author Lucas Awade
*/
class Crypt {
private $message;
private $key;
private $option;
private $tag;
private $cipher;
private $ivlen;
private $iv;
private $textcrypt;
const CONF_CIPHER_CRYPT = 'aes-256-cbc';
function __construct($cipher = null, $key = null, $option = OPENSSL_RAW_DATA, $tag = null) {
if (!$cipher) {
$this->cipher = self::CONF_CIPHER_CRYPT;
} else {
$this->cipher = $cipher;
}
$this->key = $key;
$this->option = $option;
$this->tag = $tag;
$this->openssl_crypt();
}
public function encrypt($message = null) {
$this->setMessage($message);
$encrypt = openssl_encrypt($this->message, $this->cipher, $this->key, $this->option, $this->iv);
$hashcode = hash_hmac('sha256', $encrypt, $this->key, true);
$this->textcrypt = base64_encode($this->iv . $hashcode . $encrypt);
return $this->textcrypt;
}
public function decrypt($textcrypt = null) {
$c = base64_decode($textcrypt);
$this->iv = substr($c, 0, $this->ivlen);
$hmac = substr($c, $this->ivlen, 32);
$ciphertext_raw = substr($c, $this->ivlen + 32);
$original_plaintext = openssl_decrypt($ciphertext_raw, $this->cipher, $this->key, $options = OPENSSL_RAW_DATA, $this->iv);
$calcmac = hash_hmac('sha256', $ciphertext_raw, $this->key, true);
if (hash_equals($hmac, $calcmac)) {
return $original_plaintext;
}
}
private function openssl_crypt() {
if (in_array(strtolower($this->cipher), openssl_get_cipher_methods())) {
$this->ivlen = openssl_cipher_iv_length($this->cipher);
$this->iv = openssl_random_pseudo_bytes($this->ivlen);
}
}
public function setKey($key) {
$this->key = $key;
}
public function setOption($option) {
$this->option = $option;
}
public function setTag($tag) {
$this->tag = $tag;
}
public function setMessage($message) {
$this->message = $message;
}
}

5
app/helpers/functions.php

@ -0,0 +1,5 @@
<?php
function getconfig($file){
return include __DIR__ . "/../../config/{$file}.php";
}
?>

13
composer.json

@ -0,0 +1,13 @@
{
"name": "simplesip/clientwhatsapp",
"description": "Projeto Client WhatsApp",
"authors": [{
"name": "Simples IP Desenvolvimento",
"email": "desenvolvimento@gmail.com"
}],
"autoload": {
"psr-4": {
"app\\": "app/"
}
}
}

18
composer.lock generated

@ -0,0 +1,18 @@
{
"_readme": [
"This file locks the dependencies of your project to a known state",
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "ca25f1751db799cee76630ec7297d86d",
"packages": [],
"packages-dev": [],
"aliases": [],
"minimum-stability": "stable",
"stability-flags": [],
"prefer-stable": false,
"prefer-lowest": false,
"platform": [],
"platform-dev": [],
"plugin-api-version": "2.0.0"
}

6
config/app.php

@ -0,0 +1,6 @@
<?php
return [
"PASSWORD" => '#S1mpl3S_C0nn3ct@R00t',
"FILES" => 'public'
];
?>

14
config/display_erros.php

@ -0,0 +1,14 @@
<?php
error_reporting(E_ERROR);
ini_set('display_errors', 1);
$filename = __DIR__ . '/../storage/logs/display_erros.log';
if (!file_exists($filename)) {
file_put_contents($filename, '');
exec(" chown pbx:pbx {$filename}");
}
ini_set('log_errors', 1);
ini_set('error_log', $filename);
ini_set('log_errors_max_len', 4096);

5
config/includes.php

@ -0,0 +1,5 @@
<?php
require __DIR__ . "/../vendor/autoload.php";
include __DIR__ . "/../config/display_erros.php";
include __DIR__ . "/../app/helpers/functions.php";
?>

176
index.php

@ -0,0 +1,176 @@
<?php
include "config/includes.php";
use app\Provider\Crypt;
$files = getconfig('app')['FILES'];
$crypt = new Crypt('aes-256-cbc', getconfig('app')['PASSWORD']);
$json = json_decode($crypt->decrypt(str_replace(' ', '+', $_GET['t'])), true);
if($_GET['t'] && $json && $json['expire'] < time()){
$json = json_decode($crypt->decrypt(str_replace(' ', '+', $_GET['t'])), true);
$objs = [
'obj_server' => $json['servidor'],
'my_uniqueid' => $json['matricula'],
'obj_queue' => $json['fila'],
'obj_ws' => $json['websocket'],
'session_uniqueid' => null,
'obj_notification' => null,
'obj_contact' => null,
'obj_status' => null,
'session_window' => null
];
foreach($objs as $key => $val){
$jsStartup[] = "localStorage.removeItem('{$key}')";
if($val){
$jsStartup[] = sprintf("localStorage.setItem('{$key}', '%s')", $val);
}
}
}
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="cache-control" content="max-age=0" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
<meta http-equiv="pragma" content="no-cache" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Simples IP - Simples Client</title>
<link rel="icon" href="<?= $files ?>/images/favicon.ico" />
<link rel="stylesheet" href="<?= $files ?>/css/styles.css" />
</head>
<body>
<div class="grid">
<div class="top"></div>
<div class="bottom"></div>
<!-- App -->
<div class="app">
<div class="sidebar">
<!-- Sidebar header -->
<div class="sidebar-header">
<div class="sidebar-name">
<span class="sidebar-span"><span id="nameagent" style="text-transform: uppercase"></span> - <span id="myuniqueid"></span></span>
<span class="sidebar-span" id="queueagente"></span>
<span class="sidebar-span">STATUS: <span class="status-connect" id="status_agent"></span></span>
</div>
<div class="sidebar-header-icons">
<div id="btnsPause"></div>
<img src="<?= $files ?>/images/power.svg" id="exitSystem" alt="Desconectar do Chat" title="Sair do sistema" />
</div>
</div>
<div class="chats" id="chats"></div>
</div>
<div class="main">
<div class="chat-window-header">
<div class="chat-window-header-left" id="headermediaagent">
<img class="chat-window-contact-image" src="<?= $files ?>/images/whatsapp.png" />
<div class="contact-name-and-status-container">
<span class="chat-window-contact-name"></span>
<span class="chat-window-contact-status">WhatsApp</span>
</div>
</div>
<div class="chat-window-header-right" id="headerbuttonsagent">
<div class="chat-window-header-right-commands btn-info" id="tranferagent" title="Transferir atendimento">
<img class="chat-window-menu-icon" src="<?= $files ?>/images/redo.svg" />
<span class="chat-window-menu-span"> Transferir</span>
</div>
<div class="chat-window-header-right-commands btn-danger" id="finalizaratendimento" title="Finalizar atendimento">
<img class="chat-window-menu-icon" src="<?= $files ?>/images/cross-circle.svg" />
<span class="chat-window-menu-span"> Finalizar</span>
</div>
</div>
</div>
<div class="chat-window" id="chatwindowagent">
<div class="type-window-image" id="welcometomessage">
<h1>Bem-vindo</h1>
<h2>Seu canal de atendimento por mensagens!</h2>
<img src="<?= $files ?>/images/community_message.svg" />
</div>
<div class="type-message-bar-icons-upload" id="uploadfiles">
<label for="uploadfile" class="type-message-bar-icons-upload-btn" style="cursor: pointer;" title="Anexar arquivo">
<img src="<?= $files ?>/images/file.svg" />
</label>
<input id="uploadfile" accept="*" type="file" multiple="" style="display: none;">
<label for="uploadimage" class="type-message-bar-icons-upload-btn" style="cursor: pointer;" title="Enviar uma imagem">
<img src="<?= $files ?>/images/picture.svg">
</label>
<input id="uploadimage" accept="image/*,video/mp4,video/3gpp,video/quicktime" type="file" multiple="" style="display: none;">
</div>
<div class="type-message-bar" id="typemessagebar">
<div class="type-message-bar-left">
<img src="<?= $files ?>/images/microphone.svg" id="voicerecorder" title="Enviar mensagem de audio" />
<img src="<?= $files ?>/images/clip.svg" id="imgclip" title="Anexar arquivo ou imagem" />
</div>
<div class="type-message-bar-center">
<textarea rows="1" type="text" id="fieldsendmessage" placeholder="Escreva uma mensagem" style="resize: none;"></textarea>
</div>
<div class="type-message-bar-right flex-center">
<img src="<?= $files ?>/images/paper-plane.svg" title="Enviar mensagem" />
</div>
</div>
</div>
</div>
</div>
</div>
<div id="modalselect" class="modal">
<div class="modal-content">
<div class="modal-header">
<div class="modal-header-title"></div>
<span class="close">&times;</span>
</div>
<div class="modal-body">
<div class="modal-content-body"></div>
</div>
<div class="modal-footer">
<div class="modal-footer-content flex-1" id="footer-content-left"></div>
<div class="modal-footer-content flex-right" id="footer-content-right"></div>
</div>
</div>
</div>
<script>
let modal = document.getElementById("modalselect");
let span = document.getElementsByClassName("close")[0];
span.onclick = function() {
modal.style.display = "none";
}
window.onclick = function(event) {
if (event.target == modal) {
modal.style.display = "none";
}
}
</script>
<script src="<?= $files ?>/js/jquery-3.6.0.min.js"></script>
<script src="<?= $files ?>/js/config.js"></script>
<script src="<?= $files ?>/js/cronometro.js"></script>
<script src="<?= $files ?>/js/requests.js"></script>
<script src="<?= $files ?>/js/util.js"></script>
<script src="<?= $files ?>/js/main.js"></script>
<?php
foreach ($jsStartup as $jquery) {
echo "<script type='text/javascript'>{$jquery}</script>";
}
?>
</body>
</html>

1122
public/css/styles.css

File diff suppressed because it is too large Load Diff

BIN
public/images/alerta.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

2
public/images/arrow-down.svg

@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" id="Bold" viewBox="0 0 24 24" width="24" height="24"><path fill="#919191" d="M18.061,12.354a1.5,1.5,0,0,0-2.122,0L13.5,14.793V6a1.5,1.5,0,0,0-3,0v8.793L8.061,12.354a1.5,1.5,0,0,0-2.122,2.121l3.586,3.586a3.5,3.5,0,0,0,4.95,0l3.586-3.586A1.5,1.5,0,0,0,18.061,12.354Z"/></svg>

After

Width:  |  Height:  |  Size: 353 B

1
public/images/audio-icon.svg

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path fill="#919191" d="M11.999 14.942c2.001 0 3.531-1.53 3.531-3.531V4.35c0-2.001-1.53-3.531-3.531-3.531S8.469 2.35 8.469 4.35v7.061c0 2.001 1.53 3.531 3.53 3.531zm6.238-3.53c0 3.531-2.942 6.002-6.237 6.002s-6.237-2.471-6.237-6.002H3.761c0 4.001 3.178 7.297 7.061 7.885v3.884h2.354v-3.884c3.884-.588 7.061-3.884 7.061-7.885h-2z"></path></svg>

After

Width:  |  Height:  |  Size: 426 B

1
public/images/camera-icon.svg

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 20" width="16" height="20"><path fill="#919191" d="M13.822 4.668H7.14l-1.068-1.09a1.068 1.068 0 0 0-.663-.278H3.531c-.214 0-.51.128-.656.285L1.276 5.296c-.146.157-.266.46-.266.675v1.06l-.001.003v6.983c0 .646.524 1.17 1.17 1.17h11.643a1.17 1.17 0 0 0 1.17-1.17v-8.18a1.17 1.17 0 0 0-1.17-1.169zm-5.982 8.63a3.395 3.395 0 1 1 0-6.79 3.395 3.395 0 0 1 0 6.79zm0-5.787a2.392 2.392 0 1 0 0 4.784 2.392 2.392 0 0 0 0-4.784z"></path></svg>

After

Width:  |  Height:  |  Size: 488 B

1
public/images/clip.svg

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" id="Outline" viewBox="0 0 24 24" width="24" height="24"><path fill="#919191" d="M22.95,9.6a1,1,0,0,0-1.414,0L10.644,20.539a5,5,0,1,1-7.072-7.071L14.121,2.876a3,3,0,0,1,4.243,4.242L7.815,17.71a1.022,1.022,0,0,1-1.414,0,1,1,0,0,1,0-1.414l9.392-9.435a1,1,0,0,0-1.414-1.414L4.987,14.882a3,3,0,0,0,0,4.243,3.073,3.073,0,0,0,4.243,0L19.778,8.532a5,5,0,0,0-7.071-7.07L2.158,12.054a7,7,0,0,0,9.9,9.9L22.95,11.018A1,1,0,0,0,22.95,9.6Z"/></svg>

After

Width:  |  Height:  |  Size: 474 B

363
public/images/community_message.svg

@ -0,0 +1,363 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
data-name="Layer 1"
width="809.34183"
height="629.87561"
viewBox="0 0 809.34183 629.87561"
version="1.1"
id="svg1106"
sodipodi:docname="community_message.svg"
inkscape:version="0.92.4 (5da689c313, 2019-01-14)">
<metadata
id="metadata1112">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs1110" />
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1920"
inkscape:window-height="1017"
id="namedview1108"
showgrid="false"
inkscape:zoom="1.3462976"
inkscape:cx="404.67093"
inkscape:cy="344.64892"
inkscape:window-x="1912"
inkscape:window-y="-8"
inkscape:window-maximized="1"
inkscape:current-layer="svg1106" />
<path
d="M363.34812,549.37208C326.75641,513.35019,311.30181,475.77031,319.83,443.556c10.94436-41.34026,59.56474-69.92355,133.39432-78.42081l.27268,2.37135c-72.8018,8.37841-120.68047,36.32021-131.35973,76.66007-8.29975,31.35084,6.93053,68.10978,42.88542,103.50533Z"
transform="translate(-195.32909 -135.0622)"
fill="#f0f0f0"
id="path970" />
<path
d="M716.39646,677.23887c-45.66871,0-95.2959-6.78662-144.58981-19.83666-60.95842-16.138-116.85076-40.49659-161.63444-70.44326l1.3261-1.98332c44.56809,29.8016,100.21281,54.04886,160.919,70.11932,54.85932,14.52412,110.13,21.25364,159.81659,19.47775l.08623,2.38417Q724.44916,677.24,716.39646,677.23887Z"
transform="translate(-195.32909 -135.0622)"
fill="#f0f0f0"
id="path972" />
<path
d="M821.16612,662.23116l-.76443-2.26066c40.84443-13.8098,66.391-36.05568,73.87795-64.33483,9.51688-35.94965-11.15878-77.66687-58.21884-117.4672C788.76069,438.166,720.553,404.974,643.99959,384.7079l.61061-2.30727c76.88788,20.35521,145.42765,53.71909,192.99111,93.94591,47.80351,40.42842,68.75185,83.00971,58.98559,119.89973C888.88553,625.33647,862.80527,648.15334,821.16612,662.23116Z"
transform="translate(-195.32909 -135.0622)"
fill="#f0f0f0"
id="path974" />
<path
d="M446.11894,678.23635C356.38263,638.43719,287.234,586.8028,251.412,532.84367l1.988-1.32027C288.97435,585.10906,357.76,636.43756,447.08613,676.05494Z"
transform="translate(-195.32909 -135.0622)"
fill="#f0f0f0"
id="path976" />
<path
d="M761.62469,747.18514q-13.8838,0-28.24187-.61993l.10255-2.38418c71.43317,3.09267,134.46-5.45587,182.27864-24.72619l.8926,2.214C874.94289,738.477,821.77556,747.18514,761.62469,747.18514Z"
transform="translate(-195.32909 -135.0622)"
fill="#f0f0f0"
id="path978" />
<path
d="M709.55856,367.27523c-14.83176-4.829-30.08768-9.3252-45.34359-13.36408-87.792-23.24162-174.09251-31.49359-249.575-23.85923l-.24-2.37485c75.764-7.65942,162.35983.61236,250.42571,23.92681,15.299,4.05053,30.59806,8.55961,45.47177,13.40253Z"
transform="translate(-195.32909 -135.0622)"
fill="#f0f0f0"
id="path980" />
<path
d="M307.26526,552.95184c-36.59172-36.0219-52.04632-73.60177-43.51818-105.8161,10.94437-41.34025,59.56474-69.92354,133.39433-78.4208l.27267,2.37135c-72.8018,8.37841-120.68047,36.32021-131.35973,76.66006-8.29975,31.35085,6.93054,68.10978,42.88542,103.50533Z"
transform="translate(-195.32909 -135.0622)"
fill="#f0f0f0"
id="path982" />
<path
d="M660.31359,680.81863c-45.66871,0-95.29589-6.78663-144.58981-19.83666-60.95842-16.138-116.85076-40.49659-161.63443-70.44326l1.32609-1.98332c44.5681,29.8016,100.21282,54.04886,160.919,70.11931,54.85932,14.52412,110.13,21.25365,159.8166,19.47775l.08623,2.38418Q668.3663,680.81979,660.31359,680.81863Z"
transform="translate(-195.32909 -135.0622)"
fill="#f0f0f0"
id="path984" />
<path
d="M765.08325,665.81091l-.76442-2.26065c40.84442-13.8098,66.391-36.05569,73.87794-64.33484,9.51689-35.94964-11.15878-77.66687-58.21884-117.4672-47.3001-40.0025-115.50777-73.1945-192.06121-93.46056l.61061-2.30727C665.41521,406.3356,733.955,439.69947,781.51844,479.9263,829.322,520.35472,850.27029,562.936,840.504,599.826,832.80266,628.91622,806.7224,651.7331,765.08325,665.81091Z"
transform="translate(-195.32909 -135.0622)"
fill="#f0f0f0"
id="path986" />
<path
d="M390.03608,681.81611c-89.73632-39.79916-158.885-91.43355-194.707-145.39269l1.988-1.32026c35.57443,53.58566,104.36007,104.91416,193.68621,144.53154Z"
transform="translate(-195.32909 -135.0622)"
fill="#f0f0f0"
id="path988" />
<path
d="M705.54182,750.7649q-13.88379,0-28.24186-.61994l.10254-2.38417c71.43318,3.09267,134.46-5.45587,182.27864-24.7262l.89261,2.21405C818.86,742.05672,765.6927,750.7649,705.54182,750.7649Z"
transform="translate(-195.32909 -135.0622)"
fill="#f0f0f0"
id="path990" />
<path
d="M653.47569,370.855c-14.83175-4.82894-30.08767-9.32519-45.34359-13.36407-87.792-23.24163-174.09251-31.4936-249.57505-23.85923l-.24-2.37485c75.764-7.65942,162.35983.61236,250.42571,23.92681,15.299,4.05053,30.59807,8.55961,45.47177,13.40253Z"
transform="translate(-195.32909 -135.0622)"
fill="#f0f0f0"
id="path992" />
<path
d="M236.00582,489.03092c17.14976-19.22826,44.50649-30.9473,69.29785-23.93208a118.70968,118.70968,0,0,0-46.32362,67.05768c-2.67852,10.46848-4.56766,22.39086-13.2738,28.79149-5.41709,3.98274-12.59491,4.93415-19.25684,4.02714-6.66224-.90723-12.96156-3.498-19.17587-6.06531l-1.6722.14488C210.40907,533.74217,218.85606,508.25918,236.00582,489.03092Z"
transform="translate(-195.32909 -135.0622)"
fill="#f2f2f2"
id="path994" />
<path
d="M305.22794,465.63414a101.46482,101.46482,0,0,0-53.2125,32.64337,43.694,43.694,0,0,0-7.36793,11.53847,25.06052,25.06052,0,0,0-1.47925,13.10607c.55678,4.13632,1.60531,8.30284,1.14692,12.50247a15.34469,15.34469,0,0,1-6.50386,10.73231c-4.35348,3.179-9.58959,4.60415-14.7585,5.81987-5.7391,1.34983-11.7216,2.66095-16.39988,6.475-.56684.46212-1.25076-.44444-.68477-.90587,8.1394-6.63578,19.45136-5.7838,28.45684-10.60368,4.20212-2.24905,7.75192-5.77808,8.615-10.6206.75471-4.23457-.32287-8.53205-.92282-12.71529a26.74161,26.74161,0,0,1,.96892-12.86881,40.3945,40.3945,0,0,1,6.89713-11.77917,98.43912,98.43912,0,0,1,22.91947-20.52511,103.26408,103.26408,0,0,1,32.19117-13.92683c.70851-.17132.838.95761.13408,1.12781Z"
transform="translate(-195.32909 -135.0622)"
fill="#fff"
id="path996" />
<path
d="M256.1732,492.79743a15.223,15.223,0,0,1-.469-19.70657c.46161-.56633,1.36335.12438.90112.69147a14.09612,14.09612,0,0,0,.47371,18.33032c.48879.54315-.41987,1.22481-.90586.68478Z"
transform="translate(-195.32909 -135.0622)"
fill="#fff"
id="path998" />
<path
d="M242.60972,520.862a29.341,29.341,0,0,0,20.38536-6.45483c.56846-.4601,1.25255.44632.68478.90586a30.51908,30.51908,0,0,1-21.22647,6.67372c-.73038-.05063-.57008-1.17511.15633-1.12475Z"
transform="translate(-195.32909 -135.0622)"
fill="#fff"
id="path1000" />
<path
d="M283.01569,473.47307a8.61692,8.61692,0,0,0,6.954,4.30074c.73066.04134.56957,1.16582-.15633,1.12475a9.656,9.656,0,0,1-7.70353-4.74072.58687.58687,0,0,1,.11055-.79532.57066.57066,0,0,1,.79532.11055Z"
transform="translate(-195.32909 -135.0622)"
fill="#fff"
id="path1002" />
<path
d="M340.49545,544.9208c-.457-.01284-.91394-.02568-1.37675-.03089a113.48,113.48,0,0,0-18.37688,1.07221c-.47163.05859-.9487.12507-1.41766.19708a119.63375,119.63375,0,0,0-41.593,14.49229,116.1798,116.1798,0,0,0-14.59508,9.929c-6.361,5.07568-12.8542,11.08514-20.30131,13.68643a19.92976,19.92976,0,0,1-2.367.69439l-34.56-23.87781c-.05131-.09368-.10842-.17978-.16012-.27373l-1.42346-.89027c.22432-.20613.46141-.4151.68573-.62122.12963-.12012.267-.23491.39658-.355.08886-.07839.17814-.15656.25384-.23238.02948-.0262.05934-.05214.0834-.07049.07571-.07582.15407-.13821.22432-.20613q1.98306-1.7576,3.99773-3.49341c.00545-.00789.00545-.00789.01861-.01047,10.25634-8.7913,21.33673-16.80359,33.281-22.87937.35942-.18268.72391-.37352,1.09912-.54529a110.86072,110.86072,0,0,1,16.77837-6.7664,98.008,98.008,0,0,1,9.61356-2.4324,81.49862,81.49862,0,0,1,25.46291-.97585c16.91705,2.01955,32.99991,9.427,43.48488,22.57717C339.97222,544.24483,340.23292,544.57632,340.49545,544.9208Z"
transform="translate(-195.32909 -135.0622)"
fill="#f2f2f2"
id="path1004" />
<path
d="M340.1147,545.30576a101.4649,101.4649,0,0,0-62.14077-5.9737,43.69454,43.69454,0,0,0-12.82983,4.77682,25.06061,25.06061,0,0,0-9.07186,9.57386c-2.04579,3.63784-3.71713,7.59586-6.6116,10.673a15.34465,15.34465,0,0,1-11.65456,4.65337c-5.39-.08284-10.42876-2.09744-15.2878-4.2388-5.395-2.37757-10.96111-4.93259-16.99277-4.70394-.73082.02771-.73108-1.1079-.00136-1.13556,10.49405-.39782,19.01307,7.093,29.10534,8.66653,4.70924.73423,9.66828.05372,13.27292-3.29314,3.15209-2.92668,4.87909-7.00675,6.91866-10.708a26.74157,26.74157,0,0,1,8.52154-9.69167,40.39458,40.39458,0,0,1,12.59885-5.25246,98.439,98.439,0,0,1,30.65744-2.589,103.264,103.264,0,0,1,34.08777,8.26152c.66884.28978.09251,1.2691-.572.98121Z"
transform="translate(-195.32909 -135.0622)"
fill="#fff"
id="path1006" />
<path
d="M284.59306,537.45978a15.223,15.223,0,0,1,11.49027-16.01694c.70954-.17426,1.01367.92015.30319,1.09464a14.09613,14.09613,0,0,0-10.6579,14.92094c.06327.728-1.07266.72516-1.13556.00136Z"
transform="translate(-195.32909 -135.0622)"
fill="#fff"
id="path1008" />
<path
d="M256.8666,551.70159a29.341,29.341,0,0,0,20.16282,7.11958c.73089-.02512.73137,1.11048.00136,1.13556a30.519,30.519,0,0,1-20.96618-7.45121c-.55269-.48016.25232-1.28148.802-.80393Z"
transform="translate(-195.32909 -135.0622)"
fill="#fff"
id="path1010" />
<path
d="M317.65988,538.1914a8.61693,8.61693,0,0,0,2.963,7.62068c.5585.47292-.24714,1.27377-.802.80393a9.656,9.656,0,0,1-3.2966-8.42325.58686.58686,0,0,1,.5671-.56846.57065.57065,0,0,1,.56846.5671Z"
transform="translate(-195.32909 -135.0622)"
fill="#fff"
id="path1012" />
<path
d="M907.994,646.65488c-9.68947-23.87372-31.516-44.10561-57.223-45.83088a118.70969,118.70969,0,0,1,21.09071,78.72606c-.99576,10.75975-3.22363,22.62349,2.82479,31.57791,3.76336,5.57173,10.20385,8.88026,16.78308,10.26509,6.57959,1.38473,13.38321,1.06186,20.09888.73254l1.52623.69848C917.07422,697.36818,917.68346,670.52859,907.994,646.65488Z"
transform="translate(-195.32909 -135.0622)"
fill="#f2f2f2"
id="path1014" />
<path
d="M850.66244,601.35361a101.46487,101.46487,0,0,1,39.14549,48.62911,43.6942,43.6942,0,0,1,3.06122,13.3436,25.06057,25.06057,0,0,1-3.01175,12.84082c-1.91461,3.70856-4.30251,7.28029-5.28229,11.38968a15.34469,15.34469,0,0,0,2.51838,12.29392c3.03176,4.45727,7.48427,7.55936,11.94389,10.44163,4.95155,3.20022,10.14536,6.44579,13.26959,11.61032.37854.62576,1.32737.0018.9494-.623-5.43562-8.98541-16.37587-11.985-23.2375-19.55118-3.20176-3.53055-5.35895-8.04737-4.54424-12.89826.71244-4.24188,3.17171-7.92719,5.14275-11.66543A26.74158,26.74158,0,0,0,894.03,664.719a40.39429,40.39429,0,0,0-2.53691-13.41205,98.439,98.439,0,0,0-14.68766-27.03433,103.2639,103.2639,0,0,0-25.63769-23.93611c-.60971-.39948-1.11106.62026-.50533,1.01713Z"
transform="translate(-195.32909 -135.0622)"
fill="#fff"
id="path1016" />
<path
d="M887.7339,643.424a15.223,15.223,0,0,0,7.06506-18.40254c-.24441-.68854-1.32584-.34108-1.0811.34837a14.09613,14.09613,0,0,1-6.607,17.10477c-.64291.34726-.01621,1.29467.623.9494Z"
transform="translate(-195.32909 -135.0622)"
fill="#fff"
id="path1018" />
<path
d="M891.07584,674.41461a29.341,29.341,0,0,1-17.03-12.93084c-.38075-.6244-1.32969-.00063-.9494.623a30.51906,30.51906,0,0,0,17.74861,13.4197c.70491.1978.93187-.91514.23079-1.11187Z"
transform="translate(-195.32909 -135.0622)"
fill="#fff"
id="path1020" />
<path
d="M868.94785,616.20207a8.61693,8.61693,0,0,1-7.99493,1.7133c-.702-.20663-.92827.90658-.23079,1.11187a9.656,9.656,0,0,0,8.84874-1.87578.58685.58685,0,0,0,.16319-.7862.57065.57065,0,0,0-.78621-.16319Z"
transform="translate(-195.32909 -135.0622)"
fill="#fff"
id="path1022" />
<path
d="M790.7983,664.17446c.43471.14149.86941.283,1.30705.43363a113.47979,113.47979,0,0,1,16.94746,7.18631c.4245.21369.85148.43665,1.269.66209a119.63349,119.63349,0,0,1,34.30249,27.62862,116.1803,116.1803,0,0,1,10.40889,14.25679c4.28507,6.91836,8.38071,14.76057,14.5203,19.71352a19.933,19.933,0,0,0,1.99594,1.44955l40.57483-10.87314c.07981-.071.16254-.13288.2428-.204l1.63988-.36005c-.142-.26954-.29506-.546-.437-.81556-.08172-.15669-.17247-.311-.25419-.46766-.05734-.10369-.11515-.20732-.161-.30417-.019-.03459-.03836-.06905-.05485-.09443-.04582-.09685-.09866-.182-.142-.26953q-1.277-2.32185-2.591-4.63382c-.00249-.00927-.00249-.00927-.014-.01611-6.70494-11.727-14.44781-22.99734-23.65514-32.73414-.27711-.29285-.55625-.59509-.8519-.883a110.86056,110.86056,0,0,0-13.52812-12.012,98.00839,98.00839,0,0,0-8.23678-5.522,81.499,81.499,0,0,0-23.65365-9.47717c-16.6117-3.78376-34.24859-2.21269-48.54339,6.6485C791.5183,663.71366,791.16135,663.93825,790.7983,664.17446Z"
transform="translate(-195.32909 -135.0622)"
fill="#f2f2f2"
id="path1024" />
<path
d="M791.02753,664.665a101.46484,101.46484,0,0,1,60.53356,15.25934,43.69414,43.69414,0,0,1,10.478,8.811,25.06059,25.06059,0,0,1,5.32635,12.066c.7041,4.1138.94792,8.4033,2.63976,12.27431a15.34468,15.34468,0,0,0,9.41257,8.29977c5.10427,1.73356,10.527,1.52968,15.82311,1.146,5.88029-.426,11.98132-.96161,17.58524,1.281.679.27172,1.06091-.79774.38294-1.069-9.74986-3.90172-20.291.2901-30.325-1.61994-4.68206-.89126-9.12389-3.19892-11.394-7.56259-1.98507-3.81585-2.24029-8.239-2.9172-12.41048a26.74153,26.74153,0,0,0-4.76845-11.992,40.394,40.394,0,0,0-10.10057-9.18138,98.43872,98.43872,0,0,0-28.0038-12.74241,103.264,103.264,0,0,0-34.88145-3.676c-.72734.04813-.51368,1.16418.20891,1.11637Z"
transform="translate(-195.32909 -135.0622)"
fill="#fff"
id="path1026" />
<path
d="M845.9563,675.93628a15.223,15.223,0,0,0-5.43854-18.94706c-.6097-.4026-1.264.52592-.65346.92906a14.09612,14.09612,0,0,1,5.023,17.635c-.30425.66435.76654,1.04349,1.06905.383Z"
transform="translate(-195.32909 -135.0622)"
fill="#fff"
id="path1028" />
<path
d="M867.28313,698.66845a29.341,29.341,0,0,1-21.38276-.07132c-.67993-.26931-1.06206.80006-.38295,1.06905a30.51914,30.51914,0,0,0,22.25086.029c.68192-.26648.19306-1.29174-.48515-1.02672Z"
transform="translate(-195.32909 -135.0622)"
fill="#fff"
id="path1030" />
<path
d="M814.5672,665.51157a8.617,8.617,0,0,1-5.352,6.18148c-.685.2577-.19535,1.28273.48515,1.02671a9.656,9.656,0,0,0,5.93587-6.82525.58684.58684,0,0,0-.34305-.726.57064.57064,0,0,0-.726.34305Z"
transform="translate(-195.32909 -135.0622)"
fill="#fff"
id="path1032" />
<circle
cx="524.6825"
cy="583.33993"
r="9.54602"
fill="#fd6584"
id="circle1034" />
<circle
cx="558.49624"
cy="420.74992"
r="9.54602"
fill="#e6e6e6"
id="circle1036" />
<circle
cx="380.86745"
cy="155.96167"
r="9.54602"
fill="#e6e6e6"
id="circle1038" />
<path
d="M376.15456,657.20782c0,2.43.08,4.86.25,7.27.18,2.88.49,5.74.91,8.58a107.2491,107.2491,0,0,0,8.02,27.73q.29993.66.6,1.32l.3.66c.1.22.21.44.31.65.14.29.27.57.41.85.17.35.34.7.52,1.05.02.04.04.09.07.14.15.3.29.59.45.89a1.7462,1.7462,0,0,0,.1.19c.17.34.35.69.53,1.03.2.36005.39.73.59,1.09.48.89.98,1.77,1.49,2.65.15.26.3.52.46.78.14.24.28.48.43.72.1.16.2.33.3.49.16.27.32.53.49.8.37.59.75,1.18,1.12,1.77h.01c.17.27.35.54.53.8v.01c.53.8,1.08,1.6,1.63,2.38995a.0098.0098,0,0,1,.01.01c.44.64.9,1.26,1.35,1.88v.01c.3.39.59.79.89,1.18.24.32.49.65.74.97.05.06994.11.12994.16.2v.01c.07.09.14.17.21.26q1.59,2.04,3.28,3.99l.18.21c.06.07.13.14.19.22.1.11005.19.22.29.33.09.11.19.22.29.33a108.617,108.617,0,0,0,19.83,17.49c.97.67,1.96,1.32,2.95,1.95.25.16.5.32.75.47.07.05.15.1.22.15.14.08.27.16.41.25.13.08.26.16.4.24.53.33,1.07.65,1.61.97.13.08.27.16.41.24006.13.06994.27.15.41.23,0,.01,0,.01.01.01h.01v.01h.01q1.00506.58492,2.04,1.13995c.37.2.75.41,1.13.6.86.47,1.73.92,2.6,1.35.31.15.63.3.94.46.26.12.52.25.78.37.08.04.15.07.22.11.22.1.43.2.65.3.24.11005.48.22.71.33.27.12.53.24.8.35,1,.45,2.01.88,3.02,1.29a105.87419,105.87419,0,0,0,11.08,3.84c.17.05.35.1.53.15q2.41508.675,4.86005,1.23,4.275.99006,8.63,1.62h.02c.35.05.69.1,1.04.15.03,0,.06.01.1.01,0,.01,0,.01.01,0,.38.05.77.1,1.15.15a.24843.24843,0,0,0,.08.01c.36.05.73.09,1.09.13q.58494.06,1.17.12.45.045.9.09a.19454.19454,0,0,0,.08.01c.27.02.54.05.81.07h.04c.23.02.47.04.7.06006,2.79.22,5.59.31994,8.43.31994,3.07,0,6.12-.12,9.13-.38h.03c.65-.06,1.29-.12,1.93-.18.17-.02.33-.03.5-.05.03,0,.07-.01.1-.01.05-.01.1-.01.16-.02a.24843.24843,0,0,0,.08-.01c.22-.02.44-.05.67-.07l.75-.09c.25-.03.5-.07.75-.1.06-.01.11-.01.17-.02.18-.02.36-.05.54-.07995.09-.01.18-.02.26-.03.18-.03.35-.05.53-.08h.01a105.706,105.706,0,0,0,16.2-3.65c.28-.09.56-.17005.84-.26.01,0,.02-.01.03-.01.08-.03.17-.05.25-.08.75-.24,1.49-.49,2.23-.75,1.02-.34,2.03-.71,3.04-1.09.27-.11.54-.21.81-.32.55-.21,1.09-.43,1.63-.65.92-.37,1.84-.76,2.75-1.16.85-.38,1.69-.76,2.53-1.16.02-.00994.05-.00994.07-.03.19-.09.38-.18.56-.27h.01a107.18912,107.18912,0,0,0,13.29-7.59q2.04-1.365,4.02-2.82c1.06-.79,2.1-1.59,3.14-2.41a108.28427,108.28427,0,0,0,14.19-13.56v-.01c.31-.34.6-.69.9-1.04.05-.05.09-.1.13-.14.19-.23.37-.45.56-.67v-.01c.25-.29.5-.59.74-.89.06-.06994.11-.12994.16-.19v-.01c.2-.24.38995-.48.59-.73.1-.12.19-.24.29-.36v-.01c.59-.74,1.16-1.48,1.73-2.24.15-.2.3-.41.46-.62.72-.97,1.42-1.96,2.1-2.95v-.01c.26-.37.51-.75.77-1.12q.375-.57.75-1.13995c.25-.4.51-.79.76-1.19l.03-.06c.25-.38.5-.78.74-1.17.19-.32.38-.63.57-.94.12-.21.25-.42.37-.63995a2.3919,2.3919,0,0,0,.13-.21q.42-.735.84-1.47c.33-.56994.65-1.15.97-1.73.12-.24.25-.48.38-.72.05-.08.09-.16.13-.24.15-.28.3-.56994.44-.86.15-.28.3-.57.45-.86.13995-.28.29-.57.43-.86.11-.22.21-.44.32-.66a.2175.2175,0,0,1,.03-.05c.05-.11.1-.21.14-.31a.21619.21619,0,0,0,.03-.05c.11-.22.21-.45.32-.67.14-.29.27-.59.41-.88.09-.2.19-.41.28-.62.13-.29.27-.58.39-.88.14-.30005.27-.6.4-.91a2.29962,2.29962,0,0,0,.1-.23c.07-.14.12-.28.18-.42.16-.37.32-.75.47-1.12.18-.42.35-.85.51-1.27.16-.39.31-.79.46-1.19l.06-.14a108.31693,108.31693,0,0,0,5.28-18.93v-.01a109.43156,109.43156,0,0,0,1.43-11.14c.01-.21.03-.41.04-.61.18-2.53.26-5.07.26-7.62,0-1.13-.02-2.25-.05-3.37a107.22221,107.22221,0,0,0-23.78-64.2c-.32-.4-.64-.8-.97-1.2-.33-.4-.67-.79-1-1.18a107.74949,107.74949,0,0,0-173.04,12.43c-.49.78-.98,1.57-1.45,2.36005-.48.8-.94,1.6-1.4,2.41A107.27619,107.27619,0,0,0,376.15456,657.20782Z"
transform="translate(-195.32909 -135.0622)"
fill="#f2f2f2"
id="path1040" />
<path
d="M479.61245,586.74147a254.162,254.162,0,0,0,54.14823,7.81528,67.79984,67.79984,0,0,0,8.29619-.05641c6.069-.51045,11.26756-2.41793,17.05716-3.46033,2.78331-.4997,5.88364-.86509,8.68575-1.40509q-.97121-1.20493-1.97732-2.38032c-6.04216.51046-12.17832,2.18151-18.293,2.95794-10.39442,1.3218-22.04079-.15314-29.92056-3.79078-3.823-1.76509-6.75141-3.96809-10.561-5.74124a4.9219,4.9219,0,0,0-1.65762-.50777,5.76807,5.76807,0,0,0-3.1272.81136c-6.39139,3.22658-15.67088,5.84869-24.28409,4.406C477.3369,585.8925,478.55662,586.46474,479.61245,586.74147Z"
transform="translate(-195.32909 -135.0622)"
fill="#fff"
id="path1042" />
<path
d="M441.49774,598.09637c-.07866-.01437-.15753-.02558-.23624-.03921a6.42127,6.42127,0,0,0,.93083-.7013Z"
transform="translate(-195.32909 -135.0622)"
fill="#fff"
id="path1044" />
<path
d="M389.93673,604.46221q5.396.4312,10.84845.6421a68.3417,68.3417,0,0,0,8.2962-.05641c6.069-.51315,11.26756-2.41793,17.05716-3.46033,5.306-.95375,11.75383-1.41315,15.12283-3.53018-8.70725-1.50718-17.72881,1.56091-26.70741,2.70271a63.77318,63.77318,0,0,1-21.76406-1.07464Q391.29884,602.03086,389.93673,604.46221Z"
transform="translate(-195.32909 -135.0622)"
fill="#fff"
id="path1046" />
<path
d="M433.4546,752.41785c.86.47,1.73.92,2.6,1.35.31.15.63.3.94.46.26.12.52.25.78.37.08.04.15.07.22.11.22.1.43.2.65.3.24.11005.48.22.71.33.27.12.53.24.8.35,1,.45,2.01.88,3.02,1.29a105.87419,105.87419,0,0,0,11.08,3.84c.17.05.35.1.53.15q2.41508.675,4.86005,1.23,4.275.99006,8.63,1.62h.02c.35.05.69.1,1.04.15.03,0,.06.01.1.01,0,.01,0,.01.01,0,.38.05.77.1,1.15.15a.24843.24843,0,0,0,.08.01c.36.05.73.09,1.09.13q.58494.06,1.17.12.45.045.9.09a.19454.19454,0,0,0,.08.01c.27.02.54.05.81.07h.04c.23.02.47.04.7.06006,2.79.22,5.59.31994,8.43.31994,3.07,0,6.12-.12,9.13-.38h.03c.65-.06,1.29-.12,1.93-.18.17-.02.33-.03.5-.05.03,0,.07-.01.1-.01.05-.01.1-.01.16-.02a.24843.24843,0,0,0,.08-.01c.22-.02.44-.05.67-.07l.75-.09c.25-.03.5-.07.75-.1.06-.01.11-.01.17-.02.18-.02.36-.05.54-.07995.09-.01.18-.02.26-.03.18-.03.35-.05.53-.08h.01a105.706,105.706,0,0,0,16.2-3.65c.28-.09.56-.17005.84-.26a40.177,40.177,0,0,0-22.03-27.86,9.49736,9.49736,0,0,0,2.73-4.86005,9.29434,9.29434,0,0,0-1.28-7.01995,8.9678,8.9678,0,0,0-5.66-3.88l-14.82-3.1a9.2231,9.2231,0,0,0-10.8,7.2,9.76284,9.76284,0,0,0-.2,2.22C450.21461,732.10785,439.94459,741.95782,433.4546,752.41785Z"
transform="translate(-195.32909 -135.0622)"
fill="#6c63ff"
id="path1048" />
<circle
cx="281.88445"
cy="541.39662"
r="30.87556"
fill="#ffb8b8"
id="circle1050" />
<path
d="M457.96832,703.07847c-3.29254-2.24911-6.65479-6.57094-8.89946-9.81005a37.07482,37.07482,0,0,1-5.72473-29.60121,11.3042,11.3042,0,0,1,2.65776-5.44507c1.45423-1.439,3.82936-2.12133,5.60422-1.10373a10.13228,10.13228,0,0,1,.41151-8.03954,17.85678,17.85678,0,0,1,5.27941-6.28793,29.73759,29.73759,0,0,1,30.2834-3.58533c1.92864.89366-1.23909-6.00834.77965-5.34279a8.22979,8.22979,0,0,0,6.21161-.10916c1.89865-.95571,8.19188,4.72263,7.46365,2.72565a9.37686,9.37686,0,0,1,2.17171,15.70349c-1.59351,1.34506-3.583,2.11958-5.32779,3.26163a15.29686,15.29686,0,0,0-4.67894,19.74039,20.26618,20.26618,0,0,0-5.96467-2.592,6.85938,6.85938,0,0,0-6.10476,1.46829,7.70642,7.70642,0,0,0-1.86711,5.81588c.06916,2.09526.56765,4.15949.6236,6.25514.16417,6.14915,3.45742,17.84-1.3102,21.10849C475.81474,709.82,462.46384,706.14933,457.96832,703.07847Z"
transform="translate(-195.32909 -135.0622)"
fill="#2f2e41"
id="path1052" />
<path
d="M498.44289,521.91827a4.93032,4.93032,0,0,1-1.89356-.38281,4.78958,4.78958,0,0,1-3.0039-4.49512v-4.8872a3.8707,3.8707,0,0,0-3.86622-3.8667,4.87211,4.87211,0,0,1-4.8667-4.8667V436.46466a4.872,4.872,0,0,1,4.86622-4.8667H711.50539a4.87211,4.87211,0,0,1,4.8667,4.8667v66.95508a4.87211,4.87211,0,0,1-4.8667,4.8667H515.64992a3.8427,3.8427,0,0,0-2.73438,1.13232l-11.062,11.062A4.79813,4.79813,0,0,1,498.44289,521.91827Z"
transform="translate(-195.32909 -135.0622)"
fill="#fff"
id="path1068" />
<path
d="M498.44289,522.91827a5.9116,5.9116,0,0,1-2.27686-.459,5.77532,5.77532,0,0,1-3.6206-5.41895v-4.88672a2.86981,2.86981,0,0,0-2.86622-2.86718,5.87351,5.87351,0,0,1-5.8667-5.86719V436.46466a5.873,5.873,0,0,1,5.86622-5.8667H711.50539a5.87341,5.87341,0,0,1,5.8667,5.8667v66.95459a5.87351,5.87351,0,0,1-5.8667,5.86719H515.64992a2.84681,2.84681,0,0,0-2.02735.83984l-11.062,11.06152A5.79479,5.79479,0,0,1,498.44289,522.91827ZM489.67873,432.598a3.8707,3.8707,0,0,0-3.86622,3.8667v66.95459a3.87091,3.87091,0,0,0,3.8667,3.86719,4.87241,4.87241,0,0,1,4.86622,4.86718v4.88672a3.86665,3.86665,0,0,0,6.60058,2.7334l11.0625-11.06152a4.83313,4.83313,0,0,1,3.44141-1.42578H711.50539a3.87091,3.87091,0,0,0,3.8667-3.86719V436.46466a3.8708,3.8708,0,0,0-3.8667-3.8667Z"
transform="translate(-195.32909 -135.0622)"
fill="#3f3d56"
id="path1070" />
<path
d="M692.44337,461.91046H512.565a2.59082,2.59082,0,0,1,0-5.18164H692.44337a2.59082,2.59082,0,0,1,0,5.18164Z"
transform="translate(-195.32909 -135.0622)"
fill="#6c63ff"
id="path1072" />
<path
d="M692.11281,472.9173H512.565a2.59082,2.59082,0,0,1,0-5.18164H692.11281a2.59082,2.59082,0,1,1,0,5.18164Z"
transform="translate(-195.32909 -135.0622)"
fill="#e6e6e6"
id="path1074" />
<path
d="M691.9341,483.92364H512.565a2.59082,2.59082,0,0,1,0-5.18164H691.9341a2.59082,2.59082,0,0,1,0,5.18164Z"
transform="translate(-195.32909 -135.0622)"
fill="#e6e6e6"
id="path1076" />
<path
d="M975.71461,421.20782c0,2.43-.08,4.86-.25,7.27-.18,2.88-.49,5.74-.91,8.58a107.2491,107.2491,0,0,1-8.02,27.73q-.29993.66-.6,1.32l-.3.66c-.1.22-.21.44-.31.65-.14.29-.27.57-.41.85-.17.35-.34.7-.52,1.05-.02.04-.04.09-.07.14-.15.3-.29.59-.45.89a1.7462,1.7462,0,0,1-.1.19c-.17.34-.35.69-.53,1.03-.2.36005-.39.73-.59,1.09-.48.89-.98,1.77-1.49,2.65-.15.26-.3.52-.46.78-.14.24-.28.48-.43.72-.1.16-.2.33-.30005.49-.16.27-.32.53-.49.8-.37.59-.75,1.18-1.12,1.77h-.01c-.17.27-.35.54-.53.8v.01c-.53.8-1.08,1.6-1.63,2.38995a.0098.0098,0,0,0-.01.01c-.44.64-.9,1.26-1.35,1.88v.01c-.3.39-.59.79-.89,1.18-.24.32-.49.65-.74.97-.05.06994-.11.12994-.16.2v.01c-.07.09-.14.17-.21.26q-1.59,2.04-3.28,3.99l-.18.21c-.06.07-.13.14-.19.22-.1.11005-.19.22-.29.33-.09.11-.19.22-.29.33a108.617,108.617,0,0,1-19.83,17.49c-.97.67-1.96,1.32-2.95,1.95-.25.16-.5.32-.75.47-.07.05-.15.1-.22.15-.14.08-.27.16-.41.25-.13.08-.26.16-.4.24-.53.33-1.07.65-1.61.97-.13.08-.27.16-.41.24006-.13.06994-.27.15-.41.23,0,.01,0,.01-.01.01h-.01v.01h-.01q-1.00506.58492-2.04,1.13995c-.37.2-.75.41-1.13.6-.86.47-1.73.92-2.6,1.35-.31.15-.63.3-.94.46-.26.12-.52.25-.78.37-.08.04-.15.07-.22.11-.22.1-.43.2-.65.3-.24.11005-.48.22-.71.33-.27.12-.53.24-.8.35-1,.45-2.01.88-3.02,1.29a105.87419,105.87419,0,0,1-11.08,3.84c-.17.05-.35.1-.53.15q-2.41508.675-4.86005,1.23-4.275.99006-8.63,1.62h-.02c-.35.05-.69.1-1.04.15-.03,0-.06.01-.1.01,0,.01,0,.01-.01,0-.38.05-.77.1-1.15.15a.24843.24843,0,0,1-.08.01c-.36.05-.73.09-1.09.13q-.58494.06-1.17.12-.45.045-.9.09a.19454.19454,0,0,1-.08.01c-.27.02-.54.05-.81.07h-.04c-.23.02-.47.04-.7.06006-2.79.22-5.59.31994-8.43.31994-3.07,0-6.12-.12-9.13-.38h-.03c-.65-.06-1.29-.12-1.93-.18-.17-.02-.33-.03-.5-.05-.03,0-.07-.01-.1-.01-.05-.01-.1-.01-.16-.02a.24843.24843,0,0,1-.08-.01c-.22-.02-.44-.05-.67-.07l-.75-.09c-.25-.03-.5-.07-.75-.1-.06-.01-.11-.01-.17-.02-.18-.02-.36-.05-.54-.07995-.09-.01-.18-.02-.26-.03-.18-.03-.35-.05-.53-.08h-.01a105.706,105.706,0,0,1-16.2-3.65c-.28-.09-.56-.17005-.84-.26-.01,0-.02-.01-.03-.01-.08-.03-.17-.05-.25-.08-.75-.24-1.49-.49-2.23-.75-1.02-.34-2.03-.71-3.04-1.09-.27-.11-.54-.21-.81-.32-.55-.21-1.09-.43-1.63-.65-.92-.37-1.84-.76-2.75-1.16-.85-.38-1.69-.76-2.53-1.16-.02-.00994-.05-.00994-.07-.03-.19-.09-.38-.18-.56-.27h-.01a107.18912,107.18912,0,0,1-13.29-7.59q-2.04-1.365-4.02-2.82c-1.06-.79-2.1-1.59-3.14-2.41a108.28427,108.28427,0,0,1-14.19-13.56v-.01c-.31-.34-.6-.69-.9-1.04-.05-.05-.09-.1-.13-.14-.19-.23-.37-.45-.56-.67v-.01c-.25-.29-.5-.59-.74-.89-.06-.06994-.11-.12994-.16-.19v-.01c-.2-.24-.39-.48-.59-.73-.1-.12-.19-.24-.29-.36v-.01c-.59-.74-1.16-1.48-1.73-2.24-.15-.2-.3-.41-.46-.62-.72-.97-1.42-1.96-2.1-2.95v-.01c-.26-.37-.51-.75-.77-1.12q-.375-.57-.75-1.13995c-.25-.4-.51-.79-.76-1.19l-.03-.06c-.25-.38-.5-.78-.74-1.17005-.19-.32-.38-.63-.57-.94-.12-.21-.25-.42-.37-.63995a2.3919,2.3919,0,0,1-.13-.21q-.42-.735-.84-1.47c-.33-.56994-.65-1.15-.97-1.73-.12-.24-.25-.48-.38-.72-.05-.08-.09-.16-.13-.24-.15-.28-.3-.56994-.44-.86-.15-.28-.3-.57-.45-.86-.14-.28-.29-.57-.43-.86-.11-.22-.21-.44-.32-.66a.2175.2175,0,0,0-.03-.05c-.05-.11-.1-.21-.14-.31a.21619.21619,0,0,1-.03-.05c-.11005-.22-.21-.45-.32-.67-.14-.29-.27-.59-.41-.88-.09-.2-.19-.41-.28-.62-.13-.29-.27-.58-.39-.88-.14-.3-.27-.6-.4-.91a2.29721,2.29721,0,0,1-.1-.23c-.07-.14-.12-.28-.18-.42-.16-.37-.32-.75-.47-1.12-.18-.42005-.35-.85-.51-1.27-.16-.39-.31-.79-.46-1.19l-.06-.14a108.31693,108.31693,0,0,1-5.28-18.93v-.01a109.43156,109.43156,0,0,1-1.43-11.14c-.01-.21-.03-.41-.04-.61-.18-2.53-.26-5.07-.26-7.62,0-1.13.02-2.25.05-3.37a107.22221,107.22221,0,0,1,23.78-64.2c.32-.4.64-.8.97-1.2.33-.4.67-.79,1-1.18a107.74949,107.74949,0,0,1,173.04,12.43c.49.78.98,1.57,1.45,2.36005.48.8.94,1.6,1.4,2.41A107.27629,107.27629,0,0,1,975.71461,421.20782Z"
transform="translate(-195.32909 -135.0622)"
fill="#f2f2f2"
id="path1078" />
<path
d="M872.25672,350.74147a254.162,254.162,0,0,1-54.14823,7.81528,67.79984,67.79984,0,0,1-8.29619-.05641c-6.069-.51045-11.26756-2.41793-17.05716-3.46033-2.78331-.4997-5.88364-.86509-8.68575-1.40509q.9712-1.20494,1.97732-2.38032c6.04216.51046,12.17832,2.18151,18.293,2.95794,10.39441,1.3218,22.04078-.15314,29.92055-3.79078,3.823-1.76509,6.75141-3.96809,10.561-5.74124a4.9219,4.9219,0,0,1,1.65762-.50777,5.768,5.768,0,0,1,3.1272.81136c6.39139,3.22658,15.67089,5.84869,24.28409,4.406C874.53227,349.8925,873.31255,350.46474,872.25672,350.74147Z"
transform="translate(-195.32909 -135.0622)"
fill="#fff"
id="path1080" />
<path
d="M910.37143,362.09637c.07866-.01437.15753-.02558.23624-.03921a6.42127,6.42127,0,0,1-.93083-.7013Z"
transform="translate(-195.32909 -135.0622)"
fill="#fff"
id="path1082" />
<path
d="M961.93244,368.46221q-5.396.4312-10.84845.6421a68.3417,68.3417,0,0,1-8.2962-.05641c-6.069-.51315-11.26756-2.41793-17.05716-3.46033-5.306-.95375-11.75383-1.41315-15.12283-3.53018,8.70725-1.50718,17.72881,1.56091,26.70741,2.70271a63.77318,63.77318,0,0,0,21.76406-1.07464Q960.57033,366.03086,961.93244,368.46221Z"
transform="translate(-195.32909 -135.0622)"
fill="#fff"
id="path1084" />
<ellipse
cx="660.50012"
cy="300.20735"
rx="32.35846"
ry="33.07962"
fill="#ffb6b6"
id="ellipse1086" />
<path
d="M918.41457,516.41785c-.86.47-1.73.92-2.6,1.35-.31.15-.63.3-.94.46-.26.12-.52.25-.78.37-.08.04-.15.07-.22.11-.22.1-.43.2-.65.3-.24.11005-.48.22-.71.33-.27.12-.53.24-.8.35-1,.45-2.01.88-3.02,1.29a105.87419,105.87419,0,0,1-11.08,3.84c-.17.05-.35.1-.53.15q-2.41508.675-4.86005,1.23-4.275.99006-8.63,1.62h-.02c-.35.05-.69.1-1.04.15-.03,0-.06.01-.1.01,0,.01,0,.01-.01,0-.38.05-.77.1-1.15.15a.24843.24843,0,0,1-.08.01c-.36.05-.73.09-1.09.13q-.58494.06-1.17.12-.45.045-.9.09a.19454.19454,0,0,1-.08.01c-.27.02-.54.05-.81.07h-.04c-.23.02-.47.04-.7.06006-2.79.22-5.59.31994-8.43.31994-3.07,0-6.12-.12-9.13-.38h-.03c-.65-.06-1.29-.12-1.93-.18-.17-.02-.33-.03-.5-.05-.03,0-.07-.01-.1-.01-.05-.01-.1-.01-.16-.02a.24843.24843,0,0,1-.08-.01c-.22-.02-.44-.05-.67-.07l-.75-.09c-.25-.03-.5-.07-.75-.1-.06-.01-.11-.01-.17-.02-.18-.02-.36-.05-.54-.07995-.09-.01-.18-.02-.26-.03-.18-.03-.35-.05-.53-.08h-.01a105.706,105.706,0,0,1-16.2-3.65c-.28-.09-.56-.17005-.84-.26a40.177,40.177,0,0,1,22.03-27.86,9.49736,9.49736,0,0,1-2.73-4.86005,9.29434,9.29434,0,0,1,1.28-7.01995,8.9678,8.9678,0,0,1,5.66-3.88l14.82-3.1a9.22312,9.22312,0,0,1,10.8,7.2,9.7634,9.7634,0,0,1,.2,2.22C901.65456,496.10785,911.92458,505.95782,918.41457,516.41785Z"
transform="translate(-195.32909 -135.0622)"
fill="#6c63ff"
id="path1088" />
<path
d="M942.41713,420.92308c-5.50024-6.41419-8.11524-14.9242-12.51227-22.20783-4.39709-7.28369-12.04883-13.80261-20.13245-12.1076-5.57232,1.16852-9.87878,6.08563-12.059,11.56769-2.17974,5.482-2.58838,11.52755-2.97046,17.45013.135-12.17114-7.88372-23.97028-18.92974-27.85394-11.04517-3.88364-24.26429.44839-31.205,10.22647a16.8664,16.8664,0,0,0-22.40161-.47025c-6.20825,5.54874-7.58216,16.10984-3.01642,23.18738s14.4538,9.71414,21.70959,5.78885l2.56519,2.35968c-1.44391,5.05014,1.3562,11.01556,6.06323,12.9166,3.81684,1.54174,9.20532,1.28512,10.63361,5.29061.99817,2.79877-.86743,5.78617-2.852,7.93683-1.98407,2.15064-4.34015,4.37152-4.57843,7.3476-.36011,4.49042,4.28027,7.63605,8.49853,8.5834,10.17145,2.28446,21.4574-2.42572,27.31989-11.4021q.16946-.25964.36853-.52a39.27849,39.27849,0,0,0,7.90057-30.03344c-.32977-2.07468.0025-3.61783,1.43292-4.10916,6.18256-2.12369,23.50434,2.33352,28.74653,6.36187,5.24261,4.02835,9.44061,9.3595,14.49,13.64783,5.04986,4.28839,11.48462,7.59625,17.89618,6.42847,5.135-.93528,9.50348-4.66327,12.44189-9.16,2.938-4.4967,4.629-9.73825,6.14374-14.94729C966.61519,433.76451,951.07466,431.01866,942.41713,420.92308Z"
transform="translate(-195.32909 -135.0622)"
fill="#2f2e41"
id="path1090" />
<path
d="M278.15456,354.20782c0,2.43.08,4.86.25,7.27.18,2.88.49,5.74.91,8.58a107.2491,107.2491,0,0,0,8.02,27.73q.29993.66.6,1.32l.3.66c.1.22.21.44.31.65.14.29.27.57.41.85.17.35.34.7.52,1.05.02.04.04.09.07.14.15.3.29.59.45.89a1.7462,1.7462,0,0,0,.1.19c.17.34.35.69.53,1.03.2.36005.39.73.59,1.09.48.89.98,1.77,1.49,2.65.15.26.3.52.46.78.14.24.28.48.43.72.1.16.2.33.3.49.16.27.32.53.49.8.37.59.75,1.18,1.12,1.77h.01c.17.27.35.54.53.8v.01c.53.8,1.08,1.6,1.63,2.38995a.0098.0098,0,0,1,.01.01c.44.64.9,1.26,1.35,1.88v.01c.3.39.59.79.89,1.18.24.32.49.65.74.97.05.06994.11.12994.16.2v.01c.07.09.14.17.21.26q1.59,2.04,3.28,3.99l.18.21c.06.07.13.14.19.22.1.11005.19.22.29.33.09.11.19.22.29.33a108.617,108.617,0,0,0,19.83,17.49c.97.67,1.96,1.32,2.95,1.95.25.16.5.32.75.47.07.05.15.1.22.15.14.08.27.16.41.25.13.08.26.16.4.24.53.33,1.07.65,1.61.97.13.08.27.16.41.24006.13.06994.27.15.41.23,0,.01,0,.01.01.01h.01v.01h.01q1.00506.58492,2.04,1.13995c.37.2.75.41,1.13.6.86.47,1.73.92,2.6,1.35.31.15.63.3.94.46.26.12.52.25.78.37.08.04.15.07.22.11.22.1.43.2.65.3.24.11005.48.22.71.33.27.12.53.24.8.35,1,.45,2.01.88,3.02,1.29a105.87419,105.87419,0,0,0,11.08,3.84c.17.05.35.1.53.15q2.41508.675,4.86005,1.23,4.275.99006,8.63,1.62h.02c.35.05.69.1,1.04.15.03,0,.06.01.1.01,0,.01,0,.01.01,0,.38.05.77.1,1.15.15a.24843.24843,0,0,0,.08.01c.36.05.73.09,1.09.13q.58494.06,1.17.12.45.045.9.09a.19454.19454,0,0,0,.08.01c.27.02.54.05.81.07h.04c.23.02.47.04.7.06006,2.79.22,5.59.31994,8.43.31994,3.07,0,6.12-.12,9.13-.38h.03c.65-.06,1.29-.12,1.93-.18.17-.02.33-.03.5-.05.03,0,.07-.01.1-.01.05-.01.1-.01.16-.02a.24843.24843,0,0,0,.08-.01c.22-.02.44-.05.67-.07l.75-.09c.25-.03.5-.07.75-.1.06-.01.11-.01.17-.02.18-.02.36-.05.54-.07995.09-.01.18-.02.26-.03.18-.03.35-.05.53-.08h.01a105.706,105.706,0,0,0,16.2-3.65c.28-.09.56-.17005.84-.26.01,0,.02-.01.03-.01.08-.03.17-.05.25-.08.75-.24,1.49-.49,2.23-.75,1.02-.34,2.03-.71,3.04-1.09.27-.11.54-.21.81-.32.55-.21,1.09-.43,1.63-.65.92-.37,1.84-.76,2.75-1.16.85-.38,1.69-.76,2.53-1.16.02-.00994.05-.00994.07-.03.19-.09.38-.18.56-.27h.01a107.18912,107.18912,0,0,0,13.29-7.59q2.04-1.365,4.02-2.82c1.06-.79,2.1-1.59,3.14-2.41a108.28427,108.28427,0,0,0,14.19-13.56v-.01c.31-.34.6-.69.9-1.04.05-.05.09-.1.13-.14.19-.23.37-.45.56-.67v-.01c.25-.29.5-.59.74-.89.06-.06994.11-.12994.16-.19v-.01c.2-.24.38995-.48.59-.73.1-.12.19-.24.29-.36v-.01c.59-.74,1.16-1.48,1.73-2.24.15-.2.3-.41.46-.62.72-.97,1.42-1.96,2.1-2.95v-.01c.26-.37.51-.75.77-1.12q.375-.57.75-1.13995c.25-.4.51-.79.76-1.19l.03-.06c.25-.38.5-.78.74-1.17005.19-.32.38-.63.57-.94.12-.21.25-.42.37-.63995a2.3919,2.3919,0,0,0,.13-.21q.42-.735.84-1.47c.33-.56994.65-1.15.97-1.73.12-.24.25-.48.38-.72.05-.08.09-.16.13-.24.15-.28.3-.56994.44-.86.15-.28.3-.57.45-.86.13995-.28.29-.57.43-.86.11-.22.21-.44.32-.66a.2175.2175,0,0,1,.03-.05c.05-.11.1-.21.14-.31a.21619.21619,0,0,0,.03-.05c.11005-.22.21-.45.32-.67.14-.29.27-.59.41-.88.09-.2.19-.41.28-.62.13-.29.27-.58.39-.88.14-.3.27-.6.4-.91a2.29962,2.29962,0,0,0,.1-.23c.07-.14.12-.28.18-.42.16-.37.32-.75.47-1.12.18-.42005.35-.85.51-1.27.16-.39.31-.79.46-1.19l.06-.14a108.31693,108.31693,0,0,0,5.28-18.93v-.01a109.43156,109.43156,0,0,0,1.43-11.14c.01-.21.03-.41.04-.61.18-2.53.26-5.07.26-7.62,0-1.13-.02-2.25-.05-3.37a107.22221,107.22221,0,0,0-23.78-64.2c-.32-.4-.64-.8-.97-1.2-.33-.4-.67-.79-1-1.18a107.74949,107.74949,0,0,0-173.04,12.43c-.49.78-.98,1.57-1.45,2.36005-.48.8-.94,1.6-1.4,2.41A107.27619,107.27619,0,0,0,278.15456,354.20782Z"
transform="translate(-195.32909 -135.0622)"
fill="#f2f2f2"
id="path1092" />
<path
d="M381.61245,283.74147a254.162,254.162,0,0,0,54.14823,7.81528,67.79984,67.79984,0,0,0,8.29619-.05641c6.069-.51045,11.26756-2.41793,17.05716-3.46033,2.78331-.4997,5.88364-.86509,8.68575-1.40509q-.9712-1.20494-1.97732-2.38032c-6.04216.51046-12.17832,2.18151-18.293,2.95794-10.39442,1.3218-22.04079-.15314-29.92056-3.79078-3.823-1.76509-6.75141-3.96809-10.561-5.74124a4.9219,4.9219,0,0,0-1.65762-.50777,5.76807,5.76807,0,0,0-3.1272.81136c-6.39139,3.22658-15.67088,5.84869-24.28409,4.406C379.3369,282.8925,380.55662,283.46474,381.61245,283.74147Z"
transform="translate(-195.32909 -135.0622)"
fill="#fff"
id="path1094" />
<path
d="M343.49774,295.09637c-.07866-.01437-.15753-.02558-.23624-.03921a6.42127,6.42127,0,0,0,.93083-.7013Z"
transform="translate(-195.32909 -135.0622)"
fill="#fff"
id="path1096" />
<path
d="M291.93673,301.46221q5.396.4312,10.84845.6421a68.3417,68.3417,0,0,0,8.2962-.05641c6.069-.51315,11.26756-2.41793,17.05716-3.46033,5.306-.95375,11.75383-1.41315,15.12283-3.53018-8.70725-1.50718-17.72881,1.56091-26.70741,2.70271a63.77318,63.77318,0,0,1-21.76406-1.07464Q293.29884,299.03086,291.93673,301.46221Z"
transform="translate(-195.32909 -135.0622)"
fill="#fff"
id="path1098" />
<path
d="M335.4546,449.41785c.86.47,1.73.92,2.6,1.35.31.15.63.3.94.46.26.12.52.25.78.37.08.04.15.07.22.11.22.1.43.2.65.3.24.11005.48.22.71.33.27.12.53.24.8.35,1,.45,2.01.88,3.02,1.29a105.87419,105.87419,0,0,0,11.08,3.84c.17.05.35.1.53.15q2.41508.675,4.86005,1.23,4.275.99006,8.63,1.62h.02c.35.05.69.1,1.04.15.03,0,.06.01.1.01,0,.01,0,.01.01,0,.38.05.77.1,1.15.15a.24843.24843,0,0,0,.08.01c.36.05.73.09,1.09.13q.58494.06,1.17.12.45.045.9.09a.19454.19454,0,0,0,.08.01c.27.02.54.05.81.07h.04c.23.02.47.04.7.06006,2.79.22,5.59.31994,8.43.31994,3.07,0,6.12-.12,9.13-.38h.03c.65-.06,1.29-.12,1.93-.18.17-.02.33-.03.5-.05.03,0,.07-.01.1-.01.05-.01.1-.01.16-.02a.24843.24843,0,0,0,.08-.01c.22-.02.44-.05.67-.07l.75-.09c.25-.03.5-.07.75-.1.06-.01.11-.01.17-.02.18-.02.36-.05.54-.07995.09-.01.18-.02.26-.03.18-.03.35-.05.53-.08h.01a105.706,105.706,0,0,0,16.2-3.65c.28-.09.56-.17005.84-.26a40.177,40.177,0,0,0-22.03-27.86,9.49736,9.49736,0,0,0,2.73-4.86005,9.29434,9.29434,0,0,0-1.28-7.01995,8.9678,8.9678,0,0,0-5.66-3.88l-14.82-3.1a9.2231,9.2231,0,0,0-10.8,7.2,9.76284,9.76284,0,0,0-.2,2.22C352.21461,429.10785,341.94459,438.95782,335.4546,449.41785Z"
transform="translate(-195.32909 -135.0622)"
fill="#6c63ff"
id="path1100" />
<circle
cx="198.75404"
cy="229.04877"
r="36.07316"
fill="#9e616a"
id="circle1102" />
<path
d="M388.957,398.256c-9.03088,2.43906-18.98715-.80368-26.03488-6.95474s-11.45636-14.86707-13.99658-23.87c-1.86041-6.59356-2.74253-13.91271.1933-20.10281s10.83712-10.36639,16.933-7.23959c-3.7605-4.38129-1.88181-11.62772,2.51016-15.37573s10.42282-4.82261,16.16669-5.41c8.33594-.85248,16.9465-.9479,24.87878,1.75269s15.13953,8.60486,17.62207,16.60809a12.64027,12.64027,0,0,0,15.07663-3.404,11.45182,11.45182,0,0,1-6.30975,12.41714l12.15372-3.94033c2.09021,4.42428-1.57233,9.9-6.25589,11.31683s-9.73932-.13181-14.18381-2.17871-8.75159-4.63474-13.57922-5.433-10.49836.7529-12.73139,5.10685c-1.16958,2.28042-1.23059,4.95123-1.90964,7.42248s-2.3992,5.03348-4.9541,5.23572c-1.61416.12778-3.19455-.732-4.8042-.55621a5.17666,5.17666,0,0,0-4.05441,3.96139,15.1987,15.1987,0,0,0-.0144,5.98l3.08725,23.598Z"
transform="translate(-195.32909 -135.0622)"
fill="#2f2e41"
id="path1104" />
</svg>

After

Width:  |  Height:  |  Size: 39 KiB

2
public/images/cross-circle.svg

@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" id="Outline" viewBox="0 0 24 24" width="16" height="16"><path fill="#FFF" d="M16,8a1,1,0,0,0-1.414,0L12,10.586,9.414,8A1,1,0,0,0,8,9.414L10.586,12,8,14.586A1,1,0,0,0,9.414,16L12,13.414,14.586,16A1,1,0,0,0,16,14.586L13.414,12,16,9.414A1,1,0,0,0,16,8Z"/><path fill="#FFF" d="M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm0,22A10,10,0,1,1,22,12,10.011,10.011,0,0,1,12,22Z"/></svg>

After

Width:  |  Height:  |  Size: 461 B

1
public/images/double-check-seen.svg

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 15" width="16" height="15"><path fill="#4FC3F7" d="M15.01 3.316l-.478-.372a.365.365 0 0 0-.51.063L8.666 9.879a.32.32 0 0 1-.484.033l-.358-.325a.319.319 0 0 0-.484.032l-.378.483a.418.418 0 0 0 .036.541l1.32 1.266c.143.14.361.125.484-.033l6.272-8.048a.366.366 0 0 0-.064-.512zm-4.1 0l-.478-.372a.365.365 0 0 0-.51.063L4.566 9.879a.32.32 0 0 1-.484.033L1.891 7.769a.366.366 0 0 0-.515.006l-.423.433a.364.364 0 0 0 .006.514l3.258 3.185c.143.14.361.125.484-.033l6.272-8.048a.365.365 0 0 0-.063-.51z"></path></svg>

After

Width:  |  Height:  |  Size: 564 B

1
public/images/double-check-unseen.svg

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 15" width="16" height="15"><path fill="#919191" d="M15.01 3.316l-.478-.372a.365.365 0 0 0-.51.063L8.666 9.879a.32.32 0 0 1-.484.033l-.358-.325a.319.319 0 0 0-.484.032l-.378.483a.418.418 0 0 0 .036.541l1.32 1.266c.143.14.361.125.484-.033l6.272-8.048a.366.366 0 0 0-.064-.512zm-4.1 0l-.478-.372a.365.365 0 0 0-.51.063L4.566 9.879a.32.32 0 0 1-.484.033L1.891 7.769a.366.366 0 0 0-.515.006l-.423.433a.364.364 0 0 0 .006.514l3.258 3.185c.143.14.361.125.484-.033l6.272-8.048a.365.365 0 0 0-.063-.51z"></path></svg>

After

Width:  |  Height:  |  Size: 564 B

1
public/images/double-check.svg

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 15" width="16" height="15"><path fill="currentColor" d="M15.01 3.316l-.478-.372a.365.365 0 0 0-.51.063L8.666 9.879a.32.32 0 0 1-.484.033l-.358-.325a.319.319 0 0 0-.484.032l-.378.483a.418.418 0 0 0 .036.541l1.32 1.266c.143.14.361.125.484-.033l6.272-8.048a.366.366 0 0 0-.064-.512zm-4.1 0l-.478-.372a.365.365 0 0 0-.51.063L4.566 9.879a.32.32 0 0 1-.484.033L1.891 7.769a.366.366 0 0 0-.515.006l-.423.433a.364.364 0 0 0 .006.514l3.258 3.185c.143.14.361.125.484-.033l6.272-8.048a.365.365 0 0 0-.063-.51z"></path></svg>

After

Width:  |  Height:  |  Size: 569 B

1
public/images/down-arrow.svg

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18"><path fill="#919191" d="M3.3 4.6L9 10.3l5.7-5.7 1.6 1.6L9 13.4 1.7 6.2l1.6-1.6z"></path></svg>

After

Width:  |  Height:  |  Size: 177 B

2
public/images/enter.svg

@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" id="Layer_1" data-name="Layer 1" viewBox="0 0 24 24" width="18" height="18"><path fill="#919191" d="M18.589,0H5.411A5.371,5.371,0,0,0,0,5.318V7.182a1.5,1.5,0,0,0,3,0V5.318A2.369,2.369,0,0,1,5.411,3H18.589A2.369,2.369,0,0,1,21,5.318V18.682A2.369,2.369,0,0,1,18.589,21H5.411A2.369,2.369,0,0,1,3,18.682V16.818a1.5,1.5,0,1,0-3,0v1.864A5.371,5.371,0,0,0,5.411,24H18.589A5.371,5.371,0,0,0,24,18.682V5.318A5.371,5.371,0,0,0,18.589,0Z"/><path fill="#919191" d="M3.5,12A1.5,1.5,0,0,0,5,13.5H5l9.975-.027-3.466,3.466a1.5,1.5,0,0,0,2.121,2.122l4.586-4.586a3.5,3.5,0,0,0,0-4.95L13.634,4.939a1.5,1.5,0,1,0-2.121,2.122l3.413,3.412L5,10.5A1.5,1.5,0,0,0,3.5,12Z"/></svg>

After

Width:  |  Height:  |  Size: 734 B

BIN
public/images/favicon.ico

Binary file not shown.

After

Width:  |  Height:  |  Size: 438 B

2
public/images/file.svg

@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" id="Outline" viewBox="0 0 24 24" width="512" height="512"><path fill="#919191" d="M19.949,5.536,16.465,2.05A6.958,6.958,0,0,0,11.515,0H7A5.006,5.006,0,0,0,2,5V19a5.006,5.006,0,0,0,5,5H17a5.006,5.006,0,0,0,5-5V10.485A6.951,6.951,0,0,0,19.949,5.536ZM18.535,6.95A4.983,4.983,0,0,1,19.316,8H15a1,1,0,0,1-1-1V2.684a5.01,5.01,0,0,1,1.051.78ZM20,19a3,3,0,0,1-3,3H7a3,3,0,0,1-3-3V5A3,3,0,0,1,7,2h4.515c.164,0,.323.032.485.047V7a3,3,0,0,0,3,3h4.953c.015.162.047.32.047.485Z"/></svg>

After

Width:  |  Height:  |  Size: 553 B

1
public/images/gt-arrow.svg

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8 12" width="8" height="12"><path fill="#404B4F" d="M2.173 1l4.584 4.725-4.615 4.615-1.103-1.103 3.512-3.512L1 2.173 2.173 1z"></path></svg>

After

Width:  |  Height:  |  Size: 193 B

1
public/images/icons.svg

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path fill="#919191" d="M9.153 11.603c.795 0 1.439-.879 1.439-1.962s-.644-1.962-1.439-1.962-1.439.879-1.439 1.962.644 1.962 1.439 1.962zm-3.204 1.362c-.026-.307-.131 5.218 6.063 5.551 6.066-.25 6.066-5.551 6.066-5.551-6.078 1.416-12.129 0-12.129 0zm11.363 1.108s-.669 1.959-5.051 1.959c-3.505 0-5.388-1.164-5.607-1.959 0 0 5.912 1.055 10.658 0zM11.804 1.011C5.609 1.011.978 6.033.978 12.228s4.826 10.761 11.021 10.761S23.02 18.423 23.02 12.228c.001-6.195-5.021-11.217-11.216-11.217zM12 21.354c-5.273 0-9.381-3.886-9.381-9.159s3.942-9.548 9.215-9.548 9.548 4.275 9.548 9.548c-.001 5.272-4.109 9.159-9.382 9.159zm3.108-9.751c.795 0 1.439-.879 1.439-1.962s-.644-1.962-1.439-1.962-1.439.879-1.439 1.962.644 1.962 1.439 1.962z"></path></svg>

After

Width:  |  Height:  |  Size: 820 B

BIN
public/images/icons/csv-file.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
public/images/icons/doc-file.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.7 KiB

BIN
public/images/icons/notfound-file.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
public/images/icons/pdf-file.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.0 KiB

BIN
public/images/icons/ppt-file.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

BIN
public/images/icons/txt-file.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.3 KiB

BIN
public/images/icons/xls-file.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
public/images/icons/zip-file.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB

BIN
public/images/loading.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

1
public/images/manage_chats.svg

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 11 KiB

1
public/images/menu-icon.svg

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path fill="#919191" d="M12 7a2 2 0 1 0-.001-4.001A2 2 0 0 0 12 7zm0 2a2 2 0 1 0-.001 3.999A2 2 0 0 0 12 9zm0 6a2 2 0 1 0-.001 3.999A2 2 0 0 0 12 15z"></path></svg>

After

Width:  |  Height:  |  Size: 247 B

1
public/images/message-icon.svg

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path fill="#919191" d="M19.005 3.175H4.674C3.642 3.175 3 3.789 3 4.821V21.02l3.544-3.514h12.461c1.033 0 2.064-1.06 2.064-2.093V4.821c-.001-1.032-1.032-1.646-2.064-1.646zm-4.989 9.869H7.041V11.1h6.975v1.944zm3-4H7.041V7.1h9.975v1.944z"></path></svg>

After

Width:  |  Height:  |  Size: 332 B

1
public/images/message-tail-receiver.svg

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8 13" width="8" height="13"><path opacity=".13" fill="#FFFFFF" d="M1.533 3.568L8 12.193V1H2.812C1.042 1 .474 2.156 1.533 3.568z"></path><path fill="#FFFFFF" d="M1.533 2.568L8 11.193V0H2.812C1.042 0 .474 1.156 1.533 2.568z"></path></svg>

After

Width:  |  Height:  |  Size: 289 B

1
public/images/message-tail-sender.svg

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8 13" width="8" height="13"><path opacity=".13" d="M5.188 1H0v11.193l6.467-8.625C7.526 2.156 6.958 1 5.188 1z"></path><path fill="#DCF8C6" d="M5.188 0H0v11.193l6.467-8.625C7.526 1.156 6.958 0 5.188 0z"></path></svg>

After

Width:  |  Height:  |  Size: 268 B

BIN
public/images/messenger.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 KiB

1
public/images/microphone-seen.svg

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 20" width="12" height="20"><path fill="#70CEF9" d="M6 11.745a2 2 0 0 0 2-2V4.941a2 2 0 0 0-4 0v4.803a2 2 0 0 0 2 2.001zm3.495-2.001c0 1.927-1.568 3.495-3.495 3.495s-3.495-1.568-3.495-3.495H1.11c0 2.458 1.828 4.477 4.192 4.819v2.495h1.395v-2.495c2.364-.342 4.193-2.362 4.193-4.82H9.495v.001z"></path></svg>

After

Width:  |  Height:  |  Size: 361 B

2
public/images/microphone.svg

@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" id="Outline" viewBox="0 0 24 24" width="24" height="24"><path fill="#919191" d="M12,20a8.009,8.009,0,0,0,8-8V8A8,8,0,0,0,4,8v4A8.009,8.009,0,0,0,12,20ZM12,2a6.006,6.006,0,0,1,5.91,5H15a1,1,0,0,0,0,2h3v2H15a1,1,0,0,0,0,2h2.91A5.993,5.993,0,0,1,6.09,13H9a1,1,0,0,0,0-2H6V9H9A1,1,0,0,0,9,7H6.09A6.006,6.006,0,0,1,12,2Z"/><path fill="#919191" d="M23,12a1,1,0,0,0-1,1,9.01,9.01,0,0,1-9,9H11a9.011,9.011,0,0,1-9-9,1,1,0,0,0-2,0A11.013,11.013,0,0,0,11,24h2A11.013,11.013,0,0,0,24,13,1,1,0,0,0,23,12Z"/></svg>

After

Width:  |  Height:  |  Size: 581 B

1
public/images/notifications.svg

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" width="48" height="48"><path fill="#F5FCFF" d="M24.154 2C11.919 2 2 11.924 2 24.165S11.919 46.33 24.154 46.33s22.154-9.924 22.154-22.165S36.389 2 24.154 2zm-.744 15.428v-.618c0-.706.618-1.324 1.324-1.324s1.323.618 1.323 1.324v.618c2.559.618 4.412 2.823 4.412 5.559v3.176l-8.294-8.294a5.056 5.056 0 0 1 1.235-.441zm1.323 15.706a1.77 1.77 0 0 1-1.765-1.765h3.529a1.768 1.768 0 0 1-1.764 1.765zm7.236-.883l-1.765-1.765H17.233v-.882l1.765-1.765v-4.853a5.56 5.56 0 0 1 .794-2.912l-2.559-2.559 1.147-1.147 14.735 14.736-1.146 1.147z"></path></svg>

After

Width:  |  Height:  |  Size: 601 B

2
public/images/paper-plane.svg

@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" id="Outline" viewBox="0 0 24 24" width="24" height="24"><path fill="#919191" d="M23.119.882a2.966,2.966,0,0,0-2.8-.8l-16,3.37a4.995,4.995,0,0,0-2.853,8.481L3.184,13.65a1,1,0,0,1,.293.708v3.168a2.965,2.965,0,0,0,.3,1.285l-.008.007.026.026A3,3,0,0,0,5.157,20.2l.026.026.007-.008a2.965,2.965,0,0,0,1.285.3H9.643a1,1,0,0,1,.707.292l1.717,1.717A4.963,4.963,0,0,0,15.587,24a5.049,5.049,0,0,0,1.605-.264,4.933,4.933,0,0,0,3.344-3.986L23.911,3.715A2.975,2.975,0,0,0,23.119.882ZM4.6,12.238,2.881,10.521a2.94,2.94,0,0,1-.722-3.074,2.978,2.978,0,0,1,2.5-2.026L20.5,2.086,5.475,17.113V14.358A2.978,2.978,0,0,0,4.6,12.238Zm13.971,7.17a3,3,0,0,1-5.089,1.712L11.762,19.4a2.978,2.978,0,0,0-2.119-.878H6.888L21.915,3.5Z"/></svg>

After

Width:  |  Height:  |  Size: 791 B

1
public/images/pause.svg

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" id="Outline" viewBox="0 0 24 24" width="20" height="20"><path fill="#919191" d="M6.5,0A3.5,3.5,0,0,0,3,3.5v17a3.5,3.5,0,0,0,7,0V3.5A3.5,3.5,0,0,0,6.5,0ZM8,20.5a1.5,1.5,0,0,1-3,0V3.5a1.5,1.5,0,0,1,3,0Z"/><path fill="#919191" d="M17.5,0A3.5,3.5,0,0,0,14,3.5v17a3.5,3.5,0,0,0,7,0V3.5A3.5,3.5,0,0,0,17.5,0ZM19,20.5a1.5,1.5,0,0,1-3,0V3.5a1.5,1.5,0,0,1,3,0Z"/></svg>

After

Width:  |  Height:  |  Size: 400 B

2
public/images/picture.svg

@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" id="Outline" viewBox="0 0 24 24" width="512" height="512"><path fill="#919191" d="M19,0H5A5.006,5.006,0,0,0,0,5V19a5.006,5.006,0,0,0,5,5H19a5.006,5.006,0,0,0,5-5V5A5.006,5.006,0,0,0,19,0ZM5,2H19a3,3,0,0,1,3,3V19a2.951,2.951,0,0,1-.3,1.285l-9.163-9.163a5,5,0,0,0-7.072,0L2,14.586V5A3,3,0,0,1,5,2ZM5,22a3,3,0,0,1-3-3V17.414l4.878-4.878a3,3,0,0,1,4.244,0L20.285,21.7A2.951,2.951,0,0,1,19,22Z"/><path fill="#919191" d="M16,10.5A3.5,3.5,0,1,0,12.5,7,3.5,3.5,0,0,0,16,10.5Zm0-5A1.5,1.5,0,1,1,14.5,7,1.5,1.5,0,0,1,16,5.5Z"/></svg>

After

Width:  |  Height:  |  Size: 603 B

1
public/images/placeholder-image.svg

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 212 212" width="212" height="212"><path fill="#DFE5E7" class="background" d="M106.251.5C164.653.5 212 47.846 212 106.25S164.653 212 106.25 212C47.846 212 .5 164.654.5 106.25S47.846.5 106.251.5z"></path><path fill="#FFF" class="primary" d="M173.561 171.615a62.767 62.767 0 0 0-2.065-2.955 67.7 67.7 0 0 0-2.608-3.299 70.112 70.112 0 0 0-3.184-3.527 71.097 71.097 0 0 0-5.924-5.47 72.458 72.458 0 0 0-10.204-7.026 75.2 75.2 0 0 0-5.98-3.055c-.062-.028-.118-.059-.18-.087-9.792-4.44-22.106-7.529-37.416-7.529s-27.624 3.089-37.416 7.529c-.338.153-.653.318-.985.474a75.37 75.37 0 0 0-6.229 3.298 72.589 72.589 0 0 0-9.15 6.395 71.243 71.243 0 0 0-5.924 5.47 70.064 70.064 0 0 0-3.184 3.527 67.142 67.142 0 0 0-2.609 3.299 63.292 63.292 0 0 0-2.065 2.955 56.33 56.33 0 0 0-1.447 2.324c-.033.056-.073.119-.104.174a47.92 47.92 0 0 0-1.07 1.926c-.559 1.068-.818 1.678-.818 1.678v.398c18.285 17.927 43.322 28.985 70.945 28.985 27.678 0 52.761-11.103 71.055-29.095v-.289s-.619-1.45-1.992-3.778a58.346 58.346 0 0 0-1.446-2.322zM106.002 125.5c2.645 0 5.212-.253 7.68-.737a38.272 38.272 0 0 0 3.624-.896 37.124 37.124 0 0 0 5.12-1.958 36.307 36.307 0 0 0 6.15-3.67 35.923 35.923 0 0 0 9.489-10.48 36.558 36.558 0 0 0 2.422-4.84 37.051 37.051 0 0 0 1.716-5.25c.299-1.208.542-2.443.725-3.701.275-1.887.417-3.827.417-5.811s-.142-3.925-.417-5.811a38.734 38.734 0 0 0-1.215-5.494 36.68 36.68 0 0 0-3.648-8.298 35.923 35.923 0 0 0-9.489-10.48 36.347 36.347 0 0 0-6.15-3.67 37.124 37.124 0 0 0-5.12-1.958 37.67 37.67 0 0 0-3.624-.896 39.875 39.875 0 0 0-7.68-.737c-21.162 0-37.345 16.183-37.345 37.345 0 21.159 16.183 37.342 37.345 37.342z"></path></svg>

After

Width:  |  Height:  |  Size: 1.6 KiB

1
public/images/play-audio-icon.svg

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 34 34" width="34" height="34"><path fill="#999999" d="M8.5 8.7c0-1.7 1.2-2.4 2.6-1.5l14.4 8.3c1.4.8 1.4 2.2 0 3l-14.4 8.3c-1.4.8-2.6.2-2.6-1.5V8.7z"></path></svg>

After

Width:  |  Height:  |  Size: 215 B

2
public/images/play.svg

@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" id="Outline" viewBox="0 0 24 24" width="20" height="20"><path fill="#919191" d="M20.494,7.968l-9.54-7A5,5,0,0,0,3,5V19a5,5,0,0,0,7.957,4.031l9.54-7a5,5,0,0,0,0-8.064Zm-1.184,6.45-9.54,7A3,3,0,0,1,5,19V5A2.948,2.948,0,0,1,6.641,2.328,3.018,3.018,0,0,1,8.006,2a2.97,2.97,0,0,1,1.764.589l9.54,7a3,3,0,0,1,0,4.836Z"/></svg>

After

Width:  |  Height:  |  Size: 399 B

1
public/images/power.svg

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path fill="#919191" d="M15,3.849h0a1.02,1.02,0,0,0,.629.926A9,9,0,0,1,21,13.292,9,9,0,0,1,3,13,9,9,0,0,1,8.371,4.776,1.023,1.023,0,0,0,9,3.848H9a1,1,0,0,0-1.374-.929,11,11,0,1,0,8.751,0A1,1,0,0,0,15,3.849Z"/><rect x="11" fill="#919191" width="2" height="8" rx="1"/></svg>

After

Width:  |  Height:  |  Size: 357 B

2
public/images/redo.svg

@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" id="Outline" viewBox="0 0 24 24" width="16" height="16"><path fill="#FFF" d="M0,23V16A9.01,9.01,0,0,1,9,7h4.83V5.414A2,2,0,0,1,17.244,4l5.88,5.879a3,3,0,0,1,0,4.242L17.244,20a2,2,0,0,1-3.414-1.414V17H8a6.006,6.006,0,0,0-6,6,1,1,0,0,1-2,0ZM15.83,8a1,1,0,0,1-1,1H9a7.008,7.008,0,0,0-7,7v1.714A7.984,7.984,0,0,1,8,15h6.83a1,1,0,0,1,1,1v2.586l5.879-5.879a1,1,0,0,0,0-1.414L15.83,5.414Z"/></svg>

After

Width:  |  Height:  |  Size: 470 B

1
public/images/search-icon.svg

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path fill="#919191" d="M15.9 14.3H15l-.3-.3c1-1.1 1.6-2.7 1.6-4.3 0-3.7-3-6.7-6.7-6.7S3 6 3 9.7s3 6.7 6.7 6.7c1.6 0 3.2-.6 4.3-1.6l.3.3v.8l5.1 5.1 1.5-1.5-5-5.2zm-6.2 0c-2.6 0-4.6-2.1-4.6-4.6s2.1-4.6 4.6-4.6 4.6 2.1 4.6 4.6-2 4.6-4.6 4.6z"></path></svg>

After

Width:  |  Height:  |  Size: 337 B

1
public/images/single-check.svg

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 18" width="14" height="18"><path fill="#919191" d="M12.502 5.035l-.57-.444a.434.434 0 0 0-.609.076l-6.39 8.198a.38.38 0 0 1-.577.039l-2.614-2.556a.435.435 0 0 0-.614.007l-.505.516a.435.435 0 0 0 .007.614l3.887 3.8a.38.38 0 0 0 .577-.039l7.483-9.602a.435.435 0 0 0-.075-.609z"></path></svg>

After

Width:  |  Height:  |  Size: 345 B

1
public/images/status.svg

@ -0,0 +1 @@
<svg id="ee51d023-7db6-4950-baf7-c34874b80976" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path fill="#919191" d="M12 20.664a9.163 9.163 0 0 1-6.521-2.702.977.977 0 0 1 1.381-1.381 7.269 7.269 0 0 0 10.024.244.977.977 0 0 1 1.313 1.445A9.192 9.192 0 0 1 12 20.664zm7.965-6.112a.977.977 0 0 1-.944-1.229 7.26 7.26 0 0 0-4.8-8.804.977.977 0 0 1 .594-1.86 9.212 9.212 0 0 1 6.092 11.169.976.976 0 0 1-.942.724zm-16.025-.39a.977.977 0 0 1-.953-.769 9.21 9.21 0 0 1 6.626-10.86.975.975 0 1 1 .52 1.882l-.015.004a7.259 7.259 0 0 0-5.223 8.558.978.978 0 0 1-.955 1.185z"></path></svg>

After

Width:  |  Height:  |  Size: 612 B

70
public/images/stop.svg

@ -0,0 +1,70 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Generator: Adobe Illustrator 25.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
version="1.1"
id="Capa_1"
x="0px"
y="0px"
viewBox="0 0 512 512"
style="enable-background:new 0 0 512 512;"
xml:space="preserve"
width="42"
height="42"
sodipodi:docname="stop.svg"
inkscape:version="0.92.4 (5da689c313, 2019-01-14)"><metadata
id="metadata9"><rdf:RDF><cc:Work
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs
id="defs7" /><sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1920"
inkscape:window-height="1017"
id="namedview5"
showgrid="false"
inkscape:zoom="0.4609375"
inkscape:cx="256"
inkscape:cy="256"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1"
inkscape:current-layer="Capa_1" />
<path
style="opacity:1;fill:#d35f5f;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:4.57322836;stroke-linecap:round;stroke-linejoin:bevel;stroke-miterlimit:4;stroke-dasharray:54.87874016, 54.87874016;stroke-dashoffset:0;stroke-opacity:1;paint-order:fill markers stroke"
d="M 253.4918,62.575347 A 199.59322,199.59322 0 0 0 53.898035,262.1691 199.59322,199.59322 0 0 0 253.4918,461.76285 199.59322,199.59322 0 0 0 453.08554,262.1691 199.59322,199.59322 0 0 0 253.4918,62.575347 Z m 0,37.966793 A 161.62711,161.62711 0 0 1 415.11875,262.1691 161.62711,161.62711 0 0 1 253.4918,423.79605 161.62711,161.62711 0 0 1 91.864835,262.1691 161.62711,161.62711 0 0 1 253.4918,100.54214 Z"
id="path819"
inkscape:connector-curvature="0" /><path
d="m 204.13597,177.55893 h 98.71197 c 19.47025,0 35.25402,15.78376 35.25402,35.25435 v 98.71197 c 0,19.47025 -15.78377,35.25402 -35.25435,35.25402 h -98.71164 c -19.47059,0 -35.25435,-15.78377 -35.25435,-35.25435 v -98.71164 c 0,-19.47059 15.78376,-35.25435 35.25435,-35.25435 z"
id="path2"
inkscape:connector-curvature="0"
style="fill:#d35f5f;stroke-width:1" /></svg>

After

Width:  |  Height:  |  Size: 2.6 KiB

BIN
public/images/telegram.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

2
public/images/trash.svg

@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" id="Outline" viewBox="0 0 24 24" width="32" height="32"><path fill="#919191" d="M21,4H17.9A5.009,5.009,0,0,0,13,0H11A5.009,5.009,0,0,0,6.1,4H3A1,1,0,0,0,3,6H4V19a5.006,5.006,0,0,0,5,5h6a5.006,5.006,0,0,0,5-5V6h1a1,1,0,0,0,0-2ZM11,2h2a3.006,3.006,0,0,1,2.829,2H8.171A3.006,3.006,0,0,1,11,2Zm7,17a3,3,0,0,1-3,3H9a3,3,0,0,1-3-3V6H18Z"/><path fill="#919191" d="M10,18a1,1,0,0,0,1-1V11a1,1,0,0,0-2,0v6A1,1,0,0,0,10,18Z"/><path fill="#919191" d="M14,18a1,1,0,0,0,1-1V11a1,1,0,0,0-2,0v6A1,1,0,0,0,14,18Z"/></svg>

After

Width:  |  Height:  |  Size: 585 B

BIN
public/images/user.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

BIN
public/images/wallpaper_simpleschat.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 210 KiB

BIN
public/images/whatsapp.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

155
public/index.html

@ -0,0 +1,155 @@
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Multi Channel | Simples Chat</title>
<link rel="icon" href="images/favicon.ico" />
<link rel="stylesheet" href="../public/css/styles.css" />
</head>
<body>
<div class="grid">
<!-- App background -->
<div class="top"></div>
<div class="bottom"></div>
<!-- App -->
<div class="app">
<div class="sidebar">
<!-- Sidebar header -->
<div class="sidebar-header">
<div class="sidebar-name">
<span class="sidebar-span"><span id="nameagent" style="text-transform: uppercase"></span> - <span id="myuniqueid"></span></span>
<span class="sidebar-span" id="queueagente"></span>
<span class="sidebar-span">STATUS: <span class="status-connect" id="status_agent"></span></span>
</div>
<div class="sidebar-header-icons">
<div id="btnsPause"></div>
<img src="images/power.svg" title="Sair do sistema"/>
</div>
</div>
<div class="sidebar-notifications">
<img src="images/notifications.svg" />
<div class="sidebar-notifications-message">
<span>Get Notified of New Messages</span>
<a href="#">Turn on desktop notifications <img src="images/gt-arrow.svg" /></a>
</div>
</div>
<!-- Sidebar search chat -->
<div class="search-chat">
<div class="search-bar">
<img src="images/search-icon.svg" />
<input type="text" placeholder="Search or start new chat" />
</div>
</div>
<!-- Chats -->
<div class="chats" id="chats"></div>
</div>
<div class="main">
<div class="chat-window-header">
<div class="chat-window-header-left" id="headermediaagent">
<img class="chat-window-contact-image" src="images/whatsapp.png" />
<div class="contact-name-and-status-container">
<span class="chat-window-contact-name"></span>
<span class="chat-window-contact-status">WhatsApp</span>
</div>
</div>
<div class="chat-window-header-right" id="headerbuttonsagent" >
<div class="chat-window-header-right-commands btn-info" id="tranferagent" title="Transferir atendimento">
<img class="chat-window-menu-icon" src="images/redo.svg" />
<span class="chat-window-menu-span"> Transferir</span>
</div>
<div class="chat-window-header-right-commands btn-danger" id="finalizaratendimento" title="Finalizar atendimento">
<img class="chat-window-menu-icon" src="images/cross-circle.svg" />
<span class="chat-window-menu-span"> Finalizar</span>
</div>
</div>
</div>
<div class="chat-window" id="chatwindowagent">
<div class="type-window-image" id="welcometomessage">
<h1>Bem-vindo</h1>
<h2>Seu canal de atendimento por mensagens!</h2>
<img src="images/community_message.svg" id="imgwelcome"/>
</div>
<div class="type-message-bar-icons-upload" id="uploadfiles">
<label for="uploadfile" class="type-message-bar-icons-upload-btn" style="cursor: pointer;">
<img src="images/file.svg" />
</label>
<input id="uploadfile" accept="*" type="file"
multiple="" style="display: none;">
<label for="uploadimage" class="type-message-bar-icons-upload-btn" style="cursor: pointer;">
<img src="images/picture.svg">
</label>
<input id="uploadimage" accept="image/*,video/mp4,video/3gpp,video/quicktime" type="file" multiple="" style="display: none;">
</div>
<div class="type-message-bar" id="typemessagebar">
<div class="type-message-bar-left">
<!-- <img src="images/icons.svg" /> -->
<img src="images/microphone.svg" id="voicerecorder" title="Gravar mensagem áudio" />
<img src="images/clip.svg" id="imgclip" title="Anexar arquivos ou images"/>
</div>
<div class="type-message-bar-center">
<textarea rows="4" type="text" id="fieldsendmessage" placeholder="Escreva uma mensagem"></textarea>
</div>
<div class="type-message-bar-right flex-center">
<img src="images/paper-plane.svg" title="Enviar mensagem"/>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="modalselect" class="modal">
<div class="modal-content">
<div class="modal-header">
<div class="modal-header-title"></div>
<span class="close">&times;</span>
</div>
<div class="modal-body">
<div class="modal-content-body"></div>
</div>
<div class="modal-footer">
<div class="modal-footer-content flex-1" id="footer-content-left"></div>
<div class="modal-footer-content flex-right" id="footer-content-right"></div>
</div>
</div>
</div>
<script>
let modal = document.getElementById("modalselect");
let span = document.getElementsByClassName("close")[0];
span.onclick = function () {
modal.style.display = "none";
}
window.onclick = function (event) {
if (event.target == modal) {
modal.style.display = "none";
}
}
</script>
<script src="js/jquery-3.6.0.min.js"></script>
<script src="js/config.js"></script>
<script src="js/cronometro.js"></script>
<script src="js/requests.js"></script>
<script src="js/util.js"></script>
<script src="js/main.js"></script>
</body>
</html>

5
public/js/config.js

@ -0,0 +1,5 @@
const ws = localStorage.getItem('obj_ws')
const server_api = localStorage.getItem('obj_server')
let mediaRecorder
const icontypes = ['csv', 'doc', 'pdf', 'txt', 'xls', 'zip', 'ppt']
const path = 'public'

56
public/js/cronometro.js

@ -0,0 +1,56 @@
let cron
let segundos = 0;
let minutos = 0;
$(function(){
$('#voicerecorder').on('click', function(){
start()
})
$('.modal-content-body').on('click', '#stoprecorder', function(){
pause()
})
})
const addZero = (time) => {
if(time < 10){
time = "0" + time
}
return time
}
function start() {
segundos = 0
minutos = 0
pause();
cron = setInterval(() => {
timer();
}, 1005);
}
function pause() {
clearInterval(cron);
}
function timer() {
segundos++;
if (segundos == 60) {
minutos++;
segundos = 0;
}
$('#minutes').text(addZero(minutos))
$('#seconds').text(addZero(segundos))
}
function converdata(timestamp, horario_server = false){
if(horario_server){
timestamp = timestamp * 1000
}
let date = new Date(timestamp);
let day = addZero(date.getDay())
let month = addZero(date.getMonth())
let hours = date.getHours();
let minutes = date.getMinutes();
let formattedTime = `${day}/${month} ` + addZero(hours) + ':' + addZero(minutes)
return formattedTime
}

2
public/js/jquery-3.6.0.min.js vendored

File diff suppressed because one or more lines are too long

452
public/js/main.js

@ -0,0 +1,452 @@
/**
* EVENTOS GERADOS PELO USUÁRIO DA APLICAÇÃO
*/
$(function(){
connect(ws)
notifications()
/**
* VOICE RECORDER
*/
$('.modal-content-body').on('click', '#stoprecorder', () => {
$('#msgRecorder').text('Paramos de gravar sua voz!')
mediaRecorder.stop()
})
$('#voicerecorder').on('click', () => {
recorderVoice()
})
/** FIM VOICE RECORDER */
/** EVENTOS DE CLICK NO BODY */
$("body").mouseup(function(){
$('#uploadfiles').fadeOut('slow')
});
/** INICIO DAS FUNCIONALIDADES */
startSendImage()
startSendFile()
startPause()
startTransfer()
startFinalizar()
exitSystem()
/** INICIA COM O HEADER DO CONTATO VAZIO */
startChannelMessage()
/** INICIA O CHAT NO FINAL DA CONVERSA */
$('.chats').on('click', function(){
scrollDown()
})
/** ENVIA AS MSG PELO ENTER */
$('#fieldsendmessage').bind('keyup', function(ev){
if(ev.keyCode == 13 && $(this).val().trim().length > 0){
sendMessage()
}
})
$('#fieldsendmessage').on('keyup', () => {
if($(this).val().trim().length == 0){
$(this).val('')
}
resizeSendMsg()
})
$('.type-message-bar-right').on('click',() => {
sendMessage()
})
$('#imgclip').on('click', function(){
modalStart()
$("#uploadimage").val('')
$('#uploadfile').val('')
if($('#uploadfiles').is(':hidden')){
$('#uploadfiles').fadeIn('slow')
} else {
$('#uploadfiles').fadeOut('slow')
}
})
$('#footer-content-right').on('click', '#footersend', () => {
sendMedia(mediaRecorder)
$('#modalselect').css({display: 'none'})
})
supervisorAgente()
})
/**
* EVENTOS DE CLICK PARA SELECIONAR A SESSÃO DE MENSAGEM/CONVERSA E RECUPERAR AS MENSAGENS TROCADAS NO ATENDIMENTO
* @param {*} id
*/
const selectNotification = (id) => {
marcarMensagemVista(id)
listaMensagem(id).then(() => {
let uniqueid
let number
let name
let dataContact
let protocolo
const dataRequest = JSON.parse(localStorage.getItem('obj_contact'))
listarAtendimentoAgente(localStorage.getItem('my_uniqueid'))
const allNotifications = JSON.parse(localStorage.getItem('obj_notification'))
hideButtons(false)
allNotifications.data.forEach(e => {
$('#' + e.uniqueid.replace('.', `\\.`)).removeClass('select-notification')
if(e.uniqueid == id && e.status == 0){
hideButtons(true)
}
})
$('#' + id.replace('.', `\\.`)).addClass('select-notification')
allNotifications.data.forEach(e => {
if(e.uniqueid == id && e.status == 0){
hideButtons(true)
}
})
if(dataRequest.data.length > 0){
dataContact = dataRequest.data.filter(e => {
if(id.trim() == e.event?.mensagem.uniqueid){
return true
}
})
}
allNotifications.data.forEach(e => {
if(id === e.uniqueid){
uniqueid = e.uniqueid
name = e.nome
number = e.cliente_id
protocolo = e.protocolo
}
})
localStorage.removeItem('session_window')
localStorage.removeItem('session_uniqueid')
localStorage.setItem('session_uniqueid', uniqueid)
localStorage.setItem('session_window', number)
$('.chat-window-contact-name').text(name)
$('.chat-window-contact-status').text('Protocolo: ' + protocolo)
/** REMOVE AS MSG NA E CONSTRIO A TELA NOVAMENTE (EVITAR DUPLICAR) */
$('.chat-window .sender').remove()
$('.chat-window .receiver').remove()
$('.chat-window .events').remove()
alertNotification(localStorage.getItem('session_uniqueid'),'remove')
dataContact.forEach(e => {
const datesend = e.event?.mensagem.datetime ? converdata(new Date(e.event?.mensagem.datetime).getTime()) : 'algumas horas';
let typesend = localStorage.getItem('my_uniqueid') == e.event.contact.number ? 'sender': 'receiver'
if(e.event?.mensagem.type == 'text'){
$('.chat-window').append(`
<div class="${typesend}">
<span class="${typesend}-message">${e.event.mensagem.content}</span>
<br/>
<span class="message-time">${datesend}</span>
</div>`
)
}
if(e.event?.mensagem.type == 'finish' || e.event?.mensagem.type == 're_start'){
$('.chat-window').append(`
<div class="events">
<span class="events-message">${e.event.mensagem.content}</span>
</div>`
)
}
if(e.event?.mensagem.type != 'text'){
const sendobj = {
filename: e.event?.mensagem.file_name,
id_provedor: e.event?.mensagem.id_provedor,
type: e.event?.mensagem.type,
mimetype: e.event?.mensagem.mimetype,
from: typesend
}
messageTypeMedia(sendobj)
}
if(e.de == localStorage.getItem('my_uniqueid')){
const datereceived = e.datetime ? converdata(e.datetime) : 'algumas horas';
if(e.type == 'text'){
$('.chat-window').append(`
<div class="${typesend}">
<span class="${typesend}-message">${e.msg}</span>
<br/>
<span class="message-time">${datereceived}</span>
</div>`)
} else if (e.type == 'audio' || e.type == 'voice'){
const audio = `<audio controls>
<source src="data:audio/mpeg;base64,${e.msg}"></source>
</audio>`
$('.chat-window').append(`
<div class="${typesend}">
<span class="${typesend}-message">${audio}</span>
<br/>
<span class="message-time">${datereceived}</span>
</div>`)
} else if (e.type == 'document'){
icontypes.forEach(l => {
if(e.filename.indexOf(l) >= 0){
$('.chat-window').append(`
<div class="${typesend}">
<span class="${typesend}-message message-column">
<a href="http://${server_api}/integracao/media/link/${e.uniqueid}/${window.btoa('application/' + l)}" target="_blank">
<img src="${path}/images/icons/${l}-file.png" style="max-width: 60px">
</a>
</span>
${e.filename}
<br/>
<span class="message-time">${datereceived}</span>
</div>`)
}
})
} else if (e.type == 'image'){
const fileimg = `data:${e.mimetype};base64,` + e.msg
$('.chat-window').append(`
<div class="${typesend}">
<span class="${typesend}-message"><img src="${fileimg}" style="max-width: 200px; max-height: 150px"></span>
<br/>
<span class="message-time">${datereceived}</span>
</div>`)
}
}
})
scrollDown()
})
startNotification()
}
/**
* REALIZA O ENVIO DE MENSAGEM ATRAVEZ DA API
* @param {*} obj
* @returns
*/
const sendMessage = (obj = {}) => {
const sendNumber = localStorage.getItem('session_window')
const myUniqueid = localStorage.getItem('my_uniqueid')
const agent = JSON.parse(localStorage.getItem('obj_status'))
let sendContent = (typeof obj.fileContent === "undefined") ? $('#fieldsendmessage').val() : obj.content
let name = agent.data.nome ? agent.data.nome : 'Atendente'
let uniqueid = localStorage.getItem('session_uniqueid')
let media = obj.media ? obj.media : 'whatsapp'
let type = obj.type ? obj.type : 'text'
let mimetype = obj.mimetype ? obj.mimetype : 'text'
let filename = obj.filename ? obj.filename : Date.now()
if(!sendContent){
return
}
let dataSend = {
"event": {
"type": "mensagem",
"contact": {
"name": name,
"number": myUniqueid,
"matricula": myUniqueid
},
"mensagem": {
"uniqueid": uniqueid,
"dst": sendNumber,
"id_provedor": `${uniqueid}_${Date.now()}`,
"type": type,
"mimetype": mimetype,
"media": media,
"content": sendContent,
"status": "sended"
}
}
}
if(type != 'audio'){
dataSend.event.mensagem.file_name = filename
}
enviarMensagem(dataSend)
let msgContent = type == 'text' ? sendContent : obj.fileContent
$('.chat-window').append(`
<div class="sender">
<span class="sender-message">${msgContent}</span>
<br/>
<span class="message-time">${converdata(Date.now())}</span>
</div>`)
scrollDown()
/** LIMPA O CAMPO DE ENVIO DE MENSAGEM */
$('#fieldsendmessage').val("")
}
/**
* ATUALIZA AS MENSAGEM QUE SÃO RECEBIDAS NA TELA DO ATENDIMENTO
* @param {*} ev
*/
const viewMessage = (ev) => {
const sessionOpen = localStorage.getItem('session_uniqueid')
const datesend = ev.event?.mensagem.datetime ? converdata(ev.event?.mensagem.datetime, true) : 'algumas horas';
if(ev.event?.mensagem.uniqueid == sessionOpen){
marcarMensagemVista(sessionOpen)
switch(ev.event?.mensagem.type){
case 'text':
$('.chat-window').append(`
<div class="receiver">
<span class="receiver-message">${ev.event.mensagem.content}</span>
<br/>
<span class="message-time">${datesend}</span>
</div>`)
break
case 'finish':
case 're_start':
$('.chat-window').append(`
<div class="events">
<span class="events-message">${ev.event.mensagem.content}</span>
</div>`)
break
}
const mediaDownload = ["image", "voice", "document", "audio", "video", "sticker"]
if(mediaDownload.indexOf(ev.event?.mensagem.type) >= 0){
const sendobj = {
filename: ev.event?.mensagem.file_name,
id_provedor: ev.event?.mensagem.id_provedor,
type: ev.event?.mensagem.type,
mimetype: ev.event?.mensagem.mimetype,
from: 'receiver'
}
messageTypeMedia(sendobj)
}
scrollDown()
}
}
/**
* APRESENTA AS NOVAS NOTIFICACOES DE ATENDIMENTO NA TELA DO ATENDENTE
* -> CADA ATENDIMENTO DEVE POSSUIR APENAS UMA NOTIFICACAO
* @param {*} data
*/
const receiveNotification = (data) => {
let validate = null
switch(data.event?.type){
case "mensagem":
if(data.event.mensagem.uniqueid != localStorage.getItem('session_uniqueid')){
notifyMe(data.event.contact.name, {
body: data.event.mensagem.content,
icon: `images/${data.event.mensagem.media}.png`,
silent: true
})
soundNotification(`${path}/sound/notification.mp3`)
}
/** VALIDA O NUMERO, VERIFICA SE O TEM ALGMA MSG INICIAL, SE JÁ TEVE UM NUMERO NA VERIFICACAO */
listarAtendimentoAgente(localStorage.getItem('my_uniqueid'))
validate = JSON.parse(localStorage.getItem('obj_notification'))
const vald = validate.data.filter((e) => {
return data.event?.mensagem.uniqueid == e.uniqueid
})
if(data.event?.contact.number != localStorage.getItem('session_window')){
alertNotification(data.event.mensagem.uniqueid)
}
if (data.event?.mensagem.uniqueid && data.event?.contact.number && vald.length == 0) {
notifications(
{
uniqueid: data.event?.mensagem.uniqueid,
cliente_id: data.event?.contact.number,
context: data.event?.mensagem.media,
profile_name: data.event?.contact.name,
data_reg: data.event?.mensagem.datetime,
status: 1,
action: 'mensagem',
}
)
}
break
case "actions":
let obj
switch(data.event.mensagem.type){
case 'start':
case 'transfer':
case 'att_status':
obj = {}
break
case 'finish':
case 're_start':
obj = {
uniqueid: data.event?.mensagem.uniqueid,
action: data.event.mensagem.type,
}
break
}
notifications(obj)
break
}
}
/**
* MANTEM TODAS AS MENSAGENS ARMAZENADAS NO LOCALSTORAGE, SEMPRE QUE ENVIA E RECEBE SERÁ GUARDADO
* @param {*} ev
*/
const keepMensage = (ev) => {
let msg = JSON.parse(localStorage.getItem('keep_msg'))
if(!msg){
msg = { data: [] }
}
if(ev.event?.contact && ev.event?.mensagem.content){
msg.data.push(ev)
localStorage.removeItem('keep_msg');
localStorage.setItem('keep_msg', JSON.stringify(msg))
}
}
/**
* FUNÇÃO PARA CAPTURAR O ARQUIVO A SER ENVIADO
*/
const sendMedia = (media = null) => {
let rec
let filename
if($("#footer-content-left audio").length){
if(media.state == 'recording'){
media.stop();
}
let el = $("#footer-content-left audio")[0].src
fileContent = $("#footer-content-left audio")[0].outerHTML
sendMessage({ content: el.replace("data:", "").replace(/^.+,/, ""), type: 'audio', mimetype: 'audio/mpeg', fileContent })
return
} else if($("#uploadfile")[0].files[0]) {
let el = $("#uploadfile")[0].files[0]
rec = new Blob([el], { type : el.type })
let filesent = $("#myImg")
filesent[0].id = Date.now()
imgContent = filesent.css({'max-width': '60px'})[0].outerHTML
fileContent = `<a href="${URL.createObjectURL(rec)}" target="_blank">${imgContent}</a>`
filename = el.name
} else {
rec = $("#uploadimage")[0].files[0]
let filesent = $("#myImg")
filesent[0].id = Date.now()
fileContent = filesent.css({'max-width': '350px'})[0].outerHTML
$("#myImg").empty()
}
const file = new FileReader();
file.onload = function() {
const typefile = rec.type.split("/")[0].indexOf('image') >= 0 ? rec.type.split("/")[0] : 'document'
sendMessage({ content: file.result.replace("data:", "").replace(/^.+,/, ""), type: typefile, mimetype: rec.type, fileContent, filename })
}
file.readAsDataURL(rec);
}

263
public/js/requests.js

@ -0,0 +1,263 @@
const enviarMensagem = (dataSend) => {
$.ajax({
url: `${server_api}/integracao/media/api/agente/enviarMensagem`,
type: "POST",
data: JSON.stringify(dataSend),
success: function (res) {
//console.log(res)
},
error: function (res) {
$('.chat-window').append(`<div class="sender"><span class="sender-message">MENSAGEM NÃO FOI ENVIADA!</span></div>`)
}
});
}
const listaMensagem = (uniqueid) => new Promise((resolve) => {
$.ajax({
url: `${server_api}/integracao/media/api/agente/listarMensagem`,
type: "POST",
data: JSON.stringify({
uniqueid
}),
success: function (res) {
localStorage.removeItem('obj_contact')
localStorage.setItem('obj_contact', JSON.stringify(res))
resolve(res)
},
error: function (res) {
alert('Nao foi possivel carregar as listas de mensagens.')
}
})
})
const listarAgentesDisponivel = () => new Promise((resolve) => {
$.ajax({
url: `${server_api}/integracao/media/api/agente/listarAgentesDisponivel`,
type: "GET",
success: function (res) {
resolve(res)
},
error: function (res) {
alert('Nao foi possivel carregar as listas de agentes.')
}
});
})
const listarAtendimentoAgente = (matricula) => new Promise((resolve) => {
$.ajax({
url: `${server_api}/integracao/media/api/agente/listarAtendimentoAgente`,
type: "POST",
data: JSON.stringify({
matricula
}),
success: function (res) {
localStorage.removeItem('obj_notification')
localStorage.setItem('obj_notification', JSON.stringify(res))
resolve(res)
},
error: function (res) {
}
});
})
const listarPausasAgente = (matricula) => new Promise((resolve) => {
$.ajax({
url: `${server_api}/integracao/media/api/agente/listarPausasAgente`,
type: "POST",
data: JSON.stringify({
matricula
}),
success: function (res) {
resolve(res)
},
error: function (res) {
alert('Nao foi possivel carregar as listas de pausa.')
}
});
})
const entrarPausa = (id_pausa, matricula) => new Promise((resolve) => {
$.ajax({
url: `${server_api}/integracao/media/api/agente/entrarPausa`,
type: "POST",
data: JSON.stringify({
id_pausa,
matricula
}),
success: function (res) {
if (res.status == 'success') {
alert('Agente em Pausa!')
resolve(res)
} else {
alert(res.message)
}
},
error: function (res) {
alert('Não foi possível atribuir a pausa no momento!')
}
});
})
const sairPausa = (matricula) => new Promise((resolve) => {
$.ajax({
url: `${server_api}/integracao/media/api/agente/sairPausa`,
type: "POST",
data: JSON.stringify({
matricula
}),
success: function (res) {
alert('Pausa removida do Agente!')
resolve(res)
},
error: function (res) {
alert('Nao foi possivel carregar as listas de pausa.')
}
});
})
const entrar = (matricula, queue) => new Promise((resolve) => {
$.ajax({
url: `${server_api}/integracao/media/api/agente/entrar`,
type: "POST",
data: JSON.stringify({
id_fila: queue,
matricula
}),
success: function (res) {
resolve(res)
},
error: function (res) {
resolve(res)
}
});
})
const sair = (matricula) => {
$.ajax({
url: `${server_api}/integracao/media/api/agente/sair`,
type: "POST",
data: JSON.stringify({
matricula
}),
success: function (res) {
if (res.status == 'success') {
alert('Desconectado do sistema!')
window.close()
} else {
alert(res.message)
}
},
error: function (res) {
alert('Nao foi possivel desconectar do sistema.')
}
});
}
const finalizarAtendimento = (matricula, uniqueid) => new Promise((resolve) => {
$.ajax({
url: `${server_api}/integracao/media/api/agente/finalizarAtendimento`,
type: "POST",
data: JSON.stringify({
matricula,
uniqueid
}),
success: function (res) {
if (res.status == "success") {
alert('Atendimento foi finalizado!')
notifications({
matricula,
uniqueid,
action: 'finish'
})
}
resolve(res)
},
error: function (res) {
alertModal(
`<h4>OPS... HOUVE UM PROBLEMA &nbsp</h4><img id="imgReconnect" width="25px" src="${path}/images/alert.png">
<p>Não foi possível finalizar atendimento!</p>
<p>Error: ${res}</p>`,
'OPS!!!'
)
}
});
})
const statusAgente = (matricula) => new Promise((resolve) => {
$.ajax({
url: `${server_api}/integracao/media/api/agente/statusAgente`,
type: "POST",
data: JSON.stringify({
matricula
}),
success: function(res) {
localStorage.removeItem('obj_status')
localStorage.setItem('obj_status', JSON.stringify(res))
resolve(res)
},
error: function(res) {
console.log(res)
alertModal(
`<h4>RECONECTANDO, AGUARDE &nbsp</h4><img id="imgReconnect" width="25px" src="${path}/images/loading.gif">`,
'[ POR FAVOR AGUARDE ]'
)
console.log('statusAgente: ' + res.responseText)
}
});
})
const atualizaAgente = () => new Promise((resolve) => {
$.ajax({
url: window.location.origin + '/index.php?idProg=14&idSubProg=3&ajax=1&acao=atualiza',
type: "GET",
success: function(res){
resolve(res)
}
});
})
const transferirAtendimento = (origem, destino, uniqueid) => new Promise((resolve) => {
$.ajax({
url: `${server_api}/integracao/media/api/agente/transferirAtendimento`,
type: "POST",
data: JSON.stringify({
matricula_origem: origem,
matricula_destino: destino,
uniqueid
}),
success: function (res) {
if (res.status == 'success') {
alert('Atendimento foi transferido!')
resolve(res)
} else {
alert(res.message)
}
resolve(res)
},
error: function (res) {
alertModal(
`<h4>OPS... HOUVE UM PROBLEMA &nbsp</h4><img id="imgReconnect" width="25px" src="${path}/images/alert.png">
<p>Não foi possível carregar as infoemacoes do agente!</p>
<p>Error: ${res}</p>`,
'OPS!!!'
)
}
});
})
const marcarMensagemVista = (uniqueid) => {
$.ajax({
url: `${server_api}/integracao/media/api/agente/marcarMensagemVista`,
type: "POST",
data: JSON.stringify({
uniqueid
}),
success: function (res) {
//console.log('success')
},
error: function (res) {
alert('Nao foi possivel carregar as informacoes do agente.')
}
});
}

588
public/js/util.js

@ -0,0 +1,588 @@
/** ROLAGEM DO SCROLL ATÉ NO FINAL DO CHAT */
const scrollDown = () => {
$(".chat-window").animate({scrollTop: 99999 * $(this).height() }, 1);
}
/** LIMPA O CONTEUDO DO MODAL */
const modalStart = () => {
$('#footer-content-left').empty()
$('#footer-content-right').empty()
$('.modal-content-body').empty()
$('.modal-header-title').empty()
}
/** INICIA COM O HEADER DO CONTATO VAZIO */
const startChannelMessage = () => {
$('#typemessagebar').hide()
$('#headerbuttonsagent').hide()
$("#headermediaagent").hide()
$('#chatwindowagent').css({ overflow: 'hidden' })
$('#uploadfiles').hide()
}
/** CARREGA OS ELEMENTOS DA SESSAO DA CONVERSA */
const startNotification = () => {
$('#typemessagebar').show();
$('#headerbuttonsagent').show()
$("#headermediaagent").show()
$('#welcometomessage').hide()
$('#chatwindowagent').css({ overflow: 'scroll' })
}
const removeMensagemBody = () => {
$('.chat-window .sender').remove()
$('.chat-window .receiver').remove()
$('.chat-window .events').remove()
}
const hideButtons = (type) => {
if(type){
$('#voicerecorder').css({'pointer-events': 'none'})
$('#imgclip').css({'pointer-events': 'none'})
$('#fieldsendmessage').css({'pointer-events': 'none'})
$('#fieldsendmessage').hide()
$('#tranferagent').hide()
$('#finalizaratendimento').hide()
} else {
$('#voicerecorder').css({'pointer-events': 'auto'})
$('#imgclip').css({'pointer-events': 'auto'})
$('#fieldsendmessage').css({'pointer-events': 'auto'})
$('#fieldsendmessage').show()
$('#tranferagent').show()
$('#finalizaratendimento').show()
}
}
const alertModal = (title, message) => {
modalStart()
$(this).css({'align-items': 'center'})
$('.modal-content-body').append(() =>
title
);
$('.modal-header-title').append(`<span class="fz-14">${message}</span>`)
$('#modalselect').show()
}
/**
* HABILITA O ENVIO DE ARQUIVO DE IMAGENS E APRESENTA UMA MODAL PARA APRESENTAÇÃO DA IMAGEM SELECIONADA
*/
const startSendImage = () => {
modalStart()
$("#uploadimage").on('change', function(){
const file = new FileReader();
file.readAsDataURL(this.files[0]);
const imgName = this.files[0].name
file.onload = function(e) {
$('#myImg').remove()
$('#footername').remove()
$('#footersend').remove()
$('.modal-content-body').append(`<img id="myImg" src="${e.target.result}" >`)
$('#footer-content-left').append(`<label id="footername"><b>Arquivo:</b> ${imgName}</label>`)
$('#footer-content-right').append(`<a href="#" class="btn-send" id="footersend"><img src="${path}/images/enter.svg" /></a>`)
}
$('#modalselect').show()
})
}
/**
* HABILITA O ENVIO DE ARQUIVO DE IMAGENS E APRESENTA UMA MODAL PARA APRESENTAÇÃO DA IMAGEM SELECIONADA
*/
const openImgModal = (link) => {
modalStart()
$('#myImg').remove()
$('.modal-content-body').append(`<a href="${link}" target="_blank"><img id="myImg" src="${link}"></a>`)
$('#modalselect').show()
}
const resizeSendMsg = () => {
let tamField = $('#fieldsendmessage')[0].clientWidth
let qtdField = $('#fieldsendmessage').val().length
if((qtdField * 8) >= tamField){
$('#fieldsendmessage').attr('rows', 4)
} else {
$('#fieldsendmessage').attr('rows', 1)
}
}
const startSendFile = () => {
modalStart()
$("#uploadfile").on('change', function(){
const file = new FileReader();
file.readAsDataURL(this.files[0]);
const filename = this.files[0].name
const typefile = this.files[0].name.split('.')[1]
$('#myImg').remove()
icontypes.forEach(e => {
if(typefile.indexOf(e) >= 0){
$('.modal-content-body').append(`<img id="myImg" src="${path}/images/icons/${e}-file.png" style="max-width: 100px">`)
return
}
})
if(!$('#myImg')[0]){
$('.modal-content-body').append(`<img id="myImg" src="${path}/images/icons/notfound-file.png" style="max-width: 100px">`)
}
file.onload = function(e) {
$('#footername').remove()
$('#footersend').remove()
$('#footer-content-left').append(`<label id="footername"><b>Arquivo:</b> ${filename}</label>`)
$('#footer-content-right').append(`<a href="#" class="btn-send" id="footersend"><img src="${path}/images/enter.svg" /></a>`)
}
$('#modalselect').show()
})
}
const startPause = () => {
$("#btnsPause").on('click', '#entrePause', function(){
listarPausasAgente(localStorage.getItem('my_uniqueid')).then((pausas) => {
modalStart()
$("#modalselect").show()
$('.modal-content-body').append(() => {
let selectPause = ''
pausas.data.forEach(e => {
if(e.matricula != localStorage.getItem('my_uniqueid')){
selectPause += `<option value="${e.id}">${e.motivo}</option>`
}
})
if(selectPause.length > 0){
selectPause = `<select id="selectpause">${selectPause}</select>`
} else {
selectPause = '<h3>Nenhuma pausa foi encontrado!</h3>'
}
return selectPause
});
$('.modal-header-title').append(`<span class="fz-14">Selecione uma Pausa:</span>`)
$('#footer-content-right').append(`<a href="#" class="btn-send" id="pausesend"><img src="${path}/images/enter.svg" /></a>`)
$('#modalselect').show()
})
})
$("#btnsPause").on('click', '#exitPause', () => {
sairPausa(localStorage.getItem('my_uniqueid')).then(() => {
monitorPausaAgente()
})
})
$('#footer-content-right').on('click', '#pausesend', () => {
entrarPausa($("#selectpause").val(), localStorage.getItem('my_uniqueid')).then(() => {
$('#modalselect').css({display: 'none'})
monitorPausaAgente()
})
})
}
const startTransfer = () => {
$("#tranferagent").on('click', function(){
modalStart()
listarAgentesDisponivel().then((agentes) => {
$('.modal-content-body').append(() => {
let optAgent = null
agentes.data.forEach(e => {
if(e.matricula != localStorage.getItem('my_uniqueid')){
optAgent += `<option value="${e.matricula}">${e.nome} - ${e.fila}</option>`
}
})
if(optAgent){
return `<select id="selectranfer">${optAgent}</select>`
}
$('#transfersend').hide()
return `<h3>Nenhum agente disponível no momento!</h3>`
});
})
$('.modal-header-title').append(`<span class="fz-14">Selecione um agente para transferir:</span>`)
$('#footer-content-right').append(`<a href="#" class="btn-send" id="transfersend"><img src="${path}/images/enter.svg" /></a>`)
$('#modalselect').show()
})
$('#footer-content-right').on('click', '#transfersend', () => {
transferirAtendimento(localStorage.getItem('my_uniqueid'), $("#selectranfer").val(), localStorage.getItem('session_uniqueid')).then((res) => {
if(res.status == 'success'){
hideButtons(true)
notifications({ matricula: localStorage.getItem('my_uniqueid'), uniqueid: localStorage.getItem('session_uniqueid'), action: 'finish' })
$('#modalselect').css({display: 'none'})
}
})
})
}
const exitSystem = () => {
$("#exitSystem").on('click', function(){
if(confirm('Deseja realmente desconectar do sistema?')){
sair(localStorage.getItem('my_uniqueid'))
}
})
}
const startFinalizar = () => {
$("#finalizaratendimento").on('click', function(){
if(confirm('Deseja realmente finalizar o atendimento?')){
finalizarAtendimento(localStorage.getItem('my_uniqueid'), localStorage.getItem('session_uniqueid'))
}
})
}
/**
* FUNÇÃO PARA RECUPERAR O AUDIO DO MICROFONE
*/
function recorderVoice () {
$('#modalselect').show()
modalStart()
$('.modal-content-body').append(`<img src="${path}/images/stop.svg" class="cursor-pointer" id="stoprecorder"/>
<div class="modal-content-body-item">
<div class="modal-content-body-itens">
<span class="fz-18"><b><span id="minutes">00</span>:<span id="seconds">00</span></b></span>
</div>
<div class="modal-content-body-itens">
<span id="msgRecorder">Estamos gravando sua linda voz ...</span>
</div>
</div>`)
$('#footer-content-right').append(`<a href="#" class="btn-send" id="footersend"><img src="${path}/images/enter.svg" /></a>`)
navigator.mediaDevices.getUserMedia({video: false, audio: true}).then(
stream => {
let option = {
type: 'audio/mpeg',
};
mediaRecorder = new MediaRecorder(stream)
let chunks = []
mediaRecorder.ondataavailable = (data) => {
chunks.push(data.data)
}
mediaRecorder.onstop = () => {
const blob = new Blob(chunks, option)
const reader = new FileReader()
reader.readAsDataURL(blob)
reader.onloadend = () => {
const audio = document.createElement('audio')
audio.src = reader.result
audio.controls = true
$('#footer-content-left').append(audio)
}
}
mediaRecorder.start()
}, err => {
// add msg de error
}
)
}
/**
* ENVIA AS MENSAGEM DO TIPO MIDIA (RECEPTIVO)
* @param {*} id_provedor
* @param {*} type
* @param {*} mimetype
* @param {*} delivery
* @returns
*/
const messageTypeMedia = (obj) => {
const fileDownload = server_api + "/integracao/media/link/" + obj.id_provedor + "/" + window.btoa(obj.mimetype)
if(obj.type == 'voice' || obj.type == 'audio'){
$('.chat-window').append(`
<div class="${obj.from}">
<span class="${obj.from}-message">
<audio controls><source src="${fileDownload}" type="${obj.mimetype}"></audio>
<a href="${fileDownload}"><img src="${path}/images/arrow-down.svg" class="btn-default"></a>
</span>
<br/>
<span class="message-time">${converdata(Date.now())}</span>
</div>`)
return
}
if(obj.type == 'video'){
$('.chat-window').append(`
<div class="${obj.from}">
<span class="${obj.from}-message">
<video autoplay controls>
<source src="${fileDownload}" type="${obj.mimetype}">
</video>
</span>
<br/>
<span class="message-time">${converdata(Date.now())}</span>
</div>`)
return
}
if(obj.type == 'document'){
const typefile = obj.filename.split('.')[1]
let icon
if(icontypes.indexOf(typefile) >= 0){
icon = `<img src="${path}/images/icons/${typefile}-file.png" style="max-width: 60px"></img>`
} else {
icon = `<img src="${path}/images/icons/notfound-file.png" style="max-width: 60px"></img>`
}
$('.chat-window').append(`
<div class="${obj.from}">
<span class="${obj.from}-message message-column">
<a href="${fileDownload}" target="_blank">
${icon}
</a>
</span>
<span class="fz-12">${obj.filename}</span>
<br/>
<span class="message-time">${converdata(Date.now())}</span>
</div>`)
return
}
if(obj.type == 'image' || obj.type == 'sticker'){
$('.chat-window').append(`
<div class="${obj.from}">
<span class="${obj.from}-message message-column">
<img src="${fileDownload}" style="max-width: 200px; max-height: 150px" onclick="openImgModal('${fileDownload}')" >
</span>
<span class="message-time">${converdata(Date.now())}</span>
</div>`)
return
}
}
/**
* data = { number, media, name, datetime }
*
* @param {} data
* @returns
*/
const buildNotification = (data = {}) => {
if(data.length == 'undefined'){
return
}
const datesend = converdata(data.datetime)
const status = data.status == 0 ? 'opacity-3' : ''
return `<div class="chat ${status}" id="${data.uniqueid}" onclick="selectNotification(this.id)">
<div class="chat-left">
<img src="${path}/images/${data.media}.png"/>
</div>
<div class="chat-right ">
<div class="chat-right-top">
<span class="contact-name">${data.name}</span>
<span class="chat-date">${datesend}</span>
</div>
<div class="chat-right-bottom">
<div class="chat-right-bottom-left">
<span class="chat-message-${data.media}">${data.media}</span>
</div>
<div class="chat-right-bottom-right"></div>
</div>
</div>
</div>`
}
const alertNotification = (uniqueid, type = 'add') => {
$('#' + uniqueid.replace('.', `\\.`) + " .chat-right-bottom-right").empty()
if(type != 'remove'){
listaMensagem(uniqueid).then(mensagens => {
const countMsg = mensagens.data.filter(e => {
if(e.event.mensagem.status != 'read'){
return true
}
})
let notf = countMsg.length
$('#' + uniqueid.replace('.', `\\.`) + " .chat-right-bottom-right").append(`<span class="unread-messages-number">${notf}</span>`)
})
}
}
function soundNotification(url) {
const audio = new Audio(url);
audio.play();
}
const notifyMe = (title, content) => {
if (!("Notification" in window)) {
console.log("This browser does not support desktop notification");
} else if (Notification.permission === "granted") {
let notification = new Notification(title,{
body: content.body,
icon: content.icon,
silent: true
})
} else if (Notification.permission !== 'denied' || Notification.permission === "default") {
Notification.requestPermission(function (permission) {
if (permission === "granted") {
let notification = new Notification(title, {
body: content.body,
icon: content.icon,
silent: true
})
}
})
}
}
/**
* CRIA AS NOTIFICACOES DE TODOS OS ATENDIMENTOS NA INICIALIZACAO DO SISTEMA OU ATUALIZACAO
*/
const notifications = (obj = {}) => {
/** STATUS DO AGENTE */
monitorPausaAgente()
listarAtendimentoAgente(localStorage.getItem('my_uniqueid')).then((notification) => {
let chatList = ''
$('#chats').empty()
if(!notification.data){
return
}
if(Object.values(obj).length > 0) {
if(obj.action == "mensagem"){
notification.data.push(obj)
} else if (obj.action == "finish"){
/** RECEBIMENTO DO SOCKET PARA ALTERAR ESTILO DO HTML */
notification.data.forEach(el => {
if(el.uniqueid == obj.uniqueid){
/** MARCA ATENDIMENTO COMO FINALIZADO */
obj.action == "finish" ? el.status = 0 : null
/** REMOVE OS BOTÕES E CAIXA DE TEXTO DEPOIS DA FINALIZACAO */
if(el.uniqueid == localStorage.getItem('session_uniqueid')){
hideButtons(true)
}
}
})
}
}
notification.data.sort((a, b) => b.status - a.status)
notification.data.forEach(e => {
chatList += buildNotification({
uniqueid: e.uniqueid,
number: e.cliente_id,
media: e.context,
name: e.profile_name,
datetime: e.data_reg,
status: e.status,
protocolo: e.protocolo
})
})
$('#chats').append(chatList)
})
}
const monitorPausaAgente = () => {
statusAgente(localStorage.getItem('my_uniqueid')).then((agente) => {
let statusagent = agente.data[0].status
const status = [
{ status: "LIVRE", class: "status-connect", html: `id="entrePause" src="${path}/images/pause.svg" title="Atribuir uma pausa"`, descricao: statusagent },
{ status: "PAUSA", class: "status-desconnect", html: `id="exitPause" src="${path}/images/play.svg" title="Remover a pausa"`, descricao: `${statusagent} - ${agente.data[0].motivo_pausa}` },
{ status: "OCUPADO", class: "status-reconnect", html: `id="entrePause" src="${path}/images/pause.svg" title="Atribuir uma pausa"`, descricao: statusagent },
{ status: "INDISPONIVEL", class: "status-reconnect", html: `id="exitPause" src="${path}/images/play.svg" title="Remover a pausa"`, descricao: statusagent },
]
if(statusagent){
status.forEach(el => {
if(el.status == statusagent){
$('#status_agent').attr('class', el.class)
$('#status_agent').text(el.descricao)
$('#btnsPause').empty()
$('#btnsPause').html(`<img ${el.html} >`)
}
})
$('#myuniqueid').text(localStorage.getItem('my_uniqueid'))
/** CONFIGURACAO NOME */
$('#nameagent').text(agente.data[0].nome)
/** CONFIGURACAO FILA */
$('#queueagente').text(agente.data[0].fila)
}
})
}
const supervisorAgente = () => {
/** MONITORA AS CONFIGURACOES */
setInterval(() => {
atualizaAgente().then((res) => {
if (res.indexOf('close') >= 0) {
window.close()
}
})
statusAgente(localStorage.getItem('my_uniqueid')).then((agente) => {
if (agente.status == 'error' && agente.message == 'Agente não encontrado') {
window.close()
}
})
}, 30000 );
}
/** CONNECT TO WS */
const connect = (wsserver) => {
const ws = new WebSocket(wsserver);
ws.onmessage = function(e) {};
ws.onclose = function(e) {
setTimeout(function() {
connect(wsserver);
}, 3000);
};
ws.onerror = function(err) {
alertModal(
`<h4>TENTANDO RECONECTAR AO SISTEMA &nbsp</h4><img id="imgReconnect" width="25px" src="${path}/images/loading.gif">`,
'[ AGUARDE ALGUNS MINUTOS ]'
)
$("#status_agent").addClass("status-desconnect").text('DESCONECTADO');
ws.close();
};
ws.onopen = function wsconnect() {
$("#status_agent").addClass("status-reconnect").text('RECONECTANDO ...');
entrar(localStorage.getItem('my_uniqueid'), localStorage.getItem('obj_queue')).then((login) => {
if(login.status == 'success' || login.message.indexOf('autenticado') >= 0){
$('#modalselect').css({display: 'none'})
monitorPausaAgente()
ws.send(JSON.stringify({matricula: localStorage.getItem('my_uniqueid')}));
notifications()
} else {
wsconnect()
}
})
};
ws.addEventListener("open", () => {
const storage = ['my_uniqueid', 'keep_msg', 'obj_contact', 'session_uniqueid', 'session_window']
ws.addEventListener("message", e => {
/** att: atualizacao do websocket */
if(e.data != 'att'){
const data = JSON.parse(e?.data)
if(localStorage.getItem('session_uniqueid') == null){
localStorage.setItem('session_uniqueid', data.event.mensagem.uniqueid)
}
if($("#welcometomessage").is(':hidden') == false){
localStorage.setItem('session_window', null)
}
/** ATUALIZACAO DA SESSAO CORRENTE (VALIDA PARA NAO ENVIAR PARA TELA INICIAL)*/
if(localStorage.getItem('session_window') !== 'null'){
viewMessage(data)
}
/** RECEBE AS PRIMEIRAS MENSAGENS */
receiveNotification(data)
}
})
})
}

BIN
public/sound/notification.mp3

Binary file not shown.

4
storage/logs/display_erros.log

@ -0,0 +1,4 @@
[25-May-2022 21:05:43 Europe/Berlin] PHP Fatal error: Uncaught Error: Class 'app\Providers\Crypt' not found in C:\Users\lucas.awade\Desktop\Arquivos\Projetos\WhatsApp\simples_client\index.php:9
Stack trace:
#0 {main}
thrown in C:\Users\lucas.awade\Desktop\Arquivos\Projetos\WhatsApp\simples_client\index.php on line 9

7
vendor/autoload.php vendored

@ -0,0 +1,7 @@
<?php
// autoload.php @generated by Composer
require_once __DIR__ . '/composer/autoload_real.php';
return ComposerAutoloaderInit6ef9e3db94fd62f31f9f6db66865d14c::getLoader();

479
vendor/composer/ClassLoader.php vendored

@ -0,0 +1,479 @@
<?php
/*
* This file is part of Composer.
*
* (c) Nils Adermann <naderman@naderman.de>
* Jordi Boggiano <j.boggiano@seld.be>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Composer\Autoload;
/**
* ClassLoader implements a PSR-0, PSR-4 and classmap class loader.
*
* $loader = new \Composer\Autoload\ClassLoader();
*
* // register classes with namespaces
* $loader->add('Symfony\Component', __DIR__.'/component');
* $loader->add('Symfony', __DIR__.'/framework');
*
* // activate the autoloader
* $loader->register();
*
* // to enable searching the include path (eg. for PEAR packages)
* $loader->setUseIncludePath(true);
*
* In this example, if you try to use a class in the Symfony\Component
* namespace or one of its children (Symfony\Component\Console for instance),
* the autoloader will first look for the class under the component/
* directory, and it will then fallback to the framework/ directory if not
* found before giving up.
*
* This class is loosely based on the Symfony UniversalClassLoader.
*
* @author Fabien Potencier <fabien@symfony.com>
* @author Jordi Boggiano <j.boggiano@seld.be>
* @see https://www.php-fig.org/psr/psr-0/
* @see https://www.php-fig.org/psr/psr-4/
*/
class ClassLoader
{
private $vendorDir;
// PSR-4
private $prefixLengthsPsr4 = array();
private $prefixDirsPsr4 = array();
private $fallbackDirsPsr4 = array();
// PSR-0
private $prefixesPsr0 = array();
private $fallbackDirsPsr0 = array();
private $useIncludePath = false;
private $classMap = array();
private $classMapAuthoritative = false;
private $missingClasses = array();
private $apcuPrefix;
private static $registeredLoaders = array();
public function __construct($vendorDir = null)
{
$this->vendorDir = $vendorDir;
}
public function getPrefixes()
{
if (!empty($this->prefixesPsr0)) {
return call_user_func_array('array_merge', array_values($this->prefixesPsr0));
}
return array();
}
public function getPrefixesPsr4()
{
return $this->prefixDirsPsr4;
}
public function getFallbackDirs()
{
return $this->fallbackDirsPsr0;
}
public function getFallbackDirsPsr4()
{
return $this->fallbackDirsPsr4;
}
public function getClassMap()
{
return $this->classMap;
}
/**
* @param array $classMap Class to filename map
*/
public function addClassMap(array $classMap)
{
if ($this->classMap) {
$this->classMap = array_merge($this->classMap, $classMap);
} else {
$this->classMap = $classMap;
}
}
/**
* Registers a set of PSR-0 directories for a given prefix, either
* appending or prepending to the ones previously set for this prefix.
*
* @param string $prefix The prefix
* @param array|string $paths The PSR-0 root directories
* @param bool $prepend Whether to prepend the directories
*/
public function add($prefix, $paths, $prepend = false)
{
if (!$prefix) {
if ($prepend) {
$this->fallbackDirsPsr0 = array_merge(
(array) $paths,
$this->fallbackDirsPsr0
);
} else {
$this->fallbackDirsPsr0 = array_merge(
$this->fallbackDirsPsr0,
(array) $paths
);
}
return;
}
$first = $prefix[0];
if (!isset($this->prefixesPsr0[$first][$prefix])) {
$this->prefixesPsr0[$first][$prefix] = (array) $paths;
return;
}
if ($prepend) {
$this->prefixesPsr0[$first][$prefix] = array_merge(
(array) $paths,
$this->prefixesPsr0[$first][$prefix]
);
} else {
$this->prefixesPsr0[$first][$prefix] = array_merge(
$this->prefixesPsr0[$first][$prefix],
(array) $paths
);
}
}
/**
* Registers a set of PSR-4 directories for a given namespace, either
* appending or prepending to the ones previously set for this namespace.
*
* @param string $prefix The prefix/namespace, with trailing '\\'
* @param array|string $paths The PSR-4 base directories
* @param bool $prepend Whether to prepend the directories
*
* @throws \InvalidArgumentException
*/
public function addPsr4($prefix, $paths, $prepend = false)
{
if (!$prefix) {
// Register directories for the root namespace.
if ($prepend) {
$this->fallbackDirsPsr4 = array_merge(
(array) $paths,
$this->fallbackDirsPsr4
);
} else {
$this->fallbackDirsPsr4 = array_merge(
$this->fallbackDirsPsr4,
(array) $paths
);
}
} elseif (!isset($this->prefixDirsPsr4[$prefix])) {
// Register directories for a new namespace.
$length = strlen($prefix);
if ('\\' !== $prefix[$length - 1]) {
throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator.");
}
$this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
$this->prefixDirsPsr4[$prefix] = (array) $paths;
} elseif ($prepend) {
// Prepend directories for an already registered namespace.
$this->prefixDirsPsr4[$prefix] = array_merge(
(array) $paths,
$this->prefixDirsPsr4[$prefix]
);
} else {
// Append directories for an already registered namespace.
$this->prefixDirsPsr4[$prefix] = array_merge(
$this->prefixDirsPsr4[$prefix],
(array) $paths
);
}
}
/**
* Registers a set of PSR-0 directories for a given prefix,
* replacing any others previously set for this prefix.
*
* @param string $prefix The prefix
* @param array|string $paths The PSR-0 base directories
*/
public function set($prefix, $paths)
{
if (!$prefix) {
$this->fallbackDirsPsr0 = (array) $paths;
} else {
$this->prefixesPsr0[$prefix[0]][$prefix] = (array) $paths;
}
}
/**
* Registers a set of PSR-4 directories for a given namespace,
* replacing any others previously set for this namespace.
*
* @param string $prefix The prefix/namespace, with trailing '\\'
* @param array|string $paths The PSR-4 base directories
*
* @throws \InvalidArgumentException
*/
public function setPsr4($prefix, $paths)
{
if (!$prefix) {
$this->fallbackDirsPsr4 = (array) $paths;
} else {
$length = strlen($prefix);
if ('\\' !== $prefix[$length - 1]) {
throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator.");
}
$this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
$this->prefixDirsPsr4[$prefix] = (array) $paths;
}
}
/**
* Turns on searching the include path for class files.
*
* @param bool $useIncludePath
*/
public function setUseIncludePath($useIncludePath)
{
$this->useIncludePath = $useIncludePath;
}
/**
* Can be used to check if the autoloader uses the include path to check
* for classes.
*
* @return bool
*/
public function getUseIncludePath()
{
return $this->useIncludePath;
}
/**
* Turns off searching the prefix and fallback directories for classes
* that have not been registered with the class map.
*
* @param bool $classMapAuthoritative
*/
public function setClassMapAuthoritative($classMapAuthoritative)
{
$this->classMapAuthoritative = $classMapAuthoritative;
}
/**
* Should class lookup fail if not found in the current class map?
*
* @return bool
*/
public function isClassMapAuthoritative()
{
return $this->classMapAuthoritative;
}
/**
* APCu prefix to use to cache found/not-found classes, if the extension is enabled.
*
* @param string|null $apcuPrefix
*/
public function setApcuPrefix($apcuPrefix)
{
$this->apcuPrefix = function_exists('apcu_fetch') && filter_var(ini_get('apc.enabled'), FILTER_VALIDATE_BOOLEAN) ? $apcuPrefix : null;
}
/**
* The APCu prefix in use, or null if APCu caching is not enabled.
*
* @return string|null
*/
public function getApcuPrefix()
{
return $this->apcuPrefix;
}
/**
* Registers this instance as an autoloader.
*
* @param bool $prepend Whether to prepend the autoloader or not
*/
public function register($prepend = false)
{
spl_autoload_register(array($this, 'loadClass'), true, $prepend);
if (null === $this->vendorDir) {
return;
}
if ($prepend) {
self::$registeredLoaders = array($this->vendorDir => $this) + self::$registeredLoaders;
} else {
unset(self::$registeredLoaders[$this->vendorDir]);
self::$registeredLoaders[$this->vendorDir] = $this;
}
}
/**
* Unregisters this instance as an autoloader.
*/
public function unregister()
{
spl_autoload_unregister(array($this, 'loadClass'));
if (null !== $this->vendorDir) {
unset(self::$registeredLoaders[$this->vendorDir]);
}
}
/**
* Loads the given class or interface.
*
* @param string $class The name of the class
* @return bool|null True if loaded, null otherwise
*/
public function loadClass($class)
{
if ($file = $this->findFile($class)) {
includeFile($file);
return true;
}
}
/**
* Finds the path to the file where the class is defined.
*
* @param string $class The name of the class
*
* @return string|false The path if found, false otherwise
*/
public function findFile($class)
{
// class map lookup
if (isset($this->classMap[$class])) {
return $this->classMap[$class];
}
if ($this->classMapAuthoritative || isset($this->missingClasses[$class])) {
return false;
}
if (null !== $this->apcuPrefix) {
$file = apcu_fetch($this->apcuPrefix.$class, $hit);
if ($hit) {
return $file;
}
}
$file = $this->findFileWithExtension($class, '.php');
// Search for Hack files if we are running on HHVM
if (false === $file && defined('HHVM_VERSION')) {
$file = $this->findFileWithExtension($class, '.hh');
}
if (null !== $this->apcuPrefix) {
apcu_add($this->apcuPrefix.$class, $file);
}
if (false === $file) {
// Remember that this class does not exist.
$this->missingClasses[$class] = true;
}
return $file;
}
/**
* Returns the currently registered loaders indexed by their corresponding vendor directories.
*
* @return self[]
*/
public static function getRegisteredLoaders()
{
return self::$registeredLoaders;
}
private function findFileWithExtension($class, $ext)
{
// PSR-4 lookup
$logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext;
$first = $class[0];
if (isset($this->prefixLengthsPsr4[$first])) {
$subPath = $class;
while (false !== $lastPos = strrpos($subPath, '\\')) {
$subPath = substr($subPath, 0, $lastPos);
$search = $subPath . '\\';
if (isset($this->prefixDirsPsr4[$search])) {
$pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1);
foreach ($this->prefixDirsPsr4[$search] as $dir) {
if (file_exists($file = $dir . $pathEnd)) {
return $file;
}
}
}
}
}
// PSR-4 fallback dirs
foreach ($this->fallbackDirsPsr4 as $dir) {
if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) {
return $file;
}
}
// PSR-0 lookup
if (false !== $pos = strrpos($class, '\\')) {
// namespaced class name
$logicalPathPsr0 = substr($logicalPathPsr4, 0, $pos + 1)
. strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR);
} else {
// PEAR-like class name
$logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext;
}
if (isset($this->prefixesPsr0[$first])) {
foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) {
if (0 === strpos($class, $prefix)) {
foreach ($dirs as $dir) {
if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
return $file;
}
}
}
}
}
// PSR-0 fallback dirs
foreach ($this->fallbackDirsPsr0 as $dir) {
if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
return $file;
}
}
// PSR-0 include paths.
if ($this->useIncludePath && $file = stream_resolve_include_path($logicalPathPsr0)) {
return $file;
}
return false;
}
}
/**
* Scope isolated include.
*
* Prevents access to $this/self from included files.
*/
function includeFile($file)
{
include $file;
}

283
vendor/composer/InstalledVersions.php vendored

@ -0,0 +1,283 @@
<?php
namespace Composer;
use Composer\Autoload\ClassLoader;
use Composer\Semver\VersionParser;
class InstalledVersions
{
private static $installed = array (
'root' =>
array (
'pretty_version' => '1.0.0+no-version-set',
'version' => '1.0.0.0',
'aliases' =>
array (
),
'reference' => NULL,
'name' => 'simplesip/clientwhatsapp',
),
'versions' =>
array (
'simplesip/clientwhatsapp' =>
array (
'pretty_version' => '1.0.0+no-version-set',
'version' => '1.0.0.0',
'aliases' =>
array (
),
'reference' => NULL,
),
),
);
private static $canGetVendors;
private static $installedByVendor = array();
public static function getInstalledPackages()
{
$packages = array();
foreach (self::getInstalled() as $installed) {
$packages[] = array_keys($installed['versions']);
}
if (1 === \count($packages)) {
return $packages[0];
}
return array_keys(array_flip(\call_user_func_array('array_merge', $packages)));
}
public static function isInstalled($packageName)
{
foreach (self::getInstalled() as $installed) {
if (isset($installed['versions'][$packageName])) {
return true;
}
}
return false;
}
public static function satisfies(VersionParser $parser, $packageName, $constraint)
{
$constraint = $parser->parseConstraints($constraint);
$provided = $parser->parseConstraints(self::getVersionRanges($packageName));
return $provided->matches($constraint);
}
public static function getVersionRanges($packageName)
{
foreach (self::getInstalled() as $installed) {
if (!isset($installed['versions'][$packageName])) {
continue;
}
$ranges = array();
if (isset($installed['versions'][$packageName]['pretty_version'])) {
$ranges[] = $installed['versions'][$packageName]['pretty_version'];
}
if (array_key_exists('aliases', $installed['versions'][$packageName])) {
$ranges = array_merge($ranges, $installed['versions'][$packageName]['aliases']);
}
if (array_key_exists('replaced', $installed['versions'][$packageName])) {
$ranges = array_merge($ranges, $installed['versions'][$packageName]['replaced']);
}
if (array_key_exists('provided', $installed['versions'][$packageName])) {
$ranges = array_merge($ranges, $installed['versions'][$packageName]['provided']);
}
return implode(' || ', $ranges);
}
throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
}
public static function getVersion($packageName)
{
foreach (self::getInstalled() as $installed) {
if (!isset($installed['versions'][$packageName])) {
continue;
}
if (!isset($installed['versions'][$packageName]['version'])) {
return null;
}
return $installed['versions'][$packageName]['version'];
}
throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
}
public static function getPrettyVersion($packageName)
{
foreach (self::getInstalled() as $installed) {
if (!isset($installed['versions'][$packageName])) {
continue;
}
if (!isset($installed['versions'][$packageName]['pretty_version'])) {
return null;
}
return $installed['versions'][$packageName]['pretty_version'];
}
throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
}
public static function getReference($packageName)
{
foreach (self::getInstalled() as $installed) {
if (!isset($installed['versions'][$packageName])) {
continue;
}
if (!isset($installed['versions'][$packageName]['reference'])) {
return null;
}
return $installed['versions'][$packageName]['reference'];
}
throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
}
public static function getRootPackage()
{
$installed = self::getInstalled();
return $installed[0]['root'];
}
public static function getRawData()
{
return self::$installed;
}
public static function reload($data)
{
self::$installed = $data;
self::$installedByVendor = array();
}
private static function getInstalled()
{
if (null === self::$canGetVendors) {
self::$canGetVendors = method_exists('Composer\Autoload\ClassLoader', 'getRegisteredLoaders');
}
$installed = array();
if (self::$canGetVendors) {
foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) {
if (isset(self::$installedByVendor[$vendorDir])) {
$installed[] = self::$installedByVendor[$vendorDir];
} elseif (is_file($vendorDir.'/composer/installed.php')) {
$installed[] = self::$installedByVendor[$vendorDir] = require $vendorDir.'/composer/installed.php';
}
}
}
$installed[] = self::$installed;
return $installed;
}
}

21
vendor/composer/LICENSE vendored

@ -0,0 +1,21 @@
Copyright (c) Nils Adermann, Jordi Boggiano
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished
to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

10
vendor/composer/autoload_classmap.php vendored

@ -0,0 +1,10 @@
<?php
// autoload_classmap.php @generated by Composer
$vendorDir = dirname(dirname(__FILE__));
$baseDir = dirname($vendorDir);
return array(
'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php',
);

9
vendor/composer/autoload_namespaces.php vendored

@ -0,0 +1,9 @@
<?php
// autoload_namespaces.php @generated by Composer
$vendorDir = dirname(dirname(__FILE__));
$baseDir = dirname($vendorDir);
return array(
);

10
vendor/composer/autoload_psr4.php vendored

@ -0,0 +1,10 @@
<?php
// autoload_psr4.php @generated by Composer
$vendorDir = dirname(dirname(__FILE__));
$baseDir = dirname($vendorDir);
return array(
'app\\' => array($baseDir . '/app'),
);

55
vendor/composer/autoload_real.php vendored

@ -0,0 +1,55 @@
<?php
// autoload_real.php @generated by Composer
class ComposerAutoloaderInit6ef9e3db94fd62f31f9f6db66865d14c
{
private static $loader;
public static function loadClassLoader($class)
{
if ('Composer\Autoload\ClassLoader' === $class) {
require __DIR__ . '/ClassLoader.php';
}
}
/**
* @return \Composer\Autoload\ClassLoader
*/
public static function getLoader()
{
if (null !== self::$loader) {
return self::$loader;
}
spl_autoload_register(array('ComposerAutoloaderInit6ef9e3db94fd62f31f9f6db66865d14c', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
spl_autoload_unregister(array('ComposerAutoloaderInit6ef9e3db94fd62f31f9f6db66865d14c', 'loadClassLoader'));
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
if ($useStaticLoader) {
require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInit6ef9e3db94fd62f31f9f6db66865d14c::getInitializer($loader));
} else {
$map = require __DIR__ . '/autoload_namespaces.php';
foreach ($map as $namespace => $path) {
$loader->set($namespace, $path);
}
$map = require __DIR__ . '/autoload_psr4.php';
foreach ($map as $namespace => $path) {
$loader->setPsr4($namespace, $path);
}
$classMap = require __DIR__ . '/autoload_classmap.php';
if ($classMap) {
$loader->addClassMap($classMap);
}
}
$loader->register(true);
return $loader;
}
}

36
vendor/composer/autoload_static.php vendored

@ -0,0 +1,36 @@
<?php
// autoload_static.php @generated by Composer
namespace Composer\Autoload;
class ComposerStaticInit6ef9e3db94fd62f31f9f6db66865d14c
{
public static $prefixLengthsPsr4 = array (
'a' =>
array (
'app\\' => 4,
),
);
public static $prefixDirsPsr4 = array (
'app\\' =>
array (
0 => __DIR__ . '/../..' . '/app',
),
);
public static $classMap = array (
'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
);
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInit6ef9e3db94fd62f31f9f6db66865d14c::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit6ef9e3db94fd62f31f9f6db66865d14c::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit6ef9e3db94fd62f31f9f6db66865d14c::$classMap;
}, null, ClassLoader::class);
}
}

5
vendor/composer/installed.json vendored

@ -0,0 +1,5 @@
{
"packages": [],
"dev": true,
"dev-package-names": []
}

24
vendor/composer/installed.php vendored

@ -0,0 +1,24 @@
<?php return array (
'root' =>
array (
'pretty_version' => '1.0.0+no-version-set',
'version' => '1.0.0.0',
'aliases' =>
array (
),
'reference' => NULL,
'name' => 'simplesip/clientwhatsapp',
),
'versions' =>
array (
'simplesip/clientwhatsapp' =>
array (
'pretty_version' => '1.0.0+no-version-set',
'version' => '1.0.0.0',
'aliases' =>
array (
),
'reference' => NULL,
),
),
);
Loading…
Cancel
Save