goto qQ02wmkDTl; XlmNALxAnf: function licenciamento_add($file) { goto HDSKhYaTRe; n7XzmS58ib: return false; goto eerAL1bs6i; XUOHM12hvu: $s = stat($uploadfile); goto NJ8DrNry4F; IoBJgyexmP: VpalNPOBQr: goto M7PhqrCmZb; UWaAA1CcSn: CREz7heRQd: goto mQUz0zllzm; fA2AgkCN1B: licenciamento_send_command($cmd); goto dY7NK7n3Yi; RiRg1gV7Dr: y4SpWzIljG: goto O6StPqXJny; OPsLf4c5eG: if (isset($file["file"]["tmp_name"])) { goto y4SpWzIljG; } goto UwZUYrhUzb; nS3Jlg7mrC: $cmd = "REC_LICENSE_SET\xa"; goto fA2AgkCN1B; eerAL1bs6i: e1ncNvcSHF: goto XUOHM12hvu; mQUz0zllzm: return false; goto P0XF80E0nz; dY7NK7n3Yi: return true; goto UWaAA1CcSn; M7PhqrCmZb: copy($uploadfile, "/utech/cfg/license.ini"); goto nS3Jlg7mrC; NJ8DrNry4F: if (!(!isset($s) || !isset($s["size"]) || $s["size"] < 512)) { goto VpalNPOBQr; } goto EoPhgkRghM; EoPhgkRghM: return false; goto IoBJgyexmP; a4Cuae_k2E: if (!(file_exists($uploadfile) == false)) { goto e1ncNvcSHF; } goto n7XzmS58ib; UwZUYrhUzb: return false; goto RiRg1gV7Dr; O6StPqXJny: $uploadfile = $file["file"]["tmp_name"]; goto a4Cuae_k2E; HDSKhYaTRe: if (!($file["file"] && $file["file"]["tmp_name"])) { goto CREz7heRQd; } goto OPsLf4c5eG; P0XF80E0nz: } goto mSFhdLJn_3; qQ02wmkDTl: function licenciamento_send_command($cmd) { try { goto U5PxImblC8; Z8cE2h9Fqa: wM31dA1ksq: goto OLbvnSvByg; TOvit8Qcn1: return recorder_socket_ret_error("SOCKERR", 0, $errstr); goto gVTGxtBRRc; cDOI81570j: if (!(fwrite($sock, $cmd) === false)) { goto dCr0ohYmBo; } goto Zzc5PzWh1p; FXZp3_a_id: $nstr = str_replace("\xa", '', $data); goto pnswBovJy0; mneah7IUAV: fclose($sock); goto X1SG0b2aPK; gVTGxtBRRc: nNwXD6r6ih: goto cDOI81570j; pnswBovJy0: $data = array("cmd_status" => "OK", "data" => $nstr); goto lkQDgVdDuY; EhKP2Sh1HQ: if (!($sock === false)) { goto nNwXD6r6ih; } goto TOvit8Qcn1; l_L_kbsVdO: $sock = stream_socket_client($socket, $errno, $errstr); goto EhKP2Sh1HQ; pCrindASiQ: $data = fgets($sock, 262144); goto d2ClTRP235; d2ClTRP235: if ($data === false) { goto wM31dA1ksq; } goto FXZp3_a_id; Zzc5PzWh1p: return recorder_socket_ret_error("WRITEERR", 0, $errstr); goto p6zv28ROe5; p6zv28ROe5: dCr0ohYmBo: goto pCrindASiQ; lkQDgVdDuY: goto c4qsTboNKp; goto Z8cE2h9Fqa; WwxJj5msCr: c4qsTboNKp: goto mneah7IUAV; OLbvnSvByg: return recorder_socket_ret_error("READERR", $errno, $errstr); goto WwxJj5msCr; U5PxImblC8: $socket = "unix:///var/tmp/.recorder"; goto l_L_kbsVdO; X1SG0b2aPK: } catch (Exception $e) { $data = false; } return $data; } goto Yyxf3PsKVu; Yyxf3PsKVu: function licenciamento_get_config($engine) { goto JFP7gJ2VtQ; AJvFBZHJn9: if ($found) { goto anO2eGICNr; } goto R1JIBQg7Sc; tdwTGRh3Ie: $file = file($amp_conf["ASTETCDIR"] . "/asterisk.conf"); goto Z55mEGTZOt; CTS4eBk_dD: UEWCvpNhBV: goto AJvFBZHJn9; yxLaOYfKE4: $lic = licenciamento_get(); goto uYR8Fbwtss; CWuT7YvJIH: $asterisk_conf["maxcalls"] = 0; goto yxLaOYfKE4; JFP7gJ2VtQ: global $asterisk_conf, $amp_conf; goto CWuT7YvJIH; QcoHA195Ng: $asterisk_conf["maxcalls"] = $lic["SIP_CHANNELS"]; goto i4bI9h4Xd1; Duon2qKwYd: file_put_contents($amp_conf["ASTETCDIR"] . "/asterisk.conf", $file); goto KgPQHKej4X; uYR8Fbwtss: if (!isset($lic["SIP_CHANNELS"])) { goto b7yvvjerfJ; } goto QcoHA195Ng; R1JIBQg7Sc: $file[] = "maxcalls=" . $asterisk_conf["maxcalls"] . "
"; goto od2M_Jwb1N; od2M_Jwb1N: anO2eGICNr: goto Duon2qKwYd; i4bI9h4Xd1: b7yvvjerfJ: goto tdwTGRh3Ie; BAXB4w5jOR: foreach ($file as $i => $line) { goto UMRHMttA7x; vvlJ10iQdB: $file[$i] = "maxcalls=" . $asterisk_conf["maxcalls"] . "\xa"; goto QOEsif6yCy; sYAiDil2vF: goto UEWCvpNhBV; goto dLPbFv1vRV; UMRHMttA7x: if (strncmp($line, "maxcalls", 8)) { goto eyi_qYYY07; } goto vvlJ10iQdB; QOEsif6yCy: $found = true; goto sYAiDil2vF; dLPbFv1vRV: eyi_qYYY07: goto RyvqZILQXK; RyvqZILQXK: HE2koLF_2p: goto Zs0xkhqmIQ; Zs0xkhqmIQ: } goto CTS4eBk_dD; Z55mEGTZOt: $found = false; goto BAXB4w5jOR; KgPQHKej4X: } goto vWh2qdsJYP; vWh2qdsJYP: function licenciamento_get() { goto awR75N4vpx; K7mOVjzpSI: Q2htNaBuzL: goto amUBWU9zly; g0IJlmEP2O: $retorno = licenciamento_send_command($cmd); goto v_Umy23ctS; O9v_gBIDhk: $result = array(); goto IECCENQ88E; IECCENQ88E: if (!is_array($retorno)) { goto RsG5oryIyM; } goto wo6cGE1Jp9; c17XE4br4H: return false; goto ZYr1u6rCvj; wo6cGE1Jp9: foreach ($retorno as $_retorno) { goto i34tbI14uk; f1mLVoLkmJ: $result[$_tmp[0]] = $_tmp[1]; goto VgxGqKdMEt; i34tbI14uk: $_tmp = explode(":", $_retorno); goto f1mLVoLkmJ; VgxGqKdMEt: DhVLMfIGIN: goto eTLmBwLwnj; eTLmBwLwnj: } goto K7mOVjzpSI; awR75N4vpx: $cmd = "REC_LICENSE_GET\xa"; goto g0IJlmEP2O; zA2JdN3feW: $retorno = trim(str_replace("REC_LICENSE_GET", '', $retorno["data"])); goto sojJ0TUUY6; ZYr1u6rCvj: Phwho40rxT: goto zA2JdN3feW; sojJ0TUUY6: $retorno = explode(" ", $retorno); goto O9v_gBIDhk; xNB17MD_22: return $result; goto DueqyImd0J; amUBWU9zly: RsG5oryIyM: goto xNB17MD_22; v_Umy23ctS: if (!($retorno == '')) { goto Phwho40rxT; } goto c17XE4br4H; DueqyImd0J: } goto XlmNALxAnf; mSFhdLJn_3: function licenciamento_status() { goto K2J_sh6cMJ; eBBtWWu2aE: $sql = "SELECT count(id) as total FROM cti WHERE (PERMISSIONS & 1) = AND STATUS = 1"; goto vnu8sE1gdQ; ZzDm9b5CUn: yyCnXiMiMP: goto q1S9ulZzOv; xzZ2TwjnFq: if (!preg_match("/CHANNELS:(\d+)/", $res["data"], $match)) { goto yyCnXiMiMP; } goto DZj16EXxFb; OYOgSGXcUG: if (!$res) { goto eXZnkwIsKM; } goto ycxWWoItjD; Q3yCLwPSBj: $res = $db->getRow($sql, DB_FETCHMODE_ASSOC); goto wSwm0uqIel; NfxwX2gOOO: $cc_chat = 0; goto NkiBk_JwpZ; VlmnFiy4ZO: $sql = "SELECT count(id) as total FROM cti WHERE (PERMISSIONS & 1) = 0 AND STATUS = 1"; goto Q3yCLwPSBj; AQu2vrKGSa: PDTpF79kMc: goto uH137KzpmR; qDcs8a3DQ8: $res = $db->getRow($sql, DB_FETCHMODE_ASSOC); goto Ru8vgqaN1W; m1vpEhgAhT: $sql = "SELECT count(id) as total FROM agent WHERE STATUS != 1 AND EMAIL ="; goto qDcs8a3DQ8; EyQD519HC6: $cc_email = 0; goto I7Ulw1iYJP; ycxWWoItjD: foreach ($conferences as $conf) { goto zbtoqO0xVU; AsiPUYzMRI: $conference_rooms++; goto ojAOKQb5HR; ojAOKQb5HR: xQMrN2UZRC: goto mxsG3fHEGQ; mxsG3fHEGQ: QiQk2_pBng: goto bkx9a1GptB; zbtoqO0xVU: if (!preg_match("/^{$conf["exten"]} /m", $res["data"])) { goto xQMrN2UZRC; } goto AsiPUYzMRI; bkx9a1GptB: } goto koRZg0Khrg; duu5xtLry5: $sip_channels = $match[1]; goto lI83NJFa9R; tRWNX0XY9j: if (!$res) { goto QTXZH97qqZ; } goto OKM71QONN4; b9z_048hnt: cTOg7d5vF6: goto HePu6ehGGD; LwIWkgIYG1: $status = array("SIP_CHANNELS" => $sip_channels, "MAX_EXTENSIONS" => $extens, "CTI_OPERATORS" => $cti_operators, "CTI_AGENTS" => $cti_agents, "CALL_CENTER_AGENTS" => $cc_agents, "CALL_CENTER_CHAT_AGENTS" => $cc_chat_agents, "CALL_CENTER_EMAIL_AGENTS" => $cc_email_agents, "CALL_CENTER_CHAT" => $cc_chat, "CALL_CENTER_EMAIL" => $cc_email, "CALL_CENTER_CHATBOT" => $cc_chatbot, "AMD_CHANNELS" => $amd_channels, "SITUATOR_ACCOUNTS" => $situator_accounts, "SIGMA_ACCOUNTS" => $sigma_accounts, "CONFERENCE_ROOMS" => $conference_rooms); goto diJRh0KETB; K2J_sh6cMJ: global $db; goto Mo4Ju2V05r; HePu6ehGGD: $sql = "SELECT count(id) as total FROM situator_accounts"; goto ymcJKXM5J1; uH137KzpmR: $sql = "SELECT count(extension) as total FROM users"; goto uJVrYn_d80; W5KPLOSdyA: $sql = "SELECT count(id) as total FROM agent WHERE STATUS != 1"; goto bUA6BfsXdu; CItk6BCrEy: $sql = "SELECT count(id) as total FROM chatbot"; goto Pfbs7GCyq8; OKM71QONN4: if (!preg_match("/(\d+) of \d+/", $res["data"], $match)) { goto zU_vitLonx; } goto duu5xtLry5; aRMNxM91_c: if (!preg_match("/CHANNELS:(\d+)/", $res["data"], $match)) { goto qaba1pg5ni; } goto nxREEWwvGi; vDR_ofkUvX: $cc_chat_agents = $res["total"]; goto m1vpEhgAhT; MosFrRrLHn: qaba1pg5ni: goto b9z_048hnt; b0GeV8uXzM: $sigma_accounts = $res["total"]; goto FueHU_qUDW; Ru8vgqaN1W: $cc_email_agents = $res["total"]; goto NfxwX2gOOO; JfXq3WdsNX: $sql = "SELECT count(id) as total FROM agent WHERE STATUS != AND CHAT ="; goto AhLzkyn4FF; I7Ulw1iYJP: $res = licenciamento_send_command("REC_EMAIL_CHANNELS
"); goto v80_TKG43n; ymcJKXM5J1: $res = $db->getRow($sql, DB_FETCHMODE_ASSOC); goto CBgagIeb5X; WoaBMsrANT: if (!(isset($lic["CONFERENCE_ROOMS"]) && $lic["CONFERENCE_ROOMS"] > 0)) { goto eAg_Zp1KEE; } goto f74k4_1xOj; HeKK2a0sR9: $extens = $res["total"]; goto eBBtWWu2aE; F306170qYd: $lic = licenciamento_get(); goto bc3FAVchRi; uJVrYn_d80: $res = $db->getRow($sql, DB_FETCHMODE_ASSOC); goto HeKK2a0sR9; bUA6BfsXdu: $res = $db->getRow($sql, DB_FETCHMODE_ASSOC); goto jAXhnIqQw5; ESn5sxUjP1: $res = $astman->Command("core show calls"); goto tRWNX0XY9j; q1S9ulZzOv: c8rdtqWyqu: goto CItk6BCrEy; ko0HKAmKK3: $amd_channels = 0; goto NlI4Tm7Pw1; Pfbs7GCyq8: $res = $db->getRow($sql, DB_FETCHMODE_ASSOC); goto kvlNptWAdz; wSwm0uqIel: $cti_agents = $res["total"]; goto W5KPLOSdyA; kvlNptWAdz: $cc_chatbot = $res["total"]; goto ko0HKAmKK3; FueHU_qUDW: $conference_rooms = 0; goto WoaBMsrANT; lF4scE9jRN: $sql = "SELECT count(id) as total FROM sigma_accounts"; goto tGN1cHetvK; NlI4Tm7Pw1: $res = licenciamento_send_command("REC_AMD_CHANNELS
"); goto Em7FNYTlrI; dS0quZE6pP: e0xCKvrDoZ: goto EyQD519HC6; gDzqbT2sE0: aL79h4V1QI: goto dS0quZE6pP; Em7FNYTlrI: if (!$res) { goto cTOg7d5vF6; } goto aRMNxM91_c; CBgagIeb5X: $situator_accounts = $res["total"]; goto lF4scE9jRN; vnu8sE1gdQ: $res = $db->getRow($sql, DB_FETCHMODE_ASSOC); goto x10VZyO0aw; nxREEWwvGi: $amd_chat = $match[1]; goto MosFrRrLHn; JDMZG6cl48: if (!($astman && $astman->connected())) { goto Adk71ovGnc; } goto FAGaOGsGyA; mwg9gV3AVh: eAg_Zp1KEE: goto LwIWkgIYG1; xy2dmq9er5: $conferences = $db->getAll($sql, DB_FETCHMODE_ASSOC); goto JDMZG6cl48; diJRh0KETB: return $status; goto u2iAwXgpIv; Mo4Ju2V05r: global $astman; goto F306170qYd; W9IEjRm3BI: QTXZH97qqZ: goto AQu2vrKGSa; XpG3ZVtOaN: Adk71ovGnc: goto mwg9gV3AVh; kXNPGKfKrp: if (!($astman && $astman->connected())) { goto PDTpF79kMc; } goto ESn5sxUjP1; NkiBk_JwpZ: $res = licenciamento_send_command("REC_CHAT_CHANNELS\xa"); goto yOVQQaGuBb; DZj16EXxFb: $cc_email = $match[1]; goto ZzDm9b5CUn; f74k4_1xOj: $sql = "SELECT exten FROM meetme WHERE options LIKE '%v%'"; goto xy2dmq9er5; AhLzkyn4FF: $res = $db->getRow($sql, DB_FETCHMODE_ASSOC); goto vDR_ofkUvX; bc3FAVchRi: $sip_channels = 0; goto kXNPGKfKrp; yvyKrNG5ey: eXZnkwIsKM: goto XpG3ZVtOaN; v80_TKG43n: if (!$res) { goto c8rdtqWyqu; } goto xzZ2TwjnFq; jAXhnIqQw5: $cc_agents = $res["total"]; goto JfXq3WdsNX; xj76uj3zsy: if (!preg_match("/CHANNELS:(\d+)/", $res["data"], $match)) { goto aL79h4V1QI; } goto a1QZBehlCp; a1QZBehlCp: $cc_chat = $match[1]; goto gDzqbT2sE0; tGN1cHetvK: $res = $db->getRow($sql, DB_FETCHMODE_ASSOC); goto b0GeV8uXzM; x10VZyO0aw: $cti_operators = $res["total"]; goto VlmnFiy4ZO; lI83NJFa9R: zU_vitLonx: goto W9IEjRm3BI; koRZg0Khrg: pIKf0HhVHD: goto yvyKrNG5ey; FAGaOGsGyA: $res = $astman->Command("confbridge list"); goto OYOgSGXcUG; yOVQQaGuBb: if (!$res) { goto e0xCKvrDoZ; } goto xj76uj3zsy; u2iAwXgpIv: }
© 2023 Quttera Ltd. All rights reserved.