Built motion from commit (unavailable).|2.5.0
[motion2.git] / server / services / agi / vertices.js
index 5754f4e..46bd48e 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x4f89=['MP3','google_tts_language','restAPI','url','timeout','POST','PUT','method','body','An\x20incorrect\x20formatted\x20json\x20body\x20has\x20been\x20passed\x20to\x20the\x20function','headers','An\x20incorrect\x20formatted\x20json\x20headers\x20has\x20been\x20passed\x20to\x20the\x20function','computedVariables','sync','uri','render','parse','stringify','An\x20incorrect\x20formatted\x20json\x20has\x20been\x20passed\x20to\x20the\x20function','statusCode','statusMessage','500\x20-\x20Internal\x20Server\x20Error','options','googleDialogflow','key','dialogflow_language','sestekNDA','ispeechTTS','speed','isConfigured','model','awsPolly','aws_access_key_id','aws_secret_access_key','aws_polly_region','aws_polly_voice','Amy','awsLex','aws_lex_region','googleASR','google_asr_language','tildeASR','appid','appsecret','clear','includes','clone','hasOwnProperty','isString','replaceObjectAllVariables','replaceAllVariables','recursiveNodeIndex','isPlainObject','isArray','length','saveRestApiResult','format','%s.%s','split','replaceAll','extra','getAndSetVariable','result','maxRetry','retry','Enter\x20in\x20AGI\x20(%s)\x20block','command','args','answer','Enter\x20in\x20ANSWER\x20(%s)\x20block','delay','add','minutes','CALLBACK\x20added\x20phone:\x20%s\x20on\x20list:\x20%s\x20at\x20%s','custom_app','Enter\x20in\x20CUSTOM\x20APP\x20(%s)\x20block','exec','application','noop','Executed\x20command\x20%s\x20%s','Enter\x20in\x20LUMENVOXTTS\x20(%s)\x20block','MRCPSynth','Executed\x20command\x20MRCPSynth\x20%s','sestektts','Enter\x20in\x20SESTEKTTS\x20(%s)\x20block','no\x20text\x20configured','lumenvoxasr','Enter\x20in\x20LUMENVOXASR\x20(%s)\x20block','no\x20grammar\x20configured','grammar','LUMENVOX_ASR_CONFIDENCE','RECOG_INSTANCE()','LUMENVOX_ASR_INSTANCE','sestekasr','MRCPRecog','RECOG_CONFIDENCE()','SESTEK_ASR_CONFIDENCE','RECOG_INPUT()','SESTEK_ASR_INSTANCE','Executed\x20command\x20MRCPRecog\x20%s','database','Enter\x20in\x20DATABASE\x20(%s)\x20block','no\x20database\x20selected','odbc_id','no\x20odbc\x20database\x20found','query:\x20%s','variable_id','no\x20variable\x20selected\x20for\x20the\x20result','no\x20variable\x20found','forEach','setVariable','%s[%s][%s]','%s_ROWS_COUNT','debug','Enter\x20in\x20DIAL\x20(%s)\x20block','sip_id','getUser','DIAL','SIP/%s','opts','Enter\x20in\x20DIALOGFLOW\x20(%s)\x20block','no\x20key\x20configured','Trying\x20Dialogflow:\x20%s','DIALOGFLOW_%s','speech','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','no\x20password\x20configured','ndassistant_url','bot','SESTEK_NDA_%s','toUpperCase','out','audiofile','Sestek\x20NDA\x20%s\x20file\x20created','streamFile','unlink','.wav','SestekNDA\x20Result\x20%s','SestekNDA\x20is\x20unreachable','end','Enter\x20in\x20END\x20(%s)\x20block','Enter\x20in\x20EXTERNAL\x20DIAL\x20(%s)\x20block','trunk_id','no\x20trunk\x20selected','no\x20trunk\x20found','trunk_name','SIP/%s/%s','Executed\x20command\x20%s','finally','Enter\x20in\x20FINALLY\x20(%s)\x20block','Enter\x20in\x20GETDIGITS\x20(%s)\x20block','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','GOAL\x20%s','awspolly','[AGI]\x20Enter\x20in\x20AWSPOLLY\x20(%s)\x20block','no\x20valid\x20credentials\x20configured','Trying\x20aws\x20Polly\x20%s','aws\x20Polly\x20is\x20unreachable','awslex','Enter\x20in\x20Amazon\x20Lex\x20(%s)\x20block','aws_bot_name','no\x20bot\x20name\x20configured','Trying\x20Amazon\x20Lex:\x20%s','AWS_LEX_%s','message','Amazon\x20Lex\x20Result\x20%s','Amazon\x20Lex\x20is\x20unreachable','Enter\x20in\x20GOOGLEASR\x20(%s)\x20block\x20%s','%s/recordings/%s','NOBEEP','recordFile','intKey','google\x20%s\x20file\x20created','GOOGLE_ASR_%s','GoogleASR\x20Result\x20%s','Enter\x20in\x20TILDEASR\x20(%s)\x20block','no\x20appid\x20configured','wav','beep','tilde\x20%s\x20file\x20created','TILDE_ASR_%s','TildeASR\x20Result\x20%s','gotoc','Enter\x20in\x20GOTO\x20(%s)\x20block','continueAt','gotoif','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(%s?true:false)','IFTIME\x20%s\x20%s','hangup','Enter\x20in\x20HANGUP\x20(%s)\x20block','ispeechasr','ispeech\x20%s\x20file\x20created','ISPEECH_ASR_%s','IspeechASR\x20Result\x20%s','ispeechtts','Trying\x20ispeech\x20TTS\x20%s','ispeech\x20TTS\x20is\x20unreachable','login','Enter\x20in\x20LOGIN\x20(%s)\x20block','findBy','no\x20find\x20by\x20configured','FIND\x20AGENT\x20%s\x20BY\x20%s','AGENT\x20%s\x20FOUND\x20BY','success','AGENT\x20%s\x20NOT\x20FOUND\x20BY','failure','logout','Enter\x20in\x20LOGOUT\x20(%s)\x20block','math','Enter\x20in\x20MATH\x20(%s)\x20block','operation','no\x20operation\x20configured','math\x20%s','%s[%s]','variable\x20%s[key]\x20set','Enter\x20in\x20MENU\x20(%s)\x20block','digit','Enter\x20in\x20NOOP\x20(%s)\x20block','output','pause','Enter\x20in\x20PAUSE\x20(%s)\x20block','pause_id','PLAYBACK','queue','Enter\x20in\x20QUEUE\x20(%s)\x20block','no\x20queue\x20selected','queue_id','no\x20queue\x20found','indexOf','XMCS-QUEUE','QUEUE','macro','gosub','position','record','recordingFormat','%s_%s','%s/recordings/%s.%s','RECORDING_SAVENAME','Recording\x20%s\x20%s\x20%s\x20%s','escape_digits','Response:','inspect','%s_STATUS_CODE','variable\x20%s\x20set','Enter\x20in\x20SAYDIGITS\x20(%s)\x20block','sayDigits','digits','saynumber','sayNumber','sayphonetic','Enter\x20in\x20SAYPHONETIC\x20(%s)\x20block','sendMail','Enter\x20in\x20SENDMAIL\x20(%s)\x20block','account_id','Smtp','no\x20mail\x20account\x20found','\x22%s\x22\x20<%s>','email','user','bcc','service','host','port','secure','authentication','pass','template_id','sendMail\x20message','Trying\x20SendMail\x20with\x20account\x20%s','Mail\x20message\x20added\x20to\x20outgoing\x20process','Enter\x20in\x20SENDFAX\x20(%s)\x20block','sendSMS','Enter\x20in\x20SENDSMS\x20(%s)\x20block','sms_account_id','no\x20sms\x20account\x20configured','no\x20sms\x20account\x20found','sms_text','Trying\x20SendSMS\x20with\x20account\x20%s','Sms\x20message\x20added\x20to\x20outgoing\x20process','set','Enter\x20in\x20SET\x20(%s)\x20block','no\x20variable\x20selected','variable_value','start','yes','Answer','subproject','Enter\x20in\x20SUBPROJECT\x20(%s)\x20block','project_id','no\x20subproject\x20found\x20with\x20id\x20%d','AGI','127.0.0.1','system','Enter\x20in\x20SYSTEM\x20(%s)\x20block','sh\x20command:\x20%s\x20result\x20on\x20variable:\x20%s','sh\x20command:\x20%s\x20result\x20no\x20stored','google_cloud_tts','no\x20apiKey\x20configured','Google\x20Cloud\x20TTS\x20%s\x20file\x20created','Google\x20Cloud\x20TTS\x20is\x20unreachable','tts','Enter\x20in\x20GOOGLETTS\x20(%s)\x20block','Trying\x20Google\x20TTS\x20%s','googleTTS','Google\x20TTS\x20%s\x20file\x20created','unpause','Enter\x20in\x20UNPAUSE\x20(%s)\x20block','Enter\x20in\x20VOICEMAIL\x20(%s)\x20block','VOICEMAIL','mailbox','vswitch','Enter\x20in\x20SWITCH\x20(%s)\x20block','join','exports','path','util','shelljs','moment','mustache','request-promise','../../config/logger','agi','../../config/environment','./scripts','/var/opt/motion2/server/files','rawHeaders','rawBody','getdigits','getsecretdigits','rpc','getVariable','getVariableById','then','name','catch','prototype','getVoiceQueue','getSquareProject','getSquareProjectById','getSquareOdbc','getSquareOdbcById','dsn','getTrunk','getTrunkById','getSound','getSoundById','save_name','getMailAccount','getMailAccountById','sendMailMessage','mailRpc','getIntervals','getIntervalById','interval','map','Intervals','getSoundPath','%s/sounds/converted/%s','getQueryOdbc','open','error','Error\x20getting\x20ODBC\x20connection\x20%s','ODBC\x20connection\x20successfully','query','Error\x20executing\x20query\x20%s','info','Query\x20executed\x20correctly\x20%s','Error\x20closing\x20connection\x20to\x20odbc\x20%s','getSmsAccount','getSmsAccountById','createSmsMessage','createSquareDetailsReport','uniqueid','label','agicommand','channel','callerid','createSquareRecording','context','extension','priority','accountcode','dnid','arg_1','createSquareMessage','createCmContact','isEmpty','isNil','random','lastName','phone','list_id','scheduledAt','callback','Callback\x20scheduled\x20at\x20','toString','callback_priority','getPause','getPauseById','agentPause','agent','agentUnpause','agentLogout','agentLogin','internal','%s/%s@from-sip/n','shellCommand','trim','replace','googleCloudTTS','apiKey','google_cloud_tts_text_type','text','languageCode','en-US','MALE','audioEncoding'];(function(_0x1820b8,_0x252cc6){var _0x4531b4=function(_0x10b2f2){while(--_0x10b2f2){_0x1820b8['push'](_0x1820b8['shift']());}};_0x4531b4(++_0x252cc6);}(_0x4f89,0x15e));var _0x94f8=function(_0xb3f66a,_0x211103){_0xb3f66a=_0xb3f66a-0x0;var _0x1db82a=_0x4f89[_0xb3f66a];return _0x1db82a;};'use strict';var fs=require('fs');var path=require(_0x94f8('0x0'));var util=require(_0x94f8('0x1'));var _=require('lodash');var sh=require(_0x94f8('0x2'));var odbc=require('odbc')();var rs=require('randomstring');var moment=require(_0x94f8('0x3'));var Mustache=require(_0x94f8('0x4'));var rp=require(_0x94f8('0x5'));var logger=require(_0x94f8('0x6'))(_0x94f8('0x7'));var config=require(_0x94f8('0x8'));var scripts=require(_0x94f8('0x9'));var FILES_PATH=_0x94f8('0xa');var recursiveMapAttributes=[_0x94f8('0xb'),_0x94f8('0xc')];var verticesWithRetry=['menu',_0x94f8('0xd'),_0x94f8('0xe')];var AGIVertices=function(_0x2f5cb5,_0x56d529,_0xff629e){this['channel']=_0x2f5cb5;this[_0x94f8('0xf')]=_0x56d529;this['mailRpc']=_0xff629e;};AGIVertices['prototype'][_0x94f8('0x10')]=function(_0x2b353f,_0x58259b){this['rpc'][_0x94f8('0x11')](_0x2b353f)[_0x94f8('0x12')](function(_0x18c1b4){_0x58259b(null,_0x18c1b4?_0x18c1b4[_0x94f8('0x13')]:![]);})[_0x94f8('0x14')](function(_0x211100){_0x58259b(_0x211100);});};AGIVertices[_0x94f8('0x15')][_0x94f8('0x16')]=function(_0x390058,_0x2d719a){this[_0x94f8('0xf')]['getVoiceQueueById'](_0x390058)['then'](function(_0x27ae5b){_0x2d719a(null,_0x27ae5b?_0x27ae5b['name']:![]);})['catch'](function(_0x53132e){_0x2d719a(_0x53132e);});};AGIVertices[_0x94f8('0x15')][_0x94f8('0x17')]=function(_0x269f9a,_0x108934){this[_0x94f8('0xf')][_0x94f8('0x18')](_0x269f9a)[_0x94f8('0x12')](function(_0x15363e){_0x108934(null,_0x15363e?_0x15363e[_0x94f8('0x13')]:![]);})['catch'](function(_0x1284da){_0x108934(_0x1284da);});};AGIVertices[_0x94f8('0x15')][_0x94f8('0x19')]=function(_0x2e8e38,_0x2ac883){this[_0x94f8('0xf')][_0x94f8('0x1a')](_0x2e8e38)['then'](function(_0x1f0808){_0x2ac883(null,_0x1f0808?_0x1f0808[_0x94f8('0x1b')]:![]);})[_0x94f8('0x14')](function(_0x536398){_0x2ac883(_0x536398);});};AGIVertices['prototype']['getUser']=function(_0x3f153e,_0x4708cb){this[_0x94f8('0xf')]['getUserById'](_0x3f153e)[_0x94f8('0x12')](function(_0x56cf22){_0x4708cb(null,_0x56cf22?_0x56cf22[_0x94f8('0x13')]:![]);})[_0x94f8('0x14')](function(_0x3a6a9b){_0x4708cb(_0x3a6a9b);});};AGIVertices[_0x94f8('0x15')][_0x94f8('0x1c')]=function(_0x11a148,_0x5831fd){this[_0x94f8('0xf')][_0x94f8('0x1d')](_0x11a148)['then'](function(_0x3e0456){_0x5831fd(null,_0x3e0456?_0x3e0456[_0x94f8('0x13')]:![]);})[_0x94f8('0x14')](function(_0x371ce3){_0x5831fd(_0x371ce3);});};AGIVertices[_0x94f8('0x15')][_0x94f8('0x1e')]=function(_0x3aa4ed,_0x4f8eda){var _0x2d0e4a=this;this['rpc'][_0x94f8('0x1f')](_0x3aa4ed)[_0x94f8('0x12')](function(_0xed298d){_0x4f8eda(null,_0xed298d?_0x2d0e4a['getSoundPath'](_0xed298d[_0x94f8('0x20')]):![]);})[_0x94f8('0x14')](function(_0x28f147){_0x4f8eda(_0x28f147);});};AGIVertices[_0x94f8('0x15')][_0x94f8('0x21')]=function(_0x3873a5,_0x2958a2){this[_0x94f8('0xf')][_0x94f8('0x22')](_0x3873a5)[_0x94f8('0x12')](function(_0x4bd97d){_0x2958a2(null,_0x4bd97d?_0x4bd97d:![]);})[_0x94f8('0x14')](function(_0x225030){_0x2958a2(_0x225030);});};AGIVertices[_0x94f8('0x15')][_0x94f8('0x23')]=function(_0x52df6a,_0x33735b,_0x1212c2){this[_0x94f8('0x24')][_0x94f8('0x23')](_0x52df6a,_0x33735b)[_0x94f8('0x12')](function(){_0x1212c2(null);})['catch'](function(_0x38066e){_0x1212c2(_0x38066e);});};AGIVertices['prototype'][_0x94f8('0x25')]=function(_0x32698b,_0x5026b1){this[_0x94f8('0xf')][_0x94f8('0x26')](_0x32698b)[_0x94f8('0x12')](function(_0xf1bbae){if(_0xf1bbae){if(_0xf1bbae['IntervalId']){_0x5026b1(null,[_0xf1bbae[_0x94f8('0x27')]]);}else{_0x5026b1(null,_[_0x94f8('0x28')](_0xf1bbae[_0x94f8('0x29')],_0x94f8('0x27')));}}else{_0x5026b1(null,![]);}})[_0x94f8('0x14')](function(_0x2a02ba){_0x5026b1(_0x2a02ba);});};AGIVertices[_0x94f8('0x15')][_0x94f8('0x2a')]=function(_0x6366c5){return util['format'](_0x94f8('0x2b'),FILES_PATH,_0x6366c5);};AGIVertices[_0x94f8('0x15')][_0x94f8('0x2c')]=function(_0x1d07af,_0x57c010,_0x17bc6c){odbc[_0x94f8('0x2d')](_0x1d07af,function(_0x101302){if(_0x101302){logger[_0x94f8('0x2e')](_0x94f8('0x2f'),_0x101302);_0x17bc6c(_0x101302);}else{logger['info'](_0x94f8('0x30'));odbc[_0x94f8('0x31')](_0x57c010,function(_0x3a4b87,_0x46fd67){if(_0x3a4b87){logger['info'](_0x94f8('0x32'),_0x57c010);_0x17bc6c(_0x3a4b87);}else{logger[_0x94f8('0x33')](_0x94f8('0x34'),_0x57c010);odbc['close'](function(_0x485493){if(_0x485493){logger[_0x94f8('0x2e')](_0x94f8('0x35'),_0x485493);}_0x17bc6c(null,_0x46fd67);});}});}});};AGIVertices[_0x94f8('0x15')][_0x94f8('0x36')]=function(_0x20d2ea,_0x1a9e32){this[_0x94f8('0xf')][_0x94f8('0x37')](_0x20d2ea)['then'](function(_0x15a1ee){_0x1a9e32(null,_0x15a1ee?_0x15a1ee:![]);})[_0x94f8('0x14')](function(_0x2771b1){_0x1a9e32(_0x2771b1);});};AGIVertices['prototype'][_0x94f8('0x38')]=function(_0xed2b27,_0x133ce4){this[_0x94f8('0xf')][_0x94f8('0x38')](_0xed2b27)['then'](function(_0x36a2bb){_0x133ce4(null,_0x36a2bb);})[_0x94f8('0x14')](function(_0x3976ce){_0x133ce4(_0x3976ce);});};AGIVertices[_0x94f8('0x15')][_0x94f8('0x39')]=function(_0x1a5329,_0x357053,_0x4e7545){this[_0x94f8('0xf')][_0x94f8('0x39')]({'uniqueid':this['channel'][_0x94f8('0x3a')],'node':_0x1a5329[_0x94f8('0x3b')],'application':_0x1a5329[_0x94f8('0x3c')],'data':_0x357053||null,'project_name':this[_0x94f8('0x3d')]['arg_1'],'callerid':this[_0x94f8('0x3d')][_0x94f8('0x3e')]})[_0x94f8('0x12')](function(_0x6039a2){if(_0x4e7545){_0x4e7545(null,_0x6039a2);}})[_0x94f8('0x14')](function(_0x5e8240){if(_0x4e7545){_0x4e7545(_0x5e8240);}});};AGIVertices['prototype'][_0x94f8('0x3f')]=function(_0x5b8057,_0x2e60eb,_0x2e857b,_0x49f01c){this['rpc'][_0x94f8('0x3f')]({'uniqueid':this[_0x94f8('0x3d')][_0x94f8('0x3a')],'callerid':this[_0x94f8('0x3d')][_0x94f8('0x3e')],'calleridname':this['channel']['calleridname'],'context':this[_0x94f8('0x3d')][_0x94f8('0x40')],'extension':this[_0x94f8('0x3d')][_0x94f8('0x41')],'priority':this[_0x94f8('0x3d')][_0x94f8('0x42')],'accountcode':this[_0x94f8('0x3d')][_0x94f8('0x43')],'dnid':this[_0x94f8('0x3d')][_0x94f8('0x44')],'projectName':this['channel'][_0x94f8('0x45')],'saveName':_0x2e60eb,'filename':_0x5b8057['file']||_0x2e60eb,'savePath':_0x2e857b})['then'](function(_0x48b5de){_0x49f01c(null,_0x48b5de);})[_0x94f8('0x14')](function(_0x34cde7){_0x49f01c(_0x34cde7);});};AGIVertices[_0x94f8('0x15')][_0x94f8('0x46')]=function(_0x4b2a05,_0x4a3f65,_0x46bc36){this[_0x94f8('0xf')][_0x94f8('0x46')]({'uniqueid':this[_0x94f8('0x3d')][_0x94f8('0x3a')],'body':_0x4b2a05,'direction':_0x4a3f65})[_0x94f8('0x12')](function(_0x474187){if(_0x46bc36){_0x46bc36(null,_0x474187);}})['catch'](function(_0x901ce7){if(_0x46bc36){_0x46bc36(_0x901ce7);}});};AGIVertices[_0x94f8('0x15')][_0x94f8('0x47')]=function(_0x1b8cf9,_0x477f22){this[_0x94f8('0xf')]['createCmContact']({'firstName':_[_0x94f8('0x48')](_0x1b8cf9['name'])||_[_0x94f8('0x49')](_0x1b8cf9['name'])?'callback_'+Math[_0x94f8('0x4a')]():_0x1b8cf9[_0x94f8('0x13')],'lastName':_[_0x94f8('0x48')](_0x1b8cf9['lastName'])||_[_0x94f8('0x49')](_0x1b8cf9[_0x94f8('0x4b')])?null:_0x1b8cf9[_0x94f8('0x4b')],'phone':_0x1b8cf9[_0x94f8('0x4c')],'ListId':_0x1b8cf9[_0x94f8('0x4d')],'scheduledat':_0x1b8cf9[_0x94f8('0x4e')],'callbackUniqueid':this[_0x94f8('0x3d')]['uniqueid'],'tags':_0x94f8('0x4f'),'description':_0x94f8('0x50')+_0x1b8cf9['scheduledAt'][_0x94f8('0x51')](),'priority':_0x1b8cf9[_0x94f8('0x52')]})[_0x94f8('0x12')](function(_0x4df4d8){_0x477f22(null,_0x4df4d8);})['catch'](function(_0x7ff8d9){_0x477f22(_0x7ff8d9);});};AGIVertices[_0x94f8('0x15')][_0x94f8('0x53')]=function(_0x1667a9,_0x290b90){this[_0x94f8('0xf')][_0x94f8('0x54')](_0x1667a9)[_0x94f8('0x12')](function(_0x125c8d){_0x290b90(null,_0x125c8d?_0x125c8d[_0x94f8('0x13')]:![]);})['catch'](function(_0x508d93){_0x290b90(_0x508d93);});};AGIVertices[_0x94f8('0x15')][_0x94f8('0x55')]=function(_0x6bf002,_0x1d0fde,_0x1304f8){var _0x5d20aa={'role':_0x94f8('0x56')};_0x5d20aa[_0x6bf002]=this['channel'][_0x94f8('0x3e')];this[_0x94f8('0xf')]['agentPause'](_0x5d20aa,_0x1d0fde,this[_0x94f8('0x3d')]['uniqueid'])[_0x94f8('0x12')](function(_0x54d6e8){_0x1304f8(null,_[_0x94f8('0x49')](_0x54d6e8)?![]:!![]);})[_0x94f8('0x14')](function(_0x271674){logger[_0x94f8('0x2e')](_0x271674);_0x1304f8(null,![]);});};AGIVertices[_0x94f8('0x15')][_0x94f8('0x57')]=function(_0x5344ac,_0x52ac04){var _0x114df8={'role':_0x94f8('0x56')};_0x114df8[_0x5344ac]=this[_0x94f8('0x3d')][_0x94f8('0x3e')];this['rpc']['agentUnpause'](_0x114df8)[_0x94f8('0x12')](function(_0x50aab5){_0x52ac04(null,_[_0x94f8('0x49')](_0x50aab5)?![]:!![]);})[_0x94f8('0x14')](function(_0x2e6786){logger[_0x94f8('0x2e')](_0x2e6786);_0x52ac04(null,![]);});};AGIVertices[_0x94f8('0x15')][_0x94f8('0x58')]=function(_0x367bd8,_0x498eb2){var _0x2e94c0={'role':'agent'};_0x2e94c0[_0x367bd8]=this[_0x94f8('0x3d')]['callerid'];this[_0x94f8('0xf')]['agentLogout'](_0x2e94c0)['then'](function(_0x1794fd){_0x498eb2(null,_['isNil'](_0x1794fd)?![]:!![]);})[_0x94f8('0x14')](function(_0x12a2a3){logger[_0x94f8('0x2e')](_0x12a2a3);_0x498eb2(null,![]);});};AGIVertices['prototype'][_0x94f8('0x59')]=function(_0x2491ae,_0x2efb92){var _0x14736c={'role':_0x94f8('0x56')};_0x14736c[_0x2491ae]=this[_0x94f8('0x3d')][_0x94f8('0x3e')];var _0x5493de=_0x2491ae!=_0x94f8('0x5a')?util['format'](_0x94f8('0x5b'),'LOCAL',this['channel'][_0x94f8('0x3e')]):undefined;this[_0x94f8('0xf')]['agentLogin'](_0x14736c,_0x5493de)[_0x94f8('0x12')](function(_0x1deb03){_0x2efb92(null,_[_0x94f8('0x49')](_0x1deb03)?![]:!![]);})['catch'](function(_0xa8813e){logger['error'](_0xa8813e);_0x2efb92(null,![]);});};AGIVertices[_0x94f8('0x15')][_0x94f8('0x5c')]=function(_0x35c8d4,_0x5d9ef4){sh['exec'](_[_0x94f8('0x5d')](_0x35c8d4),function(_0x53187b,_0x25dbc9){var _0x4edb37=_0x25dbc9[_0x94f8('0x5e')](/(\r\n|\n|\r)/gm,'');_0x5d9ef4(null,_0x4edb37);});};AGIVertices[_0x94f8('0x15')][_0x94f8('0x5f')]=function(_0x16d6b3,_0x329eb5){scripts[_0x94f8('0x5f')](_0x16d6b3[_0x94f8('0x60')],_0x16d6b3[_0x94f8('0x61')]||_0x94f8('0x62'),_0x16d6b3[_0x94f8('0x62')],_0x16d6b3[_0x94f8('0x63')]||_0x94f8('0x64'),_0x16d6b3['ssmlGender']||_0x94f8('0x65'),_0x16d6b3[_0x94f8('0x66')]||_0x94f8('0x67'))[_0x94f8('0x12')](function(_0x24a6d7){_0x329eb5(null,_0x24a6d7);})[_0x94f8('0x14')](function(_0x107d76){_0x329eb5(_0x107d76);});};AGIVertices[_0x94f8('0x15')]['googleTTS']=function(_0x5cd83b,_0x3041fb){scripts['googleTTS'](_0x5cd83b[_0x94f8('0x62')],_0x5cd83b[_0x94f8('0x68')]||'en',0x1)[_0x94f8('0x12')](function(_0xf47579){_0x3041fb(null,_0xf47579);})[_0x94f8('0x14')](function(_0x5e0ee8){_0x3041fb(_0x5e0ee8);});};AGIVertices[_0x94f8('0x15')][_0x94f8('0x69')]=function(_0x5cefe1,_0x5ee3d4){var _0x267f8b={'uri':_0x5cefe1[_0x94f8('0x6a')],'method':_0x5cefe1['method'],'json':!![],'resolveWithFullResponse':!![],'timeout':typeof parseInt(_0x5cefe1[_0x94f8('0x6b')])==='number'&&parseInt(_0x5cefe1[_0x94f8('0x6b')])>=0x1?parseInt(_0x5cefe1[_0x94f8('0x6b')])*0x3e8:0x5*0x3e8};if(_['includes']([_0x94f8('0x6c'),_0x94f8('0x6d')],_0x267f8b[_0x94f8('0x6e')]['toUpperCase']())){try{_0x267f8b[_0x94f8('0x6f')]=_0x5cefe1[_0x94f8('0xc')]?JSON['parse'](_0x5cefe1[_0x94f8('0xc')]):{};}catch(_0x4002f4){logger[_0x94f8('0x2e')](_0x94f8('0x70'),_0x4002f4);}}try{_0x267f8b[_0x94f8('0x71')]=_0x5cefe1[_0x94f8('0xb')]?JSON['parse'](_0x5cefe1[_0x94f8('0xb')]):{};}catch(_0x221cd0){logger[_0x94f8('0x2e')](_0x94f8('0x72'),_0x221cd0);}if(_0x5cefe1[_0x94f8('0x73')]){try{var _0x235059=require(_0x5cefe1[_0x94f8('0x73')])[_0x94f8('0x74')](this,_0x267f8b);_0x267f8b[_0x94f8('0x75')]=Mustache[_0x94f8('0x76')](_0x5cefe1[_0x94f8('0x6a')],_0x235059,{},['$$','$$']);if(_0x267f8b[_0x94f8('0x71')]){_0x267f8b[_0x94f8('0x71')]=JSON[_0x94f8('0x77')](Mustache['render'](JSON[_0x94f8('0x78')](_0x267f8b[_0x94f8('0x71')]),_0x235059,{},['$$','$$']));}if(_0x267f8b['body']){_0x267f8b[_0x94f8('0x6f')]=JSON[_0x94f8('0x77')](Mustache[_0x94f8('0x76')](JSON[_0x94f8('0x78')](_0x267f8b[_0x94f8('0x6f')]),_0x235059,{},['$$','$$']));}}catch(_0x5a2b78){logger[_0x94f8('0x2e')](_0x94f8('0x79'),_0x5a2b78);}}rp(_0x267f8b)[_0x94f8('0x12')](function(_0x2bfd3b){var _0x2d3160={'statusCode':_0x2bfd3b[_0x94f8('0x7a')]||0xc8,'statusMessage':_0x2bfd3b[_0x94f8('0x7b')]||'OK','headers':_0x2bfd3b['headers']||{},'body':_0x2bfd3b[_0x94f8('0x6f')]||{}};_0x5ee3d4(null,_0x2d3160);})[_0x94f8('0x14')](function(_0x1b95bc){var _0x248b6b={'statusCode':_0x1b95bc[_0x94f8('0x7a')]||0x1f4,'statusMessage':_0x1b95bc['message']||_0x94f8('0x7c'),'headers':_0x1b95bc[_0x94f8('0x7d')][_0x94f8('0x71')]||{},'body':_0x1b95bc[_0x94f8('0x7d')][_0x94f8('0x6f')]||{}};_0x5ee3d4(null,_0x248b6b);});};AGIVertices['prototype'][_0x94f8('0x7e')]=function(_0x2e1350,_0x2b2c97){scripts[_0x94f8('0x7e')](this[_0x94f8('0x3d')][_0x94f8('0x3a')],_0x2e1350[_0x94f8('0x7f')],_0x2e1350[_0x94f8('0x62')],_0x2e1350[_0x94f8('0x80')]||'en')[_0x94f8('0x12')](function(_0x5973b7){_0x2b2c97(null,_0x5973b7);})[_0x94f8('0x14')](function(_0x587083){_0x2b2c97(_0x587083);});};AGIVertices[_0x94f8('0x15')][_0x94f8('0x81')]=function(_0x28b80d,_0x701449){scripts[_0x94f8('0x81')](this['channel'],_0x28b80d)[_0x94f8('0x12')](function(_0x4694a4){_0x701449(null,_0x4694a4);})[_0x94f8('0x14')](function(_0x2a7989){_0x701449(_0x2a7989);});};AGIVertices[_0x94f8('0x15')][_0x94f8('0x82')]=function(_0x46fcb5,_0x323a89){scripts[_0x94f8('0x82')](_0x46fcb5[_0x94f8('0x7f')],_0x46fcb5['text'],_0x46fcb5['ispeech_tts_language']||_0x94f8('0x64'),_0x46fcb5[_0x94f8('0x83')])[_0x94f8('0x12')](function(_0x4eabf0){_0x323a89(null,_0x4eabf0);})[_0x94f8('0x14')](function(_0x19c56c){_0x323a89(_0x19c56c);});};AGIVertices[_0x94f8('0x15')]['ispeechASR']=function(_0x32f678,_0x5efc47,_0x7dc48c){scripts['ispeechASR'](_0x5efc47,_0x32f678[_0x94f8('0x7f')],_0x32f678['ispeech_asr_language']||_0x94f8('0x64'),this[_0x94f8('0x84')](_0x32f678[_0x94f8('0x85')])?_0x32f678[_0x94f8('0x85')]:undefined)[_0x94f8('0x12')](function(_0x26d67b){_0x7dc48c(null,_0x26d67b);})[_0x94f8('0x14')](function(_0x41ac15){_0x7dc48c(_0x41ac15);});};AGIVertices[_0x94f8('0x15')][_0x94f8('0x86')]=function(_0x4c8ffe,_0x407921){scripts[_0x94f8('0x86')](_0x4c8ffe[_0x94f8('0x87')],_0x4c8ffe[_0x94f8('0x88')],_0x4c8ffe[_0x94f8('0x89')],_0x4c8ffe[_0x94f8('0x8a')]||_0x94f8('0x8b'),_0x4c8ffe[_0x94f8('0x62')],_0x4c8ffe['aws_text_type']||_0x94f8('0x62'))[_0x94f8('0x12')](function(_0x4f242d){_0x407921(null,_0x4f242d);})['catch'](function(_0x396fe8){_0x407921(_0x396fe8);});};AGIVertices['prototype'][_0x94f8('0x8c')]=function(_0x146f76,_0x2be811){scripts['awsLex'](this[_0x94f8('0x3d')]['uniqueid'],_0x146f76['aws_access_key_id'],_0x146f76[_0x94f8('0x88')],_0x146f76[_0x94f8('0x8d')],_0x146f76['text'],_0x146f76['aws_bot_name'])[_0x94f8('0x12')](function(_0x44340c){_0x2be811(null,_0x44340c);})[_0x94f8('0x14')](function(_0x3002c5){_0x2be811(_0x3002c5);});};AGIVertices[_0x94f8('0x15')]['googleASR']=function(_0x10f6a7,_0x3b2eec,_0x5a052f){scripts[_0x94f8('0x8e')](_0x3b2eec,_0x10f6a7[_0x94f8('0x7f')],_0x10f6a7[_0x94f8('0x8f')]||'en-US')[_0x94f8('0x12')](function(_0x1bcfe8){_0x5a052f(null,_0x1bcfe8);})[_0x94f8('0x14')](function(_0x4ed798){_0x5a052f(_0x4ed798);});};AGIVertices[_0x94f8('0x15')][_0x94f8('0x90')]=function(_0x3c049b,_0xcca494,_0x5cad0e){scripts[_0x94f8('0x90')](_0xcca494,_0x3c049b[_0x94f8('0x91')],_0x3c049b[_0x94f8('0x92')],_0x3c049b[_0x94f8('0x75')])['then'](function(_0x444d29){_0x5cad0e(null,_0x444d29);})[_0x94f8('0x14')](function(_0x124359){_0x5cad0e(_0x124359);});};AGIVertices[_0x94f8('0x15')][_0x94f8('0x93')]=function(_0x2112f0){var _0x1d45b7=_[_0x94f8('0x94')](verticesWithRetry,_0x2112f0[_0x94f8('0x3c')])?_0x2112f0:_[_0x94f8('0x95')](_0x2112f0);for(var _0x24248e in _0x1d45b7){if(_0x1d45b7[_0x94f8('0x96')](_0x24248e)){if(_0x1d45b7[_0x24248e]&&_[_0x94f8('0x97')](_0x1d45b7[_0x24248e])){if(_[_0x94f8('0x94')](recursiveMapAttributes,_0x24248e)){_0x1d45b7[_0x24248e]=this[_0x94f8('0x98')](_0x1d45b7[_0x24248e]);}else{_0x1d45b7[_0x24248e]=this[_0x94f8('0x99')](_0x1d45b7[_0x24248e]);}}}}return _0x1d45b7;};AGIVertices[_0x94f8('0x15')][_0x94f8('0x9a')]=function(_0xc52d6f){for(var _0x3c86f6 in _0xc52d6f){if(_0xc52d6f[_0x94f8('0x96')](_0x3c86f6)){if(_[_0x94f8('0x9b')](_0xc52d6f[_0x3c86f6])){this[_0x94f8('0x9a')](_0xc52d6f[_0x3c86f6]);}else if(_[_0x94f8('0x9c')](_0xc52d6f[_0x3c86f6])){for(var _0x1f1e0a=0x0;_0x1f1e0a<_0xc52d6f[_0x3c86f6][_0x94f8('0x9d')];_0x1f1e0a++){this[_0x94f8('0x9a')](_0xc52d6f[_0x3c86f6][_0x1f1e0a]);}}else if(_['isString'](_0xc52d6f[_0x3c86f6])){_0xc52d6f[_0x3c86f6]=this['replaceAllVariables'](_0xc52d6f[_0x3c86f6]);}}}};AGIVertices[_0x94f8('0x15')]['saveRestApiResult']=function(_0x384349,_0x3c903a){for(var _0x509cc0 in _0x384349){if(_0x384349[_0x94f8('0x96')](_0x509cc0)){if(_[_0x94f8('0x9b')](_0x384349[_0x509cc0])){if(!_[_0x94f8('0x48')](_0x384349[_0x509cc0])){this[_0x94f8('0x9e')](_0x384349[_0x509cc0],util[_0x94f8('0x9f')](_0x94f8('0xa0'),_0x3c903a,_0x509cc0));}}else if(_[_0x94f8('0x9c')](_0x384349[_0x509cc0])){for(var _0x386c8b=0x0;_0x386c8b<_0x384349[_0x509cc0][_0x94f8('0x9d')];_0x386c8b++){this[_0x94f8('0x9e')](_0x384349[_0x509cc0][_0x386c8b],util[_0x94f8('0x9f')](_0x94f8('0xa0'),_0x3c903a,_0x509cc0+'['+_0x386c8b+']'));}}else{if(!_[_0x94f8('0x49')](_0x384349[_0x509cc0])){this[_0x94f8('0x3d')]['setVariable'](util[_0x94f8('0x9f')](_0x94f8('0xa0'),_0x3c903a,_0x509cc0),_0x384349[_0x509cc0]);}}}}};AGIVertices[_0x94f8('0x15')][_0x94f8('0x98')]=function(_0x4ecc90){try{var _0x2c61b5=JSON['parse'](_0x4ecc90);this[_0x94f8('0x9a')](_0x2c61b5);return JSON[_0x94f8('0x78')](_0x2c61b5);}catch(_0x12a1f5){return this[_0x94f8('0x99')](_0x4ecc90);}};AGIVertices['prototype'][_0x94f8('0x99')]=function(_0xc1077b){var _0x3562ac=_0xc1077b[_0x94f8('0xa1')]('{');for(var _0x5bdfc5=0x1;_0x5bdfc5<_0x3562ac[_0x94f8('0x9d')];_0x5bdfc5+=0x1){var _0x45471f=_0x3562ac[_0x5bdfc5][_0x94f8('0xa1')]('}');if(_0x45471f['length']>0x1){_0xc1077b=_0xc1077b[_0x94f8('0xa2')]('{'+_0x45471f[0x0]+'}',this[_0x94f8('0x3d')][_0x94f8('0x10')](_0x45471f[0x0])[_0x94f8('0xa3')]||_0x45471f[0x0]);}}if(_0x3562ac[_0x94f8('0x9d')]===0x1){return _0xc1077b['toString']();}return this[_0x94f8('0x99')](_0xc1077b);};AGIVertices[_0x94f8('0x15')][_0x94f8('0xa4')]=function(_0x4c619b,_0x592574){var _0x3d4c16=this[_0x94f8('0x3d')][_0x94f8('0x10')](_0x4c619b);if(_0x3d4c16[_0x94f8('0xa5')]===-0x1){return _0x3d4c16;}logger[_0x94f8('0x33')](util[_0x94f8('0x9f')]('The\x20\x22%s\x22\x20variable\x20value\x20is:\x20%s',_0x592574,_0x3d4c16[_0x94f8('0xa3')]));return this[_0x94f8('0x3d')]['setVariable'](_0x592574,_0x3d4c16[_0x94f8('0xa3')]);};AGIVertices[_0x94f8('0x15')][_0x94f8('0x84')]=function(_0x314c8d){return _0x314c8d&&_0x314c8d!=='0'&&_0x314c8d!=='-1'&&_0x314c8d!=='';};AGIVertices['prototype'][_0x94f8('0xa6')]=function(_0x64977){this['createSquareDetailsReport'][_0x94f8('0x74')](this,_0x64977,'-');_0x64977[_0x94f8('0xa7')]=_0x64977[_0x94f8('0xa6')];return{'code':0xc8,'result':'-'};};AGIVertices[_0x94f8('0x15')]['agi']=function(_0x442304){logger[_0x94f8('0x33')](util[_0x94f8('0x9f')](_0x94f8('0xa8'),_0x442304[_0x94f8('0x3b')]));return this[_0x94f8('0x3d')][_0x94f8('0x7')]([_0x442304[_0x94f8('0xa9')],_0x442304[_0x94f8('0xaa')]]);};AGIVertices[_0x94f8('0x15')][_0x94f8('0xab')]=function(_0x311570){logger[_0x94f8('0x33')](util['format'](_0x94f8('0xac'),_0x311570['label']));if(this[_0x94f8('0x84')](_0x311570[_0x94f8('0x6b')])){logger[_0x94f8('0x33')](util['format']('Wait\x20%s\x20seconds\x20before\x20answer',_0x311570[_0x94f8('0x6b')]));var _0x5acbc6=this[_0x94f8('0x3d')]['wait'](_0x311570['timeout']);if(_0x5acbc6[_0x94f8('0xa5')]===-0x1){return _0x5acbc6;}}return this[_0x94f8('0x3d')][_0x94f8('0xab')]();};AGIVertices[_0x94f8('0x15')][_0x94f8('0x4f')]=function(_0x25bab9){logger[_0x94f8('0x33')](util[_0x94f8('0x9f')]('Enter\x20in\x20CALLBACK\x20(%s)\x20block',_0x25bab9['label']));if(!this[_0x94f8('0x84')](_0x25bab9['list_id'])){return this[_0x94f8('0x3d')]['error'](_0x25bab9,'no\x20list\x20selected');}_0x25bab9[_0x94f8('0x4e')]=moment();if(this[_0x94f8('0x84')](_0x25bab9[_0x94f8('0xad')])){_0x25bab9['scheduledAt']=moment()[_0x94f8('0xae')](_0x25bab9[_0x94f8('0xad')],_0x94f8('0xaf'));}if(!this[_0x94f8('0x84')](_0x25bab9[_0x94f8('0x52')])){_0x25bab9[_0x94f8('0x52')]=0x2;}this['createCmContact'][_0x94f8('0x74')](this,_0x25bab9);return this[_0x94f8('0x3d')]['noop'](util[_0x94f8('0x9f')](_0x94f8('0xb0'),_0x25bab9[_0x94f8('0x4c')],_0x25bab9[_0x94f8('0x4d')],_0x25bab9[_0x94f8('0x4e')]));};AGIVertices[_0x94f8('0x15')][_0x94f8('0xb1')]=function(_0x4d25c8){logger[_0x94f8('0x33')](util[_0x94f8('0x9f')](_0x94f8('0xb2'),_0x4d25c8[_0x94f8('0x3b')]));var _0x848511=this['channel'][_0x94f8('0xb3')](_0x4d25c8[_0x94f8('0xb4')],_0x4d25c8['options']);if(_0x848511[_0x94f8('0xa5')]===-0x1){return _0x848511;}return this[_0x94f8('0x3d')][_0x94f8('0xb5')](util[_0x94f8('0x9f')](_0x94f8('0xb6'),_0x4d25c8[_0x94f8('0xb4')],_0x4d25c8[_0x94f8('0x7d')]));};AGIVertices[_0x94f8('0x15')]['lumenvoxtts']=function(_0x502620){logger[_0x94f8('0x33')](util[_0x94f8('0x9f')](_0x94f8('0xb7'),_0x502620[_0x94f8('0x3b')]));if(!this[_0x94f8('0x84')](_0x502620[_0x94f8('0x62')])){return this[_0x94f8('0x3d')][_0x94f8('0xb5')]('no\x20text\x20configured');}var _0x4fcaee='\x22'+_0x502620[_0x94f8('0x62')]+'\x22';if(this[_0x94f8('0x84')](_0x502620[_0x94f8('0x7d')])){_0x4fcaee+=','+_0x502620['options'];}var _0x3d4c00=this[_0x94f8('0x3d')][_0x94f8('0xb3')](_0x94f8('0xb8'),_0x4fcaee);if(_0x3d4c00[_0x94f8('0xa5')]===-0x1){return _0x3d4c00;}return this['channel'][_0x94f8('0xb5')](util[_0x94f8('0x9f')](_0x94f8('0xb9'),_0x4fcaee));};AGIVertices[_0x94f8('0x15')][_0x94f8('0xba')]=function(_0x2822d0){logger['info'](util[_0x94f8('0x9f')](_0x94f8('0xbb'),_0x2822d0['label']));if(!this[_0x94f8('0x84')](_0x2822d0[_0x94f8('0x62')])){return this[_0x94f8('0x3d')]['noop'](_0x94f8('0xbc'));}var _0x4a1a63='\x22'+_0x2822d0[_0x94f8('0x62')]+'\x22';if(this[_0x94f8('0x84')](_0x2822d0[_0x94f8('0x7d')])){_0x4a1a63+=','+_0x2822d0[_0x94f8('0x7d')];}var _0x34a597=this['channel'][_0x94f8('0xb3')](_0x94f8('0xb8'),_0x4a1a63);if(_0x34a597[_0x94f8('0xa5')]===-0x1){return _0x34a597;}return this['channel'][_0x94f8('0xb5')](util[_0x94f8('0x9f')](_0x94f8('0xb9'),_0x4a1a63));};AGIVertices[_0x94f8('0x15')][_0x94f8('0xbd')]=function(_0x47e11c){logger[_0x94f8('0x33')](util['format'](_0x94f8('0xbe'),_0x47e11c[_0x94f8('0x3b')]));if(!this[_0x94f8('0x84')](_0x47e11c['grammar'])){return this[_0x94f8('0x3d')][_0x94f8('0xb5')](_0x94f8('0xbf'));}var _0x353b48=_0x47e11c[_0x94f8('0xc0')];if(this[_0x94f8('0x84')](_0x47e11c[_0x94f8('0x7d')])){_0x353b48+=','+_0x47e11c[_0x94f8('0x7d')];}var _0x5c199f=this[_0x94f8('0x3d')][_0x94f8('0xb3')]('MRCPRecog',_0x353b48);if(_0x5c199f['result']===-0x1){return _0x5c199f;}var _0x22e19b=this[_0x94f8('0xa4')]('RECOG_CONFIDENCE()',_0x94f8('0xc1'));if(_0x22e19b['result']===-0x1){return _0x22e19b;}var _0x566f25=this[_0x94f8('0xa4')]('RECOG_INPUT()','LUMENVOX_ASR_TRANSCRIPT');if(_0x566f25[_0x94f8('0xa5')]===-0x1){return _0x566f25;}var _0x3d4eee=this['getAndSetVariable'](_0x94f8('0xc2'),_0x94f8('0xc3'));if(_0x3d4eee[_0x94f8('0xa5')]===-0x1){return _0x3d4eee;}return this[_0x94f8('0x3d')][_0x94f8('0xb5')](util['format']('Executed\x20command\x20MRCPRecog\x20%s',_0x353b48));};AGIVertices[_0x94f8('0x15')][_0x94f8('0xc4')]=function(_0x1261ad){logger[_0x94f8('0x33')](util['format']('Enter\x20in\x20SESTEKASR\x20(%s)\x20block',_0x1261ad[_0x94f8('0x3b')]));if(!this[_0x94f8('0x84')](_0x1261ad[_0x94f8('0xc0')])){return this[_0x94f8('0x3d')]['noop']('no\x20grammar\x20configured');}var _0x4e9e76=_0x1261ad[_0x94f8('0xc0')];if(this[_0x94f8('0x84')](_0x1261ad[_0x94f8('0x7d')])){_0x4e9e76+=','+_0x1261ad[_0x94f8('0x7d')];}var _0x300416=this[_0x94f8('0x3d')]['exec'](_0x94f8('0xc5'),_0x4e9e76);if(_0x300416['result']===-0x1){return _0x300416;}var _0x1e2110=this[_0x94f8('0xa4')](_0x94f8('0xc6'),_0x94f8('0xc7'));if(_0x1e2110[_0x94f8('0xa5')]===-0x1){return _0x1e2110;}var _0x2af1b0=this[_0x94f8('0xa4')](_0x94f8('0xc8'),'SESTEK_ASR_TRANSCRIPT');if(_0x2af1b0[_0x94f8('0xa5')]===-0x1){return _0x2af1b0;}var _0xdbbbc5=this[_0x94f8('0xa4')]('RECOG_INSTANCE()',_0x94f8('0xc9'));if(_0xdbbbc5[_0x94f8('0xa5')]===-0x1){return _0xdbbbc5;}return this[_0x94f8('0x3d')][_0x94f8('0xb5')](util['format'](_0x94f8('0xca'),_0x4e9e76));};AGIVertices[_0x94f8('0x15')][_0x94f8('0xcb')]=function(_0x1ec355){logger[_0x94f8('0x33')](util['format'](_0x94f8('0xcc'),_0x1ec355[_0x94f8('0x3b')]));if(!this[_0x94f8('0x84')](_0x1ec355['odbc_id'])){return this['channel'][_0x94f8('0x2e')](_0x1ec355,_0x94f8('0xcd'));}var _0x340d0e=this[_0x94f8('0x19')][_0x94f8('0x74')](this,_0x1ec355[_0x94f8('0xce')]);if(!_0x340d0e){return this[_0x94f8('0x3d')][_0x94f8('0x2e')](_0x1ec355,_0x94f8('0xcf'));}if(!this[_0x94f8('0x84')](_0x1ec355[_0x94f8('0x31')])){return this[_0x94f8('0x3d')]['error'](_0x1ec355,'no\x20query\x20configured');}var _0x39a5fc=_0x1ec355[_0x94f8('0x31')][_0x94f8('0x5e')](/(\r\n|\n|\r)/gm,'\x20');this['channel']['noop'](util['format'](_0x94f8('0xd0'),_0x39a5fc));var _0x3b9ad3=this[_0x94f8('0x2c')]['sync'](this,_0x340d0e,_0x39a5fc);this['createSquareDetailsReport'][_0x94f8('0x74')](this,_0x1ec355,_0x39a5fc);if(!this['isConfigured'](_0x1ec355[_0x94f8('0xd1')])){return this['channel'][_0x94f8('0xb5')](_0x94f8('0xd2'));}var _0xd6e5f6=this['getVariable'][_0x94f8('0x74')](this,_0x1ec355[_0x94f8('0xd1')]);if(!_0xd6e5f6){return this[_0x94f8('0x3d')][_0x94f8('0x2e')](_0x1ec355,_0x94f8('0xd3'));}var _0x1f6908=this;_0x3b9ad3['forEach'](function(_0x4dc329,_0xd47690){Object['keys'](_0x4dc329)[_0x94f8('0xd4')](function(_0x51bc7f){_0x1f6908[_0x94f8('0x3d')][_0x94f8('0xd5')](util['format'](_0x94f8('0xd6'),_0xd6e5f6,_0xd47690,_0x51bc7f),_0x4dc329[_0x51bc7f]);});});this[_0x94f8('0x3d')]['setVariable'](util[_0x94f8('0x9f')](_0x94f8('0xd7'),_0xd6e5f6),_0x3b9ad3['length']);return this[_0x94f8('0x3d')][_0x94f8('0xb5')](util[_0x94f8('0x9f')]('variable\x20%s\x20set',_0xd6e5f6));};AGIVertices[_0x94f8('0x15')]['dial']=function(_0x864708){logger[_0x94f8('0xd8')](util[_0x94f8('0x9f')](_0x94f8('0xd9'),_0x864708[_0x94f8('0x3b')]));if(!this[_0x94f8('0x84')](_0x864708[_0x94f8('0xda')])){return this[_0x94f8('0x3d')][_0x94f8('0x2e')](_0x864708,'no\x20user\x20selected');}var _0x1f91eb=this[_0x94f8('0xdb')][_0x94f8('0x74')](this,_0x864708[_0x94f8('0xda')]);if(!_0x1f91eb){return this[_0x94f8('0x3d')][_0x94f8('0x2e')](_0x864708,'no\x20user\x20found');}var _0x108b28=this['channel'][_0x94f8('0xb3')](_0x94f8('0xdc'),[util[_0x94f8('0x9f')](_0x94f8('0xdd'),_0x1f91eb),_0x864708[_0x94f8('0x6b')],_0x864708[_0x94f8('0xde')],_0x864708[_0x94f8('0x6a')]]);if(_0x108b28[_0x94f8('0xa5')]===-0x1){return _0x108b28;}return this[_0x94f8('0x3d')][_0x94f8('0xb5')](util['format']('Executed\x20command\x20%s',_0x94f8('0xdc')));};AGIVertices[_0x94f8('0x15')]['dialogflow']=function(_0x4aee9f){logger[_0x94f8('0x33')](util['format'](_0x94f8('0xdf'),_0x4aee9f[_0x94f8('0x3b')]));if(!this[_0x94f8('0x84')](_0x4aee9f[_0x94f8('0x7f')])){return this[_0x94f8('0x3d')][_0x94f8('0xb5')](_0x94f8('0xe0'));}if(!this[_0x94f8('0x84')](_0x4aee9f[_0x94f8('0x62')])){return this[_0x94f8('0x3d')][_0x94f8('0xb5')]('no\x20text\x20configured');}this[_0x94f8('0x3d')]['bot']=!![];this[_0x94f8('0x39')](_0x4aee9f);this['createSquareMessage'](_0x4aee9f[_0x94f8('0x62')],'in');this[_0x94f8('0x3d')]['noop'](util[_0x94f8('0x9f')](_0x94f8('0xe1'),_0x4aee9f[_0x94f8('0x62')]));var _0x2a3f98=this[_0x94f8('0x7e')][_0x94f8('0x74')](this,_0x4aee9f);if(_0x2a3f98){for(var _0x18a95e in _0x2a3f98){if(_0x2a3f98[_0x94f8('0x96')](_0x18a95e)){this[_0x94f8('0x3d')][_0x94f8('0xd5')](util[_0x94f8('0x9f')](_0x94f8('0xe2'),_0x18a95e['toUpperCase']()),_0x2a3f98[_0x18a95e]);}}this[_0x94f8('0x46')](_0x2a3f98[_0x94f8('0xe3')],'out');return this['channel'][_0x94f8('0xb5')](util[_0x94f8('0x9f')](_0x94f8('0xe4'),_0x2a3f98['speech']));}return this[_0x94f8('0x3d')]['error'](_0x4aee9f,_0x94f8('0xe5'));};AGIVertices['prototype'][_0x94f8('0xe6')]=function(_0x4b311a){logger[_0x94f8('0x33')](util[_0x94f8('0x9f')](_0x94f8('0xe7'),_0x4b311a[_0x94f8('0x3b')]));if(!this[_0x94f8('0x84')](_0x4b311a[_0x94f8('0xe8')])){return this[_0x94f8('0x3d')][_0x94f8('0xb5')](_0x94f8('0xe9'));}if(!this[_0x94f8('0x84')](_0x4b311a[_0x94f8('0xea')])){return this[_0x94f8('0x3d')][_0x94f8('0xb5')](_0x94f8('0xeb'));}if(!this['isConfigured'](_0x4b311a[_0x94f8('0xec')])){return this[_0x94f8('0x3d')][_0x94f8('0xb5')](_0x94f8('0xed'));}if(!this['isConfigured'](_0x4b311a[_0x94f8('0xee')])){return this[_0x94f8('0x3d')]['noop'](_0x94f8('0xbc'));}this[_0x94f8('0x3d')][_0x94f8('0xef')]=!![];this[_0x94f8('0x39')](_0x4b311a);this[_0x94f8('0x46')](_0x4b311a[_0x94f8('0x62')],'in');this[_0x94f8('0x3d')][_0x94f8('0xb5')](util[_0x94f8('0x9f')]('Trying\x20SestekNDA:\x20%s',_0x4b311a[_0x94f8('0x62')]));var _0x26998c=this[_0x94f8('0x81')][_0x94f8('0x74')](this,_0x4b311a);if(_0x26998c){for(var _0x2e8671 in _0x26998c){if(_0x26998c[_0x94f8('0x96')](_0x2e8671)){this[_0x94f8('0x3d')][_0x94f8('0xd5')](util[_0x94f8('0x9f')](_0x94f8('0xf0'),_0x2e8671[_0x94f8('0xf1')]()),_0x26998c[_0x2e8671]);}}this[_0x94f8('0x46')](_0x26998c['speech'],_0x94f8('0xf2'));if(_0x26998c[_0x94f8('0xf3')]){this[_0x94f8('0x3d')]['noop'](util[_0x94f8('0x9f')](_0x94f8('0xf4'),_0x26998c['audiofile']));var _0x54e838=this[_0x94f8('0x3d')][_0x94f8('0xf5')](_0x26998c[_0x94f8('0xf3')]);try{fs[_0x94f8('0xf6')](_0x26998c[_0x94f8('0xf3')]+_0x94f8('0xf7'));}catch(_0x49b1b8){logger['error'](_0x49b1b8);}return _0x54e838;}else{return this[_0x94f8('0x3d')][_0x94f8('0xb5')](util[_0x94f8('0x9f')](_0x94f8('0xf8'),_0x26998c['speech']));}}return this[_0x94f8('0x3d')]['error'](_0x4b311a,_0x94f8('0xf9'));};AGIVertices[_0x94f8('0x15')][_0x94f8('0xfa')]=function(_0x1807eb){logger[_0x94f8('0x33')](util[_0x94f8('0x9f')](_0x94f8('0xfb'),_0x1807eb['label']));return this[_0x94f8('0x3d')][_0x94f8('0xb5')](_0x94f8('0xfa'));};AGIVertices[_0x94f8('0x15')]['ext_dial']=function(_0x18e129){logger[_0x94f8('0x33')](util['format'](_0x94f8('0xfc'),_0x18e129[_0x94f8('0x3b')]));var _0xddcd5='';if(_0x18e129[_0x94f8('0xfd')]){if(!this[_0x94f8('0x84')](_0x18e129['trunk_id'])){return this['channel']['error'](_0x18e129,_0x94f8('0xfe'));}else{var _0x3d1f38=parseInt(_0x18e129['trunk_id'],0xa);if(isNaN(_0x3d1f38)){_0xddcd5=_0x18e129[_0x94f8('0xfd')];}else{_0xddcd5=this['getTrunk'][_0x94f8('0x74')](this,_0x18e129[_0x94f8('0xfd')]);if(!_0xddcd5){return this[_0x94f8('0x3d')][_0x94f8('0x2e')](_0x18e129,_0x94f8('0xff'));}}}}else if(_0x18e129['trunk_name']){_0xddcd5=_0x18e129[_0x94f8('0x100')];}else{return this[_0x94f8('0x3d')][_0x94f8('0x2e')](_0x18e129,_0x94f8('0xfe'));}var _0x556b6d=this['channel'][_0x94f8('0xb3')](_0x94f8('0xdc'),[util[_0x94f8('0x9f')](_0x94f8('0x101'),_0xddcd5,_0x18e129['phone']),_0x18e129[_0x94f8('0x6b')],_0x18e129[_0x94f8('0xde')],_0x18e129['url']]);if(_0x556b6d[_0x94f8('0xa5')]===-0x1){return _0x556b6d;}return this[_0x94f8('0x3d')][_0x94f8('0xb5')](util[_0x94f8('0x9f')](_0x94f8('0x102'),_0x94f8('0xdc')));};AGIVertices[_0x94f8('0x15')][_0x94f8('0x103')]=function(_0x24abe2){logger['info'](util[_0x94f8('0x9f')](_0x94f8('0x104'),_0x24abe2['label']));return this[_0x94f8('0x3d')][_0x94f8('0xb5')]('finally');};AGIVertices[_0x94f8('0x15')]['getdigits']=function(_0x4fcd2b){logger[_0x94f8('0x33')](util[_0x94f8('0x9f')](_0x94f8('0x105'),_0x4fcd2b[_0x94f8('0x3b')]));if(_0x4fcd2b['retry']===0x0){return this[_0x94f8('0xa6')](_0x4fcd2b);}_0x4fcd2b[_0x94f8('0xa7')]-=0x1;if(!this[_0x94f8('0x84')](_0x4fcd2b[_0x94f8('0x106')])){return this[_0x94f8('0x3d')][_0x94f8('0x2e')](_0x4fcd2b,_0x94f8('0x107'));}var _0x3328b1=this[_0x94f8('0x1e')][_0x94f8('0x74')](this,_0x4fcd2b[_0x94f8('0x106')]);if(!_0x3328b1){return this[_0x94f8('0x3d')][_0x94f8('0x2e')](_0x4fcd2b,_0x94f8('0x108'));}if(!this[_0x94f8('0x84')](_0x4fcd2b['variable_id'])){return this[_0x94f8('0x3d')][_0x94f8('0x2e')]('no\x20variable\x20selected\x20for\x20the\x20result');}var _0x27dbc3=this[_0x94f8('0x3d')][_0x94f8('0x109')](_0x3328b1,_0x4fcd2b[_0x94f8('0x10a')],_0x4fcd2b[_0x94f8('0x10b')]);var _0x175c7d=_0x27dbc3['result']?_0x27dbc3[_0x94f8('0xa5')]['toString']():'';logger['info'](_0x94f8('0x10c'),JSON[_0x94f8('0x78')](_0x27dbc3));if(_0x27dbc3['result']===-0x1){this[_0x94f8('0x39')][_0x94f8('0x74')](this,_0x4fcd2b,_0x175c7d);return _0x27dbc3;}else if(_0x27dbc3[_0x94f8('0xa3')]===_0x94f8('0x6b')){_0x27dbc3['result']=_0x175c7d[_0x94f8('0x9d')]>=parseInt(_0x4fcd2b[_0x94f8('0x10d')])?'x':'i';}else{_0x27dbc3[_0x94f8('0xa5')]=_0x175c7d[_0x94f8('0x9d')]>=parseInt(_0x4fcd2b[_0x94f8('0x10d')])&&_0x175c7d[_0x94f8('0x9d')]<=parseInt(_0x4fcd2b[_0x94f8('0x10b')])?'x':'i';}var _0x22ae9a=this[_0x94f8('0x10')]['sync'](this,_0x4fcd2b[_0x94f8('0xd1')]);if(!_0x22ae9a){return this[_0x94f8('0x3d')][_0x94f8('0x2e')](_0x4fcd2b,_0x94f8('0xd3'));}this[_0x94f8('0x3d')]['setVariable'](_0x22ae9a,_0x175c7d);if(this[_0x94f8('0x84')](_0x4fcd2b[_0x94f8('0x10e')])){var _0x84134f=parseInt(_0x4fcd2b[_0x94f8('0x10e')],0xa);var _0x163a96=rs[_0x94f8('0x10f')]({'charset':'*','length':_0x84134f});var _0x22be34=_0x175c7d[_0x94f8('0x9d')];if(_0x22be34>0x0){if(_0x22be34>_0x84134f){this[_0x94f8('0x39')][_0x94f8('0x74')](this,_0x4fcd2b,_0x4fcd2b[_0x94f8('0x110')]===_0x94f8('0x111')?_0x163a96+_0x175c7d[_0x94f8('0x112')](_0x84134f):_0x175c7d[_0x94f8('0x112')](0x0,_0x22be34-_0x84134f)+_0x163a96);}else{this[_0x94f8('0x39')][_0x94f8('0x74')](this,_0x4fcd2b,rs[_0x94f8('0x10f')]({'charset':'*','length':_0x22be34}));}}else{this['createSquareDetailsReport']['sync'](this,_0x4fcd2b,'');}}else{this[_0x94f8('0x39')][_0x94f8('0x74')](this,_0x4fcd2b,_0x175c7d);}return _0x27dbc3;};AGIVertices[_0x94f8('0x15')][_0x94f8('0xe')]=function(_0x2d8425){logger[_0x94f8('0x33')](util[_0x94f8('0x9f')](_0x94f8('0x113'),_0x2d8425['label']));return this[_0x94f8('0xd')](_0x2d8425);};AGIVertices[_0x94f8('0x15')][_0x94f8('0x114')]=function(_0x3fb3e3){logger[_0x94f8('0x33')](util[_0x94f8('0x9f')](_0x94f8('0x115'),_0x3fb3e3[_0x94f8('0x3b')]));this[_0x94f8('0x39')]['sync'](this,_0x3fb3e3,_0x3fb3e3[_0x94f8('0x116')]);return this[_0x94f8('0x3d')][_0x94f8('0xb5')](util['format'](_0x94f8('0x117'),_0x3fb3e3[_0x94f8('0x116')]));};AGIVertices[_0x94f8('0x15')][_0x94f8('0x118')]=function(_0x188663){logger[_0x94f8('0x33')](util[_0x94f8('0x9f')](_0x94f8('0x119'),_0x188663[_0x94f8('0x3b')]));if(!this[_0x94f8('0x84')](_0x188663[_0x94f8('0x87')])||!this[_0x94f8('0x84')](_0x188663[_0x94f8('0x88')])){return this['channel']['noop'](_0x94f8('0x11a'));}if(!this[_0x94f8('0x84')](_0x188663[_0x94f8('0x62')])){return this[_0x94f8('0x3d')][_0x94f8('0xb5')](_0x94f8('0xbc'));}this['channel'][_0x94f8('0xb5')](util[_0x94f8('0x9f')](_0x94f8('0x11b'),_0x188663[_0x94f8('0x62')]));var _0x29cb0e=this['awsPolly'][_0x94f8('0x74')](this,_0x188663);if(_0x29cb0e){this['channel'][_0x94f8('0xb5')](util[_0x94f8('0x9f')]('aws\x20Polly\x20%s\x20file\x20created',_0x29cb0e));var _0x1d406f=this[_0x94f8('0x3d')]['streamFile'](_0x29cb0e);try{fs['unlink'](_0x29cb0e+_0x94f8('0xf7'));}catch(_0x538da0){logger[_0x94f8('0x2e')](_0x538da0);}return _0x1d406f;}return this[_0x94f8('0x3d')][_0x94f8('0x2e')](_0x188663,_0x94f8('0x11c'));};AGIVertices[_0x94f8('0x15')][_0x94f8('0x11d')]=function(_0x32b5a8){logger[_0x94f8('0x33')](util[_0x94f8('0x9f')](_0x94f8('0x11e'),_0x32b5a8[_0x94f8('0x3b')]));if(!this[_0x94f8('0x84')](_0x32b5a8[_0x94f8('0x87')])||!this['isConfigured'](_0x32b5a8[_0x94f8('0x88')])){return this['channel']['noop'](_0x94f8('0x11a'));}if(!this[_0x94f8('0x84')](_0x32b5a8[_0x94f8('0x11f')])){return this[_0x94f8('0x3d')][_0x94f8('0xb5')](_0x94f8('0x120'));}if(!this[_0x94f8('0x84')](_0x32b5a8['text'])){return this[_0x94f8('0x3d')][_0x94f8('0xb5')](_0x94f8('0xbc'));}this[_0x94f8('0x3d')][_0x94f8('0xef')]=!![];this[_0x94f8('0x39')](_0x32b5a8);this[_0x94f8('0x46')](_0x32b5a8[_0x94f8('0x62')],'in');this[_0x94f8('0x3d')][_0x94f8('0xb5')](util[_0x94f8('0x9f')](_0x94f8('0x121'),_0x32b5a8[_0x94f8('0x62')]));var _0x5de58c=this[_0x94f8('0x8c')][_0x94f8('0x74')](this,_0x32b5a8);if(_0x5de58c){for(var _0x399579 in _0x5de58c){if(_0x5de58c['hasOwnProperty'](_0x399579)&&_[_0x94f8('0x97')](_0x5de58c[_0x399579])){this[_0x94f8('0x3d')][_0x94f8('0xd5')](util[_0x94f8('0x9f')](_0x94f8('0x122'),_0x399579[_0x94f8('0xf1')]()),_0x5de58c[_0x399579]);}}if(_[_0x94f8('0x49')](_0x5de58c[_0x94f8('0x123')])){return this['channel'][_0x94f8('0xb5')]('Amazon\x20Lex\x20ready\x20for\x20fulfillment');}else{this[_0x94f8('0x46')](_0x5de58c[_0x94f8('0x123')],_0x94f8('0xf2'));return this[_0x94f8('0x3d')]['noop'](util[_0x94f8('0x9f')](_0x94f8('0x124'),_0x5de58c[_0x94f8('0x123')]));}}return this[_0x94f8('0x3d')][_0x94f8('0x2e')](_0x32b5a8,_0x94f8('0x125'));};AGIVertices[_0x94f8('0x15')]['googleasr']=function(_0x292d09){logger[_0x94f8('0x33')](util['format'](_0x94f8('0x126'),_0x292d09[_0x94f8('0x3b')],_0x292d09[_0x94f8('0x6b')]));if(!this[_0x94f8('0x84')](_0x292d09[_0x94f8('0x7f')])){return this['channel'][_0x94f8('0xb5')](_0x94f8('0xe0'));}var _0x59479b='wav';var _0x130412=util[_0x94f8('0x9f')](_0x94f8('0x127'),FILES_PATH,rs[_0x94f8('0x10f')](0x4));var _0x4636c7=util[_0x94f8('0x9f')](_0x94f8('0xa0'),_0x130412,_0x59479b);var _0x3133d3=!![];if(_0x292d09['beep']===_0x94f8('0x128')){_0x3133d3=![];}var _0x3bb089=this[_0x94f8('0x3d')][_0x94f8('0x129')](_0x130412,_0x59479b,_0x292d09[_0x94f8('0x12a')],_0x292d09[_0x94f8('0x6b')],undefined,_0x3133d3);if(_0x3bb089['result']!==-0x1){this[_0x94f8('0x3d')][_0x94f8('0xb5')](util[_0x94f8('0x9f')](_0x94f8('0x12b'),_0x4636c7));var _0x2f1157=this[_0x94f8('0x8e')][_0x94f8('0x74')](this,_0x292d09,_0x4636c7);if(_0x2f1157){for(var _0x3baa7f in _0x2f1157){if(_0x2f1157[_0x94f8('0x96')](_0x3baa7f)){this['channel'][_0x94f8('0xd5')](util[_0x94f8('0x9f')](_0x94f8('0x12c'),_0x3baa7f[_0x94f8('0xf1')]()),_0x2f1157[_0x3baa7f]);}}return this[_0x94f8('0x3d')]['noop'](util[_0x94f8('0x9f')](_0x94f8('0x12d'),JSON['stringify'](_0x2f1157)));}}return _0x3bb089;};AGIVertices[_0x94f8('0x15')]['tildeasr']=function(_0x21a680){logger[_0x94f8('0x33')](util['format'](_0x94f8('0x12e'),_0x21a680[_0x94f8('0x3b')]));if(!this[_0x94f8('0x84')](_0x21a680[_0x94f8('0x91')])){return this['channel']['noop'](_0x94f8('0x12f'));}if(!this[_0x94f8('0x84')](_0x21a680[_0x94f8('0x92')])){return this['channel'][_0x94f8('0xb5')]('no\x20appsecret\x20configured');}var _0x4bb510=_0x94f8('0x130');var _0x1c38f3=util[_0x94f8('0x9f')](_0x94f8('0x127'),FILES_PATH,rs[_0x94f8('0x10f')](0x4));var _0x4b5d89=util[_0x94f8('0x9f')](_0x94f8('0xa0'),_0x1c38f3,_0x4bb510);var _0x24b00d=!![];if(_0x21a680[_0x94f8('0x131')]===_0x94f8('0x128')){_0x24b00d=![];}var _0x7b8429=this[_0x94f8('0x3d')][_0x94f8('0x129')](_0x1c38f3,_0x4bb510,_0x21a680['intKey'],_0x21a680[_0x94f8('0x6b')],undefined,_0x24b00d);if(_0x7b8429[_0x94f8('0xa5')]!==-0x1){this[_0x94f8('0x3d')]['noop'](util[_0x94f8('0x9f')](_0x94f8('0x132'),_0x4b5d89));var _0x3a3a0e=this[_0x94f8('0x90')][_0x94f8('0x74')](this,_0x21a680,_0x4b5d89);if(_0x3a3a0e){for(var _0x56f2fd in _0x3a3a0e){if(_0x3a3a0e[_0x94f8('0x96')](_0x56f2fd)){this[_0x94f8('0x3d')]['setVariable'](util[_0x94f8('0x9f')](_0x94f8('0x133'),_0x56f2fd['toUpperCase']()),_0x3a3a0e[_0x56f2fd]);}}return this[_0x94f8('0x3d')][_0x94f8('0xb5')](util['format'](_0x94f8('0x134'),JSON[_0x94f8('0x78')](_0x3a3a0e)));}}return _0x7b8429;};AGIVertices['prototype'][_0x94f8('0x135')]=function(_0x509832){logger[_0x94f8('0x33')](util['format'](_0x94f8('0x136'),_0x509832[_0x94f8('0x3b')]));return this[_0x94f8('0x3d')][_0x94f8('0x137')](_0x509832['context'],_0x509832[_0x94f8('0x41')],_0x509832[_0x94f8('0x42')]);};AGIVertices[_0x94f8('0x15')][_0x94f8('0x138')]=function(_0x1cad54){logger['info'](util[_0x94f8('0x9f')](_0x94f8('0x139'),_0x1cad54[_0x94f8('0x3b')]));if(!this[_0x94f8('0x84')](_0x1cad54[_0x94f8('0x13a')])){return this[_0x94f8('0x3d')][_0x94f8('0x2e')](_0x1cad54,_0x94f8('0x13b'));}try{var _0xc392a3=eval(_0x1cad54[_0x94f8('0x13a')])?_0x94f8('0x13c'):_0x94f8('0x13d');this[_0x94f8('0x3d')]['noop'](util[_0x94f8('0x9f')](_0x94f8('0x13e'),_0x1cad54[_0x94f8('0x13a')],_0xc392a3));return{'code':0xc8,'result':_0xc392a3};}catch(_0x3ae360){return{'code':0xc8,'result':_0x94f8('0x13d')};}};AGIVertices['prototype'][_0x94f8('0x13f')]=function(_0x37bad3){logger[_0x94f8('0x33')](util['format'](_0x94f8('0x140'),_0x37bad3[_0x94f8('0x3b')]));if(!this[_0x94f8('0x84')](_0x37bad3[_0x94f8('0x141')])){return this['channel'][_0x94f8('0x2e')](_0x37bad3,_0x94f8('0x142'));}var _0xee0b82=this[_0x94f8('0x25')][_0x94f8('0x74')](this,_0x37bad3[_0x94f8('0x141')]);if(!_0xee0b82){return this[_0x94f8('0x3d')][_0x94f8('0x2e')](_0x37bad3,_0x94f8('0x143'));}for(var _0x452e8c=0x0;_0x452e8c<_0xee0b82[_0x94f8('0x9d')];_0x452e8c+=0x1){var _0x1b51fd=this['channel'][_0x94f8('0x10')](util[_0x94f8('0x9f')](_0x94f8('0x144'),_0xee0b82[_0x452e8c]));if(_0x1b51fd[_0x94f8('0xa5')]===-0x1){return _0x1b51fd;}logger[_0x94f8('0x33')](util[_0x94f8('0x9f')](_0x94f8('0x145'),_0xee0b82[_0x452e8c],_0x1b51fd[_0x94f8('0xa3')]));if(_0x1b51fd[_0x94f8('0xa3')]===_0x94f8('0x13c')){logger[_0x94f8('0x33')](util[_0x94f8('0x9f')](_0x94f8('0x145'),_0xee0b82[_0x452e8c],_0x94f8('0x13c')));this[_0x94f8('0x3d')][_0x94f8('0xb5')](util['format'](_0x94f8('0x145'),_0xee0b82[_0x452e8c],_0x94f8('0x13c')));return{'code':0xc8,'result':_0x94f8('0x13c')};}else{logger[_0x94f8('0x33')](util[_0x94f8('0x9f')](_0x94f8('0x145'),_0xee0b82[_0x452e8c],'false'));this[_0x94f8('0x3d')][_0x94f8('0xb5')](util[_0x94f8('0x9f')](_0x94f8('0x145'),_0xee0b82[_0x452e8c],'false'));}}return{'code':0xc8,'result':_0x94f8('0x13d')};};AGIVertices[_0x94f8('0x15')][_0x94f8('0x146')]=function(_0x15656d){logger[_0x94f8('0x33')](util[_0x94f8('0x9f')](_0x94f8('0x147'),_0x15656d[_0x94f8('0x3b')]));return this[_0x94f8('0x3d')]['hangup']();};AGIVertices[_0x94f8('0x15')][_0x94f8('0x148')]=function(_0xa33676){logger[_0x94f8('0x33')](util[_0x94f8('0x9f')]('Enter\x20in\x20ISPEECHASR\x20(%s)\x20block',_0xa33676[_0x94f8('0x3b')]));if(!this['isConfigured'](_0xa33676['key'])){return this['channel']['noop'](_0x94f8('0xe0'));}var _0x3137a0='wav';var _0x940b9d=util[_0x94f8('0x9f')](_0x94f8('0x127'),FILES_PATH,rs['generate'](0x4));var _0x193562=util[_0x94f8('0x9f')](_0x94f8('0xa0'),_0x940b9d,_0x3137a0);var _0x3a84ca=!![];if(_0xa33676[_0x94f8('0x131')]==='NOBEEP'){_0x3a84ca=![];}var _0x138d47=this[_0x94f8('0x3d')][_0x94f8('0x129')](_0x940b9d,_0x3137a0,_0xa33676[_0x94f8('0x12a')],_0xa33676[_0x94f8('0x6b')],undefined,_0x3a84ca);if(_0x138d47[_0x94f8('0xa5')]!==-0x1){this[_0x94f8('0x3d')]['noop'](util[_0x94f8('0x9f')](_0x94f8('0x149'),_0x193562));var _0x2939bf=this['ispeechASR'][_0x94f8('0x74')](this,_0xa33676,_0x193562);if(_0x2939bf){for(var _0x34d91c in _0x2939bf){if(_0x2939bf[_0x94f8('0x96')](_0x34d91c)){this[_0x94f8('0x3d')][_0x94f8('0xd5')](util[_0x94f8('0x9f')](_0x94f8('0x14a'),_0x34d91c[_0x94f8('0xf1')]()),_0x2939bf[_0x34d91c]);}}return this['channel']['noop'](util[_0x94f8('0x9f')](_0x94f8('0x14b'),JSON[_0x94f8('0x78')](_0x2939bf)));}}return _0x138d47;};AGIVertices[_0x94f8('0x15')][_0x94f8('0x14c')]=function(_0x1ec537){logger[_0x94f8('0x33')](util[_0x94f8('0x9f')]('Enter\x20in\x20ISPEECHTTS\x20(%s)\x20block',_0x1ec537[_0x94f8('0x3b')]));if(!this['isConfigured'](_0x1ec537['key'])){return this['channel'][_0x94f8('0xb5')](_0x94f8('0xe0'));}if(!this[_0x94f8('0x84')](_0x1ec537[_0x94f8('0x62')])){return this[_0x94f8('0x3d')]['noop'](_0x94f8('0xbc'));}this[_0x94f8('0x3d')][_0x94f8('0xb5')](util[_0x94f8('0x9f')](_0x94f8('0x14d'),_0x1ec537[_0x94f8('0x62')]));var _0x4d6296=this[_0x94f8('0x82')][_0x94f8('0x74')](this,_0x1ec537);if(_0x4d6296){this[_0x94f8('0x3d')]['noop'](util['format'](_0x94f8('0x149'),_0x4d6296));var _0x198d63=this[_0x94f8('0x3d')][_0x94f8('0xf5')](_0x4d6296,_0x1ec537[_0x94f8('0x12a')]);try{fs[_0x94f8('0xf6')](_0x4d6296+'.wav');}catch(_0x19f949){logger['error'](_0x19f949);}return _0x198d63;}return this[_0x94f8('0x3d')][_0x94f8('0x2e')](_0x1ec537,_0x94f8('0x14e'));};AGIVertices['prototype'][_0x94f8('0x14f')]=function(_0x309a60){logger['info'](util['format'](_0x94f8('0x150'),_0x309a60[_0x94f8('0x3b')]));if(!this[_0x94f8('0x84')](_0x309a60[_0x94f8('0x151')])){return this[_0x94f8('0x3d')]['error'](_0x309a60,_0x94f8('0x152'));}logger['info'](util[_0x94f8('0x9f')](_0x94f8('0x153'),this[_0x94f8('0x3d')][_0x94f8('0x3e')],_0x309a60['findBy']));var _0x242696=this[_0x94f8('0x59')][_0x94f8('0x74')](this,_0x309a60[_0x94f8('0x151')]);if(_0x242696){logger['info'](util[_0x94f8('0x9f')]('AGENT\x20%s\x20FOUND\x20BY',this['channel'][_0x94f8('0x3e')],_0x309a60[_0x94f8('0x151')]));this[_0x94f8('0x3d')][_0x94f8('0xb5')](util[_0x94f8('0x9f')](_0x94f8('0x154'),this[_0x94f8('0x3d')][_0x94f8('0x3e')],_0x309a60['findBy']));return{'code':0xc8,'result':_0x94f8('0x155')};}else{logger[_0x94f8('0x33')](util[_0x94f8('0x9f')](_0x94f8('0x156'),this['channel'][_0x94f8('0x3e')],_0x309a60['findBy']));this[_0x94f8('0x3d')][_0x94f8('0xb5')](util['format'](_0x94f8('0x156'),this[_0x94f8('0x3d')][_0x94f8('0x3e')],_0x309a60[_0x94f8('0x151')]));return{'code':0xc8,'result':_0x94f8('0x157')};}};AGIVertices['prototype'][_0x94f8('0x158')]=function(_0x3a68f1){logger['info'](util[_0x94f8('0x9f')](_0x94f8('0x159'),_0x3a68f1[_0x94f8('0x3b')]));if(!this[_0x94f8('0x84')](_0x3a68f1[_0x94f8('0x151')])){return this['channel'][_0x94f8('0x2e')](_0x3a68f1,_0x94f8('0x152'));}logger[_0x94f8('0x33')](util[_0x94f8('0x9f')](_0x94f8('0x153'),this[_0x94f8('0x3d')]['callerid'],_0x3a68f1[_0x94f8('0x151')]));var _0x1c0132=this[_0x94f8('0x58')][_0x94f8('0x74')](this,_0x3a68f1[_0x94f8('0x151')]);if(_0x1c0132){logger[_0x94f8('0x33')](util[_0x94f8('0x9f')]('AGENT\x20%s\x20FOUND\x20BY',this[_0x94f8('0x3d')][_0x94f8('0x3e')],_0x3a68f1['findBy']));this[_0x94f8('0x3d')][_0x94f8('0xb5')](util['format']('AGENT\x20%s\x20FOUND\x20BY',this['channel']['callerid'],_0x3a68f1[_0x94f8('0x151')]));return{'code':0xc8,'result':_0x94f8('0x155')};}else{logger[_0x94f8('0x33')](util[_0x94f8('0x9f')](_0x94f8('0x156'),this['channel']['callerid'],_0x3a68f1[_0x94f8('0x151')]));this[_0x94f8('0x3d')][_0x94f8('0xb5')](util[_0x94f8('0x9f')](_0x94f8('0x156'),this[_0x94f8('0x3d')]['callerid'],_0x3a68f1[_0x94f8('0x151')]));return{'code':0xc8,'result':_0x94f8('0x157')};}};AGIVertices[_0x94f8('0x15')][_0x94f8('0x15a')]=function(_0x41dd72){logger[_0x94f8('0x33')](util[_0x94f8('0x9f')](_0x94f8('0x15b'),_0x41dd72['label']));if(!this['isConfigured'](_0x41dd72[_0x94f8('0x15c')])){return this['channel'][_0x94f8('0x2e')](_0x41dd72,_0x94f8('0x15d'));}this['channel'][_0x94f8('0xb5')](util[_0x94f8('0x9f')](_0x94f8('0x15e'),_0x41dd72['operation']));var _0x34db4e=eval(_0x41dd72[_0x94f8('0x15c')]);if(!this[_0x94f8('0x84')](_0x41dd72[_0x94f8('0xd1')])){return this['channel']['noop'](_0x94f8('0xd2'));}var _0x345058=this[_0x94f8('0x10')][_0x94f8('0x74')](this,_0x41dd72['variable_id']);if(!_0x345058){return this[_0x94f8('0x3d')][_0x94f8('0x2e')](_0x41dd72,_0x94f8('0xd3'));}if(_[_0x94f8('0x9c')](_0x34db4e)){var _0x20eae3=this;_0x34db4e[_0x94f8('0xd4')](function(_0x15958e,_0x4ab849){_0x20eae3[_0x94f8('0x3d')][_0x94f8('0xd5')](util['format'](_0x94f8('0x15f'),_0x345058,_0x4ab849),_0x15958e);});return this[_0x94f8('0x3d')][_0x94f8('0xb5')](util['format'](_0x94f8('0x160'),_0x345058));}else{return this[_0x94f8('0x3d')]['setVariable'](_0x345058,_0x34db4e);}};AGIVertices[_0x94f8('0x15')]['menu']=function(_0x58990b){logger['info'](util['format'](_0x94f8('0x161'),_0x58990b[_0x94f8('0x3b')]));if(_0x58990b[_0x94f8('0xa7')]===0x0){return this[_0x94f8('0xa6')](_0x58990b);}_0x58990b[_0x94f8('0xa7')]-=0x1;if(!this[_0x94f8('0x84')](_0x58990b[_0x94f8('0x106')])){return this[_0x94f8('0x3d')][_0x94f8('0x2e')](_0x58990b,_0x94f8('0x107'));}var _0xf77a13=this['getSound']['sync'](this,_0x58990b[_0x94f8('0x106')]);if(!_0xf77a13){return this[_0x94f8('0x3d')]['error'](_0x58990b,_0x94f8('0x108'));}var _0x9670cf=this[_0x94f8('0x3d')][_0x94f8('0x109')](_0xf77a13,_0x58990b[_0x94f8('0x10a')],_0x58990b[_0x94f8('0x162')]);var _0x52e85a=_0x9670cf[_0x94f8('0xa5')];if(_0x9670cf['result']===-0x1){this[_0x94f8('0x39')][_0x94f8('0x74')](this,_0x58990b,'-1');return _0x9670cf;}else if(_0x9670cf[_0x94f8('0xa3')]===_0x94f8('0x6b')){_0x9670cf[_0x94f8('0xa5')]=_0x9670cf[_0x94f8('0xa5')]['length']>0x0?_0x9670cf['result']:'t';}else if(_['isEmpty'](_0x9670cf[_0x94f8('0xa5')])){_0x9670cf[_0x94f8('0xa5')]='#';_0x52e85a='#';}if(!this[_0x94f8('0x84')](_0x58990b['variable_id'])){this['channel'][_0x94f8('0xb5')]('no\x20variable\x20selected\x20for\x20the\x20result');}else{var _0xceaaa4=this[_0x94f8('0x10')][_0x94f8('0x74')](this,_0x58990b[_0x94f8('0xd1')]);if(!_0xceaaa4){return this[_0x94f8('0x3d')][_0x94f8('0x2e')](_0x58990b,_0x94f8('0xd3'));}this[_0x94f8('0x3d')][_0x94f8('0xd5')](_0xceaaa4,_0x52e85a);}this[_0x94f8('0x39')]['sync'](this,_0x58990b,_0x52e85a);return _0x9670cf;};AGIVertices[_0x94f8('0x15')]['noop']=function(_0x3c6af4){logger[_0x94f8('0x33')](util[_0x94f8('0x9f')](_0x94f8('0x163'),_0x3c6af4[_0x94f8('0x3b')]));return this[_0x94f8('0x3d')]['noop'](_0x3c6af4[_0x94f8('0x164')]||_0x3c6af4['label']);};AGIVertices[_0x94f8('0x15')][_0x94f8('0x165')]=function(_0x2a6da8){logger['info'](util['format'](_0x94f8('0x166'),_0x2a6da8[_0x94f8('0x3b')]));if(!this['isConfigured'](_0x2a6da8[_0x94f8('0x151')])){return this['channel'][_0x94f8('0x2e')](_0x2a6da8,_0x94f8('0x152'));}logger[_0x94f8('0x33')](util[_0x94f8('0x9f')]('FIND\x20AGENT\x20%s\x20BY\x20%s',this['channel'][_0x94f8('0x3e')],_0x2a6da8[_0x94f8('0x151')]));var _0x42f1ff=this[_0x94f8('0x53')][_0x94f8('0x74')](this,_0x2a6da8[_0x94f8('0x167')]);var _0x45d027=this[_0x94f8('0x55')][_0x94f8('0x74')](this,_0x2a6da8['findBy'],_0x42f1ff);if(_0x45d027){logger[_0x94f8('0x33')](util['format'](_0x94f8('0x154'),this[_0x94f8('0x3d')]['callerid'],_0x2a6da8[_0x94f8('0x151')]));this[_0x94f8('0x3d')][_0x94f8('0xb5')](util[_0x94f8('0x9f')](_0x94f8('0x154'),this[_0x94f8('0x3d')][_0x94f8('0x3e')],_0x2a6da8[_0x94f8('0x151')]));return{'code':0xc8,'result':_0x94f8('0x155')};}else{logger['info'](util[_0x94f8('0x9f')]('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this[_0x94f8('0x3d')][_0x94f8('0x3e')],_0x2a6da8['findBy']));this[_0x94f8('0x3d')][_0x94f8('0xb5')](util[_0x94f8('0x9f')](_0x94f8('0x154'),this['channel'][_0x94f8('0x3e')],_0x2a6da8[_0x94f8('0x151')]));return{'code':0xc8,'result':_0x94f8('0x157')};}};AGIVertices[_0x94f8('0x15')]['playback']=function(_0x4d15d9){logger[_0x94f8('0x33')](util[_0x94f8('0x9f')]('Enter\x20in\x20PLAYBACK\x20(%s)\x20block',_0x4d15d9['label']));if(!this[_0x94f8('0x84')](_0x4d15d9[_0x94f8('0x106')])){return this['channel'][_0x94f8('0x2e')](_0x4d15d9,_0x94f8('0x107'));}var _0x5cc0fa=this['getSound']['sync'](this,_0x4d15d9['file_id']);if(!_0x5cc0fa){return this[_0x94f8('0x3d')][_0x94f8('0x2e')](_0x4d15d9,_0x94f8('0x108'));}var _0x513d3f=this[_0x94f8('0x3d')][_0x94f8('0xb3')](_0x94f8('0x168'),[_0x5cc0fa,_0x4d15d9[_0x94f8('0xde')]]);if(_0x513d3f[_0x94f8('0xa5')]===-0x1){return _0x513d3f;}return this[_0x94f8('0x3d')]['noop'](util[_0x94f8('0x9f')](_0x94f8('0xb6'),_0x94f8('0x168'),_0x5cc0fa));};AGIVertices[_0x94f8('0x15')][_0x94f8('0x169')]=function(_0x12bfe4){logger[_0x94f8('0x33')](util[_0x94f8('0x9f')](_0x94f8('0x16a'),_0x12bfe4[_0x94f8('0x3b')]));if(!this[_0x94f8('0x84')](_0x12bfe4['queue_id'])){return this[_0x94f8('0x3d')][_0x94f8('0x2e')](_0x12bfe4,_0x94f8('0x16b'));}var _0x53b37e='';var _0xb75808=parseInt(_0x12bfe4[_0x94f8('0x16c')],0xa);if(isNaN(_0xb75808)){_0x53b37e=_0x12bfe4['queue_id'];}else{_0x53b37e=this[_0x94f8('0x16')][_0x94f8('0x74')](this,_0x12bfe4['queue_id']);if(!_0x53b37e){return this[_0x94f8('0x3d')][_0x94f8('0x2e')](_0x12bfe4,_0x94f8('0x16d'));}}var _0x10ddaa='';if(this['isConfigured'](_0x12bfe4['file_id'])){var _0x1a58f2=this[_0x94f8('0x1e')][_0x94f8('0x74')](this,_0x12bfe4['file_id']);if(_0x1a58f2){_0x10ddaa=_0x1a58f2;}}this[_0x94f8('0x39')][_0x94f8('0x74')](this,_0x12bfe4,_0x53b37e);if(_0x12bfe4['opts']['indexOf']('x')<0x0){_0x12bfe4[_0x94f8('0xde')]+='x';}if(_0x12bfe4[_0x94f8('0xde')][_0x94f8('0x16e')]('X')<0x0){_0x12bfe4[_0x94f8('0xde')]+='X';}this['channel'][_0x94f8('0xd5')](_0x94f8('0x16f'),_0x53b37e?_0x53b37e['toLowerCase']():'');var _0x1b13b9=this[_0x94f8('0x3d')][_0x94f8('0xb3')](_0x94f8('0x170'),[_0x53b37e,_0x12bfe4[_0x94f8('0xde')],_0x12bfe4[_0x94f8('0x6a')],_0x10ddaa,_0x12bfe4[_0x94f8('0x6b')],_0x12bfe4[_0x94f8('0x7')],_0x12bfe4[_0x94f8('0x171')],_0x12bfe4[_0x94f8('0x172')],'',_0x12bfe4[_0x94f8('0x173')]]);if(_0x1b13b9[_0x94f8('0xa5')]===-0x1){return _0x1b13b9;}return this[_0x94f8('0x3d')][_0x94f8('0xb5')](util[_0x94f8('0x9f')](_0x94f8('0xb6'),'QUEUE',_0x53b37e));};AGIVertices[_0x94f8('0x15')][_0x94f8('0x174')]=function(_0x520006){logger['info'](util[_0x94f8('0x9f')]('Enter\x20in\x20RECORD\x20(%s)\x20block',_0x520006[_0x94f8('0x3b')]));var _0x39b817=_0x520006[_0x94f8('0x175')]||'wav';var _0x4207da=util['format'](_0x94f8('0x176'),this[_0x94f8('0x3d')][_0x94f8('0x3a')],rs[_0x94f8('0x10f')](0x5));var _0x4ab7cc=util[_0x94f8('0x9f')](_0x94f8('0x177'),FILES_PATH,_0x4207da,_0x39b817);var _0x5f107e=util[_0x94f8('0x9f')](_0x94f8('0x127'),FILES_PATH,_0x4207da);this[_0x94f8('0x3f')][_0x94f8('0x74')](this,_0x520006,_0x4207da,_0x4ab7cc);this['channel'][_0x94f8('0xd5')](_0x94f8('0x178'),_0x4207da);logger[_0x94f8('0x33')](_0x94f8('0x179'),_0x5f107e,_0x39b817,_0x520006[_0x94f8('0x17a')],_0x520006['timeout']);return this[_0x94f8('0x3d')][_0x94f8('0x129')](_0x5f107e,_0x39b817,_0x520006[_0x94f8('0x17a')],_0x520006[_0x94f8('0x6b')],undefined,!![]);};AGIVertices[_0x94f8('0x15')]['restapi']=function(_0x45e970){logger['info'](util[_0x94f8('0x9f')]('Enter\x20in\x20RESTAPI\x20(%s)\x20block',_0x45e970[_0x94f8('0x3b')]));if(!this[_0x94f8('0x84')](_0x45e970[_0x94f8('0x6a')])){return this['channel']['noop']('no\x20url\x20configured');}var _0x27e34c=this['restAPI'][_0x94f8('0x74')](this,_0x45e970);logger['info'](util[_0x94f8('0x9f')](_0x94f8('0x17b'),util[_0x94f8('0x17c')](_0x27e34c,{'showHidden':![],'depth':null})));if(!this['isConfigured'](_0x45e970[_0x94f8('0xd1')])){return this[_0x94f8('0x3d')][_0x94f8('0xb5')]('no\x20variable\x20selected\x20for\x20the\x20response');}var _0x47230b=this['getVariable']['sync'](this,_0x45e970['variable_id']);if(!_0x47230b){return this['channel'][_0x94f8('0x2e')](_0x45e970,_0x94f8('0xd3'));}this[_0x94f8('0x3d')][_0x94f8('0xd5')](util[_0x94f8('0x9f')](_0x94f8('0x17d'),_0x47230b),_0x27e34c[_0x94f8('0x7a')]?_0x27e34c[_0x94f8('0x7a')]:'200');this['channel'][_0x94f8('0xd5')](util['format']('%s_STATUS_MESSAGE',_0x47230b),_0x27e34c['statusMessage']?_0x27e34c[_0x94f8('0x7b')]:'OK');if(_0x27e34c[_0x94f8('0x6f')]){try{this[_0x94f8('0x9e')](_0x27e34c[_0x94f8('0x6f')],_0x47230b);}catch(_0xd686c5){logger['error'](util[_0x94f8('0x9f')]('Unable\x20to\x20set\x20result\x20in\x20variable\x20%s',_0x47230b));}}return this[_0x94f8('0x3d')][_0x94f8('0xb5')](util[_0x94f8('0x9f')](_0x94f8('0x17e'),_0x47230b));};AGIVertices[_0x94f8('0x15')]['saydigits']=function(_0x475554){logger[_0x94f8('0x33')](util['format'](_0x94f8('0x17f'),_0x475554['label']));return this['channel'][_0x94f8('0x180')](_0x475554[_0x94f8('0x181')][_0x94f8('0x5e')](/\s+/g,''),_0x475554['escape_digits']);};AGIVertices[_0x94f8('0x15')][_0x94f8('0x182')]=function(_0xd23ff8){logger[_0x94f8('0x33')](util[_0x94f8('0x9f')]('Enter\x20in\x20SAYNUMBER\x20(%s)\x20block',_0xd23ff8[_0x94f8('0x3b')]));return this[_0x94f8('0x3d')][_0x94f8('0x183')](_0xd23ff8['number'][_0x94f8('0x5e')](/\s+/g,''),_0xd23ff8[_0x94f8('0x17a')]);};AGIVertices[_0x94f8('0x15')][_0x94f8('0x184')]=function(_0x51c03d){logger[_0x94f8('0x33')](util[_0x94f8('0x9f')](_0x94f8('0x185'),_0x51c03d[_0x94f8('0x3b')]));return this[_0x94f8('0x3d')]['sayPhonetic'](_0x51c03d['text'],_0x51c03d['escape_digits']);};AGIVertices[_0x94f8('0x15')][_0x94f8('0x186')]=function(_0x2803b5){logger[_0x94f8('0x33')](util[_0x94f8('0x9f')](_0x94f8('0x187'),_0x2803b5[_0x94f8('0x3b')]));if(!this['isConfigured'](_0x2803b5[_0x94f8('0x188')])){return this[_0x94f8('0x3d')]['noop']('no\x20mail\x20account\x20configured');}var _0x132f71=this['getMailAccount'][_0x94f8('0x74')](this,_0x2803b5['account_id']);if(!_0x132f71||!_0x132f71[_0x94f8('0x189')]){return this['channel']['error'](_0x2803b5,_0x94f8('0x18a'));}var _0x54d690={'from':util['format'](_0x94f8('0x18b'),_0x132f71[_0x94f8('0x13')],_0x132f71[_0x94f8('0x18c')]||_0x132f71[_0x94f8('0x189')][_0x94f8('0x18d')]),'to':_0x2803b5['to']||'','cc':_0x2803b5['cc']||'','bcc':_0x2803b5[_0x94f8('0x18e')]||'','subject':_0x2803b5['subject'],'html':_0x2803b5[_0x94f8('0x62')],'text':_0x2803b5[_0x94f8('0x62')]};var _0x2727f0={'tls':{'rejectUnauthorized':![]}};if(_0x132f71[_0x94f8('0x189')][_0x94f8('0x18f')]){_0x2727f0[_0x94f8('0x18f')]=_0x132f71[_0x94f8('0x189')][_0x94f8('0x18f')];}else{_0x2727f0[_0x94f8('0x190')]=_0x132f71[_0x94f8('0x189')][_0x94f8('0x190')];_0x2727f0[_0x94f8('0x191')]=_0x132f71[_0x94f8('0x189')][_0x94f8('0x191')];_0x2727f0[_0x94f8('0x192')]=_0x132f71[_0x94f8('0x189')][_0x94f8('0x192')];}if(_0x132f71[_0x94f8('0x189')][_0x94f8('0x193')]){_0x2727f0['auth']={'user':_0x132f71['Smtp']['user'],'pass':_0x132f71[_0x94f8('0x189')][_0x94f8('0x194')]};}if(this[_0x94f8('0x84')](_0x2803b5[_0x94f8('0x195')])){}logger[_0x94f8('0xd8')](_0x94f8('0x196'),JSON[_0x94f8('0x78')](_0x54d690));this[_0x94f8('0x39')][_0x94f8('0x74')](this,_0x2803b5,_0x2803b5['account_id']);this['channel'][_0x94f8('0xb5')](util['format'](_0x94f8('0x197'),_0x132f71[_0x94f8('0x13')]));this['sendMailMessage'][_0x94f8('0x74')](this,_0x2727f0,_0x54d690);return this[_0x94f8('0x3d')][_0x94f8('0xb5')](_0x94f8('0x198'));};AGIVertices[_0x94f8('0x15')]['sendFax']=function(_0x9159af){logger['info'](util[_0x94f8('0x9f')](_0x94f8('0x199'),_0x9159af[_0x94f8('0x3b')]));return this[_0x94f8('0x3d')][_0x94f8('0xb5')]('SENDFAX\x20block\x20not\x20implemented');};AGIVertices[_0x94f8('0x15')][_0x94f8('0x19a')]=function(_0x536d68){logger[_0x94f8('0x33')](util[_0x94f8('0x9f')](_0x94f8('0x19b'),_0x536d68[_0x94f8('0x3b')]));if(!this['isConfigured'](_0x536d68[_0x94f8('0x19c')])){return this[_0x94f8('0x3d')][_0x94f8('0xb5')](_0x94f8('0x19d'));}var _0x1e7379=this[_0x94f8('0x36')]['sync'](this,_0x536d68[_0x94f8('0x19c')]);if(!_0x1e7379){return this[_0x94f8('0x3d')][_0x94f8('0x2e')](_0x536d68,_0x94f8('0x19e'));}var _0x32bbac={'body':_0x536d68[_0x94f8('0x19f')],'phone':_0x536d68['to']||'','SmsAccountId':_0x1e7379['id']};logger[_0x94f8('0xd8')]('sendSMS\x20message',JSON[_0x94f8('0x78')](_0x32bbac));this[_0x94f8('0x39')][_0x94f8('0x74')](this,_0x536d68,_0x536d68[_0x94f8('0x19c')]);this['channel'][_0x94f8('0xb5')](util[_0x94f8('0x9f')](_0x94f8('0x1a0'),_0x1e7379[_0x94f8('0x13')]));this[_0x94f8('0x38')][_0x94f8('0x74')](this,_0x32bbac);return this[_0x94f8('0x3d')][_0x94f8('0xb5')](_0x94f8('0x1a1'));};AGIVertices[_0x94f8('0x15')][_0x94f8('0x1a2')]=function(_0x2c1f22){logger[_0x94f8('0x33')](util[_0x94f8('0x9f')](_0x94f8('0x1a3'),_0x2c1f22[_0x94f8('0x3b')]));if(!this['isConfigured'](_0x2c1f22[_0x94f8('0xd1')])){return this['channel'][_0x94f8('0x2e')](_0x2c1f22,_0x94f8('0x1a4'));}var _0x400f6e=this['getVariable'][_0x94f8('0x74')](this,_0x2c1f22['variable_id']);if(!_0x400f6e){return this[_0x94f8('0x3d')]['error'](_0x2c1f22,'no\x20variable\x20found');}return this[_0x94f8('0x3d')]['setVariable'](_0x400f6e,_0x2c1f22[_0x94f8('0x1a5')]);};AGIVertices[_0x94f8('0x15')][_0x94f8('0x1a6')]=function(_0x48ed08){logger['info'](util['format']('Enter\x20in\x20START\x20(%s)\x20block',_0x48ed08[_0x94f8('0x3b')]));this[_0x94f8('0x3d')][_0x94f8('0xb5')]('START\x20CALLY\x20SQUARE');if(_0x48ed08[_0x94f8('0xab')]===_0x94f8('0x1a7')){this['channel'][_0x94f8('0xb5')](_0x94f8('0x1a8'));return this[_0x94f8('0x3d')]['answer']();}return this[_0x94f8('0x3d')][_0x94f8('0xb5')]('Skipped\x20Answer');};AGIVertices[_0x94f8('0x15')][_0x94f8('0x1a9')]=function(_0x15dc05){logger['info'](util[_0x94f8('0x9f')](_0x94f8('0x1aa'),_0x15dc05[_0x94f8('0x3b')]));if(!this[_0x94f8('0x84')](_0x15dc05['project_id'])){return this['channel']['error'](_0x15dc05,'no\x20subproject\x20selected');}var _0x374d71=this['getSquareProject'][_0x94f8('0x74')](this,_0x15dc05[_0x94f8('0x1ab')]);if(!this[_0x94f8('0x84')](_0x374d71)){return this[_0x94f8('0x3d')][_0x94f8('0x2e')](_0x15dc05,util[_0x94f8('0x9f')](_0x94f8('0x1ac'),_0x15dc05['project_id']));}if(_0x374d71===this[_0x94f8('0x3d')][_0x94f8('0x45')]){return this[_0x94f8('0x3d')][_0x94f8('0x2e')](_0x15dc05,'project\x20in\x20subproject\x20must\x20be\x20different\x20from\x20the\x20called\x20project');}this[_0x94f8('0x39')][_0x94f8('0x74')](this,_0x15dc05,_0x374d71);var _0x5e7a36=this[_0x94f8('0x3d')][_0x94f8('0xb3')](_0x94f8('0x1ad'),util[_0x94f8('0x9f')]('agi://%s/square,\x22%s\x22,\x22%s\x22',config[_0x94f8('0x7')][_0x94f8('0x190')]||_0x94f8('0x1ae'),_0x374d71,this[_0x94f8('0x3d')][_0x94f8('0x45')]));if(_0x5e7a36[_0x94f8('0xa5')]===-0x1){return _0x5e7a36;}return this[_0x94f8('0x3d')][_0x94f8('0xb5')](util[_0x94f8('0x9f')]('Executed\x20command\x20%s\x20%s',_0x94f8('0x1ad'),_0x374d71));};AGIVertices[_0x94f8('0x15')][_0x94f8('0x1af')]=function(_0x48bd1){logger[_0x94f8('0x33')](util['format'](_0x94f8('0x1b0'),_0x48bd1[_0x94f8('0x3b')]));var _0x44d61e=this[_0x94f8('0x5c')]['sync'](this,_0x48bd1[_0x94f8('0xa9')]);this[_0x94f8('0x39')]['sync'](this,_0x48bd1,_0x48bd1[_0x94f8('0xa9')]);if(this['isConfigured'](_0x48bd1[_0x94f8('0xd1')])){var _0x494d3b=this[_0x94f8('0x10')]['sync'](this,_0x48bd1[_0x94f8('0xd1')]);if(_0x494d3b){this[_0x94f8('0x3d')][_0x94f8('0xd5')](_0x494d3b,_0x44d61e);return this[_0x94f8('0x3d')][_0x94f8('0xb5')](util[_0x94f8('0x9f')](_0x94f8('0x1b1'),_0x48bd1[_0x94f8('0xa9')],_0x494d3b));}}return this['channel'][_0x94f8('0xb5')](util['format'](_0x94f8('0x1b2'),_0x48bd1['command']));};AGIVertices[_0x94f8('0x15')][_0x94f8('0x1b3')]=function(_0x2cef03){logger[_0x94f8('0x33')](util['format']('Enter\x20in\x20Google\x20Cloud\x20TTS\x20(%s)\x20block',_0x2cef03[_0x94f8('0x3b')]));if(!this[_0x94f8('0x84')](_0x2cef03[_0x94f8('0x60')])){return this['channel'][_0x94f8('0xb5')](_0x94f8('0x1b4'));}if(!this[_0x94f8('0x84')](_0x2cef03[_0x94f8('0x62')])){return this[_0x94f8('0x3d')]['noop'](_0x94f8('0xbc'));}this[_0x94f8('0x3d')][_0x94f8('0xb5')](util['format']('Trying\x20Google\x20Cloud\x20TTS\x20%s',_0x2cef03[_0x94f8('0x62')]));var _0x31a461=this[_0x94f8('0x5f')][_0x94f8('0x74')](this,_0x2cef03);if(_0x31a461){this[_0x94f8('0x3d')][_0x94f8('0xb5')](util[_0x94f8('0x9f')](_0x94f8('0x1b5'),_0x31a461));var _0x2aea7f=this['channel'][_0x94f8('0xf5')](_0x31a461);try{fs[_0x94f8('0xf6')](_0x31a461+_0x94f8('0xf7'));}catch(_0x2163fd){logger[_0x94f8('0x2e')](_0x2163fd);}return _0x2aea7f;}return this[_0x94f8('0x3d')][_0x94f8('0x2e')](_0x2cef03,_0x94f8('0x1b6'));};AGIVertices[_0x94f8('0x15')][_0x94f8('0x1b7')]=function(_0x1f8919){logger[_0x94f8('0x33')](util[_0x94f8('0x9f')](_0x94f8('0x1b8'),_0x1f8919[_0x94f8('0x3b')]));if(!this[_0x94f8('0x84')](_0x1f8919[_0x94f8('0x62')])){return this[_0x94f8('0x3d')][_0x94f8('0xb5')](_0x94f8('0xbc'));}this[_0x94f8('0x3d')][_0x94f8('0xb5')](util[_0x94f8('0x9f')](_0x94f8('0x1b9'),_0x1f8919[_0x94f8('0x62')]));var _0x22e3f8=this[_0x94f8('0x1ba')][_0x94f8('0x74')](this,_0x1f8919);if(_0x22e3f8){this[_0x94f8('0x3d')][_0x94f8('0xb5')](util[_0x94f8('0x9f')](_0x94f8('0x1bb'),_0x22e3f8));var _0x25e1a0=this[_0x94f8('0x3d')][_0x94f8('0xf5')](_0x22e3f8);try{fs[_0x94f8('0xf6')](_0x22e3f8+'.wav');}catch(_0x549fd2){logger[_0x94f8('0x2e')](_0x549fd2);}return _0x25e1a0;}return this[_0x94f8('0x3d')][_0x94f8('0x2e')](_0x1f8919,'Google\x20TTS\x20is\x20unreachable');};AGIVertices[_0x94f8('0x15')][_0x94f8('0x1bc')]=function(_0x48649a){logger['info'](util[_0x94f8('0x9f')](_0x94f8('0x1bd'),_0x48649a[_0x94f8('0x3b')]));if(!this['isConfigured'](_0x48649a[_0x94f8('0x151')])){return this[_0x94f8('0x3d')][_0x94f8('0x2e')](_0x48649a,'no\x20find\x20by\x20configured');}logger[_0x94f8('0x33')](util[_0x94f8('0x9f')](_0x94f8('0x153'),this[_0x94f8('0x3d')][_0x94f8('0x3e')],_0x48649a[_0x94f8('0x151')]));var _0x271758=this[_0x94f8('0x57')][_0x94f8('0x74')](this,_0x48649a[_0x94f8('0x151')]);if(_0x271758){logger['info'](util[_0x94f8('0x9f')](_0x94f8('0x154'),this[_0x94f8('0x3d')]['callerid'],_0x48649a[_0x94f8('0x151')]));this[_0x94f8('0x3d')]['noop'](util['format']('AGENT\x20%s\x20FOUND\x20BY',this['channel'][_0x94f8('0x3e')],_0x48649a[_0x94f8('0x151')]));return{'code':0xc8,'result':_0x94f8('0x155')};}else{logger['info'](util[_0x94f8('0x9f')](_0x94f8('0x156'),this['channel'][_0x94f8('0x3e')],_0x48649a['findBy']));this['channel'][_0x94f8('0xb5')](util[_0x94f8('0x9f')]('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this[_0x94f8('0x3d')]['callerid'],_0x48649a['findBy']));return{'code':0xc8,'result':'failure'};}};AGIVertices[_0x94f8('0x15')]['voicemail']=function(_0x250fcc){logger[_0x94f8('0x33')](util['format'](_0x94f8('0x1be'),_0x250fcc[_0x94f8('0x3b')]));var _0x492290=this[_0x94f8('0x3d')][_0x94f8('0xb3')]('VOICEMAIL',[_0x250fcc['mailbox'],_0x250fcc['options']]);if(_0x492290[_0x94f8('0xa5')]===-0x1){return _0x492290;}return this[_0x94f8('0x3d')]['noop'](util['format'](_0x94f8('0xb6'),_0x94f8('0x1bf'),_0x250fcc[_0x94f8('0x1c0')]));};AGIVertices[_0x94f8('0x15')][_0x94f8('0x1c1')]=function(_0x45e49e){logger[_0x94f8('0x33')](util['format'](_0x94f8('0x1c2'),_0x45e49e[_0x94f8('0x3b')]));if(!this[_0x94f8('0x84')](_0x45e49e[_0x94f8('0xd1')])){return this['channel'][_0x94f8('0x2e')](_0x45e49e,_0x94f8('0x1a4'));}var _0x4257ae=this[_0x94f8('0x10')][_0x94f8('0x74')](this,_0x45e49e[_0x94f8('0xd1')]);if(!_0x4257ae){return this[_0x94f8('0x3d')]['error'](_0x45e49e,_0x94f8('0xd3'));}var _0x4d0668=this[_0x94f8('0x3d')]['getVariable'](_0x4257ae);return{'code':0xc8,'result':_0x4d0668[_0x94f8('0xa3')]?_0x4d0668[_0x94f8('0xa3')]:'-'};};String[_0x94f8('0x15')][_0x94f8('0xa2')]=function(_0x4cf31a,_0x37c0e3){return this[_0x94f8('0xa1')](_0x4cf31a)[_0x94f8('0x1c3')](_0x37c0e3);};module[_0x94f8('0x1c4')]=AGIVertices;
\ No newline at end of file
+var _0x321c=['math\x20%s','%s[%s]','variable\x20%s[key]\x20set','Enter\x20in\x20MENU\x20(%s)\x20block','no\x20file\x20audio\x20found','digit','Enter\x20in\x20NOOP\x20(%s)\x20block','output','pause','Enter\x20in\x20PAUSE\x20(%s)\x20block','pause_id','agentPause','PLAYBACK','Executed\x20command\x20%s\x20%s','queue','Enter\x20in\x20QUEUE\x20(%s)\x20block','queue_id','no\x20queue\x20selected','indexOf','XMCS-QUEUE','toLowerCase','macro','gosub','position','QUEUE','record','Enter\x20in\x20RECORD\x20(%s)\x20block','recordingFormat','%s_%s','%s/recordings/%s.%s','RECORDING_SAVENAME','escape_digits','restapi','Enter\x20in\x20RESTAPI\x20(%s)\x20block','no\x20url\x20configured','Response:','inspect','%s_STATUS_CODE','statusMessage','Unable\x20to\x20set\x20result\x20in\x20variable\x20%s','variable\x20%s\x20set','saydigits','Enter\x20in\x20SAYDIGITS\x20(%s)\x20block','sayDigits','digits','Enter\x20in\x20SAYNUMBER\x20(%s)\x20block','sayNumber','sayphonetic','Enter\x20in\x20SAYPHONETIC\x20(%s)\x20block','sayPhonetic','sendMail','Enter\x20in\x20SENDMAIL\x20(%s)\x20block','account_id','no\x20mail\x20account\x20configured','getMailAccount','Smtp','no\x20mail\x20account\x20found','\x22%s\x22\x20<%s>','user','bcc','subject','service','host','port','secure','authentication','pass','template_id','debug','sendMail\x20message','Trying\x20SendMail\x20with\x20account\x20%s','Mail\x20message\x20added\x20to\x20outgoing\x20process','sendFax','Enter\x20in\x20SENDSMS\x20(%s)\x20block','sms_account_id','no\x20sms\x20account\x20found','Trying\x20SendSMS\x20with\x20account\x20%s','Sms\x20message\x20added\x20to\x20outgoing\x20process','Enter\x20in\x20SET\x20(%s)\x20block','variable_value','start','Enter\x20in\x20START\x20(%s)\x20block','START\x20CALLY\x20SQUARE','yes','Skipped\x20Answer','subproject','project_id','no\x20subproject\x20selected','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','system','Enter\x20in\x20SYSTEM\x20(%s)\x20block','sh\x20command:\x20%s\x20result\x20on\x20variable:\x20%s','sh\x20command:\x20%s\x20result\x20no\x20stored','Enter\x20in\x20Google\x20Cloud\x20TTS\x20(%s)\x20block','Trying\x20Google\x20Cloud\x20TTS\x20%s','Google\x20Cloud\x20TTS\x20%s\x20file\x20created','Google\x20Cloud\x20TTS\x20is\x20unreachable','tts','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','VOICEMAIL','mailbox','join','exports','path','lodash','shelljs','odbc','randomstring','moment','mustache','request-promise','../../config/logger','agi','../../config/environment','rawHeaders','rawBody','menu','getdigits','getsecretdigits','channel','rpc','prototype','getVariable','getVariableById','then','getVoiceQueue','name','getSquareProject','getSquareProjectById','catch','getSquareOdbc','getSquareOdbcById','dsn','getUser','getUserById','getTrunkById','getSound','getSoundById','save_name','getMailAccountById','sendMailMessage','mailRpc','getIntervals','getIntervalById','IntervalId','interval','%s/sounds/converted/%s','getQueryOdbc','open','error','Error\x20getting\x20ODBC\x20connection\x20%s','ODBC\x20connection\x20successfully','query','Error\x20executing\x20query\x20%s','info','Query\x20executed\x20correctly\x20%s','close','getSmsAccount','getSmsAccountById','createSmsMessage','uniqueid','label','agicommand','callerid','createSquareRecording','calleridname','extension','accountcode','dnid','arg_1','file','createSquareMessage','createCmContact','isEmpty','callback_','random','lastName','isNil','phone','list_id','Callback\x20scheduled\x20at\x20','scheduledAt','toString','callback_priority','getPause','agent','agentUnpause','agentLogin','internal','format','%s/%s@from-sip/n','shellCommand','exec','replace','googleCloudTTS','apiKey','google_cloud_tts_text_type','text','en-US','ssmlGender','MALE','MP3','googleTTS','google_tts_language','restAPI','method','timeout','number','includes','POST','PUT','body','parse','An\x20incorrect\x20formatted\x20json\x20body\x20has\x20been\x20passed\x20to\x20the\x20function','An\x20incorrect\x20formatted\x20json\x20headers\x20has\x20been\x20passed\x20to\x20the\x20function','computedVariables','uri','render','url','stringify','headers','An\x20incorrect\x20formatted\x20json\x20has\x20been\x20passed\x20to\x20the\x20function','statusCode','message','500\x20-\x20Internal\x20Server\x20Error','options','googleDialogflow','key','sestekNDA','ispeechTTS','speed','ispeechASR','ispeech_asr_language','isConfigured','model','awsPolly','aws_secret_access_key','aws_polly_region','aws_polly_voice','Amy','aws_text_type','awsLex','aws_access_key_id','aws_bot_name','googleASR','google_asr_language','appid','appsecret','clear','hasOwnProperty','isString','replaceObjectAllVariables','replaceAllVariables','recursiveNodeIndex','isPlainObject','isArray','saveRestApiResult','length','setVariable','%s.%s','split','replaceAll','extra','getAndSetVariable','The\x20\x22%s\x22\x20variable\x20value\x20is:\x20%s','maxRetry','sync','retry','Enter\x20in\x20AGI\x20(%s)\x20block','command','args','answer','Enter\x20in\x20ANSWER\x20(%s)\x20block','Wait\x20%s\x20seconds\x20before\x20answer','wait','result','delay','add','minutes','noop','CALLBACK\x20added\x20phone:\x20%s\x20on\x20list:\x20%s\x20at\x20%s','custom_app','Enter\x20in\x20CUSTOM\x20APP\x20(%s)\x20block','application','Enter\x20in\x20LUMENVOXTTS\x20(%s)\x20block','no\x20text\x20configured','MRCPSynth','Executed\x20command\x20MRCPSynth\x20%s','sestektts','Enter\x20in\x20SESTEKTTS\x20(%s)\x20block','lumenvoxasr','grammar','no\x20grammar\x20configured','RECOG_CONFIDENCE()','LUMENVOX_ASR_CONFIDENCE','RECOG_INPUT()','LUMENVOX_ASR_INSTANCE','Executed\x20command\x20MRCPRecog\x20%s','Enter\x20in\x20SESTEKASR\x20(%s)\x20block','MRCPRecog','SESTEK_ASR_TRANSCRIPT','RECOG_INSTANCE()','database','Enter\x20in\x20DATABASE\x20(%s)\x20block','odbc_id','no\x20query\x20configured','query:\x20%s','createSquareDetailsReport','variable_id','no\x20variable\x20selected\x20for\x20the\x20result','no\x20variable\x20found','forEach','%s[%s][%s]','%s_ROWS_COUNT','Enter\x20in\x20DIAL\x20(%s)\x20block','sip_id','no\x20user\x20selected','no\x20user\x20found','DIAL','SIP/%s','opts','Executed\x20command\x20%s','Enter\x20in\x20DIALOGFLOW\x20(%s)\x20block','bot','Trying\x20Dialogflow:\x20%s','DIALOGFLOW_%s','toUpperCase','out','Dialogflow\x20Result\x20%s','speech','Dialogflow\x20is\x20unreachable','sesteknda','Enter\x20in\x20SESTEKNDA\x20(%s)\x20block','ndauth_url','no\x20ndauth\x20url\x20configured','username','no\x20username\x20configured','password','no\x20password\x20configured','Trying\x20SestekNDA:\x20%s','SESTEK_NDA_%s','audiofile','Sestek\x20NDA\x20%s\x20file\x20created','streamFile','unlink','.wav','SestekNDA\x20Result\x20%s','SestekNDA\x20is\x20unreachable','end','Enter\x20in\x20END\x20(%s)\x20block','ext_dial','trunk_id','no\x20trunk\x20selected','no\x20trunk\x20found','trunk_name','finally','Enter\x20in\x20FINALLY\x20(%s)\x20block','Enter\x20in\x20GETDIGITS\x20(%s)\x20block','no\x20file\x20audio\x20selected','file_id','getData','maxdigit','mindigit','hiddendigitsnum','generate','first','substr','Enter\x20in\x20GETSECRETDIGITS\x20(%s)\x20block','goal','goalname','GOAL\x20%s','awspolly','[AGI]\x20Enter\x20in\x20AWSPOLLY\x20(%s)\x20block','Trying\x20aws\x20Polly\x20%s','aws\x20Polly\x20%s\x20file\x20created','aws\x20Polly\x20is\x20unreachable','awslex','Enter\x20in\x20Amazon\x20Lex\x20(%s)\x20block','no\x20bot\x20name\x20configured','Trying\x20Amazon\x20Lex:\x20%s','AWS_LEX_%s','Amazon\x20Lex\x20ready\x20for\x20fulfillment','Amazon\x20Lex\x20Result\x20%s','Amazon\x20Lex\x20is\x20unreachable','googleasr','Enter\x20in\x20GOOGLEASR\x20(%s)\x20block\x20%s','%s/recordings/%s','NOBEEP','recordFile','intKey','google\x20%s\x20file\x20created','GOOGLE_ASR_%s','GoogleASR\x20Result\x20%s','tildeasr','Enter\x20in\x20TILDEASR\x20(%s)\x20block','no\x20appid\x20configured','no\x20appsecret\x20configured','wav','tilde\x20%s\x20file\x20created','tildeASR','TildeASR\x20Result\x20%s','gotoc','Enter\x20in\x20GOTO\x20(%s)\x20block','continueAt','context','gotoif','Enter\x20in\x20GOTOIF\x20(%s)\x20block','condition','no\x20condition\x20configured','true','false','Enter\x20in\x20GOTOIFTIME\x20(%s)\x20block','interval_id','no\x20interval\x20configured','no\x20intervals\x20found','IFTIME(%s?true:false)','IFTIME\x20%s\x20%s','hangup','ispeechasr','Enter\x20in\x20ISPEECHASR\x20(%s)\x20block','no\x20key\x20configured','beep','ispeechtts','Enter\x20in\x20ISPEECHTTS\x20(%s)\x20block','ispeech\x20%s\x20file\x20created','ispeech\x20TTS\x20is\x20unreachable','login','Enter\x20in\x20LOGIN\x20(%s)\x20block','findBy','FIND\x20AGENT\x20%s\x20BY\x20%s','AGENT\x20%s\x20FOUND\x20BY','success','AGENT\x20%s\x20NOT\x20FOUND\x20BY','failure','logout','Enter\x20in\x20LOGOUT\x20(%s)\x20block','no\x20find\x20by\x20configured','agentLogout','math','operation','no\x20operation\x20configured'];(function(_0x2fad38,_0x34ee09){var _0x4d2d61=function(_0x1d0254){while(--_0x1d0254){_0x2fad38['push'](_0x2fad38['shift']());}};_0x4d2d61(++_0x34ee09);}(_0x321c,0x70));var _0xc321=function(_0x241bac,_0x2fef81){_0x241bac=_0x241bac-0x0;var _0x2ac7e7=_0x321c[_0x241bac];return _0x2ac7e7;};'use strict';var fs=require('fs');var path=require(_0xc321('0x0'));var util=require('util');var _=require(_0xc321('0x1'));var sh=require(_0xc321('0x2'));var odbc=require(_0xc321('0x3'))();var rs=require(_0xc321('0x4'));var moment=require(_0xc321('0x5'));var Mustache=require(_0xc321('0x6'));var rp=require(_0xc321('0x7'));var logger=require(_0xc321('0x8'))(_0xc321('0x9'));var config=require(_0xc321('0xa'));var scripts=require('./scripts');var FILES_PATH='/var/opt/motion2/server/files';var recursiveMapAttributes=[_0xc321('0xb'),_0xc321('0xc')];var verticesWithRetry=[_0xc321('0xd'),_0xc321('0xe'),_0xc321('0xf')];var AGIVertices=function(_0x13e28d,_0x1feca,_0x1c2719){this[_0xc321('0x10')]=_0x13e28d;this[_0xc321('0x11')]=_0x1feca;this['mailRpc']=_0x1c2719;};AGIVertices[_0xc321('0x12')][_0xc321('0x13')]=function(_0x5de002,_0x10ca91){this['rpc'][_0xc321('0x14')](_0x5de002)[_0xc321('0x15')](function(_0x3003d8){_0x10ca91(null,_0x3003d8?_0x3003d8['name']:![]);})['catch'](function(_0x5c603c){_0x10ca91(_0x5c603c);});};AGIVertices[_0xc321('0x12')][_0xc321('0x16')]=function(_0x2eb052,_0x2aee7e){this[_0xc321('0x11')]['getVoiceQueueById'](_0x2eb052)['then'](function(_0x2e2539){_0x2aee7e(null,_0x2e2539?_0x2e2539[_0xc321('0x17')]:![]);})['catch'](function(_0x46a0ff){_0x2aee7e(_0x46a0ff);});};AGIVertices[_0xc321('0x12')][_0xc321('0x18')]=function(_0x139efb,_0x2eaf07){this[_0xc321('0x11')][_0xc321('0x19')](_0x139efb)[_0xc321('0x15')](function(_0x4fab2c){_0x2eaf07(null,_0x4fab2c?_0x4fab2c[_0xc321('0x17')]:![]);})[_0xc321('0x1a')](function(_0x229378){_0x2eaf07(_0x229378);});};AGIVertices['prototype'][_0xc321('0x1b')]=function(_0x24514a,_0xbbc625){this[_0xc321('0x11')][_0xc321('0x1c')](_0x24514a)[_0xc321('0x15')](function(_0x2ef889){_0xbbc625(null,_0x2ef889?_0x2ef889[_0xc321('0x1d')]:![]);})[_0xc321('0x1a')](function(_0xf2295a){_0xbbc625(_0xf2295a);});};AGIVertices[_0xc321('0x12')][_0xc321('0x1e')]=function(_0x2374c9,_0x3ebb69){this[_0xc321('0x11')][_0xc321('0x1f')](_0x2374c9)[_0xc321('0x15')](function(_0x3de375){_0x3ebb69(null,_0x3de375?_0x3de375[_0xc321('0x17')]:![]);})[_0xc321('0x1a')](function(_0xec29b){_0x3ebb69(_0xec29b);});};AGIVertices[_0xc321('0x12')]['getTrunk']=function(_0x310bf7,_0x41c144){this[_0xc321('0x11')][_0xc321('0x20')](_0x310bf7)[_0xc321('0x15')](function(_0x5a4d1c){_0x41c144(null,_0x5a4d1c?_0x5a4d1c['name']:![]);})[_0xc321('0x1a')](function(_0x3d7061){_0x41c144(_0x3d7061);});};AGIVertices[_0xc321('0x12')][_0xc321('0x21')]=function(_0x3dc386,_0x45c429){var _0x14d41c=this;this[_0xc321('0x11')][_0xc321('0x22')](_0x3dc386)['then'](function(_0x52aca1){_0x45c429(null,_0x52aca1?_0x14d41c['getSoundPath'](_0x52aca1[_0xc321('0x23')]):![]);})['catch'](function(_0x4df5a4){_0x45c429(_0x4df5a4);});};AGIVertices['prototype']['getMailAccount']=function(_0x4db485,_0x3eb853){this[_0xc321('0x11')][_0xc321('0x24')](_0x4db485)[_0xc321('0x15')](function(_0x1a43ac){_0x3eb853(null,_0x1a43ac?_0x1a43ac:![]);})[_0xc321('0x1a')](function(_0x216150){_0x3eb853(_0x216150);});};AGIVertices[_0xc321('0x12')][_0xc321('0x25')]=function(_0x45d52e,_0x5e78b7,_0x1fdbe5){this[_0xc321('0x26')][_0xc321('0x25')](_0x45d52e,_0x5e78b7)[_0xc321('0x15')](function(){_0x1fdbe5(null);})[_0xc321('0x1a')](function(_0x2c7b98){_0x1fdbe5(_0x2c7b98);});};AGIVertices[_0xc321('0x12')][_0xc321('0x27')]=function(_0x4e7bff,_0x3101d2){this['rpc'][_0xc321('0x28')](_0x4e7bff)[_0xc321('0x15')](function(_0x59d021){if(_0x59d021){if(_0x59d021[_0xc321('0x29')]){_0x3101d2(null,[_0x59d021['interval']]);}else{_0x3101d2(null,_['map'](_0x59d021['Intervals'],_0xc321('0x2a')));}}else{_0x3101d2(null,![]);}})[_0xc321('0x1a')](function(_0x58fafe){_0x3101d2(_0x58fafe);});};AGIVertices[_0xc321('0x12')]['getSoundPath']=function(_0x1286d9){return util['format'](_0xc321('0x2b'),FILES_PATH,_0x1286d9);};AGIVertices[_0xc321('0x12')][_0xc321('0x2c')]=function(_0x42af0f,_0x96f938,_0x30e1ca){odbc[_0xc321('0x2d')](_0x42af0f,function(_0x5356a3){if(_0x5356a3){logger[_0xc321('0x2e')](_0xc321('0x2f'),_0x5356a3);_0x30e1ca(_0x5356a3);}else{logger['info'](_0xc321('0x30'));odbc[_0xc321('0x31')](_0x96f938,function(_0x114b0b,_0x187f52){if(_0x114b0b){logger['info'](_0xc321('0x32'),_0x96f938);_0x30e1ca(_0x114b0b);}else{logger[_0xc321('0x33')](_0xc321('0x34'),_0x96f938);odbc[_0xc321('0x35')](function(_0x3c3365){if(_0x3c3365){logger['error']('Error\x20closing\x20connection\x20to\x20odbc\x20%s',_0x3c3365);}_0x30e1ca(null,_0x187f52);});}});}});};AGIVertices['prototype'][_0xc321('0x36')]=function(_0x10debb,_0x1b2cd2){this[_0xc321('0x11')][_0xc321('0x37')](_0x10debb)['then'](function(_0x329d02){_0x1b2cd2(null,_0x329d02?_0x329d02:![]);})[_0xc321('0x1a')](function(_0x590d6b){_0x1b2cd2(_0x590d6b);});};AGIVertices['prototype'][_0xc321('0x38')]=function(_0x154a9b,_0x144ef7){this[_0xc321('0x11')]['createSmsMessage'](_0x154a9b)[_0xc321('0x15')](function(_0x1b5a43){_0x144ef7(null,_0x1b5a43);})[_0xc321('0x1a')](function(_0x2c5e6d){_0x144ef7(_0x2c5e6d);});};AGIVertices[_0xc321('0x12')]['createSquareDetailsReport']=function(_0x3a17cf,_0x3b22b0,_0x486fae){this[_0xc321('0x11')]['createSquareDetailsReport']({'uniqueid':this[_0xc321('0x10')][_0xc321('0x39')],'node':_0x3a17cf[_0xc321('0x3a')],'application':_0x3a17cf[_0xc321('0x3b')],'data':_0x3b22b0||null,'project_name':this[_0xc321('0x10')]['arg_1'],'callerid':this[_0xc321('0x10')][_0xc321('0x3c')]})[_0xc321('0x15')](function(_0x29e7b4){if(_0x486fae){_0x486fae(null,_0x29e7b4);}})[_0xc321('0x1a')](function(_0x16d52f){if(_0x486fae){_0x486fae(_0x16d52f);}});};AGIVertices[_0xc321('0x12')][_0xc321('0x3d')]=function(_0x25b00d,_0x2ac634,_0x412172,_0x22b564){this[_0xc321('0x11')][_0xc321('0x3d')]({'uniqueid':this[_0xc321('0x10')]['uniqueid'],'callerid':this[_0xc321('0x10')][_0xc321('0x3c')],'calleridname':this[_0xc321('0x10')][_0xc321('0x3e')],'context':this[_0xc321('0x10')]['context'],'extension':this[_0xc321('0x10')][_0xc321('0x3f')],'priority':this[_0xc321('0x10')]['priority'],'accountcode':this[_0xc321('0x10')][_0xc321('0x40')],'dnid':this[_0xc321('0x10')][_0xc321('0x41')],'projectName':this[_0xc321('0x10')][_0xc321('0x42')],'saveName':_0x2ac634,'filename':_0x25b00d[_0xc321('0x43')]||_0x2ac634,'savePath':_0x412172})['then'](function(_0x5db0f5){_0x22b564(null,_0x5db0f5);})[_0xc321('0x1a')](function(_0x2fd4bc){_0x22b564(_0x2fd4bc);});};AGIVertices[_0xc321('0x12')]['createSquareMessage']=function(_0x565f7d,_0x23c7a4,_0x513ace){this[_0xc321('0x11')][_0xc321('0x44')]({'uniqueid':this[_0xc321('0x10')]['uniqueid'],'body':_0x565f7d,'direction':_0x23c7a4})['then'](function(_0x5e5e0a){if(_0x513ace){_0x513ace(null,_0x5e5e0a);}})[_0xc321('0x1a')](function(_0x44f22d){if(_0x513ace){_0x513ace(_0x44f22d);}});};AGIVertices[_0xc321('0x12')][_0xc321('0x45')]=function(_0x15b27d,_0x19142f){this['rpc']['createCmContact']({'firstName':_[_0xc321('0x46')](_0x15b27d['name'])||_['isNil'](_0x15b27d[_0xc321('0x17')])?_0xc321('0x47')+Math[_0xc321('0x48')]():_0x15b27d['name'],'lastName':_['isEmpty'](_0x15b27d[_0xc321('0x49')])||_[_0xc321('0x4a')](_0x15b27d[_0xc321('0x49')])?null:_0x15b27d[_0xc321('0x49')],'phone':_0x15b27d[_0xc321('0x4b')],'ListId':_0x15b27d[_0xc321('0x4c')],'scheduledat':_0x15b27d['scheduledAt'],'callbackUniqueid':this['channel'][_0xc321('0x39')],'tags':'callback','description':_0xc321('0x4d')+_0x15b27d[_0xc321('0x4e')][_0xc321('0x4f')](),'priority':_0x15b27d[_0xc321('0x50')]})['then'](function(_0x3d7756){_0x19142f(null,_0x3d7756);})[_0xc321('0x1a')](function(_0x39f52e){_0x19142f(_0x39f52e);});};AGIVertices['prototype'][_0xc321('0x51')]=function(_0x23ee44,_0x4d9dac){this['rpc']['getPauseById'](_0x23ee44)[_0xc321('0x15')](function(_0x1ed659){_0x4d9dac(null,_0x1ed659?_0x1ed659[_0xc321('0x17')]:![]);})[_0xc321('0x1a')](function(_0x4831d7){_0x4d9dac(_0x4831d7);});};AGIVertices[_0xc321('0x12')]['agentPause']=function(_0x5594a9,_0x545175,_0x4d4e56){var _0x3c81ee={'role':_0xc321('0x52')};_0x3c81ee[_0x5594a9]=this['channel'][_0xc321('0x3c')];this[_0xc321('0x11')]['agentPause'](_0x3c81ee,_0x545175,this['channel']['uniqueid'])['then'](function(_0x2ea22c){_0x4d4e56(null,_[_0xc321('0x4a')](_0x2ea22c)?![]:!![]);})[_0xc321('0x1a')](function(_0x1a9c97){logger[_0xc321('0x2e')](_0x1a9c97);_0x4d4e56(null,![]);});};AGIVertices[_0xc321('0x12')][_0xc321('0x53')]=function(_0x1e07a2,_0x338921){var _0x1f370d={'role':_0xc321('0x52')};_0x1f370d[_0x1e07a2]=this['channel'][_0xc321('0x3c')];this['rpc'][_0xc321('0x53')](_0x1f370d)[_0xc321('0x15')](function(_0x1dac53){_0x338921(null,_[_0xc321('0x4a')](_0x1dac53)?![]:!![]);})[_0xc321('0x1a')](function(_0x451ffd){logger[_0xc321('0x2e')](_0x451ffd);_0x338921(null,![]);});};AGIVertices[_0xc321('0x12')]['agentLogout']=function(_0x3247c9,_0x3ec5ad){var _0x3e5677={'role':_0xc321('0x52')};_0x3e5677[_0x3247c9]=this[_0xc321('0x10')][_0xc321('0x3c')];this[_0xc321('0x11')]['agentLogout'](_0x3e5677)[_0xc321('0x15')](function(_0x21c9eb){_0x3ec5ad(null,_[_0xc321('0x4a')](_0x21c9eb)?![]:!![]);})['catch'](function(_0x386b4c){logger[_0xc321('0x2e')](_0x386b4c);_0x3ec5ad(null,![]);});};AGIVertices[_0xc321('0x12')][_0xc321('0x54')]=function(_0x1dacdb,_0x35a8ae){var _0x54ce87={'role':_0xc321('0x52')};_0x54ce87[_0x1dacdb]=this[_0xc321('0x10')][_0xc321('0x3c')];var _0x551477=_0x1dacdb!=_0xc321('0x55')?util[_0xc321('0x56')](_0xc321('0x57'),'LOCAL',this[_0xc321('0x10')][_0xc321('0x3c')]):undefined;this['rpc'][_0xc321('0x54')](_0x54ce87,_0x551477)['then'](function(_0x334a57){_0x35a8ae(null,_[_0xc321('0x4a')](_0x334a57)?![]:!![]);})[_0xc321('0x1a')](function(_0x591a89){logger[_0xc321('0x2e')](_0x591a89);_0x35a8ae(null,![]);});};AGIVertices[_0xc321('0x12')][_0xc321('0x58')]=function(_0x328a0b,_0x99d575){sh[_0xc321('0x59')](_['trim'](_0x328a0b),function(_0x25ecbb,_0x3d0c30){var _0x43c58a=_0x3d0c30[_0xc321('0x5a')](/(\r\n|\n|\r)/gm,'');_0x99d575(null,_0x43c58a);});};AGIVertices[_0xc321('0x12')]['googleCloudTTS']=function(_0x4fa5bd,_0x985577){scripts[_0xc321('0x5b')](_0x4fa5bd[_0xc321('0x5c')],_0x4fa5bd[_0xc321('0x5d')]||_0xc321('0x5e'),_0x4fa5bd[_0xc321('0x5e')],_0x4fa5bd['languageCode']||_0xc321('0x5f'),_0x4fa5bd[_0xc321('0x60')]||_0xc321('0x61'),_0x4fa5bd['audioEncoding']||_0xc321('0x62'))[_0xc321('0x15')](function(_0x3a4368){_0x985577(null,_0x3a4368);})['catch'](function(_0x416042){_0x985577(_0x416042);});};AGIVertices[_0xc321('0x12')][_0xc321('0x63')]=function(_0x1d7493,_0x13c232){scripts['googleTTS'](_0x1d7493['text'],_0x1d7493[_0xc321('0x64')]||'en',0x1)[_0xc321('0x15')](function(_0x4fb2e8){_0x13c232(null,_0x4fb2e8);})[_0xc321('0x1a')](function(_0x5b1dc6){_0x13c232(_0x5b1dc6);});};AGIVertices[_0xc321('0x12')][_0xc321('0x65')]=function(_0x4f24c3,_0x550dd4){var _0x31f763={'uri':_0x4f24c3['url'],'method':_0x4f24c3[_0xc321('0x66')],'json':!![],'resolveWithFullResponse':!![],'timeout':typeof parseInt(_0x4f24c3[_0xc321('0x67')])===_0xc321('0x68')&&parseInt(_0x4f24c3[_0xc321('0x67')])>=0x1?parseInt(_0x4f24c3[_0xc321('0x67')])*0x3e8:0x5*0x3e8};if(_[_0xc321('0x69')]([_0xc321('0x6a'),_0xc321('0x6b')],_0x31f763[_0xc321('0x66')]['toUpperCase']())){try{_0x31f763[_0xc321('0x6c')]=_0x4f24c3['rawBody']?JSON[_0xc321('0x6d')](_0x4f24c3['rawBody']):{};}catch(_0x39b50a){logger[_0xc321('0x2e')](_0xc321('0x6e'),_0x39b50a);}}try{_0x31f763['headers']=_0x4f24c3[_0xc321('0xb')]?JSON[_0xc321('0x6d')](_0x4f24c3['rawHeaders']):{};}catch(_0xf692d5){logger[_0xc321('0x2e')](_0xc321('0x6f'),_0xf692d5);}if(_0x4f24c3[_0xc321('0x70')]){try{var _0x1cf674=require(_0x4f24c3[_0xc321('0x70')])['sync'](this,_0x31f763);_0x31f763[_0xc321('0x71')]=Mustache[_0xc321('0x72')](_0x4f24c3[_0xc321('0x73')],_0x1cf674,{},['$$','$$']);if(_0x31f763['headers']){_0x31f763['headers']=JSON[_0xc321('0x6d')](Mustache[_0xc321('0x72')](JSON[_0xc321('0x74')](_0x31f763[_0xc321('0x75')]),_0x1cf674,{},['$$','$$']));}if(_0x31f763['body']){_0x31f763[_0xc321('0x6c')]=JSON[_0xc321('0x6d')](Mustache[_0xc321('0x72')](JSON[_0xc321('0x74')](_0x31f763[_0xc321('0x6c')]),_0x1cf674,{},['$$','$$']));}}catch(_0x4921d7){logger[_0xc321('0x2e')](_0xc321('0x76'),_0x4921d7);}}rp(_0x31f763)[_0xc321('0x15')](function(_0x3c6336){var _0x337d43={'statusCode':_0x3c6336[_0xc321('0x77')]||0xc8,'statusMessage':_0x3c6336['statusMessage']||'OK','headers':_0x3c6336[_0xc321('0x75')]||{},'body':_0x3c6336[_0xc321('0x6c')]||{}};_0x550dd4(null,_0x337d43);})[_0xc321('0x1a')](function(_0x963c8){var _0x2d90eb={'statusCode':_0x963c8[_0xc321('0x77')]||0x1f4,'statusMessage':_0x963c8[_0xc321('0x78')]||_0xc321('0x79'),'headers':_0x963c8[_0xc321('0x7a')]['headers']||{},'body':_0x963c8[_0xc321('0x7a')][_0xc321('0x6c')]||{}};_0x550dd4(null,_0x2d90eb);});};AGIVertices[_0xc321('0x12')][_0xc321('0x7b')]=function(_0x15ab8f,_0x51f973){scripts[_0xc321('0x7b')](this['channel'][_0xc321('0x39')],_0x15ab8f[_0xc321('0x7c')],_0x15ab8f[_0xc321('0x5e')],_0x15ab8f['dialogflow_language']||'en')[_0xc321('0x15')](function(_0x25028e){_0x51f973(null,_0x25028e);})['catch'](function(_0x5a68b7){_0x51f973(_0x5a68b7);});};AGIVertices[_0xc321('0x12')][_0xc321('0x7d')]=function(_0x1b6638,_0x1131b5){scripts[_0xc321('0x7d')](this[_0xc321('0x10')],_0x1b6638)[_0xc321('0x15')](function(_0x39bb97){_0x1131b5(null,_0x39bb97);})[_0xc321('0x1a')](function(_0x1ac437){_0x1131b5(_0x1ac437);});};AGIVertices[_0xc321('0x12')][_0xc321('0x7e')]=function(_0x4feb58,_0x24a5d7){scripts[_0xc321('0x7e')](_0x4feb58[_0xc321('0x7c')],_0x4feb58[_0xc321('0x5e')],_0x4feb58['ispeech_tts_language']||_0xc321('0x5f'),_0x4feb58[_0xc321('0x7f')])[_0xc321('0x15')](function(_0xd87b17){_0x24a5d7(null,_0xd87b17);})[_0xc321('0x1a')](function(_0x8acf7){_0x24a5d7(_0x8acf7);});};AGIVertices[_0xc321('0x12')][_0xc321('0x80')]=function(_0x3e9da1,_0x4a2c98,_0x435922){scripts[_0xc321('0x80')](_0x4a2c98,_0x3e9da1[_0xc321('0x7c')],_0x3e9da1[_0xc321('0x81')]||_0xc321('0x5f'),this[_0xc321('0x82')](_0x3e9da1[_0xc321('0x83')])?_0x3e9da1[_0xc321('0x83')]:undefined)[_0xc321('0x15')](function(_0x594520){_0x435922(null,_0x594520);})['catch'](function(_0x4cb3fb){_0x435922(_0x4cb3fb);});};AGIVertices[_0xc321('0x12')][_0xc321('0x84')]=function(_0x30cee0,_0x150483){scripts[_0xc321('0x84')](_0x30cee0['aws_access_key_id'],_0x30cee0[_0xc321('0x85')],_0x30cee0[_0xc321('0x86')],_0x30cee0[_0xc321('0x87')]||_0xc321('0x88'),_0x30cee0[_0xc321('0x5e')],_0x30cee0[_0xc321('0x89')]||_0xc321('0x5e'))[_0xc321('0x15')](function(_0x167578){_0x150483(null,_0x167578);})[_0xc321('0x1a')](function(_0x5110f4){_0x150483(_0x5110f4);});};AGIVertices['prototype'][_0xc321('0x8a')]=function(_0x343e37,_0x224413){scripts[_0xc321('0x8a')](this['channel'][_0xc321('0x39')],_0x343e37[_0xc321('0x8b')],_0x343e37[_0xc321('0x85')],_0x343e37['aws_lex_region'],_0x343e37[_0xc321('0x5e')],_0x343e37[_0xc321('0x8c')])[_0xc321('0x15')](function(_0x3164aa){_0x224413(null,_0x3164aa);})[_0xc321('0x1a')](function(_0x230f9f){_0x224413(_0x230f9f);});};AGIVertices['prototype'][_0xc321('0x8d')]=function(_0x16ffb3,_0x361a49,_0x2b5527){scripts[_0xc321('0x8d')](_0x361a49,_0x16ffb3[_0xc321('0x7c')],_0x16ffb3[_0xc321('0x8e')]||_0xc321('0x5f'))[_0xc321('0x15')](function(_0x2fb515){_0x2b5527(null,_0x2fb515);})[_0xc321('0x1a')](function(_0x8f3ec1){_0x2b5527(_0x8f3ec1);});};AGIVertices[_0xc321('0x12')]['tildeASR']=function(_0x2b0253,_0x59f7ed,_0x4b5ce8){scripts['tildeASR'](_0x59f7ed,_0x2b0253[_0xc321('0x8f')],_0x2b0253[_0xc321('0x90')],_0x2b0253[_0xc321('0x71')])[_0xc321('0x15')](function(_0x572961){_0x4b5ce8(null,_0x572961);})['catch'](function(_0x2633b0){_0x4b5ce8(_0x2633b0);});};AGIVertices[_0xc321('0x12')][_0xc321('0x91')]=function(_0x488a83){var _0x20289a=_['includes'](verticesWithRetry,_0x488a83[_0xc321('0x3b')])?_0x488a83:_['clone'](_0x488a83);for(var _0x5da42e in _0x20289a){if(_0x20289a[_0xc321('0x92')](_0x5da42e)){if(_0x20289a[_0x5da42e]&&_[_0xc321('0x93')](_0x20289a[_0x5da42e])){if(_['includes'](recursiveMapAttributes,_0x5da42e)){_0x20289a[_0x5da42e]=this[_0xc321('0x94')](_0x20289a[_0x5da42e]);}else{_0x20289a[_0x5da42e]=this[_0xc321('0x95')](_0x20289a[_0x5da42e]);}}}}return _0x20289a;};AGIVertices[_0xc321('0x12')][_0xc321('0x96')]=function(_0x255344){for(var _0xb56ffa in _0x255344){if(_0x255344[_0xc321('0x92')](_0xb56ffa)){if(_[_0xc321('0x97')](_0x255344[_0xb56ffa])){this[_0xc321('0x96')](_0x255344[_0xb56ffa]);}else if(_[_0xc321('0x98')](_0x255344[_0xb56ffa])){for(var _0x438d6c=0x0;_0x438d6c<_0x255344[_0xb56ffa]['length'];_0x438d6c++){this['recursiveNodeIndex'](_0x255344[_0xb56ffa][_0x438d6c]);}}else if(_[_0xc321('0x93')](_0x255344[_0xb56ffa])){_0x255344[_0xb56ffa]=this[_0xc321('0x95')](_0x255344[_0xb56ffa]);}}}};AGIVertices['prototype'][_0xc321('0x99')]=function(_0x394b51,_0x1f6d4d){for(var _0x5718be in _0x394b51){if(_0x394b51['hasOwnProperty'](_0x5718be)){if(_['isPlainObject'](_0x394b51[_0x5718be])){if(!_[_0xc321('0x46')](_0x394b51[_0x5718be])){this[_0xc321('0x99')](_0x394b51[_0x5718be],util[_0xc321('0x56')]('%s.%s',_0x1f6d4d,_0x5718be));}}else if(_[_0xc321('0x98')](_0x394b51[_0x5718be])){for(var _0x2f9994=0x0;_0x2f9994<_0x394b51[_0x5718be][_0xc321('0x9a')];_0x2f9994++){this['saveRestApiResult'](_0x394b51[_0x5718be][_0x2f9994],util[_0xc321('0x56')]('%s.%s',_0x1f6d4d,_0x5718be+'['+_0x2f9994+']'));}}else{if(!_['isNil'](_0x394b51[_0x5718be])){this[_0xc321('0x10')][_0xc321('0x9b')](util['format'](_0xc321('0x9c'),_0x1f6d4d,_0x5718be),_0x394b51[_0x5718be]);}}}}};AGIVertices[_0xc321('0x12')][_0xc321('0x94')]=function(_0x47f8f9){try{var _0x188c1e=JSON[_0xc321('0x6d')](_0x47f8f9);this[_0xc321('0x96')](_0x188c1e);return JSON['stringify'](_0x188c1e);}catch(_0x36a5cd){return this[_0xc321('0x95')](_0x47f8f9);}};AGIVertices[_0xc321('0x12')]['replaceAllVariables']=function(_0x239c39){var _0x555cf8=_0x239c39[_0xc321('0x9d')]('{');for(var _0x4399f8=0x1;_0x4399f8<_0x555cf8[_0xc321('0x9a')];_0x4399f8+=0x1){var _0x5b2fe0=_0x555cf8[_0x4399f8][_0xc321('0x9d')]('}');if(_0x5b2fe0[_0xc321('0x9a')]>0x1){_0x239c39=_0x239c39[_0xc321('0x9e')]('{'+_0x5b2fe0[0x0]+'}',this['channel'][_0xc321('0x13')](_0x5b2fe0[0x0])[_0xc321('0x9f')]||_0x5b2fe0[0x0]);}}if(_0x555cf8[_0xc321('0x9a')]===0x1){return _0x239c39[_0xc321('0x4f')]();}return this[_0xc321('0x95')](_0x239c39);};AGIVertices[_0xc321('0x12')][_0xc321('0xa0')]=function(_0x1a4538,_0x26752c){var _0x46f835=this['channel'][_0xc321('0x13')](_0x1a4538);if(_0x46f835['result']===-0x1){return _0x46f835;}logger[_0xc321('0x33')](util['format'](_0xc321('0xa1'),_0x26752c,_0x46f835[_0xc321('0x9f')]));return this[_0xc321('0x10')]['setVariable'](_0x26752c,_0x46f835['extra']);};AGIVertices[_0xc321('0x12')][_0xc321('0x82')]=function(_0x18618b){return _0x18618b&&_0x18618b!=='0'&&_0x18618b!=='-1'&&_0x18618b!=='';};AGIVertices['prototype'][_0xc321('0xa2')]=function(_0x300162){this['createSquareDetailsReport'][_0xc321('0xa3')](this,_0x300162,'-');_0x300162[_0xc321('0xa4')]=_0x300162[_0xc321('0xa2')];return{'code':0xc8,'result':'-'};};AGIVertices[_0xc321('0x12')]['agi']=function(_0x1034a0){logger['info'](util[_0xc321('0x56')](_0xc321('0xa5'),_0x1034a0['label']));return this[_0xc321('0x10')][_0xc321('0x9')]([_0x1034a0[_0xc321('0xa6')],_0x1034a0[_0xc321('0xa7')]]);};AGIVertices[_0xc321('0x12')][_0xc321('0xa8')]=function(_0x55e9a8){logger[_0xc321('0x33')](util[_0xc321('0x56')](_0xc321('0xa9'),_0x55e9a8['label']));if(this['isConfigured'](_0x55e9a8[_0xc321('0x67')])){logger['info'](util[_0xc321('0x56')](_0xc321('0xaa'),_0x55e9a8[_0xc321('0x67')]));var _0x21998c=this['channel'][_0xc321('0xab')](_0x55e9a8[_0xc321('0x67')]);if(_0x21998c[_0xc321('0xac')]===-0x1){return _0x21998c;}}return this[_0xc321('0x10')][_0xc321('0xa8')]();};AGIVertices[_0xc321('0x12')]['callback']=function(_0x25abd2){logger[_0xc321('0x33')](util[_0xc321('0x56')]('Enter\x20in\x20CALLBACK\x20(%s)\x20block',_0x25abd2['label']));if(!this['isConfigured'](_0x25abd2[_0xc321('0x4c')])){return this[_0xc321('0x10')][_0xc321('0x2e')](_0x25abd2,'no\x20list\x20selected');}_0x25abd2[_0xc321('0x4e')]=moment();if(this[_0xc321('0x82')](_0x25abd2[_0xc321('0xad')])){_0x25abd2[_0xc321('0x4e')]=moment()[_0xc321('0xae')](_0x25abd2[_0xc321('0xad')],_0xc321('0xaf'));}if(!this[_0xc321('0x82')](_0x25abd2[_0xc321('0x50')])){_0x25abd2[_0xc321('0x50')]=0x2;}this[_0xc321('0x45')][_0xc321('0xa3')](this,_0x25abd2);return this[_0xc321('0x10')][_0xc321('0xb0')](util['format'](_0xc321('0xb1'),_0x25abd2[_0xc321('0x4b')],_0x25abd2[_0xc321('0x4c')],_0x25abd2[_0xc321('0x4e')]));};AGIVertices[_0xc321('0x12')][_0xc321('0xb2')]=function(_0x322212){logger['info'](util[_0xc321('0x56')](_0xc321('0xb3'),_0x322212['label']));var _0x1ac3a7=this['channel'][_0xc321('0x59')](_0x322212[_0xc321('0xb4')],_0x322212[_0xc321('0x7a')]);if(_0x1ac3a7['result']===-0x1){return _0x1ac3a7;}return this[_0xc321('0x10')]['noop'](util['format']('Executed\x20command\x20%s\x20%s',_0x322212[_0xc321('0xb4')],_0x322212[_0xc321('0x7a')]));};AGIVertices[_0xc321('0x12')]['lumenvoxtts']=function(_0x56b15a){logger['info'](util[_0xc321('0x56')](_0xc321('0xb5'),_0x56b15a[_0xc321('0x3a')]));if(!this[_0xc321('0x82')](_0x56b15a[_0xc321('0x5e')])){return this[_0xc321('0x10')][_0xc321('0xb0')](_0xc321('0xb6'));}var _0x42f8e9='\x22'+_0x56b15a['text']+'\x22';if(this[_0xc321('0x82')](_0x56b15a[_0xc321('0x7a')])){_0x42f8e9+=','+_0x56b15a[_0xc321('0x7a')];}var _0x320172=this[_0xc321('0x10')][_0xc321('0x59')](_0xc321('0xb7'),_0x42f8e9);if(_0x320172[_0xc321('0xac')]===-0x1){return _0x320172;}return this[_0xc321('0x10')][_0xc321('0xb0')](util[_0xc321('0x56')](_0xc321('0xb8'),_0x42f8e9));};AGIVertices[_0xc321('0x12')][_0xc321('0xb9')]=function(_0x2c0377){logger['info'](util[_0xc321('0x56')](_0xc321('0xba'),_0x2c0377['label']));if(!this[_0xc321('0x82')](_0x2c0377[_0xc321('0x5e')])){return this[_0xc321('0x10')][_0xc321('0xb0')](_0xc321('0xb6'));}var _0x1a1e75='\x22'+_0x2c0377[_0xc321('0x5e')]+'\x22';if(this[_0xc321('0x82')](_0x2c0377[_0xc321('0x7a')])){_0x1a1e75+=','+_0x2c0377[_0xc321('0x7a')];}var _0x4ea8f3=this['channel']['exec']('MRCPSynth',_0x1a1e75);if(_0x4ea8f3[_0xc321('0xac')]===-0x1){return _0x4ea8f3;}return this['channel'][_0xc321('0xb0')](util[_0xc321('0x56')](_0xc321('0xb8'),_0x1a1e75));};AGIVertices[_0xc321('0x12')][_0xc321('0xbb')]=function(_0x3dea97){logger[_0xc321('0x33')](util['format']('Enter\x20in\x20LUMENVOXASR\x20(%s)\x20block',_0x3dea97[_0xc321('0x3a')]));if(!this[_0xc321('0x82')](_0x3dea97[_0xc321('0xbc')])){return this['channel'][_0xc321('0xb0')](_0xc321('0xbd'));}var _0x3cbc6c=_0x3dea97[_0xc321('0xbc')];if(this[_0xc321('0x82')](_0x3dea97[_0xc321('0x7a')])){_0x3cbc6c+=','+_0x3dea97[_0xc321('0x7a')];}var _0x378fde=this['channel'][_0xc321('0x59')]('MRCPRecog',_0x3cbc6c);if(_0x378fde[_0xc321('0xac')]===-0x1){return _0x378fde;}var _0xcab9c6=this[_0xc321('0xa0')](_0xc321('0xbe'),_0xc321('0xbf'));if(_0xcab9c6[_0xc321('0xac')]===-0x1){return _0xcab9c6;}var _0x1f7db4=this[_0xc321('0xa0')](_0xc321('0xc0'),'LUMENVOX_ASR_TRANSCRIPT');if(_0x1f7db4['result']===-0x1){return _0x1f7db4;}var _0x2b4fbc=this['getAndSetVariable']('RECOG_INSTANCE()',_0xc321('0xc1'));if(_0x2b4fbc[_0xc321('0xac')]===-0x1){return _0x2b4fbc;}return this['channel'][_0xc321('0xb0')](util[_0xc321('0x56')](_0xc321('0xc2'),_0x3cbc6c));};AGIVertices['prototype']['sestekasr']=function(_0x50d2d0){logger['info'](util[_0xc321('0x56')](_0xc321('0xc3'),_0x50d2d0[_0xc321('0x3a')]));if(!this[_0xc321('0x82')](_0x50d2d0['grammar'])){return this[_0xc321('0x10')][_0xc321('0xb0')](_0xc321('0xbd'));}var _0x5d0cee=_0x50d2d0['grammar'];if(this[_0xc321('0x82')](_0x50d2d0[_0xc321('0x7a')])){_0x5d0cee+=','+_0x50d2d0[_0xc321('0x7a')];}var _0x115280=this['channel'][_0xc321('0x59')](_0xc321('0xc4'),_0x5d0cee);if(_0x115280['result']===-0x1){return _0x115280;}var _0x5e43d0=this['getAndSetVariable'](_0xc321('0xbe'),'SESTEK_ASR_CONFIDENCE');if(_0x5e43d0['result']===-0x1){return _0x5e43d0;}var _0x1ecc1d=this['getAndSetVariable'](_0xc321('0xc0'),_0xc321('0xc5'));if(_0x1ecc1d[_0xc321('0xac')]===-0x1){return _0x1ecc1d;}var _0x41cb46=this['getAndSetVariable'](_0xc321('0xc6'),'SESTEK_ASR_INSTANCE');if(_0x41cb46[_0xc321('0xac')]===-0x1){return _0x41cb46;}return this[_0xc321('0x10')][_0xc321('0xb0')](util[_0xc321('0x56')](_0xc321('0xc2'),_0x5d0cee));};AGIVertices[_0xc321('0x12')][_0xc321('0xc7')]=function(_0x2bd219){logger['info'](util[_0xc321('0x56')](_0xc321('0xc8'),_0x2bd219[_0xc321('0x3a')]));if(!this[_0xc321('0x82')](_0x2bd219[_0xc321('0xc9')])){return this[_0xc321('0x10')][_0xc321('0x2e')](_0x2bd219,'no\x20database\x20selected');}var _0x39e293=this[_0xc321('0x1b')][_0xc321('0xa3')](this,_0x2bd219[_0xc321('0xc9')]);if(!_0x39e293){return this[_0xc321('0x10')]['error'](_0x2bd219,'no\x20odbc\x20database\x20found');}if(!this[_0xc321('0x82')](_0x2bd219[_0xc321('0x31')])){return this[_0xc321('0x10')][_0xc321('0x2e')](_0x2bd219,_0xc321('0xca'));}var _0x39f222=_0x2bd219[_0xc321('0x31')]['replace'](/(\r\n|\n|\r)/gm,'\x20');this['channel'][_0xc321('0xb0')](util['format'](_0xc321('0xcb'),_0x39f222));var _0x1d1beb=this[_0xc321('0x2c')][_0xc321('0xa3')](this,_0x39e293,_0x39f222);this[_0xc321('0xcc')][_0xc321('0xa3')](this,_0x2bd219,_0x39f222);if(!this[_0xc321('0x82')](_0x2bd219[_0xc321('0xcd')])){return this[_0xc321('0x10')][_0xc321('0xb0')](_0xc321('0xce'));}var _0x35f360=this[_0xc321('0x13')][_0xc321('0xa3')](this,_0x2bd219['variable_id']);if(!_0x35f360){return this[_0xc321('0x10')][_0xc321('0x2e')](_0x2bd219,_0xc321('0xcf'));}var _0x1d621b=this;_0x1d1beb[_0xc321('0xd0')](function(_0x35092d,_0x33b243){Object['keys'](_0x35092d)[_0xc321('0xd0')](function(_0x48d975){_0x1d621b[_0xc321('0x10')][_0xc321('0x9b')](util[_0xc321('0x56')](_0xc321('0xd1'),_0x35f360,_0x33b243,_0x48d975),_0x35092d[_0x48d975]);});});this[_0xc321('0x10')]['setVariable'](util[_0xc321('0x56')](_0xc321('0xd2'),_0x35f360),_0x1d1beb[_0xc321('0x9a')]);return this[_0xc321('0x10')]['noop'](util[_0xc321('0x56')]('variable\x20%s\x20set',_0x35f360));};AGIVertices[_0xc321('0x12')]['dial']=function(_0x27a1a9){logger['debug'](util['format'](_0xc321('0xd3'),_0x27a1a9[_0xc321('0x3a')]));if(!this['isConfigured'](_0x27a1a9[_0xc321('0xd4')])){return this[_0xc321('0x10')][_0xc321('0x2e')](_0x27a1a9,_0xc321('0xd5'));}var _0x32a4be=this[_0xc321('0x1e')]['sync'](this,_0x27a1a9[_0xc321('0xd4')]);if(!_0x32a4be){return this[_0xc321('0x10')][_0xc321('0x2e')](_0x27a1a9,_0xc321('0xd6'));}var _0x23d25c=this['channel'][_0xc321('0x59')](_0xc321('0xd7'),[util[_0xc321('0x56')](_0xc321('0xd8'),_0x32a4be),_0x27a1a9[_0xc321('0x67')],_0x27a1a9[_0xc321('0xd9')],_0x27a1a9[_0xc321('0x73')]]);if(_0x23d25c[_0xc321('0xac')]===-0x1){return _0x23d25c;}return this[_0xc321('0x10')][_0xc321('0xb0')](util[_0xc321('0x56')](_0xc321('0xda'),_0xc321('0xd7')));};AGIVertices[_0xc321('0x12')]['dialogflow']=function(_0x2d31c5){logger[_0xc321('0x33')](util[_0xc321('0x56')](_0xc321('0xdb'),_0x2d31c5[_0xc321('0x3a')]));if(!this['isConfigured'](_0x2d31c5[_0xc321('0x7c')])){return this[_0xc321('0x10')]['noop']('no\x20key\x20configured');}if(!this[_0xc321('0x82')](_0x2d31c5[_0xc321('0x5e')])){return this[_0xc321('0x10')]['noop'](_0xc321('0xb6'));}this[_0xc321('0x10')][_0xc321('0xdc')]=!![];this[_0xc321('0xcc')](_0x2d31c5);this['createSquareMessage'](_0x2d31c5[_0xc321('0x5e')],'in');this[_0xc321('0x10')][_0xc321('0xb0')](util[_0xc321('0x56')](_0xc321('0xdd'),_0x2d31c5[_0xc321('0x5e')]));var _0x30df1b=this[_0xc321('0x7b')][_0xc321('0xa3')](this,_0x2d31c5);if(_0x30df1b){for(var _0x5338b3 in _0x30df1b){if(_0x30df1b[_0xc321('0x92')](_0x5338b3)){this[_0xc321('0x10')][_0xc321('0x9b')](util[_0xc321('0x56')](_0xc321('0xde'),_0x5338b3[_0xc321('0xdf')]()),_0x30df1b[_0x5338b3]);}}this[_0xc321('0x44')](_0x30df1b['speech'],_0xc321('0xe0'));return this[_0xc321('0x10')]['noop'](util['format'](_0xc321('0xe1'),_0x30df1b[_0xc321('0xe2')]));}return this[_0xc321('0x10')]['error'](_0x2d31c5,_0xc321('0xe3'));};AGIVertices[_0xc321('0x12')][_0xc321('0xe4')]=function(_0x329ccb){logger[_0xc321('0x33')](util[_0xc321('0x56')](_0xc321('0xe5'),_0x329ccb['label']));if(!this[_0xc321('0x82')](_0x329ccb[_0xc321('0xe6')])){return this['channel'][_0xc321('0xb0')](_0xc321('0xe7'));}if(!this[_0xc321('0x82')](_0x329ccb[_0xc321('0xe8')])){return this[_0xc321('0x10')][_0xc321('0xb0')](_0xc321('0xe9'));}if(!this[_0xc321('0x82')](_0x329ccb[_0xc321('0xea')])){return this['channel'][_0xc321('0xb0')](_0xc321('0xeb'));}if(!this[_0xc321('0x82')](_0x329ccb['ndassistant_url'])){return this[_0xc321('0x10')][_0xc321('0xb0')](_0xc321('0xb6'));}this[_0xc321('0x10')][_0xc321('0xdc')]=!![];this[_0xc321('0xcc')](_0x329ccb);this[_0xc321('0x44')](_0x329ccb['text'],'in');this[_0xc321('0x10')][_0xc321('0xb0')](util[_0xc321('0x56')](_0xc321('0xec'),_0x329ccb[_0xc321('0x5e')]));var _0x72666=this['sestekNDA'][_0xc321('0xa3')](this,_0x329ccb);if(_0x72666){for(var _0x4ed5c0 in _0x72666){if(_0x72666[_0xc321('0x92')](_0x4ed5c0)){this[_0xc321('0x10')][_0xc321('0x9b')](util[_0xc321('0x56')](_0xc321('0xed'),_0x4ed5c0[_0xc321('0xdf')]()),_0x72666[_0x4ed5c0]);}}this[_0xc321('0x44')](_0x72666['speech'],'out');if(_0x72666[_0xc321('0xee')]){this[_0xc321('0x10')][_0xc321('0xb0')](util[_0xc321('0x56')](_0xc321('0xef'),_0x72666[_0xc321('0xee')]));var _0x59a05=this[_0xc321('0x10')][_0xc321('0xf0')](_0x72666[_0xc321('0xee')]);try{fs[_0xc321('0xf1')](_0x72666[_0xc321('0xee')]+_0xc321('0xf2'));}catch(_0x4500f5){logger[_0xc321('0x2e')](_0x4500f5);}return _0x59a05;}else{return this[_0xc321('0x10')][_0xc321('0xb0')](util[_0xc321('0x56')](_0xc321('0xf3'),_0x72666['speech']));}}return this[_0xc321('0x10')][_0xc321('0x2e')](_0x329ccb,_0xc321('0xf4'));};AGIVertices[_0xc321('0x12')][_0xc321('0xf5')]=function(_0x1d55ed){logger[_0xc321('0x33')](util[_0xc321('0x56')](_0xc321('0xf6'),_0x1d55ed[_0xc321('0x3a')]));return this['channel'][_0xc321('0xb0')](_0xc321('0xf5'));};AGIVertices[_0xc321('0x12')][_0xc321('0xf7')]=function(_0x3500cc){logger['info'](util['format']('Enter\x20in\x20EXTERNAL\x20DIAL\x20(%s)\x20block',_0x3500cc['label']));var _0x3a5c03='';if(_0x3500cc[_0xc321('0xf8')]){if(!this[_0xc321('0x82')](_0x3500cc[_0xc321('0xf8')])){return this[_0xc321('0x10')][_0xc321('0x2e')](_0x3500cc,_0xc321('0xf9'));}else{var _0x314690=parseInt(_0x3500cc[_0xc321('0xf8')],0xa);if(isNaN(_0x314690)){_0x3a5c03=_0x3500cc[_0xc321('0xf8')];}else{_0x3a5c03=this['getTrunk'][_0xc321('0xa3')](this,_0x3500cc['trunk_id']);if(!_0x3a5c03){return this[_0xc321('0x10')][_0xc321('0x2e')](_0x3500cc,_0xc321('0xfa'));}}}}else if(_0x3500cc[_0xc321('0xfb')]){_0x3a5c03=_0x3500cc[_0xc321('0xfb')];}else{return this['channel'][_0xc321('0x2e')](_0x3500cc,_0xc321('0xf9'));}var _0x1e4106=this[_0xc321('0x10')][_0xc321('0x59')](_0xc321('0xd7'),[util['format']('SIP/%s/%s',_0x3a5c03,_0x3500cc[_0xc321('0x4b')]),_0x3500cc[_0xc321('0x67')],_0x3500cc[_0xc321('0xd9')],_0x3500cc[_0xc321('0x73')]]);if(_0x1e4106[_0xc321('0xac')]===-0x1){return _0x1e4106;}return this[_0xc321('0x10')][_0xc321('0xb0')](util[_0xc321('0x56')](_0xc321('0xda'),'DIAL'));};AGIVertices[_0xc321('0x12')][_0xc321('0xfc')]=function(_0x48c933){logger[_0xc321('0x33')](util['format'](_0xc321('0xfd'),_0x48c933[_0xc321('0x3a')]));return this['channel'][_0xc321('0xb0')]('finally');};AGIVertices[_0xc321('0x12')][_0xc321('0xe')]=function(_0x282c8a){logger[_0xc321('0x33')](util[_0xc321('0x56')](_0xc321('0xfe'),_0x282c8a[_0xc321('0x3a')]));if(_0x282c8a[_0xc321('0xa4')]===0x0){return this['maxRetry'](_0x282c8a);}_0x282c8a[_0xc321('0xa4')]-=0x1;if(!this[_0xc321('0x82')](_0x282c8a['file_id'])){return this['channel'][_0xc321('0x2e')](_0x282c8a,_0xc321('0xff'));}var _0x33ac3=this[_0xc321('0x21')]['sync'](this,_0x282c8a[_0xc321('0x100')]);if(!_0x33ac3){return this[_0xc321('0x10')][_0xc321('0x2e')](_0x282c8a,'no\x20file\x20audio\x20found');}if(!this[_0xc321('0x82')](_0x282c8a['variable_id'])){return this[_0xc321('0x10')][_0xc321('0x2e')](_0xc321('0xce'));}var _0x47747f=this[_0xc321('0x10')][_0xc321('0x101')](_0x33ac3,_0x282c8a['response'],_0x282c8a[_0xc321('0x102')]);var _0x1855e6=_0x47747f[_0xc321('0xac')]?_0x47747f[_0xc321('0xac')][_0xc321('0x4f')]():'';logger[_0xc321('0x33')]('test',JSON[_0xc321('0x74')](_0x47747f));if(_0x47747f[_0xc321('0xac')]===-0x1){this['createSquareDetailsReport'][_0xc321('0xa3')](this,_0x282c8a,_0x1855e6);return _0x47747f;}else if(_0x47747f['extra']===_0xc321('0x67')){_0x47747f[_0xc321('0xac')]=_0x1855e6[_0xc321('0x9a')]>=parseInt(_0x282c8a['mindigit'])?'x':'i';}else{_0x47747f[_0xc321('0xac')]=_0x1855e6[_0xc321('0x9a')]>=parseInt(_0x282c8a[_0xc321('0x103')])&&_0x1855e6[_0xc321('0x9a')]<=parseInt(_0x282c8a[_0xc321('0x102')])?'x':'i';}var _0xfff76d=this[_0xc321('0x13')][_0xc321('0xa3')](this,_0x282c8a['variable_id']);if(!_0xfff76d){return this[_0xc321('0x10')]['error'](_0x282c8a,_0xc321('0xcf'));}this[_0xc321('0x10')][_0xc321('0x9b')](_0xfff76d,_0x1855e6);if(this[_0xc321('0x82')](_0x282c8a[_0xc321('0x104')])){var _0x28e0b9=parseInt(_0x282c8a[_0xc321('0x104')],0xa);var _0x1728a9=rs[_0xc321('0x105')]({'charset':'*','length':_0x28e0b9});var _0x554005=_0x1855e6[_0xc321('0x9a')];if(_0x554005>0x0){if(_0x554005>_0x28e0b9){this[_0xc321('0xcc')][_0xc321('0xa3')](this,_0x282c8a,_0x282c8a['hiddendigitspos']===_0xc321('0x106')?_0x1728a9+_0x1855e6[_0xc321('0x107')](_0x28e0b9):_0x1855e6[_0xc321('0x107')](0x0,_0x554005-_0x28e0b9)+_0x1728a9);}else{this[_0xc321('0xcc')][_0xc321('0xa3')](this,_0x282c8a,rs[_0xc321('0x105')]({'charset':'*','length':_0x554005}));}}else{this['createSquareDetailsReport'][_0xc321('0xa3')](this,_0x282c8a,'');}}else{this[_0xc321('0xcc')][_0xc321('0xa3')](this,_0x282c8a,_0x1855e6);}return _0x47747f;};AGIVertices[_0xc321('0x12')][_0xc321('0xf')]=function(_0x237fdc){logger['info'](util[_0xc321('0x56')](_0xc321('0x108'),_0x237fdc[_0xc321('0x3a')]));return this[_0xc321('0xe')](_0x237fdc);};AGIVertices[_0xc321('0x12')][_0xc321('0x109')]=function(_0x226791){logger['info'](util[_0xc321('0x56')]('Enter\x20in\x20GOAL\x20(%s)\x20block',_0x226791['label']));this[_0xc321('0xcc')]['sync'](this,_0x226791,_0x226791[_0xc321('0x10a')]);return this['channel']['noop'](util['format'](_0xc321('0x10b'),_0x226791[_0xc321('0x10a')]));};AGIVertices[_0xc321('0x12')][_0xc321('0x10c')]=function(_0x1a74dd){logger[_0xc321('0x33')](util['format'](_0xc321('0x10d'),_0x1a74dd[_0xc321('0x3a')]));if(!this[_0xc321('0x82')](_0x1a74dd['aws_access_key_id'])||!this[_0xc321('0x82')](_0x1a74dd['aws_secret_access_key'])){return this[_0xc321('0x10')][_0xc321('0xb0')]('no\x20valid\x20credentials\x20configured');}if(!this[_0xc321('0x82')](_0x1a74dd['text'])){return this['channel']['noop'](_0xc321('0xb6'));}this['channel'][_0xc321('0xb0')](util[_0xc321('0x56')](_0xc321('0x10e'),_0x1a74dd[_0xc321('0x5e')]));var _0x41be15=this[_0xc321('0x84')]['sync'](this,_0x1a74dd);if(_0x41be15){this[_0xc321('0x10')][_0xc321('0xb0')](util[_0xc321('0x56')](_0xc321('0x10f'),_0x41be15));var _0x5d372e=this[_0xc321('0x10')][_0xc321('0xf0')](_0x41be15);try{fs[_0xc321('0xf1')](_0x41be15+'.wav');}catch(_0x56af67){logger[_0xc321('0x2e')](_0x56af67);}return _0x5d372e;}return this[_0xc321('0x10')]['error'](_0x1a74dd,_0xc321('0x110'));};AGIVertices[_0xc321('0x12')][_0xc321('0x111')]=function(_0x48ae51){logger[_0xc321('0x33')](util[_0xc321('0x56')](_0xc321('0x112'),_0x48ae51[_0xc321('0x3a')]));if(!this['isConfigured'](_0x48ae51['aws_access_key_id'])||!this[_0xc321('0x82')](_0x48ae51[_0xc321('0x85')])){return this[_0xc321('0x10')][_0xc321('0xb0')]('no\x20valid\x20credentials\x20configured');}if(!this[_0xc321('0x82')](_0x48ae51[_0xc321('0x8c')])){return this[_0xc321('0x10')][_0xc321('0xb0')](_0xc321('0x113'));}if(!this[_0xc321('0x82')](_0x48ae51[_0xc321('0x5e')])){return this['channel'][_0xc321('0xb0')](_0xc321('0xb6'));}this[_0xc321('0x10')]['bot']=!![];this[_0xc321('0xcc')](_0x48ae51);this[_0xc321('0x44')](_0x48ae51[_0xc321('0x5e')],'in');this['channel']['noop'](util['format'](_0xc321('0x114'),_0x48ae51['text']));var _0x2f5b97=this[_0xc321('0x8a')][_0xc321('0xa3')](this,_0x48ae51);if(_0x2f5b97){for(var _0x365d9f in _0x2f5b97){if(_0x2f5b97[_0xc321('0x92')](_0x365d9f)&&_[_0xc321('0x93')](_0x2f5b97[_0x365d9f])){this['channel'][_0xc321('0x9b')](util[_0xc321('0x56')](_0xc321('0x115'),_0x365d9f[_0xc321('0xdf')]()),_0x2f5b97[_0x365d9f]);}}if(_[_0xc321('0x4a')](_0x2f5b97['message'])){return this[_0xc321('0x10')][_0xc321('0xb0')](_0xc321('0x116'));}else{this[_0xc321('0x44')](_0x2f5b97[_0xc321('0x78')],_0xc321('0xe0'));return this['channel'][_0xc321('0xb0')](util['format'](_0xc321('0x117'),_0x2f5b97[_0xc321('0x78')]));}}return this[_0xc321('0x10')][_0xc321('0x2e')](_0x48ae51,_0xc321('0x118'));};AGIVertices[_0xc321('0x12')][_0xc321('0x119')]=function(_0x4a7871){logger['info'](util[_0xc321('0x56')](_0xc321('0x11a'),_0x4a7871[_0xc321('0x3a')],_0x4a7871['timeout']));if(!this[_0xc321('0x82')](_0x4a7871[_0xc321('0x7c')])){return this[_0xc321('0x10')][_0xc321('0xb0')]('no\x20key\x20configured');}var _0x751332='wav';var _0x24f684=util['format'](_0xc321('0x11b'),FILES_PATH,rs[_0xc321('0x105')](0x4));var _0x2bdb29=util[_0xc321('0x56')](_0xc321('0x9c'),_0x24f684,_0x751332);var _0x5cb12d=!![];if(_0x4a7871['beep']===_0xc321('0x11c')){_0x5cb12d=![];}var _0x58f1e9=this[_0xc321('0x10')][_0xc321('0x11d')](_0x24f684,_0x751332,_0x4a7871[_0xc321('0x11e')],_0x4a7871['timeout'],undefined,_0x5cb12d);if(_0x58f1e9[_0xc321('0xac')]!==-0x1){this[_0xc321('0x10')]['noop'](util['format'](_0xc321('0x11f'),_0x2bdb29));var _0x5d66c9=this[_0xc321('0x8d')][_0xc321('0xa3')](this,_0x4a7871,_0x2bdb29);if(_0x5d66c9){for(var _0x51cab3 in _0x5d66c9){if(_0x5d66c9[_0xc321('0x92')](_0x51cab3)){this[_0xc321('0x10')][_0xc321('0x9b')](util[_0xc321('0x56')](_0xc321('0x120'),_0x51cab3['toUpperCase']()),_0x5d66c9[_0x51cab3]);}}return this[_0xc321('0x10')][_0xc321('0xb0')](util[_0xc321('0x56')](_0xc321('0x121'),JSON[_0xc321('0x74')](_0x5d66c9)));}}return _0x58f1e9;};AGIVertices[_0xc321('0x12')][_0xc321('0x122')]=function(_0x5ac64a){logger[_0xc321('0x33')](util['format'](_0xc321('0x123'),_0x5ac64a[_0xc321('0x3a')]));if(!this['isConfigured'](_0x5ac64a['appid'])){return this[_0xc321('0x10')]['noop'](_0xc321('0x124'));}if(!this[_0xc321('0x82')](_0x5ac64a['appsecret'])){return this['channel']['noop'](_0xc321('0x125'));}var _0x3afb1e=_0xc321('0x126');var _0x48e610=util[_0xc321('0x56')](_0xc321('0x11b'),FILES_PATH,rs[_0xc321('0x105')](0x4));var _0x4298f4=util['format'](_0xc321('0x9c'),_0x48e610,_0x3afb1e);var _0x3c5fc7=!![];if(_0x5ac64a['beep']===_0xc321('0x11c')){_0x3c5fc7=![];}var _0x1d8c83=this[_0xc321('0x10')][_0xc321('0x11d')](_0x48e610,_0x3afb1e,_0x5ac64a[_0xc321('0x11e')],_0x5ac64a['timeout'],undefined,_0x3c5fc7);if(_0x1d8c83[_0xc321('0xac')]!==-0x1){this[_0xc321('0x10')]['noop'](util['format'](_0xc321('0x127'),_0x4298f4));var _0x5d5fef=this[_0xc321('0x128')][_0xc321('0xa3')](this,_0x5ac64a,_0x4298f4);if(_0x5d5fef){for(var _0x3a8b2c in _0x5d5fef){if(_0x5d5fef[_0xc321('0x92')](_0x3a8b2c)){this[_0xc321('0x10')][_0xc321('0x9b')](util[_0xc321('0x56')]('TILDE_ASR_%s',_0x3a8b2c['toUpperCase']()),_0x5d5fef[_0x3a8b2c]);}}return this[_0xc321('0x10')][_0xc321('0xb0')](util[_0xc321('0x56')](_0xc321('0x129'),JSON[_0xc321('0x74')](_0x5d5fef)));}}return _0x1d8c83;};AGIVertices[_0xc321('0x12')][_0xc321('0x12a')]=function(_0x49262b){logger['info'](util['format'](_0xc321('0x12b'),_0x49262b[_0xc321('0x3a')]));return this[_0xc321('0x10')][_0xc321('0x12c')](_0x49262b[_0xc321('0x12d')],_0x49262b[_0xc321('0x3f')],_0x49262b['priority']);};AGIVertices[_0xc321('0x12')][_0xc321('0x12e')]=function(_0x3b9027){logger[_0xc321('0x33')](util[_0xc321('0x56')](_0xc321('0x12f'),_0x3b9027['label']));if(!this[_0xc321('0x82')](_0x3b9027[_0xc321('0x130')])){return this[_0xc321('0x10')][_0xc321('0x2e')](_0x3b9027,_0xc321('0x131'));}try{var _0x45b6d4=eval(_0x3b9027['condition'])?_0xc321('0x132'):_0xc321('0x133');this['channel'][_0xc321('0xb0')](util[_0xc321('0x56')]('EVAL\x20CONDITION\x20%s\x20%s',_0x3b9027[_0xc321('0x130')],_0x45b6d4));return{'code':0xc8,'result':_0x45b6d4};}catch(_0x48a620){return{'code':0xc8,'result':_0xc321('0x133')};}};AGIVertices[_0xc321('0x12')]['gotoiftime']=function(_0x1d4572){logger[_0xc321('0x33')](util['format'](_0xc321('0x134'),_0x1d4572['label']));if(!this[_0xc321('0x82')](_0x1d4572[_0xc321('0x135')])){return this[_0xc321('0x10')][_0xc321('0x2e')](_0x1d4572,_0xc321('0x136'));}var _0x37e80a=this[_0xc321('0x27')]['sync'](this,_0x1d4572[_0xc321('0x135')]);if(!_0x37e80a){return this[_0xc321('0x10')]['error'](_0x1d4572,_0xc321('0x137'));}for(var _0x1c0e6b=0x0;_0x1c0e6b<_0x37e80a[_0xc321('0x9a')];_0x1c0e6b+=0x1){var _0x4eff39=this[_0xc321('0x10')][_0xc321('0x13')](util[_0xc321('0x56')](_0xc321('0x138'),_0x37e80a[_0x1c0e6b]));if(_0x4eff39['result']===-0x1){return _0x4eff39;}logger[_0xc321('0x33')](util[_0xc321('0x56')](_0xc321('0x139'),_0x37e80a[_0x1c0e6b],_0x4eff39[_0xc321('0x9f')]));if(_0x4eff39[_0xc321('0x9f')]===_0xc321('0x132')){logger['info'](util[_0xc321('0x56')](_0xc321('0x139'),_0x37e80a[_0x1c0e6b],_0xc321('0x132')));this[_0xc321('0x10')][_0xc321('0xb0')](util[_0xc321('0x56')](_0xc321('0x139'),_0x37e80a[_0x1c0e6b],'true'));return{'code':0xc8,'result':_0xc321('0x132')};}else{logger[_0xc321('0x33')](util[_0xc321('0x56')](_0xc321('0x139'),_0x37e80a[_0x1c0e6b],_0xc321('0x133')));this[_0xc321('0x10')][_0xc321('0xb0')](util[_0xc321('0x56')](_0xc321('0x139'),_0x37e80a[_0x1c0e6b],_0xc321('0x133')));}}return{'code':0xc8,'result':_0xc321('0x133')};};AGIVertices[_0xc321('0x12')][_0xc321('0x13a')]=function(_0x14fc26){logger[_0xc321('0x33')](util[_0xc321('0x56')]('Enter\x20in\x20HANGUP\x20(%s)\x20block',_0x14fc26[_0xc321('0x3a')]));return this[_0xc321('0x10')][_0xc321('0x13a')]();};AGIVertices['prototype'][_0xc321('0x13b')]=function(_0x30d1ab){logger[_0xc321('0x33')](util[_0xc321('0x56')](_0xc321('0x13c'),_0x30d1ab[_0xc321('0x3a')]));if(!this[_0xc321('0x82')](_0x30d1ab[_0xc321('0x7c')])){return this[_0xc321('0x10')]['noop'](_0xc321('0x13d'));}var _0x2c35c6='wav';var _0x4589bc=util[_0xc321('0x56')]('%s/recordings/%s',FILES_PATH,rs[_0xc321('0x105')](0x4));var _0x51e110=util[_0xc321('0x56')](_0xc321('0x9c'),_0x4589bc,_0x2c35c6);var _0x5b3f6d=!![];if(_0x30d1ab[_0xc321('0x13e')]===_0xc321('0x11c')){_0x5b3f6d=![];}var _0x4861d8=this['channel']['recordFile'](_0x4589bc,_0x2c35c6,_0x30d1ab['intKey'],_0x30d1ab[_0xc321('0x67')],undefined,_0x5b3f6d);if(_0x4861d8[_0xc321('0xac')]!==-0x1){this['channel'][_0xc321('0xb0')](util[_0xc321('0x56')]('ispeech\x20%s\x20file\x20created',_0x51e110));var _0x336a4e=this['ispeechASR'][_0xc321('0xa3')](this,_0x30d1ab,_0x51e110);if(_0x336a4e){for(var _0x39c076 in _0x336a4e){if(_0x336a4e[_0xc321('0x92')](_0x39c076)){this[_0xc321('0x10')]['setVariable'](util[_0xc321('0x56')]('ISPEECH_ASR_%s',_0x39c076[_0xc321('0xdf')]()),_0x336a4e[_0x39c076]);}}return this[_0xc321('0x10')]['noop'](util[_0xc321('0x56')]('IspeechASR\x20Result\x20%s',JSON[_0xc321('0x74')](_0x336a4e)));}}return _0x4861d8;};AGIVertices[_0xc321('0x12')][_0xc321('0x13f')]=function(_0x1afe14){logger['info'](util[_0xc321('0x56')](_0xc321('0x140'),_0x1afe14[_0xc321('0x3a')]));if(!this[_0xc321('0x82')](_0x1afe14[_0xc321('0x7c')])){return this[_0xc321('0x10')]['noop']('no\x20key\x20configured');}if(!this[_0xc321('0x82')](_0x1afe14[_0xc321('0x5e')])){return this['channel'][_0xc321('0xb0')](_0xc321('0xb6'));}this[_0xc321('0x10')][_0xc321('0xb0')](util[_0xc321('0x56')]('Trying\x20ispeech\x20TTS\x20%s',_0x1afe14[_0xc321('0x5e')]));var _0x14bdde=this[_0xc321('0x7e')][_0xc321('0xa3')](this,_0x1afe14);if(_0x14bdde){this[_0xc321('0x10')][_0xc321('0xb0')](util[_0xc321('0x56')](_0xc321('0x141'),_0x14bdde));var _0x2b19cc=this['channel'][_0xc321('0xf0')](_0x14bdde,_0x1afe14[_0xc321('0x11e')]);try{fs[_0xc321('0xf1')](_0x14bdde+_0xc321('0xf2'));}catch(_0xe6e9aa){logger[_0xc321('0x2e')](_0xe6e9aa);}return _0x2b19cc;}return this['channel'][_0xc321('0x2e')](_0x1afe14,_0xc321('0x142'));};AGIVertices[_0xc321('0x12')][_0xc321('0x143')]=function(_0xe3f48c){logger[_0xc321('0x33')](util[_0xc321('0x56')](_0xc321('0x144'),_0xe3f48c[_0xc321('0x3a')]));if(!this[_0xc321('0x82')](_0xe3f48c[_0xc321('0x145')])){return this['channel'][_0xc321('0x2e')](_0xe3f48c,'no\x20find\x20by\x20configured');}logger[_0xc321('0x33')](util[_0xc321('0x56')](_0xc321('0x146'),this['channel'][_0xc321('0x3c')],_0xe3f48c['findBy']));var _0x507a94=this['agentLogin']['sync'](this,_0xe3f48c['findBy']);if(_0x507a94){logger[_0xc321('0x33')](util[_0xc321('0x56')](_0xc321('0x147'),this['channel'][_0xc321('0x3c')],_0xe3f48c[_0xc321('0x145')]));this[_0xc321('0x10')]['noop'](util[_0xc321('0x56')]('AGENT\x20%s\x20FOUND\x20BY',this[_0xc321('0x10')][_0xc321('0x3c')],_0xe3f48c[_0xc321('0x145')]));return{'code':0xc8,'result':_0xc321('0x148')};}else{logger[_0xc321('0x33')](util['format'](_0xc321('0x149'),this['channel'][_0xc321('0x3c')],_0xe3f48c[_0xc321('0x145')]));this[_0xc321('0x10')][_0xc321('0xb0')](util['format'](_0xc321('0x149'),this['channel'][_0xc321('0x3c')],_0xe3f48c[_0xc321('0x145')]));return{'code':0xc8,'result':_0xc321('0x14a')};}};AGIVertices[_0xc321('0x12')][_0xc321('0x14b')]=function(_0x126bfb){logger[_0xc321('0x33')](util[_0xc321('0x56')](_0xc321('0x14c'),_0x126bfb['label']));if(!this[_0xc321('0x82')](_0x126bfb[_0xc321('0x145')])){return this[_0xc321('0x10')][_0xc321('0x2e')](_0x126bfb,_0xc321('0x14d'));}logger['info'](util[_0xc321('0x56')](_0xc321('0x146'),this['channel']['callerid'],_0x126bfb[_0xc321('0x145')]));var _0x8726c1=this[_0xc321('0x14e')][_0xc321('0xa3')](this,_0x126bfb['findBy']);if(_0x8726c1){logger[_0xc321('0x33')](util[_0xc321('0x56')](_0xc321('0x147'),this['channel'][_0xc321('0x3c')],_0x126bfb[_0xc321('0x145')]));this[_0xc321('0x10')]['noop'](util['format'](_0xc321('0x147'),this[_0xc321('0x10')]['callerid'],_0x126bfb[_0xc321('0x145')]));return{'code':0xc8,'result':_0xc321('0x148')};}else{logger[_0xc321('0x33')](util[_0xc321('0x56')](_0xc321('0x149'),this[_0xc321('0x10')][_0xc321('0x3c')],_0x126bfb[_0xc321('0x145')]));this[_0xc321('0x10')][_0xc321('0xb0')](util['format'](_0xc321('0x149'),this['channel'][_0xc321('0x3c')],_0x126bfb[_0xc321('0x145')]));return{'code':0xc8,'result':_0xc321('0x14a')};}};AGIVertices[_0xc321('0x12')][_0xc321('0x14f')]=function(_0x103cb9){logger[_0xc321('0x33')](util[_0xc321('0x56')]('Enter\x20in\x20MATH\x20(%s)\x20block',_0x103cb9['label']));if(!this[_0xc321('0x82')](_0x103cb9[_0xc321('0x150')])){return this[_0xc321('0x10')]['error'](_0x103cb9,_0xc321('0x151'));}this['channel'][_0xc321('0xb0')](util[_0xc321('0x56')](_0xc321('0x152'),_0x103cb9[_0xc321('0x150')]));var _0xe763f3=eval(_0x103cb9[_0xc321('0x150')]);if(!this['isConfigured'](_0x103cb9['variable_id'])){return this[_0xc321('0x10')][_0xc321('0xb0')]('no\x20variable\x20selected\x20for\x20the\x20result');}var _0x46798a=this[_0xc321('0x13')][_0xc321('0xa3')](this,_0x103cb9[_0xc321('0xcd')]);if(!_0x46798a){return this[_0xc321('0x10')][_0xc321('0x2e')](_0x103cb9,_0xc321('0xcf'));}if(_[_0xc321('0x98')](_0xe763f3)){var _0xe9c038=this;_0xe763f3[_0xc321('0xd0')](function(_0x29a83d,_0x4878b2){_0xe9c038['channel'][_0xc321('0x9b')](util['format'](_0xc321('0x153'),_0x46798a,_0x4878b2),_0x29a83d);});return this[_0xc321('0x10')][_0xc321('0xb0')](util[_0xc321('0x56')](_0xc321('0x154'),_0x46798a));}else{return this[_0xc321('0x10')][_0xc321('0x9b')](_0x46798a,_0xe763f3);}};AGIVertices[_0xc321('0x12')][_0xc321('0xd')]=function(_0x20232d){logger[_0xc321('0x33')](util[_0xc321('0x56')](_0xc321('0x155'),_0x20232d[_0xc321('0x3a')]));if(_0x20232d['retry']===0x0){return this[_0xc321('0xa2')](_0x20232d);}_0x20232d[_0xc321('0xa4')]-=0x1;if(!this[_0xc321('0x82')](_0x20232d[_0xc321('0x100')])){return this[_0xc321('0x10')][_0xc321('0x2e')](_0x20232d,_0xc321('0xff'));}var _0x559f71=this['getSound']['sync'](this,_0x20232d['file_id']);if(!_0x559f71){return this[_0xc321('0x10')][_0xc321('0x2e')](_0x20232d,_0xc321('0x156'));}var _0x596767=this[_0xc321('0x10')][_0xc321('0x101')](_0x559f71,_0x20232d['response'],_0x20232d[_0xc321('0x157')]);var _0x443518=_0x596767[_0xc321('0xac')];if(_0x596767['result']===-0x1){this['createSquareDetailsReport'][_0xc321('0xa3')](this,_0x20232d,'-1');return _0x596767;}else if(_0x596767[_0xc321('0x9f')]===_0xc321('0x67')){_0x596767[_0xc321('0xac')]=_0x596767['result'][_0xc321('0x9a')]>0x0?_0x596767[_0xc321('0xac')]:'t';}else if(_[_0xc321('0x46')](_0x596767[_0xc321('0xac')])){_0x596767[_0xc321('0xac')]='#';_0x443518='#';}if(!this[_0xc321('0x82')](_0x20232d['variable_id'])){this['channel'][_0xc321('0xb0')]('no\x20variable\x20selected\x20for\x20the\x20result');}else{var _0xe5705=this['getVariable'][_0xc321('0xa3')](this,_0x20232d[_0xc321('0xcd')]);if(!_0xe5705){return this[_0xc321('0x10')]['error'](_0x20232d,_0xc321('0xcf'));}this[_0xc321('0x10')]['setVariable'](_0xe5705,_0x443518);}this['createSquareDetailsReport'][_0xc321('0xa3')](this,_0x20232d,_0x443518);return _0x596767;};AGIVertices['prototype']['noop']=function(_0xf82e45){logger['info'](util[_0xc321('0x56')](_0xc321('0x158'),_0xf82e45['label']));return this[_0xc321('0x10')]['noop'](_0xf82e45[_0xc321('0x159')]||_0xf82e45['label']);};AGIVertices['prototype'][_0xc321('0x15a')]=function(_0x2e1f0f){logger[_0xc321('0x33')](util[_0xc321('0x56')](_0xc321('0x15b'),_0x2e1f0f[_0xc321('0x3a')]));if(!this[_0xc321('0x82')](_0x2e1f0f[_0xc321('0x145')])){return this[_0xc321('0x10')][_0xc321('0x2e')](_0x2e1f0f,_0xc321('0x14d'));}logger[_0xc321('0x33')](util[_0xc321('0x56')]('FIND\x20AGENT\x20%s\x20BY\x20%s',this['channel'][_0xc321('0x3c')],_0x2e1f0f[_0xc321('0x145')]));var _0x5974aa=this[_0xc321('0x51')][_0xc321('0xa3')](this,_0x2e1f0f[_0xc321('0x15c')]);var _0x595ca8=this[_0xc321('0x15d')][_0xc321('0xa3')](this,_0x2e1f0f[_0xc321('0x145')],_0x5974aa);if(_0x595ca8){logger[_0xc321('0x33')](util[_0xc321('0x56')](_0xc321('0x147'),this[_0xc321('0x10')][_0xc321('0x3c')],_0x2e1f0f[_0xc321('0x145')]));this['channel'][_0xc321('0xb0')](util['format'](_0xc321('0x147'),this[_0xc321('0x10')][_0xc321('0x3c')],_0x2e1f0f['findBy']));return{'code':0xc8,'result':_0xc321('0x148')};}else{logger[_0xc321('0x33')](util[_0xc321('0x56')](_0xc321('0x149'),this[_0xc321('0x10')][_0xc321('0x3c')],_0x2e1f0f[_0xc321('0x145')]));this[_0xc321('0x10')][_0xc321('0xb0')](util['format'](_0xc321('0x147'),this[_0xc321('0x10')][_0xc321('0x3c')],_0x2e1f0f[_0xc321('0x145')]));return{'code':0xc8,'result':_0xc321('0x14a')};}};AGIVertices[_0xc321('0x12')]['playback']=function(_0x1d7faf){logger[_0xc321('0x33')](util['format']('Enter\x20in\x20PLAYBACK\x20(%s)\x20block',_0x1d7faf[_0xc321('0x3a')]));if(!this['isConfigured'](_0x1d7faf['file_id'])){return this['channel'][_0xc321('0x2e')](_0x1d7faf,_0xc321('0xff'));}var _0x4238c6=this[_0xc321('0x21')][_0xc321('0xa3')](this,_0x1d7faf[_0xc321('0x100')]);if(!_0x4238c6){return this[_0xc321('0x10')]['error'](_0x1d7faf,_0xc321('0x156'));}var _0x31ed0f=this['channel'][_0xc321('0x59')](_0xc321('0x15e'),[_0x4238c6,_0x1d7faf[_0xc321('0xd9')]]);if(_0x31ed0f[_0xc321('0xac')]===-0x1){return _0x31ed0f;}return this[_0xc321('0x10')][_0xc321('0xb0')](util[_0xc321('0x56')](_0xc321('0x15f'),_0xc321('0x15e'),_0x4238c6));};AGIVertices[_0xc321('0x12')][_0xc321('0x160')]=function(_0xd931bd){logger[_0xc321('0x33')](util[_0xc321('0x56')](_0xc321('0x161'),_0xd931bd[_0xc321('0x3a')]));if(!this[_0xc321('0x82')](_0xd931bd[_0xc321('0x162')])){return this[_0xc321('0x10')][_0xc321('0x2e')](_0xd931bd,_0xc321('0x163'));}var _0x4993ee='';var _0x8c2587=parseInt(_0xd931bd['queue_id'],0xa);if(isNaN(_0x8c2587)){_0x4993ee=_0xd931bd['queue_id'];}else{_0x4993ee=this['getVoiceQueue'][_0xc321('0xa3')](this,_0xd931bd['queue_id']);if(!_0x4993ee){return this['channel'][_0xc321('0x2e')](_0xd931bd,'no\x20queue\x20found');}}var _0x5c98c3='';if(this[_0xc321('0x82')](_0xd931bd[_0xc321('0x100')])){var _0x5c3d3d=this[_0xc321('0x21')][_0xc321('0xa3')](this,_0xd931bd['file_id']);if(_0x5c3d3d){_0x5c98c3=_0x5c3d3d;}}this[_0xc321('0xcc')][_0xc321('0xa3')](this,_0xd931bd,_0x4993ee);if(_0xd931bd[_0xc321('0xd9')][_0xc321('0x164')]('x')<0x0){_0xd931bd['opts']+='x';}if(_0xd931bd[_0xc321('0xd9')][_0xc321('0x164')]('X')<0x0){_0xd931bd['opts']+='X';}this[_0xc321('0x10')][_0xc321('0x9b')](_0xc321('0x165'),_0x4993ee?_0x4993ee[_0xc321('0x166')]():'');var _0x5b62ed=this[_0xc321('0x10')]['exec']('QUEUE',[_0x4993ee,_0xd931bd[_0xc321('0xd9')],_0xd931bd[_0xc321('0x73')],_0x5c98c3,_0xd931bd[_0xc321('0x67')],_0xd931bd[_0xc321('0x9')],_0xd931bd[_0xc321('0x167')],_0xd931bd[_0xc321('0x168')],'',_0xd931bd[_0xc321('0x169')]]);if(_0x5b62ed[_0xc321('0xac')]===-0x1){return _0x5b62ed;}return this[_0xc321('0x10')][_0xc321('0xb0')](util[_0xc321('0x56')]('Executed\x20command\x20%s\x20%s',_0xc321('0x16a'),_0x4993ee));};AGIVertices[_0xc321('0x12')][_0xc321('0x16b')]=function(_0x14767a){logger['info'](util[_0xc321('0x56')](_0xc321('0x16c'),_0x14767a['label']));var _0x2cbc25=_0x14767a[_0xc321('0x16d')]||_0xc321('0x126');var _0xdf77b4=util[_0xc321('0x56')](_0xc321('0x16e'),this[_0xc321('0x10')]['uniqueid'],rs[_0xc321('0x105')](0x5));var _0x1ce4b2=util[_0xc321('0x56')](_0xc321('0x16f'),FILES_PATH,_0xdf77b4,_0x2cbc25);var _0x252800=util['format'](_0xc321('0x11b'),FILES_PATH,_0xdf77b4);this[_0xc321('0x3d')][_0xc321('0xa3')](this,_0x14767a,_0xdf77b4,_0x1ce4b2);this[_0xc321('0x10')][_0xc321('0x9b')](_0xc321('0x170'),_0xdf77b4);logger['info']('Recording\x20%s\x20%s\x20%s\x20%s',_0x252800,_0x2cbc25,_0x14767a[_0xc321('0x171')],_0x14767a['timeout']);return this[_0xc321('0x10')][_0xc321('0x11d')](_0x252800,_0x2cbc25,_0x14767a[_0xc321('0x171')],_0x14767a[_0xc321('0x67')],undefined,!![]);};AGIVertices[_0xc321('0x12')][_0xc321('0x172')]=function(_0x17bb7d){logger[_0xc321('0x33')](util['format'](_0xc321('0x173'),_0x17bb7d['label']));if(!this[_0xc321('0x82')](_0x17bb7d[_0xc321('0x73')])){return this[_0xc321('0x10')][_0xc321('0xb0')](_0xc321('0x174'));}var _0xb840aa=this[_0xc321('0x65')]['sync'](this,_0x17bb7d);logger[_0xc321('0x33')](util[_0xc321('0x56')](_0xc321('0x175'),util[_0xc321('0x176')](_0xb840aa,{'showHidden':![],'depth':null})));if(!this[_0xc321('0x82')](_0x17bb7d[_0xc321('0xcd')])){return this[_0xc321('0x10')][_0xc321('0xb0')]('no\x20variable\x20selected\x20for\x20the\x20response');}var _0x1f1b39=this['getVariable'][_0xc321('0xa3')](this,_0x17bb7d[_0xc321('0xcd')]);if(!_0x1f1b39){return this[_0xc321('0x10')][_0xc321('0x2e')](_0x17bb7d,_0xc321('0xcf'));}this[_0xc321('0x10')][_0xc321('0x9b')](util['format'](_0xc321('0x177'),_0x1f1b39),_0xb840aa[_0xc321('0x77')]?_0xb840aa[_0xc321('0x77')]:'200');this[_0xc321('0x10')][_0xc321('0x9b')](util[_0xc321('0x56')]('%s_STATUS_MESSAGE',_0x1f1b39),_0xb840aa[_0xc321('0x178')]?_0xb840aa[_0xc321('0x178')]:'OK');if(_0xb840aa[_0xc321('0x6c')]){try{this[_0xc321('0x99')](_0xb840aa[_0xc321('0x6c')],_0x1f1b39);}catch(_0x2d47fa){logger[_0xc321('0x2e')](util[_0xc321('0x56')](_0xc321('0x179'),_0x1f1b39));}}return this['channel']['noop'](util[_0xc321('0x56')](_0xc321('0x17a'),_0x1f1b39));};AGIVertices['prototype'][_0xc321('0x17b')]=function(_0x3ce50c){logger[_0xc321('0x33')](util[_0xc321('0x56')](_0xc321('0x17c'),_0x3ce50c[_0xc321('0x3a')]));return this[_0xc321('0x10')][_0xc321('0x17d')](_0x3ce50c[_0xc321('0x17e')][_0xc321('0x5a')](/\s+/g,''),_0x3ce50c[_0xc321('0x171')]);};AGIVertices[_0xc321('0x12')]['saynumber']=function(_0x280d0a){logger[_0xc321('0x33')](util['format'](_0xc321('0x17f'),_0x280d0a[_0xc321('0x3a')]));return this[_0xc321('0x10')][_0xc321('0x180')](_0x280d0a[_0xc321('0x68')][_0xc321('0x5a')](/\s+/g,''),_0x280d0a[_0xc321('0x171')]);};AGIVertices[_0xc321('0x12')][_0xc321('0x181')]=function(_0x58eac0){logger[_0xc321('0x33')](util[_0xc321('0x56')](_0xc321('0x182'),_0x58eac0[_0xc321('0x3a')]));return this['channel'][_0xc321('0x183')](_0x58eac0[_0xc321('0x5e')],_0x58eac0['escape_digits']);};AGIVertices[_0xc321('0x12')][_0xc321('0x184')]=function(_0x534897){logger['info'](util['format'](_0xc321('0x185'),_0x534897[_0xc321('0x3a')]));if(!this['isConfigured'](_0x534897[_0xc321('0x186')])){return this['channel'][_0xc321('0xb0')](_0xc321('0x187'));}var _0x242c3d=this[_0xc321('0x188')]['sync'](this,_0x534897[_0xc321('0x186')]);if(!_0x242c3d||!_0x242c3d[_0xc321('0x189')]){return this['channel']['error'](_0x534897,_0xc321('0x18a'));}var _0x59c752={'from':util[_0xc321('0x56')](_0xc321('0x18b'),_0x242c3d['name'],_0x242c3d['email']||_0x242c3d[_0xc321('0x189')][_0xc321('0x18c')]),'to':_0x534897['to']||'','cc':_0x534897['cc']||'','bcc':_0x534897[_0xc321('0x18d')]||'','subject':_0x534897[_0xc321('0x18e')],'html':_0x534897['text'],'text':_0x534897[_0xc321('0x5e')]};var _0x10be4e={'tls':{'rejectUnauthorized':![]}};if(_0x242c3d[_0xc321('0x189')][_0xc321('0x18f')]){_0x10be4e[_0xc321('0x18f')]=_0x242c3d[_0xc321('0x189')][_0xc321('0x18f')];}else{_0x10be4e['host']=_0x242c3d[_0xc321('0x189')][_0xc321('0x190')];_0x10be4e[_0xc321('0x191')]=_0x242c3d[_0xc321('0x189')]['port'];_0x10be4e[_0xc321('0x192')]=_0x242c3d[_0xc321('0x189')][_0xc321('0x192')];}if(_0x242c3d[_0xc321('0x189')][_0xc321('0x193')]){_0x10be4e['auth']={'user':_0x242c3d[_0xc321('0x189')]['user'],'pass':_0x242c3d[_0xc321('0x189')][_0xc321('0x194')]};}if(this[_0xc321('0x82')](_0x534897[_0xc321('0x195')])){}logger[_0xc321('0x196')](_0xc321('0x197'),JSON[_0xc321('0x74')](_0x59c752));this['createSquareDetailsReport'][_0xc321('0xa3')](this,_0x534897,_0x534897[_0xc321('0x186')]);this[_0xc321('0x10')]['noop'](util[_0xc321('0x56')](_0xc321('0x198'),_0x242c3d[_0xc321('0x17')]));this[_0xc321('0x25')]['sync'](this,_0x10be4e,_0x59c752);return this['channel']['noop'](_0xc321('0x199'));};AGIVertices[_0xc321('0x12')][_0xc321('0x19a')]=function(_0x5efe28){logger[_0xc321('0x33')](util[_0xc321('0x56')]('Enter\x20in\x20SENDFAX\x20(%s)\x20block',_0x5efe28[_0xc321('0x3a')]));return this[_0xc321('0x10')]['noop']('SENDFAX\x20block\x20not\x20implemented');};AGIVertices[_0xc321('0x12')]['sendSMS']=function(_0x32dae5){logger[_0xc321('0x33')](util[_0xc321('0x56')](_0xc321('0x19b'),_0x32dae5[_0xc321('0x3a')]));if(!this['isConfigured'](_0x32dae5[_0xc321('0x19c')])){return this[_0xc321('0x10')][_0xc321('0xb0')]('no\x20sms\x20account\x20configured');}var _0x8e6210=this[_0xc321('0x36')][_0xc321('0xa3')](this,_0x32dae5[_0xc321('0x19c')]);if(!_0x8e6210){return this[_0xc321('0x10')][_0xc321('0x2e')](_0x32dae5,_0xc321('0x19d'));}var _0x96c153={'body':_0x32dae5['sms_text'],'phone':_0x32dae5['to']||'','SmsAccountId':_0x8e6210['id']};logger[_0xc321('0x196')]('sendSMS\x20message',JSON[_0xc321('0x74')](_0x96c153));this[_0xc321('0xcc')][_0xc321('0xa3')](this,_0x32dae5,_0x32dae5[_0xc321('0x19c')]);this[_0xc321('0x10')][_0xc321('0xb0')](util[_0xc321('0x56')](_0xc321('0x19e'),_0x8e6210[_0xc321('0x17')]));this[_0xc321('0x38')][_0xc321('0xa3')](this,_0x96c153);return this[_0xc321('0x10')][_0xc321('0xb0')](_0xc321('0x19f'));};AGIVertices[_0xc321('0x12')]['set']=function(_0x728755){logger[_0xc321('0x33')](util[_0xc321('0x56')](_0xc321('0x1a0'),_0x728755[_0xc321('0x3a')]));if(!this[_0xc321('0x82')](_0x728755['variable_id'])){return this[_0xc321('0x10')][_0xc321('0x2e')](_0x728755,'no\x20variable\x20selected');}var _0x39ee1b=this[_0xc321('0x13')][_0xc321('0xa3')](this,_0x728755[_0xc321('0xcd')]);if(!_0x39ee1b){return this[_0xc321('0x10')]['error'](_0x728755,_0xc321('0xcf'));}return this[_0xc321('0x10')][_0xc321('0x9b')](_0x39ee1b,_0x728755[_0xc321('0x1a1')]);};AGIVertices[_0xc321('0x12')][_0xc321('0x1a2')]=function(_0x35cbf2){logger[_0xc321('0x33')](util['format'](_0xc321('0x1a3'),_0x35cbf2[_0xc321('0x3a')]));this[_0xc321('0x10')][_0xc321('0xb0')](_0xc321('0x1a4'));if(_0x35cbf2[_0xc321('0xa8')]===_0xc321('0x1a5')){this[_0xc321('0x10')][_0xc321('0xb0')]('Answer');return this[_0xc321('0x10')][_0xc321('0xa8')]();}return this[_0xc321('0x10')][_0xc321('0xb0')](_0xc321('0x1a6'));};AGIVertices[_0xc321('0x12')][_0xc321('0x1a7')]=function(_0x4ff3df){logger[_0xc321('0x33')](util[_0xc321('0x56')]('Enter\x20in\x20SUBPROJECT\x20(%s)\x20block',_0x4ff3df[_0xc321('0x3a')]));if(!this[_0xc321('0x82')](_0x4ff3df[_0xc321('0x1a8')])){return this[_0xc321('0x10')][_0xc321('0x2e')](_0x4ff3df,_0xc321('0x1a9'));}var _0x4d0c69=this[_0xc321('0x18')]['sync'](this,_0x4ff3df[_0xc321('0x1a8')]);if(!this[_0xc321('0x82')](_0x4d0c69)){return this['channel'][_0xc321('0x2e')](_0x4ff3df,util[_0xc321('0x56')](_0xc321('0x1aa'),_0x4ff3df['project_id']));}if(_0x4d0c69===this['channel'][_0xc321('0x42')]){return this[_0xc321('0x10')][_0xc321('0x2e')](_0x4ff3df,_0xc321('0x1ab'));}this[_0xc321('0xcc')][_0xc321('0xa3')](this,_0x4ff3df,_0x4d0c69);var _0x4add02=this[_0xc321('0x10')][_0xc321('0x59')](_0xc321('0x1ac'),util['format'](_0xc321('0x1ad'),config[_0xc321('0x9')][_0xc321('0x190')]||'127.0.0.1',_0x4d0c69,this[_0xc321('0x10')][_0xc321('0x42')]));if(_0x4add02['result']===-0x1){return _0x4add02;}return this[_0xc321('0x10')][_0xc321('0xb0')](util[_0xc321('0x56')](_0xc321('0x15f'),'AGI',_0x4d0c69));};AGIVertices[_0xc321('0x12')][_0xc321('0x1ae')]=function(_0x32586e){logger['info'](util[_0xc321('0x56')](_0xc321('0x1af'),_0x32586e[_0xc321('0x3a')]));var _0x36db4f=this[_0xc321('0x58')][_0xc321('0xa3')](this,_0x32586e[_0xc321('0xa6')]);this[_0xc321('0xcc')][_0xc321('0xa3')](this,_0x32586e,_0x32586e[_0xc321('0xa6')]);if(this[_0xc321('0x82')](_0x32586e[_0xc321('0xcd')])){var _0xff4dfe=this['getVariable'][_0xc321('0xa3')](this,_0x32586e[_0xc321('0xcd')]);if(_0xff4dfe){this[_0xc321('0x10')][_0xc321('0x9b')](_0xff4dfe,_0x36db4f);return this[_0xc321('0x10')][_0xc321('0xb0')](util[_0xc321('0x56')](_0xc321('0x1b0'),_0x32586e['command'],_0xff4dfe));}}return this['channel'][_0xc321('0xb0')](util[_0xc321('0x56')](_0xc321('0x1b1'),_0x32586e[_0xc321('0xa6')]));};AGIVertices[_0xc321('0x12')]['google_cloud_tts']=function(_0x31026a){logger[_0xc321('0x33')](util['format'](_0xc321('0x1b2'),_0x31026a[_0xc321('0x3a')]));if(!this[_0xc321('0x82')](_0x31026a[_0xc321('0x5c')])){return this[_0xc321('0x10')][_0xc321('0xb0')]('no\x20apiKey\x20configured');}if(!this[_0xc321('0x82')](_0x31026a[_0xc321('0x5e')])){return this['channel'][_0xc321('0xb0')](_0xc321('0xb6'));}this[_0xc321('0x10')][_0xc321('0xb0')](util['format'](_0xc321('0x1b3'),_0x31026a[_0xc321('0x5e')]));var _0x2fd60e=this['googleCloudTTS'][_0xc321('0xa3')](this,_0x31026a);if(_0x2fd60e){this['channel'][_0xc321('0xb0')](util[_0xc321('0x56')](_0xc321('0x1b4'),_0x2fd60e));var _0x30ed37=this['channel']['streamFile'](_0x2fd60e);try{fs[_0xc321('0xf1')](_0x2fd60e+'.wav');}catch(_0x36accc){logger[_0xc321('0x2e')](_0x36accc);}return _0x30ed37;}return this[_0xc321('0x10')][_0xc321('0x2e')](_0x31026a,_0xc321('0x1b5'));};AGIVertices['prototype'][_0xc321('0x1b6')]=function(_0x26ee6a){logger[_0xc321('0x33')](util[_0xc321('0x56')](_0xc321('0x1b7'),_0x26ee6a['label']));if(!this[_0xc321('0x82')](_0x26ee6a['text'])){return this[_0xc321('0x10')][_0xc321('0xb0')](_0xc321('0xb6'));}this[_0xc321('0x10')][_0xc321('0xb0')](util['format'](_0xc321('0x1b8'),_0x26ee6a[_0xc321('0x5e')]));var _0x5545b2=this[_0xc321('0x63')][_0xc321('0xa3')](this,_0x26ee6a);if(_0x5545b2){this['channel']['noop'](util[_0xc321('0x56')](_0xc321('0x1b9'),_0x5545b2));var _0x218168=this[_0xc321('0x10')]['streamFile'](_0x5545b2);try{fs[_0xc321('0xf1')](_0x5545b2+_0xc321('0xf2'));}catch(_0x8201d2){logger[_0xc321('0x2e')](_0x8201d2);}return _0x218168;}return this[_0xc321('0x10')][_0xc321('0x2e')](_0x26ee6a,_0xc321('0x1ba'));};AGIVertices[_0xc321('0x12')][_0xc321('0x1bb')]=function(_0xd20149){logger[_0xc321('0x33')](util[_0xc321('0x56')](_0xc321('0x1bc'),_0xd20149[_0xc321('0x3a')]));if(!this['isConfigured'](_0xd20149[_0xc321('0x145')])){return this[_0xc321('0x10')][_0xc321('0x2e')](_0xd20149,'no\x20find\x20by\x20configured');}logger[_0xc321('0x33')](util[_0xc321('0x56')]('FIND\x20AGENT\x20%s\x20BY\x20%s',this['channel'][_0xc321('0x3c')],_0xd20149[_0xc321('0x145')]));var _0x1bb6aa=this[_0xc321('0x53')][_0xc321('0xa3')](this,_0xd20149['findBy']);if(_0x1bb6aa){logger[_0xc321('0x33')](util[_0xc321('0x56')](_0xc321('0x147'),this[_0xc321('0x10')][_0xc321('0x3c')],_0xd20149[_0xc321('0x145')]));this['channel'][_0xc321('0xb0')](util[_0xc321('0x56')](_0xc321('0x147'),this['channel'][_0xc321('0x3c')],_0xd20149[_0xc321('0x145')]));return{'code':0xc8,'result':_0xc321('0x148')};}else{logger['info'](util[_0xc321('0x56')]('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this['channel'][_0xc321('0x3c')],_0xd20149[_0xc321('0x145')]));this[_0xc321('0x10')][_0xc321('0xb0')](util['format']('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this[_0xc321('0x10')][_0xc321('0x3c')],_0xd20149['findBy']));return{'code':0xc8,'result':'failure'};}};AGIVertices[_0xc321('0x12')][_0xc321('0x1bd')]=function(_0x2e49fd){logger[_0xc321('0x33')](util[_0xc321('0x56')]('Enter\x20in\x20VOICEMAIL\x20(%s)\x20block',_0x2e49fd[_0xc321('0x3a')]));var _0x3d9e61=this[_0xc321('0x10')]['exec'](_0xc321('0x1be'),[_0x2e49fd['mailbox'],_0x2e49fd[_0xc321('0x7a')]]);if(_0x3d9e61[_0xc321('0xac')]===-0x1){return _0x3d9e61;}return this['channel']['noop'](util[_0xc321('0x56')](_0xc321('0x15f'),_0xc321('0x1be'),_0x2e49fd[_0xc321('0x1bf')]));};AGIVertices[_0xc321('0x12')]['vswitch']=function(_0x4ac430){logger[_0xc321('0x33')](util[_0xc321('0x56')]('Enter\x20in\x20SWITCH\x20(%s)\x20block',_0x4ac430['label']));if(!this[_0xc321('0x82')](_0x4ac430[_0xc321('0xcd')])){return this['channel'][_0xc321('0x2e')](_0x4ac430,'no\x20variable\x20selected');}var _0x5a65cf=this['getVariable'][_0xc321('0xa3')](this,_0x4ac430['variable_id']);if(!_0x5a65cf){return this[_0xc321('0x10')][_0xc321('0x2e')](_0x4ac430,_0xc321('0xcf'));}var _0x239e32=this[_0xc321('0x10')][_0xc321('0x13')](_0x5a65cf);return{'code':0xc8,'result':_0x239e32[_0xc321('0x9f')]?_0x239e32[_0xc321('0x9f')]:'-'};};String[_0xc321('0x12')]['replaceAll']=function(_0x4e74a2,_0x3afe31){return this[_0xc321('0x9d')](_0x4e74a2)[_0xc321('0x1c0')](_0x3afe31);};module[_0xc321('0x1c1')]=AGIVertices;
\ No newline at end of file