Built motion from commit 14588770.|2.5.38
[motion2.git] / server / services / agi / vertices.js
index 68bd659..d6c2bc0 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xced7=['no\x20query\x20configured','query','replace','query:\x20%s','variable_id','no\x20variable\x20selected\x20for\x20the\x20result','no\x20variable\x20found','forEach','keys','%s[%s][%s]','%s_ROWS_COUNT','variable\x20%s\x20set','dial','debug','no\x20user\x20selected','no\x20user\x20found','SIP/%s','opts','Executed\x20command\x20%s','DIAL','dialogflow','Enter\x20in\x20DIALOGFLOW\x20(%s)\x20block','no\x20key\x20configured','bot','DIALOGFLOW_%s','speech','out','Enter\x20in\x20DIALOGFLOW\x20V2\x20(%s)\x20block','no\x20project_id\x20configured','dialogflowV2_language','no\x20anguage\x20configured','providerResponse','dialogflowV2','sesteknda','Enter\x20in\x20SESTEKNDA\x20(%s)\x20block','ndauth_url','no\x20ndauth\x20url\x20configured','username','no\x20username\x20configured','password','Trying\x20SestekNDA:\x20%s','audiofile','Sestek\x20NDA\x20%s\x20file\x20created','streamFile','unlink','.wav','SestekNDA\x20is\x20unreachable','end','ext_dial','Enter\x20in\x20EXTERNAL\x20DIAL\x20(%s)\x20block','trunk_id','getTrunk','no\x20trunk\x20found','trunk_name','SIP/%s/%s','finally','Enter\x20in\x20FINALLY\x20(%s)\x20block','getdigits','Enter\x20in\x20GETDIGITS\x20(%s)\x20block','retry','no\x20file\x20audio\x20selected','file_id','no\x20file\x20audio\x20found','getData','mindigit','maxdigit','hiddendigitsnum','generate','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','aws\x20Polly\x20%s\x20file\x20created','aws\x20Polly\x20is\x20unreachable','awslex','Enter\x20in\x20Amazon\x20Lex\x20(%s)\x20block','no\x20valid\x20credentials\x20configured','no\x20bot\x20name\x20configured','Trying\x20Amazon\x20Lex:\x20%s','AWS_LEX_%s','amazonlex','Amazon\x20Lex\x20Result\x20%s','googleasr','Enter\x20in\x20GOOGLEASR\x20(%s)\x20block\x20%s','wav','%s/recordings/%s','beep','recordFile','intKey','GOOGLE_ASR_%s','tildeasr','no\x20appid\x20configured','appsecret','no\x20appsecret\x20configured','NOBEEP','tilde\x20%s\x20file\x20created','TILDE_ASR_%s','Enter\x20in\x20GOTO\x20(%s)\x20block','continueAt','priority','gotoif','Enter\x20in\x20GOTOIF\x20(%s)\x20block','condition','true','false','EVAL\x20CONDITION\x20%s\x20%s','gotoiftime','Enter\x20in\x20GOTOIFTIME\x20(%s)\x20block','interval_id','no\x20intervals\x20found','IFTIME(%s?true:false)','IFTIME\x20%s\x20%s','hangup','Enter\x20in\x20HANGUP\x20(%s)\x20block','ispeechasr','ispeech\x20%s\x20file\x20created','ISPEECH_ASR_%s','ispeechtts','Enter\x20in\x20ISPEECHTTS\x20(%s)\x20block','Trying\x20ispeech\x20TTS\x20%s','ispeech\x20TTS\x20is\x20unreachable','login','findBy','no\x20find\x20by\x20configured','FIND\x20AGENT\x20%s\x20BY\x20%s','agentLogin','AGENT\x20%s\x20FOUND\x20BY','success','AGENT\x20%s\x20NOT\x20FOUND\x20BY','failure','math','operation','no\x20operation\x20configured','math\x20%s','%s[%s]','variable\x20%s[key]\x20set','getSound','response','Enter\x20in\x20NOOP\x20(%s)\x20block','output','pause','pause_id','PLAYBACK','queue','Enter\x20in\x20QUEUE\x20(%s)\x20block','queue_id','no\x20queue\x20selected','getVoiceQueue','no\x20queue\x20found','indexOf','XMCS-QUEUE','QUEUE','gosub','record','recordingFormat','%s_%s','%s/recordings/%s.%s','RECORDING_SAVENAME','Recording\x20%s\x20%s\x20%s\x20%s','escape_digits','no\x20url\x20configured','Response:','inspect','no\x20variable\x20selected\x20for\x20the\x20response','%s_STATUS_CODE','%s_STATUS_MESSAGE','Unable\x20to\x20set\x20result\x20in\x20variable\x20%s','saydigits','Enter\x20in\x20SAYDIGITS\x20(%s)\x20block','sayDigits','digits','Enter\x20in\x20SAYNUMBER\x20(%s)\x20block','Enter\x20in\x20SAYPHONETIC\x20(%s)\x20block','sayPhonetic','Enter\x20in\x20SENDMAIL\x20(%s)\x20block','account_id','no\x20mail\x20account\x20configured','getMailAccount','no\x20mail\x20account\x20found','\x22%s\x22\x20<%s>','email','Smtp','user','bcc','service','secure','auth','pass','template_id','Mail\x20message\x20added\x20to\x20outgoing\x20process','sendFax','Enter\x20in\x20SENDFAX\x20(%s)\x20block','SENDFAX\x20block\x20not\x20implemented','sendSMS','Enter\x20in\x20SENDSMS\x20(%s)\x20block','sms_account_id','no\x20sms\x20account\x20configured','Trying\x20SendSMS\x20with\x20account\x20%s','Sms\x20message\x20added\x20to\x20outgoing\x20process','set','Enter\x20in\x20SET\x20(%s)\x20block','no\x20variable\x20selected','start','Enter\x20in\x20START\x20(%s)\x20block','yes','Answer','Skipped\x20Answer','subproject','Enter\x20in\x20SUBPROJECT\x20(%s)\x20block','project_id','no\x20subproject\x20selected','project\x20in\x20subproject\x20must\x20be\x20different\x20from\x20the\x20called\x20project','AGI','agi://%s/square,\x22%s\x22,\x22%s\x22','host','system','Enter\x20in\x20SYSTEM\x20(%s)\x20block','shellCommand','command','sh\x20command:\x20%s\x20result\x20on\x20variable:\x20%s','sh\x20command:\x20%s\x20result\x20no\x20stored','Enter\x20in\x20Google\x20Cloud\x20TTS\x20(%s)\x20block','no\x20apiKey\x20configured','Trying\x20Google\x20Cloud\x20TTS\x20%s','Google\x20Cloud\x20TTS\x20is\x20unreachable','tts','Enter\x20in\x20GOOGLETTS\x20(%s)\x20block','Trying\x20Google\x20TTS\x20%s','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','path','util','lodash','shelljs','odbc','moment','request-promise','../../config/logger','./scripts','/var/opt/motion2/server/files','rawBody','menu','getsecretdigits','rpc','mailRpc','getVariable','then','catch','getVoiceQueueById','name','prototype','getSquareProject','getSquareProjectById','getSquareOdbc','getSquareOdbcById','dsn','getUser','getUserById','getTrunkById','getSoundById','save_name','getMailAccountById','sendMailMessage','getIntervals','getIntervalById','IntervalId','map','Intervals','interval','getSoundPath','format','%s/sounds/converted/%s','getQueryOdbc','error','Error\x20getting\x20ODBC\x20connection\x20%s','ODBC\x20connection\x20successfully','info','Query\x20executed\x20correctly\x20%s','close','getSmsAccount','getSmsAccountById','createSmsMessage','createSquareDetailsReport','channel','uniqueid','agicommand','arg_1','createSquareRecording','callerid','calleridname','extension','dnid','file','createSquareMessage','isEmpty','callback_','random','lastName','phone','callback','Callback\x20scheduled\x20at\x20','scheduledAt','toString','getPause','agentPause','agent','agentUnpause','isNil','agentLogout','internal','%s/%s@from-sip/n','LOCAL','exec','trim','googleCloudTTS','apiKey','google_cloud_tts_text_type','text','languageCode','ssmlGender','MALE','audioEncoding','googleTTS','google_tts_language','restAPI','url','timeout','number','includes','POST','PUT','method','toUpperCase','body','An\x20incorrect\x20formatted\x20json\x20body\x20has\x20been\x20passed\x20to\x20the\x20function','rawHeaders','parse','computedVariables','uri','headers','render','stringify','An\x20incorrect\x20formatted\x20json\x20has\x20been\x20passed\x20to\x20the\x20function','statusMessage','statusCode','message','500\x20-\x20Internal\x20Server\x20Error','options','googleDialogflow','key','dialogflow_language','googleDialogflowV2','dialogflowV2_project_id','client_email','private_key','sestekNDA','ispeechTTS','ispeech_tts_language','speed','ispeechASR','ispeech_asr_language','en-US','model','awsPolly','aws_access_key_id','aws_secret_access_key','aws_polly_region','aws_polly_voice','aws_text_type','awsLex','aws_lex_region','aws_bot_name','googleASR','google_asr_language','tildeASR','appid','clear','clone','hasOwnProperty','isString','replaceObjectAllVariables','recursiveNodeIndex','isPlainObject','isArray','length','saveRestApiResult','%s.%s','setVariable','replaceAllVariables','split','replaceAll','getAndSetVariable','result','extra','maxRetry','sync','mrcpsynth','Enter\x20in\x20MRCPSynth\x20(%s)\x20block','noop','no\x20text\x20configured','isConfigured','Executed\x20command\x20MRCPSynth\x20%s','mrcprecog','Enter\x20in\x20MRCPRecog\x20(%s)\x20block','label','grammar','MRCPRecog','RECOG_CONFIDENCE()','RECOG_INPUT()','RECOG_INSTANCE()','Executed\x20command\x20MRCPRecog\x20%s','agi','Enter\x20in\x20AGI\x20(%s)\x20block','args','Enter\x20in\x20ANSWER\x20(%s)\x20block','wait','answer','Enter\x20in\x20CALLBACK\x20(%s)\x20block','list_id','no\x20list\x20selected','add','callback_priority','createCmContact','CALLBACK\x20added\x20phone:\x20%s\x20on\x20list:\x20%s\x20at\x20%s','custom_app','Enter\x20in\x20CUSTOM\x20APP\x20(%s)\x20block','application','Executed\x20command\x20%s\x20%s','lumenvoxtts','Enter\x20in\x20LUMENVOXTTS\x20(%s)\x20block','MRCPSynth','sestektts','lumenvoxasr','Enter\x20in\x20LUMENVOXASR\x20(%s)\x20block','LUMENVOX_ASR_TRANSCRIPT','LUMENVOX_ASR_INSTANCE','Enter\x20in\x20SESTEKASR\x20(%s)\x20block','no\x20grammar\x20configured','SESTEK_ASR_CONFIDENCE','SESTEK_ASR_INSTANCE','database','Enter\x20in\x20DATABASE\x20(%s)\x20block','no\x20database\x20selected','odbc_id'];(function(_0x58fc2f,_0x111399){var _0x3a1312=function(_0x3d2ff2){while(--_0x3d2ff2){_0x58fc2f['push'](_0x58fc2f['shift']());}};_0x3a1312(++_0x111399);}(_0xced7,0xf2));var _0x7ced=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xced7[_0x3dd15e];return _0x231fd0;};'use strict';var fs=require('fs');var path=require(_0x7ced('0x0'));var util=require(_0x7ced('0x1'));var _=require(_0x7ced('0x2'));var sh=require(_0x7ced('0x3'));var odbc=require(_0x7ced('0x4'))();var rs=require('randomstring');var moment=require(_0x7ced('0x5'));var Mustache=require('mustache');var rp=require(_0x7ced('0x6'));var logger=require(_0x7ced('0x7'))('agi');var config=require('../../config/environment');var scripts=require(_0x7ced('0x8'));var FILES_PATH=_0x7ced('0x9');var recursiveMapAttributes=['rawHeaders',_0x7ced('0xa')];var verticesWithRetry=[_0x7ced('0xb'),'getdigits',_0x7ced('0xc')];var AGIVertices=function(_0x47f55f,_0x3ff352,_0x1092c2){this['channel']=_0x47f55f;this[_0x7ced('0xd')]=_0x3ff352;this[_0x7ced('0xe')]=_0x1092c2;};AGIVertices['prototype'][_0x7ced('0xf')]=function(_0x16f58b,_0x8307ec){this['rpc']['getVariableById'](_0x16f58b)[_0x7ced('0x10')](function(_0x22ce46){_0x8307ec(null,_0x22ce46?_0x22ce46['name']:![]);})[_0x7ced('0x11')](function(_0x5a88c8){_0x8307ec(_0x5a88c8);});};AGIVertices['prototype']['getVoiceQueue']=function(_0x43932c,_0x4bb98b){this[_0x7ced('0xd')][_0x7ced('0x12')](_0x43932c)[_0x7ced('0x10')](function(_0x131ded){_0x4bb98b(null,_0x131ded?_0x131ded[_0x7ced('0x13')]:![]);})[_0x7ced('0x11')](function(_0x2e6ebe){_0x4bb98b(_0x2e6ebe);});};AGIVertices[_0x7ced('0x14')][_0x7ced('0x15')]=function(_0x308691,_0x314584){this[_0x7ced('0xd')][_0x7ced('0x16')](_0x308691)['then'](function(_0x3ee432){_0x314584(null,_0x3ee432?_0x3ee432[_0x7ced('0x13')]:![]);})[_0x7ced('0x11')](function(_0x47069c){_0x314584(_0x47069c);});};AGIVertices[_0x7ced('0x14')][_0x7ced('0x17')]=function(_0x589d5f,_0x4db332){this['rpc'][_0x7ced('0x18')](_0x589d5f)[_0x7ced('0x10')](function(_0x393165){_0x4db332(null,_0x393165?_0x393165[_0x7ced('0x19')]:![]);})[_0x7ced('0x11')](function(_0x5c11d0){_0x4db332(_0x5c11d0);});};AGIVertices[_0x7ced('0x14')][_0x7ced('0x1a')]=function(_0x270351,_0xfc328c){this[_0x7ced('0xd')][_0x7ced('0x1b')](_0x270351)[_0x7ced('0x10')](function(_0x13ffaf){_0xfc328c(null,_0x13ffaf?_0x13ffaf[_0x7ced('0x13')]:![]);})[_0x7ced('0x11')](function(_0x1b8b9e){_0xfc328c(_0x1b8b9e);});};AGIVertices['prototype']['getTrunk']=function(_0x17728d,_0x12c703){this[_0x7ced('0xd')][_0x7ced('0x1c')](_0x17728d)[_0x7ced('0x10')](function(_0x29cec7){_0x12c703(null,_0x29cec7?_0x29cec7[_0x7ced('0x13')]:![]);})[_0x7ced('0x11')](function(_0x5756ca){_0x12c703(_0x5756ca);});};AGIVertices[_0x7ced('0x14')]['getSound']=function(_0x4a5739,_0x5957d8){var _0x310c52=this;this['rpc'][_0x7ced('0x1d')](_0x4a5739)[_0x7ced('0x10')](function(_0x340a29){_0x5957d8(null,_0x340a29?_0x310c52['getSoundPath'](_0x340a29[_0x7ced('0x1e')]):![]);})[_0x7ced('0x11')](function(_0x29be29){_0x5957d8(_0x29be29);});};AGIVertices['prototype']['getMailAccount']=function(_0x4007f3,_0x18452b){this[_0x7ced('0xd')][_0x7ced('0x1f')](_0x4007f3)[_0x7ced('0x10')](function(_0x56cc6a){_0x18452b(null,_0x56cc6a?_0x56cc6a:![]);})[_0x7ced('0x11')](function(_0x1c51df){_0x18452b(_0x1c51df);});};AGIVertices[_0x7ced('0x14')]['sendMailMessage']=function(_0x421229,_0x5c0552,_0x181763){this[_0x7ced('0xe')][_0x7ced('0x20')](_0x421229,_0x5c0552)['then'](function(){_0x181763(null);})['catch'](function(_0xe7df79){_0x181763(_0xe7df79);});};AGIVertices['prototype'][_0x7ced('0x21')]=function(_0x33e355,_0x47ff63){this[_0x7ced('0xd')][_0x7ced('0x22')](_0x33e355)[_0x7ced('0x10')](function(_0x553f9b){if(_0x553f9b){if(_0x553f9b[_0x7ced('0x23')]){_0x47ff63(null,[_0x553f9b['interval']]);}else{_0x47ff63(null,_[_0x7ced('0x24')](_0x553f9b[_0x7ced('0x25')],_0x7ced('0x26')));}}else{_0x47ff63(null,![]);}})[_0x7ced('0x11')](function(_0x432d08){_0x47ff63(_0x432d08);});};AGIVertices[_0x7ced('0x14')][_0x7ced('0x27')]=function(_0x2df367){return util[_0x7ced('0x28')](_0x7ced('0x29'),FILES_PATH,_0x2df367);};AGIVertices[_0x7ced('0x14')][_0x7ced('0x2a')]=function(_0x4ddeb4,_0x54fc16,_0x5adf3c){odbc['open'](_0x4ddeb4,function(_0x17d862){if(_0x17d862){logger[_0x7ced('0x2b')](_0x7ced('0x2c'),_0x17d862);_0x5adf3c(_0x17d862);}else{logger['info'](_0x7ced('0x2d'));odbc['query'](_0x54fc16,function(_0x1ca8a2,_0x5ac4cf){if(_0x1ca8a2){logger[_0x7ced('0x2e')]('Error\x20executing\x20query\x20%s',_0x54fc16);_0x5adf3c(_0x1ca8a2);}else{logger['info'](_0x7ced('0x2f'),_0x54fc16);odbc[_0x7ced('0x30')](function(_0x26f5d5){if(_0x26f5d5){logger[_0x7ced('0x2b')]('Error\x20closing\x20connection\x20to\x20odbc\x20%s',_0x26f5d5);}_0x5adf3c(null,_0x5ac4cf);});}});}});};AGIVertices[_0x7ced('0x14')][_0x7ced('0x31')]=function(_0x2d2359,_0xc5c43d){this[_0x7ced('0xd')][_0x7ced('0x32')](_0x2d2359)['then'](function(_0x3f141c){_0xc5c43d(null,_0x3f141c?_0x3f141c:![]);})[_0x7ced('0x11')](function(_0x4b5186){_0xc5c43d(_0x4b5186);});};AGIVertices[_0x7ced('0x14')][_0x7ced('0x33')]=function(_0x4a0536,_0x130e19){this[_0x7ced('0xd')][_0x7ced('0x33')](_0x4a0536)[_0x7ced('0x10')](function(_0x3626e7){_0x130e19(null,_0x3626e7);})[_0x7ced('0x11')](function(_0xf852da){_0x130e19(_0xf852da);});};AGIVertices[_0x7ced('0x14')]['createSquareDetailsReport']=function(_0x1a2f4c,_0x496eb7,_0x25ea79){this['rpc'][_0x7ced('0x34')]({'uniqueid':this[_0x7ced('0x35')][_0x7ced('0x36')],'node':_0x1a2f4c['label'],'application':_0x1a2f4c[_0x7ced('0x37')],'data':_0x496eb7||null,'project_name':this[_0x7ced('0x35')][_0x7ced('0x38')],'callerid':this[_0x7ced('0x35')]['callerid']})['then'](function(_0x3f5aa2){if(_0x25ea79){_0x25ea79(null,_0x3f5aa2);}})[_0x7ced('0x11')](function(_0x58826d){if(_0x25ea79){_0x25ea79(_0x58826d);}});};AGIVertices[_0x7ced('0x14')][_0x7ced('0x39')]=function(_0x4bb814,_0x44076a,_0x19ddf5,_0x77785d){this[_0x7ced('0xd')][_0x7ced('0x39')]({'uniqueid':this['channel'][_0x7ced('0x36')],'callerid':this['channel'][_0x7ced('0x3a')],'calleridname':this[_0x7ced('0x35')][_0x7ced('0x3b')],'context':this[_0x7ced('0x35')]['context'],'extension':this[_0x7ced('0x35')][_0x7ced('0x3c')],'priority':this[_0x7ced('0x35')]['priority'],'accountcode':this[_0x7ced('0x35')]['accountcode'],'dnid':this[_0x7ced('0x35')][_0x7ced('0x3d')],'projectName':this[_0x7ced('0x35')][_0x7ced('0x38')],'saveName':_0x44076a,'filename':_0x4bb814[_0x7ced('0x3e')]||_0x44076a,'savePath':_0x19ddf5})[_0x7ced('0x10')](function(_0x385346){_0x77785d(null,_0x385346);})['catch'](function(_0x500bf4){_0x77785d(_0x500bf4);});};AGIVertices[_0x7ced('0x14')]['createSquareMessage']=function(_0x14a0f6,_0x46d96b,_0x227ee2,_0x23b543,_0x1de8fe){this['rpc'][_0x7ced('0x3f')]({'uniqueid':this[_0x7ced('0x35')][_0x7ced('0x36')],'body':_0x14a0f6,'direction':_0x46d96b,'providerName':_0x227ee2,'providerResponse':_0x23b543})[_0x7ced('0x10')](function(_0x3179ad){if(_0x1de8fe){_0x1de8fe(null,_0x3179ad);}})[_0x7ced('0x11')](function(_0x1d9a5c){if(_0x1de8fe){_0x1de8fe(_0x1d9a5c);}});};AGIVertices['prototype']['createCmContact']=function(_0x326fb5,_0x24149f){this[_0x7ced('0xd')]['createCmContact']({'firstName':_[_0x7ced('0x40')](_0x326fb5['name'])||_['isNil'](_0x326fb5[_0x7ced('0x13')])?_0x7ced('0x41')+Math[_0x7ced('0x42')]():_0x326fb5[_0x7ced('0x13')],'lastName':_['isEmpty'](_0x326fb5[_0x7ced('0x43')])||_['isNil'](_0x326fb5['lastName'])?null:_0x326fb5[_0x7ced('0x43')],'phone':_0x326fb5[_0x7ced('0x44')],'ListId':_0x326fb5['list_id'],'scheduledat':_0x326fb5['scheduledAt'],'callbackUniqueid':this[_0x7ced('0x35')]['uniqueid'],'tags':_0x7ced('0x45'),'description':_0x7ced('0x46')+_0x326fb5[_0x7ced('0x47')][_0x7ced('0x48')](),'priority':_0x326fb5['callback_priority']})['then'](function(_0x163b1b){_0x24149f(null,_0x163b1b);})[_0x7ced('0x11')](function(_0x1a1e2a){_0x24149f(_0x1a1e2a);});};AGIVertices[_0x7ced('0x14')][_0x7ced('0x49')]=function(_0x4a0d97,_0x327a1d){this[_0x7ced('0xd')]['getPauseById'](_0x4a0d97)[_0x7ced('0x10')](function(_0x45c726){_0x327a1d(null,_0x45c726?_0x45c726[_0x7ced('0x13')]:![]);})[_0x7ced('0x11')](function(_0x348c5b){_0x327a1d(_0x348c5b);});};AGIVertices[_0x7ced('0x14')][_0x7ced('0x4a')]=function(_0x590b5c,_0x90cb14,_0x1c02f4){var _0x5b5753={'role':_0x7ced('0x4b')};_0x5b5753[_0x590b5c]=this[_0x7ced('0x35')][_0x7ced('0x3a')];this[_0x7ced('0xd')][_0x7ced('0x4a')](_0x5b5753,_0x90cb14,this[_0x7ced('0x35')][_0x7ced('0x36')])[_0x7ced('0x10')](function(_0x523e89){_0x1c02f4(null,_['isNil'](_0x523e89)?![]:!![]);})[_0x7ced('0x11')](function(_0x4f566a){logger[_0x7ced('0x2b')](_0x4f566a);_0x1c02f4(null,![]);});};AGIVertices['prototype'][_0x7ced('0x4c')]=function(_0x5dc1e7,_0x86d0cd){var _0x4e026f={'role':'agent'};_0x4e026f[_0x5dc1e7]=this[_0x7ced('0x35')][_0x7ced('0x3a')];this[_0x7ced('0xd')][_0x7ced('0x4c')](_0x4e026f)[_0x7ced('0x10')](function(_0x59c7ef){_0x86d0cd(null,_[_0x7ced('0x4d')](_0x59c7ef)?![]:!![]);})[_0x7ced('0x11')](function(_0x39e7ef){logger[_0x7ced('0x2b')](_0x39e7ef);_0x86d0cd(null,![]);});};AGIVertices[_0x7ced('0x14')]['agentLogout']=function(_0x321927,_0xe11b53){var _0x53ac13={'role':'agent'};_0x53ac13[_0x321927]=this[_0x7ced('0x35')]['callerid'];this[_0x7ced('0xd')][_0x7ced('0x4e')](_0x53ac13)[_0x7ced('0x10')](function(_0x1d9675){_0xe11b53(null,_[_0x7ced('0x4d')](_0x1d9675)?![]:!![]);})['catch'](function(_0xdcda44){logger['error'](_0xdcda44);_0xe11b53(null,![]);});};AGIVertices['prototype']['agentLogin']=function(_0x5430d0,_0x4adb80){var _0x122397={'role':_0x7ced('0x4b')};_0x122397[_0x5430d0]=this[_0x7ced('0x35')][_0x7ced('0x3a')];var _0x1a2a2c=_0x5430d0!=_0x7ced('0x4f')?util[_0x7ced('0x28')](_0x7ced('0x50'),_0x7ced('0x51'),this[_0x7ced('0x35')][_0x7ced('0x3a')]):undefined;this['rpc']['agentLogin'](_0x122397,_0x1a2a2c)[_0x7ced('0x10')](function(_0x51437b){_0x4adb80(null,_['isNil'](_0x51437b)?![]:!![]);})['catch'](function(_0x3f2fcc){logger[_0x7ced('0x2b')](_0x3f2fcc);_0x4adb80(null,![]);});};AGIVertices['prototype']['shellCommand']=function(_0x3da73c,_0x5e0a2c){sh[_0x7ced('0x52')](_[_0x7ced('0x53')](_0x3da73c),function(_0x5ed1f3,_0x259341){var _0x379eec=_0x259341['replace'](/(\r\n|\n|\r)/gm,'');_0x5e0a2c(null,_0x379eec);});};AGIVertices[_0x7ced('0x14')][_0x7ced('0x54')]=function(_0x255414,_0x5ea6ca){scripts[_0x7ced('0x54')](_0x255414[_0x7ced('0x55')],_0x255414[_0x7ced('0x56')]||_0x7ced('0x57'),_0x255414['text'],_0x255414[_0x7ced('0x58')]||'en-US',_0x255414[_0x7ced('0x59')]||_0x7ced('0x5a'),_0x255414[_0x7ced('0x5b')]||'MP3')['then'](function(_0x1b71ca){_0x5ea6ca(null,_0x1b71ca);})[_0x7ced('0x11')](function(_0x5df799){_0x5ea6ca(_0x5df799);});};AGIVertices[_0x7ced('0x14')][_0x7ced('0x5c')]=function(_0x4bc581,_0x16645e){scripts[_0x7ced('0x5c')](_0x4bc581[_0x7ced('0x57')],_0x4bc581[_0x7ced('0x5d')]||'en',0x1)[_0x7ced('0x10')](function(_0x201d34){_0x16645e(null,_0x201d34);})[_0x7ced('0x11')](function(_0x53923e){_0x16645e(_0x53923e);});};AGIVertices[_0x7ced('0x14')][_0x7ced('0x5e')]=function(_0x10c9fb,_0x3f220a){var _0x4da326={'uri':_0x10c9fb[_0x7ced('0x5f')],'method':_0x10c9fb['method'],'json':!![],'resolveWithFullResponse':!![],'strictSSL':![],'timeout':typeof parseInt(_0x10c9fb[_0x7ced('0x60')])===_0x7ced('0x61')&&parseInt(_0x10c9fb[_0x7ced('0x60')])>=0x1?parseInt(_0x10c9fb['timeout'])*0x3e8:0x5*0x3e8};if(_[_0x7ced('0x62')]([_0x7ced('0x63'),_0x7ced('0x64')],_0x4da326[_0x7ced('0x65')][_0x7ced('0x66')]())){try{_0x4da326[_0x7ced('0x67')]=_0x10c9fb[_0x7ced('0xa')]?JSON['parse'](_0x10c9fb['rawBody']):{};}catch(_0x4ab4ef){logger['error'](_0x7ced('0x68'),_0x4ab4ef);}}try{_0x4da326['headers']=_0x10c9fb[_0x7ced('0x69')]?JSON[_0x7ced('0x6a')](_0x10c9fb[_0x7ced('0x69')]):{};}catch(_0xf01734){logger['error']('An\x20incorrect\x20formatted\x20json\x20headers\x20has\x20been\x20passed\x20to\x20the\x20function',_0xf01734);}if(_0x10c9fb[_0x7ced('0x6b')]){try{var _0x4dc2c5=require(_0x10c9fb['computedVariables'])['sync'](this,_0x4da326);_0x4da326[_0x7ced('0x6c')]=Mustache['render'](_0x10c9fb[_0x7ced('0x5f')],_0x4dc2c5,{},['$$','$$']);if(_0x4da326['headers']){_0x4da326[_0x7ced('0x6d')]=JSON['parse'](Mustache[_0x7ced('0x6e')](JSON['stringify'](_0x4da326[_0x7ced('0x6d')]),_0x4dc2c5,{},['$$','$$']));}if(_0x4da326['body']){_0x4da326['body']=JSON[_0x7ced('0x6a')](Mustache[_0x7ced('0x6e')](JSON[_0x7ced('0x6f')](_0x4da326['body']),_0x4dc2c5,{},['$$','$$']));}}catch(_0x2f41ef){logger[_0x7ced('0x2b')](_0x7ced('0x70'),_0x2f41ef);}}rp(_0x4da326)[_0x7ced('0x10')](function(_0x785c7a){var _0x519f29={'statusCode':_0x785c7a['statusCode']||0xc8,'statusMessage':_0x785c7a[_0x7ced('0x71')]||'OK','headers':_0x785c7a[_0x7ced('0x6d')]||{},'body':_0x785c7a[_0x7ced('0x67')]||{}};_0x3f220a(null,_0x519f29);})[_0x7ced('0x11')](function(_0x331e55){var _0x29d39c={'statusCode':_0x331e55[_0x7ced('0x72')]||0x1f4,'statusMessage':_0x331e55[_0x7ced('0x73')]||_0x7ced('0x74'),'headers':_0x331e55[_0x7ced('0x75')][_0x7ced('0x6d')]||{},'body':_0x331e55[_0x7ced('0x75')][_0x7ced('0x67')]||{}};_0x3f220a(null,_0x29d39c);});};AGIVertices['prototype'][_0x7ced('0x76')]=function(_0x3fc866,_0x4a0197){scripts[_0x7ced('0x76')](this[_0x7ced('0x35')]['uniqueid'],_0x3fc866[_0x7ced('0x77')],_0x3fc866[_0x7ced('0x57')],_0x3fc866[_0x7ced('0x78')]||'en')['then'](function(_0x1c3a3f){_0x4a0197(null,_0x1c3a3f);})['catch'](function(_0x337223){_0x4a0197(_0x337223);});};AGIVertices['prototype'][_0x7ced('0x79')]=function(_0x499018,_0x1e2f97){scripts[_0x7ced('0x79')](this['channel'][_0x7ced('0x36')],_0x499018[_0x7ced('0x7a')],_0x499018[_0x7ced('0x7b')],_0x499018[_0x7ced('0x7c')],_0x499018[_0x7ced('0x57')],_0x499018['dialogflowV2_language']||'en')[_0x7ced('0x10')](function(_0x19289f){_0x1e2f97(null,_0x19289f);})[_0x7ced('0x11')](function(_0xaa8fee){_0x1e2f97(_0xaa8fee);});};AGIVertices[_0x7ced('0x14')][_0x7ced('0x7d')]=function(_0x3c9514,_0x370ccb){scripts[_0x7ced('0x7d')](this[_0x7ced('0x35')],_0x3c9514)[_0x7ced('0x10')](function(_0x21650){_0x370ccb(null,_0x21650);})['catch'](function(_0x422cdf){_0x370ccb(_0x422cdf);});};AGIVertices[_0x7ced('0x14')]['ispeechTTS']=function(_0x2854bb,_0x3d83f0){scripts[_0x7ced('0x7e')](_0x2854bb[_0x7ced('0x77')],_0x2854bb[_0x7ced('0x57')],_0x2854bb[_0x7ced('0x7f')]||'en-US',_0x2854bb[_0x7ced('0x80')])['then'](function(_0x1e11eb){_0x3d83f0(null,_0x1e11eb);})[_0x7ced('0x11')](function(_0x3462cc){_0x3d83f0(_0x3462cc);});};AGIVertices['prototype']['ispeechASR']=function(_0x54a2b9,_0x2af9aa,_0x1a63c9){scripts[_0x7ced('0x81')](_0x2af9aa,_0x54a2b9[_0x7ced('0x77')],_0x54a2b9[_0x7ced('0x82')]||_0x7ced('0x83'),this['isConfigured'](_0x54a2b9[_0x7ced('0x84')])?_0x54a2b9[_0x7ced('0x84')]:undefined)['then'](function(_0x5e63df){_0x1a63c9(null,_0x5e63df);})[_0x7ced('0x11')](function(_0x9aac75){_0x1a63c9(_0x9aac75);});};AGIVertices[_0x7ced('0x14')][_0x7ced('0x85')]=function(_0x10e7e0,_0x81a979){scripts[_0x7ced('0x85')](_0x10e7e0[_0x7ced('0x86')],_0x10e7e0[_0x7ced('0x87')],_0x10e7e0[_0x7ced('0x88')],_0x10e7e0[_0x7ced('0x89')]||'Amy',_0x10e7e0[_0x7ced('0x57')],_0x10e7e0[_0x7ced('0x8a')]||_0x7ced('0x57'))['then'](function(_0x221823){_0x81a979(null,_0x221823);})[_0x7ced('0x11')](function(_0x52afe0){_0x81a979(_0x52afe0);});};AGIVertices[_0x7ced('0x14')]['awsLex']=function(_0x3d8963,_0x258507){scripts[_0x7ced('0x8b')](this['channel'][_0x7ced('0x36')],_0x3d8963[_0x7ced('0x86')],_0x3d8963[_0x7ced('0x87')],_0x3d8963[_0x7ced('0x8c')],_0x3d8963[_0x7ced('0x57')],_0x3d8963[_0x7ced('0x8d')])[_0x7ced('0x10')](function(_0x1a91f0){_0x258507(null,_0x1a91f0);})[_0x7ced('0x11')](function(_0x43dc53){_0x258507(_0x43dc53);});};AGIVertices[_0x7ced('0x14')][_0x7ced('0x8e')]=function(_0x42acaa,_0x25392e,_0x11ba8c){scripts['googleASR'](_0x25392e,_0x42acaa[_0x7ced('0x77')],_0x42acaa[_0x7ced('0x8f')]||_0x7ced('0x83'))[_0x7ced('0x10')](function(_0x205701){_0x11ba8c(null,_0x205701);})[_0x7ced('0x11')](function(_0x10f44f){_0x11ba8c(_0x10f44f);});};AGIVertices[_0x7ced('0x14')][_0x7ced('0x90')]=function(_0x446a5f,_0x453bfd,_0x1b4726){scripts['tildeASR'](_0x453bfd,_0x446a5f[_0x7ced('0x91')],_0x446a5f['appsecret'],_0x446a5f[_0x7ced('0x6c')])[_0x7ced('0x10')](function(_0x347d68){_0x1b4726(null,_0x347d68);})['catch'](function(_0x4ca9ee){_0x1b4726(_0x4ca9ee);});};AGIVertices[_0x7ced('0x14')][_0x7ced('0x92')]=function(_0x4fe219){var _0x9ad02e=_[_0x7ced('0x62')](verticesWithRetry,_0x4fe219['agicommand'])?_0x4fe219:_[_0x7ced('0x93')](_0x4fe219);for(var _0x380177 in _0x9ad02e){if(_0x9ad02e[_0x7ced('0x94')](_0x380177)){if(_0x9ad02e[_0x380177]&&_[_0x7ced('0x95')](_0x9ad02e[_0x380177])){if(_[_0x7ced('0x62')](recursiveMapAttributes,_0x380177)){_0x9ad02e[_0x380177]=this[_0x7ced('0x96')](_0x9ad02e[_0x380177]);}else{_0x9ad02e[_0x380177]=this['replaceAllVariables'](_0x9ad02e[_0x380177]);}}}}return _0x9ad02e;};AGIVertices['prototype'][_0x7ced('0x97')]=function(_0x1bf16a){for(var _0x455990 in _0x1bf16a){if(_0x1bf16a['hasOwnProperty'](_0x455990)){if(_[_0x7ced('0x98')](_0x1bf16a[_0x455990])){this[_0x7ced('0x97')](_0x1bf16a[_0x455990]);}else if(_[_0x7ced('0x99')](_0x1bf16a[_0x455990])){for(var _0x3b7074=0x0;_0x3b7074<_0x1bf16a[_0x455990][_0x7ced('0x9a')];_0x3b7074++){this['recursiveNodeIndex'](_0x1bf16a[_0x455990][_0x3b7074]);}}else if(_[_0x7ced('0x95')](_0x1bf16a[_0x455990])){_0x1bf16a[_0x455990]=this['replaceAllVariables'](_0x1bf16a[_0x455990]);}}}};AGIVertices[_0x7ced('0x14')][_0x7ced('0x9b')]=function(_0x2648af,_0x397e57){for(var _0x22c956 in _0x2648af){if(_0x2648af[_0x7ced('0x94')](_0x22c956)){if(_['isPlainObject'](_0x2648af[_0x22c956])){if(!_['isEmpty'](_0x2648af[_0x22c956])){this[_0x7ced('0x9b')](_0x2648af[_0x22c956],util[_0x7ced('0x28')]('%s.%s',_0x397e57,_0x22c956));}}else if(_[_0x7ced('0x99')](_0x2648af[_0x22c956])){for(var _0x39f068=0x0;_0x39f068<_0x2648af[_0x22c956]['length'];_0x39f068++){this[_0x7ced('0x9b')](_0x2648af[_0x22c956][_0x39f068],util[_0x7ced('0x28')](_0x7ced('0x9c'),_0x397e57,_0x22c956+'['+_0x39f068+']'));}}else{if(!_[_0x7ced('0x4d')](_0x2648af[_0x22c956])){this[_0x7ced('0x35')][_0x7ced('0x9d')](util[_0x7ced('0x28')](_0x7ced('0x9c'),_0x397e57,_0x22c956),_0x2648af[_0x22c956]);}}}}};AGIVertices['prototype'][_0x7ced('0x96')]=function(_0x5a1ed8){try{var _0xc4c8c7=JSON[_0x7ced('0x6a')](_0x5a1ed8);this[_0x7ced('0x97')](_0xc4c8c7);return JSON[_0x7ced('0x6f')](_0xc4c8c7);}catch(_0x4fa22b){return this[_0x7ced('0x9e')](_0x5a1ed8);}};AGIVertices[_0x7ced('0x14')][_0x7ced('0x9e')]=function(_0x1a0351){var _0x106fb1=_0x1a0351[_0x7ced('0x9f')]('{');for(var _0x2f8f00=0x1;_0x2f8f00<_0x106fb1['length'];_0x2f8f00+=0x1){var _0x2502b6=_0x106fb1[_0x2f8f00][_0x7ced('0x9f')]('}');if(_0x2502b6['length']>0x1){_0x1a0351=_0x1a0351[_0x7ced('0xa0')]('{'+_0x2502b6[0x0]+'}',this['channel'][_0x7ced('0xf')](_0x2502b6[0x0])['extra']||_0x2502b6[0x0]);}}if(_0x106fb1['length']===0x1){return _0x1a0351[_0x7ced('0x48')]();}return this[_0x7ced('0x9e')](_0x1a0351);};AGIVertices[_0x7ced('0x14')][_0x7ced('0xa1')]=function(_0x11d336,_0x497225){var _0x45132b=this[_0x7ced('0x35')]['getVariable'](_0x11d336);if(_0x45132b[_0x7ced('0xa2')]===-0x1){return _0x45132b;}logger[_0x7ced('0x2e')](util['format']('The\x20\x22%s\x22\x20variable\x20value\x20is:\x20%s',_0x497225,_0x45132b[_0x7ced('0xa3')]));return this[_0x7ced('0x35')][_0x7ced('0x9d')](_0x497225,_0x45132b['extra']);};AGIVertices['prototype']['isConfigured']=function(_0x170185){return _0x170185&&_0x170185!=='0'&&_0x170185!=='-1'&&_0x170185!=='';};AGIVertices[_0x7ced('0x14')][_0x7ced('0xa4')]=function(_0x581c33){this[_0x7ced('0x34')][_0x7ced('0xa5')](this,_0x581c33,'-');_0x581c33['retry']=_0x581c33[_0x7ced('0xa4')];return{'code':0xc8,'result':'-'};};AGIVertices[_0x7ced('0x14')][_0x7ced('0xa6')]=function(_0x4b7921){logger['info'](util[_0x7ced('0x28')](_0x7ced('0xa7'),_0x4b7921['label']));if(!this['isConfigured'](_0x4b7921['text'])){return this[_0x7ced('0x35')][_0x7ced('0xa8')](_0x7ced('0xa9'));}var _0xec2bd='\x22'+_0x4b7921[_0x7ced('0x57')]+'\x22';if(this[_0x7ced('0xaa')](_0x4b7921[_0x7ced('0x75')])){_0xec2bd+=','+_0x4b7921['options'];}var _0x9583c8=this[_0x7ced('0x35')][_0x7ced('0x52')]('MRCPSynth',_0xec2bd);if(_0x9583c8[_0x7ced('0xa2')]===-0x1){return _0x9583c8;}return this[_0x7ced('0x35')][_0x7ced('0xa8')](util[_0x7ced('0x28')](_0x7ced('0xab'),_0xec2bd));};AGIVertices[_0x7ced('0x14')][_0x7ced('0xac')]=function(_0x2b5466){logger[_0x7ced('0x2e')](util['format'](_0x7ced('0xad'),_0x2b5466[_0x7ced('0xae')]));if(!this[_0x7ced('0xaa')](_0x2b5466[_0x7ced('0xaf')])){return this[_0x7ced('0x35')][_0x7ced('0xa8')]('no\x20grammar\x20configured');}var _0x11a83b=_0x2b5466['grammar'];if(this['isConfigured'](_0x2b5466[_0x7ced('0x75')])){_0x11a83b+=','+_0x2b5466['options'];}var _0x16eb21=this['channel'][_0x7ced('0x52')](_0x7ced('0xb0'),_0x11a83b);if(_0x16eb21[_0x7ced('0xa2')]===-0x1){return _0x16eb21;}var _0xce4af1=this[_0x7ced('0xa1')](_0x7ced('0xb1'),'MRCP_RECOG_CONFIDENCE');if(_0xce4af1[_0x7ced('0xa2')]===-0x1){return _0xce4af1;}var _0x132e45=this[_0x7ced('0xa1')](_0x7ced('0xb2'),'MRCP_RECOG_TRANSCRIPT');if(_0x132e45[_0x7ced('0xa2')]===-0x1){return _0x132e45;}var _0x207d4f=this[_0x7ced('0xa1')](_0x7ced('0xb3'),'MRCP_RECOG_INSTANCE');if(_0x207d4f[_0x7ced('0xa2')]===-0x1){return _0x207d4f;}return this[_0x7ced('0x35')][_0x7ced('0xa8')](util['format'](_0x7ced('0xb4'),_0x11a83b));};AGIVertices[_0x7ced('0x14')][_0x7ced('0xb5')]=function(_0x355568){logger[_0x7ced('0x2e')](util[_0x7ced('0x28')](_0x7ced('0xb6'),_0x355568['label']));return this[_0x7ced('0x35')][_0x7ced('0xb5')]([_0x355568['command'],_0x355568[_0x7ced('0xb7')]]);};AGIVertices[_0x7ced('0x14')]['answer']=function(_0x108a6f){logger[_0x7ced('0x2e')](util['format'](_0x7ced('0xb8'),_0x108a6f[_0x7ced('0xae')]));if(this[_0x7ced('0xaa')](_0x108a6f['timeout'])){logger[_0x7ced('0x2e')](util[_0x7ced('0x28')]('Wait\x20%s\x20seconds\x20before\x20answer',_0x108a6f[_0x7ced('0x60')]));var _0x41f5bb=this[_0x7ced('0x35')][_0x7ced('0xb9')](_0x108a6f[_0x7ced('0x60')]);if(_0x41f5bb['result']===-0x1){return _0x41f5bb;}}return this['channel'][_0x7ced('0xba')]();};AGIVertices[_0x7ced('0x14')]['callback']=function(_0x3c7d82){logger[_0x7ced('0x2e')](util['format'](_0x7ced('0xbb'),_0x3c7d82[_0x7ced('0xae')]));if(!this[_0x7ced('0xaa')](_0x3c7d82[_0x7ced('0xbc')])){return this['channel'][_0x7ced('0x2b')](_0x3c7d82,_0x7ced('0xbd'));}_0x3c7d82[_0x7ced('0x47')]=moment();if(this[_0x7ced('0xaa')](_0x3c7d82['delay'])){_0x3c7d82[_0x7ced('0x47')]=moment()[_0x7ced('0xbe')](_0x3c7d82['delay'],'minutes');}if(!this[_0x7ced('0xaa')](_0x3c7d82[_0x7ced('0xbf')])){_0x3c7d82['callback_priority']=0x2;}this[_0x7ced('0xc0')][_0x7ced('0xa5')](this,_0x3c7d82);return this[_0x7ced('0x35')][_0x7ced('0xa8')](util[_0x7ced('0x28')](_0x7ced('0xc1'),_0x3c7d82[_0x7ced('0x44')],_0x3c7d82['list_id'],_0x3c7d82[_0x7ced('0x47')]));};AGIVertices[_0x7ced('0x14')][_0x7ced('0xc2')]=function(_0x3f5b91){logger['info'](util[_0x7ced('0x28')](_0x7ced('0xc3'),_0x3f5b91[_0x7ced('0xae')]));var _0xe7818=this[_0x7ced('0x35')][_0x7ced('0x52')](_0x3f5b91[_0x7ced('0xc4')],_0x3f5b91['options']);if(_0xe7818[_0x7ced('0xa2')]===-0x1){return _0xe7818;}return this[_0x7ced('0x35')][_0x7ced('0xa8')](util[_0x7ced('0x28')](_0x7ced('0xc5'),_0x3f5b91[_0x7ced('0xc4')],_0x3f5b91[_0x7ced('0x75')]));};AGIVertices['prototype'][_0x7ced('0xc6')]=function(_0x245c6f){logger[_0x7ced('0x2e')](util[_0x7ced('0x28')](_0x7ced('0xc7'),_0x245c6f[_0x7ced('0xae')]));if(!this[_0x7ced('0xaa')](_0x245c6f[_0x7ced('0x57')])){return this[_0x7ced('0x35')][_0x7ced('0xa8')](_0x7ced('0xa9'));}var _0x3e1519='\x22'+_0x245c6f[_0x7ced('0x57')]+'\x22';if(this[_0x7ced('0xaa')](_0x245c6f[_0x7ced('0x75')])){_0x3e1519+=','+_0x245c6f[_0x7ced('0x75')];}var _0x4bdccb=this[_0x7ced('0x35')][_0x7ced('0x52')](_0x7ced('0xc8'),_0x3e1519);if(_0x4bdccb[_0x7ced('0xa2')]===-0x1){return _0x4bdccb;}return this['channel'][_0x7ced('0xa8')](util['format'](_0x7ced('0xab'),_0x3e1519));};AGIVertices['prototype'][_0x7ced('0xc9')]=function(_0x389198){logger[_0x7ced('0x2e')](util[_0x7ced('0x28')]('Enter\x20in\x20SESTEKTTS\x20(%s)\x20block',_0x389198[_0x7ced('0xae')]));if(!this['isConfigured'](_0x389198[_0x7ced('0x57')])){return this[_0x7ced('0x35')][_0x7ced('0xa8')](_0x7ced('0xa9'));}var _0x180e5d='\x22'+_0x389198[_0x7ced('0x57')]+'\x22';if(this[_0x7ced('0xaa')](_0x389198[_0x7ced('0x75')])){_0x180e5d+=','+_0x389198['options'];}var _0x190ef6=this[_0x7ced('0x35')][_0x7ced('0x52')](_0x7ced('0xc8'),_0x180e5d);if(_0x190ef6[_0x7ced('0xa2')]===-0x1){return _0x190ef6;}return this['channel'][_0x7ced('0xa8')](util[_0x7ced('0x28')](_0x7ced('0xab'),_0x180e5d));};AGIVertices[_0x7ced('0x14')][_0x7ced('0xca')]=function(_0x2e1591){logger[_0x7ced('0x2e')](util[_0x7ced('0x28')](_0x7ced('0xcb'),_0x2e1591[_0x7ced('0xae')]));if(!this[_0x7ced('0xaa')](_0x2e1591[_0x7ced('0xaf')])){return this['channel'][_0x7ced('0xa8')]('no\x20grammar\x20configured');}var _0x10a85a=_0x2e1591['grammar'];if(this['isConfigured'](_0x2e1591['options'])){_0x10a85a+=','+_0x2e1591['options'];}var _0x3b656c=this[_0x7ced('0x35')][_0x7ced('0x52')]('MRCPRecog',_0x10a85a);if(_0x3b656c['result']===-0x1){return _0x3b656c;}var _0x24ac6e=this[_0x7ced('0xa1')](_0x7ced('0xb1'),'LUMENVOX_ASR_CONFIDENCE');if(_0x24ac6e[_0x7ced('0xa2')]===-0x1){return _0x24ac6e;}var _0x2e21a8=this[_0x7ced('0xa1')](_0x7ced('0xb2'),_0x7ced('0xcc'));if(_0x2e21a8[_0x7ced('0xa2')]===-0x1){return _0x2e21a8;}var _0x5370c0=this['getAndSetVariable']('RECOG_INSTANCE()',_0x7ced('0xcd'));if(_0x5370c0['result']===-0x1){return _0x5370c0;}return this[_0x7ced('0x35')][_0x7ced('0xa8')](util[_0x7ced('0x28')](_0x7ced('0xb4'),_0x10a85a));};AGIVertices[_0x7ced('0x14')]['sestekasr']=function(_0x5178f3){logger[_0x7ced('0x2e')](util[_0x7ced('0x28')](_0x7ced('0xce'),_0x5178f3[_0x7ced('0xae')]));if(!this[_0x7ced('0xaa')](_0x5178f3[_0x7ced('0xaf')])){return this['channel']['noop'](_0x7ced('0xcf'));}var _0x1adfd4=_0x5178f3[_0x7ced('0xaf')];if(this[_0x7ced('0xaa')](_0x5178f3[_0x7ced('0x75')])){_0x1adfd4+=','+_0x5178f3[_0x7ced('0x75')];}var _0x2fbd75=this[_0x7ced('0x35')][_0x7ced('0x52')](_0x7ced('0xb0'),_0x1adfd4);if(_0x2fbd75[_0x7ced('0xa2')]===-0x1){return _0x2fbd75;}var _0x104934=this[_0x7ced('0xa1')](_0x7ced('0xb1'),_0x7ced('0xd0'));if(_0x104934[_0x7ced('0xa2')]===-0x1){return _0x104934;}var _0x3c9791=this[_0x7ced('0xa1')](_0x7ced('0xb2'),'SESTEK_ASR_TRANSCRIPT');if(_0x3c9791[_0x7ced('0xa2')]===-0x1){return _0x3c9791;}var _0x1c4dd3=this[_0x7ced('0xa1')](_0x7ced('0xb3'),_0x7ced('0xd1'));if(_0x1c4dd3[_0x7ced('0xa2')]===-0x1){return _0x1c4dd3;}return this[_0x7ced('0x35')][_0x7ced('0xa8')](util[_0x7ced('0x28')](_0x7ced('0xb4'),_0x1adfd4));};AGIVertices[_0x7ced('0x14')][_0x7ced('0xd2')]=function(_0x5487b3){logger['info'](util['format'](_0x7ced('0xd3'),_0x5487b3[_0x7ced('0xae')]));if(!this['isConfigured'](_0x5487b3['odbc_id'])){return this[_0x7ced('0x35')][_0x7ced('0x2b')](_0x5487b3,_0x7ced('0xd4'));}var _0x4c50b3=this[_0x7ced('0x17')]['sync'](this,_0x5487b3[_0x7ced('0xd5')]);if(!_0x4c50b3){return this[_0x7ced('0x35')][_0x7ced('0x2b')](_0x5487b3,'no\x20odbc\x20database\x20found');}if(!this[_0x7ced('0xaa')](_0x5487b3['query'])){return this[_0x7ced('0x35')][_0x7ced('0x2b')](_0x5487b3,_0x7ced('0xd6'));}var _0x71c164=_0x5487b3[_0x7ced('0xd7')][_0x7ced('0xd8')](/(\r\n|\n|\r)/gm,'\x20');this['channel']['noop'](util['format'](_0x7ced('0xd9'),_0x71c164));var _0x33e5df=this['getQueryOdbc'][_0x7ced('0xa5')](this,_0x4c50b3,_0x71c164);this[_0x7ced('0x34')]['sync'](this,_0x5487b3,_0x71c164);if(!this[_0x7ced('0xaa')](_0x5487b3[_0x7ced('0xda')])){return this[_0x7ced('0x35')]['noop'](_0x7ced('0xdb'));}var _0x138281=this['getVariable'][_0x7ced('0xa5')](this,_0x5487b3[_0x7ced('0xda')]);if(!_0x138281){return this['channel'][_0x7ced('0x2b')](_0x5487b3,_0x7ced('0xdc'));}var _0x13c9ed=this;_0x33e5df[_0x7ced('0xdd')](function(_0x241e59,_0x29dede){Object[_0x7ced('0xde')](_0x241e59)['forEach'](function(_0x197a16){_0x13c9ed[_0x7ced('0x35')][_0x7ced('0x9d')](util[_0x7ced('0x28')](_0x7ced('0xdf'),_0x138281,_0x29dede,_0x197a16),_0x241e59[_0x197a16]);});});this[_0x7ced('0x35')]['setVariable'](util[_0x7ced('0x28')](_0x7ced('0xe0'),_0x138281),_0x33e5df[_0x7ced('0x9a')]);return this[_0x7ced('0x35')][_0x7ced('0xa8')](util[_0x7ced('0x28')](_0x7ced('0xe1'),_0x138281));};AGIVertices[_0x7ced('0x14')][_0x7ced('0xe2')]=function(_0xc1b975){logger[_0x7ced('0xe3')](util[_0x7ced('0x28')]('Enter\x20in\x20DIAL\x20(%s)\x20block',_0xc1b975[_0x7ced('0xae')]));if(!this[_0x7ced('0xaa')](_0xc1b975['sip_id'])){return this[_0x7ced('0x35')][_0x7ced('0x2b')](_0xc1b975,_0x7ced('0xe4'));}var _0x180b14=this[_0x7ced('0x1a')]['sync'](this,_0xc1b975['sip_id']);if(!_0x180b14){return this[_0x7ced('0x35')][_0x7ced('0x2b')](_0xc1b975,_0x7ced('0xe5'));}var _0x3471be=this[_0x7ced('0x35')][_0x7ced('0x52')]('DIAL',[util[_0x7ced('0x28')](_0x7ced('0xe6'),_0x180b14),_0xc1b975[_0x7ced('0x60')],_0xc1b975[_0x7ced('0xe7')],_0xc1b975[_0x7ced('0x5f')]]);if(_0x3471be[_0x7ced('0xa2')]===-0x1){return _0x3471be;}return this[_0x7ced('0x35')]['noop'](util['format'](_0x7ced('0xe8'),_0x7ced('0xe9')));};AGIVertices['prototype'][_0x7ced('0xea')]=function(_0x58bd05){logger['info'](util[_0x7ced('0x28')](_0x7ced('0xeb'),_0x58bd05['label']));if(!this['isConfigured'](_0x58bd05['key'])){return this[_0x7ced('0x35')][_0x7ced('0xa8')](_0x7ced('0xec'));}if(!this[_0x7ced('0xaa')](_0x58bd05[_0x7ced('0x57')])){return this['channel'][_0x7ced('0xa8')]('no\x20text\x20configured');}this['channel'][_0x7ced('0xed')]=!![];this[_0x7ced('0x34')](_0x58bd05);this['createSquareMessage'](_0x58bd05['text'],'in','','');this[_0x7ced('0x35')][_0x7ced('0xa8')](util[_0x7ced('0x28')]('Trying\x20Dialogflow:\x20%s',_0x58bd05[_0x7ced('0x57')]));var _0x55e292=this[_0x7ced('0x76')][_0x7ced('0xa5')](this,_0x58bd05);if(_0x55e292){for(var _0x1fb18e in _0x55e292){if(_0x55e292[_0x7ced('0x94')](_0x1fb18e)){this[_0x7ced('0x35')][_0x7ced('0x9d')](util[_0x7ced('0x28')](_0x7ced('0xee'),_0x1fb18e[_0x7ced('0x66')]()),_0x55e292[_0x1fb18e]);}}this[_0x7ced('0x3f')](_0x55e292[_0x7ced('0xef')],_0x7ced('0xf0'),_0x7ced('0xea'),'');return this[_0x7ced('0x35')][_0x7ced('0xa8')](util[_0x7ced('0x28')]('Dialogflow\x20Result\x20%s',_0x55e292[_0x7ced('0xef')]));}return this['channel'][_0x7ced('0x2b')](_0x58bd05,'Dialogflow\x20is\x20unreachable');};AGIVertices['prototype']['dialogflowV2']=function(_0x3f4c68){logger[_0x7ced('0x2e')](util[_0x7ced('0x28')](_0x7ced('0xf1'),_0x3f4c68[_0x7ced('0xae')]));if(!this[_0x7ced('0xaa')](_0x3f4c68[_0x7ced('0x7a')])){return this[_0x7ced('0x35')][_0x7ced('0xa8')](_0x7ced('0xf2'));}if(!this['isConfigured'](_0x3f4c68[_0x7ced('0x7b')])){return this[_0x7ced('0x35')]['noop']('no\x20client_email\x20configured');}if(!this[_0x7ced('0xaa')](_0x3f4c68['private_key'])){return this[_0x7ced('0x35')][_0x7ced('0xa8')]('no\x20private_key\x20configured');}if(!this['isConfigured'](_0x3f4c68[_0x7ced('0xf3')])){return this['channel'][_0x7ced('0xa8')](_0x7ced('0xf4'));}if(!this[_0x7ced('0xaa')](_0x3f4c68[_0x7ced('0x57')])){return this[_0x7ced('0x35')][_0x7ced('0xa8')](_0x7ced('0xa9'));}this[_0x7ced('0x35')][_0x7ced('0xed')]=!![];this['createSquareDetailsReport'](_0x3f4c68);this[_0x7ced('0x3f')](_0x3f4c68[_0x7ced('0x57')],'in','','');this[_0x7ced('0x35')][_0x7ced('0xa8')](util[_0x7ced('0x28')]('Trying\x20DialogflowV2:\x20%s',_0x3f4c68['text']));var _0x293dd7=this[_0x7ced('0x79')][_0x7ced('0xa5')](this,_0x3f4c68);if(_0x293dd7){for(var _0x528de in _0x293dd7){if(_0x293dd7[_0x7ced('0x94')](_0x528de)){if(_0x528de!==_0x7ced('0xf5')){this[_0x7ced('0x35')][_0x7ced('0x9d')](util[_0x7ced('0x28')]('DIALOGFLOW_%s',_0x528de[_0x7ced('0x66')]()),_0x293dd7[_0x528de]);}}}this[_0x7ced('0x3f')](_0x293dd7[_0x7ced('0xef')],_0x7ced('0xf0'),_0x7ced('0xf6'),_0x293dd7[_0x7ced('0xf5')]);return this[_0x7ced('0x35')][_0x7ced('0xa8')](util[_0x7ced('0x28')]('DialogflowV2\x20Result\x20%s',_0x293dd7[_0x7ced('0xef')]));}return this['channel'][_0x7ced('0x2b')](_0x3f4c68,'DialogflowV2\x20is\x20unreachable');};AGIVertices[_0x7ced('0x14')][_0x7ced('0xf7')]=function(_0x11cb99){logger[_0x7ced('0x2e')](util[_0x7ced('0x28')](_0x7ced('0xf8'),_0x11cb99['label']));if(!this[_0x7ced('0xaa')](_0x11cb99[_0x7ced('0xf9')])){return this[_0x7ced('0x35')]['noop'](_0x7ced('0xfa'));}if(!this[_0x7ced('0xaa')](_0x11cb99[_0x7ced('0xfb')])){return this[_0x7ced('0x35')][_0x7ced('0xa8')](_0x7ced('0xfc'));}if(!this['isConfigured'](_0x11cb99[_0x7ced('0xfd')])){return this[_0x7ced('0x35')][_0x7ced('0xa8')]('no\x20password\x20configured');}if(!this[_0x7ced('0xaa')](_0x11cb99['ndassistant_url'])){return this[_0x7ced('0x35')][_0x7ced('0xa8')](_0x7ced('0xa9'));}this['channel'][_0x7ced('0xed')]=!![];this[_0x7ced('0x34')](_0x11cb99);this['createSquareMessage'](_0x11cb99[_0x7ced('0x57')],'in','','');this[_0x7ced('0x35')][_0x7ced('0xa8')](util[_0x7ced('0x28')](_0x7ced('0xfe'),_0x11cb99[_0x7ced('0x57')]));var _0xb03dca=this[_0x7ced('0x7d')]['sync'](this,_0x11cb99);if(_0xb03dca){for(var _0x5b6ea0 in _0xb03dca){if(_0xb03dca[_0x7ced('0x94')](_0x5b6ea0)){this['channel'][_0x7ced('0x9d')](util[_0x7ced('0x28')]('SESTEK_NDA_%s',_0x5b6ea0['toUpperCase']()),_0xb03dca[_0x5b6ea0]);}}this[_0x7ced('0x3f')](_0xb03dca[_0x7ced('0xef')],_0x7ced('0xf0'),_0x7ced('0xf7'),'');if(_0xb03dca[_0x7ced('0xff')]){this['channel'][_0x7ced('0xa8')](util[_0x7ced('0x28')](_0x7ced('0x100'),_0xb03dca[_0x7ced('0xff')]));var _0x4752f0=this[_0x7ced('0x35')][_0x7ced('0x101')](_0xb03dca[_0x7ced('0xff')]);try{fs[_0x7ced('0x102')](_0xb03dca['audiofile']+_0x7ced('0x103'));}catch(_0x51bbfc){logger[_0x7ced('0x2b')](_0x51bbfc);}return _0x4752f0;}else{return this[_0x7ced('0x35')][_0x7ced('0xa8')](util[_0x7ced('0x28')]('SestekNDA\x20Result\x20%s',_0xb03dca[_0x7ced('0xef')]));}}return this['channel'][_0x7ced('0x2b')](_0x11cb99,_0x7ced('0x104'));};AGIVertices['prototype'][_0x7ced('0x105')]=function(_0x4160ee){logger[_0x7ced('0x2e')](util['format']('Enter\x20in\x20END\x20(%s)\x20block',_0x4160ee[_0x7ced('0xae')]));return this[_0x7ced('0x35')]['noop'](_0x7ced('0x105'));};AGIVertices[_0x7ced('0x14')][_0x7ced('0x106')]=function(_0x4c709d){logger['info'](util[_0x7ced('0x28')](_0x7ced('0x107'),_0x4c709d[_0x7ced('0xae')]));var _0x53c6ff='';if(_0x4c709d[_0x7ced('0x108')]){if(!this[_0x7ced('0xaa')](_0x4c709d[_0x7ced('0x108')])){return this[_0x7ced('0x35')][_0x7ced('0x2b')](_0x4c709d,'no\x20trunk\x20selected');}else{var _0x2ccebe=parseInt(_0x4c709d['trunk_id'],0xa);if(isNaN(_0x2ccebe)){_0x53c6ff=_0x4c709d[_0x7ced('0x108')];}else{_0x53c6ff=this[_0x7ced('0x109')][_0x7ced('0xa5')](this,_0x4c709d[_0x7ced('0x108')]);if(!_0x53c6ff){return this[_0x7ced('0x35')][_0x7ced('0x2b')](_0x4c709d,_0x7ced('0x10a'));}}}}else if(_0x4c709d[_0x7ced('0x10b')]){_0x53c6ff=_0x4c709d[_0x7ced('0x10b')];}else{return this[_0x7ced('0x35')][_0x7ced('0x2b')](_0x4c709d,'no\x20trunk\x20selected');}var _0x3a17c7=this['channel'][_0x7ced('0x52')](_0x7ced('0xe9'),[util[_0x7ced('0x28')](_0x7ced('0x10c'),_0x53c6ff,_0x4c709d[_0x7ced('0x44')]),_0x4c709d[_0x7ced('0x60')],_0x4c709d['opts'],_0x4c709d['url']]);if(_0x3a17c7['result']===-0x1){return _0x3a17c7;}return this['channel'][_0x7ced('0xa8')](util[_0x7ced('0x28')](_0x7ced('0xe8'),_0x7ced('0xe9')));};AGIVertices[_0x7ced('0x14')][_0x7ced('0x10d')]=function(_0x3150b9){logger[_0x7ced('0x2e')](util['format'](_0x7ced('0x10e'),_0x3150b9[_0x7ced('0xae')]));return this[_0x7ced('0x35')]['noop'](_0x7ced('0x10d'));};AGIVertices['prototype'][_0x7ced('0x10f')]=function(_0x1e9ae1){logger[_0x7ced('0x2e')](util[_0x7ced('0x28')](_0x7ced('0x110'),_0x1e9ae1['label']));if(_0x1e9ae1[_0x7ced('0x111')]===0x0){return this[_0x7ced('0xa4')](_0x1e9ae1);}_0x1e9ae1[_0x7ced('0x111')]-=0x1;if(!this[_0x7ced('0xaa')](_0x1e9ae1['file_id'])){return this[_0x7ced('0x35')][_0x7ced('0x2b')](_0x1e9ae1,_0x7ced('0x112'));}var _0x4ff3f1=this['getSound'][_0x7ced('0xa5')](this,_0x1e9ae1[_0x7ced('0x113')]);if(!_0x4ff3f1){return this[_0x7ced('0x35')][_0x7ced('0x2b')](_0x1e9ae1,_0x7ced('0x114'));}if(!this[_0x7ced('0xaa')](_0x1e9ae1[_0x7ced('0xda')])){return this[_0x7ced('0x35')][_0x7ced('0x2b')](_0x7ced('0xdb'));}var _0x5f48a5=this[_0x7ced('0x35')][_0x7ced('0x115')](_0x4ff3f1,_0x1e9ae1['response'],_0x1e9ae1['maxdigit']);var _0x527438=_0x5f48a5[_0x7ced('0xa2')]?_0x5f48a5[_0x7ced('0xa2')][_0x7ced('0x48')]():'';logger[_0x7ced('0x2e')]('test',JSON[_0x7ced('0x6f')](_0x5f48a5));if(_0x5f48a5[_0x7ced('0xa2')]===-0x1){this[_0x7ced('0x34')][_0x7ced('0xa5')](this,_0x1e9ae1,_0x527438);return _0x5f48a5;}else if(_0x5f48a5[_0x7ced('0xa3')]===_0x7ced('0x60')){_0x5f48a5[_0x7ced('0xa2')]=_0x527438['length']>=parseInt(_0x1e9ae1['mindigit'])?'x':'i';}else{_0x5f48a5[_0x7ced('0xa2')]=_0x527438[_0x7ced('0x9a')]>=parseInt(_0x1e9ae1[_0x7ced('0x116')])&&_0x527438['length']<=parseInt(_0x1e9ae1[_0x7ced('0x117')])?'x':'i';}var _0x4ad7ad=this[_0x7ced('0xf')][_0x7ced('0xa5')](this,_0x1e9ae1[_0x7ced('0xda')]);if(!_0x4ad7ad){return this[_0x7ced('0x35')][_0x7ced('0x2b')](_0x1e9ae1,_0x7ced('0xdc'));}this[_0x7ced('0x35')][_0x7ced('0x9d')](_0x4ad7ad,_0x527438);if(this[_0x7ced('0xaa')](_0x1e9ae1[_0x7ced('0x118')])){var _0x8bac7f=parseInt(_0x1e9ae1[_0x7ced('0x118')],0xa);var _0x23f7af=rs[_0x7ced('0x119')]({'charset':'*','length':_0x8bac7f});var _0x1b0332=_0x527438[_0x7ced('0x9a')];if(_0x1b0332>0x0){if(_0x1b0332>_0x8bac7f){this['createSquareDetailsReport']['sync'](this,_0x1e9ae1,_0x1e9ae1['hiddendigitspos']===_0x7ced('0x11a')?_0x23f7af+_0x527438[_0x7ced('0x11b')](_0x8bac7f):_0x527438['substr'](0x0,_0x1b0332-_0x8bac7f)+_0x23f7af);}else{this[_0x7ced('0x34')][_0x7ced('0xa5')](this,_0x1e9ae1,rs['generate']({'charset':'*','length':_0x1b0332}));}}else{this[_0x7ced('0x34')]['sync'](this,_0x1e9ae1,'');}}else{this[_0x7ced('0x34')]['sync'](this,_0x1e9ae1,_0x527438);}return _0x5f48a5;};AGIVertices[_0x7ced('0x14')]['getsecretdigits']=function(_0xe9b6e0){logger[_0x7ced('0x2e')](util[_0x7ced('0x28')](_0x7ced('0x11c'),_0xe9b6e0['label']));return this[_0x7ced('0x10f')](_0xe9b6e0);};AGIVertices[_0x7ced('0x14')][_0x7ced('0x11d')]=function(_0x3133ad){logger[_0x7ced('0x2e')](util[_0x7ced('0x28')](_0x7ced('0x11e'),_0x3133ad[_0x7ced('0xae')]));this['createSquareDetailsReport'][_0x7ced('0xa5')](this,_0x3133ad,_0x3133ad[_0x7ced('0x11f')]);return this[_0x7ced('0x35')][_0x7ced('0xa8')](util['format'](_0x7ced('0x120'),_0x3133ad[_0x7ced('0x11f')]));};AGIVertices['prototype'][_0x7ced('0x121')]=function(_0x1b0978){logger['info'](util['format'](_0x7ced('0x122'),_0x1b0978[_0x7ced('0xae')]));if(!this['isConfigured'](_0x1b0978[_0x7ced('0x86')])||!this[_0x7ced('0xaa')](_0x1b0978['aws_secret_access_key'])){return this[_0x7ced('0x35')]['noop']('no\x20valid\x20credentials\x20configured');}if(!this[_0x7ced('0xaa')](_0x1b0978['text'])){return this[_0x7ced('0x35')][_0x7ced('0xa8')](_0x7ced('0xa9'));}this[_0x7ced('0x35')]['noop'](util[_0x7ced('0x28')]('Trying\x20aws\x20Polly\x20%s',_0x1b0978[_0x7ced('0x57')]));var _0x41ca9e=this[_0x7ced('0x85')][_0x7ced('0xa5')](this,_0x1b0978);if(_0x41ca9e){this['channel']['noop'](util[_0x7ced('0x28')](_0x7ced('0x123'),_0x41ca9e));var _0x574591=this[_0x7ced('0x35')][_0x7ced('0x101')](_0x41ca9e);try{fs[_0x7ced('0x102')](_0x41ca9e+_0x7ced('0x103'));}catch(_0x5a48c9){logger[_0x7ced('0x2b')](_0x5a48c9);}return _0x574591;}return this[_0x7ced('0x35')]['error'](_0x1b0978,_0x7ced('0x124'));};AGIVertices[_0x7ced('0x14')][_0x7ced('0x125')]=function(_0x560027){logger[_0x7ced('0x2e')](util[_0x7ced('0x28')](_0x7ced('0x126'),_0x560027['label']));if(!this[_0x7ced('0xaa')](_0x560027[_0x7ced('0x86')])||!this['isConfigured'](_0x560027[_0x7ced('0x87')])){return this['channel'][_0x7ced('0xa8')](_0x7ced('0x127'));}if(!this['isConfigured'](_0x560027[_0x7ced('0x8d')])){return this[_0x7ced('0x35')]['noop'](_0x7ced('0x128'));}if(!this['isConfigured'](_0x560027[_0x7ced('0x57')])){return this['channel'][_0x7ced('0xa8')](_0x7ced('0xa9'));}this[_0x7ced('0x35')][_0x7ced('0xed')]=!![];this[_0x7ced('0x34')](_0x560027);this[_0x7ced('0x3f')](_0x560027[_0x7ced('0x57')],'in','','');this[_0x7ced('0x35')][_0x7ced('0xa8')](util[_0x7ced('0x28')](_0x7ced('0x129'),_0x560027[_0x7ced('0x57')]));var _0x1d85fd=this[_0x7ced('0x8b')][_0x7ced('0xa5')](this,_0x560027);if(_0x1d85fd){for(var _0x26df99 in _0x1d85fd){if(_0x1d85fd[_0x7ced('0x94')](_0x26df99)&&_[_0x7ced('0x95')](_0x1d85fd[_0x26df99])){this['channel']['setVariable'](util[_0x7ced('0x28')](_0x7ced('0x12a'),_0x26df99[_0x7ced('0x66')]()),_0x1d85fd[_0x26df99]);}}if(_['isNil'](_0x1d85fd['message'])){return this[_0x7ced('0x35')][_0x7ced('0xa8')]('Amazon\x20Lex\x20ready\x20for\x20fulfillment');}else{this['createSquareMessage'](_0x1d85fd[_0x7ced('0x73')],_0x7ced('0xf0'),_0x7ced('0x12b'),'');return this[_0x7ced('0x35')][_0x7ced('0xa8')](util[_0x7ced('0x28')](_0x7ced('0x12c'),_0x1d85fd[_0x7ced('0x73')]));}}return this[_0x7ced('0x35')][_0x7ced('0x2b')](_0x560027,'Amazon\x20Lex\x20is\x20unreachable');};AGIVertices[_0x7ced('0x14')][_0x7ced('0x12d')]=function(_0xa83b0f){logger[_0x7ced('0x2e')](util['format'](_0x7ced('0x12e'),_0xa83b0f[_0x7ced('0xae')],_0xa83b0f[_0x7ced('0x60')]));if(!this[_0x7ced('0xaa')](_0xa83b0f[_0x7ced('0x77')])){return this['channel'][_0x7ced('0xa8')]('no\x20key\x20configured');}var _0x451ad8=_0x7ced('0x12f');var _0x5cbb45=util[_0x7ced('0x28')](_0x7ced('0x130'),FILES_PATH,rs[_0x7ced('0x119')](0x4));var _0x3a1594=util[_0x7ced('0x28')]('%s.%s',_0x5cbb45,_0x451ad8);var _0x131d7a=!![];if(_0xa83b0f[_0x7ced('0x131')]==='NOBEEP'){_0x131d7a=![];}var _0x2f5a41=this[_0x7ced('0x35')][_0x7ced('0x132')](_0x5cbb45,_0x451ad8,_0xa83b0f[_0x7ced('0x133')],_0xa83b0f[_0x7ced('0x60')],undefined,_0x131d7a);if(_0x2f5a41[_0x7ced('0xa2')]!==-0x1){this['channel'][_0x7ced('0xa8')](util[_0x7ced('0x28')]('google\x20%s\x20file\x20created',_0x3a1594));var _0x26553d=this[_0x7ced('0x8e')]['sync'](this,_0xa83b0f,_0x3a1594);if(_0x26553d){for(var _0x19f249 in _0x26553d){if(_0x26553d[_0x7ced('0x94')](_0x19f249)){this[_0x7ced('0x35')]['setVariable'](util['format'](_0x7ced('0x134'),_0x19f249[_0x7ced('0x66')]()),_0x26553d[_0x19f249]);}}return this[_0x7ced('0x35')]['noop'](util[_0x7ced('0x28')]('GoogleASR\x20Result\x20%s',JSON[_0x7ced('0x6f')](_0x26553d)));}}return _0x2f5a41;};AGIVertices['prototype'][_0x7ced('0x135')]=function(_0x32bb67){logger[_0x7ced('0x2e')](util[_0x7ced('0x28')]('Enter\x20in\x20TILDEASR\x20(%s)\x20block',_0x32bb67['label']));if(!this[_0x7ced('0xaa')](_0x32bb67[_0x7ced('0x91')])){return this[_0x7ced('0x35')]['noop'](_0x7ced('0x136'));}if(!this[_0x7ced('0xaa')](_0x32bb67[_0x7ced('0x137')])){return this[_0x7ced('0x35')][_0x7ced('0xa8')](_0x7ced('0x138'));}var _0x46aad2=_0x7ced('0x12f');var _0x50c8fa=util['format']('%s/recordings/%s',FILES_PATH,rs['generate'](0x4));var _0x47d368=util[_0x7ced('0x28')](_0x7ced('0x9c'),_0x50c8fa,_0x46aad2);var _0x419e70=!![];if(_0x32bb67[_0x7ced('0x131')]===_0x7ced('0x139')){_0x419e70=![];}var _0x2dbefa=this[_0x7ced('0x35')][_0x7ced('0x132')](_0x50c8fa,_0x46aad2,_0x32bb67[_0x7ced('0x133')],_0x32bb67[_0x7ced('0x60')],undefined,_0x419e70);if(_0x2dbefa['result']!==-0x1){this['channel'][_0x7ced('0xa8')](util[_0x7ced('0x28')](_0x7ced('0x13a'),_0x47d368));var _0x3e5040=this['tildeASR']['sync'](this,_0x32bb67,_0x47d368);if(_0x3e5040){for(var _0x1adf4f in _0x3e5040){if(_0x3e5040[_0x7ced('0x94')](_0x1adf4f)){this[_0x7ced('0x35')][_0x7ced('0x9d')](util[_0x7ced('0x28')](_0x7ced('0x13b'),_0x1adf4f[_0x7ced('0x66')]()),_0x3e5040[_0x1adf4f]);}}return this[_0x7ced('0x35')][_0x7ced('0xa8')](util[_0x7ced('0x28')]('TildeASR\x20Result\x20%s',JSON[_0x7ced('0x6f')](_0x3e5040)));}}return _0x2dbefa;};AGIVertices['prototype']['gotoc']=function(_0x2e05c6){logger['info'](util[_0x7ced('0x28')](_0x7ced('0x13c'),_0x2e05c6[_0x7ced('0xae')]));return this['channel'][_0x7ced('0x13d')](_0x2e05c6['context'],_0x2e05c6['extension'],_0x2e05c6[_0x7ced('0x13e')]);};AGIVertices[_0x7ced('0x14')][_0x7ced('0x13f')]=function(_0x333da9){logger[_0x7ced('0x2e')](util[_0x7ced('0x28')](_0x7ced('0x140'),_0x333da9[_0x7ced('0xae')]));if(!this['isConfigured'](_0x333da9[_0x7ced('0x141')])){return this[_0x7ced('0x35')][_0x7ced('0x2b')](_0x333da9,'no\x20condition\x20configured');}try{var _0x5aeb79=eval(_0x333da9[_0x7ced('0x141')])?_0x7ced('0x142'):_0x7ced('0x143');this['channel'][_0x7ced('0xa8')](util[_0x7ced('0x28')](_0x7ced('0x144'),_0x333da9[_0x7ced('0x141')],_0x5aeb79));return{'code':0xc8,'result':_0x5aeb79};}catch(_0x1e238c){return{'code':0xc8,'result':_0x7ced('0x143')};}};AGIVertices[_0x7ced('0x14')][_0x7ced('0x145')]=function(_0x29376f){logger[_0x7ced('0x2e')](util[_0x7ced('0x28')](_0x7ced('0x146'),_0x29376f[_0x7ced('0xae')]));if(!this[_0x7ced('0xaa')](_0x29376f[_0x7ced('0x147')])){return this['channel'][_0x7ced('0x2b')](_0x29376f,'no\x20interval\x20configured');}var _0x1cee58=this['getIntervals']['sync'](this,_0x29376f[_0x7ced('0x147')]);if(!_0x1cee58){return this[_0x7ced('0x35')][_0x7ced('0x2b')](_0x29376f,_0x7ced('0x148'));}for(var _0x1d0683=0x0;_0x1d0683<_0x1cee58['length'];_0x1d0683+=0x1){var _0x2d2374=this[_0x7ced('0x35')][_0x7ced('0xf')](util[_0x7ced('0x28')](_0x7ced('0x149'),_0x1cee58[_0x1d0683]));if(_0x2d2374[_0x7ced('0xa2')]===-0x1){return _0x2d2374;}logger['info'](util[_0x7ced('0x28')]('IFTIME\x20%s\x20%s',_0x1cee58[_0x1d0683],_0x2d2374[_0x7ced('0xa3')]));if(_0x2d2374[_0x7ced('0xa3')]===_0x7ced('0x142')){logger[_0x7ced('0x2e')](util[_0x7ced('0x28')](_0x7ced('0x14a'),_0x1cee58[_0x1d0683],'true'));this[_0x7ced('0x35')][_0x7ced('0xa8')](util['format']('IFTIME\x20%s\x20%s',_0x1cee58[_0x1d0683],_0x7ced('0x142')));return{'code':0xc8,'result':_0x7ced('0x142')};}else{logger['info'](util[_0x7ced('0x28')](_0x7ced('0x14a'),_0x1cee58[_0x1d0683],'false'));this['channel'][_0x7ced('0xa8')](util[_0x7ced('0x28')](_0x7ced('0x14a'),_0x1cee58[_0x1d0683],_0x7ced('0x143')));}}return{'code':0xc8,'result':_0x7ced('0x143')};};AGIVertices[_0x7ced('0x14')][_0x7ced('0x14b')]=function(_0x21bd71){logger['info'](util[_0x7ced('0x28')](_0x7ced('0x14c'),_0x21bd71['label']));return this[_0x7ced('0x35')][_0x7ced('0x14b')]();};AGIVertices[_0x7ced('0x14')][_0x7ced('0x14d')]=function(_0x18ff2f){logger[_0x7ced('0x2e')](util[_0x7ced('0x28')]('Enter\x20in\x20ISPEECHASR\x20(%s)\x20block',_0x18ff2f[_0x7ced('0xae')]));if(!this[_0x7ced('0xaa')](_0x18ff2f[_0x7ced('0x77')])){return this[_0x7ced('0x35')][_0x7ced('0xa8')](_0x7ced('0xec'));}var _0x5e6693='wav';var _0x3290e7=util['format']('%s/recordings/%s',FILES_PATH,rs[_0x7ced('0x119')](0x4));var _0x5e66c6=util['format'](_0x7ced('0x9c'),_0x3290e7,_0x5e6693);var _0x33f149=!![];if(_0x18ff2f['beep']===_0x7ced('0x139')){_0x33f149=![];}var _0xcb1237=this[_0x7ced('0x35')][_0x7ced('0x132')](_0x3290e7,_0x5e6693,_0x18ff2f['intKey'],_0x18ff2f['timeout'],undefined,_0x33f149);if(_0xcb1237[_0x7ced('0xa2')]!==-0x1){this[_0x7ced('0x35')][_0x7ced('0xa8')](util[_0x7ced('0x28')](_0x7ced('0x14e'),_0x5e66c6));var _0x49b2fb=this[_0x7ced('0x81')][_0x7ced('0xa5')](this,_0x18ff2f,_0x5e66c6);if(_0x49b2fb){for(var _0xd53f0e in _0x49b2fb){if(_0x49b2fb[_0x7ced('0x94')](_0xd53f0e)){this[_0x7ced('0x35')]['setVariable'](util[_0x7ced('0x28')](_0x7ced('0x14f'),_0xd53f0e[_0x7ced('0x66')]()),_0x49b2fb[_0xd53f0e]);}}return this[_0x7ced('0x35')][_0x7ced('0xa8')](util['format']('IspeechASR\x20Result\x20%s',JSON['stringify'](_0x49b2fb)));}}return _0xcb1237;};AGIVertices[_0x7ced('0x14')][_0x7ced('0x150')]=function(_0xd829ad){logger[_0x7ced('0x2e')](util['format'](_0x7ced('0x151'),_0xd829ad[_0x7ced('0xae')]));if(!this['isConfigured'](_0xd829ad['key'])){return this['channel'][_0x7ced('0xa8')](_0x7ced('0xec'));}if(!this['isConfigured'](_0xd829ad['text'])){return this[_0x7ced('0x35')]['noop'](_0x7ced('0xa9'));}this['channel'][_0x7ced('0xa8')](util[_0x7ced('0x28')](_0x7ced('0x152'),_0xd829ad['text']));var _0x4af8fe=this[_0x7ced('0x7e')][_0x7ced('0xa5')](this,_0xd829ad);if(_0x4af8fe){this[_0x7ced('0x35')][_0x7ced('0xa8')](util[_0x7ced('0x28')]('ispeech\x20%s\x20file\x20created',_0x4af8fe));var _0x54b21e=this['channel'][_0x7ced('0x101')](_0x4af8fe,_0xd829ad['intKey']);try{fs[_0x7ced('0x102')](_0x4af8fe+_0x7ced('0x103'));}catch(_0x54e7f4){logger[_0x7ced('0x2b')](_0x54e7f4);}return _0x54b21e;}return this['channel'][_0x7ced('0x2b')](_0xd829ad,_0x7ced('0x153'));};AGIVertices[_0x7ced('0x14')][_0x7ced('0x154')]=function(_0xf04f06){logger['info'](util['format']('Enter\x20in\x20LOGIN\x20(%s)\x20block',_0xf04f06['label']));if(!this[_0x7ced('0xaa')](_0xf04f06[_0x7ced('0x155')])){return this['channel'][_0x7ced('0x2b')](_0xf04f06,_0x7ced('0x156'));}logger[_0x7ced('0x2e')](util[_0x7ced('0x28')](_0x7ced('0x157'),this[_0x7ced('0x35')][_0x7ced('0x3a')],_0xf04f06[_0x7ced('0x155')]));var _0x499ce0=this[_0x7ced('0x158')]['sync'](this,_0xf04f06[_0x7ced('0x155')]);if(_0x499ce0){logger[_0x7ced('0x2e')](util[_0x7ced('0x28')](_0x7ced('0x159'),this[_0x7ced('0x35')]['callerid'],_0xf04f06[_0x7ced('0x155')]));this[_0x7ced('0x35')][_0x7ced('0xa8')](util[_0x7ced('0x28')](_0x7ced('0x159'),this[_0x7ced('0x35')][_0x7ced('0x3a')],_0xf04f06['findBy']));return{'code':0xc8,'result':_0x7ced('0x15a')};}else{logger[_0x7ced('0x2e')](util[_0x7ced('0x28')](_0x7ced('0x15b'),this[_0x7ced('0x35')][_0x7ced('0x3a')],_0xf04f06[_0x7ced('0x155')]));this[_0x7ced('0x35')][_0x7ced('0xa8')](util[_0x7ced('0x28')]('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this[_0x7ced('0x35')]['callerid'],_0xf04f06[_0x7ced('0x155')]));return{'code':0xc8,'result':_0x7ced('0x15c')};}};AGIVertices[_0x7ced('0x14')]['logout']=function(_0x1fbe88){logger[_0x7ced('0x2e')](util[_0x7ced('0x28')]('Enter\x20in\x20LOGOUT\x20(%s)\x20block',_0x1fbe88['label']));if(!this[_0x7ced('0xaa')](_0x1fbe88[_0x7ced('0x155')])){return this[_0x7ced('0x35')][_0x7ced('0x2b')](_0x1fbe88,'no\x20find\x20by\x20configured');}logger[_0x7ced('0x2e')](util['format']('FIND\x20AGENT\x20%s\x20BY\x20%s',this['channel'][_0x7ced('0x3a')],_0x1fbe88[_0x7ced('0x155')]));var _0x5cbfad=this['agentLogout'][_0x7ced('0xa5')](this,_0x1fbe88[_0x7ced('0x155')]);if(_0x5cbfad){logger['info'](util[_0x7ced('0x28')]('AGENT\x20%s\x20FOUND\x20BY',this['channel']['callerid'],_0x1fbe88['findBy']));this['channel']['noop'](util[_0x7ced('0x28')](_0x7ced('0x159'),this['channel'][_0x7ced('0x3a')],_0x1fbe88[_0x7ced('0x155')]));return{'code':0xc8,'result':_0x7ced('0x15a')};}else{logger[_0x7ced('0x2e')](util['format'](_0x7ced('0x15b'),this['channel']['callerid'],_0x1fbe88[_0x7ced('0x155')]));this[_0x7ced('0x35')][_0x7ced('0xa8')](util['format'](_0x7ced('0x15b'),this['channel'][_0x7ced('0x3a')],_0x1fbe88[_0x7ced('0x155')]));return{'code':0xc8,'result':'failure'};}};AGIVertices[_0x7ced('0x14')][_0x7ced('0x15d')]=function(_0x28f814){logger['info'](util['format']('Enter\x20in\x20MATH\x20(%s)\x20block',_0x28f814[_0x7ced('0xae')]));if(!this[_0x7ced('0xaa')](_0x28f814[_0x7ced('0x15e')])){return this[_0x7ced('0x35')][_0x7ced('0x2b')](_0x28f814,_0x7ced('0x15f'));}this[_0x7ced('0x35')][_0x7ced('0xa8')](util['format'](_0x7ced('0x160'),_0x28f814[_0x7ced('0x15e')]));var _0x5d8103=eval(_0x28f814[_0x7ced('0x15e')]);if(!this[_0x7ced('0xaa')](_0x28f814[_0x7ced('0xda')])){return this[_0x7ced('0x35')]['noop'](_0x7ced('0xdb'));}var _0x364450=this[_0x7ced('0xf')][_0x7ced('0xa5')](this,_0x28f814['variable_id']);if(!_0x364450){return this[_0x7ced('0x35')][_0x7ced('0x2b')](_0x28f814,_0x7ced('0xdc'));}if(_[_0x7ced('0x99')](_0x5d8103)){var _0x41570c=this;_0x5d8103['forEach'](function(_0x3d6373,_0x3b4a96){_0x41570c['channel'][_0x7ced('0x9d')](util[_0x7ced('0x28')](_0x7ced('0x161'),_0x364450,_0x3b4a96),_0x3d6373);});return this[_0x7ced('0x35')][_0x7ced('0xa8')](util['format'](_0x7ced('0x162'),_0x364450));}else{return this[_0x7ced('0x35')][_0x7ced('0x9d')](_0x364450,_0x5d8103);}};AGIVertices[_0x7ced('0x14')][_0x7ced('0xb')]=function(_0x51f478){logger['info'](util['format']('Enter\x20in\x20MENU\x20(%s)\x20block',_0x51f478[_0x7ced('0xae')]));if(_0x51f478[_0x7ced('0x111')]===0x0){return this[_0x7ced('0xa4')](_0x51f478);}_0x51f478[_0x7ced('0x111')]-=0x1;if(!this[_0x7ced('0xaa')](_0x51f478[_0x7ced('0x113')])){return this['channel'][_0x7ced('0x2b')](_0x51f478,_0x7ced('0x112'));}var _0x1af983=this[_0x7ced('0x163')][_0x7ced('0xa5')](this,_0x51f478[_0x7ced('0x113')]);if(!_0x1af983){return this['channel'][_0x7ced('0x2b')](_0x51f478,_0x7ced('0x114'));}var _0x39df73=this[_0x7ced('0x35')][_0x7ced('0x115')](_0x1af983,_0x51f478[_0x7ced('0x164')],_0x51f478['digit']);var _0x506ac4=_0x39df73['result'];if(_0x39df73[_0x7ced('0xa2')]===-0x1){this[_0x7ced('0x34')][_0x7ced('0xa5')](this,_0x51f478,'-1');return _0x39df73;}else if(_0x39df73[_0x7ced('0xa3')]===_0x7ced('0x60')){_0x39df73[_0x7ced('0xa2')]=_0x39df73[_0x7ced('0xa2')][_0x7ced('0x9a')]>0x0?_0x39df73[_0x7ced('0xa2')]:'t';}else if(_[_0x7ced('0x40')](_0x39df73[_0x7ced('0xa2')])){_0x39df73[_0x7ced('0xa2')]='#';_0x506ac4='#';}if(!this[_0x7ced('0xaa')](_0x51f478[_0x7ced('0xda')])){this[_0x7ced('0x35')][_0x7ced('0xa8')](_0x7ced('0xdb'));}else{var _0x26f875=this[_0x7ced('0xf')]['sync'](this,_0x51f478[_0x7ced('0xda')]);if(!_0x26f875){return this[_0x7ced('0x35')]['error'](_0x51f478,_0x7ced('0xdc'));}this[_0x7ced('0x35')][_0x7ced('0x9d')](_0x26f875,_0x506ac4);}this[_0x7ced('0x34')]['sync'](this,_0x51f478,_0x506ac4);return _0x39df73;};AGIVertices[_0x7ced('0x14')]['noop']=function(_0x14610b){logger[_0x7ced('0x2e')](util[_0x7ced('0x28')](_0x7ced('0x165'),_0x14610b[_0x7ced('0xae')]));return this[_0x7ced('0x35')][_0x7ced('0xa8')](_0x14610b[_0x7ced('0x166')]||_0x14610b['label']);};AGIVertices[_0x7ced('0x14')][_0x7ced('0x167')]=function(_0xdec662){logger[_0x7ced('0x2e')](util[_0x7ced('0x28')]('Enter\x20in\x20PAUSE\x20(%s)\x20block',_0xdec662[_0x7ced('0xae')]));if(!this[_0x7ced('0xaa')](_0xdec662['findBy'])){return this[_0x7ced('0x35')][_0x7ced('0x2b')](_0xdec662,_0x7ced('0x156'));}logger['info'](util[_0x7ced('0x28')](_0x7ced('0x157'),this[_0x7ced('0x35')][_0x7ced('0x3a')],_0xdec662[_0x7ced('0x155')]));var _0x15b4a2=this[_0x7ced('0x49')]['sync'](this,_0xdec662[_0x7ced('0x168')]);var _0x39a383=this[_0x7ced('0x4a')][_0x7ced('0xa5')](this,_0xdec662[_0x7ced('0x155')],_0x15b4a2);if(_0x39a383){logger['info'](util['format']('AGENT\x20%s\x20FOUND\x20BY',this[_0x7ced('0x35')][_0x7ced('0x3a')],_0xdec662[_0x7ced('0x155')]));this[_0x7ced('0x35')][_0x7ced('0xa8')](util[_0x7ced('0x28')](_0x7ced('0x159'),this['channel'][_0x7ced('0x3a')],_0xdec662[_0x7ced('0x155')]));return{'code':0xc8,'result':_0x7ced('0x15a')};}else{logger[_0x7ced('0x2e')](util[_0x7ced('0x28')](_0x7ced('0x15b'),this['channel'][_0x7ced('0x3a')],_0xdec662[_0x7ced('0x155')]));this[_0x7ced('0x35')][_0x7ced('0xa8')](util['format'](_0x7ced('0x159'),this[_0x7ced('0x35')]['callerid'],_0xdec662['findBy']));return{'code':0xc8,'result':'failure'};}};AGIVertices[_0x7ced('0x14')]['playback']=function(_0x59ba7b){logger[_0x7ced('0x2e')](util[_0x7ced('0x28')]('Enter\x20in\x20PLAYBACK\x20(%s)\x20block',_0x59ba7b[_0x7ced('0xae')]));if(!this[_0x7ced('0xaa')](_0x59ba7b[_0x7ced('0x113')])){return this[_0x7ced('0x35')][_0x7ced('0x2b')](_0x59ba7b,_0x7ced('0x112'));}var _0x47e02d=this['getSound'][_0x7ced('0xa5')](this,_0x59ba7b[_0x7ced('0x113')]);if(!_0x47e02d){return this[_0x7ced('0x35')][_0x7ced('0x2b')](_0x59ba7b,'no\x20file\x20audio\x20found');}var _0x2e4204=this[_0x7ced('0x35')][_0x7ced('0x52')](_0x7ced('0x169'),[_0x47e02d,_0x59ba7b['opts']]);if(_0x2e4204[_0x7ced('0xa2')]===-0x1){return _0x2e4204;}return this['channel'][_0x7ced('0xa8')](util['format'](_0x7ced('0xc5'),'PLAYBACK',_0x47e02d));};AGIVertices[_0x7ced('0x14')][_0x7ced('0x16a')]=function(_0x93c385){logger[_0x7ced('0x2e')](util[_0x7ced('0x28')](_0x7ced('0x16b'),_0x93c385[_0x7ced('0xae')]));if(!this['isConfigured'](_0x93c385[_0x7ced('0x16c')])){return this[_0x7ced('0x35')][_0x7ced('0x2b')](_0x93c385,_0x7ced('0x16d'));}var _0xc43cf8='';var _0xcb432=parseInt(_0x93c385[_0x7ced('0x16c')],0xa);if(isNaN(_0xcb432)){_0xc43cf8=_0x93c385[_0x7ced('0x16c')];}else{_0xc43cf8=this[_0x7ced('0x16e')][_0x7ced('0xa5')](this,_0x93c385[_0x7ced('0x16c')]);if(!_0xc43cf8){return this[_0x7ced('0x35')]['error'](_0x93c385,_0x7ced('0x16f'));}}var _0x54bebf='';if(this[_0x7ced('0xaa')](_0x93c385['file_id'])){var _0x4f6563=this['getSound'][_0x7ced('0xa5')](this,_0x93c385[_0x7ced('0x113')]);if(_0x4f6563){_0x54bebf=_0x4f6563;}}this[_0x7ced('0x34')][_0x7ced('0xa5')](this,_0x93c385,_0xc43cf8);if(_0x93c385[_0x7ced('0xe7')][_0x7ced('0x170')]('x')<0x0){_0x93c385[_0x7ced('0xe7')]+='x';}if(_0x93c385['opts']['indexOf']('X')<0x0){_0x93c385[_0x7ced('0xe7')]+='X';}this[_0x7ced('0x35')][_0x7ced('0x9d')](_0x7ced('0x171'),_0xc43cf8?_0xc43cf8['toLowerCase']():'');var _0x358c3b=this[_0x7ced('0x35')][_0x7ced('0x52')](_0x7ced('0x172'),[_0xc43cf8,_0x93c385[_0x7ced('0xe7')],_0x93c385[_0x7ced('0x5f')],_0x54bebf,_0x93c385[_0x7ced('0x60')],_0x93c385[_0x7ced('0xb5')],_0x93c385['macro'],_0x93c385[_0x7ced('0x173')],'',_0x93c385['position']]);if(_0x358c3b[_0x7ced('0xa2')]===-0x1){return _0x358c3b;}return this[_0x7ced('0x35')][_0x7ced('0xa8')](util[_0x7ced('0x28')]('Executed\x20command\x20%s\x20%s',_0x7ced('0x172'),_0xc43cf8));};AGIVertices[_0x7ced('0x14')][_0x7ced('0x174')]=function(_0x3f628a){logger[_0x7ced('0x2e')](util['format']('Enter\x20in\x20RECORD\x20(%s)\x20block',_0x3f628a[_0x7ced('0xae')]));var _0x24daa7=_0x3f628a[_0x7ced('0x175')]||_0x7ced('0x12f');var _0x4f151a=util[_0x7ced('0x28')](_0x7ced('0x176'),this[_0x7ced('0x35')][_0x7ced('0x36')],rs[_0x7ced('0x119')](0x5));var _0x1f2140=util['format'](_0x7ced('0x177'),FILES_PATH,_0x4f151a,_0x24daa7);var _0x5866cf=util['format'](_0x7ced('0x130'),FILES_PATH,_0x4f151a);this[_0x7ced('0x39')][_0x7ced('0xa5')](this,_0x3f628a,_0x4f151a,_0x1f2140);this[_0x7ced('0x35')]['setVariable'](_0x7ced('0x178'),_0x4f151a);logger[_0x7ced('0x2e')](_0x7ced('0x179'),_0x5866cf,_0x24daa7,_0x3f628a[_0x7ced('0x17a')],_0x3f628a[_0x7ced('0x60')]);return this['channel'][_0x7ced('0x132')](_0x5866cf,_0x24daa7,_0x3f628a[_0x7ced('0x17a')],_0x3f628a[_0x7ced('0x60')],undefined,!![]);};AGIVertices['prototype']['restapi']=function(_0x4aa70f){logger[_0x7ced('0x2e')](util[_0x7ced('0x28')]('Enter\x20in\x20RESTAPI\x20(%s)\x20block',_0x4aa70f[_0x7ced('0xae')]));if(!this[_0x7ced('0xaa')](_0x4aa70f[_0x7ced('0x5f')])){return this[_0x7ced('0x35')]['noop'](_0x7ced('0x17b'));}var _0x3e2cbd=this[_0x7ced('0x5e')][_0x7ced('0xa5')](this,_0x4aa70f);logger['info'](util['format'](_0x7ced('0x17c'),util[_0x7ced('0x17d')](_0x3e2cbd,{'showHidden':![],'depth':null})));if(!this[_0x7ced('0xaa')](_0x4aa70f[_0x7ced('0xda')])){return this['channel']['noop'](_0x7ced('0x17e'));}var _0x2112f3=this[_0x7ced('0xf')][_0x7ced('0xa5')](this,_0x4aa70f[_0x7ced('0xda')]);if(!_0x2112f3){return this[_0x7ced('0x35')][_0x7ced('0x2b')](_0x4aa70f,_0x7ced('0xdc'));}this[_0x7ced('0x35')]['setVariable'](util[_0x7ced('0x28')](_0x7ced('0x17f'),_0x2112f3),_0x3e2cbd[_0x7ced('0x72')]?_0x3e2cbd[_0x7ced('0x72')]:'200');this[_0x7ced('0x35')][_0x7ced('0x9d')](util[_0x7ced('0x28')](_0x7ced('0x180'),_0x2112f3),_0x3e2cbd['statusMessage']?_0x3e2cbd['statusMessage']:'OK');if(_0x3e2cbd[_0x7ced('0x67')]){try{this['saveRestApiResult'](_0x3e2cbd['body'],_0x2112f3);}catch(_0x5556bc){logger[_0x7ced('0x2b')](util[_0x7ced('0x28')](_0x7ced('0x181'),_0x2112f3));}}return this[_0x7ced('0x35')][_0x7ced('0xa8')](util[_0x7ced('0x28')]('variable\x20%s\x20set',_0x2112f3));};AGIVertices[_0x7ced('0x14')][_0x7ced('0x182')]=function(_0x13511b){logger[_0x7ced('0x2e')](util[_0x7ced('0x28')](_0x7ced('0x183'),_0x13511b[_0x7ced('0xae')]));return this[_0x7ced('0x35')][_0x7ced('0x184')](_0x13511b[_0x7ced('0x185')]['replace'](/\s+/g,''),_0x13511b[_0x7ced('0x17a')]);};AGIVertices[_0x7ced('0x14')]['saynumber']=function(_0x5ac8ef){logger[_0x7ced('0x2e')](util[_0x7ced('0x28')](_0x7ced('0x186'),_0x5ac8ef[_0x7ced('0xae')]));return this[_0x7ced('0x35')]['sayNumber'](_0x5ac8ef[_0x7ced('0x61')][_0x7ced('0xd8')](/\s+/g,''),_0x5ac8ef['escape_digits']);};AGIVertices[_0x7ced('0x14')]['sayphonetic']=function(_0x41a8a8){logger[_0x7ced('0x2e')](util['format'](_0x7ced('0x187'),_0x41a8a8[_0x7ced('0xae')]));return this[_0x7ced('0x35')][_0x7ced('0x188')](_0x41a8a8[_0x7ced('0x57')],_0x41a8a8[_0x7ced('0x17a')]);};AGIVertices[_0x7ced('0x14')]['sendMail']=function(_0x4cc12d){logger[_0x7ced('0x2e')](util['format'](_0x7ced('0x189'),_0x4cc12d[_0x7ced('0xae')]));if(!this[_0x7ced('0xaa')](_0x4cc12d[_0x7ced('0x18a')])){return this[_0x7ced('0x35')][_0x7ced('0xa8')](_0x7ced('0x18b'));}var _0x5c5bfb=this[_0x7ced('0x18c')][_0x7ced('0xa5')](this,_0x4cc12d['account_id']);if(!_0x5c5bfb||!_0x5c5bfb['Smtp']){return this[_0x7ced('0x35')]['error'](_0x4cc12d,_0x7ced('0x18d'));}var _0x36d958={'from':util['format'](_0x7ced('0x18e'),_0x5c5bfb[_0x7ced('0x13')],_0x5c5bfb[_0x7ced('0x18f')]||_0x5c5bfb[_0x7ced('0x190')][_0x7ced('0x191')]),'to':_0x4cc12d['to']||'','cc':_0x4cc12d['cc']||'','bcc':_0x4cc12d[_0x7ced('0x192')]||'','subject':_0x4cc12d['subject'],'html':_0x4cc12d[_0x7ced('0x57')],'text':_0x4cc12d[_0x7ced('0x57')]};var _0x45e6b1={'tls':{'rejectUnauthorized':![]}};if(_0x5c5bfb['Smtp'][_0x7ced('0x193')]){_0x45e6b1['service']=_0x5c5bfb[_0x7ced('0x190')][_0x7ced('0x193')];}else{_0x45e6b1['host']=_0x5c5bfb[_0x7ced('0x190')]['host'];_0x45e6b1['port']=_0x5c5bfb['Smtp']['port'];_0x45e6b1[_0x7ced('0x194')]=_0x5c5bfb[_0x7ced('0x190')][_0x7ced('0x194')];}if(_0x5c5bfb[_0x7ced('0x190')]['authentication']){_0x45e6b1[_0x7ced('0x195')]={'user':_0x5c5bfb[_0x7ced('0x190')][_0x7ced('0x191')],'pass':_0x5c5bfb[_0x7ced('0x190')][_0x7ced('0x196')]};}if(this[_0x7ced('0xaa')](_0x4cc12d[_0x7ced('0x197')])){}logger[_0x7ced('0xe3')]('sendMail\x20message',JSON['stringify'](_0x36d958));this[_0x7ced('0x34')][_0x7ced('0xa5')](this,_0x4cc12d,_0x4cc12d[_0x7ced('0x18a')]);this[_0x7ced('0x35')][_0x7ced('0xa8')](util['format']('Trying\x20SendMail\x20with\x20account\x20%s',_0x5c5bfb[_0x7ced('0x13')]));this[_0x7ced('0x20')][_0x7ced('0xa5')](this,_0x45e6b1,_0x36d958);return this['channel'][_0x7ced('0xa8')](_0x7ced('0x198'));};AGIVertices['prototype'][_0x7ced('0x199')]=function(_0xae16d6){logger[_0x7ced('0x2e')](util[_0x7ced('0x28')](_0x7ced('0x19a'),_0xae16d6[_0x7ced('0xae')]));return this[_0x7ced('0x35')][_0x7ced('0xa8')](_0x7ced('0x19b'));};AGIVertices['prototype'][_0x7ced('0x19c')]=function(_0x243e50){logger['info'](util[_0x7ced('0x28')](_0x7ced('0x19d'),_0x243e50[_0x7ced('0xae')]));if(!this[_0x7ced('0xaa')](_0x243e50[_0x7ced('0x19e')])){return this[_0x7ced('0x35')]['noop'](_0x7ced('0x19f'));}var _0x174c9d=this[_0x7ced('0x31')][_0x7ced('0xa5')](this,_0x243e50['sms_account_id']);if(!_0x174c9d){return this['channel'][_0x7ced('0x2b')](_0x243e50,'no\x20sms\x20account\x20found');}var _0x3cf604={'body':_0x243e50['sms_text'],'phone':_0x243e50['to']||'','SmsAccountId':_0x174c9d['id']};logger['debug']('sendSMS\x20message',JSON[_0x7ced('0x6f')](_0x3cf604));this[_0x7ced('0x34')][_0x7ced('0xa5')](this,_0x243e50,_0x243e50[_0x7ced('0x19e')]);this[_0x7ced('0x35')][_0x7ced('0xa8')](util[_0x7ced('0x28')](_0x7ced('0x1a0'),_0x174c9d[_0x7ced('0x13')]));this[_0x7ced('0x33')]['sync'](this,_0x3cf604);return this['channel'][_0x7ced('0xa8')](_0x7ced('0x1a1'));};AGIVertices['prototype'][_0x7ced('0x1a2')]=function(_0x26a766){logger[_0x7ced('0x2e')](util['format'](_0x7ced('0x1a3'),_0x26a766[_0x7ced('0xae')]));if(!this[_0x7ced('0xaa')](_0x26a766['variable_id'])){return this[_0x7ced('0x35')][_0x7ced('0x2b')](_0x26a766,_0x7ced('0x1a4'));}var _0x15c188=this['getVariable'][_0x7ced('0xa5')](this,_0x26a766[_0x7ced('0xda')]);if(!_0x15c188){return this['channel'][_0x7ced('0x2b')](_0x26a766,_0x7ced('0xdc'));}return this[_0x7ced('0x35')][_0x7ced('0x9d')](_0x15c188,_0x26a766['variable_value']);};AGIVertices[_0x7ced('0x14')][_0x7ced('0x1a5')]=function(_0x1ff9bb){logger[_0x7ced('0x2e')](util[_0x7ced('0x28')](_0x7ced('0x1a6'),_0x1ff9bb['label']));this['channel'][_0x7ced('0xa8')]('START\x20CALLY\x20SQUARE');if(_0x1ff9bb[_0x7ced('0xba')]===_0x7ced('0x1a7')){this['channel'][_0x7ced('0xa8')](_0x7ced('0x1a8'));return this['channel'][_0x7ced('0xba')]();}return this[_0x7ced('0x35')]['noop'](_0x7ced('0x1a9'));};AGIVertices['prototype'][_0x7ced('0x1aa')]=function(_0x589415){logger[_0x7ced('0x2e')](util[_0x7ced('0x28')](_0x7ced('0x1ab'),_0x589415[_0x7ced('0xae')]));if(!this[_0x7ced('0xaa')](_0x589415[_0x7ced('0x1ac')])){return this[_0x7ced('0x35')]['error'](_0x589415,_0x7ced('0x1ad'));}var _0x5dbc5b=this[_0x7ced('0x15')]['sync'](this,_0x589415['project_id']);if(!this[_0x7ced('0xaa')](_0x5dbc5b)){return this[_0x7ced('0x35')][_0x7ced('0x2b')](_0x589415,util['format']('no\x20subproject\x20found\x20with\x20id\x20%d',_0x589415['project_id']));}if(_0x5dbc5b===this[_0x7ced('0x35')][_0x7ced('0x38')]){return this[_0x7ced('0x35')][_0x7ced('0x2b')](_0x589415,_0x7ced('0x1ae'));}this[_0x7ced('0x34')]['sync'](this,_0x589415,_0x5dbc5b);var _0x5855e8=this[_0x7ced('0x35')][_0x7ced('0x52')](_0x7ced('0x1af'),util[_0x7ced('0x28')](_0x7ced('0x1b0'),config[_0x7ced('0xb5')][_0x7ced('0x1b1')]||'127.0.0.1',_0x5dbc5b,this[_0x7ced('0x35')]['arg_1']));if(_0x5855e8[_0x7ced('0xa2')]===-0x1){return _0x5855e8;}return this['channel']['noop'](util[_0x7ced('0x28')](_0x7ced('0xc5'),'AGI',_0x5dbc5b));};AGIVertices[_0x7ced('0x14')][_0x7ced('0x1b2')]=function(_0x3e53e3){logger[_0x7ced('0x2e')](util[_0x7ced('0x28')](_0x7ced('0x1b3'),_0x3e53e3[_0x7ced('0xae')]));var _0x28b87e=this[_0x7ced('0x1b4')][_0x7ced('0xa5')](this,_0x3e53e3[_0x7ced('0x1b5')]);this[_0x7ced('0x34')][_0x7ced('0xa5')](this,_0x3e53e3,_0x3e53e3[_0x7ced('0x1b5')]);if(this[_0x7ced('0xaa')](_0x3e53e3['variable_id'])){var _0x57f0c9=this[_0x7ced('0xf')][_0x7ced('0xa5')](this,_0x3e53e3[_0x7ced('0xda')]);if(_0x57f0c9){this[_0x7ced('0x35')][_0x7ced('0x9d')](_0x57f0c9,_0x28b87e);return this[_0x7ced('0x35')][_0x7ced('0xa8')](util[_0x7ced('0x28')](_0x7ced('0x1b6'),_0x3e53e3['command'],_0x57f0c9));}}return this[_0x7ced('0x35')][_0x7ced('0xa8')](util['format'](_0x7ced('0x1b7'),_0x3e53e3[_0x7ced('0x1b5')]));};AGIVertices[_0x7ced('0x14')]['google_cloud_tts']=function(_0xb7a098){logger[_0x7ced('0x2e')](util[_0x7ced('0x28')](_0x7ced('0x1b8'),_0xb7a098['label']));_0xb7a098[_0x7ced('0x57')]=_0xb7a098[_0x7ced('0x57')][_0x7ced('0xd8')](/(\r\n|\n|\r)/gm,'\x20');if(!this[_0x7ced('0xaa')](_0xb7a098[_0x7ced('0x55')])){return this['channel'][_0x7ced('0xa8')](_0x7ced('0x1b9'));}if(!this[_0x7ced('0xaa')](_0xb7a098['text'])){return this['channel'][_0x7ced('0xa8')](_0x7ced('0xa9'));}this['channel'][_0x7ced('0xa8')](util[_0x7ced('0x28')](_0x7ced('0x1ba'),_0xb7a098['text']));var _0x2b380a=this[_0x7ced('0x54')][_0x7ced('0xa5')](this,_0xb7a098);if(_0x2b380a){this['channel'][_0x7ced('0xa8')](util[_0x7ced('0x28')]('Google\x20Cloud\x20TTS\x20%s\x20file\x20created',_0x2b380a));var _0x47c98c=this[_0x7ced('0x35')][_0x7ced('0x101')](_0x2b380a);try{fs[_0x7ced('0x102')](_0x2b380a+'.wav');}catch(_0x9edc44){logger[_0x7ced('0x2b')](_0x9edc44);}return _0x47c98c;}return this['channel'][_0x7ced('0x2b')](_0xb7a098,_0x7ced('0x1bb'));};AGIVertices[_0x7ced('0x14')][_0x7ced('0x1bc')]=function(_0x21d10d){logger['info'](util[_0x7ced('0x28')](_0x7ced('0x1bd'),_0x21d10d[_0x7ced('0xae')]));_0x21d10d['text']=_0x21d10d['text']['replace'](/(\r\n|\n|\r)/gm,'\x20');if(!this[_0x7ced('0xaa')](_0x21d10d[_0x7ced('0x57')])){return this['channel'][_0x7ced('0xa8')](_0x7ced('0xa9'));}this['channel'][_0x7ced('0xa8')](util['format'](_0x7ced('0x1be'),_0x21d10d[_0x7ced('0x57')]));var _0x210c44=this['googleTTS'][_0x7ced('0xa5')](this,_0x21d10d);if(_0x210c44){this['channel'][_0x7ced('0xa8')](util['format'](_0x7ced('0x1bf'),_0x210c44));var _0x4c425e=this[_0x7ced('0x35')][_0x7ced('0x101')](_0x210c44);try{fs[_0x7ced('0x102')](_0x210c44+_0x7ced('0x103'));}catch(_0x585916){logger[_0x7ced('0x2b')](_0x585916);}return _0x4c425e;}return this[_0x7ced('0x35')][_0x7ced('0x2b')](_0x21d10d,'Google\x20TTS\x20is\x20unreachable');};AGIVertices[_0x7ced('0x14')][_0x7ced('0x1c0')]=function(_0x355db0){logger['info'](util[_0x7ced('0x28')](_0x7ced('0x1c1'),_0x355db0[_0x7ced('0xae')]));if(!this[_0x7ced('0xaa')](_0x355db0['findBy'])){return this[_0x7ced('0x35')][_0x7ced('0x2b')](_0x355db0,_0x7ced('0x156'));}logger[_0x7ced('0x2e')](util[_0x7ced('0x28')](_0x7ced('0x157'),this[_0x7ced('0x35')][_0x7ced('0x3a')],_0x355db0[_0x7ced('0x155')]));var _0x545a21=this['agentUnpause'][_0x7ced('0xa5')](this,_0x355db0[_0x7ced('0x155')]);if(_0x545a21){logger['info'](util['format']('AGENT\x20%s\x20FOUND\x20BY',this[_0x7ced('0x35')]['callerid'],_0x355db0['findBy']));this[_0x7ced('0x35')][_0x7ced('0xa8')](util[_0x7ced('0x28')](_0x7ced('0x159'),this['channel']['callerid'],_0x355db0[_0x7ced('0x155')]));return{'code':0xc8,'result':_0x7ced('0x15a')};}else{logger['info'](util[_0x7ced('0x28')](_0x7ced('0x15b'),this[_0x7ced('0x35')][_0x7ced('0x3a')],_0x355db0['findBy']));this[_0x7ced('0x35')]['noop'](util[_0x7ced('0x28')](_0x7ced('0x15b'),this[_0x7ced('0x35')][_0x7ced('0x3a')],_0x355db0[_0x7ced('0x155')]));return{'code':0xc8,'result':_0x7ced('0x15c')};}};AGIVertices[_0x7ced('0x14')]['voicemail']=function(_0x17f5eb){logger['info'](util[_0x7ced('0x28')](_0x7ced('0x1c2'),_0x17f5eb[_0x7ced('0xae')]));var _0x945e98=this[_0x7ced('0x35')][_0x7ced('0x52')](_0x7ced('0x1c3'),[_0x17f5eb[_0x7ced('0x1c4')],_0x17f5eb['options']]);if(_0x945e98['result']===-0x1){return _0x945e98;}return this['channel']['noop'](util[_0x7ced('0x28')](_0x7ced('0xc5'),_0x7ced('0x1c3'),_0x17f5eb[_0x7ced('0x1c4')]));};AGIVertices['prototype'][_0x7ced('0x1c5')]=function(_0x721abf){logger[_0x7ced('0x2e')](util[_0x7ced('0x28')](_0x7ced('0x1c6'),_0x721abf['label']));if(!this[_0x7ced('0xaa')](_0x721abf[_0x7ced('0xda')])){return this[_0x7ced('0x35')]['error'](_0x721abf,_0x7ced('0x1a4'));}var _0x510f64=this[_0x7ced('0xf')][_0x7ced('0xa5')](this,_0x721abf[_0x7ced('0xda')]);if(!_0x510f64){return this[_0x7ced('0x35')][_0x7ced('0x2b')](_0x721abf,'no\x20variable\x20found');}var _0x294ede=this[_0x7ced('0x35')][_0x7ced('0xf')](_0x510f64);return{'code':0xc8,'result':_0x294ede[_0x7ced('0xa3')]?_0x294ede[_0x7ced('0xa3')]:'-'};};String['prototype'][_0x7ced('0xa0')]=function(_0x40d175,_0x25c63a){return this['split'](_0x40d175)[_0x7ced('0x1c7')](_0x25c63a);};module['exports']=AGIVertices;
\ No newline at end of file
+var _0xb77b=['Enter\x20in\x20HANGUP\x20(%s)\x20block','ispeechasr','Enter\x20in\x20ISPEECHASR\x20(%s)\x20block','ISPEECH_ASR_%s','IspeechASR\x20Result\x20%s','ispeechtts','ispeech\x20%s\x20file\x20created','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','no\x20operation\x20configured','math\x20%s','operation','%s[%s]','no\x20file\x20audio\x20selected','no\x20file\x20audio\x20found','Enter\x20in\x20NOOP\x20(%s)\x20block','output','pause','Enter\x20in\x20PAUSE\x20(%s)\x20block','getPause','Enter\x20in\x20PLAYBACK\x20(%s)\x20block','PLAYBACK','queue','Enter\x20in\x20QUEUE\x20(%s)\x20block','queue_id','no\x20queue\x20selected','no\x20queue\x20found','indexOf','XMCS-QUEUE','toLowerCase','QUEUE','macro','gosub','position','Executed\x20command\x20%s\x20%s','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','restAPI','no\x20variable\x20selected\x20for\x20the\x20response','%s_STATUS_CODE','%s_STATUS_MESSAGE','statusMessage','Unable\x20to\x20set\x20result\x20in\x20variable\x20%s','saydigits','Enter\x20in\x20SAYDIGITS\x20(%s)\x20block','sayDigits','digits','saynumber','Enter\x20in\x20SAYNUMBER\x20(%s)\x20block','sayNumber','sayphonetic','Enter\x20in\x20SAYPHONETIC\x20(%s)\x20block','sayPhonetic','Enter\x20in\x20SENDMAIL\x20(%s)\x20block','account_id','Smtp','no\x20mail\x20account\x20found','\x22%s\x22\x20<%s>','user','bcc','subject','service','host','port','secure','authentication','pass','sendMail\x20message','Trying\x20SendMail\x20with\x20account\x20%s','Mail\x20message\x20added\x20to\x20outgoing\x20process','Enter\x20in\x20SENDFAX\x20(%s)\x20block','sendSMS','sms_account_id','sms_text','sendSMS\x20message','set','no\x20variable\x20selected','start','Enter\x20in\x20START\x20(%s)\x20block','START\x20CALLY\x20SQUARE','yes','Answer','subproject','Enter\x20in\x20SUBPROJECT\x20(%s)\x20block','project_id','no\x20subproject\x20found\x20with\x20id\x20%d','project\x20in\x20subproject\x20must\x20be\x20different\x20from\x20the\x20called\x20project','AGI','127.0.0.1','Enter\x20in\x20SYSTEM\x20(%s)\x20block','sh\x20command:\x20%s\x20result\x20no\x20stored','google_cloud_tts','no\x20apiKey\x20configured','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','mailbox','VOICEMAIL','vswitch','replaceAll','join','lodash','shelljs','odbc','randomstring','moment','request-promise','../../config/logger','../../config/environment','./scripts','/var/opt/motion2/server/files','rawBody','menu','getdigits','getsecretdigits','channel','mailRpc','prototype','getVariable','rpc','name','getVoiceQueue','then','getSquareProject','getSquareProjectById','catch','getSquareOdbcById','dsn','getUser','getUserById','getTrunkById','getSound','getSoundById','getSoundPath','save_name','getMailAccount','getMailAccountById','sendMailMessage','getIntervals','getIntervalById','IntervalId','map','Intervals','interval','%s/sounds/converted/%s','Error\x20getting\x20ODBC\x20connection\x20%s','info','ODBC\x20connection\x20successfully','close','error','getSmsAccountById','createSmsMessage','createSquareDetailsReport','uniqueid','label','agicommand','arg_1','callerid','createSquareRecording','calleridname','context','extension','accountcode','file','createSquareMessage','createCmContact','isEmpty','isNil','callback_','lastName','phone','list_id','scheduledAt','toString','callback_priority','getPauseById','agent','agentPause','agentUnpause','agentLogout','agentLogin','internal','format','LOCAL','shellCommand','exec','trim','replace','googleCloudTTS','apiKey','google_cloud_tts_text_type','text','languageCode','en-US','ssmlGender','MALE','audioEncoding','MP3','googleTTS','google_tts_language','url','method','timeout','number','includes','POST','PUT','toUpperCase','body','headers','parse','rawHeaders','An\x20incorrect\x20formatted\x20json\x20headers\x20has\x20been\x20passed\x20to\x20the\x20function','computedVariables','sync','uri','render','stringify','An\x20incorrect\x20formatted\x20json\x20has\x20been\x20passed\x20to\x20the\x20function','statusCode','message','500\x20-\x20Internal\x20Server\x20Error','options','googleDialogflow','key','googleDialogflowV2','dialogflowV2_project_id','client_email','private_key','dialogflowV2_language','sestekNDA','ispeechTTS','ispeech_tts_language','speed','ispeechASR','isConfigured','model','awsPolly','aws_access_key_id','aws_secret_access_key','aws_polly_region','Amy','awsLex','aws_lex_region','googleASR','google_asr_language','tildeASR','appid','appsecret','clear','clone','hasOwnProperty','isString','replaceObjectAllVariables','replaceAllVariables','recursiveNodeIndex','isArray','saveRestApiResult','%s.%s','length','split','extra','getAndSetVariable','result','The\x20\x22%s\x22\x20variable\x20value\x20is:\x20%s','setVariable','maxRetry','retry','mrcpsynth','Enter\x20in\x20MRCPSynth\x20(%s)\x20block','noop','no\x20text\x20configured','MRCPSynth','Executed\x20command\x20MRCPSynth\x20%s','mrcprecog','Enter\x20in\x20MRCPRecog\x20(%s)\x20block','no\x20grammar\x20configured','grammar','MRCPRecog','RECOG_CONFIDENCE()','MRCP_RECOG_CONFIDENCE','RECOG_INPUT()','MRCP_RECOG_TRANSCRIPT','RECOG_INSTANCE()','MRCP_RECOG_INSTANCE','agi','Enter\x20in\x20AGI\x20(%s)\x20block','command','args','answer','wait','callback','delay','add','minutes','CALLBACK\x20added\x20phone:\x20%s\x20on\x20list:\x20%s\x20at\x20%s','custom_app','application','Enter\x20in\x20LUMENVOXTTS\x20(%s)\x20block','sestektts','Enter\x20in\x20SESTEKTTS\x20(%s)\x20block','Enter\x20in\x20LUMENVOXASR\x20(%s)\x20block','LUMENVOX_ASR_CONFIDENCE','LUMENVOX_ASR_INSTANCE','sestekasr','SESTEK_ASR_CONFIDENCE','SESTEK_ASR_TRANSCRIPT','SESTEK_ASR_INSTANCE','Executed\x20command\x20MRCPRecog\x20%s','database','Enter\x20in\x20DATABASE\x20(%s)\x20block','odbc_id','no\x20database\x20selected','query','no\x20query\x20configured','query:\x20%s','getQueryOdbc','variable_id','no\x20variable\x20selected\x20for\x20the\x20result','no\x20variable\x20found','forEach','keys','%s[%s][%s]','%s_ROWS_COUNT','variable\x20%s\x20set','dial','debug','Enter\x20in\x20DIAL\x20(%s)\x20block','sip_id','no\x20user\x20selected','no\x20user\x20found','DIAL','SIP/%s','opts','Executed\x20command\x20%s','dialogflow','no\x20key\x20configured','bot','Trying\x20Dialogflow:\x20%s','speech','Dialogflow\x20Result\x20%s','Dialogflow\x20is\x20unreachable','dialogflowV2','Enter\x20in\x20DIALOGFLOW\x20V2\x20(%s)\x20block','no\x20private_key\x20configured','Trying\x20DialogflowV2:\x20%s','DIALOGFLOW_%s','out','providerResponse','DialogflowV2\x20Result\x20%s','DialogflowV2\x20is\x20unreachable','sesteknda','no\x20username\x20configured','password','no\x20password\x20configured','SESTEK_NDA_%s','audiofile','Sestek\x20NDA\x20%s\x20file\x20created','streamFile','unlink','.wav','SestekNDA\x20Result\x20%s','SestekNDA\x20is\x20unreachable','end','ext_dial','Enter\x20in\x20EXTERNAL\x20DIAL\x20(%s)\x20block','trunk_id','no\x20trunk\x20selected','getTrunk','no\x20trunk\x20found','trunk_name','SIP/%s/%s','Enter\x20in\x20FINALLY\x20(%s)\x20block','finally','Enter\x20in\x20GETDIGITS\x20(%s)\x20block','file_id','getData','response','test','mindigit','maxdigit','hiddendigitsnum','generate','hiddendigitspos','substr','Enter\x20in\x20GETSECRETDIGITS\x20(%s)\x20block','goal','Enter\x20in\x20GOAL\x20(%s)\x20block','goalname','awspolly','[AGI]\x20Enter\x20in\x20AWSPOLLY\x20(%s)\x20block','no\x20valid\x20credentials\x20configured','aws\x20Polly\x20%s\x20file\x20created','aws\x20Polly\x20is\x20unreachable','awslex','Enter\x20in\x20Amazon\x20Lex\x20(%s)\x20block','aws_bot_name','Trying\x20Amazon\x20Lex:\x20%s','Amazon\x20Lex\x20ready\x20for\x20fulfillment','Amazon\x20Lex\x20Result\x20%s','Amazon\x20Lex\x20is\x20unreachable','Enter\x20in\x20GOOGLEASR\x20(%s)\x20block\x20%s','wav','%s/recordings/%s','beep','NOBEEP','recordFile','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','intKey','tilde\x20%s\x20file\x20created','TILDE_ASR_%s','TildeASR\x20Result\x20%s','gotoc','Enter\x20in\x20GOTO\x20(%s)\x20block','continueAt','priority','gotoif','no\x20condition\x20configured','condition','true','EVAL\x20CONDITION\x20%s\x20%s','interval_id','no\x20interval\x20configured','no\x20intervals\x20found','IFTIME(%s?true:false)','IFTIME\x20%s\x20%s','false','hangup'];(function(_0x209941,_0x5c9988){var _0x1e8729=function(_0x51a9b8){while(--_0x51a9b8){_0x209941['push'](_0x209941['shift']());}};_0x1e8729(++_0x5c9988);}(_0xb77b,0x80));var _0xbb77=function(_0x28f897,_0x5be0d4){_0x28f897=_0x28f897-0x0;var _0x2e95e9=_0xb77b[_0x28f897];return _0x2e95e9;};'use strict';var fs=require('fs');var path=require('path');var util=require('util');var _=require(_0xbb77('0x0'));var sh=require(_0xbb77('0x1'));var odbc=require(_0xbb77('0x2'))();var rs=require(_0xbb77('0x3'));var moment=require(_0xbb77('0x4'));var Mustache=require('mustache');var rp=require(_0xbb77('0x5'));var logger=require(_0xbb77('0x6'))('agi');var config=require(_0xbb77('0x7'));var scripts=require(_0xbb77('0x8'));var FILES_PATH=_0xbb77('0x9');var recursiveMapAttributes=['rawHeaders',_0xbb77('0xa')];var verticesWithRetry=[_0xbb77('0xb'),_0xbb77('0xc'),_0xbb77('0xd')];var AGIVertices=function(_0x8ae557,_0x5a52fb,_0xb34db6){this[_0xbb77('0xe')]=_0x8ae557;this['rpc']=_0x5a52fb;this[_0xbb77('0xf')]=_0xb34db6;};AGIVertices[_0xbb77('0x10')][_0xbb77('0x11')]=function(_0x2b3f9b,_0x57e3fa){this[_0xbb77('0x12')]['getVariableById'](_0x2b3f9b)['then'](function(_0x2f9b18){_0x57e3fa(null,_0x2f9b18?_0x2f9b18[_0xbb77('0x13')]:![]);})['catch'](function(_0x109c4e){_0x57e3fa(_0x109c4e);});};AGIVertices[_0xbb77('0x10')][_0xbb77('0x14')]=function(_0x205426,_0x4dc0ef){this[_0xbb77('0x12')]['getVoiceQueueById'](_0x205426)[_0xbb77('0x15')](function(_0x3e1f58){_0x4dc0ef(null,_0x3e1f58?_0x3e1f58[_0xbb77('0x13')]:![]);})['catch'](function(_0x5b1ed6){_0x4dc0ef(_0x5b1ed6);});};AGIVertices[_0xbb77('0x10')][_0xbb77('0x16')]=function(_0x58ec35,_0x29c180){this[_0xbb77('0x12')][_0xbb77('0x17')](_0x58ec35)[_0xbb77('0x15')](function(_0x393ad3){_0x29c180(null,_0x393ad3?_0x393ad3[_0xbb77('0x13')]:![]);})[_0xbb77('0x18')](function(_0x4afae1){_0x29c180(_0x4afae1);});};AGIVertices[_0xbb77('0x10')]['getSquareOdbc']=function(_0x4d5439,_0x18c589){this[_0xbb77('0x12')][_0xbb77('0x19')](_0x4d5439)['then'](function(_0x4a7d12){_0x18c589(null,_0x4a7d12?_0x4a7d12[_0xbb77('0x1a')]:![]);})[_0xbb77('0x18')](function(_0x470ca9){_0x18c589(_0x470ca9);});};AGIVertices[_0xbb77('0x10')][_0xbb77('0x1b')]=function(_0x299936,_0x74e124){this['rpc'][_0xbb77('0x1c')](_0x299936)[_0xbb77('0x15')](function(_0x3a6d67){_0x74e124(null,_0x3a6d67?_0x3a6d67['name']:![]);})['catch'](function(_0x4e3943){_0x74e124(_0x4e3943);});};AGIVertices[_0xbb77('0x10')]['getTrunk']=function(_0x242434,_0x38b9dc){this[_0xbb77('0x12')][_0xbb77('0x1d')](_0x242434)['then'](function(_0x981045){_0x38b9dc(null,_0x981045?_0x981045['name']:![]);})['catch'](function(_0x53e447){_0x38b9dc(_0x53e447);});};AGIVertices[_0xbb77('0x10')][_0xbb77('0x1e')]=function(_0x18de8b,_0x32fa1e){var _0x33ff4a=this;this[_0xbb77('0x12')][_0xbb77('0x1f')](_0x18de8b)[_0xbb77('0x15')](function(_0x26707){_0x32fa1e(null,_0x26707?_0x33ff4a[_0xbb77('0x20')](_0x26707[_0xbb77('0x21')]):![]);})['catch'](function(_0x40f53f){_0x32fa1e(_0x40f53f);});};AGIVertices[_0xbb77('0x10')][_0xbb77('0x22')]=function(_0x3394ad,_0x3ef6fd){this[_0xbb77('0x12')][_0xbb77('0x23')](_0x3394ad)[_0xbb77('0x15')](function(_0x3c2893){_0x3ef6fd(null,_0x3c2893?_0x3c2893:![]);})[_0xbb77('0x18')](function(_0x69df86){_0x3ef6fd(_0x69df86);});};AGIVertices['prototype'][_0xbb77('0x24')]=function(_0x361d1c,_0x31e702,_0x20cabe){this[_0xbb77('0xf')][_0xbb77('0x24')](_0x361d1c,_0x31e702)['then'](function(){_0x20cabe(null);})['catch'](function(_0x1eafce){_0x20cabe(_0x1eafce);});};AGIVertices[_0xbb77('0x10')][_0xbb77('0x25')]=function(_0x1287e1,_0x429ad0){this[_0xbb77('0x12')][_0xbb77('0x26')](_0x1287e1)[_0xbb77('0x15')](function(_0x462358){if(_0x462358){if(_0x462358[_0xbb77('0x27')]){_0x429ad0(null,[_0x462358['interval']]);}else{_0x429ad0(null,_[_0xbb77('0x28')](_0x462358[_0xbb77('0x29')],_0xbb77('0x2a')));}}else{_0x429ad0(null,![]);}})['catch'](function(_0x3d4928){_0x429ad0(_0x3d4928);});};AGIVertices[_0xbb77('0x10')][_0xbb77('0x20')]=function(_0x11eaac){return util['format'](_0xbb77('0x2b'),FILES_PATH,_0x11eaac);};AGIVertices['prototype']['getQueryOdbc']=function(_0x2c2e85,_0x477f03,_0x3ed215){odbc['open'](_0x2c2e85,function(_0x763cbe){if(_0x763cbe){logger['error'](_0xbb77('0x2c'),_0x763cbe);_0x3ed215(_0x763cbe);}else{logger[_0xbb77('0x2d')](_0xbb77('0x2e'));odbc['query'](_0x477f03,function(_0x523f02,_0x1d082c){if(_0x523f02){logger[_0xbb77('0x2d')]('Error\x20executing\x20query\x20%s',_0x477f03);_0x3ed215(_0x523f02);}else{logger['info']('Query\x20executed\x20correctly\x20%s',_0x477f03);odbc[_0xbb77('0x2f')](function(_0x297f06){if(_0x297f06){logger[_0xbb77('0x30')]('Error\x20closing\x20connection\x20to\x20odbc\x20%s',_0x297f06);}_0x3ed215(null,_0x1d082c);});}});}});};AGIVertices[_0xbb77('0x10')]['getSmsAccount']=function(_0x42fc9c,_0x120af8){this['rpc'][_0xbb77('0x31')](_0x42fc9c)[_0xbb77('0x15')](function(_0x5ca60d){_0x120af8(null,_0x5ca60d?_0x5ca60d:![]);})[_0xbb77('0x18')](function(_0x1aeb87){_0x120af8(_0x1aeb87);});};AGIVertices[_0xbb77('0x10')]['createSmsMessage']=function(_0x2a1b3a,_0x25dd17){this[_0xbb77('0x12')][_0xbb77('0x32')](_0x2a1b3a)[_0xbb77('0x15')](function(_0x372074){_0x25dd17(null,_0x372074);})['catch'](function(_0x69644c){_0x25dd17(_0x69644c);});};AGIVertices[_0xbb77('0x10')][_0xbb77('0x33')]=function(_0x345501,_0x3ef581,_0x15be86){this[_0xbb77('0x12')][_0xbb77('0x33')]({'uniqueid':this[_0xbb77('0xe')][_0xbb77('0x34')],'node':_0x345501[_0xbb77('0x35')],'application':_0x345501[_0xbb77('0x36')],'data':_0x3ef581||null,'project_name':this[_0xbb77('0xe')][_0xbb77('0x37')],'callerid':this[_0xbb77('0xe')][_0xbb77('0x38')]})[_0xbb77('0x15')](function(_0x52e59c){if(_0x15be86){_0x15be86(null,_0x52e59c);}})['catch'](function(_0x23a712){if(_0x15be86){_0x15be86(_0x23a712);}});};AGIVertices[_0xbb77('0x10')][_0xbb77('0x39')]=function(_0x4685c8,_0x14dc11,_0xccda68,_0x4c6468){this['rpc']['createSquareRecording']({'uniqueid':this[_0xbb77('0xe')][_0xbb77('0x34')],'callerid':this[_0xbb77('0xe')]['callerid'],'calleridname':this[_0xbb77('0xe')][_0xbb77('0x3a')],'context':this[_0xbb77('0xe')][_0xbb77('0x3b')],'extension':this[_0xbb77('0xe')][_0xbb77('0x3c')],'priority':this[_0xbb77('0xe')]['priority'],'accountcode':this[_0xbb77('0xe')][_0xbb77('0x3d')],'dnid':this['channel']['dnid'],'projectName':this[_0xbb77('0xe')]['arg_1'],'saveName':_0x14dc11,'filename':_0x4685c8[_0xbb77('0x3e')]||_0x14dc11,'savePath':_0xccda68})[_0xbb77('0x15')](function(_0x4161db){_0x4c6468(null,_0x4161db);})[_0xbb77('0x18')](function(_0xdf2aa8){_0x4c6468(_0xdf2aa8);});};AGIVertices[_0xbb77('0x10')][_0xbb77('0x3f')]=function(_0x139dc8,_0x3d85aa,_0x455299,_0x4a35e4,_0x218fd7){this['rpc'][_0xbb77('0x3f')]({'uniqueid':this['channel']['uniqueid'],'body':_0x139dc8,'direction':_0x3d85aa,'providerName':_0x455299,'providerResponse':_0x4a35e4})[_0xbb77('0x15')](function(_0x169f03){if(_0x218fd7){_0x218fd7(null,_0x169f03);}})[_0xbb77('0x18')](function(_0x35da05){if(_0x218fd7){_0x218fd7(_0x35da05);}});};AGIVertices['prototype'][_0xbb77('0x40')]=function(_0x3f649f,_0x341cca){this[_0xbb77('0x12')]['createCmContact']({'firstName':_[_0xbb77('0x41')](_0x3f649f['name'])||_[_0xbb77('0x42')](_0x3f649f[_0xbb77('0x13')])?_0xbb77('0x43')+Math['random']():_0x3f649f[_0xbb77('0x13')],'lastName':_[_0xbb77('0x41')](_0x3f649f[_0xbb77('0x44')])||_['isNil'](_0x3f649f['lastName'])?null:_0x3f649f['lastName'],'phone':_0x3f649f[_0xbb77('0x45')],'ListId':_0x3f649f[_0xbb77('0x46')],'scheduledat':_0x3f649f[_0xbb77('0x47')],'callbackUniqueid':this['channel'][_0xbb77('0x34')],'tags':'callback','description':'Callback\x20scheduled\x20at\x20'+_0x3f649f['scheduledAt'][_0xbb77('0x48')](),'priority':_0x3f649f[_0xbb77('0x49')]})[_0xbb77('0x15')](function(_0x4fae92){_0x341cca(null,_0x4fae92);})[_0xbb77('0x18')](function(_0x2be789){_0x341cca(_0x2be789);});};AGIVertices[_0xbb77('0x10')]['getPause']=function(_0x3f84aa,_0x28e810){this[_0xbb77('0x12')][_0xbb77('0x4a')](_0x3f84aa)[_0xbb77('0x15')](function(_0x123684){_0x28e810(null,_0x123684?_0x123684[_0xbb77('0x13')]:![]);})['catch'](function(_0x13921d){_0x28e810(_0x13921d);});};AGIVertices[_0xbb77('0x10')]['agentPause']=function(_0x2a2cb9,_0x4e7638,_0x18894c){var _0x573938={'role':_0xbb77('0x4b')};_0x573938[_0x2a2cb9]=this[_0xbb77('0xe')][_0xbb77('0x38')];this[_0xbb77('0x12')][_0xbb77('0x4c')](_0x573938,_0x4e7638,this['channel'][_0xbb77('0x34')])[_0xbb77('0x15')](function(_0x2f5c97){_0x18894c(null,_[_0xbb77('0x42')](_0x2f5c97)?![]:!![]);})[_0xbb77('0x18')](function(_0x280d14){logger['error'](_0x280d14);_0x18894c(null,![]);});};AGIVertices[_0xbb77('0x10')][_0xbb77('0x4d')]=function(_0xb750c2,_0x46a40d){var _0x4b62d2={'role':_0xbb77('0x4b')};_0x4b62d2[_0xb750c2]=this['channel'][_0xbb77('0x38')];this[_0xbb77('0x12')][_0xbb77('0x4d')](_0x4b62d2)['then'](function(_0x2d27d5){_0x46a40d(null,_[_0xbb77('0x42')](_0x2d27d5)?![]:!![]);})[_0xbb77('0x18')](function(_0xf565ba){logger[_0xbb77('0x30')](_0xf565ba);_0x46a40d(null,![]);});};AGIVertices[_0xbb77('0x10')][_0xbb77('0x4e')]=function(_0x2fd8b5,_0x3998d9){var _0x34fa8b={'role':_0xbb77('0x4b')};_0x34fa8b[_0x2fd8b5]=this[_0xbb77('0xe')][_0xbb77('0x38')];this[_0xbb77('0x12')][_0xbb77('0x4e')](_0x34fa8b)[_0xbb77('0x15')](function(_0x119a55){_0x3998d9(null,_['isNil'](_0x119a55)?![]:!![]);})[_0xbb77('0x18')](function(_0x2283d4){logger[_0xbb77('0x30')](_0x2283d4);_0x3998d9(null,![]);});};AGIVertices[_0xbb77('0x10')][_0xbb77('0x4f')]=function(_0x3b9f33,_0x44d532){var _0x5253a6={'role':_0xbb77('0x4b')};_0x5253a6[_0x3b9f33]=this['channel'][_0xbb77('0x38')];var _0x2f4ce6=_0x3b9f33!=_0xbb77('0x50')?util[_0xbb77('0x51')]('%s/%s@from-sip/n',_0xbb77('0x52'),this[_0xbb77('0xe')][_0xbb77('0x38')]):undefined;this[_0xbb77('0x12')][_0xbb77('0x4f')](_0x5253a6,_0x2f4ce6)[_0xbb77('0x15')](function(_0xd4f34){_0x44d532(null,_[_0xbb77('0x42')](_0xd4f34)?![]:!![]);})['catch'](function(_0x26ce78){logger[_0xbb77('0x30')](_0x26ce78);_0x44d532(null,![]);});};AGIVertices[_0xbb77('0x10')][_0xbb77('0x53')]=function(_0x334ae5,_0x2f61e0){sh[_0xbb77('0x54')](_[_0xbb77('0x55')](_0x334ae5),function(_0x3e238c,_0x34ea80){var _0x1e5566=_0x34ea80[_0xbb77('0x56')](/(\r\n|\n|\r)/gm,'');_0x2f61e0(null,_0x1e5566);});};AGIVertices[_0xbb77('0x10')][_0xbb77('0x57')]=function(_0x153ba3,_0x473028){scripts[_0xbb77('0x57')](_0x153ba3[_0xbb77('0x58')],_0x153ba3[_0xbb77('0x59')]||_0xbb77('0x5a'),_0x153ba3[_0xbb77('0x5a')],_0x153ba3[_0xbb77('0x5b')]||_0xbb77('0x5c'),_0x153ba3[_0xbb77('0x5d')]||_0xbb77('0x5e'),_0x153ba3[_0xbb77('0x5f')]||_0xbb77('0x60'))['then'](function(_0x18946d){_0x473028(null,_0x18946d);})['catch'](function(_0xeacbbc){_0x473028(_0xeacbbc);});};AGIVertices[_0xbb77('0x10')][_0xbb77('0x61')]=function(_0x2d0b77,_0x57308b){scripts[_0xbb77('0x61')](_0x2d0b77['text'],_0x2d0b77[_0xbb77('0x62')]||'en',0x1)[_0xbb77('0x15')](function(_0x522ff6){_0x57308b(null,_0x522ff6);})['catch'](function(_0x47c80a){_0x57308b(_0x47c80a);});};AGIVertices[_0xbb77('0x10')]['restAPI']=function(_0x4c380f,_0x50a67b){var _0x2a5734={'uri':_0x4c380f[_0xbb77('0x63')],'method':_0x4c380f[_0xbb77('0x64')],'json':!![],'resolveWithFullResponse':!![],'strictSSL':![],'timeout':typeof parseInt(_0x4c380f[_0xbb77('0x65')])===_0xbb77('0x66')&&parseInt(_0x4c380f[_0xbb77('0x65')])>=0x1?parseInt(_0x4c380f[_0xbb77('0x65')])*0x3e8:0x5*0x3e8};if(_[_0xbb77('0x67')]([_0xbb77('0x68'),_0xbb77('0x69')],_0x2a5734['method'][_0xbb77('0x6a')]())){try{_0x2a5734[_0xbb77('0x6b')]=_0x4c380f[_0xbb77('0xa')]?JSON['parse'](_0x4c380f[_0xbb77('0xa')]):{};}catch(_0x3c7a94){logger['error']('An\x20incorrect\x20formatted\x20json\x20body\x20has\x20been\x20passed\x20to\x20the\x20function',_0x3c7a94);}}try{_0x2a5734[_0xbb77('0x6c')]=_0x4c380f['rawHeaders']?JSON[_0xbb77('0x6d')](_0x4c380f[_0xbb77('0x6e')]):{};}catch(_0x9d6bb){logger[_0xbb77('0x30')](_0xbb77('0x6f'),_0x9d6bb);}if(_0x4c380f[_0xbb77('0x70')]){try{var _0x492333=require(_0x4c380f[_0xbb77('0x70')])[_0xbb77('0x71')](this,_0x2a5734);_0x2a5734[_0xbb77('0x72')]=Mustache[_0xbb77('0x73')](_0x4c380f['url'],_0x492333,{},['$$','$$']);if(_0x2a5734[_0xbb77('0x6c')]){_0x2a5734[_0xbb77('0x6c')]=JSON[_0xbb77('0x6d')](Mustache[_0xbb77('0x73')](JSON[_0xbb77('0x74')](_0x2a5734[_0xbb77('0x6c')]),_0x492333,{},['$$','$$']));}if(_0x2a5734['body']){_0x2a5734[_0xbb77('0x6b')]=JSON['parse'](Mustache[_0xbb77('0x73')](JSON[_0xbb77('0x74')](_0x2a5734[_0xbb77('0x6b')]),_0x492333,{},['$$','$$']));}}catch(_0x37e4f2){logger['error'](_0xbb77('0x75'),_0x37e4f2);}}rp(_0x2a5734)[_0xbb77('0x15')](function(_0x45610c){var _0x2d9739={'statusCode':_0x45610c[_0xbb77('0x76')]||0xc8,'statusMessage':_0x45610c['statusMessage']||'OK','headers':_0x45610c[_0xbb77('0x6c')]||{},'body':_0x45610c[_0xbb77('0x6b')]||{}};_0x50a67b(null,_0x2d9739);})['catch'](function(_0x143fa8){var _0x93f778={'statusCode':_0x143fa8['statusCode']||0x1f4,'statusMessage':_0x143fa8[_0xbb77('0x77')]||_0xbb77('0x78'),'headers':_0x143fa8[_0xbb77('0x79')]['headers']||{},'body':_0x143fa8['options'][_0xbb77('0x6b')]||{}};_0x50a67b(null,_0x93f778);});};AGIVertices[_0xbb77('0x10')][_0xbb77('0x7a')]=function(_0x2d266b,_0x22c60){scripts[_0xbb77('0x7a')](this[_0xbb77('0xe')][_0xbb77('0x34')],_0x2d266b[_0xbb77('0x7b')],_0x2d266b['text'],_0x2d266b['dialogflow_language']||'en')[_0xbb77('0x15')](function(_0x14462c){_0x22c60(null,_0x14462c);})['catch'](function(_0x2a996f){_0x22c60(_0x2a996f);});};AGIVertices[_0xbb77('0x10')][_0xbb77('0x7c')]=function(_0x4b2614,_0x549131){scripts['googleDialogflowV2'](this[_0xbb77('0xe')]['uniqueid'],_0x4b2614[_0xbb77('0x7d')],_0x4b2614[_0xbb77('0x7e')],_0x4b2614[_0xbb77('0x7f')],_0x4b2614[_0xbb77('0x5a')],_0x4b2614[_0xbb77('0x80')]||'en')[_0xbb77('0x15')](function(_0x1398e9){_0x549131(null,_0x1398e9);})[_0xbb77('0x18')](function(_0x58f2ae){_0x549131(_0x58f2ae);});};AGIVertices[_0xbb77('0x10')][_0xbb77('0x81')]=function(_0x3d7e10,_0xfad522){scripts[_0xbb77('0x81')](this['channel'],_0x3d7e10)[_0xbb77('0x15')](function(_0x2b7732){_0xfad522(null,_0x2b7732);})['catch'](function(_0x1fe4f7){_0xfad522(_0x1fe4f7);});};AGIVertices[_0xbb77('0x10')][_0xbb77('0x82')]=function(_0x58a383,_0xc9b008){scripts[_0xbb77('0x82')](_0x58a383[_0xbb77('0x7b')],_0x58a383['text'],_0x58a383[_0xbb77('0x83')]||_0xbb77('0x5c'),_0x58a383[_0xbb77('0x84')])[_0xbb77('0x15')](function(_0x1b6b72){_0xc9b008(null,_0x1b6b72);})[_0xbb77('0x18')](function(_0x2c2ce6){_0xc9b008(_0x2c2ce6);});};AGIVertices[_0xbb77('0x10')][_0xbb77('0x85')]=function(_0x5383a2,_0x46ab1c,_0x55b544){scripts[_0xbb77('0x85')](_0x46ab1c,_0x5383a2[_0xbb77('0x7b')],_0x5383a2['ispeech_asr_language']||'en-US',this[_0xbb77('0x86')](_0x5383a2['model'])?_0x5383a2[_0xbb77('0x87')]:undefined)[_0xbb77('0x15')](function(_0x1725bf){_0x55b544(null,_0x1725bf);})[_0xbb77('0x18')](function(_0x3d1921){_0x55b544(_0x3d1921);});};AGIVertices[_0xbb77('0x10')][_0xbb77('0x88')]=function(_0x563ef,_0x5bc6a5){scripts['awsPolly'](_0x563ef[_0xbb77('0x89')],_0x563ef[_0xbb77('0x8a')],_0x563ef[_0xbb77('0x8b')],_0x563ef['aws_polly_voice']||_0xbb77('0x8c'),_0x563ef[_0xbb77('0x5a')],_0x563ef['aws_text_type']||_0xbb77('0x5a'))[_0xbb77('0x15')](function(_0x332bbd){_0x5bc6a5(null,_0x332bbd);})[_0xbb77('0x18')](function(_0x114276){_0x5bc6a5(_0x114276);});};AGIVertices[_0xbb77('0x10')][_0xbb77('0x8d')]=function(_0x388710,_0x340fe0){scripts['awsLex'](this['channel']['uniqueid'],_0x388710[_0xbb77('0x89')],_0x388710[_0xbb77('0x8a')],_0x388710[_0xbb77('0x8e')],_0x388710[_0xbb77('0x5a')],_0x388710['aws_bot_name'])['then'](function(_0x3f370d){_0x340fe0(null,_0x3f370d);})[_0xbb77('0x18')](function(_0x35e822){_0x340fe0(_0x35e822);});};AGIVertices[_0xbb77('0x10')][_0xbb77('0x8f')]=function(_0x587642,_0x5097b1,_0x2f1715){scripts['googleASR'](_0x5097b1,_0x587642[_0xbb77('0x7b')],_0x587642[_0xbb77('0x90')]||'en-US')['then'](function(_0x37f174){_0x2f1715(null,_0x37f174);})[_0xbb77('0x18')](function(_0x1620c2){_0x2f1715(_0x1620c2);});};AGIVertices[_0xbb77('0x10')]['tildeASR']=function(_0x583b87,_0x22dce3,_0x2059fd){scripts[_0xbb77('0x91')](_0x22dce3,_0x583b87[_0xbb77('0x92')],_0x583b87[_0xbb77('0x93')],_0x583b87[_0xbb77('0x72')])['then'](function(_0x3cc1a2){_0x2059fd(null,_0x3cc1a2);})[_0xbb77('0x18')](function(_0x395603){_0x2059fd(_0x395603);});};AGIVertices['prototype'][_0xbb77('0x94')]=function(_0xed44e0){var _0x34d1af=_[_0xbb77('0x67')](verticesWithRetry,_0xed44e0[_0xbb77('0x36')])?_0xed44e0:_[_0xbb77('0x95')](_0xed44e0);for(var _0x2a753c in _0x34d1af){if(_0x34d1af[_0xbb77('0x96')](_0x2a753c)){if(_0x34d1af[_0x2a753c]&&_[_0xbb77('0x97')](_0x34d1af[_0x2a753c])){if(_['includes'](recursiveMapAttributes,_0x2a753c)){_0x34d1af[_0x2a753c]=this[_0xbb77('0x98')](_0x34d1af[_0x2a753c]);}else{_0x34d1af[_0x2a753c]=this[_0xbb77('0x99')](_0x34d1af[_0x2a753c]);}}}}return _0x34d1af;};AGIVertices[_0xbb77('0x10')][_0xbb77('0x9a')]=function(_0x1d006a){for(var _0x3da8ff in _0x1d006a){if(_0x1d006a['hasOwnProperty'](_0x3da8ff)){if(_['isPlainObject'](_0x1d006a[_0x3da8ff])){this[_0xbb77('0x9a')](_0x1d006a[_0x3da8ff]);}else if(_[_0xbb77('0x9b')](_0x1d006a[_0x3da8ff])){for(var _0x36d3da=0x0;_0x36d3da<_0x1d006a[_0x3da8ff]['length'];_0x36d3da++){this['recursiveNodeIndex'](_0x1d006a[_0x3da8ff][_0x36d3da]);}}else if(_[_0xbb77('0x97')](_0x1d006a[_0x3da8ff])){_0x1d006a[_0x3da8ff]=this[_0xbb77('0x99')](_0x1d006a[_0x3da8ff]);}}}};AGIVertices['prototype'][_0xbb77('0x9c')]=function(_0x4d0dd9,_0x3f870c){for(var _0x38b580 in _0x4d0dd9){if(_0x4d0dd9['hasOwnProperty'](_0x38b580)){if(_['isPlainObject'](_0x4d0dd9[_0x38b580])){if(!_[_0xbb77('0x41')](_0x4d0dd9[_0x38b580])){this['saveRestApiResult'](_0x4d0dd9[_0x38b580],util[_0xbb77('0x51')](_0xbb77('0x9d'),_0x3f870c,_0x38b580));}}else if(_[_0xbb77('0x9b')](_0x4d0dd9[_0x38b580])){for(var _0x5d2ec8=0x0;_0x5d2ec8<_0x4d0dd9[_0x38b580][_0xbb77('0x9e')];_0x5d2ec8++){this[_0xbb77('0x9c')](_0x4d0dd9[_0x38b580][_0x5d2ec8],util[_0xbb77('0x51')](_0xbb77('0x9d'),_0x3f870c,_0x38b580+'['+_0x5d2ec8+']'));}}else{if(!_[_0xbb77('0x42')](_0x4d0dd9[_0x38b580])){this[_0xbb77('0xe')]['setVariable'](util[_0xbb77('0x51')](_0xbb77('0x9d'),_0x3f870c,_0x38b580),_0x4d0dd9[_0x38b580]);}}}}};AGIVertices[_0xbb77('0x10')]['replaceObjectAllVariables']=function(_0x500aed){try{var _0x35e3fb=JSON[_0xbb77('0x6d')](_0x500aed);this[_0xbb77('0x9a')](_0x35e3fb);return JSON[_0xbb77('0x74')](_0x35e3fb);}catch(_0x56392a){return this[_0xbb77('0x99')](_0x500aed);}};AGIVertices[_0xbb77('0x10')][_0xbb77('0x99')]=function(_0x332646){var _0x56d815=_0x332646[_0xbb77('0x9f')]('{');for(var _0x735104=0x1;_0x735104<_0x56d815['length'];_0x735104+=0x1){var _0x23b4e9=_0x56d815[_0x735104][_0xbb77('0x9f')]('}');if(_0x23b4e9[_0xbb77('0x9e')]>0x1){_0x332646=_0x332646['replaceAll']('{'+_0x23b4e9[0x0]+'}',this[_0xbb77('0xe')][_0xbb77('0x11')](_0x23b4e9[0x0])[_0xbb77('0xa0')]||_0x23b4e9[0x0]);}}if(_0x56d815[_0xbb77('0x9e')]===0x1){return _0x332646[_0xbb77('0x48')]();}return this[_0xbb77('0x99')](_0x332646);};AGIVertices[_0xbb77('0x10')][_0xbb77('0xa1')]=function(_0x172208,_0x149806){var _0x49646b=this[_0xbb77('0xe')]['getVariable'](_0x172208);if(_0x49646b[_0xbb77('0xa2')]===-0x1){return _0x49646b;}logger[_0xbb77('0x2d')](util[_0xbb77('0x51')](_0xbb77('0xa3'),_0x149806,_0x49646b[_0xbb77('0xa0')]));return this[_0xbb77('0xe')][_0xbb77('0xa4')](_0x149806,_0x49646b[_0xbb77('0xa0')]);};AGIVertices['prototype']['isConfigured']=function(_0x32c011){return _0x32c011&&_0x32c011!=='0'&&_0x32c011!=='-1'&&_0x32c011!=='';};AGIVertices[_0xbb77('0x10')][_0xbb77('0xa5')]=function(_0x30d910){this['createSquareDetailsReport'][_0xbb77('0x71')](this,_0x30d910,'-');_0x30d910[_0xbb77('0xa6')]=_0x30d910['maxRetry'];return{'code':0xc8,'result':'-'};};AGIVertices[_0xbb77('0x10')][_0xbb77('0xa7')]=function(_0x349e9f){logger[_0xbb77('0x2d')](util[_0xbb77('0x51')](_0xbb77('0xa8'),_0x349e9f[_0xbb77('0x35')]));if(!this[_0xbb77('0x86')](_0x349e9f[_0xbb77('0x5a')])){return this[_0xbb77('0xe')][_0xbb77('0xa9')](_0xbb77('0xaa'));}var _0x373cd4='\x22'+_0x349e9f['text']+'\x22';if(this[_0xbb77('0x86')](_0x349e9f[_0xbb77('0x79')])){_0x373cd4+=','+_0x349e9f[_0xbb77('0x79')];}var _0x2b888e=this[_0xbb77('0xe')][_0xbb77('0x54')](_0xbb77('0xab'),_0x373cd4);if(_0x2b888e[_0xbb77('0xa2')]===-0x1){return _0x2b888e;}return this[_0xbb77('0xe')][_0xbb77('0xa9')](util[_0xbb77('0x51')](_0xbb77('0xac'),_0x373cd4));};AGIVertices[_0xbb77('0x10')][_0xbb77('0xad')]=function(_0x434db3){logger[_0xbb77('0x2d')](util[_0xbb77('0x51')](_0xbb77('0xae'),_0x434db3[_0xbb77('0x35')]));if(!this[_0xbb77('0x86')](_0x434db3['grammar'])){return this['channel'][_0xbb77('0xa9')](_0xbb77('0xaf'));}var _0x3accc7=_0x434db3[_0xbb77('0xb0')];if(this[_0xbb77('0x86')](_0x434db3[_0xbb77('0x79')])){_0x3accc7+=','+_0x434db3[_0xbb77('0x79')];}var _0x1e1e45=this[_0xbb77('0xe')]['exec'](_0xbb77('0xb1'),_0x3accc7);if(_0x1e1e45[_0xbb77('0xa2')]===-0x1){return _0x1e1e45;}var _0x275d09=this[_0xbb77('0xa1')](_0xbb77('0xb2'),_0xbb77('0xb3'));if(_0x275d09['result']===-0x1){return _0x275d09;}var _0x17e876=this[_0xbb77('0xa1')](_0xbb77('0xb4'),_0xbb77('0xb5'));if(_0x17e876[_0xbb77('0xa2')]===-0x1){return _0x17e876;}var _0x106658=this['getAndSetVariable'](_0xbb77('0xb6'),_0xbb77('0xb7'));if(_0x106658[_0xbb77('0xa2')]===-0x1){return _0x106658;}return this['channel'][_0xbb77('0xa9')](util[_0xbb77('0x51')]('Executed\x20command\x20MRCPRecog\x20%s',_0x3accc7));};AGIVertices[_0xbb77('0x10')][_0xbb77('0xb8')]=function(_0xf0dc5e){logger['info'](util[_0xbb77('0x51')](_0xbb77('0xb9'),_0xf0dc5e[_0xbb77('0x35')]));return this[_0xbb77('0xe')]['agi']([_0xf0dc5e[_0xbb77('0xba')],_0xf0dc5e[_0xbb77('0xbb')]]);};AGIVertices[_0xbb77('0x10')][_0xbb77('0xbc')]=function(_0x71d061){logger[_0xbb77('0x2d')](util['format']('Enter\x20in\x20ANSWER\x20(%s)\x20block',_0x71d061[_0xbb77('0x35')]));if(this[_0xbb77('0x86')](_0x71d061[_0xbb77('0x65')])){logger[_0xbb77('0x2d')](util[_0xbb77('0x51')]('Wait\x20%s\x20seconds\x20before\x20answer',_0x71d061['timeout']));var _0x366530=this[_0xbb77('0xe')][_0xbb77('0xbd')](_0x71d061[_0xbb77('0x65')]);if(_0x366530[_0xbb77('0xa2')]===-0x1){return _0x366530;}}return this[_0xbb77('0xe')][_0xbb77('0xbc')]();};AGIVertices[_0xbb77('0x10')][_0xbb77('0xbe')]=function(_0x36681d){logger[_0xbb77('0x2d')](util[_0xbb77('0x51')]('Enter\x20in\x20CALLBACK\x20(%s)\x20block',_0x36681d[_0xbb77('0x35')]));if(!this[_0xbb77('0x86')](_0x36681d['list_id'])){return this[_0xbb77('0xe')][_0xbb77('0x30')](_0x36681d,'no\x20list\x20selected');}_0x36681d[_0xbb77('0x47')]=moment();if(this[_0xbb77('0x86')](_0x36681d[_0xbb77('0xbf')])){_0x36681d[_0xbb77('0x47')]=moment()[_0xbb77('0xc0')](_0x36681d[_0xbb77('0xbf')],_0xbb77('0xc1'));}if(!this['isConfigured'](_0x36681d['callback_priority'])){_0x36681d[_0xbb77('0x49')]=0x2;}this[_0xbb77('0x40')]['sync'](this,_0x36681d);return this['channel'][_0xbb77('0xa9')](util[_0xbb77('0x51')](_0xbb77('0xc2'),_0x36681d[_0xbb77('0x45')],_0x36681d[_0xbb77('0x46')],_0x36681d['scheduledAt']));};AGIVertices['prototype'][_0xbb77('0xc3')]=function(_0x3ceb65){logger[_0xbb77('0x2d')](util[_0xbb77('0x51')]('Enter\x20in\x20CUSTOM\x20APP\x20(%s)\x20block',_0x3ceb65['label']));var _0x2fb551=this[_0xbb77('0xe')][_0xbb77('0x54')](_0x3ceb65[_0xbb77('0xc4')],_0x3ceb65[_0xbb77('0x79')]);if(_0x2fb551[_0xbb77('0xa2')]===-0x1){return _0x2fb551;}return this['channel'][_0xbb77('0xa9')](util[_0xbb77('0x51')]('Executed\x20command\x20%s\x20%s',_0x3ceb65[_0xbb77('0xc4')],_0x3ceb65['options']));};AGIVertices[_0xbb77('0x10')]['lumenvoxtts']=function(_0x192cb8){logger['info'](util[_0xbb77('0x51')](_0xbb77('0xc5'),_0x192cb8[_0xbb77('0x35')]));if(!this['isConfigured'](_0x192cb8[_0xbb77('0x5a')])){return this[_0xbb77('0xe')][_0xbb77('0xa9')](_0xbb77('0xaa'));}var _0x39bdbf='\x22'+_0x192cb8[_0xbb77('0x5a')]+'\x22';if(this[_0xbb77('0x86')](_0x192cb8[_0xbb77('0x79')])){_0x39bdbf+=','+_0x192cb8[_0xbb77('0x79')];}var _0x281f97=this[_0xbb77('0xe')][_0xbb77('0x54')](_0xbb77('0xab'),_0x39bdbf);if(_0x281f97[_0xbb77('0xa2')]===-0x1){return _0x281f97;}return this[_0xbb77('0xe')][_0xbb77('0xa9')](util[_0xbb77('0x51')](_0xbb77('0xac'),_0x39bdbf));};AGIVertices[_0xbb77('0x10')][_0xbb77('0xc6')]=function(_0x4c8663){logger[_0xbb77('0x2d')](util[_0xbb77('0x51')](_0xbb77('0xc7'),_0x4c8663[_0xbb77('0x35')]));if(!this[_0xbb77('0x86')](_0x4c8663['text'])){return this[_0xbb77('0xe')][_0xbb77('0xa9')]('no\x20text\x20configured');}var _0x473e43='\x22'+_0x4c8663[_0xbb77('0x5a')]+'\x22';if(this[_0xbb77('0x86')](_0x4c8663[_0xbb77('0x79')])){_0x473e43+=','+_0x4c8663[_0xbb77('0x79')];}var _0x905638=this['channel'][_0xbb77('0x54')]('MRCPSynth',_0x473e43);if(_0x905638[_0xbb77('0xa2')]===-0x1){return _0x905638;}return this[_0xbb77('0xe')][_0xbb77('0xa9')](util[_0xbb77('0x51')](_0xbb77('0xac'),_0x473e43));};AGIVertices[_0xbb77('0x10')]['lumenvoxasr']=function(_0x4e3a06){logger['info'](util[_0xbb77('0x51')](_0xbb77('0xc8'),_0x4e3a06[_0xbb77('0x35')]));if(!this[_0xbb77('0x86')](_0x4e3a06['grammar'])){return this['channel'][_0xbb77('0xa9')](_0xbb77('0xaf'));}var _0x79caf0=_0x4e3a06['grammar'];if(this[_0xbb77('0x86')](_0x4e3a06[_0xbb77('0x79')])){_0x79caf0+=','+_0x4e3a06[_0xbb77('0x79')];}var _0x46fa4e=this[_0xbb77('0xe')][_0xbb77('0x54')]('MRCPRecog',_0x79caf0);if(_0x46fa4e[_0xbb77('0xa2')]===-0x1){return _0x46fa4e;}var _0x3583e6=this['getAndSetVariable']('RECOG_CONFIDENCE()',_0xbb77('0xc9'));if(_0x3583e6[_0xbb77('0xa2')]===-0x1){return _0x3583e6;}var _0x5ae4fe=this[_0xbb77('0xa1')]('RECOG_INPUT()','LUMENVOX_ASR_TRANSCRIPT');if(_0x5ae4fe[_0xbb77('0xa2')]===-0x1){return _0x5ae4fe;}var _0x41250d=this[_0xbb77('0xa1')](_0xbb77('0xb6'),_0xbb77('0xca'));if(_0x41250d['result']===-0x1){return _0x41250d;}return this['channel'][_0xbb77('0xa9')](util[_0xbb77('0x51')]('Executed\x20command\x20MRCPRecog\x20%s',_0x79caf0));};AGIVertices[_0xbb77('0x10')][_0xbb77('0xcb')]=function(_0x7f9a6a){logger['info'](util[_0xbb77('0x51')]('Enter\x20in\x20SESTEKASR\x20(%s)\x20block',_0x7f9a6a[_0xbb77('0x35')]));if(!this['isConfigured'](_0x7f9a6a[_0xbb77('0xb0')])){return this[_0xbb77('0xe')][_0xbb77('0xa9')](_0xbb77('0xaf'));}var _0x1f6714=_0x7f9a6a['grammar'];if(this[_0xbb77('0x86')](_0x7f9a6a[_0xbb77('0x79')])){_0x1f6714+=','+_0x7f9a6a['options'];}var _0x4f654a=this[_0xbb77('0xe')][_0xbb77('0x54')](_0xbb77('0xb1'),_0x1f6714);if(_0x4f654a[_0xbb77('0xa2')]===-0x1){return _0x4f654a;}var _0x880cd9=this[_0xbb77('0xa1')](_0xbb77('0xb2'),_0xbb77('0xcc'));if(_0x880cd9[_0xbb77('0xa2')]===-0x1){return _0x880cd9;}var _0x475a80=this[_0xbb77('0xa1')](_0xbb77('0xb4'),_0xbb77('0xcd'));if(_0x475a80['result']===-0x1){return _0x475a80;}var _0x1fa7a5=this[_0xbb77('0xa1')](_0xbb77('0xb6'),_0xbb77('0xce'));if(_0x1fa7a5[_0xbb77('0xa2')]===-0x1){return _0x1fa7a5;}return this[_0xbb77('0xe')][_0xbb77('0xa9')](util['format'](_0xbb77('0xcf'),_0x1f6714));};AGIVertices[_0xbb77('0x10')][_0xbb77('0xd0')]=function(_0x38304e){logger[_0xbb77('0x2d')](util['format'](_0xbb77('0xd1'),_0x38304e[_0xbb77('0x35')]));if(!this[_0xbb77('0x86')](_0x38304e[_0xbb77('0xd2')])){return this[_0xbb77('0xe')]['error'](_0x38304e,_0xbb77('0xd3'));}var _0x273d9b=this['getSquareOdbc']['sync'](this,_0x38304e[_0xbb77('0xd2')]);if(!_0x273d9b){return this[_0xbb77('0xe')]['error'](_0x38304e,'no\x20odbc\x20database\x20found');}if(!this[_0xbb77('0x86')](_0x38304e[_0xbb77('0xd4')])){return this[_0xbb77('0xe')]['error'](_0x38304e,_0xbb77('0xd5'));}var _0x56d280=_0x38304e[_0xbb77('0xd4')][_0xbb77('0x56')](/(\r\n|\n|\r)/gm,'\x20');this[_0xbb77('0xe')][_0xbb77('0xa9')](util['format'](_0xbb77('0xd6'),_0x56d280));var _0x15a467=this[_0xbb77('0xd7')][_0xbb77('0x71')](this,_0x273d9b,_0x56d280);this[_0xbb77('0x33')][_0xbb77('0x71')](this,_0x38304e,_0x56d280);if(!this[_0xbb77('0x86')](_0x38304e[_0xbb77('0xd8')])){return this[_0xbb77('0xe')]['noop'](_0xbb77('0xd9'));}var _0x578553=this['getVariable'][_0xbb77('0x71')](this,_0x38304e[_0xbb77('0xd8')]);if(!_0x578553){return this[_0xbb77('0xe')][_0xbb77('0x30')](_0x38304e,_0xbb77('0xda'));}var _0x548d6d=this;_0x15a467[_0xbb77('0xdb')](function(_0x5aac5b,_0x2bb8c8){Object[_0xbb77('0xdc')](_0x5aac5b)[_0xbb77('0xdb')](function(_0x2d02fe){_0x548d6d[_0xbb77('0xe')][_0xbb77('0xa4')](util[_0xbb77('0x51')](_0xbb77('0xdd'),_0x578553,_0x2bb8c8,_0x2d02fe),_0x5aac5b[_0x2d02fe]);});});this[_0xbb77('0xe')]['setVariable'](util['format'](_0xbb77('0xde'),_0x578553),_0x15a467[_0xbb77('0x9e')]);return this['channel']['noop'](util['format'](_0xbb77('0xdf'),_0x578553));};AGIVertices[_0xbb77('0x10')][_0xbb77('0xe0')]=function(_0x56e97d){logger[_0xbb77('0xe1')](util['format'](_0xbb77('0xe2'),_0x56e97d['label']));if(!this[_0xbb77('0x86')](_0x56e97d[_0xbb77('0xe3')])){return this[_0xbb77('0xe')]['error'](_0x56e97d,_0xbb77('0xe4'));}var _0x55b25c=this['getUser'][_0xbb77('0x71')](this,_0x56e97d['sip_id']);if(!_0x55b25c){return this[_0xbb77('0xe')][_0xbb77('0x30')](_0x56e97d,_0xbb77('0xe5'));}var _0x1eda30=this['channel']['exec'](_0xbb77('0xe6'),[util[_0xbb77('0x51')](_0xbb77('0xe7'),_0x55b25c),_0x56e97d[_0xbb77('0x65')],_0x56e97d[_0xbb77('0xe8')],_0x56e97d['url']]);if(_0x1eda30[_0xbb77('0xa2')]===-0x1){return _0x1eda30;}return this[_0xbb77('0xe')][_0xbb77('0xa9')](util[_0xbb77('0x51')](_0xbb77('0xe9'),'DIAL'));};AGIVertices[_0xbb77('0x10')][_0xbb77('0xea')]=function(_0x5a2f59){logger[_0xbb77('0x2d')](util[_0xbb77('0x51')]('Enter\x20in\x20DIALOGFLOW\x20(%s)\x20block',_0x5a2f59['label']));if(!this['isConfigured'](_0x5a2f59['key'])){return this[_0xbb77('0xe')]['noop'](_0xbb77('0xeb'));}if(!this[_0xbb77('0x86')](_0x5a2f59['text'])){return this['channel'][_0xbb77('0xa9')](_0xbb77('0xaa'));}this[_0xbb77('0xe')][_0xbb77('0xec')]=!![];this['createSquareDetailsReport'](_0x5a2f59);this[_0xbb77('0x3f')](_0x5a2f59[_0xbb77('0x5a')],'in','','');this[_0xbb77('0xe')][_0xbb77('0xa9')](util['format'](_0xbb77('0xed'),_0x5a2f59[_0xbb77('0x5a')]));var _0x3d449c=this['googleDialogflow'][_0xbb77('0x71')](this,_0x5a2f59);if(_0x3d449c){for(var _0xb1876b in _0x3d449c){if(_0x3d449c[_0xbb77('0x96')](_0xb1876b)){this[_0xbb77('0xe')][_0xbb77('0xa4')](util[_0xbb77('0x51')]('DIALOGFLOW_%s',_0xb1876b[_0xbb77('0x6a')]()),_0x3d449c[_0xb1876b]);}}this['createSquareMessage'](_0x3d449c[_0xbb77('0xee')],'out',_0xbb77('0xea'),'');return this['channel']['noop'](util[_0xbb77('0x51')](_0xbb77('0xef'),_0x3d449c[_0xbb77('0xee')]));}return this['channel']['error'](_0x5a2f59,_0xbb77('0xf0'));};AGIVertices[_0xbb77('0x10')][_0xbb77('0xf1')]=function(_0x7f224f){logger[_0xbb77('0x2d')](util[_0xbb77('0x51')](_0xbb77('0xf2'),_0x7f224f[_0xbb77('0x35')]));if(!this[_0xbb77('0x86')](_0x7f224f[_0xbb77('0x7d')])){return this['channel'][_0xbb77('0xa9')]('no\x20project_id\x20configured');}if(!this['isConfigured'](_0x7f224f[_0xbb77('0x7e')])){return this[_0xbb77('0xe')]['noop']('no\x20client_email\x20configured');}if(!this['isConfigured'](_0x7f224f[_0xbb77('0x7f')])){return this[_0xbb77('0xe')][_0xbb77('0xa9')](_0xbb77('0xf3'));}if(!this[_0xbb77('0x86')](_0x7f224f[_0xbb77('0x80')])){return this[_0xbb77('0xe')][_0xbb77('0xa9')]('no\x20anguage\x20configured');}if(!this['isConfigured'](_0x7f224f[_0xbb77('0x5a')])){return this[_0xbb77('0xe')][_0xbb77('0xa9')]('no\x20text\x20configured');}this[_0xbb77('0xe')][_0xbb77('0xec')]=!![];this['createSquareDetailsReport'](_0x7f224f);this['createSquareMessage'](_0x7f224f[_0xbb77('0x5a')],'in','','');this['channel']['noop'](util[_0xbb77('0x51')](_0xbb77('0xf4'),_0x7f224f[_0xbb77('0x5a')]));var _0x2c0f8e=this[_0xbb77('0x7c')]['sync'](this,_0x7f224f);if(_0x2c0f8e){for(var _0x129ddf in _0x2c0f8e){if(_0x2c0f8e[_0xbb77('0x96')](_0x129ddf)){if(_0x129ddf!=='providerResponse'){this['channel']['setVariable'](util[_0xbb77('0x51')](_0xbb77('0xf5'),_0x129ddf[_0xbb77('0x6a')]()),_0x2c0f8e[_0x129ddf]);}}}this[_0xbb77('0x3f')](_0x2c0f8e[_0xbb77('0xee')],_0xbb77('0xf6'),_0xbb77('0xf1'),_0x2c0f8e[_0xbb77('0xf7')]);return this['channel'][_0xbb77('0xa9')](util['format'](_0xbb77('0xf8'),_0x2c0f8e[_0xbb77('0xee')]));}return this[_0xbb77('0xe')][_0xbb77('0x30')](_0x7f224f,_0xbb77('0xf9'));};AGIVertices[_0xbb77('0x10')][_0xbb77('0xfa')]=function(_0x1746f2){logger[_0xbb77('0x2d')](util[_0xbb77('0x51')]('Enter\x20in\x20SESTEKNDA\x20(%s)\x20block',_0x1746f2['label']));if(!this[_0xbb77('0x86')](_0x1746f2['ndauth_url'])){return this[_0xbb77('0xe')][_0xbb77('0xa9')]('no\x20ndauth\x20url\x20configured');}if(!this[_0xbb77('0x86')](_0x1746f2['username'])){return this['channel']['noop'](_0xbb77('0xfb'));}if(!this[_0xbb77('0x86')](_0x1746f2[_0xbb77('0xfc')])){return this[_0xbb77('0xe')][_0xbb77('0xa9')](_0xbb77('0xfd'));}if(!this['isConfigured'](_0x1746f2['ndassistant_url'])){return this[_0xbb77('0xe')]['noop']('no\x20text\x20configured');}this['channel']['bot']=!![];this[_0xbb77('0x33')](_0x1746f2);this[_0xbb77('0x3f')](_0x1746f2['text'],'in','','');this[_0xbb77('0xe')][_0xbb77('0xa9')](util[_0xbb77('0x51')]('Trying\x20SestekNDA:\x20%s',_0x1746f2['text']));var _0x48a065=this[_0xbb77('0x81')][_0xbb77('0x71')](this,_0x1746f2);if(_0x48a065){for(var _0x5d4910 in _0x48a065){if(_0x48a065[_0xbb77('0x96')](_0x5d4910)){this[_0xbb77('0xe')][_0xbb77('0xa4')](util[_0xbb77('0x51')](_0xbb77('0xfe'),_0x5d4910[_0xbb77('0x6a')]()),_0x48a065[_0x5d4910]);}}this[_0xbb77('0x3f')](_0x48a065[_0xbb77('0xee')],_0xbb77('0xf6'),'sesteknda','');if(_0x48a065[_0xbb77('0xff')]){this[_0xbb77('0xe')][_0xbb77('0xa9')](util[_0xbb77('0x51')](_0xbb77('0x100'),_0x48a065[_0xbb77('0xff')]));var _0x15a862=this[_0xbb77('0xe')][_0xbb77('0x101')](_0x48a065['audiofile']);try{fs[_0xbb77('0x102')](_0x48a065['audiofile']+_0xbb77('0x103'));}catch(_0x25d144){logger[_0xbb77('0x30')](_0x25d144);}return _0x15a862;}else{return this[_0xbb77('0xe')][_0xbb77('0xa9')](util[_0xbb77('0x51')](_0xbb77('0x104'),_0x48a065['speech']));}}return this[_0xbb77('0xe')][_0xbb77('0x30')](_0x1746f2,_0xbb77('0x105'));};AGIVertices[_0xbb77('0x10')]['end']=function(_0x2200fa){logger[_0xbb77('0x2d')](util[_0xbb77('0x51')]('Enter\x20in\x20END\x20(%s)\x20block',_0x2200fa[_0xbb77('0x35')]));return this[_0xbb77('0xe')][_0xbb77('0xa9')](_0xbb77('0x106'));};AGIVertices[_0xbb77('0x10')][_0xbb77('0x107')]=function(_0x258849){logger['info'](util[_0xbb77('0x51')](_0xbb77('0x108'),_0x258849[_0xbb77('0x35')]));var _0x575cb0='';if(_0x258849[_0xbb77('0x109')]){if(!this[_0xbb77('0x86')](_0x258849[_0xbb77('0x109')])){return this['channel'][_0xbb77('0x30')](_0x258849,_0xbb77('0x10a'));}else{var _0x17eb0c=parseInt(_0x258849[_0xbb77('0x109')],0xa);if(isNaN(_0x17eb0c)){_0x575cb0=_0x258849['trunk_id'];}else{_0x575cb0=this[_0xbb77('0x10b')][_0xbb77('0x71')](this,_0x258849[_0xbb77('0x109')]);if(!_0x575cb0){return this[_0xbb77('0xe')][_0xbb77('0x30')](_0x258849,_0xbb77('0x10c'));}}}}else if(_0x258849[_0xbb77('0x10d')]){_0x575cb0=_0x258849[_0xbb77('0x10d')];}else{return this[_0xbb77('0xe')]['error'](_0x258849,'no\x20trunk\x20selected');}var _0x42e989=this['channel'][_0xbb77('0x54')](_0xbb77('0xe6'),[util['format'](_0xbb77('0x10e'),_0x575cb0,_0x258849[_0xbb77('0x45')]),_0x258849[_0xbb77('0x65')],_0x258849[_0xbb77('0xe8')],_0x258849['url']]);if(_0x42e989[_0xbb77('0xa2')]===-0x1){return _0x42e989;}return this['channel'][_0xbb77('0xa9')](util[_0xbb77('0x51')](_0xbb77('0xe9'),_0xbb77('0xe6')));};AGIVertices[_0xbb77('0x10')]['finally']=function(_0x32af58){logger[_0xbb77('0x2d')](util[_0xbb77('0x51')](_0xbb77('0x10f'),_0x32af58[_0xbb77('0x35')]));return this['channel']['noop'](_0xbb77('0x110'));};AGIVertices[_0xbb77('0x10')][_0xbb77('0xc')]=function(_0x165129){logger['info'](util[_0xbb77('0x51')](_0xbb77('0x111'),_0x165129[_0xbb77('0x35')]));if(_0x165129[_0xbb77('0xa6')]===0x0){return this['maxRetry'](_0x165129);}_0x165129['retry']-=0x1;if(!this[_0xbb77('0x86')](_0x165129['file_id'])){return this[_0xbb77('0xe')][_0xbb77('0x30')](_0x165129,'no\x20file\x20audio\x20selected');}var _0x32e072=this[_0xbb77('0x1e')][_0xbb77('0x71')](this,_0x165129[_0xbb77('0x112')]);if(!_0x32e072){return this[_0xbb77('0xe')][_0xbb77('0x30')](_0x165129,'no\x20file\x20audio\x20found');}if(!this[_0xbb77('0x86')](_0x165129[_0xbb77('0xd8')])){return this[_0xbb77('0xe')]['error'](_0xbb77('0xd9'));}var _0x198740=this[_0xbb77('0xe')][_0xbb77('0x113')](_0x32e072,_0x165129[_0xbb77('0x114')],_0x165129['maxdigit']);var _0x38fa86=_0x198740[_0xbb77('0xa2')]?_0x198740[_0xbb77('0xa2')][_0xbb77('0x48')]():'';logger[_0xbb77('0x2d')](_0xbb77('0x115'),JSON['stringify'](_0x198740));if(_0x198740[_0xbb77('0xa2')]===-0x1){this[_0xbb77('0x33')][_0xbb77('0x71')](this,_0x165129,_0x38fa86);return _0x198740;}else if(_0x198740[_0xbb77('0xa0')]===_0xbb77('0x65')){_0x198740[_0xbb77('0xa2')]=_0x38fa86[_0xbb77('0x9e')]>=parseInt(_0x165129[_0xbb77('0x116')])?'x':'i';}else{_0x198740[_0xbb77('0xa2')]=_0x38fa86[_0xbb77('0x9e')]>=parseInt(_0x165129[_0xbb77('0x116')])&&_0x38fa86['length']<=parseInt(_0x165129[_0xbb77('0x117')])?'x':'i';}var _0x10c80f=this[_0xbb77('0x11')]['sync'](this,_0x165129[_0xbb77('0xd8')]);if(!_0x10c80f){return this['channel'][_0xbb77('0x30')](_0x165129,_0xbb77('0xda'));}this[_0xbb77('0xe')][_0xbb77('0xa4')](_0x10c80f,_0x38fa86);if(this[_0xbb77('0x86')](_0x165129['hiddendigitsnum'])){var _0x2e292d=parseInt(_0x165129[_0xbb77('0x118')],0xa);var _0x4fbb63=rs[_0xbb77('0x119')]({'charset':'*','length':_0x2e292d});var _0x44e23c=_0x38fa86[_0xbb77('0x9e')];if(_0x44e23c>0x0){if(_0x44e23c>_0x2e292d){this[_0xbb77('0x33')][_0xbb77('0x71')](this,_0x165129,_0x165129[_0xbb77('0x11a')]==='first'?_0x4fbb63+_0x38fa86[_0xbb77('0x11b')](_0x2e292d):_0x38fa86['substr'](0x0,_0x44e23c-_0x2e292d)+_0x4fbb63);}else{this['createSquareDetailsReport']['sync'](this,_0x165129,rs[_0xbb77('0x119')]({'charset':'*','length':_0x44e23c}));}}else{this[_0xbb77('0x33')]['sync'](this,_0x165129,'');}}else{this['createSquareDetailsReport'][_0xbb77('0x71')](this,_0x165129,_0x38fa86);}return _0x198740;};AGIVertices[_0xbb77('0x10')][_0xbb77('0xd')]=function(_0x3a48e4){logger[_0xbb77('0x2d')](util['format'](_0xbb77('0x11c'),_0x3a48e4[_0xbb77('0x35')]));return this[_0xbb77('0xc')](_0x3a48e4);};AGIVertices[_0xbb77('0x10')][_0xbb77('0x11d')]=function(_0x27566c){logger['info'](util[_0xbb77('0x51')](_0xbb77('0x11e'),_0x27566c[_0xbb77('0x35')]));this[_0xbb77('0x33')]['sync'](this,_0x27566c,_0x27566c[_0xbb77('0x11f')]);return this[_0xbb77('0xe')][_0xbb77('0xa9')](util[_0xbb77('0x51')]('GOAL\x20%s',_0x27566c[_0xbb77('0x11f')]));};AGIVertices[_0xbb77('0x10')][_0xbb77('0x120')]=function(_0x433977){logger[_0xbb77('0x2d')](util['format'](_0xbb77('0x121'),_0x433977['label']));if(!this[_0xbb77('0x86')](_0x433977[_0xbb77('0x89')])||!this['isConfigured'](_0x433977[_0xbb77('0x8a')])){return this[_0xbb77('0xe')][_0xbb77('0xa9')](_0xbb77('0x122'));}if(!this['isConfigured'](_0x433977['text'])){return this[_0xbb77('0xe')]['noop'](_0xbb77('0xaa'));}this[_0xbb77('0xe')]['noop'](util[_0xbb77('0x51')]('Trying\x20aws\x20Polly\x20%s',_0x433977[_0xbb77('0x5a')]));var _0x13fd65=this[_0xbb77('0x88')][_0xbb77('0x71')](this,_0x433977);if(_0x13fd65){this[_0xbb77('0xe')]['noop'](util[_0xbb77('0x51')](_0xbb77('0x123'),_0x13fd65));var _0x31ad30=this[_0xbb77('0xe')][_0xbb77('0x101')](_0x13fd65);try{fs[_0xbb77('0x102')](_0x13fd65+_0xbb77('0x103'));}catch(_0x35617f){logger[_0xbb77('0x30')](_0x35617f);}return _0x31ad30;}return this[_0xbb77('0xe')]['error'](_0x433977,_0xbb77('0x124'));};AGIVertices[_0xbb77('0x10')][_0xbb77('0x125')]=function(_0x74e5e4){logger[_0xbb77('0x2d')](util[_0xbb77('0x51')](_0xbb77('0x126'),_0x74e5e4[_0xbb77('0x35')]));if(!this[_0xbb77('0x86')](_0x74e5e4['aws_access_key_id'])||!this[_0xbb77('0x86')](_0x74e5e4[_0xbb77('0x8a')])){return this[_0xbb77('0xe')][_0xbb77('0xa9')](_0xbb77('0x122'));}if(!this['isConfigured'](_0x74e5e4[_0xbb77('0x127')])){return this[_0xbb77('0xe')]['noop']('no\x20bot\x20name\x20configured');}if(!this[_0xbb77('0x86')](_0x74e5e4['text'])){return this[_0xbb77('0xe')][_0xbb77('0xa9')]('no\x20text\x20configured');}this[_0xbb77('0xe')][_0xbb77('0xec')]=!![];this[_0xbb77('0x33')](_0x74e5e4);this[_0xbb77('0x3f')](_0x74e5e4[_0xbb77('0x5a')],'in','','');this[_0xbb77('0xe')][_0xbb77('0xa9')](util['format'](_0xbb77('0x128'),_0x74e5e4[_0xbb77('0x5a')]));var _0x4a94cb=this['awsLex'][_0xbb77('0x71')](this,_0x74e5e4);if(_0x4a94cb){for(var _0x568f65 in _0x4a94cb){if(_0x4a94cb[_0xbb77('0x96')](_0x568f65)&&_[_0xbb77('0x97')](_0x4a94cb[_0x568f65])){this['channel'][_0xbb77('0xa4')](util[_0xbb77('0x51')]('AWS_LEX_%s',_0x568f65['toUpperCase']()),_0x4a94cb[_0x568f65]);}}if(_[_0xbb77('0x42')](_0x4a94cb[_0xbb77('0x77')])){return this['channel'][_0xbb77('0xa9')](_0xbb77('0x129'));}else{this[_0xbb77('0x3f')](_0x4a94cb[_0xbb77('0x77')],_0xbb77('0xf6'),'amazonlex','');return this[_0xbb77('0xe')][_0xbb77('0xa9')](util[_0xbb77('0x51')](_0xbb77('0x12a'),_0x4a94cb['message']));}}return this[_0xbb77('0xe')]['error'](_0x74e5e4,_0xbb77('0x12b'));};AGIVertices[_0xbb77('0x10')]['googleasr']=function(_0x29984b){logger[_0xbb77('0x2d')](util[_0xbb77('0x51')](_0xbb77('0x12c'),_0x29984b[_0xbb77('0x35')],_0x29984b[_0xbb77('0x65')]));if(!this['isConfigured'](_0x29984b[_0xbb77('0x7b')])){return this['channel'][_0xbb77('0xa9')]('no\x20key\x20configured');}var _0x3ca710=_0xbb77('0x12d');var _0x20069d=util[_0xbb77('0x51')](_0xbb77('0x12e'),FILES_PATH,rs[_0xbb77('0x119')](0x4));var _0x2191ab=util['format'](_0xbb77('0x9d'),_0x20069d,_0x3ca710);var _0x32e82d=!![];if(_0x29984b[_0xbb77('0x12f')]===_0xbb77('0x130')){_0x32e82d=![];}var _0x3da6e7=this['channel'][_0xbb77('0x131')](_0x20069d,_0x3ca710,_0x29984b['intKey'],_0x29984b[_0xbb77('0x65')],undefined,_0x32e82d);if(_0x3da6e7['result']!==-0x1){this[_0xbb77('0xe')][_0xbb77('0xa9')](util['format'](_0xbb77('0x132'),_0x2191ab));var _0x4f7399=this[_0xbb77('0x8f')][_0xbb77('0x71')](this,_0x29984b,_0x2191ab);if(_0x4f7399){for(var _0x4a8ff9 in _0x4f7399){if(_0x4f7399['hasOwnProperty'](_0x4a8ff9)){this[_0xbb77('0xe')][_0xbb77('0xa4')](util[_0xbb77('0x51')](_0xbb77('0x133'),_0x4a8ff9[_0xbb77('0x6a')]()),_0x4f7399[_0x4a8ff9]);}}return this[_0xbb77('0xe')]['noop'](util['format'](_0xbb77('0x134'),JSON[_0xbb77('0x74')](_0x4f7399)));}}return _0x3da6e7;};AGIVertices['prototype'][_0xbb77('0x135')]=function(_0x4c6ca2){logger[_0xbb77('0x2d')](util[_0xbb77('0x51')](_0xbb77('0x136'),_0x4c6ca2[_0xbb77('0x35')]));if(!this[_0xbb77('0x86')](_0x4c6ca2['appid'])){return this[_0xbb77('0xe')]['noop'](_0xbb77('0x137'));}if(!this[_0xbb77('0x86')](_0x4c6ca2[_0xbb77('0x93')])){return this[_0xbb77('0xe')][_0xbb77('0xa9')](_0xbb77('0x138'));}var _0x4c7645=_0xbb77('0x12d');var _0x338e14=util[_0xbb77('0x51')](_0xbb77('0x12e'),FILES_PATH,rs[_0xbb77('0x119')](0x4));var _0x39e9dd=util[_0xbb77('0x51')](_0xbb77('0x9d'),_0x338e14,_0x4c7645);var _0x51140a=!![];if(_0x4c6ca2[_0xbb77('0x12f')]===_0xbb77('0x130')){_0x51140a=![];}var _0x57a171=this[_0xbb77('0xe')][_0xbb77('0x131')](_0x338e14,_0x4c7645,_0x4c6ca2[_0xbb77('0x139')],_0x4c6ca2[_0xbb77('0x65')],undefined,_0x51140a);if(_0x57a171[_0xbb77('0xa2')]!==-0x1){this[_0xbb77('0xe')]['noop'](util[_0xbb77('0x51')](_0xbb77('0x13a'),_0x39e9dd));var _0x380759=this[_0xbb77('0x91')][_0xbb77('0x71')](this,_0x4c6ca2,_0x39e9dd);if(_0x380759){for(var _0x3bba28 in _0x380759){if(_0x380759[_0xbb77('0x96')](_0x3bba28)){this[_0xbb77('0xe')][_0xbb77('0xa4')](util['format'](_0xbb77('0x13b'),_0x3bba28[_0xbb77('0x6a')]()),_0x380759[_0x3bba28]);}}return this[_0xbb77('0xe')][_0xbb77('0xa9')](util['format'](_0xbb77('0x13c'),JSON[_0xbb77('0x74')](_0x380759)));}}return _0x57a171;};AGIVertices[_0xbb77('0x10')][_0xbb77('0x13d')]=function(_0x55eb7e){logger[_0xbb77('0x2d')](util[_0xbb77('0x51')](_0xbb77('0x13e'),_0x55eb7e[_0xbb77('0x35')]));return this[_0xbb77('0xe')][_0xbb77('0x13f')](_0x55eb7e['context'],_0x55eb7e[_0xbb77('0x3c')],_0x55eb7e[_0xbb77('0x140')]);};AGIVertices[_0xbb77('0x10')][_0xbb77('0x141')]=function(_0x1bc050){logger['info'](util[_0xbb77('0x51')]('Enter\x20in\x20GOTOIF\x20(%s)\x20block',_0x1bc050[_0xbb77('0x35')]));if(!this[_0xbb77('0x86')](_0x1bc050['condition'])){return this[_0xbb77('0xe')]['error'](_0x1bc050,_0xbb77('0x142'));}try{var _0x20dba2=eval(_0x1bc050[_0xbb77('0x143')])?_0xbb77('0x144'):'false';this[_0xbb77('0xe')][_0xbb77('0xa9')](util[_0xbb77('0x51')](_0xbb77('0x145'),_0x1bc050[_0xbb77('0x143')],_0x20dba2));return{'code':0xc8,'result':_0x20dba2};}catch(_0x5b7fec){return{'code':0xc8,'result':'false'};}};AGIVertices['prototype']['gotoiftime']=function(_0x20eba3){logger['info'](util[_0xbb77('0x51')]('Enter\x20in\x20GOTOIFTIME\x20(%s)\x20block',_0x20eba3[_0xbb77('0x35')]));if(!this[_0xbb77('0x86')](_0x20eba3[_0xbb77('0x146')])){return this[_0xbb77('0xe')][_0xbb77('0x30')](_0x20eba3,_0xbb77('0x147'));}var _0x552c0f=this['getIntervals'][_0xbb77('0x71')](this,_0x20eba3[_0xbb77('0x146')]);if(!_0x552c0f){return this[_0xbb77('0xe')][_0xbb77('0x30')](_0x20eba3,_0xbb77('0x148'));}for(var _0x22eddb=0x0;_0x22eddb<_0x552c0f['length'];_0x22eddb+=0x1){var _0x4c3709=this[_0xbb77('0xe')]['getVariable'](util[_0xbb77('0x51')](_0xbb77('0x149'),_0x552c0f[_0x22eddb]));if(_0x4c3709[_0xbb77('0xa2')]===-0x1){return _0x4c3709;}logger[_0xbb77('0x2d')](util[_0xbb77('0x51')](_0xbb77('0x14a'),_0x552c0f[_0x22eddb],_0x4c3709[_0xbb77('0xa0')]));if(_0x4c3709[_0xbb77('0xa0')]===_0xbb77('0x144')){logger[_0xbb77('0x2d')](util[_0xbb77('0x51')](_0xbb77('0x14a'),_0x552c0f[_0x22eddb],_0xbb77('0x144')));this[_0xbb77('0xe')]['noop'](util[_0xbb77('0x51')](_0xbb77('0x14a'),_0x552c0f[_0x22eddb],_0xbb77('0x144')));return{'code':0xc8,'result':'true'};}else{logger[_0xbb77('0x2d')](util['format'](_0xbb77('0x14a'),_0x552c0f[_0x22eddb],_0xbb77('0x14b')));this[_0xbb77('0xe')][_0xbb77('0xa9')](util[_0xbb77('0x51')](_0xbb77('0x14a'),_0x552c0f[_0x22eddb],'false'));}}return{'code':0xc8,'result':_0xbb77('0x14b')};};AGIVertices['prototype'][_0xbb77('0x14c')]=function(_0x52801c){logger[_0xbb77('0x2d')](util['format'](_0xbb77('0x14d'),_0x52801c[_0xbb77('0x35')]));return this['channel'][_0xbb77('0x14c')]();};AGIVertices[_0xbb77('0x10')][_0xbb77('0x14e')]=function(_0x206196){logger[_0xbb77('0x2d')](util[_0xbb77('0x51')](_0xbb77('0x14f'),_0x206196['label']));if(!this[_0xbb77('0x86')](_0x206196[_0xbb77('0x7b')])){return this[_0xbb77('0xe')][_0xbb77('0xa9')]('no\x20key\x20configured');}var _0x419a91=_0xbb77('0x12d');var _0x1f1462=util[_0xbb77('0x51')](_0xbb77('0x12e'),FILES_PATH,rs[_0xbb77('0x119')](0x4));var _0x3395e0=util['format']('%s.%s',_0x1f1462,_0x419a91);var _0x13c3e9=!![];if(_0x206196[_0xbb77('0x12f')]===_0xbb77('0x130')){_0x13c3e9=![];}var _0x70a784=this[_0xbb77('0xe')][_0xbb77('0x131')](_0x1f1462,_0x419a91,_0x206196['intKey'],_0x206196[_0xbb77('0x65')],undefined,_0x13c3e9);if(_0x70a784[_0xbb77('0xa2')]!==-0x1){this[_0xbb77('0xe')][_0xbb77('0xa9')](util[_0xbb77('0x51')]('ispeech\x20%s\x20file\x20created',_0x3395e0));var _0x29ca8b=this[_0xbb77('0x85')][_0xbb77('0x71')](this,_0x206196,_0x3395e0);if(_0x29ca8b){for(var _0x480233 in _0x29ca8b){if(_0x29ca8b[_0xbb77('0x96')](_0x480233)){this['channel'][_0xbb77('0xa4')](util['format'](_0xbb77('0x150'),_0x480233[_0xbb77('0x6a')]()),_0x29ca8b[_0x480233]);}}return this['channel']['noop'](util[_0xbb77('0x51')](_0xbb77('0x151'),JSON[_0xbb77('0x74')](_0x29ca8b)));}}return _0x70a784;};AGIVertices[_0xbb77('0x10')][_0xbb77('0x152')]=function(_0x53bca0){logger[_0xbb77('0x2d')](util['format']('Enter\x20in\x20ISPEECHTTS\x20(%s)\x20block',_0x53bca0[_0xbb77('0x35')]));if(!this[_0xbb77('0x86')](_0x53bca0[_0xbb77('0x7b')])){return this['channel']['noop'](_0xbb77('0xeb'));}if(!this[_0xbb77('0x86')](_0x53bca0[_0xbb77('0x5a')])){return this[_0xbb77('0xe')][_0xbb77('0xa9')](_0xbb77('0xaa'));}this['channel'][_0xbb77('0xa9')](util[_0xbb77('0x51')]('Trying\x20ispeech\x20TTS\x20%s',_0x53bca0[_0xbb77('0x5a')]));var _0x2c0d31=this[_0xbb77('0x82')][_0xbb77('0x71')](this,_0x53bca0);if(_0x2c0d31){this[_0xbb77('0xe')]['noop'](util[_0xbb77('0x51')](_0xbb77('0x153'),_0x2c0d31));var _0x250727=this[_0xbb77('0xe')]['streamFile'](_0x2c0d31,_0x53bca0['intKey']);try{fs[_0xbb77('0x102')](_0x2c0d31+_0xbb77('0x103'));}catch(_0x216bc7){logger['error'](_0x216bc7);}return _0x250727;}return this[_0xbb77('0xe')][_0xbb77('0x30')](_0x53bca0,'ispeech\x20TTS\x20is\x20unreachable');};AGIVertices['prototype'][_0xbb77('0x154')]=function(_0x51fdeb){logger[_0xbb77('0x2d')](util[_0xbb77('0x51')](_0xbb77('0x155'),_0x51fdeb[_0xbb77('0x35')]));if(!this[_0xbb77('0x86')](_0x51fdeb[_0xbb77('0x156')])){return this['channel'][_0xbb77('0x30')](_0x51fdeb,_0xbb77('0x157'));}logger[_0xbb77('0x2d')](util[_0xbb77('0x51')](_0xbb77('0x158'),this['channel']['callerid'],_0x51fdeb['findBy']));var _0x148775=this['agentLogin']['sync'](this,_0x51fdeb[_0xbb77('0x156')]);if(_0x148775){logger[_0xbb77('0x2d')](util[_0xbb77('0x51')](_0xbb77('0x159'),this[_0xbb77('0xe')][_0xbb77('0x38')],_0x51fdeb['findBy']));this[_0xbb77('0xe')]['noop'](util[_0xbb77('0x51')]('AGENT\x20%s\x20FOUND\x20BY',this[_0xbb77('0xe')][_0xbb77('0x38')],_0x51fdeb['findBy']));return{'code':0xc8,'result':_0xbb77('0x15a')};}else{logger[_0xbb77('0x2d')](util[_0xbb77('0x51')](_0xbb77('0x15b'),this[_0xbb77('0xe')][_0xbb77('0x38')],_0x51fdeb[_0xbb77('0x156')]));this['channel'][_0xbb77('0xa9')](util['format'](_0xbb77('0x15b'),this[_0xbb77('0xe')][_0xbb77('0x38')],_0x51fdeb[_0xbb77('0x156')]));return{'code':0xc8,'result':_0xbb77('0x15c')};}};AGIVertices[_0xbb77('0x10')][_0xbb77('0x15d')]=function(_0xabffe4){logger['info'](util[_0xbb77('0x51')](_0xbb77('0x15e'),_0xabffe4[_0xbb77('0x35')]));if(!this['isConfigured'](_0xabffe4[_0xbb77('0x156')])){return this[_0xbb77('0xe')][_0xbb77('0x30')](_0xabffe4,_0xbb77('0x157'));}logger[_0xbb77('0x2d')](util['format'](_0xbb77('0x158'),this['channel']['callerid'],_0xabffe4[_0xbb77('0x156')]));var _0x35e5cf=this['agentLogout'][_0xbb77('0x71')](this,_0xabffe4[_0xbb77('0x156')]);if(_0x35e5cf){logger[_0xbb77('0x2d')](util[_0xbb77('0x51')]('AGENT\x20%s\x20FOUND\x20BY',this[_0xbb77('0xe')][_0xbb77('0x38')],_0xabffe4[_0xbb77('0x156')]));this[_0xbb77('0xe')][_0xbb77('0xa9')](util[_0xbb77('0x51')](_0xbb77('0x159'),this[_0xbb77('0xe')][_0xbb77('0x38')],_0xabffe4[_0xbb77('0x156')]));return{'code':0xc8,'result':_0xbb77('0x15a')};}else{logger['info'](util['format'](_0xbb77('0x15b'),this[_0xbb77('0xe')][_0xbb77('0x38')],_0xabffe4[_0xbb77('0x156')]));this[_0xbb77('0xe')]['noop'](util[_0xbb77('0x51')](_0xbb77('0x15b'),this[_0xbb77('0xe')][_0xbb77('0x38')],_0xabffe4[_0xbb77('0x156')]));return{'code':0xc8,'result':_0xbb77('0x15c')};}};AGIVertices['prototype'][_0xbb77('0x15f')]=function(_0x408c94){logger['info'](util[_0xbb77('0x51')](_0xbb77('0x160'),_0x408c94[_0xbb77('0x35')]));if(!this[_0xbb77('0x86')](_0x408c94['operation'])){return this[_0xbb77('0xe')][_0xbb77('0x30')](_0x408c94,_0xbb77('0x161'));}this[_0xbb77('0xe')][_0xbb77('0xa9')](util[_0xbb77('0x51')](_0xbb77('0x162'),_0x408c94['operation']));var _0x2dd748=eval(_0x408c94[_0xbb77('0x163')]);if(!this[_0xbb77('0x86')](_0x408c94['variable_id'])){return this[_0xbb77('0xe')][_0xbb77('0xa9')](_0xbb77('0xd9'));}var _0x3eed9d=this[_0xbb77('0x11')][_0xbb77('0x71')](this,_0x408c94[_0xbb77('0xd8')]);if(!_0x3eed9d){return this[_0xbb77('0xe')][_0xbb77('0x30')](_0x408c94,_0xbb77('0xda'));}if(_[_0xbb77('0x9b')](_0x2dd748)){var _0x1b7ba7=this;_0x2dd748[_0xbb77('0xdb')](function(_0x1509c9,_0xef2005){_0x1b7ba7[_0xbb77('0xe')][_0xbb77('0xa4')](util[_0xbb77('0x51')](_0xbb77('0x164'),_0x3eed9d,_0xef2005),_0x1509c9);});return this[_0xbb77('0xe')][_0xbb77('0xa9')](util['format']('variable\x20%s[key]\x20set',_0x3eed9d));}else{return this[_0xbb77('0xe')][_0xbb77('0xa4')](_0x3eed9d,_0x2dd748);}};AGIVertices[_0xbb77('0x10')][_0xbb77('0xb')]=function(_0x4cd1eb){logger['info'](util[_0xbb77('0x51')]('Enter\x20in\x20MENU\x20(%s)\x20block',_0x4cd1eb[_0xbb77('0x35')]));if(_0x4cd1eb[_0xbb77('0xa6')]===0x0){return this[_0xbb77('0xa5')](_0x4cd1eb);}_0x4cd1eb['retry']-=0x1;if(!this[_0xbb77('0x86')](_0x4cd1eb[_0xbb77('0x112')])){return this[_0xbb77('0xe')][_0xbb77('0x30')](_0x4cd1eb,_0xbb77('0x165'));}var _0x14b6bf=this[_0xbb77('0x1e')]['sync'](this,_0x4cd1eb[_0xbb77('0x112')]);if(!_0x14b6bf){return this[_0xbb77('0xe')][_0xbb77('0x30')](_0x4cd1eb,_0xbb77('0x166'));}var _0x1a7404=this['channel'][_0xbb77('0x113')](_0x14b6bf,_0x4cd1eb[_0xbb77('0x114')],_0x4cd1eb['digit']);var _0x134cf8=_0x1a7404[_0xbb77('0xa2')];if(_0x1a7404[_0xbb77('0xa2')]===-0x1){this['createSquareDetailsReport'][_0xbb77('0x71')](this,_0x4cd1eb,'-1');return _0x1a7404;}else if(_0x1a7404[_0xbb77('0xa0')]==='timeout'){_0x1a7404[_0xbb77('0xa2')]=_0x1a7404[_0xbb77('0xa2')][_0xbb77('0x9e')]>0x0?_0x1a7404[_0xbb77('0xa2')]:'t';}else if(_[_0xbb77('0x41')](_0x1a7404[_0xbb77('0xa2')])){_0x1a7404[_0xbb77('0xa2')]='#';_0x134cf8='#';}if(!this[_0xbb77('0x86')](_0x4cd1eb[_0xbb77('0xd8')])){this[_0xbb77('0xe')]['noop']('no\x20variable\x20selected\x20for\x20the\x20result');}else{var _0x32d3ca=this[_0xbb77('0x11')][_0xbb77('0x71')](this,_0x4cd1eb[_0xbb77('0xd8')]);if(!_0x32d3ca){return this[_0xbb77('0xe')][_0xbb77('0x30')](_0x4cd1eb,_0xbb77('0xda'));}this[_0xbb77('0xe')][_0xbb77('0xa4')](_0x32d3ca,_0x134cf8);}this['createSquareDetailsReport']['sync'](this,_0x4cd1eb,_0x134cf8);return _0x1a7404;};AGIVertices['prototype'][_0xbb77('0xa9')]=function(_0x5020d6){logger[_0xbb77('0x2d')](util['format'](_0xbb77('0x167'),_0x5020d6[_0xbb77('0x35')]));return this[_0xbb77('0xe')][_0xbb77('0xa9')](_0x5020d6[_0xbb77('0x168')]||_0x5020d6[_0xbb77('0x35')]);};AGIVertices[_0xbb77('0x10')][_0xbb77('0x169')]=function(_0x4e31d9){logger[_0xbb77('0x2d')](util['format'](_0xbb77('0x16a'),_0x4e31d9[_0xbb77('0x35')]));if(!this['isConfigured'](_0x4e31d9[_0xbb77('0x156')])){return this[_0xbb77('0xe')]['error'](_0x4e31d9,_0xbb77('0x157'));}logger['info'](util['format'](_0xbb77('0x158'),this[_0xbb77('0xe')]['callerid'],_0x4e31d9[_0xbb77('0x156')]));var _0x5a1df0=this[_0xbb77('0x16b')]['sync'](this,_0x4e31d9['pause_id']);var _0x411b8b=this['agentPause'][_0xbb77('0x71')](this,_0x4e31d9[_0xbb77('0x156')],_0x5a1df0);if(_0x411b8b){logger[_0xbb77('0x2d')](util[_0xbb77('0x51')]('AGENT\x20%s\x20FOUND\x20BY',this[_0xbb77('0xe')]['callerid'],_0x4e31d9[_0xbb77('0x156')]));this[_0xbb77('0xe')][_0xbb77('0xa9')](util[_0xbb77('0x51')](_0xbb77('0x159'),this['channel']['callerid'],_0x4e31d9[_0xbb77('0x156')]));return{'code':0xc8,'result':_0xbb77('0x15a')};}else{logger[_0xbb77('0x2d')](util[_0xbb77('0x51')](_0xbb77('0x15b'),this['channel'][_0xbb77('0x38')],_0x4e31d9[_0xbb77('0x156')]));this[_0xbb77('0xe')]['noop'](util[_0xbb77('0x51')](_0xbb77('0x159'),this['channel'][_0xbb77('0x38')],_0x4e31d9[_0xbb77('0x156')]));return{'code':0xc8,'result':'failure'};}};AGIVertices[_0xbb77('0x10')]['playback']=function(_0x189114){logger[_0xbb77('0x2d')](util[_0xbb77('0x51')](_0xbb77('0x16c'),_0x189114[_0xbb77('0x35')]));if(!this[_0xbb77('0x86')](_0x189114['file_id'])){return this[_0xbb77('0xe')][_0xbb77('0x30')](_0x189114,_0xbb77('0x165'));}var _0x431967=this['getSound'][_0xbb77('0x71')](this,_0x189114[_0xbb77('0x112')]);if(!_0x431967){return this['channel'][_0xbb77('0x30')](_0x189114,'no\x20file\x20audio\x20found');}var _0x96eb96=this[_0xbb77('0xe')]['exec'](_0xbb77('0x16d'),[_0x431967,_0x189114[_0xbb77('0xe8')]]);if(_0x96eb96[_0xbb77('0xa2')]===-0x1){return _0x96eb96;}return this[_0xbb77('0xe')][_0xbb77('0xa9')](util[_0xbb77('0x51')]('Executed\x20command\x20%s\x20%s','PLAYBACK',_0x431967));};AGIVertices[_0xbb77('0x10')][_0xbb77('0x16e')]=function(_0x50877e){logger[_0xbb77('0x2d')](util[_0xbb77('0x51')](_0xbb77('0x16f'),_0x50877e[_0xbb77('0x35')]));if(!this[_0xbb77('0x86')](_0x50877e[_0xbb77('0x170')])){return this['channel'][_0xbb77('0x30')](_0x50877e,_0xbb77('0x171'));}var _0x21b22b='';var _0x4fcdd3=parseInt(_0x50877e[_0xbb77('0x170')],0xa);if(isNaN(_0x4fcdd3)){_0x21b22b=_0x50877e['queue_id'];}else{_0x21b22b=this[_0xbb77('0x14')]['sync'](this,_0x50877e[_0xbb77('0x170')]);if(!_0x21b22b){return this['channel']['error'](_0x50877e,_0xbb77('0x172'));}}var _0x229edd='';if(this[_0xbb77('0x86')](_0x50877e[_0xbb77('0x112')])){var _0x3a28ad=this[_0xbb77('0x1e')][_0xbb77('0x71')](this,_0x50877e[_0xbb77('0x112')]);if(_0x3a28ad){_0x229edd=_0x3a28ad;}}this[_0xbb77('0x33')][_0xbb77('0x71')](this,_0x50877e,_0x21b22b);if(_0x50877e[_0xbb77('0xe8')][_0xbb77('0x173')]('x')<0x0){_0x50877e[_0xbb77('0xe8')]+='x';}if(_0x50877e[_0xbb77('0xe8')][_0xbb77('0x173')]('X')<0x0){_0x50877e[_0xbb77('0xe8')]+='X';}this[_0xbb77('0xe')][_0xbb77('0xa4')](_0xbb77('0x174'),_0x21b22b?_0x21b22b[_0xbb77('0x175')]():'');var _0x9fc422=this[_0xbb77('0xe')]['exec'](_0xbb77('0x176'),[_0x21b22b,_0x50877e['opts'],_0x50877e[_0xbb77('0x63')],_0x229edd,_0x50877e['timeout'],_0x50877e[_0xbb77('0xb8')],_0x50877e[_0xbb77('0x177')],_0x50877e[_0xbb77('0x178')],'',_0x50877e[_0xbb77('0x179')]]);if(_0x9fc422[_0xbb77('0xa2')]===-0x1){return _0x9fc422;}return this['channel']['noop'](util[_0xbb77('0x51')](_0xbb77('0x17a'),_0xbb77('0x176'),_0x21b22b));};AGIVertices['prototype'][_0xbb77('0x17b')]=function(_0x46e4f4){logger['info'](util[_0xbb77('0x51')](_0xbb77('0x17c'),_0x46e4f4[_0xbb77('0x35')]));var _0x5eeadc=_0x46e4f4[_0xbb77('0x17d')]||_0xbb77('0x12d');var _0x57ad40=util[_0xbb77('0x51')](_0xbb77('0x17e'),this[_0xbb77('0xe')]['uniqueid'],rs[_0xbb77('0x119')](0x5));var _0x255e86=util[_0xbb77('0x51')](_0xbb77('0x17f'),FILES_PATH,_0x57ad40,_0x5eeadc);var _0x14bf3e=util['format'](_0xbb77('0x12e'),FILES_PATH,_0x57ad40);this[_0xbb77('0x39')]['sync'](this,_0x46e4f4,_0x57ad40,_0x255e86);this['channel'][_0xbb77('0xa4')](_0xbb77('0x180'),_0x57ad40);logger[_0xbb77('0x2d')]('Recording\x20%s\x20%s\x20%s\x20%s',_0x14bf3e,_0x5eeadc,_0x46e4f4[_0xbb77('0x181')],_0x46e4f4['timeout']);return this[_0xbb77('0xe')][_0xbb77('0x131')](_0x14bf3e,_0x5eeadc,_0x46e4f4[_0xbb77('0x181')],_0x46e4f4[_0xbb77('0x65')],undefined,!![]);};AGIVertices['prototype'][_0xbb77('0x182')]=function(_0x3f257b){logger['info'](util[_0xbb77('0x51')](_0xbb77('0x183'),_0x3f257b[_0xbb77('0x35')]));if(!this[_0xbb77('0x86')](_0x3f257b['url'])){return this['channel'][_0xbb77('0xa9')](_0xbb77('0x184'));}var _0x2b50b1=this[_0xbb77('0x185')][_0xbb77('0x71')](this,_0x3f257b);logger[_0xbb77('0x2d')](util[_0xbb77('0x51')]('Response:',util['inspect'](_0x2b50b1,{'showHidden':![],'depth':null})));if(!this[_0xbb77('0x86')](_0x3f257b[_0xbb77('0xd8')])){return this[_0xbb77('0xe')][_0xbb77('0xa9')](_0xbb77('0x186'));}var _0x449b6d=this[_0xbb77('0x11')]['sync'](this,_0x3f257b[_0xbb77('0xd8')]);if(!_0x449b6d){return this['channel'][_0xbb77('0x30')](_0x3f257b,_0xbb77('0xda'));}this['channel']['setVariable'](util['format'](_0xbb77('0x187'),_0x449b6d),_0x2b50b1[_0xbb77('0x76')]?_0x2b50b1[_0xbb77('0x76')]:'200');this[_0xbb77('0xe')]['setVariable'](util[_0xbb77('0x51')](_0xbb77('0x188'),_0x449b6d),_0x2b50b1[_0xbb77('0x189')]?_0x2b50b1['statusMessage']:'OK');if(_0x2b50b1['body']){try{this[_0xbb77('0x9c')](_0x2b50b1[_0xbb77('0x6b')],_0x449b6d);}catch(_0x54ced3){logger[_0xbb77('0x30')](util[_0xbb77('0x51')](_0xbb77('0x18a'),_0x449b6d));}}return this[_0xbb77('0xe')][_0xbb77('0xa9')](util['format'](_0xbb77('0xdf'),_0x449b6d));};AGIVertices[_0xbb77('0x10')][_0xbb77('0x18b')]=function(_0x360e1a){logger[_0xbb77('0x2d')](util[_0xbb77('0x51')](_0xbb77('0x18c'),_0x360e1a[_0xbb77('0x35')]));return this['channel'][_0xbb77('0x18d')](_0x360e1a[_0xbb77('0x18e')][_0xbb77('0x56')](/\s+/g,''),_0x360e1a[_0xbb77('0x181')]);};AGIVertices[_0xbb77('0x10')][_0xbb77('0x18f')]=function(_0x1266e2){logger[_0xbb77('0x2d')](util[_0xbb77('0x51')](_0xbb77('0x190'),_0x1266e2[_0xbb77('0x35')]));return this['channel'][_0xbb77('0x191')](_0x1266e2[_0xbb77('0x66')][_0xbb77('0x56')](/\s+/g,''),_0x1266e2[_0xbb77('0x181')]);};AGIVertices[_0xbb77('0x10')][_0xbb77('0x192')]=function(_0x42222){logger['info'](util['format'](_0xbb77('0x193'),_0x42222['label']));return this[_0xbb77('0xe')][_0xbb77('0x194')](_0x42222[_0xbb77('0x5a')],_0x42222[_0xbb77('0x181')]);};AGIVertices[_0xbb77('0x10')]['sendMail']=function(_0x58f0ec){logger['info'](util[_0xbb77('0x51')](_0xbb77('0x195'),_0x58f0ec[_0xbb77('0x35')]));if(!this['isConfigured'](_0x58f0ec[_0xbb77('0x196')])){return this[_0xbb77('0xe')][_0xbb77('0xa9')]('no\x20mail\x20account\x20configured');}var _0x2738ef=this[_0xbb77('0x22')][_0xbb77('0x71')](this,_0x58f0ec[_0xbb77('0x196')]);if(!_0x2738ef||!_0x2738ef[_0xbb77('0x197')]){return this[_0xbb77('0xe')]['error'](_0x58f0ec,_0xbb77('0x198'));}var _0xec5b7f={'from':util[_0xbb77('0x51')](_0xbb77('0x199'),_0x2738ef[_0xbb77('0x13')],_0x2738ef['email']||_0x2738ef[_0xbb77('0x197')][_0xbb77('0x19a')]),'to':_0x58f0ec['to']||'','cc':_0x58f0ec['cc']||'','bcc':_0x58f0ec[_0xbb77('0x19b')]||'','subject':_0x58f0ec[_0xbb77('0x19c')],'html':_0x58f0ec[_0xbb77('0x5a')],'text':_0x58f0ec['text']};var _0x5bed4a={'tls':{'rejectUnauthorized':![]}};if(_0x2738ef[_0xbb77('0x197')][_0xbb77('0x19d')]){_0x5bed4a[_0xbb77('0x19d')]=_0x2738ef[_0xbb77('0x197')][_0xbb77('0x19d')];}else{_0x5bed4a[_0xbb77('0x19e')]=_0x2738ef[_0xbb77('0x197')][_0xbb77('0x19e')];_0x5bed4a['port']=_0x2738ef[_0xbb77('0x197')][_0xbb77('0x19f')];_0x5bed4a[_0xbb77('0x1a0')]=_0x2738ef[_0xbb77('0x197')]['secure'];}if(_0x2738ef[_0xbb77('0x197')][_0xbb77('0x1a1')]){_0x5bed4a['auth']={'user':_0x2738ef[_0xbb77('0x197')][_0xbb77('0x19a')],'pass':_0x2738ef[_0xbb77('0x197')][_0xbb77('0x1a2')]};}if(this[_0xbb77('0x86')](_0x58f0ec['template_id'])){}logger[_0xbb77('0xe1')](_0xbb77('0x1a3'),JSON['stringify'](_0xec5b7f));this[_0xbb77('0x33')][_0xbb77('0x71')](this,_0x58f0ec,_0x58f0ec[_0xbb77('0x196')]);this[_0xbb77('0xe')][_0xbb77('0xa9')](util[_0xbb77('0x51')](_0xbb77('0x1a4'),_0x2738ef[_0xbb77('0x13')]));this[_0xbb77('0x24')][_0xbb77('0x71')](this,_0x5bed4a,_0xec5b7f);return this['channel'][_0xbb77('0xa9')](_0xbb77('0x1a5'));};AGIVertices[_0xbb77('0x10')]['sendFax']=function(_0x344fe7){logger[_0xbb77('0x2d')](util[_0xbb77('0x51')](_0xbb77('0x1a6'),_0x344fe7[_0xbb77('0x35')]));return this['channel'][_0xbb77('0xa9')]('SENDFAX\x20block\x20not\x20implemented');};AGIVertices[_0xbb77('0x10')][_0xbb77('0x1a7')]=function(_0x85e124){logger['info'](util[_0xbb77('0x51')]('Enter\x20in\x20SENDSMS\x20(%s)\x20block',_0x85e124['label']));if(!this['isConfigured'](_0x85e124['sms_account_id'])){return this[_0xbb77('0xe')][_0xbb77('0xa9')]('no\x20sms\x20account\x20configured');}var _0x10af10=this['getSmsAccount'][_0xbb77('0x71')](this,_0x85e124[_0xbb77('0x1a8')]);if(!_0x10af10){return this[_0xbb77('0xe')]['error'](_0x85e124,'no\x20sms\x20account\x20found');}var _0x4fc7f0={'body':_0x85e124[_0xbb77('0x1a9')],'phone':_0x85e124['to']||'','SmsAccountId':_0x10af10['id']};logger['debug'](_0xbb77('0x1aa'),JSON[_0xbb77('0x74')](_0x4fc7f0));this[_0xbb77('0x33')][_0xbb77('0x71')](this,_0x85e124,_0x85e124[_0xbb77('0x1a8')]);this[_0xbb77('0xe')][_0xbb77('0xa9')](util[_0xbb77('0x51')]('Trying\x20SendSMS\x20with\x20account\x20%s',_0x10af10[_0xbb77('0x13')]));this[_0xbb77('0x32')][_0xbb77('0x71')](this,_0x4fc7f0);return this[_0xbb77('0xe')][_0xbb77('0xa9')]('Sms\x20message\x20added\x20to\x20outgoing\x20process');};AGIVertices[_0xbb77('0x10')][_0xbb77('0x1ab')]=function(_0x1afbf6){logger['info'](util[_0xbb77('0x51')]('Enter\x20in\x20SET\x20(%s)\x20block',_0x1afbf6['label']));if(!this[_0xbb77('0x86')](_0x1afbf6[_0xbb77('0xd8')])){return this[_0xbb77('0xe')][_0xbb77('0x30')](_0x1afbf6,_0xbb77('0x1ac'));}var _0x4e338c=this[_0xbb77('0x11')][_0xbb77('0x71')](this,_0x1afbf6[_0xbb77('0xd8')]);if(!_0x4e338c){return this[_0xbb77('0xe')][_0xbb77('0x30')](_0x1afbf6,_0xbb77('0xda'));}return this['channel'][_0xbb77('0xa4')](_0x4e338c,_0x1afbf6['variable_value']);};AGIVertices[_0xbb77('0x10')][_0xbb77('0x1ad')]=function(_0x5a5eca){logger[_0xbb77('0x2d')](util[_0xbb77('0x51')](_0xbb77('0x1ae'),_0x5a5eca['label']));this[_0xbb77('0xe')]['noop'](_0xbb77('0x1af'));if(_0x5a5eca[_0xbb77('0xbc')]===_0xbb77('0x1b0')){this[_0xbb77('0xe')][_0xbb77('0xa9')](_0xbb77('0x1b1'));return this['channel'][_0xbb77('0xbc')]();}return this['channel'][_0xbb77('0xa9')]('Skipped\x20Answer');};AGIVertices['prototype'][_0xbb77('0x1b2')]=function(_0x3eda66){logger[_0xbb77('0x2d')](util['format'](_0xbb77('0x1b3'),_0x3eda66[_0xbb77('0x35')]));if(!this[_0xbb77('0x86')](_0x3eda66['project_id'])){return this[_0xbb77('0xe')][_0xbb77('0x30')](_0x3eda66,'no\x20subproject\x20selected');}var _0x3e7c45=this['getSquareProject'][_0xbb77('0x71')](this,_0x3eda66[_0xbb77('0x1b4')]);if(!this[_0xbb77('0x86')](_0x3e7c45)){return this['channel']['error'](_0x3eda66,util[_0xbb77('0x51')](_0xbb77('0x1b5'),_0x3eda66['project_id']));}if(_0x3e7c45===this[_0xbb77('0xe')][_0xbb77('0x37')]){return this[_0xbb77('0xe')][_0xbb77('0x30')](_0x3eda66,_0xbb77('0x1b6'));}this[_0xbb77('0x33')]['sync'](this,_0x3eda66,_0x3e7c45);var _0x194896=this[_0xbb77('0xe')]['exec'](_0xbb77('0x1b7'),util['format']('agi://%s/square,\x22%s\x22,\x22%s\x22',config[_0xbb77('0xb8')]['host']||_0xbb77('0x1b8'),_0x3e7c45,this[_0xbb77('0xe')][_0xbb77('0x37')]));if(_0x194896['result']===-0x1){return _0x194896;}return this[_0xbb77('0xe')][_0xbb77('0xa9')](util[_0xbb77('0x51')](_0xbb77('0x17a'),_0xbb77('0x1b7'),_0x3e7c45));};AGIVertices[_0xbb77('0x10')]['system']=function(_0x17569e){logger['info'](util[_0xbb77('0x51')](_0xbb77('0x1b9'),_0x17569e[_0xbb77('0x35')]));var _0x279c02=this[_0xbb77('0x53')][_0xbb77('0x71')](this,_0x17569e[_0xbb77('0xba')]);this[_0xbb77('0x33')][_0xbb77('0x71')](this,_0x17569e,_0x17569e[_0xbb77('0xba')]);if(this['isConfigured'](_0x17569e[_0xbb77('0xd8')])){var _0x324fc5=this[_0xbb77('0x11')][_0xbb77('0x71')](this,_0x17569e[_0xbb77('0xd8')]);if(_0x324fc5){this[_0xbb77('0xe')][_0xbb77('0xa4')](_0x324fc5,_0x279c02);return this[_0xbb77('0xe')][_0xbb77('0xa9')](util[_0xbb77('0x51')]('sh\x20command:\x20%s\x20result\x20on\x20variable:\x20%s',_0x17569e[_0xbb77('0xba')],_0x324fc5));}}return this[_0xbb77('0xe')][_0xbb77('0xa9')](util['format'](_0xbb77('0x1ba'),_0x17569e[_0xbb77('0xba')]));};AGIVertices[_0xbb77('0x10')][_0xbb77('0x1bb')]=function(_0x19cda4){logger[_0xbb77('0x2d')](util[_0xbb77('0x51')]('Enter\x20in\x20Google\x20Cloud\x20TTS\x20(%s)\x20block',_0x19cda4['label']));_0x19cda4[_0xbb77('0x5a')]=_0x19cda4[_0xbb77('0x5a')][_0xbb77('0x56')](/(\r\n|\n|\r)/gm,'\x20');if(!this['isConfigured'](_0x19cda4[_0xbb77('0x58')])){return this[_0xbb77('0xe')]['noop'](_0xbb77('0x1bc'));}if(!this[_0xbb77('0x86')](_0x19cda4[_0xbb77('0x5a')])){return this['channel']['noop'](_0xbb77('0xaa'));}this[_0xbb77('0xe')][_0xbb77('0xa9')](util[_0xbb77('0x51')](_0xbb77('0x1bd'),_0x19cda4[_0xbb77('0x5a')]));var _0x3a70c1=this['googleCloudTTS']['sync'](this,_0x19cda4);if(_0x3a70c1){this['channel'][_0xbb77('0xa9')](util['format'](_0xbb77('0x1be'),_0x3a70c1));var _0x9793a4=this[_0xbb77('0xe')][_0xbb77('0x101')](_0x3a70c1);try{fs[_0xbb77('0x102')](_0x3a70c1+_0xbb77('0x103'));}catch(_0x1f4563){logger[_0xbb77('0x30')](_0x1f4563);}return _0x9793a4;}return this[_0xbb77('0xe')][_0xbb77('0x30')](_0x19cda4,_0xbb77('0x1bf'));};AGIVertices[_0xbb77('0x10')][_0xbb77('0x1c0')]=function(_0x2655bd){logger[_0xbb77('0x2d')](util[_0xbb77('0x51')](_0xbb77('0x1c1'),_0x2655bd['label']));_0x2655bd[_0xbb77('0x5a')]=_0x2655bd[_0xbb77('0x5a')][_0xbb77('0x56')](/(\r\n|\n|\r)/gm,'\x20');if(!this[_0xbb77('0x86')](_0x2655bd['text'])){return this[_0xbb77('0xe')][_0xbb77('0xa9')]('no\x20text\x20configured');}this[_0xbb77('0xe')]['noop'](util[_0xbb77('0x51')](_0xbb77('0x1c2'),_0x2655bd['text']));var _0x52ea4d=this[_0xbb77('0x61')][_0xbb77('0x71')](this,_0x2655bd);if(_0x52ea4d){this[_0xbb77('0xe')][_0xbb77('0xa9')](util[_0xbb77('0x51')](_0xbb77('0x1c3'),_0x52ea4d));var _0x20658c=this[_0xbb77('0xe')][_0xbb77('0x101')](_0x52ea4d);try{fs[_0xbb77('0x102')](_0x52ea4d+_0xbb77('0x103'));}catch(_0x534e12){logger[_0xbb77('0x30')](_0x534e12);}return _0x20658c;}return this['channel']['error'](_0x2655bd,_0xbb77('0x1c4'));};AGIVertices[_0xbb77('0x10')][_0xbb77('0x1c5')]=function(_0xb79ffd){logger[_0xbb77('0x2d')](util['format'](_0xbb77('0x1c6'),_0xb79ffd[_0xbb77('0x35')]));if(!this[_0xbb77('0x86')](_0xb79ffd[_0xbb77('0x156')])){return this['channel'][_0xbb77('0x30')](_0xb79ffd,_0xbb77('0x157'));}logger[_0xbb77('0x2d')](util['format'](_0xbb77('0x158'),this[_0xbb77('0xe')]['callerid'],_0xb79ffd[_0xbb77('0x156')]));var _0x5f4376=this['agentUnpause'][_0xbb77('0x71')](this,_0xb79ffd[_0xbb77('0x156')]);if(_0x5f4376){logger['info'](util[_0xbb77('0x51')](_0xbb77('0x159'),this['channel']['callerid'],_0xb79ffd[_0xbb77('0x156')]));this['channel']['noop'](util['format'](_0xbb77('0x159'),this[_0xbb77('0xe')][_0xbb77('0x38')],_0xb79ffd[_0xbb77('0x156')]));return{'code':0xc8,'result':_0xbb77('0x15a')};}else{logger[_0xbb77('0x2d')](util['format'](_0xbb77('0x15b'),this[_0xbb77('0xe')][_0xbb77('0x38')],_0xb79ffd[_0xbb77('0x156')]));this[_0xbb77('0xe')]['noop'](util[_0xbb77('0x51')](_0xbb77('0x15b'),this[_0xbb77('0xe')][_0xbb77('0x38')],_0xb79ffd['findBy']));return{'code':0xc8,'result':_0xbb77('0x15c')};}};AGIVertices['prototype'][_0xbb77('0x1c7')]=function(_0x4a7d29){logger[_0xbb77('0x2d')](util[_0xbb77('0x51')]('Enter\x20in\x20VOICEMAIL\x20(%s)\x20block',_0x4a7d29[_0xbb77('0x35')]));var _0x39f4b0=this['channel'][_0xbb77('0x54')]('VOICEMAIL',[_0x4a7d29[_0xbb77('0x1c8')],_0x4a7d29[_0xbb77('0x79')]]);if(_0x39f4b0[_0xbb77('0xa2')]===-0x1){return _0x39f4b0;}return this[_0xbb77('0xe')]['noop'](util[_0xbb77('0x51')]('Executed\x20command\x20%s\x20%s',_0xbb77('0x1c9'),_0x4a7d29['mailbox']));};AGIVertices['prototype'][_0xbb77('0x1ca')]=function(_0x1a3890){logger[_0xbb77('0x2d')](util['format']('Enter\x20in\x20SWITCH\x20(%s)\x20block',_0x1a3890['label']));if(!this[_0xbb77('0x86')](_0x1a3890[_0xbb77('0xd8')])){return this[_0xbb77('0xe')][_0xbb77('0x30')](_0x1a3890,'no\x20variable\x20selected');}var _0x349b01=this[_0xbb77('0x11')][_0xbb77('0x71')](this,_0x1a3890[_0xbb77('0xd8')]);if(!_0x349b01){return this['channel'][_0xbb77('0x30')](_0x1a3890,_0xbb77('0xda'));}var _0x56ca2e=this[_0xbb77('0xe')][_0xbb77('0x11')](_0x349b01);return{'code':0xc8,'result':_0x56ca2e[_0xbb77('0xa0')]?_0x56ca2e[_0xbb77('0xa0')]:'-'};};String['prototype'][_0xbb77('0x1cb')]=function(_0x1d2122,_0x1a009b){return this['split'](_0x1d2122)[_0xbb77('0x1cc')](_0x1a009b);};module['exports']=AGIVertices;
\ No newline at end of file