Built motion from commit (unavailable).|2.4.4
[motion2.git] / server / services / agi / vertices.js
index 8920022..d9587c9 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xb24e=['getIntervals','IntervalId','map','Intervals','format','getQueryOdbc','error','ODBC\x20connection\x20successfully','query','info','Query\x20executed\x20correctly\x20%s','close','Error\x20closing\x20connection\x20to\x20odbc\x20%s','getSmsAccount','createSmsMessage','createSquareDetailsReport','uniqueid','label','agicommand','arg_1','callerid','calleridname','context','priority','accountcode','file','createSquareMessage','createCmContact','isNil','callback_','random','isEmpty','lastName','phone','scheduledAt','Callback\x20scheduled\x20at\x20','toString','getPause','getPauseById','agentPause','agent','agentUnpause','agentLogin','internal','%s/%s@from-sip/n','LOCAL','shellCommand','exec','trim','replace','googleTTS','text','google_tts_language','googleDialogflow','key','dialogflow_language','sestekNDA','ispeechTTS','ispeech_tts_language','en-US','ispeechASR','ispeech_asr_language','awsPolly','aws_access_key_id','aws_secret_access_key','aws_polly_region','aws_polly_voice','aws_text_type','awsLex','aws_lex_region','aws_bot_name','googleASR','google_asr_language','tildeASR','includes','clone','hasOwnProperty','isString','replaceAllVariables','split','length','replaceAll','getAndSetVariable','The\x20\x22%s\x22\x20variable\x20value\x20is:\x20%s','setVariable','extra','sync','retry','Enter\x20in\x20ANSWER\x20(%s)\x20block','isConfigured','Wait\x20%s\x20seconds\x20before\x20answer','wait','timeout','result','answer','no\x20list\x20selected','delay','add','minutes','callback_priority','noop','CALLBACK\x20added\x20phone:\x20%s\x20on\x20list:\x20%s\x20at\x20%s','list_id','custom_app','options','Executed\x20command\x20%s\x20%s','Enter\x20in\x20LUMENVOXTTS\x20(%s)\x20block','MRCPSynth','Executed\x20command\x20MRCPSynth\x20%s','sestektts','lumenvoxasr','no\x20grammar\x20configured','grammar','LUMENVOX_ASR_CONFIDENCE','RECOG_INPUT()','RECOG_INSTANCE()','LUMENVOX_ASR_INSTANCE','sestekasr','MRCPRecog','RECOG_CONFIDENCE()','SESTEK_ASR_CONFIDENCE','SESTEK_ASR_TRANSCRIPT','SESTEK_ASR_INSTANCE','Executed\x20command\x20MRCPRecog\x20%s','database','odbc_id','no\x20database\x20selected','no\x20query\x20configured','query:\x20%s','variable_id','no\x20variable\x20selected\x20for\x20the\x20result','no\x20variable\x20found','forEach','keys','%s[%s][%s]','%s_ROWS_COUNT','variable\x20%s\x20set','dial','debug','Enter\x20in\x20DIAL\x20(%s)\x20block','sip_id','no\x20user\x20selected','no\x20user\x20found','DIAL','opts','url','Executed\x20command\x20%s','dialogflow','Enter\x20in\x20DIALOGFLOW\x20(%s)\x20block','no\x20key\x20configured','bot','DIALOGFLOW_%s','speech','Dialogflow\x20is\x20unreachable','sesteknda','Enter\x20in\x20SESTEKNDA\x20(%s)\x20block','ndauth_url','no\x20ndauth\x20url\x20configured','no\x20username\x20configured','password','no\x20password\x20configured','ndassistant_url','no\x20text\x20configured','Trying\x20SestekNDA:\x20%s','SESTEK_NDA_%s','toUpperCase','audiofile','Sestek\x20NDA\x20%s\x20file\x20created','streamFile','unlink','.wav','SestekNDA\x20is\x20unreachable','end','ext_dial','Enter\x20in\x20EXTERNAL\x20DIAL\x20(%s)\x20block','trunk_id','no\x20trunk\x20selected','no\x20trunk\x20found','trunk_name','SIP/%s/%s','finally','Enter\x20in\x20FINALLY\x20(%s)\x20block','getdigits','Enter\x20in\x20GETDIGITS\x20(%s)\x20block','maxRetry','file_id','no\x20file\x20audio\x20selected','no\x20file\x20audio\x20found','getData','response','maxdigit','test','mindigit','hiddendigitsnum','generate','hiddendigitspos','first','substr','Enter\x20in\x20GETSECRETDIGITS\x20(%s)\x20block','goal','Enter\x20in\x20GOAL\x20(%s)\x20block','goalname','aws\x20Polly\x20%s\x20file\x20created','awslex','Enter\x20in\x20Amazon\x20Lex\x20(%s)\x20block','no\x20valid\x20credentials\x20configured','no\x20bot\x20name\x20configured','Trying\x20Amazon\x20Lex:\x20%s','AWS_LEX_%s','message','Amazon\x20Lex\x20ready\x20for\x20fulfillment','out','Amazon\x20Lex\x20Result\x20%s','Amazon\x20Lex\x20is\x20unreachable','googleasr','Enter\x20in\x20GOOGLEASR\x20(%s)\x20block\x20%s','wav','%s.%s','beep','NOBEEP','intKey','google\x20%s\x20file\x20created','GOOGLE_ASR_%s','GoogleASR\x20Result\x20%s','stringify','Enter\x20in\x20TILDEASR\x20(%s)\x20block','appid','no\x20appid\x20configured','no\x20appsecret\x20configured','%s/recordings/%s','tilde\x20%s\x20file\x20created','TILDE_ASR_%s','TildeASR\x20Result\x20%s','gotoc','Enter\x20in\x20GOTO\x20(%s)\x20block','continueAt','extension','Enter\x20in\x20GOTOIF\x20(%s)\x20block','condition','no\x20condition\x20configured','true','false','EVAL\x20CONDITION\x20%s\x20%s','gotoiftime','Enter\x20in\x20GOTOIFTIME\x20(%s)\x20block','interval_id','no\x20interval\x20configured','no\x20intervals\x20found','IFTIME\x20%s\x20%s','hangup','Enter\x20in\x20HANGUP\x20(%s)\x20block','ispeechasr','Enter\x20in\x20ISPEECHASR\x20(%s)\x20block','ispeech\x20%s\x20file\x20created','ISPEECH_ASR_%s','ispeechtts','Trying\x20ispeech\x20TTS\x20%s','login','findBy','AGENT\x20%s\x20FOUND\x20BY','AGENT\x20%s\x20NOT\x20FOUND\x20BY','failure','logout','Enter\x20in\x20LOGOUT\x20(%s)\x20block','no\x20find\x20by\x20configured','agentLogout','Enter\x20in\x20MATH\x20(%s)\x20block','operation','no\x20operation\x20configured','math\x20%s','isArray','%s[%s]','Enter\x20in\x20MENU\x20(%s)\x20block','digit','pause','Enter\x20in\x20PAUSE\x20(%s)\x20block','pause_id','success','playback','Enter\x20in\x20PLAYBACK\x20(%s)\x20block','queue','queue_id','no\x20queue\x20selected','getVoiceQueue','no\x20queue\x20found','indexOf','XMCS-QUEUE','toLowerCase','QUEUE','gosub','position','Enter\x20in\x20RECORD\x20(%s)\x20block','recordingFormat','%s_%s','%s/recordings/%s.%s','RECORDING_SAVENAME','escape_digits','saydigits','Enter\x20in\x20SAYDIGITS\x20(%s)\x20block','sayDigits','digits','saynumber','Enter\x20in\x20SAYNUMBER\x20(%s)\x20block','number','sayphonetic','Enter\x20in\x20SAYPHONETIC\x20(%s)\x20block','sayPhonetic','sendMail','Enter\x20in\x20SENDMAIL\x20(%s)\x20block','account_id','getMailAccount','no\x20mail\x20account\x20found','email','Smtp','bcc','service','host','port','authentication','auth','user','pass','template_id','sendMail\x20message','Trying\x20SendMail\x20with\x20account\x20%s','Mail\x20message\x20added\x20to\x20outgoing\x20process','Enter\x20in\x20SENDFAX\x20(%s)\x20block','Enter\x20in\x20SENDSMS\x20(%s)\x20block','sms_account_id','no\x20sms\x20account\x20configured','no\x20sms\x20account\x20found','sms_text','sendSMS\x20message','Trying\x20SendSMS\x20with\x20account\x20%s','Sms\x20message\x20added\x20to\x20outgoing\x20process','no\x20variable\x20selected','variable_value','start','Enter\x20in\x20START\x20(%s)\x20block','START\x20CALLY\x20SQUARE','Answer','Skipped\x20Answer','subproject','Enter\x20in\x20SUBPROJECT\x20(%s)\x20block','no\x20subproject\x20selected','project_id','no\x20subproject\x20found\x20with\x20id\x20%d','project\x20in\x20subproject\x20must\x20be\x20different\x20from\x20the\x20called\x20project','AGI','agi://%s/square,\x22%s\x22,\x22%s\x22','127.0.0.1','system','Enter\x20in\x20SYSTEM\x20(%s)\x20block','command','sh\x20command:\x20%s\x20result\x20on\x20variable:\x20%s','sh\x20command:\x20%s\x20result\x20no\x20stored','Enter\x20in\x20GOOGLETTS\x20(%s)\x20block','Trying\x20Google\x20TTS\x20%s','Google\x20TTS\x20%s\x20file\x20created','Google\x20TTS\x20is\x20unreachable','unpause','Enter\x20in\x20UNPAUSE\x20(%s)\x20block','voicemail','Enter\x20in\x20VOICEMAIL\x20(%s)\x20block','VOICEMAIL','mailbox','Enter\x20in\x20SWITCH\x20(%s)\x20block','join','util','lodash','odbc','moment','mustache','agi','../../config/environment','/var/opt/motion2/server/files','menu','getsecretdigits','channel','rpc','prototype','getVariable','getVariableById','then','catch','getVoiceQueueById','getSquareProject','name','getSquareOdbc','getSquareOdbcById','dsn','getUser','getTrunk','getTrunkById','getSound','getSoundPath','save_name','getMailAccountById','sendMailMessage','mailRpc'];(function(_0x385ecb,_0x4abc4a){var _0x3c5ac3=function(_0x175d89){while(--_0x175d89){_0x385ecb['push'](_0x385ecb['shift']());}};_0x3c5ac3(++_0x4abc4a);}(_0xb24e,0x170));var _0xeb24=function(_0x42cae2,_0x284ef8){_0x42cae2=_0x42cae2-0x0;var _0x5f256f=_0xb24e[_0x42cae2];return _0x5f256f;};'use strict';var fs=require('fs');var path=require('path');var util=require(_0xeb24('0x0'));var _=require(_0xeb24('0x1'));var sh=require('shelljs');var odbc=require(_0xeb24('0x2'))();var rs=require('randomstring');var moment=require(_0xeb24('0x3'));var Mustache=require(_0xeb24('0x4'));var logger=require('../../config/logger')(_0xeb24('0x5'));var config=require(_0xeb24('0x6'));var scripts=require('./scripts');var FILES_PATH=_0xeb24('0x7');var verticesWithRetry=[_0xeb24('0x8'),'getdigits',_0xeb24('0x9')];var AGIVertices=function(_0x3a8124,_0xc0e71f,_0x3b8983){this[_0xeb24('0xa')]=_0x3a8124;this[_0xeb24('0xb')]=_0xc0e71f;this['mailRpc']=_0x3b8983;};AGIVertices[_0xeb24('0xc')][_0xeb24('0xd')]=function(_0x15056e,_0x48c8f8){this['rpc'][_0xeb24('0xe')](_0x15056e)[_0xeb24('0xf')](function(_0x323334){_0x48c8f8(null,_0x323334?_0x323334['name']:![]);})[_0xeb24('0x10')](function(_0xc0d5dc){_0x48c8f8(_0xc0d5dc);});};AGIVertices[_0xeb24('0xc')]['getVoiceQueue']=function(_0x4dd4f9,_0x372243){this['rpc'][_0xeb24('0x11')](_0x4dd4f9)[_0xeb24('0xf')](function(_0x38fdac){_0x372243(null,_0x38fdac?_0x38fdac['name']:![]);})[_0xeb24('0x10')](function(_0x481b06){_0x372243(_0x481b06);});};AGIVertices['prototype'][_0xeb24('0x12')]=function(_0x18e64d,_0x541a58){this[_0xeb24('0xb')]['getSquareProjectById'](_0x18e64d)['then'](function(_0xa8edb9){_0x541a58(null,_0xa8edb9?_0xa8edb9[_0xeb24('0x13')]:![]);})[_0xeb24('0x10')](function(_0x3501f6){_0x541a58(_0x3501f6);});};AGIVertices[_0xeb24('0xc')][_0xeb24('0x14')]=function(_0xcdfba4,_0x58aeca){this[_0xeb24('0xb')][_0xeb24('0x15')](_0xcdfba4)[_0xeb24('0xf')](function(_0x5a4115){_0x58aeca(null,_0x5a4115?_0x5a4115[_0xeb24('0x16')]:![]);})[_0xeb24('0x10')](function(_0x5658d7){_0x58aeca(_0x5658d7);});};AGIVertices[_0xeb24('0xc')][_0xeb24('0x17')]=function(_0x3bad32,_0x2b5b32){this[_0xeb24('0xb')]['getUserById'](_0x3bad32)[_0xeb24('0xf')](function(_0xd5ecd){_0x2b5b32(null,_0xd5ecd?_0xd5ecd[_0xeb24('0x13')]:![]);})[_0xeb24('0x10')](function(_0x519517){_0x2b5b32(_0x519517);});};AGIVertices['prototype'][_0xeb24('0x18')]=function(_0xbb3fdf,_0x58a998){this[_0xeb24('0xb')][_0xeb24('0x19')](_0xbb3fdf)[_0xeb24('0xf')](function(_0x49fd72){_0x58a998(null,_0x49fd72?_0x49fd72[_0xeb24('0x13')]:![]);})[_0xeb24('0x10')](function(_0x5b5137){_0x58a998(_0x5b5137);});};AGIVertices['prototype'][_0xeb24('0x1a')]=function(_0x372f06,_0x16bbe1){var _0x23996f=this;this[_0xeb24('0xb')]['getSoundById'](_0x372f06)[_0xeb24('0xf')](function(_0x147685){_0x16bbe1(null,_0x147685?_0x23996f[_0xeb24('0x1b')](_0x147685[_0xeb24('0x1c')]):![]);})[_0xeb24('0x10')](function(_0x3c536c){_0x16bbe1(_0x3c536c);});};AGIVertices[_0xeb24('0xc')]['getMailAccount']=function(_0x575da2,_0x3cb431){this[_0xeb24('0xb')][_0xeb24('0x1d')](_0x575da2)['then'](function(_0x1c7677){_0x3cb431(null,_0x1c7677?_0x1c7677:![]);})[_0xeb24('0x10')](function(_0xe97ec){_0x3cb431(_0xe97ec);});};AGIVertices[_0xeb24('0xc')][_0xeb24('0x1e')]=function(_0x46a22d,_0x23b24b,_0x39f9d9){this[_0xeb24('0x1f')]['sendMailMessage'](_0x46a22d,_0x23b24b)[_0xeb24('0xf')](function(){_0x39f9d9(null);})[_0xeb24('0x10')](function(_0x21e107){_0x39f9d9(_0x21e107);});};AGIVertices[_0xeb24('0xc')][_0xeb24('0x20')]=function(_0x414d53,_0x56c6ae){this['rpc']['getIntervalById'](_0x414d53)[_0xeb24('0xf')](function(_0x127af9){if(_0x127af9){if(_0x127af9[_0xeb24('0x21')]){_0x56c6ae(null,[_0x127af9['interval']]);}else{_0x56c6ae(null,_[_0xeb24('0x22')](_0x127af9[_0xeb24('0x23')],'interval'));}}else{_0x56c6ae(null,![]);}})[_0xeb24('0x10')](function(_0x3d4da6){_0x56c6ae(_0x3d4da6);});};AGIVertices[_0xeb24('0xc')][_0xeb24('0x1b')]=function(_0x2b469e){return util[_0xeb24('0x24')]('%s/sounds/converted/%s',FILES_PATH,_0x2b469e);};AGIVertices[_0xeb24('0xc')][_0xeb24('0x25')]=function(_0x476287,_0x419eb1,_0x154f5e){odbc['open'](_0x476287,function(_0x253d54){if(_0x253d54){logger[_0xeb24('0x26')]('Error\x20getting\x20ODBC\x20connection\x20%s',_0x253d54);_0x154f5e(_0x253d54);}else{logger['info'](_0xeb24('0x27'));odbc[_0xeb24('0x28')](_0x419eb1,function(_0x4217b5,_0x380cae){if(_0x4217b5){logger[_0xeb24('0x29')]('Error\x20executing\x20query\x20%s',_0x419eb1);_0x154f5e(_0x4217b5);}else{logger[_0xeb24('0x29')](_0xeb24('0x2a'),_0x419eb1);odbc[_0xeb24('0x2b')](function(_0xfaa1c6){if(_0xfaa1c6){logger[_0xeb24('0x26')](_0xeb24('0x2c'),_0xfaa1c6);}_0x154f5e(null,_0x380cae);});}});}});};AGIVertices[_0xeb24('0xc')][_0xeb24('0x2d')]=function(_0x37ca10,_0xfcb2c5){this[_0xeb24('0xb')]['getSmsAccountById'](_0x37ca10)[_0xeb24('0xf')](function(_0x251446){_0xfcb2c5(null,_0x251446?_0x251446:![]);})[_0xeb24('0x10')](function(_0x31eb33){_0xfcb2c5(_0x31eb33);});};AGIVertices[_0xeb24('0xc')][_0xeb24('0x2e')]=function(_0x3c1de1,_0x130d06){this[_0xeb24('0xb')]['createSmsMessage'](_0x3c1de1)['then'](function(_0x598cf1){_0x130d06(null,_0x598cf1);})['catch'](function(_0x3ecf9f){_0x130d06(_0x3ecf9f);});};AGIVertices[_0xeb24('0xc')][_0xeb24('0x2f')]=function(_0x50d79d,_0x5efa5b,_0x54eea2){this[_0xeb24('0xb')]['createSquareDetailsReport']({'uniqueid':this['channel'][_0xeb24('0x30')],'node':_0x50d79d[_0xeb24('0x31')],'application':_0x50d79d[_0xeb24('0x32')],'data':_0x5efa5b||null,'project_name':this[_0xeb24('0xa')][_0xeb24('0x33')],'callerid':this[_0xeb24('0xa')][_0xeb24('0x34')]})[_0xeb24('0xf')](function(_0x37be07){if(_0x54eea2){_0x54eea2(null,_0x37be07);}})[_0xeb24('0x10')](function(_0x32288d){if(_0x54eea2){_0x54eea2(_0x32288d);}});};AGIVertices[_0xeb24('0xc')]['createSquareRecording']=function(_0x3b9b95,_0x34f9fa,_0x5d8652,_0x305fdc){this[_0xeb24('0xb')]['createSquareRecording']({'uniqueid':this[_0xeb24('0xa')][_0xeb24('0x30')],'callerid':this['channel']['callerid'],'calleridname':this['channel'][_0xeb24('0x35')],'context':this[_0xeb24('0xa')][_0xeb24('0x36')],'extension':this['channel']['extension'],'priority':this[_0xeb24('0xa')][_0xeb24('0x37')],'accountcode':this[_0xeb24('0xa')][_0xeb24('0x38')],'dnid':this[_0xeb24('0xa')]['dnid'],'projectName':this['channel']['arg_1'],'saveName':_0x34f9fa,'filename':_0x3b9b95[_0xeb24('0x39')]||_0x34f9fa,'savePath':_0x5d8652})[_0xeb24('0xf')](function(_0x5b6822){_0x305fdc(null,_0x5b6822);})[_0xeb24('0x10')](function(_0x1e3e76){_0x305fdc(_0x1e3e76);});};AGIVertices[_0xeb24('0xc')][_0xeb24('0x3a')]=function(_0xeaf312,_0x1b4af1,_0x520402){this[_0xeb24('0xb')][_0xeb24('0x3a')]({'uniqueid':this['channel'][_0xeb24('0x30')],'body':_0xeaf312,'direction':_0x1b4af1})[_0xeb24('0xf')](function(_0xb5c35){if(_0x520402){_0x520402(null,_0xb5c35);}})[_0xeb24('0x10')](function(_0x4ad2e1){if(_0x520402){_0x520402(_0x4ad2e1);}});};AGIVertices[_0xeb24('0xc')][_0xeb24('0x3b')]=function(_0x1f5da6,_0x3c7dd8){this['rpc']['createCmContact']({'firstName':_['isEmpty'](_0x1f5da6[_0xeb24('0x13')])||_[_0xeb24('0x3c')](_0x1f5da6[_0xeb24('0x13')])?_0xeb24('0x3d')+Math[_0xeb24('0x3e')]():_0x1f5da6[_0xeb24('0x13')],'lastName':_[_0xeb24('0x3f')](_0x1f5da6['lastName'])||_['isNil'](_0x1f5da6[_0xeb24('0x40')])?null:_0x1f5da6['lastName'],'phone':_0x1f5da6[_0xeb24('0x41')],'ListId':_0x1f5da6['list_id'],'scheduledAt':_0x1f5da6[_0xeb24('0x42')],'callbackUniqueid':this['channel']['uniqueid'],'tags':'callback','description':_0xeb24('0x43')+_0x1f5da6['scheduledAt'][_0xeb24('0x44')](),'priority':_0x1f5da6['callback_priority']})[_0xeb24('0xf')](function(_0x2a55d3){_0x3c7dd8(null,_0x2a55d3);})[_0xeb24('0x10')](function(_0x353293){_0x3c7dd8(_0x353293);});};AGIVertices['prototype'][_0xeb24('0x45')]=function(_0x1c2666,_0xcc8987){this['rpc'][_0xeb24('0x46')](_0x1c2666)[_0xeb24('0xf')](function(_0x2efc37){_0xcc8987(null,_0x2efc37?_0x2efc37[_0xeb24('0x13')]:![]);})[_0xeb24('0x10')](function(_0x3a8357){_0xcc8987(_0x3a8357);});};AGIVertices[_0xeb24('0xc')][_0xeb24('0x47')]=function(_0x2fcaec,_0x392a85,_0x1b793f){var _0xd6a3ef={'role':_0xeb24('0x48')};_0xd6a3ef[_0x2fcaec]=this[_0xeb24('0xa')][_0xeb24('0x34')];this[_0xeb24('0xb')][_0xeb24('0x47')](_0xd6a3ef,_0x392a85,this[_0xeb24('0xa')][_0xeb24('0x30')])[_0xeb24('0xf')](function(_0x2c4910){_0x1b793f(null,_[_0xeb24('0x3c')](_0x2c4910)?![]:!![]);})['catch'](function(_0x383c8b){logger['error'](_0x383c8b);_0x1b793f(null,![]);});};AGIVertices[_0xeb24('0xc')][_0xeb24('0x49')]=function(_0x3dcc40,_0x3d8efa){var _0x160c07={'role':'agent'};_0x160c07[_0x3dcc40]=this[_0xeb24('0xa')][_0xeb24('0x34')];this['rpc'][_0xeb24('0x49')](_0x160c07)[_0xeb24('0xf')](function(_0x4d5b42){_0x3d8efa(null,_['isNil'](_0x4d5b42)?![]:!![]);})['catch'](function(_0x2efeb7){logger[_0xeb24('0x26')](_0x2efeb7);_0x3d8efa(null,![]);});};AGIVertices[_0xeb24('0xc')]['agentLogout']=function(_0x1f0fea,_0xf949c6){var _0x3cd9f7={'role':_0xeb24('0x48')};_0x3cd9f7[_0x1f0fea]=this[_0xeb24('0xa')][_0xeb24('0x34')];this[_0xeb24('0xb')]['agentLogout'](_0x3cd9f7)['then'](function(_0x3ce6e6){_0xf949c6(null,_['isNil'](_0x3ce6e6)?![]:!![]);})[_0xeb24('0x10')](function(_0x386cd9){logger[_0xeb24('0x26')](_0x386cd9);_0xf949c6(null,![]);});};AGIVertices[_0xeb24('0xc')][_0xeb24('0x4a')]=function(_0x1514c8,_0x32c36f){var _0x531ec9={'role':_0xeb24('0x48')};_0x531ec9[_0x1514c8]=this[_0xeb24('0xa')][_0xeb24('0x34')];var _0x143549=_0x1514c8!=_0xeb24('0x4b')?util[_0xeb24('0x24')](_0xeb24('0x4c'),_0xeb24('0x4d'),this[_0xeb24('0xa')][_0xeb24('0x34')]):undefined;this[_0xeb24('0xb')][_0xeb24('0x4a')](_0x531ec9,_0x143549)[_0xeb24('0xf')](function(_0x2cc432){_0x32c36f(null,_['isNil'](_0x2cc432)?![]:!![]);})[_0xeb24('0x10')](function(_0x423c9a){logger[_0xeb24('0x26')](_0x423c9a);_0x32c36f(null,![]);});};AGIVertices['prototype'][_0xeb24('0x4e')]=function(_0x34fe55,_0x3dbc8b){sh[_0xeb24('0x4f')](_[_0xeb24('0x50')](_0x34fe55),function(_0xae66ce,_0x35c5bf){var _0x3e7d8f=_0x35c5bf[_0xeb24('0x51')](/(\r\n|\n|\r)/gm,'');_0x3dbc8b(null,_0x3e7d8f);});};AGIVertices[_0xeb24('0xc')]['googleTTS']=function(_0xc557e0,_0x27377){scripts[_0xeb24('0x52')](_0xc557e0[_0xeb24('0x53')],_0xc557e0[_0xeb24('0x54')]||'en',0x1)[_0xeb24('0xf')](function(_0xaa1ee7){_0x27377(null,_0xaa1ee7);})['catch'](function(_0x2ab7bd){_0x27377(_0x2ab7bd);});};AGIVertices[_0xeb24('0xc')][_0xeb24('0x55')]=function(_0x367675,_0x224018){scripts[_0xeb24('0x55')](this[_0xeb24('0xa')]['uniqueid'],_0x367675[_0xeb24('0x56')],_0x367675[_0xeb24('0x53')],_0x367675[_0xeb24('0x57')]||'en')[_0xeb24('0xf')](function(_0x5a4b3d){_0x224018(null,_0x5a4b3d);})['catch'](function(_0xe7eec1){_0x224018(_0xe7eec1);});};AGIVertices[_0xeb24('0xc')]['sestekNDA']=function(_0x2c645,_0x18fbfe){scripts[_0xeb24('0x58')](this[_0xeb24('0xa')],_0x2c645)[_0xeb24('0xf')](function(_0x4058df){_0x18fbfe(null,_0x4058df);})[_0xeb24('0x10')](function(_0x5d26f1){_0x18fbfe(_0x5d26f1);});};AGIVertices[_0xeb24('0xc')][_0xeb24('0x59')]=function(_0x443c3a,_0x2e86d3){scripts[_0xeb24('0x59')](_0x443c3a['key'],_0x443c3a[_0xeb24('0x53')],_0x443c3a[_0xeb24('0x5a')]||_0xeb24('0x5b'),_0x443c3a['speed'])[_0xeb24('0xf')](function(_0x594668){_0x2e86d3(null,_0x594668);})[_0xeb24('0x10')](function(_0x393635){_0x2e86d3(_0x393635);});};AGIVertices[_0xeb24('0xc')][_0xeb24('0x5c')]=function(_0x230ba3,_0x4d3a97,_0x5e2478){scripts['ispeechASR'](_0x4d3a97,_0x230ba3[_0xeb24('0x56')],_0x230ba3[_0xeb24('0x5d')]||_0xeb24('0x5b'),this['isConfigured'](_0x230ba3['model'])?_0x230ba3['model']:undefined)[_0xeb24('0xf')](function(_0x624329){_0x5e2478(null,_0x624329);})[_0xeb24('0x10')](function(_0x3717d1){_0x5e2478(_0x3717d1);});};AGIVertices[_0xeb24('0xc')][_0xeb24('0x5e')]=function(_0x38d715,_0x4c9d68){scripts[_0xeb24('0x5e')](_0x38d715[_0xeb24('0x5f')],_0x38d715[_0xeb24('0x60')],_0x38d715[_0xeb24('0x61')],_0x38d715[_0xeb24('0x62')]||'Amy',_0x38d715[_0xeb24('0x53')],_0x38d715[_0xeb24('0x63')]||_0xeb24('0x53'))[_0xeb24('0xf')](function(_0x1f946a){_0x4c9d68(null,_0x1f946a);})[_0xeb24('0x10')](function(_0x1295fc){_0x4c9d68(_0x1295fc);});};AGIVertices[_0xeb24('0xc')][_0xeb24('0x64')]=function(_0x58fb54,_0x4750c5){scripts[_0xeb24('0x64')](this[_0xeb24('0xa')]['uniqueid'],_0x58fb54['aws_access_key_id'],_0x58fb54['aws_secret_access_key'],_0x58fb54[_0xeb24('0x65')],_0x58fb54[_0xeb24('0x53')],_0x58fb54[_0xeb24('0x66')])[_0xeb24('0xf')](function(_0x34c948){_0x4750c5(null,_0x34c948);})[_0xeb24('0x10')](function(_0x53283e){_0x4750c5(_0x53283e);});};AGIVertices[_0xeb24('0xc')]['googleASR']=function(_0x11094c,_0x58363f,_0x21897d){scripts[_0xeb24('0x67')](_0x58363f,_0x11094c[_0xeb24('0x56')],_0x11094c[_0xeb24('0x68')]||_0xeb24('0x5b'))['then'](function(_0x11eaa2){_0x21897d(null,_0x11eaa2);})[_0xeb24('0x10')](function(_0x3c3126){_0x21897d(_0x3c3126);});};AGIVertices[_0xeb24('0xc')][_0xeb24('0x69')]=function(_0x3f16b8,_0x253195,_0x419688){scripts[_0xeb24('0x69')](_0x253195,_0x3f16b8['appid'],_0x3f16b8['appsecret'],_0x3f16b8['uri'])[_0xeb24('0xf')](function(_0x2784e3){_0x419688(null,_0x2784e3);})['catch'](function(_0x4d0982){_0x419688(_0x4d0982);});};AGIVertices['prototype']['clear']=function(_0x3cd844){var _0xe081e8=_[_0xeb24('0x6a')](verticesWithRetry,_0x3cd844[_0xeb24('0x32')])?_0x3cd844:_[_0xeb24('0x6b')](_0x3cd844);for(var _0x1ddb10 in _0xe081e8){if(_0xe081e8[_0xeb24('0x6c')](_0x1ddb10)){if(_0xe081e8[_0x1ddb10]&&_[_0xeb24('0x6d')](_0xe081e8[_0x1ddb10])){_0xe081e8[_0x1ddb10]=this[_0xeb24('0x6e')](_0xe081e8[_0x1ddb10]);}}}return _0xe081e8;};AGIVertices[_0xeb24('0xc')][_0xeb24('0x6e')]=function(_0x25baca){var _0x36b756=_0x25baca[_0xeb24('0x6f')]('{');for(var _0x340d12=0x1;_0x340d12<_0x36b756[_0xeb24('0x70')];_0x340d12+=0x1){var _0x1dc721=_0x36b756[_0x340d12][_0xeb24('0x6f')]('}');if(_0x1dc721[_0xeb24('0x70')]>0x1){_0x25baca=_0x25baca[_0xeb24('0x71')]('{'+_0x1dc721[0x0]+'}',this[_0xeb24('0xa')]['getVariable'](_0x1dc721[0x0])['extra']||_0x1dc721[0x0]);}}if(_0x36b756[_0xeb24('0x70')]===0x1){return _0x25baca[_0xeb24('0x44')]();}return this['replaceAllVariables'](_0x25baca);};AGIVertices[_0xeb24('0xc')][_0xeb24('0x72')]=function(_0x578205,_0x382f91){var _0x5501ed=this[_0xeb24('0xa')][_0xeb24('0xd')](_0x578205);if(_0x5501ed['result']===-0x1){return _0x5501ed;}logger[_0xeb24('0x29')](util[_0xeb24('0x24')](_0xeb24('0x73'),_0x382f91,_0x5501ed['extra']));return this[_0xeb24('0xa')][_0xeb24('0x74')](_0x382f91,_0x5501ed[_0xeb24('0x75')]);};AGIVertices[_0xeb24('0xc')]['isConfigured']=function(_0x5735a3){return _0x5735a3&&_0x5735a3!=='0'&&_0x5735a3!=='-1'&&_0x5735a3!=='';};AGIVertices[_0xeb24('0xc')]['maxRetry']=function(_0x409dfe){this[_0xeb24('0x2f')][_0xeb24('0x76')](this,_0x409dfe,'-');_0x409dfe[_0xeb24('0x77')]=_0x409dfe['maxRetry'];return{'code':0xc8,'result':'-'};};AGIVertices[_0xeb24('0xc')]['agi']=function(_0x43e6eb){logger['info'](util['format']('Enter\x20in\x20AGI\x20(%s)\x20block',_0x43e6eb['label']));return this[_0xeb24('0xa')][_0xeb24('0x5')]([_0x43e6eb['command'],_0x43e6eb['args']]);};AGIVertices[_0xeb24('0xc')]['answer']=function(_0xc295be){logger['info'](util['format'](_0xeb24('0x78'),_0xc295be['label']));if(this[_0xeb24('0x79')](_0xc295be['timeout'])){logger[_0xeb24('0x29')](util[_0xeb24('0x24')](_0xeb24('0x7a'),_0xc295be['timeout']));var _0x5875e1=this['channel'][_0xeb24('0x7b')](_0xc295be[_0xeb24('0x7c')]);if(_0x5875e1[_0xeb24('0x7d')]===-0x1){return _0x5875e1;}}return this[_0xeb24('0xa')][_0xeb24('0x7e')]();};AGIVertices[_0xeb24('0xc')]['callback']=function(_0x1d21ef){logger[_0xeb24('0x29')](util[_0xeb24('0x24')]('Enter\x20in\x20CALLBACK\x20(%s)\x20block',_0x1d21ef[_0xeb24('0x31')]));if(!this[_0xeb24('0x79')](_0x1d21ef['list_id'])){return this[_0xeb24('0xa')][_0xeb24('0x26')](_0x1d21ef,_0xeb24('0x7f'));}_0x1d21ef[_0xeb24('0x42')]=moment();if(this[_0xeb24('0x79')](_0x1d21ef[_0xeb24('0x80')])){_0x1d21ef['scheduledAt']=moment()[_0xeb24('0x81')](_0x1d21ef[_0xeb24('0x80')],_0xeb24('0x82'));}if(!this['isConfigured'](_0x1d21ef[_0xeb24('0x83')])){_0x1d21ef[_0xeb24('0x83')]=0x2;}this[_0xeb24('0x3b')][_0xeb24('0x76')](this,_0x1d21ef);return this[_0xeb24('0xa')][_0xeb24('0x84')](util['format'](_0xeb24('0x85'),_0x1d21ef[_0xeb24('0x41')],_0x1d21ef[_0xeb24('0x86')],_0x1d21ef['scheduledAt']));};AGIVertices[_0xeb24('0xc')][_0xeb24('0x87')]=function(_0x393ffb){logger['info'](util[_0xeb24('0x24')]('Enter\x20in\x20CUSTOM\x20APP\x20(%s)\x20block',_0x393ffb[_0xeb24('0x31')]));var _0x9e671=this[_0xeb24('0xa')]['exec'](_0x393ffb['application'],_0x393ffb[_0xeb24('0x88')]);if(_0x9e671[_0xeb24('0x7d')]===-0x1){return _0x9e671;}return this['channel']['noop'](util[_0xeb24('0x24')](_0xeb24('0x89'),_0x393ffb['application'],_0x393ffb['options']));};AGIVertices[_0xeb24('0xc')]['lumenvoxtts']=function(_0x1356ef){logger[_0xeb24('0x29')](util[_0xeb24('0x24')](_0xeb24('0x8a'),_0x1356ef[_0xeb24('0x31')]));if(!this['isConfigured'](_0x1356ef[_0xeb24('0x53')])){return this[_0xeb24('0xa')]['noop']('no\x20text\x20configured');}var _0x13a5c2='\x22'+_0x1356ef[_0xeb24('0x53')]+'\x22';if(this['isConfigured'](_0x1356ef[_0xeb24('0x88')])){_0x13a5c2+=','+_0x1356ef[_0xeb24('0x88')];}var _0x55653e=this['channel']['exec'](_0xeb24('0x8b'),_0x13a5c2);if(_0x55653e[_0xeb24('0x7d')]===-0x1){return _0x55653e;}return this[_0xeb24('0xa')][_0xeb24('0x84')](util[_0xeb24('0x24')](_0xeb24('0x8c'),_0x13a5c2));};AGIVertices[_0xeb24('0xc')][_0xeb24('0x8d')]=function(_0x5c3810){logger['info'](util['format']('Enter\x20in\x20SESTEKTTS\x20(%s)\x20block',_0x5c3810[_0xeb24('0x31')]));if(!this['isConfigured'](_0x5c3810[_0xeb24('0x53')])){return this[_0xeb24('0xa')][_0xeb24('0x84')]('no\x20text\x20configured');}var _0x3ee7df='\x22'+_0x5c3810['text']+'\x22';if(this['isConfigured'](_0x5c3810[_0xeb24('0x88')])){_0x3ee7df+=','+_0x5c3810[_0xeb24('0x88')];}var _0x5393c5=this[_0xeb24('0xa')][_0xeb24('0x4f')](_0xeb24('0x8b'),_0x3ee7df);if(_0x5393c5[_0xeb24('0x7d')]===-0x1){return _0x5393c5;}return this[_0xeb24('0xa')][_0xeb24('0x84')](util[_0xeb24('0x24')](_0xeb24('0x8c'),_0x3ee7df));};AGIVertices['prototype'][_0xeb24('0x8e')]=function(_0x3e72ce){logger['info'](util[_0xeb24('0x24')]('Enter\x20in\x20LUMENVOXASR\x20(%s)\x20block',_0x3e72ce['label']));if(!this[_0xeb24('0x79')](_0x3e72ce['grammar'])){return this[_0xeb24('0xa')]['noop'](_0xeb24('0x8f'));}var _0x528410=_0x3e72ce[_0xeb24('0x90')];if(this[_0xeb24('0x79')](_0x3e72ce[_0xeb24('0x88')])){_0x528410+=','+_0x3e72ce[_0xeb24('0x88')];}var _0x5b43e2=this['channel'][_0xeb24('0x4f')]('MRCPRecog',_0x528410);if(_0x5b43e2[_0xeb24('0x7d')]===-0x1){return _0x5b43e2;}var _0x58129e=this[_0xeb24('0x72')]('RECOG_CONFIDENCE()',_0xeb24('0x91'));if(_0x58129e['result']===-0x1){return _0x58129e;}var _0x5e8b26=this[_0xeb24('0x72')](_0xeb24('0x92'),'LUMENVOX_ASR_TRANSCRIPT');if(_0x5e8b26[_0xeb24('0x7d')]===-0x1){return _0x5e8b26;}var _0x3289e3=this[_0xeb24('0x72')](_0xeb24('0x93'),_0xeb24('0x94'));if(_0x3289e3[_0xeb24('0x7d')]===-0x1){return _0x3289e3;}return this['channel'][_0xeb24('0x84')](util[_0xeb24('0x24')]('Executed\x20command\x20MRCPRecog\x20%s',_0x528410));};AGIVertices['prototype'][_0xeb24('0x95')]=function(_0x3c7ca2){logger['info'](util['format']('Enter\x20in\x20SESTEKASR\x20(%s)\x20block',_0x3c7ca2[_0xeb24('0x31')]));if(!this[_0xeb24('0x79')](_0x3c7ca2[_0xeb24('0x90')])){return this[_0xeb24('0xa')][_0xeb24('0x84')]('no\x20grammar\x20configured');}var _0x2630e2=_0x3c7ca2[_0xeb24('0x90')];if(this[_0xeb24('0x79')](_0x3c7ca2['options'])){_0x2630e2+=','+_0x3c7ca2[_0xeb24('0x88')];}var _0x39a70a=this[_0xeb24('0xa')][_0xeb24('0x4f')](_0xeb24('0x96'),_0x2630e2);if(_0x39a70a[_0xeb24('0x7d')]===-0x1){return _0x39a70a;}var _0x3595ea=this['getAndSetVariable'](_0xeb24('0x97'),_0xeb24('0x98'));if(_0x3595ea[_0xeb24('0x7d')]===-0x1){return _0x3595ea;}var _0x5f1924=this['getAndSetVariable'](_0xeb24('0x92'),_0xeb24('0x99'));if(_0x5f1924[_0xeb24('0x7d')]===-0x1){return _0x5f1924;}var _0x4804dd=this[_0xeb24('0x72')]('RECOG_INSTANCE()',_0xeb24('0x9a'));if(_0x4804dd[_0xeb24('0x7d')]===-0x1){return _0x4804dd;}return this['channel']['noop'](util[_0xeb24('0x24')](_0xeb24('0x9b'),_0x2630e2));};AGIVertices[_0xeb24('0xc')][_0xeb24('0x9c')]=function(_0x3e5d82){logger[_0xeb24('0x29')](util[_0xeb24('0x24')]('Enter\x20in\x20DATABASE\x20(%s)\x20block',_0x3e5d82[_0xeb24('0x31')]));if(!this['isConfigured'](_0x3e5d82[_0xeb24('0x9d')])){return this[_0xeb24('0xa')][_0xeb24('0x26')](_0x3e5d82,_0xeb24('0x9e'));}var _0x281e1c=this['getSquareOdbc'][_0xeb24('0x76')](this,_0x3e5d82[_0xeb24('0x9d')]);if(!_0x281e1c){return this[_0xeb24('0xa')][_0xeb24('0x26')](_0x3e5d82,'no\x20odbc\x20database\x20found');}if(!this[_0xeb24('0x79')](_0x3e5d82[_0xeb24('0x28')])){return this['channel'][_0xeb24('0x26')](_0x3e5d82,_0xeb24('0x9f'));}var _0x867c8b=_0x3e5d82['query']['replace'](/(\r\n|\n|\r)/gm,'\x20');this[_0xeb24('0xa')][_0xeb24('0x84')](util[_0xeb24('0x24')](_0xeb24('0xa0'),_0x867c8b));var _0x63af7=this[_0xeb24('0x25')][_0xeb24('0x76')](this,_0x281e1c,_0x867c8b);this[_0xeb24('0x2f')][_0xeb24('0x76')](this,_0x3e5d82,_0x867c8b);if(!this[_0xeb24('0x79')](_0x3e5d82[_0xeb24('0xa1')])){return this[_0xeb24('0xa')][_0xeb24('0x84')](_0xeb24('0xa2'));}var _0x51e552=this[_0xeb24('0xd')][_0xeb24('0x76')](this,_0x3e5d82['variable_id']);if(!_0x51e552){return this[_0xeb24('0xa')]['error'](_0x3e5d82,_0xeb24('0xa3'));}var _0x146b1b=this;_0x63af7[_0xeb24('0xa4')](function(_0x25ad52,_0x257031){Object[_0xeb24('0xa5')](_0x25ad52)['forEach'](function(_0x49d66b){_0x146b1b[_0xeb24('0xa')][_0xeb24('0x74')](util[_0xeb24('0x24')](_0xeb24('0xa6'),_0x51e552,_0x257031,_0x49d66b),_0x25ad52[_0x49d66b]);});});this[_0xeb24('0xa')][_0xeb24('0x74')](util[_0xeb24('0x24')](_0xeb24('0xa7'),_0x51e552),_0x63af7['length']);return this[_0xeb24('0xa')][_0xeb24('0x84')](util[_0xeb24('0x24')](_0xeb24('0xa8'),_0x51e552));};AGIVertices[_0xeb24('0xc')][_0xeb24('0xa9')]=function(_0x488068){logger[_0xeb24('0xaa')](util[_0xeb24('0x24')](_0xeb24('0xab'),_0x488068[_0xeb24('0x31')]));if(!this['isConfigured'](_0x488068[_0xeb24('0xac')])){return this[_0xeb24('0xa')][_0xeb24('0x26')](_0x488068,_0xeb24('0xad'));}var _0x42a54e=this[_0xeb24('0x17')][_0xeb24('0x76')](this,_0x488068[_0xeb24('0xac')]);if(!_0x42a54e){return this[_0xeb24('0xa')]['error'](_0x488068,_0xeb24('0xae'));}var _0x289b2b=this['channel']['exec'](_0xeb24('0xaf'),[util[_0xeb24('0x24')]('SIP/%s',_0x42a54e),_0x488068[_0xeb24('0x7c')],_0x488068[_0xeb24('0xb0')],_0x488068[_0xeb24('0xb1')]]);if(_0x289b2b[_0xeb24('0x7d')]===-0x1){return _0x289b2b;}return this[_0xeb24('0xa')][_0xeb24('0x84')](util[_0xeb24('0x24')](_0xeb24('0xb2'),'DIAL'));};AGIVertices[_0xeb24('0xc')][_0xeb24('0xb3')]=function(_0x4b064a){logger[_0xeb24('0x29')](util['format'](_0xeb24('0xb4'),_0x4b064a[_0xeb24('0x31')]));if(!this[_0xeb24('0x79')](_0x4b064a[_0xeb24('0x56')])){return this[_0xeb24('0xa')][_0xeb24('0x84')](_0xeb24('0xb5'));}if(!this[_0xeb24('0x79')](_0x4b064a[_0xeb24('0x53')])){return this[_0xeb24('0xa')][_0xeb24('0x84')]('no\x20text\x20configured');}this[_0xeb24('0xa')][_0xeb24('0xb6')]=!![];this['createSquareDetailsReport'](_0x4b064a);this['createSquareMessage'](_0x4b064a[_0xeb24('0x53')],'in');this[_0xeb24('0xa')]['noop'](util[_0xeb24('0x24')]('Trying\x20Dialogflow:\x20%s',_0x4b064a['text']));var _0x566a2d=this[_0xeb24('0x55')][_0xeb24('0x76')](this,_0x4b064a);if(_0x566a2d){for(var _0x9aca2a in _0x566a2d){if(_0x566a2d['hasOwnProperty'](_0x9aca2a)){this[_0xeb24('0xa')][_0xeb24('0x74')](util[_0xeb24('0x24')](_0xeb24('0xb7'),_0x9aca2a['toUpperCase']()),_0x566a2d[_0x9aca2a]);}}this[_0xeb24('0x3a')](_0x566a2d[_0xeb24('0xb8')],'out');return this[_0xeb24('0xa')]['noop'](util[_0xeb24('0x24')]('Dialogflow\x20Result\x20%s',_0x566a2d[_0xeb24('0xb8')]));}return this[_0xeb24('0xa')][_0xeb24('0x26')](_0x4b064a,_0xeb24('0xb9'));};AGIVertices[_0xeb24('0xc')][_0xeb24('0xba')]=function(_0x1c52bd){logger['info'](util[_0xeb24('0x24')](_0xeb24('0xbb'),_0x1c52bd['label']));if(!this['isConfigured'](_0x1c52bd[_0xeb24('0xbc')])){return this[_0xeb24('0xa')][_0xeb24('0x84')](_0xeb24('0xbd'));}if(!this[_0xeb24('0x79')](_0x1c52bd['username'])){return this[_0xeb24('0xa')][_0xeb24('0x84')](_0xeb24('0xbe'));}if(!this['isConfigured'](_0x1c52bd[_0xeb24('0xbf')])){return this['channel'][_0xeb24('0x84')](_0xeb24('0xc0'));}if(!this[_0xeb24('0x79')](_0x1c52bd[_0xeb24('0xc1')])){return this[_0xeb24('0xa')]['noop'](_0xeb24('0xc2'));}this[_0xeb24('0xa')][_0xeb24('0xb6')]=!![];this[_0xeb24('0x2f')](_0x1c52bd);this['createSquareMessage'](_0x1c52bd['text'],'in');this['channel'][_0xeb24('0x84')](util[_0xeb24('0x24')](_0xeb24('0xc3'),_0x1c52bd['text']));var _0x5e0f03=this[_0xeb24('0x58')][_0xeb24('0x76')](this,_0x1c52bd);if(_0x5e0f03){for(var _0x304fea in _0x5e0f03){if(_0x5e0f03[_0xeb24('0x6c')](_0x304fea)){this[_0xeb24('0xa')][_0xeb24('0x74')](util[_0xeb24('0x24')](_0xeb24('0xc4'),_0x304fea[_0xeb24('0xc5')]()),_0x5e0f03[_0x304fea]);}}this[_0xeb24('0x3a')](_0x5e0f03['speech'],'out');if(_0x5e0f03[_0xeb24('0xc6')]){this[_0xeb24('0xa')][_0xeb24('0x84')](util[_0xeb24('0x24')](_0xeb24('0xc7'),_0x5e0f03[_0xeb24('0xc6')]));var _0x348f1c=this['channel'][_0xeb24('0xc8')](_0x5e0f03['audiofile']);try{fs[_0xeb24('0xc9')](_0x5e0f03[_0xeb24('0xc6')]+_0xeb24('0xca'));}catch(_0x12d751){logger['error'](_0x12d751);}return _0x348f1c;}else{return this['channel']['noop'](util[_0xeb24('0x24')]('SestekNDA\x20Result\x20%s',_0x5e0f03[_0xeb24('0xb8')]));}}return this[_0xeb24('0xa')]['error'](_0x1c52bd,_0xeb24('0xcb'));};AGIVertices[_0xeb24('0xc')][_0xeb24('0xcc')]=function(_0x1697af){logger[_0xeb24('0x29')](util['format']('Enter\x20in\x20END\x20(%s)\x20block',_0x1697af[_0xeb24('0x31')]));return this['channel'][_0xeb24('0x84')](_0xeb24('0xcc'));};AGIVertices[_0xeb24('0xc')][_0xeb24('0xcd')]=function(_0x4d9b71){logger[_0xeb24('0x29')](util[_0xeb24('0x24')](_0xeb24('0xce'),_0x4d9b71[_0xeb24('0x31')]));var _0x398059='';if(_0x4d9b71[_0xeb24('0xcf')]){if(!this[_0xeb24('0x79')](_0x4d9b71['trunk_id'])){return this['channel'][_0xeb24('0x26')](_0x4d9b71,_0xeb24('0xd0'));}else{var _0x2041d1=parseInt(_0x4d9b71['trunk_id'],0xa);if(isNaN(_0x2041d1)){_0x398059=_0x4d9b71[_0xeb24('0xcf')];}else{_0x398059=this['getTrunk']['sync'](this,_0x4d9b71[_0xeb24('0xcf')]);if(!_0x398059){return this[_0xeb24('0xa')][_0xeb24('0x26')](_0x4d9b71,_0xeb24('0xd1'));}}}}else if(_0x4d9b71[_0xeb24('0xd2')]){_0x398059=_0x4d9b71[_0xeb24('0xd2')];}else{return this['channel'][_0xeb24('0x26')](_0x4d9b71,_0xeb24('0xd0'));}var _0x4c92e0=this[_0xeb24('0xa')][_0xeb24('0x4f')](_0xeb24('0xaf'),[util['format'](_0xeb24('0xd3'),_0x398059,_0x4d9b71[_0xeb24('0x41')]),_0x4d9b71['timeout'],_0x4d9b71[_0xeb24('0xb0')],_0x4d9b71[_0xeb24('0xb1')]]);if(_0x4c92e0[_0xeb24('0x7d')]===-0x1){return _0x4c92e0;}return this[_0xeb24('0xa')][_0xeb24('0x84')](util[_0xeb24('0x24')](_0xeb24('0xb2'),_0xeb24('0xaf')));};AGIVertices[_0xeb24('0xc')][_0xeb24('0xd4')]=function(_0x3cfd85){logger['info'](util[_0xeb24('0x24')](_0xeb24('0xd5'),_0x3cfd85['label']));return this[_0xeb24('0xa')][_0xeb24('0x84')](_0xeb24('0xd4'));};AGIVertices[_0xeb24('0xc')][_0xeb24('0xd6')]=function(_0x1e809d){logger[_0xeb24('0x29')](util[_0xeb24('0x24')](_0xeb24('0xd7'),_0x1e809d['label']));if(_0x1e809d['retry']===0x0){return this[_0xeb24('0xd8')](_0x1e809d);}_0x1e809d[_0xeb24('0x77')]-=0x1;if(!this[_0xeb24('0x79')](_0x1e809d[_0xeb24('0xd9')])){return this[_0xeb24('0xa')][_0xeb24('0x26')](_0x1e809d,_0xeb24('0xda'));}var _0x3f4242=this[_0xeb24('0x1a')][_0xeb24('0x76')](this,_0x1e809d[_0xeb24('0xd9')]);if(!_0x3f4242){return this['channel'][_0xeb24('0x26')](_0x1e809d,_0xeb24('0xdb'));}if(!this['isConfigured'](_0x1e809d[_0xeb24('0xa1')])){return this[_0xeb24('0xa')][_0xeb24('0x26')]('no\x20variable\x20selected\x20for\x20the\x20result');}var _0x5111b0=this[_0xeb24('0xa')][_0xeb24('0xdc')](_0x3f4242,_0x1e809d[_0xeb24('0xdd')],_0x1e809d[_0xeb24('0xde')]);var _0x1ab476=_0x5111b0[_0xeb24('0x7d')]?_0x5111b0['result']['toString']():'';logger[_0xeb24('0x29')](_0xeb24('0xdf'),JSON['stringify'](_0x5111b0));if(_0x5111b0['result']===-0x1){this['createSquareDetailsReport']['sync'](this,_0x1e809d,_0x1ab476);return _0x5111b0;}else if(_0x5111b0[_0xeb24('0x75')]===_0xeb24('0x7c')){_0x5111b0['result']=_0x1ab476['length']>=parseInt(_0x1e809d[_0xeb24('0xe0')])?'x':'i';}else{_0x5111b0[_0xeb24('0x7d')]=_0x1ab476[_0xeb24('0x70')]>=parseInt(_0x1e809d[_0xeb24('0xe0')])&&_0x1ab476['length']<=parseInt(_0x1e809d['maxdigit'])?'x':'i';}var _0x5ba7f4=this[_0xeb24('0xd')]['sync'](this,_0x1e809d['variable_id']);if(!_0x5ba7f4){return this['channel'][_0xeb24('0x26')](_0x1e809d,_0xeb24('0xa3'));}this['channel'][_0xeb24('0x74')](_0x5ba7f4,_0x1ab476);if(this[_0xeb24('0x79')](_0x1e809d[_0xeb24('0xe1')])){var _0x5b8bed=parseInt(_0x1e809d[_0xeb24('0xe1')],0xa);var _0x4c6964=rs[_0xeb24('0xe2')]({'charset':'*','length':_0x5b8bed});var _0x569e14=_0x1ab476[_0xeb24('0x70')];if(_0x569e14>0x0){if(_0x569e14>_0x5b8bed){this[_0xeb24('0x2f')][_0xeb24('0x76')](this,_0x1e809d,_0x1e809d[_0xeb24('0xe3')]===_0xeb24('0xe4')?_0x4c6964+_0x1ab476['substr'](_0x5b8bed):_0x1ab476[_0xeb24('0xe5')](0x0,_0x569e14-_0x5b8bed)+_0x4c6964);}else{this[_0xeb24('0x2f')][_0xeb24('0x76')](this,_0x1e809d,rs[_0xeb24('0xe2')]({'charset':'*','length':_0x569e14}));}}else{this[_0xeb24('0x2f')][_0xeb24('0x76')](this,_0x1e809d,'');}}else{this[_0xeb24('0x2f')][_0xeb24('0x76')](this,_0x1e809d,_0x1ab476);}return _0x5111b0;};AGIVertices[_0xeb24('0xc')]['getsecretdigits']=function(_0x33b15f){logger[_0xeb24('0x29')](util[_0xeb24('0x24')](_0xeb24('0xe6'),_0x33b15f[_0xeb24('0x31')]));return this[_0xeb24('0xd6')](_0x33b15f);};AGIVertices['prototype'][_0xeb24('0xe7')]=function(_0x1df552){logger[_0xeb24('0x29')](util[_0xeb24('0x24')](_0xeb24('0xe8'),_0x1df552[_0xeb24('0x31')]));this['createSquareDetailsReport'][_0xeb24('0x76')](this,_0x1df552,_0x1df552[_0xeb24('0xe9')]);return this[_0xeb24('0xa')][_0xeb24('0x84')](util[_0xeb24('0x24')]('GOAL\x20%s',_0x1df552['goalname']));};AGIVertices[_0xeb24('0xc')]['awspolly']=function(_0x110832){logger['info'](util['format']('[AGI]\x20Enter\x20in\x20AWSPOLLY\x20(%s)\x20block',_0x110832[_0xeb24('0x31')]));if(!this['isConfigured'](_0x110832[_0xeb24('0x5f')])||!this[_0xeb24('0x79')](_0x110832['aws_secret_access_key'])){return this[_0xeb24('0xa')][_0xeb24('0x84')]('no\x20valid\x20credentials\x20configured');}if(!this[_0xeb24('0x79')](_0x110832['text'])){return this['channel'][_0xeb24('0x84')](_0xeb24('0xc2'));}this[_0xeb24('0xa')]['noop'](util[_0xeb24('0x24')]('Trying\x20aws\x20Polly\x20%s',_0x110832['text']));var _0x8dfffd=this[_0xeb24('0x5e')][_0xeb24('0x76')](this,_0x110832);if(_0x8dfffd){this[_0xeb24('0xa')][_0xeb24('0x84')](util['format'](_0xeb24('0xea'),_0x8dfffd));var _0x595bd0=this[_0xeb24('0xa')][_0xeb24('0xc8')](_0x8dfffd);try{fs[_0xeb24('0xc9')](_0x8dfffd+_0xeb24('0xca'));}catch(_0x594ee2){logger[_0xeb24('0x26')](_0x594ee2);}return _0x595bd0;}return this['channel']['error'](_0x110832,'aws\x20Polly\x20is\x20unreachable');};AGIVertices[_0xeb24('0xc')][_0xeb24('0xeb')]=function(_0x8e41bd){logger['info'](util['format'](_0xeb24('0xec'),_0x8e41bd['label']));if(!this[_0xeb24('0x79')](_0x8e41bd['aws_access_key_id'])||!this[_0xeb24('0x79')](_0x8e41bd[_0xeb24('0x60')])){return this[_0xeb24('0xa')][_0xeb24('0x84')](_0xeb24('0xed'));}if(!this[_0xeb24('0x79')](_0x8e41bd['aws_bot_name'])){return this['channel'][_0xeb24('0x84')](_0xeb24('0xee'));}if(!this[_0xeb24('0x79')](_0x8e41bd[_0xeb24('0x53')])){return this['channel'][_0xeb24('0x84')]('no\x20text\x20configured');}this['channel'][_0xeb24('0xb6')]=!![];this[_0xeb24('0x2f')](_0x8e41bd);this[_0xeb24('0x3a')](_0x8e41bd['text'],'in');this['channel'][_0xeb24('0x84')](util['format'](_0xeb24('0xef'),_0x8e41bd[_0xeb24('0x53')]));var _0x108488=this[_0xeb24('0x64')][_0xeb24('0x76')](this,_0x8e41bd);if(_0x108488){for(var _0x5e0f86 in _0x108488){if(_0x108488['hasOwnProperty'](_0x5e0f86)&&_[_0xeb24('0x6d')](_0x108488[_0x5e0f86])){this[_0xeb24('0xa')]['setVariable'](util[_0xeb24('0x24')](_0xeb24('0xf0'),_0x5e0f86[_0xeb24('0xc5')]()),_0x108488[_0x5e0f86]);}}if(_[_0xeb24('0x3c')](_0x108488[_0xeb24('0xf1')])){return this[_0xeb24('0xa')]['noop'](_0xeb24('0xf2'));}else{this['createSquareMessage'](_0x108488[_0xeb24('0xf1')],_0xeb24('0xf3'));return this[_0xeb24('0xa')]['noop'](util[_0xeb24('0x24')](_0xeb24('0xf4'),_0x108488[_0xeb24('0xf1')]));}}return this['channel'][_0xeb24('0x26')](_0x8e41bd,_0xeb24('0xf5'));};AGIVertices[_0xeb24('0xc')][_0xeb24('0xf6')]=function(_0x151a69){logger[_0xeb24('0x29')](util[_0xeb24('0x24')](_0xeb24('0xf7'),_0x151a69[_0xeb24('0x31')],_0x151a69['timeout']));if(!this[_0xeb24('0x79')](_0x151a69['key'])){return this[_0xeb24('0xa')][_0xeb24('0x84')](_0xeb24('0xb5'));}var _0x37acb0=_0xeb24('0xf8');var _0x709ccc=util[_0xeb24('0x24')]('%s/recordings/%s',FILES_PATH,rs[_0xeb24('0xe2')](0x4));var _0x2df2d1=util[_0xeb24('0x24')](_0xeb24('0xf9'),_0x709ccc,_0x37acb0);var _0x1d4506=!![];if(_0x151a69[_0xeb24('0xfa')]===_0xeb24('0xfb')){_0x1d4506=![];}var _0x2d2f6f=this['channel']['recordFile'](_0x709ccc,_0x37acb0,_0x151a69[_0xeb24('0xfc')],_0x151a69[_0xeb24('0x7c')],undefined,_0x1d4506);if(_0x2d2f6f[_0xeb24('0x7d')]!==-0x1){this[_0xeb24('0xa')]['noop'](util[_0xeb24('0x24')](_0xeb24('0xfd'),_0x2df2d1));var _0x1d47e6=this[_0xeb24('0x67')]['sync'](this,_0x151a69,_0x2df2d1);if(_0x1d47e6){for(var _0x4d48ee in _0x1d47e6){if(_0x1d47e6[_0xeb24('0x6c')](_0x4d48ee)){this['channel'][_0xeb24('0x74')](util[_0xeb24('0x24')](_0xeb24('0xfe'),_0x4d48ee[_0xeb24('0xc5')]()),_0x1d47e6[_0x4d48ee]);}}return this[_0xeb24('0xa')][_0xeb24('0x84')](util[_0xeb24('0x24')](_0xeb24('0xff'),JSON[_0xeb24('0x100')](_0x1d47e6)));}}return _0x2d2f6f;};AGIVertices[_0xeb24('0xc')]['tildeasr']=function(_0x4a8173){logger[_0xeb24('0x29')](util['format'](_0xeb24('0x101'),_0x4a8173[_0xeb24('0x31')]));if(!this['isConfigured'](_0x4a8173[_0xeb24('0x102')])){return this['channel'][_0xeb24('0x84')](_0xeb24('0x103'));}if(!this[_0xeb24('0x79')](_0x4a8173['appsecret'])){return this[_0xeb24('0xa')][_0xeb24('0x84')](_0xeb24('0x104'));}var _0x573af3='wav';var _0x206c7c=util[_0xeb24('0x24')](_0xeb24('0x105'),FILES_PATH,rs[_0xeb24('0xe2')](0x4));var _0x26bd7d=util[_0xeb24('0x24')]('%s.%s',_0x206c7c,_0x573af3);var _0x3d7eee=!![];if(_0x4a8173[_0xeb24('0xfa')]===_0xeb24('0xfb')){_0x3d7eee=![];}var _0xfbff14=this[_0xeb24('0xa')]['recordFile'](_0x206c7c,_0x573af3,_0x4a8173['intKey'],_0x4a8173[_0xeb24('0x7c')],undefined,_0x3d7eee);if(_0xfbff14[_0xeb24('0x7d')]!==-0x1){this[_0xeb24('0xa')][_0xeb24('0x84')](util[_0xeb24('0x24')](_0xeb24('0x106'),_0x26bd7d));var _0x24bd81=this[_0xeb24('0x69')][_0xeb24('0x76')](this,_0x4a8173,_0x26bd7d);if(_0x24bd81){for(var _0x22901f in _0x24bd81){if(_0x24bd81[_0xeb24('0x6c')](_0x22901f)){this[_0xeb24('0xa')]['setVariable'](util[_0xeb24('0x24')](_0xeb24('0x107'),_0x22901f['toUpperCase']()),_0x24bd81[_0x22901f]);}}return this['channel'][_0xeb24('0x84')](util[_0xeb24('0x24')](_0xeb24('0x108'),JSON['stringify'](_0x24bd81)));}}return _0xfbff14;};AGIVertices[_0xeb24('0xc')][_0xeb24('0x109')]=function(_0x193d2d){logger[_0xeb24('0x29')](util[_0xeb24('0x24')](_0xeb24('0x10a'),_0x193d2d[_0xeb24('0x31')]));return this['channel'][_0xeb24('0x10b')](_0x193d2d[_0xeb24('0x36')],_0x193d2d[_0xeb24('0x10c')],_0x193d2d['priority']);};AGIVertices[_0xeb24('0xc')]['gotoif']=function(_0x5e4dbc){logger[_0xeb24('0x29')](util[_0xeb24('0x24')](_0xeb24('0x10d'),_0x5e4dbc[_0xeb24('0x31')]));if(!this[_0xeb24('0x79')](_0x5e4dbc[_0xeb24('0x10e')])){return this[_0xeb24('0xa')][_0xeb24('0x26')](_0x5e4dbc,_0xeb24('0x10f'));}try{var _0x1f3fb5=eval(_0x5e4dbc[_0xeb24('0x10e')])?_0xeb24('0x110'):_0xeb24('0x111');this[_0xeb24('0xa')][_0xeb24('0x84')](util[_0xeb24('0x24')](_0xeb24('0x112'),_0x5e4dbc[_0xeb24('0x10e')],_0x1f3fb5));return{'code':0xc8,'result':_0x1f3fb5};}catch(_0x5afebe){return{'code':0xc8,'result':'false'};}};AGIVertices[_0xeb24('0xc')][_0xeb24('0x113')]=function(_0x18a9bb){logger['info'](util[_0xeb24('0x24')](_0xeb24('0x114'),_0x18a9bb[_0xeb24('0x31')]));if(!this['isConfigured'](_0x18a9bb[_0xeb24('0x115')])){return this[_0xeb24('0xa')][_0xeb24('0x26')](_0x18a9bb,_0xeb24('0x116'));}var _0x4f4778=this['getIntervals'][_0xeb24('0x76')](this,_0x18a9bb['interval_id']);if(!_0x4f4778){return this[_0xeb24('0xa')][_0xeb24('0x26')](_0x18a9bb,_0xeb24('0x117'));}for(var _0x1f025a=0x0;_0x1f025a<_0x4f4778[_0xeb24('0x70')];_0x1f025a+=0x1){var _0x315d2e=this[_0xeb24('0xa')][_0xeb24('0xd')](util[_0xeb24('0x24')]('IFTIME(%s?true:false)',_0x4f4778[_0x1f025a]));if(_0x315d2e[_0xeb24('0x7d')]===-0x1){return _0x315d2e;}logger[_0xeb24('0x29')](util[_0xeb24('0x24')](_0xeb24('0x118'),_0x4f4778[_0x1f025a],_0x315d2e[_0xeb24('0x75')]));if(_0x315d2e[_0xeb24('0x75')]===_0xeb24('0x110')){logger['info'](util[_0xeb24('0x24')]('IFTIME\x20%s\x20%s',_0x4f4778[_0x1f025a],_0xeb24('0x110')));this[_0xeb24('0xa')][_0xeb24('0x84')](util[_0xeb24('0x24')](_0xeb24('0x118'),_0x4f4778[_0x1f025a],_0xeb24('0x110')));return{'code':0xc8,'result':_0xeb24('0x110')};}else{logger[_0xeb24('0x29')](util[_0xeb24('0x24')]('IFTIME\x20%s\x20%s',_0x4f4778[_0x1f025a],'false'));this[_0xeb24('0xa')][_0xeb24('0x84')](util[_0xeb24('0x24')]('IFTIME\x20%s\x20%s',_0x4f4778[_0x1f025a],_0xeb24('0x111')));}}return{'code':0xc8,'result':_0xeb24('0x111')};};AGIVertices[_0xeb24('0xc')][_0xeb24('0x119')]=function(_0x415401){logger['info'](util['format'](_0xeb24('0x11a'),_0x415401[_0xeb24('0x31')]));return this[_0xeb24('0xa')][_0xeb24('0x119')]();};AGIVertices[_0xeb24('0xc')][_0xeb24('0x11b')]=function(_0x2652b0){logger[_0xeb24('0x29')](util[_0xeb24('0x24')](_0xeb24('0x11c'),_0x2652b0[_0xeb24('0x31')]));if(!this[_0xeb24('0x79')](_0x2652b0[_0xeb24('0x56')])){return this[_0xeb24('0xa')][_0xeb24('0x84')]('no\x20key\x20configured');}var _0x1bd97a=_0xeb24('0xf8');var _0x26c5de=util[_0xeb24('0x24')](_0xeb24('0x105'),FILES_PATH,rs['generate'](0x4));var _0x387901=util[_0xeb24('0x24')](_0xeb24('0xf9'),_0x26c5de,_0x1bd97a);var _0x107bcc=!![];if(_0x2652b0[_0xeb24('0xfa')]===_0xeb24('0xfb')){_0x107bcc=![];}var _0x21b941=this[_0xeb24('0xa')]['recordFile'](_0x26c5de,_0x1bd97a,_0x2652b0[_0xeb24('0xfc')],_0x2652b0[_0xeb24('0x7c')],undefined,_0x107bcc);if(_0x21b941[_0xeb24('0x7d')]!==-0x1){this[_0xeb24('0xa')][_0xeb24('0x84')](util[_0xeb24('0x24')](_0xeb24('0x11d'),_0x387901));var _0x2af92a=this['ispeechASR'][_0xeb24('0x76')](this,_0x2652b0,_0x387901);if(_0x2af92a){for(var _0x3726f6 in _0x2af92a){if(_0x2af92a[_0xeb24('0x6c')](_0x3726f6)){this[_0xeb24('0xa')][_0xeb24('0x74')](util[_0xeb24('0x24')](_0xeb24('0x11e'),_0x3726f6[_0xeb24('0xc5')]()),_0x2af92a[_0x3726f6]);}}return this[_0xeb24('0xa')][_0xeb24('0x84')](util['format']('IspeechASR\x20Result\x20%s',JSON[_0xeb24('0x100')](_0x2af92a)));}}return _0x21b941;};AGIVertices[_0xeb24('0xc')][_0xeb24('0x11f')]=function(_0x22ffdf){logger['info'](util[_0xeb24('0x24')]('Enter\x20in\x20ISPEECHTTS\x20(%s)\x20block',_0x22ffdf[_0xeb24('0x31')]));if(!this[_0xeb24('0x79')](_0x22ffdf[_0xeb24('0x56')])){return this[_0xeb24('0xa')][_0xeb24('0x84')](_0xeb24('0xb5'));}if(!this[_0xeb24('0x79')](_0x22ffdf[_0xeb24('0x53')])){return this['channel']['noop'](_0xeb24('0xc2'));}this[_0xeb24('0xa')][_0xeb24('0x84')](util[_0xeb24('0x24')](_0xeb24('0x120'),_0x22ffdf[_0xeb24('0x53')]));var _0x4a43bc=this[_0xeb24('0x59')][_0xeb24('0x76')](this,_0x22ffdf);if(_0x4a43bc){this[_0xeb24('0xa')][_0xeb24('0x84')](util[_0xeb24('0x24')]('ispeech\x20%s\x20file\x20created',_0x4a43bc));var _0x134d93=this[_0xeb24('0xa')][_0xeb24('0xc8')](_0x4a43bc,_0x22ffdf[_0xeb24('0xfc')]);try{fs[_0xeb24('0xc9')](_0x4a43bc+'.wav');}catch(_0x416e6d){logger[_0xeb24('0x26')](_0x416e6d);}return _0x134d93;}return this['channel'][_0xeb24('0x26')](_0x22ffdf,'ispeech\x20TTS\x20is\x20unreachable');};AGIVertices[_0xeb24('0xc')][_0xeb24('0x121')]=function(_0x11222b){logger[_0xeb24('0x29')](util[_0xeb24('0x24')]('Enter\x20in\x20LOGIN\x20(%s)\x20block',_0x11222b[_0xeb24('0x31')]));if(!this[_0xeb24('0x79')](_0x11222b[_0xeb24('0x122')])){return this[_0xeb24('0xa')][_0xeb24('0x26')](_0x11222b,'no\x20find\x20by\x20configured');}logger['info'](util[_0xeb24('0x24')]('FIND\x20AGENT\x20%s\x20BY\x20%s',this[_0xeb24('0xa')][_0xeb24('0x34')],_0x11222b[_0xeb24('0x122')]));var _0x3f8a67=this[_0xeb24('0x4a')]['sync'](this,_0x11222b[_0xeb24('0x122')]);if(_0x3f8a67){logger[_0xeb24('0x29')](util[_0xeb24('0x24')](_0xeb24('0x123'),this[_0xeb24('0xa')][_0xeb24('0x34')],_0x11222b[_0xeb24('0x122')]));this['channel'][_0xeb24('0x84')](util[_0xeb24('0x24')](_0xeb24('0x123'),this[_0xeb24('0xa')]['callerid'],_0x11222b[_0xeb24('0x122')]));return{'code':0xc8,'result':'success'};}else{logger[_0xeb24('0x29')](util[_0xeb24('0x24')]('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this['channel']['callerid'],_0x11222b['findBy']));this[_0xeb24('0xa')][_0xeb24('0x84')](util['format'](_0xeb24('0x124'),this[_0xeb24('0xa')]['callerid'],_0x11222b[_0xeb24('0x122')]));return{'code':0xc8,'result':_0xeb24('0x125')};}};AGIVertices[_0xeb24('0xc')][_0xeb24('0x126')]=function(_0x53e3d8){logger[_0xeb24('0x29')](util[_0xeb24('0x24')](_0xeb24('0x127'),_0x53e3d8[_0xeb24('0x31')]));if(!this['isConfigured'](_0x53e3d8[_0xeb24('0x122')])){return this[_0xeb24('0xa')]['error'](_0x53e3d8,_0xeb24('0x128'));}logger[_0xeb24('0x29')](util[_0xeb24('0x24')]('FIND\x20AGENT\x20%s\x20BY\x20%s',this[_0xeb24('0xa')][_0xeb24('0x34')],_0x53e3d8[_0xeb24('0x122')]));var _0x292abb=this[_0xeb24('0x129')][_0xeb24('0x76')](this,_0x53e3d8[_0xeb24('0x122')]);if(_0x292abb){logger[_0xeb24('0x29')](util['format'](_0xeb24('0x123'),this[_0xeb24('0xa')][_0xeb24('0x34')],_0x53e3d8[_0xeb24('0x122')]));this[_0xeb24('0xa')][_0xeb24('0x84')](util[_0xeb24('0x24')](_0xeb24('0x123'),this[_0xeb24('0xa')][_0xeb24('0x34')],_0x53e3d8['findBy']));return{'code':0xc8,'result':'success'};}else{logger[_0xeb24('0x29')](util[_0xeb24('0x24')](_0xeb24('0x124'),this['channel'][_0xeb24('0x34')],_0x53e3d8['findBy']));this[_0xeb24('0xa')][_0xeb24('0x84')](util['format']('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this[_0xeb24('0xa')][_0xeb24('0x34')],_0x53e3d8[_0xeb24('0x122')]));return{'code':0xc8,'result':'failure'};}};AGIVertices[_0xeb24('0xc')]['math']=function(_0x5325be){logger['info'](util[_0xeb24('0x24')](_0xeb24('0x12a'),_0x5325be[_0xeb24('0x31')]));if(!this[_0xeb24('0x79')](_0x5325be[_0xeb24('0x12b')])){return this[_0xeb24('0xa')][_0xeb24('0x26')](_0x5325be,_0xeb24('0x12c'));}this[_0xeb24('0xa')][_0xeb24('0x84')](util[_0xeb24('0x24')](_0xeb24('0x12d'),_0x5325be[_0xeb24('0x12b')]));var _0x34a283=eval(_0x5325be[_0xeb24('0x12b')]);if(!this[_0xeb24('0x79')](_0x5325be[_0xeb24('0xa1')])){return this['channel'][_0xeb24('0x84')](_0xeb24('0xa2'));}var _0x521672=this[_0xeb24('0xd')][_0xeb24('0x76')](this,_0x5325be[_0xeb24('0xa1')]);if(!_0x521672){return this[_0xeb24('0xa')]['error'](_0x5325be,'no\x20variable\x20found');}if(_[_0xeb24('0x12e')](_0x34a283)){var _0x247b1e=this;_0x34a283[_0xeb24('0xa4')](function(_0x17443b,_0x5657e4){_0x247b1e['channel']['setVariable'](util[_0xeb24('0x24')](_0xeb24('0x12f'),_0x521672,_0x5657e4),_0x17443b);});return this['channel'][_0xeb24('0x84')](util[_0xeb24('0x24')]('variable\x20%s[key]\x20set',_0x521672));}else{return this[_0xeb24('0xa')][_0xeb24('0x74')](_0x521672,_0x34a283);}};AGIVertices[_0xeb24('0xc')]['menu']=function(_0x122490){logger[_0xeb24('0x29')](util[_0xeb24('0x24')](_0xeb24('0x130'),_0x122490[_0xeb24('0x31')]));if(_0x122490['retry']===0x0){return this['maxRetry'](_0x122490);}_0x122490['retry']-=0x1;if(!this['isConfigured'](_0x122490[_0xeb24('0xd9')])){return this[_0xeb24('0xa')][_0xeb24('0x26')](_0x122490,_0xeb24('0xda'));}var _0x3e4b29=this[_0xeb24('0x1a')][_0xeb24('0x76')](this,_0x122490[_0xeb24('0xd9')]);if(!_0x3e4b29){return this[_0xeb24('0xa')]['error'](_0x122490,_0xeb24('0xdb'));}var _0x6dc20c=this[_0xeb24('0xa')][_0xeb24('0xdc')](_0x3e4b29,_0x122490[_0xeb24('0xdd')],_0x122490[_0xeb24('0x131')]);var _0xf1f0e7=_0x6dc20c[_0xeb24('0x7d')];if(_0x6dc20c[_0xeb24('0x7d')]===-0x1){this[_0xeb24('0x2f')]['sync'](this,_0x122490,'-1');return _0x6dc20c;}else if(_0x6dc20c[_0xeb24('0x75')]==='timeout'){_0x6dc20c[_0xeb24('0x7d')]=_0x6dc20c[_0xeb24('0x7d')][_0xeb24('0x70')]>0x0?_0x6dc20c['result']:'t';}else if(_[_0xeb24('0x3f')](_0x6dc20c[_0xeb24('0x7d')])){_0x6dc20c['result']='#';_0xf1f0e7='#';}if(!this[_0xeb24('0x79')](_0x122490['variable_id'])){this[_0xeb24('0xa')][_0xeb24('0x84')](_0xeb24('0xa2'));}else{var _0x1ddeba=this['getVariable'][_0xeb24('0x76')](this,_0x122490[_0xeb24('0xa1')]);if(!_0x1ddeba){return this[_0xeb24('0xa')]['error'](_0x122490,'no\x20variable\x20found');}this['channel'][_0xeb24('0x74')](_0x1ddeba,_0xf1f0e7);}this[_0xeb24('0x2f')][_0xeb24('0x76')](this,_0x122490,_0xf1f0e7);return _0x6dc20c;};AGIVertices[_0xeb24('0xc')][_0xeb24('0x84')]=function(_0x41234c){logger['info'](util[_0xeb24('0x24')]('Enter\x20in\x20NOOP\x20(%s)\x20block',_0x41234c['label']));return this['channel']['noop'](_0x41234c['output']||_0x41234c['label']);};AGIVertices['prototype'][_0xeb24('0x132')]=function(_0x5af687){logger[_0xeb24('0x29')](util[_0xeb24('0x24')](_0xeb24('0x133'),_0x5af687[_0xeb24('0x31')]));if(!this[_0xeb24('0x79')](_0x5af687[_0xeb24('0x122')])){return this[_0xeb24('0xa')][_0xeb24('0x26')](_0x5af687,_0xeb24('0x128'));}logger[_0xeb24('0x29')](util[_0xeb24('0x24')]('FIND\x20AGENT\x20%s\x20BY\x20%s',this[_0xeb24('0xa')]['callerid'],_0x5af687[_0xeb24('0x122')]));var _0x5e8284=this[_0xeb24('0x45')][_0xeb24('0x76')](this,_0x5af687[_0xeb24('0x134')]);var _0x46132c=this[_0xeb24('0x47')]['sync'](this,_0x5af687[_0xeb24('0x122')],_0x5e8284);if(_0x46132c){logger[_0xeb24('0x29')](util[_0xeb24('0x24')](_0xeb24('0x123'),this[_0xeb24('0xa')]['callerid'],_0x5af687[_0xeb24('0x122')]));this[_0xeb24('0xa')][_0xeb24('0x84')](util[_0xeb24('0x24')](_0xeb24('0x123'),this[_0xeb24('0xa')][_0xeb24('0x34')],_0x5af687[_0xeb24('0x122')]));return{'code':0xc8,'result':_0xeb24('0x135')};}else{logger[_0xeb24('0x29')](util[_0xeb24('0x24')](_0xeb24('0x124'),this[_0xeb24('0xa')][_0xeb24('0x34')],_0x5af687[_0xeb24('0x122')]));this[_0xeb24('0xa')][_0xeb24('0x84')](util[_0xeb24('0x24')](_0xeb24('0x123'),this[_0xeb24('0xa')]['callerid'],_0x5af687[_0xeb24('0x122')]));return{'code':0xc8,'result':_0xeb24('0x125')};}};AGIVertices[_0xeb24('0xc')][_0xeb24('0x136')]=function(_0x3f5f7b){logger[_0xeb24('0x29')](util[_0xeb24('0x24')](_0xeb24('0x137'),_0x3f5f7b[_0xeb24('0x31')]));if(!this[_0xeb24('0x79')](_0x3f5f7b['file_id'])){return this[_0xeb24('0xa')][_0xeb24('0x26')](_0x3f5f7b,_0xeb24('0xda'));}var _0xc14216=this[_0xeb24('0x1a')]['sync'](this,_0x3f5f7b[_0xeb24('0xd9')]);if(!_0xc14216){return this[_0xeb24('0xa')][_0xeb24('0x26')](_0x3f5f7b,_0xeb24('0xdb'));}var _0x212fc1=this[_0xeb24('0xa')][_0xeb24('0x4f')]('PLAYBACK',[_0xc14216,_0x3f5f7b[_0xeb24('0xb0')]]);if(_0x212fc1[_0xeb24('0x7d')]===-0x1){return _0x212fc1;}return this[_0xeb24('0xa')]['noop'](util[_0xeb24('0x24')](_0xeb24('0x89'),'PLAYBACK',_0xc14216));};AGIVertices[_0xeb24('0xc')][_0xeb24('0x138')]=function(_0x28c5d8){logger[_0xeb24('0x29')](util[_0xeb24('0x24')]('Enter\x20in\x20QUEUE\x20(%s)\x20block',_0x28c5d8[_0xeb24('0x31')]));if(!this[_0xeb24('0x79')](_0x28c5d8[_0xeb24('0x139')])){return this[_0xeb24('0xa')]['error'](_0x28c5d8,_0xeb24('0x13a'));}var _0xf1d07b='';var _0x6d800f=parseInt(_0x28c5d8[_0xeb24('0x139')],0xa);if(isNaN(_0x6d800f)){_0xf1d07b=_0x28c5d8[_0xeb24('0x139')];}else{_0xf1d07b=this[_0xeb24('0x13b')][_0xeb24('0x76')](this,_0x28c5d8[_0xeb24('0x139')]);if(!_0xf1d07b){return this['channel'][_0xeb24('0x26')](_0x28c5d8,_0xeb24('0x13c'));}}var _0x373179='';if(this[_0xeb24('0x79')](_0x28c5d8[_0xeb24('0xd9')])){var _0x577ff3=this['getSound'][_0xeb24('0x76')](this,_0x28c5d8[_0xeb24('0xd9')]);if(_0x577ff3){_0x373179=_0x577ff3;}}this[_0xeb24('0x2f')][_0xeb24('0x76')](this,_0x28c5d8,_0xf1d07b);if(_0x28c5d8['opts'][_0xeb24('0x13d')]('x')<0x0){_0x28c5d8[_0xeb24('0xb0')]+='x';}if(_0x28c5d8[_0xeb24('0xb0')][_0xeb24('0x13d')]('X')<0x0){_0x28c5d8[_0xeb24('0xb0')]+='X';}this['channel'][_0xeb24('0x74')](_0xeb24('0x13e'),_0xf1d07b?_0xf1d07b[_0xeb24('0x13f')]():'');var _0x5ca029=this[_0xeb24('0xa')]['exec'](_0xeb24('0x140'),[_0xf1d07b,_0x28c5d8[_0xeb24('0xb0')],_0x28c5d8[_0xeb24('0xb1')],_0x373179,_0x28c5d8['timeout'],_0x28c5d8['agi'],_0x28c5d8['macro'],_0x28c5d8[_0xeb24('0x141')],'',_0x28c5d8[_0xeb24('0x142')]]);if(_0x5ca029[_0xeb24('0x7d')]===-0x1){return _0x5ca029;}return this[_0xeb24('0xa')][_0xeb24('0x84')](util[_0xeb24('0x24')](_0xeb24('0x89'),'QUEUE',_0xf1d07b));};AGIVertices[_0xeb24('0xc')]['record']=function(_0x6bc8f2){logger[_0xeb24('0x29')](util[_0xeb24('0x24')](_0xeb24('0x143'),_0x6bc8f2['label']));var _0x50d7d6=_0x6bc8f2[_0xeb24('0x144')]||_0xeb24('0xf8');var _0x47bf59=util['format'](_0xeb24('0x145'),this[_0xeb24('0xa')][_0xeb24('0x30')],rs[_0xeb24('0xe2')](0x5));var _0x364e6c=util['format'](_0xeb24('0x146'),FILES_PATH,_0x47bf59,_0x50d7d6);var _0x4bed2f=util[_0xeb24('0x24')](_0xeb24('0x105'),FILES_PATH,_0x47bf59);this['createSquareRecording'][_0xeb24('0x76')](this,_0x6bc8f2,_0x47bf59,_0x364e6c);this[_0xeb24('0xa')]['setVariable'](_0xeb24('0x147'),_0x47bf59);logger[_0xeb24('0x29')]('Recording\x20%s\x20%s\x20%s\x20%s',_0x4bed2f,_0x50d7d6,_0x6bc8f2[_0xeb24('0x148')],_0x6bc8f2[_0xeb24('0x7c')]);return this[_0xeb24('0xa')]['recordFile'](_0x4bed2f,_0x50d7d6,_0x6bc8f2[_0xeb24('0x148')],_0x6bc8f2[_0xeb24('0x7c')],undefined,!![]);};AGIVertices[_0xeb24('0xc')][_0xeb24('0x149')]=function(_0x158e3d){logger[_0xeb24('0x29')](util[_0xeb24('0x24')](_0xeb24('0x14a'),_0x158e3d[_0xeb24('0x31')]));return this[_0xeb24('0xa')][_0xeb24('0x14b')](_0x158e3d[_0xeb24('0x14c')][_0xeb24('0x51')](/\s+/g,''),_0x158e3d[_0xeb24('0x148')]);};AGIVertices[_0xeb24('0xc')][_0xeb24('0x14d')]=function(_0x472e16){logger['info'](util[_0xeb24('0x24')](_0xeb24('0x14e'),_0x472e16[_0xeb24('0x31')]));return this['channel']['sayNumber'](_0x472e16[_0xeb24('0x14f')]['replace'](/\s+/g,''),_0x472e16['escape_digits']);};AGIVertices[_0xeb24('0xc')][_0xeb24('0x150')]=function(_0x232fe5){logger['info'](util[_0xeb24('0x24')](_0xeb24('0x151'),_0x232fe5['label']));return this['channel'][_0xeb24('0x152')](_0x232fe5[_0xeb24('0x53')],_0x232fe5[_0xeb24('0x148')]);};AGIVertices['prototype'][_0xeb24('0x153')]=function(_0x3859c0){logger[_0xeb24('0x29')](util[_0xeb24('0x24')](_0xeb24('0x154'),_0x3859c0[_0xeb24('0x31')]));if(!this[_0xeb24('0x79')](_0x3859c0[_0xeb24('0x155')])){return this[_0xeb24('0xa')][_0xeb24('0x84')]('no\x20mail\x20account\x20configured');}var _0xd7f424=this[_0xeb24('0x156')][_0xeb24('0x76')](this,_0x3859c0[_0xeb24('0x155')]);if(!_0xd7f424||!_0xd7f424['Smtp']){return this['channel'][_0xeb24('0x26')](_0x3859c0,_0xeb24('0x157'));}var _0x426329={'from':util['format']('\x22%s\x22\x20<%s>',_0xd7f424['name'],_0xd7f424[_0xeb24('0x158')]||_0xd7f424[_0xeb24('0x159')]['user']),'to':_0x3859c0['to']||'','cc':_0x3859c0['cc']||'','bcc':_0x3859c0[_0xeb24('0x15a')]||'','subject':_0x3859c0['subject'],'html':_0x3859c0['text'],'text':_0x3859c0[_0xeb24('0x53')]};var _0x39cd52={'tls':{'rejectUnauthorized':![]}};if(_0xd7f424[_0xeb24('0x159')][_0xeb24('0x15b')]){_0x39cd52[_0xeb24('0x15b')]=_0xd7f424[_0xeb24('0x159')][_0xeb24('0x15b')];}else{_0x39cd52[_0xeb24('0x15c')]=_0xd7f424[_0xeb24('0x159')][_0xeb24('0x15c')];_0x39cd52[_0xeb24('0x15d')]=_0xd7f424['Smtp']['port'];_0x39cd52['secure']=_0xd7f424[_0xeb24('0x159')]['secure'];}if(_0xd7f424['Smtp'][_0xeb24('0x15e')]){_0x39cd52[_0xeb24('0x15f')]={'user':_0xd7f424[_0xeb24('0x159')][_0xeb24('0x160')],'pass':_0xd7f424['Smtp'][_0xeb24('0x161')]};}if(this['isConfigured'](_0x3859c0[_0xeb24('0x162')])){}logger['debug'](_0xeb24('0x163'),JSON[_0xeb24('0x100')](_0x426329));this[_0xeb24('0x2f')][_0xeb24('0x76')](this,_0x3859c0,_0x3859c0[_0xeb24('0x155')]);this['channel'][_0xeb24('0x84')](util[_0xeb24('0x24')](_0xeb24('0x164'),_0xd7f424[_0xeb24('0x13')]));this[_0xeb24('0x1e')][_0xeb24('0x76')](this,_0x39cd52,_0x426329);return this[_0xeb24('0xa')][_0xeb24('0x84')](_0xeb24('0x165'));};AGIVertices[_0xeb24('0xc')]['sendFax']=function(_0x3cda15){logger[_0xeb24('0x29')](util[_0xeb24('0x24')](_0xeb24('0x166'),_0x3cda15[_0xeb24('0x31')]));return this['channel'][_0xeb24('0x84')]('SENDFAX\x20block\x20not\x20implemented');};AGIVertices[_0xeb24('0xc')]['sendSMS']=function(_0x3ad44a){logger[_0xeb24('0x29')](util[_0xeb24('0x24')](_0xeb24('0x167'),_0x3ad44a[_0xeb24('0x31')]));if(!this[_0xeb24('0x79')](_0x3ad44a[_0xeb24('0x168')])){return this[_0xeb24('0xa')]['noop'](_0xeb24('0x169'));}var _0x421699=this['getSmsAccount'][_0xeb24('0x76')](this,_0x3ad44a[_0xeb24('0x168')]);if(!_0x421699){return this[_0xeb24('0xa')][_0xeb24('0x26')](_0x3ad44a,_0xeb24('0x16a'));}var _0x1f2c27={'body':_0x3ad44a[_0xeb24('0x16b')],'phone':_0x3ad44a['to']||'','SmsAccountId':_0x421699['id']};logger[_0xeb24('0xaa')](_0xeb24('0x16c'),JSON[_0xeb24('0x100')](_0x1f2c27));this[_0xeb24('0x2f')][_0xeb24('0x76')](this,_0x3ad44a,_0x3ad44a[_0xeb24('0x168')]);this['channel'][_0xeb24('0x84')](util[_0xeb24('0x24')](_0xeb24('0x16d'),_0x421699[_0xeb24('0x13')]));this[_0xeb24('0x2e')][_0xeb24('0x76')](this,_0x1f2c27);return this[_0xeb24('0xa')][_0xeb24('0x84')](_0xeb24('0x16e'));};AGIVertices[_0xeb24('0xc')]['set']=function(_0x36670c){logger[_0xeb24('0x29')](util[_0xeb24('0x24')]('Enter\x20in\x20SET\x20(%s)\x20block',_0x36670c[_0xeb24('0x31')]));if(!this[_0xeb24('0x79')](_0x36670c[_0xeb24('0xa1')])){return this[_0xeb24('0xa')]['error'](_0x36670c,_0xeb24('0x16f'));}var _0x4fe1dd=this[_0xeb24('0xd')][_0xeb24('0x76')](this,_0x36670c[_0xeb24('0xa1')]);if(!_0x4fe1dd){return this['channel']['error'](_0x36670c,_0xeb24('0xa3'));}return this[_0xeb24('0xa')][_0xeb24('0x74')](_0x4fe1dd,_0x36670c[_0xeb24('0x170')]);};AGIVertices[_0xeb24('0xc')][_0xeb24('0x171')]=function(_0x462774){logger[_0xeb24('0x29')](util['format'](_0xeb24('0x172'),_0x462774[_0xeb24('0x31')]));this[_0xeb24('0xa')][_0xeb24('0x84')](_0xeb24('0x173'));if(_0x462774[_0xeb24('0x7e')]==='yes'){this[_0xeb24('0xa')][_0xeb24('0x84')](_0xeb24('0x174'));return this[_0xeb24('0xa')][_0xeb24('0x7e')]();}return this[_0xeb24('0xa')][_0xeb24('0x84')](_0xeb24('0x175'));};AGIVertices[_0xeb24('0xc')][_0xeb24('0x176')]=function(_0x3cf310){logger['info'](util['format'](_0xeb24('0x177'),_0x3cf310[_0xeb24('0x31')]));if(!this[_0xeb24('0x79')](_0x3cf310['project_id'])){return this[_0xeb24('0xa')][_0xeb24('0x26')](_0x3cf310,_0xeb24('0x178'));}var _0x4b4289=this[_0xeb24('0x12')][_0xeb24('0x76')](this,_0x3cf310[_0xeb24('0x179')]);if(!this[_0xeb24('0x79')](_0x4b4289)){return this[_0xeb24('0xa')][_0xeb24('0x26')](_0x3cf310,util[_0xeb24('0x24')](_0xeb24('0x17a'),_0x3cf310['project_id']));}if(_0x4b4289===this[_0xeb24('0xa')][_0xeb24('0x33')]){return this[_0xeb24('0xa')][_0xeb24('0x26')](_0x3cf310,_0xeb24('0x17b'));}this['createSquareDetailsReport'][_0xeb24('0x76')](this,_0x3cf310,_0x4b4289);var _0x3e0e94=this['channel'][_0xeb24('0x4f')](_0xeb24('0x17c'),util['format'](_0xeb24('0x17d'),config[_0xeb24('0x5')][_0xeb24('0x15c')]||_0xeb24('0x17e'),_0x4b4289,this[_0xeb24('0xa')][_0xeb24('0x33')]));if(_0x3e0e94[_0xeb24('0x7d')]===-0x1){return _0x3e0e94;}return this[_0xeb24('0xa')]['noop'](util[_0xeb24('0x24')]('Executed\x20command\x20%s\x20%s',_0xeb24('0x17c'),_0x4b4289));};AGIVertices[_0xeb24('0xc')][_0xeb24('0x17f')]=function(_0x4896e9){logger[_0xeb24('0x29')](util[_0xeb24('0x24')](_0xeb24('0x180'),_0x4896e9['label']));var _0x1d8a29=this[_0xeb24('0x4e')][_0xeb24('0x76')](this,_0x4896e9[_0xeb24('0x181')]);this['createSquareDetailsReport'][_0xeb24('0x76')](this,_0x4896e9,_0x4896e9[_0xeb24('0x181')]);if(this['isConfigured'](_0x4896e9[_0xeb24('0xa1')])){var _0x3d965e=this[_0xeb24('0xd')][_0xeb24('0x76')](this,_0x4896e9[_0xeb24('0xa1')]);if(_0x3d965e){this['channel']['setVariable'](_0x3d965e,_0x1d8a29);return this[_0xeb24('0xa')]['noop'](util[_0xeb24('0x24')](_0xeb24('0x182'),_0x4896e9[_0xeb24('0x181')],_0x3d965e));}}return this[_0xeb24('0xa')][_0xeb24('0x84')](util[_0xeb24('0x24')](_0xeb24('0x183'),_0x4896e9[_0xeb24('0x181')]));};AGIVertices[_0xeb24('0xc')]['tts']=function(_0x540852){logger[_0xeb24('0x29')](util['format'](_0xeb24('0x184'),_0x540852[_0xeb24('0x31')]));if(!this['isConfigured'](_0x540852['text'])){return this['channel'][_0xeb24('0x84')]('no\x20text\x20configured');}this['channel'][_0xeb24('0x84')](util['format'](_0xeb24('0x185'),_0x540852[_0xeb24('0x53')]));var _0x1a0d68=this[_0xeb24('0x52')][_0xeb24('0x76')](this,_0x540852);if(_0x1a0d68){this[_0xeb24('0xa')][_0xeb24('0x84')](util[_0xeb24('0x24')](_0xeb24('0x186'),_0x1a0d68));var _0x1b0116=this['channel'][_0xeb24('0xc8')](_0x1a0d68);try{fs[_0xeb24('0xc9')](_0x1a0d68+_0xeb24('0xca'));}catch(_0x46dc18){logger[_0xeb24('0x26')](_0x46dc18);}return _0x1b0116;}return this[_0xeb24('0xa')]['error'](_0x540852,_0xeb24('0x187'));};AGIVertices[_0xeb24('0xc')][_0xeb24('0x188')]=function(_0xd35ac4){logger[_0xeb24('0x29')](util[_0xeb24('0x24')](_0xeb24('0x189'),_0xd35ac4['label']));if(!this[_0xeb24('0x79')](_0xd35ac4[_0xeb24('0x122')])){return this[_0xeb24('0xa')][_0xeb24('0x26')](_0xd35ac4,_0xeb24('0x128'));}logger[_0xeb24('0x29')](util['format']('FIND\x20AGENT\x20%s\x20BY\x20%s',this[_0xeb24('0xa')][_0xeb24('0x34')],_0xd35ac4[_0xeb24('0x122')]));var _0x52dce8=this[_0xeb24('0x49')][_0xeb24('0x76')](this,_0xd35ac4[_0xeb24('0x122')]);if(_0x52dce8){logger[_0xeb24('0x29')](util[_0xeb24('0x24')](_0xeb24('0x123'),this[_0xeb24('0xa')][_0xeb24('0x34')],_0xd35ac4[_0xeb24('0x122')]));this[_0xeb24('0xa')][_0xeb24('0x84')](util[_0xeb24('0x24')](_0xeb24('0x123'),this[_0xeb24('0xa')][_0xeb24('0x34')],_0xd35ac4[_0xeb24('0x122')]));return{'code':0xc8,'result':_0xeb24('0x135')};}else{logger[_0xeb24('0x29')](util[_0xeb24('0x24')](_0xeb24('0x124'),this[_0xeb24('0xa')][_0xeb24('0x34')],_0xd35ac4[_0xeb24('0x122')]));this[_0xeb24('0xa')][_0xeb24('0x84')](util[_0xeb24('0x24')]('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this['channel'][_0xeb24('0x34')],_0xd35ac4[_0xeb24('0x122')]));return{'code':0xc8,'result':_0xeb24('0x125')};}};AGIVertices[_0xeb24('0xc')][_0xeb24('0x18a')]=function(_0x29b669){logger[_0xeb24('0x29')](util['format'](_0xeb24('0x18b'),_0x29b669['label']));var _0x1e697f=this['channel'][_0xeb24('0x4f')](_0xeb24('0x18c'),[_0x29b669[_0xeb24('0x18d')],_0x29b669[_0xeb24('0x88')]]);if(_0x1e697f[_0xeb24('0x7d')]===-0x1){return _0x1e697f;}return this['channel'][_0xeb24('0x84')](util[_0xeb24('0x24')]('Executed\x20command\x20%s\x20%s',_0xeb24('0x18c'),_0x29b669[_0xeb24('0x18d')]));};AGIVertices[_0xeb24('0xc')]['vswitch']=function(_0x253fcf){logger['info'](util[_0xeb24('0x24')](_0xeb24('0x18e'),_0x253fcf[_0xeb24('0x31')]));if(!this[_0xeb24('0x79')](_0x253fcf[_0xeb24('0xa1')])){return this[_0xeb24('0xa')]['error'](_0x253fcf,_0xeb24('0x16f'));}var _0x28bba8=this['getVariable'][_0xeb24('0x76')](this,_0x253fcf['variable_id']);if(!_0x28bba8){return this[_0xeb24('0xa')][_0xeb24('0x26')](_0x253fcf,_0xeb24('0xa3'));}var _0x48bff7=this[_0xeb24('0xa')][_0xeb24('0xd')](_0x28bba8);return{'code':0xc8,'result':_0x48bff7['extra']?_0x48bff7[_0xeb24('0x75')]:'-'};};String['prototype'][_0xeb24('0x71')]=function(_0x1f85ba,_0x4bf279){return this[_0xeb24('0x6f')](_0x1f85ba)[_0xeb24('0x18f')](_0x4bf279);};module['exports']=AGIVertices;
\ No newline at end of file
+var _0x46d5=['service','host','port','secure','authentication','auth','pass','template_id','sendFax','Enter\x20in\x20SENDFAX\x20(%s)\x20block','sendSMS','no\x20sms\x20account\x20configured','sms_account_id','no\x20sms\x20account\x20found','sms_text','sendSMS\x20message','Trying\x20SendSMS\x20with\x20account\x20%s','Enter\x20in\x20SET\x20(%s)\x20block','no\x20variable\x20selected','variable_value','start','Enter\x20in\x20START\x20(%s)\x20block','Skipped\x20Answer','subproject','Enter\x20in\x20SUBPROJECT\x20(%s)\x20block','project_id','no\x20subproject\x20selected','no\x20subproject\x20found\x20with\x20id\x20%d','arg_1','project\x20in\x20subproject\x20must\x20be\x20different\x20from\x20the\x20called\x20project','AGI','agi://%s/square,\x22%s\x22,\x22%s\x22','system','Enter\x20in\x20SYSTEM\x20(%s)\x20block','command','sh\x20command:\x20%s\x20result\x20on\x20variable:\x20%s','sh\x20command:\x20%s\x20result\x20no\x20stored','tts','Enter\x20in\x20UNPAUSE\x20(%s)\x20block','voicemail','mailbox','VOICEMAIL','vswitch','Enter\x20in\x20SWITCH\x20(%s)\x20block','join','path','util','lodash','shelljs','odbc','randomstring','moment','mustache','../../config/logger','agi','../../config/environment','./scripts','/var/opt/motion2/server/files','menu','getdigits','getsecretdigits','rpc','mailRpc','prototype','then','name','catch','getVoiceQueue','getVoiceQueueById','getSquareProject','getSquareProjectById','getSquareOdbc','getTrunk','getTrunkById','getSound','getSoundById','getSoundPath','save_name','sendMailMessage','getIntervals','getIntervalById','IntervalId','map','interval','format','getQueryOdbc','open','error','Error\x20getting\x20ODBC\x20connection\x20%s','info','query','Error\x20executing\x20query\x20%s','Query\x20executed\x20correctly\x20%s','close','getSmsAccount','getSmsAccountById','createSmsMessage','channel','uniqueid','label','callerid','createSquareRecording','calleridname','context','extension','priority','accountcode','dnid','file','createSquareMessage','createCmContact','isEmpty','isNil','random','lastName','list_id','scheduledAt','callback','Callback\x20scheduled\x20at\x20','callback_priority','getPause','getPauseById','agent','agentPause','agentUnpause','agentLogout','%s/%s@from-sip/n','LOCAL','agentLogin','shellCommand','exec','replace','googleTTS','google_tts_language','text','sestekNDA','ispeechTTS','key','ispeech_tts_language','en-US','ispeechASR','ispeech_asr_language','isConfigured','model','awsPolly','aws_access_key_id','aws_secret_access_key','aws_polly_region','aws_polly_voice','Amy','aws_bot_name','googleASR','tildeASR','appid','appsecret','uri','clear','includes','agicommand','clone','isString','replaceAllVariables','length','split','replaceAll','getVariable','extra','getAndSetVariable','result','The\x20\x22%s\x22\x20variable\x20value\x20is:\x20%s','maxRetry','createSquareDetailsReport','sync','retry','answer','Enter\x20in\x20ANSWER\x20(%s)\x20block','timeout','Wait\x20%s\x20seconds\x20before\x20answer','wait','no\x20list\x20selected','delay','noop','CALLBACK\x20added\x20phone:\x20%s\x20on\x20list:\x20%s\x20at\x20%s','phone','custom_app','Enter\x20in\x20CUSTOM\x20APP\x20(%s)\x20block','application','options','Executed\x20command\x20%s\x20%s','lumenvoxtts','MRCPSynth','Enter\x20in\x20SESTEKTTS\x20(%s)\x20block','no\x20text\x20configured','lumenvoxasr','Enter\x20in\x20LUMENVOXASR\x20(%s)\x20block','grammar','no\x20grammar\x20configured','MRCPRecog','RECOG_CONFIDENCE()','LUMENVOX_ASR_CONFIDENCE','RECOG_INPUT()','LUMENVOX_ASR_TRANSCRIPT','RECOG_INSTANCE()','LUMENVOX_ASR_INSTANCE','Executed\x20command\x20MRCPRecog\x20%s','sestekasr','Enter\x20in\x20SESTEKASR\x20(%s)\x20block','SESTEK_ASR_CONFIDENCE','SESTEK_ASR_TRANSCRIPT','SESTEK_ASR_INSTANCE','Enter\x20in\x20DATABASE\x20(%s)\x20block','odbc_id','no\x20database\x20selected','no\x20odbc\x20database\x20found','no\x20query\x20configured','query:\x20%s','variable_id','no\x20variable\x20found','forEach','keys','setVariable','%s[%s][%s]','%s_ROWS_COUNT','variable\x20%s\x20set','dial','debug','sip_id','no\x20user\x20selected','getUser','SIP/%s','opts','Executed\x20command\x20%s','Enter\x20in\x20DIALOGFLOW\x20(%s)\x20block','hasOwnProperty','toUpperCase','speech','out','Dialogflow\x20Result\x20%s','Dialogflow\x20is\x20unreachable','sesteknda','Enter\x20in\x20SESTEKNDA\x20(%s)\x20block','ndauth_url','no\x20ndauth\x20url\x20configured','username','no\x20username\x20configured','password','Trying\x20SestekNDA:\x20%s','audiofile','Sestek\x20NDA\x20%s\x20file\x20created','streamFile','unlink','SestekNDA\x20Result\x20%s','end','Enter\x20in\x20END\x20(%s)\x20block','trunk_id','no\x20trunk\x20found','trunk_name','no\x20trunk\x20selected','finally','Enter\x20in\x20FINALLY\x20(%s)\x20block','Enter\x20in\x20GETDIGITS\x20(%s)\x20block','file_id','no\x20variable\x20selected\x20for\x20the\x20result','response','maxdigit','toString','test','mindigit','hiddendigitsnum','generate','hiddendigitspos','first','substr','Enter\x20in\x20GETSECRETDIGITS\x20(%s)\x20block','goal','Enter\x20in\x20GOAL\x20(%s)\x20block','goalname','GOAL\x20%s','aws\x20Polly\x20%s\x20file\x20created','.wav','aws\x20Polly\x20is\x20unreachable','awslex','Enter\x20in\x20Amazon\x20Lex\x20(%s)\x20block','no\x20valid\x20credentials\x20configured','no\x20bot\x20name\x20configured','bot','Trying\x20Amazon\x20Lex:\x20%s','awsLex','AWS_LEX_%s','message','googleasr','Enter\x20in\x20GOOGLEASR\x20(%s)\x20block\x20%s','no\x20key\x20configured','wav','%s/recordings/%s','%s.%s','NOBEEP','recordFile','intKey','google\x20%s\x20file\x20created','GOOGLE_ASR_%s','stringify','no\x20appid\x20configured','no\x20appsecret\x20configured','beep','tilde\x20%s\x20file\x20created','TILDE_ASR_%s','TildeASR\x20Result\x20%s','gotoc','Enter\x20in\x20GOTO\x20(%s)\x20block','continueAt','condition','false','EVAL\x20CONDITION\x20%s\x20%s','gotoiftime','Enter\x20in\x20GOTOIFTIME\x20(%s)\x20block','interval_id','no\x20intervals\x20found','IFTIME(%s?true:false)','IFTIME\x20%s\x20%s','true','Enter\x20in\x20HANGUP\x20(%s)\x20block','hangup','ISPEECH_ASR_%s','ispeechtts','Enter\x20in\x20ISPEECHTTS\x20(%s)\x20block','Trying\x20ispeech\x20TTS\x20%s','ispeech\x20%s\x20file\x20created','ispeech\x20TTS\x20is\x20unreachable','login','Enter\x20in\x20LOGIN\x20(%s)\x20block','FIND\x20AGENT\x20%s\x20BY\x20%s','findBy','success','AGENT\x20%s\x20NOT\x20FOUND\x20BY','failure','logout','Enter\x20in\x20LOGOUT\x20(%s)\x20block','no\x20find\x20by\x20configured','AGENT\x20%s\x20FOUND\x20BY','operation','no\x20operation\x20configured','isArray','%s[%s]','Enter\x20in\x20MENU\x20(%s)\x20block','no\x20file\x20audio\x20found','getData','digit','Enter\x20in\x20NOOP\x20(%s)\x20block','output','pause_id','playback','no\x20file\x20audio\x20selected','PLAYBACK','Enter\x20in\x20QUEUE\x20(%s)\x20block','no\x20queue\x20selected','queue_id','indexOf','XMCS-QUEUE','toLowerCase','QUEUE','macro','gosub','position','Enter\x20in\x20RECORD\x20(%s)\x20block','recordingFormat','%s_%s','%s/recordings/%s.%s','Recording\x20%s\x20%s\x20%s\x20%s','escape_digits','saydigits','Enter\x20in\x20SAYDIGITS\x20(%s)\x20block','sayDigits','Enter\x20in\x20SAYNUMBER\x20(%s)\x20block','number','sayphonetic','Enter\x20in\x20SAYPHONETIC\x20(%s)\x20block','sendMail','Enter\x20in\x20SENDMAIL\x20(%s)\x20block','account_id','no\x20mail\x20account\x20configured','getMailAccount','no\x20mail\x20account\x20found','\x22%s\x22\x20<%s>','email','Smtp','user','bcc','subject'];(function(_0x321bb2,_0x202794){var _0x9c12ed=function(_0x263dd3){while(--_0x263dd3){_0x321bb2['push'](_0x321bb2['shift']());}};_0x9c12ed(++_0x202794);}(_0x46d5,0x1b2));var _0x546d=function(_0x465a0c,_0x19d4d5){_0x465a0c=_0x465a0c-0x0;var _0x1e202e=_0x46d5[_0x465a0c];return _0x1e202e;};'use strict';var fs=require('fs');var path=require(_0x546d('0x0'));var util=require(_0x546d('0x1'));var _=require(_0x546d('0x2'));var sh=require(_0x546d('0x3'));var odbc=require(_0x546d('0x4'))();var rs=require(_0x546d('0x5'));var moment=require(_0x546d('0x6'));var Mustache=require(_0x546d('0x7'));var logger=require(_0x546d('0x8'))(_0x546d('0x9'));var config=require(_0x546d('0xa'));var scripts=require(_0x546d('0xb'));var FILES_PATH=_0x546d('0xc');var verticesWithRetry=[_0x546d('0xd'),_0x546d('0xe'),_0x546d('0xf')];var AGIVertices=function(_0x55ca37,_0x93118b,_0x369702){this['channel']=_0x55ca37;this[_0x546d('0x10')]=_0x93118b;this[_0x546d('0x11')]=_0x369702;};AGIVertices[_0x546d('0x12')]['getVariable']=function(_0x930448,_0x45bcac){this[_0x546d('0x10')]['getVariableById'](_0x930448)[_0x546d('0x13')](function(_0x2595fe){_0x45bcac(null,_0x2595fe?_0x2595fe[_0x546d('0x14')]:![]);})[_0x546d('0x15')](function(_0x240312){_0x45bcac(_0x240312);});};AGIVertices[_0x546d('0x12')][_0x546d('0x16')]=function(_0x2bf302,_0x34644f){this[_0x546d('0x10')][_0x546d('0x17')](_0x2bf302)[_0x546d('0x13')](function(_0x2c9b30){_0x34644f(null,_0x2c9b30?_0x2c9b30[_0x546d('0x14')]:![]);})[_0x546d('0x15')](function(_0x3e2cff){_0x34644f(_0x3e2cff);});};AGIVertices[_0x546d('0x12')][_0x546d('0x18')]=function(_0x406169,_0x5304ac){this[_0x546d('0x10')][_0x546d('0x19')](_0x406169)[_0x546d('0x13')](function(_0x4f6441){_0x5304ac(null,_0x4f6441?_0x4f6441[_0x546d('0x14')]:![]);})[_0x546d('0x15')](function(_0x2316da){_0x5304ac(_0x2316da);});};AGIVertices[_0x546d('0x12')][_0x546d('0x1a')]=function(_0x49c555,_0x4a8229){this[_0x546d('0x10')]['getSquareOdbcById'](_0x49c555)['then'](function(_0x2f2f67){_0x4a8229(null,_0x2f2f67?_0x2f2f67['dsn']:![]);})[_0x546d('0x15')](function(_0xaddf52){_0x4a8229(_0xaddf52);});};AGIVertices[_0x546d('0x12')]['getUser']=function(_0x22728b,_0x2a10be){this[_0x546d('0x10')]['getUserById'](_0x22728b)[_0x546d('0x13')](function(_0xe6489b){_0x2a10be(null,_0xe6489b?_0xe6489b[_0x546d('0x14')]:![]);})[_0x546d('0x15')](function(_0x545811){_0x2a10be(_0x545811);});};AGIVertices[_0x546d('0x12')][_0x546d('0x1b')]=function(_0x3cfbeb,_0x2b8fec){this[_0x546d('0x10')][_0x546d('0x1c')](_0x3cfbeb)[_0x546d('0x13')](function(_0x42654e){_0x2b8fec(null,_0x42654e?_0x42654e[_0x546d('0x14')]:![]);})[_0x546d('0x15')](function(_0x50b778){_0x2b8fec(_0x50b778);});};AGIVertices['prototype'][_0x546d('0x1d')]=function(_0x42d4ab,_0x2b8458){var _0xc78fae=this;this[_0x546d('0x10')][_0x546d('0x1e')](_0x42d4ab)[_0x546d('0x13')](function(_0x58ce0e){_0x2b8458(null,_0x58ce0e?_0xc78fae[_0x546d('0x1f')](_0x58ce0e[_0x546d('0x20')]):![]);})[_0x546d('0x15')](function(_0x2aedbd){_0x2b8458(_0x2aedbd);});};AGIVertices[_0x546d('0x12')]['getMailAccount']=function(_0xdf3e68,_0x2bc63d){this['rpc']['getMailAccountById'](_0xdf3e68)[_0x546d('0x13')](function(_0x14826d){_0x2bc63d(null,_0x14826d?_0x14826d:![]);})[_0x546d('0x15')](function(_0x4da81f){_0x2bc63d(_0x4da81f);});};AGIVertices[_0x546d('0x12')]['sendMailMessage']=function(_0x27305d,_0x276e47,_0xd7ffac){this[_0x546d('0x11')][_0x546d('0x21')](_0x27305d,_0x276e47)[_0x546d('0x13')](function(){_0xd7ffac(null);})[_0x546d('0x15')](function(_0x1bfee2){_0xd7ffac(_0x1bfee2);});};AGIVertices[_0x546d('0x12')][_0x546d('0x22')]=function(_0x5a61cf,_0xf3d7e2){this[_0x546d('0x10')][_0x546d('0x23')](_0x5a61cf)[_0x546d('0x13')](function(_0x5eb65f){if(_0x5eb65f){if(_0x5eb65f[_0x546d('0x24')]){_0xf3d7e2(null,[_0x5eb65f['interval']]);}else{_0xf3d7e2(null,_[_0x546d('0x25')](_0x5eb65f['Intervals'],_0x546d('0x26')));}}else{_0xf3d7e2(null,![]);}})[_0x546d('0x15')](function(_0x3b1755){_0xf3d7e2(_0x3b1755);});};AGIVertices[_0x546d('0x12')]['getSoundPath']=function(_0x4dc419){return util[_0x546d('0x27')]('%s/sounds/converted/%s',FILES_PATH,_0x4dc419);};AGIVertices['prototype'][_0x546d('0x28')]=function(_0x52759c,_0x24f992,_0x430656){odbc[_0x546d('0x29')](_0x52759c,function(_0x2be61d){if(_0x2be61d){logger[_0x546d('0x2a')](_0x546d('0x2b'),_0x2be61d);_0x430656(_0x2be61d);}else{logger[_0x546d('0x2c')]('ODBC\x20connection\x20successfully');odbc[_0x546d('0x2d')](_0x24f992,function(_0x579b55,_0x1d9300){if(_0x579b55){logger['info'](_0x546d('0x2e'),_0x24f992);_0x430656(_0x579b55);}else{logger[_0x546d('0x2c')](_0x546d('0x2f'),_0x24f992);odbc[_0x546d('0x30')](function(_0xd796e2){if(_0xd796e2){logger['error']('Error\x20closing\x20connection\x20to\x20odbc\x20%s',_0xd796e2);}_0x430656(null,_0x1d9300);});}});}});};AGIVertices[_0x546d('0x12')][_0x546d('0x31')]=function(_0x1708a1,_0x27f08c){this[_0x546d('0x10')][_0x546d('0x32')](_0x1708a1)[_0x546d('0x13')](function(_0x1a49ef){_0x27f08c(null,_0x1a49ef?_0x1a49ef:![]);})['catch'](function(_0x285c8e){_0x27f08c(_0x285c8e);});};AGIVertices[_0x546d('0x12')][_0x546d('0x33')]=function(_0x17c7d5,_0x58b8fa){this[_0x546d('0x10')][_0x546d('0x33')](_0x17c7d5)[_0x546d('0x13')](function(_0x1f0ef1){_0x58b8fa(null,_0x1f0ef1);})[_0x546d('0x15')](function(_0x318e0f){_0x58b8fa(_0x318e0f);});};AGIVertices[_0x546d('0x12')]['createSquareDetailsReport']=function(_0x2a25ce,_0x12a216,_0x4befd0){this[_0x546d('0x10')]['createSquareDetailsReport']({'uniqueid':this[_0x546d('0x34')][_0x546d('0x35')],'node':_0x2a25ce[_0x546d('0x36')],'application':_0x2a25ce['agicommand'],'data':_0x12a216||null,'project_name':this[_0x546d('0x34')]['arg_1'],'callerid':this[_0x546d('0x34')][_0x546d('0x37')]})[_0x546d('0x13')](function(_0x4768d7){if(_0x4befd0){_0x4befd0(null,_0x4768d7);}})[_0x546d('0x15')](function(_0x27735f){if(_0x4befd0){_0x4befd0(_0x27735f);}});};AGIVertices[_0x546d('0x12')][_0x546d('0x38')]=function(_0x587912,_0x5e8557,_0x4dafb2,_0x2d0db8){this['rpc'][_0x546d('0x38')]({'uniqueid':this['channel']['uniqueid'],'callerid':this[_0x546d('0x34')][_0x546d('0x37')],'calleridname':this[_0x546d('0x34')][_0x546d('0x39')],'context':this['channel'][_0x546d('0x3a')],'extension':this[_0x546d('0x34')][_0x546d('0x3b')],'priority':this['channel'][_0x546d('0x3c')],'accountcode':this[_0x546d('0x34')][_0x546d('0x3d')],'dnid':this[_0x546d('0x34')][_0x546d('0x3e')],'projectName':this['channel']['arg_1'],'saveName':_0x5e8557,'filename':_0x587912[_0x546d('0x3f')]||_0x5e8557,'savePath':_0x4dafb2})[_0x546d('0x13')](function(_0x137b71){_0x2d0db8(null,_0x137b71);})['catch'](function(_0x2d2fa0){_0x2d0db8(_0x2d2fa0);});};AGIVertices[_0x546d('0x12')][_0x546d('0x40')]=function(_0x4dfba3,_0x456599,_0x3ced1d){this[_0x546d('0x10')][_0x546d('0x40')]({'uniqueid':this[_0x546d('0x34')][_0x546d('0x35')],'body':_0x4dfba3,'direction':_0x456599})[_0x546d('0x13')](function(_0x1af094){if(_0x3ced1d){_0x3ced1d(null,_0x1af094);}})['catch'](function(_0x34febd){if(_0x3ced1d){_0x3ced1d(_0x34febd);}});};AGIVertices[_0x546d('0x12')][_0x546d('0x41')]=function(_0x15e0f0,_0x25b50e){this[_0x546d('0x10')]['createCmContact']({'firstName':_[_0x546d('0x42')](_0x15e0f0[_0x546d('0x14')])||_[_0x546d('0x43')](_0x15e0f0['name'])?'callback_'+Math[_0x546d('0x44')]():_0x15e0f0[_0x546d('0x14')],'lastName':_['isEmpty'](_0x15e0f0['lastName'])||_['isNil'](_0x15e0f0['lastName'])?null:_0x15e0f0[_0x546d('0x45')],'phone':_0x15e0f0['phone'],'ListId':_0x15e0f0[_0x546d('0x46')],'scheduledAt':_0x15e0f0[_0x546d('0x47')],'callbackUniqueid':this['channel'][_0x546d('0x35')],'tags':_0x546d('0x48'),'description':_0x546d('0x49')+_0x15e0f0[_0x546d('0x47')]['toString'](),'priority':_0x15e0f0[_0x546d('0x4a')]})[_0x546d('0x13')](function(_0x224009){_0x25b50e(null,_0x224009);})[_0x546d('0x15')](function(_0x17e396){_0x25b50e(_0x17e396);});};AGIVertices[_0x546d('0x12')][_0x546d('0x4b')]=function(_0x158491,_0x21d494){this['rpc'][_0x546d('0x4c')](_0x158491)[_0x546d('0x13')](function(_0x47f6b9){_0x21d494(null,_0x47f6b9?_0x47f6b9[_0x546d('0x14')]:![]);})[_0x546d('0x15')](function(_0x515e7a){_0x21d494(_0x515e7a);});};AGIVertices[_0x546d('0x12')]['agentPause']=function(_0x159798,_0x4f2f13,_0x1d5ce7){var _0x1e770e={'role':_0x546d('0x4d')};_0x1e770e[_0x159798]=this[_0x546d('0x34')][_0x546d('0x37')];this['rpc'][_0x546d('0x4e')](_0x1e770e,_0x4f2f13,this[_0x546d('0x34')][_0x546d('0x35')])['then'](function(_0x578fa0){_0x1d5ce7(null,_['isNil'](_0x578fa0)?![]:!![]);})['catch'](function(_0x500719){logger['error'](_0x500719);_0x1d5ce7(null,![]);});};AGIVertices[_0x546d('0x12')]['agentUnpause']=function(_0x593ef8,_0x3c5ba0){var _0x26b6f8={'role':_0x546d('0x4d')};_0x26b6f8[_0x593ef8]=this[_0x546d('0x34')][_0x546d('0x37')];this[_0x546d('0x10')][_0x546d('0x4f')](_0x26b6f8)[_0x546d('0x13')](function(_0x9f93b9){_0x3c5ba0(null,_[_0x546d('0x43')](_0x9f93b9)?![]:!![]);})[_0x546d('0x15')](function(_0x5a01ce){logger['error'](_0x5a01ce);_0x3c5ba0(null,![]);});};AGIVertices[_0x546d('0x12')][_0x546d('0x50')]=function(_0x1f0517,_0xa5a247){var _0x1d74da={'role':_0x546d('0x4d')};_0x1d74da[_0x1f0517]=this[_0x546d('0x34')][_0x546d('0x37')];this['rpc'][_0x546d('0x50')](_0x1d74da)[_0x546d('0x13')](function(_0x88fdd0){_0xa5a247(null,_[_0x546d('0x43')](_0x88fdd0)?![]:!![]);})[_0x546d('0x15')](function(_0x3f3d89){logger[_0x546d('0x2a')](_0x3f3d89);_0xa5a247(null,![]);});};AGIVertices['prototype']['agentLogin']=function(_0x58b998,_0x3ea7a6){var _0x2aa950={'role':'agent'};_0x2aa950[_0x58b998]=this[_0x546d('0x34')]['callerid'];var _0x1de095=_0x58b998!='internal'?util[_0x546d('0x27')](_0x546d('0x51'),_0x546d('0x52'),this[_0x546d('0x34')][_0x546d('0x37')]):undefined;this['rpc'][_0x546d('0x53')](_0x2aa950,_0x1de095)['then'](function(_0x25263a){_0x3ea7a6(null,_['isNil'](_0x25263a)?![]:!![]);})['catch'](function(_0x67e9f3){logger[_0x546d('0x2a')](_0x67e9f3);_0x3ea7a6(null,![]);});};AGIVertices[_0x546d('0x12')][_0x546d('0x54')]=function(_0x2b7860,_0x577881){sh[_0x546d('0x55')](_['trim'](_0x2b7860),function(_0x4a08c6,_0x8cbce6){var _0x1a43c2=_0x8cbce6[_0x546d('0x56')](/(\r\n|\n|\r)/gm,'');_0x577881(null,_0x1a43c2);});};AGIVertices[_0x546d('0x12')][_0x546d('0x57')]=function(_0x433ac3,_0x58f2bd){scripts[_0x546d('0x57')](_0x433ac3['text'],_0x433ac3[_0x546d('0x58')]||'en',0x1)[_0x546d('0x13')](function(_0x44af89){_0x58f2bd(null,_0x44af89);})[_0x546d('0x15')](function(_0x43f702){_0x58f2bd(_0x43f702);});};AGIVertices[_0x546d('0x12')]['googleDialogflow']=function(_0x4e305b,_0x45159a){scripts['googleDialogflow'](this[_0x546d('0x34')][_0x546d('0x35')],_0x4e305b['key'],_0x4e305b[_0x546d('0x59')],_0x4e305b['dialogflow_language']||'en')['then'](function(_0xf8088c){_0x45159a(null,_0xf8088c);})[_0x546d('0x15')](function(_0x4fc2cf){_0x45159a(_0x4fc2cf);});};AGIVertices[_0x546d('0x12')][_0x546d('0x5a')]=function(_0x304ba2,_0x43207e){scripts[_0x546d('0x5a')](this['channel'],_0x304ba2)[_0x546d('0x13')](function(_0x5372b3){_0x43207e(null,_0x5372b3);})[_0x546d('0x15')](function(_0x3f20b8){_0x43207e(_0x3f20b8);});};AGIVertices['prototype']['ispeechTTS']=function(_0x3eaa21,_0x1943e0){scripts[_0x546d('0x5b')](_0x3eaa21[_0x546d('0x5c')],_0x3eaa21['text'],_0x3eaa21[_0x546d('0x5d')]||_0x546d('0x5e'),_0x3eaa21['speed'])[_0x546d('0x13')](function(_0x34c1cf){_0x1943e0(null,_0x34c1cf);})[_0x546d('0x15')](function(_0x364bbd){_0x1943e0(_0x364bbd);});};AGIVertices['prototype'][_0x546d('0x5f')]=function(_0x39ff71,_0x2f2ae3,_0x49b2d2){scripts[_0x546d('0x5f')](_0x2f2ae3,_0x39ff71[_0x546d('0x5c')],_0x39ff71[_0x546d('0x60')]||_0x546d('0x5e'),this[_0x546d('0x61')](_0x39ff71[_0x546d('0x62')])?_0x39ff71[_0x546d('0x62')]:undefined)[_0x546d('0x13')](function(_0x52aa9a){_0x49b2d2(null,_0x52aa9a);})['catch'](function(_0x162894){_0x49b2d2(_0x162894);});};AGIVertices['prototype'][_0x546d('0x63')]=function(_0x47a93a,_0x2f9b4a){scripts[_0x546d('0x63')](_0x47a93a[_0x546d('0x64')],_0x47a93a[_0x546d('0x65')],_0x47a93a[_0x546d('0x66')],_0x47a93a[_0x546d('0x67')]||_0x546d('0x68'),_0x47a93a[_0x546d('0x59')],_0x47a93a['aws_text_type']||_0x546d('0x59'))['then'](function(_0x5af7f3){_0x2f9b4a(null,_0x5af7f3);})['catch'](function(_0xda8f54){_0x2f9b4a(_0xda8f54);});};AGIVertices['prototype']['awsLex']=function(_0x18f40f,_0x4eed86){scripts['awsLex'](this[_0x546d('0x34')][_0x546d('0x35')],_0x18f40f['aws_access_key_id'],_0x18f40f[_0x546d('0x65')],_0x18f40f['aws_lex_region'],_0x18f40f['text'],_0x18f40f[_0x546d('0x69')])[_0x546d('0x13')](function(_0x4ba8cd){_0x4eed86(null,_0x4ba8cd);})[_0x546d('0x15')](function(_0x1172f7){_0x4eed86(_0x1172f7);});};AGIVertices[_0x546d('0x12')][_0x546d('0x6a')]=function(_0x17c94d,_0x29a9fb,_0x5b105d){scripts['googleASR'](_0x29a9fb,_0x17c94d['key'],_0x17c94d['google_asr_language']||'en-US')['then'](function(_0xf44f8b){_0x5b105d(null,_0xf44f8b);})[_0x546d('0x15')](function(_0x395253){_0x5b105d(_0x395253);});};AGIVertices[_0x546d('0x12')]['tildeASR']=function(_0x2c591e,_0x2eff37,_0x11d3e2){scripts[_0x546d('0x6b')](_0x2eff37,_0x2c591e[_0x546d('0x6c')],_0x2c591e[_0x546d('0x6d')],_0x2c591e[_0x546d('0x6e')])[_0x546d('0x13')](function(_0x536ae7){_0x11d3e2(null,_0x536ae7);})['catch'](function(_0x1f80d3){_0x11d3e2(_0x1f80d3);});};AGIVertices[_0x546d('0x12')][_0x546d('0x6f')]=function(_0x33996e){var _0x129559=_[_0x546d('0x70')](verticesWithRetry,_0x33996e[_0x546d('0x71')])?_0x33996e:_[_0x546d('0x72')](_0x33996e);for(var _0x500937 in _0x129559){if(_0x129559['hasOwnProperty'](_0x500937)){if(_0x129559[_0x500937]&&_[_0x546d('0x73')](_0x129559[_0x500937])){_0x129559[_0x500937]=this[_0x546d('0x74')](_0x129559[_0x500937]);}}}return _0x129559;};AGIVertices['prototype'][_0x546d('0x74')]=function(_0x35fb0f){var _0xf64954=_0x35fb0f['split']('{');for(var _0x3d94bd=0x1;_0x3d94bd<_0xf64954[_0x546d('0x75')];_0x3d94bd+=0x1){var _0x4cefc4=_0xf64954[_0x3d94bd][_0x546d('0x76')]('}');if(_0x4cefc4[_0x546d('0x75')]>0x1){_0x35fb0f=_0x35fb0f[_0x546d('0x77')]('{'+_0x4cefc4[0x0]+'}',this[_0x546d('0x34')][_0x546d('0x78')](_0x4cefc4[0x0])[_0x546d('0x79')]||_0x4cefc4[0x0]);}}if(_0xf64954[_0x546d('0x75')]===0x1){return _0x35fb0f['toString']();}return this[_0x546d('0x74')](_0x35fb0f);};AGIVertices['prototype'][_0x546d('0x7a')]=function(_0x198166,_0x3d7c9b){var _0xa8acf2=this['channel'][_0x546d('0x78')](_0x198166);if(_0xa8acf2[_0x546d('0x7b')]===-0x1){return _0xa8acf2;}logger[_0x546d('0x2c')](util[_0x546d('0x27')](_0x546d('0x7c'),_0x3d7c9b,_0xa8acf2['extra']));return this[_0x546d('0x34')]['setVariable'](_0x3d7c9b,_0xa8acf2['extra']);};AGIVertices[_0x546d('0x12')][_0x546d('0x61')]=function(_0x5870b8){return _0x5870b8&&_0x5870b8!=='0'&&_0x5870b8!=='-1'&&_0x5870b8!=='';};AGIVertices['prototype'][_0x546d('0x7d')]=function(_0x22cf7e){this[_0x546d('0x7e')][_0x546d('0x7f')](this,_0x22cf7e,'-');_0x22cf7e[_0x546d('0x80')]=_0x22cf7e[_0x546d('0x7d')];return{'code':0xc8,'result':'-'};};AGIVertices[_0x546d('0x12')][_0x546d('0x9')]=function(_0x339b0f){logger[_0x546d('0x2c')](util[_0x546d('0x27')]('Enter\x20in\x20AGI\x20(%s)\x20block',_0x339b0f[_0x546d('0x36')]));return this['channel']['agi']([_0x339b0f['command'],_0x339b0f['args']]);};AGIVertices[_0x546d('0x12')][_0x546d('0x81')]=function(_0x322d86){logger[_0x546d('0x2c')](util['format'](_0x546d('0x82'),_0x322d86[_0x546d('0x36')]));if(this[_0x546d('0x61')](_0x322d86[_0x546d('0x83')])){logger[_0x546d('0x2c')](util[_0x546d('0x27')](_0x546d('0x84'),_0x322d86['timeout']));var _0x52b5b5=this[_0x546d('0x34')][_0x546d('0x85')](_0x322d86[_0x546d('0x83')]);if(_0x52b5b5[_0x546d('0x7b')]===-0x1){return _0x52b5b5;}}return this[_0x546d('0x34')][_0x546d('0x81')]();};AGIVertices[_0x546d('0x12')]['callback']=function(_0x3291cc){logger[_0x546d('0x2c')](util['format']('Enter\x20in\x20CALLBACK\x20(%s)\x20block',_0x3291cc[_0x546d('0x36')]));if(!this['isConfigured'](_0x3291cc[_0x546d('0x46')])){return this['channel']['error'](_0x3291cc,_0x546d('0x86'));}_0x3291cc[_0x546d('0x47')]=moment();if(this[_0x546d('0x61')](_0x3291cc['delay'])){_0x3291cc[_0x546d('0x47')]=moment()['add'](_0x3291cc[_0x546d('0x87')],'minutes');}if(!this[_0x546d('0x61')](_0x3291cc[_0x546d('0x4a')])){_0x3291cc['callback_priority']=0x2;}this[_0x546d('0x41')][_0x546d('0x7f')](this,_0x3291cc);return this[_0x546d('0x34')][_0x546d('0x88')](util[_0x546d('0x27')](_0x546d('0x89'),_0x3291cc[_0x546d('0x8a')],_0x3291cc[_0x546d('0x46')],_0x3291cc[_0x546d('0x47')]));};AGIVertices[_0x546d('0x12')][_0x546d('0x8b')]=function(_0x241f60){logger['info'](util['format'](_0x546d('0x8c'),_0x241f60['label']));var _0x3ce11c=this[_0x546d('0x34')][_0x546d('0x55')](_0x241f60[_0x546d('0x8d')],_0x241f60[_0x546d('0x8e')]);if(_0x3ce11c['result']===-0x1){return _0x3ce11c;}return this[_0x546d('0x34')][_0x546d('0x88')](util[_0x546d('0x27')](_0x546d('0x8f'),_0x241f60[_0x546d('0x8d')],_0x241f60['options']));};AGIVertices['prototype'][_0x546d('0x90')]=function(_0x197c56){logger['info'](util['format']('Enter\x20in\x20LUMENVOXTTS\x20(%s)\x20block',_0x197c56[_0x546d('0x36')]));if(!this['isConfigured'](_0x197c56[_0x546d('0x59')])){return this['channel'][_0x546d('0x88')]('no\x20text\x20configured');}var _0x1f1bd7='\x22'+_0x197c56[_0x546d('0x59')]+'\x22';if(this[_0x546d('0x61')](_0x197c56[_0x546d('0x8e')])){_0x1f1bd7+=','+_0x197c56[_0x546d('0x8e')];}var _0x1f6e9a=this[_0x546d('0x34')][_0x546d('0x55')](_0x546d('0x91'),_0x1f1bd7);if(_0x1f6e9a[_0x546d('0x7b')]===-0x1){return _0x1f6e9a;}return this[_0x546d('0x34')][_0x546d('0x88')](util[_0x546d('0x27')]('Executed\x20command\x20MRCPSynth\x20%s',_0x1f1bd7));};AGIVertices[_0x546d('0x12')]['sestektts']=function(_0x3bdbe1){logger[_0x546d('0x2c')](util[_0x546d('0x27')](_0x546d('0x92'),_0x3bdbe1[_0x546d('0x36')]));if(!this['isConfigured'](_0x3bdbe1[_0x546d('0x59')])){return this[_0x546d('0x34')][_0x546d('0x88')](_0x546d('0x93'));}var _0x4ce5d6='\x22'+_0x3bdbe1[_0x546d('0x59')]+'\x22';if(this['isConfigured'](_0x3bdbe1[_0x546d('0x8e')])){_0x4ce5d6+=','+_0x3bdbe1['options'];}var _0x1bcc5d=this[_0x546d('0x34')][_0x546d('0x55')]('MRCPSynth',_0x4ce5d6);if(_0x1bcc5d[_0x546d('0x7b')]===-0x1){return _0x1bcc5d;}return this[_0x546d('0x34')][_0x546d('0x88')](util[_0x546d('0x27')]('Executed\x20command\x20MRCPSynth\x20%s',_0x4ce5d6));};AGIVertices[_0x546d('0x12')][_0x546d('0x94')]=function(_0x13142f){logger[_0x546d('0x2c')](util['format'](_0x546d('0x95'),_0x13142f[_0x546d('0x36')]));if(!this['isConfigured'](_0x13142f[_0x546d('0x96')])){return this[_0x546d('0x34')][_0x546d('0x88')](_0x546d('0x97'));}var _0x21da4a=_0x13142f[_0x546d('0x96')];if(this[_0x546d('0x61')](_0x13142f[_0x546d('0x8e')])){_0x21da4a+=','+_0x13142f[_0x546d('0x8e')];}var _0x12d0b7=this[_0x546d('0x34')][_0x546d('0x55')](_0x546d('0x98'),_0x21da4a);if(_0x12d0b7[_0x546d('0x7b')]===-0x1){return _0x12d0b7;}var _0x1a47f4=this[_0x546d('0x7a')](_0x546d('0x99'),_0x546d('0x9a'));if(_0x1a47f4[_0x546d('0x7b')]===-0x1){return _0x1a47f4;}var _0x289d9e=this[_0x546d('0x7a')](_0x546d('0x9b'),_0x546d('0x9c'));if(_0x289d9e['result']===-0x1){return _0x289d9e;}var _0x5186d1=this[_0x546d('0x7a')](_0x546d('0x9d'),_0x546d('0x9e'));if(_0x5186d1[_0x546d('0x7b')]===-0x1){return _0x5186d1;}return this[_0x546d('0x34')]['noop'](util[_0x546d('0x27')](_0x546d('0x9f'),_0x21da4a));};AGIVertices[_0x546d('0x12')][_0x546d('0xa0')]=function(_0x2c48ef){logger[_0x546d('0x2c')](util[_0x546d('0x27')](_0x546d('0xa1'),_0x2c48ef[_0x546d('0x36')]));if(!this['isConfigured'](_0x2c48ef[_0x546d('0x96')])){return this[_0x546d('0x34')][_0x546d('0x88')](_0x546d('0x97'));}var _0x2c478b=_0x2c48ef[_0x546d('0x96')];if(this[_0x546d('0x61')](_0x2c48ef[_0x546d('0x8e')])){_0x2c478b+=','+_0x2c48ef[_0x546d('0x8e')];}var _0xecad05=this['channel'][_0x546d('0x55')](_0x546d('0x98'),_0x2c478b);if(_0xecad05[_0x546d('0x7b')]===-0x1){return _0xecad05;}var _0x19d3de=this['getAndSetVariable'](_0x546d('0x99'),_0x546d('0xa2'));if(_0x19d3de[_0x546d('0x7b')]===-0x1){return _0x19d3de;}var _0x1fac21=this[_0x546d('0x7a')](_0x546d('0x9b'),_0x546d('0xa3'));if(_0x1fac21[_0x546d('0x7b')]===-0x1){return _0x1fac21;}var _0x18281b=this[_0x546d('0x7a')](_0x546d('0x9d'),_0x546d('0xa4'));if(_0x18281b[_0x546d('0x7b')]===-0x1){return _0x18281b;}return this[_0x546d('0x34')][_0x546d('0x88')](util[_0x546d('0x27')](_0x546d('0x9f'),_0x2c478b));};AGIVertices[_0x546d('0x12')]['database']=function(_0x3191a0){logger[_0x546d('0x2c')](util[_0x546d('0x27')](_0x546d('0xa5'),_0x3191a0[_0x546d('0x36')]));if(!this['isConfigured'](_0x3191a0[_0x546d('0xa6')])){return this[_0x546d('0x34')][_0x546d('0x2a')](_0x3191a0,_0x546d('0xa7'));}var _0x397e43=this[_0x546d('0x1a')][_0x546d('0x7f')](this,_0x3191a0[_0x546d('0xa6')]);if(!_0x397e43){return this[_0x546d('0x34')][_0x546d('0x2a')](_0x3191a0,_0x546d('0xa8'));}if(!this[_0x546d('0x61')](_0x3191a0[_0x546d('0x2d')])){return this[_0x546d('0x34')]['error'](_0x3191a0,_0x546d('0xa9'));}var _0x3271bf=_0x3191a0['query'][_0x546d('0x56')](/(\r\n|\n|\r)/gm,'\x20');this['channel'][_0x546d('0x88')](util[_0x546d('0x27')](_0x546d('0xaa'),_0x3271bf));var _0x256f46=this[_0x546d('0x28')]['sync'](this,_0x397e43,_0x3271bf);this['createSquareDetailsReport'][_0x546d('0x7f')](this,_0x3191a0,_0x3271bf);if(!this[_0x546d('0x61')](_0x3191a0[_0x546d('0xab')])){return this[_0x546d('0x34')]['noop']('no\x20variable\x20selected\x20for\x20the\x20result');}var _0x3551b5=this[_0x546d('0x78')][_0x546d('0x7f')](this,_0x3191a0['variable_id']);if(!_0x3551b5){return this['channel'][_0x546d('0x2a')](_0x3191a0,_0x546d('0xac'));}var _0x49fe58=this;_0x256f46[_0x546d('0xad')](function(_0x28c28b,_0x33b30a){Object[_0x546d('0xae')](_0x28c28b)['forEach'](function(_0x4a86f1){_0x49fe58[_0x546d('0x34')][_0x546d('0xaf')](util[_0x546d('0x27')](_0x546d('0xb0'),_0x3551b5,_0x33b30a,_0x4a86f1),_0x28c28b[_0x4a86f1]);});});this[_0x546d('0x34')]['setVariable'](util[_0x546d('0x27')](_0x546d('0xb1'),_0x3551b5),_0x256f46[_0x546d('0x75')]);return this['channel'][_0x546d('0x88')](util['format'](_0x546d('0xb2'),_0x3551b5));};AGIVertices['prototype'][_0x546d('0xb3')]=function(_0x308fbc){logger[_0x546d('0xb4')](util[_0x546d('0x27')]('Enter\x20in\x20DIAL\x20(%s)\x20block',_0x308fbc['label']));if(!this[_0x546d('0x61')](_0x308fbc[_0x546d('0xb5')])){return this[_0x546d('0x34')][_0x546d('0x2a')](_0x308fbc,_0x546d('0xb6'));}var _0x4dce91=this[_0x546d('0xb7')][_0x546d('0x7f')](this,_0x308fbc[_0x546d('0xb5')]);if(!_0x4dce91){return this[_0x546d('0x34')]['error'](_0x308fbc,'no\x20user\x20found');}var _0x3f10e8=this[_0x546d('0x34')][_0x546d('0x55')]('DIAL',[util[_0x546d('0x27')](_0x546d('0xb8'),_0x4dce91),_0x308fbc[_0x546d('0x83')],_0x308fbc[_0x546d('0xb9')],_0x308fbc['url']]);if(_0x3f10e8[_0x546d('0x7b')]===-0x1){return _0x3f10e8;}return this[_0x546d('0x34')][_0x546d('0x88')](util[_0x546d('0x27')](_0x546d('0xba'),'DIAL'));};AGIVertices[_0x546d('0x12')]['dialogflow']=function(_0xae66e7){logger[_0x546d('0x2c')](util[_0x546d('0x27')](_0x546d('0xbb'),_0xae66e7[_0x546d('0x36')]));if(!this['isConfigured'](_0xae66e7['key'])){return this[_0x546d('0x34')][_0x546d('0x88')]('no\x20key\x20configured');}if(!this[_0x546d('0x61')](_0xae66e7[_0x546d('0x59')])){return this[_0x546d('0x34')][_0x546d('0x88')](_0x546d('0x93'));}this[_0x546d('0x34')]['bot']=!![];this[_0x546d('0x7e')](_0xae66e7);this['createSquareMessage'](_0xae66e7[_0x546d('0x59')],'in');this[_0x546d('0x34')][_0x546d('0x88')](util[_0x546d('0x27')]('Trying\x20Dialogflow:\x20%s',_0xae66e7[_0x546d('0x59')]));var _0xf75467=this['googleDialogflow']['sync'](this,_0xae66e7);if(_0xf75467){for(var _0xdf60cf in _0xf75467){if(_0xf75467[_0x546d('0xbc')](_0xdf60cf)){this[_0x546d('0x34')][_0x546d('0xaf')](util['format']('DIALOGFLOW_%s',_0xdf60cf[_0x546d('0xbd')]()),_0xf75467[_0xdf60cf]);}}this[_0x546d('0x40')](_0xf75467[_0x546d('0xbe')],_0x546d('0xbf'));return this[_0x546d('0x34')][_0x546d('0x88')](util[_0x546d('0x27')](_0x546d('0xc0'),_0xf75467[_0x546d('0xbe')]));}return this[_0x546d('0x34')]['error'](_0xae66e7,_0x546d('0xc1'));};AGIVertices[_0x546d('0x12')][_0x546d('0xc2')]=function(_0x2f95ad){logger['info'](util[_0x546d('0x27')](_0x546d('0xc3'),_0x2f95ad[_0x546d('0x36')]));if(!this[_0x546d('0x61')](_0x2f95ad[_0x546d('0xc4')])){return this['channel'][_0x546d('0x88')](_0x546d('0xc5'));}if(!this[_0x546d('0x61')](_0x2f95ad[_0x546d('0xc6')])){return this[_0x546d('0x34')][_0x546d('0x88')](_0x546d('0xc7'));}if(!this['isConfigured'](_0x2f95ad[_0x546d('0xc8')])){return this[_0x546d('0x34')][_0x546d('0x88')]('no\x20password\x20configured');}if(!this[_0x546d('0x61')](_0x2f95ad['ndassistant_url'])){return this['channel']['noop'](_0x546d('0x93'));}this['channel']['bot']=!![];this[_0x546d('0x7e')](_0x2f95ad);this[_0x546d('0x40')](_0x2f95ad[_0x546d('0x59')],'in');this[_0x546d('0x34')]['noop'](util['format'](_0x546d('0xc9'),_0x2f95ad[_0x546d('0x59')]));var _0x38378a=this['sestekNDA'][_0x546d('0x7f')](this,_0x2f95ad);if(_0x38378a){for(var _0x3d80f5 in _0x38378a){if(_0x38378a[_0x546d('0xbc')](_0x3d80f5)){this['channel']['setVariable'](util[_0x546d('0x27')]('SESTEK_NDA_%s',_0x3d80f5[_0x546d('0xbd')]()),_0x38378a[_0x3d80f5]);}}this['createSquareMessage'](_0x38378a[_0x546d('0xbe')],'out');if(_0x38378a[_0x546d('0xca')]){this['channel']['noop'](util[_0x546d('0x27')](_0x546d('0xcb'),_0x38378a[_0x546d('0xca')]));var _0x5a3d96=this[_0x546d('0x34')][_0x546d('0xcc')](_0x38378a[_0x546d('0xca')]);try{fs[_0x546d('0xcd')](_0x38378a[_0x546d('0xca')]+'.wav');}catch(_0x2c0b7a){logger[_0x546d('0x2a')](_0x2c0b7a);}return _0x5a3d96;}else{return this[_0x546d('0x34')]['noop'](util[_0x546d('0x27')](_0x546d('0xce'),_0x38378a[_0x546d('0xbe')]));}}return this[_0x546d('0x34')]['error'](_0x2f95ad,'SestekNDA\x20is\x20unreachable');};AGIVertices[_0x546d('0x12')][_0x546d('0xcf')]=function(_0x163ba5){logger[_0x546d('0x2c')](util[_0x546d('0x27')](_0x546d('0xd0'),_0x163ba5[_0x546d('0x36')]));return this[_0x546d('0x34')][_0x546d('0x88')]('end');};AGIVertices[_0x546d('0x12')]['ext_dial']=function(_0x3964a8){logger[_0x546d('0x2c')](util[_0x546d('0x27')]('Enter\x20in\x20EXTERNAL\x20DIAL\x20(%s)\x20block',_0x3964a8[_0x546d('0x36')]));var _0x13b05a='';if(_0x3964a8[_0x546d('0xd1')]){if(!this[_0x546d('0x61')](_0x3964a8['trunk_id'])){return this['channel'][_0x546d('0x2a')](_0x3964a8,'no\x20trunk\x20selected');}else{var _0x508bb0=parseInt(_0x3964a8['trunk_id'],0xa);if(isNaN(_0x508bb0)){_0x13b05a=_0x3964a8[_0x546d('0xd1')];}else{_0x13b05a=this[_0x546d('0x1b')][_0x546d('0x7f')](this,_0x3964a8[_0x546d('0xd1')]);if(!_0x13b05a){return this[_0x546d('0x34')][_0x546d('0x2a')](_0x3964a8,_0x546d('0xd2'));}}}}else if(_0x3964a8[_0x546d('0xd3')]){_0x13b05a=_0x3964a8['trunk_name'];}else{return this['channel'][_0x546d('0x2a')](_0x3964a8,_0x546d('0xd4'));}var _0x56ada5=this[_0x546d('0x34')][_0x546d('0x55')]('DIAL',[util[_0x546d('0x27')]('SIP/%s/%s',_0x13b05a,_0x3964a8['phone']),_0x3964a8[_0x546d('0x83')],_0x3964a8[_0x546d('0xb9')],_0x3964a8['url']]);if(_0x56ada5['result']===-0x1){return _0x56ada5;}return this[_0x546d('0x34')][_0x546d('0x88')](util['format'](_0x546d('0xba'),'DIAL'));};AGIVertices[_0x546d('0x12')][_0x546d('0xd5')]=function(_0x74156){logger[_0x546d('0x2c')](util[_0x546d('0x27')](_0x546d('0xd6'),_0x74156['label']));return this['channel'][_0x546d('0x88')]('finally');};AGIVertices[_0x546d('0x12')][_0x546d('0xe')]=function(_0x1b99fc){logger[_0x546d('0x2c')](util[_0x546d('0x27')](_0x546d('0xd7'),_0x1b99fc[_0x546d('0x36')]));if(_0x1b99fc['retry']===0x0){return this['maxRetry'](_0x1b99fc);}_0x1b99fc[_0x546d('0x80')]-=0x1;if(!this[_0x546d('0x61')](_0x1b99fc[_0x546d('0xd8')])){return this[_0x546d('0x34')][_0x546d('0x2a')](_0x1b99fc,'no\x20file\x20audio\x20selected');}var _0x57f0e7=this['getSound']['sync'](this,_0x1b99fc[_0x546d('0xd8')]);if(!_0x57f0e7){return this['channel'][_0x546d('0x2a')](_0x1b99fc,'no\x20file\x20audio\x20found');}if(!this[_0x546d('0x61')](_0x1b99fc[_0x546d('0xab')])){return this['channel'][_0x546d('0x2a')](_0x546d('0xd9'));}var _0x2fbfb0=this[_0x546d('0x34')]['getData'](_0x57f0e7,_0x1b99fc[_0x546d('0xda')],_0x1b99fc[_0x546d('0xdb')]);var _0xb388cb=_0x2fbfb0[_0x546d('0x7b')]?_0x2fbfb0['result'][_0x546d('0xdc')]():'';logger[_0x546d('0x2c')](_0x546d('0xdd'),JSON['stringify'](_0x2fbfb0));if(_0x2fbfb0[_0x546d('0x7b')]===-0x1){this[_0x546d('0x7e')][_0x546d('0x7f')](this,_0x1b99fc,_0xb388cb);return _0x2fbfb0;}else if(_0x2fbfb0['extra']==='timeout'){_0x2fbfb0[_0x546d('0x7b')]=_0xb388cb[_0x546d('0x75')]>=parseInt(_0x1b99fc[_0x546d('0xde')])?'x':'i';}else{_0x2fbfb0['result']=_0xb388cb[_0x546d('0x75')]>=parseInt(_0x1b99fc[_0x546d('0xde')])&&_0xb388cb['length']<=parseInt(_0x1b99fc[_0x546d('0xdb')])?'x':'i';}var _0x5d9c48=this[_0x546d('0x78')][_0x546d('0x7f')](this,_0x1b99fc['variable_id']);if(!_0x5d9c48){return this[_0x546d('0x34')]['error'](_0x1b99fc,_0x546d('0xac'));}this['channel'][_0x546d('0xaf')](_0x5d9c48,_0xb388cb);if(this['isConfigured'](_0x1b99fc[_0x546d('0xdf')])){var _0x1e1a84=parseInt(_0x1b99fc[_0x546d('0xdf')],0xa);var _0x175725=rs[_0x546d('0xe0')]({'charset':'*','length':_0x1e1a84});var _0x5cab79=_0xb388cb[_0x546d('0x75')];if(_0x5cab79>0x0){if(_0x5cab79>_0x1e1a84){this[_0x546d('0x7e')][_0x546d('0x7f')](this,_0x1b99fc,_0x1b99fc[_0x546d('0xe1')]===_0x546d('0xe2')?_0x175725+_0xb388cb[_0x546d('0xe3')](_0x1e1a84):_0xb388cb[_0x546d('0xe3')](0x0,_0x5cab79-_0x1e1a84)+_0x175725);}else{this[_0x546d('0x7e')][_0x546d('0x7f')](this,_0x1b99fc,rs[_0x546d('0xe0')]({'charset':'*','length':_0x5cab79}));}}else{this[_0x546d('0x7e')][_0x546d('0x7f')](this,_0x1b99fc,'');}}else{this[_0x546d('0x7e')][_0x546d('0x7f')](this,_0x1b99fc,_0xb388cb);}return _0x2fbfb0;};AGIVertices['prototype'][_0x546d('0xf')]=function(_0x36dac7){logger[_0x546d('0x2c')](util[_0x546d('0x27')](_0x546d('0xe4'),_0x36dac7[_0x546d('0x36')]));return this[_0x546d('0xe')](_0x36dac7);};AGIVertices[_0x546d('0x12')][_0x546d('0xe5')]=function(_0x182571){logger[_0x546d('0x2c')](util['format'](_0x546d('0xe6'),_0x182571['label']));this[_0x546d('0x7e')][_0x546d('0x7f')](this,_0x182571,_0x182571[_0x546d('0xe7')]);return this[_0x546d('0x34')][_0x546d('0x88')](util[_0x546d('0x27')](_0x546d('0xe8'),_0x182571[_0x546d('0xe7')]));};AGIVertices[_0x546d('0x12')]['awspolly']=function(_0x2cda14){logger[_0x546d('0x2c')](util['format']('[AGI]\x20Enter\x20in\x20AWSPOLLY\x20(%s)\x20block',_0x2cda14[_0x546d('0x36')]));if(!this[_0x546d('0x61')](_0x2cda14[_0x546d('0x64')])||!this[_0x546d('0x61')](_0x2cda14['aws_secret_access_key'])){return this[_0x546d('0x34')]['noop']('no\x20valid\x20credentials\x20configured');}if(!this[_0x546d('0x61')](_0x2cda14[_0x546d('0x59')])){return this[_0x546d('0x34')][_0x546d('0x88')](_0x546d('0x93'));}this[_0x546d('0x34')][_0x546d('0x88')](util[_0x546d('0x27')]('Trying\x20aws\x20Polly\x20%s',_0x2cda14[_0x546d('0x59')]));var _0x36a64b=this[_0x546d('0x63')][_0x546d('0x7f')](this,_0x2cda14);if(_0x36a64b){this[_0x546d('0x34')]['noop'](util[_0x546d('0x27')](_0x546d('0xe9'),_0x36a64b));var _0x1a5a73=this[_0x546d('0x34')][_0x546d('0xcc')](_0x36a64b);try{fs['unlink'](_0x36a64b+_0x546d('0xea'));}catch(_0x418d5d){logger['error'](_0x418d5d);}return _0x1a5a73;}return this[_0x546d('0x34')][_0x546d('0x2a')](_0x2cda14,_0x546d('0xeb'));};AGIVertices[_0x546d('0x12')][_0x546d('0xec')]=function(_0x1aeb34){logger[_0x546d('0x2c')](util[_0x546d('0x27')](_0x546d('0xed'),_0x1aeb34[_0x546d('0x36')]));if(!this['isConfigured'](_0x1aeb34[_0x546d('0x64')])||!this['isConfigured'](_0x1aeb34[_0x546d('0x65')])){return this['channel']['noop'](_0x546d('0xee'));}if(!this['isConfigured'](_0x1aeb34[_0x546d('0x69')])){return this[_0x546d('0x34')]['noop'](_0x546d('0xef'));}if(!this[_0x546d('0x61')](_0x1aeb34[_0x546d('0x59')])){return this[_0x546d('0x34')][_0x546d('0x88')](_0x546d('0x93'));}this[_0x546d('0x34')][_0x546d('0xf0')]=!![];this['createSquareDetailsReport'](_0x1aeb34);this['createSquareMessage'](_0x1aeb34[_0x546d('0x59')],'in');this[_0x546d('0x34')][_0x546d('0x88')](util[_0x546d('0x27')](_0x546d('0xf1'),_0x1aeb34[_0x546d('0x59')]));var _0x429dc9=this[_0x546d('0xf2')][_0x546d('0x7f')](this,_0x1aeb34);if(_0x429dc9){for(var _0x42829a in _0x429dc9){if(_0x429dc9[_0x546d('0xbc')](_0x42829a)&&_[_0x546d('0x73')](_0x429dc9[_0x42829a])){this[_0x546d('0x34')][_0x546d('0xaf')](util[_0x546d('0x27')](_0x546d('0xf3'),_0x42829a['toUpperCase']()),_0x429dc9[_0x42829a]);}}if(_[_0x546d('0x43')](_0x429dc9[_0x546d('0xf4')])){return this[_0x546d('0x34')][_0x546d('0x88')]('Amazon\x20Lex\x20ready\x20for\x20fulfillment');}else{this[_0x546d('0x40')](_0x429dc9[_0x546d('0xf4')],'out');return this[_0x546d('0x34')][_0x546d('0x88')](util[_0x546d('0x27')]('Amazon\x20Lex\x20Result\x20%s',_0x429dc9['message']));}}return this[_0x546d('0x34')][_0x546d('0x2a')](_0x1aeb34,'Amazon\x20Lex\x20is\x20unreachable');};AGIVertices[_0x546d('0x12')][_0x546d('0xf5')]=function(_0x5bbc41){logger[_0x546d('0x2c')](util['format'](_0x546d('0xf6'),_0x5bbc41[_0x546d('0x36')],_0x5bbc41['timeout']));if(!this[_0x546d('0x61')](_0x5bbc41['key'])){return this[_0x546d('0x34')][_0x546d('0x88')](_0x546d('0xf7'));}var _0x3755b2=_0x546d('0xf8');var _0x560f11=util[_0x546d('0x27')](_0x546d('0xf9'),FILES_PATH,rs[_0x546d('0xe0')](0x4));var _0x1c2894=util[_0x546d('0x27')](_0x546d('0xfa'),_0x560f11,_0x3755b2);var _0x28a659=!![];if(_0x5bbc41['beep']===_0x546d('0xfb')){_0x28a659=![];}var _0x34c3f6=this[_0x546d('0x34')][_0x546d('0xfc')](_0x560f11,_0x3755b2,_0x5bbc41[_0x546d('0xfd')],_0x5bbc41[_0x546d('0x83')],undefined,_0x28a659);if(_0x34c3f6['result']!==-0x1){this['channel'][_0x546d('0x88')](util[_0x546d('0x27')](_0x546d('0xfe'),_0x1c2894));var _0x1900ca=this['googleASR'][_0x546d('0x7f')](this,_0x5bbc41,_0x1c2894);if(_0x1900ca){for(var _0x212dc7 in _0x1900ca){if(_0x1900ca[_0x546d('0xbc')](_0x212dc7)){this[_0x546d('0x34')][_0x546d('0xaf')](util[_0x546d('0x27')](_0x546d('0xff'),_0x212dc7[_0x546d('0xbd')]()),_0x1900ca[_0x212dc7]);}}return this[_0x546d('0x34')][_0x546d('0x88')](util[_0x546d('0x27')]('GoogleASR\x20Result\x20%s',JSON[_0x546d('0x100')](_0x1900ca)));}}return _0x34c3f6;};AGIVertices[_0x546d('0x12')]['tildeasr']=function(_0x4e4c72){logger[_0x546d('0x2c')](util[_0x546d('0x27')]('Enter\x20in\x20TILDEASR\x20(%s)\x20block',_0x4e4c72['label']));if(!this[_0x546d('0x61')](_0x4e4c72[_0x546d('0x6c')])){return this[_0x546d('0x34')][_0x546d('0x88')](_0x546d('0x101'));}if(!this[_0x546d('0x61')](_0x4e4c72[_0x546d('0x6d')])){return this['channel']['noop'](_0x546d('0x102'));}var _0x184c67=_0x546d('0xf8');var _0x2507db=util['format'](_0x546d('0xf9'),FILES_PATH,rs[_0x546d('0xe0')](0x4));var _0x31fb45=util[_0x546d('0x27')](_0x546d('0xfa'),_0x2507db,_0x184c67);var _0x297a7f=!![];if(_0x4e4c72[_0x546d('0x103')]==='NOBEEP'){_0x297a7f=![];}var _0xd47cb7=this[_0x546d('0x34')][_0x546d('0xfc')](_0x2507db,_0x184c67,_0x4e4c72[_0x546d('0xfd')],_0x4e4c72[_0x546d('0x83')],undefined,_0x297a7f);if(_0xd47cb7[_0x546d('0x7b')]!==-0x1){this[_0x546d('0x34')][_0x546d('0x88')](util[_0x546d('0x27')](_0x546d('0x104'),_0x31fb45));var _0x103e4e=this[_0x546d('0x6b')][_0x546d('0x7f')](this,_0x4e4c72,_0x31fb45);if(_0x103e4e){for(var _0x2ec46b in _0x103e4e){if(_0x103e4e[_0x546d('0xbc')](_0x2ec46b)){this[_0x546d('0x34')][_0x546d('0xaf')](util['format'](_0x546d('0x105'),_0x2ec46b[_0x546d('0xbd')]()),_0x103e4e[_0x2ec46b]);}}return this[_0x546d('0x34')][_0x546d('0x88')](util[_0x546d('0x27')](_0x546d('0x106'),JSON['stringify'](_0x103e4e)));}}return _0xd47cb7;};AGIVertices[_0x546d('0x12')][_0x546d('0x107')]=function(_0x11a2e7){logger[_0x546d('0x2c')](util[_0x546d('0x27')](_0x546d('0x108'),_0x11a2e7[_0x546d('0x36')]));return this[_0x546d('0x34')][_0x546d('0x109')](_0x11a2e7[_0x546d('0x3a')],_0x11a2e7[_0x546d('0x3b')],_0x11a2e7[_0x546d('0x3c')]);};AGIVertices['prototype']['gotoif']=function(_0x3e640c){logger[_0x546d('0x2c')](util[_0x546d('0x27')]('Enter\x20in\x20GOTOIF\x20(%s)\x20block',_0x3e640c['label']));if(!this[_0x546d('0x61')](_0x3e640c[_0x546d('0x10a')])){return this[_0x546d('0x34')]['error'](_0x3e640c,'no\x20condition\x20configured');}try{var _0x18d4d6=eval(_0x3e640c[_0x546d('0x10a')])?'true':_0x546d('0x10b');this[_0x546d('0x34')][_0x546d('0x88')](util['format'](_0x546d('0x10c'),_0x3e640c['condition'],_0x18d4d6));return{'code':0xc8,'result':_0x18d4d6};}catch(_0x97143){return{'code':0xc8,'result':_0x546d('0x10b')};}};AGIVertices[_0x546d('0x12')][_0x546d('0x10d')]=function(_0x47a102){logger[_0x546d('0x2c')](util[_0x546d('0x27')](_0x546d('0x10e'),_0x47a102['label']));if(!this[_0x546d('0x61')](_0x47a102[_0x546d('0x10f')])){return this['channel'][_0x546d('0x2a')](_0x47a102,'no\x20interval\x20configured');}var _0x4e7f87=this[_0x546d('0x22')][_0x546d('0x7f')](this,_0x47a102['interval_id']);if(!_0x4e7f87){return this['channel']['error'](_0x47a102,_0x546d('0x110'));}for(var _0x189bab=0x0;_0x189bab<_0x4e7f87['length'];_0x189bab+=0x1){var _0x23ea1e=this['channel'][_0x546d('0x78')](util[_0x546d('0x27')](_0x546d('0x111'),_0x4e7f87[_0x189bab]));if(_0x23ea1e[_0x546d('0x7b')]===-0x1){return _0x23ea1e;}logger[_0x546d('0x2c')](util[_0x546d('0x27')](_0x546d('0x112'),_0x4e7f87[_0x189bab],_0x23ea1e[_0x546d('0x79')]));if(_0x23ea1e[_0x546d('0x79')]==='true'){logger[_0x546d('0x2c')](util['format']('IFTIME\x20%s\x20%s',_0x4e7f87[_0x189bab],_0x546d('0x113')));this[_0x546d('0x34')][_0x546d('0x88')](util[_0x546d('0x27')]('IFTIME\x20%s\x20%s',_0x4e7f87[_0x189bab],_0x546d('0x113')));return{'code':0xc8,'result':_0x546d('0x113')};}else{logger[_0x546d('0x2c')](util[_0x546d('0x27')](_0x546d('0x112'),_0x4e7f87[_0x189bab],_0x546d('0x10b')));this[_0x546d('0x34')][_0x546d('0x88')](util[_0x546d('0x27')](_0x546d('0x112'),_0x4e7f87[_0x189bab],_0x546d('0x10b')));}}return{'code':0xc8,'result':_0x546d('0x10b')};};AGIVertices['prototype']['hangup']=function(_0x4b8410){logger[_0x546d('0x2c')](util[_0x546d('0x27')](_0x546d('0x114'),_0x4b8410[_0x546d('0x36')]));return this[_0x546d('0x34')][_0x546d('0x115')]();};AGIVertices[_0x546d('0x12')]['ispeechasr']=function(_0x3efc8f){logger[_0x546d('0x2c')](util[_0x546d('0x27')]('Enter\x20in\x20ISPEECHASR\x20(%s)\x20block',_0x3efc8f[_0x546d('0x36')]));if(!this['isConfigured'](_0x3efc8f[_0x546d('0x5c')])){return this[_0x546d('0x34')][_0x546d('0x88')]('no\x20key\x20configured');}var _0x1cf63d=_0x546d('0xf8');var _0x4dd847=util[_0x546d('0x27')](_0x546d('0xf9'),FILES_PATH,rs[_0x546d('0xe0')](0x4));var _0x1e64e9=util[_0x546d('0x27')](_0x546d('0xfa'),_0x4dd847,_0x1cf63d);var _0x15b770=!![];if(_0x3efc8f[_0x546d('0x103')]===_0x546d('0xfb')){_0x15b770=![];}var _0x18681e=this['channel']['recordFile'](_0x4dd847,_0x1cf63d,_0x3efc8f[_0x546d('0xfd')],_0x3efc8f[_0x546d('0x83')],undefined,_0x15b770);if(_0x18681e[_0x546d('0x7b')]!==-0x1){this['channel'][_0x546d('0x88')](util[_0x546d('0x27')]('ispeech\x20%s\x20file\x20created',_0x1e64e9));var _0x5ec302=this[_0x546d('0x5f')]['sync'](this,_0x3efc8f,_0x1e64e9);if(_0x5ec302){for(var _0x5cddbf in _0x5ec302){if(_0x5ec302['hasOwnProperty'](_0x5cddbf)){this['channel'][_0x546d('0xaf')](util['format'](_0x546d('0x116'),_0x5cddbf[_0x546d('0xbd')]()),_0x5ec302[_0x5cddbf]);}}return this[_0x546d('0x34')]['noop'](util[_0x546d('0x27')]('IspeechASR\x20Result\x20%s',JSON[_0x546d('0x100')](_0x5ec302)));}}return _0x18681e;};AGIVertices[_0x546d('0x12')][_0x546d('0x117')]=function(_0x3969af){logger[_0x546d('0x2c')](util['format'](_0x546d('0x118'),_0x3969af[_0x546d('0x36')]));if(!this[_0x546d('0x61')](_0x3969af[_0x546d('0x5c')])){return this[_0x546d('0x34')][_0x546d('0x88')]('no\x20key\x20configured');}if(!this['isConfigured'](_0x3969af[_0x546d('0x59')])){return this[_0x546d('0x34')][_0x546d('0x88')](_0x546d('0x93'));}this[_0x546d('0x34')]['noop'](util['format'](_0x546d('0x119'),_0x3969af['text']));var _0x1cc135=this['ispeechTTS'][_0x546d('0x7f')](this,_0x3969af);if(_0x1cc135){this[_0x546d('0x34')][_0x546d('0x88')](util[_0x546d('0x27')](_0x546d('0x11a'),_0x1cc135));var _0x4610f1=this['channel'][_0x546d('0xcc')](_0x1cc135,_0x3969af[_0x546d('0xfd')]);try{fs[_0x546d('0xcd')](_0x1cc135+_0x546d('0xea'));}catch(_0x4e5050){logger[_0x546d('0x2a')](_0x4e5050);}return _0x4610f1;}return this[_0x546d('0x34')][_0x546d('0x2a')](_0x3969af,_0x546d('0x11b'));};AGIVertices[_0x546d('0x12')][_0x546d('0x11c')]=function(_0x3f9d99){logger['info'](util[_0x546d('0x27')](_0x546d('0x11d'),_0x3f9d99[_0x546d('0x36')]));if(!this['isConfigured'](_0x3f9d99['findBy'])){return this[_0x546d('0x34')][_0x546d('0x2a')](_0x3f9d99,'no\x20find\x20by\x20configured');}logger['info'](util[_0x546d('0x27')](_0x546d('0x11e'),this['channel'][_0x546d('0x37')],_0x3f9d99[_0x546d('0x11f')]));var _0x15cf26=this['agentLogin'][_0x546d('0x7f')](this,_0x3f9d99[_0x546d('0x11f')]);if(_0x15cf26){logger[_0x546d('0x2c')](util[_0x546d('0x27')]('AGENT\x20%s\x20FOUND\x20BY',this['channel'][_0x546d('0x37')],_0x3f9d99[_0x546d('0x11f')]));this[_0x546d('0x34')][_0x546d('0x88')](util[_0x546d('0x27')]('AGENT\x20%s\x20FOUND\x20BY',this[_0x546d('0x34')][_0x546d('0x37')],_0x3f9d99[_0x546d('0x11f')]));return{'code':0xc8,'result':_0x546d('0x120')};}else{logger[_0x546d('0x2c')](util[_0x546d('0x27')]('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this[_0x546d('0x34')]['callerid'],_0x3f9d99[_0x546d('0x11f')]));this[_0x546d('0x34')][_0x546d('0x88')](util[_0x546d('0x27')](_0x546d('0x121'),this[_0x546d('0x34')]['callerid'],_0x3f9d99[_0x546d('0x11f')]));return{'code':0xc8,'result':_0x546d('0x122')};}};AGIVertices['prototype'][_0x546d('0x123')]=function(_0x4af509){logger[_0x546d('0x2c')](util[_0x546d('0x27')](_0x546d('0x124'),_0x4af509[_0x546d('0x36')]));if(!this['isConfigured'](_0x4af509[_0x546d('0x11f')])){return this[_0x546d('0x34')]['error'](_0x4af509,_0x546d('0x125'));}logger[_0x546d('0x2c')](util[_0x546d('0x27')](_0x546d('0x11e'),this[_0x546d('0x34')][_0x546d('0x37')],_0x4af509[_0x546d('0x11f')]));var _0x357ae5=this['agentLogout']['sync'](this,_0x4af509[_0x546d('0x11f')]);if(_0x357ae5){logger[_0x546d('0x2c')](util[_0x546d('0x27')](_0x546d('0x126'),this[_0x546d('0x34')][_0x546d('0x37')],_0x4af509[_0x546d('0x11f')]));this[_0x546d('0x34')][_0x546d('0x88')](util[_0x546d('0x27')](_0x546d('0x126'),this[_0x546d('0x34')][_0x546d('0x37')],_0x4af509[_0x546d('0x11f')]));return{'code':0xc8,'result':'success'};}else{logger[_0x546d('0x2c')](util[_0x546d('0x27')](_0x546d('0x121'),this[_0x546d('0x34')]['callerid'],_0x4af509['findBy']));this[_0x546d('0x34')][_0x546d('0x88')](util[_0x546d('0x27')](_0x546d('0x121'),this[_0x546d('0x34')][_0x546d('0x37')],_0x4af509[_0x546d('0x11f')]));return{'code':0xc8,'result':_0x546d('0x122')};}};AGIVertices[_0x546d('0x12')]['math']=function(_0x25e5e6){logger['info'](util[_0x546d('0x27')]('Enter\x20in\x20MATH\x20(%s)\x20block',_0x25e5e6['label']));if(!this[_0x546d('0x61')](_0x25e5e6[_0x546d('0x127')])){return this['channel']['error'](_0x25e5e6,_0x546d('0x128'));}this[_0x546d('0x34')][_0x546d('0x88')](util['format']('math\x20%s',_0x25e5e6[_0x546d('0x127')]));var _0x6f657b=eval(_0x25e5e6[_0x546d('0x127')]);if(!this['isConfigured'](_0x25e5e6[_0x546d('0xab')])){return this['channel'][_0x546d('0x88')](_0x546d('0xd9'));}var _0x313961=this[_0x546d('0x78')]['sync'](this,_0x25e5e6[_0x546d('0xab')]);if(!_0x313961){return this[_0x546d('0x34')][_0x546d('0x2a')](_0x25e5e6,'no\x20variable\x20found');}if(_[_0x546d('0x129')](_0x6f657b)){var _0x5005a7=this;_0x6f657b[_0x546d('0xad')](function(_0xdaeb49,_0x139997){_0x5005a7[_0x546d('0x34')][_0x546d('0xaf')](util[_0x546d('0x27')](_0x546d('0x12a'),_0x313961,_0x139997),_0xdaeb49);});return this[_0x546d('0x34')][_0x546d('0x88')](util[_0x546d('0x27')]('variable\x20%s[key]\x20set',_0x313961));}else{return this[_0x546d('0x34')][_0x546d('0xaf')](_0x313961,_0x6f657b);}};AGIVertices[_0x546d('0x12')][_0x546d('0xd')]=function(_0x1bf4ad){logger[_0x546d('0x2c')](util['format'](_0x546d('0x12b'),_0x1bf4ad[_0x546d('0x36')]));if(_0x1bf4ad['retry']===0x0){return this[_0x546d('0x7d')](_0x1bf4ad);}_0x1bf4ad[_0x546d('0x80')]-=0x1;if(!this[_0x546d('0x61')](_0x1bf4ad[_0x546d('0xd8')])){return this[_0x546d('0x34')][_0x546d('0x2a')](_0x1bf4ad,'no\x20file\x20audio\x20selected');}var _0x1a6aae=this[_0x546d('0x1d')][_0x546d('0x7f')](this,_0x1bf4ad[_0x546d('0xd8')]);if(!_0x1a6aae){return this[_0x546d('0x34')][_0x546d('0x2a')](_0x1bf4ad,_0x546d('0x12c'));}var _0x2e1722=this[_0x546d('0x34')][_0x546d('0x12d')](_0x1a6aae,_0x1bf4ad['response'],_0x1bf4ad[_0x546d('0x12e')]);var _0x260391=_0x2e1722[_0x546d('0x7b')];if(_0x2e1722[_0x546d('0x7b')]===-0x1){this[_0x546d('0x7e')][_0x546d('0x7f')](this,_0x1bf4ad,'-1');return _0x2e1722;}else if(_0x2e1722['extra']===_0x546d('0x83')){_0x2e1722[_0x546d('0x7b')]=_0x2e1722[_0x546d('0x7b')][_0x546d('0x75')]>0x0?_0x2e1722[_0x546d('0x7b')]:'t';}else if(_[_0x546d('0x42')](_0x2e1722[_0x546d('0x7b')])){_0x2e1722[_0x546d('0x7b')]='#';_0x260391='#';}if(!this[_0x546d('0x61')](_0x1bf4ad['variable_id'])){this[_0x546d('0x34')][_0x546d('0x88')](_0x546d('0xd9'));}else{var _0x491c8c=this[_0x546d('0x78')]['sync'](this,_0x1bf4ad['variable_id']);if(!_0x491c8c){return this[_0x546d('0x34')]['error'](_0x1bf4ad,'no\x20variable\x20found');}this[_0x546d('0x34')][_0x546d('0xaf')](_0x491c8c,_0x260391);}this[_0x546d('0x7e')][_0x546d('0x7f')](this,_0x1bf4ad,_0x260391);return _0x2e1722;};AGIVertices[_0x546d('0x12')]['noop']=function(_0x15bc6b){logger[_0x546d('0x2c')](util[_0x546d('0x27')](_0x546d('0x12f'),_0x15bc6b[_0x546d('0x36')]));return this[_0x546d('0x34')][_0x546d('0x88')](_0x15bc6b[_0x546d('0x130')]||_0x15bc6b[_0x546d('0x36')]);};AGIVertices[_0x546d('0x12')]['pause']=function(_0xef96f9){logger[_0x546d('0x2c')](util[_0x546d('0x27')]('Enter\x20in\x20PAUSE\x20(%s)\x20block',_0xef96f9['label']));if(!this[_0x546d('0x61')](_0xef96f9['findBy'])){return this[_0x546d('0x34')][_0x546d('0x2a')](_0xef96f9,_0x546d('0x125'));}logger[_0x546d('0x2c')](util['format'](_0x546d('0x11e'),this[_0x546d('0x34')]['callerid'],_0xef96f9['findBy']));var _0x4a157d=this[_0x546d('0x4b')][_0x546d('0x7f')](this,_0xef96f9[_0x546d('0x131')]);var _0x1e8ee3=this[_0x546d('0x4e')][_0x546d('0x7f')](this,_0xef96f9[_0x546d('0x11f')],_0x4a157d);if(_0x1e8ee3){logger['info'](util['format']('AGENT\x20%s\x20FOUND\x20BY',this[_0x546d('0x34')]['callerid'],_0xef96f9[_0x546d('0x11f')]));this[_0x546d('0x34')][_0x546d('0x88')](util[_0x546d('0x27')](_0x546d('0x126'),this[_0x546d('0x34')][_0x546d('0x37')],_0xef96f9[_0x546d('0x11f')]));return{'code':0xc8,'result':_0x546d('0x120')};}else{logger[_0x546d('0x2c')](util[_0x546d('0x27')](_0x546d('0x121'),this[_0x546d('0x34')][_0x546d('0x37')],_0xef96f9[_0x546d('0x11f')]));this['channel'][_0x546d('0x88')](util[_0x546d('0x27')]('AGENT\x20%s\x20FOUND\x20BY',this[_0x546d('0x34')][_0x546d('0x37')],_0xef96f9[_0x546d('0x11f')]));return{'code':0xc8,'result':_0x546d('0x122')};}};AGIVertices['prototype'][_0x546d('0x132')]=function(_0xafb5f6){logger[_0x546d('0x2c')](util[_0x546d('0x27')]('Enter\x20in\x20PLAYBACK\x20(%s)\x20block',_0xafb5f6[_0x546d('0x36')]));if(!this[_0x546d('0x61')](_0xafb5f6[_0x546d('0xd8')])){return this['channel']['error'](_0xafb5f6,_0x546d('0x133'));}var _0x2ff5ac=this['getSound'][_0x546d('0x7f')](this,_0xafb5f6[_0x546d('0xd8')]);if(!_0x2ff5ac){return this[_0x546d('0x34')][_0x546d('0x2a')](_0xafb5f6,_0x546d('0x12c'));}var _0x114378=this[_0x546d('0x34')][_0x546d('0x55')](_0x546d('0x134'),[_0x2ff5ac,_0xafb5f6[_0x546d('0xb9')]]);if(_0x114378['result']===-0x1){return _0x114378;}return this[_0x546d('0x34')][_0x546d('0x88')](util['format'](_0x546d('0x8f'),_0x546d('0x134'),_0x2ff5ac));};AGIVertices[_0x546d('0x12')]['queue']=function(_0xa8770a){logger['info'](util[_0x546d('0x27')](_0x546d('0x135'),_0xa8770a[_0x546d('0x36')]));if(!this['isConfigured'](_0xa8770a['queue_id'])){return this[_0x546d('0x34')][_0x546d('0x2a')](_0xa8770a,_0x546d('0x136'));}var _0x10b853='';var _0x3f8372=parseInt(_0xa8770a['queue_id'],0xa);if(isNaN(_0x3f8372)){_0x10b853=_0xa8770a['queue_id'];}else{_0x10b853=this[_0x546d('0x16')][_0x546d('0x7f')](this,_0xa8770a[_0x546d('0x137')]);if(!_0x10b853){return this['channel'][_0x546d('0x2a')](_0xa8770a,'no\x20queue\x20found');}}var _0x16c9da='';if(this[_0x546d('0x61')](_0xa8770a[_0x546d('0xd8')])){var _0x536da5=this['getSound'][_0x546d('0x7f')](this,_0xa8770a[_0x546d('0xd8')]);if(_0x536da5){_0x16c9da=_0x536da5;}}this[_0x546d('0x7e')][_0x546d('0x7f')](this,_0xa8770a,_0x10b853);if(_0xa8770a[_0x546d('0xb9')][_0x546d('0x138')]('x')<0x0){_0xa8770a[_0x546d('0xb9')]+='x';}if(_0xa8770a[_0x546d('0xb9')][_0x546d('0x138')]('X')<0x0){_0xa8770a[_0x546d('0xb9')]+='X';}this[_0x546d('0x34')][_0x546d('0xaf')](_0x546d('0x139'),_0x10b853?_0x10b853[_0x546d('0x13a')]():'');var _0x1616a4=this['channel'][_0x546d('0x55')](_0x546d('0x13b'),[_0x10b853,_0xa8770a[_0x546d('0xb9')],_0xa8770a['url'],_0x16c9da,_0xa8770a[_0x546d('0x83')],_0xa8770a[_0x546d('0x9')],_0xa8770a[_0x546d('0x13c')],_0xa8770a[_0x546d('0x13d')],'',_0xa8770a[_0x546d('0x13e')]]);if(_0x1616a4[_0x546d('0x7b')]===-0x1){return _0x1616a4;}return this['channel'][_0x546d('0x88')](util['format'](_0x546d('0x8f'),_0x546d('0x13b'),_0x10b853));};AGIVertices['prototype']['record']=function(_0x1c4608){logger[_0x546d('0x2c')](util['format'](_0x546d('0x13f'),_0x1c4608['label']));var _0x47a1ae=_0x1c4608[_0x546d('0x140')]||_0x546d('0xf8');var _0x19cc3f=util['format'](_0x546d('0x141'),this[_0x546d('0x34')][_0x546d('0x35')],rs['generate'](0x5));var _0x1abceb=util[_0x546d('0x27')](_0x546d('0x142'),FILES_PATH,_0x19cc3f,_0x47a1ae);var _0x48942b=util[_0x546d('0x27')](_0x546d('0xf9'),FILES_PATH,_0x19cc3f);this[_0x546d('0x38')][_0x546d('0x7f')](this,_0x1c4608,_0x19cc3f,_0x1abceb);this[_0x546d('0x34')]['setVariable']('RECORDING_SAVENAME',_0x19cc3f);logger['info'](_0x546d('0x143'),_0x48942b,_0x47a1ae,_0x1c4608['escape_digits'],_0x1c4608[_0x546d('0x83')]);return this[_0x546d('0x34')][_0x546d('0xfc')](_0x48942b,_0x47a1ae,_0x1c4608[_0x546d('0x144')],_0x1c4608['timeout'],undefined,!![]);};AGIVertices[_0x546d('0x12')][_0x546d('0x145')]=function(_0x30746a){logger[_0x546d('0x2c')](util['format'](_0x546d('0x146'),_0x30746a[_0x546d('0x36')]));return this[_0x546d('0x34')][_0x546d('0x147')](_0x30746a['digits'][_0x546d('0x56')](/\s+/g,''),_0x30746a[_0x546d('0x144')]);};AGIVertices[_0x546d('0x12')]['saynumber']=function(_0x491505){logger[_0x546d('0x2c')](util[_0x546d('0x27')](_0x546d('0x148'),_0x491505[_0x546d('0x36')]));return this['channel']['sayNumber'](_0x491505[_0x546d('0x149')][_0x546d('0x56')](/\s+/g,''),_0x491505[_0x546d('0x144')]);};AGIVertices[_0x546d('0x12')][_0x546d('0x14a')]=function(_0x1d26c1){logger['info'](util[_0x546d('0x27')](_0x546d('0x14b'),_0x1d26c1[_0x546d('0x36')]));return this[_0x546d('0x34')]['sayPhonetic'](_0x1d26c1[_0x546d('0x59')],_0x1d26c1['escape_digits']);};AGIVertices[_0x546d('0x12')][_0x546d('0x14c')]=function(_0x396979){logger[_0x546d('0x2c')](util[_0x546d('0x27')](_0x546d('0x14d'),_0x396979[_0x546d('0x36')]));if(!this[_0x546d('0x61')](_0x396979[_0x546d('0x14e')])){return this['channel']['noop'](_0x546d('0x14f'));}var _0x3af114=this[_0x546d('0x150')][_0x546d('0x7f')](this,_0x396979['account_id']);if(!_0x3af114||!_0x3af114['Smtp']){return this[_0x546d('0x34')]['error'](_0x396979,_0x546d('0x151'));}var _0x4c07a7={'from':util['format'](_0x546d('0x152'),_0x3af114['name'],_0x3af114[_0x546d('0x153')]||_0x3af114[_0x546d('0x154')][_0x546d('0x155')]),'to':_0x396979['to']||'','cc':_0x396979['cc']||'','bcc':_0x396979[_0x546d('0x156')]||'','subject':_0x396979[_0x546d('0x157')],'html':_0x396979['text'],'text':_0x396979[_0x546d('0x59')]};var _0x4d06d1={'tls':{'rejectUnauthorized':![]}};if(_0x3af114[_0x546d('0x154')][_0x546d('0x158')]){_0x4d06d1[_0x546d('0x158')]=_0x3af114[_0x546d('0x154')][_0x546d('0x158')];}else{_0x4d06d1[_0x546d('0x159')]=_0x3af114[_0x546d('0x154')]['host'];_0x4d06d1[_0x546d('0x15a')]=_0x3af114[_0x546d('0x154')][_0x546d('0x15a')];_0x4d06d1[_0x546d('0x15b')]=_0x3af114[_0x546d('0x154')][_0x546d('0x15b')];}if(_0x3af114[_0x546d('0x154')][_0x546d('0x15c')]){_0x4d06d1[_0x546d('0x15d')]={'user':_0x3af114[_0x546d('0x154')][_0x546d('0x155')],'pass':_0x3af114[_0x546d('0x154')][_0x546d('0x15e')]};}if(this['isConfigured'](_0x396979[_0x546d('0x15f')])){}logger[_0x546d('0xb4')]('sendMail\x20message',JSON[_0x546d('0x100')](_0x4c07a7));this[_0x546d('0x7e')]['sync'](this,_0x396979,_0x396979[_0x546d('0x14e')]);this[_0x546d('0x34')][_0x546d('0x88')](util[_0x546d('0x27')]('Trying\x20SendMail\x20with\x20account\x20%s',_0x3af114[_0x546d('0x14')]));this['sendMailMessage']['sync'](this,_0x4d06d1,_0x4c07a7);return this['channel'][_0x546d('0x88')]('Mail\x20message\x20added\x20to\x20outgoing\x20process');};AGIVertices[_0x546d('0x12')][_0x546d('0x160')]=function(_0x5d3ce2){logger[_0x546d('0x2c')](util[_0x546d('0x27')](_0x546d('0x161'),_0x5d3ce2[_0x546d('0x36')]));return this[_0x546d('0x34')]['noop']('SENDFAX\x20block\x20not\x20implemented');};AGIVertices[_0x546d('0x12')][_0x546d('0x162')]=function(_0x4a42a1){logger[_0x546d('0x2c')](util[_0x546d('0x27')]('Enter\x20in\x20SENDSMS\x20(%s)\x20block',_0x4a42a1['label']));if(!this[_0x546d('0x61')](_0x4a42a1['sms_account_id'])){return this['channel'][_0x546d('0x88')](_0x546d('0x163'));}var _0x76d581=this[_0x546d('0x31')][_0x546d('0x7f')](this,_0x4a42a1[_0x546d('0x164')]);if(!_0x76d581){return this[_0x546d('0x34')][_0x546d('0x2a')](_0x4a42a1,_0x546d('0x165'));}var _0x48a94c={'body':_0x4a42a1[_0x546d('0x166')],'phone':_0x4a42a1['to']||'','SmsAccountId':_0x76d581['id']};logger[_0x546d('0xb4')](_0x546d('0x167'),JSON['stringify'](_0x48a94c));this[_0x546d('0x7e')]['sync'](this,_0x4a42a1,_0x4a42a1[_0x546d('0x164')]);this[_0x546d('0x34')][_0x546d('0x88')](util[_0x546d('0x27')](_0x546d('0x168'),_0x76d581[_0x546d('0x14')]));this[_0x546d('0x33')]['sync'](this,_0x48a94c);return this[_0x546d('0x34')]['noop']('Sms\x20message\x20added\x20to\x20outgoing\x20process');};AGIVertices[_0x546d('0x12')]['set']=function(_0x10068e){logger[_0x546d('0x2c')](util[_0x546d('0x27')](_0x546d('0x169'),_0x10068e[_0x546d('0x36')]));if(!this[_0x546d('0x61')](_0x10068e[_0x546d('0xab')])){return this[_0x546d('0x34')][_0x546d('0x2a')](_0x10068e,_0x546d('0x16a'));}var _0x2fc2dc=this[_0x546d('0x78')][_0x546d('0x7f')](this,_0x10068e[_0x546d('0xab')]);if(!_0x2fc2dc){return this[_0x546d('0x34')][_0x546d('0x2a')](_0x10068e,_0x546d('0xac'));}return this[_0x546d('0x34')][_0x546d('0xaf')](_0x2fc2dc,_0x10068e[_0x546d('0x16b')]);};AGIVertices[_0x546d('0x12')][_0x546d('0x16c')]=function(_0x5eff80){logger[_0x546d('0x2c')](util[_0x546d('0x27')](_0x546d('0x16d'),_0x5eff80[_0x546d('0x36')]));this['channel']['noop']('START\x20CALLY\x20SQUARE');if(_0x5eff80['answer']==='yes'){this['channel'][_0x546d('0x88')]('Answer');return this[_0x546d('0x34')][_0x546d('0x81')]();}return this[_0x546d('0x34')][_0x546d('0x88')](_0x546d('0x16e'));};AGIVertices[_0x546d('0x12')][_0x546d('0x16f')]=function(_0x4265b3){logger[_0x546d('0x2c')](util[_0x546d('0x27')](_0x546d('0x170'),_0x4265b3[_0x546d('0x36')]));if(!this['isConfigured'](_0x4265b3[_0x546d('0x171')])){return this['channel']['error'](_0x4265b3,_0x546d('0x172'));}var _0x3f0eee=this[_0x546d('0x18')]['sync'](this,_0x4265b3[_0x546d('0x171')]);if(!this['isConfigured'](_0x3f0eee)){return this[_0x546d('0x34')]['error'](_0x4265b3,util[_0x546d('0x27')](_0x546d('0x173'),_0x4265b3[_0x546d('0x171')]));}if(_0x3f0eee===this[_0x546d('0x34')][_0x546d('0x174')]){return this[_0x546d('0x34')][_0x546d('0x2a')](_0x4265b3,_0x546d('0x175'));}this[_0x546d('0x7e')][_0x546d('0x7f')](this,_0x4265b3,_0x3f0eee);var _0x4656d3=this[_0x546d('0x34')][_0x546d('0x55')](_0x546d('0x176'),util[_0x546d('0x27')](_0x546d('0x177'),config[_0x546d('0x9')]['host']||'127.0.0.1',_0x3f0eee,this[_0x546d('0x34')][_0x546d('0x174')]));if(_0x4656d3[_0x546d('0x7b')]===-0x1){return _0x4656d3;}return this[_0x546d('0x34')]['noop'](util[_0x546d('0x27')](_0x546d('0x8f'),_0x546d('0x176'),_0x3f0eee));};AGIVertices[_0x546d('0x12')][_0x546d('0x178')]=function(_0x323580){logger['info'](util[_0x546d('0x27')](_0x546d('0x179'),_0x323580[_0x546d('0x36')]));var _0x1520c6=this['shellCommand'][_0x546d('0x7f')](this,_0x323580[_0x546d('0x17a')]);this[_0x546d('0x7e')][_0x546d('0x7f')](this,_0x323580,_0x323580[_0x546d('0x17a')]);if(this[_0x546d('0x61')](_0x323580['variable_id'])){var _0x1bb775=this[_0x546d('0x78')][_0x546d('0x7f')](this,_0x323580[_0x546d('0xab')]);if(_0x1bb775){this[_0x546d('0x34')][_0x546d('0xaf')](_0x1bb775,_0x1520c6);return this[_0x546d('0x34')][_0x546d('0x88')](util[_0x546d('0x27')](_0x546d('0x17b'),_0x323580[_0x546d('0x17a')],_0x1bb775));}}return this[_0x546d('0x34')][_0x546d('0x88')](util['format'](_0x546d('0x17c'),_0x323580[_0x546d('0x17a')]));};AGIVertices[_0x546d('0x12')][_0x546d('0x17d')]=function(_0x3b430a){logger['info'](util[_0x546d('0x27')]('Enter\x20in\x20GOOGLETTS\x20(%s)\x20block',_0x3b430a['label']));if(!this['isConfigured'](_0x3b430a['text'])){return this[_0x546d('0x34')][_0x546d('0x88')]('no\x20text\x20configured');}this[_0x546d('0x34')][_0x546d('0x88')](util['format']('Trying\x20Google\x20TTS\x20%s',_0x3b430a[_0x546d('0x59')]));var _0x6dde51=this[_0x546d('0x57')][_0x546d('0x7f')](this,_0x3b430a);if(_0x6dde51){this[_0x546d('0x34')][_0x546d('0x88')](util[_0x546d('0x27')]('Google\x20TTS\x20%s\x20file\x20created',_0x6dde51));var _0x464195=this[_0x546d('0x34')][_0x546d('0xcc')](_0x6dde51);try{fs[_0x546d('0xcd')](_0x6dde51+_0x546d('0xea'));}catch(_0x1069f3){logger[_0x546d('0x2a')](_0x1069f3);}return _0x464195;}return this['channel'][_0x546d('0x2a')](_0x3b430a,'Google\x20TTS\x20is\x20unreachable');};AGIVertices[_0x546d('0x12')]['unpause']=function(_0x2bcb7c){logger[_0x546d('0x2c')](util[_0x546d('0x27')](_0x546d('0x17e'),_0x2bcb7c['label']));if(!this[_0x546d('0x61')](_0x2bcb7c['findBy'])){return this[_0x546d('0x34')]['error'](_0x2bcb7c,_0x546d('0x125'));}logger[_0x546d('0x2c')](util[_0x546d('0x27')](_0x546d('0x11e'),this[_0x546d('0x34')][_0x546d('0x37')],_0x2bcb7c[_0x546d('0x11f')]));var _0x4a0ed2=this[_0x546d('0x4f')][_0x546d('0x7f')](this,_0x2bcb7c[_0x546d('0x11f')]);if(_0x4a0ed2){logger[_0x546d('0x2c')](util[_0x546d('0x27')](_0x546d('0x126'),this[_0x546d('0x34')][_0x546d('0x37')],_0x2bcb7c[_0x546d('0x11f')]));this[_0x546d('0x34')][_0x546d('0x88')](util[_0x546d('0x27')]('AGENT\x20%s\x20FOUND\x20BY',this[_0x546d('0x34')][_0x546d('0x37')],_0x2bcb7c[_0x546d('0x11f')]));return{'code':0xc8,'result':_0x546d('0x120')};}else{logger['info'](util['format'](_0x546d('0x121'),this['channel'][_0x546d('0x37')],_0x2bcb7c['findBy']));this['channel'][_0x546d('0x88')](util[_0x546d('0x27')](_0x546d('0x121'),this[_0x546d('0x34')][_0x546d('0x37')],_0x2bcb7c[_0x546d('0x11f')]));return{'code':0xc8,'result':'failure'};}};AGIVertices[_0x546d('0x12')][_0x546d('0x17f')]=function(_0x1d99ad){logger['info'](util[_0x546d('0x27')]('Enter\x20in\x20VOICEMAIL\x20(%s)\x20block',_0x1d99ad[_0x546d('0x36')]));var _0x917151=this[_0x546d('0x34')][_0x546d('0x55')]('VOICEMAIL',[_0x1d99ad[_0x546d('0x180')],_0x1d99ad[_0x546d('0x8e')]]);if(_0x917151[_0x546d('0x7b')]===-0x1){return _0x917151;}return this[_0x546d('0x34')]['noop'](util[_0x546d('0x27')]('Executed\x20command\x20%s\x20%s',_0x546d('0x181'),_0x1d99ad[_0x546d('0x180')]));};AGIVertices[_0x546d('0x12')][_0x546d('0x182')]=function(_0x255c14){logger[_0x546d('0x2c')](util[_0x546d('0x27')](_0x546d('0x183'),_0x255c14[_0x546d('0x36')]));if(!this[_0x546d('0x61')](_0x255c14[_0x546d('0xab')])){return this['channel']['error'](_0x255c14,_0x546d('0x16a'));}var _0x931566=this[_0x546d('0x78')][_0x546d('0x7f')](this,_0x255c14[_0x546d('0xab')]);if(!_0x931566){return this[_0x546d('0x34')]['error'](_0x255c14,_0x546d('0xac'));}var _0x58c2ef=this[_0x546d('0x34')]['getVariable'](_0x931566);return{'code':0xc8,'result':_0x58c2ef[_0x546d('0x79')]?_0x58c2ef[_0x546d('0x79')]:'-'};};String[_0x546d('0x12')][_0x546d('0x77')]=function(_0x54ea3b,_0x1b063e){return this[_0x546d('0x76')](_0x54ea3b)[_0x546d('0x184')](_0x1b063e);};module['exports']=AGIVertices;
\ No newline at end of file