Built motion from commit (unavailable).|2.5.4
[motion2.git] / server / services / agi / vertices.js
index 5871070..670fc0f 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x8c5c=['getTrunk','getTrunkById','save_name','getMailAccount','getMailAccountById','getIntervals','getIntervalById','IntervalId','Intervals','interval','getSoundPath','%s/sounds/converted/%s','getQueryOdbc','error','Error\x20getting\x20ODBC\x20connection\x20%s','info','query','Error\x20executing\x20query\x20%s','Query\x20executed\x20correctly\x20%s','close','Error\x20closing\x20connection\x20to\x20odbc\x20%s','getSmsAccount','getSmsAccountById','createSmsMessage','createSquareDetailsReport','uniqueid','label','agicommand','arg_1','createSquareRecording','callerid','calleridname','extension','priority','accountcode','dnid','file','createSquareMessage','createCmContact','isEmpty','random','lastName','isNil','phone','list_id','scheduledAt','callback','toString','callback_priority','getPause','getPauseById','agentPause','agentUnpause','agent','agentLogout','agentLogin','internal','format','LOCAL','exec','trim','replace','googleCloudTTS','apiKey','languageCode','ssmlGender','MP3','text','google_tts_language','restAPI','url','method','timeout','number','includes','POST','PUT','toUpperCase','body','rawBody','An\x20incorrect\x20formatted\x20json\x20body\x20has\x20been\x20passed\x20to\x20the\x20function','rawHeaders','parse','computedVariables','sync','uri','render','headers','stringify','statusCode','message','500\x20-\x20Internal\x20Server\x20Error','options','googleDialogflow','key','dialogflow_language','sestekNDA','ispeechTTS','ispeech_tts_language','en-US','speed','ispeechASR','ispeech_asr_language','isConfigured','model','awsPolly','aws_access_key_id','aws_secret_access_key','aws_polly_region','Amy','awsLex','googleASR','google_asr_language','tildeASR','appid','clear','clone','hasOwnProperty','isString','replaceObjectAllVariables','replaceAllVariables','recursiveNodeIndex','isArray','length','saveRestApiResult','%s.%s','setVariable','split','extra','result','The\x20\x22%s\x22\x20variable\x20value\x20is:\x20%s','maxRetry','mrcpsynth','Enter\x20in\x20MRCPSynth\x20(%s)\x20block','noop','no\x20text\x20configured','Executed\x20command\x20MRCPSynth\x20%s','mrcprecog','grammar','MRCPRecog','RECOG_CONFIDENCE()','getAndSetVariable','RECOG_INPUT()','RECOG_INSTANCE()','MRCP_RECOG_INSTANCE','Executed\x20command\x20MRCPRecog\x20%s','Enter\x20in\x20AGI\x20(%s)\x20block','command','args','answer','Wait\x20%s\x20seconds\x20before\x20answer','wait','Enter\x20in\x20CALLBACK\x20(%s)\x20block','no\x20list\x20selected','add','delay','minutes','CALLBACK\x20added\x20phone:\x20%s\x20on\x20list:\x20%s\x20at\x20%s','Enter\x20in\x20CUSTOM\x20APP\x20(%s)\x20block','application','Executed\x20command\x20%s\x20%s','Enter\x20in\x20LUMENVOXTTS\x20(%s)\x20block','MRCPSynth','sestektts','LUMENVOX_ASR_CONFIDENCE','LUMENVOX_ASR_INSTANCE','sestekasr','Enter\x20in\x20SESTEKASR\x20(%s)\x20block','no\x20grammar\x20configured','SESTEK_ASR_CONFIDENCE','SESTEK_ASR_TRANSCRIPT','SESTEK_ASR_INSTANCE','database','odbc_id','no\x20database\x20selected','no\x20query\x20configured','query:\x20%s','no\x20variable\x20selected\x20for\x20the\x20result','variable_id','no\x20variable\x20found','forEach','keys','%s[%s][%s]','variable\x20%s\x20set','sip_id','no\x20user\x20selected','no\x20user\x20found','SIP/%s','opts','Executed\x20command\x20%s','DIAL','dialogflow','Enter\x20in\x20DIALOGFLOW\x20(%s)\x20block','no\x20key\x20configured','bot','Trying\x20Dialogflow:\x20%s','DIALOGFLOW_%s','speech','out','Dialogflow\x20Result\x20%s','Dialogflow\x20is\x20unreachable','sesteknda','Enter\x20in\x20SESTEKNDA\x20(%s)\x20block','no\x20ndauth\x20url\x20configured','no\x20username\x20configured','password','ndassistant_url','Trying\x20SestekNDA:\x20%s','SESTEK_NDA_%s','Sestek\x20NDA\x20%s\x20file\x20created','audiofile','streamFile','unlink','SestekNDA\x20Result\x20%s','SestekNDA\x20is\x20unreachable','end','Enter\x20in\x20END\x20(%s)\x20block','Enter\x20in\x20EXTERNAL\x20DIAL\x20(%s)\x20block','trunk_id','no\x20trunk\x20selected','no\x20trunk\x20found','trunk_name','SIP/%s/%s','finally','Enter\x20in\x20FINALLY\x20(%s)\x20block','Enter\x20in\x20GETDIGITS\x20(%s)\x20block','file_id','getSound','no\x20file\x20audio\x20found','getData','response','maxdigit','test','mindigit','hiddendigitsnum','generate','hiddendigitspos','first','substr','getsecretdigits','goal','Enter\x20in\x20GOAL\x20(%s)\x20block','goalname','GOAL\x20%s','awspolly','no\x20valid\x20credentials\x20configured','Trying\x20aws\x20Polly\x20%s','aws\x20Polly\x20%s\x20file\x20created','aws\x20Polly\x20is\x20unreachable','awslex','Enter\x20in\x20Amazon\x20Lex\x20(%s)\x20block','no\x20bot\x20name\x20configured','Trying\x20Amazon\x20Lex:\x20%s','AWS_LEX_%s','Amazon\x20Lex\x20ready\x20for\x20fulfillment','Amazon\x20Lex\x20Result\x20%s','googleasr','Enter\x20in\x20GOOGLEASR\x20(%s)\x20block\x20%s','%s/recordings/%s','beep','NOBEEP','recordFile','intKey','google\x20%s\x20file\x20created','GOOGLE_ASR_%s','GoogleASR\x20Result\x20%s','tildeasr','wav','tilde\x20%s\x20file\x20created','TILDE_ASR_%s','TildeASR\x20Result\x20%s','gotoc','Enter\x20in\x20GOTO\x20(%s)\x20block','continueAt','context','gotoif','Enter\x20in\x20GOTOIF\x20(%s)\x20block','condition','no\x20condition\x20configured','true','false','Enter\x20in\x20GOTOIFTIME\x20(%s)\x20block','no\x20interval\x20configured','interval_id','no\x20intervals\x20found','IFTIME\x20%s\x20%s','hangup','Enter\x20in\x20ISPEECHASR\x20(%s)\x20block','ISPEECH_ASR_%s','IspeechASR\x20Result\x20%s','ispeechtts','Enter\x20in\x20ISPEECHTTS\x20(%s)\x20block','ispeech\x20%s\x20file\x20created','.wav','login','findBy','FIND\x20AGENT\x20%s\x20BY\x20%s','AGENT\x20%s\x20FOUND\x20BY','success','AGENT\x20%s\x20NOT\x20FOUND\x20BY','failure','logout','Enter\x20in\x20LOGOUT\x20(%s)\x20block','no\x20find\x20by\x20configured','math','Enter\x20in\x20MATH\x20(%s)\x20block','operation','variable\x20%s[key]\x20set','Enter\x20in\x20MENU\x20(%s)\x20block','retry','no\x20file\x20audio\x20selected','Enter\x20in\x20NOOP\x20(%s)\x20block','output','Enter\x20in\x20PAUSE\x20(%s)\x20block','pause_id','PLAYBACK','queue','Enter\x20in\x20QUEUE\x20(%s)\x20block','queue_id','indexOf','XMCS-QUEUE','toLowerCase','QUEUE','macro','gosub','position','record','recordingFormat','%s_%s','%s/recordings/%s.%s','RECORDING_SAVENAME','Recording\x20%s\x20%s\x20%s\x20%s','Enter\x20in\x20RESTAPI\x20(%s)\x20block','no\x20url\x20configured','Response:','inspect','no\x20variable\x20selected\x20for\x20the\x20response','%s_STATUS_CODE','200','%s_STATUS_MESSAGE','statusMessage','Unable\x20to\x20set\x20result\x20in\x20variable\x20%s','saydigits','sayDigits','digits','escape_digits','Enter\x20in\x20SAYNUMBER\x20(%s)\x20block','sayNumber','Enter\x20in\x20SAYPHONETIC\x20(%s)\x20block','sendMail','Enter\x20in\x20SENDMAIL\x20(%s)\x20block','no\x20mail\x20account\x20configured','Smtp','no\x20mail\x20account\x20found','\x22%s\x22\x20<%s>','user','bcc','subject','service','host','port','secure','authentication','auth','pass','debug','account_id','Trying\x20SendMail\x20with\x20account\x20%s','sendMailMessage','Mail\x20message\x20added\x20to\x20outgoing\x20process','sendFax','Enter\x20in\x20SENDFAX\x20(%s)\x20block','sendSMS','Enter\x20in\x20SENDSMS\x20(%s)\x20block','sms_account_id','no\x20sms\x20account\x20configured','no\x20sms\x20account\x20found','Trying\x20SendSMS\x20with\x20account\x20%s','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','Answer','Skipped\x20Answer','subproject','Enter\x20in\x20SUBPROJECT\x20(%s)\x20block','project_id','no\x20subproject\x20found\x20with\x20id\x20%d','project\x20in\x20subproject\x20must\x20be\x20different\x20from\x20the\x20called\x20project','agi://%s/square,\x22%s\x22,\x22%s\x22','127.0.0.1','AGI','system','Enter\x20in\x20SYSTEM\x20(%s)\x20block','shellCommand','sh\x20command:\x20%s\x20result\x20no\x20stored','google_cloud_tts','Enter\x20in\x20Google\x20Cloud\x20TTS\x20(%s)\x20block','no\x20apiKey\x20configured','Trying\x20Google\x20Cloud\x20TTS\x20%s','Google\x20Cloud\x20TTS\x20%s\x20file\x20created','Google\x20Cloud\x20TTS\x20is\x20unreachable','tts','Trying\x20Google\x20TTS\x20%s','googleTTS','unpause','Enter\x20in\x20UNPAUSE\x20(%s)\x20block','voicemail','Enter\x20in\x20VOICEMAIL\x20(%s)\x20block','VOICEMAIL','mailbox','vswitch','Enter\x20in\x20SWITCH\x20(%s)\x20block','join','path','util','lodash','shelljs','odbc','randomstring','moment','mustache','request-promise','../../config/logger','agi','../../config/environment','./scripts','/var/opt/motion2/server/files','menu','getdigits','channel','rpc','mailRpc','prototype','getVariable','getVariableById','then','name','catch','getVoiceQueue','getSquareProject','getSquareProjectById','getSquareOdbc','getSquareOdbcById','getUser','getUserById'];(function(_0x2d4661,_0x2da65c){var _0x42ed1e=function(_0x263c50){while(--_0x263c50){_0x2d4661['push'](_0x2d4661['shift']());}};_0x42ed1e(++_0x2da65c);}(_0x8c5c,0x1a2));var _0xc8c5=function(_0x265be6,_0xd0aec6){_0x265be6=_0x265be6-0x0;var _0x37fbbc=_0x8c5c[_0x265be6];return _0x37fbbc;};'use strict';var fs=require('fs');var path=require(_0xc8c5('0x0'));var util=require(_0xc8c5('0x1'));var _=require(_0xc8c5('0x2'));var sh=require(_0xc8c5('0x3'));var odbc=require(_0xc8c5('0x4'))();var rs=require(_0xc8c5('0x5'));var moment=require(_0xc8c5('0x6'));var Mustache=require(_0xc8c5('0x7'));var rp=require(_0xc8c5('0x8'));var logger=require(_0xc8c5('0x9'))(_0xc8c5('0xa'));var config=require(_0xc8c5('0xb'));var scripts=require(_0xc8c5('0xc'));var FILES_PATH=_0xc8c5('0xd');var recursiveMapAttributes=['rawHeaders','rawBody'];var verticesWithRetry=[_0xc8c5('0xe'),_0xc8c5('0xf'),'getsecretdigits'];var AGIVertices=function(_0x318a38,_0x18dea8,_0x3e5275){this[_0xc8c5('0x10')]=_0x318a38;this[_0xc8c5('0x11')]=_0x18dea8;this[_0xc8c5('0x12')]=_0x3e5275;};AGIVertices[_0xc8c5('0x13')][_0xc8c5('0x14')]=function(_0x3db997,_0x2d40b7){this[_0xc8c5('0x11')][_0xc8c5('0x15')](_0x3db997)[_0xc8c5('0x16')](function(_0x2efb58){_0x2d40b7(null,_0x2efb58?_0x2efb58[_0xc8c5('0x17')]:![]);})[_0xc8c5('0x18')](function(_0x4dfbff){_0x2d40b7(_0x4dfbff);});};AGIVertices[_0xc8c5('0x13')][_0xc8c5('0x19')]=function(_0x52dba2,_0x34b321){this[_0xc8c5('0x11')]['getVoiceQueueById'](_0x52dba2)[_0xc8c5('0x16')](function(_0x3019bf){_0x34b321(null,_0x3019bf?_0x3019bf[_0xc8c5('0x17')]:![]);})[_0xc8c5('0x18')](function(_0x481fd6){_0x34b321(_0x481fd6);});};AGIVertices[_0xc8c5('0x13')][_0xc8c5('0x1a')]=function(_0x31b778,_0x5b04a0){this[_0xc8c5('0x11')][_0xc8c5('0x1b')](_0x31b778)[_0xc8c5('0x16')](function(_0x2332a8){_0x5b04a0(null,_0x2332a8?_0x2332a8[_0xc8c5('0x17')]:![]);})['catch'](function(_0x428825){_0x5b04a0(_0x428825);});};AGIVertices[_0xc8c5('0x13')][_0xc8c5('0x1c')]=function(_0x55fcd5,_0x38928e){this[_0xc8c5('0x11')][_0xc8c5('0x1d')](_0x55fcd5)[_0xc8c5('0x16')](function(_0x1b5db6){_0x38928e(null,_0x1b5db6?_0x1b5db6['dsn']:![]);})[_0xc8c5('0x18')](function(_0x26922d){_0x38928e(_0x26922d);});};AGIVertices[_0xc8c5('0x13')][_0xc8c5('0x1e')]=function(_0x15a73f,_0x191cba){this[_0xc8c5('0x11')][_0xc8c5('0x1f')](_0x15a73f)[_0xc8c5('0x16')](function(_0x2080d4){_0x191cba(null,_0x2080d4?_0x2080d4[_0xc8c5('0x17')]:![]);})[_0xc8c5('0x18')](function(_0x55372a){_0x191cba(_0x55372a);});};AGIVertices[_0xc8c5('0x13')][_0xc8c5('0x20')]=function(_0x388e81,_0x44ef22){this[_0xc8c5('0x11')][_0xc8c5('0x21')](_0x388e81)[_0xc8c5('0x16')](function(_0x4dd188){_0x44ef22(null,_0x4dd188?_0x4dd188[_0xc8c5('0x17')]:![]);})[_0xc8c5('0x18')](function(_0x561360){_0x44ef22(_0x561360);});};AGIVertices[_0xc8c5('0x13')]['getSound']=function(_0x3d77d6,_0x6f1e9f){var _0x3d2e48=this;this['rpc']['getSoundById'](_0x3d77d6)['then'](function(_0x56f8ef){_0x6f1e9f(null,_0x56f8ef?_0x3d2e48['getSoundPath'](_0x56f8ef[_0xc8c5('0x22')]):![]);})[_0xc8c5('0x18')](function(_0x5e47b1){_0x6f1e9f(_0x5e47b1);});};AGIVertices['prototype'][_0xc8c5('0x23')]=function(_0x104ca6,_0x35e274){this[_0xc8c5('0x11')][_0xc8c5('0x24')](_0x104ca6)[_0xc8c5('0x16')](function(_0x4fee1e){_0x35e274(null,_0x4fee1e?_0x4fee1e:![]);})[_0xc8c5('0x18')](function(_0x1c252b){_0x35e274(_0x1c252b);});};AGIVertices[_0xc8c5('0x13')]['sendMailMessage']=function(_0x5765b1,_0x479fa5,_0x4f0775){this[_0xc8c5('0x12')]['sendMailMessage'](_0x5765b1,_0x479fa5)[_0xc8c5('0x16')](function(){_0x4f0775(null);})[_0xc8c5('0x18')](function(_0x4415ee){_0x4f0775(_0x4415ee);});};AGIVertices['prototype'][_0xc8c5('0x25')]=function(_0x169d63,_0xbc0d65){this[_0xc8c5('0x11')][_0xc8c5('0x26')](_0x169d63)[_0xc8c5('0x16')](function(_0x12cb71){if(_0x12cb71){if(_0x12cb71[_0xc8c5('0x27')]){_0xbc0d65(null,[_0x12cb71['interval']]);}else{_0xbc0d65(null,_['map'](_0x12cb71[_0xc8c5('0x28')],_0xc8c5('0x29')));}}else{_0xbc0d65(null,![]);}})[_0xc8c5('0x18')](function(_0x5b45d8){_0xbc0d65(_0x5b45d8);});};AGIVertices['prototype'][_0xc8c5('0x2a')]=function(_0x37ae9c){return util['format'](_0xc8c5('0x2b'),FILES_PATH,_0x37ae9c);};AGIVertices[_0xc8c5('0x13')][_0xc8c5('0x2c')]=function(_0x332a6d,_0x59a07b,_0xd2e694){odbc['open'](_0x332a6d,function(_0x974f25){if(_0x974f25){logger[_0xc8c5('0x2d')](_0xc8c5('0x2e'),_0x974f25);_0xd2e694(_0x974f25);}else{logger[_0xc8c5('0x2f')]('ODBC\x20connection\x20successfully');odbc[_0xc8c5('0x30')](_0x59a07b,function(_0x2f895c,_0x52d7f7){if(_0x2f895c){logger[_0xc8c5('0x2f')](_0xc8c5('0x31'),_0x59a07b);_0xd2e694(_0x2f895c);}else{logger[_0xc8c5('0x2f')](_0xc8c5('0x32'),_0x59a07b);odbc[_0xc8c5('0x33')](function(_0x7f472a){if(_0x7f472a){logger[_0xc8c5('0x2d')](_0xc8c5('0x34'),_0x7f472a);}_0xd2e694(null,_0x52d7f7);});}});}});};AGIVertices[_0xc8c5('0x13')][_0xc8c5('0x35')]=function(_0x53ff67,_0x2d1320){this[_0xc8c5('0x11')][_0xc8c5('0x36')](_0x53ff67)['then'](function(_0x3455ad){_0x2d1320(null,_0x3455ad?_0x3455ad:![]);})['catch'](function(_0x2df45c){_0x2d1320(_0x2df45c);});};AGIVertices[_0xc8c5('0x13')][_0xc8c5('0x37')]=function(_0x2ce0ba,_0x59ce8a){this[_0xc8c5('0x11')][_0xc8c5('0x37')](_0x2ce0ba)[_0xc8c5('0x16')](function(_0x55732f){_0x59ce8a(null,_0x55732f);})['catch'](function(_0x35ecb0){_0x59ce8a(_0x35ecb0);});};AGIVertices[_0xc8c5('0x13')]['createSquareDetailsReport']=function(_0x380b1c,_0x870558,_0x2442eb){this[_0xc8c5('0x11')][_0xc8c5('0x38')]({'uniqueid':this[_0xc8c5('0x10')][_0xc8c5('0x39')],'node':_0x380b1c[_0xc8c5('0x3a')],'application':_0x380b1c[_0xc8c5('0x3b')],'data':_0x870558||null,'project_name':this[_0xc8c5('0x10')][_0xc8c5('0x3c')],'callerid':this[_0xc8c5('0x10')]['callerid']})[_0xc8c5('0x16')](function(_0x9313b){if(_0x2442eb){_0x2442eb(null,_0x9313b);}})[_0xc8c5('0x18')](function(_0x33d258){if(_0x2442eb){_0x2442eb(_0x33d258);}});};AGIVertices[_0xc8c5('0x13')][_0xc8c5('0x3d')]=function(_0x1d5d4f,_0x5bdb74,_0x59094d,_0x391d20){this['rpc'][_0xc8c5('0x3d')]({'uniqueid':this[_0xc8c5('0x10')]['uniqueid'],'callerid':this[_0xc8c5('0x10')][_0xc8c5('0x3e')],'calleridname':this['channel'][_0xc8c5('0x3f')],'context':this[_0xc8c5('0x10')]['context'],'extension':this[_0xc8c5('0x10')][_0xc8c5('0x40')],'priority':this[_0xc8c5('0x10')][_0xc8c5('0x41')],'accountcode':this[_0xc8c5('0x10')][_0xc8c5('0x42')],'dnid':this['channel'][_0xc8c5('0x43')],'projectName':this['channel'][_0xc8c5('0x3c')],'saveName':_0x5bdb74,'filename':_0x1d5d4f[_0xc8c5('0x44')]||_0x5bdb74,'savePath':_0x59094d})[_0xc8c5('0x16')](function(_0x340ade){_0x391d20(null,_0x340ade);})['catch'](function(_0x24646d){_0x391d20(_0x24646d);});};AGIVertices[_0xc8c5('0x13')][_0xc8c5('0x45')]=function(_0x26135f,_0x274b07,_0x4ebf1e){this['rpc'][_0xc8c5('0x45')]({'uniqueid':this[_0xc8c5('0x10')]['uniqueid'],'body':_0x26135f,'direction':_0x274b07})[_0xc8c5('0x16')](function(_0x160d6c){if(_0x4ebf1e){_0x4ebf1e(null,_0x160d6c);}})['catch'](function(_0x5d06f1){if(_0x4ebf1e){_0x4ebf1e(_0x5d06f1);}});};AGIVertices[_0xc8c5('0x13')][_0xc8c5('0x46')]=function(_0x502f5b,_0x192df9){this[_0xc8c5('0x11')][_0xc8c5('0x46')]({'firstName':_[_0xc8c5('0x47')](_0x502f5b['name'])||_['isNil'](_0x502f5b[_0xc8c5('0x17')])?'callback_'+Math[_0xc8c5('0x48')]():_0x502f5b['name'],'lastName':_[_0xc8c5('0x47')](_0x502f5b[_0xc8c5('0x49')])||_[_0xc8c5('0x4a')](_0x502f5b['lastName'])?null:_0x502f5b['lastName'],'phone':_0x502f5b[_0xc8c5('0x4b')],'ListId':_0x502f5b[_0xc8c5('0x4c')],'scheduledat':_0x502f5b[_0xc8c5('0x4d')],'callbackUniqueid':this[_0xc8c5('0x10')][_0xc8c5('0x39')],'tags':_0xc8c5('0x4e'),'description':'Callback\x20scheduled\x20at\x20'+_0x502f5b['scheduledAt'][_0xc8c5('0x4f')](),'priority':_0x502f5b[_0xc8c5('0x50')]})[_0xc8c5('0x16')](function(_0x275f99){_0x192df9(null,_0x275f99);})['catch'](function(_0x10f4a1){_0x192df9(_0x10f4a1);});};AGIVertices[_0xc8c5('0x13')][_0xc8c5('0x51')]=function(_0x5b5ccd,_0x25505e){this[_0xc8c5('0x11')][_0xc8c5('0x52')](_0x5b5ccd)[_0xc8c5('0x16')](function(_0x5da073){_0x25505e(null,_0x5da073?_0x5da073[_0xc8c5('0x17')]:![]);})[_0xc8c5('0x18')](function(_0x1518b9){_0x25505e(_0x1518b9);});};AGIVertices[_0xc8c5('0x13')][_0xc8c5('0x53')]=function(_0x3fc06c,_0x47f538,_0x287d9a){var _0x9cfb39={'role':'agent'};_0x9cfb39[_0x3fc06c]=this[_0xc8c5('0x10')][_0xc8c5('0x3e')];this['rpc'][_0xc8c5('0x53')](_0x9cfb39,_0x47f538,this[_0xc8c5('0x10')][_0xc8c5('0x39')])[_0xc8c5('0x16')](function(_0x1bf5a8){_0x287d9a(null,_['isNil'](_0x1bf5a8)?![]:!![]);})['catch'](function(_0x25d844){logger[_0xc8c5('0x2d')](_0x25d844);_0x287d9a(null,![]);});};AGIVertices[_0xc8c5('0x13')][_0xc8c5('0x54')]=function(_0x446a89,_0x4b37e9){var _0xf09a3d={'role':_0xc8c5('0x55')};_0xf09a3d[_0x446a89]=this[_0xc8c5('0x10')][_0xc8c5('0x3e')];this[_0xc8c5('0x11')][_0xc8c5('0x54')](_0xf09a3d)[_0xc8c5('0x16')](function(_0x57a115){_0x4b37e9(null,_[_0xc8c5('0x4a')](_0x57a115)?![]:!![]);})[_0xc8c5('0x18')](function(_0x5dd715){logger[_0xc8c5('0x2d')](_0x5dd715);_0x4b37e9(null,![]);});};AGIVertices[_0xc8c5('0x13')][_0xc8c5('0x56')]=function(_0x15ceb1,_0x5e42ca){var _0x231633={'role':_0xc8c5('0x55')};_0x231633[_0x15ceb1]=this[_0xc8c5('0x10')]['callerid'];this[_0xc8c5('0x11')][_0xc8c5('0x56')](_0x231633)[_0xc8c5('0x16')](function(_0x5acfa9){_0x5e42ca(null,_[_0xc8c5('0x4a')](_0x5acfa9)?![]:!![]);})['catch'](function(_0x255d02){logger[_0xc8c5('0x2d')](_0x255d02);_0x5e42ca(null,![]);});};AGIVertices[_0xc8c5('0x13')][_0xc8c5('0x57')]=function(_0x144be5,_0x367d08){var _0x24273f={'role':_0xc8c5('0x55')};_0x24273f[_0x144be5]=this[_0xc8c5('0x10')][_0xc8c5('0x3e')];var _0x5ae49a=_0x144be5!=_0xc8c5('0x58')?util[_0xc8c5('0x59')]('%s/%s@from-sip/n',_0xc8c5('0x5a'),this[_0xc8c5('0x10')][_0xc8c5('0x3e')]):undefined;this[_0xc8c5('0x11')]['agentLogin'](_0x24273f,_0x5ae49a)[_0xc8c5('0x16')](function(_0x117ab2){_0x367d08(null,_[_0xc8c5('0x4a')](_0x117ab2)?![]:!![]);})[_0xc8c5('0x18')](function(_0x3e9999){logger[_0xc8c5('0x2d')](_0x3e9999);_0x367d08(null,![]);});};AGIVertices[_0xc8c5('0x13')]['shellCommand']=function(_0x1cf8cc,_0x3fb5fe){sh[_0xc8c5('0x5b')](_[_0xc8c5('0x5c')](_0x1cf8cc),function(_0xb3e3b9,_0x809d1d){var _0x1c38f8=_0x809d1d[_0xc8c5('0x5d')](/(\r\n|\n|\r)/gm,'');_0x3fb5fe(null,_0x1c38f8);});};AGIVertices[_0xc8c5('0x13')][_0xc8c5('0x5e')]=function(_0x3e75d2,_0x3e5e05){scripts['googleCloudTTS'](_0x3e75d2[_0xc8c5('0x5f')],_0x3e75d2['google_cloud_tts_text_type']||'text',_0x3e75d2['text'],_0x3e75d2[_0xc8c5('0x60')]||'en-US',_0x3e75d2[_0xc8c5('0x61')]||'MALE',_0x3e75d2['audioEncoding']||_0xc8c5('0x62'))[_0xc8c5('0x16')](function(_0x4d795f){_0x3e5e05(null,_0x4d795f);})['catch'](function(_0x403da8){_0x3e5e05(_0x403da8);});};AGIVertices[_0xc8c5('0x13')]['googleTTS']=function(_0x10a42d,_0x2b18e8){scripts['googleTTS'](_0x10a42d[_0xc8c5('0x63')],_0x10a42d[_0xc8c5('0x64')]||'en',0x1)['then'](function(_0x21374b){_0x2b18e8(null,_0x21374b);})[_0xc8c5('0x18')](function(_0x9b0dae){_0x2b18e8(_0x9b0dae);});};AGIVertices[_0xc8c5('0x13')][_0xc8c5('0x65')]=function(_0x4f8001,_0x49727d){var _0x542f41={'uri':_0x4f8001[_0xc8c5('0x66')],'method':_0x4f8001[_0xc8c5('0x67')],'json':!![],'resolveWithFullResponse':!![],'timeout':typeof parseInt(_0x4f8001[_0xc8c5('0x68')])===_0xc8c5('0x69')&&parseInt(_0x4f8001[_0xc8c5('0x68')])>=0x1?parseInt(_0x4f8001['timeout'])*0x3e8:0x5*0x3e8};if(_[_0xc8c5('0x6a')]([_0xc8c5('0x6b'),_0xc8c5('0x6c')],_0x542f41['method'][_0xc8c5('0x6d')]())){try{_0x542f41[_0xc8c5('0x6e')]=_0x4f8001[_0xc8c5('0x6f')]?JSON['parse'](_0x4f8001[_0xc8c5('0x6f')]):{};}catch(_0x4f8854){logger[_0xc8c5('0x2d')](_0xc8c5('0x70'),_0x4f8854);}}try{_0x542f41['headers']=_0x4f8001[_0xc8c5('0x71')]?JSON[_0xc8c5('0x72')](_0x4f8001[_0xc8c5('0x71')]):{};}catch(_0x5b5ecd){logger[_0xc8c5('0x2d')]('An\x20incorrect\x20formatted\x20json\x20headers\x20has\x20been\x20passed\x20to\x20the\x20function',_0x5b5ecd);}if(_0x4f8001[_0xc8c5('0x73')]){try{var _0x3082f2=require(_0x4f8001[_0xc8c5('0x73')])[_0xc8c5('0x74')](this,_0x542f41);_0x542f41[_0xc8c5('0x75')]=Mustache[_0xc8c5('0x76')](_0x4f8001['url'],_0x3082f2,{},['$$','$$']);if(_0x542f41[_0xc8c5('0x77')]){_0x542f41[_0xc8c5('0x77')]=JSON[_0xc8c5('0x72')](Mustache[_0xc8c5('0x76')](JSON[_0xc8c5('0x78')](_0x542f41[_0xc8c5('0x77')]),_0x3082f2,{},['$$','$$']));}if(_0x542f41[_0xc8c5('0x6e')]){_0x542f41[_0xc8c5('0x6e')]=JSON[_0xc8c5('0x72')](Mustache[_0xc8c5('0x76')](JSON[_0xc8c5('0x78')](_0x542f41[_0xc8c5('0x6e')]),_0x3082f2,{},['$$','$$']));}}catch(_0xab1e71){logger[_0xc8c5('0x2d')]('An\x20incorrect\x20formatted\x20json\x20has\x20been\x20passed\x20to\x20the\x20function',_0xab1e71);}}rp(_0x542f41)[_0xc8c5('0x16')](function(_0x58623c){var _0x212104={'statusCode':_0x58623c[_0xc8c5('0x79')]||0xc8,'statusMessage':_0x58623c['statusMessage']||'OK','headers':_0x58623c[_0xc8c5('0x77')]||{},'body':_0x58623c[_0xc8c5('0x6e')]||{}};_0x49727d(null,_0x212104);})[_0xc8c5('0x18')](function(_0x3ede01){var _0x3a4f2d={'statusCode':_0x3ede01[_0xc8c5('0x79')]||0x1f4,'statusMessage':_0x3ede01[_0xc8c5('0x7a')]||_0xc8c5('0x7b'),'headers':_0x3ede01['options']['headers']||{},'body':_0x3ede01[_0xc8c5('0x7c')]['body']||{}};_0x49727d(null,_0x3a4f2d);});};AGIVertices[_0xc8c5('0x13')][_0xc8c5('0x7d')]=function(_0x483df9,_0x4f4024){scripts['googleDialogflow'](this[_0xc8c5('0x10')][_0xc8c5('0x39')],_0x483df9[_0xc8c5('0x7e')],_0x483df9['text'],_0x483df9[_0xc8c5('0x7f')]||'en')[_0xc8c5('0x16')](function(_0x571aff){_0x4f4024(null,_0x571aff);})[_0xc8c5('0x18')](function(_0x21e830){_0x4f4024(_0x21e830);});};AGIVertices['prototype'][_0xc8c5('0x80')]=function(_0x55441f,_0x149909){scripts[_0xc8c5('0x80')](this[_0xc8c5('0x10')],_0x55441f)[_0xc8c5('0x16')](function(_0x3bcf7a){_0x149909(null,_0x3bcf7a);})[_0xc8c5('0x18')](function(_0x1e8802){_0x149909(_0x1e8802);});};AGIVertices[_0xc8c5('0x13')][_0xc8c5('0x81')]=function(_0x495a42,_0xf8f5c3){scripts[_0xc8c5('0x81')](_0x495a42['key'],_0x495a42['text'],_0x495a42[_0xc8c5('0x82')]||_0xc8c5('0x83'),_0x495a42[_0xc8c5('0x84')])[_0xc8c5('0x16')](function(_0x2c916a){_0xf8f5c3(null,_0x2c916a);})[_0xc8c5('0x18')](function(_0x2b5f2b){_0xf8f5c3(_0x2b5f2b);});};AGIVertices[_0xc8c5('0x13')][_0xc8c5('0x85')]=function(_0x398883,_0x476a96,_0x42c2fe){scripts[_0xc8c5('0x85')](_0x476a96,_0x398883[_0xc8c5('0x7e')],_0x398883[_0xc8c5('0x86')]||_0xc8c5('0x83'),this[_0xc8c5('0x87')](_0x398883[_0xc8c5('0x88')])?_0x398883[_0xc8c5('0x88')]:undefined)[_0xc8c5('0x16')](function(_0x574738){_0x42c2fe(null,_0x574738);})[_0xc8c5('0x18')](function(_0x1d2a8b){_0x42c2fe(_0x1d2a8b);});};AGIVertices['prototype']['awsPolly']=function(_0x1ea2b3,_0x1f7eb4){scripts[_0xc8c5('0x89')](_0x1ea2b3[_0xc8c5('0x8a')],_0x1ea2b3[_0xc8c5('0x8b')],_0x1ea2b3[_0xc8c5('0x8c')],_0x1ea2b3['aws_polly_voice']||_0xc8c5('0x8d'),_0x1ea2b3['text'],_0x1ea2b3['aws_text_type']||_0xc8c5('0x63'))[_0xc8c5('0x16')](function(_0x5e2058){_0x1f7eb4(null,_0x5e2058);})[_0xc8c5('0x18')](function(_0x158287){_0x1f7eb4(_0x158287);});};AGIVertices[_0xc8c5('0x13')][_0xc8c5('0x8e')]=function(_0x737cc7,_0xaf37ec){scripts[_0xc8c5('0x8e')](this[_0xc8c5('0x10')][_0xc8c5('0x39')],_0x737cc7[_0xc8c5('0x8a')],_0x737cc7[_0xc8c5('0x8b')],_0x737cc7['aws_lex_region'],_0x737cc7['text'],_0x737cc7['aws_bot_name'])[_0xc8c5('0x16')](function(_0x3f113c){_0xaf37ec(null,_0x3f113c);})[_0xc8c5('0x18')](function(_0x225bdd){_0xaf37ec(_0x225bdd);});};AGIVertices['prototype'][_0xc8c5('0x8f')]=function(_0x5c495a,_0x33546e,_0xe70ecc){scripts[_0xc8c5('0x8f')](_0x33546e,_0x5c495a[_0xc8c5('0x7e')],_0x5c495a[_0xc8c5('0x90')]||'en-US')[_0xc8c5('0x16')](function(_0x500efa){_0xe70ecc(null,_0x500efa);})['catch'](function(_0x4bd7f6){_0xe70ecc(_0x4bd7f6);});};AGIVertices[_0xc8c5('0x13')][_0xc8c5('0x91')]=function(_0x24f257,_0x204ee1,_0x3f057d){scripts[_0xc8c5('0x91')](_0x204ee1,_0x24f257[_0xc8c5('0x92')],_0x24f257['appsecret'],_0x24f257[_0xc8c5('0x75')])[_0xc8c5('0x16')](function(_0x5b7e26){_0x3f057d(null,_0x5b7e26);})['catch'](function(_0x1b6f7a){_0x3f057d(_0x1b6f7a);});};AGIVertices[_0xc8c5('0x13')][_0xc8c5('0x93')]=function(_0x12d6dd){var _0x41107f=_['includes'](verticesWithRetry,_0x12d6dd[_0xc8c5('0x3b')])?_0x12d6dd:_[_0xc8c5('0x94')](_0x12d6dd);for(var _0x2b690b in _0x41107f){if(_0x41107f[_0xc8c5('0x95')](_0x2b690b)){if(_0x41107f[_0x2b690b]&&_[_0xc8c5('0x96')](_0x41107f[_0x2b690b])){if(_['includes'](recursiveMapAttributes,_0x2b690b)){_0x41107f[_0x2b690b]=this[_0xc8c5('0x97')](_0x41107f[_0x2b690b]);}else{_0x41107f[_0x2b690b]=this[_0xc8c5('0x98')](_0x41107f[_0x2b690b]);}}}}return _0x41107f;};AGIVertices[_0xc8c5('0x13')][_0xc8c5('0x99')]=function(_0x1134f6){for(var _0x281c0e in _0x1134f6){if(_0x1134f6[_0xc8c5('0x95')](_0x281c0e)){if(_['isPlainObject'](_0x1134f6[_0x281c0e])){this[_0xc8c5('0x99')](_0x1134f6[_0x281c0e]);}else if(_[_0xc8c5('0x9a')](_0x1134f6[_0x281c0e])){for(var _0x25f127=0x0;_0x25f127<_0x1134f6[_0x281c0e][_0xc8c5('0x9b')];_0x25f127++){this['recursiveNodeIndex'](_0x1134f6[_0x281c0e][_0x25f127]);}}else if(_[_0xc8c5('0x96')](_0x1134f6[_0x281c0e])){_0x1134f6[_0x281c0e]=this['replaceAllVariables'](_0x1134f6[_0x281c0e]);}}}};AGIVertices['prototype'][_0xc8c5('0x9c')]=function(_0x466ab5,_0x1dc62d){for(var _0x347735 in _0x466ab5){if(_0x466ab5[_0xc8c5('0x95')](_0x347735)){if(_['isPlainObject'](_0x466ab5[_0x347735])){if(!_[_0xc8c5('0x47')](_0x466ab5[_0x347735])){this['saveRestApiResult'](_0x466ab5[_0x347735],util[_0xc8c5('0x59')](_0xc8c5('0x9d'),_0x1dc62d,_0x347735));}}else if(_[_0xc8c5('0x9a')](_0x466ab5[_0x347735])){for(var _0x394b6b=0x0;_0x394b6b<_0x466ab5[_0x347735][_0xc8c5('0x9b')];_0x394b6b++){this[_0xc8c5('0x9c')](_0x466ab5[_0x347735][_0x394b6b],util[_0xc8c5('0x59')]('%s.%s',_0x1dc62d,_0x347735+'['+_0x394b6b+']'));}}else{if(!_['isNil'](_0x466ab5[_0x347735])){this['channel'][_0xc8c5('0x9e')](util['format'](_0xc8c5('0x9d'),_0x1dc62d,_0x347735),_0x466ab5[_0x347735]);}}}}};AGIVertices['prototype'][_0xc8c5('0x97')]=function(_0x5811e2){try{var _0x292510=JSON['parse'](_0x5811e2);this[_0xc8c5('0x99')](_0x292510);return JSON[_0xc8c5('0x78')](_0x292510);}catch(_0x28af16){return this[_0xc8c5('0x98')](_0x5811e2);}};AGIVertices[_0xc8c5('0x13')]['replaceAllVariables']=function(_0x560f35){var _0x56eaea=_0x560f35[_0xc8c5('0x9f')]('{');for(var _0x4e3dbd=0x1;_0x4e3dbd<_0x56eaea[_0xc8c5('0x9b')];_0x4e3dbd+=0x1){var _0x34861d=_0x56eaea[_0x4e3dbd]['split']('}');if(_0x34861d['length']>0x1){_0x560f35=_0x560f35['replaceAll']('{'+_0x34861d[0x0]+'}',this[_0xc8c5('0x10')][_0xc8c5('0x14')](_0x34861d[0x0])[_0xc8c5('0xa0')]||_0x34861d[0x0]);}}if(_0x56eaea[_0xc8c5('0x9b')]===0x1){return _0x560f35['toString']();}return this[_0xc8c5('0x98')](_0x560f35);};AGIVertices[_0xc8c5('0x13')]['getAndSetVariable']=function(_0x2f7135,_0x1bc7fe){var _0x5477ee=this[_0xc8c5('0x10')][_0xc8c5('0x14')](_0x2f7135);if(_0x5477ee[_0xc8c5('0xa1')]===-0x1){return _0x5477ee;}logger[_0xc8c5('0x2f')](util[_0xc8c5('0x59')](_0xc8c5('0xa2'),_0x1bc7fe,_0x5477ee[_0xc8c5('0xa0')]));return this[_0xc8c5('0x10')]['setVariable'](_0x1bc7fe,_0x5477ee['extra']);};AGIVertices['prototype'][_0xc8c5('0x87')]=function(_0x538425){return _0x538425&&_0x538425!=='0'&&_0x538425!=='-1'&&_0x538425!=='';};AGIVertices[_0xc8c5('0x13')][_0xc8c5('0xa3')]=function(_0x576426){this[_0xc8c5('0x38')][_0xc8c5('0x74')](this,_0x576426,'-');_0x576426['retry']=_0x576426['maxRetry'];return{'code':0xc8,'result':'-'};};AGIVertices['prototype'][_0xc8c5('0xa4')]=function(_0x5d35ef){logger[_0xc8c5('0x2f')](util[_0xc8c5('0x59')](_0xc8c5('0xa5'),_0x5d35ef['label']));if(!this[_0xc8c5('0x87')](_0x5d35ef[_0xc8c5('0x63')])){return this[_0xc8c5('0x10')][_0xc8c5('0xa6')](_0xc8c5('0xa7'));}var _0x44c6d7='\x22'+_0x5d35ef[_0xc8c5('0x63')]+'\x22';if(this[_0xc8c5('0x87')](_0x5d35ef['options'])){_0x44c6d7+=','+_0x5d35ef[_0xc8c5('0x7c')];}var _0x3a5f76=this[_0xc8c5('0x10')]['exec']('MRCPSynth',_0x44c6d7);if(_0x3a5f76[_0xc8c5('0xa1')]===-0x1){return _0x3a5f76;}return this[_0xc8c5('0x10')][_0xc8c5('0xa6')](util[_0xc8c5('0x59')](_0xc8c5('0xa8'),_0x44c6d7));};AGIVertices[_0xc8c5('0x13')][_0xc8c5('0xa9')]=function(_0x28e91c){logger['info'](util[_0xc8c5('0x59')]('Enter\x20in\x20MRCPRecog\x20(%s)\x20block',_0x28e91c['label']));if(!this['isConfigured'](_0x28e91c[_0xc8c5('0xaa')])){return this[_0xc8c5('0x10')][_0xc8c5('0xa6')]('no\x20grammar\x20configured');}var _0x371257=_0x28e91c[_0xc8c5('0xaa')];if(this[_0xc8c5('0x87')](_0x28e91c[_0xc8c5('0x7c')])){_0x371257+=','+_0x28e91c[_0xc8c5('0x7c')];}var _0x5eea02=this['channel'][_0xc8c5('0x5b')](_0xc8c5('0xab'),_0x371257);if(_0x5eea02[_0xc8c5('0xa1')]===-0x1){return _0x5eea02;}var _0x5f4fd2=this['getAndSetVariable'](_0xc8c5('0xac'),'MRCP_RECOG_CONFIDENCE');if(_0x5f4fd2[_0xc8c5('0xa1')]===-0x1){return _0x5f4fd2;}var _0x51a8b7=this[_0xc8c5('0xad')](_0xc8c5('0xae'),'MRCP_RECOG_TRANSCRIPT');if(_0x51a8b7[_0xc8c5('0xa1')]===-0x1){return _0x51a8b7;}var _0x4f9264=this[_0xc8c5('0xad')](_0xc8c5('0xaf'),_0xc8c5('0xb0'));if(_0x4f9264[_0xc8c5('0xa1')]===-0x1){return _0x4f9264;}return this['channel'][_0xc8c5('0xa6')](util[_0xc8c5('0x59')](_0xc8c5('0xb1'),_0x371257));};AGIVertices['prototype'][_0xc8c5('0xa')]=function(_0x1fc576){logger['info'](util[_0xc8c5('0x59')](_0xc8c5('0xb2'),_0x1fc576[_0xc8c5('0x3a')]));return this[_0xc8c5('0x10')]['agi']([_0x1fc576[_0xc8c5('0xb3')],_0x1fc576[_0xc8c5('0xb4')]]);};AGIVertices[_0xc8c5('0x13')][_0xc8c5('0xb5')]=function(_0x4fac08){logger[_0xc8c5('0x2f')](util['format']('Enter\x20in\x20ANSWER\x20(%s)\x20block',_0x4fac08[_0xc8c5('0x3a')]));if(this[_0xc8c5('0x87')](_0x4fac08[_0xc8c5('0x68')])){logger[_0xc8c5('0x2f')](util['format'](_0xc8c5('0xb6'),_0x4fac08[_0xc8c5('0x68')]));var _0x46998b=this['channel'][_0xc8c5('0xb7')](_0x4fac08[_0xc8c5('0x68')]);if(_0x46998b[_0xc8c5('0xa1')]===-0x1){return _0x46998b;}}return this['channel'][_0xc8c5('0xb5')]();};AGIVertices[_0xc8c5('0x13')][_0xc8c5('0x4e')]=function(_0x1aa106){logger[_0xc8c5('0x2f')](util[_0xc8c5('0x59')](_0xc8c5('0xb8'),_0x1aa106['label']));if(!this[_0xc8c5('0x87')](_0x1aa106[_0xc8c5('0x4c')])){return this['channel'][_0xc8c5('0x2d')](_0x1aa106,_0xc8c5('0xb9'));}_0x1aa106[_0xc8c5('0x4d')]=moment();if(this['isConfigured'](_0x1aa106['delay'])){_0x1aa106[_0xc8c5('0x4d')]=moment()[_0xc8c5('0xba')](_0x1aa106[_0xc8c5('0xbb')],_0xc8c5('0xbc'));}if(!this[_0xc8c5('0x87')](_0x1aa106[_0xc8c5('0x50')])){_0x1aa106[_0xc8c5('0x50')]=0x2;}this['createCmContact']['sync'](this,_0x1aa106);return this['channel'][_0xc8c5('0xa6')](util[_0xc8c5('0x59')](_0xc8c5('0xbd'),_0x1aa106[_0xc8c5('0x4b')],_0x1aa106['list_id'],_0x1aa106['scheduledAt']));};AGIVertices[_0xc8c5('0x13')]['custom_app']=function(_0x4d2a14){logger[_0xc8c5('0x2f')](util['format'](_0xc8c5('0xbe'),_0x4d2a14[_0xc8c5('0x3a')]));var _0x362aba=this[_0xc8c5('0x10')][_0xc8c5('0x5b')](_0x4d2a14[_0xc8c5('0xbf')],_0x4d2a14[_0xc8c5('0x7c')]);if(_0x362aba[_0xc8c5('0xa1')]===-0x1){return _0x362aba;}return this[_0xc8c5('0x10')][_0xc8c5('0xa6')](util[_0xc8c5('0x59')](_0xc8c5('0xc0'),_0x4d2a14[_0xc8c5('0xbf')],_0x4d2a14['options']));};AGIVertices['prototype']['lumenvoxtts']=function(_0x361e03){logger[_0xc8c5('0x2f')](util[_0xc8c5('0x59')](_0xc8c5('0xc1'),_0x361e03[_0xc8c5('0x3a')]));if(!this[_0xc8c5('0x87')](_0x361e03[_0xc8c5('0x63')])){return this[_0xc8c5('0x10')][_0xc8c5('0xa6')](_0xc8c5('0xa7'));}var _0x52710e='\x22'+_0x361e03[_0xc8c5('0x63')]+'\x22';if(this[_0xc8c5('0x87')](_0x361e03[_0xc8c5('0x7c')])){_0x52710e+=','+_0x361e03['options'];}var _0x5adad4=this[_0xc8c5('0x10')][_0xc8c5('0x5b')](_0xc8c5('0xc2'),_0x52710e);if(_0x5adad4[_0xc8c5('0xa1')]===-0x1){return _0x5adad4;}return this[_0xc8c5('0x10')]['noop'](util['format'](_0xc8c5('0xa8'),_0x52710e));};AGIVertices[_0xc8c5('0x13')][_0xc8c5('0xc3')]=function(_0x3adbd8){logger[_0xc8c5('0x2f')](util[_0xc8c5('0x59')]('Enter\x20in\x20SESTEKTTS\x20(%s)\x20block',_0x3adbd8['label']));if(!this[_0xc8c5('0x87')](_0x3adbd8[_0xc8c5('0x63')])){return this[_0xc8c5('0x10')][_0xc8c5('0xa6')](_0xc8c5('0xa7'));}var _0x3cb847='\x22'+_0x3adbd8[_0xc8c5('0x63')]+'\x22';if(this[_0xc8c5('0x87')](_0x3adbd8[_0xc8c5('0x7c')])){_0x3cb847+=','+_0x3adbd8['options'];}var _0x3cddd4=this[_0xc8c5('0x10')][_0xc8c5('0x5b')]('MRCPSynth',_0x3cb847);if(_0x3cddd4[_0xc8c5('0xa1')]===-0x1){return _0x3cddd4;}return this[_0xc8c5('0x10')][_0xc8c5('0xa6')](util[_0xc8c5('0x59')](_0xc8c5('0xa8'),_0x3cb847));};AGIVertices['prototype']['lumenvoxasr']=function(_0x18d8c7){logger[_0xc8c5('0x2f')](util['format']('Enter\x20in\x20LUMENVOXASR\x20(%s)\x20block',_0x18d8c7[_0xc8c5('0x3a')]));if(!this[_0xc8c5('0x87')](_0x18d8c7[_0xc8c5('0xaa')])){return this[_0xc8c5('0x10')]['noop']('no\x20grammar\x20configured');}var _0x318119=_0x18d8c7[_0xc8c5('0xaa')];if(this[_0xc8c5('0x87')](_0x18d8c7['options'])){_0x318119+=','+_0x18d8c7[_0xc8c5('0x7c')];}var _0x410def=this['channel'][_0xc8c5('0x5b')](_0xc8c5('0xab'),_0x318119);if(_0x410def[_0xc8c5('0xa1')]===-0x1){return _0x410def;}var _0x30c2e1=this['getAndSetVariable'](_0xc8c5('0xac'),_0xc8c5('0xc4'));if(_0x30c2e1[_0xc8c5('0xa1')]===-0x1){return _0x30c2e1;}var _0x3fffd0=this[_0xc8c5('0xad')](_0xc8c5('0xae'),'LUMENVOX_ASR_TRANSCRIPT');if(_0x3fffd0[_0xc8c5('0xa1')]===-0x1){return _0x3fffd0;}var _0x25792b=this[_0xc8c5('0xad')](_0xc8c5('0xaf'),_0xc8c5('0xc5'));if(_0x25792b['result']===-0x1){return _0x25792b;}return this[_0xc8c5('0x10')][_0xc8c5('0xa6')](util[_0xc8c5('0x59')](_0xc8c5('0xb1'),_0x318119));};AGIVertices[_0xc8c5('0x13')][_0xc8c5('0xc6')]=function(_0x28bf92){logger[_0xc8c5('0x2f')](util[_0xc8c5('0x59')](_0xc8c5('0xc7'),_0x28bf92[_0xc8c5('0x3a')]));if(!this[_0xc8c5('0x87')](_0x28bf92[_0xc8c5('0xaa')])){return this[_0xc8c5('0x10')][_0xc8c5('0xa6')](_0xc8c5('0xc8'));}var _0x5dfcc5=_0x28bf92['grammar'];if(this[_0xc8c5('0x87')](_0x28bf92[_0xc8c5('0x7c')])){_0x5dfcc5+=','+_0x28bf92[_0xc8c5('0x7c')];}var _0x1942eb=this['channel'][_0xc8c5('0x5b')](_0xc8c5('0xab'),_0x5dfcc5);if(_0x1942eb[_0xc8c5('0xa1')]===-0x1){return _0x1942eb;}var _0x565c95=this[_0xc8c5('0xad')]('RECOG_CONFIDENCE()',_0xc8c5('0xc9'));if(_0x565c95[_0xc8c5('0xa1')]===-0x1){return _0x565c95;}var _0x301228=this[_0xc8c5('0xad')](_0xc8c5('0xae'),_0xc8c5('0xca'));if(_0x301228[_0xc8c5('0xa1')]===-0x1){return _0x301228;}var _0x171e0c=this['getAndSetVariable'](_0xc8c5('0xaf'),_0xc8c5('0xcb'));if(_0x171e0c[_0xc8c5('0xa1')]===-0x1){return _0x171e0c;}return this[_0xc8c5('0x10')]['noop'](util[_0xc8c5('0x59')](_0xc8c5('0xb1'),_0x5dfcc5));};AGIVertices[_0xc8c5('0x13')][_0xc8c5('0xcc')]=function(_0x1ed234){logger[_0xc8c5('0x2f')](util[_0xc8c5('0x59')]('Enter\x20in\x20DATABASE\x20(%s)\x20block',_0x1ed234[_0xc8c5('0x3a')]));if(!this['isConfigured'](_0x1ed234[_0xc8c5('0xcd')])){return this[_0xc8c5('0x10')]['error'](_0x1ed234,_0xc8c5('0xce'));}var _0x10254e=this[_0xc8c5('0x1c')][_0xc8c5('0x74')](this,_0x1ed234[_0xc8c5('0xcd')]);if(!_0x10254e){return this[_0xc8c5('0x10')][_0xc8c5('0x2d')](_0x1ed234,'no\x20odbc\x20database\x20found');}if(!this[_0xc8c5('0x87')](_0x1ed234[_0xc8c5('0x30')])){return this[_0xc8c5('0x10')]['error'](_0x1ed234,_0xc8c5('0xcf'));}var _0x2cb05b=_0x1ed234['query'][_0xc8c5('0x5d')](/(\r\n|\n|\r)/gm,'\x20');this['channel']['noop'](util[_0xc8c5('0x59')](_0xc8c5('0xd0'),_0x2cb05b));var _0x406b43=this[_0xc8c5('0x2c')][_0xc8c5('0x74')](this,_0x10254e,_0x2cb05b);this['createSquareDetailsReport'][_0xc8c5('0x74')](this,_0x1ed234,_0x2cb05b);if(!this['isConfigured'](_0x1ed234['variable_id'])){return this['channel'][_0xc8c5('0xa6')](_0xc8c5('0xd1'));}var _0x3fba98=this[_0xc8c5('0x14')]['sync'](this,_0x1ed234[_0xc8c5('0xd2')]);if(!_0x3fba98){return this[_0xc8c5('0x10')][_0xc8c5('0x2d')](_0x1ed234,_0xc8c5('0xd3'));}var _0x5d41ad=this;_0x406b43[_0xc8c5('0xd4')](function(_0x5cf672,_0x306ab3){Object[_0xc8c5('0xd5')](_0x5cf672)[_0xc8c5('0xd4')](function(_0x2fa9fe){_0x5d41ad[_0xc8c5('0x10')][_0xc8c5('0x9e')](util[_0xc8c5('0x59')](_0xc8c5('0xd6'),_0x3fba98,_0x306ab3,_0x2fa9fe),_0x5cf672[_0x2fa9fe]);});});this[_0xc8c5('0x10')][_0xc8c5('0x9e')](util[_0xc8c5('0x59')]('%s_ROWS_COUNT',_0x3fba98),_0x406b43['length']);return this[_0xc8c5('0x10')][_0xc8c5('0xa6')](util['format'](_0xc8c5('0xd7'),_0x3fba98));};AGIVertices[_0xc8c5('0x13')]['dial']=function(_0x2fa655){logger['debug'](util[_0xc8c5('0x59')]('Enter\x20in\x20DIAL\x20(%s)\x20block',_0x2fa655[_0xc8c5('0x3a')]));if(!this[_0xc8c5('0x87')](_0x2fa655[_0xc8c5('0xd8')])){return this[_0xc8c5('0x10')]['error'](_0x2fa655,_0xc8c5('0xd9'));}var _0x24214c=this[_0xc8c5('0x1e')][_0xc8c5('0x74')](this,_0x2fa655['sip_id']);if(!_0x24214c){return this[_0xc8c5('0x10')][_0xc8c5('0x2d')](_0x2fa655,_0xc8c5('0xda'));}var _0x4eddfa=this['channel'][_0xc8c5('0x5b')]('DIAL',[util[_0xc8c5('0x59')](_0xc8c5('0xdb'),_0x24214c),_0x2fa655[_0xc8c5('0x68')],_0x2fa655[_0xc8c5('0xdc')],_0x2fa655['url']]);if(_0x4eddfa[_0xc8c5('0xa1')]===-0x1){return _0x4eddfa;}return this[_0xc8c5('0x10')][_0xc8c5('0xa6')](util[_0xc8c5('0x59')](_0xc8c5('0xdd'),_0xc8c5('0xde')));};AGIVertices['prototype'][_0xc8c5('0xdf')]=function(_0x4e171b){logger['info'](util['format'](_0xc8c5('0xe0'),_0x4e171b['label']));if(!this[_0xc8c5('0x87')](_0x4e171b[_0xc8c5('0x7e')])){return this[_0xc8c5('0x10')][_0xc8c5('0xa6')](_0xc8c5('0xe1'));}if(!this[_0xc8c5('0x87')](_0x4e171b[_0xc8c5('0x63')])){return this[_0xc8c5('0x10')][_0xc8c5('0xa6')]('no\x20text\x20configured');}this[_0xc8c5('0x10')][_0xc8c5('0xe2')]=!![];this['createSquareDetailsReport'](_0x4e171b);this[_0xc8c5('0x45')](_0x4e171b['text'],'in');this[_0xc8c5('0x10')]['noop'](util[_0xc8c5('0x59')](_0xc8c5('0xe3'),_0x4e171b[_0xc8c5('0x63')]));var _0x4aeaa8=this[_0xc8c5('0x7d')][_0xc8c5('0x74')](this,_0x4e171b);if(_0x4aeaa8){for(var _0x25ad35 in _0x4aeaa8){if(_0x4aeaa8[_0xc8c5('0x95')](_0x25ad35)){this['channel'][_0xc8c5('0x9e')](util[_0xc8c5('0x59')](_0xc8c5('0xe4'),_0x25ad35[_0xc8c5('0x6d')]()),_0x4aeaa8[_0x25ad35]);}}this[_0xc8c5('0x45')](_0x4aeaa8[_0xc8c5('0xe5')],_0xc8c5('0xe6'));return this[_0xc8c5('0x10')]['noop'](util[_0xc8c5('0x59')](_0xc8c5('0xe7'),_0x4aeaa8[_0xc8c5('0xe5')]));}return this[_0xc8c5('0x10')][_0xc8c5('0x2d')](_0x4e171b,_0xc8c5('0xe8'));};AGIVertices['prototype'][_0xc8c5('0xe9')]=function(_0x5a1495){logger[_0xc8c5('0x2f')](util[_0xc8c5('0x59')](_0xc8c5('0xea'),_0x5a1495['label']));if(!this[_0xc8c5('0x87')](_0x5a1495['ndauth_url'])){return this[_0xc8c5('0x10')][_0xc8c5('0xa6')](_0xc8c5('0xeb'));}if(!this['isConfigured'](_0x5a1495['username'])){return this['channel']['noop'](_0xc8c5('0xec'));}if(!this[_0xc8c5('0x87')](_0x5a1495[_0xc8c5('0xed')])){return this[_0xc8c5('0x10')][_0xc8c5('0xa6')]('no\x20password\x20configured');}if(!this[_0xc8c5('0x87')](_0x5a1495[_0xc8c5('0xee')])){return this[_0xc8c5('0x10')][_0xc8c5('0xa6')]('no\x20text\x20configured');}this[_0xc8c5('0x10')][_0xc8c5('0xe2')]=!![];this['createSquareDetailsReport'](_0x5a1495);this[_0xc8c5('0x45')](_0x5a1495[_0xc8c5('0x63')],'in');this[_0xc8c5('0x10')][_0xc8c5('0xa6')](util[_0xc8c5('0x59')](_0xc8c5('0xef'),_0x5a1495[_0xc8c5('0x63')]));var _0x2fbd2a=this[_0xc8c5('0x80')][_0xc8c5('0x74')](this,_0x5a1495);if(_0x2fbd2a){for(var _0x1fc713 in _0x2fbd2a){if(_0x2fbd2a[_0xc8c5('0x95')](_0x1fc713)){this[_0xc8c5('0x10')][_0xc8c5('0x9e')](util[_0xc8c5('0x59')](_0xc8c5('0xf0'),_0x1fc713[_0xc8c5('0x6d')]()),_0x2fbd2a[_0x1fc713]);}}this['createSquareMessage'](_0x2fbd2a[_0xc8c5('0xe5')],'out');if(_0x2fbd2a['audiofile']){this[_0xc8c5('0x10')]['noop'](util[_0xc8c5('0x59')](_0xc8c5('0xf1'),_0x2fbd2a[_0xc8c5('0xf2')]));var _0x2ff07f=this['channel'][_0xc8c5('0xf3')](_0x2fbd2a[_0xc8c5('0xf2')]);try{fs[_0xc8c5('0xf4')](_0x2fbd2a[_0xc8c5('0xf2')]+'.wav');}catch(_0x419b56){logger['error'](_0x419b56);}return _0x2ff07f;}else{return this['channel'][_0xc8c5('0xa6')](util[_0xc8c5('0x59')](_0xc8c5('0xf5'),_0x2fbd2a[_0xc8c5('0xe5')]));}}return this[_0xc8c5('0x10')]['error'](_0x5a1495,_0xc8c5('0xf6'));};AGIVertices['prototype'][_0xc8c5('0xf7')]=function(_0x27a0c7){logger[_0xc8c5('0x2f')](util['format'](_0xc8c5('0xf8'),_0x27a0c7[_0xc8c5('0x3a')]));return this['channel'][_0xc8c5('0xa6')](_0xc8c5('0xf7'));};AGIVertices[_0xc8c5('0x13')]['ext_dial']=function(_0x377893){logger['info'](util['format'](_0xc8c5('0xf9'),_0x377893['label']));var _0x58d31d='';if(_0x377893[_0xc8c5('0xfa')]){if(!this['isConfigured'](_0x377893[_0xc8c5('0xfa')])){return this[_0xc8c5('0x10')][_0xc8c5('0x2d')](_0x377893,_0xc8c5('0xfb'));}else{var _0x4e5ffb=parseInt(_0x377893[_0xc8c5('0xfa')],0xa);if(isNaN(_0x4e5ffb)){_0x58d31d=_0x377893[_0xc8c5('0xfa')];}else{_0x58d31d=this[_0xc8c5('0x20')][_0xc8c5('0x74')](this,_0x377893[_0xc8c5('0xfa')]);if(!_0x58d31d){return this[_0xc8c5('0x10')][_0xc8c5('0x2d')](_0x377893,_0xc8c5('0xfc'));}}}}else if(_0x377893[_0xc8c5('0xfd')]){_0x58d31d=_0x377893[_0xc8c5('0xfd')];}else{return this[_0xc8c5('0x10')]['error'](_0x377893,_0xc8c5('0xfb'));}var _0x4a5383=this[_0xc8c5('0x10')]['exec'](_0xc8c5('0xde'),[util[_0xc8c5('0x59')](_0xc8c5('0xfe'),_0x58d31d,_0x377893[_0xc8c5('0x4b')]),_0x377893[_0xc8c5('0x68')],_0x377893[_0xc8c5('0xdc')],_0x377893[_0xc8c5('0x66')]]);if(_0x4a5383[_0xc8c5('0xa1')]===-0x1){return _0x4a5383;}return this[_0xc8c5('0x10')][_0xc8c5('0xa6')](util['format'](_0xc8c5('0xdd'),'DIAL'));};AGIVertices['prototype'][_0xc8c5('0xff')]=function(_0x211cd3){logger['info'](util[_0xc8c5('0x59')](_0xc8c5('0x100'),_0x211cd3['label']));return this['channel'][_0xc8c5('0xa6')](_0xc8c5('0xff'));};AGIVertices[_0xc8c5('0x13')][_0xc8c5('0xf')]=function(_0x25bebb){logger[_0xc8c5('0x2f')](util[_0xc8c5('0x59')](_0xc8c5('0x101'),_0x25bebb[_0xc8c5('0x3a')]));if(_0x25bebb['retry']===0x0){return this[_0xc8c5('0xa3')](_0x25bebb);}_0x25bebb['retry']-=0x1;if(!this[_0xc8c5('0x87')](_0x25bebb[_0xc8c5('0x102')])){return this[_0xc8c5('0x10')][_0xc8c5('0x2d')](_0x25bebb,'no\x20file\x20audio\x20selected');}var _0x36c070=this[_0xc8c5('0x103')]['sync'](this,_0x25bebb[_0xc8c5('0x102')]);if(!_0x36c070){return this[_0xc8c5('0x10')][_0xc8c5('0x2d')](_0x25bebb,_0xc8c5('0x104'));}if(!this[_0xc8c5('0x87')](_0x25bebb[_0xc8c5('0xd2')])){return this[_0xc8c5('0x10')][_0xc8c5('0x2d')]('no\x20variable\x20selected\x20for\x20the\x20result');}var _0x2aad71=this['channel'][_0xc8c5('0x105')](_0x36c070,_0x25bebb[_0xc8c5('0x106')],_0x25bebb[_0xc8c5('0x107')]);var _0x188883=_0x2aad71[_0xc8c5('0xa1')]?_0x2aad71[_0xc8c5('0xa1')][_0xc8c5('0x4f')]():'';logger[_0xc8c5('0x2f')](_0xc8c5('0x108'),JSON['stringify'](_0x2aad71));if(_0x2aad71['result']===-0x1){this[_0xc8c5('0x38')][_0xc8c5('0x74')](this,_0x25bebb,_0x188883);return _0x2aad71;}else if(_0x2aad71[_0xc8c5('0xa0')]===_0xc8c5('0x68')){_0x2aad71[_0xc8c5('0xa1')]=_0x188883[_0xc8c5('0x9b')]>=parseInt(_0x25bebb[_0xc8c5('0x109')])?'x':'i';}else{_0x2aad71[_0xc8c5('0xa1')]=_0x188883[_0xc8c5('0x9b')]>=parseInt(_0x25bebb[_0xc8c5('0x109')])&&_0x188883['length']<=parseInt(_0x25bebb[_0xc8c5('0x107')])?'x':'i';}var _0x482c31=this[_0xc8c5('0x14')]['sync'](this,_0x25bebb['variable_id']);if(!_0x482c31){return this[_0xc8c5('0x10')][_0xc8c5('0x2d')](_0x25bebb,_0xc8c5('0xd3'));}this[_0xc8c5('0x10')][_0xc8c5('0x9e')](_0x482c31,_0x188883);if(this[_0xc8c5('0x87')](_0x25bebb[_0xc8c5('0x10a')])){var _0x118b9d=parseInt(_0x25bebb[_0xc8c5('0x10a')],0xa);var _0x5dd233=rs[_0xc8c5('0x10b')]({'charset':'*','length':_0x118b9d});var _0x432fcc=_0x188883[_0xc8c5('0x9b')];if(_0x432fcc>0x0){if(_0x432fcc>_0x118b9d){this[_0xc8c5('0x38')]['sync'](this,_0x25bebb,_0x25bebb[_0xc8c5('0x10c')]===_0xc8c5('0x10d')?_0x5dd233+_0x188883[_0xc8c5('0x10e')](_0x118b9d):_0x188883[_0xc8c5('0x10e')](0x0,_0x432fcc-_0x118b9d)+_0x5dd233);}else{this['createSquareDetailsReport'][_0xc8c5('0x74')](this,_0x25bebb,rs[_0xc8c5('0x10b')]({'charset':'*','length':_0x432fcc}));}}else{this[_0xc8c5('0x38')]['sync'](this,_0x25bebb,'');}}else{this[_0xc8c5('0x38')][_0xc8c5('0x74')](this,_0x25bebb,_0x188883);}return _0x2aad71;};AGIVertices[_0xc8c5('0x13')][_0xc8c5('0x10f')]=function(_0x4c6d82){logger['info'](util[_0xc8c5('0x59')]('Enter\x20in\x20GETSECRETDIGITS\x20(%s)\x20block',_0x4c6d82['label']));return this[_0xc8c5('0xf')](_0x4c6d82);};AGIVertices[_0xc8c5('0x13')][_0xc8c5('0x110')]=function(_0x4fc648){logger[_0xc8c5('0x2f')](util['format'](_0xc8c5('0x111'),_0x4fc648[_0xc8c5('0x3a')]));this[_0xc8c5('0x38')][_0xc8c5('0x74')](this,_0x4fc648,_0x4fc648[_0xc8c5('0x112')]);return this[_0xc8c5('0x10')]['noop'](util['format'](_0xc8c5('0x113'),_0x4fc648[_0xc8c5('0x112')]));};AGIVertices[_0xc8c5('0x13')][_0xc8c5('0x114')]=function(_0x45777d){logger[_0xc8c5('0x2f')](util['format']('[AGI]\x20Enter\x20in\x20AWSPOLLY\x20(%s)\x20block',_0x45777d[_0xc8c5('0x3a')]));if(!this[_0xc8c5('0x87')](_0x45777d['aws_access_key_id'])||!this[_0xc8c5('0x87')](_0x45777d[_0xc8c5('0x8b')])){return this[_0xc8c5('0x10')][_0xc8c5('0xa6')](_0xc8c5('0x115'));}if(!this[_0xc8c5('0x87')](_0x45777d[_0xc8c5('0x63')])){return this[_0xc8c5('0x10')][_0xc8c5('0xa6')](_0xc8c5('0xa7'));}this[_0xc8c5('0x10')]['noop'](util['format'](_0xc8c5('0x116'),_0x45777d[_0xc8c5('0x63')]));var _0x1d1db6=this['awsPolly'][_0xc8c5('0x74')](this,_0x45777d);if(_0x1d1db6){this[_0xc8c5('0x10')]['noop'](util[_0xc8c5('0x59')](_0xc8c5('0x117'),_0x1d1db6));var _0x402f31=this[_0xc8c5('0x10')][_0xc8c5('0xf3')](_0x1d1db6);try{fs[_0xc8c5('0xf4')](_0x1d1db6+'.wav');}catch(_0x5c053d){logger[_0xc8c5('0x2d')](_0x5c053d);}return _0x402f31;}return this[_0xc8c5('0x10')][_0xc8c5('0x2d')](_0x45777d,_0xc8c5('0x118'));};AGIVertices[_0xc8c5('0x13')][_0xc8c5('0x119')]=function(_0x282af2){logger[_0xc8c5('0x2f')](util[_0xc8c5('0x59')](_0xc8c5('0x11a'),_0x282af2['label']));if(!this['isConfigured'](_0x282af2[_0xc8c5('0x8a')])||!this[_0xc8c5('0x87')](_0x282af2['aws_secret_access_key'])){return this['channel'][_0xc8c5('0xa6')](_0xc8c5('0x115'));}if(!this[_0xc8c5('0x87')](_0x282af2['aws_bot_name'])){return this[_0xc8c5('0x10')][_0xc8c5('0xa6')](_0xc8c5('0x11b'));}if(!this[_0xc8c5('0x87')](_0x282af2[_0xc8c5('0x63')])){return this[_0xc8c5('0x10')][_0xc8c5('0xa6')](_0xc8c5('0xa7'));}this['channel'][_0xc8c5('0xe2')]=!![];this['createSquareDetailsReport'](_0x282af2);this[_0xc8c5('0x45')](_0x282af2['text'],'in');this[_0xc8c5('0x10')][_0xc8c5('0xa6')](util[_0xc8c5('0x59')](_0xc8c5('0x11c'),_0x282af2['text']));var _0x282aea=this[_0xc8c5('0x8e')][_0xc8c5('0x74')](this,_0x282af2);if(_0x282aea){for(var _0x146e62 in _0x282aea){if(_0x282aea[_0xc8c5('0x95')](_0x146e62)&&_['isString'](_0x282aea[_0x146e62])){this[_0xc8c5('0x10')]['setVariable'](util[_0xc8c5('0x59')](_0xc8c5('0x11d'),_0x146e62[_0xc8c5('0x6d')]()),_0x282aea[_0x146e62]);}}if(_[_0xc8c5('0x4a')](_0x282aea[_0xc8c5('0x7a')])){return this[_0xc8c5('0x10')][_0xc8c5('0xa6')](_0xc8c5('0x11e'));}else{this[_0xc8c5('0x45')](_0x282aea[_0xc8c5('0x7a')],'out');return this[_0xc8c5('0x10')][_0xc8c5('0xa6')](util[_0xc8c5('0x59')](_0xc8c5('0x11f'),_0x282aea[_0xc8c5('0x7a')]));}}return this[_0xc8c5('0x10')][_0xc8c5('0x2d')](_0x282af2,'Amazon\x20Lex\x20is\x20unreachable');};AGIVertices[_0xc8c5('0x13')][_0xc8c5('0x120')]=function(_0x142348){logger['info'](util['format'](_0xc8c5('0x121'),_0x142348[_0xc8c5('0x3a')],_0x142348[_0xc8c5('0x68')]));if(!this['isConfigured'](_0x142348[_0xc8c5('0x7e')])){return this[_0xc8c5('0x10')][_0xc8c5('0xa6')](_0xc8c5('0xe1'));}var _0x3a6bf8='wav';var _0x57e7a4=util[_0xc8c5('0x59')](_0xc8c5('0x122'),FILES_PATH,rs[_0xc8c5('0x10b')](0x4));var _0x5201e0=util[_0xc8c5('0x59')]('%s.%s',_0x57e7a4,_0x3a6bf8);var _0x103622=!![];if(_0x142348[_0xc8c5('0x123')]===_0xc8c5('0x124')){_0x103622=![];}var _0x3959c6=this['channel'][_0xc8c5('0x125')](_0x57e7a4,_0x3a6bf8,_0x142348[_0xc8c5('0x126')],_0x142348[_0xc8c5('0x68')],undefined,_0x103622);if(_0x3959c6[_0xc8c5('0xa1')]!==-0x1){this[_0xc8c5('0x10')]['noop'](util[_0xc8c5('0x59')](_0xc8c5('0x127'),_0x5201e0));var _0x240942=this[_0xc8c5('0x8f')][_0xc8c5('0x74')](this,_0x142348,_0x5201e0);if(_0x240942){for(var _0x263bc4 in _0x240942){if(_0x240942['hasOwnProperty'](_0x263bc4)){this[_0xc8c5('0x10')][_0xc8c5('0x9e')](util['format'](_0xc8c5('0x128'),_0x263bc4[_0xc8c5('0x6d')]()),_0x240942[_0x263bc4]);}}return this['channel'][_0xc8c5('0xa6')](util['format'](_0xc8c5('0x129'),JSON[_0xc8c5('0x78')](_0x240942)));}}return _0x3959c6;};AGIVertices['prototype'][_0xc8c5('0x12a')]=function(_0x5cd21b){logger[_0xc8c5('0x2f')](util[_0xc8c5('0x59')]('Enter\x20in\x20TILDEASR\x20(%s)\x20block',_0x5cd21b[_0xc8c5('0x3a')]));if(!this[_0xc8c5('0x87')](_0x5cd21b[_0xc8c5('0x92')])){return this[_0xc8c5('0x10')][_0xc8c5('0xa6')]('no\x20appid\x20configured');}if(!this[_0xc8c5('0x87')](_0x5cd21b['appsecret'])){return this[_0xc8c5('0x10')]['noop']('no\x20appsecret\x20configured');}var _0x2fe533=_0xc8c5('0x12b');var _0xbd6adb=util[_0xc8c5('0x59')]('%s/recordings/%s',FILES_PATH,rs['generate'](0x4));var _0x26ae0c=util[_0xc8c5('0x59')](_0xc8c5('0x9d'),_0xbd6adb,_0x2fe533);var _0x4bdc91=!![];if(_0x5cd21b[_0xc8c5('0x123')]==='NOBEEP'){_0x4bdc91=![];}var _0xd93b36=this['channel'][_0xc8c5('0x125')](_0xbd6adb,_0x2fe533,_0x5cd21b[_0xc8c5('0x126')],_0x5cd21b[_0xc8c5('0x68')],undefined,_0x4bdc91);if(_0xd93b36[_0xc8c5('0xa1')]!==-0x1){this['channel']['noop'](util[_0xc8c5('0x59')](_0xc8c5('0x12c'),_0x26ae0c));var _0x2f0441=this['tildeASR'][_0xc8c5('0x74')](this,_0x5cd21b,_0x26ae0c);if(_0x2f0441){for(var _0x5cf28e in _0x2f0441){if(_0x2f0441['hasOwnProperty'](_0x5cf28e)){this['channel'][_0xc8c5('0x9e')](util[_0xc8c5('0x59')](_0xc8c5('0x12d'),_0x5cf28e[_0xc8c5('0x6d')]()),_0x2f0441[_0x5cf28e]);}}return this['channel'][_0xc8c5('0xa6')](util[_0xc8c5('0x59')](_0xc8c5('0x12e'),JSON[_0xc8c5('0x78')](_0x2f0441)));}}return _0xd93b36;};AGIVertices[_0xc8c5('0x13')][_0xc8c5('0x12f')]=function(_0x11e848){logger[_0xc8c5('0x2f')](util[_0xc8c5('0x59')](_0xc8c5('0x130'),_0x11e848[_0xc8c5('0x3a')]));return this[_0xc8c5('0x10')][_0xc8c5('0x131')](_0x11e848[_0xc8c5('0x132')],_0x11e848[_0xc8c5('0x40')],_0x11e848['priority']);};AGIVertices['prototype'][_0xc8c5('0x133')]=function(_0x14073b){logger[_0xc8c5('0x2f')](util['format'](_0xc8c5('0x134'),_0x14073b[_0xc8c5('0x3a')]));if(!this[_0xc8c5('0x87')](_0x14073b[_0xc8c5('0x135')])){return this[_0xc8c5('0x10')][_0xc8c5('0x2d')](_0x14073b,_0xc8c5('0x136'));}try{var _0x364b70=eval(_0x14073b[_0xc8c5('0x135')])?_0xc8c5('0x137'):_0xc8c5('0x138');this[_0xc8c5('0x10')]['noop'](util[_0xc8c5('0x59')]('EVAL\x20CONDITION\x20%s\x20%s',_0x14073b[_0xc8c5('0x135')],_0x364b70));return{'code':0xc8,'result':_0x364b70};}catch(_0x498204){return{'code':0xc8,'result':_0xc8c5('0x138')};}};AGIVertices['prototype']['gotoiftime']=function(_0x490b26){logger[_0xc8c5('0x2f')](util[_0xc8c5('0x59')](_0xc8c5('0x139'),_0x490b26[_0xc8c5('0x3a')]));if(!this[_0xc8c5('0x87')](_0x490b26['interval_id'])){return this[_0xc8c5('0x10')]['error'](_0x490b26,_0xc8c5('0x13a'));}var _0x2cf644=this['getIntervals'][_0xc8c5('0x74')](this,_0x490b26[_0xc8c5('0x13b')]);if(!_0x2cf644){return this[_0xc8c5('0x10')][_0xc8c5('0x2d')](_0x490b26,_0xc8c5('0x13c'));}for(var _0x5bbede=0x0;_0x5bbede<_0x2cf644['length'];_0x5bbede+=0x1){var _0x4218fb=this[_0xc8c5('0x10')]['getVariable'](util[_0xc8c5('0x59')]('IFTIME(%s?true:false)',_0x2cf644[_0x5bbede]));if(_0x4218fb['result']===-0x1){return _0x4218fb;}logger['info'](util[_0xc8c5('0x59')](_0xc8c5('0x13d'),_0x2cf644[_0x5bbede],_0x4218fb[_0xc8c5('0xa0')]));if(_0x4218fb[_0xc8c5('0xa0')]==='true'){logger['info'](util['format'](_0xc8c5('0x13d'),_0x2cf644[_0x5bbede],_0xc8c5('0x137')));this[_0xc8c5('0x10')][_0xc8c5('0xa6')](util[_0xc8c5('0x59')]('IFTIME\x20%s\x20%s',_0x2cf644[_0x5bbede],'true'));return{'code':0xc8,'result':_0xc8c5('0x137')};}else{logger['info'](util['format'](_0xc8c5('0x13d'),_0x2cf644[_0x5bbede],_0xc8c5('0x138')));this[_0xc8c5('0x10')][_0xc8c5('0xa6')](util[_0xc8c5('0x59')](_0xc8c5('0x13d'),_0x2cf644[_0x5bbede],_0xc8c5('0x138')));}}return{'code':0xc8,'result':_0xc8c5('0x138')};};AGIVertices['prototype'][_0xc8c5('0x13e')]=function(_0xcb4209){logger[_0xc8c5('0x2f')](util[_0xc8c5('0x59')]('Enter\x20in\x20HANGUP\x20(%s)\x20block',_0xcb4209['label']));return this[_0xc8c5('0x10')]['hangup']();};AGIVertices[_0xc8c5('0x13')]['ispeechasr']=function(_0x653a09){logger[_0xc8c5('0x2f')](util[_0xc8c5('0x59')](_0xc8c5('0x13f'),_0x653a09[_0xc8c5('0x3a')]));if(!this[_0xc8c5('0x87')](_0x653a09[_0xc8c5('0x7e')])){return this[_0xc8c5('0x10')][_0xc8c5('0xa6')](_0xc8c5('0xe1'));}var _0x291168=_0xc8c5('0x12b');var _0x93d3fb=util['format'](_0xc8c5('0x122'),FILES_PATH,rs['generate'](0x4));var _0x43df1f=util['format'](_0xc8c5('0x9d'),_0x93d3fb,_0x291168);var _0x5ad18b=!![];if(_0x653a09[_0xc8c5('0x123')]===_0xc8c5('0x124')){_0x5ad18b=![];}var _0x1062bb=this['channel'][_0xc8c5('0x125')](_0x93d3fb,_0x291168,_0x653a09['intKey'],_0x653a09[_0xc8c5('0x68')],undefined,_0x5ad18b);if(_0x1062bb[_0xc8c5('0xa1')]!==-0x1){this[_0xc8c5('0x10')]['noop'](util['format']('ispeech\x20%s\x20file\x20created',_0x43df1f));var _0x4c3c56=this['ispeechASR'][_0xc8c5('0x74')](this,_0x653a09,_0x43df1f);if(_0x4c3c56){for(var _0x44d269 in _0x4c3c56){if(_0x4c3c56[_0xc8c5('0x95')](_0x44d269)){this[_0xc8c5('0x10')][_0xc8c5('0x9e')](util[_0xc8c5('0x59')](_0xc8c5('0x140'),_0x44d269[_0xc8c5('0x6d')]()),_0x4c3c56[_0x44d269]);}}return this[_0xc8c5('0x10')][_0xc8c5('0xa6')](util[_0xc8c5('0x59')](_0xc8c5('0x141'),JSON['stringify'](_0x4c3c56)));}}return _0x1062bb;};AGIVertices[_0xc8c5('0x13')][_0xc8c5('0x142')]=function(_0x1a481a){logger['info'](util[_0xc8c5('0x59')](_0xc8c5('0x143'),_0x1a481a[_0xc8c5('0x3a')]));if(!this['isConfigured'](_0x1a481a[_0xc8c5('0x7e')])){return this['channel'][_0xc8c5('0xa6')](_0xc8c5('0xe1'));}if(!this[_0xc8c5('0x87')](_0x1a481a['text'])){return this['channel'][_0xc8c5('0xa6')](_0xc8c5('0xa7'));}this[_0xc8c5('0x10')][_0xc8c5('0xa6')](util[_0xc8c5('0x59')]('Trying\x20ispeech\x20TTS\x20%s',_0x1a481a[_0xc8c5('0x63')]));var _0x5126ff=this['ispeechTTS']['sync'](this,_0x1a481a);if(_0x5126ff){this[_0xc8c5('0x10')][_0xc8c5('0xa6')](util[_0xc8c5('0x59')](_0xc8c5('0x144'),_0x5126ff));var _0x3ea5f6=this[_0xc8c5('0x10')]['streamFile'](_0x5126ff,_0x1a481a[_0xc8c5('0x126')]);try{fs[_0xc8c5('0xf4')](_0x5126ff+_0xc8c5('0x145'));}catch(_0x2e9042){logger[_0xc8c5('0x2d')](_0x2e9042);}return _0x3ea5f6;}return this[_0xc8c5('0x10')][_0xc8c5('0x2d')](_0x1a481a,'ispeech\x20TTS\x20is\x20unreachable');};AGIVertices[_0xc8c5('0x13')][_0xc8c5('0x146')]=function(_0x5bc83e){logger[_0xc8c5('0x2f')](util['format']('Enter\x20in\x20LOGIN\x20(%s)\x20block',_0x5bc83e[_0xc8c5('0x3a')]));if(!this[_0xc8c5('0x87')](_0x5bc83e[_0xc8c5('0x147')])){return this[_0xc8c5('0x10')][_0xc8c5('0x2d')](_0x5bc83e,'no\x20find\x20by\x20configured');}logger['info'](util[_0xc8c5('0x59')](_0xc8c5('0x148'),this['channel'][_0xc8c5('0x3e')],_0x5bc83e['findBy']));var _0x15fe25=this['agentLogin'][_0xc8c5('0x74')](this,_0x5bc83e['findBy']);if(_0x15fe25){logger['info'](util[_0xc8c5('0x59')](_0xc8c5('0x149'),this[_0xc8c5('0x10')]['callerid'],_0x5bc83e['findBy']));this[_0xc8c5('0x10')][_0xc8c5('0xa6')](util[_0xc8c5('0x59')](_0xc8c5('0x149'),this['channel'][_0xc8c5('0x3e')],_0x5bc83e[_0xc8c5('0x147')]));return{'code':0xc8,'result':_0xc8c5('0x14a')};}else{logger[_0xc8c5('0x2f')](util[_0xc8c5('0x59')](_0xc8c5('0x14b'),this['channel'][_0xc8c5('0x3e')],_0x5bc83e[_0xc8c5('0x147')]));this[_0xc8c5('0x10')][_0xc8c5('0xa6')](util[_0xc8c5('0x59')]('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this[_0xc8c5('0x10')][_0xc8c5('0x3e')],_0x5bc83e[_0xc8c5('0x147')]));return{'code':0xc8,'result':_0xc8c5('0x14c')};}};AGIVertices[_0xc8c5('0x13')][_0xc8c5('0x14d')]=function(_0x3f9020){logger[_0xc8c5('0x2f')](util[_0xc8c5('0x59')](_0xc8c5('0x14e'),_0x3f9020[_0xc8c5('0x3a')]));if(!this[_0xc8c5('0x87')](_0x3f9020[_0xc8c5('0x147')])){return this['channel'][_0xc8c5('0x2d')](_0x3f9020,_0xc8c5('0x14f'));}logger[_0xc8c5('0x2f')](util[_0xc8c5('0x59')](_0xc8c5('0x148'),this[_0xc8c5('0x10')][_0xc8c5('0x3e')],_0x3f9020[_0xc8c5('0x147')]));var _0x3bd9e0=this[_0xc8c5('0x56')][_0xc8c5('0x74')](this,_0x3f9020[_0xc8c5('0x147')]);if(_0x3bd9e0){logger[_0xc8c5('0x2f')](util[_0xc8c5('0x59')](_0xc8c5('0x149'),this[_0xc8c5('0x10')][_0xc8c5('0x3e')],_0x3f9020[_0xc8c5('0x147')]));this[_0xc8c5('0x10')][_0xc8c5('0xa6')](util[_0xc8c5('0x59')](_0xc8c5('0x149'),this[_0xc8c5('0x10')][_0xc8c5('0x3e')],_0x3f9020['findBy']));return{'code':0xc8,'result':_0xc8c5('0x14a')};}else{logger['info'](util[_0xc8c5('0x59')](_0xc8c5('0x14b'),this[_0xc8c5('0x10')]['callerid'],_0x3f9020[_0xc8c5('0x147')]));this['channel'][_0xc8c5('0xa6')](util[_0xc8c5('0x59')](_0xc8c5('0x14b'),this['channel'][_0xc8c5('0x3e')],_0x3f9020[_0xc8c5('0x147')]));return{'code':0xc8,'result':'failure'};}};AGIVertices['prototype'][_0xc8c5('0x150')]=function(_0x56f912){logger['info'](util[_0xc8c5('0x59')](_0xc8c5('0x151'),_0x56f912[_0xc8c5('0x3a')]));if(!this[_0xc8c5('0x87')](_0x56f912[_0xc8c5('0x152')])){return this['channel'][_0xc8c5('0x2d')](_0x56f912,'no\x20operation\x20configured');}this[_0xc8c5('0x10')]['noop'](util[_0xc8c5('0x59')]('math\x20%s',_0x56f912[_0xc8c5('0x152')]));var _0x5d4891=eval(_0x56f912[_0xc8c5('0x152')]);if(!this[_0xc8c5('0x87')](_0x56f912[_0xc8c5('0xd2')])){return this[_0xc8c5('0x10')][_0xc8c5('0xa6')](_0xc8c5('0xd1'));}var _0x369e49=this[_0xc8c5('0x14')][_0xc8c5('0x74')](this,_0x56f912[_0xc8c5('0xd2')]);if(!_0x369e49){return this[_0xc8c5('0x10')][_0xc8c5('0x2d')](_0x56f912,_0xc8c5('0xd3'));}if(_[_0xc8c5('0x9a')](_0x5d4891)){var _0x43bb11=this;_0x5d4891['forEach'](function(_0x1b716d,_0x49b904){_0x43bb11[_0xc8c5('0x10')][_0xc8c5('0x9e')](util[_0xc8c5('0x59')]('%s[%s]',_0x369e49,_0x49b904),_0x1b716d);});return this[_0xc8c5('0x10')]['noop'](util[_0xc8c5('0x59')](_0xc8c5('0x153'),_0x369e49));}else{return this['channel']['setVariable'](_0x369e49,_0x5d4891);}};AGIVertices[_0xc8c5('0x13')]['menu']=function(_0x76a6ea){logger[_0xc8c5('0x2f')](util['format'](_0xc8c5('0x154'),_0x76a6ea[_0xc8c5('0x3a')]));if(_0x76a6ea[_0xc8c5('0x155')]===0x0){return this[_0xc8c5('0xa3')](_0x76a6ea);}_0x76a6ea[_0xc8c5('0x155')]-=0x1;if(!this[_0xc8c5('0x87')](_0x76a6ea['file_id'])){return this[_0xc8c5('0x10')]['error'](_0x76a6ea,_0xc8c5('0x156'));}var _0x34b359=this[_0xc8c5('0x103')][_0xc8c5('0x74')](this,_0x76a6ea[_0xc8c5('0x102')]);if(!_0x34b359){return this[_0xc8c5('0x10')][_0xc8c5('0x2d')](_0x76a6ea,_0xc8c5('0x104'));}var _0x2f6485=this[_0xc8c5('0x10')][_0xc8c5('0x105')](_0x34b359,_0x76a6ea[_0xc8c5('0x106')],_0x76a6ea['digit']);var _0x51a60a=_0x2f6485['result'];if(_0x2f6485[_0xc8c5('0xa1')]===-0x1){this[_0xc8c5('0x38')][_0xc8c5('0x74')](this,_0x76a6ea,'-1');return _0x2f6485;}else if(_0x2f6485['extra']==='timeout'){_0x2f6485[_0xc8c5('0xa1')]=_0x2f6485[_0xc8c5('0xa1')][_0xc8c5('0x9b')]>0x0?_0x2f6485['result']:'t';}else if(_[_0xc8c5('0x47')](_0x2f6485[_0xc8c5('0xa1')])){_0x2f6485[_0xc8c5('0xa1')]='#';_0x51a60a='#';}if(!this[_0xc8c5('0x87')](_0x76a6ea[_0xc8c5('0xd2')])){this[_0xc8c5('0x10')][_0xc8c5('0xa6')](_0xc8c5('0xd1'));}else{var _0x45c13b=this[_0xc8c5('0x14')][_0xc8c5('0x74')](this,_0x76a6ea[_0xc8c5('0xd2')]);if(!_0x45c13b){return this['channel'][_0xc8c5('0x2d')](_0x76a6ea,'no\x20variable\x20found');}this[_0xc8c5('0x10')][_0xc8c5('0x9e')](_0x45c13b,_0x51a60a);}this[_0xc8c5('0x38')][_0xc8c5('0x74')](this,_0x76a6ea,_0x51a60a);return _0x2f6485;};AGIVertices['prototype']['noop']=function(_0x195d99){logger[_0xc8c5('0x2f')](util['format'](_0xc8c5('0x157'),_0x195d99[_0xc8c5('0x3a')]));return this[_0xc8c5('0x10')][_0xc8c5('0xa6')](_0x195d99[_0xc8c5('0x158')]||_0x195d99[_0xc8c5('0x3a')]);};AGIVertices[_0xc8c5('0x13')]['pause']=function(_0x33ac90){logger[_0xc8c5('0x2f')](util['format'](_0xc8c5('0x159'),_0x33ac90['label']));if(!this[_0xc8c5('0x87')](_0x33ac90[_0xc8c5('0x147')])){return this[_0xc8c5('0x10')][_0xc8c5('0x2d')](_0x33ac90,_0xc8c5('0x14f'));}logger[_0xc8c5('0x2f')](util[_0xc8c5('0x59')](_0xc8c5('0x148'),this['channel'][_0xc8c5('0x3e')],_0x33ac90[_0xc8c5('0x147')]));var _0x11a93b=this[_0xc8c5('0x51')][_0xc8c5('0x74')](this,_0x33ac90[_0xc8c5('0x15a')]);var _0x243106=this[_0xc8c5('0x53')]['sync'](this,_0x33ac90['findBy'],_0x11a93b);if(_0x243106){logger[_0xc8c5('0x2f')](util[_0xc8c5('0x59')](_0xc8c5('0x149'),this[_0xc8c5('0x10')][_0xc8c5('0x3e')],_0x33ac90[_0xc8c5('0x147')]));this['channel'][_0xc8c5('0xa6')](util[_0xc8c5('0x59')](_0xc8c5('0x149'),this['channel'][_0xc8c5('0x3e')],_0x33ac90['findBy']));return{'code':0xc8,'result':_0xc8c5('0x14a')};}else{logger[_0xc8c5('0x2f')](util[_0xc8c5('0x59')](_0xc8c5('0x14b'),this['channel'][_0xc8c5('0x3e')],_0x33ac90[_0xc8c5('0x147')]));this[_0xc8c5('0x10')][_0xc8c5('0xa6')](util[_0xc8c5('0x59')](_0xc8c5('0x149'),this[_0xc8c5('0x10')]['callerid'],_0x33ac90[_0xc8c5('0x147')]));return{'code':0xc8,'result':_0xc8c5('0x14c')};}};AGIVertices[_0xc8c5('0x13')]['playback']=function(_0x6f7f37){logger['info'](util[_0xc8c5('0x59')]('Enter\x20in\x20PLAYBACK\x20(%s)\x20block',_0x6f7f37[_0xc8c5('0x3a')]));if(!this[_0xc8c5('0x87')](_0x6f7f37[_0xc8c5('0x102')])){return this['channel'][_0xc8c5('0x2d')](_0x6f7f37,_0xc8c5('0x156'));}var _0x2eab39=this['getSound'][_0xc8c5('0x74')](this,_0x6f7f37[_0xc8c5('0x102')]);if(!_0x2eab39){return this[_0xc8c5('0x10')]['error'](_0x6f7f37,'no\x20file\x20audio\x20found');}var _0x5c42d0=this['channel'][_0xc8c5('0x5b')](_0xc8c5('0x15b'),[_0x2eab39,_0x6f7f37[_0xc8c5('0xdc')]]);if(_0x5c42d0[_0xc8c5('0xa1')]===-0x1){return _0x5c42d0;}return this[_0xc8c5('0x10')][_0xc8c5('0xa6')](util['format'](_0xc8c5('0xc0'),_0xc8c5('0x15b'),_0x2eab39));};AGIVertices[_0xc8c5('0x13')][_0xc8c5('0x15c')]=function(_0x173eac){logger[_0xc8c5('0x2f')](util[_0xc8c5('0x59')](_0xc8c5('0x15d'),_0x173eac[_0xc8c5('0x3a')]));if(!this[_0xc8c5('0x87')](_0x173eac[_0xc8c5('0x15e')])){return this[_0xc8c5('0x10')][_0xc8c5('0x2d')](_0x173eac,'no\x20queue\x20selected');}var _0x456256='';var _0x2b9379=parseInt(_0x173eac[_0xc8c5('0x15e')],0xa);if(isNaN(_0x2b9379)){_0x456256=_0x173eac[_0xc8c5('0x15e')];}else{_0x456256=this[_0xc8c5('0x19')]['sync'](this,_0x173eac[_0xc8c5('0x15e')]);if(!_0x456256){return this['channel'][_0xc8c5('0x2d')](_0x173eac,'no\x20queue\x20found');}}var _0x11afc5='';if(this[_0xc8c5('0x87')](_0x173eac[_0xc8c5('0x102')])){var _0x37995d=this[_0xc8c5('0x103')][_0xc8c5('0x74')](this,_0x173eac[_0xc8c5('0x102')]);if(_0x37995d){_0x11afc5=_0x37995d;}}this[_0xc8c5('0x38')]['sync'](this,_0x173eac,_0x456256);if(_0x173eac['opts']['indexOf']('x')<0x0){_0x173eac[_0xc8c5('0xdc')]+='x';}if(_0x173eac[_0xc8c5('0xdc')][_0xc8c5('0x15f')]('X')<0x0){_0x173eac[_0xc8c5('0xdc')]+='X';}this[_0xc8c5('0x10')][_0xc8c5('0x9e')](_0xc8c5('0x160'),_0x456256?_0x456256[_0xc8c5('0x161')]():'');var _0x3d1559=this[_0xc8c5('0x10')][_0xc8c5('0x5b')](_0xc8c5('0x162'),[_0x456256,_0x173eac['opts'],_0x173eac[_0xc8c5('0x66')],_0x11afc5,_0x173eac['timeout'],_0x173eac['agi'],_0x173eac[_0xc8c5('0x163')],_0x173eac[_0xc8c5('0x164')],'',_0x173eac[_0xc8c5('0x165')]]);if(_0x3d1559[_0xc8c5('0xa1')]===-0x1){return _0x3d1559;}return this[_0xc8c5('0x10')]['noop'](util['format'](_0xc8c5('0xc0'),_0xc8c5('0x162'),_0x456256));};AGIVertices[_0xc8c5('0x13')][_0xc8c5('0x166')]=function(_0x18e549){logger[_0xc8c5('0x2f')](util[_0xc8c5('0x59')]('Enter\x20in\x20RECORD\x20(%s)\x20block',_0x18e549[_0xc8c5('0x3a')]));var _0xd75e38=_0x18e549[_0xc8c5('0x167')]||'wav';var _0x48b79c=util[_0xc8c5('0x59')](_0xc8c5('0x168'),this[_0xc8c5('0x10')][_0xc8c5('0x39')],rs[_0xc8c5('0x10b')](0x5));var _0x54a993=util[_0xc8c5('0x59')](_0xc8c5('0x169'),FILES_PATH,_0x48b79c,_0xd75e38);var _0x515403=util[_0xc8c5('0x59')](_0xc8c5('0x122'),FILES_PATH,_0x48b79c);this['createSquareRecording'][_0xc8c5('0x74')](this,_0x18e549,_0x48b79c,_0x54a993);this[_0xc8c5('0x10')][_0xc8c5('0x9e')](_0xc8c5('0x16a'),_0x48b79c);logger[_0xc8c5('0x2f')](_0xc8c5('0x16b'),_0x515403,_0xd75e38,_0x18e549['escape_digits'],_0x18e549['timeout']);return this[_0xc8c5('0x10')][_0xc8c5('0x125')](_0x515403,_0xd75e38,_0x18e549['escape_digits'],_0x18e549[_0xc8c5('0x68')],undefined,!![]);};AGIVertices[_0xc8c5('0x13')]['restapi']=function(_0x459e80){logger[_0xc8c5('0x2f')](util['format'](_0xc8c5('0x16c'),_0x459e80[_0xc8c5('0x3a')]));if(!this[_0xc8c5('0x87')](_0x459e80[_0xc8c5('0x66')])){return this[_0xc8c5('0x10')][_0xc8c5('0xa6')](_0xc8c5('0x16d'));}var _0x1aa6fb=this[_0xc8c5('0x65')][_0xc8c5('0x74')](this,_0x459e80);logger[_0xc8c5('0x2f')](util[_0xc8c5('0x59')](_0xc8c5('0x16e'),util[_0xc8c5('0x16f')](_0x1aa6fb,{'showHidden':![],'depth':null})));if(!this[_0xc8c5('0x87')](_0x459e80['variable_id'])){return this[_0xc8c5('0x10')][_0xc8c5('0xa6')](_0xc8c5('0x170'));}var _0x5aa7c8=this[_0xc8c5('0x14')][_0xc8c5('0x74')](this,_0x459e80[_0xc8c5('0xd2')]);if(!_0x5aa7c8){return this[_0xc8c5('0x10')]['error'](_0x459e80,'no\x20variable\x20found');}this[_0xc8c5('0x10')][_0xc8c5('0x9e')](util['format'](_0xc8c5('0x171'),_0x5aa7c8),_0x1aa6fb[_0xc8c5('0x79')]?_0x1aa6fb['statusCode']:_0xc8c5('0x172'));this[_0xc8c5('0x10')][_0xc8c5('0x9e')](util[_0xc8c5('0x59')](_0xc8c5('0x173'),_0x5aa7c8),_0x1aa6fb[_0xc8c5('0x174')]?_0x1aa6fb['statusMessage']:'OK');if(_0x1aa6fb[_0xc8c5('0x6e')]){try{this[_0xc8c5('0x9c')](_0x1aa6fb[_0xc8c5('0x6e')],_0x5aa7c8);}catch(_0x275bec){logger[_0xc8c5('0x2d')](util['format'](_0xc8c5('0x175'),_0x5aa7c8));}}return this[_0xc8c5('0x10')][_0xc8c5('0xa6')](util['format']('variable\x20%s\x20set',_0x5aa7c8));};AGIVertices['prototype'][_0xc8c5('0x176')]=function(_0x3911f5){logger['info'](util[_0xc8c5('0x59')]('Enter\x20in\x20SAYDIGITS\x20(%s)\x20block',_0x3911f5[_0xc8c5('0x3a')]));return this[_0xc8c5('0x10')][_0xc8c5('0x177')](_0x3911f5[_0xc8c5('0x178')][_0xc8c5('0x5d')](/\s+/g,''),_0x3911f5[_0xc8c5('0x179')]);};AGIVertices['prototype']['saynumber']=function(_0x2410fc){logger[_0xc8c5('0x2f')](util[_0xc8c5('0x59')](_0xc8c5('0x17a'),_0x2410fc[_0xc8c5('0x3a')]));return this[_0xc8c5('0x10')][_0xc8c5('0x17b')](_0x2410fc[_0xc8c5('0x69')][_0xc8c5('0x5d')](/\s+/g,''),_0x2410fc[_0xc8c5('0x179')]);};AGIVertices[_0xc8c5('0x13')]['sayphonetic']=function(_0x2bd57c){logger[_0xc8c5('0x2f')](util[_0xc8c5('0x59')](_0xc8c5('0x17c'),_0x2bd57c[_0xc8c5('0x3a')]));return this[_0xc8c5('0x10')]['sayPhonetic'](_0x2bd57c[_0xc8c5('0x63')],_0x2bd57c[_0xc8c5('0x179')]);};AGIVertices[_0xc8c5('0x13')][_0xc8c5('0x17d')]=function(_0x5d3d6a){logger[_0xc8c5('0x2f')](util[_0xc8c5('0x59')](_0xc8c5('0x17e'),_0x5d3d6a[_0xc8c5('0x3a')]));if(!this[_0xc8c5('0x87')](_0x5d3d6a['account_id'])){return this[_0xc8c5('0x10')][_0xc8c5('0xa6')](_0xc8c5('0x17f'));}var _0x14e25a=this[_0xc8c5('0x23')][_0xc8c5('0x74')](this,_0x5d3d6a['account_id']);if(!_0x14e25a||!_0x14e25a[_0xc8c5('0x180')]){return this[_0xc8c5('0x10')][_0xc8c5('0x2d')](_0x5d3d6a,_0xc8c5('0x181'));}var _0x405360={'from':util[_0xc8c5('0x59')](_0xc8c5('0x182'),_0x14e25a['name'],_0x14e25a['email']||_0x14e25a[_0xc8c5('0x180')][_0xc8c5('0x183')]),'to':_0x5d3d6a['to']||'','cc':_0x5d3d6a['cc']||'','bcc':_0x5d3d6a[_0xc8c5('0x184')]||'','subject':_0x5d3d6a[_0xc8c5('0x185')],'html':_0x5d3d6a[_0xc8c5('0x63')],'text':_0x5d3d6a[_0xc8c5('0x63')]};var _0x4310e8={'tls':{'rejectUnauthorized':![]}};if(_0x14e25a[_0xc8c5('0x180')]['service']){_0x4310e8[_0xc8c5('0x186')]=_0x14e25a[_0xc8c5('0x180')][_0xc8c5('0x186')];}else{_0x4310e8[_0xc8c5('0x187')]=_0x14e25a[_0xc8c5('0x180')][_0xc8c5('0x187')];_0x4310e8['port']=_0x14e25a['Smtp'][_0xc8c5('0x188')];_0x4310e8[_0xc8c5('0x189')]=_0x14e25a[_0xc8c5('0x180')][_0xc8c5('0x189')];}if(_0x14e25a[_0xc8c5('0x180')][_0xc8c5('0x18a')]){_0x4310e8[_0xc8c5('0x18b')]={'user':_0x14e25a[_0xc8c5('0x180')][_0xc8c5('0x183')],'pass':_0x14e25a[_0xc8c5('0x180')][_0xc8c5('0x18c')]};}if(this[_0xc8c5('0x87')](_0x5d3d6a['template_id'])){}logger[_0xc8c5('0x18d')]('sendMail\x20message',JSON['stringify'](_0x405360));this[_0xc8c5('0x38')][_0xc8c5('0x74')](this,_0x5d3d6a,_0x5d3d6a[_0xc8c5('0x18e')]);this[_0xc8c5('0x10')][_0xc8c5('0xa6')](util['format'](_0xc8c5('0x18f'),_0x14e25a['name']));this[_0xc8c5('0x190')][_0xc8c5('0x74')](this,_0x4310e8,_0x405360);return this[_0xc8c5('0x10')][_0xc8c5('0xa6')](_0xc8c5('0x191'));};AGIVertices[_0xc8c5('0x13')][_0xc8c5('0x192')]=function(_0xfd2117){logger[_0xc8c5('0x2f')](util[_0xc8c5('0x59')](_0xc8c5('0x193'),_0xfd2117['label']));return this[_0xc8c5('0x10')][_0xc8c5('0xa6')]('SENDFAX\x20block\x20not\x20implemented');};AGIVertices[_0xc8c5('0x13')][_0xc8c5('0x194')]=function(_0x218235){logger[_0xc8c5('0x2f')](util[_0xc8c5('0x59')](_0xc8c5('0x195'),_0x218235['label']));if(!this[_0xc8c5('0x87')](_0x218235[_0xc8c5('0x196')])){return this['channel'][_0xc8c5('0xa6')](_0xc8c5('0x197'));}var _0x2e7d90=this['getSmsAccount'][_0xc8c5('0x74')](this,_0x218235['sms_account_id']);if(!_0x2e7d90){return this[_0xc8c5('0x10')][_0xc8c5('0x2d')](_0x218235,_0xc8c5('0x198'));}var _0x957e84={'body':_0x218235['sms_text'],'phone':_0x218235['to']||'','SmsAccountId':_0x2e7d90['id']};logger[_0xc8c5('0x18d')]('sendSMS\x20message',JSON[_0xc8c5('0x78')](_0x957e84));this[_0xc8c5('0x38')]['sync'](this,_0x218235,_0x218235['sms_account_id']);this[_0xc8c5('0x10')][_0xc8c5('0xa6')](util[_0xc8c5('0x59')](_0xc8c5('0x199'),_0x2e7d90[_0xc8c5('0x17')]));this[_0xc8c5('0x37')]['sync'](this,_0x957e84);return this[_0xc8c5('0x10')][_0xc8c5('0xa6')](_0xc8c5('0x19a'));};AGIVertices[_0xc8c5('0x13')]['set']=function(_0x3eacd8){logger[_0xc8c5('0x2f')](util[_0xc8c5('0x59')](_0xc8c5('0x19b'),_0x3eacd8[_0xc8c5('0x3a')]));if(!this['isConfigured'](_0x3eacd8['variable_id'])){return this['channel']['error'](_0x3eacd8,_0xc8c5('0x19c'));}var _0x62820c=this[_0xc8c5('0x14')][_0xc8c5('0x74')](this,_0x3eacd8['variable_id']);if(!_0x62820c){return this[_0xc8c5('0x10')][_0xc8c5('0x2d')](_0x3eacd8,'no\x20variable\x20found');}return this[_0xc8c5('0x10')]['setVariable'](_0x62820c,_0x3eacd8[_0xc8c5('0x19d')]);};AGIVertices[_0xc8c5('0x13')][_0xc8c5('0x19e')]=function(_0x2d897e){logger['info'](util[_0xc8c5('0x59')](_0xc8c5('0x19f'),_0x2d897e[_0xc8c5('0x3a')]));this[_0xc8c5('0x10')][_0xc8c5('0xa6')](_0xc8c5('0x1a0'));if(_0x2d897e[_0xc8c5('0xb5')]===_0xc8c5('0x1a1')){this[_0xc8c5('0x10')][_0xc8c5('0xa6')](_0xc8c5('0x1a2'));return this[_0xc8c5('0x10')][_0xc8c5('0xb5')]();}return this['channel'][_0xc8c5('0xa6')](_0xc8c5('0x1a3'));};AGIVertices[_0xc8c5('0x13')][_0xc8c5('0x1a4')]=function(_0x5afa8d){logger['info'](util[_0xc8c5('0x59')](_0xc8c5('0x1a5'),_0x5afa8d[_0xc8c5('0x3a')]));if(!this[_0xc8c5('0x87')](_0x5afa8d['project_id'])){return this[_0xc8c5('0x10')][_0xc8c5('0x2d')](_0x5afa8d,'no\x20subproject\x20selected');}var _0x1ec9fb=this[_0xc8c5('0x1a')]['sync'](this,_0x5afa8d[_0xc8c5('0x1a6')]);if(!this[_0xc8c5('0x87')](_0x1ec9fb)){return this['channel'][_0xc8c5('0x2d')](_0x5afa8d,util[_0xc8c5('0x59')](_0xc8c5('0x1a7'),_0x5afa8d[_0xc8c5('0x1a6')]));}if(_0x1ec9fb===this['channel'][_0xc8c5('0x3c')]){return this[_0xc8c5('0x10')][_0xc8c5('0x2d')](_0x5afa8d,_0xc8c5('0x1a8'));}this[_0xc8c5('0x38')][_0xc8c5('0x74')](this,_0x5afa8d,_0x1ec9fb);var _0x3ed093=this[_0xc8c5('0x10')]['exec']('AGI',util[_0xc8c5('0x59')](_0xc8c5('0x1a9'),config['agi'][_0xc8c5('0x187')]||_0xc8c5('0x1aa'),_0x1ec9fb,this[_0xc8c5('0x10')][_0xc8c5('0x3c')]));if(_0x3ed093[_0xc8c5('0xa1')]===-0x1){return _0x3ed093;}return this[_0xc8c5('0x10')][_0xc8c5('0xa6')](util[_0xc8c5('0x59')](_0xc8c5('0xc0'),_0xc8c5('0x1ab'),_0x1ec9fb));};AGIVertices[_0xc8c5('0x13')][_0xc8c5('0x1ac')]=function(_0x1bee6e){logger['info'](util[_0xc8c5('0x59')](_0xc8c5('0x1ad'),_0x1bee6e[_0xc8c5('0x3a')]));var _0x4991a9=this[_0xc8c5('0x1ae')][_0xc8c5('0x74')](this,_0x1bee6e[_0xc8c5('0xb3')]);this[_0xc8c5('0x38')][_0xc8c5('0x74')](this,_0x1bee6e,_0x1bee6e['command']);if(this[_0xc8c5('0x87')](_0x1bee6e[_0xc8c5('0xd2')])){var _0x3e31ad=this[_0xc8c5('0x14')][_0xc8c5('0x74')](this,_0x1bee6e[_0xc8c5('0xd2')]);if(_0x3e31ad){this[_0xc8c5('0x10')]['setVariable'](_0x3e31ad,_0x4991a9);return this[_0xc8c5('0x10')]['noop'](util[_0xc8c5('0x59')]('sh\x20command:\x20%s\x20result\x20on\x20variable:\x20%s',_0x1bee6e['command'],_0x3e31ad));}}return this[_0xc8c5('0x10')][_0xc8c5('0xa6')](util[_0xc8c5('0x59')](_0xc8c5('0x1af'),_0x1bee6e[_0xc8c5('0xb3')]));};AGIVertices[_0xc8c5('0x13')][_0xc8c5('0x1b0')]=function(_0x43cfed){logger['info'](util[_0xc8c5('0x59')](_0xc8c5('0x1b1'),_0x43cfed[_0xc8c5('0x3a')]));_0x43cfed[_0xc8c5('0x63')]=_0x43cfed[_0xc8c5('0x63')][_0xc8c5('0x5d')](/(\r\n|\n|\r)/gm,'\x20');if(!this[_0xc8c5('0x87')](_0x43cfed[_0xc8c5('0x5f')])){return this[_0xc8c5('0x10')]['noop'](_0xc8c5('0x1b2'));}if(!this[_0xc8c5('0x87')](_0x43cfed[_0xc8c5('0x63')])){return this[_0xc8c5('0x10')][_0xc8c5('0xa6')]('no\x20text\x20configured');}this[_0xc8c5('0x10')][_0xc8c5('0xa6')](util[_0xc8c5('0x59')](_0xc8c5('0x1b3'),_0x43cfed[_0xc8c5('0x63')]));var _0xc3fe94=this[_0xc8c5('0x5e')][_0xc8c5('0x74')](this,_0x43cfed);if(_0xc3fe94){this[_0xc8c5('0x10')][_0xc8c5('0xa6')](util[_0xc8c5('0x59')](_0xc8c5('0x1b4'),_0xc3fe94));var _0xd7fd6e=this['channel'][_0xc8c5('0xf3')](_0xc3fe94);try{fs[_0xc8c5('0xf4')](_0xc3fe94+_0xc8c5('0x145'));}catch(_0xaff968){logger['error'](_0xaff968);}return _0xd7fd6e;}return this[_0xc8c5('0x10')][_0xc8c5('0x2d')](_0x43cfed,_0xc8c5('0x1b5'));};AGIVertices[_0xc8c5('0x13')][_0xc8c5('0x1b6')]=function(_0x2c2b9f){logger['info'](util[_0xc8c5('0x59')]('Enter\x20in\x20GOOGLETTS\x20(%s)\x20block',_0x2c2b9f[_0xc8c5('0x3a')]));_0x2c2b9f[_0xc8c5('0x63')]=_0x2c2b9f['text'][_0xc8c5('0x5d')](/(\r\n|\n|\r)/gm,'\x20');if(!this['isConfigured'](_0x2c2b9f[_0xc8c5('0x63')])){return this['channel'][_0xc8c5('0xa6')](_0xc8c5('0xa7'));}this[_0xc8c5('0x10')][_0xc8c5('0xa6')](util[_0xc8c5('0x59')](_0xc8c5('0x1b7'),_0x2c2b9f[_0xc8c5('0x63')]));var _0x782567=this[_0xc8c5('0x1b8')][_0xc8c5('0x74')](this,_0x2c2b9f);if(_0x782567){this[_0xc8c5('0x10')]['noop'](util[_0xc8c5('0x59')]('Google\x20TTS\x20%s\x20file\x20created',_0x782567));var _0xee6c34=this[_0xc8c5('0x10')][_0xc8c5('0xf3')](_0x782567);try{fs[_0xc8c5('0xf4')](_0x782567+_0xc8c5('0x145'));}catch(_0x20e89c){logger['error'](_0x20e89c);}return _0xee6c34;}return this['channel'][_0xc8c5('0x2d')](_0x2c2b9f,'Google\x20TTS\x20is\x20unreachable');};AGIVertices['prototype'][_0xc8c5('0x1b9')]=function(_0x5c0669){logger['info'](util[_0xc8c5('0x59')](_0xc8c5('0x1ba'),_0x5c0669['label']));if(!this[_0xc8c5('0x87')](_0x5c0669[_0xc8c5('0x147')])){return this[_0xc8c5('0x10')]['error'](_0x5c0669,'no\x20find\x20by\x20configured');}logger['info'](util['format'](_0xc8c5('0x148'),this[_0xc8c5('0x10')]['callerid'],_0x5c0669['findBy']));var _0x41f9a2=this[_0xc8c5('0x54')][_0xc8c5('0x74')](this,_0x5c0669[_0xc8c5('0x147')]);if(_0x41f9a2){logger[_0xc8c5('0x2f')](util['format'](_0xc8c5('0x149'),this['channel'][_0xc8c5('0x3e')],_0x5c0669['findBy']));this[_0xc8c5('0x10')][_0xc8c5('0xa6')](util[_0xc8c5('0x59')]('AGENT\x20%s\x20FOUND\x20BY',this[_0xc8c5('0x10')][_0xc8c5('0x3e')],_0x5c0669[_0xc8c5('0x147')]));return{'code':0xc8,'result':_0xc8c5('0x14a')};}else{logger['info'](util[_0xc8c5('0x59')](_0xc8c5('0x14b'),this[_0xc8c5('0x10')][_0xc8c5('0x3e')],_0x5c0669[_0xc8c5('0x147')]));this[_0xc8c5('0x10')][_0xc8c5('0xa6')](util[_0xc8c5('0x59')](_0xc8c5('0x14b'),this[_0xc8c5('0x10')][_0xc8c5('0x3e')],_0x5c0669[_0xc8c5('0x147')]));return{'code':0xc8,'result':_0xc8c5('0x14c')};}};AGIVertices[_0xc8c5('0x13')][_0xc8c5('0x1bb')]=function(_0x2b9523){logger[_0xc8c5('0x2f')](util[_0xc8c5('0x59')](_0xc8c5('0x1bc'),_0x2b9523[_0xc8c5('0x3a')]));var _0x360cc5=this[_0xc8c5('0x10')][_0xc8c5('0x5b')](_0xc8c5('0x1bd'),[_0x2b9523[_0xc8c5('0x1be')],_0x2b9523[_0xc8c5('0x7c')]]);if(_0x360cc5[_0xc8c5('0xa1')]===-0x1){return _0x360cc5;}return this[_0xc8c5('0x10')][_0xc8c5('0xa6')](util[_0xc8c5('0x59')]('Executed\x20command\x20%s\x20%s',_0xc8c5('0x1bd'),_0x2b9523[_0xc8c5('0x1be')]));};AGIVertices[_0xc8c5('0x13')][_0xc8c5('0x1bf')]=function(_0x51309f){logger[_0xc8c5('0x2f')](util['format'](_0xc8c5('0x1c0'),_0x51309f[_0xc8c5('0x3a')]));if(!this[_0xc8c5('0x87')](_0x51309f[_0xc8c5('0xd2')])){return this[_0xc8c5('0x10')]['error'](_0x51309f,_0xc8c5('0x19c'));}var _0x5a8311=this[_0xc8c5('0x14')][_0xc8c5('0x74')](this,_0x51309f[_0xc8c5('0xd2')]);if(!_0x5a8311){return this[_0xc8c5('0x10')]['error'](_0x51309f,'no\x20variable\x20found');}var _0x1f0d66=this[_0xc8c5('0x10')][_0xc8c5('0x14')](_0x5a8311);return{'code':0xc8,'result':_0x1f0d66[_0xc8c5('0xa0')]?_0x1f0d66[_0xc8c5('0xa0')]:'-'};};String[_0xc8c5('0x13')]['replaceAll']=function(_0x115eed,_0x5dcc2){return this[_0xc8c5('0x9f')](_0x115eed)[_0xc8c5('0x1c1')](_0x5dcc2);};module['exports']=AGIVertices;
\ No newline at end of file
+var _0xaf1c=['Trying\x20SendSMS\x20with\x20account\x20%s','Enter\x20in\x20SET\x20(%s)\x20block','no\x20variable\x20selected','variable_value','START\x20CALLY\x20SQUARE','Answer','project_id','project\x20in\x20subproject\x20must\x20be\x20different\x20from\x20the\x20called\x20project','AGI','127.0.0.1','sh\x20command:\x20%s\x20result\x20on\x20variable:\x20%s','sh\x20command:\x20%s\x20result\x20no\x20stored','Enter\x20in\x20Google\x20Cloud\x20TTS\x20(%s)\x20block','no\x20apiKey\x20configured','Trying\x20Google\x20Cloud\x20TTS\x20%s','Google\x20Cloud\x20TTS\x20%s\x20file\x20created','Google\x20Cloud\x20TTS\x20is\x20unreachable','tts','Enter\x20in\x20GOOGLETTS\x20(%s)\x20block','Trying\x20Google\x20TTS\x20%s','Google\x20TTS\x20%s\x20file\x20created','unpause','Enter\x20in\x20VOICEMAIL\x20(%s)\x20block','mailbox','VOICEMAIL','vswitch','Enter\x20in\x20SWITCH\x20(%s)\x20block','replaceAll','join','util','lodash','odbc','randomstring','moment','mustache','request-promise','../../config/logger','agi','./scripts','/var/opt/motion2/server/files','rawHeaders','rawBody','menu','getdigits','getsecretdigits','channel','mailRpc','prototype','getVariable','getVariableById','then','name','catch','getVoiceQueue','rpc','getVoiceQueueById','getSquareProject','getSquareProjectById','getSquareOdbc','getUser','getUserById','getTrunk','getTrunkById','getSound','getSoundById','getSoundPath','getMailAccountById','sendMailMessage','IntervalId','interval','map','Intervals','%s/sounds/converted/%s','getQueryOdbc','open','Error\x20getting\x20ODBC\x20connection\x20%s','info','ODBC\x20connection\x20successfully','Error\x20executing\x20query\x20%s','Query\x20executed\x20correctly\x20%s','close','error','Error\x20closing\x20connection\x20to\x20odbc\x20%s','getSmsAccountById','createSmsMessage','createSquareDetailsReport','label','agicommand','arg_1','callerid','createSquareRecording','uniqueid','calleridname','context','extension','priority','accountcode','dnid','file','createSquareMessage','createCmContact','isEmpty','isNil','callback_','random','lastName','phone','list_id','scheduledAt','callback','Callback\x20scheduled\x20at\x20','toString','callback_priority','getPauseById','agentPause','agent','agentUnpause','agentLogout','agentLogin','internal','format','%s/%s@from-sip/n','LOCAL','trim','replace','googleCloudTTS','apiKey','text','languageCode','en-US','ssmlGender','MALE','audioEncoding','MP3','googleTTS','google_tts_language','restAPI','url','number','timeout','includes','POST','method','parse','An\x20incorrect\x20formatted\x20json\x20body\x20has\x20been\x20passed\x20to\x20the\x20function','headers','An\x20incorrect\x20formatted\x20json\x20headers\x20has\x20been\x20passed\x20to\x20the\x20function','computedVariables','sync','render','stringify','body','An\x20incorrect\x20formatted\x20json\x20has\x20been\x20passed\x20to\x20the\x20function','statusCode','message','500\x20-\x20Internal\x20Server\x20Error','options','googleDialogflow','key','sestekNDA','ispeechTTS','ispeech_tts_language','speed','ispeechASR','ispeech_asr_language','model','awsPolly','aws_access_key_id','aws_secret_access_key','aws_polly_voice','Amy','aws_text_type','awsLex','aws_lex_region','aws_bot_name','googleASR','google_asr_language','tildeASR','appid','appsecret','clear','clone','replaceObjectAllVariables','replaceAllVariables','recursiveNodeIndex','hasOwnProperty','isPlainObject','isArray','saveRestApiResult','%s.%s','length','setVariable','split','extra','result','The\x20\x22%s\x22\x20variable\x20value\x20is:\x20%s','isConfigured','maxRetry','retry','mrcpsynth','Enter\x20in\x20MRCPSynth\x20(%s)\x20block','noop','no\x20text\x20configured','exec','MRCPSynth','Executed\x20command\x20MRCPSynth\x20%s','mrcprecog','Enter\x20in\x20MRCPRecog\x20(%s)\x20block','grammar','no\x20grammar\x20configured','getAndSetVariable','RECOG_CONFIDENCE()','MRCP_RECOG_CONFIDENCE','RECOG_INPUT()','MRCP_RECOG_TRANSCRIPT','RECOG_INSTANCE()','Executed\x20command\x20MRCPRecog\x20%s','Enter\x20in\x20AGI\x20(%s)\x20block','command','args','answer','Enter\x20in\x20ANSWER\x20(%s)\x20block','Wait\x20%s\x20seconds\x20before\x20answer','wait','Enter\x20in\x20CALLBACK\x20(%s)\x20block','delay','add','minutes','Enter\x20in\x20CUSTOM\x20APP\x20(%s)\x20block','lumenvoxtts','Enter\x20in\x20LUMENVOXTTS\x20(%s)\x20block','sestektts','Enter\x20in\x20SESTEKTTS\x20(%s)\x20block','lumenvoxasr','Enter\x20in\x20LUMENVOXASR\x20(%s)\x20block','LUMENVOX_ASR_CONFIDENCE','LUMENVOX_ASR_TRANSCRIPT','Enter\x20in\x20SESTEKASR\x20(%s)\x20block','MRCPRecog','SESTEK_ASR_CONFIDENCE','SESTEK_ASR_TRANSCRIPT','database','Enter\x20in\x20DATABASE\x20(%s)\x20block','odbc_id','no\x20database\x20selected','no\x20odbc\x20database\x20found','query','query:\x20%s','variable_id','no\x20variable\x20selected\x20for\x20the\x20result','no\x20variable\x20found','keys','forEach','%s[%s][%s]','%s_ROWS_COUNT','variable\x20%s\x20set','dial','debug','sip_id','no\x20user\x20selected','no\x20user\x20found','DIAL','opts','Executed\x20command\x20%s','dialogflow','Enter\x20in\x20DIALOGFLOW\x20(%s)\x20block','no\x20key\x20configured','bot','Trying\x20Dialogflow:\x20%s','DIALOGFLOW_%s','toUpperCase','speech','Dialogflow\x20Result\x20%s','Dialogflow\x20is\x20unreachable','sesteknda','Enter\x20in\x20SESTEKNDA\x20(%s)\x20block','ndauth_url','no\x20ndauth\x20url\x20configured','username','password','no\x20password\x20configured','ndassistant_url','Trying\x20SestekNDA:\x20%s','SESTEK_NDA_%s','Sestek\x20NDA\x20%s\x20file\x20created','streamFile','audiofile','.wav','SestekNDA\x20Result\x20%s','SestekNDA\x20is\x20unreachable','end','ext_dial','Enter\x20in\x20EXTERNAL\x20DIAL\x20(%s)\x20block','trunk_id','no\x20trunk\x20selected','no\x20trunk\x20found','trunk_name','SIP/%s/%s','finally','Enter\x20in\x20FINALLY\x20(%s)\x20block','Enter\x20in\x20GETDIGITS\x20(%s)\x20block','file_id','getData','response','maxdigit','mindigit','hiddendigitsnum','hiddendigitspos','substr','Enter\x20in\x20GETSECRETDIGITS\x20(%s)\x20block','goal','Enter\x20in\x20GOAL\x20(%s)\x20block','goalname','no\x20valid\x20credentials\x20configured','aws\x20Polly\x20%s\x20file\x20created','unlink','awslex','Trying\x20Amazon\x20Lex:\x20%s','isString','AWS_LEX_%s','Amazon\x20Lex\x20ready\x20for\x20fulfillment','out','Amazon\x20Lex\x20Result\x20%s','Amazon\x20Lex\x20is\x20unreachable','googleasr','Enter\x20in\x20GOOGLEASR\x20(%s)\x20block\x20%s','wav','%s/recordings/%s','generate','beep','NOBEEP','recordFile','intKey','google\x20%s\x20file\x20created','GOOGLE_ASR_%s','Enter\x20in\x20TILDEASR\x20(%s)\x20block','no\x20appid\x20configured','no\x20appsecret\x20configured','TILDE_ASR_%s','gotoc','Enter\x20in\x20GOTO\x20(%s)\x20block','continueAt','gotoif','condition','no\x20condition\x20configured','true','false','EVAL\x20CONDITION\x20%s\x20%s','gotoiftime','Enter\x20in\x20GOTOIFTIME\x20(%s)\x20block','interval_id','getIntervals','no\x20intervals\x20found','IFTIME(%s?true:false)','IFTIME\x20%s\x20%s','hangup','ispeech\x20%s\x20file\x20created','ISPEECH_ASR_%s','IspeechASR\x20Result\x20%s','Enter\x20in\x20ISPEECHTTS\x20(%s)\x20block','ispeech\x20TTS\x20is\x20unreachable','login','Enter\x20in\x20LOGIN\x20(%s)\x20block','findBy','no\x20find\x20by\x20configured','FIND\x20AGENT\x20%s\x20BY\x20%s','AGENT\x20%s\x20NOT\x20FOUND\x20BY','failure','logout','AGENT\x20%s\x20FOUND\x20BY','success','math','Enter\x20in\x20MATH\x20(%s)\x20block','operation','no\x20operation\x20configured','math\x20%s','%s[%s]','variable\x20%s[key]\x20set','Enter\x20in\x20MENU\x20(%s)\x20block','no\x20file\x20audio\x20found','Enter\x20in\x20NOOP\x20(%s)\x20block','Enter\x20in\x20PAUSE\x20(%s)\x20block','getPause','pause_id','Enter\x20in\x20PLAYBACK\x20(%s)\x20block','no\x20file\x20audio\x20selected','PLAYBACK','Executed\x20command\x20%s\x20%s','queue','Enter\x20in\x20QUEUE\x20(%s)\x20block','queue_id','no\x20queue\x20selected','no\x20queue\x20found','indexOf','XMCS-QUEUE','toLowerCase','macro','gosub','QUEUE','record','Enter\x20in\x20RECORD\x20(%s)\x20block','%s_%s','RECORDING_SAVENAME','Recording\x20%s\x20%s\x20%s\x20%s','escape_digits','Enter\x20in\x20RESTAPI\x20(%s)\x20block','no\x20url\x20configured','Response:','%s_STATUS_CODE','200','%s_STATUS_MESSAGE','statusMessage','Unable\x20to\x20set\x20result\x20in\x20variable\x20%s','saydigits','Enter\x20in\x20SAYDIGITS\x20(%s)\x20block','sayDigits','sayNumber','sayphonetic','Enter\x20in\x20SAYPHONETIC\x20(%s)\x20block','sayPhonetic','sendMail','Enter\x20in\x20SENDMAIL\x20(%s)\x20block','account_id','no\x20mail\x20account\x20configured','getMailAccount','no\x20mail\x20account\x20found','\x22%s\x22\x20<%s>','email','Smtp','user','bcc','service','host','port','auth','pass','template_id','Trying\x20SendMail\x20with\x20account\x20%s','Mail\x20message\x20added\x20to\x20outgoing\x20process','sendFax','Enter\x20in\x20SENDFAX\x20(%s)\x20block','SENDFAX\x20block\x20not\x20implemented','sendSMS','Enter\x20in\x20SENDSMS\x20(%s)\x20block','sms_account_id','no\x20sms\x20account\x20configured','getSmsAccount','no\x20sms\x20account\x20found','sendSMS\x20message'];(function(_0xc82b44,_0x4d8b85){var _0x3e9568=function(_0x5615a2){while(--_0x5615a2){_0xc82b44['push'](_0xc82b44['shift']());}};_0x3e9568(++_0x4d8b85);}(_0xaf1c,0x1de));var _0xcaf1=function(_0xc74167,_0x5cffb9){_0xc74167=_0xc74167-0x0;var _0x562b4a=_0xaf1c[_0xc74167];return _0x562b4a;};'use strict';var fs=require('fs');var path=require('path');var util=require(_0xcaf1('0x0'));var _=require(_0xcaf1('0x1'));var sh=require('shelljs');var odbc=require(_0xcaf1('0x2'))();var rs=require(_0xcaf1('0x3'));var moment=require(_0xcaf1('0x4'));var Mustache=require(_0xcaf1('0x5'));var rp=require(_0xcaf1('0x6'));var logger=require(_0xcaf1('0x7'))(_0xcaf1('0x8'));var config=require('../../config/environment');var scripts=require(_0xcaf1('0x9'));var FILES_PATH=_0xcaf1('0xa');var recursiveMapAttributes=[_0xcaf1('0xb'),_0xcaf1('0xc')];var verticesWithRetry=[_0xcaf1('0xd'),_0xcaf1('0xe'),_0xcaf1('0xf')];var AGIVertices=function(_0x46b2c7,_0x452503,_0x5af62e){this[_0xcaf1('0x10')]=_0x46b2c7;this['rpc']=_0x452503;this[_0xcaf1('0x11')]=_0x5af62e;};AGIVertices[_0xcaf1('0x12')][_0xcaf1('0x13')]=function(_0x1d4f88,_0x156eb5){this['rpc'][_0xcaf1('0x14')](_0x1d4f88)[_0xcaf1('0x15')](function(_0x2a491a){_0x156eb5(null,_0x2a491a?_0x2a491a[_0xcaf1('0x16')]:![]);})[_0xcaf1('0x17')](function(_0x2a219c){_0x156eb5(_0x2a219c);});};AGIVertices[_0xcaf1('0x12')][_0xcaf1('0x18')]=function(_0x85f51d,_0x1a65f5){this[_0xcaf1('0x19')][_0xcaf1('0x1a')](_0x85f51d)[_0xcaf1('0x15')](function(_0x4634f2){_0x1a65f5(null,_0x4634f2?_0x4634f2[_0xcaf1('0x16')]:![]);})[_0xcaf1('0x17')](function(_0x387575){_0x1a65f5(_0x387575);});};AGIVertices[_0xcaf1('0x12')][_0xcaf1('0x1b')]=function(_0x4a7e3c,_0x7fcf43){this[_0xcaf1('0x19')][_0xcaf1('0x1c')](_0x4a7e3c)[_0xcaf1('0x15')](function(_0x1f6b3c){_0x7fcf43(null,_0x1f6b3c?_0x1f6b3c['name']:![]);})['catch'](function(_0x3deb26){_0x7fcf43(_0x3deb26);});};AGIVertices['prototype'][_0xcaf1('0x1d')]=function(_0x501a7b,_0x60f064){this['rpc']['getSquareOdbcById'](_0x501a7b)['then'](function(_0x5848db){_0x60f064(null,_0x5848db?_0x5848db['dsn']:![]);})[_0xcaf1('0x17')](function(_0x4ebd4a){_0x60f064(_0x4ebd4a);});};AGIVertices['prototype'][_0xcaf1('0x1e')]=function(_0x2e825f,_0x3ad696){this['rpc'][_0xcaf1('0x1f')](_0x2e825f)['then'](function(_0x34e2bc){_0x3ad696(null,_0x34e2bc?_0x34e2bc['name']:![]);})['catch'](function(_0x4534a2){_0x3ad696(_0x4534a2);});};AGIVertices['prototype'][_0xcaf1('0x20')]=function(_0x25ce94,_0x111038){this[_0xcaf1('0x19')][_0xcaf1('0x21')](_0x25ce94)[_0xcaf1('0x15')](function(_0x1cf5c5){_0x111038(null,_0x1cf5c5?_0x1cf5c5[_0xcaf1('0x16')]:![]);})[_0xcaf1('0x17')](function(_0x179bfb){_0x111038(_0x179bfb);});};AGIVertices[_0xcaf1('0x12')][_0xcaf1('0x22')]=function(_0x2a5da6,_0x3e95ab){var _0x474bc1=this;this['rpc'][_0xcaf1('0x23')](_0x2a5da6)['then'](function(_0x3dcbf2){_0x3e95ab(null,_0x3dcbf2?_0x474bc1[_0xcaf1('0x24')](_0x3dcbf2['save_name']):![]);})['catch'](function(_0x3d774a){_0x3e95ab(_0x3d774a);});};AGIVertices['prototype']['getMailAccount']=function(_0x287035,_0x4d9b6c){this['rpc'][_0xcaf1('0x25')](_0x287035)[_0xcaf1('0x15')](function(_0x319f81){_0x4d9b6c(null,_0x319f81?_0x319f81:![]);})['catch'](function(_0x156faa){_0x4d9b6c(_0x156faa);});};AGIVertices[_0xcaf1('0x12')][_0xcaf1('0x26')]=function(_0x3fd630,_0x41f6b5,_0x22cc06){this[_0xcaf1('0x11')]['sendMailMessage'](_0x3fd630,_0x41f6b5)[_0xcaf1('0x15')](function(){_0x22cc06(null);})[_0xcaf1('0x17')](function(_0x3113c5){_0x22cc06(_0x3113c5);});};AGIVertices['prototype']['getIntervals']=function(_0x503519,_0x22f32e){this['rpc']['getIntervalById'](_0x503519)['then'](function(_0x2942ee){if(_0x2942ee){if(_0x2942ee[_0xcaf1('0x27')]){_0x22f32e(null,[_0x2942ee[_0xcaf1('0x28')]]);}else{_0x22f32e(null,_[_0xcaf1('0x29')](_0x2942ee[_0xcaf1('0x2a')],_0xcaf1('0x28')));}}else{_0x22f32e(null,![]);}})[_0xcaf1('0x17')](function(_0x3bbe76){_0x22f32e(_0x3bbe76);});};AGIVertices[_0xcaf1('0x12')][_0xcaf1('0x24')]=function(_0x26ad39){return util['format'](_0xcaf1('0x2b'),FILES_PATH,_0x26ad39);};AGIVertices[_0xcaf1('0x12')][_0xcaf1('0x2c')]=function(_0x1456f4,_0x5106f2,_0x3f1138){odbc[_0xcaf1('0x2d')](_0x1456f4,function(_0x4dd1b6){if(_0x4dd1b6){logger['error'](_0xcaf1('0x2e'),_0x4dd1b6);_0x3f1138(_0x4dd1b6);}else{logger[_0xcaf1('0x2f')](_0xcaf1('0x30'));odbc['query'](_0x5106f2,function(_0x4af812,_0x1af8df){if(_0x4af812){logger[_0xcaf1('0x2f')](_0xcaf1('0x31'),_0x5106f2);_0x3f1138(_0x4af812);}else{logger['info'](_0xcaf1('0x32'),_0x5106f2);odbc[_0xcaf1('0x33')](function(_0x35d008){if(_0x35d008){logger[_0xcaf1('0x34')](_0xcaf1('0x35'),_0x35d008);}_0x3f1138(null,_0x1af8df);});}});}});};AGIVertices[_0xcaf1('0x12')]['getSmsAccount']=function(_0x3e5ad6,_0x3143b9){this[_0xcaf1('0x19')][_0xcaf1('0x36')](_0x3e5ad6)[_0xcaf1('0x15')](function(_0x44fa07){_0x3143b9(null,_0x44fa07?_0x44fa07:![]);})['catch'](function(_0x1eb2ce){_0x3143b9(_0x1eb2ce);});};AGIVertices['prototype'][_0xcaf1('0x37')]=function(_0xe45c9a,_0x5221cb){this['rpc'][_0xcaf1('0x37')](_0xe45c9a)[_0xcaf1('0x15')](function(_0x40d849){_0x5221cb(null,_0x40d849);})[_0xcaf1('0x17')](function(_0x4abf2a){_0x5221cb(_0x4abf2a);});};AGIVertices['prototype'][_0xcaf1('0x38')]=function(_0x25d4ab,_0x308252,_0x2776f0){this['rpc']['createSquareDetailsReport']({'uniqueid':this[_0xcaf1('0x10')]['uniqueid'],'node':_0x25d4ab[_0xcaf1('0x39')],'application':_0x25d4ab[_0xcaf1('0x3a')],'data':_0x308252||null,'project_name':this[_0xcaf1('0x10')][_0xcaf1('0x3b')],'callerid':this[_0xcaf1('0x10')][_0xcaf1('0x3c')]})['then'](function(_0x11391e){if(_0x2776f0){_0x2776f0(null,_0x11391e);}})['catch'](function(_0x5d692c){if(_0x2776f0){_0x2776f0(_0x5d692c);}});};AGIVertices[_0xcaf1('0x12')][_0xcaf1('0x3d')]=function(_0xca026c,_0x1ad90f,_0x5023ce,_0x155b9a){this[_0xcaf1('0x19')][_0xcaf1('0x3d')]({'uniqueid':this[_0xcaf1('0x10')][_0xcaf1('0x3e')],'callerid':this[_0xcaf1('0x10')][_0xcaf1('0x3c')],'calleridname':this['channel'][_0xcaf1('0x3f')],'context':this[_0xcaf1('0x10')][_0xcaf1('0x40')],'extension':this[_0xcaf1('0x10')][_0xcaf1('0x41')],'priority':this[_0xcaf1('0x10')][_0xcaf1('0x42')],'accountcode':this[_0xcaf1('0x10')][_0xcaf1('0x43')],'dnid':this[_0xcaf1('0x10')][_0xcaf1('0x44')],'projectName':this[_0xcaf1('0x10')]['arg_1'],'saveName':_0x1ad90f,'filename':_0xca026c[_0xcaf1('0x45')]||_0x1ad90f,'savePath':_0x5023ce})[_0xcaf1('0x15')](function(_0x12ac8b){_0x155b9a(null,_0x12ac8b);})[_0xcaf1('0x17')](function(_0xec1073){_0x155b9a(_0xec1073);});};AGIVertices[_0xcaf1('0x12')][_0xcaf1('0x46')]=function(_0x56f1e6,_0x5becde,_0x414e7b){this[_0xcaf1('0x19')][_0xcaf1('0x46')]({'uniqueid':this[_0xcaf1('0x10')][_0xcaf1('0x3e')],'body':_0x56f1e6,'direction':_0x5becde})['then'](function(_0x2e81ed){if(_0x414e7b){_0x414e7b(null,_0x2e81ed);}})[_0xcaf1('0x17')](function(_0x2a8c6a){if(_0x414e7b){_0x414e7b(_0x2a8c6a);}});};AGIVertices[_0xcaf1('0x12')]['createCmContact']=function(_0x3bf8f7,_0x9870c){this[_0xcaf1('0x19')][_0xcaf1('0x47')]({'firstName':_[_0xcaf1('0x48')](_0x3bf8f7[_0xcaf1('0x16')])||_[_0xcaf1('0x49')](_0x3bf8f7[_0xcaf1('0x16')])?_0xcaf1('0x4a')+Math[_0xcaf1('0x4b')]():_0x3bf8f7[_0xcaf1('0x16')],'lastName':_[_0xcaf1('0x48')](_0x3bf8f7[_0xcaf1('0x4c')])||_[_0xcaf1('0x49')](_0x3bf8f7['lastName'])?null:_0x3bf8f7['lastName'],'phone':_0x3bf8f7[_0xcaf1('0x4d')],'ListId':_0x3bf8f7[_0xcaf1('0x4e')],'scheduledat':_0x3bf8f7[_0xcaf1('0x4f')],'callbackUniqueid':this[_0xcaf1('0x10')][_0xcaf1('0x3e')],'tags':_0xcaf1('0x50'),'description':_0xcaf1('0x51')+_0x3bf8f7[_0xcaf1('0x4f')][_0xcaf1('0x52')](),'priority':_0x3bf8f7[_0xcaf1('0x53')]})[_0xcaf1('0x15')](function(_0x3e59f8){_0x9870c(null,_0x3e59f8);})[_0xcaf1('0x17')](function(_0xcf9ed4){_0x9870c(_0xcf9ed4);});};AGIVertices[_0xcaf1('0x12')]['getPause']=function(_0x23c60c,_0x5d6ea9){this[_0xcaf1('0x19')][_0xcaf1('0x54')](_0x23c60c)['then'](function(_0x319b2d){_0x5d6ea9(null,_0x319b2d?_0x319b2d[_0xcaf1('0x16')]:![]);})[_0xcaf1('0x17')](function(_0x5f0c94){_0x5d6ea9(_0x5f0c94);});};AGIVertices[_0xcaf1('0x12')][_0xcaf1('0x55')]=function(_0x2d4b5b,_0x301640,_0xabc8f5){var _0x1859b9={'role':_0xcaf1('0x56')};_0x1859b9[_0x2d4b5b]=this[_0xcaf1('0x10')]['callerid'];this[_0xcaf1('0x19')][_0xcaf1('0x55')](_0x1859b9,_0x301640,this[_0xcaf1('0x10')][_0xcaf1('0x3e')])[_0xcaf1('0x15')](function(_0x3a3c5f){_0xabc8f5(null,_['isNil'](_0x3a3c5f)?![]:!![]);})['catch'](function(_0x336084){logger[_0xcaf1('0x34')](_0x336084);_0xabc8f5(null,![]);});};AGIVertices[_0xcaf1('0x12')][_0xcaf1('0x57')]=function(_0x1759a4,_0x3316f3){var _0x159ec8={'role':_0xcaf1('0x56')};_0x159ec8[_0x1759a4]=this['channel'][_0xcaf1('0x3c')];this[_0xcaf1('0x19')][_0xcaf1('0x57')](_0x159ec8)[_0xcaf1('0x15')](function(_0x488bf8){_0x3316f3(null,_['isNil'](_0x488bf8)?![]:!![]);})[_0xcaf1('0x17')](function(_0xcbadaa){logger[_0xcaf1('0x34')](_0xcbadaa);_0x3316f3(null,![]);});};AGIVertices[_0xcaf1('0x12')][_0xcaf1('0x58')]=function(_0x4396c4,_0x5bc0b4){var _0x4984ba={'role':_0xcaf1('0x56')};_0x4984ba[_0x4396c4]=this[_0xcaf1('0x10')]['callerid'];this['rpc'][_0xcaf1('0x58')](_0x4984ba)['then'](function(_0x8f8e95){_0x5bc0b4(null,_['isNil'](_0x8f8e95)?![]:!![]);})[_0xcaf1('0x17')](function(_0x24832c){logger[_0xcaf1('0x34')](_0x24832c);_0x5bc0b4(null,![]);});};AGIVertices[_0xcaf1('0x12')][_0xcaf1('0x59')]=function(_0x344bf3,_0x1f9893){var _0x429690={'role':'agent'};_0x429690[_0x344bf3]=this[_0xcaf1('0x10')][_0xcaf1('0x3c')];var _0x59b084=_0x344bf3!=_0xcaf1('0x5a')?util[_0xcaf1('0x5b')](_0xcaf1('0x5c'),_0xcaf1('0x5d'),this[_0xcaf1('0x10')]['callerid']):undefined;this[_0xcaf1('0x19')][_0xcaf1('0x59')](_0x429690,_0x59b084)[_0xcaf1('0x15')](function(_0x18648b){_0x1f9893(null,_[_0xcaf1('0x49')](_0x18648b)?![]:!![]);})['catch'](function(_0x53cc50){logger[_0xcaf1('0x34')](_0x53cc50);_0x1f9893(null,![]);});};AGIVertices['prototype']['shellCommand']=function(_0x4d4d6a,_0x57d55b){sh['exec'](_[_0xcaf1('0x5e')](_0x4d4d6a),function(_0x10cfb1,_0x57d57b){var _0x2707ba=_0x57d57b[_0xcaf1('0x5f')](/(\r\n|\n|\r)/gm,'');_0x57d55b(null,_0x2707ba);});};AGIVertices['prototype'][_0xcaf1('0x60')]=function(_0x156b21,_0x35c97a){scripts[_0xcaf1('0x60')](_0x156b21[_0xcaf1('0x61')],_0x156b21['google_cloud_tts_text_type']||_0xcaf1('0x62'),_0x156b21[_0xcaf1('0x62')],_0x156b21[_0xcaf1('0x63')]||_0xcaf1('0x64'),_0x156b21[_0xcaf1('0x65')]||_0xcaf1('0x66'),_0x156b21[_0xcaf1('0x67')]||_0xcaf1('0x68'))[_0xcaf1('0x15')](function(_0x16f181){_0x35c97a(null,_0x16f181);})[_0xcaf1('0x17')](function(_0x3c7d42){_0x35c97a(_0x3c7d42);});};AGIVertices[_0xcaf1('0x12')][_0xcaf1('0x69')]=function(_0xc2aa77,_0x54253a){scripts[_0xcaf1('0x69')](_0xc2aa77[_0xcaf1('0x62')],_0xc2aa77[_0xcaf1('0x6a')]||'en',0x1)[_0xcaf1('0x15')](function(_0xbcc28c){_0x54253a(null,_0xbcc28c);})[_0xcaf1('0x17')](function(_0x287b0c){_0x54253a(_0x287b0c);});};AGIVertices['prototype'][_0xcaf1('0x6b')]=function(_0x6fe8a0,_0x3b3ad7){var _0x2544d1={'uri':_0x6fe8a0[_0xcaf1('0x6c')],'method':_0x6fe8a0['method'],'json':!![],'resolveWithFullResponse':!![],'timeout':typeof parseInt(_0x6fe8a0['timeout'])===_0xcaf1('0x6d')&&parseInt(_0x6fe8a0[_0xcaf1('0x6e')])>=0x1?parseInt(_0x6fe8a0[_0xcaf1('0x6e')])*0x3e8:0x5*0x3e8};if(_[_0xcaf1('0x6f')]([_0xcaf1('0x70'),'PUT'],_0x2544d1[_0xcaf1('0x71')]['toUpperCase']())){try{_0x2544d1['body']=_0x6fe8a0[_0xcaf1('0xc')]?JSON[_0xcaf1('0x72')](_0x6fe8a0['rawBody']):{};}catch(_0x39eb71){logger[_0xcaf1('0x34')](_0xcaf1('0x73'),_0x39eb71);}}try{_0x2544d1[_0xcaf1('0x74')]=_0x6fe8a0[_0xcaf1('0xb')]?JSON['parse'](_0x6fe8a0['rawHeaders']):{};}catch(_0x3f8c1e){logger[_0xcaf1('0x34')](_0xcaf1('0x75'),_0x3f8c1e);}if(_0x6fe8a0[_0xcaf1('0x76')]){try{var _0x47f780=require(_0x6fe8a0[_0xcaf1('0x76')])[_0xcaf1('0x77')](this,_0x2544d1);_0x2544d1['uri']=Mustache[_0xcaf1('0x78')](_0x6fe8a0[_0xcaf1('0x6c')],_0x47f780,{},['$$','$$']);if(_0x2544d1[_0xcaf1('0x74')]){_0x2544d1[_0xcaf1('0x74')]=JSON[_0xcaf1('0x72')](Mustache[_0xcaf1('0x78')](JSON[_0xcaf1('0x79')](_0x2544d1[_0xcaf1('0x74')]),_0x47f780,{},['$$','$$']));}if(_0x2544d1[_0xcaf1('0x7a')]){_0x2544d1[_0xcaf1('0x7a')]=JSON['parse'](Mustache[_0xcaf1('0x78')](JSON[_0xcaf1('0x79')](_0x2544d1[_0xcaf1('0x7a')]),_0x47f780,{},['$$','$$']));}}catch(_0x3a9a0d){logger[_0xcaf1('0x34')](_0xcaf1('0x7b'),_0x3a9a0d);}}rp(_0x2544d1)[_0xcaf1('0x15')](function(_0x2606c0){var _0xed4a7={'statusCode':_0x2606c0[_0xcaf1('0x7c')]||0xc8,'statusMessage':_0x2606c0['statusMessage']||'OK','headers':_0x2606c0[_0xcaf1('0x74')]||{},'body':_0x2606c0[_0xcaf1('0x7a')]||{}};_0x3b3ad7(null,_0xed4a7);})[_0xcaf1('0x17')](function(_0x4e7270){var _0x4350af={'statusCode':_0x4e7270[_0xcaf1('0x7c')]||0x1f4,'statusMessage':_0x4e7270[_0xcaf1('0x7d')]||_0xcaf1('0x7e'),'headers':_0x4e7270[_0xcaf1('0x7f')]['headers']||{},'body':_0x4e7270[_0xcaf1('0x7f')]['body']||{}};_0x3b3ad7(null,_0x4350af);});};AGIVertices[_0xcaf1('0x12')][_0xcaf1('0x80')]=function(_0x452440,_0x5bfe46){scripts[_0xcaf1('0x80')](this[_0xcaf1('0x10')][_0xcaf1('0x3e')],_0x452440[_0xcaf1('0x81')],_0x452440['text'],_0x452440['dialogflow_language']||'en')[_0xcaf1('0x15')](function(_0xb039fe){_0x5bfe46(null,_0xb039fe);})['catch'](function(_0x2a142d){_0x5bfe46(_0x2a142d);});};AGIVertices[_0xcaf1('0x12')][_0xcaf1('0x82')]=function(_0x3833ba,_0x58d705){scripts[_0xcaf1('0x82')](this[_0xcaf1('0x10')],_0x3833ba)[_0xcaf1('0x15')](function(_0x38a89b){_0x58d705(null,_0x38a89b);})[_0xcaf1('0x17')](function(_0x1e2dcb){_0x58d705(_0x1e2dcb);});};AGIVertices[_0xcaf1('0x12')][_0xcaf1('0x83')]=function(_0x2dc292,_0x2d283c){scripts[_0xcaf1('0x83')](_0x2dc292[_0xcaf1('0x81')],_0x2dc292[_0xcaf1('0x62')],_0x2dc292[_0xcaf1('0x84')]||_0xcaf1('0x64'),_0x2dc292[_0xcaf1('0x85')])[_0xcaf1('0x15')](function(_0x3ba098){_0x2d283c(null,_0x3ba098);})[_0xcaf1('0x17')](function(_0x17d4aa){_0x2d283c(_0x17d4aa);});};AGIVertices[_0xcaf1('0x12')][_0xcaf1('0x86')]=function(_0x20a1b8,_0xd65b59,_0x318740){scripts[_0xcaf1('0x86')](_0xd65b59,_0x20a1b8[_0xcaf1('0x81')],_0x20a1b8[_0xcaf1('0x87')]||_0xcaf1('0x64'),this['isConfigured'](_0x20a1b8[_0xcaf1('0x88')])?_0x20a1b8[_0xcaf1('0x88')]:undefined)[_0xcaf1('0x15')](function(_0x30619d){_0x318740(null,_0x30619d);})[_0xcaf1('0x17')](function(_0x3ff994){_0x318740(_0x3ff994);});};AGIVertices['prototype'][_0xcaf1('0x89')]=function(_0xf2d720,_0x7dc7ba){scripts[_0xcaf1('0x89')](_0xf2d720[_0xcaf1('0x8a')],_0xf2d720[_0xcaf1('0x8b')],_0xf2d720['aws_polly_region'],_0xf2d720[_0xcaf1('0x8c')]||_0xcaf1('0x8d'),_0xf2d720['text'],_0xf2d720[_0xcaf1('0x8e')]||_0xcaf1('0x62'))['then'](function(_0x3af97f){_0x7dc7ba(null,_0x3af97f);})[_0xcaf1('0x17')](function(_0x4144e1){_0x7dc7ba(_0x4144e1);});};AGIVertices[_0xcaf1('0x12')][_0xcaf1('0x8f')]=function(_0x3a8129,_0x503e5e){scripts[_0xcaf1('0x8f')](this[_0xcaf1('0x10')]['uniqueid'],_0x3a8129[_0xcaf1('0x8a')],_0x3a8129[_0xcaf1('0x8b')],_0x3a8129[_0xcaf1('0x90')],_0x3a8129['text'],_0x3a8129[_0xcaf1('0x91')])[_0xcaf1('0x15')](function(_0x3c1add){_0x503e5e(null,_0x3c1add);})[_0xcaf1('0x17')](function(_0x19d55c){_0x503e5e(_0x19d55c);});};AGIVertices[_0xcaf1('0x12')][_0xcaf1('0x92')]=function(_0x4aae54,_0x36e28a,_0x13d1a6){scripts[_0xcaf1('0x92')](_0x36e28a,_0x4aae54[_0xcaf1('0x81')],_0x4aae54[_0xcaf1('0x93')]||_0xcaf1('0x64'))[_0xcaf1('0x15')](function(_0x154114){_0x13d1a6(null,_0x154114);})[_0xcaf1('0x17')](function(_0x4d2b8a){_0x13d1a6(_0x4d2b8a);});};AGIVertices[_0xcaf1('0x12')][_0xcaf1('0x94')]=function(_0x1921bc,_0x41fd73,_0x3a52c9){scripts[_0xcaf1('0x94')](_0x41fd73,_0x1921bc[_0xcaf1('0x95')],_0x1921bc[_0xcaf1('0x96')],_0x1921bc['uri'])['then'](function(_0x396fa4){_0x3a52c9(null,_0x396fa4);})[_0xcaf1('0x17')](function(_0x53d52e){_0x3a52c9(_0x53d52e);});};AGIVertices[_0xcaf1('0x12')][_0xcaf1('0x97')]=function(_0x8a99a1){var _0x5b0402=_[_0xcaf1('0x6f')](verticesWithRetry,_0x8a99a1[_0xcaf1('0x3a')])?_0x8a99a1:_[_0xcaf1('0x98')](_0x8a99a1);for(var _0x3209fd in _0x5b0402){if(_0x5b0402['hasOwnProperty'](_0x3209fd)){if(_0x5b0402[_0x3209fd]&&_['isString'](_0x5b0402[_0x3209fd])){if(_[_0xcaf1('0x6f')](recursiveMapAttributes,_0x3209fd)){_0x5b0402[_0x3209fd]=this[_0xcaf1('0x99')](_0x5b0402[_0x3209fd]);}else{_0x5b0402[_0x3209fd]=this[_0xcaf1('0x9a')](_0x5b0402[_0x3209fd]);}}}}return _0x5b0402;};AGIVertices[_0xcaf1('0x12')][_0xcaf1('0x9b')]=function(_0x53b418){for(var _0x52f8c6 in _0x53b418){if(_0x53b418[_0xcaf1('0x9c')](_0x52f8c6)){if(_[_0xcaf1('0x9d')](_0x53b418[_0x52f8c6])){this[_0xcaf1('0x9b')](_0x53b418[_0x52f8c6]);}else if(_[_0xcaf1('0x9e')](_0x53b418[_0x52f8c6])){for(var _0x594988=0x0;_0x594988<_0x53b418[_0x52f8c6]['length'];_0x594988++){this['recursiveNodeIndex'](_0x53b418[_0x52f8c6][_0x594988]);}}else if(_['isString'](_0x53b418[_0x52f8c6])){_0x53b418[_0x52f8c6]=this[_0xcaf1('0x9a')](_0x53b418[_0x52f8c6]);}}}};AGIVertices[_0xcaf1('0x12')][_0xcaf1('0x9f')]=function(_0x43be88,_0x4fa29e){for(var _0x55ea40 in _0x43be88){if(_0x43be88[_0xcaf1('0x9c')](_0x55ea40)){if(_[_0xcaf1('0x9d')](_0x43be88[_0x55ea40])){if(!_[_0xcaf1('0x48')](_0x43be88[_0x55ea40])){this['saveRestApiResult'](_0x43be88[_0x55ea40],util[_0xcaf1('0x5b')](_0xcaf1('0xa0'),_0x4fa29e,_0x55ea40));}}else if(_[_0xcaf1('0x9e')](_0x43be88[_0x55ea40])){for(var _0x3956be=0x0;_0x3956be<_0x43be88[_0x55ea40][_0xcaf1('0xa1')];_0x3956be++){this[_0xcaf1('0x9f')](_0x43be88[_0x55ea40][_0x3956be],util[_0xcaf1('0x5b')](_0xcaf1('0xa0'),_0x4fa29e,_0x55ea40+'['+_0x3956be+']'));}}else{if(!_['isNil'](_0x43be88[_0x55ea40])){this[_0xcaf1('0x10')][_0xcaf1('0xa2')](util['format'](_0xcaf1('0xa0'),_0x4fa29e,_0x55ea40),_0x43be88[_0x55ea40]);}}}}};AGIVertices[_0xcaf1('0x12')][_0xcaf1('0x99')]=function(_0x135295){try{var _0x1d046f=JSON[_0xcaf1('0x72')](_0x135295);this['recursiveNodeIndex'](_0x1d046f);return JSON[_0xcaf1('0x79')](_0x1d046f);}catch(_0x16a04d){return this[_0xcaf1('0x9a')](_0x135295);}};AGIVertices[_0xcaf1('0x12')]['replaceAllVariables']=function(_0xee65e5){var _0x1bcd8e=_0xee65e5[_0xcaf1('0xa3')]('{');for(var _0x24f5d4=0x1;_0x24f5d4<_0x1bcd8e[_0xcaf1('0xa1')];_0x24f5d4+=0x1){var _0x40bbd8=_0x1bcd8e[_0x24f5d4][_0xcaf1('0xa3')]('}');if(_0x40bbd8['length']>0x1){_0xee65e5=_0xee65e5['replaceAll']('{'+_0x40bbd8[0x0]+'}',this[_0xcaf1('0x10')][_0xcaf1('0x13')](_0x40bbd8[0x0])[_0xcaf1('0xa4')]||_0x40bbd8[0x0]);}}if(_0x1bcd8e['length']===0x1){return _0xee65e5[_0xcaf1('0x52')]();}return this[_0xcaf1('0x9a')](_0xee65e5);};AGIVertices[_0xcaf1('0x12')]['getAndSetVariable']=function(_0x51d4a3,_0x187be9){var _0x39e0f2=this['channel'][_0xcaf1('0x13')](_0x51d4a3);if(_0x39e0f2[_0xcaf1('0xa5')]===-0x1){return _0x39e0f2;}logger['info'](util[_0xcaf1('0x5b')](_0xcaf1('0xa6'),_0x187be9,_0x39e0f2[_0xcaf1('0xa4')]));return this[_0xcaf1('0x10')][_0xcaf1('0xa2')](_0x187be9,_0x39e0f2[_0xcaf1('0xa4')]);};AGIVertices[_0xcaf1('0x12')][_0xcaf1('0xa7')]=function(_0x5be20e){return _0x5be20e&&_0x5be20e!=='0'&&_0x5be20e!=='-1'&&_0x5be20e!=='';};AGIVertices['prototype'][_0xcaf1('0xa8')]=function(_0x49a69e){this[_0xcaf1('0x38')][_0xcaf1('0x77')](this,_0x49a69e,'-');_0x49a69e[_0xcaf1('0xa9')]=_0x49a69e['maxRetry'];return{'code':0xc8,'result':'-'};};AGIVertices[_0xcaf1('0x12')][_0xcaf1('0xaa')]=function(_0x3c5e43){logger[_0xcaf1('0x2f')](util[_0xcaf1('0x5b')](_0xcaf1('0xab'),_0x3c5e43[_0xcaf1('0x39')]));if(!this['isConfigured'](_0x3c5e43['text'])){return this[_0xcaf1('0x10')][_0xcaf1('0xac')](_0xcaf1('0xad'));}var _0x402d14='\x22'+_0x3c5e43[_0xcaf1('0x62')]+'\x22';if(this['isConfigured'](_0x3c5e43[_0xcaf1('0x7f')])){_0x402d14+=','+_0x3c5e43[_0xcaf1('0x7f')];}var _0x101f34=this['channel'][_0xcaf1('0xae')](_0xcaf1('0xaf'),_0x402d14);if(_0x101f34['result']===-0x1){return _0x101f34;}return this[_0xcaf1('0x10')]['noop'](util['format'](_0xcaf1('0xb0'),_0x402d14));};AGIVertices[_0xcaf1('0x12')][_0xcaf1('0xb1')]=function(_0xfdf053){logger[_0xcaf1('0x2f')](util[_0xcaf1('0x5b')](_0xcaf1('0xb2'),_0xfdf053[_0xcaf1('0x39')]));if(!this['isConfigured'](_0xfdf053[_0xcaf1('0xb3')])){return this[_0xcaf1('0x10')][_0xcaf1('0xac')](_0xcaf1('0xb4'));}var _0x258461=_0xfdf053[_0xcaf1('0xb3')];if(this[_0xcaf1('0xa7')](_0xfdf053[_0xcaf1('0x7f')])){_0x258461+=','+_0xfdf053[_0xcaf1('0x7f')];}var _0x53e98a=this['channel'][_0xcaf1('0xae')]('MRCPRecog',_0x258461);if(_0x53e98a[_0xcaf1('0xa5')]===-0x1){return _0x53e98a;}var _0x5f0be2=this[_0xcaf1('0xb5')](_0xcaf1('0xb6'),_0xcaf1('0xb7'));if(_0x5f0be2[_0xcaf1('0xa5')]===-0x1){return _0x5f0be2;}var _0x13369a=this['getAndSetVariable'](_0xcaf1('0xb8'),_0xcaf1('0xb9'));if(_0x13369a[_0xcaf1('0xa5')]===-0x1){return _0x13369a;}var _0x4c0407=this[_0xcaf1('0xb5')](_0xcaf1('0xba'),'MRCP_RECOG_INSTANCE');if(_0x4c0407[_0xcaf1('0xa5')]===-0x1){return _0x4c0407;}return this[_0xcaf1('0x10')][_0xcaf1('0xac')](util['format'](_0xcaf1('0xbb'),_0x258461));};AGIVertices[_0xcaf1('0x12')][_0xcaf1('0x8')]=function(_0x209a8a){logger[_0xcaf1('0x2f')](util[_0xcaf1('0x5b')](_0xcaf1('0xbc'),_0x209a8a[_0xcaf1('0x39')]));return this[_0xcaf1('0x10')][_0xcaf1('0x8')]([_0x209a8a[_0xcaf1('0xbd')],_0x209a8a[_0xcaf1('0xbe')]]);};AGIVertices[_0xcaf1('0x12')][_0xcaf1('0xbf')]=function(_0x52918e){logger[_0xcaf1('0x2f')](util[_0xcaf1('0x5b')](_0xcaf1('0xc0'),_0x52918e[_0xcaf1('0x39')]));if(this[_0xcaf1('0xa7')](_0x52918e[_0xcaf1('0x6e')])){logger[_0xcaf1('0x2f')](util[_0xcaf1('0x5b')](_0xcaf1('0xc1'),_0x52918e[_0xcaf1('0x6e')]));var _0x216430=this[_0xcaf1('0x10')][_0xcaf1('0xc2')](_0x52918e[_0xcaf1('0x6e')]);if(_0x216430[_0xcaf1('0xa5')]===-0x1){return _0x216430;}}return this['channel'][_0xcaf1('0xbf')]();};AGIVertices[_0xcaf1('0x12')][_0xcaf1('0x50')]=function(_0x52d453){logger['info'](util[_0xcaf1('0x5b')](_0xcaf1('0xc3'),_0x52d453[_0xcaf1('0x39')]));if(!this[_0xcaf1('0xa7')](_0x52d453[_0xcaf1('0x4e')])){return this[_0xcaf1('0x10')][_0xcaf1('0x34')](_0x52d453,'no\x20list\x20selected');}_0x52d453[_0xcaf1('0x4f')]=moment();if(this['isConfigured'](_0x52d453[_0xcaf1('0xc4')])){_0x52d453[_0xcaf1('0x4f')]=moment()[_0xcaf1('0xc5')](_0x52d453['delay'],_0xcaf1('0xc6'));}if(!this['isConfigured'](_0x52d453['callback_priority'])){_0x52d453[_0xcaf1('0x53')]=0x2;}this['createCmContact'][_0xcaf1('0x77')](this,_0x52d453);return this[_0xcaf1('0x10')]['noop'](util[_0xcaf1('0x5b')]('CALLBACK\x20added\x20phone:\x20%s\x20on\x20list:\x20%s\x20at\x20%s',_0x52d453[_0xcaf1('0x4d')],_0x52d453[_0xcaf1('0x4e')],_0x52d453[_0xcaf1('0x4f')]));};AGIVertices[_0xcaf1('0x12')]['custom_app']=function(_0x1f5c94){logger['info'](util['format'](_0xcaf1('0xc7'),_0x1f5c94['label']));var _0x120876=this[_0xcaf1('0x10')][_0xcaf1('0xae')](_0x1f5c94['application'],_0x1f5c94['options']);if(_0x120876[_0xcaf1('0xa5')]===-0x1){return _0x120876;}return this[_0xcaf1('0x10')][_0xcaf1('0xac')](util[_0xcaf1('0x5b')]('Executed\x20command\x20%s\x20%s',_0x1f5c94['application'],_0x1f5c94[_0xcaf1('0x7f')]));};AGIVertices['prototype'][_0xcaf1('0xc8')]=function(_0x42cc1a){logger[_0xcaf1('0x2f')](util[_0xcaf1('0x5b')](_0xcaf1('0xc9'),_0x42cc1a[_0xcaf1('0x39')]));if(!this['isConfigured'](_0x42cc1a[_0xcaf1('0x62')])){return this[_0xcaf1('0x10')][_0xcaf1('0xac')](_0xcaf1('0xad'));}var _0x4d0e39='\x22'+_0x42cc1a[_0xcaf1('0x62')]+'\x22';if(this['isConfigured'](_0x42cc1a[_0xcaf1('0x7f')])){_0x4d0e39+=','+_0x42cc1a[_0xcaf1('0x7f')];}var _0x2c2841=this[_0xcaf1('0x10')][_0xcaf1('0xae')](_0xcaf1('0xaf'),_0x4d0e39);if(_0x2c2841['result']===-0x1){return _0x2c2841;}return this[_0xcaf1('0x10')][_0xcaf1('0xac')](util[_0xcaf1('0x5b')](_0xcaf1('0xb0'),_0x4d0e39));};AGIVertices[_0xcaf1('0x12')][_0xcaf1('0xca')]=function(_0x126ae2){logger[_0xcaf1('0x2f')](util[_0xcaf1('0x5b')](_0xcaf1('0xcb'),_0x126ae2[_0xcaf1('0x39')]));if(!this['isConfigured'](_0x126ae2[_0xcaf1('0x62')])){return this[_0xcaf1('0x10')][_0xcaf1('0xac')](_0xcaf1('0xad'));}var _0x26c2fa='\x22'+_0x126ae2['text']+'\x22';if(this['isConfigured'](_0x126ae2['options'])){_0x26c2fa+=','+_0x126ae2[_0xcaf1('0x7f')];}var _0x2c6d30=this[_0xcaf1('0x10')]['exec'](_0xcaf1('0xaf'),_0x26c2fa);if(_0x2c6d30[_0xcaf1('0xa5')]===-0x1){return _0x2c6d30;}return this['channel'][_0xcaf1('0xac')](util[_0xcaf1('0x5b')](_0xcaf1('0xb0'),_0x26c2fa));};AGIVertices['prototype'][_0xcaf1('0xcc')]=function(_0x1ce055){logger[_0xcaf1('0x2f')](util['format'](_0xcaf1('0xcd'),_0x1ce055[_0xcaf1('0x39')]));if(!this[_0xcaf1('0xa7')](_0x1ce055[_0xcaf1('0xb3')])){return this[_0xcaf1('0x10')]['noop'](_0xcaf1('0xb4'));}var _0x2586ff=_0x1ce055[_0xcaf1('0xb3')];if(this[_0xcaf1('0xa7')](_0x1ce055['options'])){_0x2586ff+=','+_0x1ce055[_0xcaf1('0x7f')];}var _0x5db3af=this[_0xcaf1('0x10')]['exec']('MRCPRecog',_0x2586ff);if(_0x5db3af[_0xcaf1('0xa5')]===-0x1){return _0x5db3af;}var _0x23bb4e=this[_0xcaf1('0xb5')](_0xcaf1('0xb6'),_0xcaf1('0xce'));if(_0x23bb4e['result']===-0x1){return _0x23bb4e;}var _0x4842dd=this[_0xcaf1('0xb5')](_0xcaf1('0xb8'),_0xcaf1('0xcf'));if(_0x4842dd[_0xcaf1('0xa5')]===-0x1){return _0x4842dd;}var _0x5b06a1=this[_0xcaf1('0xb5')](_0xcaf1('0xba'),'LUMENVOX_ASR_INSTANCE');if(_0x5b06a1['result']===-0x1){return _0x5b06a1;}return this[_0xcaf1('0x10')][_0xcaf1('0xac')](util[_0xcaf1('0x5b')](_0xcaf1('0xbb'),_0x2586ff));};AGIVertices[_0xcaf1('0x12')]['sestekasr']=function(_0xff20cd){logger[_0xcaf1('0x2f')](util['format'](_0xcaf1('0xd0'),_0xff20cd[_0xcaf1('0x39')]));if(!this[_0xcaf1('0xa7')](_0xff20cd[_0xcaf1('0xb3')])){return this['channel']['noop'](_0xcaf1('0xb4'));}var _0x57b90d=_0xff20cd['grammar'];if(this[_0xcaf1('0xa7')](_0xff20cd[_0xcaf1('0x7f')])){_0x57b90d+=','+_0xff20cd[_0xcaf1('0x7f')];}var _0x46b56a=this[_0xcaf1('0x10')][_0xcaf1('0xae')](_0xcaf1('0xd1'),_0x57b90d);if(_0x46b56a[_0xcaf1('0xa5')]===-0x1){return _0x46b56a;}var _0xd7369b=this[_0xcaf1('0xb5')]('RECOG_CONFIDENCE()',_0xcaf1('0xd2'));if(_0xd7369b['result']===-0x1){return _0xd7369b;}var _0x5ead0d=this[_0xcaf1('0xb5')](_0xcaf1('0xb8'),_0xcaf1('0xd3'));if(_0x5ead0d[_0xcaf1('0xa5')]===-0x1){return _0x5ead0d;}var _0x1a436a=this[_0xcaf1('0xb5')](_0xcaf1('0xba'),'SESTEK_ASR_INSTANCE');if(_0x1a436a['result']===-0x1){return _0x1a436a;}return this[_0xcaf1('0x10')][_0xcaf1('0xac')](util['format'](_0xcaf1('0xbb'),_0x57b90d));};AGIVertices['prototype'][_0xcaf1('0xd4')]=function(_0x24569d){logger[_0xcaf1('0x2f')](util['format'](_0xcaf1('0xd5'),_0x24569d[_0xcaf1('0x39')]));if(!this[_0xcaf1('0xa7')](_0x24569d[_0xcaf1('0xd6')])){return this[_0xcaf1('0x10')][_0xcaf1('0x34')](_0x24569d,_0xcaf1('0xd7'));}var _0x5515b8=this['getSquareOdbc'][_0xcaf1('0x77')](this,_0x24569d[_0xcaf1('0xd6')]);if(!_0x5515b8){return this[_0xcaf1('0x10')][_0xcaf1('0x34')](_0x24569d,_0xcaf1('0xd8'));}if(!this['isConfigured'](_0x24569d[_0xcaf1('0xd9')])){return this['channel']['error'](_0x24569d,'no\x20query\x20configured');}var _0x3fae08=_0x24569d[_0xcaf1('0xd9')]['replace'](/(\r\n|\n|\r)/gm,'\x20');this[_0xcaf1('0x10')][_0xcaf1('0xac')](util[_0xcaf1('0x5b')](_0xcaf1('0xda'),_0x3fae08));var _0x3fa7d5=this[_0xcaf1('0x2c')][_0xcaf1('0x77')](this,_0x5515b8,_0x3fae08);this['createSquareDetailsReport'][_0xcaf1('0x77')](this,_0x24569d,_0x3fae08);if(!this[_0xcaf1('0xa7')](_0x24569d[_0xcaf1('0xdb')])){return this[_0xcaf1('0x10')]['noop'](_0xcaf1('0xdc'));}var _0x4d7a4c=this[_0xcaf1('0x13')][_0xcaf1('0x77')](this,_0x24569d[_0xcaf1('0xdb')]);if(!_0x4d7a4c){return this['channel'][_0xcaf1('0x34')](_0x24569d,_0xcaf1('0xdd'));}var _0x850e59=this;_0x3fa7d5['forEach'](function(_0xa246ae,_0xd971cf){Object[_0xcaf1('0xde')](_0xa246ae)[_0xcaf1('0xdf')](function(_0xa316f1){_0x850e59[_0xcaf1('0x10')][_0xcaf1('0xa2')](util[_0xcaf1('0x5b')](_0xcaf1('0xe0'),_0x4d7a4c,_0xd971cf,_0xa316f1),_0xa246ae[_0xa316f1]);});});this[_0xcaf1('0x10')][_0xcaf1('0xa2')](util[_0xcaf1('0x5b')](_0xcaf1('0xe1'),_0x4d7a4c),_0x3fa7d5['length']);return this[_0xcaf1('0x10')][_0xcaf1('0xac')](util['format'](_0xcaf1('0xe2'),_0x4d7a4c));};AGIVertices[_0xcaf1('0x12')][_0xcaf1('0xe3')]=function(_0x4f8570){logger[_0xcaf1('0xe4')](util[_0xcaf1('0x5b')]('Enter\x20in\x20DIAL\x20(%s)\x20block',_0x4f8570[_0xcaf1('0x39')]));if(!this[_0xcaf1('0xa7')](_0x4f8570[_0xcaf1('0xe5')])){return this[_0xcaf1('0x10')][_0xcaf1('0x34')](_0x4f8570,_0xcaf1('0xe6'));}var _0xe1512c=this[_0xcaf1('0x1e')]['sync'](this,_0x4f8570[_0xcaf1('0xe5')]);if(!_0xe1512c){return this[_0xcaf1('0x10')][_0xcaf1('0x34')](_0x4f8570,_0xcaf1('0xe7'));}var _0x403bf5=this['channel'][_0xcaf1('0xae')](_0xcaf1('0xe8'),[util[_0xcaf1('0x5b')]('SIP/%s',_0xe1512c),_0x4f8570[_0xcaf1('0x6e')],_0x4f8570[_0xcaf1('0xe9')],_0x4f8570[_0xcaf1('0x6c')]]);if(_0x403bf5[_0xcaf1('0xa5')]===-0x1){return _0x403bf5;}return this['channel'][_0xcaf1('0xac')](util[_0xcaf1('0x5b')](_0xcaf1('0xea'),_0xcaf1('0xe8')));};AGIVertices['prototype'][_0xcaf1('0xeb')]=function(_0x5828f3){logger[_0xcaf1('0x2f')](util[_0xcaf1('0x5b')](_0xcaf1('0xec'),_0x5828f3[_0xcaf1('0x39')]));if(!this[_0xcaf1('0xa7')](_0x5828f3[_0xcaf1('0x81')])){return this['channel'][_0xcaf1('0xac')](_0xcaf1('0xed'));}if(!this[_0xcaf1('0xa7')](_0x5828f3[_0xcaf1('0x62')])){return this[_0xcaf1('0x10')][_0xcaf1('0xac')](_0xcaf1('0xad'));}this[_0xcaf1('0x10')][_0xcaf1('0xee')]=!![];this[_0xcaf1('0x38')](_0x5828f3);this[_0xcaf1('0x46')](_0x5828f3[_0xcaf1('0x62')],'in');this[_0xcaf1('0x10')][_0xcaf1('0xac')](util[_0xcaf1('0x5b')](_0xcaf1('0xef'),_0x5828f3[_0xcaf1('0x62')]));var _0x3f0d6c=this[_0xcaf1('0x80')][_0xcaf1('0x77')](this,_0x5828f3);if(_0x3f0d6c){for(var _0x1420cb in _0x3f0d6c){if(_0x3f0d6c[_0xcaf1('0x9c')](_0x1420cb)){this[_0xcaf1('0x10')][_0xcaf1('0xa2')](util[_0xcaf1('0x5b')](_0xcaf1('0xf0'),_0x1420cb[_0xcaf1('0xf1')]()),_0x3f0d6c[_0x1420cb]);}}this['createSquareMessage'](_0x3f0d6c[_0xcaf1('0xf2')],'out');return this[_0xcaf1('0x10')]['noop'](util['format'](_0xcaf1('0xf3'),_0x3f0d6c['speech']));}return this[_0xcaf1('0x10')][_0xcaf1('0x34')](_0x5828f3,_0xcaf1('0xf4'));};AGIVertices[_0xcaf1('0x12')][_0xcaf1('0xf5')]=function(_0x2833c2){logger[_0xcaf1('0x2f')](util[_0xcaf1('0x5b')](_0xcaf1('0xf6'),_0x2833c2['label']));if(!this['isConfigured'](_0x2833c2[_0xcaf1('0xf7')])){return this[_0xcaf1('0x10')][_0xcaf1('0xac')](_0xcaf1('0xf8'));}if(!this[_0xcaf1('0xa7')](_0x2833c2[_0xcaf1('0xf9')])){return this['channel'][_0xcaf1('0xac')]('no\x20username\x20configured');}if(!this[_0xcaf1('0xa7')](_0x2833c2[_0xcaf1('0xfa')])){return this[_0xcaf1('0x10')][_0xcaf1('0xac')](_0xcaf1('0xfb'));}if(!this[_0xcaf1('0xa7')](_0x2833c2[_0xcaf1('0xfc')])){return this[_0xcaf1('0x10')][_0xcaf1('0xac')]('no\x20text\x20configured');}this[_0xcaf1('0x10')][_0xcaf1('0xee')]=!![];this['createSquareDetailsReport'](_0x2833c2);this['createSquareMessage'](_0x2833c2[_0xcaf1('0x62')],'in');this[_0xcaf1('0x10')][_0xcaf1('0xac')](util[_0xcaf1('0x5b')](_0xcaf1('0xfd'),_0x2833c2['text']));var _0x79c0d2=this[_0xcaf1('0x82')]['sync'](this,_0x2833c2);if(_0x79c0d2){for(var _0x2f92b6 in _0x79c0d2){if(_0x79c0d2[_0xcaf1('0x9c')](_0x2f92b6)){this['channel'][_0xcaf1('0xa2')](util[_0xcaf1('0x5b')](_0xcaf1('0xfe'),_0x2f92b6[_0xcaf1('0xf1')]()),_0x79c0d2[_0x2f92b6]);}}this[_0xcaf1('0x46')](_0x79c0d2['speech'],'out');if(_0x79c0d2['audiofile']){this[_0xcaf1('0x10')][_0xcaf1('0xac')](util[_0xcaf1('0x5b')](_0xcaf1('0xff'),_0x79c0d2['audiofile']));var _0x1670e3=this['channel'][_0xcaf1('0x100')](_0x79c0d2[_0xcaf1('0x101')]);try{fs['unlink'](_0x79c0d2[_0xcaf1('0x101')]+_0xcaf1('0x102'));}catch(_0x1f6bb0){logger[_0xcaf1('0x34')](_0x1f6bb0);}return _0x1670e3;}else{return this[_0xcaf1('0x10')][_0xcaf1('0xac')](util[_0xcaf1('0x5b')](_0xcaf1('0x103'),_0x79c0d2['speech']));}}return this['channel'][_0xcaf1('0x34')](_0x2833c2,_0xcaf1('0x104'));};AGIVertices[_0xcaf1('0x12')][_0xcaf1('0x105')]=function(_0x42ae2e){logger[_0xcaf1('0x2f')](util[_0xcaf1('0x5b')]('Enter\x20in\x20END\x20(%s)\x20block',_0x42ae2e[_0xcaf1('0x39')]));return this[_0xcaf1('0x10')][_0xcaf1('0xac')]('end');};AGIVertices[_0xcaf1('0x12')][_0xcaf1('0x106')]=function(_0x412da6){logger[_0xcaf1('0x2f')](util['format'](_0xcaf1('0x107'),_0x412da6[_0xcaf1('0x39')]));var _0x8b589b='';if(_0x412da6[_0xcaf1('0x108')]){if(!this[_0xcaf1('0xa7')](_0x412da6['trunk_id'])){return this[_0xcaf1('0x10')][_0xcaf1('0x34')](_0x412da6,_0xcaf1('0x109'));}else{var _0xe09728=parseInt(_0x412da6[_0xcaf1('0x108')],0xa);if(isNaN(_0xe09728)){_0x8b589b=_0x412da6[_0xcaf1('0x108')];}else{_0x8b589b=this[_0xcaf1('0x20')]['sync'](this,_0x412da6[_0xcaf1('0x108')]);if(!_0x8b589b){return this[_0xcaf1('0x10')][_0xcaf1('0x34')](_0x412da6,_0xcaf1('0x10a'));}}}}else if(_0x412da6[_0xcaf1('0x10b')]){_0x8b589b=_0x412da6[_0xcaf1('0x10b')];}else{return this[_0xcaf1('0x10')][_0xcaf1('0x34')](_0x412da6,_0xcaf1('0x109'));}var _0x523b9b=this[_0xcaf1('0x10')][_0xcaf1('0xae')](_0xcaf1('0xe8'),[util[_0xcaf1('0x5b')](_0xcaf1('0x10c'),_0x8b589b,_0x412da6[_0xcaf1('0x4d')]),_0x412da6[_0xcaf1('0x6e')],_0x412da6[_0xcaf1('0xe9')],_0x412da6[_0xcaf1('0x6c')]]);if(_0x523b9b[_0xcaf1('0xa5')]===-0x1){return _0x523b9b;}return this[_0xcaf1('0x10')][_0xcaf1('0xac')](util[_0xcaf1('0x5b')](_0xcaf1('0xea'),_0xcaf1('0xe8')));};AGIVertices['prototype'][_0xcaf1('0x10d')]=function(_0x39a60d){logger[_0xcaf1('0x2f')](util[_0xcaf1('0x5b')](_0xcaf1('0x10e'),_0x39a60d['label']));return this['channel']['noop'](_0xcaf1('0x10d'));};AGIVertices['prototype'][_0xcaf1('0xe')]=function(_0x3e567d){logger[_0xcaf1('0x2f')](util[_0xcaf1('0x5b')](_0xcaf1('0x10f'),_0x3e567d[_0xcaf1('0x39')]));if(_0x3e567d[_0xcaf1('0xa9')]===0x0){return this[_0xcaf1('0xa8')](_0x3e567d);}_0x3e567d[_0xcaf1('0xa9')]-=0x1;if(!this[_0xcaf1('0xa7')](_0x3e567d['file_id'])){return this[_0xcaf1('0x10')][_0xcaf1('0x34')](_0x3e567d,'no\x20file\x20audio\x20selected');}var _0x4e6abe=this[_0xcaf1('0x22')][_0xcaf1('0x77')](this,_0x3e567d[_0xcaf1('0x110')]);if(!_0x4e6abe){return this[_0xcaf1('0x10')][_0xcaf1('0x34')](_0x3e567d,'no\x20file\x20audio\x20found');}if(!this[_0xcaf1('0xa7')](_0x3e567d[_0xcaf1('0xdb')])){return this[_0xcaf1('0x10')][_0xcaf1('0x34')](_0xcaf1('0xdc'));}var _0xdc36f2=this['channel'][_0xcaf1('0x111')](_0x4e6abe,_0x3e567d[_0xcaf1('0x112')],_0x3e567d[_0xcaf1('0x113')]);var _0x15c11b=_0xdc36f2[_0xcaf1('0xa5')]?_0xdc36f2[_0xcaf1('0xa5')][_0xcaf1('0x52')]():'';logger['info']('test',JSON[_0xcaf1('0x79')](_0xdc36f2));if(_0xdc36f2['result']===-0x1){this[_0xcaf1('0x38')]['sync'](this,_0x3e567d,_0x15c11b);return _0xdc36f2;}else if(_0xdc36f2[_0xcaf1('0xa4')]===_0xcaf1('0x6e')){_0xdc36f2[_0xcaf1('0xa5')]=_0x15c11b[_0xcaf1('0xa1')]>=parseInt(_0x3e567d[_0xcaf1('0x114')])?'x':'i';}else{_0xdc36f2[_0xcaf1('0xa5')]=_0x15c11b[_0xcaf1('0xa1')]>=parseInt(_0x3e567d[_0xcaf1('0x114')])&&_0x15c11b['length']<=parseInt(_0x3e567d[_0xcaf1('0x113')])?'x':'i';}var _0x2f8c5d=this['getVariable']['sync'](this,_0x3e567d[_0xcaf1('0xdb')]);if(!_0x2f8c5d){return this[_0xcaf1('0x10')][_0xcaf1('0x34')](_0x3e567d,_0xcaf1('0xdd'));}this[_0xcaf1('0x10')]['setVariable'](_0x2f8c5d,_0x15c11b);if(this[_0xcaf1('0xa7')](_0x3e567d[_0xcaf1('0x115')])){var _0x53c093=parseInt(_0x3e567d[_0xcaf1('0x115')],0xa);var _0x1212df=rs['generate']({'charset':'*','length':_0x53c093});var _0x368268=_0x15c11b[_0xcaf1('0xa1')];if(_0x368268>0x0){if(_0x368268>_0x53c093){this['createSquareDetailsReport']['sync'](this,_0x3e567d,_0x3e567d[_0xcaf1('0x116')]==='first'?_0x1212df+_0x15c11b[_0xcaf1('0x117')](_0x53c093):_0x15c11b['substr'](0x0,_0x368268-_0x53c093)+_0x1212df);}else{this['createSquareDetailsReport']['sync'](this,_0x3e567d,rs['generate']({'charset':'*','length':_0x368268}));}}else{this[_0xcaf1('0x38')][_0xcaf1('0x77')](this,_0x3e567d,'');}}else{this[_0xcaf1('0x38')]['sync'](this,_0x3e567d,_0x15c11b);}return _0xdc36f2;};AGIVertices[_0xcaf1('0x12')][_0xcaf1('0xf')]=function(_0x432c2f){logger[_0xcaf1('0x2f')](util[_0xcaf1('0x5b')](_0xcaf1('0x118'),_0x432c2f['label']));return this[_0xcaf1('0xe')](_0x432c2f);};AGIVertices[_0xcaf1('0x12')][_0xcaf1('0x119')]=function(_0x2484f5){logger[_0xcaf1('0x2f')](util[_0xcaf1('0x5b')](_0xcaf1('0x11a'),_0x2484f5[_0xcaf1('0x39')]));this[_0xcaf1('0x38')][_0xcaf1('0x77')](this,_0x2484f5,_0x2484f5[_0xcaf1('0x11b')]);return this[_0xcaf1('0x10')][_0xcaf1('0xac')](util['format']('GOAL\x20%s',_0x2484f5['goalname']));};AGIVertices[_0xcaf1('0x12')]['awspolly']=function(_0x2f2b22){logger[_0xcaf1('0x2f')](util[_0xcaf1('0x5b')]('[AGI]\x20Enter\x20in\x20AWSPOLLY\x20(%s)\x20block',_0x2f2b22[_0xcaf1('0x39')]));if(!this['isConfigured'](_0x2f2b22[_0xcaf1('0x8a')])||!this['isConfigured'](_0x2f2b22['aws_secret_access_key'])){return this['channel'][_0xcaf1('0xac')](_0xcaf1('0x11c'));}if(!this[_0xcaf1('0xa7')](_0x2f2b22[_0xcaf1('0x62')])){return this[_0xcaf1('0x10')][_0xcaf1('0xac')]('no\x20text\x20configured');}this[_0xcaf1('0x10')][_0xcaf1('0xac')](util[_0xcaf1('0x5b')]('Trying\x20aws\x20Polly\x20%s',_0x2f2b22[_0xcaf1('0x62')]));var _0x12310c=this[_0xcaf1('0x89')][_0xcaf1('0x77')](this,_0x2f2b22);if(_0x12310c){this[_0xcaf1('0x10')]['noop'](util[_0xcaf1('0x5b')](_0xcaf1('0x11d'),_0x12310c));var _0x1faba4=this[_0xcaf1('0x10')][_0xcaf1('0x100')](_0x12310c);try{fs[_0xcaf1('0x11e')](_0x12310c+'.wav');}catch(_0x4e7c8c){logger['error'](_0x4e7c8c);}return _0x1faba4;}return this['channel'][_0xcaf1('0x34')](_0x2f2b22,'aws\x20Polly\x20is\x20unreachable');};AGIVertices[_0xcaf1('0x12')][_0xcaf1('0x11f')]=function(_0x2e7fa8){logger[_0xcaf1('0x2f')](util[_0xcaf1('0x5b')]('Enter\x20in\x20Amazon\x20Lex\x20(%s)\x20block',_0x2e7fa8[_0xcaf1('0x39')]));if(!this[_0xcaf1('0xa7')](_0x2e7fa8[_0xcaf1('0x8a')])||!this[_0xcaf1('0xa7')](_0x2e7fa8[_0xcaf1('0x8b')])){return this['channel'][_0xcaf1('0xac')](_0xcaf1('0x11c'));}if(!this['isConfigured'](_0x2e7fa8['aws_bot_name'])){return this[_0xcaf1('0x10')]['noop']('no\x20bot\x20name\x20configured');}if(!this[_0xcaf1('0xa7')](_0x2e7fa8[_0xcaf1('0x62')])){return this['channel']['noop']('no\x20text\x20configured');}this[_0xcaf1('0x10')][_0xcaf1('0xee')]=!![];this[_0xcaf1('0x38')](_0x2e7fa8);this['createSquareMessage'](_0x2e7fa8['text'],'in');this['channel'][_0xcaf1('0xac')](util[_0xcaf1('0x5b')](_0xcaf1('0x120'),_0x2e7fa8[_0xcaf1('0x62')]));var _0x528f4e=this[_0xcaf1('0x8f')][_0xcaf1('0x77')](this,_0x2e7fa8);if(_0x528f4e){for(var _0x4f00a9 in _0x528f4e){if(_0x528f4e['hasOwnProperty'](_0x4f00a9)&&_[_0xcaf1('0x121')](_0x528f4e[_0x4f00a9])){this[_0xcaf1('0x10')][_0xcaf1('0xa2')](util[_0xcaf1('0x5b')](_0xcaf1('0x122'),_0x4f00a9[_0xcaf1('0xf1')]()),_0x528f4e[_0x4f00a9]);}}if(_['isNil'](_0x528f4e[_0xcaf1('0x7d')])){return this[_0xcaf1('0x10')]['noop'](_0xcaf1('0x123'));}else{this[_0xcaf1('0x46')](_0x528f4e[_0xcaf1('0x7d')],_0xcaf1('0x124'));return this[_0xcaf1('0x10')][_0xcaf1('0xac')](util[_0xcaf1('0x5b')](_0xcaf1('0x125'),_0x528f4e[_0xcaf1('0x7d')]));}}return this[_0xcaf1('0x10')]['error'](_0x2e7fa8,_0xcaf1('0x126'));};AGIVertices[_0xcaf1('0x12')][_0xcaf1('0x127')]=function(_0x4d18b9){logger[_0xcaf1('0x2f')](util[_0xcaf1('0x5b')](_0xcaf1('0x128'),_0x4d18b9[_0xcaf1('0x39')],_0x4d18b9[_0xcaf1('0x6e')]));if(!this[_0xcaf1('0xa7')](_0x4d18b9[_0xcaf1('0x81')])){return this[_0xcaf1('0x10')][_0xcaf1('0xac')](_0xcaf1('0xed'));}var _0x467c0b=_0xcaf1('0x129');var _0x17a0dd=util[_0xcaf1('0x5b')](_0xcaf1('0x12a'),FILES_PATH,rs[_0xcaf1('0x12b')](0x4));var _0x43c66c=util['format'](_0xcaf1('0xa0'),_0x17a0dd,_0x467c0b);var _0x5b6270=!![];if(_0x4d18b9[_0xcaf1('0x12c')]===_0xcaf1('0x12d')){_0x5b6270=![];}var _0x360171=this['channel'][_0xcaf1('0x12e')](_0x17a0dd,_0x467c0b,_0x4d18b9[_0xcaf1('0x12f')],_0x4d18b9[_0xcaf1('0x6e')],undefined,_0x5b6270);if(_0x360171[_0xcaf1('0xa5')]!==-0x1){this[_0xcaf1('0x10')][_0xcaf1('0xac')](util['format'](_0xcaf1('0x130'),_0x43c66c));var _0x220f8c=this[_0xcaf1('0x92')][_0xcaf1('0x77')](this,_0x4d18b9,_0x43c66c);if(_0x220f8c){for(var _0x4e20a6 in _0x220f8c){if(_0x220f8c[_0xcaf1('0x9c')](_0x4e20a6)){this[_0xcaf1('0x10')]['setVariable'](util['format'](_0xcaf1('0x131'),_0x4e20a6['toUpperCase']()),_0x220f8c[_0x4e20a6]);}}return this[_0xcaf1('0x10')][_0xcaf1('0xac')](util['format']('GoogleASR\x20Result\x20%s',JSON[_0xcaf1('0x79')](_0x220f8c)));}}return _0x360171;};AGIVertices[_0xcaf1('0x12')]['tildeasr']=function(_0xf68591){logger['info'](util[_0xcaf1('0x5b')](_0xcaf1('0x132'),_0xf68591[_0xcaf1('0x39')]));if(!this['isConfigured'](_0xf68591[_0xcaf1('0x95')])){return this['channel'][_0xcaf1('0xac')](_0xcaf1('0x133'));}if(!this[_0xcaf1('0xa7')](_0xf68591[_0xcaf1('0x96')])){return this[_0xcaf1('0x10')]['noop'](_0xcaf1('0x134'));}var _0x48f130='wav';var _0x367037=util[_0xcaf1('0x5b')](_0xcaf1('0x12a'),FILES_PATH,rs['generate'](0x4));var _0x5c7116=util['format'](_0xcaf1('0xa0'),_0x367037,_0x48f130);var _0x2dc24d=!![];if(_0xf68591['beep']===_0xcaf1('0x12d')){_0x2dc24d=![];}var _0x3cc030=this[_0xcaf1('0x10')][_0xcaf1('0x12e')](_0x367037,_0x48f130,_0xf68591[_0xcaf1('0x12f')],_0xf68591[_0xcaf1('0x6e')],undefined,_0x2dc24d);if(_0x3cc030[_0xcaf1('0xa5')]!==-0x1){this[_0xcaf1('0x10')][_0xcaf1('0xac')](util[_0xcaf1('0x5b')]('tilde\x20%s\x20file\x20created',_0x5c7116));var _0x594ef8=this['tildeASR'][_0xcaf1('0x77')](this,_0xf68591,_0x5c7116);if(_0x594ef8){for(var _0x7a4e15 in _0x594ef8){if(_0x594ef8[_0xcaf1('0x9c')](_0x7a4e15)){this[_0xcaf1('0x10')]['setVariable'](util['format'](_0xcaf1('0x135'),_0x7a4e15[_0xcaf1('0xf1')]()),_0x594ef8[_0x7a4e15]);}}return this['channel'][_0xcaf1('0xac')](util['format']('TildeASR\x20Result\x20%s',JSON['stringify'](_0x594ef8)));}}return _0x3cc030;};AGIVertices[_0xcaf1('0x12')][_0xcaf1('0x136')]=function(_0x3f6a09){logger[_0xcaf1('0x2f')](util['format'](_0xcaf1('0x137'),_0x3f6a09['label']));return this[_0xcaf1('0x10')][_0xcaf1('0x138')](_0x3f6a09[_0xcaf1('0x40')],_0x3f6a09[_0xcaf1('0x41')],_0x3f6a09[_0xcaf1('0x42')]);};AGIVertices['prototype'][_0xcaf1('0x139')]=function(_0x87b289){logger[_0xcaf1('0x2f')](util[_0xcaf1('0x5b')]('Enter\x20in\x20GOTOIF\x20(%s)\x20block',_0x87b289['label']));if(!this[_0xcaf1('0xa7')](_0x87b289[_0xcaf1('0x13a')])){return this[_0xcaf1('0x10')][_0xcaf1('0x34')](_0x87b289,_0xcaf1('0x13b'));}try{var _0x24a3ac=eval(_0x87b289[_0xcaf1('0x13a')])?_0xcaf1('0x13c'):_0xcaf1('0x13d');this[_0xcaf1('0x10')]['noop'](util[_0xcaf1('0x5b')](_0xcaf1('0x13e'),_0x87b289[_0xcaf1('0x13a')],_0x24a3ac));return{'code':0xc8,'result':_0x24a3ac};}catch(_0x18b66a){return{'code':0xc8,'result':_0xcaf1('0x13d')};}};AGIVertices[_0xcaf1('0x12')][_0xcaf1('0x13f')]=function(_0x52a048){logger[_0xcaf1('0x2f')](util[_0xcaf1('0x5b')](_0xcaf1('0x140'),_0x52a048['label']));if(!this[_0xcaf1('0xa7')](_0x52a048[_0xcaf1('0x141')])){return this[_0xcaf1('0x10')]['error'](_0x52a048,'no\x20interval\x20configured');}var _0x41821d=this[_0xcaf1('0x142')][_0xcaf1('0x77')](this,_0x52a048[_0xcaf1('0x141')]);if(!_0x41821d){return this[_0xcaf1('0x10')][_0xcaf1('0x34')](_0x52a048,_0xcaf1('0x143'));}for(var _0x2f47c6=0x0;_0x2f47c6<_0x41821d[_0xcaf1('0xa1')];_0x2f47c6+=0x1){var _0x49c926=this[_0xcaf1('0x10')][_0xcaf1('0x13')](util[_0xcaf1('0x5b')](_0xcaf1('0x144'),_0x41821d[_0x2f47c6]));if(_0x49c926[_0xcaf1('0xa5')]===-0x1){return _0x49c926;}logger[_0xcaf1('0x2f')](util[_0xcaf1('0x5b')]('IFTIME\x20%s\x20%s',_0x41821d[_0x2f47c6],_0x49c926[_0xcaf1('0xa4')]));if(_0x49c926['extra']==='true'){logger['info'](util[_0xcaf1('0x5b')]('IFTIME\x20%s\x20%s',_0x41821d[_0x2f47c6],_0xcaf1('0x13c')));this['channel'][_0xcaf1('0xac')](util[_0xcaf1('0x5b')](_0xcaf1('0x145'),_0x41821d[_0x2f47c6],_0xcaf1('0x13c')));return{'code':0xc8,'result':'true'};}else{logger[_0xcaf1('0x2f')](util[_0xcaf1('0x5b')](_0xcaf1('0x145'),_0x41821d[_0x2f47c6],_0xcaf1('0x13d')));this[_0xcaf1('0x10')][_0xcaf1('0xac')](util['format'](_0xcaf1('0x145'),_0x41821d[_0x2f47c6],_0xcaf1('0x13d')));}}return{'code':0xc8,'result':_0xcaf1('0x13d')};};AGIVertices[_0xcaf1('0x12')]['hangup']=function(_0xd901da){logger[_0xcaf1('0x2f')](util['format']('Enter\x20in\x20HANGUP\x20(%s)\x20block',_0xd901da[_0xcaf1('0x39')]));return this['channel'][_0xcaf1('0x146')]();};AGIVertices[_0xcaf1('0x12')]['ispeechasr']=function(_0x4e3a72){logger[_0xcaf1('0x2f')](util[_0xcaf1('0x5b')]('Enter\x20in\x20ISPEECHASR\x20(%s)\x20block',_0x4e3a72['label']));if(!this[_0xcaf1('0xa7')](_0x4e3a72[_0xcaf1('0x81')])){return this['channel'][_0xcaf1('0xac')](_0xcaf1('0xed'));}var _0x1545aa=_0xcaf1('0x129');var _0x303809=util[_0xcaf1('0x5b')]('%s/recordings/%s',FILES_PATH,rs[_0xcaf1('0x12b')](0x4));var _0x33f44c=util['format'](_0xcaf1('0xa0'),_0x303809,_0x1545aa);var _0x24db75=!![];if(_0x4e3a72[_0xcaf1('0x12c')]===_0xcaf1('0x12d')){_0x24db75=![];}var _0xbfd05d=this['channel'][_0xcaf1('0x12e')](_0x303809,_0x1545aa,_0x4e3a72[_0xcaf1('0x12f')],_0x4e3a72[_0xcaf1('0x6e')],undefined,_0x24db75);if(_0xbfd05d[_0xcaf1('0xa5')]!==-0x1){this[_0xcaf1('0x10')]['noop'](util['format'](_0xcaf1('0x147'),_0x33f44c));var _0x3afd17=this[_0xcaf1('0x86')]['sync'](this,_0x4e3a72,_0x33f44c);if(_0x3afd17){for(var _0x591b42 in _0x3afd17){if(_0x3afd17[_0xcaf1('0x9c')](_0x591b42)){this[_0xcaf1('0x10')]['setVariable'](util[_0xcaf1('0x5b')](_0xcaf1('0x148'),_0x591b42[_0xcaf1('0xf1')]()),_0x3afd17[_0x591b42]);}}return this['channel']['noop'](util[_0xcaf1('0x5b')](_0xcaf1('0x149'),JSON[_0xcaf1('0x79')](_0x3afd17)));}}return _0xbfd05d;};AGIVertices[_0xcaf1('0x12')]['ispeechtts']=function(_0x524239){logger[_0xcaf1('0x2f')](util[_0xcaf1('0x5b')](_0xcaf1('0x14a'),_0x524239[_0xcaf1('0x39')]));if(!this[_0xcaf1('0xa7')](_0x524239[_0xcaf1('0x81')])){return this[_0xcaf1('0x10')]['noop'](_0xcaf1('0xed'));}if(!this[_0xcaf1('0xa7')](_0x524239['text'])){return this[_0xcaf1('0x10')][_0xcaf1('0xac')](_0xcaf1('0xad'));}this[_0xcaf1('0x10')][_0xcaf1('0xac')](util['format']('Trying\x20ispeech\x20TTS\x20%s',_0x524239[_0xcaf1('0x62')]));var _0x20cd18=this[_0xcaf1('0x83')][_0xcaf1('0x77')](this,_0x524239);if(_0x20cd18){this['channel']['noop'](util[_0xcaf1('0x5b')](_0xcaf1('0x147'),_0x20cd18));var _0x3e4123=this[_0xcaf1('0x10')]['streamFile'](_0x20cd18,_0x524239['intKey']);try{fs[_0xcaf1('0x11e')](_0x20cd18+_0xcaf1('0x102'));}catch(_0x599f50){logger['error'](_0x599f50);}return _0x3e4123;}return this[_0xcaf1('0x10')][_0xcaf1('0x34')](_0x524239,_0xcaf1('0x14b'));};AGIVertices[_0xcaf1('0x12')][_0xcaf1('0x14c')]=function(_0x16dcfb){logger[_0xcaf1('0x2f')](util[_0xcaf1('0x5b')](_0xcaf1('0x14d'),_0x16dcfb[_0xcaf1('0x39')]));if(!this[_0xcaf1('0xa7')](_0x16dcfb[_0xcaf1('0x14e')])){return this[_0xcaf1('0x10')][_0xcaf1('0x34')](_0x16dcfb,_0xcaf1('0x14f'));}logger[_0xcaf1('0x2f')](util[_0xcaf1('0x5b')](_0xcaf1('0x150'),this['channel']['callerid'],_0x16dcfb[_0xcaf1('0x14e')]));var _0x2c91df=this[_0xcaf1('0x59')]['sync'](this,_0x16dcfb[_0xcaf1('0x14e')]);if(_0x2c91df){logger[_0xcaf1('0x2f')](util[_0xcaf1('0x5b')]('AGENT\x20%s\x20FOUND\x20BY',this[_0xcaf1('0x10')][_0xcaf1('0x3c')],_0x16dcfb[_0xcaf1('0x14e')]));this[_0xcaf1('0x10')]['noop'](util['format']('AGENT\x20%s\x20FOUND\x20BY',this[_0xcaf1('0x10')][_0xcaf1('0x3c')],_0x16dcfb[_0xcaf1('0x14e')]));return{'code':0xc8,'result':'success'};}else{logger['info'](util[_0xcaf1('0x5b')](_0xcaf1('0x151'),this[_0xcaf1('0x10')][_0xcaf1('0x3c')],_0x16dcfb[_0xcaf1('0x14e')]));this[_0xcaf1('0x10')][_0xcaf1('0xac')](util['format']('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this[_0xcaf1('0x10')][_0xcaf1('0x3c')],_0x16dcfb[_0xcaf1('0x14e')]));return{'code':0xc8,'result':_0xcaf1('0x152')};}};AGIVertices[_0xcaf1('0x12')][_0xcaf1('0x153')]=function(_0x138ca8){logger['info'](util[_0xcaf1('0x5b')]('Enter\x20in\x20LOGOUT\x20(%s)\x20block',_0x138ca8[_0xcaf1('0x39')]));if(!this[_0xcaf1('0xa7')](_0x138ca8[_0xcaf1('0x14e')])){return this[_0xcaf1('0x10')][_0xcaf1('0x34')](_0x138ca8,_0xcaf1('0x14f'));}logger[_0xcaf1('0x2f')](util[_0xcaf1('0x5b')](_0xcaf1('0x150'),this['channel'][_0xcaf1('0x3c')],_0x138ca8[_0xcaf1('0x14e')]));var _0x2c7a0e=this['agentLogout'][_0xcaf1('0x77')](this,_0x138ca8[_0xcaf1('0x14e')]);if(_0x2c7a0e){logger[_0xcaf1('0x2f')](util['format'](_0xcaf1('0x154'),this['channel'][_0xcaf1('0x3c')],_0x138ca8['findBy']));this[_0xcaf1('0x10')][_0xcaf1('0xac')](util[_0xcaf1('0x5b')]('AGENT\x20%s\x20FOUND\x20BY',this[_0xcaf1('0x10')][_0xcaf1('0x3c')],_0x138ca8['findBy']));return{'code':0xc8,'result':_0xcaf1('0x155')};}else{logger[_0xcaf1('0x2f')](util[_0xcaf1('0x5b')]('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this['channel'][_0xcaf1('0x3c')],_0x138ca8[_0xcaf1('0x14e')]));this[_0xcaf1('0x10')][_0xcaf1('0xac')](util['format'](_0xcaf1('0x151'),this['channel']['callerid'],_0x138ca8[_0xcaf1('0x14e')]));return{'code':0xc8,'result':_0xcaf1('0x152')};}};AGIVertices[_0xcaf1('0x12')][_0xcaf1('0x156')]=function(_0x3e3b2d){logger['info'](util['format'](_0xcaf1('0x157'),_0x3e3b2d[_0xcaf1('0x39')]));if(!this['isConfigured'](_0x3e3b2d[_0xcaf1('0x158')])){return this['channel'][_0xcaf1('0x34')](_0x3e3b2d,_0xcaf1('0x159'));}this['channel'][_0xcaf1('0xac')](util['format'](_0xcaf1('0x15a'),_0x3e3b2d[_0xcaf1('0x158')]));var _0x5e429a=eval(_0x3e3b2d[_0xcaf1('0x158')]);if(!this[_0xcaf1('0xa7')](_0x3e3b2d[_0xcaf1('0xdb')])){return this[_0xcaf1('0x10')][_0xcaf1('0xac')](_0xcaf1('0xdc'));}var _0x56a11a=this[_0xcaf1('0x13')][_0xcaf1('0x77')](this,_0x3e3b2d[_0xcaf1('0xdb')]);if(!_0x56a11a){return this['channel'][_0xcaf1('0x34')](_0x3e3b2d,_0xcaf1('0xdd'));}if(_['isArray'](_0x5e429a)){var _0x48c04e=this;_0x5e429a['forEach'](function(_0xf09850,_0x40b53d){_0x48c04e[_0xcaf1('0x10')][_0xcaf1('0xa2')](util['format'](_0xcaf1('0x15b'),_0x56a11a,_0x40b53d),_0xf09850);});return this[_0xcaf1('0x10')]['noop'](util[_0xcaf1('0x5b')](_0xcaf1('0x15c'),_0x56a11a));}else{return this['channel'][_0xcaf1('0xa2')](_0x56a11a,_0x5e429a);}};AGIVertices[_0xcaf1('0x12')][_0xcaf1('0xd')]=function(_0x50af05){logger[_0xcaf1('0x2f')](util['format'](_0xcaf1('0x15d'),_0x50af05['label']));if(_0x50af05[_0xcaf1('0xa9')]===0x0){return this[_0xcaf1('0xa8')](_0x50af05);}_0x50af05[_0xcaf1('0xa9')]-=0x1;if(!this[_0xcaf1('0xa7')](_0x50af05[_0xcaf1('0x110')])){return this[_0xcaf1('0x10')][_0xcaf1('0x34')](_0x50af05,'no\x20file\x20audio\x20selected');}var _0x196ff5=this[_0xcaf1('0x22')][_0xcaf1('0x77')](this,_0x50af05[_0xcaf1('0x110')]);if(!_0x196ff5){return this['channel'][_0xcaf1('0x34')](_0x50af05,_0xcaf1('0x15e'));}var _0x360caf=this[_0xcaf1('0x10')][_0xcaf1('0x111')](_0x196ff5,_0x50af05[_0xcaf1('0x112')],_0x50af05['digit']);var _0xe3148a=_0x360caf[_0xcaf1('0xa5')];if(_0x360caf[_0xcaf1('0xa5')]===-0x1){this[_0xcaf1('0x38')][_0xcaf1('0x77')](this,_0x50af05,'-1');return _0x360caf;}else if(_0x360caf[_0xcaf1('0xa4')]===_0xcaf1('0x6e')){_0x360caf['result']=_0x360caf[_0xcaf1('0xa5')][_0xcaf1('0xa1')]>0x0?_0x360caf[_0xcaf1('0xa5')]:'t';}else if(_['isEmpty'](_0x360caf[_0xcaf1('0xa5')])){_0x360caf[_0xcaf1('0xa5')]='#';_0xe3148a='#';}if(!this['isConfigured'](_0x50af05['variable_id'])){this[_0xcaf1('0x10')]['noop'](_0xcaf1('0xdc'));}else{var _0x66b1f5=this['getVariable']['sync'](this,_0x50af05[_0xcaf1('0xdb')]);if(!_0x66b1f5){return this[_0xcaf1('0x10')][_0xcaf1('0x34')](_0x50af05,'no\x20variable\x20found');}this[_0xcaf1('0x10')][_0xcaf1('0xa2')](_0x66b1f5,_0xe3148a);}this['createSquareDetailsReport'][_0xcaf1('0x77')](this,_0x50af05,_0xe3148a);return _0x360caf;};AGIVertices[_0xcaf1('0x12')]['noop']=function(_0xe5ac26){logger[_0xcaf1('0x2f')](util[_0xcaf1('0x5b')](_0xcaf1('0x15f'),_0xe5ac26['label']));return this[_0xcaf1('0x10')][_0xcaf1('0xac')](_0xe5ac26['output']||_0xe5ac26['label']);};AGIVertices['prototype']['pause']=function(_0x46893e){logger['info'](util[_0xcaf1('0x5b')](_0xcaf1('0x160'),_0x46893e[_0xcaf1('0x39')]));if(!this[_0xcaf1('0xa7')](_0x46893e[_0xcaf1('0x14e')])){return this[_0xcaf1('0x10')][_0xcaf1('0x34')](_0x46893e,_0xcaf1('0x14f'));}logger['info'](util[_0xcaf1('0x5b')](_0xcaf1('0x150'),this[_0xcaf1('0x10')][_0xcaf1('0x3c')],_0x46893e[_0xcaf1('0x14e')]));var _0x5244b1=this[_0xcaf1('0x161')]['sync'](this,_0x46893e[_0xcaf1('0x162')]);var _0x3a6478=this[_0xcaf1('0x55')][_0xcaf1('0x77')](this,_0x46893e['findBy'],_0x5244b1);if(_0x3a6478){logger[_0xcaf1('0x2f')](util[_0xcaf1('0x5b')](_0xcaf1('0x154'),this['channel']['callerid'],_0x46893e[_0xcaf1('0x14e')]));this[_0xcaf1('0x10')][_0xcaf1('0xac')](util[_0xcaf1('0x5b')]('AGENT\x20%s\x20FOUND\x20BY',this[_0xcaf1('0x10')][_0xcaf1('0x3c')],_0x46893e[_0xcaf1('0x14e')]));return{'code':0xc8,'result':_0xcaf1('0x155')};}else{logger['info'](util[_0xcaf1('0x5b')](_0xcaf1('0x151'),this[_0xcaf1('0x10')][_0xcaf1('0x3c')],_0x46893e[_0xcaf1('0x14e')]));this[_0xcaf1('0x10')][_0xcaf1('0xac')](util['format'](_0xcaf1('0x154'),this['channel'][_0xcaf1('0x3c')],_0x46893e[_0xcaf1('0x14e')]));return{'code':0xc8,'result':'failure'};}};AGIVertices[_0xcaf1('0x12')]['playback']=function(_0x5af34c){logger[_0xcaf1('0x2f')](util[_0xcaf1('0x5b')](_0xcaf1('0x163'),_0x5af34c[_0xcaf1('0x39')]));if(!this[_0xcaf1('0xa7')](_0x5af34c['file_id'])){return this['channel'][_0xcaf1('0x34')](_0x5af34c,_0xcaf1('0x164'));}var _0x57333a=this[_0xcaf1('0x22')][_0xcaf1('0x77')](this,_0x5af34c[_0xcaf1('0x110')]);if(!_0x57333a){return this['channel'][_0xcaf1('0x34')](_0x5af34c,_0xcaf1('0x15e'));}var _0x43eba6=this['channel'][_0xcaf1('0xae')](_0xcaf1('0x165'),[_0x57333a,_0x5af34c['opts']]);if(_0x43eba6[_0xcaf1('0xa5')]===-0x1){return _0x43eba6;}return this[_0xcaf1('0x10')][_0xcaf1('0xac')](util[_0xcaf1('0x5b')](_0xcaf1('0x166'),_0xcaf1('0x165'),_0x57333a));};AGIVertices[_0xcaf1('0x12')][_0xcaf1('0x167')]=function(_0x12a779){logger['info'](util['format'](_0xcaf1('0x168'),_0x12a779[_0xcaf1('0x39')]));if(!this[_0xcaf1('0xa7')](_0x12a779[_0xcaf1('0x169')])){return this[_0xcaf1('0x10')][_0xcaf1('0x34')](_0x12a779,_0xcaf1('0x16a'));}var _0x538b76='';var _0x281bc4=parseInt(_0x12a779[_0xcaf1('0x169')],0xa);if(isNaN(_0x281bc4)){_0x538b76=_0x12a779['queue_id'];}else{_0x538b76=this[_0xcaf1('0x18')]['sync'](this,_0x12a779[_0xcaf1('0x169')]);if(!_0x538b76){return this[_0xcaf1('0x10')][_0xcaf1('0x34')](_0x12a779,_0xcaf1('0x16b'));}}var _0x2d0c3c='';if(this[_0xcaf1('0xa7')](_0x12a779['file_id'])){var _0x18a3c5=this[_0xcaf1('0x22')][_0xcaf1('0x77')](this,_0x12a779['file_id']);if(_0x18a3c5){_0x2d0c3c=_0x18a3c5;}}this[_0xcaf1('0x38')][_0xcaf1('0x77')](this,_0x12a779,_0x538b76);if(_0x12a779[_0xcaf1('0xe9')][_0xcaf1('0x16c')]('x')<0x0){_0x12a779[_0xcaf1('0xe9')]+='x';}if(_0x12a779[_0xcaf1('0xe9')][_0xcaf1('0x16c')]('X')<0x0){_0x12a779[_0xcaf1('0xe9')]+='X';}this[_0xcaf1('0x10')]['setVariable'](_0xcaf1('0x16d'),_0x538b76?_0x538b76[_0xcaf1('0x16e')]():'');var _0x57ee9e=this[_0xcaf1('0x10')][_0xcaf1('0xae')]('QUEUE',[_0x538b76,_0x12a779[_0xcaf1('0xe9')],_0x12a779[_0xcaf1('0x6c')],_0x2d0c3c,_0x12a779[_0xcaf1('0x6e')],_0x12a779[_0xcaf1('0x8')],_0x12a779[_0xcaf1('0x16f')],_0x12a779[_0xcaf1('0x170')],'',_0x12a779['position']]);if(_0x57ee9e[_0xcaf1('0xa5')]===-0x1){return _0x57ee9e;}return this[_0xcaf1('0x10')][_0xcaf1('0xac')](util[_0xcaf1('0x5b')]('Executed\x20command\x20%s\x20%s',_0xcaf1('0x171'),_0x538b76));};AGIVertices[_0xcaf1('0x12')][_0xcaf1('0x172')]=function(_0x4482af){logger[_0xcaf1('0x2f')](util[_0xcaf1('0x5b')](_0xcaf1('0x173'),_0x4482af[_0xcaf1('0x39')]));var _0x24e358=_0x4482af['recordingFormat']||'wav';var _0x394b4e=util[_0xcaf1('0x5b')](_0xcaf1('0x174'),this[_0xcaf1('0x10')]['uniqueid'],rs[_0xcaf1('0x12b')](0x5));var _0x180ccb=util['format']('%s/recordings/%s.%s',FILES_PATH,_0x394b4e,_0x24e358);var _0x4b29bf=util['format']('%s/recordings/%s',FILES_PATH,_0x394b4e);this[_0xcaf1('0x3d')][_0xcaf1('0x77')](this,_0x4482af,_0x394b4e,_0x180ccb);this[_0xcaf1('0x10')]['setVariable'](_0xcaf1('0x175'),_0x394b4e);logger[_0xcaf1('0x2f')](_0xcaf1('0x176'),_0x4b29bf,_0x24e358,_0x4482af[_0xcaf1('0x177')],_0x4482af[_0xcaf1('0x6e')]);return this[_0xcaf1('0x10')][_0xcaf1('0x12e')](_0x4b29bf,_0x24e358,_0x4482af[_0xcaf1('0x177')],_0x4482af[_0xcaf1('0x6e')],undefined,!![]);};AGIVertices[_0xcaf1('0x12')]['restapi']=function(_0x2db610){logger['info'](util['format'](_0xcaf1('0x178'),_0x2db610['label']));if(!this[_0xcaf1('0xa7')](_0x2db610[_0xcaf1('0x6c')])){return this[_0xcaf1('0x10')][_0xcaf1('0xac')](_0xcaf1('0x179'));}var _0x5898d9=this['restAPI']['sync'](this,_0x2db610);logger[_0xcaf1('0x2f')](util[_0xcaf1('0x5b')](_0xcaf1('0x17a'),util['inspect'](_0x5898d9,{'showHidden':![],'depth':null})));if(!this[_0xcaf1('0xa7')](_0x2db610['variable_id'])){return this['channel'][_0xcaf1('0xac')]('no\x20variable\x20selected\x20for\x20the\x20response');}var _0x40a13a=this[_0xcaf1('0x13')]['sync'](this,_0x2db610['variable_id']);if(!_0x40a13a){return this['channel'][_0xcaf1('0x34')](_0x2db610,_0xcaf1('0xdd'));}this[_0xcaf1('0x10')][_0xcaf1('0xa2')](util['format'](_0xcaf1('0x17b'),_0x40a13a),_0x5898d9[_0xcaf1('0x7c')]?_0x5898d9['statusCode']:_0xcaf1('0x17c'));this['channel'][_0xcaf1('0xa2')](util[_0xcaf1('0x5b')](_0xcaf1('0x17d'),_0x40a13a),_0x5898d9['statusMessage']?_0x5898d9[_0xcaf1('0x17e')]:'OK');if(_0x5898d9[_0xcaf1('0x7a')]){try{this[_0xcaf1('0x9f')](_0x5898d9[_0xcaf1('0x7a')],_0x40a13a);}catch(_0x40c850){logger[_0xcaf1('0x34')](util[_0xcaf1('0x5b')](_0xcaf1('0x17f'),_0x40a13a));}}return this[_0xcaf1('0x10')][_0xcaf1('0xac')](util['format'](_0xcaf1('0xe2'),_0x40a13a));};AGIVertices['prototype'][_0xcaf1('0x180')]=function(_0x9c73a4){logger[_0xcaf1('0x2f')](util[_0xcaf1('0x5b')](_0xcaf1('0x181'),_0x9c73a4[_0xcaf1('0x39')]));return this['channel'][_0xcaf1('0x182')](_0x9c73a4['digits']['replace'](/\s+/g,''),_0x9c73a4[_0xcaf1('0x177')]);};AGIVertices[_0xcaf1('0x12')]['saynumber']=function(_0x38f649){logger[_0xcaf1('0x2f')](util[_0xcaf1('0x5b')]('Enter\x20in\x20SAYNUMBER\x20(%s)\x20block',_0x38f649['label']));return this[_0xcaf1('0x10')][_0xcaf1('0x183')](_0x38f649[_0xcaf1('0x6d')]['replace'](/\s+/g,''),_0x38f649['escape_digits']);};AGIVertices[_0xcaf1('0x12')][_0xcaf1('0x184')]=function(_0x4fd533){logger[_0xcaf1('0x2f')](util[_0xcaf1('0x5b')](_0xcaf1('0x185'),_0x4fd533[_0xcaf1('0x39')]));return this['channel'][_0xcaf1('0x186')](_0x4fd533[_0xcaf1('0x62')],_0x4fd533[_0xcaf1('0x177')]);};AGIVertices[_0xcaf1('0x12')][_0xcaf1('0x187')]=function(_0x26f42d){logger[_0xcaf1('0x2f')](util[_0xcaf1('0x5b')](_0xcaf1('0x188'),_0x26f42d['label']));if(!this[_0xcaf1('0xa7')](_0x26f42d[_0xcaf1('0x189')])){return this[_0xcaf1('0x10')][_0xcaf1('0xac')](_0xcaf1('0x18a'));}var _0x46eea9=this[_0xcaf1('0x18b')][_0xcaf1('0x77')](this,_0x26f42d[_0xcaf1('0x189')]);if(!_0x46eea9||!_0x46eea9['Smtp']){return this[_0xcaf1('0x10')][_0xcaf1('0x34')](_0x26f42d,_0xcaf1('0x18c'));}var _0x409a3={'from':util[_0xcaf1('0x5b')](_0xcaf1('0x18d'),_0x46eea9['name'],_0x46eea9[_0xcaf1('0x18e')]||_0x46eea9[_0xcaf1('0x18f')][_0xcaf1('0x190')]),'to':_0x26f42d['to']||'','cc':_0x26f42d['cc']||'','bcc':_0x26f42d[_0xcaf1('0x191')]||'','subject':_0x26f42d['subject'],'html':_0x26f42d[_0xcaf1('0x62')],'text':_0x26f42d[_0xcaf1('0x62')]};var _0x434ef0={'tls':{'rejectUnauthorized':![]}};if(_0x46eea9[_0xcaf1('0x18f')][_0xcaf1('0x192')]){_0x434ef0['service']=_0x46eea9[_0xcaf1('0x18f')][_0xcaf1('0x192')];}else{_0x434ef0[_0xcaf1('0x193')]=_0x46eea9[_0xcaf1('0x18f')][_0xcaf1('0x193')];_0x434ef0[_0xcaf1('0x194')]=_0x46eea9['Smtp'][_0xcaf1('0x194')];_0x434ef0['secure']=_0x46eea9[_0xcaf1('0x18f')]['secure'];}if(_0x46eea9[_0xcaf1('0x18f')]['authentication']){_0x434ef0[_0xcaf1('0x195')]={'user':_0x46eea9[_0xcaf1('0x18f')][_0xcaf1('0x190')],'pass':_0x46eea9['Smtp'][_0xcaf1('0x196')]};}if(this[_0xcaf1('0xa7')](_0x26f42d[_0xcaf1('0x197')])){}logger['debug']('sendMail\x20message',JSON[_0xcaf1('0x79')](_0x409a3));this[_0xcaf1('0x38')][_0xcaf1('0x77')](this,_0x26f42d,_0x26f42d[_0xcaf1('0x189')]);this['channel'][_0xcaf1('0xac')](util[_0xcaf1('0x5b')](_0xcaf1('0x198'),_0x46eea9[_0xcaf1('0x16')]));this['sendMailMessage']['sync'](this,_0x434ef0,_0x409a3);return this[_0xcaf1('0x10')][_0xcaf1('0xac')](_0xcaf1('0x199'));};AGIVertices[_0xcaf1('0x12')][_0xcaf1('0x19a')]=function(_0x313166){logger[_0xcaf1('0x2f')](util[_0xcaf1('0x5b')](_0xcaf1('0x19b'),_0x313166[_0xcaf1('0x39')]));return this['channel'][_0xcaf1('0xac')](_0xcaf1('0x19c'));};AGIVertices[_0xcaf1('0x12')][_0xcaf1('0x19d')]=function(_0x48630f){logger['info'](util[_0xcaf1('0x5b')](_0xcaf1('0x19e'),_0x48630f[_0xcaf1('0x39')]));if(!this['isConfigured'](_0x48630f[_0xcaf1('0x19f')])){return this[_0xcaf1('0x10')][_0xcaf1('0xac')](_0xcaf1('0x1a0'));}var _0x52dceb=this[_0xcaf1('0x1a1')]['sync'](this,_0x48630f[_0xcaf1('0x19f')]);if(!_0x52dceb){return this[_0xcaf1('0x10')]['error'](_0x48630f,_0xcaf1('0x1a2'));}var _0x27ffe0={'body':_0x48630f['sms_text'],'phone':_0x48630f['to']||'','SmsAccountId':_0x52dceb['id']};logger[_0xcaf1('0xe4')](_0xcaf1('0x1a3'),JSON[_0xcaf1('0x79')](_0x27ffe0));this[_0xcaf1('0x38')][_0xcaf1('0x77')](this,_0x48630f,_0x48630f[_0xcaf1('0x19f')]);this[_0xcaf1('0x10')][_0xcaf1('0xac')](util[_0xcaf1('0x5b')](_0xcaf1('0x1a4'),_0x52dceb[_0xcaf1('0x16')]));this[_0xcaf1('0x37')][_0xcaf1('0x77')](this,_0x27ffe0);return this[_0xcaf1('0x10')][_0xcaf1('0xac')]('Sms\x20message\x20added\x20to\x20outgoing\x20process');};AGIVertices['prototype']['set']=function(_0x6f6de4){logger['info'](util['format'](_0xcaf1('0x1a5'),_0x6f6de4['label']));if(!this[_0xcaf1('0xa7')](_0x6f6de4[_0xcaf1('0xdb')])){return this['channel']['error'](_0x6f6de4,_0xcaf1('0x1a6'));}var _0x5cfb10=this[_0xcaf1('0x13')]['sync'](this,_0x6f6de4[_0xcaf1('0xdb')]);if(!_0x5cfb10){return this[_0xcaf1('0x10')]['error'](_0x6f6de4,_0xcaf1('0xdd'));}return this[_0xcaf1('0x10')][_0xcaf1('0xa2')](_0x5cfb10,_0x6f6de4[_0xcaf1('0x1a7')]);};AGIVertices[_0xcaf1('0x12')]['start']=function(_0x5ad128){logger[_0xcaf1('0x2f')](util[_0xcaf1('0x5b')]('Enter\x20in\x20START\x20(%s)\x20block',_0x5ad128['label']));this['channel']['noop'](_0xcaf1('0x1a8'));if(_0x5ad128[_0xcaf1('0xbf')]==='yes'){this[_0xcaf1('0x10')]['noop'](_0xcaf1('0x1a9'));return this[_0xcaf1('0x10')]['answer']();}return this['channel'][_0xcaf1('0xac')]('Skipped\x20Answer');};AGIVertices[_0xcaf1('0x12')]['subproject']=function(_0x359ca6){logger[_0xcaf1('0x2f')](util[_0xcaf1('0x5b')]('Enter\x20in\x20SUBPROJECT\x20(%s)\x20block',_0x359ca6['label']));if(!this[_0xcaf1('0xa7')](_0x359ca6['project_id'])){return this[_0xcaf1('0x10')][_0xcaf1('0x34')](_0x359ca6,'no\x20subproject\x20selected');}var _0x377adc=this[_0xcaf1('0x1b')]['sync'](this,_0x359ca6[_0xcaf1('0x1aa')]);if(!this['isConfigured'](_0x377adc)){return this[_0xcaf1('0x10')][_0xcaf1('0x34')](_0x359ca6,util[_0xcaf1('0x5b')]('no\x20subproject\x20found\x20with\x20id\x20%d',_0x359ca6[_0xcaf1('0x1aa')]));}if(_0x377adc===this[_0xcaf1('0x10')]['arg_1']){return this[_0xcaf1('0x10')][_0xcaf1('0x34')](_0x359ca6,_0xcaf1('0x1ab'));}this[_0xcaf1('0x38')][_0xcaf1('0x77')](this,_0x359ca6,_0x377adc);var _0x6d1362=this[_0xcaf1('0x10')][_0xcaf1('0xae')](_0xcaf1('0x1ac'),util[_0xcaf1('0x5b')]('agi://%s/square,\x22%s\x22,\x22%s\x22',config[_0xcaf1('0x8')]['host']||_0xcaf1('0x1ad'),_0x377adc,this[_0xcaf1('0x10')]['arg_1']));if(_0x6d1362[_0xcaf1('0xa5')]===-0x1){return _0x6d1362;}return this[_0xcaf1('0x10')][_0xcaf1('0xac')](util['format'](_0xcaf1('0x166'),_0xcaf1('0x1ac'),_0x377adc));};AGIVertices[_0xcaf1('0x12')]['system']=function(_0x592a20){logger[_0xcaf1('0x2f')](util['format']('Enter\x20in\x20SYSTEM\x20(%s)\x20block',_0x592a20[_0xcaf1('0x39')]));var _0xf7a6c5=this['shellCommand'][_0xcaf1('0x77')](this,_0x592a20['command']);this[_0xcaf1('0x38')][_0xcaf1('0x77')](this,_0x592a20,_0x592a20['command']);if(this[_0xcaf1('0xa7')](_0x592a20[_0xcaf1('0xdb')])){var _0x54bf8c=this['getVariable'][_0xcaf1('0x77')](this,_0x592a20['variable_id']);if(_0x54bf8c){this['channel']['setVariable'](_0x54bf8c,_0xf7a6c5);return this['channel']['noop'](util[_0xcaf1('0x5b')](_0xcaf1('0x1ae'),_0x592a20[_0xcaf1('0xbd')],_0x54bf8c));}}return this[_0xcaf1('0x10')][_0xcaf1('0xac')](util[_0xcaf1('0x5b')](_0xcaf1('0x1af'),_0x592a20['command']));};AGIVertices[_0xcaf1('0x12')]['google_cloud_tts']=function(_0x5a0a48){logger[_0xcaf1('0x2f')](util['format'](_0xcaf1('0x1b0'),_0x5a0a48[_0xcaf1('0x39')]));_0x5a0a48[_0xcaf1('0x62')]=_0x5a0a48[_0xcaf1('0x62')]['replace'](/(\r\n|\n|\r)/gm,'\x20');if(!this[_0xcaf1('0xa7')](_0x5a0a48['apiKey'])){return this[_0xcaf1('0x10')]['noop'](_0xcaf1('0x1b1'));}if(!this[_0xcaf1('0xa7')](_0x5a0a48['text'])){return this[_0xcaf1('0x10')][_0xcaf1('0xac')]('no\x20text\x20configured');}this['channel'][_0xcaf1('0xac')](util[_0xcaf1('0x5b')](_0xcaf1('0x1b2'),_0x5a0a48[_0xcaf1('0x62')]));var _0xf2ca6a=this[_0xcaf1('0x60')][_0xcaf1('0x77')](this,_0x5a0a48);if(_0xf2ca6a){this['channel'][_0xcaf1('0xac')](util[_0xcaf1('0x5b')](_0xcaf1('0x1b3'),_0xf2ca6a));var _0x37c563=this[_0xcaf1('0x10')][_0xcaf1('0x100')](_0xf2ca6a);try{fs[_0xcaf1('0x11e')](_0xf2ca6a+_0xcaf1('0x102'));}catch(_0x2ff3a7){logger[_0xcaf1('0x34')](_0x2ff3a7);}return _0x37c563;}return this[_0xcaf1('0x10')][_0xcaf1('0x34')](_0x5a0a48,_0xcaf1('0x1b4'));};AGIVertices['prototype'][_0xcaf1('0x1b5')]=function(_0x570de0){logger[_0xcaf1('0x2f')](util[_0xcaf1('0x5b')](_0xcaf1('0x1b6'),_0x570de0['label']));_0x570de0[_0xcaf1('0x62')]=_0x570de0[_0xcaf1('0x62')][_0xcaf1('0x5f')](/(\r\n|\n|\r)/gm,'\x20');if(!this[_0xcaf1('0xa7')](_0x570de0[_0xcaf1('0x62')])){return this[_0xcaf1('0x10')][_0xcaf1('0xac')](_0xcaf1('0xad'));}this['channel'][_0xcaf1('0xac')](util[_0xcaf1('0x5b')](_0xcaf1('0x1b7'),_0x570de0[_0xcaf1('0x62')]));var _0x5250c0=this[_0xcaf1('0x69')][_0xcaf1('0x77')](this,_0x570de0);if(_0x5250c0){this['channel']['noop'](util['format'](_0xcaf1('0x1b8'),_0x5250c0));var _0x5a82b0=this['channel']['streamFile'](_0x5250c0);try{fs[_0xcaf1('0x11e')](_0x5250c0+_0xcaf1('0x102'));}catch(_0x10c146){logger[_0xcaf1('0x34')](_0x10c146);}return _0x5a82b0;}return this[_0xcaf1('0x10')][_0xcaf1('0x34')](_0x570de0,'Google\x20TTS\x20is\x20unreachable');};AGIVertices[_0xcaf1('0x12')][_0xcaf1('0x1b9')]=function(_0x1d4bbe){logger[_0xcaf1('0x2f')](util[_0xcaf1('0x5b')]('Enter\x20in\x20UNPAUSE\x20(%s)\x20block',_0x1d4bbe['label']));if(!this[_0xcaf1('0xa7')](_0x1d4bbe[_0xcaf1('0x14e')])){return this[_0xcaf1('0x10')][_0xcaf1('0x34')](_0x1d4bbe,'no\x20find\x20by\x20configured');}logger[_0xcaf1('0x2f')](util['format'](_0xcaf1('0x150'),this[_0xcaf1('0x10')][_0xcaf1('0x3c')],_0x1d4bbe[_0xcaf1('0x14e')]));var _0x4894e9=this['agentUnpause']['sync'](this,_0x1d4bbe[_0xcaf1('0x14e')]);if(_0x4894e9){logger[_0xcaf1('0x2f')](util[_0xcaf1('0x5b')](_0xcaf1('0x154'),this[_0xcaf1('0x10')][_0xcaf1('0x3c')],_0x1d4bbe[_0xcaf1('0x14e')]));this['channel'][_0xcaf1('0xac')](util[_0xcaf1('0x5b')](_0xcaf1('0x154'),this[_0xcaf1('0x10')][_0xcaf1('0x3c')],_0x1d4bbe[_0xcaf1('0x14e')]));return{'code':0xc8,'result':_0xcaf1('0x155')};}else{logger[_0xcaf1('0x2f')](util[_0xcaf1('0x5b')](_0xcaf1('0x151'),this[_0xcaf1('0x10')][_0xcaf1('0x3c')],_0x1d4bbe[_0xcaf1('0x14e')]));this[_0xcaf1('0x10')][_0xcaf1('0xac')](util['format']('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this[_0xcaf1('0x10')]['callerid'],_0x1d4bbe[_0xcaf1('0x14e')]));return{'code':0xc8,'result':_0xcaf1('0x152')};}};AGIVertices[_0xcaf1('0x12')]['voicemail']=function(_0xfa39f9){logger[_0xcaf1('0x2f')](util[_0xcaf1('0x5b')](_0xcaf1('0x1ba'),_0xfa39f9[_0xcaf1('0x39')]));var _0xed063f=this[_0xcaf1('0x10')][_0xcaf1('0xae')]('VOICEMAIL',[_0xfa39f9[_0xcaf1('0x1bb')],_0xfa39f9['options']]);if(_0xed063f[_0xcaf1('0xa5')]===-0x1){return _0xed063f;}return this[_0xcaf1('0x10')][_0xcaf1('0xac')](util[_0xcaf1('0x5b')](_0xcaf1('0x166'),_0xcaf1('0x1bc'),_0xfa39f9[_0xcaf1('0x1bb')]));};AGIVertices[_0xcaf1('0x12')][_0xcaf1('0x1bd')]=function(_0xa5f4fa){logger[_0xcaf1('0x2f')](util[_0xcaf1('0x5b')](_0xcaf1('0x1be'),_0xa5f4fa['label']));if(!this['isConfigured'](_0xa5f4fa[_0xcaf1('0xdb')])){return this[_0xcaf1('0x10')][_0xcaf1('0x34')](_0xa5f4fa,_0xcaf1('0x1a6'));}var _0x53e5d5=this[_0xcaf1('0x13')][_0xcaf1('0x77')](this,_0xa5f4fa['variable_id']);if(!_0x53e5d5){return this['channel']['error'](_0xa5f4fa,_0xcaf1('0xdd'));}var _0x36ff8e=this[_0xcaf1('0x10')][_0xcaf1('0x13')](_0x53e5d5);return{'code':0xc8,'result':_0x36ff8e[_0xcaf1('0xa4')]?_0x36ff8e[_0xcaf1('0xa4')]:'-'};};String[_0xcaf1('0x12')][_0xcaf1('0x1bf')]=function(_0x2c98e3,_0x29a745){return this[_0xcaf1('0xa3')](_0x2c98e3)[_0xcaf1('0x1c0')](_0x29a745);};module['exports']=AGIVertices;
\ No newline at end of file