Built motion from commit a8c4dd89.|2.6.33
[motion2.git] / server / services / agi / vertices.js
index 501af16..7096e6d 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x4f17=['Trying\x20Amazon\x20Lex:\x20%s','AWS_LEX_%s','Amazon\x20Lex\x20ready\x20for\x20fulfillment','amazonlex','Amazon\x20Lex\x20Result\x20%s','googleasr','Enter\x20in\x20GOOGLEASR\x20(%s)\x20block\x20%s','no\x20key\x20configured','wav','%s/recordings/%s','beep','NOBEEP','recordFile','intKey','google\x20%s\x20file\x20created','GoogleASR\x20Result\x20%s','Enter\x20in\x20TILDEASR\x20(%s)\x20block','no\x20appid\x20configured','no\x20appsecret\x20configured','tilde\x20%s\x20file\x20created','TildeASR\x20Result\x20%s','gotoc','Enter\x20in\x20GOTO\x20(%s)\x20block','continueAt','gotoif','Enter\x20in\x20GOTOIF\x20(%s)\x20block','condition','true','false','EVAL\x20CONDITION\x20%s\x20%s','Enter\x20in\x20GOTOIFTIME\x20(%s)\x20block','interval_id','no\x20interval\x20configured','no\x20intervals\x20found','IFTIME(%s?true:false)','IFTIME\x20%s\x20%s','hangup','Enter\x20in\x20HANGUP\x20(%s)\x20block','Enter\x20in\x20ISPEECHASR\x20(%s)\x20block','ispeech\x20%s\x20file\x20created','ISPEECH_ASR_%s','IspeechASR\x20Result\x20%s','ispeechtts','Trying\x20ispeech\x20TTS\x20%s','ispeech\x20TTS\x20is\x20unreachable','login','Enter\x20in\x20LOGIN\x20(%s)\x20block','FIND\x20AGENT\x20%s\x20BY\x20%s','findBy','AGENT\x20%s\x20FOUND\x20BY','success','AGENT\x20%s\x20NOT\x20FOUND\x20BY','failure','logout','Enter\x20in\x20LOGOUT\x20(%s)\x20block','no\x20find\x20by\x20configured','operation','math\x20%s','%s[%s]','menu','Enter\x20in\x20MENU\x20(%s)\x20block','digit','Enter\x20in\x20NOOP\x20(%s)\x20block','output','pause','pause_id','Enter\x20in\x20PLAYBACK\x20(%s)\x20block','PLAYBACK','queue','Enter\x20in\x20QUEUE\x20(%s)\x20block','queue_id','no\x20queue\x20selected','no\x20queue\x20found','indexOf','XMCS-QUEUE','toLowerCase','QUEUE','record','Enter\x20in\x20RECORD\x20(%s)\x20block','recordingFormat','%s_%s','%s/recordings/%s.%s','RECORDING_SAVENAME','Recording\x20%s\x20%s\x20%s\x20%s','escape_digits','restapi','Enter\x20in\x20RESTAPI\x20(%s)\x20block','inspect','no\x20variable\x20selected\x20for\x20the\x20response','%s_STATUS_CODE','Unable\x20to\x20set\x20result\x20in\x20variable\x20%s','variable\x20%s\x20set','sayDigits','digits','saynumber','Enter\x20in\x20SAYNUMBER\x20(%s)\x20block','sayNumber','number','Enter\x20in\x20SAYPHONETIC\x20(%s)\x20block','Enter\x20in\x20SENDMAIL\x20(%s)\x20block','account_id','no\x20mail\x20account\x20configured','Smtp','no\x20mail\x20account\x20found','email','user','bcc','subject','template_id','sendMail\x20message','Trying\x20SendMail\x20with\x20account\x20%s','smtpOptions','Mail\x20message\x20added\x20to\x20outgoing\x20process','Enter\x20in\x20SENDFAX\x20(%s)\x20block','SENDFAX\x20block\x20not\x20implemented','sendSMS','Enter\x20in\x20SENDSMS\x20(%s)\x20block','sms_account_id','no\x20sms\x20account\x20configured','getSmsAccount','sms_text','debug','Sms\x20message\x20added\x20to\x20outgoing\x20process','set','no\x20variable\x20selected','START\x20CALLY\x20SQUARE','yes','Answer','subproject','Enter\x20in\x20SUBPROJECT\x20(%s)\x20block','project_id','AGI','127.0.0.1','system','Enter\x20in\x20SYSTEM\x20(%s)\x20block','shellCommand','sh\x20command:\x20%s\x20result\x20on\x20variable:\x20%s','sh\x20command:\x20%s\x20result\x20no\x20stored','google_cloud_tts','Enter\x20in\x20Google\x20Cloud\x20TTS\x20(%s)\x20block','Trying\x20Google\x20Cloud\x20TTS\x20%s','Google\x20Cloud\x20TTS\x20%s\x20file\x20created','Google\x20Cloud\x20TTS\x20is\x20unreachable','tts','Enter\x20in\x20GOOGLETTS\x20(%s)\x20block','Trying\x20Google\x20TTS\x20%s','Google\x20TTS\x20%s\x20file\x20created','Google\x20TTS\x20is\x20unreachable','Enter\x20in\x20UNPAUSE\x20(%s)\x20block','voicemail','Enter\x20in\x20VOICEMAIL\x20(%s)\x20block','VOICEMAIL','mailbox','Enter\x20in\x20SWITCH\x20(%s)\x20block','replaceAll','split','join','exports','util','shelljs','odbc','moment','mustache','request-promise','../../config/logger','agi','/var/opt/motion2/server/files','rawBody','getdigits','getsecretdigits','rpc','prototype','getVariable','getVariableById','then','name','catch','getVoiceQueue','getSquareProject','getSquareOdbc','getSquareOdbcById','dsn','getUserById','getTrunk','getTrunkById','getSound','getSoundPath','save_name','getMailAccount','getMailAccountById','sendMailMessage','mailRpc','getIntervalById','IntervalId','interval','map','format','%s/sounds/converted/%s','open','error','Error\x20getting\x20ODBC\x20connection\x20%s','info','ODBC\x20connection\x20successfully','query','Error\x20executing\x20query\x20%s','close','Error\x20closing\x20connection\x20to\x20odbc\x20%s','getSmsAccountById','createSmsMessage','createSquareDetailsReport','uniqueid','label','agicommand','channel','arg_1','callerid','createSquareRecording','calleridname','context','extension','priority','accountcode','dnid','file','createSquareMessage','createCmContact','isEmpty','isNil','callback_','random','lastName','phone','list_id','scheduledAt','callback','Callback\x20scheduled\x20at\x20','toString','callback_priority','getPause','getPauseById','agentPause','agentUnpause','agent','agentLogout','agentLogin','internal','%s/%s@from-sip/n','LOCAL','exec','replace','googleCloudTTS','apiKey','google_cloud_tts_text_type','text','languageCode','ssmlGender','MALE','audioEncoding','MP3','googleTTS','google_tts_language','restAPI','method','timeout','includes','POST','PUT','toUpperCase','body','parse','An\x20incorrect\x20formatted\x20json\x20body\x20has\x20been\x20passed\x20to\x20the\x20function','headers','rawHeaders','computedVariables','uri','url','render','stringify','An\x20incorrect\x20formatted\x20json\x20has\x20been\x20passed\x20to\x20the\x20function','statusCode','statusMessage','message','500\x20-\x20Internal\x20Server\x20Error','options','googleDialogflow','googleDialogflowV2','dialogflowV2_project_id','private_key','dialogflowV2_language','sestekNDA','ispeechTTS','key','en-US','ispeechASR','ispeech_asr_language','isConfigured','model','awsPolly','aws_access_key_id','aws_polly_region','aws_polly_voice','Amy','aws_text_type','awsLex','aws_secret_access_key','aws_bot_name','googleASR','google_asr_language','tildeASR','appid','appsecret','clear','clone','replaceObjectAllVariables','recursiveNodeIndex','isPlainObject','isArray','isString','replaceAllVariables','hasOwnProperty','saveRestApiResult','length','%s.%s','setVariable','extra','getAndSetVariable','result','The\x20\x22%s\x22\x20variable\x20value\x20is:\x20%s','maxRetry','retry','mrcpsynth','Enter\x20in\x20MRCPSynth\x20(%s)\x20block','noop','MRCPSynth','Executed\x20command\x20MRCPSynth\x20%s','mrcprecog','Enter\x20in\x20MRCPRecog\x20(%s)\x20block','grammar','no\x20grammar\x20configured','RECOG_INPUT()','Executed\x20command\x20MRCPRecog\x20%s','Enter\x20in\x20AGI\x20(%s)\x20block','command','args','answer','Enter\x20in\x20ANSWER\x20(%s)\x20block','Wait\x20%s\x20seconds\x20before\x20answer','wait','no\x20list\x20selected','delay','add','minutes','sync','custom_app','Enter\x20in\x20CUSTOM\x20APP\x20(%s)\x20block','application','Executed\x20command\x20%s\x20%s','Enter\x20in\x20LUMENVOXTTS\x20(%s)\x20block','no\x20text\x20configured','Enter\x20in\x20SESTEKTTS\x20(%s)\x20block','MRCPRecog','RECOG_CONFIDENCE()','LUMENVOX_ASR_TRANSCRIPT','RECOG_INSTANCE()','LUMENVOX_ASR_INSTANCE','sestekasr','SESTEK_ASR_CONFIDENCE','SESTEK_ASR_TRANSCRIPT','Enter\x20in\x20DATABASE\x20(%s)\x20block','odbc_id','no\x20database\x20selected','no\x20odbc\x20database\x20found','query:\x20%s','variable_id','no\x20variable\x20selected\x20for\x20the\x20result','no\x20variable\x20found','forEach','keys','dial','Enter\x20in\x20DIAL\x20(%s)\x20block','sip_id','no\x20user\x20selected','getUser','no\x20user\x20found','DIAL','SIP/%s','opts','dialogflow','Enter\x20in\x20DIALOGFLOW\x20(%s)\x20block','Trying\x20Dialogflow:\x20%s','out','Dialogflow\x20Result\x20%s','speech','Dialogflow\x20is\x20unreachable','dialogflowV2','Enter\x20in\x20DIALOGFLOW\x20V2\x20(%s)\x20block','client_email','no\x20private_key\x20configured','no\x20anguage\x20configured','bot','Trying\x20DialogflowV2:\x20%s','providerResponse','DIALOGFLOW_%s','DialogflowV2\x20Result\x20%s','DialogflowV2\x20is\x20unreachable','sesteknda','Enter\x20in\x20SESTEKNDA\x20(%s)\x20block','username','no\x20username\x20configured','ndassistant_url','Trying\x20SestekNDA:\x20%s','audiofile','streamFile','SestekNDA\x20Result\x20%s','SestekNDA\x20is\x20unreachable','end','Enter\x20in\x20END\x20(%s)\x20block','ext_dial','trunk_id','no\x20trunk\x20selected','no\x20trunk\x20found','trunk_name','SIP/%s/%s','Executed\x20command\x20%s','finally','Enter\x20in\x20FINALLY\x20(%s)\x20block','Enter\x20in\x20GETDIGITS\x20(%s)\x20block','file_id','no\x20file\x20audio\x20selected','no\x20file\x20audio\x20found','getData','maxdigit','mindigit','hiddendigitsnum','generate','first','substr','Enter\x20in\x20GETSECRETDIGITS\x20(%s)\x20block','goal','Enter\x20in\x20GOAL\x20(%s)\x20block','GOAL\x20%s','awspolly','[AGI]\x20Enter\x20in\x20AWSPOLLY\x20(%s)\x20block','no\x20valid\x20credentials\x20configured','Trying\x20aws\x20Polly\x20%s','aws\x20Polly\x20%s\x20file\x20created','unlink','.wav','aws\x20Polly\x20is\x20unreachable','awslex','no\x20bot\x20name\x20configured'];(function(_0x3dddfa,_0x30c2bf){var _0x1c2827=function(_0x33b83b){while(--_0x33b83b){_0x3dddfa['push'](_0x3dddfa['shift']());}};_0x1c2827(++_0x30c2bf);}(_0x4f17,0x9e));var _0x74f1=function(_0x725a4c,_0x102507){_0x725a4c=_0x725a4c-0x0;var _0x37b2cc=_0x4f17[_0x725a4c];return _0x37b2cc;};'use strict';var fs=require('fs');var util=require(_0x74f1('0x0'));var _=require('lodash');var sh=require(_0x74f1('0x1'));var odbc=require(_0x74f1('0x2'))();var rs=require('randomstring');var moment=require(_0x74f1('0x3'));var Mustache=require(_0x74f1('0x4'));var rp=require(_0x74f1('0x5'));var logger=require(_0x74f1('0x6'))(_0x74f1('0x7'));var config=require('../../config/environment');var scripts=require('./scripts');var FILES_PATH=_0x74f1('0x8');var recursiveMapAttributes=['rawHeaders',_0x74f1('0x9')];var verticesWithRetry=['menu',_0x74f1('0xa'),_0x74f1('0xb')];var AGIVertices=function(_0x3b4914,_0x5377d3,_0x31b7ec){this['channel']=_0x3b4914;this[_0x74f1('0xc')]=_0x5377d3;this['mailRpc']=_0x31b7ec;};AGIVertices[_0x74f1('0xd')][_0x74f1('0xe')]=function(_0x57e775,_0x5f1fc3){this[_0x74f1('0xc')][_0x74f1('0xf')](_0x57e775)[_0x74f1('0x10')](function(_0x3f6672){_0x5f1fc3(null,_0x3f6672?_0x3f6672[_0x74f1('0x11')]:![]);})[_0x74f1('0x12')](function(_0x467e15){_0x5f1fc3(_0x467e15);});};AGIVertices[_0x74f1('0xd')][_0x74f1('0x13')]=function(_0x16ba86,_0x4f34fd){this[_0x74f1('0xc')]['getVoiceQueueById'](_0x16ba86)[_0x74f1('0x10')](function(_0x57e087){_0x4f34fd(null,_0x57e087?_0x57e087[_0x74f1('0x11')]:![]);})[_0x74f1('0x12')](function(_0x373b73){_0x4f34fd(_0x373b73);});};AGIVertices[_0x74f1('0xd')][_0x74f1('0x14')]=function(_0x51faf1,_0x2310b0){this[_0x74f1('0xc')]['getSquareProjectById'](_0x51faf1)[_0x74f1('0x10')](function(_0x149ad8){_0x2310b0(null,_0x149ad8?_0x149ad8['name']:![]);})[_0x74f1('0x12')](function(_0x29de10){_0x2310b0(_0x29de10);});};AGIVertices[_0x74f1('0xd')][_0x74f1('0x15')]=function(_0x174051,_0x4a10ab){this[_0x74f1('0xc')][_0x74f1('0x16')](_0x174051)[_0x74f1('0x10')](function(_0xeaa63){_0x4a10ab(null,_0xeaa63?_0xeaa63[_0x74f1('0x17')]:![]);})[_0x74f1('0x12')](function(_0x535590){_0x4a10ab(_0x535590);});};AGIVertices['prototype']['getUser']=function(_0x300d84,_0x132a81){this[_0x74f1('0xc')][_0x74f1('0x18')](_0x300d84)[_0x74f1('0x10')](function(_0x26d363){_0x132a81(null,_0x26d363?_0x26d363[_0x74f1('0x11')]:![]);})[_0x74f1('0x12')](function(_0x2c336b){_0x132a81(_0x2c336b);});};AGIVertices[_0x74f1('0xd')][_0x74f1('0x19')]=function(_0x47b22f,_0x4cff5f){this[_0x74f1('0xc')][_0x74f1('0x1a')](_0x47b22f)[_0x74f1('0x10')](function(_0x1b9554){_0x4cff5f(null,_0x1b9554?_0x1b9554[_0x74f1('0x11')]:![]);})[_0x74f1('0x12')](function(_0xd079b5){_0x4cff5f(_0xd079b5);});};AGIVertices['prototype'][_0x74f1('0x1b')]=function(_0xad2a05,_0x59a7ac){var _0x1736e3=this;this['rpc']['getSoundById'](_0xad2a05)[_0x74f1('0x10')](function(_0x37894a){_0x59a7ac(null,_0x37894a?_0x1736e3[_0x74f1('0x1c')](_0x37894a[_0x74f1('0x1d')]):![]);})[_0x74f1('0x12')](function(_0x176340){_0x59a7ac(_0x176340);});};AGIVertices[_0x74f1('0xd')][_0x74f1('0x1e')]=function(_0x20b8eb,_0x35e928){this[_0x74f1('0xc')][_0x74f1('0x1f')](_0x20b8eb)[_0x74f1('0x10')](function(_0x4bd1a0){_0x35e928(null,_0x4bd1a0?_0x4bd1a0:![]);})[_0x74f1('0x12')](function(_0x333226){_0x35e928(_0x333226);});};AGIVertices[_0x74f1('0xd')][_0x74f1('0x20')]=function(_0x52a4b0,_0x181201,_0x48f7e8){this[_0x74f1('0x21')][_0x74f1('0x20')](_0x52a4b0,_0x181201)[_0x74f1('0x10')](function(){_0x48f7e8(null);})[_0x74f1('0x12')](function(_0x49e3b3){_0x48f7e8(_0x49e3b3);});};AGIVertices[_0x74f1('0xd')]['getIntervals']=function(_0x28ac8a,_0x7cdfb7){this[_0x74f1('0xc')][_0x74f1('0x22')](_0x28ac8a)[_0x74f1('0x10')](function(_0x366472){if(_0x366472){if(_0x366472[_0x74f1('0x23')]){_0x7cdfb7(null,[_0x366472[_0x74f1('0x24')]]);}else{_0x7cdfb7(null,_[_0x74f1('0x25')](_0x366472['Intervals'],_0x74f1('0x24')));}}else{_0x7cdfb7(null,![]);}})[_0x74f1('0x12')](function(_0x4f7fe1){_0x7cdfb7(_0x4f7fe1);});};AGIVertices[_0x74f1('0xd')][_0x74f1('0x1c')]=function(_0x221c75){return util[_0x74f1('0x26')](_0x74f1('0x27'),FILES_PATH,_0x221c75);};AGIVertices[_0x74f1('0xd')]['getQueryOdbc']=function(_0x45497f,_0x10117b,_0x120939){odbc[_0x74f1('0x28')](_0x45497f,function(_0x43ac84){if(_0x43ac84){logger[_0x74f1('0x29')](_0x74f1('0x2a'),_0x43ac84);_0x120939(_0x43ac84);}else{logger[_0x74f1('0x2b')](_0x74f1('0x2c'));odbc[_0x74f1('0x2d')](_0x10117b,function(_0x547de5,_0x3e9698){if(_0x547de5){logger['info'](_0x74f1('0x2e'),_0x10117b);_0x120939(_0x547de5);}else{logger[_0x74f1('0x2b')]('Query\x20executed\x20correctly\x20%s',_0x10117b);odbc[_0x74f1('0x2f')](function(_0x230aeb){if(_0x230aeb){logger['error'](_0x74f1('0x30'),_0x230aeb);}_0x120939(null,_0x3e9698);});}});}});};AGIVertices[_0x74f1('0xd')]['getSmsAccount']=function(_0x3693cc,_0x312371){this[_0x74f1('0xc')][_0x74f1('0x31')](_0x3693cc)[_0x74f1('0x10')](function(_0x42c0b2){_0x312371(null,_0x42c0b2?_0x42c0b2:![]);})['catch'](function(_0x563cb7){_0x312371(_0x563cb7);});};AGIVertices[_0x74f1('0xd')][_0x74f1('0x32')]=function(_0x201de8,_0x279993){this[_0x74f1('0xc')][_0x74f1('0x32')](_0x201de8)[_0x74f1('0x10')](function(_0x40527f){_0x279993(null,_0x40527f);})[_0x74f1('0x12')](function(_0x355820){_0x279993(_0x355820);});};AGIVertices['prototype']['createSquareDetailsReport']=function(_0x44edeb,_0x4ae128,_0x31403c){this[_0x74f1('0xc')][_0x74f1('0x33')]({'uniqueid':this['channel'][_0x74f1('0x34')],'node':_0x44edeb[_0x74f1('0x35')],'application':_0x44edeb[_0x74f1('0x36')],'data':_0x4ae128||null,'project_name':this[_0x74f1('0x37')][_0x74f1('0x38')],'callerid':this[_0x74f1('0x37')][_0x74f1('0x39')]})[_0x74f1('0x10')](function(_0x4e1ad5){if(_0x31403c){_0x31403c(null,_0x4e1ad5);}})['catch'](function(_0x2194c9){if(_0x31403c){_0x31403c(_0x2194c9);}});};AGIVertices['prototype'][_0x74f1('0x3a')]=function(_0x290422,_0x420235,_0x1b7e82,_0x1d8b07){this[_0x74f1('0xc')][_0x74f1('0x3a')]({'uniqueid':this['channel'][_0x74f1('0x34')],'callerid':this[_0x74f1('0x37')][_0x74f1('0x39')],'calleridname':this[_0x74f1('0x37')][_0x74f1('0x3b')],'context':this['channel'][_0x74f1('0x3c')],'extension':this[_0x74f1('0x37')][_0x74f1('0x3d')],'priority':this[_0x74f1('0x37')][_0x74f1('0x3e')],'accountcode':this[_0x74f1('0x37')][_0x74f1('0x3f')],'dnid':this[_0x74f1('0x37')][_0x74f1('0x40')],'projectName':this['channel'][_0x74f1('0x38')],'saveName':_0x420235,'filename':_0x290422[_0x74f1('0x41')]||_0x420235,'savePath':_0x1b7e82})[_0x74f1('0x10')](function(_0x4b0a12){_0x1d8b07(null,_0x4b0a12);})['catch'](function(_0x2d8949){_0x1d8b07(_0x2d8949);});};AGIVertices[_0x74f1('0xd')][_0x74f1('0x42')]=function(_0x1086c1,_0x3f1a61,_0x42ab92,_0x23198e,_0x228f73){this['rpc'][_0x74f1('0x42')]({'uniqueid':this[_0x74f1('0x37')][_0x74f1('0x34')],'body':_0x1086c1,'direction':_0x3f1a61,'providerName':_0x42ab92,'providerResponse':_0x23198e})[_0x74f1('0x10')](function(_0x45099a){if(_0x228f73){_0x228f73(null,_0x45099a);}})[_0x74f1('0x12')](function(_0x49441a){if(_0x228f73){_0x228f73(_0x49441a);}});};AGIVertices[_0x74f1('0xd')][_0x74f1('0x43')]=function(_0x56aa19,_0x469cab){this[_0x74f1('0xc')][_0x74f1('0x43')]({'firstName':_[_0x74f1('0x44')](_0x56aa19[_0x74f1('0x11')])||_[_0x74f1('0x45')](_0x56aa19[_0x74f1('0x11')])?_0x74f1('0x46')+Math[_0x74f1('0x47')]():_0x56aa19[_0x74f1('0x11')],'lastName':_[_0x74f1('0x44')](_0x56aa19[_0x74f1('0x48')])||_[_0x74f1('0x45')](_0x56aa19[_0x74f1('0x48')])?null:_0x56aa19[_0x74f1('0x48')],'phone':_0x56aa19[_0x74f1('0x49')],'ListId':_0x56aa19[_0x74f1('0x4a')],'scheduledat':_0x56aa19[_0x74f1('0x4b')],'callbackUniqueid':this[_0x74f1('0x37')][_0x74f1('0x34')],'tags':_0x74f1('0x4c'),'description':_0x74f1('0x4d')+_0x56aa19[_0x74f1('0x4b')][_0x74f1('0x4e')](),'priority':_0x56aa19[_0x74f1('0x4f')]})[_0x74f1('0x10')](function(_0x455127){_0x469cab(null,_0x455127);})[_0x74f1('0x12')](function(_0x55b919){_0x469cab(_0x55b919);});};AGIVertices[_0x74f1('0xd')][_0x74f1('0x50')]=function(_0x396ec6,_0x404a0b){this[_0x74f1('0xc')][_0x74f1('0x51')](_0x396ec6)['then'](function(_0x3bb90d){_0x404a0b(null,_0x3bb90d?_0x3bb90d[_0x74f1('0x11')]:![]);})[_0x74f1('0x12')](function(_0x25f579){_0x404a0b(_0x25f579);});};AGIVertices[_0x74f1('0xd')][_0x74f1('0x52')]=function(_0x15e336,_0x56963d,_0x1c99f9){var _0x329e4c={'role':'agent'};_0x329e4c[_0x15e336]=this[_0x74f1('0x37')][_0x74f1('0x39')];this['rpc'][_0x74f1('0x52')](_0x329e4c,_0x56963d,this[_0x74f1('0x37')][_0x74f1('0x34')])[_0x74f1('0x10')](function(_0x1547ab){_0x1c99f9(null,_['isNil'](_0x1547ab)?![]:!![]);})[_0x74f1('0x12')](function(_0x536641){logger[_0x74f1('0x29')](_0x536641);_0x1c99f9(null,![]);});};AGIVertices[_0x74f1('0xd')][_0x74f1('0x53')]=function(_0x45b4de,_0x441d5f){var _0x34d740={'role':_0x74f1('0x54')};_0x34d740[_0x45b4de]=this[_0x74f1('0x37')][_0x74f1('0x39')];this[_0x74f1('0xc')][_0x74f1('0x53')](_0x34d740)['then'](function(_0x5b4d19){_0x441d5f(null,_[_0x74f1('0x45')](_0x5b4d19)?![]:!![]);})[_0x74f1('0x12')](function(_0x28673e){logger[_0x74f1('0x29')](_0x28673e);_0x441d5f(null,![]);});};AGIVertices[_0x74f1('0xd')]['agentLogout']=function(_0x32afcd,_0x3afa2d){var _0x4f32e2={'role':_0x74f1('0x54')};_0x4f32e2[_0x32afcd]=this[_0x74f1('0x37')][_0x74f1('0x39')];this[_0x74f1('0xc')][_0x74f1('0x55')](_0x4f32e2)[_0x74f1('0x10')](function(_0x26ebd5){_0x3afa2d(null,_['isNil'](_0x26ebd5)?![]:!![]);})['catch'](function(_0x32dfa3){logger['error'](_0x32dfa3);_0x3afa2d(null,![]);});};AGIVertices[_0x74f1('0xd')][_0x74f1('0x56')]=function(_0x3a33cc,_0x524c7d){var _0x3d5891={'role':'agent'};_0x3d5891[_0x3a33cc]=this['channel'][_0x74f1('0x39')];var _0x492bf7=_0x3a33cc!=_0x74f1('0x57')?util[_0x74f1('0x26')](_0x74f1('0x58'),_0x74f1('0x59'),this[_0x74f1('0x37')][_0x74f1('0x39')]):undefined;this[_0x74f1('0xc')][_0x74f1('0x56')](_0x3d5891,_0x492bf7)[_0x74f1('0x10')](function(_0x414edf){_0x524c7d(null,_[_0x74f1('0x45')](_0x414edf)?![]:!![]);})[_0x74f1('0x12')](function(_0x43f525){logger[_0x74f1('0x29')](_0x43f525);_0x524c7d(null,![]);});};AGIVertices[_0x74f1('0xd')]['shellCommand']=function(_0x42a407,_0x1fd601){sh[_0x74f1('0x5a')](_['trim'](_0x42a407),function(_0x1eca4c,_0x489680){var _0x323b26=_0x489680[_0x74f1('0x5b')](/(\r\n|\n|\r)/gm,'');_0x1fd601(null,_0x323b26);});};AGIVertices['prototype']['googleCloudTTS']=function(_0x2c8ab4,_0x51f273){scripts[_0x74f1('0x5c')](_0x2c8ab4[_0x74f1('0x5d')],_0x2c8ab4[_0x74f1('0x5e')]||'text',_0x2c8ab4[_0x74f1('0x5f')],_0x2c8ab4[_0x74f1('0x60')]||'en-US',_0x2c8ab4[_0x74f1('0x61')]||_0x74f1('0x62'),_0x2c8ab4[_0x74f1('0x63')]||_0x74f1('0x64'))['then'](function(_0x84537b){_0x51f273(null,_0x84537b);})[_0x74f1('0x12')](function(_0x2ef0e0){_0x51f273(_0x2ef0e0);});};AGIVertices[_0x74f1('0xd')][_0x74f1('0x65')]=function(_0x1e9b03,_0x4940a1){scripts[_0x74f1('0x65')](_0x1e9b03[_0x74f1('0x5f')],_0x1e9b03[_0x74f1('0x66')]||'en',0x1)['then'](function(_0x41c7c3){_0x4940a1(null,_0x41c7c3);})[_0x74f1('0x12')](function(_0x46fc36){_0x4940a1(_0x46fc36);});};AGIVertices[_0x74f1('0xd')][_0x74f1('0x67')]=function(_0x15f1bd,_0x507c75){var _0x789773={'uri':_0x15f1bd['url'],'method':_0x15f1bd[_0x74f1('0x68')],'json':!![],'resolveWithFullResponse':!![],'strictSSL':![],'timeout':typeof parseInt(_0x15f1bd['timeout'])==='number'&&parseInt(_0x15f1bd[_0x74f1('0x69')])>=0x1?parseInt(_0x15f1bd[_0x74f1('0x69')])*0x3e8:0x5*0x3e8};if(_[_0x74f1('0x6a')]([_0x74f1('0x6b'),_0x74f1('0x6c')],_0x789773[_0x74f1('0x68')][_0x74f1('0x6d')]())){try{_0x789773[_0x74f1('0x6e')]=_0x15f1bd[_0x74f1('0x9')]?JSON[_0x74f1('0x6f')](_0x15f1bd[_0x74f1('0x9')]):{};}catch(_0x5a28b2){logger[_0x74f1('0x29')](_0x74f1('0x70'),_0x5a28b2);}}try{_0x789773[_0x74f1('0x71')]=_0x15f1bd[_0x74f1('0x72')]?JSON[_0x74f1('0x6f')](_0x15f1bd[_0x74f1('0x72')]):{};}catch(_0x438467){logger['error']('An\x20incorrect\x20formatted\x20json\x20headers\x20has\x20been\x20passed\x20to\x20the\x20function',_0x438467);}if(_0x15f1bd[_0x74f1('0x73')]){try{var _0x37208f=require(_0x15f1bd['computedVariables'])['sync'](this,_0x789773);_0x789773[_0x74f1('0x74')]=Mustache['render'](_0x15f1bd[_0x74f1('0x75')],_0x37208f,{},['$$','$$']);if(_0x789773[_0x74f1('0x71')]){_0x789773[_0x74f1('0x71')]=JSON[_0x74f1('0x6f')](Mustache[_0x74f1('0x76')](JSON['stringify'](_0x789773['headers']),_0x37208f,{},['$$','$$']));}if(_0x789773['body']){_0x789773[_0x74f1('0x6e')]=JSON[_0x74f1('0x6f')](Mustache['render'](JSON[_0x74f1('0x77')](_0x789773[_0x74f1('0x6e')]),_0x37208f,{},['$$','$$']));}}catch(_0x28b9bf){logger['error'](_0x74f1('0x78'),_0x28b9bf);}}rp(_0x789773)[_0x74f1('0x10')](function(_0x1de8f9){var _0x46a84b={'statusCode':_0x1de8f9[_0x74f1('0x79')]||0xc8,'statusMessage':_0x1de8f9[_0x74f1('0x7a')]||'OK','headers':_0x1de8f9[_0x74f1('0x71')]||{},'body':_0x1de8f9[_0x74f1('0x6e')]||{}};_0x507c75(null,_0x46a84b);})['catch'](function(_0x166fab){var _0x27a8d4={'statusCode':_0x166fab[_0x74f1('0x79')]||0x1f4,'statusMessage':_0x166fab[_0x74f1('0x7b')]||_0x74f1('0x7c'),'headers':_0x166fab[_0x74f1('0x7d')][_0x74f1('0x71')]||{},'body':_0x166fab[_0x74f1('0x7d')][_0x74f1('0x6e')]||{}};_0x507c75(null,_0x27a8d4);});};AGIVertices[_0x74f1('0xd')][_0x74f1('0x7e')]=function(_0x5629d7,_0x29024d){scripts[_0x74f1('0x7e')](this[_0x74f1('0x37')][_0x74f1('0x34')],_0x5629d7['key'],_0x5629d7['text'],_0x5629d7['dialogflow_language']||'en')[_0x74f1('0x10')](function(_0x1d7902){_0x29024d(null,_0x1d7902);})[_0x74f1('0x12')](function(_0x474a56){_0x29024d(_0x474a56);});};AGIVertices[_0x74f1('0xd')][_0x74f1('0x7f')]=function(_0x330a7e,_0xeb4a70){scripts['googleDialogflowV2'](this['channel'][_0x74f1('0x34')],_0x330a7e[_0x74f1('0x80')],_0x330a7e['client_email'],_0x330a7e[_0x74f1('0x81')],_0x330a7e[_0x74f1('0x5f')],_0x330a7e[_0x74f1('0x82')]||'en')[_0x74f1('0x10')](function(_0x1626ec){_0xeb4a70(null,_0x1626ec);})[_0x74f1('0x12')](function(_0x5a8b97){_0xeb4a70(_0x5a8b97);});};AGIVertices[_0x74f1('0xd')][_0x74f1('0x83')]=function(_0x2fdd72,_0x19a8a5){scripts['sestekNDA'](this['channel'],_0x2fdd72)[_0x74f1('0x10')](function(_0x12d1b3){_0x19a8a5(null,_0x12d1b3);})['catch'](function(_0x54ca41){_0x19a8a5(_0x54ca41);});};AGIVertices[_0x74f1('0xd')][_0x74f1('0x84')]=function(_0xde7bf8,_0x81b54b){scripts[_0x74f1('0x84')](_0xde7bf8[_0x74f1('0x85')],_0xde7bf8['text'],_0xde7bf8['ispeech_tts_language']||_0x74f1('0x86'),_0xde7bf8['speed'])['then'](function(_0x2c72dd){_0x81b54b(null,_0x2c72dd);})['catch'](function(_0x23fba0){_0x81b54b(_0x23fba0);});};AGIVertices[_0x74f1('0xd')][_0x74f1('0x87')]=function(_0x277660,_0x190cdc,_0x4090e3){scripts[_0x74f1('0x87')](_0x190cdc,_0x277660[_0x74f1('0x85')],_0x277660[_0x74f1('0x88')]||_0x74f1('0x86'),this[_0x74f1('0x89')](_0x277660[_0x74f1('0x8a')])?_0x277660[_0x74f1('0x8a')]:undefined)[_0x74f1('0x10')](function(_0x17bc97){_0x4090e3(null,_0x17bc97);})['catch'](function(_0x2eef13){_0x4090e3(_0x2eef13);});};AGIVertices['prototype'][_0x74f1('0x8b')]=function(_0x133b8d,_0x429608){scripts[_0x74f1('0x8b')](_0x133b8d[_0x74f1('0x8c')],_0x133b8d['aws_secret_access_key'],_0x133b8d[_0x74f1('0x8d')],_0x133b8d[_0x74f1('0x8e')]||_0x74f1('0x8f'),_0x133b8d['text'],_0x133b8d[_0x74f1('0x90')]||'text')[_0x74f1('0x10')](function(_0x4f9a8e){_0x429608(null,_0x4f9a8e);})[_0x74f1('0x12')](function(_0xd92e5f){_0x429608(_0xd92e5f);});};AGIVertices[_0x74f1('0xd')][_0x74f1('0x91')]=function(_0x68b4df,_0x380de5){scripts[_0x74f1('0x91')](this[_0x74f1('0x37')]['uniqueid'],_0x68b4df[_0x74f1('0x8c')],_0x68b4df[_0x74f1('0x92')],_0x68b4df['aws_lex_region'],_0x68b4df['text'],_0x68b4df[_0x74f1('0x93')])[_0x74f1('0x10')](function(_0x14825b){_0x380de5(null,_0x14825b);})[_0x74f1('0x12')](function(_0xb5398){_0x380de5(_0xb5398);});};AGIVertices['prototype'][_0x74f1('0x94')]=function(_0x392135,_0x559b5b,_0x2ecb12){scripts[_0x74f1('0x94')](_0x559b5b,_0x392135[_0x74f1('0x85')],_0x392135[_0x74f1('0x95')]||_0x74f1('0x86'))[_0x74f1('0x10')](function(_0x3f6e9f){_0x2ecb12(null,_0x3f6e9f);})[_0x74f1('0x12')](function(_0x4c21a4){_0x2ecb12(_0x4c21a4);});};AGIVertices[_0x74f1('0xd')][_0x74f1('0x96')]=function(_0x4a6dd3,_0x10975b,_0x2248e3){scripts[_0x74f1('0x96')](_0x10975b,_0x4a6dd3[_0x74f1('0x97')],_0x4a6dd3[_0x74f1('0x98')],_0x4a6dd3[_0x74f1('0x74')])[_0x74f1('0x10')](function(_0x493080){_0x2248e3(null,_0x493080);})[_0x74f1('0x12')](function(_0x55ae48){_0x2248e3(_0x55ae48);});};AGIVertices[_0x74f1('0xd')][_0x74f1('0x99')]=function(_0x593920){var _0x31fbe6=_[_0x74f1('0x6a')](verticesWithRetry,_0x593920[_0x74f1('0x36')])?_0x593920:_[_0x74f1('0x9a')](_0x593920);for(var _0x386627 in _0x31fbe6){if(_0x31fbe6['hasOwnProperty'](_0x386627)){if(_0x31fbe6[_0x386627]&&_['isString'](_0x31fbe6[_0x386627])){if(_[_0x74f1('0x6a')](recursiveMapAttributes,_0x386627)){_0x31fbe6[_0x386627]=this[_0x74f1('0x9b')](_0x31fbe6[_0x386627]);}else{_0x31fbe6[_0x386627]=this['replaceAllVariables'](_0x31fbe6[_0x386627]);}}}}return _0x31fbe6;};AGIVertices['prototype'][_0x74f1('0x9c')]=function(_0x105044){for(var _0x151c79 in _0x105044){if(_0x105044['hasOwnProperty'](_0x151c79)){if(_[_0x74f1('0x9d')](_0x105044[_0x151c79])){this[_0x74f1('0x9c')](_0x105044[_0x151c79]);}else if(_[_0x74f1('0x9e')](_0x105044[_0x151c79])){for(var _0x4f7353=0x0;_0x4f7353<_0x105044[_0x151c79]['length'];_0x4f7353++){this[_0x74f1('0x9c')](_0x105044[_0x151c79][_0x4f7353]);}}else if(_[_0x74f1('0x9f')](_0x105044[_0x151c79])){_0x105044[_0x151c79]=this[_0x74f1('0xa0')](_0x105044[_0x151c79]);}}}};AGIVertices[_0x74f1('0xd')]['saveRestApiResult']=function(_0x162059,_0x2484e4){for(var _0x4c0f17 in _0x162059){if(_0x162059[_0x74f1('0xa1')](_0x4c0f17)){if(_[_0x74f1('0x9d')](_0x162059[_0x4c0f17])){if(!_['isEmpty'](_0x162059[_0x4c0f17])){this[_0x74f1('0xa2')](_0x162059[_0x4c0f17],util[_0x74f1('0x26')]('%s.%s',_0x2484e4,_0x4c0f17));}}else if(_['isArray'](_0x162059[_0x4c0f17])){for(var _0x25a8e5=0x0;_0x25a8e5<_0x162059[_0x4c0f17][_0x74f1('0xa3')];_0x25a8e5++){this[_0x74f1('0xa2')](_0x162059[_0x4c0f17][_0x25a8e5],util['format'](_0x74f1('0xa4'),_0x2484e4,_0x4c0f17+'['+_0x25a8e5+']'));}}else{if(!_[_0x74f1('0x45')](_0x162059[_0x4c0f17])){this['channel'][_0x74f1('0xa5')](util[_0x74f1('0x26')](_0x74f1('0xa4'),_0x2484e4,_0x4c0f17),_0x162059[_0x4c0f17]);}}}}};AGIVertices[_0x74f1('0xd')][_0x74f1('0x9b')]=function(_0x44f547){try{var _0x149563=JSON['parse'](_0x44f547);this[_0x74f1('0x9c')](_0x149563);return JSON[_0x74f1('0x77')](_0x149563);}catch(_0x54223b){return this[_0x74f1('0xa0')](_0x44f547);}};AGIVertices['prototype'][_0x74f1('0xa0')]=function(_0x5dd7c5){var _0x382037=_0x5dd7c5['split']('{');for(var _0x123b6a=0x1;_0x123b6a<_0x382037[_0x74f1('0xa3')];_0x123b6a+=0x1){var _0x15e703=_0x382037[_0x123b6a]['split']('}');if(_0x15e703[_0x74f1('0xa3')]>0x1){_0x5dd7c5=_0x5dd7c5['replaceAll']('{'+_0x15e703[0x0]+'}',this[_0x74f1('0x37')][_0x74f1('0xe')](_0x15e703[0x0])[_0x74f1('0xa6')]||_0x15e703[0x0]);}}if(_0x382037[_0x74f1('0xa3')]===0x1){return _0x5dd7c5['toString']();}return this[_0x74f1('0xa0')](_0x5dd7c5);};AGIVertices[_0x74f1('0xd')][_0x74f1('0xa7')]=function(_0xf1af16,_0x323197){var _0x1a1e6c=this['channel'][_0x74f1('0xe')](_0xf1af16);if(_0x1a1e6c[_0x74f1('0xa8')]===-0x1){return _0x1a1e6c;}logger[_0x74f1('0x2b')](util[_0x74f1('0x26')](_0x74f1('0xa9'),_0x323197,_0x1a1e6c[_0x74f1('0xa6')]));return this['channel'][_0x74f1('0xa5')](_0x323197,_0x1a1e6c[_0x74f1('0xa6')]);};AGIVertices[_0x74f1('0xd')][_0x74f1('0x89')]=function(_0x26edf9){return _0x26edf9&&_0x26edf9!=='0'&&_0x26edf9!=='-1'&&_0x26edf9!=='';};AGIVertices[_0x74f1('0xd')][_0x74f1('0xaa')]=function(_0x30c9ed){this['createSquareDetailsReport']['sync'](this,_0x30c9ed,'-');_0x30c9ed[_0x74f1('0xab')]=_0x30c9ed[_0x74f1('0xaa')];return{'code':0xc8,'result':'-'};};AGIVertices[_0x74f1('0xd')][_0x74f1('0xac')]=function(_0x590466){logger[_0x74f1('0x2b')](util['format'](_0x74f1('0xad'),_0x590466['label']));if(!this[_0x74f1('0x89')](_0x590466['text'])){return this['channel'][_0x74f1('0xae')]('no\x20text\x20configured');}var _0x28c598='\x22'+_0x590466[_0x74f1('0x5f')]+'\x22';if(this[_0x74f1('0x89')](_0x590466[_0x74f1('0x7d')])){_0x28c598+=','+_0x590466[_0x74f1('0x7d')];}var _0x4007ba=this['channel'][_0x74f1('0x5a')](_0x74f1('0xaf'),_0x28c598);if(_0x4007ba[_0x74f1('0xa8')]===-0x1){return _0x4007ba;}return this['channel'][_0x74f1('0xae')](util[_0x74f1('0x26')](_0x74f1('0xb0'),_0x28c598));};AGIVertices[_0x74f1('0xd')][_0x74f1('0xb1')]=function(_0x589815){logger[_0x74f1('0x2b')](util[_0x74f1('0x26')](_0x74f1('0xb2'),_0x589815[_0x74f1('0x35')]));if(!this[_0x74f1('0x89')](_0x589815[_0x74f1('0xb3')])){return this['channel'][_0x74f1('0xae')](_0x74f1('0xb4'));}var _0x4828b2=_0x589815['grammar'];if(this['isConfigured'](_0x589815[_0x74f1('0x7d')])){_0x4828b2+=','+_0x589815[_0x74f1('0x7d')];}var _0x2a1e60=this[_0x74f1('0x37')][_0x74f1('0x5a')]('MRCPRecog',_0x4828b2);if(_0x2a1e60[_0x74f1('0xa8')]===-0x1){return _0x2a1e60;}var _0x2c826a=this[_0x74f1('0xa7')]('RECOG_CONFIDENCE()','MRCP_RECOG_CONFIDENCE');if(_0x2c826a['result']===-0x1){return _0x2c826a;}var _0x109f64=this[_0x74f1('0xa7')](_0x74f1('0xb5'),'MRCP_RECOG_TRANSCRIPT');if(_0x109f64[_0x74f1('0xa8')]===-0x1){return _0x109f64;}var _0x7f541f=this[_0x74f1('0xa7')]('RECOG_INSTANCE()','MRCP_RECOG_INSTANCE');if(_0x7f541f[_0x74f1('0xa8')]===-0x1){return _0x7f541f;}return this['channel'][_0x74f1('0xae')](util[_0x74f1('0x26')](_0x74f1('0xb6'),_0x4828b2));};AGIVertices[_0x74f1('0xd')][_0x74f1('0x7')]=function(_0x410a99){logger[_0x74f1('0x2b')](util[_0x74f1('0x26')](_0x74f1('0xb7'),_0x410a99[_0x74f1('0x35')]));return this[_0x74f1('0x37')][_0x74f1('0x7')]([_0x410a99[_0x74f1('0xb8')],_0x410a99[_0x74f1('0xb9')]]);};AGIVertices[_0x74f1('0xd')][_0x74f1('0xba')]=function(_0x5caab8){logger[_0x74f1('0x2b')](util[_0x74f1('0x26')](_0x74f1('0xbb'),_0x5caab8[_0x74f1('0x35')]));if(this[_0x74f1('0x89')](_0x5caab8[_0x74f1('0x69')])){logger['info'](util[_0x74f1('0x26')](_0x74f1('0xbc'),_0x5caab8[_0x74f1('0x69')]));var _0x3c3c59=this[_0x74f1('0x37')][_0x74f1('0xbd')](_0x5caab8[_0x74f1('0x69')]);if(_0x3c3c59['result']===-0x1){return _0x3c3c59;}}return this[_0x74f1('0x37')]['answer']();};AGIVertices[_0x74f1('0xd')][_0x74f1('0x4c')]=function(_0x4228ee){logger[_0x74f1('0x2b')](util['format']('Enter\x20in\x20CALLBACK\x20(%s)\x20block',_0x4228ee['label']));if(!this[_0x74f1('0x89')](_0x4228ee[_0x74f1('0x4a')])){return this[_0x74f1('0x37')][_0x74f1('0x29')](_0x4228ee,_0x74f1('0xbe'));}_0x4228ee[_0x74f1('0x4b')]=moment();if(this[_0x74f1('0x89')](_0x4228ee[_0x74f1('0xbf')])){_0x4228ee[_0x74f1('0x4b')]=moment()[_0x74f1('0xc0')](_0x4228ee['delay'],_0x74f1('0xc1'));}if(!this[_0x74f1('0x89')](_0x4228ee[_0x74f1('0x4f')])){_0x4228ee['callback_priority']=0x2;}this[_0x74f1('0x43')][_0x74f1('0xc2')](this,_0x4228ee);return this[_0x74f1('0x37')][_0x74f1('0xae')](util[_0x74f1('0x26')]('CALLBACK\x20added\x20phone:\x20%s\x20on\x20list:\x20%s\x20at\x20%s',_0x4228ee['phone'],_0x4228ee[_0x74f1('0x4a')],_0x4228ee['scheduledAt']));};AGIVertices[_0x74f1('0xd')][_0x74f1('0xc3')]=function(_0x2357c1){logger[_0x74f1('0x2b')](util[_0x74f1('0x26')](_0x74f1('0xc4'),_0x2357c1[_0x74f1('0x35')]));var _0x3b8828=this['channel']['exec'](_0x2357c1[_0x74f1('0xc5')],_0x2357c1[_0x74f1('0x7d')]);if(_0x3b8828[_0x74f1('0xa8')]===-0x1){return _0x3b8828;}return this[_0x74f1('0x37')][_0x74f1('0xae')](util[_0x74f1('0x26')](_0x74f1('0xc6'),_0x2357c1[_0x74f1('0xc5')],_0x2357c1['options']));};AGIVertices[_0x74f1('0xd')]['lumenvoxtts']=function(_0x1f9c93){logger[_0x74f1('0x2b')](util[_0x74f1('0x26')](_0x74f1('0xc7'),_0x1f9c93[_0x74f1('0x35')]));if(!this[_0x74f1('0x89')](_0x1f9c93[_0x74f1('0x5f')])){return this['channel'][_0x74f1('0xae')](_0x74f1('0xc8'));}var _0x36051='\x22'+_0x1f9c93[_0x74f1('0x5f')]+'\x22';if(this[_0x74f1('0x89')](_0x1f9c93[_0x74f1('0x7d')])){_0x36051+=','+_0x1f9c93['options'];}var _0x2125ca=this[_0x74f1('0x37')][_0x74f1('0x5a')](_0x74f1('0xaf'),_0x36051);if(_0x2125ca[_0x74f1('0xa8')]===-0x1){return _0x2125ca;}return this[_0x74f1('0x37')][_0x74f1('0xae')](util['format'](_0x74f1('0xb0'),_0x36051));};AGIVertices[_0x74f1('0xd')]['sestektts']=function(_0x564db9){logger['info'](util[_0x74f1('0x26')](_0x74f1('0xc9'),_0x564db9[_0x74f1('0x35')]));if(!this[_0x74f1('0x89')](_0x564db9[_0x74f1('0x5f')])){return this['channel'][_0x74f1('0xae')](_0x74f1('0xc8'));}var _0x597ab7='\x22'+_0x564db9[_0x74f1('0x5f')]+'\x22';if(this[_0x74f1('0x89')](_0x564db9[_0x74f1('0x7d')])){_0x597ab7+=','+_0x564db9[_0x74f1('0x7d')];}var _0x3b8d83=this[_0x74f1('0x37')]['exec'](_0x74f1('0xaf'),_0x597ab7);if(_0x3b8d83[_0x74f1('0xa8')]===-0x1){return _0x3b8d83;}return this['channel']['noop'](util[_0x74f1('0x26')](_0x74f1('0xb0'),_0x597ab7));};AGIVertices[_0x74f1('0xd')]['lumenvoxasr']=function(_0xd8928){logger[_0x74f1('0x2b')](util[_0x74f1('0x26')]('Enter\x20in\x20LUMENVOXASR\x20(%s)\x20block',_0xd8928['label']));if(!this[_0x74f1('0x89')](_0xd8928[_0x74f1('0xb3')])){return this[_0x74f1('0x37')][_0x74f1('0xae')](_0x74f1('0xb4'));}var _0x389cc2=_0xd8928[_0x74f1('0xb3')];if(this['isConfigured'](_0xd8928[_0x74f1('0x7d')])){_0x389cc2+=','+_0xd8928[_0x74f1('0x7d')];}var _0x5586c9=this[_0x74f1('0x37')][_0x74f1('0x5a')](_0x74f1('0xca'),_0x389cc2);if(_0x5586c9[_0x74f1('0xa8')]===-0x1){return _0x5586c9;}var _0x551b3a=this[_0x74f1('0xa7')](_0x74f1('0xcb'),'LUMENVOX_ASR_CONFIDENCE');if(_0x551b3a[_0x74f1('0xa8')]===-0x1){return _0x551b3a;}var _0x4cec3c=this['getAndSetVariable'](_0x74f1('0xb5'),_0x74f1('0xcc'));if(_0x4cec3c[_0x74f1('0xa8')]===-0x1){return _0x4cec3c;}var _0x3a34c9=this[_0x74f1('0xa7')](_0x74f1('0xcd'),_0x74f1('0xce'));if(_0x3a34c9[_0x74f1('0xa8')]===-0x1){return _0x3a34c9;}return this[_0x74f1('0x37')][_0x74f1('0xae')](util[_0x74f1('0x26')]('Executed\x20command\x20MRCPRecog\x20%s',_0x389cc2));};AGIVertices[_0x74f1('0xd')][_0x74f1('0xcf')]=function(_0x1e673c){logger[_0x74f1('0x2b')](util[_0x74f1('0x26')]('Enter\x20in\x20SESTEKASR\x20(%s)\x20block',_0x1e673c[_0x74f1('0x35')]));if(!this[_0x74f1('0x89')](_0x1e673c[_0x74f1('0xb3')])){return this[_0x74f1('0x37')]['noop'](_0x74f1('0xb4'));}var _0x3d000d=_0x1e673c['grammar'];if(this[_0x74f1('0x89')](_0x1e673c['options'])){_0x3d000d+=','+_0x1e673c['options'];}var _0x139d27=this[_0x74f1('0x37')][_0x74f1('0x5a')](_0x74f1('0xca'),_0x3d000d);if(_0x139d27[_0x74f1('0xa8')]===-0x1){return _0x139d27;}var _0x3a1cfc=this[_0x74f1('0xa7')](_0x74f1('0xcb'),_0x74f1('0xd0'));if(_0x3a1cfc[_0x74f1('0xa8')]===-0x1){return _0x3a1cfc;}var _0x2d2e02=this[_0x74f1('0xa7')](_0x74f1('0xb5'),_0x74f1('0xd1'));if(_0x2d2e02[_0x74f1('0xa8')]===-0x1){return _0x2d2e02;}var _0x6cfad=this[_0x74f1('0xa7')]('RECOG_INSTANCE()','SESTEK_ASR_INSTANCE');if(_0x6cfad[_0x74f1('0xa8')]===-0x1){return _0x6cfad;}return this[_0x74f1('0x37')]['noop'](util[_0x74f1('0x26')]('Executed\x20command\x20MRCPRecog\x20%s',_0x3d000d));};AGIVertices[_0x74f1('0xd')]['database']=function(_0x2c8141){logger[_0x74f1('0x2b')](util['format'](_0x74f1('0xd2'),_0x2c8141[_0x74f1('0x35')]));if(!this[_0x74f1('0x89')](_0x2c8141[_0x74f1('0xd3')])){return this[_0x74f1('0x37')]['error'](_0x2c8141,_0x74f1('0xd4'));}var _0x2990ed=this[_0x74f1('0x15')][_0x74f1('0xc2')](this,_0x2c8141[_0x74f1('0xd3')]);if(!_0x2990ed){return this[_0x74f1('0x37')]['error'](_0x2c8141,_0x74f1('0xd5'));}if(!this[_0x74f1('0x89')](_0x2c8141['query'])){return this[_0x74f1('0x37')][_0x74f1('0x29')](_0x2c8141,'no\x20query\x20configured');}var _0x115fe0=_0x2c8141['query'][_0x74f1('0x5b')](/(\r\n|\n|\r)/gm,'\x20');this['channel'][_0x74f1('0xae')](util[_0x74f1('0x26')](_0x74f1('0xd6'),_0x115fe0));var _0x282cbe=this['getQueryOdbc'][_0x74f1('0xc2')](this,_0x2990ed,_0x115fe0);this[_0x74f1('0x33')]['sync'](this,_0x2c8141,_0x115fe0);if(!this['isConfigured'](_0x2c8141[_0x74f1('0xd7')])){return this[_0x74f1('0x37')]['noop'](_0x74f1('0xd8'));}var _0x423050=this[_0x74f1('0xe')][_0x74f1('0xc2')](this,_0x2c8141[_0x74f1('0xd7')]);if(!_0x423050){return this[_0x74f1('0x37')][_0x74f1('0x29')](_0x2c8141,_0x74f1('0xd9'));}var _0x22f45d=this;_0x282cbe[_0x74f1('0xda')](function(_0x24a591,_0x3bd6c0){Object[_0x74f1('0xdb')](_0x24a591)['forEach'](function(_0x420e0f){_0x22f45d[_0x74f1('0x37')][_0x74f1('0xa5')](util[_0x74f1('0x26')]('%s[%s][%s]',_0x423050,_0x3bd6c0,_0x420e0f),_0x24a591[_0x420e0f]);});});this[_0x74f1('0x37')]['setVariable'](util[_0x74f1('0x26')]('%s_ROWS_COUNT',_0x423050),_0x282cbe['length']);return this[_0x74f1('0x37')][_0x74f1('0xae')](util['format']('variable\x20%s\x20set',_0x423050));};AGIVertices[_0x74f1('0xd')][_0x74f1('0xdc')]=function(_0x1e4cd2){logger['debug'](util[_0x74f1('0x26')](_0x74f1('0xdd'),_0x1e4cd2[_0x74f1('0x35')]));if(!this['isConfigured'](_0x1e4cd2[_0x74f1('0xde')])){return this[_0x74f1('0x37')][_0x74f1('0x29')](_0x1e4cd2,_0x74f1('0xdf'));}var _0x289e6e=this[_0x74f1('0xe0')][_0x74f1('0xc2')](this,_0x1e4cd2[_0x74f1('0xde')]);if(!_0x289e6e){return this[_0x74f1('0x37')][_0x74f1('0x29')](_0x1e4cd2,_0x74f1('0xe1'));}var _0x593b6d=this['channel'][_0x74f1('0x5a')](_0x74f1('0xe2'),[util[_0x74f1('0x26')](_0x74f1('0xe3'),_0x289e6e),_0x1e4cd2[_0x74f1('0x69')],_0x1e4cd2[_0x74f1('0xe4')],_0x1e4cd2['url']]);if(_0x593b6d[_0x74f1('0xa8')]===-0x1){return _0x593b6d;}return this[_0x74f1('0x37')][_0x74f1('0xae')](util[_0x74f1('0x26')]('Executed\x20command\x20%s',_0x74f1('0xe2')));};AGIVertices[_0x74f1('0xd')][_0x74f1('0xe5')]=function(_0x10cc4a){logger[_0x74f1('0x2b')](util['format'](_0x74f1('0xe6'),_0x10cc4a[_0x74f1('0x35')]));if(!this[_0x74f1('0x89')](_0x10cc4a[_0x74f1('0x85')])){return this[_0x74f1('0x37')][_0x74f1('0xae')]('no\x20key\x20configured');}if(!this[_0x74f1('0x89')](_0x10cc4a[_0x74f1('0x5f')])){return this[_0x74f1('0x37')][_0x74f1('0xae')](_0x74f1('0xc8'));}this[_0x74f1('0x37')]['bot']=!![];this['createSquareDetailsReport'](_0x10cc4a);this['createSquareMessage'](_0x10cc4a['text'],'in','','');this[_0x74f1('0x37')][_0x74f1('0xae')](util[_0x74f1('0x26')](_0x74f1('0xe7'),_0x10cc4a['text']));var _0x697cd0=this['googleDialogflow']['sync'](this,_0x10cc4a);if(_0x697cd0){for(var _0x2e1712 in _0x697cd0){if(_0x697cd0[_0x74f1('0xa1')](_0x2e1712)){this[_0x74f1('0x37')][_0x74f1('0xa5')](util['format']('DIALOGFLOW_%s',_0x2e1712['toUpperCase']()),_0x697cd0[_0x2e1712]);}}this[_0x74f1('0x42')](_0x697cd0['speech'],_0x74f1('0xe8'),_0x74f1('0xe5'),'');return this[_0x74f1('0x37')][_0x74f1('0xae')](util[_0x74f1('0x26')](_0x74f1('0xe9'),_0x697cd0[_0x74f1('0xea')]));}return this[_0x74f1('0x37')][_0x74f1('0x29')](_0x10cc4a,_0x74f1('0xeb'));};AGIVertices['prototype'][_0x74f1('0xec')]=function(_0x51cad7){logger[_0x74f1('0x2b')](util[_0x74f1('0x26')](_0x74f1('0xed'),_0x51cad7[_0x74f1('0x35')]));if(!this[_0x74f1('0x89')](_0x51cad7[_0x74f1('0x80')])){return this[_0x74f1('0x37')][_0x74f1('0xae')]('no\x20project_id\x20configured');}if(!this[_0x74f1('0x89')](_0x51cad7[_0x74f1('0xee')])){return this[_0x74f1('0x37')][_0x74f1('0xae')]('no\x20client_email\x20configured');}if(!this[_0x74f1('0x89')](_0x51cad7[_0x74f1('0x81')])){return this[_0x74f1('0x37')]['noop'](_0x74f1('0xef'));}if(!this['isConfigured'](_0x51cad7['dialogflowV2_language'])){return this[_0x74f1('0x37')]['noop'](_0x74f1('0xf0'));}if(!this[_0x74f1('0x89')](_0x51cad7[_0x74f1('0x5f')])){return this['channel'][_0x74f1('0xae')](_0x74f1('0xc8'));}this[_0x74f1('0x37')][_0x74f1('0xf1')]=!![];this[_0x74f1('0x33')](_0x51cad7);this['createSquareMessage'](_0x51cad7[_0x74f1('0x5f')],'in','','');this['channel'][_0x74f1('0xae')](util['format'](_0x74f1('0xf2'),_0x51cad7['text']));var _0x579f67=this[_0x74f1('0x7f')][_0x74f1('0xc2')](this,_0x51cad7);if(_0x579f67){for(var _0x47b465 in _0x579f67){if(_0x579f67[_0x74f1('0xa1')](_0x47b465)){if(_0x47b465!==_0x74f1('0xf3')){this[_0x74f1('0x37')][_0x74f1('0xa5')](util[_0x74f1('0x26')](_0x74f1('0xf4'),_0x47b465[_0x74f1('0x6d')]()),_0x579f67[_0x47b465]);}}}this[_0x74f1('0x42')](_0x579f67['speech'],_0x74f1('0xe8'),'dialogflowV2',_0x579f67['providerResponse']);return this[_0x74f1('0x37')][_0x74f1('0xae')](util[_0x74f1('0x26')](_0x74f1('0xf5'),_0x579f67[_0x74f1('0xea')]));}return this[_0x74f1('0x37')][_0x74f1('0x29')](_0x51cad7,_0x74f1('0xf6'));};AGIVertices[_0x74f1('0xd')][_0x74f1('0xf7')]=function(_0x2231a2){logger['info'](util[_0x74f1('0x26')](_0x74f1('0xf8'),_0x2231a2[_0x74f1('0x35')]));if(!this['isConfigured'](_0x2231a2['ndauth_url'])){return this[_0x74f1('0x37')][_0x74f1('0xae')]('no\x20ndauth\x20url\x20configured');}if(!this[_0x74f1('0x89')](_0x2231a2[_0x74f1('0xf9')])){return this[_0x74f1('0x37')]['noop'](_0x74f1('0xfa'));}if(!this[_0x74f1('0x89')](_0x2231a2['password'])){return this['channel'][_0x74f1('0xae')]('no\x20password\x20configured');}if(!this[_0x74f1('0x89')](_0x2231a2[_0x74f1('0xfb')])){return this[_0x74f1('0x37')][_0x74f1('0xae')]('no\x20text\x20configured');}this['channel']['bot']=!![];this[_0x74f1('0x33')](_0x2231a2);this[_0x74f1('0x42')](_0x2231a2[_0x74f1('0x5f')],'in','','');this[_0x74f1('0x37')][_0x74f1('0xae')](util[_0x74f1('0x26')](_0x74f1('0xfc'),_0x2231a2[_0x74f1('0x5f')]));var _0x4c410c=this[_0x74f1('0x83')][_0x74f1('0xc2')](this,_0x2231a2);if(_0x4c410c){for(var _0x338835 in _0x4c410c){if(_0x4c410c[_0x74f1('0xa1')](_0x338835)){this[_0x74f1('0x37')][_0x74f1('0xa5')](util[_0x74f1('0x26')]('SESTEK_NDA_%s',_0x338835[_0x74f1('0x6d')]()),_0x4c410c[_0x338835]);}}this['createSquareMessage'](_0x4c410c[_0x74f1('0xea')],'out',_0x74f1('0xf7'),'');if(_0x4c410c[_0x74f1('0xfd')]){this[_0x74f1('0x37')]['noop'](util[_0x74f1('0x26')]('Sestek\x20NDA\x20%s\x20file\x20created',_0x4c410c[_0x74f1('0xfd')]));var _0x3465da=this[_0x74f1('0x37')][_0x74f1('0xfe')](_0x4c410c['audiofile']);try{fs['unlink'](_0x4c410c[_0x74f1('0xfd')]+'.wav');}catch(_0x18a602){logger['error'](_0x18a602);}return _0x3465da;}else{return this[_0x74f1('0x37')][_0x74f1('0xae')](util['format'](_0x74f1('0xff'),_0x4c410c[_0x74f1('0xea')]));}}return this[_0x74f1('0x37')][_0x74f1('0x29')](_0x2231a2,_0x74f1('0x100'));};AGIVertices[_0x74f1('0xd')][_0x74f1('0x101')]=function(_0x5c6acf){logger[_0x74f1('0x2b')](util[_0x74f1('0x26')](_0x74f1('0x102'),_0x5c6acf['label']));return this[_0x74f1('0x37')][_0x74f1('0xae')](_0x74f1('0x101'));};AGIVertices[_0x74f1('0xd')][_0x74f1('0x103')]=function(_0x20bd3e){logger[_0x74f1('0x2b')](util['format']('Enter\x20in\x20EXTERNAL\x20DIAL\x20(%s)\x20block',_0x20bd3e['label']));var _0x53b847='';if(_0x20bd3e['trunk_id']){if(!this['isConfigured'](_0x20bd3e[_0x74f1('0x104')])){return this[_0x74f1('0x37')][_0x74f1('0x29')](_0x20bd3e,_0x74f1('0x105'));}else{var _0xf2d62f=parseInt(_0x20bd3e['trunk_id'],0xa);if(isNaN(_0xf2d62f)){_0x53b847=_0x20bd3e['trunk_id'];}else{_0x53b847=this[_0x74f1('0x19')]['sync'](this,_0x20bd3e[_0x74f1('0x104')]);if(!_0x53b847){return this[_0x74f1('0x37')][_0x74f1('0x29')](_0x20bd3e,_0x74f1('0x106'));}}}}else if(_0x20bd3e['trunk_name']){_0x53b847=_0x20bd3e[_0x74f1('0x107')];}else{return this[_0x74f1('0x37')]['error'](_0x20bd3e,_0x74f1('0x105'));}var _0x318b8f=this[_0x74f1('0x37')]['exec'](_0x74f1('0xe2'),[util[_0x74f1('0x26')](_0x74f1('0x108'),_0x53b847,_0x20bd3e[_0x74f1('0x49')]),_0x20bd3e[_0x74f1('0x69')],_0x20bd3e[_0x74f1('0xe4')],_0x20bd3e['url']]);if(_0x318b8f[_0x74f1('0xa8')]===-0x1){return _0x318b8f;}return this[_0x74f1('0x37')]['noop'](util[_0x74f1('0x26')](_0x74f1('0x109'),_0x74f1('0xe2')));};AGIVertices['prototype'][_0x74f1('0x10a')]=function(_0x309d2b){logger[_0x74f1('0x2b')](util[_0x74f1('0x26')](_0x74f1('0x10b'),_0x309d2b[_0x74f1('0x35')]));return this[_0x74f1('0x37')]['noop'](_0x74f1('0x10a'));};AGIVertices[_0x74f1('0xd')]['getdigits']=function(_0x32a634){logger[_0x74f1('0x2b')](util[_0x74f1('0x26')](_0x74f1('0x10c'),_0x32a634[_0x74f1('0x35')]));if(_0x32a634[_0x74f1('0xab')]===0x0){return this['maxRetry'](_0x32a634);}_0x32a634['retry']-=0x1;if(!this['isConfigured'](_0x32a634[_0x74f1('0x10d')])){return this[_0x74f1('0x37')][_0x74f1('0x29')](_0x32a634,_0x74f1('0x10e'));}var _0x1d70bd=this['getSound']['sync'](this,_0x32a634[_0x74f1('0x10d')]);if(!_0x1d70bd){return this['channel']['error'](_0x32a634,_0x74f1('0x10f'));}if(!this['isConfigured'](_0x32a634[_0x74f1('0xd7')])){return this['channel'][_0x74f1('0x29')](_0x74f1('0xd8'));}var _0x2f27e6=this[_0x74f1('0x37')][_0x74f1('0x110')](_0x1d70bd,_0x32a634['response'],_0x32a634[_0x74f1('0x111')]);var _0x507ad7=_0x2f27e6['result']?_0x2f27e6['result'][_0x74f1('0x4e')]():'';logger[_0x74f1('0x2b')]('test',JSON[_0x74f1('0x77')](_0x2f27e6));if(_0x2f27e6[_0x74f1('0xa8')]===-0x1){this[_0x74f1('0x33')][_0x74f1('0xc2')](this,_0x32a634,_0x507ad7);return _0x2f27e6;}else if(_0x2f27e6['extra']===_0x74f1('0x69')){_0x2f27e6[_0x74f1('0xa8')]=_0x507ad7[_0x74f1('0xa3')]>=parseInt(_0x32a634[_0x74f1('0x112')])?'x':'i';}else{_0x2f27e6['result']=_0x507ad7[_0x74f1('0xa3')]>=parseInt(_0x32a634['mindigit'])&&_0x507ad7[_0x74f1('0xa3')]<=parseInt(_0x32a634[_0x74f1('0x111')])?'x':'i';}var _0x13523a=this[_0x74f1('0xe')][_0x74f1('0xc2')](this,_0x32a634[_0x74f1('0xd7')]);if(!_0x13523a){return this[_0x74f1('0x37')]['error'](_0x32a634,_0x74f1('0xd9'));}this[_0x74f1('0x37')][_0x74f1('0xa5')](_0x13523a,_0x507ad7);if(this[_0x74f1('0x89')](_0x32a634[_0x74f1('0x113')])){var _0x15fe5b=parseInt(_0x32a634['hiddendigitsnum'],0xa);var _0x1e5056=rs[_0x74f1('0x114')]({'charset':'*','length':_0x15fe5b});var _0x4f87c8=_0x507ad7[_0x74f1('0xa3')];if(_0x4f87c8>0x0){if(_0x4f87c8>_0x15fe5b){this['createSquareDetailsReport'][_0x74f1('0xc2')](this,_0x32a634,_0x32a634['hiddendigitspos']===_0x74f1('0x115')?_0x1e5056+_0x507ad7[_0x74f1('0x116')](_0x15fe5b):_0x507ad7['substr'](0x0,_0x4f87c8-_0x15fe5b)+_0x1e5056);}else{this[_0x74f1('0x33')][_0x74f1('0xc2')](this,_0x32a634,rs[_0x74f1('0x114')]({'charset':'*','length':_0x4f87c8}));}}else{this['createSquareDetailsReport'][_0x74f1('0xc2')](this,_0x32a634,'');}}else{this[_0x74f1('0x33')]['sync'](this,_0x32a634,_0x507ad7);}return _0x2f27e6;};AGIVertices[_0x74f1('0xd')][_0x74f1('0xb')]=function(_0x27cbde){logger[_0x74f1('0x2b')](util[_0x74f1('0x26')](_0x74f1('0x117'),_0x27cbde[_0x74f1('0x35')]));return this[_0x74f1('0xa')](_0x27cbde);};AGIVertices[_0x74f1('0xd')][_0x74f1('0x118')]=function(_0x186b52){logger['info'](util[_0x74f1('0x26')](_0x74f1('0x119'),_0x186b52[_0x74f1('0x35')]));this['createSquareDetailsReport'][_0x74f1('0xc2')](this,_0x186b52,_0x186b52['goalname']);return this['channel'][_0x74f1('0xae')](util['format'](_0x74f1('0x11a'),_0x186b52['goalname']));};AGIVertices[_0x74f1('0xd')][_0x74f1('0x11b')]=function(_0x54bdfe){logger[_0x74f1('0x2b')](util[_0x74f1('0x26')](_0x74f1('0x11c'),_0x54bdfe[_0x74f1('0x35')]));if(!this[_0x74f1('0x89')](_0x54bdfe[_0x74f1('0x8c')])||!this[_0x74f1('0x89')](_0x54bdfe['aws_secret_access_key'])){return this[_0x74f1('0x37')][_0x74f1('0xae')](_0x74f1('0x11d'));}if(!this['isConfigured'](_0x54bdfe[_0x74f1('0x5f')])){return this[_0x74f1('0x37')][_0x74f1('0xae')](_0x74f1('0xc8'));}this[_0x74f1('0x37')]['noop'](util[_0x74f1('0x26')](_0x74f1('0x11e'),_0x54bdfe[_0x74f1('0x5f')]));var _0x3ad475=this[_0x74f1('0x8b')][_0x74f1('0xc2')](this,_0x54bdfe);if(_0x3ad475){this['channel'][_0x74f1('0xae')](util[_0x74f1('0x26')](_0x74f1('0x11f'),_0x3ad475));var _0x3b969c=this[_0x74f1('0x37')][_0x74f1('0xfe')](_0x3ad475);try{fs[_0x74f1('0x120')](_0x3ad475+_0x74f1('0x121'));}catch(_0x2c6dd4){logger[_0x74f1('0x29')](_0x2c6dd4);}return _0x3b969c;}return this['channel'][_0x74f1('0x29')](_0x54bdfe,_0x74f1('0x122'));};AGIVertices[_0x74f1('0xd')][_0x74f1('0x123')]=function(_0xfba204){logger[_0x74f1('0x2b')](util[_0x74f1('0x26')]('Enter\x20in\x20Amazon\x20Lex\x20(%s)\x20block',_0xfba204[_0x74f1('0x35')]));if(!this['isConfigured'](_0xfba204[_0x74f1('0x8c')])||!this[_0x74f1('0x89')](_0xfba204[_0x74f1('0x92')])){return this[_0x74f1('0x37')][_0x74f1('0xae')](_0x74f1('0x11d'));}if(!this[_0x74f1('0x89')](_0xfba204[_0x74f1('0x93')])){return this[_0x74f1('0x37')][_0x74f1('0xae')](_0x74f1('0x124'));}if(!this[_0x74f1('0x89')](_0xfba204[_0x74f1('0x5f')])){return this[_0x74f1('0x37')][_0x74f1('0xae')](_0x74f1('0xc8'));}this['channel']['bot']=!![];this[_0x74f1('0x33')](_0xfba204);this['createSquareMessage'](_0xfba204[_0x74f1('0x5f')],'in','','');this['channel']['noop'](util['format'](_0x74f1('0x125'),_0xfba204[_0x74f1('0x5f')]));var _0x52e7ef=this[_0x74f1('0x91')]['sync'](this,_0xfba204);if(_0x52e7ef){for(var _0x4d50ca in _0x52e7ef){if(_0x52e7ef[_0x74f1('0xa1')](_0x4d50ca)&&_[_0x74f1('0x9f')](_0x52e7ef[_0x4d50ca])){this[_0x74f1('0x37')]['setVariable'](util[_0x74f1('0x26')](_0x74f1('0x126'),_0x4d50ca[_0x74f1('0x6d')]()),_0x52e7ef[_0x4d50ca]);}}if(_['isNil'](_0x52e7ef[_0x74f1('0x7b')])){return this[_0x74f1('0x37')][_0x74f1('0xae')](_0x74f1('0x127'));}else{this[_0x74f1('0x42')](_0x52e7ef[_0x74f1('0x7b')],_0x74f1('0xe8'),_0x74f1('0x128'),'');return this[_0x74f1('0x37')][_0x74f1('0xae')](util[_0x74f1('0x26')](_0x74f1('0x129'),_0x52e7ef[_0x74f1('0x7b')]));}}return this[_0x74f1('0x37')][_0x74f1('0x29')](_0xfba204,'Amazon\x20Lex\x20is\x20unreachable');};AGIVertices['prototype'][_0x74f1('0x12a')]=function(_0x5cd044){logger[_0x74f1('0x2b')](util['format'](_0x74f1('0x12b'),_0x5cd044[_0x74f1('0x35')],_0x5cd044[_0x74f1('0x69')]));if(!this[_0x74f1('0x89')](_0x5cd044[_0x74f1('0x85')])){return this['channel']['noop'](_0x74f1('0x12c'));}var _0x5758f8=_0x74f1('0x12d');var _0x2f1a70=util[_0x74f1('0x26')](_0x74f1('0x12e'),FILES_PATH,rs[_0x74f1('0x114')](0x4));var _0x232ad8=util[_0x74f1('0x26')](_0x74f1('0xa4'),_0x2f1a70,_0x5758f8);var _0xd8263b=!![];if(_0x5cd044[_0x74f1('0x12f')]===_0x74f1('0x130')){_0xd8263b=![];}var _0x3b4251=this[_0x74f1('0x37')][_0x74f1('0x131')](_0x2f1a70,_0x5758f8,_0x5cd044[_0x74f1('0x132')],_0x5cd044[_0x74f1('0x69')],undefined,_0xd8263b);if(_0x3b4251[_0x74f1('0xa8')]!==-0x1){this[_0x74f1('0x37')][_0x74f1('0xae')](util[_0x74f1('0x26')](_0x74f1('0x133'),_0x232ad8));var _0x1ee5c3=this['googleASR']['sync'](this,_0x5cd044,_0x232ad8);if(_0x1ee5c3){for(var _0x5c6b61 in _0x1ee5c3){if(_0x1ee5c3[_0x74f1('0xa1')](_0x5c6b61)){this[_0x74f1('0x37')][_0x74f1('0xa5')](util[_0x74f1('0x26')]('GOOGLE_ASR_%s',_0x5c6b61[_0x74f1('0x6d')]()),_0x1ee5c3[_0x5c6b61]);}}return this['channel'][_0x74f1('0xae')](util[_0x74f1('0x26')](_0x74f1('0x134'),JSON[_0x74f1('0x77')](_0x1ee5c3)));}}return _0x3b4251;};AGIVertices[_0x74f1('0xd')]['tildeasr']=function(_0x5bcf59){logger['info'](util[_0x74f1('0x26')](_0x74f1('0x135'),_0x5bcf59[_0x74f1('0x35')]));if(!this[_0x74f1('0x89')](_0x5bcf59['appid'])){return this['channel'][_0x74f1('0xae')](_0x74f1('0x136'));}if(!this[_0x74f1('0x89')](_0x5bcf59[_0x74f1('0x98')])){return this['channel'][_0x74f1('0xae')](_0x74f1('0x137'));}var _0x209301='wav';var _0x1a780e=util[_0x74f1('0x26')](_0x74f1('0x12e'),FILES_PATH,rs['generate'](0x4));var _0x18dc5e=util[_0x74f1('0x26')](_0x74f1('0xa4'),_0x1a780e,_0x209301);var _0x3225dd=!![];if(_0x5bcf59[_0x74f1('0x12f')]==='NOBEEP'){_0x3225dd=![];}var _0x2af07a=this['channel'][_0x74f1('0x131')](_0x1a780e,_0x209301,_0x5bcf59[_0x74f1('0x132')],_0x5bcf59[_0x74f1('0x69')],undefined,_0x3225dd);if(_0x2af07a['result']!==-0x1){this['channel'][_0x74f1('0xae')](util[_0x74f1('0x26')](_0x74f1('0x138'),_0x18dc5e));var _0x58f19b=this[_0x74f1('0x96')][_0x74f1('0xc2')](this,_0x5bcf59,_0x18dc5e);if(_0x58f19b){for(var _0x377a0a in _0x58f19b){if(_0x58f19b[_0x74f1('0xa1')](_0x377a0a)){this[_0x74f1('0x37')][_0x74f1('0xa5')](util['format']('TILDE_ASR_%s',_0x377a0a[_0x74f1('0x6d')]()),_0x58f19b[_0x377a0a]);}}return this[_0x74f1('0x37')][_0x74f1('0xae')](util['format'](_0x74f1('0x139'),JSON[_0x74f1('0x77')](_0x58f19b)));}}return _0x2af07a;};AGIVertices[_0x74f1('0xd')][_0x74f1('0x13a')]=function(_0x2244df){logger['info'](util[_0x74f1('0x26')](_0x74f1('0x13b'),_0x2244df[_0x74f1('0x35')]));return this[_0x74f1('0x37')][_0x74f1('0x13c')](_0x2244df[_0x74f1('0x3c')],_0x2244df[_0x74f1('0x3d')],_0x2244df[_0x74f1('0x3e')]);};AGIVertices[_0x74f1('0xd')][_0x74f1('0x13d')]=function(_0x2cea8b){logger[_0x74f1('0x2b')](util[_0x74f1('0x26')](_0x74f1('0x13e'),_0x2cea8b['label']));if(!this['isConfigured'](_0x2cea8b[_0x74f1('0x13f')])){return this[_0x74f1('0x37')][_0x74f1('0x29')](_0x2cea8b,'no\x20condition\x20configured');}try{var _0xd28a07=eval(_0x2cea8b[_0x74f1('0x13f')])?_0x74f1('0x140'):_0x74f1('0x141');this[_0x74f1('0x37')][_0x74f1('0xae')](util['format'](_0x74f1('0x142'),_0x2cea8b['condition'],_0xd28a07));return{'code':0xc8,'result':_0xd28a07};}catch(_0x1ff7ae){return{'code':0xc8,'result':_0x74f1('0x141')};}};AGIVertices[_0x74f1('0xd')]['gotoiftime']=function(_0x4643d7){logger[_0x74f1('0x2b')](util[_0x74f1('0x26')](_0x74f1('0x143'),_0x4643d7[_0x74f1('0x35')]));if(!this['isConfigured'](_0x4643d7[_0x74f1('0x144')])){return this[_0x74f1('0x37')][_0x74f1('0x29')](_0x4643d7,_0x74f1('0x145'));}var _0x36f189=this['getIntervals'][_0x74f1('0xc2')](this,_0x4643d7[_0x74f1('0x144')]);if(!_0x36f189){return this['channel'][_0x74f1('0x29')](_0x4643d7,_0x74f1('0x146'));}for(var _0x2ab635=0x0;_0x2ab635<_0x36f189['length'];_0x2ab635+=0x1){var _0x560507=this[_0x74f1('0x37')]['getVariable'](util['format'](_0x74f1('0x147'),_0x36f189[_0x2ab635]));if(_0x560507[_0x74f1('0xa8')]===-0x1){return _0x560507;}logger['info'](util[_0x74f1('0x26')](_0x74f1('0x148'),_0x36f189[_0x2ab635],_0x560507[_0x74f1('0xa6')]));if(_0x560507[_0x74f1('0xa6')]===_0x74f1('0x140')){logger['info'](util['format'](_0x74f1('0x148'),_0x36f189[_0x2ab635],_0x74f1('0x140')));this[_0x74f1('0x37')]['noop'](util[_0x74f1('0x26')]('IFTIME\x20%s\x20%s',_0x36f189[_0x2ab635],'true'));return{'code':0xc8,'result':_0x74f1('0x140')};}else{logger[_0x74f1('0x2b')](util[_0x74f1('0x26')](_0x74f1('0x148'),_0x36f189[_0x2ab635],_0x74f1('0x141')));this[_0x74f1('0x37')][_0x74f1('0xae')](util['format'](_0x74f1('0x148'),_0x36f189[_0x2ab635],_0x74f1('0x141')));}}return{'code':0xc8,'result':'false'};};AGIVertices[_0x74f1('0xd')][_0x74f1('0x149')]=function(_0x8ca059){logger[_0x74f1('0x2b')](util[_0x74f1('0x26')](_0x74f1('0x14a'),_0x8ca059[_0x74f1('0x35')]));return this[_0x74f1('0x37')]['hangup']();};AGIVertices[_0x74f1('0xd')]['ispeechasr']=function(_0x29f8c6){logger[_0x74f1('0x2b')](util[_0x74f1('0x26')](_0x74f1('0x14b'),_0x29f8c6[_0x74f1('0x35')]));if(!this['isConfigured'](_0x29f8c6['key'])){return this[_0x74f1('0x37')]['noop'](_0x74f1('0x12c'));}var _0x26863d=_0x74f1('0x12d');var _0xd9518a=util[_0x74f1('0x26')](_0x74f1('0x12e'),FILES_PATH,rs[_0x74f1('0x114')](0x4));var _0x3fe64d=util['format']('%s.%s',_0xd9518a,_0x26863d);var _0x58f836=!![];if(_0x29f8c6[_0x74f1('0x12f')]==='NOBEEP'){_0x58f836=![];}var _0x1ecdc1=this['channel'][_0x74f1('0x131')](_0xd9518a,_0x26863d,_0x29f8c6['intKey'],_0x29f8c6[_0x74f1('0x69')],undefined,_0x58f836);if(_0x1ecdc1['result']!==-0x1){this[_0x74f1('0x37')][_0x74f1('0xae')](util[_0x74f1('0x26')](_0x74f1('0x14c'),_0x3fe64d));var _0x3c6d86=this[_0x74f1('0x87')][_0x74f1('0xc2')](this,_0x29f8c6,_0x3fe64d);if(_0x3c6d86){for(var _0x4c8852 in _0x3c6d86){if(_0x3c6d86[_0x74f1('0xa1')](_0x4c8852)){this['channel'][_0x74f1('0xa5')](util[_0x74f1('0x26')](_0x74f1('0x14d'),_0x4c8852[_0x74f1('0x6d')]()),_0x3c6d86[_0x4c8852]);}}return this['channel'][_0x74f1('0xae')](util[_0x74f1('0x26')](_0x74f1('0x14e'),JSON[_0x74f1('0x77')](_0x3c6d86)));}}return _0x1ecdc1;};AGIVertices[_0x74f1('0xd')][_0x74f1('0x14f')]=function(_0x1c4d88){logger[_0x74f1('0x2b')](util['format']('Enter\x20in\x20ISPEECHTTS\x20(%s)\x20block',_0x1c4d88[_0x74f1('0x35')]));if(!this['isConfigured'](_0x1c4d88[_0x74f1('0x85')])){return this['channel'][_0x74f1('0xae')](_0x74f1('0x12c'));}if(!this[_0x74f1('0x89')](_0x1c4d88['text'])){return this['channel']['noop']('no\x20text\x20configured');}this[_0x74f1('0x37')][_0x74f1('0xae')](util[_0x74f1('0x26')](_0x74f1('0x150'),_0x1c4d88[_0x74f1('0x5f')]));var _0x50e554=this[_0x74f1('0x84')][_0x74f1('0xc2')](this,_0x1c4d88);if(_0x50e554){this[_0x74f1('0x37')]['noop'](util['format'](_0x74f1('0x14c'),_0x50e554));var _0x11c368=this[_0x74f1('0x37')][_0x74f1('0xfe')](_0x50e554,_0x1c4d88[_0x74f1('0x132')]);try{fs[_0x74f1('0x120')](_0x50e554+_0x74f1('0x121'));}catch(_0x215091){logger[_0x74f1('0x29')](_0x215091);}return _0x11c368;}return this[_0x74f1('0x37')][_0x74f1('0x29')](_0x1c4d88,_0x74f1('0x151'));};AGIVertices[_0x74f1('0xd')][_0x74f1('0x152')]=function(_0x2570fc){logger[_0x74f1('0x2b')](util['format'](_0x74f1('0x153'),_0x2570fc[_0x74f1('0x35')]));if(!this[_0x74f1('0x89')](_0x2570fc['findBy'])){return this[_0x74f1('0x37')][_0x74f1('0x29')](_0x2570fc,'no\x20find\x20by\x20configured');}logger['info'](util[_0x74f1('0x26')](_0x74f1('0x154'),this[_0x74f1('0x37')]['callerid'],_0x2570fc['findBy']));var _0x197ff0=this[_0x74f1('0x56')][_0x74f1('0xc2')](this,_0x2570fc[_0x74f1('0x155')]);if(_0x197ff0){logger[_0x74f1('0x2b')](util[_0x74f1('0x26')](_0x74f1('0x156'),this[_0x74f1('0x37')]['callerid'],_0x2570fc[_0x74f1('0x155')]));this[_0x74f1('0x37')][_0x74f1('0xae')](util[_0x74f1('0x26')](_0x74f1('0x156'),this['channel'][_0x74f1('0x39')],_0x2570fc[_0x74f1('0x155')]));return{'code':0xc8,'result':_0x74f1('0x157')};}else{logger[_0x74f1('0x2b')](util[_0x74f1('0x26')](_0x74f1('0x158'),this[_0x74f1('0x37')]['callerid'],_0x2570fc[_0x74f1('0x155')]));this['channel']['noop'](util[_0x74f1('0x26')]('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this[_0x74f1('0x37')][_0x74f1('0x39')],_0x2570fc[_0x74f1('0x155')]));return{'code':0xc8,'result':_0x74f1('0x159')};}};AGIVertices[_0x74f1('0xd')][_0x74f1('0x15a')]=function(_0x30df5f){logger[_0x74f1('0x2b')](util[_0x74f1('0x26')](_0x74f1('0x15b'),_0x30df5f[_0x74f1('0x35')]));if(!this[_0x74f1('0x89')](_0x30df5f[_0x74f1('0x155')])){return this[_0x74f1('0x37')]['error'](_0x30df5f,_0x74f1('0x15c'));}logger[_0x74f1('0x2b')](util['format'](_0x74f1('0x154'),this['channel'][_0x74f1('0x39')],_0x30df5f[_0x74f1('0x155')]));var _0x32f990=this[_0x74f1('0x55')][_0x74f1('0xc2')](this,_0x30df5f[_0x74f1('0x155')]);if(_0x32f990){logger[_0x74f1('0x2b')](util['format']('AGENT\x20%s\x20FOUND\x20BY',this['channel'][_0x74f1('0x39')],_0x30df5f[_0x74f1('0x155')]));this[_0x74f1('0x37')][_0x74f1('0xae')](util[_0x74f1('0x26')](_0x74f1('0x156'),this['channel'][_0x74f1('0x39')],_0x30df5f[_0x74f1('0x155')]));return{'code':0xc8,'result':_0x74f1('0x157')};}else{logger[_0x74f1('0x2b')](util['format'](_0x74f1('0x158'),this[_0x74f1('0x37')]['callerid'],_0x30df5f[_0x74f1('0x155')]));this[_0x74f1('0x37')][_0x74f1('0xae')](util['format'](_0x74f1('0x158'),this[_0x74f1('0x37')][_0x74f1('0x39')],_0x30df5f[_0x74f1('0x155')]));return{'code':0xc8,'result':_0x74f1('0x159')};}};AGIVertices[_0x74f1('0xd')]['math']=function(_0xfd5688){logger[_0x74f1('0x2b')](util[_0x74f1('0x26')]('Enter\x20in\x20MATH\x20(%s)\x20block',_0xfd5688[_0x74f1('0x35')]));if(!this[_0x74f1('0x89')](_0xfd5688[_0x74f1('0x15d')])){return this[_0x74f1('0x37')][_0x74f1('0x29')](_0xfd5688,'no\x20operation\x20configured');}this[_0x74f1('0x37')][_0x74f1('0xae')](util['format'](_0x74f1('0x15e'),_0xfd5688['operation']));var _0x21d720=eval(_0xfd5688[_0x74f1('0x15d')]);if(!this[_0x74f1('0x89')](_0xfd5688[_0x74f1('0xd7')])){return this['channel'][_0x74f1('0xae')](_0x74f1('0xd8'));}var _0x247d74=this[_0x74f1('0xe')][_0x74f1('0xc2')](this,_0xfd5688[_0x74f1('0xd7')]);if(!_0x247d74){return this['channel']['error'](_0xfd5688,_0x74f1('0xd9'));}if(_[_0x74f1('0x9e')](_0x21d720)){var _0x1a4d66=this;_0x21d720[_0x74f1('0xda')](function(_0x5e75b0,_0x321d53){_0x1a4d66[_0x74f1('0x37')][_0x74f1('0xa5')](util['format'](_0x74f1('0x15f'),_0x247d74,_0x321d53),_0x5e75b0);});return this[_0x74f1('0x37')]['noop'](util[_0x74f1('0x26')]('variable\x20%s[key]\x20set',_0x247d74));}else{return this[_0x74f1('0x37')][_0x74f1('0xa5')](_0x247d74,_0x21d720);}};AGIVertices[_0x74f1('0xd')][_0x74f1('0x160')]=function(_0x2f1cc5){logger[_0x74f1('0x2b')](util['format'](_0x74f1('0x161'),_0x2f1cc5[_0x74f1('0x35')]));if(_0x2f1cc5[_0x74f1('0xab')]===0x0){return this[_0x74f1('0xaa')](_0x2f1cc5);}_0x2f1cc5[_0x74f1('0xab')]-=0x1;if(!this[_0x74f1('0x89')](_0x2f1cc5[_0x74f1('0x10d')])){return this[_0x74f1('0x37')][_0x74f1('0x29')](_0x2f1cc5,_0x74f1('0x10e'));}var _0xa8dee0=this['getSound'][_0x74f1('0xc2')](this,_0x2f1cc5['file_id']);if(!_0xa8dee0){return this[_0x74f1('0x37')]['error'](_0x2f1cc5,_0x74f1('0x10f'));}var _0xbe360d=this['channel']['getData'](_0xa8dee0,_0x2f1cc5['response'],_0x2f1cc5[_0x74f1('0x162')]);var _0x3a5d51=_0xbe360d[_0x74f1('0xa8')];if(_0xbe360d[_0x74f1('0xa8')]===-0x1){this['createSquareDetailsReport'][_0x74f1('0xc2')](this,_0x2f1cc5,'-1');return _0xbe360d;}else if(_0xbe360d[_0x74f1('0xa6')]===_0x74f1('0x69')){_0xbe360d[_0x74f1('0xa8')]=_0xbe360d[_0x74f1('0xa8')][_0x74f1('0xa3')]>0x0?_0xbe360d['result']:'t';}else if(_[_0x74f1('0x44')](_0xbe360d[_0x74f1('0xa8')])){_0xbe360d[_0x74f1('0xa8')]='#';_0x3a5d51='#';}if(!this[_0x74f1('0x89')](_0x2f1cc5['variable_id'])){this[_0x74f1('0x37')]['noop'](_0x74f1('0xd8'));}else{var _0x385bad=this['getVariable']['sync'](this,_0x2f1cc5[_0x74f1('0xd7')]);if(!_0x385bad){return this[_0x74f1('0x37')][_0x74f1('0x29')](_0x2f1cc5,_0x74f1('0xd9'));}this[_0x74f1('0x37')]['setVariable'](_0x385bad,_0x3a5d51);}this[_0x74f1('0x33')][_0x74f1('0xc2')](this,_0x2f1cc5,_0x3a5d51);return _0xbe360d;};AGIVertices[_0x74f1('0xd')][_0x74f1('0xae')]=function(_0x4c3fbb){logger[_0x74f1('0x2b')](util['format'](_0x74f1('0x163'),_0x4c3fbb[_0x74f1('0x35')]));return this[_0x74f1('0x37')][_0x74f1('0xae')](_0x4c3fbb[_0x74f1('0x164')]||_0x4c3fbb[_0x74f1('0x35')]);};AGIVertices[_0x74f1('0xd')][_0x74f1('0x165')]=function(_0x176800){logger[_0x74f1('0x2b')](util[_0x74f1('0x26')]('Enter\x20in\x20PAUSE\x20(%s)\x20block',_0x176800[_0x74f1('0x35')]));if(!this[_0x74f1('0x89')](_0x176800[_0x74f1('0x155')])){return this[_0x74f1('0x37')]['error'](_0x176800,_0x74f1('0x15c'));}logger[_0x74f1('0x2b')](util['format'](_0x74f1('0x154'),this[_0x74f1('0x37')][_0x74f1('0x39')],_0x176800[_0x74f1('0x155')]));var _0x1300ed=this[_0x74f1('0x50')][_0x74f1('0xc2')](this,_0x176800[_0x74f1('0x166')]);var _0x535ec2=this[_0x74f1('0x52')][_0x74f1('0xc2')](this,_0x176800[_0x74f1('0x155')],_0x1300ed);if(_0x535ec2){logger['info'](util[_0x74f1('0x26')](_0x74f1('0x156'),this[_0x74f1('0x37')][_0x74f1('0x39')],_0x176800[_0x74f1('0x155')]));this[_0x74f1('0x37')][_0x74f1('0xae')](util[_0x74f1('0x26')](_0x74f1('0x156'),this[_0x74f1('0x37')][_0x74f1('0x39')],_0x176800[_0x74f1('0x155')]));return{'code':0xc8,'result':'success'};}else{logger[_0x74f1('0x2b')](util[_0x74f1('0x26')]('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this[_0x74f1('0x37')][_0x74f1('0x39')],_0x176800[_0x74f1('0x155')]));this[_0x74f1('0x37')]['noop'](util[_0x74f1('0x26')](_0x74f1('0x156'),this[_0x74f1('0x37')]['callerid'],_0x176800[_0x74f1('0x155')]));return{'code':0xc8,'result':'failure'};}};AGIVertices['prototype']['playback']=function(_0x56c291){logger[_0x74f1('0x2b')](util['format'](_0x74f1('0x167'),_0x56c291[_0x74f1('0x35')]));if(!this[_0x74f1('0x89')](_0x56c291[_0x74f1('0x10d')])){return this[_0x74f1('0x37')][_0x74f1('0x29')](_0x56c291,_0x74f1('0x10e'));}var _0x4e8afd=this[_0x74f1('0x1b')][_0x74f1('0xc2')](this,_0x56c291[_0x74f1('0x10d')]);if(!_0x4e8afd){return this[_0x74f1('0x37')]['error'](_0x56c291,_0x74f1('0x10f'));}var _0x9152f7=this[_0x74f1('0x37')][_0x74f1('0x5a')](_0x74f1('0x168'),[_0x4e8afd,_0x56c291[_0x74f1('0xe4')]]);if(_0x9152f7['result']===-0x1){return _0x9152f7;}return this[_0x74f1('0x37')][_0x74f1('0xae')](util['format'](_0x74f1('0xc6'),_0x74f1('0x168'),_0x4e8afd));};AGIVertices[_0x74f1('0xd')][_0x74f1('0x169')]=function(_0x258005){logger[_0x74f1('0x2b')](util['format'](_0x74f1('0x16a'),_0x258005['label']));if(!this['isConfigured'](_0x258005[_0x74f1('0x16b')])){return this[_0x74f1('0x37')][_0x74f1('0x29')](_0x258005,_0x74f1('0x16c'));}var _0x5d3506='';var _0x3d1234=parseInt(_0x258005[_0x74f1('0x16b')],0xa);if(isNaN(_0x3d1234)){_0x5d3506=_0x258005[_0x74f1('0x16b')];}else{_0x5d3506=this['getVoiceQueue']['sync'](this,_0x258005['queue_id']);if(!_0x5d3506){return this[_0x74f1('0x37')][_0x74f1('0x29')](_0x258005,_0x74f1('0x16d'));}}var _0x306a98='';if(this['isConfigured'](_0x258005[_0x74f1('0x10d')])){var _0x24f0f4=this[_0x74f1('0x1b')]['sync'](this,_0x258005[_0x74f1('0x10d')]);if(_0x24f0f4){_0x306a98=_0x24f0f4;}}this[_0x74f1('0x33')][_0x74f1('0xc2')](this,_0x258005,_0x5d3506);if(_0x258005[_0x74f1('0xe4')][_0x74f1('0x16e')]('x')<0x0){_0x258005[_0x74f1('0xe4')]+='x';}if(_0x258005[_0x74f1('0xe4')][_0x74f1('0x16e')]('X')<0x0){_0x258005['opts']+='X';}this[_0x74f1('0x37')][_0x74f1('0xa5')](_0x74f1('0x16f'),_0x5d3506?_0x5d3506[_0x74f1('0x170')]():'');var _0x5c1352=this[_0x74f1('0x37')]['exec']('QUEUE',[_0x5d3506,_0x258005[_0x74f1('0xe4')],_0x258005['url'],_0x306a98,_0x258005[_0x74f1('0x69')],_0x258005['agi'],_0x258005['macro'],_0x258005['gosub'],'',_0x258005['position']]);if(_0x5c1352[_0x74f1('0xa8')]===-0x1){return _0x5c1352;}return this[_0x74f1('0x37')][_0x74f1('0xae')](util[_0x74f1('0x26')]('Executed\x20command\x20%s\x20%s',_0x74f1('0x171'),_0x5d3506));};AGIVertices['prototype'][_0x74f1('0x172')]=function(_0x29be93){logger[_0x74f1('0x2b')](util[_0x74f1('0x26')](_0x74f1('0x173'),_0x29be93[_0x74f1('0x35')]));var _0x1540cd=_0x29be93[_0x74f1('0x174')]||'wav';var _0x45d149=util[_0x74f1('0x26')](_0x74f1('0x175'),this[_0x74f1('0x37')][_0x74f1('0x34')],rs[_0x74f1('0x114')](0x5));var _0x3e7df1=util[_0x74f1('0x26')](_0x74f1('0x176'),FILES_PATH,_0x45d149,_0x1540cd);var _0x4b4fb9=util[_0x74f1('0x26')](_0x74f1('0x12e'),FILES_PATH,_0x45d149);this['createSquareRecording'][_0x74f1('0xc2')](this,_0x29be93,_0x45d149,_0x3e7df1);this['channel'][_0x74f1('0xa5')](_0x74f1('0x177'),_0x45d149);logger[_0x74f1('0x2b')](_0x74f1('0x178'),_0x4b4fb9,_0x1540cd,_0x29be93['escape_digits'],_0x29be93[_0x74f1('0x69')]);return this[_0x74f1('0x37')][_0x74f1('0x131')](_0x4b4fb9,_0x1540cd,_0x29be93[_0x74f1('0x179')],_0x29be93['timeout'],undefined,!![]);};AGIVertices['prototype'][_0x74f1('0x17a')]=function(_0x38e8d3){logger[_0x74f1('0x2b')](util[_0x74f1('0x26')](_0x74f1('0x17b'),_0x38e8d3['label']));if(!this[_0x74f1('0x89')](_0x38e8d3[_0x74f1('0x75')])){return this[_0x74f1('0x37')]['noop']('no\x20url\x20configured');}var _0x1b8b0e=this[_0x74f1('0x67')]['sync'](this,_0x38e8d3);logger[_0x74f1('0x2b')](util[_0x74f1('0x26')]('Response:',util[_0x74f1('0x17c')](_0x1b8b0e,{'showHidden':![],'depth':null})));if(!this['isConfigured'](_0x38e8d3['variable_id'])){return this[_0x74f1('0x37')][_0x74f1('0xae')](_0x74f1('0x17d'));}var _0x5a3f9b=this[_0x74f1('0xe')]['sync'](this,_0x38e8d3[_0x74f1('0xd7')]);if(!_0x5a3f9b){return this['channel'][_0x74f1('0x29')](_0x38e8d3,_0x74f1('0xd9'));}this['channel'][_0x74f1('0xa5')](util[_0x74f1('0x26')](_0x74f1('0x17e'),_0x5a3f9b),_0x1b8b0e[_0x74f1('0x79')]?_0x1b8b0e['statusCode']:'200');this['channel'][_0x74f1('0xa5')](util[_0x74f1('0x26')]('%s_STATUS_MESSAGE',_0x5a3f9b),_0x1b8b0e[_0x74f1('0x7a')]?_0x1b8b0e[_0x74f1('0x7a')]:'OK');if(_0x1b8b0e[_0x74f1('0x6e')]){try{this[_0x74f1('0xa2')](_0x1b8b0e[_0x74f1('0x6e')],_0x5a3f9b);}catch(_0x1b9896){logger[_0x74f1('0x29')](util[_0x74f1('0x26')](_0x74f1('0x17f'),_0x5a3f9b));}}return this['channel'][_0x74f1('0xae')](util[_0x74f1('0x26')](_0x74f1('0x180'),_0x5a3f9b));};AGIVertices[_0x74f1('0xd')]['saydigits']=function(_0x4ef0d1){logger[_0x74f1('0x2b')](util[_0x74f1('0x26')]('Enter\x20in\x20SAYDIGITS\x20(%s)\x20block',_0x4ef0d1[_0x74f1('0x35')]));return this['channel'][_0x74f1('0x181')](_0x4ef0d1[_0x74f1('0x182')][_0x74f1('0x5b')](/\s+/g,''),_0x4ef0d1[_0x74f1('0x179')]);};AGIVertices[_0x74f1('0xd')][_0x74f1('0x183')]=function(_0x2f1772){logger[_0x74f1('0x2b')](util[_0x74f1('0x26')](_0x74f1('0x184'),_0x2f1772[_0x74f1('0x35')]));return this[_0x74f1('0x37')][_0x74f1('0x185')](_0x2f1772[_0x74f1('0x186')][_0x74f1('0x5b')](/\s+/g,''),_0x2f1772[_0x74f1('0x179')]);};AGIVertices[_0x74f1('0xd')]['sayphonetic']=function(_0x144630){logger[_0x74f1('0x2b')](util[_0x74f1('0x26')](_0x74f1('0x187'),_0x144630[_0x74f1('0x35')]));return this['channel']['sayPhonetic'](_0x144630['text'],_0x144630[_0x74f1('0x179')]);};AGIVertices[_0x74f1('0xd')]['sendMail']=function(_0x8e014b){logger[_0x74f1('0x2b')](util['format'](_0x74f1('0x188'),_0x8e014b[_0x74f1('0x35')]));if(!this['isConfigured'](_0x8e014b[_0x74f1('0x189')])){return this[_0x74f1('0x37')][_0x74f1('0xae')](_0x74f1('0x18a'));}var _0x591645=this[_0x74f1('0x1e')][_0x74f1('0xc2')](this,_0x8e014b[_0x74f1('0x189')]);if(!_0x591645||!_0x591645[_0x74f1('0x18b')]){return this[_0x74f1('0x37')][_0x74f1('0x29')](_0x8e014b,_0x74f1('0x18c'));}var _0x40b434={'from':util[_0x74f1('0x26')]('\x22%s\x22\x20<%s>',_0x591645['name'],_0x591645[_0x74f1('0x18d')]||_0x591645[_0x74f1('0x18b')][_0x74f1('0x18e')]),'to':_0x8e014b['to']||'','cc':_0x8e014b['cc']||'','bcc':_0x8e014b[_0x74f1('0x18f')]||'','subject':_0x8e014b[_0x74f1('0x190')],'html':_0x8e014b[_0x74f1('0x5f')],'text':_0x8e014b[_0x74f1('0x5f')]};if(this[_0x74f1('0x89')](_0x8e014b[_0x74f1('0x191')])){}logger['debug'](_0x74f1('0x192'),JSON[_0x74f1('0x77')](_0x40b434));this[_0x74f1('0x33')][_0x74f1('0xc2')](this,_0x8e014b,_0x8e014b[_0x74f1('0x189')]);this[_0x74f1('0x37')][_0x74f1('0xae')](util['format'](_0x74f1('0x193'),_0x591645['name']));this[_0x74f1('0x20')][_0x74f1('0xc2')](this,_0x591645[_0x74f1('0x194')],_0x40b434);return this['channel']['noop'](_0x74f1('0x195'));};AGIVertices[_0x74f1('0xd')]['sendFax']=function(_0x3cc349){logger[_0x74f1('0x2b')](util[_0x74f1('0x26')](_0x74f1('0x196'),_0x3cc349[_0x74f1('0x35')]));return this['channel'][_0x74f1('0xae')](_0x74f1('0x197'));};AGIVertices['prototype'][_0x74f1('0x198')]=function(_0x4b3406){logger[_0x74f1('0x2b')](util['format'](_0x74f1('0x199'),_0x4b3406[_0x74f1('0x35')]));if(!this[_0x74f1('0x89')](_0x4b3406[_0x74f1('0x19a')])){return this[_0x74f1('0x37')]['noop'](_0x74f1('0x19b'));}var _0x24b66e=this[_0x74f1('0x19c')][_0x74f1('0xc2')](this,_0x4b3406['sms_account_id']);if(!_0x24b66e){return this[_0x74f1('0x37')][_0x74f1('0x29')](_0x4b3406,'no\x20sms\x20account\x20found');}var _0x17bb59={'body':_0x4b3406[_0x74f1('0x19d')],'phone':_0x4b3406['to']||'','SmsAccountId':_0x24b66e['id']};logger[_0x74f1('0x19e')]('sendSMS\x20message',JSON[_0x74f1('0x77')](_0x17bb59));this[_0x74f1('0x33')][_0x74f1('0xc2')](this,_0x4b3406,_0x4b3406[_0x74f1('0x19a')]);this['channel']['noop'](util['format']('Trying\x20SendSMS\x20with\x20account\x20%s',_0x24b66e[_0x74f1('0x11')]));this[_0x74f1('0x32')][_0x74f1('0xc2')](this,_0x17bb59);return this['channel'][_0x74f1('0xae')](_0x74f1('0x19f'));};AGIVertices[_0x74f1('0xd')][_0x74f1('0x1a0')]=function(_0x158b65){logger['info'](util[_0x74f1('0x26')]('Enter\x20in\x20SET\x20(%s)\x20block',_0x158b65['label']));if(!this['isConfigured'](_0x158b65[_0x74f1('0xd7')])){return this['channel'][_0x74f1('0x29')](_0x158b65,_0x74f1('0x1a1'));}var _0xa67273=this[_0x74f1('0xe')][_0x74f1('0xc2')](this,_0x158b65[_0x74f1('0xd7')]);if(!_0xa67273){return this[_0x74f1('0x37')][_0x74f1('0x29')](_0x158b65,'no\x20variable\x20found');}return this[_0x74f1('0x37')][_0x74f1('0xa5')](_0xa67273,_0x158b65['variable_value']);};AGIVertices[_0x74f1('0xd')]['start']=function(_0x4da1bb){logger[_0x74f1('0x2b')](util[_0x74f1('0x26')]('Enter\x20in\x20START\x20(%s)\x20block',_0x4da1bb[_0x74f1('0x35')]));this[_0x74f1('0x37')][_0x74f1('0xae')](_0x74f1('0x1a2'));var _0x354bcf=this[_0x74f1('0x37')][_0x74f1('0xe')]('XMCS-UNIQUEID');if(!_['isEmpty'](_0x354bcf[_0x74f1('0xa6')])){this[_0x74f1('0x37')][_0x74f1('0x34')]=_0x354bcf[_0x74f1('0xa6')];}if(_0x4da1bb[_0x74f1('0xba')]===_0x74f1('0x1a3')){this['channel'][_0x74f1('0xae')](_0x74f1('0x1a4'));return this[_0x74f1('0x37')]['answer']();}return this[_0x74f1('0x37')]['noop']('Skipped\x20Answer');};AGIVertices[_0x74f1('0xd')][_0x74f1('0x1a5')]=function(_0x227fb9){logger['info'](util[_0x74f1('0x26')](_0x74f1('0x1a6'),_0x227fb9[_0x74f1('0x35')]));if(!this[_0x74f1('0x89')](_0x227fb9['project_id'])){return this[_0x74f1('0x37')]['error'](_0x227fb9,'no\x20subproject\x20selected');}var _0x49af51=this[_0x74f1('0x14')][_0x74f1('0xc2')](this,_0x227fb9[_0x74f1('0x1a7')]);if(!this[_0x74f1('0x89')](_0x49af51)){return this['channel'][_0x74f1('0x29')](_0x227fb9,util[_0x74f1('0x26')]('no\x20subproject\x20found\x20with\x20id\x20%d',_0x227fb9[_0x74f1('0x1a7')]));}if(_0x49af51===this['channel'][_0x74f1('0x38')]){return this[_0x74f1('0x37')]['error'](_0x227fb9,'project\x20in\x20subproject\x20must\x20be\x20different\x20from\x20the\x20called\x20project');}this[_0x74f1('0x33')][_0x74f1('0xc2')](this,_0x227fb9,_0x49af51);var _0x51fce6=this['channel'][_0x74f1('0x5a')](_0x74f1('0x1a8'),util[_0x74f1('0x26')]('agi://%s/square,\x22%s\x22,\x22%s\x22',config[_0x74f1('0x7')]['host']||_0x74f1('0x1a9'),_0x49af51,this[_0x74f1('0x37')][_0x74f1('0x38')]));if(_0x51fce6['result']===-0x1){return _0x51fce6;}return this[_0x74f1('0x37')]['noop'](util[_0x74f1('0x26')](_0x74f1('0xc6'),'AGI',_0x49af51));};AGIVertices[_0x74f1('0xd')][_0x74f1('0x1aa')]=function(_0x1f892a){logger[_0x74f1('0x2b')](util[_0x74f1('0x26')](_0x74f1('0x1ab'),_0x1f892a[_0x74f1('0x35')]));var _0x4e0dc1=this[_0x74f1('0x1ac')][_0x74f1('0xc2')](this,_0x1f892a['command']);this[_0x74f1('0x33')]['sync'](this,_0x1f892a,_0x1f892a['command']);if(this[_0x74f1('0x89')](_0x1f892a[_0x74f1('0xd7')])){var _0x22d225=this[_0x74f1('0xe')][_0x74f1('0xc2')](this,_0x1f892a[_0x74f1('0xd7')]);if(_0x22d225){this['channel'][_0x74f1('0xa5')](_0x22d225,_0x4e0dc1);return this[_0x74f1('0x37')]['noop'](util[_0x74f1('0x26')](_0x74f1('0x1ad'),_0x1f892a[_0x74f1('0xb8')],_0x22d225));}}return this[_0x74f1('0x37')][_0x74f1('0xae')](util[_0x74f1('0x26')](_0x74f1('0x1ae'),_0x1f892a[_0x74f1('0xb8')]));};AGIVertices[_0x74f1('0xd')][_0x74f1('0x1af')]=function(_0x5ab8f4){logger['info'](util[_0x74f1('0x26')](_0x74f1('0x1b0'),_0x5ab8f4[_0x74f1('0x35')]));_0x5ab8f4[_0x74f1('0x5f')]=_0x5ab8f4['text'][_0x74f1('0x5b')](/(\r\n|\n|\r)/gm,'\x20');if(!this[_0x74f1('0x89')](_0x5ab8f4[_0x74f1('0x5d')])){return this[_0x74f1('0x37')][_0x74f1('0xae')]('no\x20apiKey\x20configured');}if(!this[_0x74f1('0x89')](_0x5ab8f4[_0x74f1('0x5f')])){return this[_0x74f1('0x37')][_0x74f1('0xae')](_0x74f1('0xc8'));}this[_0x74f1('0x37')][_0x74f1('0xae')](util[_0x74f1('0x26')](_0x74f1('0x1b1'),_0x5ab8f4[_0x74f1('0x5f')]));var _0x264175=this[_0x74f1('0x5c')]['sync'](this,_0x5ab8f4);if(_0x264175){this[_0x74f1('0x37')][_0x74f1('0xae')](util[_0x74f1('0x26')](_0x74f1('0x1b2'),_0x264175));var _0x560a24=this[_0x74f1('0x37')][_0x74f1('0xfe')](_0x264175);try{fs[_0x74f1('0x120')](_0x264175+_0x74f1('0x121'));}catch(_0x141de8){logger['error'](_0x141de8);}return _0x560a24;}return this['channel'][_0x74f1('0x29')](_0x5ab8f4,_0x74f1('0x1b3'));};AGIVertices[_0x74f1('0xd')][_0x74f1('0x1b4')]=function(_0x2b7d7c){logger[_0x74f1('0x2b')](util[_0x74f1('0x26')](_0x74f1('0x1b5'),_0x2b7d7c[_0x74f1('0x35')]));_0x2b7d7c['text']=_0x2b7d7c['text'][_0x74f1('0x5b')](/(\r\n|\n|\r)/gm,'\x20');if(!this['isConfigured'](_0x2b7d7c[_0x74f1('0x5f')])){return this[_0x74f1('0x37')][_0x74f1('0xae')]('no\x20text\x20configured');}this[_0x74f1('0x37')][_0x74f1('0xae')](util[_0x74f1('0x26')](_0x74f1('0x1b6'),_0x2b7d7c['text']));var _0x5e622f=this['googleTTS']['sync'](this,_0x2b7d7c);if(_0x5e622f){this[_0x74f1('0x37')][_0x74f1('0xae')](util[_0x74f1('0x26')](_0x74f1('0x1b7'),_0x5e622f));var _0x3bf5cd=this['channel']['streamFile'](_0x5e622f);try{fs[_0x74f1('0x120')](_0x5e622f+_0x74f1('0x121'));}catch(_0xe22fb3){logger[_0x74f1('0x29')](_0xe22fb3);}return _0x3bf5cd;}return this[_0x74f1('0x37')]['error'](_0x2b7d7c,_0x74f1('0x1b8'));};AGIVertices[_0x74f1('0xd')]['unpause']=function(_0xf8875c){logger[_0x74f1('0x2b')](util[_0x74f1('0x26')](_0x74f1('0x1b9'),_0xf8875c[_0x74f1('0x35')]));if(!this[_0x74f1('0x89')](_0xf8875c[_0x74f1('0x155')])){return this[_0x74f1('0x37')][_0x74f1('0x29')](_0xf8875c,_0x74f1('0x15c'));}logger[_0x74f1('0x2b')](util[_0x74f1('0x26')](_0x74f1('0x154'),this[_0x74f1('0x37')]['callerid'],_0xf8875c[_0x74f1('0x155')]));var _0x3bfef9=this[_0x74f1('0x53')][_0x74f1('0xc2')](this,_0xf8875c[_0x74f1('0x155')]);if(_0x3bfef9){logger[_0x74f1('0x2b')](util[_0x74f1('0x26')]('AGENT\x20%s\x20FOUND\x20BY',this[_0x74f1('0x37')][_0x74f1('0x39')],_0xf8875c['findBy']));this['channel']['noop'](util[_0x74f1('0x26')](_0x74f1('0x156'),this['channel'][_0x74f1('0x39')],_0xf8875c[_0x74f1('0x155')]));return{'code':0xc8,'result':'success'};}else{logger['info'](util[_0x74f1('0x26')]('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this['channel']['callerid'],_0xf8875c[_0x74f1('0x155')]));this[_0x74f1('0x37')][_0x74f1('0xae')](util[_0x74f1('0x26')](_0x74f1('0x158'),this[_0x74f1('0x37')][_0x74f1('0x39')],_0xf8875c[_0x74f1('0x155')]));return{'code':0xc8,'result':'failure'};}};AGIVertices[_0x74f1('0xd')][_0x74f1('0x1ba')]=function(_0x747ff3){logger[_0x74f1('0x2b')](util[_0x74f1('0x26')](_0x74f1('0x1bb'),_0x747ff3[_0x74f1('0x35')]));var _0x18bbbc=this[_0x74f1('0x37')][_0x74f1('0x5a')](_0x74f1('0x1bc'),[_0x747ff3[_0x74f1('0x1bd')],_0x747ff3[_0x74f1('0x7d')]]);if(_0x18bbbc[_0x74f1('0xa8')]===-0x1){return _0x18bbbc;}return this[_0x74f1('0x37')][_0x74f1('0xae')](util['format'](_0x74f1('0xc6'),'VOICEMAIL',_0x747ff3[_0x74f1('0x1bd')]));};AGIVertices[_0x74f1('0xd')]['vswitch']=function(_0x142b22){logger[_0x74f1('0x2b')](util['format'](_0x74f1('0x1be'),_0x142b22['label']));if(!this[_0x74f1('0x89')](_0x142b22[_0x74f1('0xd7')])){return this['channel'][_0x74f1('0x29')](_0x142b22,'no\x20variable\x20selected');}var _0x37fe12=this['getVariable'][_0x74f1('0xc2')](this,_0x142b22[_0x74f1('0xd7')]);if(!_0x37fe12){return this['channel'][_0x74f1('0x29')](_0x142b22,_0x74f1('0xd9'));}var _0x497a12=this[_0x74f1('0x37')]['getVariable'](_0x37fe12);return{'code':0xc8,'result':_0x497a12['extra']?_0x497a12[_0x74f1('0xa6')]:'-'};};String['prototype'][_0x74f1('0x1bf')]=function(_0x52ddee,_0x5638fd){return this[_0x74f1('0x1c0')](_0x52ddee)[_0x74f1('0x1c1')](_0x5638fd);};module[_0x74f1('0x1c2')]=AGIVertices;
\ No newline at end of file
+var _0xb138=['vswitch','Enter\x20in\x20SWITCH\x20(%s)\x20block','join','exports','util','lodash','shelljs','odbc','randomstring','moment','mustache','../../config/logger','agi','../../config/environment','/var/opt/motion2/server/files','rawHeaders','menu','getdigits','getsecretdigits','mailRpc','prototype','getVariable','getVariableById','then','name','catch','rpc','getSquareProjectById','getSquareOdbc','getSquareOdbcById','dsn','getUserById','getTrunk','getTrunkById','getSound','getSoundById','getSoundPath','save_name','getMailAccount','getMailAccountById','sendMailMessage','getIntervals','getIntervalById','IntervalId','interval','map','format','%s/sounds/converted/%s','getQueryOdbc','open','error','Error\x20getting\x20ODBC\x20connection\x20%s','query','Error\x20executing\x20query\x20%s','info','Query\x20executed\x20correctly\x20%s','close','getSmsAccountById','createSmsMessage','createSquareDetailsReport','channel','uniqueid','label','agicommand','arg_1','createSquareRecording','callerid','calleridname','context','extension','priority','accountcode','dnid','createSquareMessage','createCmContact','isEmpty','callback_','lastName','isNil','phone','list_id','scheduledAt','callback','Callback\x20scheduled\x20at\x20','toString','getPause','getPauseById','agentPause','agent','agentUnpause','agentLogout','agentLogin','internal','%s/%s@from-sip/n','LOCAL','shellCommand','exec','trim','replace','googleCloudTTS','apiKey','google_cloud_tts_text_type','text','languageCode','en-US','MALE','MP3','googleTTS','google_tts_language','restAPI','url','timeout','number','includes','POST','PUT','method','toUpperCase','body','rawBody','headers','parse','An\x20incorrect\x20formatted\x20json\x20headers\x20has\x20been\x20passed\x20to\x20the\x20function','computedVariables','sync','uri','render','stringify','An\x20incorrect\x20formatted\x20json\x20has\x20been\x20passed\x20to\x20the\x20function','message','options','googleDialogflow','key','dialogflow_language','googleDialogflowV2','client_email','private_key','dialogflowV2_language','sestekNDA','ispeechTTS','ispeech_tts_language','speed','ispeechASR','ispeech_asr_language','model','awsPolly','aws_access_key_id','aws_secret_access_key','aws_polly_region','aws_polly_voice','Amy','aws_text_type','awsLex','aws_bot_name','googleASR','google_asr_language','appid','appsecret','isString','replaceObjectAllVariables','isPlainObject','isArray','length','recursiveNodeIndex','replaceAllVariables','saveRestApiResult','hasOwnProperty','setVariable','split','replaceAll','extra','getAndSetVariable','result','The\x20\x22%s\x22\x20variable\x20value\x20is:\x20%s','maxRetry','mrcpsynth','Enter\x20in\x20MRCPSynth\x20(%s)\x20block','isConfigured','noop','no\x20text\x20configured','MRCPSynth','mrcprecog','grammar','no\x20grammar\x20configured','RECOG_CONFIDENCE()','RECOG_INPUT()','MRCP_RECOG_TRANSCRIPT','RECOG_INSTANCE()','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\x20CALLBACK\x20(%s)\x20block','no\x20list\x20selected','delay','add','minutes','callback_priority','Enter\x20in\x20CUSTOM\x20APP\x20(%s)\x20block','application','lumenvoxtts','Enter\x20in\x20LUMENVOXTTS\x20(%s)\x20block','sestektts','Enter\x20in\x20SESTEKTTS\x20(%s)\x20block','Executed\x20command\x20MRCPSynth\x20%s','lumenvoxasr','Enter\x20in\x20LUMENVOXASR\x20(%s)\x20block','MRCPRecog','LUMENVOX_ASR_CONFIDENCE','LUMENVOX_ASR_TRANSCRIPT','LUMENVOX_ASR_INSTANCE','sestekasr','Enter\x20in\x20SESTEKASR\x20(%s)\x20block','SESTEK_ASR_CONFIDENCE','SESTEK_ASR_TRANSCRIPT','SESTEK_ASR_INSTANCE','Executed\x20command\x20MRCPRecog\x20%s','database','Enter\x20in\x20DATABASE\x20(%s)\x20block','no\x20database\x20selected','odbc_id','no\x20odbc\x20database\x20found','query:\x20%s','no\x20variable\x20selected\x20for\x20the\x20result','variable_id','forEach','keys','%s[%s][%s]','variable\x20%s\x20set','dial','Enter\x20in\x20DIAL\x20(%s)\x20block','sip_id','no\x20user\x20selected','no\x20user\x20found','DIAL','SIP/%s','opts','Executed\x20command\x20%s','dialogflow','Enter\x20in\x20DIALOGFLOW\x20(%s)\x20block','bot','Trying\x20Dialogflow:\x20%s','out','speech','Dialogflow\x20is\x20unreachable','dialogflowV2_project_id','no\x20project_id\x20configured','no\x20client_email\x20configured','no\x20private_key\x20configured','Trying\x20DialogflowV2:\x20%s','providerResponse','DIALOGFLOW_%s','dialogflowV2','DialogflowV2\x20Result\x20%s','DialogflowV2\x20is\x20unreachable','sesteknda','Enter\x20in\x20SESTEKNDA\x20(%s)\x20block','ndauth_url','no\x20ndauth\x20url\x20configured','username','no\x20username\x20configured','password','no\x20password\x20configured','ndassistant_url','Trying\x20SestekNDA:\x20%s','SESTEK_NDA_%s','audiofile','Sestek\x20NDA\x20%s\x20file\x20created','streamFile','unlink','.wav','SestekNDA\x20Result\x20%s','SestekNDA\x20is\x20unreachable','end','ext_dial','Enter\x20in\x20EXTERNAL\x20DIAL\x20(%s)\x20block','trunk_id','no\x20trunk\x20selected','no\x20trunk\x20found','trunk_name','SIP/%s/%s','finally','Enter\x20in\x20FINALLY\x20(%s)\x20block','Enter\x20in\x20GETDIGITS\x20(%s)\x20block','retry','file_id','no\x20file\x20audio\x20found','getData','response','maxdigit','mindigit','hiddendigitsnum','generate','hiddendigitspos','first','substr','goal','Enter\x20in\x20GOAL\x20(%s)\x20block','goalname','GOAL\x20%s','[AGI]\x20Enter\x20in\x20AWSPOLLY\x20(%s)\x20block','no\x20valid\x20credentials\x20configured','Trying\x20aws\x20Polly\x20%s','aws\x20Polly\x20is\x20unreachable','awslex','Enter\x20in\x20Amazon\x20Lex\x20(%s)\x20block','no\x20bot\x20name\x20configured','AWS_LEX_%s','Amazon\x20Lex\x20ready\x20for\x20fulfillment','amazonlex','Amazon\x20Lex\x20Result\x20%s','Amazon\x20Lex\x20is\x20unreachable','no\x20key\x20configured','wav','%s/recordings/%s','beep','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','%s.%s','NOBEEP','tilde\x20%s\x20file\x20created','tildeASR','TILDE_ASR_%s','gotoc','Enter\x20in\x20GOTO\x20(%s)\x20block','gotoif','Enter\x20in\x20GOTOIF\x20(%s)\x20block','condition','no\x20condition\x20configured','true','false','EVAL\x20CONDITION\x20%s\x20%s','Enter\x20in\x20GOTOIFTIME\x20(%s)\x20block','no\x20interval\x20configured','interval_id','no\x20intervals\x20found','IFTIME(%s?true:false)','IFTIME\x20%s\x20%s','hangup','Enter\x20in\x20HANGUP\x20(%s)\x20block','ispeechasr','Enter\x20in\x20ISPEECHASR\x20(%s)\x20block','ispeech\x20%s\x20file\x20created','ISPEECH_ASR_%s','ispeechtts','Enter\x20in\x20ISPEECHTTS\x20(%s)\x20block','Trying\x20ispeech\x20TTS\x20%s','ispeech\x20TTS\x20is\x20unreachable','login','Enter\x20in\x20LOGIN\x20(%s)\x20block','findBy','no\x20find\x20by\x20configured','FIND\x20AGENT\x20%s\x20BY\x20%s','AGENT\x20%s\x20FOUND\x20BY','success','AGENT\x20%s\x20NOT\x20FOUND\x20BY','failure','logout','math','Enter\x20in\x20MATH\x20(%s)\x20block','operation','math\x20%s','no\x20variable\x20found','Enter\x20in\x20MENU\x20(%s)\x20block','digit','output','pause','Enter\x20in\x20PAUSE\x20(%s)\x20block','pause_id','playback','Enter\x20in\x20PLAYBACK\x20(%s)\x20block','no\x20file\x20audio\x20selected','PLAYBACK','Executed\x20command\x20%s\x20%s','queue','Enter\x20in\x20QUEUE\x20(%s)\x20block','queue_id','no\x20queue\x20selected','no\x20queue\x20found','indexOf','toLowerCase','QUEUE','macro','gosub','position','recordingFormat','%s_%s','%s/recordings/%s.%s','Recording\x20%s\x20%s\x20%s\x20%s','escape_digits','restapi','no\x20url\x20configured','Response:','inspect','no\x20variable\x20selected\x20for\x20the\x20response','statusCode','200','%s_STATUS_MESSAGE','statusMessage','Enter\x20in\x20SAYDIGITS\x20(%s)\x20block','digits','saynumber','Enter\x20in\x20SAYNUMBER\x20(%s)\x20block','sayphonetic','Enter\x20in\x20SAYPHONETIC\x20(%s)\x20block','sayPhonetic','sendMail','Enter\x20in\x20SENDMAIL\x20(%s)\x20block','no\x20mail\x20account\x20configured','account_id','Smtp','no\x20mail\x20account\x20found','\x22%s\x22\x20<%s>','email','bcc','subject','template_id','debug','sendMail\x20message','Trying\x20SendMail\x20with\x20account\x20%s','smtpOptions','SENDFAX\x20block\x20not\x20implemented','Enter\x20in\x20SENDSMS\x20(%s)\x20block','sms_account_id','no\x20sms\x20account\x20configured','getSmsAccount','sms_text','Trying\x20SendSMS\x20with\x20account\x20%s','Sms\x20message\x20added\x20to\x20outgoing\x20process','no\x20variable\x20selected','variable_value','start','Enter\x20in\x20START\x20(%s)\x20block','XMCS-UNIQUEID','Answer','Skipped\x20Answer','subproject','no\x20subproject\x20selected','getSquareProject','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','host','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','google_cloud_tts','Enter\x20in\x20Google\x20Cloud\x20TTS\x20(%s)\x20block','no\x20apiKey\x20configured','Trying\x20Google\x20Cloud\x20TTS\x20%s','Google\x20Cloud\x20TTS\x20%s\x20file\x20created','Google\x20Cloud\x20TTS\x20is\x20unreachable','tts','Enter\x20in\x20GOOGLETTS\x20(%s)\x20block','Google\x20TTS\x20is\x20unreachable','Enter\x20in\x20UNPAUSE\x20(%s)\x20block','voicemail','Enter\x20in\x20VOICEMAIL\x20(%s)\x20block','VOICEMAIL'];(function(_0x38ff6c,_0x3b8e2b){var _0x1ee0c1=function(_0x10533d){while(--_0x10533d){_0x38ff6c['push'](_0x38ff6c['shift']());}};_0x1ee0c1(++_0x3b8e2b);}(_0xb138,0x1dd));var _0x8b13=function(_0x374888,_0x4fe130){_0x374888=_0x374888-0x0;var _0x39fc0a=_0xb138[_0x374888];return _0x39fc0a;};'use strict';var fs=require('fs');var util=require(_0x8b13('0x0'));var _=require(_0x8b13('0x1'));var sh=require(_0x8b13('0x2'));var odbc=require(_0x8b13('0x3'))();var rs=require(_0x8b13('0x4'));var moment=require(_0x8b13('0x5'));var Mustache=require(_0x8b13('0x6'));var rp=require('request-promise');var logger=require(_0x8b13('0x7'))(_0x8b13('0x8'));var config=require(_0x8b13('0x9'));var scripts=require('./scripts');var FILES_PATH=_0x8b13('0xa');var recursiveMapAttributes=[_0x8b13('0xb'),'rawBody'];var verticesWithRetry=[_0x8b13('0xc'),_0x8b13('0xd'),_0x8b13('0xe')];var AGIVertices=function(_0x498832,_0x8570b0,_0x1aed6f){this['channel']=_0x498832;this['rpc']=_0x8570b0;this[_0x8b13('0xf')]=_0x1aed6f;};AGIVertices[_0x8b13('0x10')][_0x8b13('0x11')]=function(_0x439451,_0x3e8eca){this['rpc'][_0x8b13('0x12')](_0x439451)[_0x8b13('0x13')](function(_0x1a93c4){_0x3e8eca(null,_0x1a93c4?_0x1a93c4[_0x8b13('0x14')]:![]);})[_0x8b13('0x15')](function(_0x1893b1){_0x3e8eca(_0x1893b1);});};AGIVertices['prototype']['getVoiceQueue']=function(_0x3dcde6,_0x130a6f){this['rpc']['getVoiceQueueById'](_0x3dcde6)['then'](function(_0x272cb0){_0x130a6f(null,_0x272cb0?_0x272cb0[_0x8b13('0x14')]:![]);})[_0x8b13('0x15')](function(_0x2c615a){_0x130a6f(_0x2c615a);});};AGIVertices[_0x8b13('0x10')]['getSquareProject']=function(_0x1c6c99,_0xea7881){this[_0x8b13('0x16')][_0x8b13('0x17')](_0x1c6c99)[_0x8b13('0x13')](function(_0x1fcfe6){_0xea7881(null,_0x1fcfe6?_0x1fcfe6[_0x8b13('0x14')]:![]);})[_0x8b13('0x15')](function(_0x4989d3){_0xea7881(_0x4989d3);});};AGIVertices['prototype'][_0x8b13('0x18')]=function(_0x335709,_0x14a8ac){this[_0x8b13('0x16')][_0x8b13('0x19')](_0x335709)[_0x8b13('0x13')](function(_0x559442){_0x14a8ac(null,_0x559442?_0x559442[_0x8b13('0x1a')]:![]);})[_0x8b13('0x15')](function(_0x1595d8){_0x14a8ac(_0x1595d8);});};AGIVertices['prototype']['getUser']=function(_0xe73329,_0xcb7621){this['rpc'][_0x8b13('0x1b')](_0xe73329)[_0x8b13('0x13')](function(_0x37ca5f){_0xcb7621(null,_0x37ca5f?_0x37ca5f[_0x8b13('0x14')]:![]);})[_0x8b13('0x15')](function(_0x583639){_0xcb7621(_0x583639);});};AGIVertices[_0x8b13('0x10')][_0x8b13('0x1c')]=function(_0x5f15f0,_0x33422f){this['rpc'][_0x8b13('0x1d')](_0x5f15f0)[_0x8b13('0x13')](function(_0x54786a){_0x33422f(null,_0x54786a?_0x54786a[_0x8b13('0x14')]:![]);})[_0x8b13('0x15')](function(_0x4f8e58){_0x33422f(_0x4f8e58);});};AGIVertices[_0x8b13('0x10')][_0x8b13('0x1e')]=function(_0x410122,_0x4048e4){var _0x27fef3=this;this['rpc'][_0x8b13('0x1f')](_0x410122)[_0x8b13('0x13')](function(_0x3475d8){_0x4048e4(null,_0x3475d8?_0x27fef3[_0x8b13('0x20')](_0x3475d8[_0x8b13('0x21')]):![]);})[_0x8b13('0x15')](function(_0x5ab161){_0x4048e4(_0x5ab161);});};AGIVertices[_0x8b13('0x10')][_0x8b13('0x22')]=function(_0x109f0e,_0x9d2377){this[_0x8b13('0x16')][_0x8b13('0x23')](_0x109f0e)[_0x8b13('0x13')](function(_0x44bce2){_0x9d2377(null,_0x44bce2?_0x44bce2:![]);})[_0x8b13('0x15')](function(_0x5751db){_0x9d2377(_0x5751db);});};AGIVertices[_0x8b13('0x10')][_0x8b13('0x24')]=function(_0x288ff7,_0x2878a6,_0x51a334){this['mailRpc'][_0x8b13('0x24')](_0x288ff7,_0x2878a6)['then'](function(){_0x51a334(null);})['catch'](function(_0x3b1dfa){_0x51a334(_0x3b1dfa);});};AGIVertices['prototype'][_0x8b13('0x25')]=function(_0x408626,_0x40fc29){this[_0x8b13('0x16')][_0x8b13('0x26')](_0x408626)[_0x8b13('0x13')](function(_0x1fcd82){if(_0x1fcd82){if(_0x1fcd82[_0x8b13('0x27')]){_0x40fc29(null,[_0x1fcd82[_0x8b13('0x28')]]);}else{_0x40fc29(null,_[_0x8b13('0x29')](_0x1fcd82['Intervals'],_0x8b13('0x28')));}}else{_0x40fc29(null,![]);}})[_0x8b13('0x15')](function(_0x19b21c){_0x40fc29(_0x19b21c);});};AGIVertices[_0x8b13('0x10')][_0x8b13('0x20')]=function(_0x24179a){return util[_0x8b13('0x2a')](_0x8b13('0x2b'),FILES_PATH,_0x24179a);};AGIVertices['prototype'][_0x8b13('0x2c')]=function(_0x5089c6,_0x3826a5,_0x37732c){odbc[_0x8b13('0x2d')](_0x5089c6,function(_0x5e63f6){if(_0x5e63f6){logger[_0x8b13('0x2e')](_0x8b13('0x2f'),_0x5e63f6);_0x37732c(_0x5e63f6);}else{logger['info']('ODBC\x20connection\x20successfully');odbc[_0x8b13('0x30')](_0x3826a5,function(_0x5daee9,_0x3ed902){if(_0x5daee9){logger['info'](_0x8b13('0x31'),_0x3826a5);_0x37732c(_0x5daee9);}else{logger[_0x8b13('0x32')](_0x8b13('0x33'),_0x3826a5);odbc[_0x8b13('0x34')](function(_0x3a221d){if(_0x3a221d){logger['error']('Error\x20closing\x20connection\x20to\x20odbc\x20%s',_0x3a221d);}_0x37732c(null,_0x3ed902);});}});}});};AGIVertices[_0x8b13('0x10')]['getSmsAccount']=function(_0x6ba2f3,_0x9f2d81){this['rpc'][_0x8b13('0x35')](_0x6ba2f3)[_0x8b13('0x13')](function(_0x35c1d6){_0x9f2d81(null,_0x35c1d6?_0x35c1d6:![]);})[_0x8b13('0x15')](function(_0x2f4e7f){_0x9f2d81(_0x2f4e7f);});};AGIVertices[_0x8b13('0x10')][_0x8b13('0x36')]=function(_0x516c70,_0x5a3f5c){this['rpc'][_0x8b13('0x36')](_0x516c70)[_0x8b13('0x13')](function(_0x27cfe5){_0x5a3f5c(null,_0x27cfe5);})[_0x8b13('0x15')](function(_0x2e6e78){_0x5a3f5c(_0x2e6e78);});};AGIVertices[_0x8b13('0x10')]['createSquareDetailsReport']=function(_0x4342db,_0x50e535,_0x13d0ef){this['rpc'][_0x8b13('0x37')]({'uniqueid':this[_0x8b13('0x38')][_0x8b13('0x39')],'node':_0x4342db[_0x8b13('0x3a')],'application':_0x4342db[_0x8b13('0x3b')],'data':_0x50e535||null,'project_name':this[_0x8b13('0x38')][_0x8b13('0x3c')],'callerid':this['channel']['callerid']})['then'](function(_0xbe4d36){if(_0x13d0ef){_0x13d0ef(null,_0xbe4d36);}})[_0x8b13('0x15')](function(_0x288faa){if(_0x13d0ef){_0x13d0ef(_0x288faa);}});};AGIVertices[_0x8b13('0x10')]['createSquareRecording']=function(_0x5e9d93,_0x3f420d,_0x54d19d,_0x24262a){this[_0x8b13('0x16')][_0x8b13('0x3d')]({'uniqueid':this[_0x8b13('0x38')][_0x8b13('0x39')],'callerid':this['channel'][_0x8b13('0x3e')],'calleridname':this[_0x8b13('0x38')][_0x8b13('0x3f')],'context':this[_0x8b13('0x38')][_0x8b13('0x40')],'extension':this[_0x8b13('0x38')][_0x8b13('0x41')],'priority':this[_0x8b13('0x38')][_0x8b13('0x42')],'accountcode':this['channel'][_0x8b13('0x43')],'dnid':this['channel'][_0x8b13('0x44')],'projectName':this[_0x8b13('0x38')][_0x8b13('0x3c')],'saveName':_0x3f420d,'filename':_0x5e9d93['file']||_0x3f420d,'savePath':_0x54d19d})[_0x8b13('0x13')](function(_0x35f612){_0x24262a(null,_0x35f612);})[_0x8b13('0x15')](function(_0x4129c0){_0x24262a(_0x4129c0);});};AGIVertices[_0x8b13('0x10')][_0x8b13('0x45')]=function(_0x453cd4,_0x534636,_0x2c8594,_0x4c833d,_0x19b70b){this[_0x8b13('0x16')][_0x8b13('0x45')]({'uniqueid':this[_0x8b13('0x38')][_0x8b13('0x39')],'body':_0x453cd4,'direction':_0x534636,'providerName':_0x2c8594,'providerResponse':_0x4c833d})[_0x8b13('0x13')](function(_0x411ad2){if(_0x19b70b){_0x19b70b(null,_0x411ad2);}})[_0x8b13('0x15')](function(_0x3de913){if(_0x19b70b){_0x19b70b(_0x3de913);}});};AGIVertices[_0x8b13('0x10')][_0x8b13('0x46')]=function(_0xddac8e,_0xd55f3b){this[_0x8b13('0x16')][_0x8b13('0x46')]({'firstName':_[_0x8b13('0x47')](_0xddac8e[_0x8b13('0x14')])||_['isNil'](_0xddac8e[_0x8b13('0x14')])?_0x8b13('0x48')+Math['random']():_0xddac8e[_0x8b13('0x14')],'lastName':_[_0x8b13('0x47')](_0xddac8e[_0x8b13('0x49')])||_[_0x8b13('0x4a')](_0xddac8e[_0x8b13('0x49')])?null:_0xddac8e[_0x8b13('0x49')],'phone':_0xddac8e[_0x8b13('0x4b')],'ListId':_0xddac8e[_0x8b13('0x4c')],'scheduledat':_0xddac8e[_0x8b13('0x4d')],'callbackUniqueid':this[_0x8b13('0x38')][_0x8b13('0x39')],'tags':_0x8b13('0x4e'),'description':_0x8b13('0x4f')+_0xddac8e[_0x8b13('0x4d')][_0x8b13('0x50')](),'priority':_0xddac8e['callback_priority']})[_0x8b13('0x13')](function(_0x2f065f){_0xd55f3b(null,_0x2f065f);})['catch'](function(_0x11e8af){_0xd55f3b(_0x11e8af);});};AGIVertices[_0x8b13('0x10')][_0x8b13('0x51')]=function(_0x46c595,_0x1263f4){this['rpc'][_0x8b13('0x52')](_0x46c595)[_0x8b13('0x13')](function(_0x46850a){_0x1263f4(null,_0x46850a?_0x46850a['name']:![]);})[_0x8b13('0x15')](function(_0x17ab12){_0x1263f4(_0x17ab12);});};AGIVertices['prototype'][_0x8b13('0x53')]=function(_0x348c11,_0x475c8d,_0xd29067){var _0x49e5cd={'role':_0x8b13('0x54')};_0x49e5cd[_0x348c11]=this[_0x8b13('0x38')]['callerid'];this[_0x8b13('0x16')][_0x8b13('0x53')](_0x49e5cd,_0x475c8d,this[_0x8b13('0x38')][_0x8b13('0x39')])['then'](function(_0x2bdc5c){_0xd29067(null,_[_0x8b13('0x4a')](_0x2bdc5c)?![]:!![]);})[_0x8b13('0x15')](function(_0xd54429){logger[_0x8b13('0x2e')](_0xd54429);_0xd29067(null,![]);});};AGIVertices[_0x8b13('0x10')]['agentUnpause']=function(_0x123f52,_0x1082d9){var _0x445283={'role':'agent'};_0x445283[_0x123f52]=this[_0x8b13('0x38')][_0x8b13('0x3e')];this[_0x8b13('0x16')][_0x8b13('0x55')](_0x445283)['then'](function(_0x59a6b3){_0x1082d9(null,_['isNil'](_0x59a6b3)?![]:!![]);})['catch'](function(_0x4fedbf){logger[_0x8b13('0x2e')](_0x4fedbf);_0x1082d9(null,![]);});};AGIVertices[_0x8b13('0x10')]['agentLogout']=function(_0x2934c8,_0x5c3928){var _0x274bad={'role':_0x8b13('0x54')};_0x274bad[_0x2934c8]=this[_0x8b13('0x38')][_0x8b13('0x3e')];this[_0x8b13('0x16')][_0x8b13('0x56')](_0x274bad)[_0x8b13('0x13')](function(_0x4c433c){_0x5c3928(null,_[_0x8b13('0x4a')](_0x4c433c)?![]:!![]);})['catch'](function(_0xa31d7d){logger[_0x8b13('0x2e')](_0xa31d7d);_0x5c3928(null,![]);});};AGIVertices[_0x8b13('0x10')][_0x8b13('0x57')]=function(_0x3fff75,_0x41a033){var _0x10f1bf={'role':'agent'};_0x10f1bf[_0x3fff75]=this[_0x8b13('0x38')]['callerid'];var _0x2b109c=_0x3fff75!=_0x8b13('0x58')?util[_0x8b13('0x2a')](_0x8b13('0x59'),_0x8b13('0x5a'),this['channel']['callerid']):undefined;this[_0x8b13('0x16')][_0x8b13('0x57')](_0x10f1bf,_0x2b109c)['then'](function(_0x180866){_0x41a033(null,_[_0x8b13('0x4a')](_0x180866)?![]:!![]);})[_0x8b13('0x15')](function(_0x51545e){logger[_0x8b13('0x2e')](_0x51545e);_0x41a033(null,![]);});};AGIVertices[_0x8b13('0x10')][_0x8b13('0x5b')]=function(_0x228e63,_0x52850c){sh[_0x8b13('0x5c')](_[_0x8b13('0x5d')](_0x228e63),function(_0x4f062d,_0x215f9b){var _0x3bfd74=_0x215f9b[_0x8b13('0x5e')](/(\r\n|\n|\r)/gm,'');_0x52850c(null,_0x3bfd74);});};AGIVertices[_0x8b13('0x10')][_0x8b13('0x5f')]=function(_0x1243f8,_0x4334c1){scripts[_0x8b13('0x5f')](_0x1243f8[_0x8b13('0x60')],_0x1243f8[_0x8b13('0x61')]||_0x8b13('0x62'),_0x1243f8[_0x8b13('0x62')],_0x1243f8[_0x8b13('0x63')]||_0x8b13('0x64'),_0x1243f8['ssmlGender']||_0x8b13('0x65'),_0x1243f8['audioEncoding']||_0x8b13('0x66'))[_0x8b13('0x13')](function(_0x31fc95){_0x4334c1(null,_0x31fc95);})[_0x8b13('0x15')](function(_0x564b4d){_0x4334c1(_0x564b4d);});};AGIVertices['prototype'][_0x8b13('0x67')]=function(_0x2236b5,_0x4d8c62){scripts[_0x8b13('0x67')](_0x2236b5[_0x8b13('0x62')],_0x2236b5[_0x8b13('0x68')]||'en',0x1)[_0x8b13('0x13')](function(_0x7499cb){_0x4d8c62(null,_0x7499cb);})[_0x8b13('0x15')](function(_0x15b553){_0x4d8c62(_0x15b553);});};AGIVertices[_0x8b13('0x10')][_0x8b13('0x69')]=function(_0x24211c,_0x48fd36){var _0x2a1fd3={'uri':_0x24211c[_0x8b13('0x6a')],'method':_0x24211c['method'],'json':!![],'resolveWithFullResponse':!![],'strictSSL':![],'timeout':typeof parseInt(_0x24211c[_0x8b13('0x6b')])===_0x8b13('0x6c')&&parseInt(_0x24211c['timeout'])>=0x1?parseInt(_0x24211c[_0x8b13('0x6b')])*0x3e8:0x5*0x3e8};if(_[_0x8b13('0x6d')]([_0x8b13('0x6e'),_0x8b13('0x6f')],_0x2a1fd3[_0x8b13('0x70')][_0x8b13('0x71')]())){try{_0x2a1fd3[_0x8b13('0x72')]=_0x24211c[_0x8b13('0x73')]?JSON['parse'](_0x24211c[_0x8b13('0x73')]):{};}catch(_0x213b43){logger[_0x8b13('0x2e')]('An\x20incorrect\x20formatted\x20json\x20body\x20has\x20been\x20passed\x20to\x20the\x20function',_0x213b43);}}try{_0x2a1fd3[_0x8b13('0x74')]=_0x24211c['rawHeaders']?JSON[_0x8b13('0x75')](_0x24211c[_0x8b13('0xb')]):{};}catch(_0x38a1ce){logger[_0x8b13('0x2e')](_0x8b13('0x76'),_0x38a1ce);}if(_0x24211c[_0x8b13('0x77')]){try{var _0x41cefe=require(_0x24211c[_0x8b13('0x77')])[_0x8b13('0x78')](this,_0x2a1fd3);_0x2a1fd3[_0x8b13('0x79')]=Mustache['render'](_0x24211c[_0x8b13('0x6a')],_0x41cefe,{},['$$','$$']);if(_0x2a1fd3[_0x8b13('0x74')]){_0x2a1fd3[_0x8b13('0x74')]=JSON[_0x8b13('0x75')](Mustache[_0x8b13('0x7a')](JSON[_0x8b13('0x7b')](_0x2a1fd3[_0x8b13('0x74')]),_0x41cefe,{},['$$','$$']));}if(_0x2a1fd3[_0x8b13('0x72')]){_0x2a1fd3[_0x8b13('0x72')]=JSON[_0x8b13('0x75')](Mustache[_0x8b13('0x7a')](JSON[_0x8b13('0x7b')](_0x2a1fd3[_0x8b13('0x72')]),_0x41cefe,{},['$$','$$']));}}catch(_0x4bb71a){logger['error'](_0x8b13('0x7c'),_0x4bb71a);}}rp(_0x2a1fd3)['then'](function(_0x22e10a){var _0x38a1de={'statusCode':_0x22e10a['statusCode']||0xc8,'statusMessage':_0x22e10a['statusMessage']||'OK','headers':_0x22e10a[_0x8b13('0x74')]||{},'body':_0x22e10a[_0x8b13('0x72')]||{}};_0x48fd36(null,_0x38a1de);})[_0x8b13('0x15')](function(_0x1d037a){var _0xed5531={'statusCode':_0x1d037a['statusCode']||0x1f4,'statusMessage':_0x1d037a[_0x8b13('0x7d')]||'500\x20-\x20Internal\x20Server\x20Error','headers':_0x1d037a[_0x8b13('0x7e')][_0x8b13('0x74')]||{},'body':_0x1d037a['options'][_0x8b13('0x72')]||{}};_0x48fd36(null,_0xed5531);});};AGIVertices[_0x8b13('0x10')][_0x8b13('0x7f')]=function(_0x34cee5,_0x2f1ddf){scripts['googleDialogflow'](this[_0x8b13('0x38')][_0x8b13('0x39')],_0x34cee5[_0x8b13('0x80')],_0x34cee5['text'],_0x34cee5[_0x8b13('0x81')]||'en')['then'](function(_0x3bfb06){_0x2f1ddf(null,_0x3bfb06);})[_0x8b13('0x15')](function(_0x3f9df4){_0x2f1ddf(_0x3f9df4);});};AGIVertices[_0x8b13('0x10')][_0x8b13('0x82')]=function(_0xe70f1b,_0x441173){scripts[_0x8b13('0x82')](this[_0x8b13('0x38')][_0x8b13('0x39')],_0xe70f1b['dialogflowV2_project_id'],_0xe70f1b[_0x8b13('0x83')],_0xe70f1b[_0x8b13('0x84')],_0xe70f1b[_0x8b13('0x62')],_0xe70f1b[_0x8b13('0x85')]||'en')[_0x8b13('0x13')](function(_0x52e7d6){_0x441173(null,_0x52e7d6);})[_0x8b13('0x15')](function(_0x45dc31){_0x441173(_0x45dc31);});};AGIVertices[_0x8b13('0x10')][_0x8b13('0x86')]=function(_0x4f601d,_0x3ea823){scripts['sestekNDA'](this[_0x8b13('0x38')],_0x4f601d)[_0x8b13('0x13')](function(_0x556a92){_0x3ea823(null,_0x556a92);})[_0x8b13('0x15')](function(_0x48269c){_0x3ea823(_0x48269c);});};AGIVertices[_0x8b13('0x10')]['ispeechTTS']=function(_0x135053,_0x291a30){scripts[_0x8b13('0x87')](_0x135053[_0x8b13('0x80')],_0x135053[_0x8b13('0x62')],_0x135053[_0x8b13('0x88')]||_0x8b13('0x64'),_0x135053[_0x8b13('0x89')])['then'](function(_0x800c3c){_0x291a30(null,_0x800c3c);})[_0x8b13('0x15')](function(_0x5f190a){_0x291a30(_0x5f190a);});};AGIVertices[_0x8b13('0x10')][_0x8b13('0x8a')]=function(_0x4d33f3,_0xa97f27,_0x304862){scripts[_0x8b13('0x8a')](_0xa97f27,_0x4d33f3[_0x8b13('0x80')],_0x4d33f3[_0x8b13('0x8b')]||'en-US',this['isConfigured'](_0x4d33f3[_0x8b13('0x8c')])?_0x4d33f3[_0x8b13('0x8c')]:undefined)[_0x8b13('0x13')](function(_0x36f3af){_0x304862(null,_0x36f3af);})[_0x8b13('0x15')](function(_0x3ffd8c){_0x304862(_0x3ffd8c);});};AGIVertices[_0x8b13('0x10')][_0x8b13('0x8d')]=function(_0x45d6d5,_0xfac180){scripts[_0x8b13('0x8d')](_0x45d6d5[_0x8b13('0x8e')],_0x45d6d5[_0x8b13('0x8f')],_0x45d6d5[_0x8b13('0x90')],_0x45d6d5[_0x8b13('0x91')]||_0x8b13('0x92'),_0x45d6d5['text'],_0x45d6d5[_0x8b13('0x93')]||'text')[_0x8b13('0x13')](function(_0x111085){_0xfac180(null,_0x111085);})[_0x8b13('0x15')](function(_0x394932){_0xfac180(_0x394932);});};AGIVertices[_0x8b13('0x10')][_0x8b13('0x94')]=function(_0x7e200e,_0x4c1146){scripts[_0x8b13('0x94')](this['channel'][_0x8b13('0x39')],_0x7e200e[_0x8b13('0x8e')],_0x7e200e['aws_secret_access_key'],_0x7e200e['aws_lex_region'],_0x7e200e[_0x8b13('0x62')],_0x7e200e[_0x8b13('0x95')])[_0x8b13('0x13')](function(_0x220abd){_0x4c1146(null,_0x220abd);})[_0x8b13('0x15')](function(_0x3b131d){_0x4c1146(_0x3b131d);});};AGIVertices['prototype'][_0x8b13('0x96')]=function(_0x429c1d,_0x4ed244,_0x528f3b){scripts['googleASR'](_0x4ed244,_0x429c1d[_0x8b13('0x80')],_0x429c1d[_0x8b13('0x97')]||_0x8b13('0x64'))[_0x8b13('0x13')](function(_0x44b19b){_0x528f3b(null,_0x44b19b);})[_0x8b13('0x15')](function(_0x270b56){_0x528f3b(_0x270b56);});};AGIVertices[_0x8b13('0x10')]['tildeASR']=function(_0x38b8fc,_0x598662,_0x3a7bc9){scripts['tildeASR'](_0x598662,_0x38b8fc[_0x8b13('0x98')],_0x38b8fc[_0x8b13('0x99')],_0x38b8fc['uri'])[_0x8b13('0x13')](function(_0x2fa301){_0x3a7bc9(null,_0x2fa301);})[_0x8b13('0x15')](function(_0x20b397){_0x3a7bc9(_0x20b397);});};AGIVertices[_0x8b13('0x10')]['clear']=function(_0x931432){var _0x7827e6=_[_0x8b13('0x6d')](verticesWithRetry,_0x931432[_0x8b13('0x3b')])?_0x931432:_['clone'](_0x931432);for(var _0x197d38 in _0x7827e6){if(_0x7827e6['hasOwnProperty'](_0x197d38)){if(_0x7827e6[_0x197d38]&&_[_0x8b13('0x9a')](_0x7827e6[_0x197d38])){if(_[_0x8b13('0x6d')](recursiveMapAttributes,_0x197d38)){_0x7827e6[_0x197d38]=this[_0x8b13('0x9b')](_0x7827e6[_0x197d38]);}else{_0x7827e6[_0x197d38]=this['replaceAllVariables'](_0x7827e6[_0x197d38]);}}}}return _0x7827e6;};AGIVertices['prototype']['recursiveNodeIndex']=function(_0x5a9f3e){for(var _0x265f60 in _0x5a9f3e){if(_0x5a9f3e['hasOwnProperty'](_0x265f60)){if(_[_0x8b13('0x9c')](_0x5a9f3e[_0x265f60])){this['recursiveNodeIndex'](_0x5a9f3e[_0x265f60]);}else if(_[_0x8b13('0x9d')](_0x5a9f3e[_0x265f60])){for(var _0x4196d8=0x0;_0x4196d8<_0x5a9f3e[_0x265f60][_0x8b13('0x9e')];_0x4196d8++){this[_0x8b13('0x9f')](_0x5a9f3e[_0x265f60][_0x4196d8]);}}else if(_[_0x8b13('0x9a')](_0x5a9f3e[_0x265f60])){_0x5a9f3e[_0x265f60]=this[_0x8b13('0xa0')](_0x5a9f3e[_0x265f60]);}}}};AGIVertices[_0x8b13('0x10')][_0x8b13('0xa1')]=function(_0x2a5ed3,_0x414daf){for(var _0x2fcc82 in _0x2a5ed3){if(_0x2a5ed3[_0x8b13('0xa2')](_0x2fcc82)){if(_[_0x8b13('0x9c')](_0x2a5ed3[_0x2fcc82])){if(!_['isEmpty'](_0x2a5ed3[_0x2fcc82])){this[_0x8b13('0xa1')](_0x2a5ed3[_0x2fcc82],util['format']('%s.%s',_0x414daf,_0x2fcc82));}}else if(_['isArray'](_0x2a5ed3[_0x2fcc82])){for(var _0x1ae046=0x0;_0x1ae046<_0x2a5ed3[_0x2fcc82][_0x8b13('0x9e')];_0x1ae046++){this[_0x8b13('0xa1')](_0x2a5ed3[_0x2fcc82][_0x1ae046],util[_0x8b13('0x2a')]('%s.%s',_0x414daf,_0x2fcc82+'['+_0x1ae046+']'));}}else{if(!_[_0x8b13('0x4a')](_0x2a5ed3[_0x2fcc82])){this['channel'][_0x8b13('0xa3')](util[_0x8b13('0x2a')]('%s.%s',_0x414daf,_0x2fcc82),_0x2a5ed3[_0x2fcc82]);}}}}};AGIVertices[_0x8b13('0x10')][_0x8b13('0x9b')]=function(_0x25d770){try{var _0x4a52d9=JSON[_0x8b13('0x75')](_0x25d770);this[_0x8b13('0x9f')](_0x4a52d9);return JSON[_0x8b13('0x7b')](_0x4a52d9);}catch(_0xf629c6){return this[_0x8b13('0xa0')](_0x25d770);}};AGIVertices[_0x8b13('0x10')][_0x8b13('0xa0')]=function(_0x4132c9){var _0x1e0f26=_0x4132c9[_0x8b13('0xa4')]('{');for(var _0x2329e2=0x1;_0x2329e2<_0x1e0f26[_0x8b13('0x9e')];_0x2329e2+=0x1){var _0x1fd2cd=_0x1e0f26[_0x2329e2][_0x8b13('0xa4')]('}');if(_0x1fd2cd[_0x8b13('0x9e')]>0x1){_0x4132c9=_0x4132c9[_0x8b13('0xa5')]('{'+_0x1fd2cd[0x0]+'}',this['channel'][_0x8b13('0x11')](_0x1fd2cd[0x0])[_0x8b13('0xa6')]||_0x1fd2cd[0x0]);}}if(_0x1e0f26[_0x8b13('0x9e')]===0x1){return _0x4132c9['toString']();}return this[_0x8b13('0xa0')](_0x4132c9);};AGIVertices['prototype'][_0x8b13('0xa7')]=function(_0x1e104d,_0x75d844){var _0x595a21=this[_0x8b13('0x38')][_0x8b13('0x11')](_0x1e104d);if(_0x595a21[_0x8b13('0xa8')]===-0x1){return _0x595a21;}logger['info'](util[_0x8b13('0x2a')](_0x8b13('0xa9'),_0x75d844,_0x595a21['extra']));return this[_0x8b13('0x38')][_0x8b13('0xa3')](_0x75d844,_0x595a21[_0x8b13('0xa6')]);};AGIVertices[_0x8b13('0x10')]['isConfigured']=function(_0xfb71ff){return _0xfb71ff&&_0xfb71ff!=='0'&&_0xfb71ff!=='-1'&&_0xfb71ff!=='';};AGIVertices[_0x8b13('0x10')][_0x8b13('0xaa')]=function(_0x588987){this[_0x8b13('0x37')][_0x8b13('0x78')](this,_0x588987,'-');_0x588987['retry']=_0x588987[_0x8b13('0xaa')];return{'code':0xc8,'result':'-'};};AGIVertices['prototype'][_0x8b13('0xab')]=function(_0x178d6b){logger['info'](util['format'](_0x8b13('0xac'),_0x178d6b[_0x8b13('0x3a')]));if(!this[_0x8b13('0xad')](_0x178d6b[_0x8b13('0x62')])){return this[_0x8b13('0x38')][_0x8b13('0xae')](_0x8b13('0xaf'));}var _0x490a0='\x22'+_0x178d6b[_0x8b13('0x62')]+'\x22';if(this[_0x8b13('0xad')](_0x178d6b[_0x8b13('0x7e')])){_0x490a0+=','+_0x178d6b['options'];}var _0x305103=this[_0x8b13('0x38')]['exec'](_0x8b13('0xb0'),_0x490a0);if(_0x305103['result']===-0x1){return _0x305103;}return this[_0x8b13('0x38')][_0x8b13('0xae')](util[_0x8b13('0x2a')]('Executed\x20command\x20MRCPSynth\x20%s',_0x490a0));};AGIVertices[_0x8b13('0x10')][_0x8b13('0xb1')]=function(_0xbd12b2){logger[_0x8b13('0x32')](util[_0x8b13('0x2a')]('Enter\x20in\x20MRCPRecog\x20(%s)\x20block',_0xbd12b2[_0x8b13('0x3a')]));if(!this[_0x8b13('0xad')](_0xbd12b2[_0x8b13('0xb2')])){return this[_0x8b13('0x38')][_0x8b13('0xae')](_0x8b13('0xb3'));}var _0x57a094=_0xbd12b2[_0x8b13('0xb2')];if(this[_0x8b13('0xad')](_0xbd12b2[_0x8b13('0x7e')])){_0x57a094+=','+_0xbd12b2[_0x8b13('0x7e')];}var _0x4e3bac=this[_0x8b13('0x38')]['exec']('MRCPRecog',_0x57a094);if(_0x4e3bac[_0x8b13('0xa8')]===-0x1){return _0x4e3bac;}var _0xd45634=this['getAndSetVariable'](_0x8b13('0xb4'),'MRCP_RECOG_CONFIDENCE');if(_0xd45634[_0x8b13('0xa8')]===-0x1){return _0xd45634;}var _0x5ac718=this[_0x8b13('0xa7')](_0x8b13('0xb5'),_0x8b13('0xb6'));if(_0x5ac718[_0x8b13('0xa8')]===-0x1){return _0x5ac718;}var _0x284211=this[_0x8b13('0xa7')](_0x8b13('0xb7'),_0x8b13('0xb8'));if(_0x284211[_0x8b13('0xa8')]===-0x1){return _0x284211;}return this['channel'][_0x8b13('0xae')](util[_0x8b13('0x2a')]('Executed\x20command\x20MRCPRecog\x20%s',_0x57a094));};AGIVertices[_0x8b13('0x10')][_0x8b13('0x8')]=function(_0x95cfa6){logger['info'](util[_0x8b13('0x2a')](_0x8b13('0xb9'),_0x95cfa6[_0x8b13('0x3a')]));return this[_0x8b13('0x38')]['agi']([_0x95cfa6[_0x8b13('0xba')],_0x95cfa6[_0x8b13('0xbb')]]);};AGIVertices[_0x8b13('0x10')][_0x8b13('0xbc')]=function(_0x2a44a7){logger[_0x8b13('0x32')](util[_0x8b13('0x2a')](_0x8b13('0xbd'),_0x2a44a7[_0x8b13('0x3a')]));if(this[_0x8b13('0xad')](_0x2a44a7[_0x8b13('0x6b')])){logger['info'](util[_0x8b13('0x2a')](_0x8b13('0xbe'),_0x2a44a7['timeout']));var _0x191ddf=this['channel'][_0x8b13('0xbf')](_0x2a44a7[_0x8b13('0x6b')]);if(_0x191ddf[_0x8b13('0xa8')]===-0x1){return _0x191ddf;}}return this[_0x8b13('0x38')][_0x8b13('0xbc')]();};AGIVertices[_0x8b13('0x10')][_0x8b13('0x4e')]=function(_0x17af45){logger[_0x8b13('0x32')](util[_0x8b13('0x2a')](_0x8b13('0xc0'),_0x17af45[_0x8b13('0x3a')]));if(!this[_0x8b13('0xad')](_0x17af45[_0x8b13('0x4c')])){return this[_0x8b13('0x38')][_0x8b13('0x2e')](_0x17af45,_0x8b13('0xc1'));}_0x17af45[_0x8b13('0x4d')]=moment();if(this[_0x8b13('0xad')](_0x17af45[_0x8b13('0xc2')])){_0x17af45['scheduledAt']=moment()[_0x8b13('0xc3')](_0x17af45['delay'],_0x8b13('0xc4'));}if(!this['isConfigured'](_0x17af45[_0x8b13('0xc5')])){_0x17af45['callback_priority']=0x2;}this[_0x8b13('0x46')]['sync'](this,_0x17af45);return this[_0x8b13('0x38')][_0x8b13('0xae')](util[_0x8b13('0x2a')]('CALLBACK\x20added\x20phone:\x20%s\x20on\x20list:\x20%s\x20at\x20%s',_0x17af45[_0x8b13('0x4b')],_0x17af45[_0x8b13('0x4c')],_0x17af45[_0x8b13('0x4d')]));};AGIVertices[_0x8b13('0x10')]['custom_app']=function(_0x3b795d){logger[_0x8b13('0x32')](util[_0x8b13('0x2a')](_0x8b13('0xc6'),_0x3b795d[_0x8b13('0x3a')]));var _0x5f1130=this[_0x8b13('0x38')][_0x8b13('0x5c')](_0x3b795d[_0x8b13('0xc7')],_0x3b795d[_0x8b13('0x7e')]);if(_0x5f1130[_0x8b13('0xa8')]===-0x1){return _0x5f1130;}return this['channel']['noop'](util[_0x8b13('0x2a')]('Executed\x20command\x20%s\x20%s',_0x3b795d[_0x8b13('0xc7')],_0x3b795d[_0x8b13('0x7e')]));};AGIVertices[_0x8b13('0x10')][_0x8b13('0xc8')]=function(_0x2154a1){logger[_0x8b13('0x32')](util[_0x8b13('0x2a')](_0x8b13('0xc9'),_0x2154a1[_0x8b13('0x3a')]));if(!this[_0x8b13('0xad')](_0x2154a1[_0x8b13('0x62')])){return this[_0x8b13('0x38')]['noop']('no\x20text\x20configured');}var _0x537246='\x22'+_0x2154a1['text']+'\x22';if(this['isConfigured'](_0x2154a1[_0x8b13('0x7e')])){_0x537246+=','+_0x2154a1[_0x8b13('0x7e')];}var _0x1369d6=this[_0x8b13('0x38')][_0x8b13('0x5c')](_0x8b13('0xb0'),_0x537246);if(_0x1369d6[_0x8b13('0xa8')]===-0x1){return _0x1369d6;}return this[_0x8b13('0x38')][_0x8b13('0xae')](util[_0x8b13('0x2a')]('Executed\x20command\x20MRCPSynth\x20%s',_0x537246));};AGIVertices[_0x8b13('0x10')][_0x8b13('0xca')]=function(_0x41cd1a){logger['info'](util['format'](_0x8b13('0xcb'),_0x41cd1a[_0x8b13('0x3a')]));if(!this['isConfigured'](_0x41cd1a[_0x8b13('0x62')])){return this[_0x8b13('0x38')]['noop'](_0x8b13('0xaf'));}var _0x112d5c='\x22'+_0x41cd1a[_0x8b13('0x62')]+'\x22';if(this[_0x8b13('0xad')](_0x41cd1a[_0x8b13('0x7e')])){_0x112d5c+=','+_0x41cd1a['options'];}var _0x57d632=this[_0x8b13('0x38')]['exec'](_0x8b13('0xb0'),_0x112d5c);if(_0x57d632[_0x8b13('0xa8')]===-0x1){return _0x57d632;}return this[_0x8b13('0x38')]['noop'](util[_0x8b13('0x2a')](_0x8b13('0xcc'),_0x112d5c));};AGIVertices[_0x8b13('0x10')][_0x8b13('0xcd')]=function(_0x4c8718){logger[_0x8b13('0x32')](util['format'](_0x8b13('0xce'),_0x4c8718['label']));if(!this[_0x8b13('0xad')](_0x4c8718[_0x8b13('0xb2')])){return this[_0x8b13('0x38')][_0x8b13('0xae')](_0x8b13('0xb3'));}var _0x3858b3=_0x4c8718[_0x8b13('0xb2')];if(this[_0x8b13('0xad')](_0x4c8718[_0x8b13('0x7e')])){_0x3858b3+=','+_0x4c8718[_0x8b13('0x7e')];}var _0x5e5f63=this['channel'][_0x8b13('0x5c')](_0x8b13('0xcf'),_0x3858b3);if(_0x5e5f63['result']===-0x1){return _0x5e5f63;}var _0x3dbd02=this[_0x8b13('0xa7')](_0x8b13('0xb4'),_0x8b13('0xd0'));if(_0x3dbd02[_0x8b13('0xa8')]===-0x1){return _0x3dbd02;}var _0x16bc2f=this[_0x8b13('0xa7')](_0x8b13('0xb5'),_0x8b13('0xd1'));if(_0x16bc2f[_0x8b13('0xa8')]===-0x1){return _0x16bc2f;}var _0x56a419=this[_0x8b13('0xa7')]('RECOG_INSTANCE()',_0x8b13('0xd2'));if(_0x56a419['result']===-0x1){return _0x56a419;}return this[_0x8b13('0x38')]['noop'](util[_0x8b13('0x2a')]('Executed\x20command\x20MRCPRecog\x20%s',_0x3858b3));};AGIVertices[_0x8b13('0x10')][_0x8b13('0xd3')]=function(_0x6de05){logger[_0x8b13('0x32')](util[_0x8b13('0x2a')](_0x8b13('0xd4'),_0x6de05[_0x8b13('0x3a')]));if(!this[_0x8b13('0xad')](_0x6de05[_0x8b13('0xb2')])){return this[_0x8b13('0x38')][_0x8b13('0xae')]('no\x20grammar\x20configured');}var _0x410c8a=_0x6de05[_0x8b13('0xb2')];if(this[_0x8b13('0xad')](_0x6de05[_0x8b13('0x7e')])){_0x410c8a+=','+_0x6de05['options'];}var _0x50ba6e=this[_0x8b13('0x38')][_0x8b13('0x5c')](_0x8b13('0xcf'),_0x410c8a);if(_0x50ba6e[_0x8b13('0xa8')]===-0x1){return _0x50ba6e;}var _0x1e8478=this['getAndSetVariable'](_0x8b13('0xb4'),_0x8b13('0xd5'));if(_0x1e8478[_0x8b13('0xa8')]===-0x1){return _0x1e8478;}var _0x2a65f4=this[_0x8b13('0xa7')](_0x8b13('0xb5'),_0x8b13('0xd6'));if(_0x2a65f4[_0x8b13('0xa8')]===-0x1){return _0x2a65f4;}var _0x1dc063=this[_0x8b13('0xa7')]('RECOG_INSTANCE()',_0x8b13('0xd7'));if(_0x1dc063[_0x8b13('0xa8')]===-0x1){return _0x1dc063;}return this['channel'][_0x8b13('0xae')](util['format'](_0x8b13('0xd8'),_0x410c8a));};AGIVertices[_0x8b13('0x10')][_0x8b13('0xd9')]=function(_0x13d00d){logger['info'](util[_0x8b13('0x2a')](_0x8b13('0xda'),_0x13d00d['label']));if(!this[_0x8b13('0xad')](_0x13d00d['odbc_id'])){return this[_0x8b13('0x38')][_0x8b13('0x2e')](_0x13d00d,_0x8b13('0xdb'));}var _0x258df1=this[_0x8b13('0x18')][_0x8b13('0x78')](this,_0x13d00d[_0x8b13('0xdc')]);if(!_0x258df1){return this['channel'][_0x8b13('0x2e')](_0x13d00d,_0x8b13('0xdd'));}if(!this[_0x8b13('0xad')](_0x13d00d[_0x8b13('0x30')])){return this['channel']['error'](_0x13d00d,'no\x20query\x20configured');}var _0x1e02cf=_0x13d00d['query']['replace'](/(\r\n|\n|\r)/gm,'\x20');this[_0x8b13('0x38')][_0x8b13('0xae')](util[_0x8b13('0x2a')](_0x8b13('0xde'),_0x1e02cf));var _0xaf6322=this[_0x8b13('0x2c')][_0x8b13('0x78')](this,_0x258df1,_0x1e02cf);this['createSquareDetailsReport']['sync'](this,_0x13d00d,_0x1e02cf);if(!this[_0x8b13('0xad')](_0x13d00d['variable_id'])){return this[_0x8b13('0x38')][_0x8b13('0xae')](_0x8b13('0xdf'));}var _0x5a9644=this[_0x8b13('0x11')]['sync'](this,_0x13d00d[_0x8b13('0xe0')]);if(!_0x5a9644){return this[_0x8b13('0x38')][_0x8b13('0x2e')](_0x13d00d,'no\x20variable\x20found');}var _0x2ed842=this;_0xaf6322[_0x8b13('0xe1')](function(_0x34cc89,_0x3cc463){Object[_0x8b13('0xe2')](_0x34cc89)[_0x8b13('0xe1')](function(_0x28c061){_0x2ed842['channel']['setVariable'](util['format'](_0x8b13('0xe3'),_0x5a9644,_0x3cc463,_0x28c061),_0x34cc89[_0x28c061]);});});this[_0x8b13('0x38')]['setVariable'](util[_0x8b13('0x2a')]('%s_ROWS_COUNT',_0x5a9644),_0xaf6322[_0x8b13('0x9e')]);return this[_0x8b13('0x38')]['noop'](util[_0x8b13('0x2a')](_0x8b13('0xe4'),_0x5a9644));};AGIVertices[_0x8b13('0x10')][_0x8b13('0xe5')]=function(_0x450ed2){logger['debug'](util['format'](_0x8b13('0xe6'),_0x450ed2[_0x8b13('0x3a')]));if(!this[_0x8b13('0xad')](_0x450ed2[_0x8b13('0xe7')])){return this[_0x8b13('0x38')][_0x8b13('0x2e')](_0x450ed2,_0x8b13('0xe8'));}var _0x29e355=this['getUser'][_0x8b13('0x78')](this,_0x450ed2['sip_id']);if(!_0x29e355){return this[_0x8b13('0x38')][_0x8b13('0x2e')](_0x450ed2,_0x8b13('0xe9'));}var _0x3537aa=this[_0x8b13('0x38')][_0x8b13('0x5c')](_0x8b13('0xea'),[util[_0x8b13('0x2a')](_0x8b13('0xeb'),_0x29e355),_0x450ed2[_0x8b13('0x6b')],_0x450ed2[_0x8b13('0xec')],_0x450ed2[_0x8b13('0x6a')]]);if(_0x3537aa[_0x8b13('0xa8')]===-0x1){return _0x3537aa;}return this[_0x8b13('0x38')]['noop'](util[_0x8b13('0x2a')](_0x8b13('0xed'),_0x8b13('0xea')));};AGIVertices[_0x8b13('0x10')][_0x8b13('0xee')]=function(_0xb72e0){logger[_0x8b13('0x32')](util[_0x8b13('0x2a')](_0x8b13('0xef'),_0xb72e0[_0x8b13('0x3a')]));if(!this[_0x8b13('0xad')](_0xb72e0[_0x8b13('0x80')])){return this[_0x8b13('0x38')]['noop']('no\x20key\x20configured');}if(!this[_0x8b13('0xad')](_0xb72e0[_0x8b13('0x62')])){return this['channel'][_0x8b13('0xae')](_0x8b13('0xaf'));}this[_0x8b13('0x38')][_0x8b13('0xf0')]=!![];this['createSquareDetailsReport'](_0xb72e0);this['createSquareMessage'](_0xb72e0[_0x8b13('0x62')],'in','','');this[_0x8b13('0x38')][_0x8b13('0xae')](util[_0x8b13('0x2a')](_0x8b13('0xf1'),_0xb72e0[_0x8b13('0x62')]));var _0x5b4874=this[_0x8b13('0x7f')][_0x8b13('0x78')](this,_0xb72e0);if(_0x5b4874){for(var _0x562845 in _0x5b4874){if(_0x5b4874['hasOwnProperty'](_0x562845)){this[_0x8b13('0x38')][_0x8b13('0xa3')](util[_0x8b13('0x2a')]('DIALOGFLOW_%s',_0x562845[_0x8b13('0x71')]()),_0x5b4874[_0x562845]);}}this['createSquareMessage'](_0x5b4874['speech'],_0x8b13('0xf2'),_0x8b13('0xee'),'');return this['channel']['noop'](util[_0x8b13('0x2a')]('Dialogflow\x20Result\x20%s',_0x5b4874[_0x8b13('0xf3')]));}return this[_0x8b13('0x38')][_0x8b13('0x2e')](_0xb72e0,_0x8b13('0xf4'));};AGIVertices[_0x8b13('0x10')]['dialogflowV2']=function(_0x4902e1){logger[_0x8b13('0x32')](util['format']('Enter\x20in\x20DIALOGFLOW\x20V2\x20(%s)\x20block',_0x4902e1[_0x8b13('0x3a')]));if(!this[_0x8b13('0xad')](_0x4902e1[_0x8b13('0xf5')])){return this[_0x8b13('0x38')][_0x8b13('0xae')](_0x8b13('0xf6'));}if(!this['isConfigured'](_0x4902e1[_0x8b13('0x83')])){return this[_0x8b13('0x38')][_0x8b13('0xae')](_0x8b13('0xf7'));}if(!this['isConfigured'](_0x4902e1['private_key'])){return this[_0x8b13('0x38')][_0x8b13('0xae')](_0x8b13('0xf8'));}if(!this[_0x8b13('0xad')](_0x4902e1[_0x8b13('0x85')])){return this['channel'][_0x8b13('0xae')]('no\x20anguage\x20configured');}if(!this[_0x8b13('0xad')](_0x4902e1[_0x8b13('0x62')])){return this[_0x8b13('0x38')]['noop'](_0x8b13('0xaf'));}this[_0x8b13('0x38')][_0x8b13('0xf0')]=!![];this['createSquareDetailsReport'](_0x4902e1);this[_0x8b13('0x45')](_0x4902e1[_0x8b13('0x62')],'in','','');this[_0x8b13('0x38')][_0x8b13('0xae')](util[_0x8b13('0x2a')](_0x8b13('0xf9'),_0x4902e1['text']));var _0x4262ee=this[_0x8b13('0x82')]['sync'](this,_0x4902e1);if(_0x4262ee){for(var _0x504950 in _0x4262ee){if(_0x4262ee['hasOwnProperty'](_0x504950)){if(_0x504950!==_0x8b13('0xfa')){this['channel'][_0x8b13('0xa3')](util[_0x8b13('0x2a')](_0x8b13('0xfb'),_0x504950['toUpperCase']()),_0x4262ee[_0x504950]);}}}this['createSquareMessage'](_0x4262ee['speech'],_0x8b13('0xf2'),_0x8b13('0xfc'),_0x4262ee[_0x8b13('0xfa')]);return this['channel'][_0x8b13('0xae')](util['format'](_0x8b13('0xfd'),_0x4262ee['speech']));}return this['channel'][_0x8b13('0x2e')](_0x4902e1,_0x8b13('0xfe'));};AGIVertices[_0x8b13('0x10')][_0x8b13('0xff')]=function(_0x5b033b){logger['info'](util[_0x8b13('0x2a')](_0x8b13('0x100'),_0x5b033b['label']));if(!this['isConfigured'](_0x5b033b[_0x8b13('0x101')])){return this[_0x8b13('0x38')][_0x8b13('0xae')](_0x8b13('0x102'));}if(!this[_0x8b13('0xad')](_0x5b033b[_0x8b13('0x103')])){return this['channel'][_0x8b13('0xae')](_0x8b13('0x104'));}if(!this[_0x8b13('0xad')](_0x5b033b[_0x8b13('0x105')])){return this['channel']['noop'](_0x8b13('0x106'));}if(!this[_0x8b13('0xad')](_0x5b033b[_0x8b13('0x107')])){return this[_0x8b13('0x38')]['noop'](_0x8b13('0xaf'));}this[_0x8b13('0x38')]['bot']=!![];this[_0x8b13('0x37')](_0x5b033b);this['createSquareMessage'](_0x5b033b[_0x8b13('0x62')],'in','','');this[_0x8b13('0x38')][_0x8b13('0xae')](util[_0x8b13('0x2a')](_0x8b13('0x108'),_0x5b033b[_0x8b13('0x62')]));var _0x151268=this['sestekNDA'][_0x8b13('0x78')](this,_0x5b033b);if(_0x151268){for(var _0x5ae351 in _0x151268){if(_0x151268['hasOwnProperty'](_0x5ae351)){this[_0x8b13('0x38')][_0x8b13('0xa3')](util[_0x8b13('0x2a')](_0x8b13('0x109'),_0x5ae351['toUpperCase']()),_0x151268[_0x5ae351]);}}this[_0x8b13('0x45')](_0x151268[_0x8b13('0xf3')],_0x8b13('0xf2'),'sesteknda','');if(_0x151268[_0x8b13('0x10a')]){this[_0x8b13('0x38')][_0x8b13('0xae')](util[_0x8b13('0x2a')](_0x8b13('0x10b'),_0x151268[_0x8b13('0x10a')]));var _0x3e832f=this[_0x8b13('0x38')][_0x8b13('0x10c')](_0x151268['audiofile']);try{fs[_0x8b13('0x10d')](_0x151268[_0x8b13('0x10a')]+_0x8b13('0x10e'));}catch(_0x104e89){logger['error'](_0x104e89);}return _0x3e832f;}else{return this['channel'][_0x8b13('0xae')](util[_0x8b13('0x2a')](_0x8b13('0x10f'),_0x151268[_0x8b13('0xf3')]));}}return this[_0x8b13('0x38')]['error'](_0x5b033b,_0x8b13('0x110'));};AGIVertices[_0x8b13('0x10')][_0x8b13('0x111')]=function(_0x49a92f){logger['info'](util['format']('Enter\x20in\x20END\x20(%s)\x20block',_0x49a92f[_0x8b13('0x3a')]));return this[_0x8b13('0x38')]['noop'](_0x8b13('0x111'));};AGIVertices[_0x8b13('0x10')][_0x8b13('0x112')]=function(_0x935fa2){logger[_0x8b13('0x32')](util['format'](_0x8b13('0x113'),_0x935fa2['label']));var _0x54f121='';if(_0x935fa2[_0x8b13('0x114')]){if(!this[_0x8b13('0xad')](_0x935fa2[_0x8b13('0x114')])){return this[_0x8b13('0x38')]['error'](_0x935fa2,_0x8b13('0x115'));}else{var _0x123cba=parseInt(_0x935fa2['trunk_id'],0xa);if(isNaN(_0x123cba)){_0x54f121=_0x935fa2[_0x8b13('0x114')];}else{_0x54f121=this[_0x8b13('0x1c')]['sync'](this,_0x935fa2[_0x8b13('0x114')]);if(!_0x54f121){return this[_0x8b13('0x38')]['error'](_0x935fa2,_0x8b13('0x116'));}}}}else if(_0x935fa2[_0x8b13('0x117')]){_0x54f121=_0x935fa2[_0x8b13('0x117')];}else{return this[_0x8b13('0x38')]['error'](_0x935fa2,_0x8b13('0x115'));}var _0x582b64=this[_0x8b13('0x38')][_0x8b13('0x5c')](_0x8b13('0xea'),[util[_0x8b13('0x2a')](_0x8b13('0x118'),_0x54f121,_0x935fa2[_0x8b13('0x4b')]),_0x935fa2[_0x8b13('0x6b')],_0x935fa2[_0x8b13('0xec')],_0x935fa2[_0x8b13('0x6a')]]);if(_0x582b64[_0x8b13('0xa8')]===-0x1){return _0x582b64;}return this[_0x8b13('0x38')][_0x8b13('0xae')](util[_0x8b13('0x2a')]('Executed\x20command\x20%s',_0x8b13('0xea')));};AGIVertices[_0x8b13('0x10')][_0x8b13('0x119')]=function(_0xf36af8){logger[_0x8b13('0x32')](util[_0x8b13('0x2a')](_0x8b13('0x11a'),_0xf36af8['label']));return this['channel'][_0x8b13('0xae')](_0x8b13('0x119'));};AGIVertices[_0x8b13('0x10')][_0x8b13('0xd')]=function(_0x4236d5){logger[_0x8b13('0x32')](util[_0x8b13('0x2a')](_0x8b13('0x11b'),_0x4236d5['label']));if(_0x4236d5['retry']===0x0){return this['maxRetry'](_0x4236d5);}_0x4236d5[_0x8b13('0x11c')]-=0x1;if(!this[_0x8b13('0xad')](_0x4236d5[_0x8b13('0x11d')])){return this[_0x8b13('0x38')][_0x8b13('0x2e')](_0x4236d5,'no\x20file\x20audio\x20selected');}var _0x1981be=this[_0x8b13('0x1e')][_0x8b13('0x78')](this,_0x4236d5['file_id']);if(!_0x1981be){return this[_0x8b13('0x38')][_0x8b13('0x2e')](_0x4236d5,_0x8b13('0x11e'));}if(!this[_0x8b13('0xad')](_0x4236d5[_0x8b13('0xe0')])){return this['channel']['error']('no\x20variable\x20selected\x20for\x20the\x20result');}var _0x3c10b1=this[_0x8b13('0x38')][_0x8b13('0x11f')](_0x1981be,_0x4236d5[_0x8b13('0x120')],_0x4236d5[_0x8b13('0x121')]);var _0x3b08bb=_0x3c10b1['result']?_0x3c10b1[_0x8b13('0xa8')][_0x8b13('0x50')]():'';logger['info']('test',JSON['stringify'](_0x3c10b1));if(_0x3c10b1[_0x8b13('0xa8')]===-0x1){this['createSquareDetailsReport']['sync'](this,_0x4236d5,_0x3b08bb);return _0x3c10b1;}else if(_0x3c10b1[_0x8b13('0xa6')]==='timeout'){_0x3c10b1[_0x8b13('0xa8')]=_0x3b08bb[_0x8b13('0x9e')]>=parseInt(_0x4236d5[_0x8b13('0x122')])?'x':'i';}else{_0x3c10b1['result']=_0x3b08bb['length']>=parseInt(_0x4236d5[_0x8b13('0x122')])&&_0x3b08bb[_0x8b13('0x9e')]<=parseInt(_0x4236d5['maxdigit'])?'x':'i';}var _0x18e2b0=this['getVariable'][_0x8b13('0x78')](this,_0x4236d5[_0x8b13('0xe0')]);if(!_0x18e2b0){return this['channel'][_0x8b13('0x2e')](_0x4236d5,'no\x20variable\x20found');}this[_0x8b13('0x38')][_0x8b13('0xa3')](_0x18e2b0,_0x3b08bb);if(this[_0x8b13('0xad')](_0x4236d5['hiddendigitsnum'])){var _0x7f7f53=parseInt(_0x4236d5[_0x8b13('0x123')],0xa);var _0x2b15ca=rs[_0x8b13('0x124')]({'charset':'*','length':_0x7f7f53});var _0xe550ff=_0x3b08bb[_0x8b13('0x9e')];if(_0xe550ff>0x0){if(_0xe550ff>_0x7f7f53){this[_0x8b13('0x37')]['sync'](this,_0x4236d5,_0x4236d5[_0x8b13('0x125')]===_0x8b13('0x126')?_0x2b15ca+_0x3b08bb[_0x8b13('0x127')](_0x7f7f53):_0x3b08bb[_0x8b13('0x127')](0x0,_0xe550ff-_0x7f7f53)+_0x2b15ca);}else{this['createSquareDetailsReport'][_0x8b13('0x78')](this,_0x4236d5,rs['generate']({'charset':'*','length':_0xe550ff}));}}else{this[_0x8b13('0x37')][_0x8b13('0x78')](this,_0x4236d5,'');}}else{this['createSquareDetailsReport'][_0x8b13('0x78')](this,_0x4236d5,_0x3b08bb);}return _0x3c10b1;};AGIVertices[_0x8b13('0x10')]['getsecretdigits']=function(_0x3f60f9){logger[_0x8b13('0x32')](util['format']('Enter\x20in\x20GETSECRETDIGITS\x20(%s)\x20block',_0x3f60f9[_0x8b13('0x3a')]));return this[_0x8b13('0xd')](_0x3f60f9);};AGIVertices[_0x8b13('0x10')][_0x8b13('0x128')]=function(_0x341513){logger['info'](util[_0x8b13('0x2a')](_0x8b13('0x129'),_0x341513[_0x8b13('0x3a')]));this[_0x8b13('0x37')]['sync'](this,_0x341513,_0x341513[_0x8b13('0x12a')]);return this['channel']['noop'](util[_0x8b13('0x2a')](_0x8b13('0x12b'),_0x341513[_0x8b13('0x12a')]));};AGIVertices['prototype']['awspolly']=function(_0xf3a99b){logger[_0x8b13('0x32')](util[_0x8b13('0x2a')](_0x8b13('0x12c'),_0xf3a99b['label']));if(!this['isConfigured'](_0xf3a99b[_0x8b13('0x8e')])||!this[_0x8b13('0xad')](_0xf3a99b[_0x8b13('0x8f')])){return this[_0x8b13('0x38')][_0x8b13('0xae')](_0x8b13('0x12d'));}if(!this['isConfigured'](_0xf3a99b[_0x8b13('0x62')])){return this[_0x8b13('0x38')]['noop'](_0x8b13('0xaf'));}this[_0x8b13('0x38')][_0x8b13('0xae')](util[_0x8b13('0x2a')](_0x8b13('0x12e'),_0xf3a99b['text']));var _0x43f7ff=this[_0x8b13('0x8d')][_0x8b13('0x78')](this,_0xf3a99b);if(_0x43f7ff){this['channel'][_0x8b13('0xae')](util[_0x8b13('0x2a')]('aws\x20Polly\x20%s\x20file\x20created',_0x43f7ff));var _0x19f701=this[_0x8b13('0x38')][_0x8b13('0x10c')](_0x43f7ff);try{fs['unlink'](_0x43f7ff+'.wav');}catch(_0x389c47){logger['error'](_0x389c47);}return _0x19f701;}return this[_0x8b13('0x38')][_0x8b13('0x2e')](_0xf3a99b,_0x8b13('0x12f'));};AGIVertices['prototype'][_0x8b13('0x130')]=function(_0x58ce30){logger['info'](util[_0x8b13('0x2a')](_0x8b13('0x131'),_0x58ce30[_0x8b13('0x3a')]));if(!this[_0x8b13('0xad')](_0x58ce30[_0x8b13('0x8e')])||!this[_0x8b13('0xad')](_0x58ce30['aws_secret_access_key'])){return this[_0x8b13('0x38')][_0x8b13('0xae')](_0x8b13('0x12d'));}if(!this[_0x8b13('0xad')](_0x58ce30['aws_bot_name'])){return this[_0x8b13('0x38')][_0x8b13('0xae')](_0x8b13('0x132'));}if(!this[_0x8b13('0xad')](_0x58ce30[_0x8b13('0x62')])){return this[_0x8b13('0x38')][_0x8b13('0xae')]('no\x20text\x20configured');}this[_0x8b13('0x38')][_0x8b13('0xf0')]=!![];this[_0x8b13('0x37')](_0x58ce30);this[_0x8b13('0x45')](_0x58ce30[_0x8b13('0x62')],'in','','');this[_0x8b13('0x38')][_0x8b13('0xae')](util[_0x8b13('0x2a')]('Trying\x20Amazon\x20Lex:\x20%s',_0x58ce30[_0x8b13('0x62')]));var _0x5886ee=this[_0x8b13('0x94')][_0x8b13('0x78')](this,_0x58ce30);if(_0x5886ee){for(var _0x1f0508 in _0x5886ee){if(_0x5886ee[_0x8b13('0xa2')](_0x1f0508)&&_[_0x8b13('0x9a')](_0x5886ee[_0x1f0508])){this[_0x8b13('0x38')]['setVariable'](util[_0x8b13('0x2a')](_0x8b13('0x133'),_0x1f0508['toUpperCase']()),_0x5886ee[_0x1f0508]);}}if(_['isNil'](_0x5886ee['message'])){return this['channel'][_0x8b13('0xae')](_0x8b13('0x134'));}else{this[_0x8b13('0x45')](_0x5886ee[_0x8b13('0x7d')],_0x8b13('0xf2'),_0x8b13('0x135'),'');return this['channel']['noop'](util[_0x8b13('0x2a')](_0x8b13('0x136'),_0x5886ee[_0x8b13('0x7d')]));}}return this[_0x8b13('0x38')][_0x8b13('0x2e')](_0x58ce30,_0x8b13('0x137'));};AGIVertices[_0x8b13('0x10')]['googleasr']=function(_0xa42b85){logger[_0x8b13('0x32')](util['format']('Enter\x20in\x20GOOGLEASR\x20(%s)\x20block\x20%s',_0xa42b85['label'],_0xa42b85[_0x8b13('0x6b')]));if(!this['isConfigured'](_0xa42b85[_0x8b13('0x80')])){return this[_0x8b13('0x38')][_0x8b13('0xae')](_0x8b13('0x138'));}var _0x17df3f=_0x8b13('0x139');var _0x68adf4=util[_0x8b13('0x2a')](_0x8b13('0x13a'),FILES_PATH,rs['generate'](0x4));var _0x2263f8=util['format']('%s.%s',_0x68adf4,_0x17df3f);var _0x326dd7=!![];if(_0xa42b85[_0x8b13('0x13b')]==='NOBEEP'){_0x326dd7=![];}var _0x1f541e=this[_0x8b13('0x38')][_0x8b13('0x13c')](_0x68adf4,_0x17df3f,_0xa42b85[_0x8b13('0x13d')],_0xa42b85[_0x8b13('0x6b')],undefined,_0x326dd7);if(_0x1f541e[_0x8b13('0xa8')]!==-0x1){this[_0x8b13('0x38')][_0x8b13('0xae')](util[_0x8b13('0x2a')](_0x8b13('0x13e'),_0x2263f8));var _0x1ae199=this[_0x8b13('0x96')][_0x8b13('0x78')](this,_0xa42b85,_0x2263f8);if(_0x1ae199){for(var _0x142be0 in _0x1ae199){if(_0x1ae199[_0x8b13('0xa2')](_0x142be0)){this[_0x8b13('0x38')][_0x8b13('0xa3')](util[_0x8b13('0x2a')](_0x8b13('0x13f'),_0x142be0['toUpperCase']()),_0x1ae199[_0x142be0]);}}return this[_0x8b13('0x38')][_0x8b13('0xae')](util['format'](_0x8b13('0x140'),JSON['stringify'](_0x1ae199)));}}return _0x1f541e;};AGIVertices[_0x8b13('0x10')][_0x8b13('0x141')]=function(_0x402c06){logger[_0x8b13('0x32')](util[_0x8b13('0x2a')](_0x8b13('0x142'),_0x402c06[_0x8b13('0x3a')]));if(!this[_0x8b13('0xad')](_0x402c06[_0x8b13('0x98')])){return this[_0x8b13('0x38')][_0x8b13('0xae')](_0x8b13('0x143'));}if(!this[_0x8b13('0xad')](_0x402c06[_0x8b13('0x99')])){return this[_0x8b13('0x38')][_0x8b13('0xae')](_0x8b13('0x144'));}var _0x3349ac='wav';var _0x3c60ac=util[_0x8b13('0x2a')](_0x8b13('0x13a'),FILES_PATH,rs[_0x8b13('0x124')](0x4));var _0x20dd8f=util['format'](_0x8b13('0x145'),_0x3c60ac,_0x3349ac);var _0x19d65c=!![];if(_0x402c06[_0x8b13('0x13b')]===_0x8b13('0x146')){_0x19d65c=![];}var _0x208af8=this[_0x8b13('0x38')]['recordFile'](_0x3c60ac,_0x3349ac,_0x402c06[_0x8b13('0x13d')],_0x402c06[_0x8b13('0x6b')],undefined,_0x19d65c);if(_0x208af8[_0x8b13('0xa8')]!==-0x1){this[_0x8b13('0x38')][_0x8b13('0xae')](util['format'](_0x8b13('0x147'),_0x20dd8f));var _0x4ec843=this[_0x8b13('0x148')][_0x8b13('0x78')](this,_0x402c06,_0x20dd8f);if(_0x4ec843){for(var _0x4e9ce9 in _0x4ec843){if(_0x4ec843[_0x8b13('0xa2')](_0x4e9ce9)){this[_0x8b13('0x38')][_0x8b13('0xa3')](util[_0x8b13('0x2a')](_0x8b13('0x149'),_0x4e9ce9[_0x8b13('0x71')]()),_0x4ec843[_0x4e9ce9]);}}return this[_0x8b13('0x38')][_0x8b13('0xae')](util[_0x8b13('0x2a')]('TildeASR\x20Result\x20%s',JSON[_0x8b13('0x7b')](_0x4ec843)));}}return _0x208af8;};AGIVertices[_0x8b13('0x10')][_0x8b13('0x14a')]=function(_0x29503b){logger[_0x8b13('0x32')](util[_0x8b13('0x2a')](_0x8b13('0x14b'),_0x29503b[_0x8b13('0x3a')]));return this[_0x8b13('0x38')]['continueAt'](_0x29503b['context'],_0x29503b[_0x8b13('0x41')],_0x29503b[_0x8b13('0x42')]);};AGIVertices['prototype'][_0x8b13('0x14c')]=function(_0x5a77b2){logger['info'](util[_0x8b13('0x2a')](_0x8b13('0x14d'),_0x5a77b2['label']));if(!this['isConfigured'](_0x5a77b2[_0x8b13('0x14e')])){return this[_0x8b13('0x38')][_0x8b13('0x2e')](_0x5a77b2,_0x8b13('0x14f'));}try{var _0x14a2c0=eval(_0x5a77b2[_0x8b13('0x14e')])?_0x8b13('0x150'):_0x8b13('0x151');this[_0x8b13('0x38')][_0x8b13('0xae')](util['format'](_0x8b13('0x152'),_0x5a77b2[_0x8b13('0x14e')],_0x14a2c0));return{'code':0xc8,'result':_0x14a2c0};}catch(_0x297d3a){return{'code':0xc8,'result':_0x8b13('0x151')};}};AGIVertices['prototype']['gotoiftime']=function(_0xfb6e4c){logger[_0x8b13('0x32')](util[_0x8b13('0x2a')](_0x8b13('0x153'),_0xfb6e4c[_0x8b13('0x3a')]));if(!this['isConfigured'](_0xfb6e4c['interval_id'])){return this[_0x8b13('0x38')][_0x8b13('0x2e')](_0xfb6e4c,_0x8b13('0x154'));}var _0x393e7e=this[_0x8b13('0x25')]['sync'](this,_0xfb6e4c[_0x8b13('0x155')]);if(!_0x393e7e){return this[_0x8b13('0x38')][_0x8b13('0x2e')](_0xfb6e4c,_0x8b13('0x156'));}for(var _0x2e84cb=0x0;_0x2e84cb<_0x393e7e[_0x8b13('0x9e')];_0x2e84cb+=0x1){var _0x442c57=this[_0x8b13('0x38')][_0x8b13('0x11')](util[_0x8b13('0x2a')](_0x8b13('0x157'),_0x393e7e[_0x2e84cb]));if(_0x442c57[_0x8b13('0xa8')]===-0x1){return _0x442c57;}logger[_0x8b13('0x32')](util['format']('IFTIME\x20%s\x20%s',_0x393e7e[_0x2e84cb],_0x442c57['extra']));if(_0x442c57['extra']==='true'){logger[_0x8b13('0x32')](util['format'](_0x8b13('0x158'),_0x393e7e[_0x2e84cb],_0x8b13('0x150')));this['channel']['noop'](util['format'](_0x8b13('0x158'),_0x393e7e[_0x2e84cb],_0x8b13('0x150')));return{'code':0xc8,'result':'true'};}else{logger['info'](util['format'](_0x8b13('0x158'),_0x393e7e[_0x2e84cb],_0x8b13('0x151')));this[_0x8b13('0x38')]['noop'](util['format']('IFTIME\x20%s\x20%s',_0x393e7e[_0x2e84cb],_0x8b13('0x151')));}}return{'code':0xc8,'result':_0x8b13('0x151')};};AGIVertices[_0x8b13('0x10')][_0x8b13('0x159')]=function(_0x837ba5){logger[_0x8b13('0x32')](util[_0x8b13('0x2a')](_0x8b13('0x15a'),_0x837ba5[_0x8b13('0x3a')]));return this[_0x8b13('0x38')]['hangup']();};AGIVertices[_0x8b13('0x10')][_0x8b13('0x15b')]=function(_0x282adb){logger[_0x8b13('0x32')](util[_0x8b13('0x2a')](_0x8b13('0x15c'),_0x282adb['label']));if(!this[_0x8b13('0xad')](_0x282adb[_0x8b13('0x80')])){return this[_0x8b13('0x38')][_0x8b13('0xae')](_0x8b13('0x138'));}var _0x5c2864=_0x8b13('0x139');var _0x472011=util[_0x8b13('0x2a')](_0x8b13('0x13a'),FILES_PATH,rs[_0x8b13('0x124')](0x4));var _0x4ad638=util[_0x8b13('0x2a')](_0x8b13('0x145'),_0x472011,_0x5c2864);var _0x22e934=!![];if(_0x282adb[_0x8b13('0x13b')]===_0x8b13('0x146')){_0x22e934=![];}var _0x52fde6=this[_0x8b13('0x38')]['recordFile'](_0x472011,_0x5c2864,_0x282adb['intKey'],_0x282adb['timeout'],undefined,_0x22e934);if(_0x52fde6[_0x8b13('0xa8')]!==-0x1){this[_0x8b13('0x38')][_0x8b13('0xae')](util[_0x8b13('0x2a')](_0x8b13('0x15d'),_0x4ad638));var _0xb1500d=this[_0x8b13('0x8a')][_0x8b13('0x78')](this,_0x282adb,_0x4ad638);if(_0xb1500d){for(var _0x45bccc in _0xb1500d){if(_0xb1500d[_0x8b13('0xa2')](_0x45bccc)){this[_0x8b13('0x38')][_0x8b13('0xa3')](util[_0x8b13('0x2a')](_0x8b13('0x15e'),_0x45bccc['toUpperCase']()),_0xb1500d[_0x45bccc]);}}return this[_0x8b13('0x38')][_0x8b13('0xae')](util[_0x8b13('0x2a')]('IspeechASR\x20Result\x20%s',JSON['stringify'](_0xb1500d)));}}return _0x52fde6;};AGIVertices[_0x8b13('0x10')][_0x8b13('0x15f')]=function(_0x5e0767){logger[_0x8b13('0x32')](util[_0x8b13('0x2a')](_0x8b13('0x160'),_0x5e0767[_0x8b13('0x3a')]));if(!this[_0x8b13('0xad')](_0x5e0767[_0x8b13('0x80')])){return this[_0x8b13('0x38')]['noop']('no\x20key\x20configured');}if(!this[_0x8b13('0xad')](_0x5e0767[_0x8b13('0x62')])){return this[_0x8b13('0x38')][_0x8b13('0xae')](_0x8b13('0xaf'));}this[_0x8b13('0x38')][_0x8b13('0xae')](util[_0x8b13('0x2a')](_0x8b13('0x161'),_0x5e0767[_0x8b13('0x62')]));var _0x152b87=this[_0x8b13('0x87')][_0x8b13('0x78')](this,_0x5e0767);if(_0x152b87){this['channel']['noop'](util[_0x8b13('0x2a')](_0x8b13('0x15d'),_0x152b87));var _0x28439f=this[_0x8b13('0x38')][_0x8b13('0x10c')](_0x152b87,_0x5e0767[_0x8b13('0x13d')]);try{fs['unlink'](_0x152b87+_0x8b13('0x10e'));}catch(_0x3aa01e){logger[_0x8b13('0x2e')](_0x3aa01e);}return _0x28439f;}return this[_0x8b13('0x38')]['error'](_0x5e0767,_0x8b13('0x162'));};AGIVertices[_0x8b13('0x10')][_0x8b13('0x163')]=function(_0x39de4e){logger[_0x8b13('0x32')](util[_0x8b13('0x2a')](_0x8b13('0x164'),_0x39de4e[_0x8b13('0x3a')]));if(!this[_0x8b13('0xad')](_0x39de4e[_0x8b13('0x165')])){return this[_0x8b13('0x38')]['error'](_0x39de4e,_0x8b13('0x166'));}logger[_0x8b13('0x32')](util[_0x8b13('0x2a')](_0x8b13('0x167'),this[_0x8b13('0x38')][_0x8b13('0x3e')],_0x39de4e[_0x8b13('0x165')]));var _0x38be9f=this[_0x8b13('0x57')][_0x8b13('0x78')](this,_0x39de4e['findBy']);if(_0x38be9f){logger[_0x8b13('0x32')](util[_0x8b13('0x2a')](_0x8b13('0x168'),this[_0x8b13('0x38')][_0x8b13('0x3e')],_0x39de4e[_0x8b13('0x165')]));this[_0x8b13('0x38')][_0x8b13('0xae')](util[_0x8b13('0x2a')]('AGENT\x20%s\x20FOUND\x20BY',this[_0x8b13('0x38')]['callerid'],_0x39de4e[_0x8b13('0x165')]));return{'code':0xc8,'result':_0x8b13('0x169')};}else{logger[_0x8b13('0x32')](util['format'](_0x8b13('0x16a'),this[_0x8b13('0x38')]['callerid'],_0x39de4e[_0x8b13('0x165')]));this[_0x8b13('0x38')]['noop'](util[_0x8b13('0x2a')]('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this['channel'][_0x8b13('0x3e')],_0x39de4e[_0x8b13('0x165')]));return{'code':0xc8,'result':_0x8b13('0x16b')};}};AGIVertices[_0x8b13('0x10')][_0x8b13('0x16c')]=function(_0xc43aba){logger[_0x8b13('0x32')](util[_0x8b13('0x2a')]('Enter\x20in\x20LOGOUT\x20(%s)\x20block',_0xc43aba[_0x8b13('0x3a')]));if(!this['isConfigured'](_0xc43aba[_0x8b13('0x165')])){return this[_0x8b13('0x38')][_0x8b13('0x2e')](_0xc43aba,'no\x20find\x20by\x20configured');}logger[_0x8b13('0x32')](util['format']('FIND\x20AGENT\x20%s\x20BY\x20%s',this[_0x8b13('0x38')][_0x8b13('0x3e')],_0xc43aba['findBy']));var _0x1f2a30=this[_0x8b13('0x56')][_0x8b13('0x78')](this,_0xc43aba[_0x8b13('0x165')]);if(_0x1f2a30){logger[_0x8b13('0x32')](util[_0x8b13('0x2a')](_0x8b13('0x168'),this['channel'][_0x8b13('0x3e')],_0xc43aba['findBy']));this[_0x8b13('0x38')][_0x8b13('0xae')](util['format'](_0x8b13('0x168'),this[_0x8b13('0x38')][_0x8b13('0x3e')],_0xc43aba[_0x8b13('0x165')]));return{'code':0xc8,'result':_0x8b13('0x169')};}else{logger[_0x8b13('0x32')](util['format']('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this[_0x8b13('0x38')][_0x8b13('0x3e')],_0xc43aba['findBy']));this[_0x8b13('0x38')]['noop'](util['format']('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this[_0x8b13('0x38')]['callerid'],_0xc43aba[_0x8b13('0x165')]));return{'code':0xc8,'result':_0x8b13('0x16b')};}};AGIVertices[_0x8b13('0x10')][_0x8b13('0x16d')]=function(_0x3a92d6){logger[_0x8b13('0x32')](util['format'](_0x8b13('0x16e'),_0x3a92d6[_0x8b13('0x3a')]));if(!this[_0x8b13('0xad')](_0x3a92d6[_0x8b13('0x16f')])){return this['channel'][_0x8b13('0x2e')](_0x3a92d6,'no\x20operation\x20configured');}this[_0x8b13('0x38')][_0x8b13('0xae')](util['format'](_0x8b13('0x170'),_0x3a92d6['operation']));var _0x555589=eval(_0x3a92d6[_0x8b13('0x16f')]);if(!this[_0x8b13('0xad')](_0x3a92d6[_0x8b13('0xe0')])){return this[_0x8b13('0x38')][_0x8b13('0xae')](_0x8b13('0xdf'));}var _0x3e0f5f=this[_0x8b13('0x11')]['sync'](this,_0x3a92d6[_0x8b13('0xe0')]);if(!_0x3e0f5f){return this['channel'][_0x8b13('0x2e')](_0x3a92d6,_0x8b13('0x171'));}if(_[_0x8b13('0x9d')](_0x555589)){var _0x3bddea=this;_0x555589[_0x8b13('0xe1')](function(_0x4e8288,_0x4241de){_0x3bddea[_0x8b13('0x38')][_0x8b13('0xa3')](util[_0x8b13('0x2a')]('%s[%s]',_0x3e0f5f,_0x4241de),_0x4e8288);});return this[_0x8b13('0x38')][_0x8b13('0xae')](util['format']('variable\x20%s[key]\x20set',_0x3e0f5f));}else{return this[_0x8b13('0x38')][_0x8b13('0xa3')](_0x3e0f5f,_0x555589);}};AGIVertices['prototype'][_0x8b13('0xc')]=function(_0x3419cb){logger[_0x8b13('0x32')](util[_0x8b13('0x2a')](_0x8b13('0x172'),_0x3419cb[_0x8b13('0x3a')]));if(_0x3419cb[_0x8b13('0x11c')]===0x0){return this['maxRetry'](_0x3419cb);}_0x3419cb[_0x8b13('0x11c')]-=0x1;if(!this[_0x8b13('0xad')](_0x3419cb['file_id'])){return this[_0x8b13('0x38')][_0x8b13('0x2e')](_0x3419cb,'no\x20file\x20audio\x20selected');}var _0x4dbfc0=this['getSound'][_0x8b13('0x78')](this,_0x3419cb[_0x8b13('0x11d')]);if(!_0x4dbfc0){return this[_0x8b13('0x38')][_0x8b13('0x2e')](_0x3419cb,_0x8b13('0x11e'));}var _0x153cbb=this[_0x8b13('0x38')][_0x8b13('0x11f')](_0x4dbfc0,_0x3419cb['response'],_0x3419cb[_0x8b13('0x173')]);var _0x280127=_0x153cbb[_0x8b13('0xa8')];if(_0x153cbb[_0x8b13('0xa8')]===-0x1){this[_0x8b13('0x37')][_0x8b13('0x78')](this,_0x3419cb,'-1');return _0x153cbb;}else if(_0x153cbb[_0x8b13('0xa6')]===_0x8b13('0x6b')){_0x153cbb['result']=_0x153cbb[_0x8b13('0xa8')][_0x8b13('0x9e')]>0x0?_0x153cbb[_0x8b13('0xa8')]:'t';}else if(_[_0x8b13('0x47')](_0x153cbb['result'])){_0x153cbb[_0x8b13('0xa8')]='#';_0x280127='#';}if(!this[_0x8b13('0xad')](_0x3419cb[_0x8b13('0xe0')])){this['channel'][_0x8b13('0xae')](_0x8b13('0xdf'));}else{var _0x33d693=this[_0x8b13('0x11')][_0x8b13('0x78')](this,_0x3419cb[_0x8b13('0xe0')]);if(!_0x33d693){return this[_0x8b13('0x38')][_0x8b13('0x2e')](_0x3419cb,_0x8b13('0x171'));}this[_0x8b13('0x38')][_0x8b13('0xa3')](_0x33d693,_0x280127);}this[_0x8b13('0x37')]['sync'](this,_0x3419cb,_0x280127);return _0x153cbb;};AGIVertices[_0x8b13('0x10')][_0x8b13('0xae')]=function(_0x5262c7){logger[_0x8b13('0x32')](util[_0x8b13('0x2a')]('Enter\x20in\x20NOOP\x20(%s)\x20block',_0x5262c7[_0x8b13('0x3a')]));return this[_0x8b13('0x38')][_0x8b13('0xae')](_0x5262c7[_0x8b13('0x174')]||_0x5262c7[_0x8b13('0x3a')]);};AGIVertices[_0x8b13('0x10')][_0x8b13('0x175')]=function(_0x564edf){logger[_0x8b13('0x32')](util[_0x8b13('0x2a')](_0x8b13('0x176'),_0x564edf[_0x8b13('0x3a')]));if(!this[_0x8b13('0xad')](_0x564edf[_0x8b13('0x165')])){return this['channel']['error'](_0x564edf,_0x8b13('0x166'));}logger[_0x8b13('0x32')](util[_0x8b13('0x2a')](_0x8b13('0x167'),this['channel']['callerid'],_0x564edf[_0x8b13('0x165')]));var _0xdf8d30=this[_0x8b13('0x51')]['sync'](this,_0x564edf[_0x8b13('0x177')]);var _0x75287a=this['agentPause'][_0x8b13('0x78')](this,_0x564edf[_0x8b13('0x165')],_0xdf8d30);if(_0x75287a){logger[_0x8b13('0x32')](util[_0x8b13('0x2a')](_0x8b13('0x168'),this[_0x8b13('0x38')][_0x8b13('0x3e')],_0x564edf[_0x8b13('0x165')]));this[_0x8b13('0x38')][_0x8b13('0xae')](util[_0x8b13('0x2a')](_0x8b13('0x168'),this[_0x8b13('0x38')][_0x8b13('0x3e')],_0x564edf['findBy']));return{'code':0xc8,'result':_0x8b13('0x169')};}else{logger[_0x8b13('0x32')](util[_0x8b13('0x2a')](_0x8b13('0x16a'),this[_0x8b13('0x38')]['callerid'],_0x564edf[_0x8b13('0x165')]));this[_0x8b13('0x38')][_0x8b13('0xae')](util[_0x8b13('0x2a')](_0x8b13('0x168'),this[_0x8b13('0x38')]['callerid'],_0x564edf[_0x8b13('0x165')]));return{'code':0xc8,'result':_0x8b13('0x16b')};}};AGIVertices['prototype'][_0x8b13('0x178')]=function(_0x269c37){logger[_0x8b13('0x32')](util[_0x8b13('0x2a')](_0x8b13('0x179'),_0x269c37[_0x8b13('0x3a')]));if(!this[_0x8b13('0xad')](_0x269c37[_0x8b13('0x11d')])){return this['channel']['error'](_0x269c37,_0x8b13('0x17a'));}var _0x108b1a=this[_0x8b13('0x1e')][_0x8b13('0x78')](this,_0x269c37[_0x8b13('0x11d')]);if(!_0x108b1a){return this['channel'][_0x8b13('0x2e')](_0x269c37,_0x8b13('0x11e'));}var _0x59032b=this[_0x8b13('0x38')][_0x8b13('0x5c')](_0x8b13('0x17b'),[_0x108b1a,_0x269c37['opts']]);if(_0x59032b[_0x8b13('0xa8')]===-0x1){return _0x59032b;}return this[_0x8b13('0x38')][_0x8b13('0xae')](util['format'](_0x8b13('0x17c'),_0x8b13('0x17b'),_0x108b1a));};AGIVertices['prototype'][_0x8b13('0x17d')]=function(_0x52b982){logger['info'](util['format'](_0x8b13('0x17e'),_0x52b982['label']));if(!this[_0x8b13('0xad')](_0x52b982[_0x8b13('0x17f')])){return this[_0x8b13('0x38')][_0x8b13('0x2e')](_0x52b982,_0x8b13('0x180'));}var _0xf4c3b1='';var _0x25bc42=parseInt(_0x52b982['queue_id'],0xa);if(isNaN(_0x25bc42)){_0xf4c3b1=_0x52b982[_0x8b13('0x17f')];}else{_0xf4c3b1=this['getVoiceQueue'][_0x8b13('0x78')](this,_0x52b982[_0x8b13('0x17f')]);if(!_0xf4c3b1){return this[_0x8b13('0x38')]['error'](_0x52b982,_0x8b13('0x181'));}}var _0x4ebfc7='';if(this[_0x8b13('0xad')](_0x52b982[_0x8b13('0x11d')])){var _0x307c9d=this['getSound'][_0x8b13('0x78')](this,_0x52b982[_0x8b13('0x11d')]);if(_0x307c9d){_0x4ebfc7=_0x307c9d;}}this[_0x8b13('0x37')]['sync'](this,_0x52b982,_0xf4c3b1);if(_0x52b982[_0x8b13('0xec')][_0x8b13('0x182')]('x')<0x0){_0x52b982['opts']+='x';}if(_0x52b982[_0x8b13('0xec')][_0x8b13('0x182')]('X')<0x0){_0x52b982['opts']+='X';}this['channel']['setVariable']('XMCS-QUEUE',_0xf4c3b1?_0xf4c3b1[_0x8b13('0x183')]():'');var _0x250d82=this[_0x8b13('0x38')][_0x8b13('0x5c')](_0x8b13('0x184'),[_0xf4c3b1,_0x52b982[_0x8b13('0xec')],_0x52b982[_0x8b13('0x6a')],_0x4ebfc7,_0x52b982[_0x8b13('0x6b')],_0x52b982['agi'],_0x52b982[_0x8b13('0x185')],_0x52b982[_0x8b13('0x186')],'',_0x52b982[_0x8b13('0x187')]]);if(_0x250d82[_0x8b13('0xa8')]===-0x1){return _0x250d82;}return this[_0x8b13('0x38')][_0x8b13('0xae')](util[_0x8b13('0x2a')]('Executed\x20command\x20%s\x20%s','QUEUE',_0xf4c3b1));};AGIVertices[_0x8b13('0x10')]['record']=function(_0x46c04f){logger[_0x8b13('0x32')](util[_0x8b13('0x2a')]('Enter\x20in\x20RECORD\x20(%s)\x20block',_0x46c04f['label']));var _0x208425=_0x46c04f[_0x8b13('0x188')]||'wav';var _0x23bdc4=util[_0x8b13('0x2a')](_0x8b13('0x189'),this[_0x8b13('0x38')][_0x8b13('0x39')],rs['generate'](0x5));var _0x28a912=util[_0x8b13('0x2a')](_0x8b13('0x18a'),FILES_PATH,_0x23bdc4,_0x208425);var _0x4075c6=util[_0x8b13('0x2a')](_0x8b13('0x13a'),FILES_PATH,_0x23bdc4);this['createSquareRecording'][_0x8b13('0x78')](this,_0x46c04f,_0x23bdc4,_0x28a912);this[_0x8b13('0x38')][_0x8b13('0xa3')]('RECORDING_SAVENAME',_0x23bdc4);logger['info'](_0x8b13('0x18b'),_0x4075c6,_0x208425,_0x46c04f[_0x8b13('0x18c')],_0x46c04f[_0x8b13('0x6b')]);return this[_0x8b13('0x38')][_0x8b13('0x13c')](_0x4075c6,_0x208425,_0x46c04f[_0x8b13('0x18c')],_0x46c04f[_0x8b13('0x6b')],undefined,!![]);};AGIVertices[_0x8b13('0x10')][_0x8b13('0x18d')]=function(_0x3fff1c){logger[_0x8b13('0x32')](util[_0x8b13('0x2a')]('Enter\x20in\x20RESTAPI\x20(%s)\x20block',_0x3fff1c[_0x8b13('0x3a')]));if(!this[_0x8b13('0xad')](_0x3fff1c[_0x8b13('0x6a')])){return this['channel'][_0x8b13('0xae')](_0x8b13('0x18e'));}var _0x33c2e7=this[_0x8b13('0x69')][_0x8b13('0x78')](this,_0x3fff1c);logger[_0x8b13('0x32')](util[_0x8b13('0x2a')](_0x8b13('0x18f'),util[_0x8b13('0x190')](_0x33c2e7,{'showHidden':![],'depth':null})));if(!this[_0x8b13('0xad')](_0x3fff1c[_0x8b13('0xe0')])){return this['channel'][_0x8b13('0xae')](_0x8b13('0x191'));}var _0x33ca8f=this[_0x8b13('0x11')]['sync'](this,_0x3fff1c['variable_id']);if(!_0x33ca8f){return this[_0x8b13('0x38')][_0x8b13('0x2e')](_0x3fff1c,_0x8b13('0x171'));}this[_0x8b13('0x38')][_0x8b13('0xa3')](util[_0x8b13('0x2a')]('%s_STATUS_CODE',_0x33ca8f),_0x33c2e7['statusCode']?_0x33c2e7[_0x8b13('0x192')]:_0x8b13('0x193'));this[_0x8b13('0x38')][_0x8b13('0xa3')](util['format'](_0x8b13('0x194'),_0x33ca8f),_0x33c2e7['statusMessage']?_0x33c2e7[_0x8b13('0x195')]:'OK');if(_0x33c2e7[_0x8b13('0x72')]){try{this[_0x8b13('0xa1')](_0x33c2e7[_0x8b13('0x72')],_0x33ca8f);}catch(_0x399703){logger[_0x8b13('0x2e')](util[_0x8b13('0x2a')]('Unable\x20to\x20set\x20result\x20in\x20variable\x20%s',_0x33ca8f));}}return this['channel'][_0x8b13('0xae')](util[_0x8b13('0x2a')](_0x8b13('0xe4'),_0x33ca8f));};AGIVertices[_0x8b13('0x10')]['saydigits']=function(_0x289ee9){logger[_0x8b13('0x32')](util['format'](_0x8b13('0x196'),_0x289ee9['label']));return this[_0x8b13('0x38')]['sayDigits'](_0x289ee9[_0x8b13('0x197')][_0x8b13('0x5e')](/\s+/g,''),_0x289ee9['escape_digits']);};AGIVertices['prototype'][_0x8b13('0x198')]=function(_0x23f7aa){logger[_0x8b13('0x32')](util[_0x8b13('0x2a')](_0x8b13('0x199'),_0x23f7aa[_0x8b13('0x3a')]));return this['channel']['sayNumber'](_0x23f7aa[_0x8b13('0x6c')]['replace'](/\s+/g,''),_0x23f7aa['escape_digits']);};AGIVertices[_0x8b13('0x10')][_0x8b13('0x19a')]=function(_0x12fe4b){logger[_0x8b13('0x32')](util[_0x8b13('0x2a')](_0x8b13('0x19b'),_0x12fe4b[_0x8b13('0x3a')]));return this[_0x8b13('0x38')][_0x8b13('0x19c')](_0x12fe4b[_0x8b13('0x62')],_0x12fe4b[_0x8b13('0x18c')]);};AGIVertices[_0x8b13('0x10')][_0x8b13('0x19d')]=function(_0x6b78f6){logger[_0x8b13('0x32')](util[_0x8b13('0x2a')](_0x8b13('0x19e'),_0x6b78f6['label']));if(!this[_0x8b13('0xad')](_0x6b78f6['account_id'])){return this[_0x8b13('0x38')]['noop'](_0x8b13('0x19f'));}var _0xbe27cf=this[_0x8b13('0x22')][_0x8b13('0x78')](this,_0x6b78f6[_0x8b13('0x1a0')]);if(!_0xbe27cf||!_0xbe27cf[_0x8b13('0x1a1')]){return this[_0x8b13('0x38')][_0x8b13('0x2e')](_0x6b78f6,_0x8b13('0x1a2'));}var _0x4da52a={'from':util['format'](_0x8b13('0x1a3'),_0xbe27cf['name'],_0xbe27cf[_0x8b13('0x1a4')]||_0xbe27cf[_0x8b13('0x1a1')]['user']),'to':_0x6b78f6['to']||'','cc':_0x6b78f6['cc']||'','bcc':_0x6b78f6[_0x8b13('0x1a5')]||'','subject':_0x6b78f6[_0x8b13('0x1a6')],'html':_0x6b78f6[_0x8b13('0x62')],'text':_0x6b78f6[_0x8b13('0x62')]};if(this[_0x8b13('0xad')](_0x6b78f6[_0x8b13('0x1a7')])){}logger[_0x8b13('0x1a8')](_0x8b13('0x1a9'),JSON['stringify'](_0x4da52a));this[_0x8b13('0x37')]['sync'](this,_0x6b78f6,_0x6b78f6[_0x8b13('0x1a0')]);this['channel'][_0x8b13('0xae')](util['format'](_0x8b13('0x1aa'),_0xbe27cf[_0x8b13('0x14')]));this[_0x8b13('0x24')]['sync'](this,_0xbe27cf[_0x8b13('0x1ab')],_0x4da52a);return this[_0x8b13('0x38')][_0x8b13('0xae')]('Mail\x20message\x20added\x20to\x20outgoing\x20process');};AGIVertices[_0x8b13('0x10')]['sendFax']=function(_0x2cb68a){logger[_0x8b13('0x32')](util['format']('Enter\x20in\x20SENDFAX\x20(%s)\x20block',_0x2cb68a[_0x8b13('0x3a')]));return this['channel']['noop'](_0x8b13('0x1ac'));};AGIVertices[_0x8b13('0x10')]['sendSMS']=function(_0x2728c5){logger[_0x8b13('0x32')](util[_0x8b13('0x2a')](_0x8b13('0x1ad'),_0x2728c5[_0x8b13('0x3a')]));if(!this[_0x8b13('0xad')](_0x2728c5[_0x8b13('0x1ae')])){return this[_0x8b13('0x38')][_0x8b13('0xae')](_0x8b13('0x1af'));}var _0x508ae6=this[_0x8b13('0x1b0')]['sync'](this,_0x2728c5[_0x8b13('0x1ae')]);if(!_0x508ae6){return this[_0x8b13('0x38')]['error'](_0x2728c5,'no\x20sms\x20account\x20found');}var _0x3645c7={'body':_0x2728c5[_0x8b13('0x1b1')],'phone':_0x2728c5['to']||'','SmsAccountId':_0x508ae6['id']};logger[_0x8b13('0x1a8')]('sendSMS\x20message',JSON[_0x8b13('0x7b')](_0x3645c7));this[_0x8b13('0x37')]['sync'](this,_0x2728c5,_0x2728c5[_0x8b13('0x1ae')]);this[_0x8b13('0x38')][_0x8b13('0xae')](util[_0x8b13('0x2a')](_0x8b13('0x1b2'),_0x508ae6[_0x8b13('0x14')]));this['createSmsMessage'][_0x8b13('0x78')](this,_0x3645c7);return this[_0x8b13('0x38')]['noop'](_0x8b13('0x1b3'));};AGIVertices[_0x8b13('0x10')]['set']=function(_0x5219bc){logger[_0x8b13('0x32')](util[_0x8b13('0x2a')]('Enter\x20in\x20SET\x20(%s)\x20block',_0x5219bc[_0x8b13('0x3a')]));if(!this[_0x8b13('0xad')](_0x5219bc['variable_id'])){return this[_0x8b13('0x38')][_0x8b13('0x2e')](_0x5219bc,_0x8b13('0x1b4'));}var _0x25ee4c=this[_0x8b13('0x11')][_0x8b13('0x78')](this,_0x5219bc[_0x8b13('0xe0')]);if(!_0x25ee4c){return this[_0x8b13('0x38')][_0x8b13('0x2e')](_0x5219bc,'no\x20variable\x20found');}return this['channel'][_0x8b13('0xa3')](_0x25ee4c,_0x5219bc[_0x8b13('0x1b5')]);};AGIVertices[_0x8b13('0x10')][_0x8b13('0x1b6')]=function(_0x25fde4){logger[_0x8b13('0x32')](util[_0x8b13('0x2a')](_0x8b13('0x1b7'),_0x25fde4['label']));this[_0x8b13('0x38')]['noop']('START\x20CALLY\x20SQUARE');var _0x381d7d=this[_0x8b13('0x38')]['getVariable'](_0x8b13('0x1b8'));if(!_[_0x8b13('0x47')](_0x381d7d[_0x8b13('0xa6')])){this[_0x8b13('0x38')][_0x8b13('0x39')]=_0x381d7d[_0x8b13('0xa6')];}if(_0x25fde4['answer']==='yes'){this[_0x8b13('0x38')][_0x8b13('0xae')](_0x8b13('0x1b9'));return this[_0x8b13('0x38')][_0x8b13('0xbc')]();}return this[_0x8b13('0x38')][_0x8b13('0xae')](_0x8b13('0x1ba'));};AGIVertices[_0x8b13('0x10')][_0x8b13('0x1bb')]=function(_0x4ed2f1){logger[_0x8b13('0x32')](util[_0x8b13('0x2a')]('Enter\x20in\x20SUBPROJECT\x20(%s)\x20block',_0x4ed2f1[_0x8b13('0x3a')]));if(!this[_0x8b13('0xad')](_0x4ed2f1['project_id'])){return this[_0x8b13('0x38')][_0x8b13('0x2e')](_0x4ed2f1,_0x8b13('0x1bc'));}var _0x51c000=this[_0x8b13('0x1bd')][_0x8b13('0x78')](this,_0x4ed2f1[_0x8b13('0x1be')]);if(!this[_0x8b13('0xad')](_0x51c000)){return this[_0x8b13('0x38')][_0x8b13('0x2e')](_0x4ed2f1,util[_0x8b13('0x2a')](_0x8b13('0x1bf'),_0x4ed2f1[_0x8b13('0x1be')]));}if(_0x51c000===this[_0x8b13('0x38')][_0x8b13('0x3c')]){return this['channel'][_0x8b13('0x2e')](_0x4ed2f1,_0x8b13('0x1c0'));}this['createSquareDetailsReport'][_0x8b13('0x78')](this,_0x4ed2f1,_0x51c000);var _0x3b7d8c=this[_0x8b13('0x38')][_0x8b13('0x5c')](_0x8b13('0x1c1'),util[_0x8b13('0x2a')](_0x8b13('0x1c2'),config[_0x8b13('0x8')][_0x8b13('0x1c3')]||_0x8b13('0x1c4'),_0x51c000,this[_0x8b13('0x38')][_0x8b13('0x3c')]));if(_0x3b7d8c['result']===-0x1){return _0x3b7d8c;}return this[_0x8b13('0x38')][_0x8b13('0xae')](util[_0x8b13('0x2a')](_0x8b13('0x17c'),_0x8b13('0x1c1'),_0x51c000));};AGIVertices[_0x8b13('0x10')]['system']=function(_0x3fdcf0){logger[_0x8b13('0x32')](util['format'](_0x8b13('0x1c5'),_0x3fdcf0[_0x8b13('0x3a')]));var _0x45f48e=this[_0x8b13('0x5b')][_0x8b13('0x78')](this,_0x3fdcf0[_0x8b13('0xba')]);this[_0x8b13('0x37')][_0x8b13('0x78')](this,_0x3fdcf0,_0x3fdcf0['command']);if(this[_0x8b13('0xad')](_0x3fdcf0[_0x8b13('0xe0')])){var _0x43fcc9=this[_0x8b13('0x11')][_0x8b13('0x78')](this,_0x3fdcf0[_0x8b13('0xe0')]);if(_0x43fcc9){this[_0x8b13('0x38')][_0x8b13('0xa3')](_0x43fcc9,_0x45f48e);return this[_0x8b13('0x38')][_0x8b13('0xae')](util[_0x8b13('0x2a')](_0x8b13('0x1c6'),_0x3fdcf0[_0x8b13('0xba')],_0x43fcc9));}}return this[_0x8b13('0x38')][_0x8b13('0xae')](util[_0x8b13('0x2a')](_0x8b13('0x1c7'),_0x3fdcf0[_0x8b13('0xba')]));};AGIVertices[_0x8b13('0x10')][_0x8b13('0x1c8')]=function(_0xb289f7){logger[_0x8b13('0x32')](util[_0x8b13('0x2a')](_0x8b13('0x1c9'),_0xb289f7[_0x8b13('0x3a')]));_0xb289f7[_0x8b13('0x62')]=_0xb289f7[_0x8b13('0x62')][_0x8b13('0x5e')](/(\r\n|\n|\r)/gm,'\x20');if(!this[_0x8b13('0xad')](_0xb289f7[_0x8b13('0x60')])){return this[_0x8b13('0x38')]['noop'](_0x8b13('0x1ca'));}if(!this[_0x8b13('0xad')](_0xb289f7[_0x8b13('0x62')])){return this[_0x8b13('0x38')][_0x8b13('0xae')](_0x8b13('0xaf'));}this[_0x8b13('0x38')][_0x8b13('0xae')](util[_0x8b13('0x2a')](_0x8b13('0x1cb'),_0xb289f7['text']));var _0x2bb067=this[_0x8b13('0x5f')][_0x8b13('0x78')](this,_0xb289f7);if(_0x2bb067){this[_0x8b13('0x38')]['noop'](util[_0x8b13('0x2a')](_0x8b13('0x1cc'),_0x2bb067));var _0x1e5619=this['channel'][_0x8b13('0x10c')](_0x2bb067);try{fs[_0x8b13('0x10d')](_0x2bb067+_0x8b13('0x10e'));}catch(_0x2dba50){logger[_0x8b13('0x2e')](_0x2dba50);}return _0x1e5619;}return this[_0x8b13('0x38')]['error'](_0xb289f7,_0x8b13('0x1cd'));};AGIVertices['prototype'][_0x8b13('0x1ce')]=function(_0x21c7e1){logger[_0x8b13('0x32')](util[_0x8b13('0x2a')](_0x8b13('0x1cf'),_0x21c7e1['label']));_0x21c7e1[_0x8b13('0x62')]=_0x21c7e1['text'][_0x8b13('0x5e')](/(\r\n|\n|\r)/gm,'\x20');if(!this[_0x8b13('0xad')](_0x21c7e1[_0x8b13('0x62')])){return this[_0x8b13('0x38')][_0x8b13('0xae')]('no\x20text\x20configured');}this['channel'][_0x8b13('0xae')](util[_0x8b13('0x2a')]('Trying\x20Google\x20TTS\x20%s',_0x21c7e1[_0x8b13('0x62')]));var _0x342252=this[_0x8b13('0x67')]['sync'](this,_0x21c7e1);if(_0x342252){this[_0x8b13('0x38')][_0x8b13('0xae')](util[_0x8b13('0x2a')]('Google\x20TTS\x20%s\x20file\x20created',_0x342252));var _0x4025b1=this[_0x8b13('0x38')][_0x8b13('0x10c')](_0x342252);try{fs[_0x8b13('0x10d')](_0x342252+_0x8b13('0x10e'));}catch(_0x3815d3){logger[_0x8b13('0x2e')](_0x3815d3);}return _0x4025b1;}return this[_0x8b13('0x38')]['error'](_0x21c7e1,_0x8b13('0x1d0'));};AGIVertices[_0x8b13('0x10')]['unpause']=function(_0x515152){logger[_0x8b13('0x32')](util['format'](_0x8b13('0x1d1'),_0x515152['label']));if(!this['isConfigured'](_0x515152['findBy'])){return this[_0x8b13('0x38')][_0x8b13('0x2e')](_0x515152,_0x8b13('0x166'));}logger[_0x8b13('0x32')](util['format'](_0x8b13('0x167'),this[_0x8b13('0x38')]['callerid'],_0x515152[_0x8b13('0x165')]));var _0x4f5075=this['agentUnpause'][_0x8b13('0x78')](this,_0x515152['findBy']);if(_0x4f5075){logger['info'](util[_0x8b13('0x2a')](_0x8b13('0x168'),this[_0x8b13('0x38')][_0x8b13('0x3e')],_0x515152[_0x8b13('0x165')]));this[_0x8b13('0x38')][_0x8b13('0xae')](util[_0x8b13('0x2a')](_0x8b13('0x168'),this[_0x8b13('0x38')][_0x8b13('0x3e')],_0x515152['findBy']));return{'code':0xc8,'result':_0x8b13('0x169')};}else{logger[_0x8b13('0x32')](util[_0x8b13('0x2a')](_0x8b13('0x16a'),this['channel'][_0x8b13('0x3e')],_0x515152[_0x8b13('0x165')]));this[_0x8b13('0x38')][_0x8b13('0xae')](util[_0x8b13('0x2a')](_0x8b13('0x16a'),this[_0x8b13('0x38')]['callerid'],_0x515152[_0x8b13('0x165')]));return{'code':0xc8,'result':_0x8b13('0x16b')};}};AGIVertices['prototype'][_0x8b13('0x1d2')]=function(_0x483c0c){logger['info'](util[_0x8b13('0x2a')](_0x8b13('0x1d3'),_0x483c0c[_0x8b13('0x3a')]));var _0x32589e=this['channel'][_0x8b13('0x5c')]('VOICEMAIL',[_0x483c0c['mailbox'],_0x483c0c[_0x8b13('0x7e')]]);if(_0x32589e['result']===-0x1){return _0x32589e;}return this[_0x8b13('0x38')][_0x8b13('0xae')](util[_0x8b13('0x2a')](_0x8b13('0x17c'),_0x8b13('0x1d4'),_0x483c0c['mailbox']));};AGIVertices[_0x8b13('0x10')][_0x8b13('0x1d5')]=function(_0x27ca47){logger[_0x8b13('0x32')](util[_0x8b13('0x2a')](_0x8b13('0x1d6'),_0x27ca47['label']));if(!this[_0x8b13('0xad')](_0x27ca47[_0x8b13('0xe0')])){return this[_0x8b13('0x38')]['error'](_0x27ca47,'no\x20variable\x20selected');}var _0x3c87e4=this[_0x8b13('0x11')][_0x8b13('0x78')](this,_0x27ca47[_0x8b13('0xe0')]);if(!_0x3c87e4){return this['channel'][_0x8b13('0x2e')](_0x27ca47,_0x8b13('0x171'));}var _0x17d5cd=this[_0x8b13('0x38')][_0x8b13('0x11')](_0x3c87e4);return{'code':0xc8,'result':_0x17d5cd[_0x8b13('0xa6')]?_0x17d5cd[_0x8b13('0xa6')]:'-'};};String[_0x8b13('0x10')][_0x8b13('0xa5')]=function(_0x3a6607,_0x37f533){return this[_0x8b13('0xa4')](_0x3a6607)[_0x8b13('0x1d7')](_0x37f533);};module[_0x8b13('0x1d8')]=AGIVertices;
\ No newline at end of file