Built motion from commit 85328c08.|2.5.50
[motion2.git] / server / services / agi / vertices.js
index b674792..49c9ec5 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xa2ad=['speech','out','Dialogflow\x20Result\x20%s','Dialogflow\x20is\x20unreachable','sesteknda','Enter\x20in\x20SESTEKNDA\x20(%s)\x20block','ndauth_url','ndassistant_url','bot','Trying\x20SestekNDA:\x20%s','SESTEK_NDA_%s','audiofile','Sestek\x20NDA\x20%s\x20file\x20created','streamFile','.wav','SestekNDA\x20Result\x20%s','SestekNDA\x20is\x20unreachable','end','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','file_id','no\x20file\x20audio\x20selected','no\x20file\x20audio\x20found','response','maxdigit','test','mindigit','hiddendigitsnum','generate','first','substr','Enter\x20in\x20GETSECRETDIGITS\x20(%s)\x20block','goal','Enter\x20in\x20GOAL\x20(%s)\x20block','goalname','GOAL\x20%s','awspolly','[AGI]\x20Enter\x20in\x20AWSPOLLY\x20(%s)\x20block','aws\x20Polly\x20%s\x20file\x20created','aws\x20Polly\x20is\x20unreachable','awslex','no\x20valid\x20credentials\x20configured','no\x20bot\x20name\x20configured','Trying\x20Amazon\x20Lex:\x20%s','AWS_LEX_%s','Amazon\x20Lex\x20ready\x20for\x20fulfillment','Amazon\x20Lex\x20Result\x20%s','Amazon\x20Lex\x20is\x20unreachable','googleasr','Enter\x20in\x20GOOGLEASR\x20(%s)\x20block\x20%s','wav','%s/recordings/%s','beep','NOBEEP','recordFile','google\x20%s\x20file\x20created','googleASR','GoogleASR\x20Result\x20%s','tildeasr','appid','no\x20appid\x20configured','appsecret','no\x20appsecret\x20configured','intKey','tilde\x20%s\x20file\x20created','TILDE_ASR_%s','TildeASR\x20Result\x20%s','gotoc','Enter\x20in\x20GOTO\x20(%s)\x20block','continueAt','extension','gotoif','Enter\x20in\x20GOTOIF\x20(%s)\x20block','condition','no\x20condition\x20configured','false','EVAL\x20CONDITION\x20%s\x20%s','no\x20interval\x20configured','interval_id','no\x20intervals\x20found','IFTIME(%s?true:false)','IFTIME\x20%s\x20%s','true','hangup','ispeechasr','Enter\x20in\x20ISPEECHASR\x20(%s)\x20block','ispeech\x20%s\x20file\x20created','ISPEECH_ASR_%s','IspeechASR\x20Result\x20%s','ispeechtts','Trying\x20ispeech\x20TTS\x20%s','unlink','Enter\x20in\x20LOGIN\x20(%s)\x20block','findBy','no\x20find\x20by\x20configured','FIND\x20AGENT\x20%s\x20BY\x20%s','AGENT\x20%s\x20FOUND\x20BY','success','AGENT\x20%s\x20NOT\x20FOUND\x20BY','failure','logout','Enter\x20in\x20MATH\x20(%s)\x20block','no\x20operation\x20configured','math\x20%s','operation','Enter\x20in\x20MENU\x20(%s)\x20block','getData','output','Enter\x20in\x20PAUSE\x20(%s)\x20block','pause_id','playback','PLAYBACK','Executed\x20command\x20%s\x20%s','queue','Enter\x20in\x20QUEUE\x20(%s)\x20block','queue_id','no\x20queue\x20found','indexOf','XMCS-QUEUE','QUEUE','gosub','position','record','%s/recordings/%s.%s','RECORDING_SAVENAME','Recording\x20%s\x20%s\x20%s\x20%s','escape_digits','restapi','Enter\x20in\x20RESTAPI\x20(%s)\x20block','no\x20url\x20configured','Response:','inspect','no\x20variable\x20selected\x20for\x20the\x20response','%s_STATUS_CODE','200','%s_STATUS_MESSAGE','Unable\x20to\x20set\x20result\x20in\x20variable\x20%s','saydigits','Enter\x20in\x20SAYDIGITS\x20(%s)\x20block','sayDigits','digits','saynumber','Enter\x20in\x20SAYNUMBER\x20(%s)\x20block','sayNumber','sayphonetic','Enter\x20in\x20SAYPHONETIC\x20(%s)\x20block','sayPhonetic','Enter\x20in\x20SENDMAIL\x20(%s)\x20block','account_id','no\x20mail\x20account\x20configured','Smtp','no\x20mail\x20account\x20found','\x22%s\x22\x20<%s>','email','user','bcc','service','host','port','secure','authentication','auth','pass','template_id','sendMail\x20message','Trying\x20SendMail\x20with\x20account\x20%s','Mail\x20message\x20added\x20to\x20outgoing\x20process','sendFax','SENDFAX\x20block\x20not\x20implemented','sendSMS','Enter\x20in\x20SENDSMS\x20(%s)\x20block','sms_account_id','no\x20sms\x20account\x20configured','no\x20sms\x20account\x20found','sms_text','sendSMS\x20message','Trying\x20SendSMS\x20with\x20account\x20%s','Sms\x20message\x20added\x20to\x20outgoing\x20process','Enter\x20in\x20SET\x20(%s)\x20block','no\x20variable\x20selected','start','START\x20CALLY\x20SQUARE','yes','Answer','subproject','Enter\x20in\x20SUBPROJECT\x20(%s)\x20block','no\x20subproject\x20selected','no\x20subproject\x20found\x20with\x20id\x20%d','project_id','project\x20in\x20subproject\x20must\x20be\x20different\x20from\x20the\x20called\x20project','AGI','agi://%s/square,\x22%s\x22,\x22%s\x22','127.0.0.1','system','Enter\x20in\x20SYSTEM\x20(%s)\x20block','shellCommand','sh\x20command:\x20%s\x20result\x20on\x20variable:\x20%s','google_cloud_tts','Enter\x20in\x20Google\x20Cloud\x20TTS\x20(%s)\x20block','no\x20apiKey\x20configured','Google\x20Cloud\x20TTS\x20%s\x20file\x20created','tts','Enter\x20in\x20GOOGLETTS\x20(%s)\x20block','unpause','Enter\x20in\x20VOICEMAIL\x20(%s)\x20block','VOICEMAIL','mailbox','vswitch','replaceAll','join','path','util','shelljs','odbc','randomstring','moment','mustache','request-promise','agi','./scripts','/var/opt/motion2/server/files','rawHeaders','rawBody','menu','getdigits','getsecretdigits','channel','rpc','mailRpc','prototype','getVariable','getVariableById','then','name','catch','getVoiceQueue','getVoiceQueueById','getSquareProject','getSquareProjectById','getSquareOdbc','dsn','getUser','getUserById','getTrunk','getTrunkById','getSound','getSoundById','getSoundPath','getMailAccount','getMailAccountById','sendMailMessage','getIntervals','getIntervalById','interval','map','Intervals','format','%s/sounds/converted/%s','getQueryOdbc','open','error','Error\x20getting\x20ODBC\x20connection\x20%s','info','ODBC\x20connection\x20successfully','query','Error\x20closing\x20connection\x20to\x20odbc\x20%s','getSmsAccount','getSmsAccountById','createSmsMessage','createSquareDetailsReport','arg_1','callerid','createSquareRecording','uniqueid','context','priority','accountcode','dnid','file','createSquareMessage','createCmContact','isNil','callback_','random','isEmpty','lastName','phone','scheduledAt','callback','Callback\x20scheduled\x20at\x20','toString','callback_priority','getPause','getPauseById','agentPause','agentUnpause','agent','agentLogout','internal','%s/%s@from-sip/n','LOCAL','agentLogin','trim','replace','googleCloudTTS','apiKey','google_cloud_tts_text_type','text','audioEncoding','googleTTS','google_tts_language','restAPI','url','method','timeout','number','includes','POST','PUT','toUpperCase','body','parse','An\x20incorrect\x20formatted\x20json\x20body\x20has\x20been\x20passed\x20to\x20the\x20function','headers','computedVariables','uri','render','stringify','An\x20incorrect\x20formatted\x20json\x20has\x20been\x20passed\x20to\x20the\x20function','statusCode','statusMessage','message','500\x20-\x20Internal\x20Server\x20Error','options','googleDialogflow','dialogflow_language','sestekNDA','ispeechTTS','ispeech_tts_language','en-US','speed','ispeechASR','key','isConfigured','model','awsPolly','aws_access_key_id','aws_secret_access_key','aws_polly_region','aws_polly_voice','Amy','aws_text_type','awsLex','aws_bot_name','google_asr_language','tildeASR','agicommand','clone','replaceObjectAllVariables','replaceAllVariables','recursiveNodeIndex','hasOwnProperty','length','isString','isPlainObject','saveRestApiResult','%s.%s','isArray','setVariable','split','getAndSetVariable','result','extra','maxRetry','sync','retry','mrcpsynth','Enter\x20in\x20MRCPSynth\x20(%s)\x20block','noop','exec','MRCPSynth','Executed\x20command\x20MRCPSynth\x20%s','grammar','no\x20grammar\x20configured','RECOG_CONFIDENCE()','MRCP_RECOG_CONFIDENCE','RECOG_INPUT()','MRCP_RECOG_TRANSCRIPT','RECOG_INSTANCE()','MRCP_RECOG_INSTANCE','Enter\x20in\x20AGI\x20(%s)\x20block','label','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','list_id','custom_app','Enter\x20in\x20CUSTOM\x20APP\x20(%s)\x20block','application','lumenvoxtts','Enter\x20in\x20LUMENVOXTTS\x20(%s)\x20block','no\x20text\x20configured','Enter\x20in\x20SESTEKTTS\x20(%s)\x20block','lumenvoxasr','MRCPRecog','LUMENVOX_ASR_CONFIDENCE','LUMENVOX_ASR_TRANSCRIPT','LUMENVOX_ASR_INSTANCE','Executed\x20command\x20MRCPRecog\x20%s','Enter\x20in\x20SESTEKASR\x20(%s)\x20block','SESTEK_ASR_TRANSCRIPT','SESTEK_ASR_INSTANCE','Enter\x20in\x20DATABASE\x20(%s)\x20block','odbc_id','no\x20query\x20configured','query:\x20%s','variable_id','no\x20variable\x20selected\x20for\x20the\x20result','no\x20variable\x20found','forEach','keys','%s[%s][%s]','%s_ROWS_COUNT','variable\x20%s\x20set','debug','sip_id','no\x20user\x20selected','no\x20user\x20found','opts','Executed\x20command\x20%s','DIAL','Enter\x20in\x20DIALOGFLOW\x20(%s)\x20block','no\x20key\x20configured','Trying\x20Dialogflow:\x20%s','DIALOGFLOW_%s'];(function(_0xd2d2b8,_0x38cc69){var _0x58693c=function(_0x5a6d21){while(--_0x5a6d21){_0xd2d2b8['push'](_0xd2d2b8['shift']());}};_0x58693c(++_0x38cc69);}(_0xa2ad,0xd9));var _0xda2a=function(_0x463a6e,_0x1b47b5){_0x463a6e=_0x463a6e-0x0;var _0x51d8c6=_0xa2ad[_0x463a6e];return _0x51d8c6;};'use strict';var fs=require('fs');var path=require(_0xda2a('0x0'));var util=require(_0xda2a('0x1'));var _=require('lodash');var sh=require(_0xda2a('0x2'));var odbc=require(_0xda2a('0x3'))();var rs=require(_0xda2a('0x4'));var moment=require(_0xda2a('0x5'));var Mustache=require(_0xda2a('0x6'));var rp=require(_0xda2a('0x7'));var logger=require('../../config/logger')(_0xda2a('0x8'));var config=require('../../config/environment');var scripts=require(_0xda2a('0x9'));var FILES_PATH=_0xda2a('0xa');var recursiveMapAttributes=[_0xda2a('0xb'),_0xda2a('0xc')];var verticesWithRetry=[_0xda2a('0xd'),_0xda2a('0xe'),_0xda2a('0xf')];var AGIVertices=function(_0x34c6cb,_0x46355b,_0x27e9f6){this[_0xda2a('0x10')]=_0x34c6cb;this[_0xda2a('0x11')]=_0x46355b;this[_0xda2a('0x12')]=_0x27e9f6;};AGIVertices[_0xda2a('0x13')][_0xda2a('0x14')]=function(_0x1ecb5d,_0x362eea){this['rpc'][_0xda2a('0x15')](_0x1ecb5d)[_0xda2a('0x16')](function(_0x51b564){_0x362eea(null,_0x51b564?_0x51b564[_0xda2a('0x17')]:![]);})[_0xda2a('0x18')](function(_0x5dfa71){_0x362eea(_0x5dfa71);});};AGIVertices[_0xda2a('0x13')][_0xda2a('0x19')]=function(_0x38e7d3,_0x8158af){this[_0xda2a('0x11')][_0xda2a('0x1a')](_0x38e7d3)[_0xda2a('0x16')](function(_0x20b7d7){_0x8158af(null,_0x20b7d7?_0x20b7d7['name']:![]);})['catch'](function(_0x522fff){_0x8158af(_0x522fff);});};AGIVertices[_0xda2a('0x13')][_0xda2a('0x1b')]=function(_0x25baf8,_0x1bfa9a){this[_0xda2a('0x11')][_0xda2a('0x1c')](_0x25baf8)[_0xda2a('0x16')](function(_0x437961){_0x1bfa9a(null,_0x437961?_0x437961[_0xda2a('0x17')]:![]);})['catch'](function(_0x5afa9d){_0x1bfa9a(_0x5afa9d);});};AGIVertices[_0xda2a('0x13')][_0xda2a('0x1d')]=function(_0x4ebfe8,_0x1ee8c7){this[_0xda2a('0x11')]['getSquareOdbcById'](_0x4ebfe8)['then'](function(_0x7ea0e8){_0x1ee8c7(null,_0x7ea0e8?_0x7ea0e8[_0xda2a('0x1e')]:![]);})[_0xda2a('0x18')](function(_0x4e795d){_0x1ee8c7(_0x4e795d);});};AGIVertices['prototype'][_0xda2a('0x1f')]=function(_0x35113f,_0x25d641){this[_0xda2a('0x11')][_0xda2a('0x20')](_0x35113f)[_0xda2a('0x16')](function(_0x2a37ab){_0x25d641(null,_0x2a37ab?_0x2a37ab['name']:![]);})[_0xda2a('0x18')](function(_0x457f0b){_0x25d641(_0x457f0b);});};AGIVertices[_0xda2a('0x13')][_0xda2a('0x21')]=function(_0x2180d0,_0x680815){this[_0xda2a('0x11')][_0xda2a('0x22')](_0x2180d0)[_0xda2a('0x16')](function(_0x7f76ea){_0x680815(null,_0x7f76ea?_0x7f76ea[_0xda2a('0x17')]:![]);})[_0xda2a('0x18')](function(_0x45e3c7){_0x680815(_0x45e3c7);});};AGIVertices['prototype'][_0xda2a('0x23')]=function(_0x403dfc,_0x37b912){var _0x452334=this;this['rpc'][_0xda2a('0x24')](_0x403dfc)[_0xda2a('0x16')](function(_0x754602){_0x37b912(null,_0x754602?_0x452334[_0xda2a('0x25')](_0x754602['save_name']):![]);})['catch'](function(_0x2cb70f){_0x37b912(_0x2cb70f);});};AGIVertices['prototype'][_0xda2a('0x26')]=function(_0x15ffa,_0x128e1f){this[_0xda2a('0x11')][_0xda2a('0x27')](_0x15ffa)[_0xda2a('0x16')](function(_0x5737af){_0x128e1f(null,_0x5737af?_0x5737af:![]);})[_0xda2a('0x18')](function(_0x546701){_0x128e1f(_0x546701);});};AGIVertices[_0xda2a('0x13')][_0xda2a('0x28')]=function(_0x306740,_0x59f499,_0x1dfaf6){this[_0xda2a('0x12')][_0xda2a('0x28')](_0x306740,_0x59f499)[_0xda2a('0x16')](function(){_0x1dfaf6(null);})[_0xda2a('0x18')](function(_0x48a878){_0x1dfaf6(_0x48a878);});};AGIVertices['prototype'][_0xda2a('0x29')]=function(_0x31b4fd,_0x27b9c6){this[_0xda2a('0x11')][_0xda2a('0x2a')](_0x31b4fd)[_0xda2a('0x16')](function(_0x444105){if(_0x444105){if(_0x444105['IntervalId']){_0x27b9c6(null,[_0x444105[_0xda2a('0x2b')]]);}else{_0x27b9c6(null,_[_0xda2a('0x2c')](_0x444105[_0xda2a('0x2d')],'interval'));}}else{_0x27b9c6(null,![]);}})[_0xda2a('0x18')](function(_0x41a38d){_0x27b9c6(_0x41a38d);});};AGIVertices[_0xda2a('0x13')][_0xda2a('0x25')]=function(_0x47d2db){return util[_0xda2a('0x2e')](_0xda2a('0x2f'),FILES_PATH,_0x47d2db);};AGIVertices[_0xda2a('0x13')][_0xda2a('0x30')]=function(_0x1bbdb9,_0x2a74a7,_0x31782d){odbc[_0xda2a('0x31')](_0x1bbdb9,function(_0x14bb56){if(_0x14bb56){logger[_0xda2a('0x32')](_0xda2a('0x33'),_0x14bb56);_0x31782d(_0x14bb56);}else{logger[_0xda2a('0x34')](_0xda2a('0x35'));odbc[_0xda2a('0x36')](_0x2a74a7,function(_0x2714b0,_0x3609bb){if(_0x2714b0){logger[_0xda2a('0x34')]('Error\x20executing\x20query\x20%s',_0x2a74a7);_0x31782d(_0x2714b0);}else{logger[_0xda2a('0x34')]('Query\x20executed\x20correctly\x20%s',_0x2a74a7);odbc['close'](function(_0xc93618){if(_0xc93618){logger[_0xda2a('0x32')](_0xda2a('0x37'),_0xc93618);}_0x31782d(null,_0x3609bb);});}});}});};AGIVertices['prototype'][_0xda2a('0x38')]=function(_0x15ff90,_0x43efba){this[_0xda2a('0x11')][_0xda2a('0x39')](_0x15ff90)[_0xda2a('0x16')](function(_0x1e11e5){_0x43efba(null,_0x1e11e5?_0x1e11e5:![]);})['catch'](function(_0x4b3e17){_0x43efba(_0x4b3e17);});};AGIVertices[_0xda2a('0x13')][_0xda2a('0x3a')]=function(_0x59a5d8,_0x388597){this['rpc'][_0xda2a('0x3a')](_0x59a5d8)[_0xda2a('0x16')](function(_0x2f5b9e){_0x388597(null,_0x2f5b9e);})[_0xda2a('0x18')](function(_0x1f52d4){_0x388597(_0x1f52d4);});};AGIVertices[_0xda2a('0x13')]['createSquareDetailsReport']=function(_0x84c3c0,_0x319c70,_0x2c14e4){this['rpc'][_0xda2a('0x3b')]({'uniqueid':this['channel']['uniqueid'],'node':_0x84c3c0['label'],'application':_0x84c3c0['agicommand'],'data':_0x319c70||null,'project_name':this[_0xda2a('0x10')][_0xda2a('0x3c')],'callerid':this[_0xda2a('0x10')][_0xda2a('0x3d')]})['then'](function(_0x29adbf){if(_0x2c14e4){_0x2c14e4(null,_0x29adbf);}})['catch'](function(_0x1a77b4){if(_0x2c14e4){_0x2c14e4(_0x1a77b4);}});};AGIVertices[_0xda2a('0x13')][_0xda2a('0x3e')]=function(_0x232788,_0x45b6ec,_0x988ce8,_0x2a0d32){this[_0xda2a('0x11')][_0xda2a('0x3e')]({'uniqueid':this[_0xda2a('0x10')][_0xda2a('0x3f')],'callerid':this[_0xda2a('0x10')][_0xda2a('0x3d')],'calleridname':this[_0xda2a('0x10')]['calleridname'],'context':this[_0xda2a('0x10')][_0xda2a('0x40')],'extension':this[_0xda2a('0x10')]['extension'],'priority':this[_0xda2a('0x10')][_0xda2a('0x41')],'accountcode':this[_0xda2a('0x10')][_0xda2a('0x42')],'dnid':this['channel'][_0xda2a('0x43')],'projectName':this[_0xda2a('0x10')][_0xda2a('0x3c')],'saveName':_0x45b6ec,'filename':_0x232788[_0xda2a('0x44')]||_0x45b6ec,'savePath':_0x988ce8})[_0xda2a('0x16')](function(_0x148f30){_0x2a0d32(null,_0x148f30);})[_0xda2a('0x18')](function(_0x3bfc22){_0x2a0d32(_0x3bfc22);});};AGIVertices[_0xda2a('0x13')][_0xda2a('0x45')]=function(_0x54a069,_0x152cab,_0x5787d9){this['rpc'][_0xda2a('0x45')]({'uniqueid':this[_0xda2a('0x10')][_0xda2a('0x3f')],'body':_0x54a069,'direction':_0x152cab})[_0xda2a('0x16')](function(_0x3f6a91){if(_0x5787d9){_0x5787d9(null,_0x3f6a91);}})[_0xda2a('0x18')](function(_0x270cf5){if(_0x5787d9){_0x5787d9(_0x270cf5);}});};AGIVertices[_0xda2a('0x13')][_0xda2a('0x46')]=function(_0x188494,_0x324490){this[_0xda2a('0x11')][_0xda2a('0x46')]({'firstName':_['isEmpty'](_0x188494['name'])||_[_0xda2a('0x47')](_0x188494[_0xda2a('0x17')])?_0xda2a('0x48')+Math[_0xda2a('0x49')]():_0x188494[_0xda2a('0x17')],'lastName':_[_0xda2a('0x4a')](_0x188494[_0xda2a('0x4b')])||_[_0xda2a('0x47')](_0x188494[_0xda2a('0x4b')])?null:_0x188494[_0xda2a('0x4b')],'phone':_0x188494[_0xda2a('0x4c')],'ListId':_0x188494['list_id'],'scheduledat':_0x188494[_0xda2a('0x4d')],'callbackUniqueid':this[_0xda2a('0x10')]['uniqueid'],'tags':_0xda2a('0x4e'),'description':_0xda2a('0x4f')+_0x188494[_0xda2a('0x4d')][_0xda2a('0x50')](),'priority':_0x188494[_0xda2a('0x51')]})[_0xda2a('0x16')](function(_0x59466b){_0x324490(null,_0x59466b);})[_0xda2a('0x18')](function(_0x3cd84e){_0x324490(_0x3cd84e);});};AGIVertices[_0xda2a('0x13')][_0xda2a('0x52')]=function(_0x2911ef,_0x5531bd){this[_0xda2a('0x11')][_0xda2a('0x53')](_0x2911ef)[_0xda2a('0x16')](function(_0x577830){_0x5531bd(null,_0x577830?_0x577830[_0xda2a('0x17')]:![]);})['catch'](function(_0x5c03d2){_0x5531bd(_0x5c03d2);});};AGIVertices[_0xda2a('0x13')][_0xda2a('0x54')]=function(_0x4b59c1,_0x8d2b18,_0x298317){var _0x625dc4={'role':'agent'};_0x625dc4[_0x4b59c1]=this['channel'][_0xda2a('0x3d')];this[_0xda2a('0x11')][_0xda2a('0x54')](_0x625dc4,_0x8d2b18,this['channel'][_0xda2a('0x3f')])[_0xda2a('0x16')](function(_0x18e655){_0x298317(null,_[_0xda2a('0x47')](_0x18e655)?![]:!![]);})[_0xda2a('0x18')](function(_0x250618){logger['error'](_0x250618);_0x298317(null,![]);});};AGIVertices['prototype'][_0xda2a('0x55')]=function(_0xd91cc7,_0x3fcd0c){var _0x2302f6={'role':_0xda2a('0x56')};_0x2302f6[_0xd91cc7]=this[_0xda2a('0x10')][_0xda2a('0x3d')];this[_0xda2a('0x11')][_0xda2a('0x55')](_0x2302f6)[_0xda2a('0x16')](function(_0x122e83){_0x3fcd0c(null,_[_0xda2a('0x47')](_0x122e83)?![]:!![]);})['catch'](function(_0x69ae4e){logger[_0xda2a('0x32')](_0x69ae4e);_0x3fcd0c(null,![]);});};AGIVertices[_0xda2a('0x13')][_0xda2a('0x57')]=function(_0x706f2b,_0x1f675b){var _0x1e6070={'role':'agent'};_0x1e6070[_0x706f2b]=this['channel']['callerid'];this[_0xda2a('0x11')][_0xda2a('0x57')](_0x1e6070)['then'](function(_0x3d4b59){_0x1f675b(null,_[_0xda2a('0x47')](_0x3d4b59)?![]:!![]);})[_0xda2a('0x18')](function(_0x3044ef){logger['error'](_0x3044ef);_0x1f675b(null,![]);});};AGIVertices[_0xda2a('0x13')]['agentLogin']=function(_0x16a739,_0x20a3ed){var _0x240614={'role':'agent'};_0x240614[_0x16a739]=this[_0xda2a('0x10')]['callerid'];var _0x384ffb=_0x16a739!=_0xda2a('0x58')?util[_0xda2a('0x2e')](_0xda2a('0x59'),_0xda2a('0x5a'),this[_0xda2a('0x10')][_0xda2a('0x3d')]):undefined;this[_0xda2a('0x11')][_0xda2a('0x5b')](_0x240614,_0x384ffb)['then'](function(_0xa6a3dc){_0x20a3ed(null,_[_0xda2a('0x47')](_0xa6a3dc)?![]:!![]);})['catch'](function(_0xa19cbd){logger[_0xda2a('0x32')](_0xa19cbd);_0x20a3ed(null,![]);});};AGIVertices[_0xda2a('0x13')]['shellCommand']=function(_0x120fed,_0x4216a4){sh['exec'](_[_0xda2a('0x5c')](_0x120fed),function(_0x58723d,_0x2c32d8){var _0x2365c6=_0x2c32d8[_0xda2a('0x5d')](/(\r\n|\n|\r)/gm,'');_0x4216a4(null,_0x2365c6);});};AGIVertices[_0xda2a('0x13')][_0xda2a('0x5e')]=function(_0x39bca0,_0x1a2a39){scripts[_0xda2a('0x5e')](_0x39bca0[_0xda2a('0x5f')],_0x39bca0[_0xda2a('0x60')]||_0xda2a('0x61'),_0x39bca0[_0xda2a('0x61')],_0x39bca0['languageCode']||'en-US',_0x39bca0['ssmlGender']||'MALE',_0x39bca0[_0xda2a('0x62')]||'MP3')['then'](function(_0x4ee013){_0x1a2a39(null,_0x4ee013);})['catch'](function(_0x2a19a0){_0x1a2a39(_0x2a19a0);});};AGIVertices[_0xda2a('0x13')][_0xda2a('0x63')]=function(_0x2ae61e,_0x56689c){scripts['googleTTS'](_0x2ae61e[_0xda2a('0x61')],_0x2ae61e[_0xda2a('0x64')]||'en',0x1)[_0xda2a('0x16')](function(_0x266b44){_0x56689c(null,_0x266b44);})['catch'](function(_0x1adc6b){_0x56689c(_0x1adc6b);});};AGIVertices['prototype'][_0xda2a('0x65')]=function(_0x496797,_0x2e650e){var _0x1f4506={'uri':_0x496797[_0xda2a('0x66')],'method':_0x496797[_0xda2a('0x67')],'json':!![],'resolveWithFullResponse':!![],'timeout':typeof parseInt(_0x496797[_0xda2a('0x68')])===_0xda2a('0x69')&&parseInt(_0x496797[_0xda2a('0x68')])>=0x1?parseInt(_0x496797[_0xda2a('0x68')])*0x3e8:0x5*0x3e8};if(_[_0xda2a('0x6a')]([_0xda2a('0x6b'),_0xda2a('0x6c')],_0x1f4506['method'][_0xda2a('0x6d')]())){try{_0x1f4506[_0xda2a('0x6e')]=_0x496797[_0xda2a('0xc')]?JSON[_0xda2a('0x6f')](_0x496797[_0xda2a('0xc')]):{};}catch(_0x44f4e1){logger[_0xda2a('0x32')](_0xda2a('0x70'),_0x44f4e1);}}try{_0x1f4506[_0xda2a('0x71')]=_0x496797[_0xda2a('0xb')]?JSON[_0xda2a('0x6f')](_0x496797[_0xda2a('0xb')]):{};}catch(_0xe3eda1){logger['error']('An\x20incorrect\x20formatted\x20json\x20headers\x20has\x20been\x20passed\x20to\x20the\x20function',_0xe3eda1);}if(_0x496797[_0xda2a('0x72')]){try{var _0xd5b9ec=require(_0x496797[_0xda2a('0x72')])['sync'](this,_0x1f4506);_0x1f4506[_0xda2a('0x73')]=Mustache[_0xda2a('0x74')](_0x496797[_0xda2a('0x66')],_0xd5b9ec,{},['$$','$$']);if(_0x1f4506[_0xda2a('0x71')]){_0x1f4506[_0xda2a('0x71')]=JSON[_0xda2a('0x6f')](Mustache[_0xda2a('0x74')](JSON[_0xda2a('0x75')](_0x1f4506[_0xda2a('0x71')]),_0xd5b9ec,{},['$$','$$']));}if(_0x1f4506[_0xda2a('0x6e')]){_0x1f4506['body']=JSON['parse'](Mustache[_0xda2a('0x74')](JSON[_0xda2a('0x75')](_0x1f4506[_0xda2a('0x6e')]),_0xd5b9ec,{},['$$','$$']));}}catch(_0x37e2d6){logger[_0xda2a('0x32')](_0xda2a('0x76'),_0x37e2d6);}}rp(_0x1f4506)[_0xda2a('0x16')](function(_0x32878f){var _0x481b38={'statusCode':_0x32878f[_0xda2a('0x77')]||0xc8,'statusMessage':_0x32878f[_0xda2a('0x78')]||'OK','headers':_0x32878f[_0xda2a('0x71')]||{},'body':_0x32878f[_0xda2a('0x6e')]||{}};_0x2e650e(null,_0x481b38);})[_0xda2a('0x18')](function(_0x1de108){var _0x30e91e={'statusCode':_0x1de108['statusCode']||0x1f4,'statusMessage':_0x1de108[_0xda2a('0x79')]||_0xda2a('0x7a'),'headers':_0x1de108[_0xda2a('0x7b')]['headers']||{},'body':_0x1de108['options']['body']||{}};_0x2e650e(null,_0x30e91e);});};AGIVertices[_0xda2a('0x13')][_0xda2a('0x7c')]=function(_0x459e92,_0x13b749){scripts['googleDialogflow'](this[_0xda2a('0x10')][_0xda2a('0x3f')],_0x459e92['key'],_0x459e92[_0xda2a('0x61')],_0x459e92[_0xda2a('0x7d')]||'en')[_0xda2a('0x16')](function(_0x48eb27){_0x13b749(null,_0x48eb27);})[_0xda2a('0x18')](function(_0x95bf36){_0x13b749(_0x95bf36);});};AGIVertices[_0xda2a('0x13')][_0xda2a('0x7e')]=function(_0x3aea6e,_0x3b1836){scripts[_0xda2a('0x7e')](this['channel'],_0x3aea6e)[_0xda2a('0x16')](function(_0x28fe71){_0x3b1836(null,_0x28fe71);})[_0xda2a('0x18')](function(_0x37ae90){_0x3b1836(_0x37ae90);});};AGIVertices[_0xda2a('0x13')][_0xda2a('0x7f')]=function(_0x19d9d0,_0x394b70){scripts['ispeechTTS'](_0x19d9d0['key'],_0x19d9d0[_0xda2a('0x61')],_0x19d9d0[_0xda2a('0x80')]||_0xda2a('0x81'),_0x19d9d0[_0xda2a('0x82')])[_0xda2a('0x16')](function(_0x2c9053){_0x394b70(null,_0x2c9053);})['catch'](function(_0x526a51){_0x394b70(_0x526a51);});};AGIVertices[_0xda2a('0x13')][_0xda2a('0x83')]=function(_0x508ba1,_0x18c6fa,_0xd7ff6d){scripts[_0xda2a('0x83')](_0x18c6fa,_0x508ba1[_0xda2a('0x84')],_0x508ba1['ispeech_asr_language']||_0xda2a('0x81'),this[_0xda2a('0x85')](_0x508ba1['model'])?_0x508ba1[_0xda2a('0x86')]:undefined)[_0xda2a('0x16')](function(_0x4b7958){_0xd7ff6d(null,_0x4b7958);})['catch'](function(_0x1ecfd1){_0xd7ff6d(_0x1ecfd1);});};AGIVertices['prototype'][_0xda2a('0x87')]=function(_0x259b1f,_0x2e8ce5){scripts[_0xda2a('0x87')](_0x259b1f[_0xda2a('0x88')],_0x259b1f[_0xda2a('0x89')],_0x259b1f[_0xda2a('0x8a')],_0x259b1f[_0xda2a('0x8b')]||_0xda2a('0x8c'),_0x259b1f[_0xda2a('0x61')],_0x259b1f[_0xda2a('0x8d')]||_0xda2a('0x61'))[_0xda2a('0x16')](function(_0x145263){_0x2e8ce5(null,_0x145263);})['catch'](function(_0x49262e){_0x2e8ce5(_0x49262e);});};AGIVertices[_0xda2a('0x13')][_0xda2a('0x8e')]=function(_0x9137ed,_0x1c0558){scripts[_0xda2a('0x8e')](this[_0xda2a('0x10')]['uniqueid'],_0x9137ed[_0xda2a('0x88')],_0x9137ed[_0xda2a('0x89')],_0x9137ed['aws_lex_region'],_0x9137ed['text'],_0x9137ed[_0xda2a('0x8f')])[_0xda2a('0x16')](function(_0x1ed60f){_0x1c0558(null,_0x1ed60f);})[_0xda2a('0x18')](function(_0xdf8cf2){_0x1c0558(_0xdf8cf2);});};AGIVertices['prototype']['googleASR']=function(_0x52ddcb,_0x173de3,_0x430170){scripts['googleASR'](_0x173de3,_0x52ddcb[_0xda2a('0x84')],_0x52ddcb[_0xda2a('0x90')]||'en-US')[_0xda2a('0x16')](function(_0x3c2138){_0x430170(null,_0x3c2138);})['catch'](function(_0x479dae){_0x430170(_0x479dae);});};AGIVertices[_0xda2a('0x13')][_0xda2a('0x91')]=function(_0x3325f6,_0x131c06,_0x331e7d){scripts[_0xda2a('0x91')](_0x131c06,_0x3325f6['appid'],_0x3325f6['appsecret'],_0x3325f6['uri'])[_0xda2a('0x16')](function(_0x325f06){_0x331e7d(null,_0x325f06);})['catch'](function(_0x3fcab){_0x331e7d(_0x3fcab);});};AGIVertices[_0xda2a('0x13')]['clear']=function(_0x5b15c0){var _0x50938f=_[_0xda2a('0x6a')](verticesWithRetry,_0x5b15c0[_0xda2a('0x92')])?_0x5b15c0:_[_0xda2a('0x93')](_0x5b15c0);for(var _0x8a5bac in _0x50938f){if(_0x50938f['hasOwnProperty'](_0x8a5bac)){if(_0x50938f[_0x8a5bac]&&_['isString'](_0x50938f[_0x8a5bac])){if(_[_0xda2a('0x6a')](recursiveMapAttributes,_0x8a5bac)){_0x50938f[_0x8a5bac]=this[_0xda2a('0x94')](_0x50938f[_0x8a5bac]);}else{_0x50938f[_0x8a5bac]=this[_0xda2a('0x95')](_0x50938f[_0x8a5bac]);}}}}return _0x50938f;};AGIVertices[_0xda2a('0x13')][_0xda2a('0x96')]=function(_0x1244ab){for(var _0x23c42e in _0x1244ab){if(_0x1244ab[_0xda2a('0x97')](_0x23c42e)){if(_['isPlainObject'](_0x1244ab[_0x23c42e])){this[_0xda2a('0x96')](_0x1244ab[_0x23c42e]);}else if(_['isArray'](_0x1244ab[_0x23c42e])){for(var _0x2609ea=0x0;_0x2609ea<_0x1244ab[_0x23c42e][_0xda2a('0x98')];_0x2609ea++){this['recursiveNodeIndex'](_0x1244ab[_0x23c42e][_0x2609ea]);}}else if(_[_0xda2a('0x99')](_0x1244ab[_0x23c42e])){_0x1244ab[_0x23c42e]=this[_0xda2a('0x95')](_0x1244ab[_0x23c42e]);}}}};AGIVertices[_0xda2a('0x13')]['saveRestApiResult']=function(_0x47242a,_0x5b35a5){for(var _0x1abb1f in _0x47242a){if(_0x47242a[_0xda2a('0x97')](_0x1abb1f)){if(_[_0xda2a('0x9a')](_0x47242a[_0x1abb1f])){if(!_['isEmpty'](_0x47242a[_0x1abb1f])){this[_0xda2a('0x9b')](_0x47242a[_0x1abb1f],util[_0xda2a('0x2e')](_0xda2a('0x9c'),_0x5b35a5,_0x1abb1f));}}else if(_[_0xda2a('0x9d')](_0x47242a[_0x1abb1f])){for(var _0x3f2915=0x0;_0x3f2915<_0x47242a[_0x1abb1f][_0xda2a('0x98')];_0x3f2915++){this[_0xda2a('0x9b')](_0x47242a[_0x1abb1f][_0x3f2915],util['format'](_0xda2a('0x9c'),_0x5b35a5,_0x1abb1f+'['+_0x3f2915+']'));}}else{if(!_[_0xda2a('0x47')](_0x47242a[_0x1abb1f])){this['channel'][_0xda2a('0x9e')](util[_0xda2a('0x2e')](_0xda2a('0x9c'),_0x5b35a5,_0x1abb1f),_0x47242a[_0x1abb1f]);}}}}};AGIVertices[_0xda2a('0x13')]['replaceObjectAllVariables']=function(_0x43cd12){try{var _0x174806=JSON[_0xda2a('0x6f')](_0x43cd12);this[_0xda2a('0x96')](_0x174806);return JSON[_0xda2a('0x75')](_0x174806);}catch(_0x2e3a38){return this[_0xda2a('0x95')](_0x43cd12);}};AGIVertices[_0xda2a('0x13')][_0xda2a('0x95')]=function(_0x199ffe){var _0x25033b=_0x199ffe[_0xda2a('0x9f')]('{');for(var _0x55a00c=0x1;_0x55a00c<_0x25033b[_0xda2a('0x98')];_0x55a00c+=0x1){var _0x3458b0=_0x25033b[_0x55a00c]['split']('}');if(_0x3458b0[_0xda2a('0x98')]>0x1){_0x199ffe=_0x199ffe['replaceAll']('{'+_0x3458b0[0x0]+'}',this[_0xda2a('0x10')][_0xda2a('0x14')](_0x3458b0[0x0])['extra']||_0x3458b0[0x0]);}}if(_0x25033b[_0xda2a('0x98')]===0x1){return _0x199ffe[_0xda2a('0x50')]();}return this[_0xda2a('0x95')](_0x199ffe);};AGIVertices[_0xda2a('0x13')][_0xda2a('0xa0')]=function(_0x39594a,_0x1cece8){var _0x46fcbf=this['channel'][_0xda2a('0x14')](_0x39594a);if(_0x46fcbf[_0xda2a('0xa1')]===-0x1){return _0x46fcbf;}logger[_0xda2a('0x34')](util[_0xda2a('0x2e')]('The\x20\x22%s\x22\x20variable\x20value\x20is:\x20%s',_0x1cece8,_0x46fcbf[_0xda2a('0xa2')]));return this[_0xda2a('0x10')][_0xda2a('0x9e')](_0x1cece8,_0x46fcbf['extra']);};AGIVertices['prototype']['isConfigured']=function(_0x5742fa){return _0x5742fa&&_0x5742fa!=='0'&&_0x5742fa!=='-1'&&_0x5742fa!=='';};AGIVertices[_0xda2a('0x13')][_0xda2a('0xa3')]=function(_0x400e9a){this[_0xda2a('0x3b')][_0xda2a('0xa4')](this,_0x400e9a,'-');_0x400e9a[_0xda2a('0xa5')]=_0x400e9a['maxRetry'];return{'code':0xc8,'result':'-'};};AGIVertices['prototype'][_0xda2a('0xa6')]=function(_0x2cfd68){logger[_0xda2a('0x34')](util[_0xda2a('0x2e')](_0xda2a('0xa7'),_0x2cfd68['label']));if(!this[_0xda2a('0x85')](_0x2cfd68['text'])){return this[_0xda2a('0x10')][_0xda2a('0xa8')]('no\x20text\x20configured');}var _0x1560e3='\x22'+_0x2cfd68[_0xda2a('0x61')]+'\x22';if(this[_0xda2a('0x85')](_0x2cfd68[_0xda2a('0x7b')])){_0x1560e3+=','+_0x2cfd68[_0xda2a('0x7b')];}var _0xbc4a07=this[_0xda2a('0x10')][_0xda2a('0xa9')](_0xda2a('0xaa'),_0x1560e3);if(_0xbc4a07[_0xda2a('0xa1')]===-0x1){return _0xbc4a07;}return this[_0xda2a('0x10')][_0xda2a('0xa8')](util[_0xda2a('0x2e')](_0xda2a('0xab'),_0x1560e3));};AGIVertices[_0xda2a('0x13')]['mrcprecog']=function(_0x68a2e9){logger[_0xda2a('0x34')](util[_0xda2a('0x2e')]('Enter\x20in\x20MRCPRecog\x20(%s)\x20block',_0x68a2e9['label']));if(!this[_0xda2a('0x85')](_0x68a2e9[_0xda2a('0xac')])){return this[_0xda2a('0x10')][_0xda2a('0xa8')](_0xda2a('0xad'));}var _0x3bd581=_0x68a2e9[_0xda2a('0xac')];if(this[_0xda2a('0x85')](_0x68a2e9[_0xda2a('0x7b')])){_0x3bd581+=','+_0x68a2e9[_0xda2a('0x7b')];}var _0x593f32=this['channel'][_0xda2a('0xa9')]('MRCPRecog',_0x3bd581);if(_0x593f32[_0xda2a('0xa1')]===-0x1){return _0x593f32;}var _0x42b31e=this[_0xda2a('0xa0')](_0xda2a('0xae'),_0xda2a('0xaf'));if(_0x42b31e['result']===-0x1){return _0x42b31e;}var _0x1b2260=this[_0xda2a('0xa0')](_0xda2a('0xb0'),_0xda2a('0xb1'));if(_0x1b2260['result']===-0x1){return _0x1b2260;}var _0x29b485=this['getAndSetVariable'](_0xda2a('0xb2'),_0xda2a('0xb3'));if(_0x29b485[_0xda2a('0xa1')]===-0x1){return _0x29b485;}return this['channel']['noop'](util[_0xda2a('0x2e')]('Executed\x20command\x20MRCPRecog\x20%s',_0x3bd581));};AGIVertices[_0xda2a('0x13')][_0xda2a('0x8')]=function(_0x912fd5){logger[_0xda2a('0x34')](util['format'](_0xda2a('0xb4'),_0x912fd5[_0xda2a('0xb5')]));return this[_0xda2a('0x10')][_0xda2a('0x8')]([_0x912fd5[_0xda2a('0xb6')],_0x912fd5[_0xda2a('0xb7')]]);};AGIVertices[_0xda2a('0x13')][_0xda2a('0xb8')]=function(_0x29dd1c){logger[_0xda2a('0x34')](util['format'](_0xda2a('0xb9'),_0x29dd1c[_0xda2a('0xb5')]));if(this[_0xda2a('0x85')](_0x29dd1c[_0xda2a('0x68')])){logger['info'](util[_0xda2a('0x2e')](_0xda2a('0xba'),_0x29dd1c[_0xda2a('0x68')]));var _0x104bff=this[_0xda2a('0x10')][_0xda2a('0xbb')](_0x29dd1c['timeout']);if(_0x104bff[_0xda2a('0xa1')]===-0x1){return _0x104bff;}}return this['channel']['answer']();};AGIVertices[_0xda2a('0x13')][_0xda2a('0x4e')]=function(_0x54b66d){logger[_0xda2a('0x34')](util[_0xda2a('0x2e')](_0xda2a('0xbc'),_0x54b66d['label']));if(!this['isConfigured'](_0x54b66d['list_id'])){return this[_0xda2a('0x10')][_0xda2a('0x32')](_0x54b66d,_0xda2a('0xbd'));}_0x54b66d[_0xda2a('0x4d')]=moment();if(this[_0xda2a('0x85')](_0x54b66d[_0xda2a('0xbe')])){_0x54b66d['scheduledAt']=moment()[_0xda2a('0xbf')](_0x54b66d[_0xda2a('0xbe')],_0xda2a('0xc0'));}if(!this[_0xda2a('0x85')](_0x54b66d['callback_priority'])){_0x54b66d[_0xda2a('0x51')]=0x2;}this[_0xda2a('0x46')]['sync'](this,_0x54b66d);return this[_0xda2a('0x10')][_0xda2a('0xa8')](util['format']('CALLBACK\x20added\x20phone:\x20%s\x20on\x20list:\x20%s\x20at\x20%s',_0x54b66d[_0xda2a('0x4c')],_0x54b66d[_0xda2a('0xc1')],_0x54b66d[_0xda2a('0x4d')]));};AGIVertices[_0xda2a('0x13')][_0xda2a('0xc2')]=function(_0x3e5806){logger['info'](util[_0xda2a('0x2e')](_0xda2a('0xc3'),_0x3e5806[_0xda2a('0xb5')]));var _0xe89927=this[_0xda2a('0x10')][_0xda2a('0xa9')](_0x3e5806[_0xda2a('0xc4')],_0x3e5806[_0xda2a('0x7b')]);if(_0xe89927['result']===-0x1){return _0xe89927;}return this[_0xda2a('0x10')][_0xda2a('0xa8')](util[_0xda2a('0x2e')]('Executed\x20command\x20%s\x20%s',_0x3e5806[_0xda2a('0xc4')],_0x3e5806[_0xda2a('0x7b')]));};AGIVertices[_0xda2a('0x13')][_0xda2a('0xc5')]=function(_0x37b8c6){logger['info'](util[_0xda2a('0x2e')](_0xda2a('0xc6'),_0x37b8c6[_0xda2a('0xb5')]));if(!this[_0xda2a('0x85')](_0x37b8c6[_0xda2a('0x61')])){return this[_0xda2a('0x10')][_0xda2a('0xa8')](_0xda2a('0xc7'));}var _0x34489a='\x22'+_0x37b8c6[_0xda2a('0x61')]+'\x22';if(this[_0xda2a('0x85')](_0x37b8c6[_0xda2a('0x7b')])){_0x34489a+=','+_0x37b8c6[_0xda2a('0x7b')];}var _0x3ecde1=this[_0xda2a('0x10')][_0xda2a('0xa9')](_0xda2a('0xaa'),_0x34489a);if(_0x3ecde1[_0xda2a('0xa1')]===-0x1){return _0x3ecde1;}return this[_0xda2a('0x10')][_0xda2a('0xa8')](util[_0xda2a('0x2e')]('Executed\x20command\x20MRCPSynth\x20%s',_0x34489a));};AGIVertices[_0xda2a('0x13')]['sestektts']=function(_0x1e4389){logger[_0xda2a('0x34')](util[_0xda2a('0x2e')](_0xda2a('0xc8'),_0x1e4389[_0xda2a('0xb5')]));if(!this['isConfigured'](_0x1e4389[_0xda2a('0x61')])){return this[_0xda2a('0x10')][_0xda2a('0xa8')](_0xda2a('0xc7'));}var _0x52ff8f='\x22'+_0x1e4389[_0xda2a('0x61')]+'\x22';if(this['isConfigured'](_0x1e4389[_0xda2a('0x7b')])){_0x52ff8f+=','+_0x1e4389[_0xda2a('0x7b')];}var _0x2f062e=this['channel'][_0xda2a('0xa9')](_0xda2a('0xaa'),_0x52ff8f);if(_0x2f062e[_0xda2a('0xa1')]===-0x1){return _0x2f062e;}return this[_0xda2a('0x10')]['noop'](util[_0xda2a('0x2e')](_0xda2a('0xab'),_0x52ff8f));};AGIVertices[_0xda2a('0x13')][_0xda2a('0xc9')]=function(_0x34f043){logger['info'](util[_0xda2a('0x2e')]('Enter\x20in\x20LUMENVOXASR\x20(%s)\x20block',_0x34f043[_0xda2a('0xb5')]));if(!this[_0xda2a('0x85')](_0x34f043[_0xda2a('0xac')])){return this['channel'][_0xda2a('0xa8')]('no\x20grammar\x20configured');}var _0x420833=_0x34f043[_0xda2a('0xac')];if(this[_0xda2a('0x85')](_0x34f043['options'])){_0x420833+=','+_0x34f043['options'];}var _0x216f04=this[_0xda2a('0x10')][_0xda2a('0xa9')](_0xda2a('0xca'),_0x420833);if(_0x216f04[_0xda2a('0xa1')]===-0x1){return _0x216f04;}var _0x5a810b=this[_0xda2a('0xa0')](_0xda2a('0xae'),_0xda2a('0xcb'));if(_0x5a810b[_0xda2a('0xa1')]===-0x1){return _0x5a810b;}var _0x49f450=this[_0xda2a('0xa0')]('RECOG_INPUT()',_0xda2a('0xcc'));if(_0x49f450[_0xda2a('0xa1')]===-0x1){return _0x49f450;}var _0x1a109d=this[_0xda2a('0xa0')]('RECOG_INSTANCE()',_0xda2a('0xcd'));if(_0x1a109d[_0xda2a('0xa1')]===-0x1){return _0x1a109d;}return this['channel'][_0xda2a('0xa8')](util['format'](_0xda2a('0xce'),_0x420833));};AGIVertices[_0xda2a('0x13')]['sestekasr']=function(_0x590f36){logger['info'](util[_0xda2a('0x2e')](_0xda2a('0xcf'),_0x590f36['label']));if(!this[_0xda2a('0x85')](_0x590f36[_0xda2a('0xac')])){return this[_0xda2a('0x10')]['noop'](_0xda2a('0xad'));}var _0xf1a543=_0x590f36[_0xda2a('0xac')];if(this['isConfigured'](_0x590f36['options'])){_0xf1a543+=','+_0x590f36[_0xda2a('0x7b')];}var _0x5d8439=this[_0xda2a('0x10')][_0xda2a('0xa9')](_0xda2a('0xca'),_0xf1a543);if(_0x5d8439[_0xda2a('0xa1')]===-0x1){return _0x5d8439;}var _0x49a0e9=this['getAndSetVariable']('RECOG_CONFIDENCE()','SESTEK_ASR_CONFIDENCE');if(_0x49a0e9[_0xda2a('0xa1')]===-0x1){return _0x49a0e9;}var _0xab99ff=this[_0xda2a('0xa0')]('RECOG_INPUT()',_0xda2a('0xd0'));if(_0xab99ff[_0xda2a('0xa1')]===-0x1){return _0xab99ff;}var _0x438fd4=this[_0xda2a('0xa0')](_0xda2a('0xb2'),_0xda2a('0xd1'));if(_0x438fd4[_0xda2a('0xa1')]===-0x1){return _0x438fd4;}return this[_0xda2a('0x10')][_0xda2a('0xa8')](util[_0xda2a('0x2e')](_0xda2a('0xce'),_0xf1a543));};AGIVertices[_0xda2a('0x13')]['database']=function(_0x5290fe){logger['info'](util[_0xda2a('0x2e')](_0xda2a('0xd2'),_0x5290fe[_0xda2a('0xb5')]));if(!this[_0xda2a('0x85')](_0x5290fe['odbc_id'])){return this['channel'][_0xda2a('0x32')](_0x5290fe,'no\x20database\x20selected');}var _0x199fc0=this[_0xda2a('0x1d')][_0xda2a('0xa4')](this,_0x5290fe[_0xda2a('0xd3')]);if(!_0x199fc0){return this[_0xda2a('0x10')][_0xda2a('0x32')](_0x5290fe,'no\x20odbc\x20database\x20found');}if(!this[_0xda2a('0x85')](_0x5290fe[_0xda2a('0x36')])){return this['channel'][_0xda2a('0x32')](_0x5290fe,_0xda2a('0xd4'));}var _0x45b532=_0x5290fe['query']['replace'](/(\r\n|\n|\r)/gm,'\x20');this['channel']['noop'](util[_0xda2a('0x2e')](_0xda2a('0xd5'),_0x45b532));var _0x1aad3b=this[_0xda2a('0x30')]['sync'](this,_0x199fc0,_0x45b532);this[_0xda2a('0x3b')][_0xda2a('0xa4')](this,_0x5290fe,_0x45b532);if(!this[_0xda2a('0x85')](_0x5290fe[_0xda2a('0xd6')])){return this['channel']['noop'](_0xda2a('0xd7'));}var _0xf8fbc4=this[_0xda2a('0x14')][_0xda2a('0xa4')](this,_0x5290fe['variable_id']);if(!_0xf8fbc4){return this['channel'][_0xda2a('0x32')](_0x5290fe,_0xda2a('0xd8'));}var _0x59fad9=this;_0x1aad3b[_0xda2a('0xd9')](function(_0x5195b8,_0x321c32){Object[_0xda2a('0xda')](_0x5195b8)['forEach'](function(_0x297493){_0x59fad9[_0xda2a('0x10')]['setVariable'](util[_0xda2a('0x2e')](_0xda2a('0xdb'),_0xf8fbc4,_0x321c32,_0x297493),_0x5195b8[_0x297493]);});});this[_0xda2a('0x10')][_0xda2a('0x9e')](util['format'](_0xda2a('0xdc'),_0xf8fbc4),_0x1aad3b[_0xda2a('0x98')]);return this['channel'][_0xda2a('0xa8')](util['format'](_0xda2a('0xdd'),_0xf8fbc4));};AGIVertices['prototype']['dial']=function(_0x47efaa){logger[_0xda2a('0xde')](util[_0xda2a('0x2e')]('Enter\x20in\x20DIAL\x20(%s)\x20block',_0x47efaa[_0xda2a('0xb5')]));if(!this[_0xda2a('0x85')](_0x47efaa[_0xda2a('0xdf')])){return this[_0xda2a('0x10')][_0xda2a('0x32')](_0x47efaa,_0xda2a('0xe0'));}var _0x1566d1=this[_0xda2a('0x1f')][_0xda2a('0xa4')](this,_0x47efaa[_0xda2a('0xdf')]);if(!_0x1566d1){return this[_0xda2a('0x10')][_0xda2a('0x32')](_0x47efaa,_0xda2a('0xe1'));}var _0x3282cd=this[_0xda2a('0x10')][_0xda2a('0xa9')]('DIAL',[util[_0xda2a('0x2e')]('SIP/%s',_0x1566d1),_0x47efaa['timeout'],_0x47efaa[_0xda2a('0xe2')],_0x47efaa[_0xda2a('0x66')]]);if(_0x3282cd['result']===-0x1){return _0x3282cd;}return this[_0xda2a('0x10')][_0xda2a('0xa8')](util[_0xda2a('0x2e')](_0xda2a('0xe3'),_0xda2a('0xe4')));};AGIVertices[_0xda2a('0x13')]['dialogflow']=function(_0xac9a2d){logger[_0xda2a('0x34')](util[_0xda2a('0x2e')](_0xda2a('0xe5'),_0xac9a2d[_0xda2a('0xb5')]));if(!this[_0xda2a('0x85')](_0xac9a2d[_0xda2a('0x84')])){return this[_0xda2a('0x10')][_0xda2a('0xa8')](_0xda2a('0xe6'));}if(!this[_0xda2a('0x85')](_0xac9a2d[_0xda2a('0x61')])){return this[_0xda2a('0x10')][_0xda2a('0xa8')]('no\x20text\x20configured');}this['channel']['bot']=!![];this[_0xda2a('0x3b')](_0xac9a2d);this[_0xda2a('0x45')](_0xac9a2d[_0xda2a('0x61')],'in');this[_0xda2a('0x10')][_0xda2a('0xa8')](util[_0xda2a('0x2e')](_0xda2a('0xe7'),_0xac9a2d[_0xda2a('0x61')]));var _0x222991=this[_0xda2a('0x7c')][_0xda2a('0xa4')](this,_0xac9a2d);if(_0x222991){for(var _0x33b242 in _0x222991){if(_0x222991[_0xda2a('0x97')](_0x33b242)){this[_0xda2a('0x10')][_0xda2a('0x9e')](util['format'](_0xda2a('0xe8'),_0x33b242['toUpperCase']()),_0x222991[_0x33b242]);}}this['createSquareMessage'](_0x222991[_0xda2a('0xe9')],_0xda2a('0xea'));return this[_0xda2a('0x10')]['noop'](util[_0xda2a('0x2e')](_0xda2a('0xeb'),_0x222991[_0xda2a('0xe9')]));}return this[_0xda2a('0x10')][_0xda2a('0x32')](_0xac9a2d,_0xda2a('0xec'));};AGIVertices[_0xda2a('0x13')][_0xda2a('0xed')]=function(_0x5ae48b){logger[_0xda2a('0x34')](util['format'](_0xda2a('0xee'),_0x5ae48b[_0xda2a('0xb5')]));if(!this[_0xda2a('0x85')](_0x5ae48b[_0xda2a('0xef')])){return this[_0xda2a('0x10')][_0xda2a('0xa8')]('no\x20ndauth\x20url\x20configured');}if(!this[_0xda2a('0x85')](_0x5ae48b['username'])){return this['channel'][_0xda2a('0xa8')]('no\x20username\x20configured');}if(!this['isConfigured'](_0x5ae48b['password'])){return this[_0xda2a('0x10')][_0xda2a('0xa8')]('no\x20password\x20configured');}if(!this[_0xda2a('0x85')](_0x5ae48b[_0xda2a('0xf0')])){return this[_0xda2a('0x10')][_0xda2a('0xa8')]('no\x20text\x20configured');}this[_0xda2a('0x10')][_0xda2a('0xf1')]=!![];this[_0xda2a('0x3b')](_0x5ae48b);this[_0xda2a('0x45')](_0x5ae48b[_0xda2a('0x61')],'in');this[_0xda2a('0x10')]['noop'](util[_0xda2a('0x2e')](_0xda2a('0xf2'),_0x5ae48b[_0xda2a('0x61')]));var _0x7f4c23=this['sestekNDA']['sync'](this,_0x5ae48b);if(_0x7f4c23){for(var _0x2b2e8b in _0x7f4c23){if(_0x7f4c23[_0xda2a('0x97')](_0x2b2e8b)){this[_0xda2a('0x10')][_0xda2a('0x9e')](util[_0xda2a('0x2e')](_0xda2a('0xf3'),_0x2b2e8b[_0xda2a('0x6d')]()),_0x7f4c23[_0x2b2e8b]);}}this[_0xda2a('0x45')](_0x7f4c23[_0xda2a('0xe9')],_0xda2a('0xea'));if(_0x7f4c23[_0xda2a('0xf4')]){this['channel']['noop'](util[_0xda2a('0x2e')](_0xda2a('0xf5'),_0x7f4c23[_0xda2a('0xf4')]));var _0xecd335=this['channel'][_0xda2a('0xf6')](_0x7f4c23[_0xda2a('0xf4')]);try{fs['unlink'](_0x7f4c23['audiofile']+_0xda2a('0xf7'));}catch(_0x1804cb){logger[_0xda2a('0x32')](_0x1804cb);}return _0xecd335;}else{return this[_0xda2a('0x10')][_0xda2a('0xa8')](util['format'](_0xda2a('0xf8'),_0x7f4c23[_0xda2a('0xe9')]));}}return this[_0xda2a('0x10')][_0xda2a('0x32')](_0x5ae48b,_0xda2a('0xf9'));};AGIVertices['prototype'][_0xda2a('0xfa')]=function(_0x131737){logger[_0xda2a('0x34')](util[_0xda2a('0x2e')]('Enter\x20in\x20END\x20(%s)\x20block',_0x131737[_0xda2a('0xb5')]));return this['channel'][_0xda2a('0xa8')]('end');};AGIVertices[_0xda2a('0x13')]['ext_dial']=function(_0x5df3c8){logger['info'](util[_0xda2a('0x2e')](_0xda2a('0xfb'),_0x5df3c8[_0xda2a('0xb5')]));var _0x3479f5='';if(_0x5df3c8[_0xda2a('0xfc')]){if(!this[_0xda2a('0x85')](_0x5df3c8[_0xda2a('0xfc')])){return this[_0xda2a('0x10')][_0xda2a('0x32')](_0x5df3c8,_0xda2a('0xfd'));}else{var _0x3a509b=parseInt(_0x5df3c8[_0xda2a('0xfc')],0xa);if(isNaN(_0x3a509b)){_0x3479f5=_0x5df3c8['trunk_id'];}else{_0x3479f5=this['getTrunk'][_0xda2a('0xa4')](this,_0x5df3c8['trunk_id']);if(!_0x3479f5){return this[_0xda2a('0x10')]['error'](_0x5df3c8,_0xda2a('0xfe'));}}}}else if(_0x5df3c8['trunk_name']){_0x3479f5=_0x5df3c8[_0xda2a('0xff')];}else{return this['channel'][_0xda2a('0x32')](_0x5df3c8,_0xda2a('0xfd'));}var _0x478966=this['channel']['exec'](_0xda2a('0xe4'),[util['format'](_0xda2a('0x100'),_0x3479f5,_0x5df3c8[_0xda2a('0x4c')]),_0x5df3c8[_0xda2a('0x68')],_0x5df3c8['opts'],_0x5df3c8['url']]);if(_0x478966[_0xda2a('0xa1')]===-0x1){return _0x478966;}return this[_0xda2a('0x10')]['noop'](util['format'](_0xda2a('0xe3'),_0xda2a('0xe4')));};AGIVertices[_0xda2a('0x13')][_0xda2a('0x101')]=function(_0x3d1e1e){logger[_0xda2a('0x34')](util[_0xda2a('0x2e')](_0xda2a('0x102'),_0x3d1e1e[_0xda2a('0xb5')]));return this[_0xda2a('0x10')][_0xda2a('0xa8')]('finally');};AGIVertices[_0xda2a('0x13')]['getdigits']=function(_0x118e4c){logger['info'](util[_0xda2a('0x2e')](_0xda2a('0x103'),_0x118e4c[_0xda2a('0xb5')]));if(_0x118e4c['retry']===0x0){return this[_0xda2a('0xa3')](_0x118e4c);}_0x118e4c[_0xda2a('0xa5')]-=0x1;if(!this[_0xda2a('0x85')](_0x118e4c[_0xda2a('0x104')])){return this[_0xda2a('0x10')]['error'](_0x118e4c,_0xda2a('0x105'));}var _0x5e7636=this[_0xda2a('0x23')][_0xda2a('0xa4')](this,_0x118e4c['file_id']);if(!_0x5e7636){return this[_0xda2a('0x10')][_0xda2a('0x32')](_0x118e4c,_0xda2a('0x106'));}if(!this['isConfigured'](_0x118e4c[_0xda2a('0xd6')])){return this[_0xda2a('0x10')][_0xda2a('0x32')]('no\x20variable\x20selected\x20for\x20the\x20result');}var _0x3fc48b=this[_0xda2a('0x10')]['getData'](_0x5e7636,_0x118e4c[_0xda2a('0x107')],_0x118e4c[_0xda2a('0x108')]);var _0x39010d=_0x3fc48b['result']?_0x3fc48b['result'][_0xda2a('0x50')]():'';logger[_0xda2a('0x34')](_0xda2a('0x109'),JSON[_0xda2a('0x75')](_0x3fc48b));if(_0x3fc48b[_0xda2a('0xa1')]===-0x1){this[_0xda2a('0x3b')][_0xda2a('0xa4')](this,_0x118e4c,_0x39010d);return _0x3fc48b;}else if(_0x3fc48b[_0xda2a('0xa2')]===_0xda2a('0x68')){_0x3fc48b[_0xda2a('0xa1')]=_0x39010d[_0xda2a('0x98')]>=parseInt(_0x118e4c[_0xda2a('0x10a')])?'x':'i';}else{_0x3fc48b[_0xda2a('0xa1')]=_0x39010d[_0xda2a('0x98')]>=parseInt(_0x118e4c[_0xda2a('0x10a')])&&_0x39010d['length']<=parseInt(_0x118e4c['maxdigit'])?'x':'i';}var _0x30804d=this[_0xda2a('0x14')]['sync'](this,_0x118e4c[_0xda2a('0xd6')]);if(!_0x30804d){return this[_0xda2a('0x10')][_0xda2a('0x32')](_0x118e4c,_0xda2a('0xd8'));}this[_0xda2a('0x10')]['setVariable'](_0x30804d,_0x39010d);if(this['isConfigured'](_0x118e4c[_0xda2a('0x10b')])){var _0x1540c5=parseInt(_0x118e4c[_0xda2a('0x10b')],0xa);var _0x8b366f=rs[_0xda2a('0x10c')]({'charset':'*','length':_0x1540c5});var _0x549132=_0x39010d[_0xda2a('0x98')];if(_0x549132>0x0){if(_0x549132>_0x1540c5){this[_0xda2a('0x3b')][_0xda2a('0xa4')](this,_0x118e4c,_0x118e4c['hiddendigitspos']===_0xda2a('0x10d')?_0x8b366f+_0x39010d[_0xda2a('0x10e')](_0x1540c5):_0x39010d[_0xda2a('0x10e')](0x0,_0x549132-_0x1540c5)+_0x8b366f);}else{this[_0xda2a('0x3b')][_0xda2a('0xa4')](this,_0x118e4c,rs[_0xda2a('0x10c')]({'charset':'*','length':_0x549132}));}}else{this['createSquareDetailsReport'][_0xda2a('0xa4')](this,_0x118e4c,'');}}else{this[_0xda2a('0x3b')][_0xda2a('0xa4')](this,_0x118e4c,_0x39010d);}return _0x3fc48b;};AGIVertices[_0xda2a('0x13')][_0xda2a('0xf')]=function(_0x23f091){logger['info'](util['format'](_0xda2a('0x10f'),_0x23f091[_0xda2a('0xb5')]));return this[_0xda2a('0xe')](_0x23f091);};AGIVertices[_0xda2a('0x13')][_0xda2a('0x110')]=function(_0x2bf632){logger['info'](util[_0xda2a('0x2e')](_0xda2a('0x111'),_0x2bf632['label']));this['createSquareDetailsReport']['sync'](this,_0x2bf632,_0x2bf632[_0xda2a('0x112')]);return this[_0xda2a('0x10')][_0xda2a('0xa8')](util[_0xda2a('0x2e')](_0xda2a('0x113'),_0x2bf632['goalname']));};AGIVertices[_0xda2a('0x13')][_0xda2a('0x114')]=function(_0x2fa43d){logger['info'](util['format'](_0xda2a('0x115'),_0x2fa43d['label']));if(!this[_0xda2a('0x85')](_0x2fa43d[_0xda2a('0x88')])||!this['isConfigured'](_0x2fa43d[_0xda2a('0x89')])){return this[_0xda2a('0x10')][_0xda2a('0xa8')]('no\x20valid\x20credentials\x20configured');}if(!this['isConfigured'](_0x2fa43d['text'])){return this['channel']['noop']('no\x20text\x20configured');}this[_0xda2a('0x10')][_0xda2a('0xa8')](util[_0xda2a('0x2e')]('Trying\x20aws\x20Polly\x20%s',_0x2fa43d[_0xda2a('0x61')]));var _0x1b23fb=this['awsPolly'][_0xda2a('0xa4')](this,_0x2fa43d);if(_0x1b23fb){this[_0xda2a('0x10')]['noop'](util[_0xda2a('0x2e')](_0xda2a('0x116'),_0x1b23fb));var _0x10b930=this[_0xda2a('0x10')][_0xda2a('0xf6')](_0x1b23fb);try{fs['unlink'](_0x1b23fb+_0xda2a('0xf7'));}catch(_0x344a6d){logger[_0xda2a('0x32')](_0x344a6d);}return _0x10b930;}return this[_0xda2a('0x10')][_0xda2a('0x32')](_0x2fa43d,_0xda2a('0x117'));};AGIVertices['prototype'][_0xda2a('0x118')]=function(_0x299a19){logger[_0xda2a('0x34')](util[_0xda2a('0x2e')]('Enter\x20in\x20Amazon\x20Lex\x20(%s)\x20block',_0x299a19[_0xda2a('0xb5')]));if(!this[_0xda2a('0x85')](_0x299a19[_0xda2a('0x88')])||!this[_0xda2a('0x85')](_0x299a19['aws_secret_access_key'])){return this[_0xda2a('0x10')]['noop'](_0xda2a('0x119'));}if(!this[_0xda2a('0x85')](_0x299a19['aws_bot_name'])){return this[_0xda2a('0x10')][_0xda2a('0xa8')](_0xda2a('0x11a'));}if(!this[_0xda2a('0x85')](_0x299a19[_0xda2a('0x61')])){return this[_0xda2a('0x10')]['noop'](_0xda2a('0xc7'));}this[_0xda2a('0x10')]['bot']=!![];this[_0xda2a('0x3b')](_0x299a19);this[_0xda2a('0x45')](_0x299a19[_0xda2a('0x61')],'in');this[_0xda2a('0x10')][_0xda2a('0xa8')](util[_0xda2a('0x2e')](_0xda2a('0x11b'),_0x299a19[_0xda2a('0x61')]));var _0x295274=this['awsLex']['sync'](this,_0x299a19);if(_0x295274){for(var _0x4fbf09 in _0x295274){if(_0x295274[_0xda2a('0x97')](_0x4fbf09)&&_[_0xda2a('0x99')](_0x295274[_0x4fbf09])){this['channel']['setVariable'](util[_0xda2a('0x2e')](_0xda2a('0x11c'),_0x4fbf09[_0xda2a('0x6d')]()),_0x295274[_0x4fbf09]);}}if(_['isNil'](_0x295274[_0xda2a('0x79')])){return this['channel']['noop'](_0xda2a('0x11d'));}else{this[_0xda2a('0x45')](_0x295274[_0xda2a('0x79')],'out');return this['channel']['noop'](util[_0xda2a('0x2e')](_0xda2a('0x11e'),_0x295274[_0xda2a('0x79')]));}}return this['channel'][_0xda2a('0x32')](_0x299a19,_0xda2a('0x11f'));};AGIVertices[_0xda2a('0x13')][_0xda2a('0x120')]=function(_0x414d7f){logger[_0xda2a('0x34')](util[_0xda2a('0x2e')](_0xda2a('0x121'),_0x414d7f[_0xda2a('0xb5')],_0x414d7f['timeout']));if(!this[_0xda2a('0x85')](_0x414d7f['key'])){return this[_0xda2a('0x10')][_0xda2a('0xa8')](_0xda2a('0xe6'));}var _0x484d5b=_0xda2a('0x122');var _0x54a1e5=util[_0xda2a('0x2e')](_0xda2a('0x123'),FILES_PATH,rs['generate'](0x4));var _0x5a76e7=util['format'](_0xda2a('0x9c'),_0x54a1e5,_0x484d5b);var _0x4788e9=!![];if(_0x414d7f[_0xda2a('0x124')]===_0xda2a('0x125')){_0x4788e9=![];}var _0x4490cf=this[_0xda2a('0x10')][_0xda2a('0x126')](_0x54a1e5,_0x484d5b,_0x414d7f['intKey'],_0x414d7f[_0xda2a('0x68')],undefined,_0x4788e9);if(_0x4490cf['result']!==-0x1){this[_0xda2a('0x10')][_0xda2a('0xa8')](util['format'](_0xda2a('0x127'),_0x5a76e7));var _0x1720c3=this[_0xda2a('0x128')][_0xda2a('0xa4')](this,_0x414d7f,_0x5a76e7);if(_0x1720c3){for(var _0x33abee in _0x1720c3){if(_0x1720c3[_0xda2a('0x97')](_0x33abee)){this[_0xda2a('0x10')][_0xda2a('0x9e')](util[_0xda2a('0x2e')]('GOOGLE_ASR_%s',_0x33abee['toUpperCase']()),_0x1720c3[_0x33abee]);}}return this[_0xda2a('0x10')][_0xda2a('0xa8')](util[_0xda2a('0x2e')](_0xda2a('0x129'),JSON[_0xda2a('0x75')](_0x1720c3)));}}return _0x4490cf;};AGIVertices[_0xda2a('0x13')][_0xda2a('0x12a')]=function(_0x5b2a6e){logger[_0xda2a('0x34')](util[_0xda2a('0x2e')]('Enter\x20in\x20TILDEASR\x20(%s)\x20block',_0x5b2a6e['label']));if(!this[_0xda2a('0x85')](_0x5b2a6e[_0xda2a('0x12b')])){return this[_0xda2a('0x10')][_0xda2a('0xa8')](_0xda2a('0x12c'));}if(!this[_0xda2a('0x85')](_0x5b2a6e[_0xda2a('0x12d')])){return this['channel'][_0xda2a('0xa8')](_0xda2a('0x12e'));}var _0x2fd7cb=_0xda2a('0x122');var _0x16690e=util[_0xda2a('0x2e')](_0xda2a('0x123'),FILES_PATH,rs[_0xda2a('0x10c')](0x4));var _0x559452=util[_0xda2a('0x2e')](_0xda2a('0x9c'),_0x16690e,_0x2fd7cb);var _0x174394=!![];if(_0x5b2a6e[_0xda2a('0x124')]===_0xda2a('0x125')){_0x174394=![];}var _0x1894b0=this[_0xda2a('0x10')][_0xda2a('0x126')](_0x16690e,_0x2fd7cb,_0x5b2a6e[_0xda2a('0x12f')],_0x5b2a6e[_0xda2a('0x68')],undefined,_0x174394);if(_0x1894b0[_0xda2a('0xa1')]!==-0x1){this[_0xda2a('0x10')][_0xda2a('0xa8')](util[_0xda2a('0x2e')](_0xda2a('0x130'),_0x559452));var _0x363d65=this['tildeASR'][_0xda2a('0xa4')](this,_0x5b2a6e,_0x559452);if(_0x363d65){for(var _0x496825 in _0x363d65){if(_0x363d65[_0xda2a('0x97')](_0x496825)){this[_0xda2a('0x10')][_0xda2a('0x9e')](util[_0xda2a('0x2e')](_0xda2a('0x131'),_0x496825[_0xda2a('0x6d')]()),_0x363d65[_0x496825]);}}return this[_0xda2a('0x10')]['noop'](util[_0xda2a('0x2e')](_0xda2a('0x132'),JSON[_0xda2a('0x75')](_0x363d65)));}}return _0x1894b0;};AGIVertices['prototype'][_0xda2a('0x133')]=function(_0x593d3a){logger[_0xda2a('0x34')](util[_0xda2a('0x2e')](_0xda2a('0x134'),_0x593d3a['label']));return this['channel'][_0xda2a('0x135')](_0x593d3a[_0xda2a('0x40')],_0x593d3a[_0xda2a('0x136')],_0x593d3a['priority']);};AGIVertices[_0xda2a('0x13')][_0xda2a('0x137')]=function(_0x546266){logger[_0xda2a('0x34')](util[_0xda2a('0x2e')](_0xda2a('0x138'),_0x546266[_0xda2a('0xb5')]));if(!this[_0xda2a('0x85')](_0x546266[_0xda2a('0x139')])){return this[_0xda2a('0x10')][_0xda2a('0x32')](_0x546266,_0xda2a('0x13a'));}try{var _0x1d55ce=eval(_0x546266['condition'])?'true':_0xda2a('0x13b');this[_0xda2a('0x10')][_0xda2a('0xa8')](util[_0xda2a('0x2e')](_0xda2a('0x13c'),_0x546266[_0xda2a('0x139')],_0x1d55ce));return{'code':0xc8,'result':_0x1d55ce};}catch(_0x14dea8){return{'code':0xc8,'result':'false'};}};AGIVertices[_0xda2a('0x13')]['gotoiftime']=function(_0x439c1c){logger[_0xda2a('0x34')](util['format']('Enter\x20in\x20GOTOIFTIME\x20(%s)\x20block',_0x439c1c[_0xda2a('0xb5')]));if(!this[_0xda2a('0x85')](_0x439c1c['interval_id'])){return this[_0xda2a('0x10')][_0xda2a('0x32')](_0x439c1c,_0xda2a('0x13d'));}var _0x4d426e=this[_0xda2a('0x29')][_0xda2a('0xa4')](this,_0x439c1c[_0xda2a('0x13e')]);if(!_0x4d426e){return this[_0xda2a('0x10')]['error'](_0x439c1c,_0xda2a('0x13f'));}for(var _0x12ee9f=0x0;_0x12ee9f<_0x4d426e[_0xda2a('0x98')];_0x12ee9f+=0x1){var _0x5a3524=this[_0xda2a('0x10')][_0xda2a('0x14')](util[_0xda2a('0x2e')](_0xda2a('0x140'),_0x4d426e[_0x12ee9f]));if(_0x5a3524[_0xda2a('0xa1')]===-0x1){return _0x5a3524;}logger[_0xda2a('0x34')](util[_0xda2a('0x2e')](_0xda2a('0x141'),_0x4d426e[_0x12ee9f],_0x5a3524['extra']));if(_0x5a3524['extra']===_0xda2a('0x142')){logger[_0xda2a('0x34')](util[_0xda2a('0x2e')](_0xda2a('0x141'),_0x4d426e[_0x12ee9f],_0xda2a('0x142')));this[_0xda2a('0x10')][_0xda2a('0xa8')](util[_0xda2a('0x2e')](_0xda2a('0x141'),_0x4d426e[_0x12ee9f],'true'));return{'code':0xc8,'result':_0xda2a('0x142')};}else{logger[_0xda2a('0x34')](util[_0xda2a('0x2e')](_0xda2a('0x141'),_0x4d426e[_0x12ee9f],'false'));this[_0xda2a('0x10')][_0xda2a('0xa8')](util['format'](_0xda2a('0x141'),_0x4d426e[_0x12ee9f],'false'));}}return{'code':0xc8,'result':'false'};};AGIVertices[_0xda2a('0x13')][_0xda2a('0x143')]=function(_0x131212){logger[_0xda2a('0x34')](util['format']('Enter\x20in\x20HANGUP\x20(%s)\x20block',_0x131212[_0xda2a('0xb5')]));return this['channel'][_0xda2a('0x143')]();};AGIVertices[_0xda2a('0x13')][_0xda2a('0x144')]=function(_0x52bce9){logger[_0xda2a('0x34')](util[_0xda2a('0x2e')](_0xda2a('0x145'),_0x52bce9[_0xda2a('0xb5')]));if(!this['isConfigured'](_0x52bce9[_0xda2a('0x84')])){return this['channel'][_0xda2a('0xa8')](_0xda2a('0xe6'));}var _0x41ddf4='wav';var _0x19fcc3=util['format'](_0xda2a('0x123'),FILES_PATH,rs[_0xda2a('0x10c')](0x4));var _0x5b74b7=util[_0xda2a('0x2e')](_0xda2a('0x9c'),_0x19fcc3,_0x41ddf4);var _0x2b58b5=!![];if(_0x52bce9[_0xda2a('0x124')]==='NOBEEP'){_0x2b58b5=![];}var _0x3185f8=this[_0xda2a('0x10')][_0xda2a('0x126')](_0x19fcc3,_0x41ddf4,_0x52bce9[_0xda2a('0x12f')],_0x52bce9[_0xda2a('0x68')],undefined,_0x2b58b5);if(_0x3185f8[_0xda2a('0xa1')]!==-0x1){this[_0xda2a('0x10')]['noop'](util[_0xda2a('0x2e')](_0xda2a('0x146'),_0x5b74b7));var _0x5a2f78=this[_0xda2a('0x83')][_0xda2a('0xa4')](this,_0x52bce9,_0x5b74b7);if(_0x5a2f78){for(var _0x3c2f07 in _0x5a2f78){if(_0x5a2f78[_0xda2a('0x97')](_0x3c2f07)){this[_0xda2a('0x10')]['setVariable'](util[_0xda2a('0x2e')](_0xda2a('0x147'),_0x3c2f07[_0xda2a('0x6d')]()),_0x5a2f78[_0x3c2f07]);}}return this[_0xda2a('0x10')][_0xda2a('0xa8')](util[_0xda2a('0x2e')](_0xda2a('0x148'),JSON[_0xda2a('0x75')](_0x5a2f78)));}}return _0x3185f8;};AGIVertices[_0xda2a('0x13')][_0xda2a('0x149')]=function(_0x193e20){logger['info'](util[_0xda2a('0x2e')]('Enter\x20in\x20ISPEECHTTS\x20(%s)\x20block',_0x193e20[_0xda2a('0xb5')]));if(!this[_0xda2a('0x85')](_0x193e20[_0xda2a('0x84')])){return this[_0xda2a('0x10')][_0xda2a('0xa8')](_0xda2a('0xe6'));}if(!this[_0xda2a('0x85')](_0x193e20[_0xda2a('0x61')])){return this[_0xda2a('0x10')]['noop'](_0xda2a('0xc7'));}this[_0xda2a('0x10')][_0xda2a('0xa8')](util[_0xda2a('0x2e')](_0xda2a('0x14a'),_0x193e20[_0xda2a('0x61')]));var _0x30c47b=this['ispeechTTS']['sync'](this,_0x193e20);if(_0x30c47b){this[_0xda2a('0x10')]['noop'](util[_0xda2a('0x2e')](_0xda2a('0x146'),_0x30c47b));var _0x290606=this['channel'][_0xda2a('0xf6')](_0x30c47b,_0x193e20[_0xda2a('0x12f')]);try{fs[_0xda2a('0x14b')](_0x30c47b+_0xda2a('0xf7'));}catch(_0x2a7638){logger[_0xda2a('0x32')](_0x2a7638);}return _0x290606;}return this['channel']['error'](_0x193e20,'ispeech\x20TTS\x20is\x20unreachable');};AGIVertices[_0xda2a('0x13')]['login']=function(_0x303469){logger['info'](util['format'](_0xda2a('0x14c'),_0x303469[_0xda2a('0xb5')]));if(!this[_0xda2a('0x85')](_0x303469[_0xda2a('0x14d')])){return this[_0xda2a('0x10')]['error'](_0x303469,_0xda2a('0x14e'));}logger[_0xda2a('0x34')](util[_0xda2a('0x2e')](_0xda2a('0x14f'),this[_0xda2a('0x10')]['callerid'],_0x303469['findBy']));var _0x2a4e8f=this[_0xda2a('0x5b')][_0xda2a('0xa4')](this,_0x303469[_0xda2a('0x14d')]);if(_0x2a4e8f){logger[_0xda2a('0x34')](util[_0xda2a('0x2e')](_0xda2a('0x150'),this[_0xda2a('0x10')]['callerid'],_0x303469['findBy']));this[_0xda2a('0x10')][_0xda2a('0xa8')](util['format'](_0xda2a('0x150'),this[_0xda2a('0x10')][_0xda2a('0x3d')],_0x303469[_0xda2a('0x14d')]));return{'code':0xc8,'result':_0xda2a('0x151')};}else{logger[_0xda2a('0x34')](util[_0xda2a('0x2e')](_0xda2a('0x152'),this[_0xda2a('0x10')][_0xda2a('0x3d')],_0x303469[_0xda2a('0x14d')]));this[_0xda2a('0x10')][_0xda2a('0xa8')](util[_0xda2a('0x2e')](_0xda2a('0x152'),this[_0xda2a('0x10')][_0xda2a('0x3d')],_0x303469[_0xda2a('0x14d')]));return{'code':0xc8,'result':_0xda2a('0x153')};}};AGIVertices[_0xda2a('0x13')][_0xda2a('0x154')]=function(_0x4894a2){logger[_0xda2a('0x34')](util[_0xda2a('0x2e')]('Enter\x20in\x20LOGOUT\x20(%s)\x20block',_0x4894a2[_0xda2a('0xb5')]));if(!this[_0xda2a('0x85')](_0x4894a2[_0xda2a('0x14d')])){return this[_0xda2a('0x10')][_0xda2a('0x32')](_0x4894a2,_0xda2a('0x14e'));}logger[_0xda2a('0x34')](util['format']('FIND\x20AGENT\x20%s\x20BY\x20%s',this[_0xda2a('0x10')][_0xda2a('0x3d')],_0x4894a2['findBy']));var _0xe0676d=this['agentLogout'][_0xda2a('0xa4')](this,_0x4894a2[_0xda2a('0x14d')]);if(_0xe0676d){logger['info'](util[_0xda2a('0x2e')](_0xda2a('0x150'),this[_0xda2a('0x10')][_0xda2a('0x3d')],_0x4894a2[_0xda2a('0x14d')]));this[_0xda2a('0x10')][_0xda2a('0xa8')](util['format'](_0xda2a('0x150'),this['channel']['callerid'],_0x4894a2[_0xda2a('0x14d')]));return{'code':0xc8,'result':_0xda2a('0x151')};}else{logger[_0xda2a('0x34')](util[_0xda2a('0x2e')](_0xda2a('0x152'),this[_0xda2a('0x10')][_0xda2a('0x3d')],_0x4894a2['findBy']));this[_0xda2a('0x10')][_0xda2a('0xa8')](util[_0xda2a('0x2e')](_0xda2a('0x152'),this[_0xda2a('0x10')][_0xda2a('0x3d')],_0x4894a2['findBy']));return{'code':0xc8,'result':'failure'};}};AGIVertices['prototype']['math']=function(_0x2d982f){logger[_0xda2a('0x34')](util['format'](_0xda2a('0x155'),_0x2d982f[_0xda2a('0xb5')]));if(!this[_0xda2a('0x85')](_0x2d982f['operation'])){return this['channel'][_0xda2a('0x32')](_0x2d982f,_0xda2a('0x156'));}this[_0xda2a('0x10')][_0xda2a('0xa8')](util['format'](_0xda2a('0x157'),_0x2d982f[_0xda2a('0x158')]));var _0x337ef9=eval(_0x2d982f[_0xda2a('0x158')]);if(!this['isConfigured'](_0x2d982f[_0xda2a('0xd6')])){return this[_0xda2a('0x10')][_0xda2a('0xa8')](_0xda2a('0xd7'));}var _0x4976af=this[_0xda2a('0x14')][_0xda2a('0xa4')](this,_0x2d982f[_0xda2a('0xd6')]);if(!_0x4976af){return this[_0xda2a('0x10')][_0xda2a('0x32')](_0x2d982f,_0xda2a('0xd8'));}if(_['isArray'](_0x337ef9)){var _0x3d71d6=this;_0x337ef9['forEach'](function(_0xef341f,_0x2857a6){_0x3d71d6['channel']['setVariable'](util[_0xda2a('0x2e')]('%s[%s]',_0x4976af,_0x2857a6),_0xef341f);});return this[_0xda2a('0x10')][_0xda2a('0xa8')](util[_0xda2a('0x2e')]('variable\x20%s[key]\x20set',_0x4976af));}else{return this[_0xda2a('0x10')][_0xda2a('0x9e')](_0x4976af,_0x337ef9);}};AGIVertices[_0xda2a('0x13')]['menu']=function(_0x2da0b9){logger[_0xda2a('0x34')](util[_0xda2a('0x2e')](_0xda2a('0x159'),_0x2da0b9[_0xda2a('0xb5')]));if(_0x2da0b9[_0xda2a('0xa5')]===0x0){return this['maxRetry'](_0x2da0b9);}_0x2da0b9[_0xda2a('0xa5')]-=0x1;if(!this[_0xda2a('0x85')](_0x2da0b9[_0xda2a('0x104')])){return this[_0xda2a('0x10')]['error'](_0x2da0b9,_0xda2a('0x105'));}var _0x59b355=this[_0xda2a('0x23')][_0xda2a('0xa4')](this,_0x2da0b9[_0xda2a('0x104')]);if(!_0x59b355){return this[_0xda2a('0x10')][_0xda2a('0x32')](_0x2da0b9,_0xda2a('0x106'));}var _0x16f5f9=this[_0xda2a('0x10')][_0xda2a('0x15a')](_0x59b355,_0x2da0b9[_0xda2a('0x107')],_0x2da0b9['digit']);var _0x368479=_0x16f5f9['result'];if(_0x16f5f9['result']===-0x1){this[_0xda2a('0x3b')]['sync'](this,_0x2da0b9,'-1');return _0x16f5f9;}else if(_0x16f5f9[_0xda2a('0xa2')]===_0xda2a('0x68')){_0x16f5f9[_0xda2a('0xa1')]=_0x16f5f9['result'][_0xda2a('0x98')]>0x0?_0x16f5f9[_0xda2a('0xa1')]:'t';}else if(_[_0xda2a('0x4a')](_0x16f5f9['result'])){_0x16f5f9[_0xda2a('0xa1')]='#';_0x368479='#';}if(!this[_0xda2a('0x85')](_0x2da0b9['variable_id'])){this['channel'][_0xda2a('0xa8')]('no\x20variable\x20selected\x20for\x20the\x20result');}else{var _0x34cef4=this[_0xda2a('0x14')]['sync'](this,_0x2da0b9[_0xda2a('0xd6')]);if(!_0x34cef4){return this[_0xda2a('0x10')][_0xda2a('0x32')](_0x2da0b9,'no\x20variable\x20found');}this[_0xda2a('0x10')][_0xda2a('0x9e')](_0x34cef4,_0x368479);}this[_0xda2a('0x3b')][_0xda2a('0xa4')](this,_0x2da0b9,_0x368479);return _0x16f5f9;};AGIVertices[_0xda2a('0x13')][_0xda2a('0xa8')]=function(_0x563e0b){logger[_0xda2a('0x34')](util[_0xda2a('0x2e')]('Enter\x20in\x20NOOP\x20(%s)\x20block',_0x563e0b[_0xda2a('0xb5')]));return this['channel'][_0xda2a('0xa8')](_0x563e0b[_0xda2a('0x15b')]||_0x563e0b['label']);};AGIVertices[_0xda2a('0x13')]['pause']=function(_0x3938a6){logger['info'](util['format'](_0xda2a('0x15c'),_0x3938a6[_0xda2a('0xb5')]));if(!this['isConfigured'](_0x3938a6[_0xda2a('0x14d')])){return this[_0xda2a('0x10')][_0xda2a('0x32')](_0x3938a6,_0xda2a('0x14e'));}logger['info'](util['format']('FIND\x20AGENT\x20%s\x20BY\x20%s',this['channel'][_0xda2a('0x3d')],_0x3938a6[_0xda2a('0x14d')]));var _0x4f648c=this[_0xda2a('0x52')]['sync'](this,_0x3938a6[_0xda2a('0x15d')]);var _0x1a8e38=this[_0xda2a('0x54')][_0xda2a('0xa4')](this,_0x3938a6[_0xda2a('0x14d')],_0x4f648c);if(_0x1a8e38){logger['info'](util[_0xda2a('0x2e')]('AGENT\x20%s\x20FOUND\x20BY',this[_0xda2a('0x10')][_0xda2a('0x3d')],_0x3938a6['findBy']));this['channel']['noop'](util[_0xda2a('0x2e')]('AGENT\x20%s\x20FOUND\x20BY',this['channel'][_0xda2a('0x3d')],_0x3938a6[_0xda2a('0x14d')]));return{'code':0xc8,'result':_0xda2a('0x151')};}else{logger['info'](util[_0xda2a('0x2e')](_0xda2a('0x152'),this[_0xda2a('0x10')][_0xda2a('0x3d')],_0x3938a6[_0xda2a('0x14d')]));this[_0xda2a('0x10')][_0xda2a('0xa8')](util[_0xda2a('0x2e')](_0xda2a('0x150'),this[_0xda2a('0x10')][_0xda2a('0x3d')],_0x3938a6[_0xda2a('0x14d')]));return{'code':0xc8,'result':_0xda2a('0x153')};}};AGIVertices[_0xda2a('0x13')][_0xda2a('0x15e')]=function(_0xc4f533){logger['info'](util[_0xda2a('0x2e')]('Enter\x20in\x20PLAYBACK\x20(%s)\x20block',_0xc4f533[_0xda2a('0xb5')]));if(!this[_0xda2a('0x85')](_0xc4f533[_0xda2a('0x104')])){return this[_0xda2a('0x10')][_0xda2a('0x32')](_0xc4f533,_0xda2a('0x105'));}var _0x41f96=this[_0xda2a('0x23')]['sync'](this,_0xc4f533[_0xda2a('0x104')]);if(!_0x41f96){return this[_0xda2a('0x10')][_0xda2a('0x32')](_0xc4f533,_0xda2a('0x106'));}var _0x521509=this[_0xda2a('0x10')][_0xda2a('0xa9')](_0xda2a('0x15f'),[_0x41f96,_0xc4f533[_0xda2a('0xe2')]]);if(_0x521509[_0xda2a('0xa1')]===-0x1){return _0x521509;}return this[_0xda2a('0x10')]['noop'](util[_0xda2a('0x2e')](_0xda2a('0x160'),_0xda2a('0x15f'),_0x41f96));};AGIVertices['prototype'][_0xda2a('0x161')]=function(_0x4e9658){logger[_0xda2a('0x34')](util[_0xda2a('0x2e')](_0xda2a('0x162'),_0x4e9658[_0xda2a('0xb5')]));if(!this[_0xda2a('0x85')](_0x4e9658[_0xda2a('0x163')])){return this[_0xda2a('0x10')]['error'](_0x4e9658,'no\x20queue\x20selected');}var _0x30920f='';var _0x50f5fa=parseInt(_0x4e9658[_0xda2a('0x163')],0xa);if(isNaN(_0x50f5fa)){_0x30920f=_0x4e9658[_0xda2a('0x163')];}else{_0x30920f=this[_0xda2a('0x19')][_0xda2a('0xa4')](this,_0x4e9658[_0xda2a('0x163')]);if(!_0x30920f){return this['channel'][_0xda2a('0x32')](_0x4e9658,_0xda2a('0x164'));}}var _0x222af7='';if(this[_0xda2a('0x85')](_0x4e9658[_0xda2a('0x104')])){var _0x14d71f=this['getSound'][_0xda2a('0xa4')](this,_0x4e9658[_0xda2a('0x104')]);if(_0x14d71f){_0x222af7=_0x14d71f;}}this[_0xda2a('0x3b')][_0xda2a('0xa4')](this,_0x4e9658,_0x30920f);if(_0x4e9658['opts'][_0xda2a('0x165')]('x')<0x0){_0x4e9658[_0xda2a('0xe2')]+='x';}if(_0x4e9658[_0xda2a('0xe2')][_0xda2a('0x165')]('X')<0x0){_0x4e9658[_0xda2a('0xe2')]+='X';}this[_0xda2a('0x10')][_0xda2a('0x9e')](_0xda2a('0x166'),_0x30920f?_0x30920f['toLowerCase']():'');var _0x5a2ebc=this[_0xda2a('0x10')][_0xda2a('0xa9')](_0xda2a('0x167'),[_0x30920f,_0x4e9658[_0xda2a('0xe2')],_0x4e9658[_0xda2a('0x66')],_0x222af7,_0x4e9658[_0xda2a('0x68')],_0x4e9658[_0xda2a('0x8')],_0x4e9658['macro'],_0x4e9658[_0xda2a('0x168')],'',_0x4e9658[_0xda2a('0x169')]]);if(_0x5a2ebc[_0xda2a('0xa1')]===-0x1){return _0x5a2ebc;}return this[_0xda2a('0x10')][_0xda2a('0xa8')](util['format']('Executed\x20command\x20%s\x20%s',_0xda2a('0x167'),_0x30920f));};AGIVertices[_0xda2a('0x13')][_0xda2a('0x16a')]=function(_0x49c33c){logger[_0xda2a('0x34')](util[_0xda2a('0x2e')]('Enter\x20in\x20RECORD\x20(%s)\x20block',_0x49c33c[_0xda2a('0xb5')]));var _0x5ccf6a=_0x49c33c['recordingFormat']||_0xda2a('0x122');var _0x5b6789=util[_0xda2a('0x2e')]('%s_%s',this[_0xda2a('0x10')][_0xda2a('0x3f')],rs[_0xda2a('0x10c')](0x5));var _0x5f7a98=util[_0xda2a('0x2e')](_0xda2a('0x16b'),FILES_PATH,_0x5b6789,_0x5ccf6a);var _0x53ade0=util[_0xda2a('0x2e')](_0xda2a('0x123'),FILES_PATH,_0x5b6789);this[_0xda2a('0x3e')][_0xda2a('0xa4')](this,_0x49c33c,_0x5b6789,_0x5f7a98);this['channel'][_0xda2a('0x9e')](_0xda2a('0x16c'),_0x5b6789);logger[_0xda2a('0x34')](_0xda2a('0x16d'),_0x53ade0,_0x5ccf6a,_0x49c33c[_0xda2a('0x16e')],_0x49c33c[_0xda2a('0x68')]);return this[_0xda2a('0x10')][_0xda2a('0x126')](_0x53ade0,_0x5ccf6a,_0x49c33c[_0xda2a('0x16e')],_0x49c33c['timeout'],undefined,!![]);};AGIVertices[_0xda2a('0x13')][_0xda2a('0x16f')]=function(_0x5d0cbb){logger[_0xda2a('0x34')](util[_0xda2a('0x2e')](_0xda2a('0x170'),_0x5d0cbb[_0xda2a('0xb5')]));if(!this[_0xda2a('0x85')](_0x5d0cbb['url'])){return this[_0xda2a('0x10')][_0xda2a('0xa8')](_0xda2a('0x171'));}var _0x5985e9=this[_0xda2a('0x65')]['sync'](this,_0x5d0cbb);logger[_0xda2a('0x34')](util[_0xda2a('0x2e')](_0xda2a('0x172'),util[_0xda2a('0x173')](_0x5985e9,{'showHidden':![],'depth':null})));if(!this[_0xda2a('0x85')](_0x5d0cbb[_0xda2a('0xd6')])){return this[_0xda2a('0x10')][_0xda2a('0xa8')](_0xda2a('0x174'));}var _0x29be57=this['getVariable']['sync'](this,_0x5d0cbb[_0xda2a('0xd6')]);if(!_0x29be57){return this[_0xda2a('0x10')][_0xda2a('0x32')](_0x5d0cbb,_0xda2a('0xd8'));}this[_0xda2a('0x10')][_0xda2a('0x9e')](util[_0xda2a('0x2e')](_0xda2a('0x175'),_0x29be57),_0x5985e9[_0xda2a('0x77')]?_0x5985e9['statusCode']:_0xda2a('0x176'));this[_0xda2a('0x10')][_0xda2a('0x9e')](util[_0xda2a('0x2e')](_0xda2a('0x177'),_0x29be57),_0x5985e9['statusMessage']?_0x5985e9['statusMessage']:'OK');if(_0x5985e9[_0xda2a('0x6e')]){try{this[_0xda2a('0x9b')](_0x5985e9[_0xda2a('0x6e')],_0x29be57);}catch(_0x4a30ec){logger['error'](util[_0xda2a('0x2e')](_0xda2a('0x178'),_0x29be57));}}return this[_0xda2a('0x10')][_0xda2a('0xa8')](util[_0xda2a('0x2e')](_0xda2a('0xdd'),_0x29be57));};AGIVertices[_0xda2a('0x13')][_0xda2a('0x179')]=function(_0x19f0a4){logger[_0xda2a('0x34')](util['format'](_0xda2a('0x17a'),_0x19f0a4[_0xda2a('0xb5')]));return this['channel'][_0xda2a('0x17b')](_0x19f0a4[_0xda2a('0x17c')]['replace'](/\s+/g,''),_0x19f0a4[_0xda2a('0x16e')]);};AGIVertices[_0xda2a('0x13')][_0xda2a('0x17d')]=function(_0x2ed656){logger[_0xda2a('0x34')](util[_0xda2a('0x2e')](_0xda2a('0x17e'),_0x2ed656[_0xda2a('0xb5')]));return this[_0xda2a('0x10')][_0xda2a('0x17f')](_0x2ed656['number']['replace'](/\s+/g,''),_0x2ed656[_0xda2a('0x16e')]);};AGIVertices[_0xda2a('0x13')][_0xda2a('0x180')]=function(_0x4b4cc8){logger[_0xda2a('0x34')](util[_0xda2a('0x2e')](_0xda2a('0x181'),_0x4b4cc8[_0xda2a('0xb5')]));return this[_0xda2a('0x10')][_0xda2a('0x182')](_0x4b4cc8['text'],_0x4b4cc8[_0xda2a('0x16e')]);};AGIVertices[_0xda2a('0x13')]['sendMail']=function(_0xce900b){logger[_0xda2a('0x34')](util[_0xda2a('0x2e')](_0xda2a('0x183'),_0xce900b['label']));if(!this[_0xda2a('0x85')](_0xce900b[_0xda2a('0x184')])){return this[_0xda2a('0x10')][_0xda2a('0xa8')](_0xda2a('0x185'));}var _0x5bd883=this['getMailAccount'][_0xda2a('0xa4')](this,_0xce900b[_0xda2a('0x184')]);if(!_0x5bd883||!_0x5bd883[_0xda2a('0x186')]){return this[_0xda2a('0x10')]['error'](_0xce900b,_0xda2a('0x187'));}var _0x1c634e={'from':util[_0xda2a('0x2e')](_0xda2a('0x188'),_0x5bd883[_0xda2a('0x17')],_0x5bd883[_0xda2a('0x189')]||_0x5bd883[_0xda2a('0x186')][_0xda2a('0x18a')]),'to':_0xce900b['to']||'','cc':_0xce900b['cc']||'','bcc':_0xce900b[_0xda2a('0x18b')]||'','subject':_0xce900b['subject'],'html':_0xce900b[_0xda2a('0x61')],'text':_0xce900b[_0xda2a('0x61')]};var _0x238f40={'tls':{'rejectUnauthorized':![]}};if(_0x5bd883[_0xda2a('0x186')][_0xda2a('0x18c')]){_0x238f40[_0xda2a('0x18c')]=_0x5bd883['Smtp'][_0xda2a('0x18c')];}else{_0x238f40['host']=_0x5bd883[_0xda2a('0x186')][_0xda2a('0x18d')];_0x238f40[_0xda2a('0x18e')]=_0x5bd883[_0xda2a('0x186')][_0xda2a('0x18e')];_0x238f40[_0xda2a('0x18f')]=_0x5bd883[_0xda2a('0x186')][_0xda2a('0x18f')];}if(_0x5bd883[_0xda2a('0x186')][_0xda2a('0x190')]){_0x238f40[_0xda2a('0x191')]={'user':_0x5bd883[_0xda2a('0x186')][_0xda2a('0x18a')],'pass':_0x5bd883[_0xda2a('0x186')][_0xda2a('0x192')]};}if(this['isConfigured'](_0xce900b[_0xda2a('0x193')])){}logger['debug'](_0xda2a('0x194'),JSON['stringify'](_0x1c634e));this[_0xda2a('0x3b')][_0xda2a('0xa4')](this,_0xce900b,_0xce900b[_0xda2a('0x184')]);this[_0xda2a('0x10')]['noop'](util[_0xda2a('0x2e')](_0xda2a('0x195'),_0x5bd883[_0xda2a('0x17')]));this['sendMailMessage'][_0xda2a('0xa4')](this,_0x238f40,_0x1c634e);return this[_0xda2a('0x10')][_0xda2a('0xa8')](_0xda2a('0x196'));};AGIVertices['prototype'][_0xda2a('0x197')]=function(_0x43cc9a){logger[_0xda2a('0x34')](util[_0xda2a('0x2e')]('Enter\x20in\x20SENDFAX\x20(%s)\x20block',_0x43cc9a[_0xda2a('0xb5')]));return this['channel'][_0xda2a('0xa8')](_0xda2a('0x198'));};AGIVertices[_0xda2a('0x13')][_0xda2a('0x199')]=function(_0x94a963){logger[_0xda2a('0x34')](util[_0xda2a('0x2e')](_0xda2a('0x19a'),_0x94a963[_0xda2a('0xb5')]));if(!this['isConfigured'](_0x94a963[_0xda2a('0x19b')])){return this[_0xda2a('0x10')][_0xda2a('0xa8')](_0xda2a('0x19c'));}var _0x2ef809=this['getSmsAccount'][_0xda2a('0xa4')](this,_0x94a963[_0xda2a('0x19b')]);if(!_0x2ef809){return this['channel'][_0xda2a('0x32')](_0x94a963,_0xda2a('0x19d'));}var _0x46b89a={'body':_0x94a963[_0xda2a('0x19e')],'phone':_0x94a963['to']||'','SmsAccountId':_0x2ef809['id']};logger[_0xda2a('0xde')](_0xda2a('0x19f'),JSON[_0xda2a('0x75')](_0x46b89a));this[_0xda2a('0x3b')]['sync'](this,_0x94a963,_0x94a963[_0xda2a('0x19b')]);this['channel'][_0xda2a('0xa8')](util['format'](_0xda2a('0x1a0'),_0x2ef809['name']));this['createSmsMessage'][_0xda2a('0xa4')](this,_0x46b89a);return this[_0xda2a('0x10')]['noop'](_0xda2a('0x1a1'));};AGIVertices[_0xda2a('0x13')]['set']=function(_0x2e8e50){logger['info'](util['format'](_0xda2a('0x1a2'),_0x2e8e50[_0xda2a('0xb5')]));if(!this[_0xda2a('0x85')](_0x2e8e50[_0xda2a('0xd6')])){return this[_0xda2a('0x10')][_0xda2a('0x32')](_0x2e8e50,_0xda2a('0x1a3'));}var _0xe01e86=this['getVariable']['sync'](this,_0x2e8e50[_0xda2a('0xd6')]);if(!_0xe01e86){return this[_0xda2a('0x10')][_0xda2a('0x32')](_0x2e8e50,_0xda2a('0xd8'));}return this['channel'][_0xda2a('0x9e')](_0xe01e86,_0x2e8e50['variable_value']);};AGIVertices[_0xda2a('0x13')][_0xda2a('0x1a4')]=function(_0x74ed7){logger['info'](util[_0xda2a('0x2e')]('Enter\x20in\x20START\x20(%s)\x20block',_0x74ed7[_0xda2a('0xb5')]));this['channel'][_0xda2a('0xa8')](_0xda2a('0x1a5'));if(_0x74ed7['answer']===_0xda2a('0x1a6')){this[_0xda2a('0x10')][_0xda2a('0xa8')](_0xda2a('0x1a7'));return this[_0xda2a('0x10')][_0xda2a('0xb8')]();}return this[_0xda2a('0x10')][_0xda2a('0xa8')]('Skipped\x20Answer');};AGIVertices[_0xda2a('0x13')][_0xda2a('0x1a8')]=function(_0x44497a){logger[_0xda2a('0x34')](util['format'](_0xda2a('0x1a9'),_0x44497a[_0xda2a('0xb5')]));if(!this['isConfigured'](_0x44497a['project_id'])){return this[_0xda2a('0x10')][_0xda2a('0x32')](_0x44497a,_0xda2a('0x1aa'));}var _0x517285=this[_0xda2a('0x1b')][_0xda2a('0xa4')](this,_0x44497a['project_id']);if(!this['isConfigured'](_0x517285)){return this['channel'][_0xda2a('0x32')](_0x44497a,util[_0xda2a('0x2e')](_0xda2a('0x1ab'),_0x44497a[_0xda2a('0x1ac')]));}if(_0x517285===this[_0xda2a('0x10')][_0xda2a('0x3c')]){return this[_0xda2a('0x10')][_0xda2a('0x32')](_0x44497a,_0xda2a('0x1ad'));}this[_0xda2a('0x3b')][_0xda2a('0xa4')](this,_0x44497a,_0x517285);var _0x55fb08=this[_0xda2a('0x10')][_0xda2a('0xa9')](_0xda2a('0x1ae'),util[_0xda2a('0x2e')](_0xda2a('0x1af'),config['agi'][_0xda2a('0x18d')]||_0xda2a('0x1b0'),_0x517285,this[_0xda2a('0x10')][_0xda2a('0x3c')]));if(_0x55fb08[_0xda2a('0xa1')]===-0x1){return _0x55fb08;}return this[_0xda2a('0x10')][_0xda2a('0xa8')](util['format']('Executed\x20command\x20%s\x20%s',_0xda2a('0x1ae'),_0x517285));};AGIVertices[_0xda2a('0x13')][_0xda2a('0x1b1')]=function(_0x1be5f0){logger['info'](util[_0xda2a('0x2e')](_0xda2a('0x1b2'),_0x1be5f0[_0xda2a('0xb5')]));var _0x562574=this[_0xda2a('0x1b3')]['sync'](this,_0x1be5f0['command']);this['createSquareDetailsReport'][_0xda2a('0xa4')](this,_0x1be5f0,_0x1be5f0[_0xda2a('0xb6')]);if(this['isConfigured'](_0x1be5f0[_0xda2a('0xd6')])){var _0x2af20f=this['getVariable'][_0xda2a('0xa4')](this,_0x1be5f0[_0xda2a('0xd6')]);if(_0x2af20f){this[_0xda2a('0x10')][_0xda2a('0x9e')](_0x2af20f,_0x562574);return this[_0xda2a('0x10')][_0xda2a('0xa8')](util[_0xda2a('0x2e')](_0xda2a('0x1b4'),_0x1be5f0[_0xda2a('0xb6')],_0x2af20f));}}return this[_0xda2a('0x10')][_0xda2a('0xa8')](util[_0xda2a('0x2e')]('sh\x20command:\x20%s\x20result\x20no\x20stored',_0x1be5f0[_0xda2a('0xb6')]));};AGIVertices[_0xda2a('0x13')][_0xda2a('0x1b5')]=function(_0x2bbdf9){logger[_0xda2a('0x34')](util[_0xda2a('0x2e')](_0xda2a('0x1b6'),_0x2bbdf9['label']));if(!this['isConfigured'](_0x2bbdf9[_0xda2a('0x5f')])){return this[_0xda2a('0x10')][_0xda2a('0xa8')](_0xda2a('0x1b7'));}if(!this['isConfigured'](_0x2bbdf9[_0xda2a('0x61')])){return this['channel'][_0xda2a('0xa8')](_0xda2a('0xc7'));}this[_0xda2a('0x10')][_0xda2a('0xa8')](util[_0xda2a('0x2e')]('Trying\x20Google\x20Cloud\x20TTS\x20%s',_0x2bbdf9[_0xda2a('0x61')]));var _0x540cdc=this[_0xda2a('0x5e')][_0xda2a('0xa4')](this,_0x2bbdf9);if(_0x540cdc){this[_0xda2a('0x10')][_0xda2a('0xa8')](util[_0xda2a('0x2e')](_0xda2a('0x1b8'),_0x540cdc));var _0x59a998=this[_0xda2a('0x10')]['streamFile'](_0x540cdc);try{fs[_0xda2a('0x14b')](_0x540cdc+_0xda2a('0xf7'));}catch(_0x252039){logger['error'](_0x252039);}return _0x59a998;}return this['channel']['error'](_0x2bbdf9,'Google\x20Cloud\x20TTS\x20is\x20unreachable');};AGIVertices['prototype'][_0xda2a('0x1b9')]=function(_0x2e1afe){logger[_0xda2a('0x34')](util[_0xda2a('0x2e')](_0xda2a('0x1ba'),_0x2e1afe['label']));if(!this['isConfigured'](_0x2e1afe[_0xda2a('0x61')])){return this['channel'][_0xda2a('0xa8')](_0xda2a('0xc7'));}this[_0xda2a('0x10')][_0xda2a('0xa8')](util['format']('Trying\x20Google\x20TTS\x20%s',_0x2e1afe['text']));var _0x169745=this['googleTTS']['sync'](this,_0x2e1afe);if(_0x169745){this[_0xda2a('0x10')][_0xda2a('0xa8')](util[_0xda2a('0x2e')]('Google\x20TTS\x20%s\x20file\x20created',_0x169745));var _0x36d3ea=this[_0xda2a('0x10')][_0xda2a('0xf6')](_0x169745);try{fs['unlink'](_0x169745+'.wav');}catch(_0x426de1){logger['error'](_0x426de1);}return _0x36d3ea;}return this['channel'][_0xda2a('0x32')](_0x2e1afe,'Google\x20TTS\x20is\x20unreachable');};AGIVertices[_0xda2a('0x13')][_0xda2a('0x1bb')]=function(_0x32b97e){logger[_0xda2a('0x34')](util['format']('Enter\x20in\x20UNPAUSE\x20(%s)\x20block',_0x32b97e[_0xda2a('0xb5')]));if(!this[_0xda2a('0x85')](_0x32b97e[_0xda2a('0x14d')])){return this[_0xda2a('0x10')][_0xda2a('0x32')](_0x32b97e,'no\x20find\x20by\x20configured');}logger[_0xda2a('0x34')](util[_0xda2a('0x2e')](_0xda2a('0x14f'),this['channel'][_0xda2a('0x3d')],_0x32b97e[_0xda2a('0x14d')]));var _0x581482=this[_0xda2a('0x55')]['sync'](this,_0x32b97e[_0xda2a('0x14d')]);if(_0x581482){logger['info'](util['format'](_0xda2a('0x150'),this['channel'][_0xda2a('0x3d')],_0x32b97e[_0xda2a('0x14d')]));this[_0xda2a('0x10')][_0xda2a('0xa8')](util[_0xda2a('0x2e')](_0xda2a('0x150'),this[_0xda2a('0x10')]['callerid'],_0x32b97e['findBy']));return{'code':0xc8,'result':_0xda2a('0x151')};}else{logger[_0xda2a('0x34')](util[_0xda2a('0x2e')](_0xda2a('0x152'),this[_0xda2a('0x10')][_0xda2a('0x3d')],_0x32b97e[_0xda2a('0x14d')]));this[_0xda2a('0x10')][_0xda2a('0xa8')](util[_0xda2a('0x2e')](_0xda2a('0x152'),this[_0xda2a('0x10')][_0xda2a('0x3d')],_0x32b97e['findBy']));return{'code':0xc8,'result':'failure'};}};AGIVertices[_0xda2a('0x13')]['voicemail']=function(_0x5d7e2b){logger['info'](util['format'](_0xda2a('0x1bc'),_0x5d7e2b[_0xda2a('0xb5')]));var _0x294504=this[_0xda2a('0x10')]['exec'](_0xda2a('0x1bd'),[_0x5d7e2b[_0xda2a('0x1be')],_0x5d7e2b[_0xda2a('0x7b')]]);if(_0x294504[_0xda2a('0xa1')]===-0x1){return _0x294504;}return this[_0xda2a('0x10')][_0xda2a('0xa8')](util[_0xda2a('0x2e')](_0xda2a('0x160'),_0xda2a('0x1bd'),_0x5d7e2b['mailbox']));};AGIVertices[_0xda2a('0x13')][_0xda2a('0x1bf')]=function(_0x11537e){logger[_0xda2a('0x34')](util[_0xda2a('0x2e')]('Enter\x20in\x20SWITCH\x20(%s)\x20block',_0x11537e[_0xda2a('0xb5')]));if(!this[_0xda2a('0x85')](_0x11537e['variable_id'])){return this[_0xda2a('0x10')][_0xda2a('0x32')](_0x11537e,'no\x20variable\x20selected');}var _0x242339=this[_0xda2a('0x14')][_0xda2a('0xa4')](this,_0x11537e['variable_id']);if(!_0x242339){return this[_0xda2a('0x10')]['error'](_0x11537e,_0xda2a('0xd8'));}var _0x3c1f93=this[_0xda2a('0x10')][_0xda2a('0x14')](_0x242339);return{'code':0xc8,'result':_0x3c1f93[_0xda2a('0xa2')]?_0x3c1f93['extra']:'-'};};String['prototype'][_0xda2a('0x1c0')]=function(_0xd82afa,_0x3ba9ad){return this['split'](_0xd82afa)[_0xda2a('0x1c1')](_0x3ba9ad);};module['exports']=AGIVertices;
\ No newline at end of file
+var _0xfd07=['add','delay','minutes','CALLBACK\x20added\x20phone:\x20%s\x20on\x20list:\x20%s\x20at\x20%s','custom_app','Enter\x20in\x20CUSTOM\x20APP\x20(%s)\x20block','Executed\x20command\x20%s\x20%s','application','lumenvoxtts','Enter\x20in\x20SESTEKTTS\x20(%s)\x20block','lumenvoxasr','no\x20grammar\x20configured','LUMENVOX_ASR_CONFIDENCE','LUMENVOX_ASR_TRANSCRIPT','sestekasr','Enter\x20in\x20SESTEKASR\x20(%s)\x20block','SESTEK_ASR_CONFIDENCE','SESTEK_ASR_TRANSCRIPT','RECOG_INSTANCE()','SESTEK_ASR_INSTANCE','Executed\x20command\x20MRCPRecog\x20%s','database','Enter\x20in\x20DATABASE\x20(%s)\x20block','odbc_id','no\x20query\x20configured','query:\x20%s','variable_id','no\x20variable\x20selected\x20for\x20the\x20result','no\x20variable\x20found','forEach','keys','%s[%s][%s]','%s_ROWS_COUNT','variable\x20%s\x20set','debug','Enter\x20in\x20DIAL\x20(%s)\x20block','sip_id','getUser','opts','Executed\x20command\x20%s','dialogflow','Enter\x20in\x20DIALOGFLOW\x20(%s)\x20block','no\x20key\x20configured','bot','Trying\x20Dialogflow:\x20%s','speech','out','Dialogflow\x20Result\x20%s','Dialogflow\x20is\x20unreachable','dialogflowV2','Enter\x20in\x20DIALOGFLOW\x20V2\x20(%s)\x20block','no\x20project_id\x20configured','no\x20client_email\x20configured','no\x20private_key\x20configured','no\x20anguage\x20configured','Trying\x20DialogflowV2:\x20%s','DIALOGFLOW_%s','DialogflowV2\x20is\x20unreachable','sesteknda','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','.wav','SestekNDA\x20Result\x20%s','SestekNDA\x20is\x20unreachable','Enter\x20in\x20END\x20(%s)\x20block','Enter\x20in\x20EXTERNAL\x20DIAL\x20(%s)\x20block','trunk_id','no\x20trunk\x20selected','getTrunk','no\x20trunk\x20found','SIP/%s/%s','DIAL','finally','Enter\x20in\x20FINALLY\x20(%s)\x20block','file_id','no\x20file\x20audio\x20found','getData','response','maxdigit','test','mindigit','hiddendigitsnum','generate','hiddendigitspos','first','substr','Enter\x20in\x20GETSECRETDIGITS\x20(%s)\x20block','Enter\x20in\x20GOAL\x20(%s)\x20block','goalname','awspolly','[AGI]\x20Enter\x20in\x20AWSPOLLY\x20(%s)\x20block','no\x20valid\x20credentials\x20configured','unlink','awslex','Enter\x20in\x20Amazon\x20Lex\x20(%s)\x20block','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','wav','%s/recordings/%s','beep','intKey','google\x20%s\x20file\x20created','GOOGLE_ASR_%s','GoogleASR\x20Result\x20%s','tildeasr','Enter\x20in\x20TILDEASR\x20(%s)\x20block','no\x20appid\x20configured','NOBEEP','recordFile','tilde\x20%s\x20file\x20created','TildeASR\x20Result\x20%s','gotoc','condition','no\x20condition\x20configured','true','false','gotoiftime','Enter\x20in\x20GOTOIFTIME\x20(%s)\x20block','interval_id','IFTIME(%s?true:false)','IFTIME\x20%s\x20%s','hangup','Enter\x20in\x20HANGUP\x20(%s)\x20block','ispeechasr','Enter\x20in\x20ISPEECHASR\x20(%s)\x20block','ISPEECH_ASR_%s','IspeechASR\x20Result\x20%s','Enter\x20in\x20ISPEECHTTS\x20(%s)\x20block','Trying\x20ispeech\x20TTS\x20%s','ispeech\x20%s\x20file\x20created','ispeech\x20TTS\x20is\x20unreachable','login','Enter\x20in\x20LOGIN\x20(%s)\x20block','findBy','no\x20find\x20by\x20configured','AGENT\x20%s\x20FOUND\x20BY','success','AGENT\x20%s\x20NOT\x20FOUND\x20BY','failure','logout','Enter\x20in\x20LOGOUT\x20(%s)\x20block','FIND\x20AGENT\x20%s\x20BY\x20%s','math','Enter\x20in\x20MATH\x20(%s)\x20block','no\x20operation\x20configured','math\x20%s','operation','%s[%s]','variable\x20%s[key]\x20set','Enter\x20in\x20MENU\x20(%s)\x20block','no\x20file\x20audio\x20selected','digit','output','pause','Enter\x20in\x20PAUSE\x20(%s)\x20block','pause_id','playback','Enter\x20in\x20PLAYBACK\x20(%s)\x20block','PLAYBACK','queue','Enter\x20in\x20QUEUE\x20(%s)\x20block','queue_id','no\x20queue\x20selected','indexOf','XMCS-QUEUE','toLowerCase','QUEUE','gosub','record','Enter\x20in\x20RECORD\x20(%s)\x20block','%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','no\x20url\x20configured','Response:','no\x20variable\x20selected\x20for\x20the\x20response','%s_STATUS_CODE','200','%s_STATUS_MESSAGE','Unable\x20to\x20set\x20result\x20in\x20variable\x20%s','saydigits','Enter\x20in\x20SAYDIGITS\x20(%s)\x20block','sayDigits','digits','saynumber','sayNumber','Enter\x20in\x20SAYPHONETIC\x20(%s)\x20block','sayPhonetic','sendMail','Enter\x20in\x20SENDMAIL\x20(%s)\x20block','account_id','no\x20mail\x20account\x20configured','getMailAccount','Smtp','no\x20mail\x20account\x20found','\x22%s\x22\x20<%s>','user','bcc','subject','template_id','sendMail\x20message','Trying\x20SendMail\x20with\x20account\x20%s','Enter\x20in\x20SENDSMS\x20(%s)\x20block','sms_account_id','no\x20sms\x20account\x20configured','no\x20sms\x20account\x20found','sms_text','sendSMS\x20message','Sms\x20message\x20added\x20to\x20outgoing\x20process','Enter\x20in\x20SET\x20(%s)\x20block','no\x20variable\x20selected','variable_value','start','Enter\x20in\x20START\x20(%s)\x20block','START\x20CALLY\x20SQUARE','yes','subproject','Enter\x20in\x20SUBPROJECT\x20(%s)\x20block','project_id','no\x20subproject\x20selected','no\x20subproject\x20found\x20with\x20id\x20%d','project\x20in\x20subproject\x20must\x20be\x20different\x20from\x20the\x20called\x20project','AGI','agi://%s/square,\x22%s\x22,\x22%s\x22','127.0.0.1','system','Enter\x20in\x20SYSTEM\x20(%s)\x20block','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','Enter\x20in\x20GOOGLETTS\x20(%s)\x20block','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','replaceAll','join','util','lodash','mustache','request-promise','../../config/logger','../../config/environment/shared','./scripts','/var/opt/motion2/server/files','rawHeaders','menu','getdigits','getsecretdigits','rpc','mailRpc','prototype','getVariable','getVariableById','then','catch','getVoiceQueue','name','getSquareProject','getSquareProjectById','getSquareOdbc','dsn','getUserById','getTrunkById','getSound','getSoundById','getSoundPath','save_name','getMailAccountById','sendMailMessage','getIntervals','getIntervalById','IntervalId','interval','map','Intervals','format','%s/sounds/converted/%s','getQueryOdbc','open','error','Error\x20getting\x20ODBC\x20connection\x20%s','query','info','Error\x20executing\x20query\x20%s','Query\x20executed\x20correctly\x20%s','close','Error\x20closing\x20connection\x20to\x20odbc\x20%s','getSmsAccount','getSmsAccountById','createSmsMessage','createSquareDetailsReport','uniqueid','label','agicommand','channel','arg_1','createSquareRecording','callerid','calleridname','context','extension','priority','accountcode','dnid','file','createSquareMessage','createCmContact','isEmpty','isNil','callback_','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','shellCommand','exec','trim','replace','googleCloudTTS','apiKey','google_cloud_tts_text_type','text','languageCode','ssmlGender','MALE','audioEncoding','googleTTS','google_tts_language','restAPI','url','method','number','timeout','includes','POST','toUpperCase','body','rawBody','parse','headers','An\x20incorrect\x20formatted\x20json\x20headers\x20has\x20been\x20passed\x20to\x20the\x20function','computedVariables','sync','render','stringify','statusCode','statusMessage','message','500\x20-\x20Internal\x20Server\x20Error','options','googleDialogflow','key','dialogflow_language','googleDialogflowV2','dialogflowV2_project_id','client_email','private_key','dialogflowV2_language','sestekNDA','ispeechTTS','ispeech_tts_language','en-US','speed','ispeechASR','ispeech_asr_language','isConfigured','model','awsPolly','aws_access_key_id','aws_secret_access_key','Amy','aws_text_type','awsLex','aws_lex_region','aws_bot_name','googleASR','google_asr_language','tildeASR','appid','appsecret','uri','hasOwnProperty','isString','replaceObjectAllVariables','replaceAllVariables','isPlainObject','recursiveNodeIndex','isArray','saveRestApiResult','%s.%s','length','setVariable','split','extra','maxRetry','retry','mrcpsynth','Enter\x20in\x20MRCPSynth\x20(%s)\x20block','noop','no\x20text\x20configured','MRCPSynth','result','Executed\x20command\x20MRCPSynth\x20%s','mrcprecog','Enter\x20in\x20MRCPRecog\x20(%s)\x20block','grammar','MRCPRecog','RECOG_CONFIDENCE()','MRCP_RECOG_CONFIDENCE','RECOG_INPUT()','MRCP_RECOG_TRANSCRIPT','getAndSetVariable','MRCP_RECOG_INSTANCE','Enter\x20in\x20AGI\x20(%s)\x20block','agi','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'];(function(_0x242f47,_0x350d39){var _0x2102f3=function(_0x108418){while(--_0x108418){_0x242f47['push'](_0x242f47['shift']());}};_0x2102f3(++_0x350d39);}(_0xfd07,0x104));var _0x7fd0=function(_0x2e2334,_0x8ffa8b){_0x2e2334=_0x2e2334-0x0;var _0x31991c=_0xfd07[_0x2e2334];return _0x31991c;};'use strict';var fs=require('fs');var util=require(_0x7fd0('0x0'));var _=require(_0x7fd0('0x1'));var sh=require('shelljs');var odbc=require('odbc')();var rs=require('randomstring');var moment=require('moment');var Mustache=require(_0x7fd0('0x2'));var rp=require(_0x7fd0('0x3'));var logger=require(_0x7fd0('0x4'))('agi');var config=require('../../config/environment');var shared=require(_0x7fd0('0x5'));var scripts=require(_0x7fd0('0x6'));var FILES_PATH=_0x7fd0('0x7');var recursiveMapAttributes=[_0x7fd0('0x8'),'rawBody'];var verticesWithRetry=[_0x7fd0('0x9'),_0x7fd0('0xa'),_0x7fd0('0xb')];var AGIVertices=function(_0x5960c4,_0x4dfb73,_0x27aa04){this['channel']=_0x5960c4;this[_0x7fd0('0xc')]=_0x4dfb73;this[_0x7fd0('0xd')]=_0x27aa04;};AGIVertices[_0x7fd0('0xe')][_0x7fd0('0xf')]=function(_0x441f63,_0x13d641){this[_0x7fd0('0xc')][_0x7fd0('0x10')](_0x441f63)[_0x7fd0('0x11')](function(_0x5d4afa){_0x13d641(null,_0x5d4afa?_0x5d4afa['name']:![]);})[_0x7fd0('0x12')](function(_0x465326){_0x13d641(_0x465326);});};AGIVertices[_0x7fd0('0xe')][_0x7fd0('0x13')]=function(_0x15ba65,_0x463526){this[_0x7fd0('0xc')]['getVoiceQueueById'](_0x15ba65)[_0x7fd0('0x11')](function(_0x407ae9){_0x463526(null,_0x407ae9?_0x407ae9[_0x7fd0('0x14')]:![]);})[_0x7fd0('0x12')](function(_0x2ab283){_0x463526(_0x2ab283);});};AGIVertices[_0x7fd0('0xe')][_0x7fd0('0x15')]=function(_0x1adf5d,_0x5ca99d){this[_0x7fd0('0xc')][_0x7fd0('0x16')](_0x1adf5d)['then'](function(_0x46741d){_0x5ca99d(null,_0x46741d?_0x46741d[_0x7fd0('0x14')]:![]);})[_0x7fd0('0x12')](function(_0x1db0e6){_0x5ca99d(_0x1db0e6);});};AGIVertices[_0x7fd0('0xe')][_0x7fd0('0x17')]=function(_0x458622,_0x330087){this[_0x7fd0('0xc')]['getSquareOdbcById'](_0x458622)[_0x7fd0('0x11')](function(_0x1ec783){_0x330087(null,_0x1ec783?_0x1ec783[_0x7fd0('0x18')]:![]);})['catch'](function(_0x30d9d6){_0x330087(_0x30d9d6);});};AGIVertices[_0x7fd0('0xe')]['getUser']=function(_0x19b2e3,_0xdd4a81){this[_0x7fd0('0xc')][_0x7fd0('0x19')](_0x19b2e3)[_0x7fd0('0x11')](function(_0x3090a6){_0xdd4a81(null,_0x3090a6?_0x3090a6[_0x7fd0('0x14')]:![]);})[_0x7fd0('0x12')](function(_0x39a23a){_0xdd4a81(_0x39a23a);});};AGIVertices[_0x7fd0('0xe')]['getTrunk']=function(_0x2bd958,_0x383d91){this['rpc'][_0x7fd0('0x1a')](_0x2bd958)[_0x7fd0('0x11')](function(_0x55cd93){_0x383d91(null,_0x55cd93?_0x55cd93[_0x7fd0('0x14')]:![]);})[_0x7fd0('0x12')](function(_0x4a80ee){_0x383d91(_0x4a80ee);});};AGIVertices[_0x7fd0('0xe')][_0x7fd0('0x1b')]=function(_0x187102,_0x21297d){var _0x80b765=this;this[_0x7fd0('0xc')][_0x7fd0('0x1c')](_0x187102)['then'](function(_0x2279bc){_0x21297d(null,_0x2279bc?_0x80b765[_0x7fd0('0x1d')](_0x2279bc[_0x7fd0('0x1e')]):![]);})[_0x7fd0('0x12')](function(_0x23cbf0){_0x21297d(_0x23cbf0);});};AGIVertices[_0x7fd0('0xe')]['getMailAccount']=function(_0x1ab26c,_0x4c0012){this[_0x7fd0('0xc')][_0x7fd0('0x1f')](_0x1ab26c)[_0x7fd0('0x11')](function(_0x13e3bd){_0x4c0012(null,_0x13e3bd?_0x13e3bd:![]);})['catch'](function(_0x2d09cc){_0x4c0012(_0x2d09cc);});};AGIVertices[_0x7fd0('0xe')][_0x7fd0('0x20')]=function(_0x3448e8,_0x232581,_0x4abc5d){this[_0x7fd0('0xd')][_0x7fd0('0x20')](_0x3448e8,_0x232581)[_0x7fd0('0x11')](function(){_0x4abc5d(null);})[_0x7fd0('0x12')](function(_0x277924){_0x4abc5d(_0x277924);});};AGIVertices[_0x7fd0('0xe')][_0x7fd0('0x21')]=function(_0x260d54,_0x4af363){this[_0x7fd0('0xc')][_0x7fd0('0x22')](_0x260d54)['then'](function(_0x29de2b){if(_0x29de2b){if(_0x29de2b[_0x7fd0('0x23')]){_0x4af363(null,[_0x29de2b[_0x7fd0('0x24')]]);}else{_0x4af363(null,_[_0x7fd0('0x25')](_0x29de2b[_0x7fd0('0x26')],_0x7fd0('0x24')));}}else{_0x4af363(null,![]);}})['catch'](function(_0x34524c){_0x4af363(_0x34524c);});};AGIVertices[_0x7fd0('0xe')]['getSoundPath']=function(_0x348263){return util[_0x7fd0('0x27')](_0x7fd0('0x28'),FILES_PATH,_0x348263);};AGIVertices[_0x7fd0('0xe')][_0x7fd0('0x29')]=function(_0x344bb1,_0x4db0a5,_0x59bc3f){odbc[_0x7fd0('0x2a')](_0x344bb1,function(_0x33ac7a){if(_0x33ac7a){logger[_0x7fd0('0x2b')](_0x7fd0('0x2c'),_0x33ac7a);_0x59bc3f(_0x33ac7a);}else{logger['info']('ODBC\x20connection\x20successfully');odbc[_0x7fd0('0x2d')](_0x4db0a5,function(_0xba1eb2,_0x21b14a){if(_0xba1eb2){logger[_0x7fd0('0x2e')](_0x7fd0('0x2f'),_0x4db0a5);_0x59bc3f(_0xba1eb2);}else{logger['info'](_0x7fd0('0x30'),_0x4db0a5);odbc[_0x7fd0('0x31')](function(_0x350e0a){if(_0x350e0a){logger['error'](_0x7fd0('0x32'),_0x350e0a);}_0x59bc3f(null,_0x21b14a);});}});}});};AGIVertices[_0x7fd0('0xe')][_0x7fd0('0x33')]=function(_0x54f5be,_0x26a871){this['rpc'][_0x7fd0('0x34')](_0x54f5be)['then'](function(_0xd89029){_0x26a871(null,_0xd89029?_0xd89029:![]);})[_0x7fd0('0x12')](function(_0x405b11){_0x26a871(_0x405b11);});};AGIVertices[_0x7fd0('0xe')]['createSmsMessage']=function(_0x1d1278,_0x5a6ac2){this[_0x7fd0('0xc')][_0x7fd0('0x35')](_0x1d1278)[_0x7fd0('0x11')](function(_0x1a5ae0){_0x5a6ac2(null,_0x1a5ae0);})['catch'](function(_0x2dbfad){_0x5a6ac2(_0x2dbfad);});};AGIVertices[_0x7fd0('0xe')][_0x7fd0('0x36')]=function(_0x2005bf,_0x5c437b,_0x3823c7){this[_0x7fd0('0xc')][_0x7fd0('0x36')]({'uniqueid':this['channel'][_0x7fd0('0x37')],'node':_0x2005bf[_0x7fd0('0x38')],'application':_0x2005bf[_0x7fd0('0x39')],'data':_0x5c437b||null,'project_name':this[_0x7fd0('0x3a')][_0x7fd0('0x3b')],'callerid':this[_0x7fd0('0x3a')]['callerid']})[_0x7fd0('0x11')](function(_0x82bb2d){if(_0x3823c7){_0x3823c7(null,_0x82bb2d);}})[_0x7fd0('0x12')](function(_0x5b57ba){if(_0x3823c7){_0x3823c7(_0x5b57ba);}});};AGIVertices[_0x7fd0('0xe')][_0x7fd0('0x3c')]=function(_0x58c080,_0x351f05,_0x582e94,_0x5193a9){this['rpc'][_0x7fd0('0x3c')]({'uniqueid':this[_0x7fd0('0x3a')]['uniqueid'],'callerid':this[_0x7fd0('0x3a')][_0x7fd0('0x3d')],'calleridname':this[_0x7fd0('0x3a')][_0x7fd0('0x3e')],'context':this['channel'][_0x7fd0('0x3f')],'extension':this[_0x7fd0('0x3a')][_0x7fd0('0x40')],'priority':this[_0x7fd0('0x3a')][_0x7fd0('0x41')],'accountcode':this[_0x7fd0('0x3a')][_0x7fd0('0x42')],'dnid':this[_0x7fd0('0x3a')][_0x7fd0('0x43')],'projectName':this[_0x7fd0('0x3a')]['arg_1'],'saveName':_0x351f05,'filename':_0x58c080[_0x7fd0('0x44')]||_0x351f05,'savePath':_0x582e94})['then'](function(_0x3434af){_0x5193a9(null,_0x3434af);})[_0x7fd0('0x12')](function(_0x4a48a2){_0x5193a9(_0x4a48a2);});};AGIVertices['prototype'][_0x7fd0('0x45')]=function(_0x509447,_0x427bae,_0x56c07a,_0xa92c3,_0xf40c60){this[_0x7fd0('0xc')][_0x7fd0('0x45')]({'uniqueid':this[_0x7fd0('0x3a')]['uniqueid'],'body':_0x509447,'direction':_0x427bae,'providerName':_0x56c07a,'providerResponse':_0xa92c3})[_0x7fd0('0x11')](function(_0x2ef42a){if(_0xf40c60){_0xf40c60(null,_0x2ef42a);}})['catch'](function(_0x3f1515){if(_0xf40c60){_0xf40c60(_0x3f1515);}});};AGIVertices[_0x7fd0('0xe')][_0x7fd0('0x46')]=function(_0x49d31d,_0x3c432c){this[_0x7fd0('0xc')][_0x7fd0('0x46')]({'firstName':_[_0x7fd0('0x47')](_0x49d31d[_0x7fd0('0x14')])||_[_0x7fd0('0x48')](_0x49d31d[_0x7fd0('0x14')])?_0x7fd0('0x49')+Math['random']():_0x49d31d[_0x7fd0('0x14')],'lastName':_[_0x7fd0('0x47')](_0x49d31d['lastName'])||_[_0x7fd0('0x48')](_0x49d31d[_0x7fd0('0x4a')])?null:_0x49d31d[_0x7fd0('0x4a')],'phone':_0x49d31d[_0x7fd0('0x4b')],'ListId':_0x49d31d[_0x7fd0('0x4c')],'scheduledat':_0x49d31d[_0x7fd0('0x4d')],'callbackUniqueid':this[_0x7fd0('0x3a')][_0x7fd0('0x37')],'tags':_0x7fd0('0x4e'),'description':_0x7fd0('0x4f')+_0x49d31d[_0x7fd0('0x4d')][_0x7fd0('0x50')](),'priority':_0x49d31d[_0x7fd0('0x51')]})[_0x7fd0('0x11')](function(_0x35ce0b){_0x3c432c(null,_0x35ce0b);})['catch'](function(_0x4ca932){_0x3c432c(_0x4ca932);});};AGIVertices['prototype'][_0x7fd0('0x52')]=function(_0x2b825b,_0x4c191d){this[_0x7fd0('0xc')][_0x7fd0('0x53')](_0x2b825b)[_0x7fd0('0x11')](function(_0x13d781){_0x4c191d(null,_0x13d781?_0x13d781[_0x7fd0('0x14')]:![]);})[_0x7fd0('0x12')](function(_0x32cc3d){_0x4c191d(_0x32cc3d);});};AGIVertices['prototype'][_0x7fd0('0x54')]=function(_0x2eb3a5,_0x360b14,_0x2c9b38){var _0x3b81ba={'role':'agent'};_0x3b81ba[_0x2eb3a5]=this[_0x7fd0('0x3a')][_0x7fd0('0x3d')];this['rpc']['agentPause'](_0x3b81ba,_0x360b14,this[_0x7fd0('0x3a')][_0x7fd0('0x37')])['then'](function(_0x3aa831){_0x2c9b38(null,_['isNil'](_0x3aa831)?![]:!![]);})[_0x7fd0('0x12')](function(_0x4fd5f4){logger[_0x7fd0('0x2b')](_0x4fd5f4);_0x2c9b38(null,![]);});};AGIVertices[_0x7fd0('0xe')][_0x7fd0('0x55')]=function(_0x4af5c4,_0x2b273e){var _0xc0fe4a={'role':_0x7fd0('0x56')};_0xc0fe4a[_0x4af5c4]=this[_0x7fd0('0x3a')]['callerid'];this[_0x7fd0('0xc')]['agentUnpause'](_0xc0fe4a)[_0x7fd0('0x11')](function(_0x16288b){_0x2b273e(null,_[_0x7fd0('0x48')](_0x16288b)?![]:!![]);})[_0x7fd0('0x12')](function(_0x4dbe79){logger[_0x7fd0('0x2b')](_0x4dbe79);_0x2b273e(null,![]);});};AGIVertices[_0x7fd0('0xe')][_0x7fd0('0x57')]=function(_0x2826c7,_0x5b440c){var _0x2b1143={'role':_0x7fd0('0x56')};_0x2b1143[_0x2826c7]=this[_0x7fd0('0x3a')][_0x7fd0('0x3d')];this[_0x7fd0('0xc')][_0x7fd0('0x57')](_0x2b1143)[_0x7fd0('0x11')](function(_0x344831){_0x5b440c(null,_[_0x7fd0('0x48')](_0x344831)?![]:!![]);})[_0x7fd0('0x12')](function(_0x47c548){logger[_0x7fd0('0x2b')](_0x47c548);_0x5b440c(null,![]);});};AGIVertices[_0x7fd0('0xe')][_0x7fd0('0x58')]=function(_0x53155c,_0x37f1cf){var _0x220ebf={'role':_0x7fd0('0x56')};_0x220ebf[_0x53155c]=this[_0x7fd0('0x3a')][_0x7fd0('0x3d')];var _0x2ade7b=_0x53155c!=_0x7fd0('0x59')?util['format'](_0x7fd0('0x5a'),_0x7fd0('0x5b'),this['channel'][_0x7fd0('0x3d')]):undefined;this[_0x7fd0('0xc')][_0x7fd0('0x58')](_0x220ebf,_0x2ade7b)[_0x7fd0('0x11')](function(_0x1ac28c){_0x37f1cf(null,_[_0x7fd0('0x48')](_0x1ac28c)?![]:!![]);})['catch'](function(_0x599296){logger[_0x7fd0('0x2b')](_0x599296);_0x37f1cf(null,![]);});};AGIVertices[_0x7fd0('0xe')][_0x7fd0('0x5c')]=function(_0x267620,_0x1f8722){sh[_0x7fd0('0x5d')](_[_0x7fd0('0x5e')](_0x267620),function(_0x2d4289,_0x56cd07){var _0x59766d=_0x56cd07[_0x7fd0('0x5f')](/(\r\n|\n|\r)/gm,'');_0x1f8722(null,_0x59766d);});};AGIVertices[_0x7fd0('0xe')]['googleCloudTTS']=function(_0x3535cf,_0x3caa6e){scripts[_0x7fd0('0x60')](_0x3535cf[_0x7fd0('0x61')],_0x3535cf[_0x7fd0('0x62')]||_0x7fd0('0x63'),_0x3535cf[_0x7fd0('0x63')],_0x3535cf[_0x7fd0('0x64')]||'en-US',_0x3535cf[_0x7fd0('0x65')]||_0x7fd0('0x66'),_0x3535cf[_0x7fd0('0x67')]||'MP3')[_0x7fd0('0x11')](function(_0x11596a){_0x3caa6e(null,_0x11596a);})[_0x7fd0('0x12')](function(_0x27bb44){_0x3caa6e(_0x27bb44);});};AGIVertices[_0x7fd0('0xe')][_0x7fd0('0x68')]=function(_0x17314d,_0x3e1aeb){scripts[_0x7fd0('0x68')](_0x17314d[_0x7fd0('0x63')],_0x17314d[_0x7fd0('0x69')]||'en',0x1)['then'](function(_0x23828a){_0x3e1aeb(null,_0x23828a);})[_0x7fd0('0x12')](function(_0x430e98){_0x3e1aeb(_0x430e98);});};AGIVertices['prototype'][_0x7fd0('0x6a')]=function(_0x5dca4a,_0x1a5575){var _0x5d17d0={'uri':_0x5dca4a[_0x7fd0('0x6b')],'method':_0x5dca4a[_0x7fd0('0x6c')],'json':!![],'resolveWithFullResponse':!![],'strictSSL':![],'timeout':typeof parseInt(_0x5dca4a['timeout'])===_0x7fd0('0x6d')&&parseInt(_0x5dca4a[_0x7fd0('0x6e')])>=0x1?parseInt(_0x5dca4a[_0x7fd0('0x6e')])*0x3e8:0x5*0x3e8};if(_[_0x7fd0('0x6f')]([_0x7fd0('0x70'),'PUT'],_0x5d17d0[_0x7fd0('0x6c')][_0x7fd0('0x71')]())){try{_0x5d17d0[_0x7fd0('0x72')]=_0x5dca4a[_0x7fd0('0x73')]?JSON[_0x7fd0('0x74')](_0x5dca4a[_0x7fd0('0x73')]):{};}catch(_0x441d2a){logger[_0x7fd0('0x2b')]('An\x20incorrect\x20formatted\x20json\x20body\x20has\x20been\x20passed\x20to\x20the\x20function',_0x441d2a);}}try{_0x5d17d0[_0x7fd0('0x75')]=_0x5dca4a[_0x7fd0('0x8')]?JSON[_0x7fd0('0x74')](_0x5dca4a[_0x7fd0('0x8')]):{};}catch(_0x1337bf){logger[_0x7fd0('0x2b')](_0x7fd0('0x76'),_0x1337bf);}if(_0x5dca4a['computedVariables']){try{var _0x2b5b79=require(_0x5dca4a[_0x7fd0('0x77')])[_0x7fd0('0x78')](this,_0x5d17d0);_0x5d17d0['uri']=Mustache[_0x7fd0('0x79')](_0x5dca4a[_0x7fd0('0x6b')],_0x2b5b79,{},['$$','$$']);if(_0x5d17d0[_0x7fd0('0x75')]){_0x5d17d0[_0x7fd0('0x75')]=JSON[_0x7fd0('0x74')](Mustache['render'](JSON[_0x7fd0('0x7a')](_0x5d17d0['headers']),_0x2b5b79,{},['$$','$$']));}if(_0x5d17d0['body']){_0x5d17d0['body']=JSON[_0x7fd0('0x74')](Mustache[_0x7fd0('0x79')](JSON[_0x7fd0('0x7a')](_0x5d17d0[_0x7fd0('0x72')]),_0x2b5b79,{},['$$','$$']));}}catch(_0x445864){logger['error']('An\x20incorrect\x20formatted\x20json\x20has\x20been\x20passed\x20to\x20the\x20function',_0x445864);}}rp(_0x5d17d0)[_0x7fd0('0x11')](function(_0x163970){var _0x293ddd={'statusCode':_0x163970[_0x7fd0('0x7b')]||0xc8,'statusMessage':_0x163970[_0x7fd0('0x7c')]||'OK','headers':_0x163970[_0x7fd0('0x75')]||{},'body':_0x163970[_0x7fd0('0x72')]||{}};_0x1a5575(null,_0x293ddd);})[_0x7fd0('0x12')](function(_0xb633f6){var _0x21a9c3={'statusCode':_0xb633f6['statusCode']||0x1f4,'statusMessage':_0xb633f6[_0x7fd0('0x7d')]||_0x7fd0('0x7e'),'headers':_0xb633f6[_0x7fd0('0x7f')]['headers']||{},'body':_0xb633f6[_0x7fd0('0x7f')][_0x7fd0('0x72')]||{}};_0x1a5575(null,_0x21a9c3);});};AGIVertices[_0x7fd0('0xe')][_0x7fd0('0x80')]=function(_0xd2d52b,_0x420a03){scripts[_0x7fd0('0x80')](this[_0x7fd0('0x3a')]['uniqueid'],_0xd2d52b[_0x7fd0('0x81')],_0xd2d52b[_0x7fd0('0x63')],_0xd2d52b[_0x7fd0('0x82')]||'en')[_0x7fd0('0x11')](function(_0x3d9132){_0x420a03(null,_0x3d9132);})[_0x7fd0('0x12')](function(_0x3b327b){_0x420a03(_0x3b327b);});};AGIVertices['prototype'][_0x7fd0('0x83')]=function(_0x20a00c,_0x24a00f){scripts[_0x7fd0('0x83')](this[_0x7fd0('0x3a')]['uniqueid'],_0x20a00c[_0x7fd0('0x84')],_0x20a00c[_0x7fd0('0x85')],_0x20a00c[_0x7fd0('0x86')],_0x20a00c[_0x7fd0('0x63')],_0x20a00c[_0x7fd0('0x87')]||'en')[_0x7fd0('0x11')](function(_0x2fbbe6){_0x24a00f(null,_0x2fbbe6);})[_0x7fd0('0x12')](function(_0xf059a5){_0x24a00f(_0xf059a5);});};AGIVertices[_0x7fd0('0xe')]['sestekNDA']=function(_0x577e52,_0xf74aea){scripts[_0x7fd0('0x88')](this[_0x7fd0('0x3a')],_0x577e52)[_0x7fd0('0x11')](function(_0x58571a){_0xf74aea(null,_0x58571a);})['catch'](function(_0x173e17){_0xf74aea(_0x173e17);});};AGIVertices[_0x7fd0('0xe')][_0x7fd0('0x89')]=function(_0x18086d,_0x169875){scripts[_0x7fd0('0x89')](_0x18086d['key'],_0x18086d[_0x7fd0('0x63')],_0x18086d[_0x7fd0('0x8a')]||_0x7fd0('0x8b'),_0x18086d[_0x7fd0('0x8c')])[_0x7fd0('0x11')](function(_0x36eff6){_0x169875(null,_0x36eff6);})[_0x7fd0('0x12')](function(_0x5e1779){_0x169875(_0x5e1779);});};AGIVertices[_0x7fd0('0xe')][_0x7fd0('0x8d')]=function(_0x3029ab,_0x31e3de,_0x2b70ce){scripts[_0x7fd0('0x8d')](_0x31e3de,_0x3029ab[_0x7fd0('0x81')],_0x3029ab[_0x7fd0('0x8e')]||_0x7fd0('0x8b'),this[_0x7fd0('0x8f')](_0x3029ab[_0x7fd0('0x90')])?_0x3029ab['model']:undefined)[_0x7fd0('0x11')](function(_0x45f3df){_0x2b70ce(null,_0x45f3df);})[_0x7fd0('0x12')](function(_0x3e98f0){_0x2b70ce(_0x3e98f0);});};AGIVertices[_0x7fd0('0xe')]['awsPolly']=function(_0x5b898b,_0x3af61b){scripts[_0x7fd0('0x91')](_0x5b898b[_0x7fd0('0x92')],_0x5b898b[_0x7fd0('0x93')],_0x5b898b['aws_polly_region'],_0x5b898b['aws_polly_voice']||_0x7fd0('0x94'),_0x5b898b['text'],_0x5b898b[_0x7fd0('0x95')]||_0x7fd0('0x63'))[_0x7fd0('0x11')](function(_0x793bda){_0x3af61b(null,_0x793bda);})['catch'](function(_0x34c836){_0x3af61b(_0x34c836);});};AGIVertices[_0x7fd0('0xe')][_0x7fd0('0x96')]=function(_0x4c8912,_0x9fcd8c){scripts[_0x7fd0('0x96')](this[_0x7fd0('0x3a')][_0x7fd0('0x37')],_0x4c8912[_0x7fd0('0x92')],_0x4c8912[_0x7fd0('0x93')],_0x4c8912[_0x7fd0('0x97')],_0x4c8912[_0x7fd0('0x63')],_0x4c8912[_0x7fd0('0x98')])['then'](function(_0x56f34f){_0x9fcd8c(null,_0x56f34f);})[_0x7fd0('0x12')](function(_0x198287){_0x9fcd8c(_0x198287);});};AGIVertices['prototype'][_0x7fd0('0x99')]=function(_0x435d8d,_0x126fa6,_0x531dba){scripts[_0x7fd0('0x99')](_0x126fa6,_0x435d8d[_0x7fd0('0x81')],_0x435d8d[_0x7fd0('0x9a')]||'en-US')['then'](function(_0x13fffa){_0x531dba(null,_0x13fffa);})[_0x7fd0('0x12')](function(_0x499f1b){_0x531dba(_0x499f1b);});};AGIVertices[_0x7fd0('0xe')]['tildeASR']=function(_0x4cfd5e,_0x9913fc,_0x1e6454){scripts[_0x7fd0('0x9b')](_0x9913fc,_0x4cfd5e[_0x7fd0('0x9c')],_0x4cfd5e[_0x7fd0('0x9d')],_0x4cfd5e[_0x7fd0('0x9e')])[_0x7fd0('0x11')](function(_0x3b6eb4){_0x1e6454(null,_0x3b6eb4);})[_0x7fd0('0x12')](function(_0x5f4c75){_0x1e6454(_0x5f4c75);});};AGIVertices[_0x7fd0('0xe')]['clear']=function(_0x31efa5){var _0x1bc56b=_[_0x7fd0('0x6f')](verticesWithRetry,_0x31efa5[_0x7fd0('0x39')])?_0x31efa5:_['clone'](_0x31efa5);for(var _0x275169 in _0x1bc56b){if(_0x1bc56b[_0x7fd0('0x9f')](_0x275169)){if(_0x1bc56b[_0x275169]&&_[_0x7fd0('0xa0')](_0x1bc56b[_0x275169])){if(_[_0x7fd0('0x6f')](recursiveMapAttributes,_0x275169)){_0x1bc56b[_0x275169]=this[_0x7fd0('0xa1')](_0x1bc56b[_0x275169]);}else{_0x1bc56b[_0x275169]=this[_0x7fd0('0xa2')](_0x1bc56b[_0x275169]);}}}}return _0x1bc56b;};AGIVertices['prototype']['recursiveNodeIndex']=function(_0x138a09){for(var _0x313c74 in _0x138a09){if(_0x138a09[_0x7fd0('0x9f')](_0x313c74)){if(_[_0x7fd0('0xa3')](_0x138a09[_0x313c74])){this[_0x7fd0('0xa4')](_0x138a09[_0x313c74]);}else if(_[_0x7fd0('0xa5')](_0x138a09[_0x313c74])){for(var _0xa4a067=0x0;_0xa4a067<_0x138a09[_0x313c74]['length'];_0xa4a067++){this['recursiveNodeIndex'](_0x138a09[_0x313c74][_0xa4a067]);}}else if(_[_0x7fd0('0xa0')](_0x138a09[_0x313c74])){_0x138a09[_0x313c74]=this['replaceAllVariables'](_0x138a09[_0x313c74]);}}}};AGIVertices[_0x7fd0('0xe')][_0x7fd0('0xa6')]=function(_0x35e963,_0x28220f){for(var _0x3011af in _0x35e963){if(_0x35e963[_0x7fd0('0x9f')](_0x3011af)){if(_[_0x7fd0('0xa3')](_0x35e963[_0x3011af])){if(!_[_0x7fd0('0x47')](_0x35e963[_0x3011af])){this['saveRestApiResult'](_0x35e963[_0x3011af],util[_0x7fd0('0x27')](_0x7fd0('0xa7'),_0x28220f,_0x3011af));}}else if(_[_0x7fd0('0xa5')](_0x35e963[_0x3011af])){for(var _0xdf129d=0x0;_0xdf129d<_0x35e963[_0x3011af][_0x7fd0('0xa8')];_0xdf129d++){this['saveRestApiResult'](_0x35e963[_0x3011af][_0xdf129d],util[_0x7fd0('0x27')](_0x7fd0('0xa7'),_0x28220f,_0x3011af+'['+_0xdf129d+']'));}}else{if(!_[_0x7fd0('0x48')](_0x35e963[_0x3011af])){this['channel'][_0x7fd0('0xa9')](util[_0x7fd0('0x27')]('%s.%s',_0x28220f,_0x3011af),_0x35e963[_0x3011af]);}}}}};AGIVertices['prototype'][_0x7fd0('0xa1')]=function(_0x880083){try{var _0x1f9abb=JSON['parse'](_0x880083);this[_0x7fd0('0xa4')](_0x1f9abb);return JSON['stringify'](_0x1f9abb);}catch(_0x576ffb){return this[_0x7fd0('0xa2')](_0x880083);}};AGIVertices['prototype'][_0x7fd0('0xa2')]=function(_0x17c50a){var _0xdcf13b=_0x17c50a['split']('{');for(var _0xfb75a0=0x1;_0xfb75a0<_0xdcf13b[_0x7fd0('0xa8')];_0xfb75a0+=0x1){var _0x2fff57=_0xdcf13b[_0xfb75a0][_0x7fd0('0xaa')]('}');if(_0x2fff57[_0x7fd0('0xa8')]>0x1){_0x17c50a=_0x17c50a['replaceAll']('{'+_0x2fff57[0x0]+'}',this['channel'][_0x7fd0('0xf')](_0x2fff57[0x0])['extra']||_0x2fff57[0x0]);}}if(_0xdcf13b[_0x7fd0('0xa8')]===0x1){return _0x17c50a[_0x7fd0('0x50')]();}return this['replaceAllVariables'](_0x17c50a);};AGIVertices[_0x7fd0('0xe')]['getAndSetVariable']=function(_0x53c7f4,_0x330360){var _0x6d4d67=this[_0x7fd0('0x3a')][_0x7fd0('0xf')](_0x53c7f4);if(_0x6d4d67['result']===-0x1){return _0x6d4d67;}logger[_0x7fd0('0x2e')](util[_0x7fd0('0x27')]('The\x20\x22%s\x22\x20variable\x20value\x20is:\x20%s',_0x330360,_0x6d4d67['extra']));return this[_0x7fd0('0x3a')][_0x7fd0('0xa9')](_0x330360,_0x6d4d67[_0x7fd0('0xab')]);};AGIVertices['prototype'][_0x7fd0('0x8f')]=function(_0x44c6df){return _0x44c6df&&_0x44c6df!=='0'&&_0x44c6df!=='-1'&&_0x44c6df!=='';};AGIVertices[_0x7fd0('0xe')][_0x7fd0('0xac')]=function(_0x139e6d){this[_0x7fd0('0x36')][_0x7fd0('0x78')](this,_0x139e6d,'-');_0x139e6d[_0x7fd0('0xad')]=_0x139e6d[_0x7fd0('0xac')];return{'code':0xc8,'result':'-'};};AGIVertices[_0x7fd0('0xe')][_0x7fd0('0xae')]=function(_0x29ba5b){logger[_0x7fd0('0x2e')](util[_0x7fd0('0x27')](_0x7fd0('0xaf'),_0x29ba5b[_0x7fd0('0x38')]));if(!this['isConfigured'](_0x29ba5b['text'])){return this[_0x7fd0('0x3a')][_0x7fd0('0xb0')](_0x7fd0('0xb1'));}var _0x147889='\x22'+_0x29ba5b[_0x7fd0('0x63')]+'\x22';if(this[_0x7fd0('0x8f')](_0x29ba5b['options'])){_0x147889+=','+_0x29ba5b['options'];}var _0x4c170e=this['channel'][_0x7fd0('0x5d')](_0x7fd0('0xb2'),_0x147889);if(_0x4c170e[_0x7fd0('0xb3')]===-0x1){return _0x4c170e;}return this[_0x7fd0('0x3a')][_0x7fd0('0xb0')](util['format'](_0x7fd0('0xb4'),_0x147889));};AGIVertices['prototype'][_0x7fd0('0xb5')]=function(_0x4961ff){logger[_0x7fd0('0x2e')](util['format'](_0x7fd0('0xb6'),_0x4961ff[_0x7fd0('0x38')]));if(!this['isConfigured'](_0x4961ff[_0x7fd0('0xb7')])){return this['channel']['noop']('no\x20grammar\x20configured');}var _0xffbeec=_0x4961ff[_0x7fd0('0xb7')];if(this[_0x7fd0('0x8f')](_0x4961ff[_0x7fd0('0x7f')])){_0xffbeec+=','+_0x4961ff[_0x7fd0('0x7f')];}var _0x35780f=this[_0x7fd0('0x3a')][_0x7fd0('0x5d')](_0x7fd0('0xb8'),_0xffbeec);if(_0x35780f['result']===-0x1){return _0x35780f;}var _0x402b7e=this['getAndSetVariable'](_0x7fd0('0xb9'),_0x7fd0('0xba'));if(_0x402b7e['result']===-0x1){return _0x402b7e;}var _0x310fc1=this['getAndSetVariable'](_0x7fd0('0xbb'),_0x7fd0('0xbc'));if(_0x310fc1[_0x7fd0('0xb3')]===-0x1){return _0x310fc1;}var _0x4c214c=this[_0x7fd0('0xbd')]('RECOG_INSTANCE()',_0x7fd0('0xbe'));if(_0x4c214c[_0x7fd0('0xb3')]===-0x1){return _0x4c214c;}return this['channel']['noop'](util[_0x7fd0('0x27')]('Executed\x20command\x20MRCPRecog\x20%s',_0xffbeec));};AGIVertices['prototype']['agi']=function(_0x56a3e2){logger[_0x7fd0('0x2e')](util[_0x7fd0('0x27')](_0x7fd0('0xbf'),_0x56a3e2[_0x7fd0('0x38')]));return this[_0x7fd0('0x3a')][_0x7fd0('0xc0')]([_0x56a3e2[_0x7fd0('0xc1')],_0x56a3e2[_0x7fd0('0xc2')]]);};AGIVertices[_0x7fd0('0xe')][_0x7fd0('0xc3')]=function(_0x50996a){logger[_0x7fd0('0x2e')](util[_0x7fd0('0x27')](_0x7fd0('0xc4'),_0x50996a['label']));if(this[_0x7fd0('0x8f')](_0x50996a[_0x7fd0('0x6e')])){logger[_0x7fd0('0x2e')](util['format'](_0x7fd0('0xc5'),_0x50996a[_0x7fd0('0x6e')]));var _0x174519=this[_0x7fd0('0x3a')][_0x7fd0('0xc6')](_0x50996a['timeout']);if(_0x174519[_0x7fd0('0xb3')]===-0x1){return _0x174519;}}return this[_0x7fd0('0x3a')][_0x7fd0('0xc3')]();};AGIVertices[_0x7fd0('0xe')]['callback']=function(_0x12af41){logger[_0x7fd0('0x2e')](util[_0x7fd0('0x27')](_0x7fd0('0xc7'),_0x12af41[_0x7fd0('0x38')]));if(!this[_0x7fd0('0x8f')](_0x12af41[_0x7fd0('0x4c')])){return this[_0x7fd0('0x3a')]['error'](_0x12af41,_0x7fd0('0xc8'));}_0x12af41[_0x7fd0('0x4d')]=moment();if(this[_0x7fd0('0x8f')](_0x12af41['delay'])){_0x12af41[_0x7fd0('0x4d')]=moment()[_0x7fd0('0xc9')](_0x12af41[_0x7fd0('0xca')],_0x7fd0('0xcb'));}if(!this[_0x7fd0('0x8f')](_0x12af41[_0x7fd0('0x51')])){_0x12af41[_0x7fd0('0x51')]=0x2;}this[_0x7fd0('0x46')][_0x7fd0('0x78')](this,_0x12af41);return this[_0x7fd0('0x3a')][_0x7fd0('0xb0')](util[_0x7fd0('0x27')](_0x7fd0('0xcc'),_0x12af41[_0x7fd0('0x4b')],_0x12af41[_0x7fd0('0x4c')],_0x12af41[_0x7fd0('0x4d')]));};AGIVertices['prototype'][_0x7fd0('0xcd')]=function(_0x1c7eae){logger['info'](util['format'](_0x7fd0('0xce'),_0x1c7eae[_0x7fd0('0x38')]));var _0x33a79e=this[_0x7fd0('0x3a')]['exec'](_0x1c7eae['application'],_0x1c7eae[_0x7fd0('0x7f')]);if(_0x33a79e[_0x7fd0('0xb3')]===-0x1){return _0x33a79e;}return this['channel'][_0x7fd0('0xb0')](util[_0x7fd0('0x27')](_0x7fd0('0xcf'),_0x1c7eae[_0x7fd0('0xd0')],_0x1c7eae['options']));};AGIVertices['prototype'][_0x7fd0('0xd1')]=function(_0x2e69e5){logger[_0x7fd0('0x2e')](util['format']('Enter\x20in\x20LUMENVOXTTS\x20(%s)\x20block',_0x2e69e5['label']));if(!this[_0x7fd0('0x8f')](_0x2e69e5['text'])){return this[_0x7fd0('0x3a')][_0x7fd0('0xb0')]('no\x20text\x20configured');}var _0x2da720='\x22'+_0x2e69e5[_0x7fd0('0x63')]+'\x22';if(this[_0x7fd0('0x8f')](_0x2e69e5[_0x7fd0('0x7f')])){_0x2da720+=','+_0x2e69e5[_0x7fd0('0x7f')];}var _0x148d9c=this['channel']['exec']('MRCPSynth',_0x2da720);if(_0x148d9c[_0x7fd0('0xb3')]===-0x1){return _0x148d9c;}return this[_0x7fd0('0x3a')]['noop'](util[_0x7fd0('0x27')]('Executed\x20command\x20MRCPSynth\x20%s',_0x2da720));};AGIVertices[_0x7fd0('0xe')]['sestektts']=function(_0x17bc39){logger['info'](util[_0x7fd0('0x27')](_0x7fd0('0xd2'),_0x17bc39[_0x7fd0('0x38')]));if(!this[_0x7fd0('0x8f')](_0x17bc39[_0x7fd0('0x63')])){return this[_0x7fd0('0x3a')][_0x7fd0('0xb0')](_0x7fd0('0xb1'));}var _0x1e75be='\x22'+_0x17bc39[_0x7fd0('0x63')]+'\x22';if(this[_0x7fd0('0x8f')](_0x17bc39[_0x7fd0('0x7f')])){_0x1e75be+=','+_0x17bc39['options'];}var _0x1dc711=this[_0x7fd0('0x3a')]['exec']('MRCPSynth',_0x1e75be);if(_0x1dc711['result']===-0x1){return _0x1dc711;}return this[_0x7fd0('0x3a')][_0x7fd0('0xb0')](util[_0x7fd0('0x27')](_0x7fd0('0xb4'),_0x1e75be));};AGIVertices[_0x7fd0('0xe')][_0x7fd0('0xd3')]=function(_0x3f377a){logger[_0x7fd0('0x2e')](util[_0x7fd0('0x27')]('Enter\x20in\x20LUMENVOXASR\x20(%s)\x20block',_0x3f377a[_0x7fd0('0x38')]));if(!this[_0x7fd0('0x8f')](_0x3f377a[_0x7fd0('0xb7')])){return this[_0x7fd0('0x3a')][_0x7fd0('0xb0')](_0x7fd0('0xd4'));}var _0xec4082=_0x3f377a[_0x7fd0('0xb7')];if(this[_0x7fd0('0x8f')](_0x3f377a[_0x7fd0('0x7f')])){_0xec4082+=','+_0x3f377a[_0x7fd0('0x7f')];}var _0x2c03d5=this[_0x7fd0('0x3a')][_0x7fd0('0x5d')](_0x7fd0('0xb8'),_0xec4082);if(_0x2c03d5[_0x7fd0('0xb3')]===-0x1){return _0x2c03d5;}var _0x3b3ace=this[_0x7fd0('0xbd')](_0x7fd0('0xb9'),_0x7fd0('0xd5'));if(_0x3b3ace[_0x7fd0('0xb3')]===-0x1){return _0x3b3ace;}var _0x29f21f=this['getAndSetVariable'](_0x7fd0('0xbb'),_0x7fd0('0xd6'));if(_0x29f21f[_0x7fd0('0xb3')]===-0x1){return _0x29f21f;}var _0x3325fe=this[_0x7fd0('0xbd')]('RECOG_INSTANCE()','LUMENVOX_ASR_INSTANCE');if(_0x3325fe['result']===-0x1){return _0x3325fe;}return this[_0x7fd0('0x3a')]['noop'](util[_0x7fd0('0x27')]('Executed\x20command\x20MRCPRecog\x20%s',_0xec4082));};AGIVertices[_0x7fd0('0xe')][_0x7fd0('0xd7')]=function(_0x44f526){logger[_0x7fd0('0x2e')](util[_0x7fd0('0x27')](_0x7fd0('0xd8'),_0x44f526['label']));if(!this[_0x7fd0('0x8f')](_0x44f526['grammar'])){return this[_0x7fd0('0x3a')][_0x7fd0('0xb0')]('no\x20grammar\x20configured');}var _0x43a6ae=_0x44f526['grammar'];if(this['isConfigured'](_0x44f526[_0x7fd0('0x7f')])){_0x43a6ae+=','+_0x44f526[_0x7fd0('0x7f')];}var _0x58b5cb=this[_0x7fd0('0x3a')][_0x7fd0('0x5d')]('MRCPRecog',_0x43a6ae);if(_0x58b5cb[_0x7fd0('0xb3')]===-0x1){return _0x58b5cb;}var _0x9cc3f3=this[_0x7fd0('0xbd')]('RECOG_CONFIDENCE()',_0x7fd0('0xd9'));if(_0x9cc3f3[_0x7fd0('0xb3')]===-0x1){return _0x9cc3f3;}var _0x483b1b=this[_0x7fd0('0xbd')](_0x7fd0('0xbb'),_0x7fd0('0xda'));if(_0x483b1b[_0x7fd0('0xb3')]===-0x1){return _0x483b1b;}var _0x3b0da1=this[_0x7fd0('0xbd')](_0x7fd0('0xdb'),_0x7fd0('0xdc'));if(_0x3b0da1[_0x7fd0('0xb3')]===-0x1){return _0x3b0da1;}return this[_0x7fd0('0x3a')][_0x7fd0('0xb0')](util[_0x7fd0('0x27')](_0x7fd0('0xdd'),_0x43a6ae));};AGIVertices[_0x7fd0('0xe')][_0x7fd0('0xde')]=function(_0x52e413){logger[_0x7fd0('0x2e')](util[_0x7fd0('0x27')](_0x7fd0('0xdf'),_0x52e413[_0x7fd0('0x38')]));if(!this[_0x7fd0('0x8f')](_0x52e413[_0x7fd0('0xe0')])){return this[_0x7fd0('0x3a')][_0x7fd0('0x2b')](_0x52e413,'no\x20database\x20selected');}var _0x2910be=this[_0x7fd0('0x17')][_0x7fd0('0x78')](this,_0x52e413[_0x7fd0('0xe0')]);if(!_0x2910be){return this[_0x7fd0('0x3a')]['error'](_0x52e413,'no\x20odbc\x20database\x20found');}if(!this[_0x7fd0('0x8f')](_0x52e413[_0x7fd0('0x2d')])){return this['channel'][_0x7fd0('0x2b')](_0x52e413,_0x7fd0('0xe1'));}var _0x5101c5=_0x52e413[_0x7fd0('0x2d')]['replace'](/(\r\n|\n|\r)/gm,'\x20');this[_0x7fd0('0x3a')]['noop'](util[_0x7fd0('0x27')](_0x7fd0('0xe2'),_0x5101c5));var _0x54dde7=this[_0x7fd0('0x29')]['sync'](this,_0x2910be,_0x5101c5);this['createSquareDetailsReport']['sync'](this,_0x52e413,_0x5101c5);if(!this['isConfigured'](_0x52e413[_0x7fd0('0xe3')])){return this[_0x7fd0('0x3a')]['noop'](_0x7fd0('0xe4'));}var _0x4d2e47=this[_0x7fd0('0xf')][_0x7fd0('0x78')](this,_0x52e413[_0x7fd0('0xe3')]);if(!_0x4d2e47){return this[_0x7fd0('0x3a')][_0x7fd0('0x2b')](_0x52e413,_0x7fd0('0xe5'));}var _0x34b90e=this;_0x54dde7[_0x7fd0('0xe6')](function(_0x38e973,_0x1eca33){Object[_0x7fd0('0xe7')](_0x38e973)[_0x7fd0('0xe6')](function(_0x28c30d){_0x34b90e[_0x7fd0('0x3a')][_0x7fd0('0xa9')](util[_0x7fd0('0x27')](_0x7fd0('0xe8'),_0x4d2e47,_0x1eca33,_0x28c30d),_0x38e973[_0x28c30d]);});});this[_0x7fd0('0x3a')][_0x7fd0('0xa9')](util[_0x7fd0('0x27')](_0x7fd0('0xe9'),_0x4d2e47),_0x54dde7['length']);return this[_0x7fd0('0x3a')][_0x7fd0('0xb0')](util[_0x7fd0('0x27')](_0x7fd0('0xea'),_0x4d2e47));};AGIVertices['prototype']['dial']=function(_0x5e202b){logger[_0x7fd0('0xeb')](util[_0x7fd0('0x27')](_0x7fd0('0xec'),_0x5e202b[_0x7fd0('0x38')]));if(!this[_0x7fd0('0x8f')](_0x5e202b[_0x7fd0('0xed')])){return this[_0x7fd0('0x3a')][_0x7fd0('0x2b')](_0x5e202b,'no\x20user\x20selected');}var _0x835b92=this[_0x7fd0('0xee')]['sync'](this,_0x5e202b[_0x7fd0('0xed')]);if(!_0x835b92){return this['channel']['error'](_0x5e202b,'no\x20user\x20found');}var _0x2ad703=this[_0x7fd0('0x3a')]['exec']('DIAL',[util[_0x7fd0('0x27')]('SIP/%s',_0x835b92),_0x5e202b[_0x7fd0('0x6e')],_0x5e202b[_0x7fd0('0xef')],_0x5e202b[_0x7fd0('0x6b')]]);if(_0x2ad703[_0x7fd0('0xb3')]===-0x1){return _0x2ad703;}return this['channel'][_0x7fd0('0xb0')](util[_0x7fd0('0x27')](_0x7fd0('0xf0'),'DIAL'));};AGIVertices[_0x7fd0('0xe')][_0x7fd0('0xf1')]=function(_0x5cda4a){logger[_0x7fd0('0x2e')](util['format'](_0x7fd0('0xf2'),_0x5cda4a['label']));if(!this[_0x7fd0('0x8f')](_0x5cda4a[_0x7fd0('0x81')])){return this[_0x7fd0('0x3a')][_0x7fd0('0xb0')](_0x7fd0('0xf3'));}if(!this[_0x7fd0('0x8f')](_0x5cda4a[_0x7fd0('0x63')])){return this[_0x7fd0('0x3a')][_0x7fd0('0xb0')](_0x7fd0('0xb1'));}this['channel'][_0x7fd0('0xf4')]=!![];this[_0x7fd0('0x36')](_0x5cda4a);this['createSquareMessage'](_0x5cda4a[_0x7fd0('0x63')],'in','','');this['channel'][_0x7fd0('0xb0')](util['format'](_0x7fd0('0xf5'),_0x5cda4a[_0x7fd0('0x63')]));var _0x364163=this['googleDialogflow'][_0x7fd0('0x78')](this,_0x5cda4a);if(_0x364163){for(var _0x21b71e in _0x364163){if(_0x364163['hasOwnProperty'](_0x21b71e)){this[_0x7fd0('0x3a')][_0x7fd0('0xa9')](util[_0x7fd0('0x27')]('DIALOGFLOW_%s',_0x21b71e[_0x7fd0('0x71')]()),_0x364163[_0x21b71e]);}}this['createSquareMessage'](_0x364163[_0x7fd0('0xf6')],_0x7fd0('0xf7'),_0x7fd0('0xf1'),'');return this[_0x7fd0('0x3a')][_0x7fd0('0xb0')](util['format'](_0x7fd0('0xf8'),_0x364163[_0x7fd0('0xf6')]));}return this['channel'][_0x7fd0('0x2b')](_0x5cda4a,_0x7fd0('0xf9'));};AGIVertices[_0x7fd0('0xe')][_0x7fd0('0xfa')]=function(_0x58b7cd){logger[_0x7fd0('0x2e')](util[_0x7fd0('0x27')](_0x7fd0('0xfb'),_0x58b7cd[_0x7fd0('0x38')]));if(!this[_0x7fd0('0x8f')](_0x58b7cd['dialogflowV2_project_id'])){return this['channel']['noop'](_0x7fd0('0xfc'));}if(!this['isConfigured'](_0x58b7cd[_0x7fd0('0x85')])){return this[_0x7fd0('0x3a')][_0x7fd0('0xb0')](_0x7fd0('0xfd'));}if(!this[_0x7fd0('0x8f')](_0x58b7cd[_0x7fd0('0x86')])){return this['channel'][_0x7fd0('0xb0')](_0x7fd0('0xfe'));}if(!this[_0x7fd0('0x8f')](_0x58b7cd['dialogflowV2_language'])){return this[_0x7fd0('0x3a')]['noop'](_0x7fd0('0xff'));}if(!this[_0x7fd0('0x8f')](_0x58b7cd[_0x7fd0('0x63')])){return this[_0x7fd0('0x3a')]['noop'](_0x7fd0('0xb1'));}this[_0x7fd0('0x3a')]['bot']=!![];this[_0x7fd0('0x36')](_0x58b7cd);this[_0x7fd0('0x45')](_0x58b7cd[_0x7fd0('0x63')],'in','','');this[_0x7fd0('0x3a')][_0x7fd0('0xb0')](util[_0x7fd0('0x27')](_0x7fd0('0x100'),_0x58b7cd[_0x7fd0('0x63')]));var _0x55cfec=this[_0x7fd0('0x83')][_0x7fd0('0x78')](this,_0x58b7cd);if(_0x55cfec){for(var _0x4b94e0 in _0x55cfec){if(_0x55cfec[_0x7fd0('0x9f')](_0x4b94e0)){if(_0x4b94e0!=='providerResponse'){this['channel'][_0x7fd0('0xa9')](util[_0x7fd0('0x27')](_0x7fd0('0x101'),_0x4b94e0['toUpperCase']()),_0x55cfec[_0x4b94e0]);}}}this['createSquareMessage'](_0x55cfec['speech'],'out',_0x7fd0('0xfa'),_0x55cfec['providerResponse']);return this[_0x7fd0('0x3a')]['noop'](util[_0x7fd0('0x27')]('DialogflowV2\x20Result\x20%s',_0x55cfec[_0x7fd0('0xf6')]));}return this[_0x7fd0('0x3a')][_0x7fd0('0x2b')](_0x58b7cd,_0x7fd0('0x102'));};AGIVertices['prototype'][_0x7fd0('0x103')]=function(_0x1a389c){logger['info'](util['format']('Enter\x20in\x20SESTEKNDA\x20(%s)\x20block',_0x1a389c[_0x7fd0('0x38')]));if(!this[_0x7fd0('0x8f')](_0x1a389c['ndauth_url'])){return this[_0x7fd0('0x3a')][_0x7fd0('0xb0')](_0x7fd0('0x104'));}if(!this[_0x7fd0('0x8f')](_0x1a389c[_0x7fd0('0x105')])){return this[_0x7fd0('0x3a')][_0x7fd0('0xb0')](_0x7fd0('0x106'));}if(!this[_0x7fd0('0x8f')](_0x1a389c[_0x7fd0('0x107')])){return this[_0x7fd0('0x3a')][_0x7fd0('0xb0')](_0x7fd0('0x108'));}if(!this[_0x7fd0('0x8f')](_0x1a389c[_0x7fd0('0x109')])){return this['channel'][_0x7fd0('0xb0')](_0x7fd0('0xb1'));}this['channel'][_0x7fd0('0xf4')]=!![];this[_0x7fd0('0x36')](_0x1a389c);this[_0x7fd0('0x45')](_0x1a389c['text'],'in','','');this[_0x7fd0('0x3a')][_0x7fd0('0xb0')](util[_0x7fd0('0x27')](_0x7fd0('0x10a'),_0x1a389c[_0x7fd0('0x63')]));var _0x4853e9=this['sestekNDA']['sync'](this,_0x1a389c);if(_0x4853e9){for(var _0x3a8986 in _0x4853e9){if(_0x4853e9[_0x7fd0('0x9f')](_0x3a8986)){this[_0x7fd0('0x3a')][_0x7fd0('0xa9')](util[_0x7fd0('0x27')](_0x7fd0('0x10b'),_0x3a8986['toUpperCase']()),_0x4853e9[_0x3a8986]);}}this[_0x7fd0('0x45')](_0x4853e9[_0x7fd0('0xf6')],'out',_0x7fd0('0x103'),'');if(_0x4853e9[_0x7fd0('0x10c')]){this[_0x7fd0('0x3a')]['noop'](util[_0x7fd0('0x27')](_0x7fd0('0x10d'),_0x4853e9[_0x7fd0('0x10c')]));var _0x5b880b=this[_0x7fd0('0x3a')][_0x7fd0('0x10e')](_0x4853e9['audiofile']);try{fs['unlink'](_0x4853e9[_0x7fd0('0x10c')]+_0x7fd0('0x10f'));}catch(_0x69b036){logger['error'](_0x69b036);}return _0x5b880b;}else{return this['channel'][_0x7fd0('0xb0')](util['format'](_0x7fd0('0x110'),_0x4853e9[_0x7fd0('0xf6')]));}}return this[_0x7fd0('0x3a')][_0x7fd0('0x2b')](_0x1a389c,_0x7fd0('0x111'));};AGIVertices['prototype']['end']=function(_0x5727c2){logger['info'](util['format'](_0x7fd0('0x112'),_0x5727c2['label']));return this[_0x7fd0('0x3a')][_0x7fd0('0xb0')]('end');};AGIVertices[_0x7fd0('0xe')]['ext_dial']=function(_0x2482eb){logger['info'](util[_0x7fd0('0x27')](_0x7fd0('0x113'),_0x2482eb['label']));var _0x2bb96b='';if(_0x2482eb['trunk_id']){if(!this[_0x7fd0('0x8f')](_0x2482eb[_0x7fd0('0x114')])){return this[_0x7fd0('0x3a')][_0x7fd0('0x2b')](_0x2482eb,_0x7fd0('0x115'));}else{var _0x40d357=parseInt(_0x2482eb[_0x7fd0('0x114')],0xa);if(isNaN(_0x40d357)){_0x2bb96b=_0x2482eb['trunk_id'];}else{_0x2bb96b=this[_0x7fd0('0x116')][_0x7fd0('0x78')](this,_0x2482eb[_0x7fd0('0x114')]);if(!_0x2bb96b){return this[_0x7fd0('0x3a')]['error'](_0x2482eb,_0x7fd0('0x117'));}}}}else if(_0x2482eb['trunk_name']){_0x2bb96b=_0x2482eb['trunk_name'];}else{return this[_0x7fd0('0x3a')][_0x7fd0('0x2b')](_0x2482eb,'no\x20trunk\x20selected');}var _0x26d512=this[_0x7fd0('0x3a')][_0x7fd0('0x5d')]('DIAL',[util[_0x7fd0('0x27')](_0x7fd0('0x118'),_0x2bb96b,_0x2482eb[_0x7fd0('0x4b')]),_0x2482eb[_0x7fd0('0x6e')],_0x2482eb['opts'],_0x2482eb[_0x7fd0('0x6b')]]);if(_0x26d512[_0x7fd0('0xb3')]===-0x1){return _0x26d512;}return this[_0x7fd0('0x3a')][_0x7fd0('0xb0')](util[_0x7fd0('0x27')]('Executed\x20command\x20%s',_0x7fd0('0x119')));};AGIVertices[_0x7fd0('0xe')][_0x7fd0('0x11a')]=function(_0x858ccc){logger[_0x7fd0('0x2e')](util['format'](_0x7fd0('0x11b'),_0x858ccc[_0x7fd0('0x38')]));return this[_0x7fd0('0x3a')][_0x7fd0('0xb0')]('finally');};AGIVertices[_0x7fd0('0xe')][_0x7fd0('0xa')]=function(_0x4f8006){logger[_0x7fd0('0x2e')](util[_0x7fd0('0x27')]('Enter\x20in\x20GETDIGITS\x20(%s)\x20block',_0x4f8006[_0x7fd0('0x38')]));if(_0x4f8006[_0x7fd0('0xad')]===0x0){return this[_0x7fd0('0xac')](_0x4f8006);}_0x4f8006['retry']-=0x1;if(!this[_0x7fd0('0x8f')](_0x4f8006[_0x7fd0('0x11c')])){return this[_0x7fd0('0x3a')][_0x7fd0('0x2b')](_0x4f8006,'no\x20file\x20audio\x20selected');}var _0x548c4b=this['getSound'][_0x7fd0('0x78')](this,_0x4f8006[_0x7fd0('0x11c')]);if(!_0x548c4b){return this[_0x7fd0('0x3a')][_0x7fd0('0x2b')](_0x4f8006,_0x7fd0('0x11d'));}if(!this[_0x7fd0('0x8f')](_0x4f8006['variable_id'])){return this[_0x7fd0('0x3a')][_0x7fd0('0x2b')]('no\x20variable\x20selected\x20for\x20the\x20result');}var _0x162111=this[_0x7fd0('0x3a')][_0x7fd0('0x11e')](_0x548c4b,_0x4f8006[_0x7fd0('0x11f')],_0x4f8006[_0x7fd0('0x120')]);var _0xed2f67=_0x162111[_0x7fd0('0xb3')]?_0x162111[_0x7fd0('0xb3')][_0x7fd0('0x50')]():'';logger[_0x7fd0('0x2e')](_0x7fd0('0x121'),JSON[_0x7fd0('0x7a')](_0x162111));if(_0x162111['result']===-0x1){this[_0x7fd0('0x36')][_0x7fd0('0x78')](this,_0x4f8006,_0xed2f67);return _0x162111;}else if(_0x162111[_0x7fd0('0xab')]==='timeout'){_0x162111[_0x7fd0('0xb3')]=_0xed2f67[_0x7fd0('0xa8')]>=parseInt(_0x4f8006[_0x7fd0('0x122')])?'x':'i';}else{_0x162111['result']=_0xed2f67[_0x7fd0('0xa8')]>=parseInt(_0x4f8006[_0x7fd0('0x122')])&&_0xed2f67[_0x7fd0('0xa8')]<=parseInt(_0x4f8006['maxdigit'])?'x':'i';}var _0x4340ae=this[_0x7fd0('0xf')]['sync'](this,_0x4f8006[_0x7fd0('0xe3')]);if(!_0x4340ae){return this[_0x7fd0('0x3a')][_0x7fd0('0x2b')](_0x4f8006,_0x7fd0('0xe5'));}this[_0x7fd0('0x3a')]['setVariable'](_0x4340ae,_0xed2f67);if(this['isConfigured'](_0x4f8006[_0x7fd0('0x123')])){var _0x183081=parseInt(_0x4f8006['hiddendigitsnum'],0xa);var _0x3a8bb1=rs[_0x7fd0('0x124')]({'charset':'*','length':_0x183081});var _0x1243f2=_0xed2f67[_0x7fd0('0xa8')];if(_0x1243f2>0x0){if(_0x1243f2>_0x183081){this[_0x7fd0('0x36')][_0x7fd0('0x78')](this,_0x4f8006,_0x4f8006[_0x7fd0('0x125')]===_0x7fd0('0x126')?_0x3a8bb1+_0xed2f67[_0x7fd0('0x127')](_0x183081):_0xed2f67['substr'](0x0,_0x1243f2-_0x183081)+_0x3a8bb1);}else{this['createSquareDetailsReport']['sync'](this,_0x4f8006,rs[_0x7fd0('0x124')]({'charset':'*','length':_0x1243f2}));}}else{this[_0x7fd0('0x36')]['sync'](this,_0x4f8006,'');}}else{this[_0x7fd0('0x36')][_0x7fd0('0x78')](this,_0x4f8006,_0xed2f67);}return _0x162111;};AGIVertices[_0x7fd0('0xe')]['getsecretdigits']=function(_0xf2584b){logger['info'](util['format'](_0x7fd0('0x128'),_0xf2584b[_0x7fd0('0x38')]));return this[_0x7fd0('0xa')](_0xf2584b);};AGIVertices['prototype']['goal']=function(_0x1b1766){logger[_0x7fd0('0x2e')](util['format'](_0x7fd0('0x129'),_0x1b1766[_0x7fd0('0x38')]));this['createSquareDetailsReport']['sync'](this,_0x1b1766,_0x1b1766[_0x7fd0('0x12a')]);return this[_0x7fd0('0x3a')][_0x7fd0('0xb0')](util['format']('GOAL\x20%s',_0x1b1766[_0x7fd0('0x12a')]));};AGIVertices[_0x7fd0('0xe')][_0x7fd0('0x12b')]=function(_0x1f4dd7){logger['info'](util[_0x7fd0('0x27')](_0x7fd0('0x12c'),_0x1f4dd7['label']));if(!this[_0x7fd0('0x8f')](_0x1f4dd7['aws_access_key_id'])||!this[_0x7fd0('0x8f')](_0x1f4dd7[_0x7fd0('0x93')])){return this[_0x7fd0('0x3a')][_0x7fd0('0xb0')](_0x7fd0('0x12d'));}if(!this[_0x7fd0('0x8f')](_0x1f4dd7[_0x7fd0('0x63')])){return this[_0x7fd0('0x3a')][_0x7fd0('0xb0')]('no\x20text\x20configured');}this[_0x7fd0('0x3a')]['noop'](util[_0x7fd0('0x27')]('Trying\x20aws\x20Polly\x20%s',_0x1f4dd7[_0x7fd0('0x63')]));var _0x252ead=this[_0x7fd0('0x91')][_0x7fd0('0x78')](this,_0x1f4dd7);if(_0x252ead){this[_0x7fd0('0x3a')][_0x7fd0('0xb0')](util[_0x7fd0('0x27')]('aws\x20Polly\x20%s\x20file\x20created',_0x252ead));var _0x336874=this[_0x7fd0('0x3a')][_0x7fd0('0x10e')](_0x252ead);try{fs[_0x7fd0('0x12e')](_0x252ead+'.wav');}catch(_0x409a34){logger[_0x7fd0('0x2b')](_0x409a34);}return _0x336874;}return this[_0x7fd0('0x3a')][_0x7fd0('0x2b')](_0x1f4dd7,'aws\x20Polly\x20is\x20unreachable');};AGIVertices[_0x7fd0('0xe')][_0x7fd0('0x12f')]=function(_0x303a60){logger[_0x7fd0('0x2e')](util[_0x7fd0('0x27')](_0x7fd0('0x130'),_0x303a60[_0x7fd0('0x38')]));if(!this[_0x7fd0('0x8f')](_0x303a60['aws_access_key_id'])||!this[_0x7fd0('0x8f')](_0x303a60['aws_secret_access_key'])){return this[_0x7fd0('0x3a')][_0x7fd0('0xb0')](_0x7fd0('0x12d'));}if(!this['isConfigured'](_0x303a60[_0x7fd0('0x98')])){return this[_0x7fd0('0x3a')][_0x7fd0('0xb0')]('no\x20bot\x20name\x20configured');}if(!this[_0x7fd0('0x8f')](_0x303a60[_0x7fd0('0x63')])){return this['channel']['noop']('no\x20text\x20configured');}this[_0x7fd0('0x3a')]['bot']=!![];this['createSquareDetailsReport'](_0x303a60);this['createSquareMessage'](_0x303a60['text'],'in','','');this['channel']['noop'](util[_0x7fd0('0x27')](_0x7fd0('0x131'),_0x303a60[_0x7fd0('0x63')]));var _0x34d921=this['awsLex']['sync'](this,_0x303a60);if(_0x34d921){for(var _0x48f4ab in _0x34d921){if(_0x34d921[_0x7fd0('0x9f')](_0x48f4ab)&&_[_0x7fd0('0xa0')](_0x34d921[_0x48f4ab])){this[_0x7fd0('0x3a')]['setVariable'](util[_0x7fd0('0x27')](_0x7fd0('0x132'),_0x48f4ab[_0x7fd0('0x71')]()),_0x34d921[_0x48f4ab]);}}if(_[_0x7fd0('0x48')](_0x34d921[_0x7fd0('0x7d')])){return this[_0x7fd0('0x3a')][_0x7fd0('0xb0')](_0x7fd0('0x133'));}else{this[_0x7fd0('0x45')](_0x34d921['message'],_0x7fd0('0xf7'),_0x7fd0('0x134'),'');return this[_0x7fd0('0x3a')][_0x7fd0('0xb0')](util['format'](_0x7fd0('0x135'),_0x34d921['message']));}}return this[_0x7fd0('0x3a')][_0x7fd0('0x2b')](_0x303a60,'Amazon\x20Lex\x20is\x20unreachable');};AGIVertices['prototype'][_0x7fd0('0x136')]=function(_0x4a7ca2){logger['info'](util['format'](_0x7fd0('0x137'),_0x4a7ca2['label'],_0x4a7ca2[_0x7fd0('0x6e')]));if(!this[_0x7fd0('0x8f')](_0x4a7ca2['key'])){return this[_0x7fd0('0x3a')]['noop']('no\x20key\x20configured');}var _0x3f43a8=_0x7fd0('0x138');var _0x1ffd5f=util['format'](_0x7fd0('0x139'),FILES_PATH,rs[_0x7fd0('0x124')](0x4));var _0x2169c8=util[_0x7fd0('0x27')](_0x7fd0('0xa7'),_0x1ffd5f,_0x3f43a8);var _0x40f37d=!![];if(_0x4a7ca2[_0x7fd0('0x13a')]==='NOBEEP'){_0x40f37d=![];}var _0x260a46=this['channel']['recordFile'](_0x1ffd5f,_0x3f43a8,_0x4a7ca2[_0x7fd0('0x13b')],_0x4a7ca2[_0x7fd0('0x6e')],undefined,_0x40f37d);if(_0x260a46['result']!==-0x1){this[_0x7fd0('0x3a')]['noop'](util[_0x7fd0('0x27')](_0x7fd0('0x13c'),_0x2169c8));var _0x35b3b7=this[_0x7fd0('0x99')][_0x7fd0('0x78')](this,_0x4a7ca2,_0x2169c8);if(_0x35b3b7){for(var _0x4c0add in _0x35b3b7){if(_0x35b3b7[_0x7fd0('0x9f')](_0x4c0add)){this[_0x7fd0('0x3a')]['setVariable'](util[_0x7fd0('0x27')](_0x7fd0('0x13d'),_0x4c0add[_0x7fd0('0x71')]()),_0x35b3b7[_0x4c0add]);}}return this[_0x7fd0('0x3a')]['noop'](util[_0x7fd0('0x27')](_0x7fd0('0x13e'),JSON[_0x7fd0('0x7a')](_0x35b3b7)));}}return _0x260a46;};AGIVertices[_0x7fd0('0xe')][_0x7fd0('0x13f')]=function(_0x47d967){logger[_0x7fd0('0x2e')](util[_0x7fd0('0x27')](_0x7fd0('0x140'),_0x47d967['label']));if(!this[_0x7fd0('0x8f')](_0x47d967[_0x7fd0('0x9c')])){return this[_0x7fd0('0x3a')][_0x7fd0('0xb0')](_0x7fd0('0x141'));}if(!this[_0x7fd0('0x8f')](_0x47d967[_0x7fd0('0x9d')])){return this[_0x7fd0('0x3a')]['noop']('no\x20appsecret\x20configured');}var _0x515432=_0x7fd0('0x138');var _0x41cfef=util[_0x7fd0('0x27')]('%s/recordings/%s',FILES_PATH,rs[_0x7fd0('0x124')](0x4));var _0xa10580=util[_0x7fd0('0x27')](_0x7fd0('0xa7'),_0x41cfef,_0x515432);var _0x54da9e=!![];if(_0x47d967[_0x7fd0('0x13a')]===_0x7fd0('0x142')){_0x54da9e=![];}var _0x46ed4b=this[_0x7fd0('0x3a')][_0x7fd0('0x143')](_0x41cfef,_0x515432,_0x47d967[_0x7fd0('0x13b')],_0x47d967[_0x7fd0('0x6e')],undefined,_0x54da9e);if(_0x46ed4b[_0x7fd0('0xb3')]!==-0x1){this[_0x7fd0('0x3a')][_0x7fd0('0xb0')](util[_0x7fd0('0x27')](_0x7fd0('0x144'),_0xa10580));var _0xd98b37=this[_0x7fd0('0x9b')][_0x7fd0('0x78')](this,_0x47d967,_0xa10580);if(_0xd98b37){for(var _0xa99c4e in _0xd98b37){if(_0xd98b37[_0x7fd0('0x9f')](_0xa99c4e)){this[_0x7fd0('0x3a')][_0x7fd0('0xa9')](util['format']('TILDE_ASR_%s',_0xa99c4e[_0x7fd0('0x71')]()),_0xd98b37[_0xa99c4e]);}}return this['channel'][_0x7fd0('0xb0')](util[_0x7fd0('0x27')](_0x7fd0('0x145'),JSON[_0x7fd0('0x7a')](_0xd98b37)));}}return _0x46ed4b;};AGIVertices[_0x7fd0('0xe')][_0x7fd0('0x146')]=function(_0x5af3d2){logger[_0x7fd0('0x2e')](util[_0x7fd0('0x27')]('Enter\x20in\x20GOTO\x20(%s)\x20block',_0x5af3d2['label']));return this[_0x7fd0('0x3a')]['continueAt'](_0x5af3d2[_0x7fd0('0x3f')],_0x5af3d2[_0x7fd0('0x40')],_0x5af3d2[_0x7fd0('0x41')]);};AGIVertices[_0x7fd0('0xe')]['gotoif']=function(_0x365c16){logger[_0x7fd0('0x2e')](util[_0x7fd0('0x27')]('Enter\x20in\x20GOTOIF\x20(%s)\x20block',_0x365c16[_0x7fd0('0x38')]));if(!this[_0x7fd0('0x8f')](_0x365c16[_0x7fd0('0x147')])){return this[_0x7fd0('0x3a')]['error'](_0x365c16,_0x7fd0('0x148'));}try{var _0x548389=eval(_0x365c16[_0x7fd0('0x147')])?_0x7fd0('0x149'):_0x7fd0('0x14a');this[_0x7fd0('0x3a')][_0x7fd0('0xb0')](util[_0x7fd0('0x27')]('EVAL\x20CONDITION\x20%s\x20%s',_0x365c16[_0x7fd0('0x147')],_0x548389));return{'code':0xc8,'result':_0x548389};}catch(_0x787290){return{'code':0xc8,'result':_0x7fd0('0x14a')};}};AGIVertices['prototype'][_0x7fd0('0x14b')]=function(_0x3f6cd8){logger[_0x7fd0('0x2e')](util['format'](_0x7fd0('0x14c'),_0x3f6cd8[_0x7fd0('0x38')]));if(!this[_0x7fd0('0x8f')](_0x3f6cd8[_0x7fd0('0x14d')])){return this[_0x7fd0('0x3a')]['error'](_0x3f6cd8,'no\x20interval\x20configured');}var _0x548423=this[_0x7fd0('0x21')][_0x7fd0('0x78')](this,_0x3f6cd8['interval_id']);if(!_0x548423){return this[_0x7fd0('0x3a')]['error'](_0x3f6cd8,'no\x20intervals\x20found');}for(var _0x28d2f3=0x0;_0x28d2f3<_0x548423[_0x7fd0('0xa8')];_0x28d2f3+=0x1){var _0x440110=this['channel'][_0x7fd0('0xf')](util[_0x7fd0('0x27')](_0x7fd0('0x14e'),_0x548423[_0x28d2f3]));if(_0x440110[_0x7fd0('0xb3')]===-0x1){return _0x440110;}logger[_0x7fd0('0x2e')](util[_0x7fd0('0x27')](_0x7fd0('0x14f'),_0x548423[_0x28d2f3],_0x440110[_0x7fd0('0xab')]));if(_0x440110[_0x7fd0('0xab')]===_0x7fd0('0x149')){logger[_0x7fd0('0x2e')](util[_0x7fd0('0x27')](_0x7fd0('0x14f'),_0x548423[_0x28d2f3],_0x7fd0('0x149')));this['channel']['noop'](util['format'](_0x7fd0('0x14f'),_0x548423[_0x28d2f3],'true'));return{'code':0xc8,'result':_0x7fd0('0x149')};}else{logger[_0x7fd0('0x2e')](util[_0x7fd0('0x27')]('IFTIME\x20%s\x20%s',_0x548423[_0x28d2f3],_0x7fd0('0x14a')));this[_0x7fd0('0x3a')][_0x7fd0('0xb0')](util[_0x7fd0('0x27')]('IFTIME\x20%s\x20%s',_0x548423[_0x28d2f3],_0x7fd0('0x14a')));}}return{'code':0xc8,'result':_0x7fd0('0x14a')};};AGIVertices[_0x7fd0('0xe')][_0x7fd0('0x150')]=function(_0x43c4f7){logger[_0x7fd0('0x2e')](util[_0x7fd0('0x27')](_0x7fd0('0x151'),_0x43c4f7[_0x7fd0('0x38')]));return this[_0x7fd0('0x3a')][_0x7fd0('0x150')]();};AGIVertices[_0x7fd0('0xe')][_0x7fd0('0x152')]=function(_0x39b481){logger[_0x7fd0('0x2e')](util[_0x7fd0('0x27')](_0x7fd0('0x153'),_0x39b481[_0x7fd0('0x38')]));if(!this['isConfigured'](_0x39b481[_0x7fd0('0x81')])){return this[_0x7fd0('0x3a')]['noop'](_0x7fd0('0xf3'));}var _0x107108=_0x7fd0('0x138');var _0x2b01fd=util['format'](_0x7fd0('0x139'),FILES_PATH,rs[_0x7fd0('0x124')](0x4));var _0x5205e1=util[_0x7fd0('0x27')](_0x7fd0('0xa7'),_0x2b01fd,_0x107108);var _0x469414=!![];if(_0x39b481[_0x7fd0('0x13a')]===_0x7fd0('0x142')){_0x469414=![];}var _0x513073=this[_0x7fd0('0x3a')]['recordFile'](_0x2b01fd,_0x107108,_0x39b481['intKey'],_0x39b481[_0x7fd0('0x6e')],undefined,_0x469414);if(_0x513073[_0x7fd0('0xb3')]!==-0x1){this['channel'][_0x7fd0('0xb0')](util[_0x7fd0('0x27')]('ispeech\x20%s\x20file\x20created',_0x5205e1));var _0x25d0fa=this[_0x7fd0('0x8d')][_0x7fd0('0x78')](this,_0x39b481,_0x5205e1);if(_0x25d0fa){for(var _0x352368 in _0x25d0fa){if(_0x25d0fa['hasOwnProperty'](_0x352368)){this['channel'][_0x7fd0('0xa9')](util[_0x7fd0('0x27')](_0x7fd0('0x154'),_0x352368[_0x7fd0('0x71')]()),_0x25d0fa[_0x352368]);}}return this[_0x7fd0('0x3a')][_0x7fd0('0xb0')](util[_0x7fd0('0x27')](_0x7fd0('0x155'),JSON[_0x7fd0('0x7a')](_0x25d0fa)));}}return _0x513073;};AGIVertices[_0x7fd0('0xe')]['ispeechtts']=function(_0x59b313){logger['info'](util[_0x7fd0('0x27')](_0x7fd0('0x156'),_0x59b313[_0x7fd0('0x38')]));if(!this[_0x7fd0('0x8f')](_0x59b313[_0x7fd0('0x81')])){return this[_0x7fd0('0x3a')][_0x7fd0('0xb0')]('no\x20key\x20configured');}if(!this[_0x7fd0('0x8f')](_0x59b313[_0x7fd0('0x63')])){return this[_0x7fd0('0x3a')][_0x7fd0('0xb0')](_0x7fd0('0xb1'));}this[_0x7fd0('0x3a')][_0x7fd0('0xb0')](util[_0x7fd0('0x27')](_0x7fd0('0x157'),_0x59b313[_0x7fd0('0x63')]));var _0xe9f076=this[_0x7fd0('0x89')][_0x7fd0('0x78')](this,_0x59b313);if(_0xe9f076){this[_0x7fd0('0x3a')][_0x7fd0('0xb0')](util[_0x7fd0('0x27')](_0x7fd0('0x158'),_0xe9f076));var _0x36caf8=this[_0x7fd0('0x3a')][_0x7fd0('0x10e')](_0xe9f076,_0x59b313[_0x7fd0('0x13b')]);try{fs['unlink'](_0xe9f076+_0x7fd0('0x10f'));}catch(_0x177440){logger[_0x7fd0('0x2b')](_0x177440);}return _0x36caf8;}return this[_0x7fd0('0x3a')][_0x7fd0('0x2b')](_0x59b313,_0x7fd0('0x159'));};AGIVertices[_0x7fd0('0xe')][_0x7fd0('0x15a')]=function(_0x4f88c8){logger['info'](util['format'](_0x7fd0('0x15b'),_0x4f88c8[_0x7fd0('0x38')]));if(!this[_0x7fd0('0x8f')](_0x4f88c8[_0x7fd0('0x15c')])){return this[_0x7fd0('0x3a')][_0x7fd0('0x2b')](_0x4f88c8,_0x7fd0('0x15d'));}logger[_0x7fd0('0x2e')](util['format']('FIND\x20AGENT\x20%s\x20BY\x20%s',this[_0x7fd0('0x3a')][_0x7fd0('0x3d')],_0x4f88c8[_0x7fd0('0x15c')]));var _0x2ed27a=this[_0x7fd0('0x58')][_0x7fd0('0x78')](this,_0x4f88c8[_0x7fd0('0x15c')]);if(_0x2ed27a){logger[_0x7fd0('0x2e')](util[_0x7fd0('0x27')]('AGENT\x20%s\x20FOUND\x20BY',this[_0x7fd0('0x3a')]['callerid'],_0x4f88c8[_0x7fd0('0x15c')]));this[_0x7fd0('0x3a')][_0x7fd0('0xb0')](util['format'](_0x7fd0('0x15e'),this[_0x7fd0('0x3a')]['callerid'],_0x4f88c8[_0x7fd0('0x15c')]));return{'code':0xc8,'result':_0x7fd0('0x15f')};}else{logger['info'](util[_0x7fd0('0x27')]('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this[_0x7fd0('0x3a')][_0x7fd0('0x3d')],_0x4f88c8[_0x7fd0('0x15c')]));this[_0x7fd0('0x3a')][_0x7fd0('0xb0')](util['format'](_0x7fd0('0x160'),this[_0x7fd0('0x3a')][_0x7fd0('0x3d')],_0x4f88c8['findBy']));return{'code':0xc8,'result':_0x7fd0('0x161')};}};AGIVertices[_0x7fd0('0xe')][_0x7fd0('0x162')]=function(_0x180e36){logger[_0x7fd0('0x2e')](util[_0x7fd0('0x27')](_0x7fd0('0x163'),_0x180e36['label']));if(!this[_0x7fd0('0x8f')](_0x180e36[_0x7fd0('0x15c')])){return this['channel'][_0x7fd0('0x2b')](_0x180e36,_0x7fd0('0x15d'));}logger[_0x7fd0('0x2e')](util[_0x7fd0('0x27')](_0x7fd0('0x164'),this[_0x7fd0('0x3a')][_0x7fd0('0x3d')],_0x180e36[_0x7fd0('0x15c')]));var _0x40ab01=this[_0x7fd0('0x57')][_0x7fd0('0x78')](this,_0x180e36['findBy']);if(_0x40ab01){logger[_0x7fd0('0x2e')](util[_0x7fd0('0x27')]('AGENT\x20%s\x20FOUND\x20BY',this[_0x7fd0('0x3a')][_0x7fd0('0x3d')],_0x180e36[_0x7fd0('0x15c')]));this[_0x7fd0('0x3a')]['noop'](util[_0x7fd0('0x27')](_0x7fd0('0x15e'),this[_0x7fd0('0x3a')][_0x7fd0('0x3d')],_0x180e36[_0x7fd0('0x15c')]));return{'code':0xc8,'result':'success'};}else{logger['info'](util['format'](_0x7fd0('0x160'),this[_0x7fd0('0x3a')][_0x7fd0('0x3d')],_0x180e36[_0x7fd0('0x15c')]));this[_0x7fd0('0x3a')][_0x7fd0('0xb0')](util['format'](_0x7fd0('0x160'),this[_0x7fd0('0x3a')]['callerid'],_0x180e36[_0x7fd0('0x15c')]));return{'code':0xc8,'result':_0x7fd0('0x161')};}};AGIVertices[_0x7fd0('0xe')][_0x7fd0('0x165')]=function(_0x2dceb1){logger['info'](util[_0x7fd0('0x27')](_0x7fd0('0x166'),_0x2dceb1[_0x7fd0('0x38')]));if(!this[_0x7fd0('0x8f')](_0x2dceb1['operation'])){return this[_0x7fd0('0x3a')][_0x7fd0('0x2b')](_0x2dceb1,_0x7fd0('0x167'));}this[_0x7fd0('0x3a')][_0x7fd0('0xb0')](util[_0x7fd0('0x27')](_0x7fd0('0x168'),_0x2dceb1[_0x7fd0('0x169')]));var _0x146ad1=eval(_0x2dceb1[_0x7fd0('0x169')]);if(!this[_0x7fd0('0x8f')](_0x2dceb1[_0x7fd0('0xe3')])){return this[_0x7fd0('0x3a')][_0x7fd0('0xb0')](_0x7fd0('0xe4'));}var _0x492ca0=this[_0x7fd0('0xf')][_0x7fd0('0x78')](this,_0x2dceb1['variable_id']);if(!_0x492ca0){return this[_0x7fd0('0x3a')][_0x7fd0('0x2b')](_0x2dceb1,_0x7fd0('0xe5'));}if(_[_0x7fd0('0xa5')](_0x146ad1)){var _0x373fa0=this;_0x146ad1[_0x7fd0('0xe6')](function(_0x1197c5,_0x202d09){_0x373fa0[_0x7fd0('0x3a')]['setVariable'](util[_0x7fd0('0x27')](_0x7fd0('0x16a'),_0x492ca0,_0x202d09),_0x1197c5);});return this[_0x7fd0('0x3a')][_0x7fd0('0xb0')](util[_0x7fd0('0x27')](_0x7fd0('0x16b'),_0x492ca0));}else{return this[_0x7fd0('0x3a')][_0x7fd0('0xa9')](_0x492ca0,_0x146ad1);}};AGIVertices['prototype'][_0x7fd0('0x9')]=function(_0x20a219){logger[_0x7fd0('0x2e')](util[_0x7fd0('0x27')](_0x7fd0('0x16c'),_0x20a219[_0x7fd0('0x38')]));if(_0x20a219[_0x7fd0('0xad')]===0x0){return this['maxRetry'](_0x20a219);}_0x20a219[_0x7fd0('0xad')]-=0x1;if(!this[_0x7fd0('0x8f')](_0x20a219['file_id'])){return this[_0x7fd0('0x3a')][_0x7fd0('0x2b')](_0x20a219,_0x7fd0('0x16d'));}var _0x44b33c=this[_0x7fd0('0x1b')][_0x7fd0('0x78')](this,_0x20a219[_0x7fd0('0x11c')]);if(!_0x44b33c){return this[_0x7fd0('0x3a')][_0x7fd0('0x2b')](_0x20a219,_0x7fd0('0x11d'));}var _0x3d818a=this['channel'][_0x7fd0('0x11e')](_0x44b33c,_0x20a219[_0x7fd0('0x11f')],_0x20a219[_0x7fd0('0x16e')]);var _0x5e2b47=_0x3d818a[_0x7fd0('0xb3')];if(_0x3d818a['result']===-0x1){this[_0x7fd0('0x36')]['sync'](this,_0x20a219,'-1');return _0x3d818a;}else if(_0x3d818a[_0x7fd0('0xab')]===_0x7fd0('0x6e')){_0x3d818a[_0x7fd0('0xb3')]=_0x3d818a[_0x7fd0('0xb3')][_0x7fd0('0xa8')]>0x0?_0x3d818a[_0x7fd0('0xb3')]:'t';}else if(_[_0x7fd0('0x47')](_0x3d818a[_0x7fd0('0xb3')])){_0x3d818a[_0x7fd0('0xb3')]='#';_0x5e2b47='#';}if(!this[_0x7fd0('0x8f')](_0x20a219['variable_id'])){this['channel'][_0x7fd0('0xb0')](_0x7fd0('0xe4'));}else{var _0x40958b=this[_0x7fd0('0xf')]['sync'](this,_0x20a219[_0x7fd0('0xe3')]);if(!_0x40958b){return this['channel'][_0x7fd0('0x2b')](_0x20a219,_0x7fd0('0xe5'));}this['channel'][_0x7fd0('0xa9')](_0x40958b,_0x5e2b47);}this['createSquareDetailsReport'][_0x7fd0('0x78')](this,_0x20a219,_0x5e2b47);return _0x3d818a;};AGIVertices[_0x7fd0('0xe')][_0x7fd0('0xb0')]=function(_0x483988){logger[_0x7fd0('0x2e')](util['format']('Enter\x20in\x20NOOP\x20(%s)\x20block',_0x483988[_0x7fd0('0x38')]));return this['channel']['noop'](_0x483988[_0x7fd0('0x16f')]||_0x483988[_0x7fd0('0x38')]);};AGIVertices[_0x7fd0('0xe')][_0x7fd0('0x170')]=function(_0x33b260){logger['info'](util[_0x7fd0('0x27')](_0x7fd0('0x171'),_0x33b260[_0x7fd0('0x38')]));if(!this[_0x7fd0('0x8f')](_0x33b260[_0x7fd0('0x15c')])){return this[_0x7fd0('0x3a')][_0x7fd0('0x2b')](_0x33b260,_0x7fd0('0x15d'));}logger[_0x7fd0('0x2e')](util[_0x7fd0('0x27')]('FIND\x20AGENT\x20%s\x20BY\x20%s',this[_0x7fd0('0x3a')][_0x7fd0('0x3d')],_0x33b260[_0x7fd0('0x15c')]));var _0x25a0b7=this['getPause']['sync'](this,_0x33b260[_0x7fd0('0x172')]);var _0x42fc25=this[_0x7fd0('0x54')][_0x7fd0('0x78')](this,_0x33b260[_0x7fd0('0x15c')],_0x25a0b7);if(_0x42fc25){logger['info'](util[_0x7fd0('0x27')](_0x7fd0('0x15e'),this[_0x7fd0('0x3a')][_0x7fd0('0x3d')],_0x33b260['findBy']));this[_0x7fd0('0x3a')][_0x7fd0('0xb0')](util[_0x7fd0('0x27')](_0x7fd0('0x15e'),this['channel'][_0x7fd0('0x3d')],_0x33b260[_0x7fd0('0x15c')]));return{'code':0xc8,'result':_0x7fd0('0x15f')};}else{logger[_0x7fd0('0x2e')](util[_0x7fd0('0x27')](_0x7fd0('0x160'),this['channel']['callerid'],_0x33b260[_0x7fd0('0x15c')]));this[_0x7fd0('0x3a')]['noop'](util['format'](_0x7fd0('0x15e'),this[_0x7fd0('0x3a')][_0x7fd0('0x3d')],_0x33b260[_0x7fd0('0x15c')]));return{'code':0xc8,'result':_0x7fd0('0x161')};}};AGIVertices[_0x7fd0('0xe')][_0x7fd0('0x173')]=function(_0xf373e2){logger['info'](util[_0x7fd0('0x27')](_0x7fd0('0x174'),_0xf373e2['label']));if(!this[_0x7fd0('0x8f')](_0xf373e2[_0x7fd0('0x11c')])){return this['channel'][_0x7fd0('0x2b')](_0xf373e2,_0x7fd0('0x16d'));}var _0x39a653=this[_0x7fd0('0x1b')]['sync'](this,_0xf373e2[_0x7fd0('0x11c')]);if(!_0x39a653){return this[_0x7fd0('0x3a')][_0x7fd0('0x2b')](_0xf373e2,_0x7fd0('0x11d'));}var _0x144a70=this['channel'][_0x7fd0('0x5d')](_0x7fd0('0x175'),[_0x39a653,_0xf373e2['opts']]);if(_0x144a70[_0x7fd0('0xb3')]===-0x1){return _0x144a70;}return this[_0x7fd0('0x3a')]['noop'](util[_0x7fd0('0x27')](_0x7fd0('0xcf'),_0x7fd0('0x175'),_0x39a653));};AGIVertices[_0x7fd0('0xe')][_0x7fd0('0x176')]=function(_0x3a04ce){logger[_0x7fd0('0x2e')](util[_0x7fd0('0x27')](_0x7fd0('0x177'),_0x3a04ce[_0x7fd0('0x38')]));if(!this[_0x7fd0('0x8f')](_0x3a04ce[_0x7fd0('0x178')])){return this['channel']['error'](_0x3a04ce,_0x7fd0('0x179'));}var _0x5563a7='';var _0x1f79c7=parseInt(_0x3a04ce['queue_id'],0xa);if(isNaN(_0x1f79c7)){_0x5563a7=_0x3a04ce['queue_id'];}else{_0x5563a7=this[_0x7fd0('0x13')]['sync'](this,_0x3a04ce[_0x7fd0('0x178')]);if(!_0x5563a7){return this['channel']['error'](_0x3a04ce,'no\x20queue\x20found');}}var _0x255738='';if(this[_0x7fd0('0x8f')](_0x3a04ce['file_id'])){var _0x3bcfdb=this[_0x7fd0('0x1b')]['sync'](this,_0x3a04ce['file_id']);if(_0x3bcfdb){_0x255738=_0x3bcfdb;}}this[_0x7fd0('0x36')][_0x7fd0('0x78')](this,_0x3a04ce,_0x5563a7);if(_0x3a04ce[_0x7fd0('0xef')][_0x7fd0('0x17a')]('x')<0x0){_0x3a04ce[_0x7fd0('0xef')]+='x';}if(_0x3a04ce[_0x7fd0('0xef')][_0x7fd0('0x17a')]('X')<0x0){_0x3a04ce[_0x7fd0('0xef')]+='X';}this[_0x7fd0('0x3a')][_0x7fd0('0xa9')](_0x7fd0('0x17b'),_0x5563a7?_0x5563a7[_0x7fd0('0x17c')]():'');var _0x142738=this[_0x7fd0('0x3a')][_0x7fd0('0x5d')](_0x7fd0('0x17d'),[_0x5563a7,_0x3a04ce['opts'],_0x3a04ce['url'],_0x255738,_0x3a04ce[_0x7fd0('0x6e')],_0x3a04ce['agi'],_0x3a04ce['macro'],_0x3a04ce[_0x7fd0('0x17e')],'',_0x3a04ce['position']]);if(_0x142738[_0x7fd0('0xb3')]===-0x1){return _0x142738;}return this[_0x7fd0('0x3a')][_0x7fd0('0xb0')](util[_0x7fd0('0x27')]('Executed\x20command\x20%s\x20%s','QUEUE',_0x5563a7));};AGIVertices[_0x7fd0('0xe')][_0x7fd0('0x17f')]=function(_0x208c46){logger[_0x7fd0('0x2e')](util[_0x7fd0('0x27')](_0x7fd0('0x180'),_0x208c46[_0x7fd0('0x38')]));var _0x310d58=_0x208c46['recordingFormat']||'wav';var _0x1f7c5e=util[_0x7fd0('0x27')](_0x7fd0('0x181'),this['channel'][_0x7fd0('0x37')],rs['generate'](0x5));var _0xab1449=util[_0x7fd0('0x27')](_0x7fd0('0x182'),FILES_PATH,_0x1f7c5e,_0x310d58);var _0x32808f=util[_0x7fd0('0x27')](_0x7fd0('0x139'),FILES_PATH,_0x1f7c5e);this[_0x7fd0('0x3c')][_0x7fd0('0x78')](this,_0x208c46,_0x1f7c5e,_0xab1449);this['channel'][_0x7fd0('0xa9')](_0x7fd0('0x183'),_0x1f7c5e);logger[_0x7fd0('0x2e')](_0x7fd0('0x184'),_0x32808f,_0x310d58,_0x208c46[_0x7fd0('0x185')],_0x208c46['timeout']);return this[_0x7fd0('0x3a')][_0x7fd0('0x143')](_0x32808f,_0x310d58,_0x208c46['escape_digits'],_0x208c46['timeout'],undefined,!![]);};AGIVertices[_0x7fd0('0xe')][_0x7fd0('0x186')]=function(_0xed6125){logger[_0x7fd0('0x2e')](util[_0x7fd0('0x27')](_0x7fd0('0x187'),_0xed6125[_0x7fd0('0x38')]));if(!this[_0x7fd0('0x8f')](_0xed6125[_0x7fd0('0x6b')])){return this[_0x7fd0('0x3a')][_0x7fd0('0xb0')](_0x7fd0('0x188'));}var _0xa69324=this[_0x7fd0('0x6a')][_0x7fd0('0x78')](this,_0xed6125);logger[_0x7fd0('0x2e')](util[_0x7fd0('0x27')](_0x7fd0('0x189'),util['inspect'](_0xa69324,{'showHidden':![],'depth':null})));if(!this[_0x7fd0('0x8f')](_0xed6125[_0x7fd0('0xe3')])){return this[_0x7fd0('0x3a')][_0x7fd0('0xb0')](_0x7fd0('0x18a'));}var _0x247a22=this[_0x7fd0('0xf')][_0x7fd0('0x78')](this,_0xed6125['variable_id']);if(!_0x247a22){return this[_0x7fd0('0x3a')]['error'](_0xed6125,_0x7fd0('0xe5'));}this[_0x7fd0('0x3a')][_0x7fd0('0xa9')](util[_0x7fd0('0x27')](_0x7fd0('0x18b'),_0x247a22),_0xa69324[_0x7fd0('0x7b')]?_0xa69324['statusCode']:_0x7fd0('0x18c'));this[_0x7fd0('0x3a')]['setVariable'](util[_0x7fd0('0x27')](_0x7fd0('0x18d'),_0x247a22),_0xa69324[_0x7fd0('0x7c')]?_0xa69324[_0x7fd0('0x7c')]:'OK');if(_0xa69324['body']){try{this[_0x7fd0('0xa6')](_0xa69324[_0x7fd0('0x72')],_0x247a22);}catch(_0x2a1d03){logger[_0x7fd0('0x2b')](util[_0x7fd0('0x27')](_0x7fd0('0x18e'),_0x247a22));}}return this['channel']['noop'](util[_0x7fd0('0x27')]('variable\x20%s\x20set',_0x247a22));};AGIVertices[_0x7fd0('0xe')][_0x7fd0('0x18f')]=function(_0x3b0c31){logger[_0x7fd0('0x2e')](util['format'](_0x7fd0('0x190'),_0x3b0c31['label']));return this['channel'][_0x7fd0('0x191')](_0x3b0c31[_0x7fd0('0x192')][_0x7fd0('0x5f')](/\s+/g,''),_0x3b0c31[_0x7fd0('0x185')]);};AGIVertices['prototype'][_0x7fd0('0x193')]=function(_0x1c5a12){logger['info'](util[_0x7fd0('0x27')]('Enter\x20in\x20SAYNUMBER\x20(%s)\x20block',_0x1c5a12[_0x7fd0('0x38')]));return this[_0x7fd0('0x3a')][_0x7fd0('0x194')](_0x1c5a12['number'][_0x7fd0('0x5f')](/\s+/g,''),_0x1c5a12[_0x7fd0('0x185')]);};AGIVertices[_0x7fd0('0xe')]['sayphonetic']=function(_0x4c16aa){logger['info'](util[_0x7fd0('0x27')](_0x7fd0('0x195'),_0x4c16aa[_0x7fd0('0x38')]));return this[_0x7fd0('0x3a')][_0x7fd0('0x196')](_0x4c16aa[_0x7fd0('0x63')],_0x4c16aa[_0x7fd0('0x185')]);};AGIVertices[_0x7fd0('0xe')][_0x7fd0('0x197')]=function(_0xeda376){logger[_0x7fd0('0x2e')](util['format'](_0x7fd0('0x198'),_0xeda376[_0x7fd0('0x38')]));if(!this[_0x7fd0('0x8f')](_0xeda376[_0x7fd0('0x199')])){return this['channel'][_0x7fd0('0xb0')](_0x7fd0('0x19a'));}var _0x3e9b86=this[_0x7fd0('0x19b')][_0x7fd0('0x78')](this,_0xeda376[_0x7fd0('0x199')]);if(!_0x3e9b86||!_0x3e9b86[_0x7fd0('0x19c')]){return this[_0x7fd0('0x3a')][_0x7fd0('0x2b')](_0xeda376,_0x7fd0('0x19d'));}var _0x471122={'from':util[_0x7fd0('0x27')](_0x7fd0('0x19e'),_0x3e9b86['name'],_0x3e9b86['email']||_0x3e9b86[_0x7fd0('0x19c')][_0x7fd0('0x19f')]),'to':_0xeda376['to']||'','cc':_0xeda376['cc']||'','bcc':_0xeda376[_0x7fd0('0x1a0')]||'','subject':_0xeda376[_0x7fd0('0x1a1')],'html':_0xeda376['text'],'text':_0xeda376[_0x7fd0('0x63')]};if(this[_0x7fd0('0x8f')](_0xeda376[_0x7fd0('0x1a2')])){}logger[_0x7fd0('0xeb')](_0x7fd0('0x1a3'),JSON[_0x7fd0('0x7a')](_0x471122));this[_0x7fd0('0x36')]['sync'](this,_0xeda376,_0xeda376[_0x7fd0('0x199')]);this[_0x7fd0('0x3a')][_0x7fd0('0xb0')](util[_0x7fd0('0x27')](_0x7fd0('0x1a4'),_0x3e9b86['name']));this[_0x7fd0('0x20')][_0x7fd0('0x78')](this,_0x3e9b86['smtpOptions'],_0x471122);return this[_0x7fd0('0x3a')][_0x7fd0('0xb0')]('Mail\x20message\x20added\x20to\x20outgoing\x20process');};AGIVertices[_0x7fd0('0xe')]['sendFax']=function(_0x12b331){logger[_0x7fd0('0x2e')](util[_0x7fd0('0x27')]('Enter\x20in\x20SENDFAX\x20(%s)\x20block',_0x12b331[_0x7fd0('0x38')]));return this[_0x7fd0('0x3a')][_0x7fd0('0xb0')]('SENDFAX\x20block\x20not\x20implemented');};AGIVertices[_0x7fd0('0xe')]['sendSMS']=function(_0x13cb34){logger[_0x7fd0('0x2e')](util[_0x7fd0('0x27')](_0x7fd0('0x1a5'),_0x13cb34[_0x7fd0('0x38')]));if(!this['isConfigured'](_0x13cb34[_0x7fd0('0x1a6')])){return this['channel']['noop'](_0x7fd0('0x1a7'));}var _0x4ce59b=this[_0x7fd0('0x33')][_0x7fd0('0x78')](this,_0x13cb34['sms_account_id']);if(!_0x4ce59b){return this[_0x7fd0('0x3a')][_0x7fd0('0x2b')](_0x13cb34,_0x7fd0('0x1a8'));}var _0x53ec04={'body':_0x13cb34[_0x7fd0('0x1a9')],'phone':_0x13cb34['to']||'','SmsAccountId':_0x4ce59b['id']};logger[_0x7fd0('0xeb')](_0x7fd0('0x1aa'),JSON['stringify'](_0x53ec04));this['createSquareDetailsReport'][_0x7fd0('0x78')](this,_0x13cb34,_0x13cb34[_0x7fd0('0x1a6')]);this['channel'][_0x7fd0('0xb0')](util[_0x7fd0('0x27')]('Trying\x20SendSMS\x20with\x20account\x20%s',_0x4ce59b[_0x7fd0('0x14')]));this[_0x7fd0('0x35')][_0x7fd0('0x78')](this,_0x53ec04);return this[_0x7fd0('0x3a')]['noop'](_0x7fd0('0x1ab'));};AGIVertices[_0x7fd0('0xe')]['set']=function(_0x479036){logger[_0x7fd0('0x2e')](util[_0x7fd0('0x27')](_0x7fd0('0x1ac'),_0x479036[_0x7fd0('0x38')]));if(!this['isConfigured'](_0x479036[_0x7fd0('0xe3')])){return this[_0x7fd0('0x3a')]['error'](_0x479036,_0x7fd0('0x1ad'));}var _0x52deb6=this['getVariable'][_0x7fd0('0x78')](this,_0x479036[_0x7fd0('0xe3')]);if(!_0x52deb6){return this[_0x7fd0('0x3a')][_0x7fd0('0x2b')](_0x479036,_0x7fd0('0xe5'));}return this[_0x7fd0('0x3a')][_0x7fd0('0xa9')](_0x52deb6,_0x479036[_0x7fd0('0x1ae')]);};AGIVertices[_0x7fd0('0xe')][_0x7fd0('0x1af')]=function(_0x19a026){logger[_0x7fd0('0x2e')](util[_0x7fd0('0x27')](_0x7fd0('0x1b0'),_0x19a026[_0x7fd0('0x38')]));this[_0x7fd0('0x3a')][_0x7fd0('0xb0')](_0x7fd0('0x1b1'));if(_0x19a026[_0x7fd0('0xc3')]===_0x7fd0('0x1b2')){this['channel'][_0x7fd0('0xb0')]('Answer');return this[_0x7fd0('0x3a')][_0x7fd0('0xc3')]();}return this[_0x7fd0('0x3a')][_0x7fd0('0xb0')]('Skipped\x20Answer');};AGIVertices[_0x7fd0('0xe')][_0x7fd0('0x1b3')]=function(_0xb7ab74){logger[_0x7fd0('0x2e')](util[_0x7fd0('0x27')](_0x7fd0('0x1b4'),_0xb7ab74['label']));if(!this[_0x7fd0('0x8f')](_0xb7ab74[_0x7fd0('0x1b5')])){return this[_0x7fd0('0x3a')][_0x7fd0('0x2b')](_0xb7ab74,_0x7fd0('0x1b6'));}var _0xaec915=this[_0x7fd0('0x15')]['sync'](this,_0xb7ab74[_0x7fd0('0x1b5')]);if(!this[_0x7fd0('0x8f')](_0xaec915)){return this['channel'][_0x7fd0('0x2b')](_0xb7ab74,util[_0x7fd0('0x27')](_0x7fd0('0x1b7'),_0xb7ab74[_0x7fd0('0x1b5')]));}if(_0xaec915===this['channel'][_0x7fd0('0x3b')]){return this[_0x7fd0('0x3a')][_0x7fd0('0x2b')](_0xb7ab74,_0x7fd0('0x1b8'));}this[_0x7fd0('0x36')]['sync'](this,_0xb7ab74,_0xaec915);var _0x49b9a0=this['channel'][_0x7fd0('0x5d')](_0x7fd0('0x1b9'),util[_0x7fd0('0x27')](_0x7fd0('0x1ba'),config[_0x7fd0('0xc0')]['host']||_0x7fd0('0x1bb'),_0xaec915,this['channel'][_0x7fd0('0x3b')]));if(_0x49b9a0[_0x7fd0('0xb3')]===-0x1){return _0x49b9a0;}return this[_0x7fd0('0x3a')][_0x7fd0('0xb0')](util[_0x7fd0('0x27')](_0x7fd0('0xcf'),_0x7fd0('0x1b9'),_0xaec915));};AGIVertices[_0x7fd0('0xe')][_0x7fd0('0x1bc')]=function(_0xec9be4){logger[_0x7fd0('0x2e')](util[_0x7fd0('0x27')](_0x7fd0('0x1bd'),_0xec9be4[_0x7fd0('0x38')]));var _0x198c9e=this[_0x7fd0('0x5c')]['sync'](this,_0xec9be4[_0x7fd0('0xc1')]);this[_0x7fd0('0x36')][_0x7fd0('0x78')](this,_0xec9be4,_0xec9be4[_0x7fd0('0xc1')]);if(this[_0x7fd0('0x8f')](_0xec9be4[_0x7fd0('0xe3')])){var _0x164846=this[_0x7fd0('0xf')][_0x7fd0('0x78')](this,_0xec9be4[_0x7fd0('0xe3')]);if(_0x164846){this['channel'][_0x7fd0('0xa9')](_0x164846,_0x198c9e);return this['channel'][_0x7fd0('0xb0')](util[_0x7fd0('0x27')]('sh\x20command:\x20%s\x20result\x20on\x20variable:\x20%s',_0xec9be4['command'],_0x164846));}}return this[_0x7fd0('0x3a')]['noop'](util['format']('sh\x20command:\x20%s\x20result\x20no\x20stored',_0xec9be4[_0x7fd0('0xc1')]));};AGIVertices[_0x7fd0('0xe')][_0x7fd0('0x1be')]=function(_0x19548e){logger[_0x7fd0('0x2e')](util[_0x7fd0('0x27')](_0x7fd0('0x1bf'),_0x19548e[_0x7fd0('0x38')]));_0x19548e[_0x7fd0('0x63')]=_0x19548e[_0x7fd0('0x63')][_0x7fd0('0x5f')](/(\r\n|\n|\r)/gm,'\x20');if(!this[_0x7fd0('0x8f')](_0x19548e[_0x7fd0('0x61')])){return this[_0x7fd0('0x3a')]['noop']('no\x20apiKey\x20configured');}if(!this[_0x7fd0('0x8f')](_0x19548e['text'])){return this[_0x7fd0('0x3a')]['noop']('no\x20text\x20configured');}this[_0x7fd0('0x3a')]['noop'](util['format'](_0x7fd0('0x1c0'),_0x19548e['text']));var _0x5888e9=this[_0x7fd0('0x60')][_0x7fd0('0x78')](this,_0x19548e);if(_0x5888e9){this[_0x7fd0('0x3a')][_0x7fd0('0xb0')](util[_0x7fd0('0x27')](_0x7fd0('0x1c1'),_0x5888e9));var _0x2dad94=this[_0x7fd0('0x3a')][_0x7fd0('0x10e')](_0x5888e9);try{fs['unlink'](_0x5888e9+_0x7fd0('0x10f'));}catch(_0x2b1ef4){logger[_0x7fd0('0x2b')](_0x2b1ef4);}return _0x2dad94;}return this['channel'][_0x7fd0('0x2b')](_0x19548e,_0x7fd0('0x1c2'));};AGIVertices[_0x7fd0('0xe')]['tts']=function(_0x419c6e){logger[_0x7fd0('0x2e')](util[_0x7fd0('0x27')](_0x7fd0('0x1c3'),_0x419c6e[_0x7fd0('0x38')]));_0x419c6e[_0x7fd0('0x63')]=_0x419c6e[_0x7fd0('0x63')][_0x7fd0('0x5f')](/(\r\n|\n|\r)/gm,'\x20');if(!this['isConfigured'](_0x419c6e[_0x7fd0('0x63')])){return this[_0x7fd0('0x3a')][_0x7fd0('0xb0')](_0x7fd0('0xb1'));}this['channel'][_0x7fd0('0xb0')](util['format']('Trying\x20Google\x20TTS\x20%s',_0x419c6e[_0x7fd0('0x63')]));var _0x3cf822=this[_0x7fd0('0x68')]['sync'](this,_0x419c6e);if(_0x3cf822){this[_0x7fd0('0x3a')][_0x7fd0('0xb0')](util[_0x7fd0('0x27')](_0x7fd0('0x1c4'),_0x3cf822));var _0x55d4c6=this['channel'][_0x7fd0('0x10e')](_0x3cf822);try{fs[_0x7fd0('0x12e')](_0x3cf822+_0x7fd0('0x10f'));}catch(_0x5a7d1d){logger['error'](_0x5a7d1d);}return _0x55d4c6;}return this['channel'][_0x7fd0('0x2b')](_0x419c6e,_0x7fd0('0x1c5'));};AGIVertices[_0x7fd0('0xe')]['unpause']=function(_0xbb1289){logger[_0x7fd0('0x2e')](util[_0x7fd0('0x27')](_0x7fd0('0x1c6'),_0xbb1289[_0x7fd0('0x38')]));if(!this[_0x7fd0('0x8f')](_0xbb1289[_0x7fd0('0x15c')])){return this[_0x7fd0('0x3a')][_0x7fd0('0x2b')](_0xbb1289,_0x7fd0('0x15d'));}logger[_0x7fd0('0x2e')](util[_0x7fd0('0x27')]('FIND\x20AGENT\x20%s\x20BY\x20%s',this[_0x7fd0('0x3a')][_0x7fd0('0x3d')],_0xbb1289[_0x7fd0('0x15c')]));var _0x2f3468=this[_0x7fd0('0x55')][_0x7fd0('0x78')](this,_0xbb1289[_0x7fd0('0x15c')]);if(_0x2f3468){logger[_0x7fd0('0x2e')](util[_0x7fd0('0x27')](_0x7fd0('0x15e'),this[_0x7fd0('0x3a')][_0x7fd0('0x3d')],_0xbb1289['findBy']));this[_0x7fd0('0x3a')][_0x7fd0('0xb0')](util['format']('AGENT\x20%s\x20FOUND\x20BY',this[_0x7fd0('0x3a')][_0x7fd0('0x3d')],_0xbb1289[_0x7fd0('0x15c')]));return{'code':0xc8,'result':_0x7fd0('0x15f')};}else{logger[_0x7fd0('0x2e')](util['format'](_0x7fd0('0x160'),this[_0x7fd0('0x3a')][_0x7fd0('0x3d')],_0xbb1289[_0x7fd0('0x15c')]));this[_0x7fd0('0x3a')][_0x7fd0('0xb0')](util['format'](_0x7fd0('0x160'),this['channel'][_0x7fd0('0x3d')],_0xbb1289[_0x7fd0('0x15c')]));return{'code':0xc8,'result':'failure'};}};AGIVertices[_0x7fd0('0xe')][_0x7fd0('0x1c7')]=function(_0x5b96b2){logger['info'](util[_0x7fd0('0x27')](_0x7fd0('0x1c8'),_0x5b96b2['label']));var _0x2cb768=this[_0x7fd0('0x3a')][_0x7fd0('0x5d')](_0x7fd0('0x1c9'),[_0x5b96b2[_0x7fd0('0x1ca')],_0x5b96b2['options']]);if(_0x2cb768[_0x7fd0('0xb3')]===-0x1){return _0x2cb768;}return this['channel'][_0x7fd0('0xb0')](util['format'](_0x7fd0('0xcf'),'VOICEMAIL',_0x5b96b2['mailbox']));};AGIVertices['prototype']['vswitch']=function(_0x1a8d64){logger[_0x7fd0('0x2e')](util[_0x7fd0('0x27')]('Enter\x20in\x20SWITCH\x20(%s)\x20block',_0x1a8d64[_0x7fd0('0x38')]));if(!this['isConfigured'](_0x1a8d64[_0x7fd0('0xe3')])){return this[_0x7fd0('0x3a')][_0x7fd0('0x2b')](_0x1a8d64,'no\x20variable\x20selected');}var _0x371f46=this[_0x7fd0('0xf')]['sync'](this,_0x1a8d64[_0x7fd0('0xe3')]);if(!_0x371f46){return this[_0x7fd0('0x3a')][_0x7fd0('0x2b')](_0x1a8d64,_0x7fd0('0xe5'));}var _0x40be9b=this[_0x7fd0('0x3a')][_0x7fd0('0xf')](_0x371f46);return{'code':0xc8,'result':_0x40be9b[_0x7fd0('0xab')]?_0x40be9b[_0x7fd0('0xab')]:'-'};};String[_0x7fd0('0xe')][_0x7fd0('0x1cb')]=function(_0x327491,_0x593fd8){return this[_0x7fd0('0xaa')](_0x327491)[_0x7fd0('0x1cc')](_0x593fd8);};module['exports']=AGIVertices;
\ No newline at end of file