Built motion from commit (unavailable).|2.5.4
[motion2.git] / server / services / agi / vertices.js
index dd46f03..f7beb68 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x91fa=['no\x20trunk\x20selected','trunk_name','url','finally','Enter\x20in\x20FINALLY\x20(%s)\x20block','Enter\x20in\x20GETDIGITS\x20(%s)\x20block','file_id','no\x20file\x20audio\x20selected','no\x20file\x20audio\x20found','getData','response','maxdigit','test','mindigit','hiddendigitsnum','generate','hiddendigitspos','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\x20bot\x20name\x20configured','Trying\x20Amazon\x20Lex:\x20%s','Amazon\x20Lex\x20ready\x20for\x20fulfillment','Amazon\x20Lex\x20Result\x20%s','Amazon\x20Lex\x20is\x20unreachable','googleasr','Enter\x20in\x20GOOGLEASR\x20(%s)\x20block\x20%s','%s/recordings/%s','beep','recordFile','GOOGLE_ASR_%s','GoogleASR\x20Result\x20%s','tildeasr','Enter\x20in\x20TILDEASR\x20(%s)\x20block','appid','no\x20appsecret\x20configured','wav','NOBEEP','TILDE_ASR_%s','TildeASR\x20Result\x20%s','gotoc','Enter\x20in\x20GOTO\x20(%s)\x20block','continueAt','gotoif','Enter\x20in\x20GOTOIF\x20(%s)\x20block','condition','no\x20condition\x20configured','true','false','EVAL\x20CONDITION\x20%s\x20%s','gotoiftime','Enter\x20in\x20GOTOIFTIME\x20(%s)\x20block','interval_id','no\x20interval\x20configured','IFTIME(%s?true:false)','IFTIME\x20%s\x20%s','hangup','Enter\x20in\x20ISPEECHASR\x20(%s)\x20block','no\x20key\x20configured','intKey','ispeech\x20%s\x20file\x20created','ISPEECH_ASR_%s','IspeechASR\x20Result\x20%s','ispeechtts','Enter\x20in\x20ISPEECHTTS\x20(%s)\x20block','Trying\x20ispeech\x20TTS\x20%s','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','operation','%s[%s]','variable\x20%s[key]\x20set','Enter\x20in\x20MENU\x20(%s)\x20block','digit','Enter\x20in\x20NOOP\x20(%s)\x20block','output','pause','Enter\x20in\x20PAUSE\x20(%s)\x20block','pause_id','playback','PLAYBACK','queue','Enter\x20in\x20QUEUE\x20(%s)\x20block','queue_id','indexOf','XMCS-QUEUE','QUEUE','macro','gosub','record','Enter\x20in\x20RECORD\x20(%s)\x20block','recordingFormat','Recording\x20%s\x20%s\x20%s\x20%s','escape_digits','Enter\x20in\x20RESTAPI\x20(%s)\x20block','inspect','no\x20variable\x20selected\x20for\x20the\x20response','%s_STATUS_CODE','200','Unable\x20to\x20set\x20result\x20in\x20variable\x20%s','saydigits','sayDigits','digits','saynumber','Enter\x20in\x20SAYNUMBER\x20(%s)\x20block','sayNumber','sayphonetic','Enter\x20in\x20SAYPHONETIC\x20(%s)\x20block','sayPhonetic','sendMail','account_id','no\x20mail\x20account\x20configured','getMailAccount','no\x20mail\x20account\x20found','\x22%s\x22\x20<%s>','email','Smtp','user','bcc','subject','service','host','port','secure','authentication','pass','sendMail\x20message','Mail\x20message\x20added\x20to\x20outgoing\x20process','sendFax','Enter\x20in\x20SENDFAX\x20(%s)\x20block','SENDFAX\x20block\x20not\x20implemented','Enter\x20in\x20SENDSMS\x20(%s)\x20block','sms_account_id','no\x20sms\x20account\x20found','sms_text','Trying\x20SendSMS\x20with\x20account\x20%s','Sms\x20message\x20added\x20to\x20outgoing\x20process','set','Enter\x20in\x20SET\x20(%s)\x20block','variable_value','start','Enter\x20in\x20START\x20(%s)\x20block','START\x20CALLY\x20SQUARE','yes','Answer','subproject','Enter\x20in\x20SUBPROJECT\x20(%s)\x20block','project_id','no\x20subproject\x20selected','no\x20subproject\x20found\x20with\x20id\x20%d','AGI','agi://%s/square,\x22%s\x22,\x22%s\x22','127.0.0.1','system','Enter\x20in\x20SYSTEM\x20(%s)\x20block','sh\x20command:\x20%s\x20result\x20on\x20variable:\x20%s','sh\x20command:\x20%s\x20result\x20no\x20stored','google_cloud_tts','apiKey','no\x20apiKey\x20configured','Trying\x20Google\x20Cloud\x20TTS\x20%s','Google\x20Cloud\x20TTS\x20%s\x20file\x20created','Google\x20Cloud\x20TTS\x20is\x20unreachable','Trying\x20Google\x20TTS\x20%s','Google\x20TTS\x20is\x20unreachable','unpause','Enter\x20in\x20UNPAUSE\x20(%s)\x20block','voicemail','Enter\x20in\x20VOICEMAIL\x20(%s)\x20block','mailbox','VOICEMAIL','vswitch','Enter\x20in\x20SWITCH\x20(%s)\x20block','no\x20variable\x20selected','join','exports','path','lodash','shelljs','randomstring','moment','request-promise','../../config/logger','agi','../../config/environment','../../config/environment/shared','./scripts','/var/opt/motion2/server/files','rawHeaders','rawBody','getdigits','getsecretdigits','rpc','prototype','getVariable','getVariableById','getVoiceQueue','getVoiceQueueById','name','catch','getSquareProject','getSquareProjectById','then','getSquareOdbc','getSquareOdbcById','dsn','getUser','getTrunk','getTrunkById','getSound','getSoundById','save_name','sendMailMessage','mailRpc','getIntervals','getIntervalById','IntervalId','Intervals','format','%s/sounds/converted/%s','getQueryOdbc','open','error','Error\x20getting\x20ODBC\x20connection\x20%s','info','query','Error\x20executing\x20query\x20%s','close','Error\x20closing\x20connection\x20to\x20odbc\x20%s','getSmsAccount','createSmsMessage','createSquareDetailsReport','channel','agicommand','arg_1','callerid','createSquareRecording','calleridname','context','extension','priority','dnid','file','createSquareMessage','createCmContact','log','in\x20createcmcontact','isEmpty','isNil','callback_','random','lastName','list_id','uniqueid','callback','Callback\x20scheduled\x20at\x20','scheduledAt','toString','callback_priority','has','dialTimezone','VALUE\x20TZ','CALLERID(dialTimezone)','getContactByPhone','phone','RES1','dialtimezone','timezones','scheduledat\x20before','add','minutes','scheduledat\x20after','insertContact','utcOffset','getPause','getPauseById','agentPause','agent','agentUnpause','agentLogout','agentLogin','internal','LOCAL','shellCommand','exec','trim','replace','googleCloudTTS','google_cloud_tts_text_type','text','languageCode','en-US','ssmlGender','MALE','audioEncoding','MP3','googleTTS','restAPI','method','timeout','number','includes','POST','PUT','toUpperCase','An\x20incorrect\x20formatted\x20json\x20body\x20has\x20been\x20passed\x20to\x20the\x20function','headers','parse','An\x20incorrect\x20formatted\x20json\x20headers\x20has\x20been\x20passed\x20to\x20the\x20function','computedVariables','sync','uri','stringify','body','An\x20incorrect\x20formatted\x20json\x20has\x20been\x20passed\x20to\x20the\x20function','statusCode','statusMessage','message','options','googleDialogflow','key','sestekNDA','ispeechTTS','ispeech_tts_language','speed','ispeechASR','isConfigured','model','awsPolly','aws_access_key_id','aws_polly_region','aws_polly_voice','Amy','aws_text_type','awsLex','aws_secret_access_key','aws_lex_region','aws_bot_name','googleASR','tildeASR','appsecret','clear','hasOwnProperty','replaceObjectAllVariables','replaceAllVariables','recursiveNodeIndex','isPlainObject','isArray','length','isString','saveRestApiResult','%s.%s','setVariable','split','nextbracket','extra','replaceall\x20end','The\x20\x22%s\x22\x20variable\x20value\x20is:\x20%s','maxRetry','retry','label','noop','no\x20text\x20configured','MRCPSynth','result','mrcprecog','grammar','no\x20grammar\x20configured','MRCPRecog','getAndSetVariable','RECOG_CONFIDENCE()','MRCP_RECOG_CONFIDENCE','RECOG_INPUT()','MRCP_RECOG_TRANSCRIPT','MRCP_RECOG_INSTANCE','Enter\x20in\x20AGI\x20(%s)\x20block','command','args','answer','Enter\x20in\x20ANSWER\x20(%s)\x20block','Wait\x20%s\x20seconds\x20before\x20answer','wait','enter\x20in\x20callbackblock','Enter\x20in\x20CALLBACK\x20(%s)\x20block','no\x20list\x20selected','delay','before\x20createcmcontact','CALLBACK\x20added\x20phone:\x20%s\x20on\x20list:\x20%s\x20at\x20%s','custom_app','application','Executed\x20command\x20%s\x20%s','Enter\x20in\x20LUMENVOXTTS\x20(%s)\x20block','Executed\x20command\x20MRCPSynth\x20%s','sestektts','lumenvoxasr','LUMENVOX_ASR_CONFIDENCE','LUMENVOX_ASR_TRANSCRIPT','RECOG_INSTANCE()','LUMENVOX_ASR_INSTANCE','Executed\x20command\x20MRCPRecog\x20%s','SESTEK_ASR_CONFIDENCE','SESTEK_ASR_INSTANCE','database','Enter\x20in\x20DATABASE\x20(%s)\x20block','no\x20database\x20selected','odbc_id','no\x20query\x20configured','query:\x20%s','variable_id','no\x20variable\x20selected\x20for\x20the\x20result','no\x20variable\x20found','forEach','keys','%s_ROWS_COUNT','variable\x20%s\x20set','debug','sip_id','no\x20user\x20found','DIAL','opts','Executed\x20command\x20%s','Enter\x20in\x20DIALOGFLOW\x20(%s)\x20block','bot','DIALOGFLOW_%s','speech','out','Dialogflow\x20Result\x20%s','Enter\x20in\x20SESTEKNDA\x20(%s)\x20block','ndauth_url','no\x20ndauth\x20url\x20configured','username','password','no\x20password\x20configured','ndassistant_url','Trying\x20SestekNDA:\x20%s','SESTEK_NDA_%s','Sestek\x20NDA\x20%s\x20file\x20created','streamFile','audiofile','unlink','.wav','SestekNDA\x20is\x20unreachable','end','Enter\x20in\x20END\x20(%s)\x20block','ext_dial','trunk_id'];(function(_0x420972,_0x57e343){var _0x445598=function(_0x4e4db4){while(--_0x4e4db4){_0x420972['push'](_0x420972['shift']());}};_0x445598(++_0x57e343);}(_0x91fa,0xc2));var _0xa91f=function(_0x2860ab,_0x27440f){_0x2860ab=_0x2860ab-0x0;var _0x3037c4=_0x91fa[_0x2860ab];return _0x3037c4;};'use strict';var fs=require('fs');var path=require(_0xa91f('0x0'));var util=require('util');var _=require(_0xa91f('0x1'));var sh=require(_0xa91f('0x2'));var odbc=require('odbc')();var rs=require(_0xa91f('0x3'));var moment=require(_0xa91f('0x4'));var Mustache=require('mustache');var rp=require(_0xa91f('0x5'));var logger=require(_0xa91f('0x6'))(_0xa91f('0x7'));var config=require(_0xa91f('0x8'));var shared=require(_0xa91f('0x9'));var scripts=require(_0xa91f('0xa'));var FILES_PATH=_0xa91f('0xb');var recursiveMapAttributes=[_0xa91f('0xc'),_0xa91f('0xd')];var verticesWithRetry=['menu',_0xa91f('0xe'),_0xa91f('0xf')];var AGIVertices=function(_0x42ec02,_0x58f3ba,_0x566dc0){this['channel']=_0x42ec02;this[_0xa91f('0x10')]=_0x58f3ba;this['mailRpc']=_0x566dc0;};AGIVertices[_0xa91f('0x11')][_0xa91f('0x12')]=function(_0xa32fea,_0x4f1a2b){this['rpc'][_0xa91f('0x13')](_0xa32fea)['then'](function(_0x2fcdd1){_0x4f1a2b(null,_0x2fcdd1?_0x2fcdd1['name']:![]);})['catch'](function(_0x1dd41a){_0x4f1a2b(_0x1dd41a);});};AGIVertices[_0xa91f('0x11')][_0xa91f('0x14')]=function(_0x8e2cf4,_0x3e1e18){this[_0xa91f('0x10')][_0xa91f('0x15')](_0x8e2cf4)['then'](function(_0x3d7855){_0x3e1e18(null,_0x3d7855?_0x3d7855[_0xa91f('0x16')]:![]);})[_0xa91f('0x17')](function(_0x46285a){_0x3e1e18(_0x46285a);});};AGIVertices[_0xa91f('0x11')][_0xa91f('0x18')]=function(_0x3ed06d,_0x3ad37b){this[_0xa91f('0x10')][_0xa91f('0x19')](_0x3ed06d)[_0xa91f('0x1a')](function(_0x343750){_0x3ad37b(null,_0x343750?_0x343750[_0xa91f('0x16')]:![]);})['catch'](function(_0x23e7d4){_0x3ad37b(_0x23e7d4);});};AGIVertices['prototype'][_0xa91f('0x1b')]=function(_0x269d55,_0x4988d3){this[_0xa91f('0x10')][_0xa91f('0x1c')](_0x269d55)[_0xa91f('0x1a')](function(_0x342b6f){_0x4988d3(null,_0x342b6f?_0x342b6f[_0xa91f('0x1d')]:![]);})[_0xa91f('0x17')](function(_0x49c271){_0x4988d3(_0x49c271);});};AGIVertices['prototype'][_0xa91f('0x1e')]=function(_0x59cb06,_0x30b02b){this[_0xa91f('0x10')]['getUserById'](_0x59cb06)[_0xa91f('0x1a')](function(_0x21c28d){_0x30b02b(null,_0x21c28d?_0x21c28d[_0xa91f('0x16')]:![]);})['catch'](function(_0x1efd4f){_0x30b02b(_0x1efd4f);});};AGIVertices[_0xa91f('0x11')][_0xa91f('0x1f')]=function(_0x2a64ce,_0x715fc1){this[_0xa91f('0x10')][_0xa91f('0x20')](_0x2a64ce)[_0xa91f('0x1a')](function(_0x26aa26){_0x715fc1(null,_0x26aa26?_0x26aa26[_0xa91f('0x16')]:![]);})[_0xa91f('0x17')](function(_0x103744){_0x715fc1(_0x103744);});};AGIVertices[_0xa91f('0x11')][_0xa91f('0x21')]=function(_0x3285d6,_0x32b55e){var _0x1b9877=this;this[_0xa91f('0x10')][_0xa91f('0x22')](_0x3285d6)[_0xa91f('0x1a')](function(_0x292644){_0x32b55e(null,_0x292644?_0x1b9877['getSoundPath'](_0x292644[_0xa91f('0x23')]):![]);})[_0xa91f('0x17')](function(_0x18f65e){_0x32b55e(_0x18f65e);});};AGIVertices[_0xa91f('0x11')]['getMailAccount']=function(_0x22a763,_0x20502e){this[_0xa91f('0x10')]['getMailAccountById'](_0x22a763)[_0xa91f('0x1a')](function(_0x3ce87d){_0x20502e(null,_0x3ce87d?_0x3ce87d:![]);})['catch'](function(_0x410d42){_0x20502e(_0x410d42);});};AGIVertices[_0xa91f('0x11')][_0xa91f('0x24')]=function(_0x4daba7,_0x43c6bf,_0x18daae){this[_0xa91f('0x25')][_0xa91f('0x24')](_0x4daba7,_0x43c6bf)['then'](function(){_0x18daae(null);})[_0xa91f('0x17')](function(_0xe78ff1){_0x18daae(_0xe78ff1);});};AGIVertices[_0xa91f('0x11')][_0xa91f('0x26')]=function(_0x1ae319,_0x4cc851){this[_0xa91f('0x10')][_0xa91f('0x27')](_0x1ae319)[_0xa91f('0x1a')](function(_0x34d0f2){if(_0x34d0f2){if(_0x34d0f2[_0xa91f('0x28')]){_0x4cc851(null,[_0x34d0f2['interval']]);}else{_0x4cc851(null,_['map'](_0x34d0f2[_0xa91f('0x29')],'interval'));}}else{_0x4cc851(null,![]);}})[_0xa91f('0x17')](function(_0x30e152){_0x4cc851(_0x30e152);});};AGIVertices[_0xa91f('0x11')]['getSoundPath']=function(_0x1a5925){return util[_0xa91f('0x2a')](_0xa91f('0x2b'),FILES_PATH,_0x1a5925);};AGIVertices[_0xa91f('0x11')][_0xa91f('0x2c')]=function(_0x47d4c9,_0x4f5248,_0x12cddf){odbc[_0xa91f('0x2d')](_0x47d4c9,function(_0x5c1aa6){if(_0x5c1aa6){logger[_0xa91f('0x2e')](_0xa91f('0x2f'),_0x5c1aa6);_0x12cddf(_0x5c1aa6);}else{logger[_0xa91f('0x30')]('ODBC\x20connection\x20successfully');odbc[_0xa91f('0x31')](_0x4f5248,function(_0xc5f2fb,_0x3ea46a){if(_0xc5f2fb){logger[_0xa91f('0x30')](_0xa91f('0x32'),_0x4f5248);_0x12cddf(_0xc5f2fb);}else{logger[_0xa91f('0x30')]('Query\x20executed\x20correctly\x20%s',_0x4f5248);odbc[_0xa91f('0x33')](function(_0x31df9b){if(_0x31df9b){logger[_0xa91f('0x2e')](_0xa91f('0x34'),_0x31df9b);}_0x12cddf(null,_0x3ea46a);});}});}});};AGIVertices[_0xa91f('0x11')][_0xa91f('0x35')]=function(_0x34088d,_0x5c0aa0){this[_0xa91f('0x10')]['getSmsAccountById'](_0x34088d)['then'](function(_0x2ee2db){_0x5c0aa0(null,_0x2ee2db?_0x2ee2db:![]);})[_0xa91f('0x17')](function(_0x12f6f3){_0x5c0aa0(_0x12f6f3);});};AGIVertices[_0xa91f('0x11')][_0xa91f('0x36')]=function(_0x42d112,_0x4a0684){this[_0xa91f('0x10')][_0xa91f('0x36')](_0x42d112)[_0xa91f('0x1a')](function(_0x3c7d0a){_0x4a0684(null,_0x3c7d0a);})[_0xa91f('0x17')](function(_0x35f80f){_0x4a0684(_0x35f80f);});};AGIVertices[_0xa91f('0x11')][_0xa91f('0x37')]=function(_0x3aa806,_0x4bdbd4,_0x414905){this['rpc'][_0xa91f('0x37')]({'uniqueid':this[_0xa91f('0x38')]['uniqueid'],'node':_0x3aa806['label'],'application':_0x3aa806[_0xa91f('0x39')],'data':_0x4bdbd4||null,'project_name':this[_0xa91f('0x38')][_0xa91f('0x3a')],'callerid':this[_0xa91f('0x38')][_0xa91f('0x3b')]})[_0xa91f('0x1a')](function(_0x5d6d14){if(_0x414905){_0x414905(null,_0x5d6d14);}})[_0xa91f('0x17')](function(_0x258ba0){if(_0x414905){_0x414905(_0x258ba0);}});};AGIVertices['prototype'][_0xa91f('0x3c')]=function(_0x49a805,_0x2b8f93,_0x24ecbf,_0x4a2727){this[_0xa91f('0x10')][_0xa91f('0x3c')]({'uniqueid':this[_0xa91f('0x38')]['uniqueid'],'callerid':this['channel'][_0xa91f('0x3b')],'calleridname':this['channel'][_0xa91f('0x3d')],'context':this[_0xa91f('0x38')][_0xa91f('0x3e')],'extension':this['channel'][_0xa91f('0x3f')],'priority':this[_0xa91f('0x38')][_0xa91f('0x40')],'accountcode':this[_0xa91f('0x38')]['accountcode'],'dnid':this[_0xa91f('0x38')][_0xa91f('0x41')],'projectName':this[_0xa91f('0x38')]['arg_1'],'saveName':_0x2b8f93,'filename':_0x49a805[_0xa91f('0x42')]||_0x2b8f93,'savePath':_0x24ecbf})[_0xa91f('0x1a')](function(_0x47043c){_0x4a2727(null,_0x47043c);})['catch'](function(_0x479faa){_0x4a2727(_0x479faa);});};AGIVertices[_0xa91f('0x11')][_0xa91f('0x43')]=function(_0x566057,_0x54d29a,_0x3f3314){this['rpc'][_0xa91f('0x43')]({'uniqueid':this['channel']['uniqueid'],'body':_0x566057,'direction':_0x54d29a})[_0xa91f('0x1a')](function(_0x399359){if(_0x3f3314){_0x3f3314(null,_0x399359);}})[_0xa91f('0x17')](function(_0x2edc49){if(_0x3f3314){_0x3f3314(_0x2edc49);}});};AGIVertices[_0xa91f('0x11')][_0xa91f('0x44')]=function(_0x4bff15,_0x114d37){console[_0xa91f('0x45')](_0xa91f('0x46'),_0x4bff15);console['log']('in\x20createcmcontact\x20callback',_0x114d37);var _0x4e508a=this;var _0x5f322b=0x0;var _0xa82f54={'firstName':_[_0xa91f('0x47')](_0x4bff15['name'])||_[_0xa91f('0x48')](_0x4bff15[_0xa91f('0x16')])?_0xa91f('0x49')+Math[_0xa91f('0x4a')]():_0x4bff15[_0xa91f('0x16')],'lastName':_[_0xa91f('0x47')](_0x4bff15['lastName'])||_['isNil'](_0x4bff15['lastName'])?null:_0x4bff15[_0xa91f('0x4b')],'phone':_0x4bff15['phone'],'ListId':_0x4bff15[_0xa91f('0x4c')],'scheduledat':_0x4bff15['scheduledAt'],'callbackUniqueid':this[_0xa91f('0x38')][_0xa91f('0x4d')],'tags':_0xa91f('0x4e'),'description':_0xa91f('0x4f')+_0x4bff15[_0xa91f('0x50')][_0xa91f('0x51')](),'priority':_0x4bff15[_0xa91f('0x52')]};if(_[_0xa91f('0x53')](_0x4bff15,_0xa91f('0x54'))){if(!_[_0xa91f('0x48')](_0x4bff15[_0xa91f('0x54')])){var _0x18d721=_0x4bff15['dialTimezone'];console[_0xa91f('0x45')](_0xa91f('0x55'),_0x18d721);if(_0x4bff15[_0xa91f('0x54')]==_0xa91f('0x56')){this[_0xa91f('0x10')][_0xa91f('0x57')]({'phone':_0x4bff15[_0xa91f('0x58')]})['then'](function(_0x38490f){console[_0xa91f('0x45')](_0xa91f('0x59'),_0x38490f);var _0x57e3fd=_0x38490f[_0xa91f('0x54')];console['log'](_0xa91f('0x5a'),_0x57e3fd);if(!_[_0xa91f('0x48')](_0x57e3fd)){var _0x2c8da1=shared[_0xa91f('0x5b')][_0x57e3fd];console[_0xa91f('0x45')]('tz',_0x2c8da1);if(!_[_0xa91f('0x48')](_0x2c8da1)){var _0x43af3e=-0x1*_0x2c8da1['utcOffset'];console[_0xa91f('0x45')]('minutestoadd',_0x43af3e);console[_0xa91f('0x45')](_0xa91f('0x5c'),_0xa82f54[_0xa91f('0x50')]);_0xa82f54[_0xa91f('0x50')]=moment(_0x4bff15[_0xa91f('0x50')])[_0xa91f('0x5d')](_0x43af3e,_0xa91f('0x5e'));console[_0xa91f('0x45')](_0xa91f('0x5f'),_0xa82f54[_0xa91f('0x50')]);_0x4e508a['rpc'][_0xa91f('0x60')](_0xa82f54,_0x4bff15,_0x114d37)[_0xa91f('0x1a')](function(_0x90a647){_0x114d37(null,_0x90a647);})['catch'](function(_0x3cd3df){_0x114d37(_0x3cd3df);});}else{_0x4e508a[_0xa91f('0x10')]['insertContact'](_0xa82f54,_0x4bff15,_0x114d37)['then'](function(_0x1154e7){_0x114d37(null,_0x1154e7);})[_0xa91f('0x17')](function(_0x4f9531){_0x114d37(_0x4f9531);});}}else{_0x4e508a[_0xa91f('0x10')][_0xa91f('0x60')](_0xa82f54,_0x4bff15,_0x114d37)[_0xa91f('0x1a')](function(_0x20b8db){_0x114d37(null,_0x20b8db);})[_0xa91f('0x17')](function(_0xf9e818){_0x114d37(_0xf9e818);});}});}else{var _0x5f322b=shared[_0xa91f('0x5b')][_0x18d721];if(!_[_0xa91f('0x48')](_0x5f322b)){var _0x4bb2e0=-0x1*_0x5f322b[_0xa91f('0x61')];_0xa82f54[_0xa91f('0x50')]=moment(_0x4bff15['scheduledAt'])[_0xa91f('0x5d')](_0x4bb2e0,_0xa91f('0x5e'));_0x4e508a[_0xa91f('0x10')]['insertContact'](_0xa82f54,_0x4bff15,_0x114d37)[_0xa91f('0x1a')](function(_0x235697){_0x114d37(null,_0x235697);})[_0xa91f('0x17')](function(_0x27b9a2){_0x114d37(_0x27b9a2);});}else{_0x4e508a[_0xa91f('0x10')][_0xa91f('0x60')](_0xa82f54,_0x4bff15,_0x114d37)[_0xa91f('0x1a')](function(_0x406561){_0x114d37(null,_0x406561);})[_0xa91f('0x17')](function(_0x247b53){_0x114d37(_0x247b53);});}}}else{_0x4e508a[_0xa91f('0x10')][_0xa91f('0x60')](_0xa82f54,_0x4bff15,_0x114d37)[_0xa91f('0x1a')](function(_0x4d42ca){_0x114d37(null,_0x4d42ca);})['catch'](function(_0x116f90){_0x114d37(_0x116f90);});}}else{_0x4e508a['rpc']['insertContact'](_0xa82f54,_0x4bff15,_0x114d37)[_0xa91f('0x1a')](function(_0x44890f){_0x114d37(null,_0x44890f);})[_0xa91f('0x17')](function(_0x3792b3){_0x114d37(_0x3792b3);});}};AGIVertices[_0xa91f('0x11')][_0xa91f('0x60')]=function(_0x5797a5,_0x618ba8,_0x2dff47){this['rpc'][_0xa91f('0x44')](_0x5797a5)[_0xa91f('0x1a')](function(_0x492205){_0x2dff47(null,_0x492205);})['catch'](function(_0x14d6c1){_0x2dff47(_0x14d6c1);});};AGIVertices[_0xa91f('0x11')][_0xa91f('0x62')]=function(_0x27b0f4,_0x1f2dd5){this[_0xa91f('0x10')][_0xa91f('0x63')](_0x27b0f4)[_0xa91f('0x1a')](function(_0x74221f){_0x1f2dd5(null,_0x74221f?_0x74221f['name']:![]);})[_0xa91f('0x17')](function(_0x28a444){_0x1f2dd5(_0x28a444);});};AGIVertices[_0xa91f('0x11')][_0xa91f('0x64')]=function(_0x5dfacc,_0x3e7178,_0x16a63d){var _0x3e10ef={'role':_0xa91f('0x65')};_0x3e10ef[_0x5dfacc]=this[_0xa91f('0x38')][_0xa91f('0x3b')];this[_0xa91f('0x10')]['agentPause'](_0x3e10ef,_0x3e7178,this[_0xa91f('0x38')][_0xa91f('0x4d')])[_0xa91f('0x1a')](function(_0x27567f){_0x16a63d(null,_['isNil'](_0x27567f)?![]:!![]);})['catch'](function(_0x927bfa){logger[_0xa91f('0x2e')](_0x927bfa);_0x16a63d(null,![]);});};AGIVertices[_0xa91f('0x11')][_0xa91f('0x66')]=function(_0x8c5a6d,_0x45169f){var _0x3e1e4c={'role':_0xa91f('0x65')};_0x3e1e4c[_0x8c5a6d]=this[_0xa91f('0x38')][_0xa91f('0x3b')];this[_0xa91f('0x10')][_0xa91f('0x66')](_0x3e1e4c)[_0xa91f('0x1a')](function(_0x2e7194){_0x45169f(null,_['isNil'](_0x2e7194)?![]:!![]);})[_0xa91f('0x17')](function(_0x26a7fe){logger['error'](_0x26a7fe);_0x45169f(null,![]);});};AGIVertices[_0xa91f('0x11')][_0xa91f('0x67')]=function(_0x14702f,_0x17685e){var _0x55bd04={'role':_0xa91f('0x65')};_0x55bd04[_0x14702f]=this['channel'][_0xa91f('0x3b')];this['rpc'][_0xa91f('0x67')](_0x55bd04)['then'](function(_0xc93d59){_0x17685e(null,_[_0xa91f('0x48')](_0xc93d59)?![]:!![]);})['catch'](function(_0x5b2e7d){logger[_0xa91f('0x2e')](_0x5b2e7d);_0x17685e(null,![]);});};AGIVertices[_0xa91f('0x11')][_0xa91f('0x68')]=function(_0x2635af,_0x1388b9){var _0x167ff3={'role':_0xa91f('0x65')};_0x167ff3[_0x2635af]=this[_0xa91f('0x38')][_0xa91f('0x3b')];var _0x11c451=_0x2635af!=_0xa91f('0x69')?util[_0xa91f('0x2a')]('%s/%s@from-sip/n',_0xa91f('0x6a'),this[_0xa91f('0x38')][_0xa91f('0x3b')]):undefined;this[_0xa91f('0x10')]['agentLogin'](_0x167ff3,_0x11c451)[_0xa91f('0x1a')](function(_0x26f4a6){_0x1388b9(null,_['isNil'](_0x26f4a6)?![]:!![]);})[_0xa91f('0x17')](function(_0x26d920){logger[_0xa91f('0x2e')](_0x26d920);_0x1388b9(null,![]);});};AGIVertices[_0xa91f('0x11')][_0xa91f('0x6b')]=function(_0x52bdee,_0x3caa10){sh[_0xa91f('0x6c')](_[_0xa91f('0x6d')](_0x52bdee),function(_0x2c19f3,_0x1976ed){var _0x1734af=_0x1976ed[_0xa91f('0x6e')](/(\r\n|\n|\r)/gm,'');_0x3caa10(null,_0x1734af);});};AGIVertices[_0xa91f('0x11')][_0xa91f('0x6f')]=function(_0x5df620,_0x1c0c2e){scripts[_0xa91f('0x6f')](_0x5df620['apiKey'],_0x5df620[_0xa91f('0x70')]||_0xa91f('0x71'),_0x5df620[_0xa91f('0x71')],_0x5df620[_0xa91f('0x72')]||_0xa91f('0x73'),_0x5df620[_0xa91f('0x74')]||_0xa91f('0x75'),_0x5df620[_0xa91f('0x76')]||_0xa91f('0x77'))[_0xa91f('0x1a')](function(_0x4b8b26){_0x1c0c2e(null,_0x4b8b26);})['catch'](function(_0x4f0e58){_0x1c0c2e(_0x4f0e58);});};AGIVertices['prototype'][_0xa91f('0x78')]=function(_0x2f53a2,_0x27906f){scripts['googleTTS'](_0x2f53a2[_0xa91f('0x71')],_0x2f53a2['google_tts_language']||'en',0x1)[_0xa91f('0x1a')](function(_0x216c1a){_0x27906f(null,_0x216c1a);})[_0xa91f('0x17')](function(_0x1b2a82){_0x27906f(_0x1b2a82);});};AGIVertices[_0xa91f('0x11')][_0xa91f('0x79')]=function(_0x6bf76a,_0x33434d){var _0x42a5ce={'uri':_0x6bf76a['url'],'method':_0x6bf76a[_0xa91f('0x7a')],'json':!![],'resolveWithFullResponse':!![],'timeout':typeof parseInt(_0x6bf76a[_0xa91f('0x7b')])===_0xa91f('0x7c')&&parseInt(_0x6bf76a[_0xa91f('0x7b')])>=0x1?parseInt(_0x6bf76a['timeout'])*0x3e8:0x5*0x3e8};if(_[_0xa91f('0x7d')]([_0xa91f('0x7e'),_0xa91f('0x7f')],_0x42a5ce[_0xa91f('0x7a')][_0xa91f('0x80')]())){try{_0x42a5ce['body']=_0x6bf76a[_0xa91f('0xd')]?JSON['parse'](_0x6bf76a['rawBody']):{};}catch(_0x350314){logger['error'](_0xa91f('0x81'),_0x350314);}}try{_0x42a5ce[_0xa91f('0x82')]=_0x6bf76a[_0xa91f('0xc')]?JSON[_0xa91f('0x83')](_0x6bf76a[_0xa91f('0xc')]):{};}catch(_0x1b07e7){logger[_0xa91f('0x2e')](_0xa91f('0x84'),_0x1b07e7);}if(_0x6bf76a[_0xa91f('0x85')]){try{var _0x19d1bb=require(_0x6bf76a['computedVariables'])[_0xa91f('0x86')](this,_0x42a5ce);_0x42a5ce[_0xa91f('0x87')]=Mustache['render'](_0x6bf76a['url'],_0x19d1bb,{},['$$','$$']);if(_0x42a5ce[_0xa91f('0x82')]){_0x42a5ce[_0xa91f('0x82')]=JSON[_0xa91f('0x83')](Mustache['render'](JSON[_0xa91f('0x88')](_0x42a5ce[_0xa91f('0x82')]),_0x19d1bb,{},['$$','$$']));}if(_0x42a5ce[_0xa91f('0x89')]){_0x42a5ce['body']=JSON[_0xa91f('0x83')](Mustache['render'](JSON[_0xa91f('0x88')](_0x42a5ce[_0xa91f('0x89')]),_0x19d1bb,{},['$$','$$']));}}catch(_0x2df952){logger['error'](_0xa91f('0x8a'),_0x2df952);}}rp(_0x42a5ce)[_0xa91f('0x1a')](function(_0x2db082){var _0x12084d={'statusCode':_0x2db082[_0xa91f('0x8b')]||0xc8,'statusMessage':_0x2db082[_0xa91f('0x8c')]||'OK','headers':_0x2db082[_0xa91f('0x82')]||{},'body':_0x2db082[_0xa91f('0x89')]||{}};_0x33434d(null,_0x12084d);})[_0xa91f('0x17')](function(_0x1ff78e){var _0x274a41={'statusCode':_0x1ff78e[_0xa91f('0x8b')]||0x1f4,'statusMessage':_0x1ff78e[_0xa91f('0x8d')]||'500\x20-\x20Internal\x20Server\x20Error','headers':_0x1ff78e[_0xa91f('0x8e')][_0xa91f('0x82')]||{},'body':_0x1ff78e[_0xa91f('0x8e')][_0xa91f('0x89')]||{}};_0x33434d(null,_0x274a41);});};AGIVertices[_0xa91f('0x11')][_0xa91f('0x8f')]=function(_0xfc853f,_0x4258ad){scripts[_0xa91f('0x8f')](this['channel'][_0xa91f('0x4d')],_0xfc853f[_0xa91f('0x90')],_0xfc853f[_0xa91f('0x71')],_0xfc853f['dialogflow_language']||'en')['then'](function(_0x5abe43){_0x4258ad(null,_0x5abe43);})[_0xa91f('0x17')](function(_0xfc0c31){_0x4258ad(_0xfc0c31);});};AGIVertices[_0xa91f('0x11')][_0xa91f('0x91')]=function(_0xa3ff58,_0x35f89f){scripts[_0xa91f('0x91')](this[_0xa91f('0x38')],_0xa3ff58)[_0xa91f('0x1a')](function(_0x2e6135){_0x35f89f(null,_0x2e6135);})[_0xa91f('0x17')](function(_0x16cce6){_0x35f89f(_0x16cce6);});};AGIVertices[_0xa91f('0x11')][_0xa91f('0x92')]=function(_0x1b6af9,_0x49842c){scripts[_0xa91f('0x92')](_0x1b6af9[_0xa91f('0x90')],_0x1b6af9[_0xa91f('0x71')],_0x1b6af9[_0xa91f('0x93')]||_0xa91f('0x73'),_0x1b6af9[_0xa91f('0x94')])[_0xa91f('0x1a')](function(_0x114d68){_0x49842c(null,_0x114d68);})['catch'](function(_0x468e56){_0x49842c(_0x468e56);});};AGIVertices[_0xa91f('0x11')][_0xa91f('0x95')]=function(_0x32f927,_0x5a078d,_0x23277d){scripts[_0xa91f('0x95')](_0x5a078d,_0x32f927[_0xa91f('0x90')],_0x32f927['ispeech_asr_language']||'en-US',this[_0xa91f('0x96')](_0x32f927[_0xa91f('0x97')])?_0x32f927['model']:undefined)[_0xa91f('0x1a')](function(_0x21a23b){_0x23277d(null,_0x21a23b);})[_0xa91f('0x17')](function(_0xf89906){_0x23277d(_0xf89906);});};AGIVertices[_0xa91f('0x11')]['awsPolly']=function(_0x3aaf5b,_0x50d5e6){scripts[_0xa91f('0x98')](_0x3aaf5b[_0xa91f('0x99')],_0x3aaf5b['aws_secret_access_key'],_0x3aaf5b[_0xa91f('0x9a')],_0x3aaf5b[_0xa91f('0x9b')]||_0xa91f('0x9c'),_0x3aaf5b[_0xa91f('0x71')],_0x3aaf5b[_0xa91f('0x9d')]||_0xa91f('0x71'))['then'](function(_0x1ad605){_0x50d5e6(null,_0x1ad605);})[_0xa91f('0x17')](function(_0x6ca13e){_0x50d5e6(_0x6ca13e);});};AGIVertices[_0xa91f('0x11')][_0xa91f('0x9e')]=function(_0x3944cb,_0x3871a5){scripts[_0xa91f('0x9e')](this[_0xa91f('0x38')][_0xa91f('0x4d')],_0x3944cb['aws_access_key_id'],_0x3944cb[_0xa91f('0x9f')],_0x3944cb[_0xa91f('0xa0')],_0x3944cb[_0xa91f('0x71')],_0x3944cb[_0xa91f('0xa1')])[_0xa91f('0x1a')](function(_0x54ee81){_0x3871a5(null,_0x54ee81);})[_0xa91f('0x17')](function(_0x2f70e5){_0x3871a5(_0x2f70e5);});};AGIVertices[_0xa91f('0x11')][_0xa91f('0xa2')]=function(_0x509412,_0x1dbd9e,_0x145fc1){scripts[_0xa91f('0xa2')](_0x1dbd9e,_0x509412[_0xa91f('0x90')],_0x509412['google_asr_language']||'en-US')[_0xa91f('0x1a')](function(_0x30abc4){_0x145fc1(null,_0x30abc4);})[_0xa91f('0x17')](function(_0x5b722e){_0x145fc1(_0x5b722e);});};AGIVertices[_0xa91f('0x11')]['tildeASR']=function(_0x5b9068,_0x38cc3e,_0x5834d7){scripts[_0xa91f('0xa3')](_0x38cc3e,_0x5b9068['appid'],_0x5b9068[_0xa91f('0xa4')],_0x5b9068[_0xa91f('0x87')])[_0xa91f('0x1a')](function(_0x505daa){_0x5834d7(null,_0x505daa);})[_0xa91f('0x17')](function(_0x4a613b){_0x5834d7(_0x4a613b);});};AGIVertices[_0xa91f('0x11')][_0xa91f('0xa5')]=function(_0x464fd6){var _0x435596=_[_0xa91f('0x7d')](verticesWithRetry,_0x464fd6[_0xa91f('0x39')])?_0x464fd6:_['clone'](_0x464fd6);for(var _0x22eeb0 in _0x435596){if(_0x435596[_0xa91f('0xa6')](_0x22eeb0)){if(_0x435596[_0x22eeb0]&&_['isString'](_0x435596[_0x22eeb0])){if(_[_0xa91f('0x7d')](recursiveMapAttributes,_0x22eeb0)){_0x435596[_0x22eeb0]=this[_0xa91f('0xa7')](_0x435596[_0x22eeb0]);}else{_0x435596[_0x22eeb0]=this[_0xa91f('0xa8')](_0x435596[_0x22eeb0]);}}}}return _0x435596;};AGIVertices['prototype'][_0xa91f('0xa9')]=function(_0x203154){for(var _0x63549d in _0x203154){if(_0x203154[_0xa91f('0xa6')](_0x63549d)){if(_[_0xa91f('0xaa')](_0x203154[_0x63549d])){this[_0xa91f('0xa9')](_0x203154[_0x63549d]);}else if(_[_0xa91f('0xab')](_0x203154[_0x63549d])){for(var _0x181f59=0x0;_0x181f59<_0x203154[_0x63549d][_0xa91f('0xac')];_0x181f59++){this[_0xa91f('0xa9')](_0x203154[_0x63549d][_0x181f59]);}}else if(_[_0xa91f('0xad')](_0x203154[_0x63549d])){_0x203154[_0x63549d]=this['replaceAllVariables'](_0x203154[_0x63549d]);}}}};AGIVertices[_0xa91f('0x11')][_0xa91f('0xae')]=function(_0x5782d1,_0x3a6cec){for(var _0x192919 in _0x5782d1){if(_0x5782d1[_0xa91f('0xa6')](_0x192919)){if(_['isPlainObject'](_0x5782d1[_0x192919])){if(!_[_0xa91f('0x47')](_0x5782d1[_0x192919])){this['saveRestApiResult'](_0x5782d1[_0x192919],util[_0xa91f('0x2a')]('%s.%s',_0x3a6cec,_0x192919));}}else if(_[_0xa91f('0xab')](_0x5782d1[_0x192919])){for(var _0x2bd126=0x0;_0x2bd126<_0x5782d1[_0x192919][_0xa91f('0xac')];_0x2bd126++){this[_0xa91f('0xae')](_0x5782d1[_0x192919][_0x2bd126],util['format'](_0xa91f('0xaf'),_0x3a6cec,_0x192919+'['+_0x2bd126+']'));}}else{if(!_[_0xa91f('0x48')](_0x5782d1[_0x192919])){this['channel'][_0xa91f('0xb0')](util[_0xa91f('0x2a')](_0xa91f('0xaf'),_0x3a6cec,_0x192919),_0x5782d1[_0x192919]);}}}}};AGIVertices[_0xa91f('0x11')]['replaceObjectAllVariables']=function(_0x5b0c53){try{var _0x38fb1c=JSON[_0xa91f('0x83')](_0x5b0c53);this['recursiveNodeIndex'](_0x38fb1c);return JSON[_0xa91f('0x88')](_0x38fb1c);}catch(_0xff22fb){return this['replaceAllVariables'](_0x5b0c53);}};AGIVertices[_0xa91f('0x11')]['replaceAllVariables']=function(_0x13482a){console[_0xa91f('0x45')]('replaceall\x20init',_0x13482a);var _0x2c5877=_0x13482a[_0xa91f('0xb1')]('{');for(var _0x5222d2=0x1;_0x5222d2<_0x2c5877[_0xa91f('0xac')];_0x5222d2+=0x1){var _0xbd0927=_0x2c5877[_0x5222d2][_0xa91f('0xb1')]('}');console[_0xa91f('0x45')](_0xa91f('0xb2'),_0xbd0927);if(_0xbd0927[_0xa91f('0xac')]>0x1){_0x13482a=_0x13482a['replaceAll']('{'+_0xbd0927[0x0]+'}',this[_0xa91f('0x38')][_0xa91f('0x12')](_0xbd0927[0x0])[_0xa91f('0xb3')]||_0xbd0927[0x0]);}}if(_0x2c5877[_0xa91f('0xac')]===0x1){return _0x13482a[_0xa91f('0x51')]();}console['log'](_0xa91f('0xb4'),_0x13482a);return this[_0xa91f('0xa8')](_0x13482a);};AGIVertices[_0xa91f('0x11')]['getAndSetVariable']=function(_0x307306,_0x149796){var _0x18b14a=this[_0xa91f('0x38')][_0xa91f('0x12')](_0x307306);if(_0x18b14a['result']===-0x1){return _0x18b14a;}logger[_0xa91f('0x30')](util['format'](_0xa91f('0xb5'),_0x149796,_0x18b14a[_0xa91f('0xb3')]));return this['channel'][_0xa91f('0xb0')](_0x149796,_0x18b14a[_0xa91f('0xb3')]);};AGIVertices[_0xa91f('0x11')][_0xa91f('0x96')]=function(_0x13a4f2){return _0x13a4f2&&_0x13a4f2!=='0'&&_0x13a4f2!=='-1'&&_0x13a4f2!=='';};AGIVertices[_0xa91f('0x11')][_0xa91f('0xb6')]=function(_0x193155){this[_0xa91f('0x37')][_0xa91f('0x86')](this,_0x193155,'-');_0x193155[_0xa91f('0xb7')]=_0x193155[_0xa91f('0xb6')];return{'code':0xc8,'result':'-'};};AGIVertices[_0xa91f('0x11')]['mrcpsynth']=function(_0x1e825b){logger[_0xa91f('0x30')](util[_0xa91f('0x2a')]('Enter\x20in\x20MRCPSynth\x20(%s)\x20block',_0x1e825b[_0xa91f('0xb8')]));if(!this[_0xa91f('0x96')](_0x1e825b[_0xa91f('0x71')])){return this['channel'][_0xa91f('0xb9')](_0xa91f('0xba'));}var _0x33e6d1='\x22'+_0x1e825b['text']+'\x22';if(this[_0xa91f('0x96')](_0x1e825b[_0xa91f('0x8e')])){_0x33e6d1+=','+_0x1e825b[_0xa91f('0x8e')];}var _0x210b8c=this[_0xa91f('0x38')]['exec'](_0xa91f('0xbb'),_0x33e6d1);if(_0x210b8c[_0xa91f('0xbc')]===-0x1){return _0x210b8c;}return this[_0xa91f('0x38')][_0xa91f('0xb9')](util[_0xa91f('0x2a')]('Executed\x20command\x20MRCPSynth\x20%s',_0x33e6d1));};AGIVertices[_0xa91f('0x11')][_0xa91f('0xbd')]=function(_0x291ebc){logger[_0xa91f('0x30')](util[_0xa91f('0x2a')]('Enter\x20in\x20MRCPRecog\x20(%s)\x20block',_0x291ebc[_0xa91f('0xb8')]));if(!this[_0xa91f('0x96')](_0x291ebc[_0xa91f('0xbe')])){return this[_0xa91f('0x38')]['noop'](_0xa91f('0xbf'));}var _0x32b6ff=_0x291ebc['grammar'];if(this[_0xa91f('0x96')](_0x291ebc[_0xa91f('0x8e')])){_0x32b6ff+=','+_0x291ebc[_0xa91f('0x8e')];}var _0x5212a6=this[_0xa91f('0x38')]['exec'](_0xa91f('0xc0'),_0x32b6ff);if(_0x5212a6[_0xa91f('0xbc')]===-0x1){return _0x5212a6;}var _0x5b4cfa=this[_0xa91f('0xc1')](_0xa91f('0xc2'),_0xa91f('0xc3'));if(_0x5b4cfa[_0xa91f('0xbc')]===-0x1){return _0x5b4cfa;}var _0x4dea69=this[_0xa91f('0xc1')](_0xa91f('0xc4'),_0xa91f('0xc5'));if(_0x4dea69['result']===-0x1){return _0x4dea69;}var _0x1128c2=this[_0xa91f('0xc1')]('RECOG_INSTANCE()',_0xa91f('0xc6'));if(_0x1128c2['result']===-0x1){return _0x1128c2;}return this[_0xa91f('0x38')][_0xa91f('0xb9')](util[_0xa91f('0x2a')]('Executed\x20command\x20MRCPRecog\x20%s',_0x32b6ff));};AGIVertices[_0xa91f('0x11')][_0xa91f('0x7')]=function(_0x4c20a7){logger['info'](util[_0xa91f('0x2a')](_0xa91f('0xc7'),_0x4c20a7[_0xa91f('0xb8')]));return this[_0xa91f('0x38')][_0xa91f('0x7')]([_0x4c20a7[_0xa91f('0xc8')],_0x4c20a7[_0xa91f('0xc9')]]);};AGIVertices['prototype'][_0xa91f('0xca')]=function(_0x536a0f){logger['info'](util[_0xa91f('0x2a')](_0xa91f('0xcb'),_0x536a0f[_0xa91f('0xb8')]));if(this['isConfigured'](_0x536a0f[_0xa91f('0x7b')])){logger[_0xa91f('0x30')](util[_0xa91f('0x2a')](_0xa91f('0xcc'),_0x536a0f['timeout']));var _0x360319=this[_0xa91f('0x38')][_0xa91f('0xcd')](_0x536a0f[_0xa91f('0x7b')]);if(_0x360319[_0xa91f('0xbc')]===-0x1){return _0x360319;}}return this[_0xa91f('0x38')][_0xa91f('0xca')]();};AGIVertices[_0xa91f('0x11')][_0xa91f('0x4e')]=function(_0x19584f){console['log'](_0xa91f('0xce'),_0x19584f);logger[_0xa91f('0x30')](util[_0xa91f('0x2a')](_0xa91f('0xcf'),_0x19584f[_0xa91f('0xb8')]));if(!this[_0xa91f('0x96')](_0x19584f[_0xa91f('0x4c')])){return this[_0xa91f('0x38')][_0xa91f('0x2e')](_0x19584f,_0xa91f('0xd0'));}_0x19584f[_0xa91f('0x50')]=moment();if(this[_0xa91f('0x96')](_0x19584f[_0xa91f('0xd1')])){_0x19584f['scheduledAt']=moment()[_0xa91f('0x5d')](_0x19584f[_0xa91f('0xd1')],_0xa91f('0x5e'));}if(!this[_0xa91f('0x96')](_0x19584f['callback_priority'])){_0x19584f[_0xa91f('0x52')]=0x2;}console['log'](_0xa91f('0xd2'),_0x19584f);this[_0xa91f('0x44')][_0xa91f('0x86')](this,_0x19584f);return this[_0xa91f('0x38')][_0xa91f('0xb9')](util[_0xa91f('0x2a')](_0xa91f('0xd3'),_0x19584f[_0xa91f('0x58')],_0x19584f[_0xa91f('0x4c')],_0x19584f[_0xa91f('0x50')]));};AGIVertices['prototype'][_0xa91f('0xd4')]=function(_0x23ca9d){logger[_0xa91f('0x30')](util[_0xa91f('0x2a')]('Enter\x20in\x20CUSTOM\x20APP\x20(%s)\x20block',_0x23ca9d[_0xa91f('0xb8')]));var _0x4b792f=this[_0xa91f('0x38')][_0xa91f('0x6c')](_0x23ca9d[_0xa91f('0xd5')],_0x23ca9d[_0xa91f('0x8e')]);if(_0x4b792f['result']===-0x1){return _0x4b792f;}return this[_0xa91f('0x38')]['noop'](util[_0xa91f('0x2a')](_0xa91f('0xd6'),_0x23ca9d['application'],_0x23ca9d[_0xa91f('0x8e')]));};AGIVertices['prototype']['lumenvoxtts']=function(_0x1ce317){logger[_0xa91f('0x30')](util[_0xa91f('0x2a')](_0xa91f('0xd7'),_0x1ce317['label']));if(!this['isConfigured'](_0x1ce317[_0xa91f('0x71')])){return this[_0xa91f('0x38')][_0xa91f('0xb9')]('no\x20text\x20configured');}var _0x2ee99b='\x22'+_0x1ce317['text']+'\x22';if(this[_0xa91f('0x96')](_0x1ce317[_0xa91f('0x8e')])){_0x2ee99b+=','+_0x1ce317[_0xa91f('0x8e')];}var _0xd86efe=this[_0xa91f('0x38')]['exec']('MRCPSynth',_0x2ee99b);if(_0xd86efe[_0xa91f('0xbc')]===-0x1){return _0xd86efe;}return this['channel'][_0xa91f('0xb9')](util[_0xa91f('0x2a')](_0xa91f('0xd8'),_0x2ee99b));};AGIVertices[_0xa91f('0x11')][_0xa91f('0xd9')]=function(_0x349a14){logger['info'](util['format']('Enter\x20in\x20SESTEKTTS\x20(%s)\x20block',_0x349a14['label']));if(!this[_0xa91f('0x96')](_0x349a14[_0xa91f('0x71')])){return this['channel'][_0xa91f('0xb9')](_0xa91f('0xba'));}var _0x1c6501='\x22'+_0x349a14[_0xa91f('0x71')]+'\x22';if(this[_0xa91f('0x96')](_0x349a14['options'])){_0x1c6501+=','+_0x349a14[_0xa91f('0x8e')];}var _0x342122=this[_0xa91f('0x38')][_0xa91f('0x6c')](_0xa91f('0xbb'),_0x1c6501);if(_0x342122[_0xa91f('0xbc')]===-0x1){return _0x342122;}return this[_0xa91f('0x38')][_0xa91f('0xb9')](util[_0xa91f('0x2a')](_0xa91f('0xd8'),_0x1c6501));};AGIVertices[_0xa91f('0x11')][_0xa91f('0xda')]=function(_0x59e272){logger[_0xa91f('0x30')](util[_0xa91f('0x2a')]('Enter\x20in\x20LUMENVOXASR\x20(%s)\x20block',_0x59e272['label']));if(!this['isConfigured'](_0x59e272[_0xa91f('0xbe')])){return this[_0xa91f('0x38')]['noop'](_0xa91f('0xbf'));}var _0x42a488=_0x59e272[_0xa91f('0xbe')];if(this[_0xa91f('0x96')](_0x59e272[_0xa91f('0x8e')])){_0x42a488+=','+_0x59e272[_0xa91f('0x8e')];}var _0x35af5a=this[_0xa91f('0x38')][_0xa91f('0x6c')](_0xa91f('0xc0'),_0x42a488);if(_0x35af5a[_0xa91f('0xbc')]===-0x1){return _0x35af5a;}var _0x2ae13e=this['getAndSetVariable'](_0xa91f('0xc2'),_0xa91f('0xdb'));if(_0x2ae13e['result']===-0x1){return _0x2ae13e;}var _0x424ccb=this[_0xa91f('0xc1')]('RECOG_INPUT()',_0xa91f('0xdc'));if(_0x424ccb['result']===-0x1){return _0x424ccb;}var _0xd8d101=this[_0xa91f('0xc1')](_0xa91f('0xdd'),_0xa91f('0xde'));if(_0xd8d101['result']===-0x1){return _0xd8d101;}return this['channel']['noop'](util['format'](_0xa91f('0xdf'),_0x42a488));};AGIVertices[_0xa91f('0x11')]['sestekasr']=function(_0x26765a){logger[_0xa91f('0x30')](util[_0xa91f('0x2a')]('Enter\x20in\x20SESTEKASR\x20(%s)\x20block',_0x26765a[_0xa91f('0xb8')]));if(!this['isConfigured'](_0x26765a[_0xa91f('0xbe')])){return this[_0xa91f('0x38')][_0xa91f('0xb9')](_0xa91f('0xbf'));}var _0x55c077=_0x26765a[_0xa91f('0xbe')];if(this['isConfigured'](_0x26765a[_0xa91f('0x8e')])){_0x55c077+=','+_0x26765a[_0xa91f('0x8e')];}var _0x49f09b=this[_0xa91f('0x38')][_0xa91f('0x6c')](_0xa91f('0xc0'),_0x55c077);if(_0x49f09b[_0xa91f('0xbc')]===-0x1){return _0x49f09b;}var _0x4998e4=this[_0xa91f('0xc1')](_0xa91f('0xc2'),_0xa91f('0xe0'));if(_0x4998e4[_0xa91f('0xbc')]===-0x1){return _0x4998e4;}var _0x28f3a0=this[_0xa91f('0xc1')](_0xa91f('0xc4'),'SESTEK_ASR_TRANSCRIPT');if(_0x28f3a0[_0xa91f('0xbc')]===-0x1){return _0x28f3a0;}var _0x5c4934=this[_0xa91f('0xc1')](_0xa91f('0xdd'),_0xa91f('0xe1'));if(_0x5c4934[_0xa91f('0xbc')]===-0x1){return _0x5c4934;}return this[_0xa91f('0x38')][_0xa91f('0xb9')](util[_0xa91f('0x2a')](_0xa91f('0xdf'),_0x55c077));};AGIVertices[_0xa91f('0x11')][_0xa91f('0xe2')]=function(_0x4dbd6a){logger[_0xa91f('0x30')](util[_0xa91f('0x2a')](_0xa91f('0xe3'),_0x4dbd6a[_0xa91f('0xb8')]));if(!this['isConfigured'](_0x4dbd6a['odbc_id'])){return this[_0xa91f('0x38')]['error'](_0x4dbd6a,_0xa91f('0xe4'));}var _0x5646e9=this[_0xa91f('0x1b')][_0xa91f('0x86')](this,_0x4dbd6a[_0xa91f('0xe5')]);if(!_0x5646e9){return this[_0xa91f('0x38')]['error'](_0x4dbd6a,'no\x20odbc\x20database\x20found');}if(!this['isConfigured'](_0x4dbd6a[_0xa91f('0x31')])){return this['channel'][_0xa91f('0x2e')](_0x4dbd6a,_0xa91f('0xe6'));}var _0x58ea2e=_0x4dbd6a['query'][_0xa91f('0x6e')](/(\r\n|\n|\r)/gm,'\x20');this[_0xa91f('0x38')]['noop'](util['format'](_0xa91f('0xe7'),_0x58ea2e));var _0x3b34e5=this[_0xa91f('0x2c')][_0xa91f('0x86')](this,_0x5646e9,_0x58ea2e);this[_0xa91f('0x37')][_0xa91f('0x86')](this,_0x4dbd6a,_0x58ea2e);if(!this[_0xa91f('0x96')](_0x4dbd6a[_0xa91f('0xe8')])){return this['channel'][_0xa91f('0xb9')](_0xa91f('0xe9'));}var _0x2c2fae=this[_0xa91f('0x12')][_0xa91f('0x86')](this,_0x4dbd6a[_0xa91f('0xe8')]);if(!_0x2c2fae){return this[_0xa91f('0x38')][_0xa91f('0x2e')](_0x4dbd6a,_0xa91f('0xea'));}var _0x278dc6=this;_0x3b34e5[_0xa91f('0xeb')](function(_0xac9acd,_0x27a743){Object[_0xa91f('0xec')](_0xac9acd)[_0xa91f('0xeb')](function(_0x21332e){_0x278dc6[_0xa91f('0x38')]['setVariable'](util[_0xa91f('0x2a')]('%s[%s][%s]',_0x2c2fae,_0x27a743,_0x21332e),_0xac9acd[_0x21332e]);});});this[_0xa91f('0x38')][_0xa91f('0xb0')](util['format'](_0xa91f('0xed'),_0x2c2fae),_0x3b34e5[_0xa91f('0xac')]);return this['channel'][_0xa91f('0xb9')](util[_0xa91f('0x2a')](_0xa91f('0xee'),_0x2c2fae));};AGIVertices['prototype']['dial']=function(_0x2a7eed){logger[_0xa91f('0xef')](util[_0xa91f('0x2a')]('Enter\x20in\x20DIAL\x20(%s)\x20block',_0x2a7eed['label']));if(!this[_0xa91f('0x96')](_0x2a7eed[_0xa91f('0xf0')])){return this['channel'][_0xa91f('0x2e')](_0x2a7eed,'no\x20user\x20selected');}var _0x1c4173=this[_0xa91f('0x1e')]['sync'](this,_0x2a7eed[_0xa91f('0xf0')]);if(!_0x1c4173){return this[_0xa91f('0x38')]['error'](_0x2a7eed,_0xa91f('0xf1'));}var _0x302c1d=this['channel']['exec'](_0xa91f('0xf2'),[util[_0xa91f('0x2a')]('SIP/%s',_0x1c4173),_0x2a7eed[_0xa91f('0x7b')],_0x2a7eed[_0xa91f('0xf3')],_0x2a7eed['url']]);if(_0x302c1d[_0xa91f('0xbc')]===-0x1){return _0x302c1d;}return this[_0xa91f('0x38')][_0xa91f('0xb9')](util[_0xa91f('0x2a')](_0xa91f('0xf4'),'DIAL'));};AGIVertices['prototype']['dialogflow']=function(_0x4c4d0a){logger[_0xa91f('0x30')](util[_0xa91f('0x2a')](_0xa91f('0xf5'),_0x4c4d0a['label']));if(!this[_0xa91f('0x96')](_0x4c4d0a[_0xa91f('0x90')])){return this[_0xa91f('0x38')][_0xa91f('0xb9')]('no\x20key\x20configured');}if(!this[_0xa91f('0x96')](_0x4c4d0a[_0xa91f('0x71')])){return this[_0xa91f('0x38')][_0xa91f('0xb9')](_0xa91f('0xba'));}this[_0xa91f('0x38')][_0xa91f('0xf6')]=!![];this[_0xa91f('0x37')](_0x4c4d0a);this['createSquareMessage'](_0x4c4d0a[_0xa91f('0x71')],'in');this[_0xa91f('0x38')][_0xa91f('0xb9')](util[_0xa91f('0x2a')]('Trying\x20Dialogflow:\x20%s',_0x4c4d0a[_0xa91f('0x71')]));var _0x275b42=this[_0xa91f('0x8f')][_0xa91f('0x86')](this,_0x4c4d0a);if(_0x275b42){for(var _0xad2971 in _0x275b42){if(_0x275b42[_0xa91f('0xa6')](_0xad2971)){this[_0xa91f('0x38')][_0xa91f('0xb0')](util['format'](_0xa91f('0xf7'),_0xad2971['toUpperCase']()),_0x275b42[_0xad2971]);}}this[_0xa91f('0x43')](_0x275b42[_0xa91f('0xf8')],_0xa91f('0xf9'));return this[_0xa91f('0x38')][_0xa91f('0xb9')](util[_0xa91f('0x2a')](_0xa91f('0xfa'),_0x275b42['speech']));}return this[_0xa91f('0x38')][_0xa91f('0x2e')](_0x4c4d0a,'Dialogflow\x20is\x20unreachable');};AGIVertices[_0xa91f('0x11')]['sesteknda']=function(_0x7a03c8){logger[_0xa91f('0x30')](util[_0xa91f('0x2a')](_0xa91f('0xfb'),_0x7a03c8[_0xa91f('0xb8')]));if(!this[_0xa91f('0x96')](_0x7a03c8[_0xa91f('0xfc')])){return this[_0xa91f('0x38')][_0xa91f('0xb9')](_0xa91f('0xfd'));}if(!this[_0xa91f('0x96')](_0x7a03c8[_0xa91f('0xfe')])){return this['channel'][_0xa91f('0xb9')]('no\x20username\x20configured');}if(!this['isConfigured'](_0x7a03c8[_0xa91f('0xff')])){return this[_0xa91f('0x38')][_0xa91f('0xb9')](_0xa91f('0x100'));}if(!this['isConfigured'](_0x7a03c8[_0xa91f('0x101')])){return this[_0xa91f('0x38')][_0xa91f('0xb9')](_0xa91f('0xba'));}this[_0xa91f('0x38')][_0xa91f('0xf6')]=!![];this[_0xa91f('0x37')](_0x7a03c8);this[_0xa91f('0x43')](_0x7a03c8['text'],'in');this['channel'][_0xa91f('0xb9')](util['format'](_0xa91f('0x102'),_0x7a03c8[_0xa91f('0x71')]));var _0x1bbc0f=this['sestekNDA'][_0xa91f('0x86')](this,_0x7a03c8);if(_0x1bbc0f){for(var _0x563003 in _0x1bbc0f){if(_0x1bbc0f[_0xa91f('0xa6')](_0x563003)){this['channel']['setVariable'](util[_0xa91f('0x2a')](_0xa91f('0x103'),_0x563003['toUpperCase']()),_0x1bbc0f[_0x563003]);}}this[_0xa91f('0x43')](_0x1bbc0f[_0xa91f('0xf8')],_0xa91f('0xf9'));if(_0x1bbc0f['audiofile']){this['channel']['noop'](util[_0xa91f('0x2a')](_0xa91f('0x104'),_0x1bbc0f['audiofile']));var _0xb5b8b2=this[_0xa91f('0x38')][_0xa91f('0x105')](_0x1bbc0f[_0xa91f('0x106')]);try{fs[_0xa91f('0x107')](_0x1bbc0f[_0xa91f('0x106')]+_0xa91f('0x108'));}catch(_0x4eb986){logger[_0xa91f('0x2e')](_0x4eb986);}return _0xb5b8b2;}else{return this[_0xa91f('0x38')][_0xa91f('0xb9')](util['format']('SestekNDA\x20Result\x20%s',_0x1bbc0f[_0xa91f('0xf8')]));}}return this['channel'][_0xa91f('0x2e')](_0x7a03c8,_0xa91f('0x109'));};AGIVertices[_0xa91f('0x11')][_0xa91f('0x10a')]=function(_0x507522){logger[_0xa91f('0x30')](util[_0xa91f('0x2a')](_0xa91f('0x10b'),_0x507522[_0xa91f('0xb8')]));return this[_0xa91f('0x38')][_0xa91f('0xb9')](_0xa91f('0x10a'));};AGIVertices[_0xa91f('0x11')][_0xa91f('0x10c')]=function(_0x1c283e){logger[_0xa91f('0x30')](util['format']('Enter\x20in\x20EXTERNAL\x20DIAL\x20(%s)\x20block',_0x1c283e['label']));var _0x5ef66e='';if(_0x1c283e[_0xa91f('0x10d')]){if(!this[_0xa91f('0x96')](_0x1c283e[_0xa91f('0x10d')])){return this[_0xa91f('0x38')]['error'](_0x1c283e,_0xa91f('0x10e'));}else{var _0x17752e=parseInt(_0x1c283e[_0xa91f('0x10d')],0xa);if(isNaN(_0x17752e)){_0x5ef66e=_0x1c283e['trunk_id'];}else{_0x5ef66e=this[_0xa91f('0x1f')][_0xa91f('0x86')](this,_0x1c283e[_0xa91f('0x10d')]);if(!_0x5ef66e){return this['channel'][_0xa91f('0x2e')](_0x1c283e,'no\x20trunk\x20found');}}}}else if(_0x1c283e[_0xa91f('0x10f')]){_0x5ef66e=_0x1c283e[_0xa91f('0x10f')];}else{return this[_0xa91f('0x38')]['error'](_0x1c283e,_0xa91f('0x10e'));}var _0x52c177=this['channel'][_0xa91f('0x6c')]('DIAL',[util[_0xa91f('0x2a')]('SIP/%s/%s',_0x5ef66e,_0x1c283e[_0xa91f('0x58')]),_0x1c283e[_0xa91f('0x7b')],_0x1c283e['opts'],_0x1c283e[_0xa91f('0x110')]]);if(_0x52c177[_0xa91f('0xbc')]===-0x1){return _0x52c177;}return this[_0xa91f('0x38')]['noop'](util[_0xa91f('0x2a')]('Executed\x20command\x20%s',_0xa91f('0xf2')));};AGIVertices['prototype'][_0xa91f('0x111')]=function(_0x3a89ea){logger[_0xa91f('0x30')](util['format'](_0xa91f('0x112'),_0x3a89ea['label']));return this[_0xa91f('0x38')][_0xa91f('0xb9')](_0xa91f('0x111'));};AGIVertices['prototype'][_0xa91f('0xe')]=function(_0x7fccd8){logger[_0xa91f('0x30')](util['format'](_0xa91f('0x113'),_0x7fccd8['label']));if(_0x7fccd8['retry']===0x0){return this[_0xa91f('0xb6')](_0x7fccd8);}_0x7fccd8[_0xa91f('0xb7')]-=0x1;if(!this['isConfigured'](_0x7fccd8[_0xa91f('0x114')])){return this[_0xa91f('0x38')]['error'](_0x7fccd8,_0xa91f('0x115'));}var _0x52153f=this[_0xa91f('0x21')][_0xa91f('0x86')](this,_0x7fccd8[_0xa91f('0x114')]);if(!_0x52153f){return this[_0xa91f('0x38')][_0xa91f('0x2e')](_0x7fccd8,_0xa91f('0x116'));}if(!this[_0xa91f('0x96')](_0x7fccd8[_0xa91f('0xe8')])){return this[_0xa91f('0x38')][_0xa91f('0x2e')]('no\x20variable\x20selected\x20for\x20the\x20result');}var _0x153cf4=this['channel'][_0xa91f('0x117')](_0x52153f,_0x7fccd8[_0xa91f('0x118')],_0x7fccd8[_0xa91f('0x119')]);var _0x2a1fd2=_0x153cf4['result']?_0x153cf4[_0xa91f('0xbc')]['toString']():'';logger[_0xa91f('0x30')](_0xa91f('0x11a'),JSON[_0xa91f('0x88')](_0x153cf4));if(_0x153cf4[_0xa91f('0xbc')]===-0x1){this[_0xa91f('0x37')][_0xa91f('0x86')](this,_0x7fccd8,_0x2a1fd2);return _0x153cf4;}else if(_0x153cf4[_0xa91f('0xb3')]===_0xa91f('0x7b')){_0x153cf4[_0xa91f('0xbc')]=_0x2a1fd2[_0xa91f('0xac')]>=parseInt(_0x7fccd8[_0xa91f('0x11b')])?'x':'i';}else{_0x153cf4['result']=_0x2a1fd2['length']>=parseInt(_0x7fccd8[_0xa91f('0x11b')])&&_0x2a1fd2[_0xa91f('0xac')]<=parseInt(_0x7fccd8[_0xa91f('0x119')])?'x':'i';}var _0x217f10=this['getVariable']['sync'](this,_0x7fccd8[_0xa91f('0xe8')]);if(!_0x217f10){return this[_0xa91f('0x38')][_0xa91f('0x2e')](_0x7fccd8,_0xa91f('0xea'));}this[_0xa91f('0x38')][_0xa91f('0xb0')](_0x217f10,_0x2a1fd2);if(this['isConfigured'](_0x7fccd8[_0xa91f('0x11c')])){var _0x355dae=parseInt(_0x7fccd8[_0xa91f('0x11c')],0xa);var _0x4e1e3a=rs[_0xa91f('0x11d')]({'charset':'*','length':_0x355dae});var _0xea14ba=_0x2a1fd2[_0xa91f('0xac')];if(_0xea14ba>0x0){if(_0xea14ba>_0x355dae){this[_0xa91f('0x37')][_0xa91f('0x86')](this,_0x7fccd8,_0x7fccd8[_0xa91f('0x11e')]==='first'?_0x4e1e3a+_0x2a1fd2['substr'](_0x355dae):_0x2a1fd2[_0xa91f('0x11f')](0x0,_0xea14ba-_0x355dae)+_0x4e1e3a);}else{this['createSquareDetailsReport'][_0xa91f('0x86')](this,_0x7fccd8,rs[_0xa91f('0x11d')]({'charset':'*','length':_0xea14ba}));}}else{this[_0xa91f('0x37')][_0xa91f('0x86')](this,_0x7fccd8,'');}}else{this['createSquareDetailsReport'][_0xa91f('0x86')](this,_0x7fccd8,_0x2a1fd2);}return _0x153cf4;};AGIVertices[_0xa91f('0x11')]['getsecretdigits']=function(_0x1d85f8){logger[_0xa91f('0x30')](util[_0xa91f('0x2a')](_0xa91f('0x120'),_0x1d85f8[_0xa91f('0xb8')]));return this[_0xa91f('0xe')](_0x1d85f8);};AGIVertices[_0xa91f('0x11')][_0xa91f('0x121')]=function(_0x524e83){logger[_0xa91f('0x30')](util[_0xa91f('0x2a')](_0xa91f('0x122'),_0x524e83[_0xa91f('0xb8')]));this[_0xa91f('0x37')][_0xa91f('0x86')](this,_0x524e83,_0x524e83[_0xa91f('0x123')]);return this['channel']['noop'](util[_0xa91f('0x2a')](_0xa91f('0x124'),_0x524e83[_0xa91f('0x123')]));};AGIVertices[_0xa91f('0x11')][_0xa91f('0x125')]=function(_0x227ae4){logger[_0xa91f('0x30')](util['format'](_0xa91f('0x126'),_0x227ae4[_0xa91f('0xb8')]));if(!this['isConfigured'](_0x227ae4[_0xa91f('0x99')])||!this[_0xa91f('0x96')](_0x227ae4[_0xa91f('0x9f')])){return this['channel']['noop']('no\x20valid\x20credentials\x20configured');}if(!this[_0xa91f('0x96')](_0x227ae4['text'])){return this[_0xa91f('0x38')][_0xa91f('0xb9')](_0xa91f('0xba'));}this[_0xa91f('0x38')]['noop'](util[_0xa91f('0x2a')]('Trying\x20aws\x20Polly\x20%s',_0x227ae4[_0xa91f('0x71')]));var _0x1a180e=this['awsPolly'][_0xa91f('0x86')](this,_0x227ae4);if(_0x1a180e){this[_0xa91f('0x38')][_0xa91f('0xb9')](util[_0xa91f('0x2a')](_0xa91f('0x127'),_0x1a180e));var _0x380cda=this[_0xa91f('0x38')][_0xa91f('0x105')](_0x1a180e);try{fs[_0xa91f('0x107')](_0x1a180e+_0xa91f('0x108'));}catch(_0x5e8852){logger['error'](_0x5e8852);}return _0x380cda;}return this['channel'][_0xa91f('0x2e')](_0x227ae4,_0xa91f('0x128'));};AGIVertices['prototype'][_0xa91f('0x129')]=function(_0x161de7){logger['info'](util[_0xa91f('0x2a')](_0xa91f('0x12a'),_0x161de7[_0xa91f('0xb8')]));if(!this[_0xa91f('0x96')](_0x161de7['aws_access_key_id'])||!this['isConfigured'](_0x161de7['aws_secret_access_key'])){return this[_0xa91f('0x38')][_0xa91f('0xb9')]('no\x20valid\x20credentials\x20configured');}if(!this[_0xa91f('0x96')](_0x161de7['aws_bot_name'])){return this[_0xa91f('0x38')][_0xa91f('0xb9')](_0xa91f('0x12b'));}if(!this['isConfigured'](_0x161de7[_0xa91f('0x71')])){return this['channel'][_0xa91f('0xb9')]('no\x20text\x20configured');}this[_0xa91f('0x38')]['bot']=!![];this[_0xa91f('0x37')](_0x161de7);this[_0xa91f('0x43')](_0x161de7[_0xa91f('0x71')],'in');this[_0xa91f('0x38')][_0xa91f('0xb9')](util['format'](_0xa91f('0x12c'),_0x161de7[_0xa91f('0x71')]));var _0x53bbc4=this[_0xa91f('0x9e')][_0xa91f('0x86')](this,_0x161de7);if(_0x53bbc4){for(var _0x50659d in _0x53bbc4){if(_0x53bbc4[_0xa91f('0xa6')](_0x50659d)&&_[_0xa91f('0xad')](_0x53bbc4[_0x50659d])){this[_0xa91f('0x38')][_0xa91f('0xb0')](util[_0xa91f('0x2a')]('AWS_LEX_%s',_0x50659d['toUpperCase']()),_0x53bbc4[_0x50659d]);}}if(_[_0xa91f('0x48')](_0x53bbc4[_0xa91f('0x8d')])){return this['channel']['noop'](_0xa91f('0x12d'));}else{this['createSquareMessage'](_0x53bbc4['message'],_0xa91f('0xf9'));return this[_0xa91f('0x38')][_0xa91f('0xb9')](util[_0xa91f('0x2a')](_0xa91f('0x12e'),_0x53bbc4[_0xa91f('0x8d')]));}}return this[_0xa91f('0x38')][_0xa91f('0x2e')](_0x161de7,_0xa91f('0x12f'));};AGIVertices[_0xa91f('0x11')][_0xa91f('0x130')]=function(_0x1276e9){logger[_0xa91f('0x30')](util[_0xa91f('0x2a')](_0xa91f('0x131'),_0x1276e9[_0xa91f('0xb8')],_0x1276e9[_0xa91f('0x7b')]));if(!this[_0xa91f('0x96')](_0x1276e9[_0xa91f('0x90')])){return this['channel']['noop']('no\x20key\x20configured');}var _0x18efbd='wav';var _0x5c2642=util['format'](_0xa91f('0x132'),FILES_PATH,rs[_0xa91f('0x11d')](0x4));var _0xab358b=util['format'](_0xa91f('0xaf'),_0x5c2642,_0x18efbd);var _0x55683e=!![];if(_0x1276e9[_0xa91f('0x133')]==='NOBEEP'){_0x55683e=![];}var _0x4d74e6=this[_0xa91f('0x38')][_0xa91f('0x134')](_0x5c2642,_0x18efbd,_0x1276e9['intKey'],_0x1276e9[_0xa91f('0x7b')],undefined,_0x55683e);if(_0x4d74e6[_0xa91f('0xbc')]!==-0x1){this[_0xa91f('0x38')]['noop'](util[_0xa91f('0x2a')]('google\x20%s\x20file\x20created',_0xab358b));var _0x50dd24=this[_0xa91f('0xa2')][_0xa91f('0x86')](this,_0x1276e9,_0xab358b);if(_0x50dd24){for(var _0x4fd228 in _0x50dd24){if(_0x50dd24[_0xa91f('0xa6')](_0x4fd228)){this['channel'][_0xa91f('0xb0')](util['format'](_0xa91f('0x135'),_0x4fd228[_0xa91f('0x80')]()),_0x50dd24[_0x4fd228]);}}return this[_0xa91f('0x38')]['noop'](util['format'](_0xa91f('0x136'),JSON[_0xa91f('0x88')](_0x50dd24)));}}return _0x4d74e6;};AGIVertices['prototype'][_0xa91f('0x137')]=function(_0x5e0883){logger[_0xa91f('0x30')](util[_0xa91f('0x2a')](_0xa91f('0x138'),_0x5e0883['label']));if(!this[_0xa91f('0x96')](_0x5e0883[_0xa91f('0x139')])){return this[_0xa91f('0x38')]['noop']('no\x20appid\x20configured');}if(!this['isConfigured'](_0x5e0883['appsecret'])){return this[_0xa91f('0x38')][_0xa91f('0xb9')](_0xa91f('0x13a'));}var _0x3a3ee9=_0xa91f('0x13b');var _0x5f5676=util[_0xa91f('0x2a')]('%s/recordings/%s',FILES_PATH,rs['generate'](0x4));var _0x3b67b5=util[_0xa91f('0x2a')](_0xa91f('0xaf'),_0x5f5676,_0x3a3ee9);var _0x32422d=!![];if(_0x5e0883[_0xa91f('0x133')]===_0xa91f('0x13c')){_0x32422d=![];}var _0xfa27f3=this[_0xa91f('0x38')]['recordFile'](_0x5f5676,_0x3a3ee9,_0x5e0883['intKey'],_0x5e0883[_0xa91f('0x7b')],undefined,_0x32422d);if(_0xfa27f3[_0xa91f('0xbc')]!==-0x1){this['channel'][_0xa91f('0xb9')](util[_0xa91f('0x2a')]('tilde\x20%s\x20file\x20created',_0x3b67b5));var _0x4a8363=this[_0xa91f('0xa3')][_0xa91f('0x86')](this,_0x5e0883,_0x3b67b5);if(_0x4a8363){for(var _0x3e75f0 in _0x4a8363){if(_0x4a8363[_0xa91f('0xa6')](_0x3e75f0)){this[_0xa91f('0x38')]['setVariable'](util['format'](_0xa91f('0x13d'),_0x3e75f0[_0xa91f('0x80')]()),_0x4a8363[_0x3e75f0]);}}return this['channel'][_0xa91f('0xb9')](util[_0xa91f('0x2a')](_0xa91f('0x13e'),JSON[_0xa91f('0x88')](_0x4a8363)));}}return _0xfa27f3;};AGIVertices[_0xa91f('0x11')][_0xa91f('0x13f')]=function(_0x4446c5){logger[_0xa91f('0x30')](util['format'](_0xa91f('0x140'),_0x4446c5['label']));return this['channel'][_0xa91f('0x141')](_0x4446c5[_0xa91f('0x3e')],_0x4446c5[_0xa91f('0x3f')],_0x4446c5['priority']);};AGIVertices[_0xa91f('0x11')][_0xa91f('0x142')]=function(_0x3d7f28){logger[_0xa91f('0x30')](util[_0xa91f('0x2a')](_0xa91f('0x143'),_0x3d7f28[_0xa91f('0xb8')]));if(!this[_0xa91f('0x96')](_0x3d7f28[_0xa91f('0x144')])){return this[_0xa91f('0x38')][_0xa91f('0x2e')](_0x3d7f28,_0xa91f('0x145'));}try{var _0x2644a2=eval(_0x3d7f28[_0xa91f('0x144')])?_0xa91f('0x146'):_0xa91f('0x147');this['channel'][_0xa91f('0xb9')](util[_0xa91f('0x2a')](_0xa91f('0x148'),_0x3d7f28[_0xa91f('0x144')],_0x2644a2));return{'code':0xc8,'result':_0x2644a2};}catch(_0x3bcdc1){return{'code':0xc8,'result':_0xa91f('0x147')};}};AGIVertices[_0xa91f('0x11')][_0xa91f('0x149')]=function(_0x58533d){logger['info'](util['format'](_0xa91f('0x14a'),_0x58533d[_0xa91f('0xb8')]));if(!this[_0xa91f('0x96')](_0x58533d[_0xa91f('0x14b')])){return this[_0xa91f('0x38')]['error'](_0x58533d,_0xa91f('0x14c'));}var _0x3e1fb7=this[_0xa91f('0x26')][_0xa91f('0x86')](this,_0x58533d[_0xa91f('0x14b')]);if(!_0x3e1fb7){return this[_0xa91f('0x38')][_0xa91f('0x2e')](_0x58533d,'no\x20intervals\x20found');}for(var _0x50b5cd=0x0;_0x50b5cd<_0x3e1fb7[_0xa91f('0xac')];_0x50b5cd+=0x1){var _0x358aee=this[_0xa91f('0x38')][_0xa91f('0x12')](util[_0xa91f('0x2a')](_0xa91f('0x14d'),_0x3e1fb7[_0x50b5cd]));if(_0x358aee[_0xa91f('0xbc')]===-0x1){return _0x358aee;}logger[_0xa91f('0x30')](util[_0xa91f('0x2a')](_0xa91f('0x14e'),_0x3e1fb7[_0x50b5cd],_0x358aee['extra']));if(_0x358aee[_0xa91f('0xb3')]===_0xa91f('0x146')){logger[_0xa91f('0x30')](util[_0xa91f('0x2a')](_0xa91f('0x14e'),_0x3e1fb7[_0x50b5cd],'true'));this[_0xa91f('0x38')]['noop'](util['format']('IFTIME\x20%s\x20%s',_0x3e1fb7[_0x50b5cd],_0xa91f('0x146')));return{'code':0xc8,'result':'true'};}else{logger[_0xa91f('0x30')](util['format'](_0xa91f('0x14e'),_0x3e1fb7[_0x50b5cd],_0xa91f('0x147')));this['channel'][_0xa91f('0xb9')](util['format']('IFTIME\x20%s\x20%s',_0x3e1fb7[_0x50b5cd],_0xa91f('0x147')));}}return{'code':0xc8,'result':_0xa91f('0x147')};};AGIVertices[_0xa91f('0x11')][_0xa91f('0x14f')]=function(_0x4df3b1){logger['info'](util[_0xa91f('0x2a')]('Enter\x20in\x20HANGUP\x20(%s)\x20block',_0x4df3b1[_0xa91f('0xb8')]));return this[_0xa91f('0x38')][_0xa91f('0x14f')]();};AGIVertices['prototype']['ispeechasr']=function(_0x5ce639){logger[_0xa91f('0x30')](util[_0xa91f('0x2a')](_0xa91f('0x150'),_0x5ce639[_0xa91f('0xb8')]));if(!this['isConfigured'](_0x5ce639[_0xa91f('0x90')])){return this[_0xa91f('0x38')][_0xa91f('0xb9')](_0xa91f('0x151'));}var _0x597659='wav';var _0x2120c5=util[_0xa91f('0x2a')]('%s/recordings/%s',FILES_PATH,rs['generate'](0x4));var _0x41fd84=util[_0xa91f('0x2a')](_0xa91f('0xaf'),_0x2120c5,_0x597659);var _0x5ae79b=!![];if(_0x5ce639[_0xa91f('0x133')]==='NOBEEP'){_0x5ae79b=![];}var _0x5abde3=this[_0xa91f('0x38')][_0xa91f('0x134')](_0x2120c5,_0x597659,_0x5ce639[_0xa91f('0x152')],_0x5ce639[_0xa91f('0x7b')],undefined,_0x5ae79b);if(_0x5abde3[_0xa91f('0xbc')]!==-0x1){this['channel'][_0xa91f('0xb9')](util['format'](_0xa91f('0x153'),_0x41fd84));var _0x52e974=this[_0xa91f('0x95')][_0xa91f('0x86')](this,_0x5ce639,_0x41fd84);if(_0x52e974){for(var _0x212c19 in _0x52e974){if(_0x52e974[_0xa91f('0xa6')](_0x212c19)){this[_0xa91f('0x38')][_0xa91f('0xb0')](util['format'](_0xa91f('0x154'),_0x212c19[_0xa91f('0x80')]()),_0x52e974[_0x212c19]);}}return this[_0xa91f('0x38')][_0xa91f('0xb9')](util[_0xa91f('0x2a')](_0xa91f('0x155'),JSON['stringify'](_0x52e974)));}}return _0x5abde3;};AGIVertices[_0xa91f('0x11')][_0xa91f('0x156')]=function(_0x3f3175){logger[_0xa91f('0x30')](util['format'](_0xa91f('0x157'),_0x3f3175['label']));if(!this['isConfigured'](_0x3f3175[_0xa91f('0x90')])){return this[_0xa91f('0x38')]['noop'](_0xa91f('0x151'));}if(!this[_0xa91f('0x96')](_0x3f3175[_0xa91f('0x71')])){return this[_0xa91f('0x38')][_0xa91f('0xb9')](_0xa91f('0xba'));}this[_0xa91f('0x38')]['noop'](util[_0xa91f('0x2a')](_0xa91f('0x158'),_0x3f3175[_0xa91f('0x71')]));var _0x313e7f=this[_0xa91f('0x92')]['sync'](this,_0x3f3175);if(_0x313e7f){this[_0xa91f('0x38')]['noop'](util[_0xa91f('0x2a')](_0xa91f('0x153'),_0x313e7f));var _0x20b71f=this[_0xa91f('0x38')][_0xa91f('0x105')](_0x313e7f,_0x3f3175[_0xa91f('0x152')]);try{fs[_0xa91f('0x107')](_0x313e7f+_0xa91f('0x108'));}catch(_0x593cb8){logger[_0xa91f('0x2e')](_0x593cb8);}return _0x20b71f;}return this['channel'][_0xa91f('0x2e')](_0x3f3175,'ispeech\x20TTS\x20is\x20unreachable');};AGIVertices['prototype'][_0xa91f('0x159')]=function(_0x254a30){logger[_0xa91f('0x30')](util[_0xa91f('0x2a')](_0xa91f('0x15a'),_0x254a30[_0xa91f('0xb8')]));if(!this['isConfigured'](_0x254a30[_0xa91f('0x15b')])){return this[_0xa91f('0x38')][_0xa91f('0x2e')](_0x254a30,_0xa91f('0x15c'));}logger['info'](util[_0xa91f('0x2a')](_0xa91f('0x15d'),this[_0xa91f('0x38')]['callerid'],_0x254a30[_0xa91f('0x15b')]));var _0xfd66d1=this['agentLogin'][_0xa91f('0x86')](this,_0x254a30[_0xa91f('0x15b')]);if(_0xfd66d1){logger[_0xa91f('0x30')](util[_0xa91f('0x2a')](_0xa91f('0x15e'),this[_0xa91f('0x38')][_0xa91f('0x3b')],_0x254a30[_0xa91f('0x15b')]));this[_0xa91f('0x38')][_0xa91f('0xb9')](util[_0xa91f('0x2a')](_0xa91f('0x15e'),this[_0xa91f('0x38')]['callerid'],_0x254a30[_0xa91f('0x15b')]));return{'code':0xc8,'result':_0xa91f('0x15f')};}else{logger[_0xa91f('0x30')](util[_0xa91f('0x2a')](_0xa91f('0x160'),this[_0xa91f('0x38')][_0xa91f('0x3b')],_0x254a30[_0xa91f('0x15b')]));this[_0xa91f('0x38')][_0xa91f('0xb9')](util[_0xa91f('0x2a')](_0xa91f('0x160'),this[_0xa91f('0x38')][_0xa91f('0x3b')],_0x254a30[_0xa91f('0x15b')]));return{'code':0xc8,'result':_0xa91f('0x161')};}};AGIVertices['prototype'][_0xa91f('0x162')]=function(_0x103888){logger[_0xa91f('0x30')](util[_0xa91f('0x2a')](_0xa91f('0x163'),_0x103888['label']));if(!this[_0xa91f('0x96')](_0x103888[_0xa91f('0x15b')])){return this['channel'][_0xa91f('0x2e')](_0x103888,_0xa91f('0x15c'));}logger[_0xa91f('0x30')](util['format'](_0xa91f('0x15d'),this[_0xa91f('0x38')][_0xa91f('0x3b')],_0x103888[_0xa91f('0x15b')]));var _0x2fe2d3=this['agentLogout']['sync'](this,_0x103888['findBy']);if(_0x2fe2d3){logger[_0xa91f('0x30')](util[_0xa91f('0x2a')]('AGENT\x20%s\x20FOUND\x20BY',this[_0xa91f('0x38')][_0xa91f('0x3b')],_0x103888[_0xa91f('0x15b')]));this['channel'][_0xa91f('0xb9')](util[_0xa91f('0x2a')]('AGENT\x20%s\x20FOUND\x20BY',this['channel'][_0xa91f('0x3b')],_0x103888[_0xa91f('0x15b')]));return{'code':0xc8,'result':_0xa91f('0x15f')};}else{logger[_0xa91f('0x30')](util[_0xa91f('0x2a')](_0xa91f('0x160'),this[_0xa91f('0x38')][_0xa91f('0x3b')],_0x103888[_0xa91f('0x15b')]));this[_0xa91f('0x38')][_0xa91f('0xb9')](util[_0xa91f('0x2a')]('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this[_0xa91f('0x38')]['callerid'],_0x103888[_0xa91f('0x15b')]));return{'code':0xc8,'result':_0xa91f('0x161')};}};AGIVertices[_0xa91f('0x11')][_0xa91f('0x164')]=function(_0x1d3a31){logger['info'](util['format']('Enter\x20in\x20MATH\x20(%s)\x20block',_0x1d3a31['label']));if(!this[_0xa91f('0x96')](_0x1d3a31[_0xa91f('0x165')])){return this['channel']['error'](_0x1d3a31,'no\x20operation\x20configured');}this['channel']['noop'](util[_0xa91f('0x2a')]('math\x20%s',_0x1d3a31[_0xa91f('0x165')]));var _0xe679f=eval(_0x1d3a31['operation']);if(!this['isConfigured'](_0x1d3a31[_0xa91f('0xe8')])){return this['channel'][_0xa91f('0xb9')](_0xa91f('0xe9'));}var _0x5d3fea=this['getVariable'][_0xa91f('0x86')](this,_0x1d3a31[_0xa91f('0xe8')]);if(!_0x5d3fea){return this[_0xa91f('0x38')][_0xa91f('0x2e')](_0x1d3a31,_0xa91f('0xea'));}if(_['isArray'](_0xe679f)){var _0x2d746a=this;_0xe679f[_0xa91f('0xeb')](function(_0x4de60e,_0x5049c8){_0x2d746a[_0xa91f('0x38')][_0xa91f('0xb0')](util[_0xa91f('0x2a')](_0xa91f('0x166'),_0x5d3fea,_0x5049c8),_0x4de60e);});return this[_0xa91f('0x38')][_0xa91f('0xb9')](util[_0xa91f('0x2a')](_0xa91f('0x167'),_0x5d3fea));}else{return this['channel'][_0xa91f('0xb0')](_0x5d3fea,_0xe679f);}};AGIVertices[_0xa91f('0x11')]['menu']=function(_0x31fe83){logger[_0xa91f('0x30')](util[_0xa91f('0x2a')](_0xa91f('0x168'),_0x31fe83[_0xa91f('0xb8')]));if(_0x31fe83['retry']===0x0){return this[_0xa91f('0xb6')](_0x31fe83);}_0x31fe83[_0xa91f('0xb7')]-=0x1;if(!this[_0xa91f('0x96')](_0x31fe83[_0xa91f('0x114')])){return this[_0xa91f('0x38')][_0xa91f('0x2e')](_0x31fe83,'no\x20file\x20audio\x20selected');}var _0x5e0b72=this[_0xa91f('0x21')]['sync'](this,_0x31fe83[_0xa91f('0x114')]);if(!_0x5e0b72){return this[_0xa91f('0x38')]['error'](_0x31fe83,_0xa91f('0x116'));}var _0x28a2a0=this['channel'][_0xa91f('0x117')](_0x5e0b72,_0x31fe83[_0xa91f('0x118')],_0x31fe83[_0xa91f('0x169')]);var _0x3117cc=_0x28a2a0[_0xa91f('0xbc')];if(_0x28a2a0['result']===-0x1){this[_0xa91f('0x37')][_0xa91f('0x86')](this,_0x31fe83,'-1');return _0x28a2a0;}else if(_0x28a2a0[_0xa91f('0xb3')]==='timeout'){_0x28a2a0[_0xa91f('0xbc')]=_0x28a2a0[_0xa91f('0xbc')][_0xa91f('0xac')]>0x0?_0x28a2a0[_0xa91f('0xbc')]:'t';}else if(_[_0xa91f('0x47')](_0x28a2a0[_0xa91f('0xbc')])){_0x28a2a0[_0xa91f('0xbc')]='#';_0x3117cc='#';}if(!this[_0xa91f('0x96')](_0x31fe83[_0xa91f('0xe8')])){this[_0xa91f('0x38')][_0xa91f('0xb9')](_0xa91f('0xe9'));}else{var _0x34e605=this[_0xa91f('0x12')][_0xa91f('0x86')](this,_0x31fe83['variable_id']);if(!_0x34e605){return this[_0xa91f('0x38')]['error'](_0x31fe83,_0xa91f('0xea'));}this[_0xa91f('0x38')]['setVariable'](_0x34e605,_0x3117cc);}this[_0xa91f('0x37')][_0xa91f('0x86')](this,_0x31fe83,_0x3117cc);return _0x28a2a0;};AGIVertices[_0xa91f('0x11')][_0xa91f('0xb9')]=function(_0x3b539e){logger[_0xa91f('0x30')](util['format'](_0xa91f('0x16a'),_0x3b539e[_0xa91f('0xb8')]));return this[_0xa91f('0x38')][_0xa91f('0xb9')](_0x3b539e[_0xa91f('0x16b')]||_0x3b539e['label']);};AGIVertices['prototype'][_0xa91f('0x16c')]=function(_0x2f6a86){logger[_0xa91f('0x30')](util[_0xa91f('0x2a')](_0xa91f('0x16d'),_0x2f6a86[_0xa91f('0xb8')]));if(!this[_0xa91f('0x96')](_0x2f6a86[_0xa91f('0x15b')])){return this['channel'][_0xa91f('0x2e')](_0x2f6a86,'no\x20find\x20by\x20configured');}logger['info'](util[_0xa91f('0x2a')](_0xa91f('0x15d'),this[_0xa91f('0x38')][_0xa91f('0x3b')],_0x2f6a86[_0xa91f('0x15b')]));var _0x49aedb=this[_0xa91f('0x62')][_0xa91f('0x86')](this,_0x2f6a86[_0xa91f('0x16e')]);var _0x4d339a=this['agentPause'][_0xa91f('0x86')](this,_0x2f6a86[_0xa91f('0x15b')],_0x49aedb);if(_0x4d339a){logger[_0xa91f('0x30')](util[_0xa91f('0x2a')]('AGENT\x20%s\x20FOUND\x20BY',this[_0xa91f('0x38')]['callerid'],_0x2f6a86['findBy']));this['channel']['noop'](util[_0xa91f('0x2a')]('AGENT\x20%s\x20FOUND\x20BY',this[_0xa91f('0x38')]['callerid'],_0x2f6a86[_0xa91f('0x15b')]));return{'code':0xc8,'result':_0xa91f('0x15f')};}else{logger[_0xa91f('0x30')](util[_0xa91f('0x2a')](_0xa91f('0x160'),this[_0xa91f('0x38')][_0xa91f('0x3b')],_0x2f6a86['findBy']));this[_0xa91f('0x38')]['noop'](util[_0xa91f('0x2a')](_0xa91f('0x15e'),this['channel'][_0xa91f('0x3b')],_0x2f6a86[_0xa91f('0x15b')]));return{'code':0xc8,'result':'failure'};}};AGIVertices['prototype'][_0xa91f('0x16f')]=function(_0x367199){logger[_0xa91f('0x30')](util[_0xa91f('0x2a')]('Enter\x20in\x20PLAYBACK\x20(%s)\x20block',_0x367199[_0xa91f('0xb8')]));if(!this[_0xa91f('0x96')](_0x367199['file_id'])){return this[_0xa91f('0x38')]['error'](_0x367199,'no\x20file\x20audio\x20selected');}var _0x434352=this[_0xa91f('0x21')][_0xa91f('0x86')](this,_0x367199[_0xa91f('0x114')]);if(!_0x434352){return this[_0xa91f('0x38')]['error'](_0x367199,_0xa91f('0x116'));}var _0x3aef29=this['channel'][_0xa91f('0x6c')]('PLAYBACK',[_0x434352,_0x367199[_0xa91f('0xf3')]]);if(_0x3aef29[_0xa91f('0xbc')]===-0x1){return _0x3aef29;}return this[_0xa91f('0x38')][_0xa91f('0xb9')](util[_0xa91f('0x2a')](_0xa91f('0xd6'),_0xa91f('0x170'),_0x434352));};AGIVertices[_0xa91f('0x11')][_0xa91f('0x171')]=function(_0x5f4f93){logger[_0xa91f('0x30')](util[_0xa91f('0x2a')](_0xa91f('0x172'),_0x5f4f93[_0xa91f('0xb8')]));if(!this[_0xa91f('0x96')](_0x5f4f93[_0xa91f('0x173')])){return this[_0xa91f('0x38')][_0xa91f('0x2e')](_0x5f4f93,'no\x20queue\x20selected');}var _0x15983c='';var _0xd10bf9=parseInt(_0x5f4f93[_0xa91f('0x173')],0xa);if(isNaN(_0xd10bf9)){_0x15983c=_0x5f4f93[_0xa91f('0x173')];}else{_0x15983c=this['getVoiceQueue']['sync'](this,_0x5f4f93[_0xa91f('0x173')]);if(!_0x15983c){return this[_0xa91f('0x38')][_0xa91f('0x2e')](_0x5f4f93,'no\x20queue\x20found');}}var _0x4a8eb4='';if(this[_0xa91f('0x96')](_0x5f4f93[_0xa91f('0x114')])){var _0x3c297b=this['getSound']['sync'](this,_0x5f4f93[_0xa91f('0x114')]);if(_0x3c297b){_0x4a8eb4=_0x3c297b;}}this[_0xa91f('0x37')][_0xa91f('0x86')](this,_0x5f4f93,_0x15983c);if(_0x5f4f93[_0xa91f('0xf3')][_0xa91f('0x174')]('x')<0x0){_0x5f4f93[_0xa91f('0xf3')]+='x';}if(_0x5f4f93[_0xa91f('0xf3')][_0xa91f('0x174')]('X')<0x0){_0x5f4f93['opts']+='X';}this[_0xa91f('0x38')][_0xa91f('0xb0')](_0xa91f('0x175'),_0x15983c?_0x15983c['toLowerCase']():'');var _0x2aa75c=this[_0xa91f('0x38')][_0xa91f('0x6c')](_0xa91f('0x176'),[_0x15983c,_0x5f4f93[_0xa91f('0xf3')],_0x5f4f93[_0xa91f('0x110')],_0x4a8eb4,_0x5f4f93[_0xa91f('0x7b')],_0x5f4f93['agi'],_0x5f4f93[_0xa91f('0x177')],_0x5f4f93[_0xa91f('0x178')],'',_0x5f4f93['position']]);if(_0x2aa75c['result']===-0x1){return _0x2aa75c;}return this['channel']['noop'](util[_0xa91f('0x2a')](_0xa91f('0xd6'),_0xa91f('0x176'),_0x15983c));};AGIVertices[_0xa91f('0x11')][_0xa91f('0x179')]=function(_0x3f7ab6){logger[_0xa91f('0x30')](util['format'](_0xa91f('0x17a'),_0x3f7ab6[_0xa91f('0xb8')]));var _0x5730b0=_0x3f7ab6[_0xa91f('0x17b')]||_0xa91f('0x13b');var _0x4c45e3=util['format']('%s_%s',this[_0xa91f('0x38')][_0xa91f('0x4d')],rs['generate'](0x5));var _0x5688aa=util[_0xa91f('0x2a')]('%s/recordings/%s.%s',FILES_PATH,_0x4c45e3,_0x5730b0);var _0x241226=util['format'](_0xa91f('0x132'),FILES_PATH,_0x4c45e3);this[_0xa91f('0x3c')][_0xa91f('0x86')](this,_0x3f7ab6,_0x4c45e3,_0x5688aa);this[_0xa91f('0x38')]['setVariable']('RECORDING_SAVENAME',_0x4c45e3);logger[_0xa91f('0x30')](_0xa91f('0x17c'),_0x241226,_0x5730b0,_0x3f7ab6['escape_digits'],_0x3f7ab6[_0xa91f('0x7b')]);return this[_0xa91f('0x38')][_0xa91f('0x134')](_0x241226,_0x5730b0,_0x3f7ab6[_0xa91f('0x17d')],_0x3f7ab6[_0xa91f('0x7b')],undefined,!![]);};AGIVertices[_0xa91f('0x11')]['restapi']=function(_0x5151f0){logger[_0xa91f('0x30')](util[_0xa91f('0x2a')](_0xa91f('0x17e'),_0x5151f0['label']));if(!this[_0xa91f('0x96')](_0x5151f0['url'])){return this[_0xa91f('0x38')][_0xa91f('0xb9')]('no\x20url\x20configured');}var _0x1aad69=this[_0xa91f('0x79')][_0xa91f('0x86')](this,_0x5151f0);logger['info'](util[_0xa91f('0x2a')]('Response:',util[_0xa91f('0x17f')](_0x1aad69,{'showHidden':![],'depth':null})));if(!this[_0xa91f('0x96')](_0x5151f0['variable_id'])){return this[_0xa91f('0x38')][_0xa91f('0xb9')](_0xa91f('0x180'));}var _0x44be9c=this[_0xa91f('0x12')][_0xa91f('0x86')](this,_0x5151f0[_0xa91f('0xe8')]);if(!_0x44be9c){return this['channel'][_0xa91f('0x2e')](_0x5151f0,_0xa91f('0xea'));}this[_0xa91f('0x38')][_0xa91f('0xb0')](util[_0xa91f('0x2a')](_0xa91f('0x181'),_0x44be9c),_0x1aad69[_0xa91f('0x8b')]?_0x1aad69[_0xa91f('0x8b')]:_0xa91f('0x182'));this[_0xa91f('0x38')][_0xa91f('0xb0')](util[_0xa91f('0x2a')]('%s_STATUS_MESSAGE',_0x44be9c),_0x1aad69[_0xa91f('0x8c')]?_0x1aad69[_0xa91f('0x8c')]:'OK');if(_0x1aad69[_0xa91f('0x89')]){try{this[_0xa91f('0xae')](_0x1aad69[_0xa91f('0x89')],_0x44be9c);}catch(_0x395c1d){logger[_0xa91f('0x2e')](util['format'](_0xa91f('0x183'),_0x44be9c));}}return this[_0xa91f('0x38')][_0xa91f('0xb9')](util[_0xa91f('0x2a')](_0xa91f('0xee'),_0x44be9c));};AGIVertices[_0xa91f('0x11')][_0xa91f('0x184')]=function(_0x15e352){logger['info'](util[_0xa91f('0x2a')]('Enter\x20in\x20SAYDIGITS\x20(%s)\x20block',_0x15e352[_0xa91f('0xb8')]));return this[_0xa91f('0x38')][_0xa91f('0x185')](_0x15e352[_0xa91f('0x186')]['replace'](/\s+/g,''),_0x15e352[_0xa91f('0x17d')]);};AGIVertices[_0xa91f('0x11')][_0xa91f('0x187')]=function(_0x3feca9){logger[_0xa91f('0x30')](util['format'](_0xa91f('0x188'),_0x3feca9[_0xa91f('0xb8')]));return this[_0xa91f('0x38')][_0xa91f('0x189')](_0x3feca9['number'][_0xa91f('0x6e')](/\s+/g,''),_0x3feca9[_0xa91f('0x17d')]);};AGIVertices['prototype'][_0xa91f('0x18a')]=function(_0x16062f){logger[_0xa91f('0x30')](util['format'](_0xa91f('0x18b'),_0x16062f[_0xa91f('0xb8')]));return this[_0xa91f('0x38')][_0xa91f('0x18c')](_0x16062f['text'],_0x16062f['escape_digits']);};AGIVertices['prototype'][_0xa91f('0x18d')]=function(_0x590fd2){logger[_0xa91f('0x30')](util['format']('Enter\x20in\x20SENDMAIL\x20(%s)\x20block',_0x590fd2['label']));if(!this['isConfigured'](_0x590fd2[_0xa91f('0x18e')])){return this[_0xa91f('0x38')][_0xa91f('0xb9')](_0xa91f('0x18f'));}var _0xac2d35=this[_0xa91f('0x190')]['sync'](this,_0x590fd2[_0xa91f('0x18e')]);if(!_0xac2d35||!_0xac2d35['Smtp']){return this['channel']['error'](_0x590fd2,_0xa91f('0x191'));}var _0x50d1e8={'from':util[_0xa91f('0x2a')](_0xa91f('0x192'),_0xac2d35[_0xa91f('0x16')],_0xac2d35[_0xa91f('0x193')]||_0xac2d35[_0xa91f('0x194')][_0xa91f('0x195')]),'to':_0x590fd2['to']||'','cc':_0x590fd2['cc']||'','bcc':_0x590fd2[_0xa91f('0x196')]||'','subject':_0x590fd2[_0xa91f('0x197')],'html':_0x590fd2['text'],'text':_0x590fd2[_0xa91f('0x71')]};var _0x195603={'tls':{'rejectUnauthorized':![]}};if(_0xac2d35[_0xa91f('0x194')][_0xa91f('0x198')]){_0x195603[_0xa91f('0x198')]=_0xac2d35['Smtp'][_0xa91f('0x198')];}else{_0x195603[_0xa91f('0x199')]=_0xac2d35[_0xa91f('0x194')][_0xa91f('0x199')];_0x195603[_0xa91f('0x19a')]=_0xac2d35['Smtp']['port'];_0x195603[_0xa91f('0x19b')]=_0xac2d35[_0xa91f('0x194')]['secure'];}if(_0xac2d35['Smtp'][_0xa91f('0x19c')]){_0x195603['auth']={'user':_0xac2d35[_0xa91f('0x194')][_0xa91f('0x195')],'pass':_0xac2d35['Smtp'][_0xa91f('0x19d')]};}if(this[_0xa91f('0x96')](_0x590fd2['template_id'])){}logger[_0xa91f('0xef')](_0xa91f('0x19e'),JSON['stringify'](_0x50d1e8));this[_0xa91f('0x37')][_0xa91f('0x86')](this,_0x590fd2,_0x590fd2[_0xa91f('0x18e')]);this[_0xa91f('0x38')][_0xa91f('0xb9')](util[_0xa91f('0x2a')]('Trying\x20SendMail\x20with\x20account\x20%s',_0xac2d35[_0xa91f('0x16')]));this[_0xa91f('0x24')][_0xa91f('0x86')](this,_0x195603,_0x50d1e8);return this['channel'][_0xa91f('0xb9')](_0xa91f('0x19f'));};AGIVertices['prototype'][_0xa91f('0x1a0')]=function(_0x34f521){logger[_0xa91f('0x30')](util[_0xa91f('0x2a')](_0xa91f('0x1a1'),_0x34f521[_0xa91f('0xb8')]));return this[_0xa91f('0x38')][_0xa91f('0xb9')](_0xa91f('0x1a2'));};AGIVertices[_0xa91f('0x11')]['sendSMS']=function(_0x22c66b){logger[_0xa91f('0x30')](util[_0xa91f('0x2a')](_0xa91f('0x1a3'),_0x22c66b[_0xa91f('0xb8')]));if(!this['isConfigured'](_0x22c66b[_0xa91f('0x1a4')])){return this[_0xa91f('0x38')]['noop']('no\x20sms\x20account\x20configured');}var _0x3fa9d1=this[_0xa91f('0x35')][_0xa91f('0x86')](this,_0x22c66b['sms_account_id']);if(!_0x3fa9d1){return this[_0xa91f('0x38')][_0xa91f('0x2e')](_0x22c66b,_0xa91f('0x1a5'));}var _0x4b866c={'body':_0x22c66b[_0xa91f('0x1a6')],'phone':_0x22c66b['to']||'','SmsAccountId':_0x3fa9d1['id']};logger[_0xa91f('0xef')]('sendSMS\x20message',JSON[_0xa91f('0x88')](_0x4b866c));this[_0xa91f('0x37')][_0xa91f('0x86')](this,_0x22c66b,_0x22c66b['sms_account_id']);this[_0xa91f('0x38')][_0xa91f('0xb9')](util[_0xa91f('0x2a')](_0xa91f('0x1a7'),_0x3fa9d1[_0xa91f('0x16')]));this[_0xa91f('0x36')][_0xa91f('0x86')](this,_0x4b866c);return this[_0xa91f('0x38')]['noop'](_0xa91f('0x1a8'));};AGIVertices[_0xa91f('0x11')][_0xa91f('0x1a9')]=function(_0x434571){logger[_0xa91f('0x30')](util['format'](_0xa91f('0x1aa'),_0x434571[_0xa91f('0xb8')]));if(!this[_0xa91f('0x96')](_0x434571[_0xa91f('0xe8')])){return this['channel']['error'](_0x434571,'no\x20variable\x20selected');}var _0x277036=this[_0xa91f('0x12')][_0xa91f('0x86')](this,_0x434571[_0xa91f('0xe8')]);if(!_0x277036){return this['channel']['error'](_0x434571,_0xa91f('0xea'));}return this[_0xa91f('0x38')][_0xa91f('0xb0')](_0x277036,_0x434571[_0xa91f('0x1ab')]);};AGIVertices[_0xa91f('0x11')][_0xa91f('0x1ac')]=function(_0x26ae17){logger['info'](util[_0xa91f('0x2a')](_0xa91f('0x1ad'),_0x26ae17[_0xa91f('0xb8')]));this[_0xa91f('0x38')][_0xa91f('0xb9')](_0xa91f('0x1ae'));if(_0x26ae17[_0xa91f('0xca')]===_0xa91f('0x1af')){this['channel']['noop'](_0xa91f('0x1b0'));return this[_0xa91f('0x38')]['answer']();}return this[_0xa91f('0x38')]['noop']('Skipped\x20Answer');};AGIVertices[_0xa91f('0x11')][_0xa91f('0x1b1')]=function(_0x4efa10){logger['info'](util[_0xa91f('0x2a')](_0xa91f('0x1b2'),_0x4efa10[_0xa91f('0xb8')]));if(!this['isConfigured'](_0x4efa10[_0xa91f('0x1b3')])){return this[_0xa91f('0x38')][_0xa91f('0x2e')](_0x4efa10,_0xa91f('0x1b4'));}var _0x16ee6e=this[_0xa91f('0x18')][_0xa91f('0x86')](this,_0x4efa10[_0xa91f('0x1b3')]);if(!this['isConfigured'](_0x16ee6e)){return this[_0xa91f('0x38')]['error'](_0x4efa10,util[_0xa91f('0x2a')](_0xa91f('0x1b5'),_0x4efa10[_0xa91f('0x1b3')]));}if(_0x16ee6e===this[_0xa91f('0x38')][_0xa91f('0x3a')]){return this[_0xa91f('0x38')][_0xa91f('0x2e')](_0x4efa10,'project\x20in\x20subproject\x20must\x20be\x20different\x20from\x20the\x20called\x20project');}this[_0xa91f('0x37')][_0xa91f('0x86')](this,_0x4efa10,_0x16ee6e);var _0xafde22=this[_0xa91f('0x38')]['exec'](_0xa91f('0x1b6'),util['format'](_0xa91f('0x1b7'),config[_0xa91f('0x7')]['host']||_0xa91f('0x1b8'),_0x16ee6e,this[_0xa91f('0x38')][_0xa91f('0x3a')]));if(_0xafde22['result']===-0x1){return _0xafde22;}return this[_0xa91f('0x38')][_0xa91f('0xb9')](util[_0xa91f('0x2a')](_0xa91f('0xd6'),_0xa91f('0x1b6'),_0x16ee6e));};AGIVertices[_0xa91f('0x11')][_0xa91f('0x1b9')]=function(_0x1ed506){logger[_0xa91f('0x30')](util[_0xa91f('0x2a')](_0xa91f('0x1ba'),_0x1ed506[_0xa91f('0xb8')]));var _0x42f0fd=this[_0xa91f('0x6b')][_0xa91f('0x86')](this,_0x1ed506[_0xa91f('0xc8')]);this[_0xa91f('0x37')][_0xa91f('0x86')](this,_0x1ed506,_0x1ed506[_0xa91f('0xc8')]);if(this[_0xa91f('0x96')](_0x1ed506[_0xa91f('0xe8')])){var _0x36bd6f=this[_0xa91f('0x12')][_0xa91f('0x86')](this,_0x1ed506[_0xa91f('0xe8')]);if(_0x36bd6f){this['channel'][_0xa91f('0xb0')](_0x36bd6f,_0x42f0fd);return this['channel'][_0xa91f('0xb9')](util[_0xa91f('0x2a')](_0xa91f('0x1bb'),_0x1ed506[_0xa91f('0xc8')],_0x36bd6f));}}return this['channel'][_0xa91f('0xb9')](util[_0xa91f('0x2a')](_0xa91f('0x1bc'),_0x1ed506[_0xa91f('0xc8')]));};AGIVertices[_0xa91f('0x11')][_0xa91f('0x1bd')]=function(_0x1f48a4){logger[_0xa91f('0x30')](util[_0xa91f('0x2a')]('Enter\x20in\x20Google\x20Cloud\x20TTS\x20(%s)\x20block',_0x1f48a4[_0xa91f('0xb8')]));_0x1f48a4[_0xa91f('0x71')]=_0x1f48a4[_0xa91f('0x71')][_0xa91f('0x6e')](/(\r\n|\n|\r)/gm,'\x20');if(!this[_0xa91f('0x96')](_0x1f48a4[_0xa91f('0x1be')])){return this['channel'][_0xa91f('0xb9')](_0xa91f('0x1bf'));}if(!this[_0xa91f('0x96')](_0x1f48a4['text'])){return this['channel']['noop']('no\x20text\x20configured');}this['channel'][_0xa91f('0xb9')](util[_0xa91f('0x2a')](_0xa91f('0x1c0'),_0x1f48a4['text']));var _0x315a1c=this[_0xa91f('0x6f')][_0xa91f('0x86')](this,_0x1f48a4);if(_0x315a1c){this[_0xa91f('0x38')][_0xa91f('0xb9')](util[_0xa91f('0x2a')](_0xa91f('0x1c1'),_0x315a1c));var _0x596c15=this[_0xa91f('0x38')][_0xa91f('0x105')](_0x315a1c);try{fs[_0xa91f('0x107')](_0x315a1c+_0xa91f('0x108'));}catch(_0x168916){logger['error'](_0x168916);}return _0x596c15;}return this[_0xa91f('0x38')][_0xa91f('0x2e')](_0x1f48a4,_0xa91f('0x1c2'));};AGIVertices[_0xa91f('0x11')]['tts']=function(_0x26c708){logger['info'](util['format']('Enter\x20in\x20GOOGLETTS\x20(%s)\x20block',_0x26c708[_0xa91f('0xb8')]));_0x26c708[_0xa91f('0x71')]=_0x26c708['text']['replace'](/(\r\n|\n|\r)/gm,'\x20');if(!this[_0xa91f('0x96')](_0x26c708[_0xa91f('0x71')])){return this['channel'][_0xa91f('0xb9')](_0xa91f('0xba'));}this[_0xa91f('0x38')]['noop'](util[_0xa91f('0x2a')](_0xa91f('0x1c3'),_0x26c708[_0xa91f('0x71')]));var _0x2ed3a3=this[_0xa91f('0x78')][_0xa91f('0x86')](this,_0x26c708);if(_0x2ed3a3){this[_0xa91f('0x38')][_0xa91f('0xb9')](util[_0xa91f('0x2a')]('Google\x20TTS\x20%s\x20file\x20created',_0x2ed3a3));var _0x344306=this[_0xa91f('0x38')]['streamFile'](_0x2ed3a3);try{fs[_0xa91f('0x107')](_0x2ed3a3+_0xa91f('0x108'));}catch(_0x3fb609){logger['error'](_0x3fb609);}return _0x344306;}return this[_0xa91f('0x38')]['error'](_0x26c708,_0xa91f('0x1c4'));};AGIVertices[_0xa91f('0x11')][_0xa91f('0x1c5')]=function(_0x39d108){logger[_0xa91f('0x30')](util['format'](_0xa91f('0x1c6'),_0x39d108[_0xa91f('0xb8')]));if(!this['isConfigured'](_0x39d108[_0xa91f('0x15b')])){return this[_0xa91f('0x38')][_0xa91f('0x2e')](_0x39d108,_0xa91f('0x15c'));}logger['info'](util[_0xa91f('0x2a')](_0xa91f('0x15d'),this[_0xa91f('0x38')][_0xa91f('0x3b')],_0x39d108[_0xa91f('0x15b')]));var _0x27f805=this[_0xa91f('0x66')]['sync'](this,_0x39d108[_0xa91f('0x15b')]);if(_0x27f805){logger[_0xa91f('0x30')](util[_0xa91f('0x2a')](_0xa91f('0x15e'),this[_0xa91f('0x38')][_0xa91f('0x3b')],_0x39d108[_0xa91f('0x15b')]));this['channel'][_0xa91f('0xb9')](util[_0xa91f('0x2a')](_0xa91f('0x15e'),this[_0xa91f('0x38')][_0xa91f('0x3b')],_0x39d108['findBy']));return{'code':0xc8,'result':_0xa91f('0x15f')};}else{logger['info'](util[_0xa91f('0x2a')](_0xa91f('0x160'),this[_0xa91f('0x38')][_0xa91f('0x3b')],_0x39d108['findBy']));this[_0xa91f('0x38')][_0xa91f('0xb9')](util[_0xa91f('0x2a')]('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this[_0xa91f('0x38')]['callerid'],_0x39d108[_0xa91f('0x15b')]));return{'code':0xc8,'result':_0xa91f('0x161')};}};AGIVertices[_0xa91f('0x11')][_0xa91f('0x1c7')]=function(_0xa792b){logger[_0xa91f('0x30')](util[_0xa91f('0x2a')](_0xa91f('0x1c8'),_0xa792b[_0xa91f('0xb8')]));var _0x391233=this[_0xa91f('0x38')][_0xa91f('0x6c')]('VOICEMAIL',[_0xa792b[_0xa91f('0x1c9')],_0xa792b[_0xa91f('0x8e')]]);if(_0x391233[_0xa91f('0xbc')]===-0x1){return _0x391233;}return this[_0xa91f('0x38')][_0xa91f('0xb9')](util['format'](_0xa91f('0xd6'),_0xa91f('0x1ca'),_0xa792b[_0xa91f('0x1c9')]));};AGIVertices[_0xa91f('0x11')][_0xa91f('0x1cb')]=function(_0x5588a2){logger['info'](util[_0xa91f('0x2a')](_0xa91f('0x1cc'),_0x5588a2[_0xa91f('0xb8')]));if(!this['isConfigured'](_0x5588a2['variable_id'])){return this[_0xa91f('0x38')][_0xa91f('0x2e')](_0x5588a2,_0xa91f('0x1cd'));}var _0x33dcfc=this[_0xa91f('0x12')][_0xa91f('0x86')](this,_0x5588a2['variable_id']);if(!_0x33dcfc){return this[_0xa91f('0x38')][_0xa91f('0x2e')](_0x5588a2,_0xa91f('0xea'));}var _0x3ab64e=this[_0xa91f('0x38')][_0xa91f('0x12')](_0x33dcfc);return{'code':0xc8,'result':_0x3ab64e[_0xa91f('0xb3')]?_0x3ab64e[_0xa91f('0xb3')]:'-'};};String[_0xa91f('0x11')]['replaceAll']=function(_0x2d6617,_0x1bbd64){return this[_0xa91f('0xb1')](_0x2d6617)[_0xa91f('0x1ce')](_0x1bbd64);};module[_0xa91f('0x1cf')]=AGIVertices;
\ No newline at end of file
+var _0x1678=['timezones','getPause','agentPause','agentUnpause','agent','agentLogout','agentLogin','internal','%s/%s@from-sip/n','LOCAL','shellCommand','exec','trim','replace','apiKey','google_cloud_tts_text_type','text','languageCode','en-US','ssmlGender','MALE','audioEncoding','MP3','googleTTS','google_tts_language','restAPI','method','timeout','number','includes','PUT','toUpperCase','body','parse','An\x20incorrect\x20formatted\x20json\x20body\x20has\x20been\x20passed\x20to\x20the\x20function','headers','computedVariables','sync','uri','render','url','stringify','An\x20incorrect\x20formatted\x20json\x20has\x20been\x20passed\x20to\x20the\x20function','statusCode','statusMessage','message','500\x20-\x20Internal\x20Server\x20Error','options','googleDialogflow','key','dialogflow_language','sestekNDA','ispeechTTS','speed','model','awsPolly','aws_secret_access_key','aws_polly_region','aws_polly_voice','aws_text_type','aws_lex_region','aws_bot_name','googleASR','google_asr_language','tildeASR','appid','appsecret','clear','hasOwnProperty','isString','replaceObjectAllVariables','replaceAllVariables','recursiveNodeIndex','length','saveRestApiResult','isArray','%s.%s','replaceall\x20init','split','nextbracket','replaceAll','extra','toString','replaceall\x20end','getAndSetVariable','The\x20\x22%s\x22\x20variable\x20value\x20is:\x20%s','isConfigured','maxRetry','Enter\x20in\x20MRCPSynth\x20(%s)\x20block','no\x20text\x20configured','MRCPSynth','result','Executed\x20command\x20MRCPSynth\x20%s','mrcprecog','Enter\x20in\x20MRCPRecog\x20(%s)\x20block','grammar','noop','no\x20grammar\x20configured','MRCPRecog','RECOG_CONFIDENCE()','MRCP_RECOG_CONFIDENCE','RECOG_INPUT()','MRCP_RECOG_INSTANCE','Executed\x20command\x20MRCPRecog\x20%s','command','args','answer','Enter\x20in\x20ANSWER\x20(%s)\x20block','Wait\x20%s\x20seconds\x20before\x20answer','wait','Enter\x20in\x20CALLBACK\x20(%s)\x20block','no\x20list\x20selected','delay','callback_priority','before\x20createcmcontact','CALLBACK\x20added\x20phone:\x20%s\x20on\x20list:\x20%s\x20at\x20%s','custom_app','application','Executed\x20command\x20%s\x20%s','lumenvoxtts','Enter\x20in\x20LUMENVOXTTS\x20(%s)\x20block','sestektts','Enter\x20in\x20SESTEKTTS\x20(%s)\x20block','lumenvoxasr','Enter\x20in\x20LUMENVOXASR\x20(%s)\x20block','LUMENVOX_ASR_CONFIDENCE','LUMENVOX_ASR_TRANSCRIPT','RECOG_INSTANCE()','LUMENVOX_ASR_INSTANCE','sestekasr','Enter\x20in\x20SESTEKASR\x20(%s)\x20block','SESTEK_ASR_TRANSCRIPT','SESTEK_ASR_INSTANCE','database','Enter\x20in\x20DATABASE\x20(%s)\x20block','odbc_id','no\x20database\x20selected','no\x20odbc\x20database\x20found','no\x20query\x20configured','query:\x20%s','variable_id','no\x20variable\x20selected\x20for\x20the\x20result','no\x20variable\x20found','forEach','keys','setVariable','%s[%s][%s]','%s_ROWS_COUNT','dial','Enter\x20in\x20DIAL\x20(%s)\x20block','no\x20user\x20selected','getUser','DIAL','SIP/%s','dialogflow','Enter\x20in\x20DIALOGFLOW\x20(%s)\x20block','bot','Trying\x20Dialogflow:\x20%s','DIALOGFLOW_%s','speech','out','Dialogflow\x20Result\x20%s','Dialogflow\x20is\x20unreachable','sesteknda','Enter\x20in\x20SESTEKNDA\x20(%s)\x20block','ndauth_url','no\x20ndauth\x20url\x20configured','no\x20password\x20configured','ndassistant_url','SESTEK_NDA_%s','audiofile','Sestek\x20NDA\x20%s\x20file\x20created','streamFile','unlink','.wav','SestekNDA\x20Result\x20%s','SestekNDA\x20is\x20unreachable','end','Enter\x20in\x20END\x20(%s)\x20block','ext_dial','Enter\x20in\x20EXTERNAL\x20DIAL\x20(%s)\x20block','trunk_id','no\x20trunk\x20selected','no\x20trunk\x20found','trunk_name','finally','Enter\x20in\x20FINALLY\x20(%s)\x20block','getdigits','Enter\x20in\x20GETDIGITS\x20(%s)\x20block','retry','file_id','no\x20file\x20audio\x20selected','no\x20file\x20audio\x20found','getData','response','maxdigit','mindigit','hiddendigitsnum','generate','hiddendigitspos','first','substr','Enter\x20in\x20GETSECRETDIGITS\x20(%s)\x20block','goal','Enter\x20in\x20GOAL\x20(%s)\x20block','goalname','GOAL\x20%s','awspolly','[AGI]\x20Enter\x20in\x20AWSPOLLY\x20(%s)\x20block','aws_access_key_id','no\x20valid\x20credentials\x20configured','Trying\x20aws\x20Polly\x20%s','aws\x20Polly\x20is\x20unreachable','Enter\x20in\x20Amazon\x20Lex\x20(%s)\x20block','no\x20bot\x20name\x20configured','Trying\x20Amazon\x20Lex:\x20%s','AWS_LEX_%s','Amazon\x20Lex\x20ready\x20for\x20fulfillment','Amazon\x20Lex\x20is\x20unreachable','googleasr','Enter\x20in\x20GOOGLEASR\x20(%s)\x20block\x20%s','wav','%s/recordings/%s','beep','NOBEEP','recordFile','intKey','google\x20%s\x20file\x20created','GOOGLE_ASR_%s','GoogleASR\x20Result\x20%s','tildeasr','Enter\x20in\x20TILDEASR\x20(%s)\x20block','no\x20appid\x20configured','no\x20appsecret\x20configured','tilde\x20%s\x20file\x20created','TILDE_ASR_%s','TildeASR\x20Result\x20%s','Enter\x20in\x20GOTO\x20(%s)\x20block','continueAt','gotoif','Enter\x20in\x20GOTOIF\x20(%s)\x20block','condition','false','EVAL\x20CONDITION\x20%s\x20%s','gotoiftime','Enter\x20in\x20GOTOIFTIME\x20(%s)\x20block','interval_id','no\x20intervals\x20found','IFTIME(%s?true:false)','true','IFTIME\x20%s\x20%s','hangup','Enter\x20in\x20HANGUP\x20(%s)\x20block','Enter\x20in\x20ISPEECHASR\x20(%s)\x20block','ispeech\x20%s\x20file\x20created','ispeechASR','ISPEECH_ASR_%s','Enter\x20in\x20ISPEECHTTS\x20(%s)\x20block','no\x20key\x20configured','ispeech\x20TTS\x20is\x20unreachable','login','Enter\x20in\x20LOGIN\x20(%s)\x20block','findBy','FIND\x20AGENT\x20%s\x20BY\x20%s','AGENT\x20%s\x20FOUND\x20BY','success','AGENT\x20%s\x20NOT\x20FOUND\x20BY','logout','Enter\x20in\x20LOGOUT\x20(%s)\x20block','failure','math','Enter\x20in\x20MATH\x20(%s)\x20block','operation','no\x20operation\x20configured','math\x20%s','Enter\x20in\x20MENU\x20(%s)\x20block','Enter\x20in\x20NOOP\x20(%s)\x20block','output','pause','Enter\x20in\x20PAUSE\x20(%s)\x20block','no\x20find\x20by\x20configured','Enter\x20in\x20PLAYBACK\x20(%s)\x20block','PLAYBACK','opts','queue','Enter\x20in\x20QUEUE\x20(%s)\x20block','queue_id','no\x20queue\x20found','indexOf','XMCS-QUEUE','toLowerCase','macro','gosub','position','QUEUE','record','Enter\x20in\x20RECORD\x20(%s)\x20block','recordingFormat','%s/recordings/%s.%s','RECORDING_SAVENAME','Recording\x20%s\x20%s\x20%s\x20%s','escape_digits','restapi','Enter\x20in\x20RESTAPI\x20(%s)\x20block','no\x20url\x20configured','Response:','no\x20variable\x20selected\x20for\x20the\x20response','200','%s_STATUS_MESSAGE','Unable\x20to\x20set\x20result\x20in\x20variable\x20%s','Enter\x20in\x20SAYDIGITS\x20(%s)\x20block','sayDigits','digits','saynumber','Enter\x20in\x20SAYNUMBER\x20(%s)\x20block','sayphonetic','Enter\x20in\x20SAYPHONETIC\x20(%s)\x20block','sayPhonetic','sendMail','account_id','no\x20mail\x20account\x20configured','Smtp','no\x20mail\x20account\x20found','\x22%s\x22\x20<%s>','email','user','bcc','service','host','port','secure','authentication','auth','pass','debug','sendMail\x20message','Mail\x20message\x20added\x20to\x20outgoing\x20process','Enter\x20in\x20SENDFAX\x20(%s)\x20block','sendSMS','Enter\x20in\x20SENDSMS\x20(%s)\x20block','sms_account_id','no\x20sms\x20account\x20configured','sms_text','Trying\x20SendSMS\x20with\x20account\x20%s','Sms\x20message\x20added\x20to\x20outgoing\x20process','set','Enter\x20in\x20SET\x20(%s)\x20block','no\x20variable\x20selected','Enter\x20in\x20START\x20(%s)\x20block','START\x20CALLY\x20SQUARE','yes','Answer','Skipped\x20Answer','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','agi://%s/square,\x22%s\x22,\x22%s\x22','127.0.0.1','Enter\x20in\x20SYSTEM\x20(%s)\x20block','sh\x20command:\x20%s\x20result\x20on\x20variable:\x20%s','sh\x20command:\x20%s\x20result\x20no\x20stored','no\x20apiKey\x20configured','Trying\x20Google\x20Cloud\x20TTS\x20%s','googleCloudTTS','Google\x20Cloud\x20TTS\x20%s\x20file\x20created','tts','Enter\x20in\x20GOOGLETTS\x20(%s)\x20block','Google\x20TTS\x20%s\x20file\x20created','Google\x20TTS\x20is\x20unreachable','unpause','voicemail','VOICEMAIL','mailbox','vswitch','Enter\x20in\x20SWITCH\x20(%s)\x20block','exports','path','util','lodash','shelljs','odbc','mustache','request-promise','../../config/logger','agi','../../config/environment','../../config/environment/shared','./scripts','rawHeaders','rawBody','menu','channel','rpc','mailRpc','prototype','getVariable','then','name','catch','getVoiceQueue','getSquareProject','getSquareProjectById','getSquareOdbc','getSquareOdbcById','dsn','getUserById','getTrunk','getTrunkById','getSound','getSoundById','getSoundPath','save_name','getMailAccount','getMailAccountById','sendMailMessage','getIntervalById','IntervalId','interval','Intervals','format','%s/sounds/converted/%s','getQueryOdbc','error','info','ODBC\x20connection\x20successfully','query','Error\x20executing\x20query\x20%s','Query\x20executed\x20correctly\x20%s','close','Error\x20closing\x20connection\x20to\x20odbc\x20%s','getSmsAccount','getSmsAccountById','createSmsMessage','createSquareDetailsReport','uniqueid','label','agicommand','arg_1','createSquareRecording','callerid','context','extension','priority','file','createSquareMessage','createCmContact','log','in\x20createcmcontact','in\x20createcmcontact\x20callback','isEmpty','isNil','callback_','random','lastName','phone','list_id','scheduledAt','callback','dialTimezone','VALUE\x20TZ','CALLERID(dialTimezone)','RES1','dialtimezone','utcOffset','minutestoadd','scheduledat\x20before','scheduledat','add','minutes','scheduledat\x20after','insertContact'];(function(_0x4257b6,_0x2348c7){var _0x4ad68c=function(_0x33a6e8){while(--_0x33a6e8){_0x4257b6['push'](_0x4257b6['shift']());}};_0x4ad68c(++_0x2348c7);}(_0x1678,0x17b));var _0x8167=function(_0x138cd8,_0x571956){_0x138cd8=_0x138cd8-0x0;var _0x17d006=_0x1678[_0x138cd8];return _0x17d006;};'use strict';var fs=require('fs');var path=require(_0x8167('0x0'));var util=require(_0x8167('0x1'));var _=require(_0x8167('0x2'));var sh=require(_0x8167('0x3'));var odbc=require(_0x8167('0x4'))();var rs=require('randomstring');var moment=require('moment');var Mustache=require(_0x8167('0x5'));var rp=require(_0x8167('0x6'));var logger=require(_0x8167('0x7'))(_0x8167('0x8'));var config=require(_0x8167('0x9'));var shared=require(_0x8167('0xa'));var scripts=require(_0x8167('0xb'));var FILES_PATH='/var/opt/motion2/server/files';var recursiveMapAttributes=[_0x8167('0xc'),_0x8167('0xd')];var verticesWithRetry=[_0x8167('0xe'),'getdigits','getsecretdigits'];var AGIVertices=function(_0x210d5c,_0x381a87,_0x59d897){this[_0x8167('0xf')]=_0x210d5c;this[_0x8167('0x10')]=_0x381a87;this[_0x8167('0x11')]=_0x59d897;};AGIVertices[_0x8167('0x12')][_0x8167('0x13')]=function(_0x2dbfd4,_0x3c21a0){this['rpc']['getVariableById'](_0x2dbfd4)[_0x8167('0x14')](function(_0x4b5b3c){_0x3c21a0(null,_0x4b5b3c?_0x4b5b3c[_0x8167('0x15')]:![]);})[_0x8167('0x16')](function(_0x57753c){_0x3c21a0(_0x57753c);});};AGIVertices[_0x8167('0x12')][_0x8167('0x17')]=function(_0x4abe96,_0x438ee8){this['rpc']['getVoiceQueueById'](_0x4abe96)['then'](function(_0x491703){_0x438ee8(null,_0x491703?_0x491703[_0x8167('0x15')]:![]);})[_0x8167('0x16')](function(_0x2aab53){_0x438ee8(_0x2aab53);});};AGIVertices[_0x8167('0x12')][_0x8167('0x18')]=function(_0x3927ad,_0x271638){this[_0x8167('0x10')][_0x8167('0x19')](_0x3927ad)[_0x8167('0x14')](function(_0x5f4569){_0x271638(null,_0x5f4569?_0x5f4569[_0x8167('0x15')]:![]);})['catch'](function(_0x2c6255){_0x271638(_0x2c6255);});};AGIVertices['prototype'][_0x8167('0x1a')]=function(_0x383763,_0x4a67d2){this[_0x8167('0x10')][_0x8167('0x1b')](_0x383763)[_0x8167('0x14')](function(_0xdec74){_0x4a67d2(null,_0xdec74?_0xdec74[_0x8167('0x1c')]:![]);})[_0x8167('0x16')](function(_0x448cf8){_0x4a67d2(_0x448cf8);});};AGIVertices[_0x8167('0x12')]['getUser']=function(_0x21ac2f,_0x51e7bc){this['rpc'][_0x8167('0x1d')](_0x21ac2f)['then'](function(_0x5024a6){_0x51e7bc(null,_0x5024a6?_0x5024a6[_0x8167('0x15')]:![]);})[_0x8167('0x16')](function(_0xbf60c3){_0x51e7bc(_0xbf60c3);});};AGIVertices['prototype'][_0x8167('0x1e')]=function(_0x4aa682,_0x44e579){this['rpc'][_0x8167('0x1f')](_0x4aa682)[_0x8167('0x14')](function(_0x330883){_0x44e579(null,_0x330883?_0x330883['name']:![]);})[_0x8167('0x16')](function(_0x1cb49c){_0x44e579(_0x1cb49c);});};AGIVertices[_0x8167('0x12')][_0x8167('0x20')]=function(_0x643d1b,_0x10fb6c){var _0x3307ed=this;this['rpc'][_0x8167('0x21')](_0x643d1b)[_0x8167('0x14')](function(_0x5519e6){_0x10fb6c(null,_0x5519e6?_0x3307ed[_0x8167('0x22')](_0x5519e6[_0x8167('0x23')]):![]);})[_0x8167('0x16')](function(_0x23650d){_0x10fb6c(_0x23650d);});};AGIVertices[_0x8167('0x12')][_0x8167('0x24')]=function(_0x1c9968,_0x587f84){this[_0x8167('0x10')][_0x8167('0x25')](_0x1c9968)['then'](function(_0x147fb2){_0x587f84(null,_0x147fb2?_0x147fb2:![]);})[_0x8167('0x16')](function(_0x286aa3){_0x587f84(_0x286aa3);});};AGIVertices[_0x8167('0x12')][_0x8167('0x26')]=function(_0x4850ad,_0x13c927,_0x536f53){this[_0x8167('0x11')][_0x8167('0x26')](_0x4850ad,_0x13c927)[_0x8167('0x14')](function(){_0x536f53(null);})[_0x8167('0x16')](function(_0x423edb){_0x536f53(_0x423edb);});};AGIVertices['prototype']['getIntervals']=function(_0x4c5475,_0x5d936b){this[_0x8167('0x10')][_0x8167('0x27')](_0x4c5475)[_0x8167('0x14')](function(_0x26b22d){if(_0x26b22d){if(_0x26b22d[_0x8167('0x28')]){_0x5d936b(null,[_0x26b22d[_0x8167('0x29')]]);}else{_0x5d936b(null,_['map'](_0x26b22d[_0x8167('0x2a')],'interval'));}}else{_0x5d936b(null,![]);}})[_0x8167('0x16')](function(_0x43e21f){_0x5d936b(_0x43e21f);});};AGIVertices['prototype']['getSoundPath']=function(_0x105e1b){return util[_0x8167('0x2b')](_0x8167('0x2c'),FILES_PATH,_0x105e1b);};AGIVertices[_0x8167('0x12')][_0x8167('0x2d')]=function(_0x5df1d4,_0x4a6665,_0x69742f){odbc['open'](_0x5df1d4,function(_0x10d17b){if(_0x10d17b){logger[_0x8167('0x2e')]('Error\x20getting\x20ODBC\x20connection\x20%s',_0x10d17b);_0x69742f(_0x10d17b);}else{logger[_0x8167('0x2f')](_0x8167('0x30'));odbc[_0x8167('0x31')](_0x4a6665,function(_0x3fe248,_0x445c4d){if(_0x3fe248){logger[_0x8167('0x2f')](_0x8167('0x32'),_0x4a6665);_0x69742f(_0x3fe248);}else{logger[_0x8167('0x2f')](_0x8167('0x33'),_0x4a6665);odbc[_0x8167('0x34')](function(_0x1f5a30){if(_0x1f5a30){logger[_0x8167('0x2e')](_0x8167('0x35'),_0x1f5a30);}_0x69742f(null,_0x445c4d);});}});}});};AGIVertices[_0x8167('0x12')][_0x8167('0x36')]=function(_0x59a194,_0x146ea8){this['rpc'][_0x8167('0x37')](_0x59a194)['then'](function(_0x8de8ab){_0x146ea8(null,_0x8de8ab?_0x8de8ab:![]);})[_0x8167('0x16')](function(_0x5b6d09){_0x146ea8(_0x5b6d09);});};AGIVertices[_0x8167('0x12')]['createSmsMessage']=function(_0x5ed948,_0x40982e){this['rpc'][_0x8167('0x38')](_0x5ed948)['then'](function(_0x3ed87e){_0x40982e(null,_0x3ed87e);})[_0x8167('0x16')](function(_0x5eb774){_0x40982e(_0x5eb774);});};AGIVertices[_0x8167('0x12')][_0x8167('0x39')]=function(_0x2526a4,_0xd321bd,_0x296bcc){this[_0x8167('0x10')][_0x8167('0x39')]({'uniqueid':this[_0x8167('0xf')][_0x8167('0x3a')],'node':_0x2526a4[_0x8167('0x3b')],'application':_0x2526a4[_0x8167('0x3c')],'data':_0xd321bd||null,'project_name':this[_0x8167('0xf')][_0x8167('0x3d')],'callerid':this[_0x8167('0xf')]['callerid']})[_0x8167('0x14')](function(_0x1afcf5){if(_0x296bcc){_0x296bcc(null,_0x1afcf5);}})[_0x8167('0x16')](function(_0x5638c4){if(_0x296bcc){_0x296bcc(_0x5638c4);}});};AGIVertices[_0x8167('0x12')][_0x8167('0x3e')]=function(_0x18371b,_0x444eed,_0x46dec5,_0x214aa1){this[_0x8167('0x10')][_0x8167('0x3e')]({'uniqueid':this[_0x8167('0xf')][_0x8167('0x3a')],'callerid':this[_0x8167('0xf')][_0x8167('0x3f')],'calleridname':this[_0x8167('0xf')]['calleridname'],'context':this[_0x8167('0xf')][_0x8167('0x40')],'extension':this[_0x8167('0xf')][_0x8167('0x41')],'priority':this[_0x8167('0xf')][_0x8167('0x42')],'accountcode':this[_0x8167('0xf')]['accountcode'],'dnid':this[_0x8167('0xf')]['dnid'],'projectName':this[_0x8167('0xf')][_0x8167('0x3d')],'saveName':_0x444eed,'filename':_0x18371b[_0x8167('0x43')]||_0x444eed,'savePath':_0x46dec5})[_0x8167('0x14')](function(_0x46e666){_0x214aa1(null,_0x46e666);})['catch'](function(_0x374e43){_0x214aa1(_0x374e43);});};AGIVertices[_0x8167('0x12')][_0x8167('0x44')]=function(_0x96305,_0x28b70c,_0x50783b){this[_0x8167('0x10')][_0x8167('0x44')]({'uniqueid':this[_0x8167('0xf')][_0x8167('0x3a')],'body':_0x96305,'direction':_0x28b70c})[_0x8167('0x14')](function(_0x1227cd){if(_0x50783b){_0x50783b(null,_0x1227cd);}})[_0x8167('0x16')](function(_0x2bc3af){if(_0x50783b){_0x50783b(_0x2bc3af);}});};AGIVertices[_0x8167('0x12')][_0x8167('0x45')]=function(_0x2a38ef,_0x5b9f7d){console[_0x8167('0x46')](_0x8167('0x47'),_0x2a38ef);console[_0x8167('0x46')](_0x8167('0x48'),_0x5b9f7d);var _0x57126b=this;var _0x472cb2=0x0;var _0x2230b9={'firstName':_[_0x8167('0x49')](_0x2a38ef[_0x8167('0x15')])||_[_0x8167('0x4a')](_0x2a38ef[_0x8167('0x15')])?_0x8167('0x4b')+Math[_0x8167('0x4c')]():_0x2a38ef[_0x8167('0x15')],'lastName':_['isEmpty'](_0x2a38ef[_0x8167('0x4d')])||_['isNil'](_0x2a38ef[_0x8167('0x4d')])?null:_0x2a38ef[_0x8167('0x4d')],'phone':_0x2a38ef[_0x8167('0x4e')],'ListId':_0x2a38ef[_0x8167('0x4f')],'scheduledat':_0x2a38ef[_0x8167('0x50')],'callbackUniqueid':this[_0x8167('0xf')]['uniqueid'],'tags':_0x8167('0x51'),'description':'Callback\x20scheduled\x20at\x20'+_0x2a38ef[_0x8167('0x50')]['toString'](),'priority':_0x2a38ef['callback_priority']};if(_['has'](_0x2a38ef,_0x8167('0x52'))){if(!_['isNil'](_0x2a38ef[_0x8167('0x52')])){var _0x160460=_0x2a38ef['dialTimezone'];console[_0x8167('0x46')](_0x8167('0x53'),_0x160460);if(_0x2a38ef[_0x8167('0x52')]==_0x8167('0x54')){this[_0x8167('0x10')]['getContactByPhone']({'phone':_0x2a38ef['phone']})[_0x8167('0x14')](function(_0x59c776){console['log'](_0x8167('0x55'),_0x59c776);var _0x1efa3d=_0x59c776[_0x8167('0x52')];console[_0x8167('0x46')](_0x8167('0x56'),_0x1efa3d);if(!_[_0x8167('0x4a')](_0x1efa3d)){var _0x2087a4=shared['timezones'][_0x1efa3d];console['log']('tz',_0x2087a4);if(!_[_0x8167('0x4a')](_0x2087a4)){var _0x3c43a7=_0x2087a4[_0x8167('0x57')];console['log'](_0x8167('0x58'),_0x3c43a7);console[_0x8167('0x46')](_0x8167('0x59'),_0x2230b9[_0x8167('0x5a')]);_0x2230b9[_0x8167('0x5a')]=moment(_0x2a38ef[_0x8167('0x5a')])[_0x8167('0x5b')](_0x3c43a7,_0x8167('0x5c'));console[_0x8167('0x46')](_0x8167('0x5d'),_0x2230b9[_0x8167('0x5a')]);_0x57126b[_0x8167('0x10')][_0x8167('0x5e')](_0x2230b9,_0x2a38ef,_0x5b9f7d)[_0x8167('0x14')](function(_0x13338c){_0x5b9f7d(null,_0x13338c);})['catch'](function(_0x3e2f68){_0x5b9f7d(_0x3e2f68);});}else{_0x57126b[_0x8167('0x10')]['insertContact'](_0x2230b9,_0x2a38ef,_0x5b9f7d)[_0x8167('0x14')](function(_0x1c59d0){_0x5b9f7d(null,_0x1c59d0);})['catch'](function(_0xfaf8d1){_0x5b9f7d(_0xfaf8d1);});}}else{_0x57126b['rpc'][_0x8167('0x5e')](_0x2230b9,_0x2a38ef,_0x5b9f7d)[_0x8167('0x14')](function(_0x37b641){_0x5b9f7d(null,_0x37b641);})[_0x8167('0x16')](function(_0x16e5bc){_0x5b9f7d(_0x16e5bc);});}});}else{var _0x472cb2=shared[_0x8167('0x5f')][_0x160460];if(!_[_0x8167('0x4a')](_0x472cb2)){var _0x2e4e07=-0x1*_0x472cb2[_0x8167('0x57')];_0x2230b9[_0x8167('0x5a')]=moment(_0x2a38ef['scheduledat'])[_0x8167('0x5b')](_0x2e4e07,_0x8167('0x5c'));_0x57126b[_0x8167('0x10')][_0x8167('0x5e')](_0x2230b9,_0x2a38ef,_0x5b9f7d)[_0x8167('0x14')](function(_0x3eb887){_0x5b9f7d(null,_0x3eb887);})[_0x8167('0x16')](function(_0x3b6cdd){_0x5b9f7d(_0x3b6cdd);});}else{_0x57126b['rpc'][_0x8167('0x5e')](_0x2230b9,_0x2a38ef,_0x5b9f7d)[_0x8167('0x14')](function(_0x50c706){_0x5b9f7d(null,_0x50c706);})[_0x8167('0x16')](function(_0x3e48fa){_0x5b9f7d(_0x3e48fa);});}}}else{_0x57126b[_0x8167('0x10')][_0x8167('0x5e')](_0x2230b9,_0x2a38ef,_0x5b9f7d)[_0x8167('0x14')](function(_0x54ec97){_0x5b9f7d(null,_0x54ec97);})[_0x8167('0x16')](function(_0x2d9324){_0x5b9f7d(_0x2d9324);});}}else{_0x57126b['rpc'][_0x8167('0x5e')](_0x2230b9,_0x2a38ef,_0x5b9f7d)[_0x8167('0x14')](function(_0x4f944f){_0x5b9f7d(null,_0x4f944f);})[_0x8167('0x16')](function(_0x18a1b2){_0x5b9f7d(_0x18a1b2);});}};AGIVertices[_0x8167('0x12')][_0x8167('0x5e')]=function(_0x412cfe,_0x146a7b,_0x49de94){this[_0x8167('0x10')][_0x8167('0x45')](_0x412cfe)[_0x8167('0x14')](function(_0x26d141){_0x49de94(null,_0x26d141);})['catch'](function(_0x2935fe){_0x49de94(_0x2935fe);});};AGIVertices[_0x8167('0x12')][_0x8167('0x60')]=function(_0x4e1281,_0x16efb4){this[_0x8167('0x10')]['getPauseById'](_0x4e1281)[_0x8167('0x14')](function(_0x28beb1){_0x16efb4(null,_0x28beb1?_0x28beb1['name']:![]);})[_0x8167('0x16')](function(_0x63bd63){_0x16efb4(_0x63bd63);});};AGIVertices['prototype'][_0x8167('0x61')]=function(_0x205f4a,_0x12a83b,_0x37fb6e){var _0x12c2a7={'role':'agent'};_0x12c2a7[_0x205f4a]=this[_0x8167('0xf')]['callerid'];this[_0x8167('0x10')][_0x8167('0x61')](_0x12c2a7,_0x12a83b,this['channel'][_0x8167('0x3a')])[_0x8167('0x14')](function(_0x21c69b){_0x37fb6e(null,_[_0x8167('0x4a')](_0x21c69b)?![]:!![]);})[_0x8167('0x16')](function(_0xfc95fb){logger['error'](_0xfc95fb);_0x37fb6e(null,![]);});};AGIVertices[_0x8167('0x12')][_0x8167('0x62')]=function(_0x3b0456,_0x46accf){var _0x355661={'role':_0x8167('0x63')};_0x355661[_0x3b0456]=this[_0x8167('0xf')][_0x8167('0x3f')];this[_0x8167('0x10')][_0x8167('0x62')](_0x355661)[_0x8167('0x14')](function(_0x2feae6){_0x46accf(null,_[_0x8167('0x4a')](_0x2feae6)?![]:!![]);})[_0x8167('0x16')](function(_0x19e22d){logger[_0x8167('0x2e')](_0x19e22d);_0x46accf(null,![]);});};AGIVertices[_0x8167('0x12')][_0x8167('0x64')]=function(_0x393907,_0x3b2a03){var _0x30ba80={'role':'agent'};_0x30ba80[_0x393907]=this[_0x8167('0xf')][_0x8167('0x3f')];this[_0x8167('0x10')][_0x8167('0x64')](_0x30ba80)['then'](function(_0x15e7c6){_0x3b2a03(null,_[_0x8167('0x4a')](_0x15e7c6)?![]:!![]);})[_0x8167('0x16')](function(_0x498f33){logger[_0x8167('0x2e')](_0x498f33);_0x3b2a03(null,![]);});};AGIVertices[_0x8167('0x12')][_0x8167('0x65')]=function(_0x4544b3,_0x4d5075){var _0x4a5897={'role':_0x8167('0x63')};_0x4a5897[_0x4544b3]=this[_0x8167('0xf')]['callerid'];var _0xc35e78=_0x4544b3!=_0x8167('0x66')?util['format'](_0x8167('0x67'),_0x8167('0x68'),this[_0x8167('0xf')][_0x8167('0x3f')]):undefined;this[_0x8167('0x10')][_0x8167('0x65')](_0x4a5897,_0xc35e78)[_0x8167('0x14')](function(_0x1f5db4){_0x4d5075(null,_[_0x8167('0x4a')](_0x1f5db4)?![]:!![]);})[_0x8167('0x16')](function(_0x4097f4){logger[_0x8167('0x2e')](_0x4097f4);_0x4d5075(null,![]);});};AGIVertices[_0x8167('0x12')][_0x8167('0x69')]=function(_0x14a601,_0x517ed7){sh[_0x8167('0x6a')](_[_0x8167('0x6b')](_0x14a601),function(_0x371a46,_0x2b592c){var _0x5dd04c=_0x2b592c[_0x8167('0x6c')](/(\r\n|\n|\r)/gm,'');_0x517ed7(null,_0x5dd04c);});};AGIVertices[_0x8167('0x12')]['googleCloudTTS']=function(_0x25432d,_0x7d44fa){scripts['googleCloudTTS'](_0x25432d[_0x8167('0x6d')],_0x25432d[_0x8167('0x6e')]||_0x8167('0x6f'),_0x25432d[_0x8167('0x6f')],_0x25432d[_0x8167('0x70')]||_0x8167('0x71'),_0x25432d[_0x8167('0x72')]||_0x8167('0x73'),_0x25432d[_0x8167('0x74')]||_0x8167('0x75'))[_0x8167('0x14')](function(_0xb6017e){_0x7d44fa(null,_0xb6017e);})['catch'](function(_0x1c93ce){_0x7d44fa(_0x1c93ce);});};AGIVertices['prototype'][_0x8167('0x76')]=function(_0x5126dc,_0x213ad3){scripts[_0x8167('0x76')](_0x5126dc[_0x8167('0x6f')],_0x5126dc[_0x8167('0x77')]||'en',0x1)['then'](function(_0x471a96){_0x213ad3(null,_0x471a96);})['catch'](function(_0x44f6f9){_0x213ad3(_0x44f6f9);});};AGIVertices[_0x8167('0x12')][_0x8167('0x78')]=function(_0x5d98cb,_0x279c51){var _0x54fc0e={'uri':_0x5d98cb['url'],'method':_0x5d98cb[_0x8167('0x79')],'json':!![],'resolveWithFullResponse':!![],'timeout':typeof parseInt(_0x5d98cb[_0x8167('0x7a')])===_0x8167('0x7b')&&parseInt(_0x5d98cb[_0x8167('0x7a')])>=0x1?parseInt(_0x5d98cb[_0x8167('0x7a')])*0x3e8:0x5*0x3e8};if(_[_0x8167('0x7c')](['POST',_0x8167('0x7d')],_0x54fc0e['method'][_0x8167('0x7e')]())){try{_0x54fc0e[_0x8167('0x7f')]=_0x5d98cb[_0x8167('0xd')]?JSON[_0x8167('0x80')](_0x5d98cb[_0x8167('0xd')]):{};}catch(_0x105a0c){logger[_0x8167('0x2e')](_0x8167('0x81'),_0x105a0c);}}try{_0x54fc0e[_0x8167('0x82')]=_0x5d98cb['rawHeaders']?JSON['parse'](_0x5d98cb[_0x8167('0xc')]):{};}catch(_0x140456){logger[_0x8167('0x2e')]('An\x20incorrect\x20formatted\x20json\x20headers\x20has\x20been\x20passed\x20to\x20the\x20function',_0x140456);}if(_0x5d98cb[_0x8167('0x83')]){try{var _0x6deb0=require(_0x5d98cb[_0x8167('0x83')])[_0x8167('0x84')](this,_0x54fc0e);_0x54fc0e[_0x8167('0x85')]=Mustache[_0x8167('0x86')](_0x5d98cb[_0x8167('0x87')],_0x6deb0,{},['$$','$$']);if(_0x54fc0e[_0x8167('0x82')]){_0x54fc0e['headers']=JSON[_0x8167('0x80')](Mustache['render'](JSON[_0x8167('0x88')](_0x54fc0e[_0x8167('0x82')]),_0x6deb0,{},['$$','$$']));}if(_0x54fc0e['body']){_0x54fc0e['body']=JSON['parse'](Mustache[_0x8167('0x86')](JSON[_0x8167('0x88')](_0x54fc0e[_0x8167('0x7f')]),_0x6deb0,{},['$$','$$']));}}catch(_0x253130){logger[_0x8167('0x2e')](_0x8167('0x89'),_0x253130);}}rp(_0x54fc0e)[_0x8167('0x14')](function(_0x28a945){var _0x5e6229={'statusCode':_0x28a945[_0x8167('0x8a')]||0xc8,'statusMessage':_0x28a945[_0x8167('0x8b')]||'OK','headers':_0x28a945[_0x8167('0x82')]||{},'body':_0x28a945[_0x8167('0x7f')]||{}};_0x279c51(null,_0x5e6229);})[_0x8167('0x16')](function(_0x37573d){var _0x57fbda={'statusCode':_0x37573d[_0x8167('0x8a')]||0x1f4,'statusMessage':_0x37573d[_0x8167('0x8c')]||_0x8167('0x8d'),'headers':_0x37573d[_0x8167('0x8e')][_0x8167('0x82')]||{},'body':_0x37573d[_0x8167('0x8e')][_0x8167('0x7f')]||{}};_0x279c51(null,_0x57fbda);});};AGIVertices['prototype'][_0x8167('0x8f')]=function(_0x267b39,_0x395948){scripts[_0x8167('0x8f')](this['channel'][_0x8167('0x3a')],_0x267b39[_0x8167('0x90')],_0x267b39['text'],_0x267b39[_0x8167('0x91')]||'en')[_0x8167('0x14')](function(_0x440e45){_0x395948(null,_0x440e45);})[_0x8167('0x16')](function(_0x1d797c){_0x395948(_0x1d797c);});};AGIVertices[_0x8167('0x12')][_0x8167('0x92')]=function(_0x3fb461,_0xe2b139){scripts[_0x8167('0x92')](this['channel'],_0x3fb461)[_0x8167('0x14')](function(_0x206c9a){_0xe2b139(null,_0x206c9a);})['catch'](function(_0x36526f){_0xe2b139(_0x36526f);});};AGIVertices['prototype']['ispeechTTS']=function(_0x44b310,_0x366bf6){scripts[_0x8167('0x93')](_0x44b310[_0x8167('0x90')],_0x44b310[_0x8167('0x6f')],_0x44b310['ispeech_tts_language']||_0x8167('0x71'),_0x44b310[_0x8167('0x94')])[_0x8167('0x14')](function(_0x3cc953){_0x366bf6(null,_0x3cc953);})['catch'](function(_0x3cc6c3){_0x366bf6(_0x3cc6c3);});};AGIVertices[_0x8167('0x12')]['ispeechASR']=function(_0x4367f2,_0x5021f2,_0x22e342){scripts['ispeechASR'](_0x5021f2,_0x4367f2[_0x8167('0x90')],_0x4367f2['ispeech_asr_language']||_0x8167('0x71'),this['isConfigured'](_0x4367f2[_0x8167('0x95')])?_0x4367f2['model']:undefined)['then'](function(_0x229ff1){_0x22e342(null,_0x229ff1);})[_0x8167('0x16')](function(_0x40bcf6){_0x22e342(_0x40bcf6);});};AGIVertices['prototype'][_0x8167('0x96')]=function(_0x2c7050,_0x25858e){scripts['awsPolly'](_0x2c7050['aws_access_key_id'],_0x2c7050[_0x8167('0x97')],_0x2c7050[_0x8167('0x98')],_0x2c7050[_0x8167('0x99')]||'Amy',_0x2c7050[_0x8167('0x6f')],_0x2c7050[_0x8167('0x9a')]||'text')[_0x8167('0x14')](function(_0x57387f){_0x25858e(null,_0x57387f);})[_0x8167('0x16')](function(_0x4196ba){_0x25858e(_0x4196ba);});};AGIVertices[_0x8167('0x12')]['awsLex']=function(_0x4ff56e,_0x5ca783){scripts['awsLex'](this['channel'][_0x8167('0x3a')],_0x4ff56e['aws_access_key_id'],_0x4ff56e[_0x8167('0x97')],_0x4ff56e[_0x8167('0x9b')],_0x4ff56e[_0x8167('0x6f')],_0x4ff56e[_0x8167('0x9c')])[_0x8167('0x14')](function(_0x164de7){_0x5ca783(null,_0x164de7);})['catch'](function(_0x3d3e2b){_0x5ca783(_0x3d3e2b);});};AGIVertices['prototype'][_0x8167('0x9d')]=function(_0x3f9bd2,_0x46751a,_0x514ea9){scripts['googleASR'](_0x46751a,_0x3f9bd2[_0x8167('0x90')],_0x3f9bd2[_0x8167('0x9e')]||_0x8167('0x71'))[_0x8167('0x14')](function(_0x503e3b){_0x514ea9(null,_0x503e3b);})['catch'](function(_0x5ae74b){_0x514ea9(_0x5ae74b);});};AGIVertices[_0x8167('0x12')][_0x8167('0x9f')]=function(_0x888250,_0x568b4b,_0x520eb4){scripts['tildeASR'](_0x568b4b,_0x888250[_0x8167('0xa0')],_0x888250[_0x8167('0xa1')],_0x888250['uri'])[_0x8167('0x14')](function(_0x319807){_0x520eb4(null,_0x319807);})[_0x8167('0x16')](function(_0x5d2f37){_0x520eb4(_0x5d2f37);});};AGIVertices[_0x8167('0x12')][_0x8167('0xa2')]=function(_0xb84a9d){var _0x3f858f=_[_0x8167('0x7c')](verticesWithRetry,_0xb84a9d[_0x8167('0x3c')])?_0xb84a9d:_['clone'](_0xb84a9d);for(var _0x154f71 in _0x3f858f){if(_0x3f858f[_0x8167('0xa3')](_0x154f71)){if(_0x3f858f[_0x154f71]&&_[_0x8167('0xa4')](_0x3f858f[_0x154f71])){if(_['includes'](recursiveMapAttributes,_0x154f71)){_0x3f858f[_0x154f71]=this[_0x8167('0xa5')](_0x3f858f[_0x154f71]);}else{_0x3f858f[_0x154f71]=this[_0x8167('0xa6')](_0x3f858f[_0x154f71]);}}}}return _0x3f858f;};AGIVertices[_0x8167('0x12')]['recursiveNodeIndex']=function(_0x1a482c){for(var _0x242971 in _0x1a482c){if(_0x1a482c[_0x8167('0xa3')](_0x242971)){if(_['isPlainObject'](_0x1a482c[_0x242971])){this[_0x8167('0xa7')](_0x1a482c[_0x242971]);}else if(_['isArray'](_0x1a482c[_0x242971])){for(var _0xed2762=0x0;_0xed2762<_0x1a482c[_0x242971][_0x8167('0xa8')];_0xed2762++){this[_0x8167('0xa7')](_0x1a482c[_0x242971][_0xed2762]);}}else if(_[_0x8167('0xa4')](_0x1a482c[_0x242971])){_0x1a482c[_0x242971]=this['replaceAllVariables'](_0x1a482c[_0x242971]);}}}};AGIVertices[_0x8167('0x12')][_0x8167('0xa9')]=function(_0x171c5c,_0x329d4c){for(var _0x153461 in _0x171c5c){if(_0x171c5c[_0x8167('0xa3')](_0x153461)){if(_['isPlainObject'](_0x171c5c[_0x153461])){if(!_[_0x8167('0x49')](_0x171c5c[_0x153461])){this[_0x8167('0xa9')](_0x171c5c[_0x153461],util[_0x8167('0x2b')]('%s.%s',_0x329d4c,_0x153461));}}else if(_[_0x8167('0xaa')](_0x171c5c[_0x153461])){for(var _0x2ddffd=0x0;_0x2ddffd<_0x171c5c[_0x153461]['length'];_0x2ddffd++){this[_0x8167('0xa9')](_0x171c5c[_0x153461][_0x2ddffd],util[_0x8167('0x2b')](_0x8167('0xab'),_0x329d4c,_0x153461+'['+_0x2ddffd+']'));}}else{if(!_[_0x8167('0x4a')](_0x171c5c[_0x153461])){this[_0x8167('0xf')]['setVariable'](util['format'](_0x8167('0xab'),_0x329d4c,_0x153461),_0x171c5c[_0x153461]);}}}}};AGIVertices['prototype'][_0x8167('0xa5')]=function(_0x2abe55){try{var _0x2fd89f=JSON[_0x8167('0x80')](_0x2abe55);this[_0x8167('0xa7')](_0x2fd89f);return JSON[_0x8167('0x88')](_0x2fd89f);}catch(_0x2cdfcf){return this[_0x8167('0xa6')](_0x2abe55);}};AGIVertices[_0x8167('0x12')][_0x8167('0xa6')]=function(_0x454c16){console[_0x8167('0x46')](_0x8167('0xac'),_0x454c16);var _0x6b1791=_0x454c16[_0x8167('0xad')]('{');for(var _0x13b816=0x1;_0x13b816<_0x6b1791['length'];_0x13b816+=0x1){var _0x12971e=_0x6b1791[_0x13b816][_0x8167('0xad')]('}');console[_0x8167('0x46')](_0x8167('0xae'),_0x12971e);if(_0x12971e[_0x8167('0xa8')]>0x1){_0x454c16=_0x454c16[_0x8167('0xaf')]('{'+_0x12971e[0x0]+'}',this[_0x8167('0xf')][_0x8167('0x13')](_0x12971e[0x0])[_0x8167('0xb0')]||_0x12971e[0x0]);}}if(_0x6b1791[_0x8167('0xa8')]===0x1){return _0x454c16[_0x8167('0xb1')]();}console['log'](_0x8167('0xb2'),_0x454c16);return this[_0x8167('0xa6')](_0x454c16);};AGIVertices[_0x8167('0x12')][_0x8167('0xb3')]=function(_0x374ced,_0x532c1e){var _0x29974a=this['channel']['getVariable'](_0x374ced);if(_0x29974a['result']===-0x1){return _0x29974a;}logger[_0x8167('0x2f')](util['format'](_0x8167('0xb4'),_0x532c1e,_0x29974a[_0x8167('0xb0')]));return this['channel']['setVariable'](_0x532c1e,_0x29974a[_0x8167('0xb0')]);};AGIVertices[_0x8167('0x12')][_0x8167('0xb5')]=function(_0x2b6a72){return _0x2b6a72&&_0x2b6a72!=='0'&&_0x2b6a72!=='-1'&&_0x2b6a72!=='';};AGIVertices['prototype'][_0x8167('0xb6')]=function(_0x5d942c){this[_0x8167('0x39')][_0x8167('0x84')](this,_0x5d942c,'-');_0x5d942c['retry']=_0x5d942c[_0x8167('0xb6')];return{'code':0xc8,'result':'-'};};AGIVertices[_0x8167('0x12')]['mrcpsynth']=function(_0x321c04){logger['info'](util[_0x8167('0x2b')](_0x8167('0xb7'),_0x321c04['label']));if(!this[_0x8167('0xb5')](_0x321c04[_0x8167('0x6f')])){return this[_0x8167('0xf')]['noop'](_0x8167('0xb8'));}var _0x3c8952='\x22'+_0x321c04[_0x8167('0x6f')]+'\x22';if(this[_0x8167('0xb5')](_0x321c04[_0x8167('0x8e')])){_0x3c8952+=','+_0x321c04['options'];}var _0x2250d3=this[_0x8167('0xf')][_0x8167('0x6a')](_0x8167('0xb9'),_0x3c8952);if(_0x2250d3[_0x8167('0xba')]===-0x1){return _0x2250d3;}return this[_0x8167('0xf')]['noop'](util[_0x8167('0x2b')](_0x8167('0xbb'),_0x3c8952));};AGIVertices[_0x8167('0x12')][_0x8167('0xbc')]=function(_0x106cc1){logger['info'](util[_0x8167('0x2b')](_0x8167('0xbd'),_0x106cc1[_0x8167('0x3b')]));if(!this[_0x8167('0xb5')](_0x106cc1[_0x8167('0xbe')])){return this['channel'][_0x8167('0xbf')](_0x8167('0xc0'));}var _0x2706f8=_0x106cc1[_0x8167('0xbe')];if(this[_0x8167('0xb5')](_0x106cc1[_0x8167('0x8e')])){_0x2706f8+=','+_0x106cc1['options'];}var _0x3dd9d9=this['channel'][_0x8167('0x6a')](_0x8167('0xc1'),_0x2706f8);if(_0x3dd9d9[_0x8167('0xba')]===-0x1){return _0x3dd9d9;}var _0x4f1de0=this['getAndSetVariable'](_0x8167('0xc2'),_0x8167('0xc3'));if(_0x4f1de0[_0x8167('0xba')]===-0x1){return _0x4f1de0;}var _0x2c73f3=this['getAndSetVariable'](_0x8167('0xc4'),'MRCP_RECOG_TRANSCRIPT');if(_0x2c73f3[_0x8167('0xba')]===-0x1){return _0x2c73f3;}var _0x3806af=this[_0x8167('0xb3')]('RECOG_INSTANCE()',_0x8167('0xc5'));if(_0x3806af[_0x8167('0xba')]===-0x1){return _0x3806af;}return this[_0x8167('0xf')][_0x8167('0xbf')](util[_0x8167('0x2b')](_0x8167('0xc6'),_0x2706f8));};AGIVertices[_0x8167('0x12')]['agi']=function(_0x29fea7){logger[_0x8167('0x2f')](util[_0x8167('0x2b')]('Enter\x20in\x20AGI\x20(%s)\x20block',_0x29fea7[_0x8167('0x3b')]));return this[_0x8167('0xf')][_0x8167('0x8')]([_0x29fea7[_0x8167('0xc7')],_0x29fea7[_0x8167('0xc8')]]);};AGIVertices['prototype'][_0x8167('0xc9')]=function(_0x5ee4ee){logger[_0x8167('0x2f')](util[_0x8167('0x2b')](_0x8167('0xca'),_0x5ee4ee['label']));if(this[_0x8167('0xb5')](_0x5ee4ee['timeout'])){logger[_0x8167('0x2f')](util[_0x8167('0x2b')](_0x8167('0xcb'),_0x5ee4ee[_0x8167('0x7a')]));var _0x21d86c=this['channel'][_0x8167('0xcc')](_0x5ee4ee['timeout']);if(_0x21d86c['result']===-0x1){return _0x21d86c;}}return this[_0x8167('0xf')]['answer']();};AGIVertices[_0x8167('0x12')]['callback']=function(_0x6303e4){console['log']('enter\x20in\x20callbackblock',_0x6303e4);logger['info'](util[_0x8167('0x2b')](_0x8167('0xcd'),_0x6303e4[_0x8167('0x3b')]));if(!this[_0x8167('0xb5')](_0x6303e4[_0x8167('0x4f')])){return this[_0x8167('0xf')][_0x8167('0x2e')](_0x6303e4,_0x8167('0xce'));}_0x6303e4[_0x8167('0x50')]=moment();if(this[_0x8167('0xb5')](_0x6303e4[_0x8167('0xcf')])){_0x6303e4[_0x8167('0x50')]=moment()[_0x8167('0x5b')](_0x6303e4[_0x8167('0xcf')],_0x8167('0x5c'));}if(!this[_0x8167('0xb5')](_0x6303e4[_0x8167('0xd0')])){_0x6303e4['callback_priority']=0x2;}console[_0x8167('0x46')](_0x8167('0xd1'),_0x6303e4);this[_0x8167('0x45')]['sync'](this,_0x6303e4);return this['channel'][_0x8167('0xbf')](util[_0x8167('0x2b')](_0x8167('0xd2'),_0x6303e4[_0x8167('0x4e')],_0x6303e4[_0x8167('0x4f')],_0x6303e4[_0x8167('0x50')]));};AGIVertices[_0x8167('0x12')][_0x8167('0xd3')]=function(_0x38ff65){logger[_0x8167('0x2f')](util[_0x8167('0x2b')]('Enter\x20in\x20CUSTOM\x20APP\x20(%s)\x20block',_0x38ff65[_0x8167('0x3b')]));var _0x4bffd5=this[_0x8167('0xf')][_0x8167('0x6a')](_0x38ff65[_0x8167('0xd4')],_0x38ff65[_0x8167('0x8e')]);if(_0x4bffd5[_0x8167('0xba')]===-0x1){return _0x4bffd5;}return this[_0x8167('0xf')][_0x8167('0xbf')](util[_0x8167('0x2b')](_0x8167('0xd5'),_0x38ff65['application'],_0x38ff65[_0x8167('0x8e')]));};AGIVertices['prototype'][_0x8167('0xd6')]=function(_0x16bd3f){logger[_0x8167('0x2f')](util[_0x8167('0x2b')](_0x8167('0xd7'),_0x16bd3f[_0x8167('0x3b')]));if(!this[_0x8167('0xb5')](_0x16bd3f['text'])){return this[_0x8167('0xf')][_0x8167('0xbf')](_0x8167('0xb8'));}var _0x13f5b5='\x22'+_0x16bd3f[_0x8167('0x6f')]+'\x22';if(this['isConfigured'](_0x16bd3f['options'])){_0x13f5b5+=','+_0x16bd3f[_0x8167('0x8e')];}var _0x56e32f=this[_0x8167('0xf')][_0x8167('0x6a')]('MRCPSynth',_0x13f5b5);if(_0x56e32f[_0x8167('0xba')]===-0x1){return _0x56e32f;}return this[_0x8167('0xf')][_0x8167('0xbf')](util[_0x8167('0x2b')](_0x8167('0xbb'),_0x13f5b5));};AGIVertices[_0x8167('0x12')][_0x8167('0xd8')]=function(_0x194625){logger[_0x8167('0x2f')](util[_0x8167('0x2b')](_0x8167('0xd9'),_0x194625[_0x8167('0x3b')]));if(!this[_0x8167('0xb5')](_0x194625[_0x8167('0x6f')])){return this[_0x8167('0xf')][_0x8167('0xbf')](_0x8167('0xb8'));}var _0x32570e='\x22'+_0x194625[_0x8167('0x6f')]+'\x22';if(this[_0x8167('0xb5')](_0x194625[_0x8167('0x8e')])){_0x32570e+=','+_0x194625['options'];}var _0x2a2c0a=this[_0x8167('0xf')][_0x8167('0x6a')](_0x8167('0xb9'),_0x32570e);if(_0x2a2c0a[_0x8167('0xba')]===-0x1){return _0x2a2c0a;}return this[_0x8167('0xf')]['noop'](util[_0x8167('0x2b')]('Executed\x20command\x20MRCPSynth\x20%s',_0x32570e));};AGIVertices[_0x8167('0x12')][_0x8167('0xda')]=function(_0x19f2b1){logger['info'](util[_0x8167('0x2b')](_0x8167('0xdb'),_0x19f2b1['label']));if(!this[_0x8167('0xb5')](_0x19f2b1[_0x8167('0xbe')])){return this['channel'][_0x8167('0xbf')](_0x8167('0xc0'));}var _0x34130a=_0x19f2b1[_0x8167('0xbe')];if(this[_0x8167('0xb5')](_0x19f2b1[_0x8167('0x8e')])){_0x34130a+=','+_0x19f2b1[_0x8167('0x8e')];}var _0x3e4b19=this[_0x8167('0xf')][_0x8167('0x6a')]('MRCPRecog',_0x34130a);if(_0x3e4b19[_0x8167('0xba')]===-0x1){return _0x3e4b19;}var _0x505478=this['getAndSetVariable'](_0x8167('0xc2'),_0x8167('0xdc'));if(_0x505478[_0x8167('0xba')]===-0x1){return _0x505478;}var _0x1bd09c=this[_0x8167('0xb3')]('RECOG_INPUT()',_0x8167('0xdd'));if(_0x1bd09c[_0x8167('0xba')]===-0x1){return _0x1bd09c;}var _0x3a57b7=this[_0x8167('0xb3')](_0x8167('0xde'),_0x8167('0xdf'));if(_0x3a57b7[_0x8167('0xba')]===-0x1){return _0x3a57b7;}return this[_0x8167('0xf')][_0x8167('0xbf')](util[_0x8167('0x2b')](_0x8167('0xc6'),_0x34130a));};AGIVertices[_0x8167('0x12')][_0x8167('0xe0')]=function(_0x175052){logger[_0x8167('0x2f')](util[_0x8167('0x2b')](_0x8167('0xe1'),_0x175052[_0x8167('0x3b')]));if(!this['isConfigured'](_0x175052['grammar'])){return this[_0x8167('0xf')][_0x8167('0xbf')](_0x8167('0xc0'));}var _0x1dd1f0=_0x175052['grammar'];if(this[_0x8167('0xb5')](_0x175052[_0x8167('0x8e')])){_0x1dd1f0+=','+_0x175052['options'];}var _0x47f952=this[_0x8167('0xf')][_0x8167('0x6a')]('MRCPRecog',_0x1dd1f0);if(_0x47f952[_0x8167('0xba')]===-0x1){return _0x47f952;}var _0x227156=this[_0x8167('0xb3')](_0x8167('0xc2'),'SESTEK_ASR_CONFIDENCE');if(_0x227156['result']===-0x1){return _0x227156;}var _0x743b1c=this[_0x8167('0xb3')](_0x8167('0xc4'),_0x8167('0xe2'));if(_0x743b1c[_0x8167('0xba')]===-0x1){return _0x743b1c;}var _0x359438=this[_0x8167('0xb3')](_0x8167('0xde'),_0x8167('0xe3'));if(_0x359438[_0x8167('0xba')]===-0x1){return _0x359438;}return this[_0x8167('0xf')][_0x8167('0xbf')](util[_0x8167('0x2b')](_0x8167('0xc6'),_0x1dd1f0));};AGIVertices[_0x8167('0x12')][_0x8167('0xe4')]=function(_0x4c02fa){logger[_0x8167('0x2f')](util[_0x8167('0x2b')](_0x8167('0xe5'),_0x4c02fa[_0x8167('0x3b')]));if(!this[_0x8167('0xb5')](_0x4c02fa[_0x8167('0xe6')])){return this[_0x8167('0xf')][_0x8167('0x2e')](_0x4c02fa,_0x8167('0xe7'));}var _0x446c63=this[_0x8167('0x1a')][_0x8167('0x84')](this,_0x4c02fa[_0x8167('0xe6')]);if(!_0x446c63){return this[_0x8167('0xf')][_0x8167('0x2e')](_0x4c02fa,_0x8167('0xe8'));}if(!this[_0x8167('0xb5')](_0x4c02fa['query'])){return this[_0x8167('0xf')][_0x8167('0x2e')](_0x4c02fa,_0x8167('0xe9'));}var _0x189a61=_0x4c02fa[_0x8167('0x31')]['replace'](/(\r\n|\n|\r)/gm,'\x20');this['channel']['noop'](util['format'](_0x8167('0xea'),_0x189a61));var _0x303420=this[_0x8167('0x2d')][_0x8167('0x84')](this,_0x446c63,_0x189a61);this[_0x8167('0x39')]['sync'](this,_0x4c02fa,_0x189a61);if(!this['isConfigured'](_0x4c02fa[_0x8167('0xeb')])){return this[_0x8167('0xf')]['noop'](_0x8167('0xec'));}var _0x5475bd=this[_0x8167('0x13')][_0x8167('0x84')](this,_0x4c02fa[_0x8167('0xeb')]);if(!_0x5475bd){return this['channel'][_0x8167('0x2e')](_0x4c02fa,_0x8167('0xed'));}var _0x314b33=this;_0x303420[_0x8167('0xee')](function(_0x50f66a,_0xc30a27){Object[_0x8167('0xef')](_0x50f66a)[_0x8167('0xee')](function(_0x45fe83){_0x314b33[_0x8167('0xf')][_0x8167('0xf0')](util[_0x8167('0x2b')](_0x8167('0xf1'),_0x5475bd,_0xc30a27,_0x45fe83),_0x50f66a[_0x45fe83]);});});this[_0x8167('0xf')]['setVariable'](util['format'](_0x8167('0xf2'),_0x5475bd),_0x303420['length']);return this[_0x8167('0xf')]['noop'](util[_0x8167('0x2b')]('variable\x20%s\x20set',_0x5475bd));};AGIVertices[_0x8167('0x12')][_0x8167('0xf3')]=function(_0x439a47){logger['debug'](util[_0x8167('0x2b')](_0x8167('0xf4'),_0x439a47[_0x8167('0x3b')]));if(!this[_0x8167('0xb5')](_0x439a47['sip_id'])){return this[_0x8167('0xf')]['error'](_0x439a47,_0x8167('0xf5'));}var _0x53863f=this[_0x8167('0xf6')][_0x8167('0x84')](this,_0x439a47['sip_id']);if(!_0x53863f){return this[_0x8167('0xf')][_0x8167('0x2e')](_0x439a47,'no\x20user\x20found');}var _0x388078=this[_0x8167('0xf')][_0x8167('0x6a')](_0x8167('0xf7'),[util[_0x8167('0x2b')](_0x8167('0xf8'),_0x53863f),_0x439a47[_0x8167('0x7a')],_0x439a47['opts'],_0x439a47[_0x8167('0x87')]]);if(_0x388078[_0x8167('0xba')]===-0x1){return _0x388078;}return this[_0x8167('0xf')][_0x8167('0xbf')](util[_0x8167('0x2b')]('Executed\x20command\x20%s',_0x8167('0xf7')));};AGIVertices[_0x8167('0x12')][_0x8167('0xf9')]=function(_0x5f201d){logger[_0x8167('0x2f')](util[_0x8167('0x2b')](_0x8167('0xfa'),_0x5f201d[_0x8167('0x3b')]));if(!this[_0x8167('0xb5')](_0x5f201d[_0x8167('0x90')])){return this['channel'][_0x8167('0xbf')]('no\x20key\x20configured');}if(!this[_0x8167('0xb5')](_0x5f201d['text'])){return this[_0x8167('0xf')][_0x8167('0xbf')]('no\x20text\x20configured');}this[_0x8167('0xf')][_0x8167('0xfb')]=!![];this[_0x8167('0x39')](_0x5f201d);this[_0x8167('0x44')](_0x5f201d[_0x8167('0x6f')],'in');this[_0x8167('0xf')][_0x8167('0xbf')](util['format'](_0x8167('0xfc'),_0x5f201d['text']));var _0xbdcf79=this[_0x8167('0x8f')][_0x8167('0x84')](this,_0x5f201d);if(_0xbdcf79){for(var _0x58ba5d in _0xbdcf79){if(_0xbdcf79['hasOwnProperty'](_0x58ba5d)){this[_0x8167('0xf')][_0x8167('0xf0')](util['format'](_0x8167('0xfd'),_0x58ba5d[_0x8167('0x7e')]()),_0xbdcf79[_0x58ba5d]);}}this[_0x8167('0x44')](_0xbdcf79[_0x8167('0xfe')],_0x8167('0xff'));return this[_0x8167('0xf')][_0x8167('0xbf')](util[_0x8167('0x2b')](_0x8167('0x100'),_0xbdcf79[_0x8167('0xfe')]));}return this[_0x8167('0xf')][_0x8167('0x2e')](_0x5f201d,_0x8167('0x101'));};AGIVertices[_0x8167('0x12')][_0x8167('0x102')]=function(_0x4ccb77){logger[_0x8167('0x2f')](util[_0x8167('0x2b')](_0x8167('0x103'),_0x4ccb77[_0x8167('0x3b')]));if(!this['isConfigured'](_0x4ccb77[_0x8167('0x104')])){return this[_0x8167('0xf')][_0x8167('0xbf')](_0x8167('0x105'));}if(!this[_0x8167('0xb5')](_0x4ccb77['username'])){return this['channel'][_0x8167('0xbf')]('no\x20username\x20configured');}if(!this[_0x8167('0xb5')](_0x4ccb77['password'])){return this[_0x8167('0xf')][_0x8167('0xbf')](_0x8167('0x106'));}if(!this[_0x8167('0xb5')](_0x4ccb77[_0x8167('0x107')])){return this['channel'][_0x8167('0xbf')]('no\x20text\x20configured');}this[_0x8167('0xf')][_0x8167('0xfb')]=!![];this[_0x8167('0x39')](_0x4ccb77);this[_0x8167('0x44')](_0x4ccb77['text'],'in');this['channel']['noop'](util[_0x8167('0x2b')]('Trying\x20SestekNDA:\x20%s',_0x4ccb77[_0x8167('0x6f')]));var _0x486aa5=this[_0x8167('0x92')][_0x8167('0x84')](this,_0x4ccb77);if(_0x486aa5){for(var _0x51b596 in _0x486aa5){if(_0x486aa5[_0x8167('0xa3')](_0x51b596)){this[_0x8167('0xf')][_0x8167('0xf0')](util[_0x8167('0x2b')](_0x8167('0x108'),_0x51b596['toUpperCase']()),_0x486aa5[_0x51b596]);}}this[_0x8167('0x44')](_0x486aa5[_0x8167('0xfe')],_0x8167('0xff'));if(_0x486aa5[_0x8167('0x109')]){this[_0x8167('0xf')][_0x8167('0xbf')](util['format'](_0x8167('0x10a'),_0x486aa5[_0x8167('0x109')]));var _0x2c2474=this[_0x8167('0xf')][_0x8167('0x10b')](_0x486aa5[_0x8167('0x109')]);try{fs[_0x8167('0x10c')](_0x486aa5[_0x8167('0x109')]+_0x8167('0x10d'));}catch(_0x2bc935){logger[_0x8167('0x2e')](_0x2bc935);}return _0x2c2474;}else{return this['channel']['noop'](util['format'](_0x8167('0x10e'),_0x486aa5[_0x8167('0xfe')]));}}return this[_0x8167('0xf')]['error'](_0x4ccb77,_0x8167('0x10f'));};AGIVertices[_0x8167('0x12')][_0x8167('0x110')]=function(_0x3b33fa){logger['info'](util[_0x8167('0x2b')](_0x8167('0x111'),_0x3b33fa[_0x8167('0x3b')]));return this[_0x8167('0xf')][_0x8167('0xbf')](_0x8167('0x110'));};AGIVertices['prototype'][_0x8167('0x112')]=function(_0x5f2f98){logger[_0x8167('0x2f')](util['format'](_0x8167('0x113'),_0x5f2f98[_0x8167('0x3b')]));var _0x453203='';if(_0x5f2f98[_0x8167('0x114')]){if(!this[_0x8167('0xb5')](_0x5f2f98[_0x8167('0x114')])){return this[_0x8167('0xf')]['error'](_0x5f2f98,_0x8167('0x115'));}else{var _0x26c74e=parseInt(_0x5f2f98[_0x8167('0x114')],0xa);if(isNaN(_0x26c74e)){_0x453203=_0x5f2f98[_0x8167('0x114')];}else{_0x453203=this[_0x8167('0x1e')][_0x8167('0x84')](this,_0x5f2f98[_0x8167('0x114')]);if(!_0x453203){return this[_0x8167('0xf')][_0x8167('0x2e')](_0x5f2f98,_0x8167('0x116'));}}}}else if(_0x5f2f98['trunk_name']){_0x453203=_0x5f2f98[_0x8167('0x117')];}else{return this['channel'][_0x8167('0x2e')](_0x5f2f98,'no\x20trunk\x20selected');}var _0x3be4b0=this[_0x8167('0xf')][_0x8167('0x6a')]('DIAL',[util['format']('SIP/%s/%s',_0x453203,_0x5f2f98[_0x8167('0x4e')]),_0x5f2f98[_0x8167('0x7a')],_0x5f2f98['opts'],_0x5f2f98[_0x8167('0x87')]]);if(_0x3be4b0[_0x8167('0xba')]===-0x1){return _0x3be4b0;}return this[_0x8167('0xf')]['noop'](util[_0x8167('0x2b')]('Executed\x20command\x20%s',_0x8167('0xf7')));};AGIVertices['prototype'][_0x8167('0x118')]=function(_0x2803c5){logger[_0x8167('0x2f')](util[_0x8167('0x2b')](_0x8167('0x119'),_0x2803c5[_0x8167('0x3b')]));return this[_0x8167('0xf')]['noop'](_0x8167('0x118'));};AGIVertices['prototype'][_0x8167('0x11a')]=function(_0x1794a2){logger[_0x8167('0x2f')](util[_0x8167('0x2b')](_0x8167('0x11b'),_0x1794a2[_0x8167('0x3b')]));if(_0x1794a2[_0x8167('0x11c')]===0x0){return this[_0x8167('0xb6')](_0x1794a2);}_0x1794a2[_0x8167('0x11c')]-=0x1;if(!this[_0x8167('0xb5')](_0x1794a2[_0x8167('0x11d')])){return this[_0x8167('0xf')]['error'](_0x1794a2,_0x8167('0x11e'));}var _0x19bda4=this['getSound'][_0x8167('0x84')](this,_0x1794a2['file_id']);if(!_0x19bda4){return this[_0x8167('0xf')][_0x8167('0x2e')](_0x1794a2,_0x8167('0x11f'));}if(!this[_0x8167('0xb5')](_0x1794a2[_0x8167('0xeb')])){return this[_0x8167('0xf')]['error']('no\x20variable\x20selected\x20for\x20the\x20result');}var _0x10b6c4=this[_0x8167('0xf')][_0x8167('0x120')](_0x19bda4,_0x1794a2[_0x8167('0x121')],_0x1794a2[_0x8167('0x122')]);var _0x569ed0=_0x10b6c4[_0x8167('0xba')]?_0x10b6c4[_0x8167('0xba')][_0x8167('0xb1')]():'';logger[_0x8167('0x2f')]('test',JSON[_0x8167('0x88')](_0x10b6c4));if(_0x10b6c4[_0x8167('0xba')]===-0x1){this[_0x8167('0x39')]['sync'](this,_0x1794a2,_0x569ed0);return _0x10b6c4;}else if(_0x10b6c4['extra']==='timeout'){_0x10b6c4[_0x8167('0xba')]=_0x569ed0['length']>=parseInt(_0x1794a2[_0x8167('0x123')])?'x':'i';}else{_0x10b6c4['result']=_0x569ed0['length']>=parseInt(_0x1794a2['mindigit'])&&_0x569ed0[_0x8167('0xa8')]<=parseInt(_0x1794a2['maxdigit'])?'x':'i';}var _0x15c851=this[_0x8167('0x13')]['sync'](this,_0x1794a2[_0x8167('0xeb')]);if(!_0x15c851){return this[_0x8167('0xf')][_0x8167('0x2e')](_0x1794a2,'no\x20variable\x20found');}this[_0x8167('0xf')][_0x8167('0xf0')](_0x15c851,_0x569ed0);if(this['isConfigured'](_0x1794a2[_0x8167('0x124')])){var _0x4675d9=parseInt(_0x1794a2[_0x8167('0x124')],0xa);var _0x274b20=rs[_0x8167('0x125')]({'charset':'*','length':_0x4675d9});var _0x412e33=_0x569ed0[_0x8167('0xa8')];if(_0x412e33>0x0){if(_0x412e33>_0x4675d9){this[_0x8167('0x39')][_0x8167('0x84')](this,_0x1794a2,_0x1794a2[_0x8167('0x126')]===_0x8167('0x127')?_0x274b20+_0x569ed0['substr'](_0x4675d9):_0x569ed0[_0x8167('0x128')](0x0,_0x412e33-_0x4675d9)+_0x274b20);}else{this[_0x8167('0x39')][_0x8167('0x84')](this,_0x1794a2,rs[_0x8167('0x125')]({'charset':'*','length':_0x412e33}));}}else{this[_0x8167('0x39')][_0x8167('0x84')](this,_0x1794a2,'');}}else{this[_0x8167('0x39')][_0x8167('0x84')](this,_0x1794a2,_0x569ed0);}return _0x10b6c4;};AGIVertices[_0x8167('0x12')]['getsecretdigits']=function(_0x59c937){logger[_0x8167('0x2f')](util['format'](_0x8167('0x129'),_0x59c937[_0x8167('0x3b')]));return this[_0x8167('0x11a')](_0x59c937);};AGIVertices['prototype'][_0x8167('0x12a')]=function(_0x5a4605){logger[_0x8167('0x2f')](util[_0x8167('0x2b')](_0x8167('0x12b'),_0x5a4605[_0x8167('0x3b')]));this['createSquareDetailsReport'][_0x8167('0x84')](this,_0x5a4605,_0x5a4605[_0x8167('0x12c')]);return this[_0x8167('0xf')]['noop'](util['format'](_0x8167('0x12d'),_0x5a4605[_0x8167('0x12c')]));};AGIVertices[_0x8167('0x12')][_0x8167('0x12e')]=function(_0x2b24ea){logger['info'](util[_0x8167('0x2b')](_0x8167('0x12f'),_0x2b24ea[_0x8167('0x3b')]));if(!this[_0x8167('0xb5')](_0x2b24ea[_0x8167('0x130')])||!this[_0x8167('0xb5')](_0x2b24ea[_0x8167('0x97')])){return this[_0x8167('0xf')][_0x8167('0xbf')](_0x8167('0x131'));}if(!this['isConfigured'](_0x2b24ea[_0x8167('0x6f')])){return this[_0x8167('0xf')][_0x8167('0xbf')](_0x8167('0xb8'));}this['channel'][_0x8167('0xbf')](util[_0x8167('0x2b')](_0x8167('0x132'),_0x2b24ea['text']));var _0x289f0a=this[_0x8167('0x96')][_0x8167('0x84')](this,_0x2b24ea);if(_0x289f0a){this[_0x8167('0xf')][_0x8167('0xbf')](util[_0x8167('0x2b')]('aws\x20Polly\x20%s\x20file\x20created',_0x289f0a));var _0x1706b8=this[_0x8167('0xf')][_0x8167('0x10b')](_0x289f0a);try{fs[_0x8167('0x10c')](_0x289f0a+_0x8167('0x10d'));}catch(_0x729b79){logger['error'](_0x729b79);}return _0x1706b8;}return this[_0x8167('0xf')]['error'](_0x2b24ea,_0x8167('0x133'));};AGIVertices['prototype']['awslex']=function(_0x23d1ad){logger[_0x8167('0x2f')](util[_0x8167('0x2b')](_0x8167('0x134'),_0x23d1ad[_0x8167('0x3b')]));if(!this[_0x8167('0xb5')](_0x23d1ad[_0x8167('0x130')])||!this[_0x8167('0xb5')](_0x23d1ad['aws_secret_access_key'])){return this[_0x8167('0xf')][_0x8167('0xbf')](_0x8167('0x131'));}if(!this[_0x8167('0xb5')](_0x23d1ad[_0x8167('0x9c')])){return this['channel'][_0x8167('0xbf')](_0x8167('0x135'));}if(!this[_0x8167('0xb5')](_0x23d1ad[_0x8167('0x6f')])){return this['channel']['noop'](_0x8167('0xb8'));}this[_0x8167('0xf')][_0x8167('0xfb')]=!![];this['createSquareDetailsReport'](_0x23d1ad);this[_0x8167('0x44')](_0x23d1ad[_0x8167('0x6f')],'in');this[_0x8167('0xf')][_0x8167('0xbf')](util[_0x8167('0x2b')](_0x8167('0x136'),_0x23d1ad[_0x8167('0x6f')]));var _0x34b8d3=this['awsLex'][_0x8167('0x84')](this,_0x23d1ad);if(_0x34b8d3){for(var _0x1879b9 in _0x34b8d3){if(_0x34b8d3[_0x8167('0xa3')](_0x1879b9)&&_[_0x8167('0xa4')](_0x34b8d3[_0x1879b9])){this[_0x8167('0xf')][_0x8167('0xf0')](util[_0x8167('0x2b')](_0x8167('0x137'),_0x1879b9[_0x8167('0x7e')]()),_0x34b8d3[_0x1879b9]);}}if(_['isNil'](_0x34b8d3[_0x8167('0x8c')])){return this['channel'][_0x8167('0xbf')](_0x8167('0x138'));}else{this['createSquareMessage'](_0x34b8d3[_0x8167('0x8c')],_0x8167('0xff'));return this[_0x8167('0xf')][_0x8167('0xbf')](util[_0x8167('0x2b')]('Amazon\x20Lex\x20Result\x20%s',_0x34b8d3['message']));}}return this['channel'][_0x8167('0x2e')](_0x23d1ad,_0x8167('0x139'));};AGIVertices[_0x8167('0x12')][_0x8167('0x13a')]=function(_0x5e67f8){logger[_0x8167('0x2f')](util[_0x8167('0x2b')](_0x8167('0x13b'),_0x5e67f8['label'],_0x5e67f8[_0x8167('0x7a')]));if(!this[_0x8167('0xb5')](_0x5e67f8[_0x8167('0x90')])){return this[_0x8167('0xf')][_0x8167('0xbf')]('no\x20key\x20configured');}var _0x2b6bc8=_0x8167('0x13c');var _0x25070f=util[_0x8167('0x2b')](_0x8167('0x13d'),FILES_PATH,rs[_0x8167('0x125')](0x4));var _0x1185d5=util[_0x8167('0x2b')](_0x8167('0xab'),_0x25070f,_0x2b6bc8);var _0x577412=!![];if(_0x5e67f8[_0x8167('0x13e')]===_0x8167('0x13f')){_0x577412=![];}var _0x158097=this[_0x8167('0xf')][_0x8167('0x140')](_0x25070f,_0x2b6bc8,_0x5e67f8[_0x8167('0x141')],_0x5e67f8[_0x8167('0x7a')],undefined,_0x577412);if(_0x158097['result']!==-0x1){this['channel'][_0x8167('0xbf')](util['format'](_0x8167('0x142'),_0x1185d5));var _0x824976=this[_0x8167('0x9d')][_0x8167('0x84')](this,_0x5e67f8,_0x1185d5);if(_0x824976){for(var _0x301f3d in _0x824976){if(_0x824976[_0x8167('0xa3')](_0x301f3d)){this[_0x8167('0xf')][_0x8167('0xf0')](util[_0x8167('0x2b')](_0x8167('0x143'),_0x301f3d[_0x8167('0x7e')]()),_0x824976[_0x301f3d]);}}return this[_0x8167('0xf')][_0x8167('0xbf')](util['format'](_0x8167('0x144'),JSON[_0x8167('0x88')](_0x824976)));}}return _0x158097;};AGIVertices['prototype'][_0x8167('0x145')]=function(_0x5a325c){logger['info'](util[_0x8167('0x2b')](_0x8167('0x146'),_0x5a325c[_0x8167('0x3b')]));if(!this[_0x8167('0xb5')](_0x5a325c['appid'])){return this['channel']['noop'](_0x8167('0x147'));}if(!this[_0x8167('0xb5')](_0x5a325c['appsecret'])){return this[_0x8167('0xf')]['noop'](_0x8167('0x148'));}var _0x5874a6=_0x8167('0x13c');var _0x1ec104=util['format']('%s/recordings/%s',FILES_PATH,rs[_0x8167('0x125')](0x4));var _0x541360=util[_0x8167('0x2b')](_0x8167('0xab'),_0x1ec104,_0x5874a6);var _0x2f31af=!![];if(_0x5a325c[_0x8167('0x13e')]===_0x8167('0x13f')){_0x2f31af=![];}var _0x4c7b4e=this[_0x8167('0xf')]['recordFile'](_0x1ec104,_0x5874a6,_0x5a325c['intKey'],_0x5a325c[_0x8167('0x7a')],undefined,_0x2f31af);if(_0x4c7b4e[_0x8167('0xba')]!==-0x1){this[_0x8167('0xf')][_0x8167('0xbf')](util[_0x8167('0x2b')](_0x8167('0x149'),_0x541360));var _0x517688=this[_0x8167('0x9f')]['sync'](this,_0x5a325c,_0x541360);if(_0x517688){for(var _0x11663b in _0x517688){if(_0x517688[_0x8167('0xa3')](_0x11663b)){this[_0x8167('0xf')][_0x8167('0xf0')](util[_0x8167('0x2b')](_0x8167('0x14a'),_0x11663b[_0x8167('0x7e')]()),_0x517688[_0x11663b]);}}return this[_0x8167('0xf')][_0x8167('0xbf')](util[_0x8167('0x2b')](_0x8167('0x14b'),JSON[_0x8167('0x88')](_0x517688)));}}return _0x4c7b4e;};AGIVertices['prototype']['gotoc']=function(_0x42d8fe){logger['info'](util['format'](_0x8167('0x14c'),_0x42d8fe['label']));return this['channel'][_0x8167('0x14d')](_0x42d8fe[_0x8167('0x40')],_0x42d8fe[_0x8167('0x41')],_0x42d8fe[_0x8167('0x42')]);};AGIVertices[_0x8167('0x12')][_0x8167('0x14e')]=function(_0x70cdab){logger[_0x8167('0x2f')](util[_0x8167('0x2b')](_0x8167('0x14f'),_0x70cdab[_0x8167('0x3b')]));if(!this[_0x8167('0xb5')](_0x70cdab[_0x8167('0x150')])){return this['channel']['error'](_0x70cdab,'no\x20condition\x20configured');}try{var _0xcd6cff=eval(_0x70cdab[_0x8167('0x150')])?'true':_0x8167('0x151');this[_0x8167('0xf')][_0x8167('0xbf')](util['format'](_0x8167('0x152'),_0x70cdab[_0x8167('0x150')],_0xcd6cff));return{'code':0xc8,'result':_0xcd6cff};}catch(_0x2213d0){return{'code':0xc8,'result':_0x8167('0x151')};}};AGIVertices[_0x8167('0x12')][_0x8167('0x153')]=function(_0x13fefa){logger[_0x8167('0x2f')](util['format'](_0x8167('0x154'),_0x13fefa[_0x8167('0x3b')]));if(!this[_0x8167('0xb5')](_0x13fefa[_0x8167('0x155')])){return this[_0x8167('0xf')][_0x8167('0x2e')](_0x13fefa,'no\x20interval\x20configured');}var _0x52d9ff=this['getIntervals'][_0x8167('0x84')](this,_0x13fefa[_0x8167('0x155')]);if(!_0x52d9ff){return this[_0x8167('0xf')][_0x8167('0x2e')](_0x13fefa,_0x8167('0x156'));}for(var _0x56cb51=0x0;_0x56cb51<_0x52d9ff[_0x8167('0xa8')];_0x56cb51+=0x1){var _0x4a1133=this[_0x8167('0xf')][_0x8167('0x13')](util['format'](_0x8167('0x157'),_0x52d9ff[_0x56cb51]));if(_0x4a1133[_0x8167('0xba')]===-0x1){return _0x4a1133;}logger['info'](util['format']('IFTIME\x20%s\x20%s',_0x52d9ff[_0x56cb51],_0x4a1133['extra']));if(_0x4a1133[_0x8167('0xb0')]===_0x8167('0x158')){logger['info'](util[_0x8167('0x2b')](_0x8167('0x159'),_0x52d9ff[_0x56cb51],_0x8167('0x158')));this[_0x8167('0xf')]['noop'](util['format'](_0x8167('0x159'),_0x52d9ff[_0x56cb51],_0x8167('0x158')));return{'code':0xc8,'result':_0x8167('0x158')};}else{logger[_0x8167('0x2f')](util[_0x8167('0x2b')](_0x8167('0x159'),_0x52d9ff[_0x56cb51],_0x8167('0x151')));this['channel'][_0x8167('0xbf')](util[_0x8167('0x2b')](_0x8167('0x159'),_0x52d9ff[_0x56cb51],_0x8167('0x151')));}}return{'code':0xc8,'result':_0x8167('0x151')};};AGIVertices[_0x8167('0x12')][_0x8167('0x15a')]=function(_0x417f6c){logger[_0x8167('0x2f')](util[_0x8167('0x2b')](_0x8167('0x15b'),_0x417f6c['label']));return this['channel'][_0x8167('0x15a')]();};AGIVertices[_0x8167('0x12')]['ispeechasr']=function(_0x5a8a87){logger[_0x8167('0x2f')](util[_0x8167('0x2b')](_0x8167('0x15c'),_0x5a8a87[_0x8167('0x3b')]));if(!this['isConfigured'](_0x5a8a87['key'])){return this[_0x8167('0xf')][_0x8167('0xbf')]('no\x20key\x20configured');}var _0x19f749=_0x8167('0x13c');var _0x40f653=util[_0x8167('0x2b')]('%s/recordings/%s',FILES_PATH,rs['generate'](0x4));var _0xbeac5=util[_0x8167('0x2b')](_0x8167('0xab'),_0x40f653,_0x19f749);var _0x37544c=!![];if(_0x5a8a87[_0x8167('0x13e')]==='NOBEEP'){_0x37544c=![];}var _0x556224=this[_0x8167('0xf')]['recordFile'](_0x40f653,_0x19f749,_0x5a8a87[_0x8167('0x141')],_0x5a8a87['timeout'],undefined,_0x37544c);if(_0x556224[_0x8167('0xba')]!==-0x1){this['channel'][_0x8167('0xbf')](util[_0x8167('0x2b')](_0x8167('0x15d'),_0xbeac5));var _0x1d650a=this[_0x8167('0x15e')][_0x8167('0x84')](this,_0x5a8a87,_0xbeac5);if(_0x1d650a){for(var _0xf2e3b0 in _0x1d650a){if(_0x1d650a['hasOwnProperty'](_0xf2e3b0)){this[_0x8167('0xf')]['setVariable'](util[_0x8167('0x2b')](_0x8167('0x15f'),_0xf2e3b0[_0x8167('0x7e')]()),_0x1d650a[_0xf2e3b0]);}}return this[_0x8167('0xf')][_0x8167('0xbf')](util[_0x8167('0x2b')]('IspeechASR\x20Result\x20%s',JSON[_0x8167('0x88')](_0x1d650a)));}}return _0x556224;};AGIVertices[_0x8167('0x12')]['ispeechtts']=function(_0x2de94f){logger['info'](util['format'](_0x8167('0x160'),_0x2de94f[_0x8167('0x3b')]));if(!this['isConfigured'](_0x2de94f['key'])){return this[_0x8167('0xf')]['noop'](_0x8167('0x161'));}if(!this['isConfigured'](_0x2de94f['text'])){return this[_0x8167('0xf')]['noop'](_0x8167('0xb8'));}this[_0x8167('0xf')]['noop'](util[_0x8167('0x2b')]('Trying\x20ispeech\x20TTS\x20%s',_0x2de94f[_0x8167('0x6f')]));var _0x45a3f9=this[_0x8167('0x93')]['sync'](this,_0x2de94f);if(_0x45a3f9){this['channel'][_0x8167('0xbf')](util['format'](_0x8167('0x15d'),_0x45a3f9));var _0x28d3c3=this['channel']['streamFile'](_0x45a3f9,_0x2de94f[_0x8167('0x141')]);try{fs[_0x8167('0x10c')](_0x45a3f9+_0x8167('0x10d'));}catch(_0x4b97b1){logger[_0x8167('0x2e')](_0x4b97b1);}return _0x28d3c3;}return this['channel'][_0x8167('0x2e')](_0x2de94f,_0x8167('0x162'));};AGIVertices[_0x8167('0x12')][_0x8167('0x163')]=function(_0x5c5387){logger[_0x8167('0x2f')](util[_0x8167('0x2b')](_0x8167('0x164'),_0x5c5387[_0x8167('0x3b')]));if(!this['isConfigured'](_0x5c5387[_0x8167('0x165')])){return this['channel'][_0x8167('0x2e')](_0x5c5387,'no\x20find\x20by\x20configured');}logger[_0x8167('0x2f')](util[_0x8167('0x2b')](_0x8167('0x166'),this['channel']['callerid'],_0x5c5387['findBy']));var _0x5606e7=this['agentLogin'][_0x8167('0x84')](this,_0x5c5387[_0x8167('0x165')]);if(_0x5606e7){logger[_0x8167('0x2f')](util[_0x8167('0x2b')](_0x8167('0x167'),this[_0x8167('0xf')][_0x8167('0x3f')],_0x5c5387[_0x8167('0x165')]));this[_0x8167('0xf')][_0x8167('0xbf')](util[_0x8167('0x2b')]('AGENT\x20%s\x20FOUND\x20BY',this[_0x8167('0xf')][_0x8167('0x3f')],_0x5c5387[_0x8167('0x165')]));return{'code':0xc8,'result':_0x8167('0x168')};}else{logger[_0x8167('0x2f')](util[_0x8167('0x2b')]('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this[_0x8167('0xf')][_0x8167('0x3f')],_0x5c5387['findBy']));this[_0x8167('0xf')][_0x8167('0xbf')](util[_0x8167('0x2b')](_0x8167('0x169'),this[_0x8167('0xf')][_0x8167('0x3f')],_0x5c5387[_0x8167('0x165')]));return{'code':0xc8,'result':'failure'};}};AGIVertices[_0x8167('0x12')][_0x8167('0x16a')]=function(_0x3ecc89){logger[_0x8167('0x2f')](util[_0x8167('0x2b')](_0x8167('0x16b'),_0x3ecc89['label']));if(!this[_0x8167('0xb5')](_0x3ecc89[_0x8167('0x165')])){return this[_0x8167('0xf')][_0x8167('0x2e')](_0x3ecc89,'no\x20find\x20by\x20configured');}logger['info'](util['format'](_0x8167('0x166'),this[_0x8167('0xf')][_0x8167('0x3f')],_0x3ecc89[_0x8167('0x165')]));var _0x58d962=this[_0x8167('0x64')]['sync'](this,_0x3ecc89[_0x8167('0x165')]);if(_0x58d962){logger['info'](util[_0x8167('0x2b')](_0x8167('0x167'),this[_0x8167('0xf')][_0x8167('0x3f')],_0x3ecc89['findBy']));this[_0x8167('0xf')][_0x8167('0xbf')](util[_0x8167('0x2b')](_0x8167('0x167'),this[_0x8167('0xf')][_0x8167('0x3f')],_0x3ecc89[_0x8167('0x165')]));return{'code':0xc8,'result':_0x8167('0x168')};}else{logger[_0x8167('0x2f')](util[_0x8167('0x2b')](_0x8167('0x169'),this[_0x8167('0xf')]['callerid'],_0x3ecc89['findBy']));this[_0x8167('0xf')][_0x8167('0xbf')](util['format'](_0x8167('0x169'),this['channel'][_0x8167('0x3f')],_0x3ecc89[_0x8167('0x165')]));return{'code':0xc8,'result':_0x8167('0x16c')};}};AGIVertices[_0x8167('0x12')][_0x8167('0x16d')]=function(_0x63bc0a){logger[_0x8167('0x2f')](util[_0x8167('0x2b')](_0x8167('0x16e'),_0x63bc0a[_0x8167('0x3b')]));if(!this['isConfigured'](_0x63bc0a[_0x8167('0x16f')])){return this[_0x8167('0xf')][_0x8167('0x2e')](_0x63bc0a,_0x8167('0x170'));}this[_0x8167('0xf')][_0x8167('0xbf')](util[_0x8167('0x2b')](_0x8167('0x171'),_0x63bc0a[_0x8167('0x16f')]));var _0x3c970a=eval(_0x63bc0a['operation']);if(!this[_0x8167('0xb5')](_0x63bc0a[_0x8167('0xeb')])){return this[_0x8167('0xf')][_0x8167('0xbf')](_0x8167('0xec'));}var _0x1b33b9=this[_0x8167('0x13')][_0x8167('0x84')](this,_0x63bc0a['variable_id']);if(!_0x1b33b9){return this[_0x8167('0xf')]['error'](_0x63bc0a,'no\x20variable\x20found');}if(_[_0x8167('0xaa')](_0x3c970a)){var _0x23ddd9=this;_0x3c970a['forEach'](function(_0x3dcd5a,_0x2a535d){_0x23ddd9[_0x8167('0xf')][_0x8167('0xf0')](util[_0x8167('0x2b')]('%s[%s]',_0x1b33b9,_0x2a535d),_0x3dcd5a);});return this['channel']['noop'](util[_0x8167('0x2b')]('variable\x20%s[key]\x20set',_0x1b33b9));}else{return this[_0x8167('0xf')][_0x8167('0xf0')](_0x1b33b9,_0x3c970a);}};AGIVertices['prototype'][_0x8167('0xe')]=function(_0x567a8b){logger['info'](util['format'](_0x8167('0x172'),_0x567a8b[_0x8167('0x3b')]));if(_0x567a8b[_0x8167('0x11c')]===0x0){return this[_0x8167('0xb6')](_0x567a8b);}_0x567a8b[_0x8167('0x11c')]-=0x1;if(!this[_0x8167('0xb5')](_0x567a8b[_0x8167('0x11d')])){return this[_0x8167('0xf')]['error'](_0x567a8b,_0x8167('0x11e'));}var _0x38d676=this['getSound']['sync'](this,_0x567a8b[_0x8167('0x11d')]);if(!_0x38d676){return this[_0x8167('0xf')]['error'](_0x567a8b,_0x8167('0x11f'));}var _0x355209=this[_0x8167('0xf')][_0x8167('0x120')](_0x38d676,_0x567a8b['response'],_0x567a8b['digit']);var _0x28c909=_0x355209[_0x8167('0xba')];if(_0x355209['result']===-0x1){this[_0x8167('0x39')][_0x8167('0x84')](this,_0x567a8b,'-1');return _0x355209;}else if(_0x355209[_0x8167('0xb0')]===_0x8167('0x7a')){_0x355209[_0x8167('0xba')]=_0x355209[_0x8167('0xba')][_0x8167('0xa8')]>0x0?_0x355209[_0x8167('0xba')]:'t';}else if(_['isEmpty'](_0x355209[_0x8167('0xba')])){_0x355209['result']='#';_0x28c909='#';}if(!this[_0x8167('0xb5')](_0x567a8b[_0x8167('0xeb')])){this['channel'][_0x8167('0xbf')]('no\x20variable\x20selected\x20for\x20the\x20result');}else{var _0x236ab5=this[_0x8167('0x13')][_0x8167('0x84')](this,_0x567a8b[_0x8167('0xeb')]);if(!_0x236ab5){return this[_0x8167('0xf')][_0x8167('0x2e')](_0x567a8b,_0x8167('0xed'));}this[_0x8167('0xf')][_0x8167('0xf0')](_0x236ab5,_0x28c909);}this['createSquareDetailsReport']['sync'](this,_0x567a8b,_0x28c909);return _0x355209;};AGIVertices['prototype']['noop']=function(_0x1a1f29){logger[_0x8167('0x2f')](util[_0x8167('0x2b')](_0x8167('0x173'),_0x1a1f29['label']));return this[_0x8167('0xf')][_0x8167('0xbf')](_0x1a1f29[_0x8167('0x174')]||_0x1a1f29[_0x8167('0x3b')]);};AGIVertices['prototype'][_0x8167('0x175')]=function(_0x1ab5a4){logger[_0x8167('0x2f')](util[_0x8167('0x2b')](_0x8167('0x176'),_0x1ab5a4[_0x8167('0x3b')]));if(!this[_0x8167('0xb5')](_0x1ab5a4[_0x8167('0x165')])){return this['channel'][_0x8167('0x2e')](_0x1ab5a4,_0x8167('0x177'));}logger[_0x8167('0x2f')](util[_0x8167('0x2b')](_0x8167('0x166'),this['channel']['callerid'],_0x1ab5a4['findBy']));var _0x29b91b=this[_0x8167('0x60')][_0x8167('0x84')](this,_0x1ab5a4['pause_id']);var _0x147bd7=this[_0x8167('0x61')][_0x8167('0x84')](this,_0x1ab5a4[_0x8167('0x165')],_0x29b91b);if(_0x147bd7){logger[_0x8167('0x2f')](util[_0x8167('0x2b')](_0x8167('0x167'),this[_0x8167('0xf')][_0x8167('0x3f')],_0x1ab5a4[_0x8167('0x165')]));this['channel'][_0x8167('0xbf')](util[_0x8167('0x2b')]('AGENT\x20%s\x20FOUND\x20BY',this[_0x8167('0xf')][_0x8167('0x3f')],_0x1ab5a4[_0x8167('0x165')]));return{'code':0xc8,'result':_0x8167('0x168')};}else{logger[_0x8167('0x2f')](util[_0x8167('0x2b')](_0x8167('0x169'),this[_0x8167('0xf')]['callerid'],_0x1ab5a4[_0x8167('0x165')]));this[_0x8167('0xf')][_0x8167('0xbf')](util[_0x8167('0x2b')]('AGENT\x20%s\x20FOUND\x20BY',this[_0x8167('0xf')][_0x8167('0x3f')],_0x1ab5a4[_0x8167('0x165')]));return{'code':0xc8,'result':_0x8167('0x16c')};}};AGIVertices[_0x8167('0x12')]['playback']=function(_0x5a5ae8){logger['info'](util[_0x8167('0x2b')](_0x8167('0x178'),_0x5a5ae8[_0x8167('0x3b')]));if(!this[_0x8167('0xb5')](_0x5a5ae8[_0x8167('0x11d')])){return this['channel'][_0x8167('0x2e')](_0x5a5ae8,'no\x20file\x20audio\x20selected');}var _0x373f91=this[_0x8167('0x20')][_0x8167('0x84')](this,_0x5a5ae8[_0x8167('0x11d')]);if(!_0x373f91){return this[_0x8167('0xf')][_0x8167('0x2e')](_0x5a5ae8,_0x8167('0x11f'));}var _0x3a05fc=this[_0x8167('0xf')]['exec'](_0x8167('0x179'),[_0x373f91,_0x5a5ae8[_0x8167('0x17a')]]);if(_0x3a05fc[_0x8167('0xba')]===-0x1){return _0x3a05fc;}return this[_0x8167('0xf')]['noop'](util['format'](_0x8167('0xd5'),_0x8167('0x179'),_0x373f91));};AGIVertices[_0x8167('0x12')][_0x8167('0x17b')]=function(_0x2efb76){logger[_0x8167('0x2f')](util['format'](_0x8167('0x17c'),_0x2efb76['label']));if(!this[_0x8167('0xb5')](_0x2efb76[_0x8167('0x17d')])){return this[_0x8167('0xf')][_0x8167('0x2e')](_0x2efb76,'no\x20queue\x20selected');}var _0x44d178='';var _0x4cff4c=parseInt(_0x2efb76[_0x8167('0x17d')],0xa);if(isNaN(_0x4cff4c)){_0x44d178=_0x2efb76[_0x8167('0x17d')];}else{_0x44d178=this[_0x8167('0x17')][_0x8167('0x84')](this,_0x2efb76[_0x8167('0x17d')]);if(!_0x44d178){return this[_0x8167('0xf')][_0x8167('0x2e')](_0x2efb76,_0x8167('0x17e'));}}var _0x15c33e='';if(this[_0x8167('0xb5')](_0x2efb76[_0x8167('0x11d')])){var _0x261b18=this['getSound'][_0x8167('0x84')](this,_0x2efb76[_0x8167('0x11d')]);if(_0x261b18){_0x15c33e=_0x261b18;}}this[_0x8167('0x39')][_0x8167('0x84')](this,_0x2efb76,_0x44d178);if(_0x2efb76[_0x8167('0x17a')][_0x8167('0x17f')]('x')<0x0){_0x2efb76[_0x8167('0x17a')]+='x';}if(_0x2efb76['opts']['indexOf']('X')<0x0){_0x2efb76[_0x8167('0x17a')]+='X';}this[_0x8167('0xf')][_0x8167('0xf0')](_0x8167('0x180'),_0x44d178?_0x44d178[_0x8167('0x181')]():'');var _0x322568=this[_0x8167('0xf')][_0x8167('0x6a')]('QUEUE',[_0x44d178,_0x2efb76[_0x8167('0x17a')],_0x2efb76[_0x8167('0x87')],_0x15c33e,_0x2efb76[_0x8167('0x7a')],_0x2efb76[_0x8167('0x8')],_0x2efb76[_0x8167('0x182')],_0x2efb76[_0x8167('0x183')],'',_0x2efb76[_0x8167('0x184')]]);if(_0x322568['result']===-0x1){return _0x322568;}return this['channel']['noop'](util['format'](_0x8167('0xd5'),_0x8167('0x185'),_0x44d178));};AGIVertices['prototype'][_0x8167('0x186')]=function(_0x2e3b3e){logger[_0x8167('0x2f')](util[_0x8167('0x2b')](_0x8167('0x187'),_0x2e3b3e[_0x8167('0x3b')]));var _0x58b744=_0x2e3b3e[_0x8167('0x188')]||_0x8167('0x13c');var _0x2b23a5=util['format']('%s_%s',this[_0x8167('0xf')]['uniqueid'],rs[_0x8167('0x125')](0x5));var _0x4fc51b=util[_0x8167('0x2b')](_0x8167('0x189'),FILES_PATH,_0x2b23a5,_0x58b744);var _0x49c118=util['format'](_0x8167('0x13d'),FILES_PATH,_0x2b23a5);this[_0x8167('0x3e')][_0x8167('0x84')](this,_0x2e3b3e,_0x2b23a5,_0x4fc51b);this[_0x8167('0xf')][_0x8167('0xf0')](_0x8167('0x18a'),_0x2b23a5);logger['info'](_0x8167('0x18b'),_0x49c118,_0x58b744,_0x2e3b3e[_0x8167('0x18c')],_0x2e3b3e['timeout']);return this[_0x8167('0xf')]['recordFile'](_0x49c118,_0x58b744,_0x2e3b3e[_0x8167('0x18c')],_0x2e3b3e[_0x8167('0x7a')],undefined,!![]);};AGIVertices['prototype'][_0x8167('0x18d')]=function(_0x20aa38){logger[_0x8167('0x2f')](util[_0x8167('0x2b')](_0x8167('0x18e'),_0x20aa38[_0x8167('0x3b')]));if(!this[_0x8167('0xb5')](_0x20aa38['url'])){return this['channel']['noop'](_0x8167('0x18f'));}var _0x3a90f1=this[_0x8167('0x78')][_0x8167('0x84')](this,_0x20aa38);logger[_0x8167('0x2f')](util[_0x8167('0x2b')](_0x8167('0x190'),util['inspect'](_0x3a90f1,{'showHidden':![],'depth':null})));if(!this[_0x8167('0xb5')](_0x20aa38[_0x8167('0xeb')])){return this[_0x8167('0xf')]['noop'](_0x8167('0x191'));}var _0x2b4810=this[_0x8167('0x13')]['sync'](this,_0x20aa38['variable_id']);if(!_0x2b4810){return this[_0x8167('0xf')][_0x8167('0x2e')](_0x20aa38,'no\x20variable\x20found');}this['channel']['setVariable'](util[_0x8167('0x2b')]('%s_STATUS_CODE',_0x2b4810),_0x3a90f1[_0x8167('0x8a')]?_0x3a90f1[_0x8167('0x8a')]:_0x8167('0x192'));this['channel'][_0x8167('0xf0')](util[_0x8167('0x2b')](_0x8167('0x193'),_0x2b4810),_0x3a90f1[_0x8167('0x8b')]?_0x3a90f1['statusMessage']:'OK');if(_0x3a90f1[_0x8167('0x7f')]){try{this[_0x8167('0xa9')](_0x3a90f1[_0x8167('0x7f')],_0x2b4810);}catch(_0x177ce1){logger[_0x8167('0x2e')](util[_0x8167('0x2b')](_0x8167('0x194'),_0x2b4810));}}return this[_0x8167('0xf')][_0x8167('0xbf')](util[_0x8167('0x2b')]('variable\x20%s\x20set',_0x2b4810));};AGIVertices[_0x8167('0x12')]['saydigits']=function(_0xcaf7cc){logger[_0x8167('0x2f')](util['format'](_0x8167('0x195'),_0xcaf7cc[_0x8167('0x3b')]));return this[_0x8167('0xf')][_0x8167('0x196')](_0xcaf7cc[_0x8167('0x197')][_0x8167('0x6c')](/\s+/g,''),_0xcaf7cc[_0x8167('0x18c')]);};AGIVertices['prototype'][_0x8167('0x198')]=function(_0x3c5a79){logger['info'](util[_0x8167('0x2b')](_0x8167('0x199'),_0x3c5a79['label']));return this['channel']['sayNumber'](_0x3c5a79[_0x8167('0x7b')][_0x8167('0x6c')](/\s+/g,''),_0x3c5a79[_0x8167('0x18c')]);};AGIVertices[_0x8167('0x12')][_0x8167('0x19a')]=function(_0x1945d1){logger[_0x8167('0x2f')](util[_0x8167('0x2b')](_0x8167('0x19b'),_0x1945d1['label']));return this['channel'][_0x8167('0x19c')](_0x1945d1['text'],_0x1945d1['escape_digits']);};AGIVertices[_0x8167('0x12')][_0x8167('0x19d')]=function(_0x29bcf6){logger[_0x8167('0x2f')](util['format']('Enter\x20in\x20SENDMAIL\x20(%s)\x20block',_0x29bcf6[_0x8167('0x3b')]));if(!this[_0x8167('0xb5')](_0x29bcf6[_0x8167('0x19e')])){return this[_0x8167('0xf')][_0x8167('0xbf')](_0x8167('0x19f'));}var _0x2bcf51=this[_0x8167('0x24')][_0x8167('0x84')](this,_0x29bcf6[_0x8167('0x19e')]);if(!_0x2bcf51||!_0x2bcf51[_0x8167('0x1a0')]){return this['channel'][_0x8167('0x2e')](_0x29bcf6,_0x8167('0x1a1'));}var _0x29fb91={'from':util[_0x8167('0x2b')](_0x8167('0x1a2'),_0x2bcf51[_0x8167('0x15')],_0x2bcf51[_0x8167('0x1a3')]||_0x2bcf51[_0x8167('0x1a0')][_0x8167('0x1a4')]),'to':_0x29bcf6['to']||'','cc':_0x29bcf6['cc']||'','bcc':_0x29bcf6[_0x8167('0x1a5')]||'','subject':_0x29bcf6['subject'],'html':_0x29bcf6[_0x8167('0x6f')],'text':_0x29bcf6[_0x8167('0x6f')]};var _0x5254bc={'tls':{'rejectUnauthorized':![]}};if(_0x2bcf51[_0x8167('0x1a0')][_0x8167('0x1a6')]){_0x5254bc['service']=_0x2bcf51[_0x8167('0x1a0')][_0x8167('0x1a6')];}else{_0x5254bc['host']=_0x2bcf51[_0x8167('0x1a0')][_0x8167('0x1a7')];_0x5254bc['port']=_0x2bcf51['Smtp'][_0x8167('0x1a8')];_0x5254bc[_0x8167('0x1a9')]=_0x2bcf51[_0x8167('0x1a0')][_0x8167('0x1a9')];}if(_0x2bcf51[_0x8167('0x1a0')][_0x8167('0x1aa')]){_0x5254bc[_0x8167('0x1ab')]={'user':_0x2bcf51['Smtp'][_0x8167('0x1a4')],'pass':_0x2bcf51[_0x8167('0x1a0')][_0x8167('0x1ac')]};}if(this[_0x8167('0xb5')](_0x29bcf6['template_id'])){}logger[_0x8167('0x1ad')](_0x8167('0x1ae'),JSON[_0x8167('0x88')](_0x29fb91));this['createSquareDetailsReport']['sync'](this,_0x29bcf6,_0x29bcf6[_0x8167('0x19e')]);this[_0x8167('0xf')][_0x8167('0xbf')](util['format']('Trying\x20SendMail\x20with\x20account\x20%s',_0x2bcf51['name']));this[_0x8167('0x26')][_0x8167('0x84')](this,_0x5254bc,_0x29fb91);return this['channel']['noop'](_0x8167('0x1af'));};AGIVertices[_0x8167('0x12')]['sendFax']=function(_0x37baa7){logger[_0x8167('0x2f')](util[_0x8167('0x2b')](_0x8167('0x1b0'),_0x37baa7['label']));return this['channel'][_0x8167('0xbf')]('SENDFAX\x20block\x20not\x20implemented');};AGIVertices['prototype'][_0x8167('0x1b1')]=function(_0x2a6460){logger[_0x8167('0x2f')](util['format'](_0x8167('0x1b2'),_0x2a6460[_0x8167('0x3b')]));if(!this[_0x8167('0xb5')](_0x2a6460[_0x8167('0x1b3')])){return this[_0x8167('0xf')][_0x8167('0xbf')](_0x8167('0x1b4'));}var _0x2b4a6d=this[_0x8167('0x36')][_0x8167('0x84')](this,_0x2a6460[_0x8167('0x1b3')]);if(!_0x2b4a6d){return this[_0x8167('0xf')][_0x8167('0x2e')](_0x2a6460,'no\x20sms\x20account\x20found');}var _0x477c97={'body':_0x2a6460[_0x8167('0x1b5')],'phone':_0x2a6460['to']||'','SmsAccountId':_0x2b4a6d['id']};logger[_0x8167('0x1ad')]('sendSMS\x20message',JSON['stringify'](_0x477c97));this[_0x8167('0x39')][_0x8167('0x84')](this,_0x2a6460,_0x2a6460[_0x8167('0x1b3')]);this[_0x8167('0xf')][_0x8167('0xbf')](util[_0x8167('0x2b')](_0x8167('0x1b6'),_0x2b4a6d[_0x8167('0x15')]));this['createSmsMessage'][_0x8167('0x84')](this,_0x477c97);return this[_0x8167('0xf')][_0x8167('0xbf')](_0x8167('0x1b7'));};AGIVertices['prototype'][_0x8167('0x1b8')]=function(_0x27448a){logger[_0x8167('0x2f')](util[_0x8167('0x2b')](_0x8167('0x1b9'),_0x27448a[_0x8167('0x3b')]));if(!this['isConfigured'](_0x27448a[_0x8167('0xeb')])){return this[_0x8167('0xf')][_0x8167('0x2e')](_0x27448a,_0x8167('0x1ba'));}var _0x49dab6=this[_0x8167('0x13')][_0x8167('0x84')](this,_0x27448a[_0x8167('0xeb')]);if(!_0x49dab6){return this['channel'][_0x8167('0x2e')](_0x27448a,_0x8167('0xed'));}return this[_0x8167('0xf')][_0x8167('0xf0')](_0x49dab6,_0x27448a['variable_value']);};AGIVertices[_0x8167('0x12')]['start']=function(_0x17d607){logger[_0x8167('0x2f')](util[_0x8167('0x2b')](_0x8167('0x1bb'),_0x17d607[_0x8167('0x3b')]));this[_0x8167('0xf')][_0x8167('0xbf')](_0x8167('0x1bc'));if(_0x17d607['answer']===_0x8167('0x1bd')){this[_0x8167('0xf')][_0x8167('0xbf')](_0x8167('0x1be'));return this['channel'][_0x8167('0xc9')]();}return this['channel'][_0x8167('0xbf')](_0x8167('0x1bf'));};AGIVertices['prototype'][_0x8167('0x1c0')]=function(_0x33990c){logger['info'](util[_0x8167('0x2b')](_0x8167('0x1c1'),_0x33990c['label']));if(!this[_0x8167('0xb5')](_0x33990c[_0x8167('0x1c2')])){return this[_0x8167('0xf')][_0x8167('0x2e')](_0x33990c,'no\x20subproject\x20selected');}var _0x3f4fbd=this['getSquareProject']['sync'](this,_0x33990c[_0x8167('0x1c2')]);if(!this[_0x8167('0xb5')](_0x3f4fbd)){return this[_0x8167('0xf')]['error'](_0x33990c,util['format'](_0x8167('0x1c3'),_0x33990c[_0x8167('0x1c2')]));}if(_0x3f4fbd===this['channel'][_0x8167('0x3d')]){return this[_0x8167('0xf')][_0x8167('0x2e')](_0x33990c,_0x8167('0x1c4'));}this[_0x8167('0x39')][_0x8167('0x84')](this,_0x33990c,_0x3f4fbd);var _0x8cd2c7=this['channel'][_0x8167('0x6a')](_0x8167('0x1c5'),util[_0x8167('0x2b')](_0x8167('0x1c6'),config[_0x8167('0x8')][_0x8167('0x1a7')]||_0x8167('0x1c7'),_0x3f4fbd,this['channel'][_0x8167('0x3d')]));if(_0x8cd2c7[_0x8167('0xba')]===-0x1){return _0x8cd2c7;}return this[_0x8167('0xf')][_0x8167('0xbf')](util[_0x8167('0x2b')]('Executed\x20command\x20%s\x20%s',_0x8167('0x1c5'),_0x3f4fbd));};AGIVertices['prototype']['system']=function(_0x2cf71b){logger['info'](util[_0x8167('0x2b')](_0x8167('0x1c8'),_0x2cf71b[_0x8167('0x3b')]));var _0x480091=this[_0x8167('0x69')]['sync'](this,_0x2cf71b[_0x8167('0xc7')]);this[_0x8167('0x39')][_0x8167('0x84')](this,_0x2cf71b,_0x2cf71b[_0x8167('0xc7')]);if(this[_0x8167('0xb5')](_0x2cf71b[_0x8167('0xeb')])){var _0x5b2e6c=this[_0x8167('0x13')][_0x8167('0x84')](this,_0x2cf71b[_0x8167('0xeb')]);if(_0x5b2e6c){this[_0x8167('0xf')]['setVariable'](_0x5b2e6c,_0x480091);return this['channel'][_0x8167('0xbf')](util[_0x8167('0x2b')](_0x8167('0x1c9'),_0x2cf71b[_0x8167('0xc7')],_0x5b2e6c));}}return this['channel'][_0x8167('0xbf')](util[_0x8167('0x2b')](_0x8167('0x1ca'),_0x2cf71b[_0x8167('0xc7')]));};AGIVertices[_0x8167('0x12')]['google_cloud_tts']=function(_0x3ab0f6){logger['info'](util[_0x8167('0x2b')]('Enter\x20in\x20Google\x20Cloud\x20TTS\x20(%s)\x20block',_0x3ab0f6['label']));_0x3ab0f6[_0x8167('0x6f')]=_0x3ab0f6['text']['replace'](/(\r\n|\n|\r)/gm,'\x20');if(!this['isConfigured'](_0x3ab0f6[_0x8167('0x6d')])){return this[_0x8167('0xf')][_0x8167('0xbf')](_0x8167('0x1cb'));}if(!this['isConfigured'](_0x3ab0f6[_0x8167('0x6f')])){return this['channel']['noop'](_0x8167('0xb8'));}this[_0x8167('0xf')][_0x8167('0xbf')](util[_0x8167('0x2b')](_0x8167('0x1cc'),_0x3ab0f6[_0x8167('0x6f')]));var _0x2c9f01=this[_0x8167('0x1cd')][_0x8167('0x84')](this,_0x3ab0f6);if(_0x2c9f01){this['channel']['noop'](util['format'](_0x8167('0x1ce'),_0x2c9f01));var _0x51919e=this[_0x8167('0xf')][_0x8167('0x10b')](_0x2c9f01);try{fs[_0x8167('0x10c')](_0x2c9f01+_0x8167('0x10d'));}catch(_0x31bb07){logger[_0x8167('0x2e')](_0x31bb07);}return _0x51919e;}return this[_0x8167('0xf')][_0x8167('0x2e')](_0x3ab0f6,'Google\x20Cloud\x20TTS\x20is\x20unreachable');};AGIVertices[_0x8167('0x12')][_0x8167('0x1cf')]=function(_0x43de07){logger['info'](util[_0x8167('0x2b')](_0x8167('0x1d0'),_0x43de07[_0x8167('0x3b')]));_0x43de07[_0x8167('0x6f')]=_0x43de07['text']['replace'](/(\r\n|\n|\r)/gm,'\x20');if(!this[_0x8167('0xb5')](_0x43de07[_0x8167('0x6f')])){return this[_0x8167('0xf')][_0x8167('0xbf')](_0x8167('0xb8'));}this['channel']['noop'](util[_0x8167('0x2b')]('Trying\x20Google\x20TTS\x20%s',_0x43de07[_0x8167('0x6f')]));var _0x40f69d=this[_0x8167('0x76')]['sync'](this,_0x43de07);if(_0x40f69d){this[_0x8167('0xf')][_0x8167('0xbf')](util[_0x8167('0x2b')](_0x8167('0x1d1'),_0x40f69d));var _0x2c9af1=this[_0x8167('0xf')][_0x8167('0x10b')](_0x40f69d);try{fs[_0x8167('0x10c')](_0x40f69d+_0x8167('0x10d'));}catch(_0x568be7){logger[_0x8167('0x2e')](_0x568be7);}return _0x2c9af1;}return this[_0x8167('0xf')][_0x8167('0x2e')](_0x43de07,_0x8167('0x1d2'));};AGIVertices[_0x8167('0x12')][_0x8167('0x1d3')]=function(_0x4807c1){logger['info'](util[_0x8167('0x2b')]('Enter\x20in\x20UNPAUSE\x20(%s)\x20block',_0x4807c1[_0x8167('0x3b')]));if(!this[_0x8167('0xb5')](_0x4807c1[_0x8167('0x165')])){return this[_0x8167('0xf')][_0x8167('0x2e')](_0x4807c1,_0x8167('0x177'));}logger[_0x8167('0x2f')](util[_0x8167('0x2b')](_0x8167('0x166'),this[_0x8167('0xf')][_0x8167('0x3f')],_0x4807c1[_0x8167('0x165')]));var _0x1d12df=this[_0x8167('0x62')]['sync'](this,_0x4807c1[_0x8167('0x165')]);if(_0x1d12df){logger[_0x8167('0x2f')](util['format']('AGENT\x20%s\x20FOUND\x20BY',this['channel'][_0x8167('0x3f')],_0x4807c1['findBy']));this[_0x8167('0xf')][_0x8167('0xbf')](util['format'](_0x8167('0x167'),this[_0x8167('0xf')][_0x8167('0x3f')],_0x4807c1['findBy']));return{'code':0xc8,'result':_0x8167('0x168')};}else{logger[_0x8167('0x2f')](util[_0x8167('0x2b')](_0x8167('0x169'),this[_0x8167('0xf')][_0x8167('0x3f')],_0x4807c1['findBy']));this[_0x8167('0xf')][_0x8167('0xbf')](util[_0x8167('0x2b')](_0x8167('0x169'),this[_0x8167('0xf')][_0x8167('0x3f')],_0x4807c1[_0x8167('0x165')]));return{'code':0xc8,'result':_0x8167('0x16c')};}};AGIVertices[_0x8167('0x12')][_0x8167('0x1d4')]=function(_0x1db757){logger[_0x8167('0x2f')](util[_0x8167('0x2b')]('Enter\x20in\x20VOICEMAIL\x20(%s)\x20block',_0x1db757[_0x8167('0x3b')]));var _0x385430=this[_0x8167('0xf')][_0x8167('0x6a')](_0x8167('0x1d5'),[_0x1db757[_0x8167('0x1d6')],_0x1db757['options']]);if(_0x385430[_0x8167('0xba')]===-0x1){return _0x385430;}return this[_0x8167('0xf')]['noop'](util[_0x8167('0x2b')]('Executed\x20command\x20%s\x20%s',_0x8167('0x1d5'),_0x1db757['mailbox']));};AGIVertices[_0x8167('0x12')][_0x8167('0x1d7')]=function(_0x4ffb35){logger[_0x8167('0x2f')](util['format'](_0x8167('0x1d8'),_0x4ffb35[_0x8167('0x3b')]));if(!this[_0x8167('0xb5')](_0x4ffb35[_0x8167('0xeb')])){return this[_0x8167('0xf')][_0x8167('0x2e')](_0x4ffb35,_0x8167('0x1ba'));}var _0x383e50=this[_0x8167('0x13')][_0x8167('0x84')](this,_0x4ffb35[_0x8167('0xeb')]);if(!_0x383e50){return this[_0x8167('0xf')][_0x8167('0x2e')](_0x4ffb35,_0x8167('0xed'));}var _0x1429c3=this[_0x8167('0xf')][_0x8167('0x13')](_0x383e50);return{'code':0xc8,'result':_0x1429c3['extra']?_0x1429c3[_0x8167('0xb0')]:'-'};};String[_0x8167('0x12')]['replaceAll']=function(_0x128b1d,_0x198984){return this['split'](_0x128b1d)['join'](_0x198984);};module[_0x8167('0x1d9')]=AGIVertices;
\ No newline at end of file