Built motion from commit cafec4f3.|2.6.31
[motion2.git] / server / services / agi / vertices.js
index db67c49..efefd63 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xb43b=['no\x20trunk\x20found','trunk_name','SIP/%s/%s','Executed\x20command\x20%s','Enter\x20in\x20FINALLY\x20(%s)\x20block','getdigits','Enter\x20in\x20GETDIGITS\x20(%s)\x20block','file_id','no\x20file\x20audio\x20selected','no\x20file\x20audio\x20found','getData','response','mindigit','maxdigit','hiddendigitsnum','hiddendigitspos','first','substr','generate','Enter\x20in\x20GETSECRETDIGITS\x20(%s)\x20block','goal','Enter\x20in\x20GOAL\x20(%s)\x20block','goalname','GOAL\x20%s','awspolly','[AGI]\x20Enter\x20in\x20AWSPOLLY\x20(%s)\x20block','aws_secret_access_key','no\x20valid\x20credentials\x20configured','Trying\x20aws\x20Polly\x20%s','aws\x20Polly\x20%s\x20file\x20created','unlink','awslex','Enter\x20in\x20Amazon\x20Lex\x20(%s)\x20block','aws_bot_name','no\x20bot\x20name\x20configured','Trying\x20Amazon\x20Lex:\x20%s','AWS_LEX_%s','Amazon\x20Lex\x20ready\x20for\x20fulfillment','amazonlex','Amazon\x20Lex\x20Result\x20%s','googleasr','Enter\x20in\x20GOOGLEASR\x20(%s)\x20block\x20%s','wav','NOBEEP','recordFile','intKey','GOOGLE_ASR_%s','Enter\x20in\x20TILDEASR\x20(%s)\x20block','no\x20appsecret\x20configured','%s/recordings/%s','beep','tilde\x20%s\x20file\x20created','TILDE_ASR_%s','gotoc','Enter\x20in\x20GOTO\x20(%s)\x20block','extension','gotoif','Enter\x20in\x20GOTOIF\x20(%s)\x20block','condition','no\x20condition\x20configured','true','false','EVAL\x20CONDITION\x20%s\x20%s','gotoiftime','interval_id','no\x20intervals\x20found','IFTIME(%s?true:false)','IFTIME\x20%s\x20%s','hangup','Enter\x20in\x20HANGUP\x20(%s)\x20block','ispeechasr','Enter\x20in\x20ISPEECHASR\x20(%s)\x20block','ispeech\x20%s\x20file\x20created','ISPEECH_ASR_%s','Trying\x20ispeech\x20TTS\x20%s','ispeech\x20TTS\x20is\x20unreachable','login','Enter\x20in\x20LOGIN\x20(%s)\x20block','findBy','no\x20find\x20by\x20configured','AGENT\x20%s\x20FOUND\x20BY','success','AGENT\x20%s\x20NOT\x20FOUND\x20BY','failure','logout','Enter\x20in\x20LOGOUT\x20(%s)\x20block','FIND\x20AGENT\x20%s\x20BY\x20%s','math','Enter\x20in\x20MATH\x20(%s)\x20block','operation','no\x20operation\x20configured','math\x20%s','menu','Enter\x20in\x20MENU\x20(%s)\x20block','digit','Enter\x20in\x20NOOP\x20(%s)\x20block','pause','getPause','pause_id','playback','PLAYBACK','queue','Enter\x20in\x20QUEUE\x20(%s)\x20block','queue_id','no\x20queue\x20found','indexOf','XMCS-QUEUE','toLowerCase','QUEUE','macro','gosub','position','record','recordingFormat','%s_%s','%s/recordings/%s.%s','RECORDING_SAVENAME','escape_digits','restapi','Enter\x20in\x20RESTAPI\x20(%s)\x20block','no\x20url\x20configured','Response:','inspect','no\x20variable\x20selected\x20for\x20the\x20response','%s_STATUS_CODE','%s_STATUS_MESSAGE','Enter\x20in\x20SAYDIGITS\x20(%s)\x20block','sayDigits','digits','saynumber','Enter\x20in\x20SAYNUMBER\x20(%s)\x20block','sayphonetic','sendMail','account_id','no\x20mail\x20account\x20configured','Smtp','no\x20mail\x20account\x20found','\x22%s\x22\x20<%s>','email','bcc','subject','template_id','sendMail\x20message','Trying\x20SendMail\x20with\x20account\x20%s','smtpOptions','Mail\x20message\x20added\x20to\x20outgoing\x20process','sendFax','Enter\x20in\x20SENDFAX\x20(%s)\x20block','SENDFAX\x20block\x20not\x20implemented','sendSMS','sms_account_id','no\x20sms\x20account\x20configured','no\x20sms\x20account\x20found','sms_text','sendSMS\x20message','Sms\x20message\x20added\x20to\x20outgoing\x20process','Enter\x20in\x20SET\x20(%s)\x20block','no\x20variable\x20selected','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','AGI','agi://%s/square,\x22%s\x22,\x22%s\x22','127.0.0.1','system','command','sh\x20command:\x20%s\x20result\x20on\x20variable:\x20%s','sh\x20command:\x20%s\x20result\x20no\x20stored','google_cloud_tts','no\x20apiKey\x20configured','Google\x20Cloud\x20TTS\x20%s\x20file\x20created','Google\x20Cloud\x20TTS\x20is\x20unreachable','Enter\x20in\x20GOOGLETTS\x20(%s)\x20block','Trying\x20Google\x20TTS\x20%s','Google\x20TTS\x20%s\x20file\x20created','unpause','Enter\x20in\x20VOICEMAIL\x20(%s)\x20block','VOICEMAIL','mailbox','vswitch','Enter\x20in\x20SWITCH\x20(%s)\x20block','replaceAll','join','exports','util','shelljs','odbc','randomstring','moment','mustache','request-promise','../../config/logger','agi','../../config/environment','./scripts','/var/opt/motion2/server/files','rawBody','getsecretdigits','channel','mailRpc','prototype','getVariable','rpc','getVariableById','catch','getVoiceQueueById','then','name','getSquareProject','getSquareProjectById','getSquareOdbcById','dsn','getUser','getUserById','getTrunk','getTrunkById','getSound','getSoundById','save_name','getMailAccount','getMailAccountById','sendMailMessage','getIntervalById','IntervalId','interval','Intervals','getSoundPath','format','%s/sounds/converted/%s','getQueryOdbc','open','error','Error\x20getting\x20ODBC\x20connection\x20%s','info','ODBC\x20connection\x20successfully','query','Query\x20executed\x20correctly\x20%s','close','Error\x20closing\x20connection\x20to\x20odbc\x20%s','getSmsAccount','getSmsAccountById','createSmsMessage','createSquareDetailsReport','uniqueid','label','agicommand','arg_1','callerid','createSquareRecording','calleridname','context','priority','accountcode','dnid','file','createSquareMessage','createCmContact','isNil','callback_','random','lastName','phone','scheduledAt','Callback\x20scheduled\x20at\x20','agentPause','agent','agentUnpause','agentLogout','agentLogin','LOCAL','shellCommand','exec','replace','googleCloudTTS','apiKey','google_cloud_tts_text_type','text','languageCode','en-US','ssmlGender','MALE','audioEncoding','MP3','googleTTS','google_tts_language','restAPI','url','timeout','number','POST','PUT','method','toUpperCase','parse','headers','rawHeaders','An\x20incorrect\x20formatted\x20json\x20headers\x20has\x20been\x20passed\x20to\x20the\x20function','computedVariables','sync','uri','render','stringify','body','An\x20incorrect\x20formatted\x20json\x20has\x20been\x20passed\x20to\x20the\x20function','statusCode','statusMessage','message','options','googleDialogflow','googleDialogflowV2','client_email','dialogflowV2_language','sestekNDA','key','ispeech_tts_language','ispeechASR','isConfigured','model','awsPolly','aws_access_key_id','aws_polly_region','Amy','aws_text_type','awsLex','aws_lex_region','googleASR','google_asr_language','tildeASR','appid','clear','includes','clone','isString','replaceObjectAllVariables','replaceAllVariables','hasOwnProperty','isPlainObject','recursiveNodeIndex','saveRestApiResult','isEmpty','%s.%s','isArray','length','split','extra','toString','getAndSetVariable','The\x20\x22%s\x22\x20variable\x20value\x20is:\x20%s','maxRetry','retry','mrcpsynth','Enter\x20in\x20MRCPSynth\x20(%s)\x20block','noop','no\x20text\x20configured','result','Executed\x20command\x20MRCPSynth\x20%s','grammar','no\x20grammar\x20configured','MRCPRecog','RECOG_CONFIDENCE()','RECOG_INPUT()','MRCP_RECOG_TRANSCRIPT','Executed\x20command\x20MRCPRecog\x20%s','args','answer','Enter\x20in\x20ANSWER\x20(%s)\x20block','Wait\x20%s\x20seconds\x20before\x20answer','wait','callback','Enter\x20in\x20CALLBACK\x20(%s)\x20block','no\x20list\x20selected','delay','minutes','callback_priority','CALLBACK\x20added\x20phone:\x20%s\x20on\x20list:\x20%s\x20at\x20%s','list_id','application','Executed\x20command\x20%s\x20%s','lumenvoxtts','Enter\x20in\x20LUMENVOXTTS\x20(%s)\x20block','MRCPSynth','sestektts','Enter\x20in\x20SESTEKTTS\x20(%s)\x20block','lumenvoxasr','LUMENVOX_ASR_CONFIDENCE','LUMENVOX_ASR_TRANSCRIPT','RECOG_INSTANCE()','sestekasr','SESTEK_ASR_CONFIDENCE','SESTEK_ASR_INSTANCE','database','Enter\x20in\x20DATABASE\x20(%s)\x20block','odbc_id','getSquareOdbc','no\x20odbc\x20database\x20found','no\x20query\x20configured','variable_id','no\x20variable\x20selected\x20for\x20the\x20result','no\x20variable\x20found','forEach','keys','setVariable','%s_ROWS_COUNT','debug','Enter\x20in\x20DIAL\x20(%s)\x20block','sip_id','no\x20user\x20selected','no\x20user\x20found','SIP/%s','opts','DIAL','Enter\x20in\x20DIALOGFLOW\x20(%s)\x20block','no\x20key\x20configured','bot','Trying\x20Dialogflow:\x20%s','DIALOGFLOW_%s','speech','out','dialogflow','Dialogflow\x20Result\x20%s','Dialogflow\x20is\x20unreachable','dialogflowV2','dialogflowV2_project_id','no\x20project_id\x20configured','private_key','no\x20anguage\x20configured','Trying\x20DialogflowV2:\x20%s','providerResponse','DialogflowV2\x20Result\x20%s','DialogflowV2\x20is\x20unreachable','sesteknda','Enter\x20in\x20SESTEKNDA\x20(%s)\x20block','ndauth_url','no\x20ndauth\x20url\x20configured','username','password','no\x20password\x20configured','ndassistant_url','audiofile','streamFile','.wav','SestekNDA\x20Result\x20%s','SestekNDA\x20is\x20unreachable','end','ext_dial','trunk_id','no\x20trunk\x20selected'];(function(_0x21a9d9,_0x4d5ac8){var _0x46adce=function(_0xfdd336){while(--_0xfdd336){_0x21a9d9['push'](_0x21a9d9['shift']());}};_0x46adce(++_0x4d5ac8);}(_0xb43b,0xbf));var _0xbb43=function(_0x4d7d7e,_0x222d07){_0x4d7d7e=_0x4d7d7e-0x0;var _0x51b030=_0xb43b[_0x4d7d7e];return _0x51b030;};'use strict';var fs=require('fs');var util=require(_0xbb43('0x0'));var _=require('lodash');var sh=require(_0xbb43('0x1'));var odbc=require(_0xbb43('0x2'))();var rs=require(_0xbb43('0x3'));var moment=require(_0xbb43('0x4'));var Mustache=require(_0xbb43('0x5'));var rp=require(_0xbb43('0x6'));var logger=require(_0xbb43('0x7'))(_0xbb43('0x8'));var config=require(_0xbb43('0x9'));var scripts=require(_0xbb43('0xa'));var FILES_PATH=_0xbb43('0xb');var recursiveMapAttributes=['rawHeaders',_0xbb43('0xc')];var verticesWithRetry=['menu','getdigits',_0xbb43('0xd')];var AGIVertices=function(_0x120d67,_0x20ed03,_0x2239d8){this[_0xbb43('0xe')]=_0x120d67;this['rpc']=_0x20ed03;this[_0xbb43('0xf')]=_0x2239d8;};AGIVertices[_0xbb43('0x10')][_0xbb43('0x11')]=function(_0x2c28be,_0x5a4589){this[_0xbb43('0x12')][_0xbb43('0x13')](_0x2c28be)['then'](function(_0x516580){_0x5a4589(null,_0x516580?_0x516580['name']:![]);})[_0xbb43('0x14')](function(_0x5d0ccc){_0x5a4589(_0x5d0ccc);});};AGIVertices[_0xbb43('0x10')]['getVoiceQueue']=function(_0x2b0f1d,_0x217a4e){this[_0xbb43('0x12')][_0xbb43('0x15')](_0x2b0f1d)[_0xbb43('0x16')](function(_0x4f16d7){_0x217a4e(null,_0x4f16d7?_0x4f16d7[_0xbb43('0x17')]:![]);})['catch'](function(_0x199726){_0x217a4e(_0x199726);});};AGIVertices[_0xbb43('0x10')][_0xbb43('0x18')]=function(_0x10c91b,_0x3be44b){this[_0xbb43('0x12')][_0xbb43('0x19')](_0x10c91b)[_0xbb43('0x16')](function(_0x20b839){_0x3be44b(null,_0x20b839?_0x20b839[_0xbb43('0x17')]:![]);})[_0xbb43('0x14')](function(_0x4cb0b2){_0x3be44b(_0x4cb0b2);});};AGIVertices[_0xbb43('0x10')]['getSquareOdbc']=function(_0x44fd04,_0x5f4b4f){this[_0xbb43('0x12')][_0xbb43('0x1a')](_0x44fd04)['then'](function(_0x19c785){_0x5f4b4f(null,_0x19c785?_0x19c785[_0xbb43('0x1b')]:![]);})[_0xbb43('0x14')](function(_0x6f34d6){_0x5f4b4f(_0x6f34d6);});};AGIVertices[_0xbb43('0x10')][_0xbb43('0x1c')]=function(_0xee1084,_0x1e83cd){this[_0xbb43('0x12')][_0xbb43('0x1d')](_0xee1084)[_0xbb43('0x16')](function(_0x434ff5){_0x1e83cd(null,_0x434ff5?_0x434ff5[_0xbb43('0x17')]:![]);})[_0xbb43('0x14')](function(_0x500af4){_0x1e83cd(_0x500af4);});};AGIVertices[_0xbb43('0x10')][_0xbb43('0x1e')]=function(_0x54a9aa,_0x464b4a){this[_0xbb43('0x12')][_0xbb43('0x1f')](_0x54a9aa)['then'](function(_0x4ea4c5){_0x464b4a(null,_0x4ea4c5?_0x4ea4c5[_0xbb43('0x17')]:![]);})[_0xbb43('0x14')](function(_0x5b21b6){_0x464b4a(_0x5b21b6);});};AGIVertices['prototype'][_0xbb43('0x20')]=function(_0xb9fe3b,_0x268fb5){var _0x4bb859=this;this[_0xbb43('0x12')][_0xbb43('0x21')](_0xb9fe3b)[_0xbb43('0x16')](function(_0x1a6e2b){_0x268fb5(null,_0x1a6e2b?_0x4bb859['getSoundPath'](_0x1a6e2b[_0xbb43('0x22')]):![]);})[_0xbb43('0x14')](function(_0x821beb){_0x268fb5(_0x821beb);});};AGIVertices[_0xbb43('0x10')][_0xbb43('0x23')]=function(_0x41da98,_0x2860d8){this['rpc'][_0xbb43('0x24')](_0x41da98)[_0xbb43('0x16')](function(_0x3c46c6){_0x2860d8(null,_0x3c46c6?_0x3c46c6:![]);})['catch'](function(_0x359b25){_0x2860d8(_0x359b25);});};AGIVertices[_0xbb43('0x10')][_0xbb43('0x25')]=function(_0x168374,_0x2b3350,_0x2459a7){this[_0xbb43('0xf')][_0xbb43('0x25')](_0x168374,_0x2b3350)[_0xbb43('0x16')](function(){_0x2459a7(null);})['catch'](function(_0x5253a4){_0x2459a7(_0x5253a4);});};AGIVertices['prototype']['getIntervals']=function(_0x352249,_0x1186fd){this[_0xbb43('0x12')][_0xbb43('0x26')](_0x352249)[_0xbb43('0x16')](function(_0xa153c9){if(_0xa153c9){if(_0xa153c9[_0xbb43('0x27')]){_0x1186fd(null,[_0xa153c9[_0xbb43('0x28')]]);}else{_0x1186fd(null,_['map'](_0xa153c9[_0xbb43('0x29')],_0xbb43('0x28')));}}else{_0x1186fd(null,![]);}})[_0xbb43('0x14')](function(_0x5cbb05){_0x1186fd(_0x5cbb05);});};AGIVertices['prototype'][_0xbb43('0x2a')]=function(_0x42ae94){return util[_0xbb43('0x2b')](_0xbb43('0x2c'),FILES_PATH,_0x42ae94);};AGIVertices['prototype'][_0xbb43('0x2d')]=function(_0x4ab8e5,_0x3ba581,_0x10014c){odbc[_0xbb43('0x2e')](_0x4ab8e5,function(_0x181877){if(_0x181877){logger[_0xbb43('0x2f')](_0xbb43('0x30'),_0x181877);_0x10014c(_0x181877);}else{logger[_0xbb43('0x31')](_0xbb43('0x32'));odbc[_0xbb43('0x33')](_0x3ba581,function(_0xa48590,_0xfeaa38){if(_0xa48590){logger[_0xbb43('0x31')]('Error\x20executing\x20query\x20%s',_0x3ba581);_0x10014c(_0xa48590);}else{logger[_0xbb43('0x31')](_0xbb43('0x34'),_0x3ba581);odbc[_0xbb43('0x35')](function(_0x2db230){if(_0x2db230){logger[_0xbb43('0x2f')](_0xbb43('0x36'),_0x2db230);}_0x10014c(null,_0xfeaa38);});}});}});};AGIVertices[_0xbb43('0x10')][_0xbb43('0x37')]=function(_0x92d7cf,_0x2d7de8){this[_0xbb43('0x12')][_0xbb43('0x38')](_0x92d7cf)[_0xbb43('0x16')](function(_0x3a3371){_0x2d7de8(null,_0x3a3371?_0x3a3371:![]);})[_0xbb43('0x14')](function(_0x4a76a8){_0x2d7de8(_0x4a76a8);});};AGIVertices[_0xbb43('0x10')][_0xbb43('0x39')]=function(_0x38af31,_0x1b5646){this[_0xbb43('0x12')][_0xbb43('0x39')](_0x38af31)['then'](function(_0x13e9f7){_0x1b5646(null,_0x13e9f7);})[_0xbb43('0x14')](function(_0x550dd6){_0x1b5646(_0x550dd6);});};AGIVertices['prototype'][_0xbb43('0x3a')]=function(_0x1eb63f,_0x26aa10,_0xa6aacb){this[_0xbb43('0x12')]['createSquareDetailsReport']({'uniqueid':this['channel'][_0xbb43('0x3b')],'node':_0x1eb63f[_0xbb43('0x3c')],'application':_0x1eb63f[_0xbb43('0x3d')],'data':_0x26aa10||null,'project_name':this[_0xbb43('0xe')][_0xbb43('0x3e')],'callerid':this[_0xbb43('0xe')][_0xbb43('0x3f')]})[_0xbb43('0x16')](function(_0x475e26){if(_0xa6aacb){_0xa6aacb(null,_0x475e26);}})[_0xbb43('0x14')](function(_0x5ec957){if(_0xa6aacb){_0xa6aacb(_0x5ec957);}});};AGIVertices['prototype'][_0xbb43('0x40')]=function(_0x31891b,_0x5aa780,_0x13eb0f,_0x1e4eff){this[_0xbb43('0x12')][_0xbb43('0x40')]({'uniqueid':this[_0xbb43('0xe')][_0xbb43('0x3b')],'callerid':this[_0xbb43('0xe')]['callerid'],'calleridname':this[_0xbb43('0xe')][_0xbb43('0x41')],'context':this['channel'][_0xbb43('0x42')],'extension':this[_0xbb43('0xe')]['extension'],'priority':this[_0xbb43('0xe')][_0xbb43('0x43')],'accountcode':this[_0xbb43('0xe')][_0xbb43('0x44')],'dnid':this[_0xbb43('0xe')][_0xbb43('0x45')],'projectName':this[_0xbb43('0xe')][_0xbb43('0x3e')],'saveName':_0x5aa780,'filename':_0x31891b[_0xbb43('0x46')]||_0x5aa780,'savePath':_0x13eb0f})[_0xbb43('0x16')](function(_0x38cc4d){_0x1e4eff(null,_0x38cc4d);})[_0xbb43('0x14')](function(_0x5a2694){_0x1e4eff(_0x5a2694);});};AGIVertices[_0xbb43('0x10')][_0xbb43('0x47')]=function(_0x50096a,_0x7089bb,_0x4ab63b,_0x33d21b,_0x4998fb){this[_0xbb43('0x12')]['createSquareMessage']({'uniqueid':this[_0xbb43('0xe')][_0xbb43('0x3b')],'body':_0x50096a,'direction':_0x7089bb,'providerName':_0x4ab63b,'providerResponse':_0x33d21b})[_0xbb43('0x16')](function(_0x535347){if(_0x4998fb){_0x4998fb(null,_0x535347);}})[_0xbb43('0x14')](function(_0x218da6){if(_0x4998fb){_0x4998fb(_0x218da6);}});};AGIVertices[_0xbb43('0x10')]['createCmContact']=function(_0xd485c7,_0x3b53b9){this['rpc'][_0xbb43('0x48')]({'firstName':_['isEmpty'](_0xd485c7[_0xbb43('0x17')])||_[_0xbb43('0x49')](_0xd485c7['name'])?_0xbb43('0x4a')+Math[_0xbb43('0x4b')]():_0xd485c7[_0xbb43('0x17')],'lastName':_['isEmpty'](_0xd485c7[_0xbb43('0x4c')])||_['isNil'](_0xd485c7[_0xbb43('0x4c')])?null:_0xd485c7[_0xbb43('0x4c')],'phone':_0xd485c7[_0xbb43('0x4d')],'ListId':_0xd485c7['list_id'],'scheduledat':_0xd485c7[_0xbb43('0x4e')],'callbackUniqueid':this[_0xbb43('0xe')]['uniqueid'],'tags':'callback','description':_0xbb43('0x4f')+_0xd485c7[_0xbb43('0x4e')]['toString'](),'priority':_0xd485c7['callback_priority']})[_0xbb43('0x16')](function(_0x51ca4f){_0x3b53b9(null,_0x51ca4f);})[_0xbb43('0x14')](function(_0x4664e3){_0x3b53b9(_0x4664e3);});};AGIVertices[_0xbb43('0x10')]['getPause']=function(_0x5978c9,_0x52ec91){this['rpc']['getPauseById'](_0x5978c9)[_0xbb43('0x16')](function(_0x31d265){_0x52ec91(null,_0x31d265?_0x31d265[_0xbb43('0x17')]:![]);})[_0xbb43('0x14')](function(_0xbf2f4d){_0x52ec91(_0xbf2f4d);});};AGIVertices['prototype'][_0xbb43('0x50')]=function(_0x529455,_0x6e7c04,_0x4b5e4b){var _0x2ad30b={'role':_0xbb43('0x51')};_0x2ad30b[_0x529455]=this[_0xbb43('0xe')][_0xbb43('0x3f')];this['rpc'][_0xbb43('0x50')](_0x2ad30b,_0x6e7c04,this['channel'][_0xbb43('0x3b')])[_0xbb43('0x16')](function(_0x512619){_0x4b5e4b(null,_[_0xbb43('0x49')](_0x512619)?![]:!![]);})[_0xbb43('0x14')](function(_0x5cde88){logger[_0xbb43('0x2f')](_0x5cde88);_0x4b5e4b(null,![]);});};AGIVertices[_0xbb43('0x10')][_0xbb43('0x52')]=function(_0x19987b,_0x41c915){var _0x42221e={'role':_0xbb43('0x51')};_0x42221e[_0x19987b]=this[_0xbb43('0xe')]['callerid'];this[_0xbb43('0x12')]['agentUnpause'](_0x42221e)[_0xbb43('0x16')](function(_0x2e70bf){_0x41c915(null,_['isNil'](_0x2e70bf)?![]:!![]);})[_0xbb43('0x14')](function(_0x2e49e2){logger[_0xbb43('0x2f')](_0x2e49e2);_0x41c915(null,![]);});};AGIVertices[_0xbb43('0x10')][_0xbb43('0x53')]=function(_0x88a62a,_0x1233ba){var _0x2274a1={'role':'agent'};_0x2274a1[_0x88a62a]=this[_0xbb43('0xe')][_0xbb43('0x3f')];this[_0xbb43('0x12')][_0xbb43('0x53')](_0x2274a1)['then'](function(_0x226f27){_0x1233ba(null,_['isNil'](_0x226f27)?![]:!![]);})[_0xbb43('0x14')](function(_0x5102fb){logger[_0xbb43('0x2f')](_0x5102fb);_0x1233ba(null,![]);});};AGIVertices[_0xbb43('0x10')][_0xbb43('0x54')]=function(_0x265d2d,_0x3b8363){var _0x43468e={'role':_0xbb43('0x51')};_0x43468e[_0x265d2d]=this[_0xbb43('0xe')][_0xbb43('0x3f')];var _0x32483f=_0x265d2d!='internal'?util[_0xbb43('0x2b')]('%s/%s@from-sip/n',_0xbb43('0x55'),this[_0xbb43('0xe')][_0xbb43('0x3f')]):undefined;this[_0xbb43('0x12')][_0xbb43('0x54')](_0x43468e,_0x32483f)[_0xbb43('0x16')](function(_0x238a86){_0x3b8363(null,_[_0xbb43('0x49')](_0x238a86)?![]:!![]);})['catch'](function(_0x405665){logger['error'](_0x405665);_0x3b8363(null,![]);});};AGIVertices['prototype'][_0xbb43('0x56')]=function(_0x4be7f7,_0x7b2e43){sh[_0xbb43('0x57')](_['trim'](_0x4be7f7),function(_0x221727,_0x347c53){var _0x52bd44=_0x347c53[_0xbb43('0x58')](/(\r\n|\n|\r)/gm,'');_0x7b2e43(null,_0x52bd44);});};AGIVertices[_0xbb43('0x10')][_0xbb43('0x59')]=function(_0x14678c,_0x40ac8c){scripts[_0xbb43('0x59')](_0x14678c[_0xbb43('0x5a')],_0x14678c[_0xbb43('0x5b')]||_0xbb43('0x5c'),_0x14678c[_0xbb43('0x5c')],_0x14678c[_0xbb43('0x5d')]||_0xbb43('0x5e'),_0x14678c[_0xbb43('0x5f')]||_0xbb43('0x60'),_0x14678c[_0xbb43('0x61')]||_0xbb43('0x62'))[_0xbb43('0x16')](function(_0x40ab00){_0x40ac8c(null,_0x40ab00);})[_0xbb43('0x14')](function(_0x21fc9d){_0x40ac8c(_0x21fc9d);});};AGIVertices[_0xbb43('0x10')][_0xbb43('0x63')]=function(_0x475740,_0x38ae0e){scripts[_0xbb43('0x63')](_0x475740[_0xbb43('0x5c')],_0x475740[_0xbb43('0x64')]||'en',0x1)[_0xbb43('0x16')](function(_0x422ba7){_0x38ae0e(null,_0x422ba7);})[_0xbb43('0x14')](function(_0x498089){_0x38ae0e(_0x498089);});};AGIVertices[_0xbb43('0x10')][_0xbb43('0x65')]=function(_0x1d178a,_0x146ebc){var _0x1b66ba={'uri':_0x1d178a[_0xbb43('0x66')],'method':_0x1d178a['method'],'json':!![],'resolveWithFullResponse':!![],'strictSSL':![],'timeout':typeof parseInt(_0x1d178a[_0xbb43('0x67')])===_0xbb43('0x68')&&parseInt(_0x1d178a['timeout'])>=0x1?parseInt(_0x1d178a['timeout'])*0x3e8:0x5*0x3e8};if(_['includes']([_0xbb43('0x69'),_0xbb43('0x6a')],_0x1b66ba[_0xbb43('0x6b')][_0xbb43('0x6c')]())){try{_0x1b66ba['body']=_0x1d178a['rawBody']?JSON[_0xbb43('0x6d')](_0x1d178a['rawBody']):{};}catch(_0x308199){logger[_0xbb43('0x2f')]('An\x20incorrect\x20formatted\x20json\x20body\x20has\x20been\x20passed\x20to\x20the\x20function',_0x308199);}}try{_0x1b66ba[_0xbb43('0x6e')]=_0x1d178a[_0xbb43('0x6f')]?JSON[_0xbb43('0x6d')](_0x1d178a['rawHeaders']):{};}catch(_0x3374a8){logger['error'](_0xbb43('0x70'),_0x3374a8);}if(_0x1d178a[_0xbb43('0x71')]){try{var _0x4bd0d6=require(_0x1d178a[_0xbb43('0x71')])[_0xbb43('0x72')](this,_0x1b66ba);_0x1b66ba[_0xbb43('0x73')]=Mustache[_0xbb43('0x74')](_0x1d178a[_0xbb43('0x66')],_0x4bd0d6,{},['$$','$$']);if(_0x1b66ba['headers']){_0x1b66ba['headers']=JSON[_0xbb43('0x6d')](Mustache[_0xbb43('0x74')](JSON[_0xbb43('0x75')](_0x1b66ba[_0xbb43('0x6e')]),_0x4bd0d6,{},['$$','$$']));}if(_0x1b66ba[_0xbb43('0x76')]){_0x1b66ba[_0xbb43('0x76')]=JSON[_0xbb43('0x6d')](Mustache[_0xbb43('0x74')](JSON['stringify'](_0x1b66ba[_0xbb43('0x76')]),_0x4bd0d6,{},['$$','$$']));}}catch(_0x4f613a){logger[_0xbb43('0x2f')](_0xbb43('0x77'),_0x4f613a);}}rp(_0x1b66ba)['then'](function(_0x371a7c){var _0x1ba677={'statusCode':_0x371a7c[_0xbb43('0x78')]||0xc8,'statusMessage':_0x371a7c[_0xbb43('0x79')]||'OK','headers':_0x371a7c[_0xbb43('0x6e')]||{},'body':_0x371a7c[_0xbb43('0x76')]||{}};_0x146ebc(null,_0x1ba677);})['catch'](function(_0x3d0182){var _0x2d18e7={'statusCode':_0x3d0182['statusCode']||0x1f4,'statusMessage':_0x3d0182[_0xbb43('0x7a')]||'500\x20-\x20Internal\x20Server\x20Error','headers':_0x3d0182[_0xbb43('0x7b')][_0xbb43('0x6e')]||{},'body':_0x3d0182[_0xbb43('0x7b')][_0xbb43('0x76')]||{}};_0x146ebc(null,_0x2d18e7);});};AGIVertices[_0xbb43('0x10')][_0xbb43('0x7c')]=function(_0x339552,_0x2042a4){scripts[_0xbb43('0x7c')](this[_0xbb43('0xe')][_0xbb43('0x3b')],_0x339552['key'],_0x339552[_0xbb43('0x5c')],_0x339552['dialogflow_language']||'en')[_0xbb43('0x16')](function(_0x41e4a8){_0x2042a4(null,_0x41e4a8);})[_0xbb43('0x14')](function(_0x21bea1){_0x2042a4(_0x21bea1);});};AGIVertices[_0xbb43('0x10')]['googleDialogflowV2']=function(_0x10498d,_0x22add9){scripts[_0xbb43('0x7d')](this[_0xbb43('0xe')][_0xbb43('0x3b')],_0x10498d['dialogflowV2_project_id'],_0x10498d[_0xbb43('0x7e')],_0x10498d['private_key'],_0x10498d[_0xbb43('0x5c')],_0x10498d[_0xbb43('0x7f')]||'en')[_0xbb43('0x16')](function(_0x1c611d){_0x22add9(null,_0x1c611d);})[_0xbb43('0x14')](function(_0x5b2803){_0x22add9(_0x5b2803);});};AGIVertices[_0xbb43('0x10')]['sestekNDA']=function(_0x6c9702,_0x56e9c1){scripts[_0xbb43('0x80')](this['channel'],_0x6c9702)[_0xbb43('0x16')](function(_0x37cf8e){_0x56e9c1(null,_0x37cf8e);})[_0xbb43('0x14')](function(_0x5f15f8){_0x56e9c1(_0x5f15f8);});};AGIVertices[_0xbb43('0x10')]['ispeechTTS']=function(_0xf95ccf,_0xacc0da){scripts['ispeechTTS'](_0xf95ccf[_0xbb43('0x81')],_0xf95ccf[_0xbb43('0x5c')],_0xf95ccf[_0xbb43('0x82')]||_0xbb43('0x5e'),_0xf95ccf['speed'])[_0xbb43('0x16')](function(_0x37eee1){_0xacc0da(null,_0x37eee1);})['catch'](function(_0x569ad2){_0xacc0da(_0x569ad2);});};AGIVertices['prototype'][_0xbb43('0x83')]=function(_0x57dd9a,_0x18830e,_0x1734b0){scripts[_0xbb43('0x83')](_0x18830e,_0x57dd9a['key'],_0x57dd9a['ispeech_asr_language']||_0xbb43('0x5e'),this[_0xbb43('0x84')](_0x57dd9a[_0xbb43('0x85')])?_0x57dd9a[_0xbb43('0x85')]:undefined)['then'](function(_0x44841f){_0x1734b0(null,_0x44841f);})[_0xbb43('0x14')](function(_0x2ea427){_0x1734b0(_0x2ea427);});};AGIVertices['prototype'][_0xbb43('0x86')]=function(_0xc9623,_0x75999e){scripts[_0xbb43('0x86')](_0xc9623[_0xbb43('0x87')],_0xc9623['aws_secret_access_key'],_0xc9623[_0xbb43('0x88')],_0xc9623['aws_polly_voice']||_0xbb43('0x89'),_0xc9623[_0xbb43('0x5c')],_0xc9623[_0xbb43('0x8a')]||_0xbb43('0x5c'))['then'](function(_0x3174ea){_0x75999e(null,_0x3174ea);})['catch'](function(_0x265bdd){_0x75999e(_0x265bdd);});};AGIVertices[_0xbb43('0x10')]['awsLex']=function(_0x2721fc,_0x40e57e){scripts[_0xbb43('0x8b')](this[_0xbb43('0xe')]['uniqueid'],_0x2721fc['aws_access_key_id'],_0x2721fc['aws_secret_access_key'],_0x2721fc[_0xbb43('0x8c')],_0x2721fc[_0xbb43('0x5c')],_0x2721fc['aws_bot_name'])[_0xbb43('0x16')](function(_0x27db99){_0x40e57e(null,_0x27db99);})[_0xbb43('0x14')](function(_0x1966f4){_0x40e57e(_0x1966f4);});};AGIVertices[_0xbb43('0x10')][_0xbb43('0x8d')]=function(_0x6a0f62,_0xf3db56,_0x2cc676){scripts['googleASR'](_0xf3db56,_0x6a0f62[_0xbb43('0x81')],_0x6a0f62[_0xbb43('0x8e')]||_0xbb43('0x5e'))[_0xbb43('0x16')](function(_0x2a95cb){_0x2cc676(null,_0x2a95cb);})[_0xbb43('0x14')](function(_0x1d6eda){_0x2cc676(_0x1d6eda);});};AGIVertices[_0xbb43('0x10')][_0xbb43('0x8f')]=function(_0x5c152,_0x9edadf,_0x5e3539){scripts[_0xbb43('0x8f')](_0x9edadf,_0x5c152[_0xbb43('0x90')],_0x5c152['appsecret'],_0x5c152[_0xbb43('0x73')])[_0xbb43('0x16')](function(_0x13e255){_0x5e3539(null,_0x13e255);})['catch'](function(_0x58ba69){_0x5e3539(_0x58ba69);});};AGIVertices[_0xbb43('0x10')][_0xbb43('0x91')]=function(_0x3e6c48){var _0x187f44=_[_0xbb43('0x92')](verticesWithRetry,_0x3e6c48[_0xbb43('0x3d')])?_0x3e6c48:_[_0xbb43('0x93')](_0x3e6c48);for(var _0xebceea in _0x187f44){if(_0x187f44['hasOwnProperty'](_0xebceea)){if(_0x187f44[_0xebceea]&&_[_0xbb43('0x94')](_0x187f44[_0xebceea])){if(_[_0xbb43('0x92')](recursiveMapAttributes,_0xebceea)){_0x187f44[_0xebceea]=this[_0xbb43('0x95')](_0x187f44[_0xebceea]);}else{_0x187f44[_0xebceea]=this[_0xbb43('0x96')](_0x187f44[_0xebceea]);}}}}return _0x187f44;};AGIVertices[_0xbb43('0x10')]['recursiveNodeIndex']=function(_0x56934f){for(var _0x29f88e in _0x56934f){if(_0x56934f[_0xbb43('0x97')](_0x29f88e)){if(_[_0xbb43('0x98')](_0x56934f[_0x29f88e])){this[_0xbb43('0x99')](_0x56934f[_0x29f88e]);}else if(_['isArray'](_0x56934f[_0x29f88e])){for(var _0xb3e15d=0x0;_0xb3e15d<_0x56934f[_0x29f88e]['length'];_0xb3e15d++){this['recursiveNodeIndex'](_0x56934f[_0x29f88e][_0xb3e15d]);}}else if(_['isString'](_0x56934f[_0x29f88e])){_0x56934f[_0x29f88e]=this[_0xbb43('0x96')](_0x56934f[_0x29f88e]);}}}};AGIVertices[_0xbb43('0x10')][_0xbb43('0x9a')]=function(_0x49daa9,_0x31708a){for(var _0x12037a in _0x49daa9){if(_0x49daa9[_0xbb43('0x97')](_0x12037a)){if(_['isPlainObject'](_0x49daa9[_0x12037a])){if(!_[_0xbb43('0x9b')](_0x49daa9[_0x12037a])){this['saveRestApiResult'](_0x49daa9[_0x12037a],util[_0xbb43('0x2b')](_0xbb43('0x9c'),_0x31708a,_0x12037a));}}else if(_[_0xbb43('0x9d')](_0x49daa9[_0x12037a])){for(var _0x12ec48=0x0;_0x12ec48<_0x49daa9[_0x12037a][_0xbb43('0x9e')];_0x12ec48++){this['saveRestApiResult'](_0x49daa9[_0x12037a][_0x12ec48],util[_0xbb43('0x2b')](_0xbb43('0x9c'),_0x31708a,_0x12037a+'['+_0x12ec48+']'));}}else{if(!_['isNil'](_0x49daa9[_0x12037a])){this[_0xbb43('0xe')]['setVariable'](util['format'](_0xbb43('0x9c'),_0x31708a,_0x12037a),_0x49daa9[_0x12037a]);}}}}};AGIVertices['prototype'][_0xbb43('0x95')]=function(_0x2a7fcd){try{var _0x1d7bf2=JSON[_0xbb43('0x6d')](_0x2a7fcd);this['recursiveNodeIndex'](_0x1d7bf2);return JSON['stringify'](_0x1d7bf2);}catch(_0xef51b7){return this[_0xbb43('0x96')](_0x2a7fcd);}};AGIVertices[_0xbb43('0x10')][_0xbb43('0x96')]=function(_0x501743){var _0x883f34=_0x501743[_0xbb43('0x9f')]('{');for(var _0x2f3739=0x1;_0x2f3739<_0x883f34[_0xbb43('0x9e')];_0x2f3739+=0x1){var _0x49b282=_0x883f34[_0x2f3739][_0xbb43('0x9f')]('}');if(_0x49b282[_0xbb43('0x9e')]>0x1){_0x501743=_0x501743['replaceAll']('{'+_0x49b282[0x0]+'}',this[_0xbb43('0xe')]['getVariable'](_0x49b282[0x0])[_0xbb43('0xa0')]||_0x49b282[0x0]);}}if(_0x883f34[_0xbb43('0x9e')]===0x1){return _0x501743[_0xbb43('0xa1')]();}return this[_0xbb43('0x96')](_0x501743);};AGIVertices['prototype'][_0xbb43('0xa2')]=function(_0x3cf673,_0x45116a){var _0x3d1677=this[_0xbb43('0xe')][_0xbb43('0x11')](_0x3cf673);if(_0x3d1677['result']===-0x1){return _0x3d1677;}logger[_0xbb43('0x31')](util[_0xbb43('0x2b')](_0xbb43('0xa3'),_0x45116a,_0x3d1677[_0xbb43('0xa0')]));return this[_0xbb43('0xe')]['setVariable'](_0x45116a,_0x3d1677[_0xbb43('0xa0')]);};AGIVertices[_0xbb43('0x10')][_0xbb43('0x84')]=function(_0x4b46bc){return _0x4b46bc&&_0x4b46bc!=='0'&&_0x4b46bc!=='-1'&&_0x4b46bc!=='';};AGIVertices[_0xbb43('0x10')][_0xbb43('0xa4')]=function(_0x2cffd0){this[_0xbb43('0x3a')][_0xbb43('0x72')](this,_0x2cffd0,'-');_0x2cffd0[_0xbb43('0xa5')]=_0x2cffd0[_0xbb43('0xa4')];return{'code':0xc8,'result':'-'};};AGIVertices[_0xbb43('0x10')][_0xbb43('0xa6')]=function(_0x18738a){logger[_0xbb43('0x31')](util[_0xbb43('0x2b')](_0xbb43('0xa7'),_0x18738a[_0xbb43('0x3c')]));if(!this[_0xbb43('0x84')](_0x18738a[_0xbb43('0x5c')])){return this[_0xbb43('0xe')][_0xbb43('0xa8')](_0xbb43('0xa9'));}var _0x13f97e='\x22'+_0x18738a[_0xbb43('0x5c')]+'\x22';if(this['isConfigured'](_0x18738a[_0xbb43('0x7b')])){_0x13f97e+=','+_0x18738a[_0xbb43('0x7b')];}var _0x248a03=this[_0xbb43('0xe')][_0xbb43('0x57')]('MRCPSynth',_0x13f97e);if(_0x248a03[_0xbb43('0xaa')]===-0x1){return _0x248a03;}return this[_0xbb43('0xe')][_0xbb43('0xa8')](util[_0xbb43('0x2b')](_0xbb43('0xab'),_0x13f97e));};AGIVertices['prototype']['mrcprecog']=function(_0x418984){logger[_0xbb43('0x31')](util[_0xbb43('0x2b')]('Enter\x20in\x20MRCPRecog\x20(%s)\x20block',_0x418984['label']));if(!this['isConfigured'](_0x418984[_0xbb43('0xac')])){return this[_0xbb43('0xe')]['noop'](_0xbb43('0xad'));}var _0x9eb32c=_0x418984[_0xbb43('0xac')];if(this[_0xbb43('0x84')](_0x418984['options'])){_0x9eb32c+=','+_0x418984[_0xbb43('0x7b')];}var _0x445590=this[_0xbb43('0xe')][_0xbb43('0x57')](_0xbb43('0xae'),_0x9eb32c);if(_0x445590['result']===-0x1){return _0x445590;}var _0x132910=this[_0xbb43('0xa2')](_0xbb43('0xaf'),'MRCP_RECOG_CONFIDENCE');if(_0x132910[_0xbb43('0xaa')]===-0x1){return _0x132910;}var _0x427abe=this[_0xbb43('0xa2')](_0xbb43('0xb0'),_0xbb43('0xb1'));if(_0x427abe[_0xbb43('0xaa')]===-0x1){return _0x427abe;}var _0x20face=this['getAndSetVariable']('RECOG_INSTANCE()','MRCP_RECOG_INSTANCE');if(_0x20face[_0xbb43('0xaa')]===-0x1){return _0x20face;}return this[_0xbb43('0xe')][_0xbb43('0xa8')](util[_0xbb43('0x2b')](_0xbb43('0xb2'),_0x9eb32c));};AGIVertices['prototype']['agi']=function(_0x1349e5){logger['info'](util[_0xbb43('0x2b')]('Enter\x20in\x20AGI\x20(%s)\x20block',_0x1349e5['label']));return this[_0xbb43('0xe')][_0xbb43('0x8')]([_0x1349e5['command'],_0x1349e5[_0xbb43('0xb3')]]);};AGIVertices['prototype'][_0xbb43('0xb4')]=function(_0x5b851f){logger['info'](util['format'](_0xbb43('0xb5'),_0x5b851f[_0xbb43('0x3c')]));if(this[_0xbb43('0x84')](_0x5b851f[_0xbb43('0x67')])){logger[_0xbb43('0x31')](util['format'](_0xbb43('0xb6'),_0x5b851f[_0xbb43('0x67')]));var _0x2560b3=this[_0xbb43('0xe')][_0xbb43('0xb7')](_0x5b851f[_0xbb43('0x67')]);if(_0x2560b3[_0xbb43('0xaa')]===-0x1){return _0x2560b3;}}return this['channel'][_0xbb43('0xb4')]();};AGIVertices['prototype'][_0xbb43('0xb8')]=function(_0x3c1a63){logger[_0xbb43('0x31')](util['format'](_0xbb43('0xb9'),_0x3c1a63[_0xbb43('0x3c')]));if(!this[_0xbb43('0x84')](_0x3c1a63['list_id'])){return this[_0xbb43('0xe')][_0xbb43('0x2f')](_0x3c1a63,_0xbb43('0xba'));}_0x3c1a63[_0xbb43('0x4e')]=moment();if(this[_0xbb43('0x84')](_0x3c1a63['delay'])){_0x3c1a63[_0xbb43('0x4e')]=moment()['add'](_0x3c1a63[_0xbb43('0xbb')],_0xbb43('0xbc'));}if(!this[_0xbb43('0x84')](_0x3c1a63[_0xbb43('0xbd')])){_0x3c1a63[_0xbb43('0xbd')]=0x2;}this['createCmContact'][_0xbb43('0x72')](this,_0x3c1a63);return this[_0xbb43('0xe')][_0xbb43('0xa8')](util[_0xbb43('0x2b')](_0xbb43('0xbe'),_0x3c1a63[_0xbb43('0x4d')],_0x3c1a63[_0xbb43('0xbf')],_0x3c1a63[_0xbb43('0x4e')]));};AGIVertices[_0xbb43('0x10')]['custom_app']=function(_0x401e7b){logger[_0xbb43('0x31')](util[_0xbb43('0x2b')]('Enter\x20in\x20CUSTOM\x20APP\x20(%s)\x20block',_0x401e7b[_0xbb43('0x3c')]));var _0x2ed633=this[_0xbb43('0xe')][_0xbb43('0x57')](_0x401e7b[_0xbb43('0xc0')],_0x401e7b[_0xbb43('0x7b')]);if(_0x2ed633[_0xbb43('0xaa')]===-0x1){return _0x2ed633;}return this[_0xbb43('0xe')][_0xbb43('0xa8')](util[_0xbb43('0x2b')](_0xbb43('0xc1'),_0x401e7b[_0xbb43('0xc0')],_0x401e7b[_0xbb43('0x7b')]));};AGIVertices[_0xbb43('0x10')][_0xbb43('0xc2')]=function(_0x23bb72){logger[_0xbb43('0x31')](util['format'](_0xbb43('0xc3'),_0x23bb72[_0xbb43('0x3c')]));if(!this[_0xbb43('0x84')](_0x23bb72['text'])){return this['channel'][_0xbb43('0xa8')](_0xbb43('0xa9'));}var _0x599d64='\x22'+_0x23bb72['text']+'\x22';if(this[_0xbb43('0x84')](_0x23bb72[_0xbb43('0x7b')])){_0x599d64+=','+_0x23bb72[_0xbb43('0x7b')];}var _0x16eff3=this[_0xbb43('0xe')]['exec'](_0xbb43('0xc4'),_0x599d64);if(_0x16eff3['result']===-0x1){return _0x16eff3;}return this['channel']['noop'](util[_0xbb43('0x2b')](_0xbb43('0xab'),_0x599d64));};AGIVertices['prototype'][_0xbb43('0xc5')]=function(_0x3244ed){logger[_0xbb43('0x31')](util[_0xbb43('0x2b')](_0xbb43('0xc6'),_0x3244ed['label']));if(!this[_0xbb43('0x84')](_0x3244ed[_0xbb43('0x5c')])){return this[_0xbb43('0xe')][_0xbb43('0xa8')]('no\x20text\x20configured');}var _0x46f510='\x22'+_0x3244ed['text']+'\x22';if(this[_0xbb43('0x84')](_0x3244ed[_0xbb43('0x7b')])){_0x46f510+=','+_0x3244ed[_0xbb43('0x7b')];}var _0x45cb88=this[_0xbb43('0xe')][_0xbb43('0x57')](_0xbb43('0xc4'),_0x46f510);if(_0x45cb88[_0xbb43('0xaa')]===-0x1){return _0x45cb88;}return this[_0xbb43('0xe')][_0xbb43('0xa8')](util[_0xbb43('0x2b')](_0xbb43('0xab'),_0x46f510));};AGIVertices[_0xbb43('0x10')][_0xbb43('0xc7')]=function(_0x3b4260){logger[_0xbb43('0x31')](util['format']('Enter\x20in\x20LUMENVOXASR\x20(%s)\x20block',_0x3b4260[_0xbb43('0x3c')]));if(!this[_0xbb43('0x84')](_0x3b4260['grammar'])){return this[_0xbb43('0xe')][_0xbb43('0xa8')](_0xbb43('0xad'));}var _0x2f4e12=_0x3b4260[_0xbb43('0xac')];if(this['isConfigured'](_0x3b4260[_0xbb43('0x7b')])){_0x2f4e12+=','+_0x3b4260['options'];}var _0x4ea141=this[_0xbb43('0xe')]['exec'](_0xbb43('0xae'),_0x2f4e12);if(_0x4ea141['result']===-0x1){return _0x4ea141;}var _0x23ae87=this[_0xbb43('0xa2')](_0xbb43('0xaf'),_0xbb43('0xc8'));if(_0x23ae87['result']===-0x1){return _0x23ae87;}var _0xbf45fe=this[_0xbb43('0xa2')](_0xbb43('0xb0'),_0xbb43('0xc9'));if(_0xbf45fe['result']===-0x1){return _0xbf45fe;}var _0x31d732=this[_0xbb43('0xa2')](_0xbb43('0xca'),'LUMENVOX_ASR_INSTANCE');if(_0x31d732[_0xbb43('0xaa')]===-0x1){return _0x31d732;}return this[_0xbb43('0xe')][_0xbb43('0xa8')](util[_0xbb43('0x2b')](_0xbb43('0xb2'),_0x2f4e12));};AGIVertices['prototype'][_0xbb43('0xcb')]=function(_0x5b3250){logger['info'](util[_0xbb43('0x2b')]('Enter\x20in\x20SESTEKASR\x20(%s)\x20block',_0x5b3250[_0xbb43('0x3c')]));if(!this[_0xbb43('0x84')](_0x5b3250[_0xbb43('0xac')])){return this[_0xbb43('0xe')][_0xbb43('0xa8')]('no\x20grammar\x20configured');}var _0x28d33a=_0x5b3250[_0xbb43('0xac')];if(this['isConfigured'](_0x5b3250[_0xbb43('0x7b')])){_0x28d33a+=','+_0x5b3250[_0xbb43('0x7b')];}var _0x35ae97=this[_0xbb43('0xe')][_0xbb43('0x57')](_0xbb43('0xae'),_0x28d33a);if(_0x35ae97['result']===-0x1){return _0x35ae97;}var _0x42b8b0=this[_0xbb43('0xa2')](_0xbb43('0xaf'),_0xbb43('0xcc'));if(_0x42b8b0[_0xbb43('0xaa')]===-0x1){return _0x42b8b0;}var _0x3859d9=this[_0xbb43('0xa2')](_0xbb43('0xb0'),'SESTEK_ASR_TRANSCRIPT');if(_0x3859d9[_0xbb43('0xaa')]===-0x1){return _0x3859d9;}var _0x1f7c11=this['getAndSetVariable'](_0xbb43('0xca'),_0xbb43('0xcd'));if(_0x1f7c11[_0xbb43('0xaa')]===-0x1){return _0x1f7c11;}return this[_0xbb43('0xe')][_0xbb43('0xa8')](util[_0xbb43('0x2b')](_0xbb43('0xb2'),_0x28d33a));};AGIVertices[_0xbb43('0x10')][_0xbb43('0xce')]=function(_0x38a9de){logger[_0xbb43('0x31')](util[_0xbb43('0x2b')](_0xbb43('0xcf'),_0x38a9de['label']));if(!this[_0xbb43('0x84')](_0x38a9de[_0xbb43('0xd0')])){return this['channel'][_0xbb43('0x2f')](_0x38a9de,'no\x20database\x20selected');}var _0x39b390=this[_0xbb43('0xd1')][_0xbb43('0x72')](this,_0x38a9de[_0xbb43('0xd0')]);if(!_0x39b390){return this[_0xbb43('0xe')][_0xbb43('0x2f')](_0x38a9de,_0xbb43('0xd2'));}if(!this[_0xbb43('0x84')](_0x38a9de[_0xbb43('0x33')])){return this[_0xbb43('0xe')][_0xbb43('0x2f')](_0x38a9de,_0xbb43('0xd3'));}var _0x54fca4=_0x38a9de['query'][_0xbb43('0x58')](/(\r\n|\n|\r)/gm,'\x20');this[_0xbb43('0xe')]['noop'](util[_0xbb43('0x2b')]('query:\x20%s',_0x54fca4));var _0x4f440e=this['getQueryOdbc'][_0xbb43('0x72')](this,_0x39b390,_0x54fca4);this[_0xbb43('0x3a')][_0xbb43('0x72')](this,_0x38a9de,_0x54fca4);if(!this[_0xbb43('0x84')](_0x38a9de[_0xbb43('0xd4')])){return this[_0xbb43('0xe')][_0xbb43('0xa8')](_0xbb43('0xd5'));}var _0x4e8bda=this[_0xbb43('0x11')][_0xbb43('0x72')](this,_0x38a9de['variable_id']);if(!_0x4e8bda){return this[_0xbb43('0xe')][_0xbb43('0x2f')](_0x38a9de,_0xbb43('0xd6'));}var _0x17ac9b=this;_0x4f440e[_0xbb43('0xd7')](function(_0x2cd3e7,_0x422b7c){Object[_0xbb43('0xd8')](_0x2cd3e7)[_0xbb43('0xd7')](function(_0x5f5ddc){_0x17ac9b[_0xbb43('0xe')][_0xbb43('0xd9')](util['format']('%s[%s][%s]',_0x4e8bda,_0x422b7c,_0x5f5ddc),_0x2cd3e7[_0x5f5ddc]);});});this[_0xbb43('0xe')][_0xbb43('0xd9')](util[_0xbb43('0x2b')](_0xbb43('0xda'),_0x4e8bda),_0x4f440e['length']);return this[_0xbb43('0xe')]['noop'](util[_0xbb43('0x2b')]('variable\x20%s\x20set',_0x4e8bda));};AGIVertices[_0xbb43('0x10')]['dial']=function(_0x1f941a){logger[_0xbb43('0xdb')](util[_0xbb43('0x2b')](_0xbb43('0xdc'),_0x1f941a['label']));if(!this[_0xbb43('0x84')](_0x1f941a[_0xbb43('0xdd')])){return this[_0xbb43('0xe')][_0xbb43('0x2f')](_0x1f941a,_0xbb43('0xde'));}var _0x1fbd28=this['getUser'][_0xbb43('0x72')](this,_0x1f941a['sip_id']);if(!_0x1fbd28){return this[_0xbb43('0xe')][_0xbb43('0x2f')](_0x1f941a,_0xbb43('0xdf'));}var _0x4bbf68=this[_0xbb43('0xe')][_0xbb43('0x57')]('DIAL',[util[_0xbb43('0x2b')](_0xbb43('0xe0'),_0x1fbd28),_0x1f941a[_0xbb43('0x67')],_0x1f941a[_0xbb43('0xe1')],_0x1f941a[_0xbb43('0x66')]]);if(_0x4bbf68[_0xbb43('0xaa')]===-0x1){return _0x4bbf68;}return this['channel'][_0xbb43('0xa8')](util[_0xbb43('0x2b')]('Executed\x20command\x20%s',_0xbb43('0xe2')));};AGIVertices['prototype']['dialogflow']=function(_0x5891ab){logger[_0xbb43('0x31')](util['format'](_0xbb43('0xe3'),_0x5891ab[_0xbb43('0x3c')]));if(!this[_0xbb43('0x84')](_0x5891ab[_0xbb43('0x81')])){return this[_0xbb43('0xe')][_0xbb43('0xa8')](_0xbb43('0xe4'));}if(!this[_0xbb43('0x84')](_0x5891ab['text'])){return this[_0xbb43('0xe')][_0xbb43('0xa8')](_0xbb43('0xa9'));}this[_0xbb43('0xe')][_0xbb43('0xe5')]=!![];this[_0xbb43('0x3a')](_0x5891ab);this[_0xbb43('0x47')](_0x5891ab[_0xbb43('0x5c')],'in','','');this[_0xbb43('0xe')][_0xbb43('0xa8')](util[_0xbb43('0x2b')](_0xbb43('0xe6'),_0x5891ab[_0xbb43('0x5c')]));var _0x256258=this['googleDialogflow']['sync'](this,_0x5891ab);if(_0x256258){for(var _0x30f12e in _0x256258){if(_0x256258[_0xbb43('0x97')](_0x30f12e)){this[_0xbb43('0xe')][_0xbb43('0xd9')](util[_0xbb43('0x2b')](_0xbb43('0xe7'),_0x30f12e['toUpperCase']()),_0x256258[_0x30f12e]);}}this[_0xbb43('0x47')](_0x256258[_0xbb43('0xe8')],_0xbb43('0xe9'),_0xbb43('0xea'),'');return this[_0xbb43('0xe')][_0xbb43('0xa8')](util[_0xbb43('0x2b')](_0xbb43('0xeb'),_0x256258[_0xbb43('0xe8')]));}return this['channel']['error'](_0x5891ab,_0xbb43('0xec'));};AGIVertices[_0xbb43('0x10')][_0xbb43('0xed')]=function(_0x1a7e0b){logger['info'](util[_0xbb43('0x2b')]('Enter\x20in\x20DIALOGFLOW\x20V2\x20(%s)\x20block',_0x1a7e0b['label']));if(!this[_0xbb43('0x84')](_0x1a7e0b[_0xbb43('0xee')])){return this[_0xbb43('0xe')][_0xbb43('0xa8')](_0xbb43('0xef'));}if(!this[_0xbb43('0x84')](_0x1a7e0b[_0xbb43('0x7e')])){return this[_0xbb43('0xe')][_0xbb43('0xa8')]('no\x20client_email\x20configured');}if(!this[_0xbb43('0x84')](_0x1a7e0b[_0xbb43('0xf0')])){return this[_0xbb43('0xe')]['noop']('no\x20private_key\x20configured');}if(!this[_0xbb43('0x84')](_0x1a7e0b[_0xbb43('0x7f')])){return this[_0xbb43('0xe')][_0xbb43('0xa8')](_0xbb43('0xf1'));}if(!this[_0xbb43('0x84')](_0x1a7e0b[_0xbb43('0x5c')])){return this[_0xbb43('0xe')]['noop'](_0xbb43('0xa9'));}this[_0xbb43('0xe')]['bot']=!![];this['createSquareDetailsReport'](_0x1a7e0b);this[_0xbb43('0x47')](_0x1a7e0b[_0xbb43('0x5c')],'in','','');this['channel']['noop'](util[_0xbb43('0x2b')](_0xbb43('0xf2'),_0x1a7e0b['text']));var _0x2a19a4=this[_0xbb43('0x7d')][_0xbb43('0x72')](this,_0x1a7e0b);if(_0x2a19a4){for(var _0x31663f in _0x2a19a4){if(_0x2a19a4['hasOwnProperty'](_0x31663f)){if(_0x31663f!==_0xbb43('0xf3')){this['channel'][_0xbb43('0xd9')](util['format'](_0xbb43('0xe7'),_0x31663f[_0xbb43('0x6c')]()),_0x2a19a4[_0x31663f]);}}}this['createSquareMessage'](_0x2a19a4[_0xbb43('0xe8')],'out',_0xbb43('0xed'),_0x2a19a4[_0xbb43('0xf3')]);return this[_0xbb43('0xe')][_0xbb43('0xa8')](util['format'](_0xbb43('0xf4'),_0x2a19a4[_0xbb43('0xe8')]));}return this['channel'][_0xbb43('0x2f')](_0x1a7e0b,_0xbb43('0xf5'));};AGIVertices[_0xbb43('0x10')][_0xbb43('0xf6')]=function(_0x3cf8c7){logger[_0xbb43('0x31')](util[_0xbb43('0x2b')](_0xbb43('0xf7'),_0x3cf8c7[_0xbb43('0x3c')]));if(!this['isConfigured'](_0x3cf8c7[_0xbb43('0xf8')])){return this[_0xbb43('0xe')]['noop'](_0xbb43('0xf9'));}if(!this[_0xbb43('0x84')](_0x3cf8c7[_0xbb43('0xfa')])){return this['channel'][_0xbb43('0xa8')]('no\x20username\x20configured');}if(!this[_0xbb43('0x84')](_0x3cf8c7[_0xbb43('0xfb')])){return this['channel']['noop'](_0xbb43('0xfc'));}if(!this[_0xbb43('0x84')](_0x3cf8c7[_0xbb43('0xfd')])){return this[_0xbb43('0xe')]['noop'](_0xbb43('0xa9'));}this[_0xbb43('0xe')][_0xbb43('0xe5')]=!![];this['createSquareDetailsReport'](_0x3cf8c7);this[_0xbb43('0x47')](_0x3cf8c7[_0xbb43('0x5c')],'in','','');this[_0xbb43('0xe')][_0xbb43('0xa8')](util[_0xbb43('0x2b')]('Trying\x20SestekNDA:\x20%s',_0x3cf8c7[_0xbb43('0x5c')]));var _0x5addc8=this[_0xbb43('0x80')][_0xbb43('0x72')](this,_0x3cf8c7);if(_0x5addc8){for(var _0x2f92b4 in _0x5addc8){if(_0x5addc8[_0xbb43('0x97')](_0x2f92b4)){this[_0xbb43('0xe')]['setVariable'](util[_0xbb43('0x2b')]('SESTEK_NDA_%s',_0x2f92b4[_0xbb43('0x6c')]()),_0x5addc8[_0x2f92b4]);}}this[_0xbb43('0x47')](_0x5addc8['speech'],_0xbb43('0xe9'),_0xbb43('0xf6'),'');if(_0x5addc8[_0xbb43('0xfe')]){this[_0xbb43('0xe')][_0xbb43('0xa8')](util['format']('Sestek\x20NDA\x20%s\x20file\x20created',_0x5addc8[_0xbb43('0xfe')]));var _0x385c4b=this['channel'][_0xbb43('0xff')](_0x5addc8['audiofile']);try{fs['unlink'](_0x5addc8['audiofile']+_0xbb43('0x100'));}catch(_0xd3ece2){logger[_0xbb43('0x2f')](_0xd3ece2);}return _0x385c4b;}else{return this['channel'][_0xbb43('0xa8')](util[_0xbb43('0x2b')](_0xbb43('0x101'),_0x5addc8[_0xbb43('0xe8')]));}}return this[_0xbb43('0xe')][_0xbb43('0x2f')](_0x3cf8c7,_0xbb43('0x102'));};AGIVertices['prototype'][_0xbb43('0x103')]=function(_0x15cb69){logger[_0xbb43('0x31')](util[_0xbb43('0x2b')]('Enter\x20in\x20END\x20(%s)\x20block',_0x15cb69[_0xbb43('0x3c')]));return this[_0xbb43('0xe')][_0xbb43('0xa8')](_0xbb43('0x103'));};AGIVertices[_0xbb43('0x10')][_0xbb43('0x104')]=function(_0x376d44){logger[_0xbb43('0x31')](util['format']('Enter\x20in\x20EXTERNAL\x20DIAL\x20(%s)\x20block',_0x376d44['label']));var _0x2b1df8='';if(_0x376d44[_0xbb43('0x105')]){if(!this[_0xbb43('0x84')](_0x376d44[_0xbb43('0x105')])){return this[_0xbb43('0xe')]['error'](_0x376d44,_0xbb43('0x106'));}else{var _0x1253d4=parseInt(_0x376d44['trunk_id'],0xa);if(isNaN(_0x1253d4)){_0x2b1df8=_0x376d44['trunk_id'];}else{_0x2b1df8=this['getTrunk']['sync'](this,_0x376d44[_0xbb43('0x105')]);if(!_0x2b1df8){return this[_0xbb43('0xe')]['error'](_0x376d44,_0xbb43('0x107'));}}}}else if(_0x376d44['trunk_name']){_0x2b1df8=_0x376d44[_0xbb43('0x108')];}else{return this[_0xbb43('0xe')][_0xbb43('0x2f')](_0x376d44,_0xbb43('0x106'));}var _0x4ce664=this[_0xbb43('0xe')]['exec'](_0xbb43('0xe2'),[util[_0xbb43('0x2b')](_0xbb43('0x109'),_0x2b1df8,_0x376d44[_0xbb43('0x4d')]),_0x376d44['timeout'],_0x376d44[_0xbb43('0xe1')],_0x376d44['url']]);if(_0x4ce664['result']===-0x1){return _0x4ce664;}return this['channel'][_0xbb43('0xa8')](util[_0xbb43('0x2b')](_0xbb43('0x10a'),'DIAL'));};AGIVertices[_0xbb43('0x10')]['finally']=function(_0xb9fdf){logger[_0xbb43('0x31')](util[_0xbb43('0x2b')](_0xbb43('0x10b'),_0xb9fdf[_0xbb43('0x3c')]));return this['channel']['noop']('finally');};AGIVertices['prototype'][_0xbb43('0x10c')]=function(_0x3bcec7){logger[_0xbb43('0x31')](util[_0xbb43('0x2b')](_0xbb43('0x10d'),_0x3bcec7['label']));if(_0x3bcec7['retry']===0x0){return this[_0xbb43('0xa4')](_0x3bcec7);}_0x3bcec7['retry']-=0x1;if(!this[_0xbb43('0x84')](_0x3bcec7[_0xbb43('0x10e')])){return this[_0xbb43('0xe')]['error'](_0x3bcec7,_0xbb43('0x10f'));}var _0x59006d=this['getSound'][_0xbb43('0x72')](this,_0x3bcec7[_0xbb43('0x10e')]);if(!_0x59006d){return this[_0xbb43('0xe')]['error'](_0x3bcec7,_0xbb43('0x110'));}if(!this[_0xbb43('0x84')](_0x3bcec7[_0xbb43('0xd4')])){return this[_0xbb43('0xe')][_0xbb43('0x2f')](_0xbb43('0xd5'));}var _0x267100=this[_0xbb43('0xe')][_0xbb43('0x111')](_0x59006d,_0x3bcec7[_0xbb43('0x112')],_0x3bcec7['maxdigit']);var _0x199d1e=_0x267100['result']?_0x267100['result'][_0xbb43('0xa1')]():'';logger[_0xbb43('0x31')]('test',JSON[_0xbb43('0x75')](_0x267100));if(_0x267100[_0xbb43('0xaa')]===-0x1){this[_0xbb43('0x3a')][_0xbb43('0x72')](this,_0x3bcec7,_0x199d1e);return _0x267100;}else if(_0x267100[_0xbb43('0xa0')]==='timeout'){_0x267100['result']=_0x199d1e[_0xbb43('0x9e')]>=parseInt(_0x3bcec7[_0xbb43('0x113')])?'x':'i';}else{_0x267100[_0xbb43('0xaa')]=_0x199d1e[_0xbb43('0x9e')]>=parseInt(_0x3bcec7[_0xbb43('0x113')])&&_0x199d1e[_0xbb43('0x9e')]<=parseInt(_0x3bcec7[_0xbb43('0x114')])?'x':'i';}var _0xd2a221=this['getVariable'][_0xbb43('0x72')](this,_0x3bcec7['variable_id']);if(!_0xd2a221){return this[_0xbb43('0xe')][_0xbb43('0x2f')](_0x3bcec7,_0xbb43('0xd6'));}this[_0xbb43('0xe')][_0xbb43('0xd9')](_0xd2a221,_0x199d1e);if(this[_0xbb43('0x84')](_0x3bcec7[_0xbb43('0x115')])){var _0x52074c=parseInt(_0x3bcec7[_0xbb43('0x115')],0xa);var _0x4d5fc4=rs['generate']({'charset':'*','length':_0x52074c});var _0x3b00c9=_0x199d1e[_0xbb43('0x9e')];if(_0x3b00c9>0x0){if(_0x3b00c9>_0x52074c){this[_0xbb43('0x3a')]['sync'](this,_0x3bcec7,_0x3bcec7[_0xbb43('0x116')]===_0xbb43('0x117')?_0x4d5fc4+_0x199d1e[_0xbb43('0x118')](_0x52074c):_0x199d1e[_0xbb43('0x118')](0x0,_0x3b00c9-_0x52074c)+_0x4d5fc4);}else{this[_0xbb43('0x3a')][_0xbb43('0x72')](this,_0x3bcec7,rs[_0xbb43('0x119')]({'charset':'*','length':_0x3b00c9}));}}else{this[_0xbb43('0x3a')][_0xbb43('0x72')](this,_0x3bcec7,'');}}else{this[_0xbb43('0x3a')][_0xbb43('0x72')](this,_0x3bcec7,_0x199d1e);}return _0x267100;};AGIVertices['prototype'][_0xbb43('0xd')]=function(_0x1344f6){logger[_0xbb43('0x31')](util[_0xbb43('0x2b')](_0xbb43('0x11a'),_0x1344f6[_0xbb43('0x3c')]));return this[_0xbb43('0x10c')](_0x1344f6);};AGIVertices['prototype'][_0xbb43('0x11b')]=function(_0x2e576b){logger[_0xbb43('0x31')](util[_0xbb43('0x2b')](_0xbb43('0x11c'),_0x2e576b['label']));this[_0xbb43('0x3a')]['sync'](this,_0x2e576b,_0x2e576b[_0xbb43('0x11d')]);return this[_0xbb43('0xe')][_0xbb43('0xa8')](util[_0xbb43('0x2b')](_0xbb43('0x11e'),_0x2e576b['goalname']));};AGIVertices[_0xbb43('0x10')][_0xbb43('0x11f')]=function(_0x4ce0a1){logger['info'](util[_0xbb43('0x2b')](_0xbb43('0x120'),_0x4ce0a1[_0xbb43('0x3c')]));if(!this[_0xbb43('0x84')](_0x4ce0a1[_0xbb43('0x87')])||!this[_0xbb43('0x84')](_0x4ce0a1[_0xbb43('0x121')])){return this['channel'][_0xbb43('0xa8')](_0xbb43('0x122'));}if(!this['isConfigured'](_0x4ce0a1[_0xbb43('0x5c')])){return this[_0xbb43('0xe')]['noop'](_0xbb43('0xa9'));}this[_0xbb43('0xe')][_0xbb43('0xa8')](util[_0xbb43('0x2b')](_0xbb43('0x123'),_0x4ce0a1[_0xbb43('0x5c')]));var _0x1fb01e=this[_0xbb43('0x86')][_0xbb43('0x72')](this,_0x4ce0a1);if(_0x1fb01e){this[_0xbb43('0xe')]['noop'](util[_0xbb43('0x2b')](_0xbb43('0x124'),_0x1fb01e));var _0x5b1dbe=this[_0xbb43('0xe')]['streamFile'](_0x1fb01e);try{fs[_0xbb43('0x125')](_0x1fb01e+_0xbb43('0x100'));}catch(_0x1d8866){logger[_0xbb43('0x2f')](_0x1d8866);}return _0x5b1dbe;}return this[_0xbb43('0xe')][_0xbb43('0x2f')](_0x4ce0a1,'aws\x20Polly\x20is\x20unreachable');};AGIVertices['prototype'][_0xbb43('0x126')]=function(_0x3a7eab){logger[_0xbb43('0x31')](util[_0xbb43('0x2b')](_0xbb43('0x127'),_0x3a7eab[_0xbb43('0x3c')]));if(!this[_0xbb43('0x84')](_0x3a7eab[_0xbb43('0x87')])||!this[_0xbb43('0x84')](_0x3a7eab[_0xbb43('0x121')])){return this[_0xbb43('0xe')][_0xbb43('0xa8')](_0xbb43('0x122'));}if(!this[_0xbb43('0x84')](_0x3a7eab[_0xbb43('0x128')])){return this[_0xbb43('0xe')]['noop'](_0xbb43('0x129'));}if(!this[_0xbb43('0x84')](_0x3a7eab['text'])){return this[_0xbb43('0xe')][_0xbb43('0xa8')](_0xbb43('0xa9'));}this[_0xbb43('0xe')]['bot']=!![];this[_0xbb43('0x3a')](_0x3a7eab);this[_0xbb43('0x47')](_0x3a7eab['text'],'in','','');this[_0xbb43('0xe')][_0xbb43('0xa8')](util[_0xbb43('0x2b')](_0xbb43('0x12a'),_0x3a7eab[_0xbb43('0x5c')]));var _0x4b3eb8=this[_0xbb43('0x8b')][_0xbb43('0x72')](this,_0x3a7eab);if(_0x4b3eb8){for(var _0x1a9ae1 in _0x4b3eb8){if(_0x4b3eb8[_0xbb43('0x97')](_0x1a9ae1)&&_[_0xbb43('0x94')](_0x4b3eb8[_0x1a9ae1])){this[_0xbb43('0xe')][_0xbb43('0xd9')](util[_0xbb43('0x2b')](_0xbb43('0x12b'),_0x1a9ae1[_0xbb43('0x6c')]()),_0x4b3eb8[_0x1a9ae1]);}}if(_[_0xbb43('0x49')](_0x4b3eb8[_0xbb43('0x7a')])){return this[_0xbb43('0xe')][_0xbb43('0xa8')](_0xbb43('0x12c'));}else{this[_0xbb43('0x47')](_0x4b3eb8[_0xbb43('0x7a')],'out',_0xbb43('0x12d'),'');return this[_0xbb43('0xe')][_0xbb43('0xa8')](util[_0xbb43('0x2b')](_0xbb43('0x12e'),_0x4b3eb8[_0xbb43('0x7a')]));}}return this[_0xbb43('0xe')][_0xbb43('0x2f')](_0x3a7eab,'Amazon\x20Lex\x20is\x20unreachable');};AGIVertices[_0xbb43('0x10')][_0xbb43('0x12f')]=function(_0x5d315a){logger[_0xbb43('0x31')](util[_0xbb43('0x2b')](_0xbb43('0x130'),_0x5d315a[_0xbb43('0x3c')],_0x5d315a[_0xbb43('0x67')]));if(!this['isConfigured'](_0x5d315a[_0xbb43('0x81')])){return this[_0xbb43('0xe')][_0xbb43('0xa8')](_0xbb43('0xe4'));}var _0x13054b=_0xbb43('0x131');var _0x21b18a=util['format']('%s/recordings/%s',FILES_PATH,rs[_0xbb43('0x119')](0x4));var _0x504ca0=util['format'](_0xbb43('0x9c'),_0x21b18a,_0x13054b);var _0x4424b0=!![];if(_0x5d315a['beep']===_0xbb43('0x132')){_0x4424b0=![];}var _0x46ceb9=this[_0xbb43('0xe')][_0xbb43('0x133')](_0x21b18a,_0x13054b,_0x5d315a[_0xbb43('0x134')],_0x5d315a[_0xbb43('0x67')],undefined,_0x4424b0);if(_0x46ceb9[_0xbb43('0xaa')]!==-0x1){this['channel']['noop'](util[_0xbb43('0x2b')]('google\x20%s\x20file\x20created',_0x504ca0));var _0x233e10=this['googleASR'][_0xbb43('0x72')](this,_0x5d315a,_0x504ca0);if(_0x233e10){for(var _0x206f55 in _0x233e10){if(_0x233e10[_0xbb43('0x97')](_0x206f55)){this[_0xbb43('0xe')][_0xbb43('0xd9')](util[_0xbb43('0x2b')](_0xbb43('0x135'),_0x206f55['toUpperCase']()),_0x233e10[_0x206f55]);}}return this[_0xbb43('0xe')][_0xbb43('0xa8')](util[_0xbb43('0x2b')]('GoogleASR\x20Result\x20%s',JSON[_0xbb43('0x75')](_0x233e10)));}}return _0x46ceb9;};AGIVertices['prototype']['tildeasr']=function(_0x36e255){logger[_0xbb43('0x31')](util['format'](_0xbb43('0x136'),_0x36e255[_0xbb43('0x3c')]));if(!this[_0xbb43('0x84')](_0x36e255['appid'])){return this[_0xbb43('0xe')][_0xbb43('0xa8')]('no\x20appid\x20configured');}if(!this[_0xbb43('0x84')](_0x36e255['appsecret'])){return this['channel'][_0xbb43('0xa8')](_0xbb43('0x137'));}var _0x2d53a8=_0xbb43('0x131');var _0x30aa9e=util['format'](_0xbb43('0x138'),FILES_PATH,rs[_0xbb43('0x119')](0x4));var _0x4efbbe=util['format'](_0xbb43('0x9c'),_0x30aa9e,_0x2d53a8);var _0x3ee4df=!![];if(_0x36e255[_0xbb43('0x139')]===_0xbb43('0x132')){_0x3ee4df=![];}var _0x471eba=this['channel'][_0xbb43('0x133')](_0x30aa9e,_0x2d53a8,_0x36e255[_0xbb43('0x134')],_0x36e255['timeout'],undefined,_0x3ee4df);if(_0x471eba[_0xbb43('0xaa')]!==-0x1){this[_0xbb43('0xe')][_0xbb43('0xa8')](util['format'](_0xbb43('0x13a'),_0x4efbbe));var _0x14195e=this['tildeASR'][_0xbb43('0x72')](this,_0x36e255,_0x4efbbe);if(_0x14195e){for(var _0x181fd3 in _0x14195e){if(_0x14195e['hasOwnProperty'](_0x181fd3)){this[_0xbb43('0xe')]['setVariable'](util[_0xbb43('0x2b')](_0xbb43('0x13b'),_0x181fd3[_0xbb43('0x6c')]()),_0x14195e[_0x181fd3]);}}return this[_0xbb43('0xe')][_0xbb43('0xa8')](util['format']('TildeASR\x20Result\x20%s',JSON['stringify'](_0x14195e)));}}return _0x471eba;};AGIVertices[_0xbb43('0x10')][_0xbb43('0x13c')]=function(_0xfdfd9a){logger[_0xbb43('0x31')](util['format'](_0xbb43('0x13d'),_0xfdfd9a[_0xbb43('0x3c')]));return this[_0xbb43('0xe')]['continueAt'](_0xfdfd9a[_0xbb43('0x42')],_0xfdfd9a[_0xbb43('0x13e')],_0xfdfd9a[_0xbb43('0x43')]);};AGIVertices['prototype'][_0xbb43('0x13f')]=function(_0x368da1){logger[_0xbb43('0x31')](util[_0xbb43('0x2b')](_0xbb43('0x140'),_0x368da1[_0xbb43('0x3c')]));if(!this[_0xbb43('0x84')](_0x368da1[_0xbb43('0x141')])){return this[_0xbb43('0xe')][_0xbb43('0x2f')](_0x368da1,_0xbb43('0x142'));}try{var _0x37b006=eval(_0x368da1['condition'])?_0xbb43('0x143'):_0xbb43('0x144');this[_0xbb43('0xe')]['noop'](util['format'](_0xbb43('0x145'),_0x368da1[_0xbb43('0x141')],_0x37b006));return{'code':0xc8,'result':_0x37b006};}catch(_0x2a8019){return{'code':0xc8,'result':_0xbb43('0x144')};}};AGIVertices['prototype'][_0xbb43('0x146')]=function(_0x330365){logger[_0xbb43('0x31')](util[_0xbb43('0x2b')]('Enter\x20in\x20GOTOIFTIME\x20(%s)\x20block',_0x330365['label']));if(!this['isConfigured'](_0x330365[_0xbb43('0x147')])){return this[_0xbb43('0xe')][_0xbb43('0x2f')](_0x330365,'no\x20interval\x20configured');}var _0x166274=this['getIntervals'][_0xbb43('0x72')](this,_0x330365[_0xbb43('0x147')]);if(!_0x166274){return this[_0xbb43('0xe')][_0xbb43('0x2f')](_0x330365,_0xbb43('0x148'));}for(var _0x5c41c4=0x0;_0x5c41c4<_0x166274[_0xbb43('0x9e')];_0x5c41c4+=0x1){var _0x4e2738=this['channel'][_0xbb43('0x11')](util[_0xbb43('0x2b')](_0xbb43('0x149'),_0x166274[_0x5c41c4]));if(_0x4e2738[_0xbb43('0xaa')]===-0x1){return _0x4e2738;}logger[_0xbb43('0x31')](util[_0xbb43('0x2b')](_0xbb43('0x14a'),_0x166274[_0x5c41c4],_0x4e2738[_0xbb43('0xa0')]));if(_0x4e2738['extra']===_0xbb43('0x143')){logger[_0xbb43('0x31')](util[_0xbb43('0x2b')](_0xbb43('0x14a'),_0x166274[_0x5c41c4],_0xbb43('0x143')));this[_0xbb43('0xe')][_0xbb43('0xa8')](util[_0xbb43('0x2b')](_0xbb43('0x14a'),_0x166274[_0x5c41c4],'true'));return{'code':0xc8,'result':_0xbb43('0x143')};}else{logger[_0xbb43('0x31')](util['format'](_0xbb43('0x14a'),_0x166274[_0x5c41c4],_0xbb43('0x144')));this['channel']['noop'](util[_0xbb43('0x2b')](_0xbb43('0x14a'),_0x166274[_0x5c41c4],'false'));}}return{'code':0xc8,'result':'false'};};AGIVertices['prototype'][_0xbb43('0x14b')]=function(_0x12a14e){logger[_0xbb43('0x31')](util[_0xbb43('0x2b')](_0xbb43('0x14c'),_0x12a14e[_0xbb43('0x3c')]));return this[_0xbb43('0xe')][_0xbb43('0x14b')]();};AGIVertices[_0xbb43('0x10')][_0xbb43('0x14d')]=function(_0x59c107){logger[_0xbb43('0x31')](util[_0xbb43('0x2b')](_0xbb43('0x14e'),_0x59c107[_0xbb43('0x3c')]));if(!this[_0xbb43('0x84')](_0x59c107[_0xbb43('0x81')])){return this[_0xbb43('0xe')][_0xbb43('0xa8')]('no\x20key\x20configured');}var _0x392fb1=_0xbb43('0x131');var _0x1e9c62=util[_0xbb43('0x2b')](_0xbb43('0x138'),FILES_PATH,rs['generate'](0x4));var _0x949c33=util[_0xbb43('0x2b')](_0xbb43('0x9c'),_0x1e9c62,_0x392fb1);var _0x117224=!![];if(_0x59c107[_0xbb43('0x139')]===_0xbb43('0x132')){_0x117224=![];}var _0x44fc3b=this['channel'][_0xbb43('0x133')](_0x1e9c62,_0x392fb1,_0x59c107['intKey'],_0x59c107[_0xbb43('0x67')],undefined,_0x117224);if(_0x44fc3b['result']!==-0x1){this[_0xbb43('0xe')][_0xbb43('0xa8')](util['format'](_0xbb43('0x14f'),_0x949c33));var _0x83590e=this[_0xbb43('0x83')][_0xbb43('0x72')](this,_0x59c107,_0x949c33);if(_0x83590e){for(var _0x50a6de in _0x83590e){if(_0x83590e['hasOwnProperty'](_0x50a6de)){this[_0xbb43('0xe')][_0xbb43('0xd9')](util[_0xbb43('0x2b')](_0xbb43('0x150'),_0x50a6de[_0xbb43('0x6c')]()),_0x83590e[_0x50a6de]);}}return this[_0xbb43('0xe')][_0xbb43('0xa8')](util[_0xbb43('0x2b')]('IspeechASR\x20Result\x20%s',JSON[_0xbb43('0x75')](_0x83590e)));}}return _0x44fc3b;};AGIVertices[_0xbb43('0x10')]['ispeechtts']=function(_0x3fef47){logger[_0xbb43('0x31')](util['format']('Enter\x20in\x20ISPEECHTTS\x20(%s)\x20block',_0x3fef47[_0xbb43('0x3c')]));if(!this[_0xbb43('0x84')](_0x3fef47['key'])){return this[_0xbb43('0xe')]['noop']('no\x20key\x20configured');}if(!this[_0xbb43('0x84')](_0x3fef47[_0xbb43('0x5c')])){return this['channel'][_0xbb43('0xa8')]('no\x20text\x20configured');}this[_0xbb43('0xe')][_0xbb43('0xa8')](util[_0xbb43('0x2b')](_0xbb43('0x151'),_0x3fef47['text']));var _0xe79aa3=this['ispeechTTS'][_0xbb43('0x72')](this,_0x3fef47);if(_0xe79aa3){this[_0xbb43('0xe')][_0xbb43('0xa8')](util[_0xbb43('0x2b')](_0xbb43('0x14f'),_0xe79aa3));var _0x438d82=this['channel'][_0xbb43('0xff')](_0xe79aa3,_0x3fef47[_0xbb43('0x134')]);try{fs[_0xbb43('0x125')](_0xe79aa3+_0xbb43('0x100'));}catch(_0x12abeb){logger[_0xbb43('0x2f')](_0x12abeb);}return _0x438d82;}return this[_0xbb43('0xe')][_0xbb43('0x2f')](_0x3fef47,_0xbb43('0x152'));};AGIVertices['prototype'][_0xbb43('0x153')]=function(_0x48fca2){logger[_0xbb43('0x31')](util[_0xbb43('0x2b')](_0xbb43('0x154'),_0x48fca2['label']));if(!this[_0xbb43('0x84')](_0x48fca2[_0xbb43('0x155')])){return this[_0xbb43('0xe')]['error'](_0x48fca2,_0xbb43('0x156'));}logger[_0xbb43('0x31')](util[_0xbb43('0x2b')]('FIND\x20AGENT\x20%s\x20BY\x20%s',this['channel'][_0xbb43('0x3f')],_0x48fca2['findBy']));var _0x5bab0b=this['agentLogin'][_0xbb43('0x72')](this,_0x48fca2[_0xbb43('0x155')]);if(_0x5bab0b){logger[_0xbb43('0x31')](util['format'](_0xbb43('0x157'),this[_0xbb43('0xe')][_0xbb43('0x3f')],_0x48fca2[_0xbb43('0x155')]));this[_0xbb43('0xe')][_0xbb43('0xa8')](util['format']('AGENT\x20%s\x20FOUND\x20BY',this[_0xbb43('0xe')][_0xbb43('0x3f')],_0x48fca2[_0xbb43('0x155')]));return{'code':0xc8,'result':_0xbb43('0x158')};}else{logger[_0xbb43('0x31')](util[_0xbb43('0x2b')](_0xbb43('0x159'),this[_0xbb43('0xe')][_0xbb43('0x3f')],_0x48fca2[_0xbb43('0x155')]));this[_0xbb43('0xe')][_0xbb43('0xa8')](util[_0xbb43('0x2b')](_0xbb43('0x159'),this[_0xbb43('0xe')]['callerid'],_0x48fca2[_0xbb43('0x155')]));return{'code':0xc8,'result':_0xbb43('0x15a')};}};AGIVertices[_0xbb43('0x10')][_0xbb43('0x15b')]=function(_0x443641){logger[_0xbb43('0x31')](util[_0xbb43('0x2b')](_0xbb43('0x15c'),_0x443641[_0xbb43('0x3c')]));if(!this[_0xbb43('0x84')](_0x443641[_0xbb43('0x155')])){return this['channel']['error'](_0x443641,'no\x20find\x20by\x20configured');}logger[_0xbb43('0x31')](util[_0xbb43('0x2b')](_0xbb43('0x15d'),this[_0xbb43('0xe')][_0xbb43('0x3f')],_0x443641[_0xbb43('0x155')]));var _0x4132af=this['agentLogout'][_0xbb43('0x72')](this,_0x443641[_0xbb43('0x155')]);if(_0x4132af){logger[_0xbb43('0x31')](util[_0xbb43('0x2b')](_0xbb43('0x157'),this[_0xbb43('0xe')]['callerid'],_0x443641[_0xbb43('0x155')]));this['channel'][_0xbb43('0xa8')](util[_0xbb43('0x2b')](_0xbb43('0x157'),this[_0xbb43('0xe')][_0xbb43('0x3f')],_0x443641[_0xbb43('0x155')]));return{'code':0xc8,'result':_0xbb43('0x158')};}else{logger[_0xbb43('0x31')](util[_0xbb43('0x2b')](_0xbb43('0x159'),this[_0xbb43('0xe')]['callerid'],_0x443641[_0xbb43('0x155')]));this[_0xbb43('0xe')][_0xbb43('0xa8')](util['format'](_0xbb43('0x159'),this['channel'][_0xbb43('0x3f')],_0x443641['findBy']));return{'code':0xc8,'result':_0xbb43('0x15a')};}};AGIVertices[_0xbb43('0x10')][_0xbb43('0x15e')]=function(_0x104bac){logger[_0xbb43('0x31')](util[_0xbb43('0x2b')](_0xbb43('0x15f'),_0x104bac[_0xbb43('0x3c')]));if(!this[_0xbb43('0x84')](_0x104bac[_0xbb43('0x160')])){return this['channel'][_0xbb43('0x2f')](_0x104bac,_0xbb43('0x161'));}this[_0xbb43('0xe')][_0xbb43('0xa8')](util[_0xbb43('0x2b')](_0xbb43('0x162'),_0x104bac[_0xbb43('0x160')]));var _0x37942b=eval(_0x104bac['operation']);if(!this[_0xbb43('0x84')](_0x104bac[_0xbb43('0xd4')])){return this[_0xbb43('0xe')][_0xbb43('0xa8')](_0xbb43('0xd5'));}var _0x452b96=this[_0xbb43('0x11')][_0xbb43('0x72')](this,_0x104bac[_0xbb43('0xd4')]);if(!_0x452b96){return this[_0xbb43('0xe')]['error'](_0x104bac,'no\x20variable\x20found');}if(_[_0xbb43('0x9d')](_0x37942b)){var _0x344784=this;_0x37942b[_0xbb43('0xd7')](function(_0x25b657,_0x3b7cb0){_0x344784[_0xbb43('0xe')][_0xbb43('0xd9')](util['format']('%s[%s]',_0x452b96,_0x3b7cb0),_0x25b657);});return this[_0xbb43('0xe')][_0xbb43('0xa8')](util[_0xbb43('0x2b')]('variable\x20%s[key]\x20set',_0x452b96));}else{return this[_0xbb43('0xe')][_0xbb43('0xd9')](_0x452b96,_0x37942b);}};AGIVertices[_0xbb43('0x10')][_0xbb43('0x163')]=function(_0x521fd4){logger[_0xbb43('0x31')](util[_0xbb43('0x2b')](_0xbb43('0x164'),_0x521fd4['label']));if(_0x521fd4['retry']===0x0){return this[_0xbb43('0xa4')](_0x521fd4);}_0x521fd4[_0xbb43('0xa5')]-=0x1;if(!this[_0xbb43('0x84')](_0x521fd4[_0xbb43('0x10e')])){return this['channel'][_0xbb43('0x2f')](_0x521fd4,_0xbb43('0x10f'));}var _0x2d081d=this[_0xbb43('0x20')][_0xbb43('0x72')](this,_0x521fd4[_0xbb43('0x10e')]);if(!_0x2d081d){return this[_0xbb43('0xe')][_0xbb43('0x2f')](_0x521fd4,'no\x20file\x20audio\x20found');}var _0x1fb40a=this[_0xbb43('0xe')][_0xbb43('0x111')](_0x2d081d,_0x521fd4['response'],_0x521fd4[_0xbb43('0x165')]);var _0x363993=_0x1fb40a['result'];if(_0x1fb40a[_0xbb43('0xaa')]===-0x1){this[_0xbb43('0x3a')]['sync'](this,_0x521fd4,'-1');return _0x1fb40a;}else if(_0x1fb40a[_0xbb43('0xa0')]==='timeout'){_0x1fb40a['result']=_0x1fb40a[_0xbb43('0xaa')][_0xbb43('0x9e')]>0x0?_0x1fb40a['result']:'t';}else if(_[_0xbb43('0x9b')](_0x1fb40a[_0xbb43('0xaa')])){_0x1fb40a[_0xbb43('0xaa')]='#';_0x363993='#';}if(!this[_0xbb43('0x84')](_0x521fd4[_0xbb43('0xd4')])){this[_0xbb43('0xe')][_0xbb43('0xa8')](_0xbb43('0xd5'));}else{var _0x40716b=this[_0xbb43('0x11')]['sync'](this,_0x521fd4[_0xbb43('0xd4')]);if(!_0x40716b){return this[_0xbb43('0xe')][_0xbb43('0x2f')](_0x521fd4,_0xbb43('0xd6'));}this[_0xbb43('0xe')][_0xbb43('0xd9')](_0x40716b,_0x363993);}this[_0xbb43('0x3a')]['sync'](this,_0x521fd4,_0x363993);return _0x1fb40a;};AGIVertices[_0xbb43('0x10')][_0xbb43('0xa8')]=function(_0x5cd70b){logger[_0xbb43('0x31')](util['format'](_0xbb43('0x166'),_0x5cd70b[_0xbb43('0x3c')]));return this['channel']['noop'](_0x5cd70b['output']||_0x5cd70b[_0xbb43('0x3c')]);};AGIVertices['prototype'][_0xbb43('0x167')]=function(_0x3d0046){logger[_0xbb43('0x31')](util[_0xbb43('0x2b')]('Enter\x20in\x20PAUSE\x20(%s)\x20block',_0x3d0046['label']));if(!this[_0xbb43('0x84')](_0x3d0046['findBy'])){return this[_0xbb43('0xe')][_0xbb43('0x2f')](_0x3d0046,_0xbb43('0x156'));}logger[_0xbb43('0x31')](util['format'](_0xbb43('0x15d'),this[_0xbb43('0xe')]['callerid'],_0x3d0046['findBy']));var _0x4af8b3=this[_0xbb43('0x168')][_0xbb43('0x72')](this,_0x3d0046[_0xbb43('0x169')]);var _0x5e9251=this[_0xbb43('0x50')][_0xbb43('0x72')](this,_0x3d0046[_0xbb43('0x155')],_0x4af8b3);if(_0x5e9251){logger['info'](util[_0xbb43('0x2b')](_0xbb43('0x157'),this[_0xbb43('0xe')][_0xbb43('0x3f')],_0x3d0046[_0xbb43('0x155')]));this[_0xbb43('0xe')][_0xbb43('0xa8')](util[_0xbb43('0x2b')](_0xbb43('0x157'),this[_0xbb43('0xe')][_0xbb43('0x3f')],_0x3d0046[_0xbb43('0x155')]));return{'code':0xc8,'result':_0xbb43('0x158')};}else{logger[_0xbb43('0x31')](util[_0xbb43('0x2b')](_0xbb43('0x159'),this[_0xbb43('0xe')][_0xbb43('0x3f')],_0x3d0046[_0xbb43('0x155')]));this[_0xbb43('0xe')][_0xbb43('0xa8')](util[_0xbb43('0x2b')](_0xbb43('0x157'),this[_0xbb43('0xe')]['callerid'],_0x3d0046['findBy']));return{'code':0xc8,'result':_0xbb43('0x15a')};}};AGIVertices[_0xbb43('0x10')][_0xbb43('0x16a')]=function(_0xc4731c){logger[_0xbb43('0x31')](util[_0xbb43('0x2b')]('Enter\x20in\x20PLAYBACK\x20(%s)\x20block',_0xc4731c[_0xbb43('0x3c')]));if(!this[_0xbb43('0x84')](_0xc4731c[_0xbb43('0x10e')])){return this['channel']['error'](_0xc4731c,_0xbb43('0x10f'));}var _0x10f879=this['getSound'][_0xbb43('0x72')](this,_0xc4731c[_0xbb43('0x10e')]);if(!_0x10f879){return this[_0xbb43('0xe')][_0xbb43('0x2f')](_0xc4731c,_0xbb43('0x110'));}var _0x7c2000=this[_0xbb43('0xe')][_0xbb43('0x57')](_0xbb43('0x16b'),[_0x10f879,_0xc4731c['opts']]);if(_0x7c2000[_0xbb43('0xaa')]===-0x1){return _0x7c2000;}return this[_0xbb43('0xe')][_0xbb43('0xa8')](util[_0xbb43('0x2b')](_0xbb43('0xc1'),'PLAYBACK',_0x10f879));};AGIVertices[_0xbb43('0x10')][_0xbb43('0x16c')]=function(_0x4963ba){logger['info'](util['format'](_0xbb43('0x16d'),_0x4963ba['label']));if(!this[_0xbb43('0x84')](_0x4963ba[_0xbb43('0x16e')])){return this[_0xbb43('0xe')][_0xbb43('0x2f')](_0x4963ba,'no\x20queue\x20selected');}var _0x4735b3='';var _0x23f48a=parseInt(_0x4963ba[_0xbb43('0x16e')],0xa);if(isNaN(_0x23f48a)){_0x4735b3=_0x4963ba[_0xbb43('0x16e')];}else{_0x4735b3=this['getVoiceQueue'][_0xbb43('0x72')](this,_0x4963ba[_0xbb43('0x16e')]);if(!_0x4735b3){return this[_0xbb43('0xe')][_0xbb43('0x2f')](_0x4963ba,_0xbb43('0x16f'));}}var _0x122c0f='';if(this[_0xbb43('0x84')](_0x4963ba['file_id'])){var _0x48d336=this[_0xbb43('0x20')][_0xbb43('0x72')](this,_0x4963ba['file_id']);if(_0x48d336){_0x122c0f=_0x48d336;}}this[_0xbb43('0x3a')][_0xbb43('0x72')](this,_0x4963ba,_0x4735b3);if(_0x4963ba['opts'][_0xbb43('0x170')]('x')<0x0){_0x4963ba[_0xbb43('0xe1')]+='x';}if(_0x4963ba['opts']['indexOf']('X')<0x0){_0x4963ba[_0xbb43('0xe1')]+='X';}this[_0xbb43('0xe')][_0xbb43('0xd9')](_0xbb43('0x171'),_0x4735b3?_0x4735b3[_0xbb43('0x172')]():'');var _0x52e65d=this[_0xbb43('0xe')][_0xbb43('0x57')](_0xbb43('0x173'),[_0x4735b3,_0x4963ba['opts'],_0x4963ba[_0xbb43('0x66')],_0x122c0f,_0x4963ba[_0xbb43('0x67')],_0x4963ba['agi'],_0x4963ba[_0xbb43('0x174')],_0x4963ba[_0xbb43('0x175')],'',_0x4963ba[_0xbb43('0x176')]]);if(_0x52e65d[_0xbb43('0xaa')]===-0x1){return _0x52e65d;}return this['channel']['noop'](util[_0xbb43('0x2b')]('Executed\x20command\x20%s\x20%s',_0xbb43('0x173'),_0x4735b3));};AGIVertices[_0xbb43('0x10')][_0xbb43('0x177')]=function(_0x41c067){logger[_0xbb43('0x31')](util[_0xbb43('0x2b')]('Enter\x20in\x20RECORD\x20(%s)\x20block',_0x41c067[_0xbb43('0x3c')]));var _0x50415f=_0x41c067[_0xbb43('0x178')]||'wav';var _0x3925c5=util[_0xbb43('0x2b')](_0xbb43('0x179'),this[_0xbb43('0xe')][_0xbb43('0x3b')],rs['generate'](0x5));var _0xec5c76=util['format'](_0xbb43('0x17a'),FILES_PATH,_0x3925c5,_0x50415f);var _0xed405c=util['format']('%s/recordings/%s',FILES_PATH,_0x3925c5);this['createSquareRecording']['sync'](this,_0x41c067,_0x3925c5,_0xec5c76);this[_0xbb43('0xe')]['setVariable'](_0xbb43('0x17b'),_0x3925c5);logger[_0xbb43('0x31')]('Recording\x20%s\x20%s\x20%s\x20%s',_0xed405c,_0x50415f,_0x41c067[_0xbb43('0x17c')],_0x41c067[_0xbb43('0x67')]);return this[_0xbb43('0xe')][_0xbb43('0x133')](_0xed405c,_0x50415f,_0x41c067[_0xbb43('0x17c')],_0x41c067[_0xbb43('0x67')],undefined,!![]);};AGIVertices[_0xbb43('0x10')][_0xbb43('0x17d')]=function(_0x3940d4){logger['info'](util[_0xbb43('0x2b')](_0xbb43('0x17e'),_0x3940d4[_0xbb43('0x3c')]));if(!this[_0xbb43('0x84')](_0x3940d4[_0xbb43('0x66')])){return this['channel'][_0xbb43('0xa8')](_0xbb43('0x17f'));}var _0x804903=this[_0xbb43('0x65')]['sync'](this,_0x3940d4);logger[_0xbb43('0x31')](util[_0xbb43('0x2b')](_0xbb43('0x180'),util[_0xbb43('0x181')](_0x804903,{'showHidden':![],'depth':null})));if(!this['isConfigured'](_0x3940d4[_0xbb43('0xd4')])){return this[_0xbb43('0xe')][_0xbb43('0xa8')](_0xbb43('0x182'));}var _0x4ec050=this[_0xbb43('0x11')][_0xbb43('0x72')](this,_0x3940d4[_0xbb43('0xd4')]);if(!_0x4ec050){return this[_0xbb43('0xe')][_0xbb43('0x2f')](_0x3940d4,_0xbb43('0xd6'));}this[_0xbb43('0xe')][_0xbb43('0xd9')](util[_0xbb43('0x2b')](_0xbb43('0x183'),_0x4ec050),_0x804903[_0xbb43('0x78')]?_0x804903[_0xbb43('0x78')]:'200');this[_0xbb43('0xe')][_0xbb43('0xd9')](util[_0xbb43('0x2b')](_0xbb43('0x184'),_0x4ec050),_0x804903['statusMessage']?_0x804903[_0xbb43('0x79')]:'OK');if(_0x804903['body']){try{this[_0xbb43('0x9a')](_0x804903[_0xbb43('0x76')],_0x4ec050);}catch(_0x35ffca){logger[_0xbb43('0x2f')](util[_0xbb43('0x2b')]('Unable\x20to\x20set\x20result\x20in\x20variable\x20%s',_0x4ec050));}}return this[_0xbb43('0xe')][_0xbb43('0xa8')](util['format']('variable\x20%s\x20set',_0x4ec050));};AGIVertices['prototype']['saydigits']=function(_0x2a4f14){logger[_0xbb43('0x31')](util[_0xbb43('0x2b')](_0xbb43('0x185'),_0x2a4f14[_0xbb43('0x3c')]));return this[_0xbb43('0xe')][_0xbb43('0x186')](_0x2a4f14[_0xbb43('0x187')][_0xbb43('0x58')](/\s+/g,''),_0x2a4f14[_0xbb43('0x17c')]);};AGIVertices[_0xbb43('0x10')][_0xbb43('0x188')]=function(_0x10ae45){logger[_0xbb43('0x31')](util['format'](_0xbb43('0x189'),_0x10ae45[_0xbb43('0x3c')]));return this['channel']['sayNumber'](_0x10ae45[_0xbb43('0x68')][_0xbb43('0x58')](/\s+/g,''),_0x10ae45[_0xbb43('0x17c')]);};AGIVertices[_0xbb43('0x10')][_0xbb43('0x18a')]=function(_0x13e606){logger['info'](util[_0xbb43('0x2b')]('Enter\x20in\x20SAYPHONETIC\x20(%s)\x20block',_0x13e606[_0xbb43('0x3c')]));return this['channel']['sayPhonetic'](_0x13e606[_0xbb43('0x5c')],_0x13e606[_0xbb43('0x17c')]);};AGIVertices['prototype'][_0xbb43('0x18b')]=function(_0x2eb0bb){logger[_0xbb43('0x31')](util[_0xbb43('0x2b')]('Enter\x20in\x20SENDMAIL\x20(%s)\x20block',_0x2eb0bb[_0xbb43('0x3c')]));if(!this[_0xbb43('0x84')](_0x2eb0bb[_0xbb43('0x18c')])){return this[_0xbb43('0xe')]['noop'](_0xbb43('0x18d'));}var _0x5ac169=this['getMailAccount']['sync'](this,_0x2eb0bb[_0xbb43('0x18c')]);if(!_0x5ac169||!_0x5ac169[_0xbb43('0x18e')]){return this['channel']['error'](_0x2eb0bb,_0xbb43('0x18f'));}var _0x1151a7={'from':util[_0xbb43('0x2b')](_0xbb43('0x190'),_0x5ac169[_0xbb43('0x17')],_0x5ac169[_0xbb43('0x191')]||_0x5ac169[_0xbb43('0x18e')]['user']),'to':_0x2eb0bb['to']||'','cc':_0x2eb0bb['cc']||'','bcc':_0x2eb0bb[_0xbb43('0x192')]||'','subject':_0x2eb0bb[_0xbb43('0x193')],'html':_0x2eb0bb['text'],'text':_0x2eb0bb['text']};if(this[_0xbb43('0x84')](_0x2eb0bb[_0xbb43('0x194')])){}logger[_0xbb43('0xdb')](_0xbb43('0x195'),JSON[_0xbb43('0x75')](_0x1151a7));this[_0xbb43('0x3a')]['sync'](this,_0x2eb0bb,_0x2eb0bb[_0xbb43('0x18c')]);this[_0xbb43('0xe')]['noop'](util[_0xbb43('0x2b')](_0xbb43('0x196'),_0x5ac169[_0xbb43('0x17')]));this['sendMailMessage']['sync'](this,_0x5ac169[_0xbb43('0x197')],_0x1151a7);return this['channel'][_0xbb43('0xa8')](_0xbb43('0x198'));};AGIVertices[_0xbb43('0x10')][_0xbb43('0x199')]=function(_0x4b7bf2){logger[_0xbb43('0x31')](util[_0xbb43('0x2b')](_0xbb43('0x19a'),_0x4b7bf2[_0xbb43('0x3c')]));return this[_0xbb43('0xe')]['noop'](_0xbb43('0x19b'));};AGIVertices['prototype'][_0xbb43('0x19c')]=function(_0x15661c){logger[_0xbb43('0x31')](util['format']('Enter\x20in\x20SENDSMS\x20(%s)\x20block',_0x15661c['label']));if(!this['isConfigured'](_0x15661c[_0xbb43('0x19d')])){return this['channel'][_0xbb43('0xa8')](_0xbb43('0x19e'));}var _0x2f082a=this[_0xbb43('0x37')]['sync'](this,_0x15661c[_0xbb43('0x19d')]);if(!_0x2f082a){return this[_0xbb43('0xe')]['error'](_0x15661c,_0xbb43('0x19f'));}var _0x58e7f6={'body':_0x15661c[_0xbb43('0x1a0')],'phone':_0x15661c['to']||'','SmsAccountId':_0x2f082a['id']};logger[_0xbb43('0xdb')](_0xbb43('0x1a1'),JSON[_0xbb43('0x75')](_0x58e7f6));this[_0xbb43('0x3a')][_0xbb43('0x72')](this,_0x15661c,_0x15661c[_0xbb43('0x19d')]);this[_0xbb43('0xe')][_0xbb43('0xa8')](util[_0xbb43('0x2b')]('Trying\x20SendSMS\x20with\x20account\x20%s',_0x2f082a['name']));this['createSmsMessage'][_0xbb43('0x72')](this,_0x58e7f6);return this[_0xbb43('0xe')][_0xbb43('0xa8')](_0xbb43('0x1a2'));};AGIVertices['prototype']['set']=function(_0x55a4b8){logger[_0xbb43('0x31')](util[_0xbb43('0x2b')](_0xbb43('0x1a3'),_0x55a4b8[_0xbb43('0x3c')]));if(!this[_0xbb43('0x84')](_0x55a4b8[_0xbb43('0xd4')])){return this[_0xbb43('0xe')]['error'](_0x55a4b8,_0xbb43('0x1a4'));}var _0x2272c4=this[_0xbb43('0x11')][_0xbb43('0x72')](this,_0x55a4b8[_0xbb43('0xd4')]);if(!_0x2272c4){return this['channel'][_0xbb43('0x2f')](_0x55a4b8,_0xbb43('0xd6'));}return this[_0xbb43('0xe')][_0xbb43('0xd9')](_0x2272c4,_0x55a4b8['variable_value']);};AGIVertices['prototype'][_0xbb43('0x1a5')]=function(_0x59c439){logger[_0xbb43('0x31')](util[_0xbb43('0x2b')](_0xbb43('0x1a6'),_0x59c439[_0xbb43('0x3c')]));this[_0xbb43('0xe')][_0xbb43('0xa8')](_0xbb43('0x1a7'));var _0x3ce048=this[_0xbb43('0xe')][_0xbb43('0x11')]('XMCS-UNIQUEID');if(!_[_0xbb43('0x9b')](_0x3ce048['extra'])){this['channel'][_0xbb43('0x3b')]=_0x3ce048[_0xbb43('0xa0')];}if(_0x59c439[_0xbb43('0xb4')]===_0xbb43('0x1a8')){this[_0xbb43('0xe')][_0xbb43('0xa8')](_0xbb43('0x1a9'));return this[_0xbb43('0xe')][_0xbb43('0xb4')]();}return this[_0xbb43('0xe')][_0xbb43('0xa8')](_0xbb43('0x1aa'));};AGIVertices[_0xbb43('0x10')][_0xbb43('0x1ab')]=function(_0x582904){logger[_0xbb43('0x31')](util[_0xbb43('0x2b')](_0xbb43('0x1ac'),_0x582904[_0xbb43('0x3c')]));if(!this['isConfigured'](_0x582904[_0xbb43('0x1ad')])){return this[_0xbb43('0xe')][_0xbb43('0x2f')](_0x582904,'no\x20subproject\x20selected');}var _0x317df7=this['getSquareProject'][_0xbb43('0x72')](this,_0x582904['project_id']);if(!this[_0xbb43('0x84')](_0x317df7)){return this[_0xbb43('0xe')][_0xbb43('0x2f')](_0x582904,util[_0xbb43('0x2b')](_0xbb43('0x1ae'),_0x582904['project_id']));}if(_0x317df7===this[_0xbb43('0xe')][_0xbb43('0x3e')]){return this[_0xbb43('0xe')][_0xbb43('0x2f')](_0x582904,'project\x20in\x20subproject\x20must\x20be\x20different\x20from\x20the\x20called\x20project');}this['createSquareDetailsReport']['sync'](this,_0x582904,_0x317df7);var _0x3b066a=this['channel'][_0xbb43('0x57')](_0xbb43('0x1af'),util[_0xbb43('0x2b')](_0xbb43('0x1b0'),config[_0xbb43('0x8')]['host']||_0xbb43('0x1b1'),_0x317df7,this[_0xbb43('0xe')][_0xbb43('0x3e')]));if(_0x3b066a[_0xbb43('0xaa')]===-0x1){return _0x3b066a;}return this[_0xbb43('0xe')][_0xbb43('0xa8')](util[_0xbb43('0x2b')](_0xbb43('0xc1'),_0xbb43('0x1af'),_0x317df7));};AGIVertices[_0xbb43('0x10')][_0xbb43('0x1b2')]=function(_0x4f1ec1){logger['info'](util[_0xbb43('0x2b')]('Enter\x20in\x20SYSTEM\x20(%s)\x20block',_0x4f1ec1[_0xbb43('0x3c')]));var _0x1fb0d0=this[_0xbb43('0x56')]['sync'](this,_0x4f1ec1[_0xbb43('0x1b3')]);this[_0xbb43('0x3a')]['sync'](this,_0x4f1ec1,_0x4f1ec1[_0xbb43('0x1b3')]);if(this['isConfigured'](_0x4f1ec1[_0xbb43('0xd4')])){var _0x1c1ac0=this[_0xbb43('0x11')]['sync'](this,_0x4f1ec1['variable_id']);if(_0x1c1ac0){this[_0xbb43('0xe')][_0xbb43('0xd9')](_0x1c1ac0,_0x1fb0d0);return this[_0xbb43('0xe')][_0xbb43('0xa8')](util['format'](_0xbb43('0x1b4'),_0x4f1ec1[_0xbb43('0x1b3')],_0x1c1ac0));}}return this[_0xbb43('0xe')][_0xbb43('0xa8')](util[_0xbb43('0x2b')](_0xbb43('0x1b5'),_0x4f1ec1[_0xbb43('0x1b3')]));};AGIVertices['prototype'][_0xbb43('0x1b6')]=function(_0x25f187){logger[_0xbb43('0x31')](util[_0xbb43('0x2b')]('Enter\x20in\x20Google\x20Cloud\x20TTS\x20(%s)\x20block',_0x25f187[_0xbb43('0x3c')]));_0x25f187[_0xbb43('0x5c')]=_0x25f187[_0xbb43('0x5c')][_0xbb43('0x58')](/(\r\n|\n|\r)/gm,'\x20');if(!this['isConfigured'](_0x25f187[_0xbb43('0x5a')])){return this[_0xbb43('0xe')][_0xbb43('0xa8')](_0xbb43('0x1b7'));}if(!this['isConfigured'](_0x25f187['text'])){return this[_0xbb43('0xe')][_0xbb43('0xa8')](_0xbb43('0xa9'));}this['channel']['noop'](util[_0xbb43('0x2b')]('Trying\x20Google\x20Cloud\x20TTS\x20%s',_0x25f187[_0xbb43('0x5c')]));var _0x208e92=this[_0xbb43('0x59')]['sync'](this,_0x25f187);if(_0x208e92){this[_0xbb43('0xe')][_0xbb43('0xa8')](util[_0xbb43('0x2b')](_0xbb43('0x1b8'),_0x208e92));var _0x3fe433=this['channel'][_0xbb43('0xff')](_0x208e92);try{fs[_0xbb43('0x125')](_0x208e92+_0xbb43('0x100'));}catch(_0x3b7f19){logger[_0xbb43('0x2f')](_0x3b7f19);}return _0x3fe433;}return this[_0xbb43('0xe')][_0xbb43('0x2f')](_0x25f187,_0xbb43('0x1b9'));};AGIVertices[_0xbb43('0x10')]['tts']=function(_0x35f61f){logger[_0xbb43('0x31')](util[_0xbb43('0x2b')](_0xbb43('0x1ba'),_0x35f61f[_0xbb43('0x3c')]));_0x35f61f[_0xbb43('0x5c')]=_0x35f61f['text'][_0xbb43('0x58')](/(\r\n|\n|\r)/gm,'\x20');if(!this[_0xbb43('0x84')](_0x35f61f[_0xbb43('0x5c')])){return this[_0xbb43('0xe')][_0xbb43('0xa8')](_0xbb43('0xa9'));}this[_0xbb43('0xe')]['noop'](util[_0xbb43('0x2b')](_0xbb43('0x1bb'),_0x35f61f[_0xbb43('0x5c')]));var _0xf32c73=this[_0xbb43('0x63')]['sync'](this,_0x35f61f);if(_0xf32c73){this['channel'][_0xbb43('0xa8')](util[_0xbb43('0x2b')](_0xbb43('0x1bc'),_0xf32c73));var _0x1f5da3=this[_0xbb43('0xe')][_0xbb43('0xff')](_0xf32c73);try{fs[_0xbb43('0x125')](_0xf32c73+_0xbb43('0x100'));}catch(_0x28375e){logger[_0xbb43('0x2f')](_0x28375e);}return _0x1f5da3;}return this[_0xbb43('0xe')][_0xbb43('0x2f')](_0x35f61f,'Google\x20TTS\x20is\x20unreachable');};AGIVertices[_0xbb43('0x10')][_0xbb43('0x1bd')]=function(_0x20e21e){logger[_0xbb43('0x31')](util[_0xbb43('0x2b')]('Enter\x20in\x20UNPAUSE\x20(%s)\x20block',_0x20e21e['label']));if(!this[_0xbb43('0x84')](_0x20e21e[_0xbb43('0x155')])){return this[_0xbb43('0xe')][_0xbb43('0x2f')](_0x20e21e,_0xbb43('0x156'));}logger[_0xbb43('0x31')](util[_0xbb43('0x2b')](_0xbb43('0x15d'),this[_0xbb43('0xe')][_0xbb43('0x3f')],_0x20e21e[_0xbb43('0x155')]));var _0x120c29=this[_0xbb43('0x52')]['sync'](this,_0x20e21e[_0xbb43('0x155')]);if(_0x120c29){logger[_0xbb43('0x31')](util[_0xbb43('0x2b')](_0xbb43('0x157'),this[_0xbb43('0xe')][_0xbb43('0x3f')],_0x20e21e[_0xbb43('0x155')]));this[_0xbb43('0xe')][_0xbb43('0xa8')](util[_0xbb43('0x2b')]('AGENT\x20%s\x20FOUND\x20BY',this['channel'][_0xbb43('0x3f')],_0x20e21e['findBy']));return{'code':0xc8,'result':'success'};}else{logger[_0xbb43('0x31')](util['format'](_0xbb43('0x159'),this[_0xbb43('0xe')]['callerid'],_0x20e21e[_0xbb43('0x155')]));this[_0xbb43('0xe')][_0xbb43('0xa8')](util[_0xbb43('0x2b')](_0xbb43('0x159'),this[_0xbb43('0xe')][_0xbb43('0x3f')],_0x20e21e[_0xbb43('0x155')]));return{'code':0xc8,'result':_0xbb43('0x15a')};}};AGIVertices[_0xbb43('0x10')]['voicemail']=function(_0x292967){logger['info'](util[_0xbb43('0x2b')](_0xbb43('0x1be'),_0x292967['label']));var _0x227a3e=this[_0xbb43('0xe')][_0xbb43('0x57')](_0xbb43('0x1bf'),[_0x292967['mailbox'],_0x292967[_0xbb43('0x7b')]]);if(_0x227a3e['result']===-0x1){return _0x227a3e;}return this[_0xbb43('0xe')][_0xbb43('0xa8')](util[_0xbb43('0x2b')]('Executed\x20command\x20%s\x20%s',_0xbb43('0x1bf'),_0x292967[_0xbb43('0x1c0')]));};AGIVertices['prototype'][_0xbb43('0x1c1')]=function(_0x5a4eec){logger[_0xbb43('0x31')](util[_0xbb43('0x2b')](_0xbb43('0x1c2'),_0x5a4eec[_0xbb43('0x3c')]));if(!this[_0xbb43('0x84')](_0x5a4eec[_0xbb43('0xd4')])){return this[_0xbb43('0xe')][_0xbb43('0x2f')](_0x5a4eec,_0xbb43('0x1a4'));}var _0x47261b=this[_0xbb43('0x11')][_0xbb43('0x72')](this,_0x5a4eec[_0xbb43('0xd4')]);if(!_0x47261b){return this[_0xbb43('0xe')]['error'](_0x5a4eec,_0xbb43('0xd6'));}var _0x47c71c=this[_0xbb43('0xe')][_0xbb43('0x11')](_0x47261b);return{'code':0xc8,'result':_0x47c71c[_0xbb43('0xa0')]?_0x47c71c['extra']:'-'};};String[_0xbb43('0x10')][_0xbb43('0x1c3')]=function(_0x301594,_0x26fd6f){return this[_0xbb43('0x9f')](_0x301594)[_0xbb43('0x1c4')](_0x26fd6f);};module[_0xbb43('0x1c5')]=AGIVertices;
\ No newline at end of file
+var _0x4006=['VOICEMAIL','no\x20variable\x20selected','exports','lodash','shelljs','odbc','randomstring','request-promise','agi','/var/opt/motion2/server/files','rawBody','menu','getdigits','getsecretdigits','channel','rpc','mailRpc','prototype','getVariable','getVariableById','name','catch','getVoiceQueue','then','getSquareProjectById','getSquareOdbc','getSquareOdbcById','dsn','getUser','getUserById','getTrunk','getSound','getSoundPath','save_name','getMailAccountById','sendMailMessage','getIntervalById','interval','map','Intervals','format','%s/sounds/converted/%s','getQueryOdbc','open','error','info','ODBC\x20connection\x20successfully','query','Error\x20executing\x20query\x20%s','getSmsAccount','getSmsAccountById','createSmsMessage','createSquareDetailsReport','uniqueid','agicommand','arg_1','createSquareRecording','callerid','calleridname','context','priority','dnid','file','createCmContact','isEmpty','isNil','callback_','lastName','phone','list_id','scheduledAt','callback','Callback\x20scheduled\x20at\x20','toString','callback_priority','getPause','getPauseById','agentPause','agent','agentUnpause','agentLogout','agentLogin','internal','%s/%s@from-sip/n','LOCAL','shellCommand','exec','googleCloudTTS','apiKey','text','languageCode','en-US','ssmlGender','MALE','MP3','googleTTS','google_tts_language','restAPI','url','number','timeout','includes','PUT','toUpperCase','body','headers','rawHeaders','An\x20incorrect\x20formatted\x20json\x20headers\x20has\x20been\x20passed\x20to\x20the\x20function','sync','uri','render','parse','stringify','An\x20incorrect\x20formatted\x20json\x20has\x20been\x20passed\x20to\x20the\x20function','statusCode','statusMessage','500\x20-\x20Internal\x20Server\x20Error','options','googleDialogflow','key','dialogflow_language','googleDialogflowV2','dialogflowV2_project_id','private_key','sestekNDA','ispeechTTS','ispeech_tts_language','ispeechASR','ispeech_asr_language','isConfigured','model','awsPolly','aws_access_key_id','aws_secret_access_key','aws_polly_region','Amy','aws_text_type','aws_lex_region','aws_bot_name','googleASR','google_asr_language','tildeASR','appid','appsecret','clear','clone','hasOwnProperty','replaceAllVariables','recursiveNodeIndex','isPlainObject','isArray','length','isString','saveRestApiResult','%s.%s','setVariable','replaceObjectAllVariables','split','getAndSetVariable','result','extra','maxRetry','retry','mrcpsynth','Enter\x20in\x20MRCPSynth\x20(%s)\x20block','noop','no\x20text\x20configured','Executed\x20command\x20MRCPSynth\x20%s','mrcprecog','Enter\x20in\x20MRCPRecog\x20(%s)\x20block','label','no\x20grammar\x20configured','grammar','MRCPRecog','RECOG_CONFIDENCE()','MRCP_RECOG_CONFIDENCE','RECOG_INPUT()','MRCP_RECOG_TRANSCRIPT','RECOG_INSTANCE()','MRCP_RECOG_INSTANCE','Executed\x20command\x20MRCPRecog\x20%s','answer','Enter\x20in\x20ANSWER\x20(%s)\x20block','Wait\x20%s\x20seconds\x20before\x20answer','wait','Enter\x20in\x20CALLBACK\x20(%s)\x20block','no\x20list\x20selected','delay','add','minutes','CALLBACK\x20added\x20phone:\x20%s\x20on\x20list:\x20%s\x20at\x20%s','custom_app','Enter\x20in\x20CUSTOM\x20APP\x20(%s)\x20block','application','Executed\x20command\x20%s\x20%s','Enter\x20in\x20LUMENVOXTTS\x20(%s)\x20block','sestektts','Enter\x20in\x20SESTEKTTS\x20(%s)\x20block','MRCPSynth','lumenvoxasr','Enter\x20in\x20LUMENVOXASR\x20(%s)\x20block','LUMENVOX_ASR_TRANSCRIPT','LUMENVOX_ASR_INSTANCE','sestekasr','Enter\x20in\x20SESTEKASR\x20(%s)\x20block','SESTEK_ASR_CONFIDENCE','SESTEK_ASR_TRANSCRIPT','database','Enter\x20in\x20DATABASE\x20(%s)\x20block','odbc_id','no\x20odbc\x20database\x20found','no\x20query\x20configured','query:\x20%s','variable_id','no\x20variable\x20selected\x20for\x20the\x20result','no\x20variable\x20found','keys','forEach','%s_ROWS_COUNT','variable\x20%s\x20set','dial','Enter\x20in\x20DIAL\x20(%s)\x20block','sip_id','no\x20user\x20selected','no\x20user\x20found','SIP/%s','Executed\x20command\x20%s','DIAL','Enter\x20in\x20DIALOGFLOW\x20(%s)\x20block','bot','createSquareMessage','DIALOGFLOW_%s','out','dialogflow','Dialogflow\x20Result\x20%s','Dialogflow\x20is\x20unreachable','Enter\x20in\x20DIALOGFLOW\x20V2\x20(%s)\x20block','no\x20project_id\x20configured','client_email','no\x20client_email\x20configured','dialogflowV2_language','no\x20anguage\x20configured','Trying\x20DialogflowV2:\x20%s','speech','dialogflowV2','providerResponse','DialogflowV2\x20Result\x20%s','sesteknda','no\x20ndauth\x20url\x20configured','username','no\x20username\x20configured','no\x20password\x20configured','SESTEK_NDA_%s','audiofile','Sestek\x20NDA\x20%s\x20file\x20created','unlink','.wav','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','no\x20file\x20audio\x20selected','no\x20file\x20audio\x20found','response','maxdigit','test','mindigit','hiddendigitsnum','generate','first','substr','Enter\x20in\x20GETSECRETDIGITS\x20(%s)\x20block','goalname','GOAL\x20%s','awspolly','[AGI]\x20Enter\x20in\x20AWSPOLLY\x20(%s)\x20block','no\x20valid\x20credentials\x20configured','Trying\x20aws\x20Polly\x20%s','aws\x20Polly\x20%s\x20file\x20created','streamFile','Enter\x20in\x20Amazon\x20Lex\x20(%s)\x20block','no\x20bot\x20name\x20configured','Trying\x20Amazon\x20Lex:\x20%s','awsLex','AWS_LEX_%s','message','Amazon\x20Lex\x20ready\x20for\x20fulfillment','Amazon\x20Lex\x20Result\x20%s','Amazon\x20Lex\x20is\x20unreachable','googleasr','Enter\x20in\x20GOOGLEASR\x20(%s)\x20block\x20%s','no\x20key\x20configured','wav','NOBEEP','intKey','google\x20%s\x20file\x20created','GOOGLE_ASR_%s','tildeasr','Enter\x20in\x20TILDEASR\x20(%s)\x20block','%s/recordings/%s','beep','recordFile','tilde\x20%s\x20file\x20created','TILDE_ASR_%s','gotoc','Enter\x20in\x20GOTO\x20(%s)\x20block','Enter\x20in\x20GOTOIF\x20(%s)\x20block','condition','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)','hangup','Enter\x20in\x20HANGUP\x20(%s)\x20block','Enter\x20in\x20ISPEECHASR\x20(%s)\x20block','ispeech\x20%s\x20file\x20created','ISPEECH_ASR_%s','IspeechASR\x20Result\x20%s','ispeechtts','login','findBy','no\x20find\x20by\x20configured','FIND\x20AGENT\x20%s\x20BY\x20%s','AGENT\x20%s\x20FOUND\x20BY','success','AGENT\x20%s\x20NOT\x20FOUND\x20BY','failure','logout','Enter\x20in\x20LOGOUT\x20(%s)\x20block','math','Enter\x20in\x20MATH\x20(%s)\x20block','operation','no\x20operation\x20configured','math\x20%s','%s[%s]','variable\x20%s[key]\x20set','digit','Enter\x20in\x20NOOP\x20(%s)\x20block','Enter\x20in\x20PAUSE\x20(%s)\x20block','playback','Enter\x20in\x20PLAYBACK\x20(%s)\x20block','PLAYBACK','opts','queue','Enter\x20in\x20QUEUE\x20(%s)\x20block','queue_id','no\x20queue\x20found','indexOf','QUEUE','macro','gosub','position','record','Enter\x20in\x20RECORD\x20(%s)\x20block','recordingFormat','%s_%s','RECORDING_SAVENAME','Recording\x20%s\x20%s\x20%s\x20%s','escape_digits','no\x20url\x20configured','Response:','inspect','no\x20variable\x20selected\x20for\x20the\x20response','%s_STATUS_CODE','200','%s_STATUS_MESSAGE','Unable\x20to\x20set\x20result\x20in\x20variable\x20%s','saydigits','Enter\x20in\x20SAYDIGITS\x20(%s)\x20block','sayDigits','digits','saynumber','Enter\x20in\x20SAYNUMBER\x20(%s)\x20block','sayNumber','replace','Enter\x20in\x20SAYPHONETIC\x20(%s)\x20block','sayPhonetic','sendMail','Enter\x20in\x20SENDMAIL\x20(%s)\x20block','no\x20mail\x20account\x20configured','getMailAccount','account_id','Smtp','\x22%s\x22\x20<%s>','email','user','bcc','subject','template_id','debug','sendMail\x20message','Trying\x20SendMail\x20with\x20account\x20%s','smtpOptions','Mail\x20message\x20added\x20to\x20outgoing\x20process','sendFax','no\x20sms\x20account\x20found','sms_text','sendSMS\x20message','sms_account_id','Trying\x20SendSMS\x20with\x20account\x20%s','Sms\x20message\x20added\x20to\x20outgoing\x20process','set','Enter\x20in\x20SET\x20(%s)\x20block','variable_value','start','Enter\x20in\x20START\x20(%s)\x20block','START\x20CALLY\x20SQUARE','XMCS-UNIQUEID','yes','Answer','Skipped\x20Answer','subproject','Enter\x20in\x20SUBPROJECT\x20(%s)\x20block','project_id','no\x20subproject\x20selected','getSquareProject','no\x20subproject\x20found\x20with\x20id\x20%d','project\x20in\x20subproject\x20must\x20be\x20different\x20from\x20the\x20called\x20project','AGI','agi://%s/square,\x22%s\x22,\x22%s\x22','127.0.0.1','system','Enter\x20in\x20SYSTEM\x20(%s)\x20block','sh\x20command:\x20%s\x20result\x20on\x20variable:\x20%s','command','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','unpause','Enter\x20in\x20UNPAUSE\x20(%s)\x20block','voicemail','Enter\x20in\x20VOICEMAIL\x20(%s)\x20block'];(function(_0x4b7823,_0x54eeac){var _0x4b08fe=function(_0x3ce0c8){while(--_0x3ce0c8){_0x4b7823['push'](_0x4b7823['shift']());}};_0x4b08fe(++_0x54eeac);}(_0x4006,0x1c7));var _0x6400=function(_0x4d7551,_0x7cba1c){_0x4d7551=_0x4d7551-0x0;var _0x36fb51=_0x4006[_0x4d7551];return _0x36fb51;};'use strict';var fs=require('fs');var util=require('util');var _=require(_0x6400('0x0'));var sh=require(_0x6400('0x1'));var odbc=require(_0x6400('0x2'))();var rs=require(_0x6400('0x3'));var moment=require('moment');var Mustache=require('mustache');var rp=require(_0x6400('0x4'));var logger=require('../../config/logger')(_0x6400('0x5'));var config=require('../../config/environment');var scripts=require('./scripts');var FILES_PATH=_0x6400('0x6');var recursiveMapAttributes=['rawHeaders',_0x6400('0x7')];var verticesWithRetry=[_0x6400('0x8'),_0x6400('0x9'),_0x6400('0xa')];var AGIVertices=function(_0x5cbe4f,_0x31cc99,_0x46819e){this[_0x6400('0xb')]=_0x5cbe4f;this[_0x6400('0xc')]=_0x31cc99;this[_0x6400('0xd')]=_0x46819e;};AGIVertices[_0x6400('0xe')][_0x6400('0xf')]=function(_0xc3cf61,_0x237e22){this[_0x6400('0xc')][_0x6400('0x10')](_0xc3cf61)['then'](function(_0x457d1a){_0x237e22(null,_0x457d1a?_0x457d1a[_0x6400('0x11')]:![]);})[_0x6400('0x12')](function(_0x36bf00){_0x237e22(_0x36bf00);});};AGIVertices['prototype'][_0x6400('0x13')]=function(_0x2acc34,_0x4ed062){this['rpc']['getVoiceQueueById'](_0x2acc34)[_0x6400('0x14')](function(_0x18c2e3){_0x4ed062(null,_0x18c2e3?_0x18c2e3['name']:![]);})[_0x6400('0x12')](function(_0x4ae3ea){_0x4ed062(_0x4ae3ea);});};AGIVertices[_0x6400('0xe')]['getSquareProject']=function(_0x13d595,_0x430cb4){this[_0x6400('0xc')][_0x6400('0x15')](_0x13d595)['then'](function(_0x444bce){_0x430cb4(null,_0x444bce?_0x444bce[_0x6400('0x11')]:![]);})[_0x6400('0x12')](function(_0x50524f){_0x430cb4(_0x50524f);});};AGIVertices[_0x6400('0xe')][_0x6400('0x16')]=function(_0x4b22f9,_0x36a8f5){this[_0x6400('0xc')][_0x6400('0x17')](_0x4b22f9)['then'](function(_0xf4ce95){_0x36a8f5(null,_0xf4ce95?_0xf4ce95[_0x6400('0x18')]:![]);})[_0x6400('0x12')](function(_0xb04eb6){_0x36a8f5(_0xb04eb6);});};AGIVertices[_0x6400('0xe')][_0x6400('0x19')]=function(_0x8eb4ac,_0x171e39){this[_0x6400('0xc')][_0x6400('0x1a')](_0x8eb4ac)['then'](function(_0x465c68){_0x171e39(null,_0x465c68?_0x465c68['name']:![]);})['catch'](function(_0x257d80){_0x171e39(_0x257d80);});};AGIVertices[_0x6400('0xe')][_0x6400('0x1b')]=function(_0x43fab2,_0x5322b8){this[_0x6400('0xc')]['getTrunkById'](_0x43fab2)[_0x6400('0x14')](function(_0x506732){_0x5322b8(null,_0x506732?_0x506732[_0x6400('0x11')]:![]);})[_0x6400('0x12')](function(_0x577156){_0x5322b8(_0x577156);});};AGIVertices[_0x6400('0xe')][_0x6400('0x1c')]=function(_0x3c58b8,_0x56b285){var _0x208cb1=this;this['rpc']['getSoundById'](_0x3c58b8)[_0x6400('0x14')](function(_0x4bb214){_0x56b285(null,_0x4bb214?_0x208cb1[_0x6400('0x1d')](_0x4bb214[_0x6400('0x1e')]):![]);})['catch'](function(_0x452a2c){_0x56b285(_0x452a2c);});};AGIVertices['prototype']['getMailAccount']=function(_0x2ab43e,_0x165170){this[_0x6400('0xc')][_0x6400('0x1f')](_0x2ab43e)[_0x6400('0x14')](function(_0x54cf9f){_0x165170(null,_0x54cf9f?_0x54cf9f:![]);})[_0x6400('0x12')](function(_0x21a324){_0x165170(_0x21a324);});};AGIVertices[_0x6400('0xe')][_0x6400('0x20')]=function(_0x57c3fb,_0x437624,_0x356f4d){this[_0x6400('0xd')]['sendMailMessage'](_0x57c3fb,_0x437624)[_0x6400('0x14')](function(){_0x356f4d(null);})[_0x6400('0x12')](function(_0x2eea52){_0x356f4d(_0x2eea52);});};AGIVertices[_0x6400('0xe')]['getIntervals']=function(_0x1aec8b,_0x111676){this['rpc'][_0x6400('0x21')](_0x1aec8b)[_0x6400('0x14')](function(_0x50ba26){if(_0x50ba26){if(_0x50ba26['IntervalId']){_0x111676(null,[_0x50ba26[_0x6400('0x22')]]);}else{_0x111676(null,_[_0x6400('0x23')](_0x50ba26[_0x6400('0x24')],'interval'));}}else{_0x111676(null,![]);}})['catch'](function(_0x506898){_0x111676(_0x506898);});};AGIVertices[_0x6400('0xe')][_0x6400('0x1d')]=function(_0x270c9d){return util[_0x6400('0x25')](_0x6400('0x26'),FILES_PATH,_0x270c9d);};AGIVertices['prototype'][_0x6400('0x27')]=function(_0x36f2a5,_0x5eccda,_0x51425c){odbc[_0x6400('0x28')](_0x36f2a5,function(_0x18b77f){if(_0x18b77f){logger[_0x6400('0x29')]('Error\x20getting\x20ODBC\x20connection\x20%s',_0x18b77f);_0x51425c(_0x18b77f);}else{logger[_0x6400('0x2a')](_0x6400('0x2b'));odbc[_0x6400('0x2c')](_0x5eccda,function(_0x491ea9,_0x441a05){if(_0x491ea9){logger[_0x6400('0x2a')](_0x6400('0x2d'),_0x5eccda);_0x51425c(_0x491ea9);}else{logger['info']('Query\x20executed\x20correctly\x20%s',_0x5eccda);odbc['close'](function(_0x46bbfb){if(_0x46bbfb){logger['error']('Error\x20closing\x20connection\x20to\x20odbc\x20%s',_0x46bbfb);}_0x51425c(null,_0x441a05);});}});}});};AGIVertices[_0x6400('0xe')][_0x6400('0x2e')]=function(_0x565942,_0x150158){this[_0x6400('0xc')][_0x6400('0x2f')](_0x565942)['then'](function(_0x9536e5){_0x150158(null,_0x9536e5?_0x9536e5:![]);})[_0x6400('0x12')](function(_0x5f27cd){_0x150158(_0x5f27cd);});};AGIVertices[_0x6400('0xe')]['createSmsMessage']=function(_0x51a9e8,_0x32dc71){this[_0x6400('0xc')][_0x6400('0x30')](_0x51a9e8)['then'](function(_0x19fb53){_0x32dc71(null,_0x19fb53);})[_0x6400('0x12')](function(_0x1bdc8c){_0x32dc71(_0x1bdc8c);});};AGIVertices[_0x6400('0xe')][_0x6400('0x31')]=function(_0x557133,_0x24d0c7,_0x5bd24c){this[_0x6400('0xc')][_0x6400('0x31')]({'uniqueid':this[_0x6400('0xb')][_0x6400('0x32')],'node':_0x557133['label'],'application':_0x557133[_0x6400('0x33')],'data':_0x24d0c7||null,'project_name':this[_0x6400('0xb')][_0x6400('0x34')],'callerid':this[_0x6400('0xb')]['callerid']})[_0x6400('0x14')](function(_0x52ce53){if(_0x5bd24c){_0x5bd24c(null,_0x52ce53);}})[_0x6400('0x12')](function(_0x52cc77){if(_0x5bd24c){_0x5bd24c(_0x52cc77);}});};AGIVertices[_0x6400('0xe')][_0x6400('0x35')]=function(_0x3084e8,_0x5712f1,_0x2c62c4,_0x4905c7){this[_0x6400('0xc')][_0x6400('0x35')]({'uniqueid':this[_0x6400('0xb')][_0x6400('0x32')],'callerid':this[_0x6400('0xb')][_0x6400('0x36')],'calleridname':this[_0x6400('0xb')][_0x6400('0x37')],'context':this[_0x6400('0xb')][_0x6400('0x38')],'extension':this[_0x6400('0xb')]['extension'],'priority':this[_0x6400('0xb')][_0x6400('0x39')],'accountcode':this[_0x6400('0xb')]['accountcode'],'dnid':this[_0x6400('0xb')][_0x6400('0x3a')],'projectName':this[_0x6400('0xb')]['arg_1'],'saveName':_0x5712f1,'filename':_0x3084e8[_0x6400('0x3b')]||_0x5712f1,'savePath':_0x2c62c4})['then'](function(_0x518ee4){_0x4905c7(null,_0x518ee4);})['catch'](function(_0x32c3d0){_0x4905c7(_0x32c3d0);});};AGIVertices[_0x6400('0xe')]['createSquareMessage']=function(_0x3b659b,_0x9737b3,_0x5bc05a,_0x48bc20,_0x35cd68){this[_0x6400('0xc')]['createSquareMessage']({'uniqueid':this[_0x6400('0xb')][_0x6400('0x32')],'body':_0x3b659b,'direction':_0x9737b3,'providerName':_0x5bc05a,'providerResponse':_0x48bc20})[_0x6400('0x14')](function(_0x3f0e97){if(_0x35cd68){_0x35cd68(null,_0x3f0e97);}})[_0x6400('0x12')](function(_0x272019){if(_0x35cd68){_0x35cd68(_0x272019);}});};AGIVertices[_0x6400('0xe')]['createCmContact']=function(_0x46c582,_0x801179){this[_0x6400('0xc')][_0x6400('0x3c')]({'firstName':_[_0x6400('0x3d')](_0x46c582[_0x6400('0x11')])||_[_0x6400('0x3e')](_0x46c582['name'])?_0x6400('0x3f')+Math['random']():_0x46c582['name'],'lastName':_[_0x6400('0x3d')](_0x46c582[_0x6400('0x40')])||_[_0x6400('0x3e')](_0x46c582['lastName'])?null:_0x46c582[_0x6400('0x40')],'phone':_0x46c582[_0x6400('0x41')],'ListId':_0x46c582[_0x6400('0x42')],'scheduledat':_0x46c582[_0x6400('0x43')],'callbackUniqueid':this[_0x6400('0xb')]['uniqueid'],'tags':_0x6400('0x44'),'description':_0x6400('0x45')+_0x46c582['scheduledAt'][_0x6400('0x46')](),'priority':_0x46c582[_0x6400('0x47')]})[_0x6400('0x14')](function(_0x5be721){_0x801179(null,_0x5be721);})[_0x6400('0x12')](function(_0x489042){_0x801179(_0x489042);});};AGIVertices[_0x6400('0xe')][_0x6400('0x48')]=function(_0x190d71,_0xf2d2b7){this[_0x6400('0xc')][_0x6400('0x49')](_0x190d71)['then'](function(_0x1ce65e){_0xf2d2b7(null,_0x1ce65e?_0x1ce65e[_0x6400('0x11')]:![]);})['catch'](function(_0x1c3ca6){_0xf2d2b7(_0x1c3ca6);});};AGIVertices[_0x6400('0xe')][_0x6400('0x4a')]=function(_0x17f72d,_0x4d4e57,_0x223491){var _0x338d28={'role':_0x6400('0x4b')};_0x338d28[_0x17f72d]=this[_0x6400('0xb')][_0x6400('0x36')];this[_0x6400('0xc')][_0x6400('0x4a')](_0x338d28,_0x4d4e57,this[_0x6400('0xb')][_0x6400('0x32')])[_0x6400('0x14')](function(_0x372ae2){_0x223491(null,_[_0x6400('0x3e')](_0x372ae2)?![]:!![]);})['catch'](function(_0x348670){logger[_0x6400('0x29')](_0x348670);_0x223491(null,![]);});};AGIVertices['prototype'][_0x6400('0x4c')]=function(_0x5057ba,_0x2ab58f){var _0x2c6684={'role':'agent'};_0x2c6684[_0x5057ba]=this[_0x6400('0xb')]['callerid'];this[_0x6400('0xc')]['agentUnpause'](_0x2c6684)[_0x6400('0x14')](function(_0x329367){_0x2ab58f(null,_[_0x6400('0x3e')](_0x329367)?![]:!![]);})[_0x6400('0x12')](function(_0x3e0461){logger[_0x6400('0x29')](_0x3e0461);_0x2ab58f(null,![]);});};AGIVertices['prototype']['agentLogout']=function(_0x2033cc,_0x3c4944){var _0x49b7df={'role':_0x6400('0x4b')};_0x49b7df[_0x2033cc]=this['channel']['callerid'];this[_0x6400('0xc')][_0x6400('0x4d')](_0x49b7df)[_0x6400('0x14')](function(_0x22245f){_0x3c4944(null,_[_0x6400('0x3e')](_0x22245f)?![]:!![]);})[_0x6400('0x12')](function(_0x451675){logger['error'](_0x451675);_0x3c4944(null,![]);});};AGIVertices[_0x6400('0xe')][_0x6400('0x4e')]=function(_0x29522c,_0x567761){var _0x558a96={'role':_0x6400('0x4b')};_0x558a96[_0x29522c]=this[_0x6400('0xb')][_0x6400('0x36')];var _0x5e5a37=_0x29522c!=_0x6400('0x4f')?util['format'](_0x6400('0x50'),_0x6400('0x51'),this['channel'][_0x6400('0x36')]):undefined;this[_0x6400('0xc')][_0x6400('0x4e')](_0x558a96,_0x5e5a37)[_0x6400('0x14')](function(_0x4439d0){_0x567761(null,_[_0x6400('0x3e')](_0x4439d0)?![]:!![]);})[_0x6400('0x12')](function(_0x5d0ad6){logger[_0x6400('0x29')](_0x5d0ad6);_0x567761(null,![]);});};AGIVertices[_0x6400('0xe')][_0x6400('0x52')]=function(_0x1acdaf,_0x253983){sh[_0x6400('0x53')](_['trim'](_0x1acdaf),function(_0x43699a,_0x417492){var _0x5cd76a=_0x417492['replace'](/(\r\n|\n|\r)/gm,'');_0x253983(null,_0x5cd76a);});};AGIVertices['prototype']['googleCloudTTS']=function(_0x34a7f5,_0x3774cb){scripts[_0x6400('0x54')](_0x34a7f5[_0x6400('0x55')],_0x34a7f5['google_cloud_tts_text_type']||_0x6400('0x56'),_0x34a7f5[_0x6400('0x56')],_0x34a7f5[_0x6400('0x57')]||_0x6400('0x58'),_0x34a7f5[_0x6400('0x59')]||_0x6400('0x5a'),_0x34a7f5['audioEncoding']||_0x6400('0x5b'))[_0x6400('0x14')](function(_0xaafcd9){_0x3774cb(null,_0xaafcd9);})[_0x6400('0x12')](function(_0x3d23ad){_0x3774cb(_0x3d23ad);});};AGIVertices[_0x6400('0xe')][_0x6400('0x5c')]=function(_0x59da00,_0x315315){scripts[_0x6400('0x5c')](_0x59da00[_0x6400('0x56')],_0x59da00[_0x6400('0x5d')]||'en',0x1)[_0x6400('0x14')](function(_0x67e41c){_0x315315(null,_0x67e41c);})[_0x6400('0x12')](function(_0xa22689){_0x315315(_0xa22689);});};AGIVertices[_0x6400('0xe')][_0x6400('0x5e')]=function(_0x1bf9f3,_0x5eacb8){var _0x532e27={'uri':_0x1bf9f3[_0x6400('0x5f')],'method':_0x1bf9f3['method'],'json':!![],'resolveWithFullResponse':!![],'strictSSL':![],'timeout':typeof parseInt(_0x1bf9f3['timeout'])===_0x6400('0x60')&&parseInt(_0x1bf9f3[_0x6400('0x61')])>=0x1?parseInt(_0x1bf9f3[_0x6400('0x61')])*0x3e8:0x5*0x3e8};if(_[_0x6400('0x62')](['POST',_0x6400('0x63')],_0x532e27['method'][_0x6400('0x64')]())){try{_0x532e27[_0x6400('0x65')]=_0x1bf9f3[_0x6400('0x7')]?JSON['parse'](_0x1bf9f3[_0x6400('0x7')]):{};}catch(_0x7de61b){logger[_0x6400('0x29')]('An\x20incorrect\x20formatted\x20json\x20body\x20has\x20been\x20passed\x20to\x20the\x20function',_0x7de61b);}}try{_0x532e27[_0x6400('0x66')]=_0x1bf9f3[_0x6400('0x67')]?JSON['parse'](_0x1bf9f3[_0x6400('0x67')]):{};}catch(_0x3dafb9){logger[_0x6400('0x29')](_0x6400('0x68'),_0x3dafb9);}if(_0x1bf9f3['computedVariables']){try{var _0x5cefda=require(_0x1bf9f3['computedVariables'])[_0x6400('0x69')](this,_0x532e27);_0x532e27[_0x6400('0x6a')]=Mustache[_0x6400('0x6b')](_0x1bf9f3[_0x6400('0x5f')],_0x5cefda,{},['$$','$$']);if(_0x532e27['headers']){_0x532e27[_0x6400('0x66')]=JSON[_0x6400('0x6c')](Mustache[_0x6400('0x6b')](JSON[_0x6400('0x6d')](_0x532e27[_0x6400('0x66')]),_0x5cefda,{},['$$','$$']));}if(_0x532e27['body']){_0x532e27['body']=JSON[_0x6400('0x6c')](Mustache['render'](JSON[_0x6400('0x6d')](_0x532e27[_0x6400('0x65')]),_0x5cefda,{},['$$','$$']));}}catch(_0x36a773){logger['error'](_0x6400('0x6e'),_0x36a773);}}rp(_0x532e27)[_0x6400('0x14')](function(_0x32da65){var _0x3ac2fc={'statusCode':_0x32da65[_0x6400('0x6f')]||0xc8,'statusMessage':_0x32da65[_0x6400('0x70')]||'OK','headers':_0x32da65[_0x6400('0x66')]||{},'body':_0x32da65[_0x6400('0x65')]||{}};_0x5eacb8(null,_0x3ac2fc);})[_0x6400('0x12')](function(_0x4048af){var _0x5997c7={'statusCode':_0x4048af[_0x6400('0x6f')]||0x1f4,'statusMessage':_0x4048af['message']||_0x6400('0x71'),'headers':_0x4048af[_0x6400('0x72')][_0x6400('0x66')]||{},'body':_0x4048af[_0x6400('0x72')][_0x6400('0x65')]||{}};_0x5eacb8(null,_0x5997c7);});};AGIVertices[_0x6400('0xe')][_0x6400('0x73')]=function(_0x35bbd4,_0x41797e){scripts['googleDialogflow'](this[_0x6400('0xb')][_0x6400('0x32')],_0x35bbd4[_0x6400('0x74')],_0x35bbd4[_0x6400('0x56')],_0x35bbd4[_0x6400('0x75')]||'en')[_0x6400('0x14')](function(_0x512e04){_0x41797e(null,_0x512e04);})[_0x6400('0x12')](function(_0x4f7e7c){_0x41797e(_0x4f7e7c);});};AGIVertices['prototype'][_0x6400('0x76')]=function(_0x229ddd,_0x109d99){scripts[_0x6400('0x76')](this['channel']['uniqueid'],_0x229ddd[_0x6400('0x77')],_0x229ddd['client_email'],_0x229ddd[_0x6400('0x78')],_0x229ddd['text'],_0x229ddd['dialogflowV2_language']||'en')[_0x6400('0x14')](function(_0xe76409){_0x109d99(null,_0xe76409);})[_0x6400('0x12')](function(_0x7a5e36){_0x109d99(_0x7a5e36);});};AGIVertices[_0x6400('0xe')][_0x6400('0x79')]=function(_0x509369,_0x55d61f){scripts[_0x6400('0x79')](this[_0x6400('0xb')],_0x509369)['then'](function(_0x1fb06b){_0x55d61f(null,_0x1fb06b);})['catch'](function(_0x399399){_0x55d61f(_0x399399);});};AGIVertices[_0x6400('0xe')][_0x6400('0x7a')]=function(_0x18cc29,_0x45dcfe){scripts[_0x6400('0x7a')](_0x18cc29[_0x6400('0x74')],_0x18cc29['text'],_0x18cc29[_0x6400('0x7b')]||'en-US',_0x18cc29['speed'])[_0x6400('0x14')](function(_0x4635d3){_0x45dcfe(null,_0x4635d3);})['catch'](function(_0x246906){_0x45dcfe(_0x246906);});};AGIVertices[_0x6400('0xe')][_0x6400('0x7c')]=function(_0x564d7c,_0x1a2840,_0x457836){scripts[_0x6400('0x7c')](_0x1a2840,_0x564d7c['key'],_0x564d7c[_0x6400('0x7d')]||_0x6400('0x58'),this[_0x6400('0x7e')](_0x564d7c['model'])?_0x564d7c[_0x6400('0x7f')]:undefined)[_0x6400('0x14')](function(_0x55da56){_0x457836(null,_0x55da56);})[_0x6400('0x12')](function(_0x1fc0d9){_0x457836(_0x1fc0d9);});};AGIVertices[_0x6400('0xe')][_0x6400('0x80')]=function(_0x25dfe1,_0x56f4cc){scripts['awsPolly'](_0x25dfe1[_0x6400('0x81')],_0x25dfe1[_0x6400('0x82')],_0x25dfe1[_0x6400('0x83')],_0x25dfe1['aws_polly_voice']||_0x6400('0x84'),_0x25dfe1[_0x6400('0x56')],_0x25dfe1[_0x6400('0x85')]||_0x6400('0x56'))['then'](function(_0x4b67ff){_0x56f4cc(null,_0x4b67ff);})[_0x6400('0x12')](function(_0x4a7b6a){_0x56f4cc(_0x4a7b6a);});};AGIVertices[_0x6400('0xe')]['awsLex']=function(_0x3a94f4,_0x11036f){scripts['awsLex'](this[_0x6400('0xb')][_0x6400('0x32')],_0x3a94f4[_0x6400('0x81')],_0x3a94f4[_0x6400('0x82')],_0x3a94f4[_0x6400('0x86')],_0x3a94f4[_0x6400('0x56')],_0x3a94f4[_0x6400('0x87')])[_0x6400('0x14')](function(_0x194086){_0x11036f(null,_0x194086);})['catch'](function(_0x540a29){_0x11036f(_0x540a29);});};AGIVertices[_0x6400('0xe')][_0x6400('0x88')]=function(_0x19e36e,_0x178b08,_0x2f8efe){scripts[_0x6400('0x88')](_0x178b08,_0x19e36e[_0x6400('0x74')],_0x19e36e[_0x6400('0x89')]||'en-US')[_0x6400('0x14')](function(_0x1dbe95){_0x2f8efe(null,_0x1dbe95);})[_0x6400('0x12')](function(_0x459b83){_0x2f8efe(_0x459b83);});};AGIVertices[_0x6400('0xe')][_0x6400('0x8a')]=function(_0x34a6fe,_0x4bf2a1,_0x37eb41){scripts[_0x6400('0x8a')](_0x4bf2a1,_0x34a6fe[_0x6400('0x8b')],_0x34a6fe[_0x6400('0x8c')],_0x34a6fe['uri'])[_0x6400('0x14')](function(_0x37969a){_0x37eb41(null,_0x37969a);})['catch'](function(_0x455b59){_0x37eb41(_0x455b59);});};AGIVertices[_0x6400('0xe')][_0x6400('0x8d')]=function(_0x241746){var _0x7f43eb=_[_0x6400('0x62')](verticesWithRetry,_0x241746['agicommand'])?_0x241746:_[_0x6400('0x8e')](_0x241746);for(var _0x3456df in _0x7f43eb){if(_0x7f43eb[_0x6400('0x8f')](_0x3456df)){if(_0x7f43eb[_0x3456df]&&_['isString'](_0x7f43eb[_0x3456df])){if(_[_0x6400('0x62')](recursiveMapAttributes,_0x3456df)){_0x7f43eb[_0x3456df]=this['replaceObjectAllVariables'](_0x7f43eb[_0x3456df]);}else{_0x7f43eb[_0x3456df]=this[_0x6400('0x90')](_0x7f43eb[_0x3456df]);}}}}return _0x7f43eb;};AGIVertices[_0x6400('0xe')][_0x6400('0x91')]=function(_0x381913){for(var _0x4982c8 in _0x381913){if(_0x381913['hasOwnProperty'](_0x4982c8)){if(_[_0x6400('0x92')](_0x381913[_0x4982c8])){this[_0x6400('0x91')](_0x381913[_0x4982c8]);}else if(_[_0x6400('0x93')](_0x381913[_0x4982c8])){for(var _0x3a0959=0x0;_0x3a0959<_0x381913[_0x4982c8][_0x6400('0x94')];_0x3a0959++){this[_0x6400('0x91')](_0x381913[_0x4982c8][_0x3a0959]);}}else if(_[_0x6400('0x95')](_0x381913[_0x4982c8])){_0x381913[_0x4982c8]=this[_0x6400('0x90')](_0x381913[_0x4982c8]);}}}};AGIVertices[_0x6400('0xe')][_0x6400('0x96')]=function(_0x499d7f,_0x2517ad){for(var _0x3e4ce4 in _0x499d7f){if(_0x499d7f[_0x6400('0x8f')](_0x3e4ce4)){if(_[_0x6400('0x92')](_0x499d7f[_0x3e4ce4])){if(!_[_0x6400('0x3d')](_0x499d7f[_0x3e4ce4])){this['saveRestApiResult'](_0x499d7f[_0x3e4ce4],util[_0x6400('0x25')](_0x6400('0x97'),_0x2517ad,_0x3e4ce4));}}else if(_[_0x6400('0x93')](_0x499d7f[_0x3e4ce4])){for(var _0x2eb4e0=0x0;_0x2eb4e0<_0x499d7f[_0x3e4ce4][_0x6400('0x94')];_0x2eb4e0++){this[_0x6400('0x96')](_0x499d7f[_0x3e4ce4][_0x2eb4e0],util[_0x6400('0x25')](_0x6400('0x97'),_0x2517ad,_0x3e4ce4+'['+_0x2eb4e0+']'));}}else{if(!_[_0x6400('0x3e')](_0x499d7f[_0x3e4ce4])){this[_0x6400('0xb')][_0x6400('0x98')](util[_0x6400('0x25')]('%s.%s',_0x2517ad,_0x3e4ce4),_0x499d7f[_0x3e4ce4]);}}}}};AGIVertices[_0x6400('0xe')][_0x6400('0x99')]=function(_0x424790){try{var _0x2490bb=JSON[_0x6400('0x6c')](_0x424790);this['recursiveNodeIndex'](_0x2490bb);return JSON[_0x6400('0x6d')](_0x2490bb);}catch(_0x1df33b){return this[_0x6400('0x90')](_0x424790);}};AGIVertices[_0x6400('0xe')]['replaceAllVariables']=function(_0x2efc5a){var _0x20226c=_0x2efc5a[_0x6400('0x9a')]('{');for(var _0x46d509=0x1;_0x46d509<_0x20226c[_0x6400('0x94')];_0x46d509+=0x1){var _0x359b10=_0x20226c[_0x46d509][_0x6400('0x9a')]('}');if(_0x359b10[_0x6400('0x94')]>0x1){_0x2efc5a=_0x2efc5a['replaceAll']('{'+_0x359b10[0x0]+'}',this[_0x6400('0xb')]['getVariable'](_0x359b10[0x0])['extra']||_0x359b10[0x0]);}}if(_0x20226c[_0x6400('0x94')]===0x1){return _0x2efc5a['toString']();}return this[_0x6400('0x90')](_0x2efc5a);};AGIVertices[_0x6400('0xe')][_0x6400('0x9b')]=function(_0x4de773,_0x11206e){var _0x4b7a86=this[_0x6400('0xb')][_0x6400('0xf')](_0x4de773);if(_0x4b7a86[_0x6400('0x9c')]===-0x1){return _0x4b7a86;}logger[_0x6400('0x2a')](util[_0x6400('0x25')]('The\x20\x22%s\x22\x20variable\x20value\x20is:\x20%s',_0x11206e,_0x4b7a86['extra']));return this[_0x6400('0xb')][_0x6400('0x98')](_0x11206e,_0x4b7a86[_0x6400('0x9d')]);};AGIVertices[_0x6400('0xe')][_0x6400('0x7e')]=function(_0x81c40e){return _0x81c40e&&_0x81c40e!=='0'&&_0x81c40e!=='-1'&&_0x81c40e!=='';};AGIVertices[_0x6400('0xe')][_0x6400('0x9e')]=function(_0x4dcb49){this[_0x6400('0x31')][_0x6400('0x69')](this,_0x4dcb49,'-');_0x4dcb49[_0x6400('0x9f')]=_0x4dcb49[_0x6400('0x9e')];return{'code':0xc8,'result':'-'};};AGIVertices['prototype'][_0x6400('0xa0')]=function(_0x51ab76){logger[_0x6400('0x2a')](util[_0x6400('0x25')](_0x6400('0xa1'),_0x51ab76['label']));if(!this['isConfigured'](_0x51ab76[_0x6400('0x56')])){return this[_0x6400('0xb')][_0x6400('0xa2')](_0x6400('0xa3'));}var _0xb9fb34='\x22'+_0x51ab76[_0x6400('0x56')]+'\x22';if(this[_0x6400('0x7e')](_0x51ab76[_0x6400('0x72')])){_0xb9fb34+=','+_0x51ab76[_0x6400('0x72')];}var _0x2b4fbe=this[_0x6400('0xb')]['exec']('MRCPSynth',_0xb9fb34);if(_0x2b4fbe[_0x6400('0x9c')]===-0x1){return _0x2b4fbe;}return this['channel'][_0x6400('0xa2')](util[_0x6400('0x25')](_0x6400('0xa4'),_0xb9fb34));};AGIVertices[_0x6400('0xe')][_0x6400('0xa5')]=function(_0x370d44){logger[_0x6400('0x2a')](util['format'](_0x6400('0xa6'),_0x370d44[_0x6400('0xa7')]));if(!this[_0x6400('0x7e')](_0x370d44['grammar'])){return this[_0x6400('0xb')]['noop'](_0x6400('0xa8'));}var _0x1c96ab=_0x370d44[_0x6400('0xa9')];if(this[_0x6400('0x7e')](_0x370d44[_0x6400('0x72')])){_0x1c96ab+=','+_0x370d44[_0x6400('0x72')];}var _0x56f905=this[_0x6400('0xb')][_0x6400('0x53')](_0x6400('0xaa'),_0x1c96ab);if(_0x56f905['result']===-0x1){return _0x56f905;}var _0x739c75=this[_0x6400('0x9b')](_0x6400('0xab'),_0x6400('0xac'));if(_0x739c75[_0x6400('0x9c')]===-0x1){return _0x739c75;}var _0x3ba98e=this[_0x6400('0x9b')](_0x6400('0xad'),_0x6400('0xae'));if(_0x3ba98e[_0x6400('0x9c')]===-0x1){return _0x3ba98e;}var _0x43125=this[_0x6400('0x9b')](_0x6400('0xaf'),_0x6400('0xb0'));if(_0x43125['result']===-0x1){return _0x43125;}return this[_0x6400('0xb')][_0x6400('0xa2')](util[_0x6400('0x25')](_0x6400('0xb1'),_0x1c96ab));};AGIVertices['prototype']['agi']=function(_0x34cfa7){logger[_0x6400('0x2a')](util['format']('Enter\x20in\x20AGI\x20(%s)\x20block',_0x34cfa7[_0x6400('0xa7')]));return this[_0x6400('0xb')][_0x6400('0x5')]([_0x34cfa7['command'],_0x34cfa7['args']]);};AGIVertices[_0x6400('0xe')][_0x6400('0xb2')]=function(_0x4d4e4){logger[_0x6400('0x2a')](util[_0x6400('0x25')](_0x6400('0xb3'),_0x4d4e4[_0x6400('0xa7')]));if(this[_0x6400('0x7e')](_0x4d4e4[_0x6400('0x61')])){logger[_0x6400('0x2a')](util[_0x6400('0x25')](_0x6400('0xb4'),_0x4d4e4[_0x6400('0x61')]));var _0x34f88b=this[_0x6400('0xb')][_0x6400('0xb5')](_0x4d4e4[_0x6400('0x61')]);if(_0x34f88b['result']===-0x1){return _0x34f88b;}}return this[_0x6400('0xb')][_0x6400('0xb2')]();};AGIVertices[_0x6400('0xe')]['callback']=function(_0x1081f2){logger['info'](util['format'](_0x6400('0xb6'),_0x1081f2[_0x6400('0xa7')]));if(!this[_0x6400('0x7e')](_0x1081f2[_0x6400('0x42')])){return this[_0x6400('0xb')][_0x6400('0x29')](_0x1081f2,_0x6400('0xb7'));}_0x1081f2[_0x6400('0x43')]=moment();if(this[_0x6400('0x7e')](_0x1081f2[_0x6400('0xb8')])){_0x1081f2['scheduledAt']=moment()[_0x6400('0xb9')](_0x1081f2['delay'],_0x6400('0xba'));}if(!this['isConfigured'](_0x1081f2['callback_priority'])){_0x1081f2[_0x6400('0x47')]=0x2;}this[_0x6400('0x3c')][_0x6400('0x69')](this,_0x1081f2);return this[_0x6400('0xb')][_0x6400('0xa2')](util['format'](_0x6400('0xbb'),_0x1081f2[_0x6400('0x41')],_0x1081f2[_0x6400('0x42')],_0x1081f2['scheduledAt']));};AGIVertices[_0x6400('0xe')][_0x6400('0xbc')]=function(_0x9d578e){logger[_0x6400('0x2a')](util[_0x6400('0x25')](_0x6400('0xbd'),_0x9d578e[_0x6400('0xa7')]));var _0x48198c=this['channel'][_0x6400('0x53')](_0x9d578e[_0x6400('0xbe')],_0x9d578e[_0x6400('0x72')]);if(_0x48198c[_0x6400('0x9c')]===-0x1){return _0x48198c;}return this['channel']['noop'](util['format'](_0x6400('0xbf'),_0x9d578e[_0x6400('0xbe')],_0x9d578e['options']));};AGIVertices[_0x6400('0xe')]['lumenvoxtts']=function(_0x52f5c7){logger['info'](util['format'](_0x6400('0xc0'),_0x52f5c7[_0x6400('0xa7')]));if(!this[_0x6400('0x7e')](_0x52f5c7[_0x6400('0x56')])){return this[_0x6400('0xb')]['noop'](_0x6400('0xa3'));}var _0x2d67e7='\x22'+_0x52f5c7[_0x6400('0x56')]+'\x22';if(this['isConfigured'](_0x52f5c7[_0x6400('0x72')])){_0x2d67e7+=','+_0x52f5c7[_0x6400('0x72')];}var _0x44586b=this['channel'][_0x6400('0x53')]('MRCPSynth',_0x2d67e7);if(_0x44586b[_0x6400('0x9c')]===-0x1){return _0x44586b;}return this[_0x6400('0xb')][_0x6400('0xa2')](util[_0x6400('0x25')](_0x6400('0xa4'),_0x2d67e7));};AGIVertices[_0x6400('0xe')][_0x6400('0xc1')]=function(_0x17456f){logger[_0x6400('0x2a')](util[_0x6400('0x25')](_0x6400('0xc2'),_0x17456f[_0x6400('0xa7')]));if(!this[_0x6400('0x7e')](_0x17456f[_0x6400('0x56')])){return this[_0x6400('0xb')]['noop'](_0x6400('0xa3'));}var _0x58bf22='\x22'+_0x17456f[_0x6400('0x56')]+'\x22';if(this[_0x6400('0x7e')](_0x17456f[_0x6400('0x72')])){_0x58bf22+=','+_0x17456f[_0x6400('0x72')];}var _0x5797b1=this[_0x6400('0xb')]['exec'](_0x6400('0xc3'),_0x58bf22);if(_0x5797b1[_0x6400('0x9c')]===-0x1){return _0x5797b1;}return this[_0x6400('0xb')][_0x6400('0xa2')](util[_0x6400('0x25')](_0x6400('0xa4'),_0x58bf22));};AGIVertices[_0x6400('0xe')][_0x6400('0xc4')]=function(_0x2ae5c4){logger[_0x6400('0x2a')](util['format'](_0x6400('0xc5'),_0x2ae5c4[_0x6400('0xa7')]));if(!this[_0x6400('0x7e')](_0x2ae5c4[_0x6400('0xa9')])){return this[_0x6400('0xb')]['noop'](_0x6400('0xa8'));}var _0x33d48d=_0x2ae5c4[_0x6400('0xa9')];if(this[_0x6400('0x7e')](_0x2ae5c4[_0x6400('0x72')])){_0x33d48d+=','+_0x2ae5c4[_0x6400('0x72')];}var _0xdec2fd=this[_0x6400('0xb')][_0x6400('0x53')](_0x6400('0xaa'),_0x33d48d);if(_0xdec2fd[_0x6400('0x9c')]===-0x1){return _0xdec2fd;}var _0x5a7ff4=this[_0x6400('0x9b')]('RECOG_CONFIDENCE()','LUMENVOX_ASR_CONFIDENCE');if(_0x5a7ff4['result']===-0x1){return _0x5a7ff4;}var _0x26a039=this[_0x6400('0x9b')]('RECOG_INPUT()',_0x6400('0xc6'));if(_0x26a039['result']===-0x1){return _0x26a039;}var _0x2caf86=this[_0x6400('0x9b')]('RECOG_INSTANCE()',_0x6400('0xc7'));if(_0x2caf86[_0x6400('0x9c')]===-0x1){return _0x2caf86;}return this[_0x6400('0xb')][_0x6400('0xa2')](util['format'](_0x6400('0xb1'),_0x33d48d));};AGIVertices['prototype'][_0x6400('0xc8')]=function(_0x591e7f){logger[_0x6400('0x2a')](util[_0x6400('0x25')](_0x6400('0xc9'),_0x591e7f[_0x6400('0xa7')]));if(!this['isConfigured'](_0x591e7f[_0x6400('0xa9')])){return this['channel'][_0x6400('0xa2')](_0x6400('0xa8'));}var _0x1d089c=_0x591e7f[_0x6400('0xa9')];if(this[_0x6400('0x7e')](_0x591e7f['options'])){_0x1d089c+=','+_0x591e7f[_0x6400('0x72')];}var _0xc67c10=this[_0x6400('0xb')][_0x6400('0x53')](_0x6400('0xaa'),_0x1d089c);if(_0xc67c10[_0x6400('0x9c')]===-0x1){return _0xc67c10;}var _0x1935cf=this[_0x6400('0x9b')](_0x6400('0xab'),_0x6400('0xca'));if(_0x1935cf[_0x6400('0x9c')]===-0x1){return _0x1935cf;}var _0x477d94=this[_0x6400('0x9b')](_0x6400('0xad'),_0x6400('0xcb'));if(_0x477d94['result']===-0x1){return _0x477d94;}var _0x550e11=this['getAndSetVariable'](_0x6400('0xaf'),'SESTEK_ASR_INSTANCE');if(_0x550e11[_0x6400('0x9c')]===-0x1){return _0x550e11;}return this[_0x6400('0xb')][_0x6400('0xa2')](util['format'](_0x6400('0xb1'),_0x1d089c));};AGIVertices[_0x6400('0xe')][_0x6400('0xcc')]=function(_0x560130){logger['info'](util['format'](_0x6400('0xcd'),_0x560130[_0x6400('0xa7')]));if(!this[_0x6400('0x7e')](_0x560130[_0x6400('0xce')])){return this[_0x6400('0xb')]['error'](_0x560130,'no\x20database\x20selected');}var _0x4ff8e7=this['getSquareOdbc'][_0x6400('0x69')](this,_0x560130[_0x6400('0xce')]);if(!_0x4ff8e7){return this[_0x6400('0xb')]['error'](_0x560130,_0x6400('0xcf'));}if(!this[_0x6400('0x7e')](_0x560130[_0x6400('0x2c')])){return this[_0x6400('0xb')][_0x6400('0x29')](_0x560130,_0x6400('0xd0'));}var _0x29f206=_0x560130[_0x6400('0x2c')]['replace'](/(\r\n|\n|\r)/gm,'\x20');this[_0x6400('0xb')]['noop'](util[_0x6400('0x25')](_0x6400('0xd1'),_0x29f206));var _0x495604=this[_0x6400('0x27')]['sync'](this,_0x4ff8e7,_0x29f206);this['createSquareDetailsReport']['sync'](this,_0x560130,_0x29f206);if(!this[_0x6400('0x7e')](_0x560130[_0x6400('0xd2')])){return this[_0x6400('0xb')][_0x6400('0xa2')](_0x6400('0xd3'));}var _0x54ecfa=this[_0x6400('0xf')][_0x6400('0x69')](this,_0x560130[_0x6400('0xd2')]);if(!_0x54ecfa){return this['channel']['error'](_0x560130,_0x6400('0xd4'));}var _0x482e63=this;_0x495604['forEach'](function(_0xf24197,_0x238e23){Object[_0x6400('0xd5')](_0xf24197)[_0x6400('0xd6')](function(_0x170b7c){_0x482e63[_0x6400('0xb')]['setVariable'](util[_0x6400('0x25')]('%s[%s][%s]',_0x54ecfa,_0x238e23,_0x170b7c),_0xf24197[_0x170b7c]);});});this[_0x6400('0xb')][_0x6400('0x98')](util[_0x6400('0x25')](_0x6400('0xd7'),_0x54ecfa),_0x495604[_0x6400('0x94')]);return this['channel'][_0x6400('0xa2')](util['format'](_0x6400('0xd8'),_0x54ecfa));};AGIVertices[_0x6400('0xe')][_0x6400('0xd9')]=function(_0x15a2cf){logger['debug'](util[_0x6400('0x25')](_0x6400('0xda'),_0x15a2cf['label']));if(!this[_0x6400('0x7e')](_0x15a2cf[_0x6400('0xdb')])){return this[_0x6400('0xb')][_0x6400('0x29')](_0x15a2cf,_0x6400('0xdc'));}var _0x467a78=this[_0x6400('0x19')]['sync'](this,_0x15a2cf['sip_id']);if(!_0x467a78){return this['channel'][_0x6400('0x29')](_0x15a2cf,_0x6400('0xdd'));}var _0x4869de=this['channel'][_0x6400('0x53')]('DIAL',[util[_0x6400('0x25')](_0x6400('0xde'),_0x467a78),_0x15a2cf['timeout'],_0x15a2cf['opts'],_0x15a2cf[_0x6400('0x5f')]]);if(_0x4869de[_0x6400('0x9c')]===-0x1){return _0x4869de;}return this['channel'][_0x6400('0xa2')](util[_0x6400('0x25')](_0x6400('0xdf'),_0x6400('0xe0')));};AGIVertices['prototype']['dialogflow']=function(_0xcd5867){logger[_0x6400('0x2a')](util[_0x6400('0x25')](_0x6400('0xe1'),_0xcd5867[_0x6400('0xa7')]));if(!this['isConfigured'](_0xcd5867[_0x6400('0x74')])){return this['channel']['noop']('no\x20key\x20configured');}if(!this[_0x6400('0x7e')](_0xcd5867[_0x6400('0x56')])){return this['channel']['noop']('no\x20text\x20configured');}this[_0x6400('0xb')][_0x6400('0xe2')]=!![];this['createSquareDetailsReport'](_0xcd5867);this[_0x6400('0xe3')](_0xcd5867[_0x6400('0x56')],'in','','');this[_0x6400('0xb')][_0x6400('0xa2')](util['format']('Trying\x20Dialogflow:\x20%s',_0xcd5867[_0x6400('0x56')]));var _0x3af52e=this[_0x6400('0x73')][_0x6400('0x69')](this,_0xcd5867);if(_0x3af52e){for(var _0x578b5b in _0x3af52e){if(_0x3af52e[_0x6400('0x8f')](_0x578b5b)){this[_0x6400('0xb')][_0x6400('0x98')](util[_0x6400('0x25')](_0x6400('0xe4'),_0x578b5b['toUpperCase']()),_0x3af52e[_0x578b5b]);}}this['createSquareMessage'](_0x3af52e['speech'],_0x6400('0xe5'),_0x6400('0xe6'),'');return this[_0x6400('0xb')][_0x6400('0xa2')](util[_0x6400('0x25')](_0x6400('0xe7'),_0x3af52e['speech']));}return this[_0x6400('0xb')][_0x6400('0x29')](_0xcd5867,_0x6400('0xe8'));};AGIVertices[_0x6400('0xe')]['dialogflowV2']=function(_0x258839){logger[_0x6400('0x2a')](util[_0x6400('0x25')](_0x6400('0xe9'),_0x258839[_0x6400('0xa7')]));if(!this[_0x6400('0x7e')](_0x258839[_0x6400('0x77')])){return this[_0x6400('0xb')]['noop'](_0x6400('0xea'));}if(!this[_0x6400('0x7e')](_0x258839[_0x6400('0xeb')])){return this['channel']['noop'](_0x6400('0xec'));}if(!this['isConfigured'](_0x258839[_0x6400('0x78')])){return this['channel']['noop']('no\x20private_key\x20configured');}if(!this[_0x6400('0x7e')](_0x258839[_0x6400('0xed')])){return this[_0x6400('0xb')][_0x6400('0xa2')](_0x6400('0xee'));}if(!this[_0x6400('0x7e')](_0x258839[_0x6400('0x56')])){return this[_0x6400('0xb')][_0x6400('0xa2')](_0x6400('0xa3'));}this['channel']['bot']=!![];this['createSquareDetailsReport'](_0x258839);this['createSquareMessage'](_0x258839[_0x6400('0x56')],'in','','');this[_0x6400('0xb')][_0x6400('0xa2')](util[_0x6400('0x25')](_0x6400('0xef'),_0x258839[_0x6400('0x56')]));var _0x224a6d=this[_0x6400('0x76')][_0x6400('0x69')](this,_0x258839);if(_0x224a6d){for(var _0x355189 in _0x224a6d){if(_0x224a6d[_0x6400('0x8f')](_0x355189)){if(_0x355189!=='providerResponse'){this[_0x6400('0xb')]['setVariable'](util[_0x6400('0x25')]('DIALOGFLOW_%s',_0x355189['toUpperCase']()),_0x224a6d[_0x355189]);}}}this[_0x6400('0xe3')](_0x224a6d[_0x6400('0xf0')],_0x6400('0xe5'),_0x6400('0xf1'),_0x224a6d[_0x6400('0xf2')]);return this['channel'][_0x6400('0xa2')](util[_0x6400('0x25')](_0x6400('0xf3'),_0x224a6d[_0x6400('0xf0')]));}return this[_0x6400('0xb')][_0x6400('0x29')](_0x258839,'DialogflowV2\x20is\x20unreachable');};AGIVertices[_0x6400('0xe')][_0x6400('0xf4')]=function(_0x222cd3){logger['info'](util[_0x6400('0x25')]('Enter\x20in\x20SESTEKNDA\x20(%s)\x20block',_0x222cd3[_0x6400('0xa7')]));if(!this[_0x6400('0x7e')](_0x222cd3['ndauth_url'])){return this['channel'][_0x6400('0xa2')](_0x6400('0xf5'));}if(!this[_0x6400('0x7e')](_0x222cd3[_0x6400('0xf6')])){return this['channel'][_0x6400('0xa2')](_0x6400('0xf7'));}if(!this[_0x6400('0x7e')](_0x222cd3['password'])){return this[_0x6400('0xb')][_0x6400('0xa2')](_0x6400('0xf8'));}if(!this[_0x6400('0x7e')](_0x222cd3['ndassistant_url'])){return this[_0x6400('0xb')][_0x6400('0xa2')]('no\x20text\x20configured');}this[_0x6400('0xb')][_0x6400('0xe2')]=!![];this[_0x6400('0x31')](_0x222cd3);this[_0x6400('0xe3')](_0x222cd3[_0x6400('0x56')],'in','','');this['channel']['noop'](util[_0x6400('0x25')]('Trying\x20SestekNDA:\x20%s',_0x222cd3[_0x6400('0x56')]));var _0x499322=this[_0x6400('0x79')]['sync'](this,_0x222cd3);if(_0x499322){for(var _0x204796 in _0x499322){if(_0x499322['hasOwnProperty'](_0x204796)){this['channel'][_0x6400('0x98')](util[_0x6400('0x25')](_0x6400('0xf9'),_0x204796[_0x6400('0x64')]()),_0x499322[_0x204796]);}}this['createSquareMessage'](_0x499322[_0x6400('0xf0')],_0x6400('0xe5'),'sesteknda','');if(_0x499322[_0x6400('0xfa')]){this['channel'][_0x6400('0xa2')](util[_0x6400('0x25')](_0x6400('0xfb'),_0x499322['audiofile']));var _0x339c6c=this[_0x6400('0xb')]['streamFile'](_0x499322['audiofile']);try{fs[_0x6400('0xfc')](_0x499322[_0x6400('0xfa')]+_0x6400('0xfd'));}catch(_0x16ea55){logger[_0x6400('0x29')](_0x16ea55);}return _0x339c6c;}else{return this[_0x6400('0xb')]['noop'](util[_0x6400('0x25')](_0x6400('0xfe'),_0x499322[_0x6400('0xf0')]));}}return this[_0x6400('0xb')][_0x6400('0x29')](_0x222cd3,_0x6400('0xff'));};AGIVertices[_0x6400('0xe')][_0x6400('0x100')]=function(_0x50fd4f){logger[_0x6400('0x2a')](util[_0x6400('0x25')](_0x6400('0x101'),_0x50fd4f[_0x6400('0xa7')]));return this['channel'][_0x6400('0xa2')]('end');};AGIVertices[_0x6400('0xe')]['ext_dial']=function(_0x48f85a){logger[_0x6400('0x2a')](util[_0x6400('0x25')](_0x6400('0x102'),_0x48f85a[_0x6400('0xa7')]));var _0x7678a7='';if(_0x48f85a[_0x6400('0x103')]){if(!this[_0x6400('0x7e')](_0x48f85a[_0x6400('0x103')])){return this[_0x6400('0xb')]['error'](_0x48f85a,_0x6400('0x104'));}else{var _0x1a9545=parseInt(_0x48f85a[_0x6400('0x103')],0xa);if(isNaN(_0x1a9545)){_0x7678a7=_0x48f85a['trunk_id'];}else{_0x7678a7=this[_0x6400('0x1b')][_0x6400('0x69')](this,_0x48f85a[_0x6400('0x103')]);if(!_0x7678a7){return this[_0x6400('0xb')][_0x6400('0x29')](_0x48f85a,_0x6400('0x105'));}}}}else if(_0x48f85a[_0x6400('0x106')]){_0x7678a7=_0x48f85a[_0x6400('0x106')];}else{return this[_0x6400('0xb')][_0x6400('0x29')](_0x48f85a,_0x6400('0x104'));}var _0x3775f3=this['channel'][_0x6400('0x53')](_0x6400('0xe0'),[util['format'](_0x6400('0x107'),_0x7678a7,_0x48f85a[_0x6400('0x41')]),_0x48f85a[_0x6400('0x61')],_0x48f85a['opts'],_0x48f85a[_0x6400('0x5f')]]);if(_0x3775f3[_0x6400('0x9c')]===-0x1){return _0x3775f3;}return this[_0x6400('0xb')]['noop'](util[_0x6400('0x25')](_0x6400('0xdf'),_0x6400('0xe0')));};AGIVertices[_0x6400('0xe')][_0x6400('0x108')]=function(_0x11f89d){logger[_0x6400('0x2a')](util[_0x6400('0x25')](_0x6400('0x109'),_0x11f89d[_0x6400('0xa7')]));return this[_0x6400('0xb')][_0x6400('0xa2')](_0x6400('0x108'));};AGIVertices['prototype'][_0x6400('0x9')]=function(_0x5bc97f){logger[_0x6400('0x2a')](util['format'](_0x6400('0x10a'),_0x5bc97f[_0x6400('0xa7')]));if(_0x5bc97f[_0x6400('0x9f')]===0x0){return this[_0x6400('0x9e')](_0x5bc97f);}_0x5bc97f['retry']-=0x1;if(!this[_0x6400('0x7e')](_0x5bc97f[_0x6400('0x10b')])){return this[_0x6400('0xb')]['error'](_0x5bc97f,_0x6400('0x10c'));}var _0x3f305c=this[_0x6400('0x1c')][_0x6400('0x69')](this,_0x5bc97f[_0x6400('0x10b')]);if(!_0x3f305c){return this[_0x6400('0xb')][_0x6400('0x29')](_0x5bc97f,_0x6400('0x10d'));}if(!this['isConfigured'](_0x5bc97f['variable_id'])){return this[_0x6400('0xb')][_0x6400('0x29')](_0x6400('0xd3'));}var _0x362a0d=this[_0x6400('0xb')]['getData'](_0x3f305c,_0x5bc97f[_0x6400('0x10e')],_0x5bc97f[_0x6400('0x10f')]);var _0x1ac3c9=_0x362a0d[_0x6400('0x9c')]?_0x362a0d['result']['toString']():'';logger[_0x6400('0x2a')](_0x6400('0x110'),JSON[_0x6400('0x6d')](_0x362a0d));if(_0x362a0d['result']===-0x1){this['createSquareDetailsReport'][_0x6400('0x69')](this,_0x5bc97f,_0x1ac3c9);return _0x362a0d;}else if(_0x362a0d['extra']==='timeout'){_0x362a0d[_0x6400('0x9c')]=_0x1ac3c9[_0x6400('0x94')]>=parseInt(_0x5bc97f[_0x6400('0x111')])?'x':'i';}else{_0x362a0d['result']=_0x1ac3c9[_0x6400('0x94')]>=parseInt(_0x5bc97f[_0x6400('0x111')])&&_0x1ac3c9[_0x6400('0x94')]<=parseInt(_0x5bc97f['maxdigit'])?'x':'i';}var _0x4cca8d=this[_0x6400('0xf')][_0x6400('0x69')](this,_0x5bc97f[_0x6400('0xd2')]);if(!_0x4cca8d){return this[_0x6400('0xb')][_0x6400('0x29')](_0x5bc97f,_0x6400('0xd4'));}this[_0x6400('0xb')]['setVariable'](_0x4cca8d,_0x1ac3c9);if(this[_0x6400('0x7e')](_0x5bc97f[_0x6400('0x112')])){var _0x102e39=parseInt(_0x5bc97f[_0x6400('0x112')],0xa);var _0x5cfd07=rs[_0x6400('0x113')]({'charset':'*','length':_0x102e39});var _0x5a6e71=_0x1ac3c9['length'];if(_0x5a6e71>0x0){if(_0x5a6e71>_0x102e39){this[_0x6400('0x31')]['sync'](this,_0x5bc97f,_0x5bc97f['hiddendigitspos']===_0x6400('0x114')?_0x5cfd07+_0x1ac3c9[_0x6400('0x115')](_0x102e39):_0x1ac3c9[_0x6400('0x115')](0x0,_0x5a6e71-_0x102e39)+_0x5cfd07);}else{this[_0x6400('0x31')]['sync'](this,_0x5bc97f,rs[_0x6400('0x113')]({'charset':'*','length':_0x5a6e71}));}}else{this[_0x6400('0x31')]['sync'](this,_0x5bc97f,'');}}else{this[_0x6400('0x31')]['sync'](this,_0x5bc97f,_0x1ac3c9);}return _0x362a0d;};AGIVertices['prototype'][_0x6400('0xa')]=function(_0x115970){logger[_0x6400('0x2a')](util['format'](_0x6400('0x116'),_0x115970['label']));return this['getdigits'](_0x115970);};AGIVertices[_0x6400('0xe')]['goal']=function(_0x3444aa){logger['info'](util[_0x6400('0x25')]('Enter\x20in\x20GOAL\x20(%s)\x20block',_0x3444aa[_0x6400('0xa7')]));this['createSquareDetailsReport'][_0x6400('0x69')](this,_0x3444aa,_0x3444aa[_0x6400('0x117')]);return this[_0x6400('0xb')][_0x6400('0xa2')](util[_0x6400('0x25')](_0x6400('0x118'),_0x3444aa[_0x6400('0x117')]));};AGIVertices['prototype'][_0x6400('0x119')]=function(_0x3e4b89){logger['info'](util[_0x6400('0x25')](_0x6400('0x11a'),_0x3e4b89['label']));if(!this[_0x6400('0x7e')](_0x3e4b89[_0x6400('0x81')])||!this[_0x6400('0x7e')](_0x3e4b89['aws_secret_access_key'])){return this['channel'][_0x6400('0xa2')](_0x6400('0x11b'));}if(!this[_0x6400('0x7e')](_0x3e4b89[_0x6400('0x56')])){return this[_0x6400('0xb')][_0x6400('0xa2')](_0x6400('0xa3'));}this[_0x6400('0xb')][_0x6400('0xa2')](util[_0x6400('0x25')](_0x6400('0x11c'),_0x3e4b89[_0x6400('0x56')]));var _0x41f116=this['awsPolly'][_0x6400('0x69')](this,_0x3e4b89);if(_0x41f116){this[_0x6400('0xb')][_0x6400('0xa2')](util['format'](_0x6400('0x11d'),_0x41f116));var _0x4f756d=this[_0x6400('0xb')][_0x6400('0x11e')](_0x41f116);try{fs['unlink'](_0x41f116+_0x6400('0xfd'));}catch(_0x469c93){logger[_0x6400('0x29')](_0x469c93);}return _0x4f756d;}return this[_0x6400('0xb')]['error'](_0x3e4b89,'aws\x20Polly\x20is\x20unreachable');};AGIVertices[_0x6400('0xe')]['awslex']=function(_0x4852a0){logger['info'](util[_0x6400('0x25')](_0x6400('0x11f'),_0x4852a0[_0x6400('0xa7')]));if(!this[_0x6400('0x7e')](_0x4852a0[_0x6400('0x81')])||!this['isConfigured'](_0x4852a0[_0x6400('0x82')])){return this['channel'][_0x6400('0xa2')](_0x6400('0x11b'));}if(!this[_0x6400('0x7e')](_0x4852a0['aws_bot_name'])){return this[_0x6400('0xb')][_0x6400('0xa2')](_0x6400('0x120'));}if(!this[_0x6400('0x7e')](_0x4852a0[_0x6400('0x56')])){return this['channel']['noop'](_0x6400('0xa3'));}this[_0x6400('0xb')][_0x6400('0xe2')]=!![];this[_0x6400('0x31')](_0x4852a0);this[_0x6400('0xe3')](_0x4852a0[_0x6400('0x56')],'in','','');this[_0x6400('0xb')]['noop'](util[_0x6400('0x25')](_0x6400('0x121'),_0x4852a0[_0x6400('0x56')]));var _0x3fd261=this[_0x6400('0x122')][_0x6400('0x69')](this,_0x4852a0);if(_0x3fd261){for(var _0x407fde in _0x3fd261){if(_0x3fd261[_0x6400('0x8f')](_0x407fde)&&_['isString'](_0x3fd261[_0x407fde])){this[_0x6400('0xb')]['setVariable'](util[_0x6400('0x25')](_0x6400('0x123'),_0x407fde[_0x6400('0x64')]()),_0x3fd261[_0x407fde]);}}if(_[_0x6400('0x3e')](_0x3fd261[_0x6400('0x124')])){return this[_0x6400('0xb')][_0x6400('0xa2')](_0x6400('0x125'));}else{this[_0x6400('0xe3')](_0x3fd261[_0x6400('0x124')],_0x6400('0xe5'),'amazonlex','');return this[_0x6400('0xb')][_0x6400('0xa2')](util[_0x6400('0x25')](_0x6400('0x126'),_0x3fd261[_0x6400('0x124')]));}}return this[_0x6400('0xb')][_0x6400('0x29')](_0x4852a0,_0x6400('0x127'));};AGIVertices[_0x6400('0xe')][_0x6400('0x128')]=function(_0x5175f4){logger['info'](util['format'](_0x6400('0x129'),_0x5175f4[_0x6400('0xa7')],_0x5175f4[_0x6400('0x61')]));if(!this[_0x6400('0x7e')](_0x5175f4['key'])){return this['channel'][_0x6400('0xa2')](_0x6400('0x12a'));}var _0x5ae412=_0x6400('0x12b');var _0x2aa815=util['format']('%s/recordings/%s',FILES_PATH,rs['generate'](0x4));var _0x576108=util[_0x6400('0x25')]('%s.%s',_0x2aa815,_0x5ae412);var _0x2dddbf=!![];if(_0x5175f4['beep']===_0x6400('0x12c')){_0x2dddbf=![];}var _0x182117=this[_0x6400('0xb')]['recordFile'](_0x2aa815,_0x5ae412,_0x5175f4[_0x6400('0x12d')],_0x5175f4[_0x6400('0x61')],undefined,_0x2dddbf);if(_0x182117[_0x6400('0x9c')]!==-0x1){this[_0x6400('0xb')]['noop'](util['format'](_0x6400('0x12e'),_0x576108));var _0x541fb2=this['googleASR'][_0x6400('0x69')](this,_0x5175f4,_0x576108);if(_0x541fb2){for(var _0x5be853 in _0x541fb2){if(_0x541fb2[_0x6400('0x8f')](_0x5be853)){this['channel'][_0x6400('0x98')](util[_0x6400('0x25')](_0x6400('0x12f'),_0x5be853[_0x6400('0x64')]()),_0x541fb2[_0x5be853]);}}return this[_0x6400('0xb')]['noop'](util[_0x6400('0x25')]('GoogleASR\x20Result\x20%s',JSON['stringify'](_0x541fb2)));}}return _0x182117;};AGIVertices[_0x6400('0xe')][_0x6400('0x130')]=function(_0x220e8f){logger[_0x6400('0x2a')](util[_0x6400('0x25')](_0x6400('0x131'),_0x220e8f[_0x6400('0xa7')]));if(!this['isConfigured'](_0x220e8f[_0x6400('0x8b')])){return this[_0x6400('0xb')][_0x6400('0xa2')]('no\x20appid\x20configured');}if(!this['isConfigured'](_0x220e8f['appsecret'])){return this[_0x6400('0xb')]['noop']('no\x20appsecret\x20configured');}var _0x571c69=_0x6400('0x12b');var _0x27912b=util[_0x6400('0x25')](_0x6400('0x132'),FILES_PATH,rs['generate'](0x4));var _0xc1dd0c=util['format']('%s.%s',_0x27912b,_0x571c69);var _0x394a19=!![];if(_0x220e8f[_0x6400('0x133')]==='NOBEEP'){_0x394a19=![];}var _0x1f66ef=this[_0x6400('0xb')][_0x6400('0x134')](_0x27912b,_0x571c69,_0x220e8f[_0x6400('0x12d')],_0x220e8f[_0x6400('0x61')],undefined,_0x394a19);if(_0x1f66ef[_0x6400('0x9c')]!==-0x1){this[_0x6400('0xb')][_0x6400('0xa2')](util[_0x6400('0x25')](_0x6400('0x135'),_0xc1dd0c));var _0x201481=this[_0x6400('0x8a')]['sync'](this,_0x220e8f,_0xc1dd0c);if(_0x201481){for(var _0x43b131 in _0x201481){if(_0x201481[_0x6400('0x8f')](_0x43b131)){this['channel'][_0x6400('0x98')](util[_0x6400('0x25')](_0x6400('0x136'),_0x43b131['toUpperCase']()),_0x201481[_0x43b131]);}}return this['channel'][_0x6400('0xa2')](util[_0x6400('0x25')]('TildeASR\x20Result\x20%s',JSON[_0x6400('0x6d')](_0x201481)));}}return _0x1f66ef;};AGIVertices[_0x6400('0xe')][_0x6400('0x137')]=function(_0x2185f1){logger[_0x6400('0x2a')](util[_0x6400('0x25')](_0x6400('0x138'),_0x2185f1['label']));return this[_0x6400('0xb')]['continueAt'](_0x2185f1[_0x6400('0x38')],_0x2185f1['extension'],_0x2185f1[_0x6400('0x39')]);};AGIVertices[_0x6400('0xe')]['gotoif']=function(_0x3a94e1){logger[_0x6400('0x2a')](util[_0x6400('0x25')](_0x6400('0x139'),_0x3a94e1[_0x6400('0xa7')]));if(!this[_0x6400('0x7e')](_0x3a94e1[_0x6400('0x13a')])){return this['channel']['error'](_0x3a94e1,'no\x20condition\x20configured');}try{var _0x131188=eval(_0x3a94e1['condition'])?_0x6400('0x13b'):_0x6400('0x13c');this[_0x6400('0xb')][_0x6400('0xa2')](util[_0x6400('0x25')](_0x6400('0x13d'),_0x3a94e1['condition'],_0x131188));return{'code':0xc8,'result':_0x131188};}catch(_0x3267c2){return{'code':0xc8,'result':_0x6400('0x13c')};}};AGIVertices['prototype'][_0x6400('0x13e')]=function(_0x50ef4e){logger[_0x6400('0x2a')](util['format'](_0x6400('0x13f'),_0x50ef4e[_0x6400('0xa7')]));if(!this['isConfigured'](_0x50ef4e[_0x6400('0x140')])){return this[_0x6400('0xb')][_0x6400('0x29')](_0x50ef4e,'no\x20interval\x20configured');}var _0x54fc9a=this[_0x6400('0x141')]['sync'](this,_0x50ef4e[_0x6400('0x140')]);if(!_0x54fc9a){return this[_0x6400('0xb')][_0x6400('0x29')](_0x50ef4e,_0x6400('0x142'));}for(var _0x4c69e2=0x0;_0x4c69e2<_0x54fc9a[_0x6400('0x94')];_0x4c69e2+=0x1){var _0x3506a5=this[_0x6400('0xb')]['getVariable'](util['format'](_0x6400('0x143'),_0x54fc9a[_0x4c69e2]));if(_0x3506a5[_0x6400('0x9c')]===-0x1){return _0x3506a5;}logger[_0x6400('0x2a')](util['format']('IFTIME\x20%s\x20%s',_0x54fc9a[_0x4c69e2],_0x3506a5['extra']));if(_0x3506a5['extra']===_0x6400('0x13b')){logger[_0x6400('0x2a')](util[_0x6400('0x25')]('IFTIME\x20%s\x20%s',_0x54fc9a[_0x4c69e2],_0x6400('0x13b')));this[_0x6400('0xb')][_0x6400('0xa2')](util[_0x6400('0x25')]('IFTIME\x20%s\x20%s',_0x54fc9a[_0x4c69e2],_0x6400('0x13b')));return{'code':0xc8,'result':_0x6400('0x13b')};}else{logger[_0x6400('0x2a')](util[_0x6400('0x25')]('IFTIME\x20%s\x20%s',_0x54fc9a[_0x4c69e2],_0x6400('0x13c')));this['channel'][_0x6400('0xa2')](util[_0x6400('0x25')]('IFTIME\x20%s\x20%s',_0x54fc9a[_0x4c69e2],'false'));}}return{'code':0xc8,'result':_0x6400('0x13c')};};AGIVertices[_0x6400('0xe')][_0x6400('0x144')]=function(_0x1082cf){logger[_0x6400('0x2a')](util[_0x6400('0x25')](_0x6400('0x145'),_0x1082cf[_0x6400('0xa7')]));return this[_0x6400('0xb')]['hangup']();};AGIVertices[_0x6400('0xe')]['ispeechasr']=function(_0x4bf622){logger[_0x6400('0x2a')](util['format'](_0x6400('0x146'),_0x4bf622['label']));if(!this[_0x6400('0x7e')](_0x4bf622[_0x6400('0x74')])){return this[_0x6400('0xb')][_0x6400('0xa2')](_0x6400('0x12a'));}var _0x97f2d6='wav';var _0x3fd71a=util[_0x6400('0x25')](_0x6400('0x132'),FILES_PATH,rs[_0x6400('0x113')](0x4));var _0x1fe108=util[_0x6400('0x25')](_0x6400('0x97'),_0x3fd71a,_0x97f2d6);var _0x5971b8=!![];if(_0x4bf622[_0x6400('0x133')]===_0x6400('0x12c')){_0x5971b8=![];}var _0x52c1c3=this['channel'][_0x6400('0x134')](_0x3fd71a,_0x97f2d6,_0x4bf622[_0x6400('0x12d')],_0x4bf622['timeout'],undefined,_0x5971b8);if(_0x52c1c3[_0x6400('0x9c')]!==-0x1){this[_0x6400('0xb')]['noop'](util[_0x6400('0x25')](_0x6400('0x147'),_0x1fe108));var _0x30476d=this[_0x6400('0x7c')][_0x6400('0x69')](this,_0x4bf622,_0x1fe108);if(_0x30476d){for(var _0x4e100d in _0x30476d){if(_0x30476d['hasOwnProperty'](_0x4e100d)){this[_0x6400('0xb')][_0x6400('0x98')](util[_0x6400('0x25')](_0x6400('0x148'),_0x4e100d[_0x6400('0x64')]()),_0x30476d[_0x4e100d]);}}return this[_0x6400('0xb')][_0x6400('0xa2')](util[_0x6400('0x25')](_0x6400('0x149'),JSON[_0x6400('0x6d')](_0x30476d)));}}return _0x52c1c3;};AGIVertices[_0x6400('0xe')][_0x6400('0x14a')]=function(_0x427b48){logger[_0x6400('0x2a')](util[_0x6400('0x25')]('Enter\x20in\x20ISPEECHTTS\x20(%s)\x20block',_0x427b48['label']));if(!this[_0x6400('0x7e')](_0x427b48[_0x6400('0x74')])){return this[_0x6400('0xb')]['noop'](_0x6400('0x12a'));}if(!this[_0x6400('0x7e')](_0x427b48['text'])){return this[_0x6400('0xb')][_0x6400('0xa2')]('no\x20text\x20configured');}this[_0x6400('0xb')][_0x6400('0xa2')](util[_0x6400('0x25')]('Trying\x20ispeech\x20TTS\x20%s',_0x427b48[_0x6400('0x56')]));var _0x4f5900=this[_0x6400('0x7a')][_0x6400('0x69')](this,_0x427b48);if(_0x4f5900){this[_0x6400('0xb')][_0x6400('0xa2')](util[_0x6400('0x25')](_0x6400('0x147'),_0x4f5900));var _0x5b9192=this[_0x6400('0xb')][_0x6400('0x11e')](_0x4f5900,_0x427b48[_0x6400('0x12d')]);try{fs[_0x6400('0xfc')](_0x4f5900+_0x6400('0xfd'));}catch(_0x1371cf){logger[_0x6400('0x29')](_0x1371cf);}return _0x5b9192;}return this[_0x6400('0xb')][_0x6400('0x29')](_0x427b48,'ispeech\x20TTS\x20is\x20unreachable');};AGIVertices[_0x6400('0xe')][_0x6400('0x14b')]=function(_0x2ce58a){logger[_0x6400('0x2a')](util[_0x6400('0x25')]('Enter\x20in\x20LOGIN\x20(%s)\x20block',_0x2ce58a[_0x6400('0xa7')]));if(!this[_0x6400('0x7e')](_0x2ce58a[_0x6400('0x14c')])){return this[_0x6400('0xb')][_0x6400('0x29')](_0x2ce58a,_0x6400('0x14d'));}logger[_0x6400('0x2a')](util['format'](_0x6400('0x14e'),this[_0x6400('0xb')][_0x6400('0x36')],_0x2ce58a['findBy']));var _0x1513d1=this['agentLogin'][_0x6400('0x69')](this,_0x2ce58a[_0x6400('0x14c')]);if(_0x1513d1){logger[_0x6400('0x2a')](util[_0x6400('0x25')](_0x6400('0x14f'),this[_0x6400('0xb')][_0x6400('0x36')],_0x2ce58a[_0x6400('0x14c')]));this['channel'][_0x6400('0xa2')](util[_0x6400('0x25')](_0x6400('0x14f'),this[_0x6400('0xb')][_0x6400('0x36')],_0x2ce58a[_0x6400('0x14c')]));return{'code':0xc8,'result':_0x6400('0x150')};}else{logger[_0x6400('0x2a')](util[_0x6400('0x25')](_0x6400('0x151'),this[_0x6400('0xb')][_0x6400('0x36')],_0x2ce58a[_0x6400('0x14c')]));this[_0x6400('0xb')][_0x6400('0xa2')](util[_0x6400('0x25')]('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this['channel'][_0x6400('0x36')],_0x2ce58a[_0x6400('0x14c')]));return{'code':0xc8,'result':_0x6400('0x152')};}};AGIVertices[_0x6400('0xe')][_0x6400('0x153')]=function(_0x2fe5e6){logger[_0x6400('0x2a')](util[_0x6400('0x25')](_0x6400('0x154'),_0x2fe5e6[_0x6400('0xa7')]));if(!this[_0x6400('0x7e')](_0x2fe5e6[_0x6400('0x14c')])){return this[_0x6400('0xb')][_0x6400('0x29')](_0x2fe5e6,'no\x20find\x20by\x20configured');}logger[_0x6400('0x2a')](util['format'](_0x6400('0x14e'),this[_0x6400('0xb')][_0x6400('0x36')],_0x2fe5e6['findBy']));var _0x424a42=this[_0x6400('0x4d')][_0x6400('0x69')](this,_0x2fe5e6[_0x6400('0x14c')]);if(_0x424a42){logger[_0x6400('0x2a')](util[_0x6400('0x25')]('AGENT\x20%s\x20FOUND\x20BY',this[_0x6400('0xb')][_0x6400('0x36')],_0x2fe5e6[_0x6400('0x14c')]));this[_0x6400('0xb')][_0x6400('0xa2')](util[_0x6400('0x25')](_0x6400('0x14f'),this[_0x6400('0xb')][_0x6400('0x36')],_0x2fe5e6[_0x6400('0x14c')]));return{'code':0xc8,'result':_0x6400('0x150')};}else{logger[_0x6400('0x2a')](util[_0x6400('0x25')](_0x6400('0x151'),this[_0x6400('0xb')][_0x6400('0x36')],_0x2fe5e6[_0x6400('0x14c')]));this['channel'][_0x6400('0xa2')](util['format'](_0x6400('0x151'),this['channel'][_0x6400('0x36')],_0x2fe5e6[_0x6400('0x14c')]));return{'code':0xc8,'result':_0x6400('0x152')};}};AGIVertices[_0x6400('0xe')][_0x6400('0x155')]=function(_0x2057b8){logger[_0x6400('0x2a')](util['format'](_0x6400('0x156'),_0x2057b8[_0x6400('0xa7')]));if(!this[_0x6400('0x7e')](_0x2057b8[_0x6400('0x157')])){return this['channel']['error'](_0x2057b8,_0x6400('0x158'));}this['channel'][_0x6400('0xa2')](util['format'](_0x6400('0x159'),_0x2057b8[_0x6400('0x157')]));var _0x48cd69=eval(_0x2057b8[_0x6400('0x157')]);if(!this[_0x6400('0x7e')](_0x2057b8[_0x6400('0xd2')])){return this[_0x6400('0xb')]['noop'](_0x6400('0xd3'));}var _0x40b02d=this[_0x6400('0xf')]['sync'](this,_0x2057b8['variable_id']);if(!_0x40b02d){return this[_0x6400('0xb')][_0x6400('0x29')](_0x2057b8,_0x6400('0xd4'));}if(_[_0x6400('0x93')](_0x48cd69)){var _0x49b7fa=this;_0x48cd69['forEach'](function(_0x51b740,_0x3a8603){_0x49b7fa[_0x6400('0xb')]['setVariable'](util[_0x6400('0x25')](_0x6400('0x15a'),_0x40b02d,_0x3a8603),_0x51b740);});return this[_0x6400('0xb')][_0x6400('0xa2')](util[_0x6400('0x25')](_0x6400('0x15b'),_0x40b02d));}else{return this[_0x6400('0xb')][_0x6400('0x98')](_0x40b02d,_0x48cd69);}};AGIVertices[_0x6400('0xe')][_0x6400('0x8')]=function(_0x18acdb){logger['info'](util[_0x6400('0x25')]('Enter\x20in\x20MENU\x20(%s)\x20block',_0x18acdb[_0x6400('0xa7')]));if(_0x18acdb[_0x6400('0x9f')]===0x0){return this[_0x6400('0x9e')](_0x18acdb);}_0x18acdb[_0x6400('0x9f')]-=0x1;if(!this[_0x6400('0x7e')](_0x18acdb[_0x6400('0x10b')])){return this[_0x6400('0xb')][_0x6400('0x29')](_0x18acdb,_0x6400('0x10c'));}var _0x20723f=this[_0x6400('0x1c')][_0x6400('0x69')](this,_0x18acdb[_0x6400('0x10b')]);if(!_0x20723f){return this[_0x6400('0xb')][_0x6400('0x29')](_0x18acdb,_0x6400('0x10d'));}var _0x27b774=this[_0x6400('0xb')]['getData'](_0x20723f,_0x18acdb[_0x6400('0x10e')],_0x18acdb[_0x6400('0x15c')]);var _0x1cc4dc=_0x27b774[_0x6400('0x9c')];if(_0x27b774[_0x6400('0x9c')]===-0x1){this[_0x6400('0x31')][_0x6400('0x69')](this,_0x18acdb,'-1');return _0x27b774;}else if(_0x27b774['extra']===_0x6400('0x61')){_0x27b774['result']=_0x27b774[_0x6400('0x9c')][_0x6400('0x94')]>0x0?_0x27b774[_0x6400('0x9c')]:'t';}else if(_[_0x6400('0x3d')](_0x27b774[_0x6400('0x9c')])){_0x27b774[_0x6400('0x9c')]='#';_0x1cc4dc='#';}if(!this[_0x6400('0x7e')](_0x18acdb[_0x6400('0xd2')])){this['channel'][_0x6400('0xa2')](_0x6400('0xd3'));}else{var _0x4f1015=this[_0x6400('0xf')][_0x6400('0x69')](this,_0x18acdb[_0x6400('0xd2')]);if(!_0x4f1015){return this['channel'][_0x6400('0x29')](_0x18acdb,_0x6400('0xd4'));}this['channel'][_0x6400('0x98')](_0x4f1015,_0x1cc4dc);}this[_0x6400('0x31')]['sync'](this,_0x18acdb,_0x1cc4dc);return _0x27b774;};AGIVertices[_0x6400('0xe')][_0x6400('0xa2')]=function(_0xd30bc3){logger[_0x6400('0x2a')](util[_0x6400('0x25')](_0x6400('0x15d'),_0xd30bc3[_0x6400('0xa7')]));return this[_0x6400('0xb')][_0x6400('0xa2')](_0xd30bc3['output']||_0xd30bc3[_0x6400('0xa7')]);};AGIVertices[_0x6400('0xe')]['pause']=function(_0x514e40){logger['info'](util[_0x6400('0x25')](_0x6400('0x15e'),_0x514e40[_0x6400('0xa7')]));if(!this[_0x6400('0x7e')](_0x514e40[_0x6400('0x14c')])){return this[_0x6400('0xb')][_0x6400('0x29')](_0x514e40,_0x6400('0x14d'));}logger[_0x6400('0x2a')](util[_0x6400('0x25')](_0x6400('0x14e'),this[_0x6400('0xb')][_0x6400('0x36')],_0x514e40[_0x6400('0x14c')]));var _0x4a7a8d=this['getPause'][_0x6400('0x69')](this,_0x514e40['pause_id']);var _0xc20ebe=this['agentPause'][_0x6400('0x69')](this,_0x514e40[_0x6400('0x14c')],_0x4a7a8d);if(_0xc20ebe){logger[_0x6400('0x2a')](util[_0x6400('0x25')](_0x6400('0x14f'),this['channel'][_0x6400('0x36')],_0x514e40[_0x6400('0x14c')]));this[_0x6400('0xb')]['noop'](util[_0x6400('0x25')](_0x6400('0x14f'),this[_0x6400('0xb')][_0x6400('0x36')],_0x514e40[_0x6400('0x14c')]));return{'code':0xc8,'result':_0x6400('0x150')};}else{logger[_0x6400('0x2a')](util[_0x6400('0x25')]('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this[_0x6400('0xb')][_0x6400('0x36')],_0x514e40[_0x6400('0x14c')]));this[_0x6400('0xb')]['noop'](util[_0x6400('0x25')](_0x6400('0x14f'),this[_0x6400('0xb')][_0x6400('0x36')],_0x514e40[_0x6400('0x14c')]));return{'code':0xc8,'result':_0x6400('0x152')};}};AGIVertices[_0x6400('0xe')][_0x6400('0x15f')]=function(_0x252833){logger[_0x6400('0x2a')](util[_0x6400('0x25')](_0x6400('0x160'),_0x252833[_0x6400('0xa7')]));if(!this['isConfigured'](_0x252833[_0x6400('0x10b')])){return this[_0x6400('0xb')][_0x6400('0x29')](_0x252833,_0x6400('0x10c'));}var _0x19270a=this['getSound'][_0x6400('0x69')](this,_0x252833[_0x6400('0x10b')]);if(!_0x19270a){return this[_0x6400('0xb')]['error'](_0x252833,'no\x20file\x20audio\x20found');}var _0x5d6c13=this['channel']['exec'](_0x6400('0x161'),[_0x19270a,_0x252833[_0x6400('0x162')]]);if(_0x5d6c13[_0x6400('0x9c')]===-0x1){return _0x5d6c13;}return this[_0x6400('0xb')]['noop'](util[_0x6400('0x25')](_0x6400('0xbf'),_0x6400('0x161'),_0x19270a));};AGIVertices[_0x6400('0xe')][_0x6400('0x163')]=function(_0x1f9268){logger[_0x6400('0x2a')](util[_0x6400('0x25')](_0x6400('0x164'),_0x1f9268[_0x6400('0xa7')]));if(!this[_0x6400('0x7e')](_0x1f9268[_0x6400('0x165')])){return this[_0x6400('0xb')]['error'](_0x1f9268,'no\x20queue\x20selected');}var _0x5d738f='';var _0x2b6bdb=parseInt(_0x1f9268['queue_id'],0xa);if(isNaN(_0x2b6bdb)){_0x5d738f=_0x1f9268[_0x6400('0x165')];}else{_0x5d738f=this['getVoiceQueue'][_0x6400('0x69')](this,_0x1f9268[_0x6400('0x165')]);if(!_0x5d738f){return this[_0x6400('0xb')][_0x6400('0x29')](_0x1f9268,_0x6400('0x166'));}}var _0x1cba3f='';if(this[_0x6400('0x7e')](_0x1f9268['file_id'])){var _0x241d51=this[_0x6400('0x1c')][_0x6400('0x69')](this,_0x1f9268[_0x6400('0x10b')]);if(_0x241d51){_0x1cba3f=_0x241d51;}}this[_0x6400('0x31')][_0x6400('0x69')](this,_0x1f9268,_0x5d738f);if(_0x1f9268['opts'][_0x6400('0x167')]('x')<0x0){_0x1f9268[_0x6400('0x162')]+='x';}if(_0x1f9268['opts']['indexOf']('X')<0x0){_0x1f9268[_0x6400('0x162')]+='X';}this[_0x6400('0xb')][_0x6400('0x98')]('XMCS-QUEUE',_0x5d738f?_0x5d738f['toLowerCase']():'');var _0x58b796=this['channel'][_0x6400('0x53')](_0x6400('0x168'),[_0x5d738f,_0x1f9268[_0x6400('0x162')],_0x1f9268[_0x6400('0x5f')],_0x1cba3f,_0x1f9268[_0x6400('0x61')],_0x1f9268[_0x6400('0x5')],_0x1f9268[_0x6400('0x169')],_0x1f9268[_0x6400('0x16a')],'',_0x1f9268[_0x6400('0x16b')]]);if(_0x58b796['result']===-0x1){return _0x58b796;}return this[_0x6400('0xb')]['noop'](util[_0x6400('0x25')](_0x6400('0xbf'),_0x6400('0x168'),_0x5d738f));};AGIVertices['prototype'][_0x6400('0x16c')]=function(_0x2f4d79){logger[_0x6400('0x2a')](util[_0x6400('0x25')](_0x6400('0x16d'),_0x2f4d79['label']));var _0x23e515=_0x2f4d79[_0x6400('0x16e')]||_0x6400('0x12b');var _0x87e51a=util[_0x6400('0x25')](_0x6400('0x16f'),this[_0x6400('0xb')][_0x6400('0x32')],rs[_0x6400('0x113')](0x5));var _0x5f5cd4=util[_0x6400('0x25')]('%s/recordings/%s.%s',FILES_PATH,_0x87e51a,_0x23e515);var _0x25fcfb=util[_0x6400('0x25')](_0x6400('0x132'),FILES_PATH,_0x87e51a);this[_0x6400('0x35')][_0x6400('0x69')](this,_0x2f4d79,_0x87e51a,_0x5f5cd4);this[_0x6400('0xb')][_0x6400('0x98')](_0x6400('0x170'),_0x87e51a);logger[_0x6400('0x2a')](_0x6400('0x171'),_0x25fcfb,_0x23e515,_0x2f4d79[_0x6400('0x172')],_0x2f4d79[_0x6400('0x61')]);return this[_0x6400('0xb')][_0x6400('0x134')](_0x25fcfb,_0x23e515,_0x2f4d79[_0x6400('0x172')],_0x2f4d79['timeout'],undefined,!![]);};AGIVertices['prototype']['restapi']=function(_0x218c74){logger[_0x6400('0x2a')](util[_0x6400('0x25')]('Enter\x20in\x20RESTAPI\x20(%s)\x20block',_0x218c74[_0x6400('0xa7')]));if(!this[_0x6400('0x7e')](_0x218c74['url'])){return this[_0x6400('0xb')][_0x6400('0xa2')](_0x6400('0x173'));}var _0x34a93b=this[_0x6400('0x5e')][_0x6400('0x69')](this,_0x218c74);logger[_0x6400('0x2a')](util[_0x6400('0x25')](_0x6400('0x174'),util[_0x6400('0x175')](_0x34a93b,{'showHidden':![],'depth':null})));if(!this[_0x6400('0x7e')](_0x218c74[_0x6400('0xd2')])){return this[_0x6400('0xb')][_0x6400('0xa2')](_0x6400('0x176'));}var _0x3573cd=this[_0x6400('0xf')][_0x6400('0x69')](this,_0x218c74[_0x6400('0xd2')]);if(!_0x3573cd){return this[_0x6400('0xb')][_0x6400('0x29')](_0x218c74,'no\x20variable\x20found');}this[_0x6400('0xb')][_0x6400('0x98')](util['format'](_0x6400('0x177'),_0x3573cd),_0x34a93b[_0x6400('0x6f')]?_0x34a93b[_0x6400('0x6f')]:_0x6400('0x178'));this[_0x6400('0xb')]['setVariable'](util[_0x6400('0x25')](_0x6400('0x179'),_0x3573cd),_0x34a93b[_0x6400('0x70')]?_0x34a93b[_0x6400('0x70')]:'OK');if(_0x34a93b[_0x6400('0x65')]){try{this[_0x6400('0x96')](_0x34a93b[_0x6400('0x65')],_0x3573cd);}catch(_0x324e70){logger[_0x6400('0x29')](util['format'](_0x6400('0x17a'),_0x3573cd));}}return this[_0x6400('0xb')][_0x6400('0xa2')](util[_0x6400('0x25')]('variable\x20%s\x20set',_0x3573cd));};AGIVertices[_0x6400('0xe')][_0x6400('0x17b')]=function(_0x599a26){logger[_0x6400('0x2a')](util[_0x6400('0x25')](_0x6400('0x17c'),_0x599a26[_0x6400('0xa7')]));return this[_0x6400('0xb')][_0x6400('0x17d')](_0x599a26[_0x6400('0x17e')]['replace'](/\s+/g,''),_0x599a26[_0x6400('0x172')]);};AGIVertices[_0x6400('0xe')][_0x6400('0x17f')]=function(_0x588423){logger[_0x6400('0x2a')](util[_0x6400('0x25')](_0x6400('0x180'),_0x588423['label']));return this['channel'][_0x6400('0x181')](_0x588423[_0x6400('0x60')][_0x6400('0x182')](/\s+/g,''),_0x588423[_0x6400('0x172')]);};AGIVertices[_0x6400('0xe')]['sayphonetic']=function(_0x37db63){logger[_0x6400('0x2a')](util[_0x6400('0x25')](_0x6400('0x183'),_0x37db63[_0x6400('0xa7')]));return this[_0x6400('0xb')][_0x6400('0x184')](_0x37db63[_0x6400('0x56')],_0x37db63[_0x6400('0x172')]);};AGIVertices['prototype'][_0x6400('0x185')]=function(_0x3f8128){logger[_0x6400('0x2a')](util[_0x6400('0x25')](_0x6400('0x186'),_0x3f8128[_0x6400('0xa7')]));if(!this[_0x6400('0x7e')](_0x3f8128['account_id'])){return this['channel']['noop'](_0x6400('0x187'));}var _0x58f41e=this[_0x6400('0x188')]['sync'](this,_0x3f8128[_0x6400('0x189')]);if(!_0x58f41e||!_0x58f41e[_0x6400('0x18a')]){return this[_0x6400('0xb')]['error'](_0x3f8128,'no\x20mail\x20account\x20found');}var _0x4b193d={'from':util['format'](_0x6400('0x18b'),_0x58f41e[_0x6400('0x11')],_0x58f41e[_0x6400('0x18c')]||_0x58f41e[_0x6400('0x18a')][_0x6400('0x18d')]),'to':_0x3f8128['to']||'','cc':_0x3f8128['cc']||'','bcc':_0x3f8128[_0x6400('0x18e')]||'','subject':_0x3f8128[_0x6400('0x18f')],'html':_0x3f8128[_0x6400('0x56')],'text':_0x3f8128['text']};if(this['isConfigured'](_0x3f8128[_0x6400('0x190')])){}logger[_0x6400('0x191')](_0x6400('0x192'),JSON[_0x6400('0x6d')](_0x4b193d));this[_0x6400('0x31')][_0x6400('0x69')](this,_0x3f8128,_0x3f8128[_0x6400('0x189')]);this[_0x6400('0xb')][_0x6400('0xa2')](util[_0x6400('0x25')](_0x6400('0x193'),_0x58f41e[_0x6400('0x11')]));this[_0x6400('0x20')][_0x6400('0x69')](this,_0x58f41e[_0x6400('0x194')],_0x4b193d);return this['channel'][_0x6400('0xa2')](_0x6400('0x195'));};AGIVertices[_0x6400('0xe')][_0x6400('0x196')]=function(_0x27ef00){logger[_0x6400('0x2a')](util[_0x6400('0x25')]('Enter\x20in\x20SENDFAX\x20(%s)\x20block',_0x27ef00[_0x6400('0xa7')]));return this['channel'][_0x6400('0xa2')]('SENDFAX\x20block\x20not\x20implemented');};AGIVertices['prototype']['sendSMS']=function(_0x272e6c){logger[_0x6400('0x2a')](util[_0x6400('0x25')]('Enter\x20in\x20SENDSMS\x20(%s)\x20block',_0x272e6c['label']));if(!this[_0x6400('0x7e')](_0x272e6c['sms_account_id'])){return this['channel'][_0x6400('0xa2')]('no\x20sms\x20account\x20configured');}var _0x382c92=this[_0x6400('0x2e')][_0x6400('0x69')](this,_0x272e6c['sms_account_id']);if(!_0x382c92){return this['channel'][_0x6400('0x29')](_0x272e6c,_0x6400('0x197'));}var _0x12d8d8={'body':_0x272e6c[_0x6400('0x198')],'phone':_0x272e6c['to']||'','SmsAccountId':_0x382c92['id']};logger[_0x6400('0x191')](_0x6400('0x199'),JSON[_0x6400('0x6d')](_0x12d8d8));this['createSquareDetailsReport'][_0x6400('0x69')](this,_0x272e6c,_0x272e6c[_0x6400('0x19a')]);this[_0x6400('0xb')][_0x6400('0xa2')](util[_0x6400('0x25')](_0x6400('0x19b'),_0x382c92[_0x6400('0x11')]));this[_0x6400('0x30')][_0x6400('0x69')](this,_0x12d8d8);return this[_0x6400('0xb')][_0x6400('0xa2')](_0x6400('0x19c'));};AGIVertices[_0x6400('0xe')][_0x6400('0x19d')]=function(_0x27bfea){logger['info'](util['format'](_0x6400('0x19e'),_0x27bfea[_0x6400('0xa7')]));if(!this[_0x6400('0x7e')](_0x27bfea[_0x6400('0xd2')])){return this['channel'][_0x6400('0x29')](_0x27bfea,'no\x20variable\x20selected');}var _0x45a968=this['getVariable'][_0x6400('0x69')](this,_0x27bfea[_0x6400('0xd2')]);if(!_0x45a968){return this[_0x6400('0xb')]['error'](_0x27bfea,_0x6400('0xd4'));}return this['channel'][_0x6400('0x98')](_0x45a968,_0x27bfea[_0x6400('0x19f')]);};AGIVertices[_0x6400('0xe')][_0x6400('0x1a0')]=function(_0x45eaf0){logger[_0x6400('0x2a')](util['format'](_0x6400('0x1a1'),_0x45eaf0[_0x6400('0xa7')]));this['channel'][_0x6400('0xa2')](_0x6400('0x1a2'));var _0x46cd6b=this[_0x6400('0xb')][_0x6400('0xf')](_0x6400('0x1a3'));if(!_[_0x6400('0x3d')](_0x46cd6b[_0x6400('0x9d')])){this[_0x6400('0xb')][_0x6400('0x32')]=_0x46cd6b[_0x6400('0x9d')];}if(_0x45eaf0[_0x6400('0xb2')]===_0x6400('0x1a4')){this[_0x6400('0xb')][_0x6400('0xa2')](_0x6400('0x1a5'));return this['channel'][_0x6400('0xb2')]();}return this['channel']['noop'](_0x6400('0x1a6'));};AGIVertices[_0x6400('0xe')][_0x6400('0x1a7')]=function(_0x2f0b26){logger[_0x6400('0x2a')](util[_0x6400('0x25')](_0x6400('0x1a8'),_0x2f0b26[_0x6400('0xa7')]));if(!this[_0x6400('0x7e')](_0x2f0b26[_0x6400('0x1a9')])){return this[_0x6400('0xb')]['error'](_0x2f0b26,_0x6400('0x1aa'));}var _0x174e26=this[_0x6400('0x1ab')][_0x6400('0x69')](this,_0x2f0b26[_0x6400('0x1a9')]);if(!this[_0x6400('0x7e')](_0x174e26)){return this[_0x6400('0xb')][_0x6400('0x29')](_0x2f0b26,util[_0x6400('0x25')](_0x6400('0x1ac'),_0x2f0b26['project_id']));}if(_0x174e26===this[_0x6400('0xb')][_0x6400('0x34')]){return this[_0x6400('0xb')]['error'](_0x2f0b26,_0x6400('0x1ad'));}this[_0x6400('0x31')]['sync'](this,_0x2f0b26,_0x174e26);var _0x432c7e=this[_0x6400('0xb')][_0x6400('0x53')](_0x6400('0x1ae'),util[_0x6400('0x25')](_0x6400('0x1af'),config['agi']['host']||_0x6400('0x1b0'),_0x174e26,this[_0x6400('0xb')][_0x6400('0x34')]));if(_0x432c7e['result']===-0x1){return _0x432c7e;}return this[_0x6400('0xb')][_0x6400('0xa2')](util[_0x6400('0x25')]('Executed\x20command\x20%s\x20%s',_0x6400('0x1ae'),_0x174e26));};AGIVertices[_0x6400('0xe')][_0x6400('0x1b1')]=function(_0x25b594){logger[_0x6400('0x2a')](util[_0x6400('0x25')](_0x6400('0x1b2'),_0x25b594['label']));var _0x3a25a6=this[_0x6400('0x52')][_0x6400('0x69')](this,_0x25b594['command']);this[_0x6400('0x31')][_0x6400('0x69')](this,_0x25b594,_0x25b594['command']);if(this['isConfigured'](_0x25b594[_0x6400('0xd2')])){var _0xf63800=this[_0x6400('0xf')][_0x6400('0x69')](this,_0x25b594[_0x6400('0xd2')]);if(_0xf63800){this['channel'][_0x6400('0x98')](_0xf63800,_0x3a25a6);return this[_0x6400('0xb')][_0x6400('0xa2')](util[_0x6400('0x25')](_0x6400('0x1b3'),_0x25b594[_0x6400('0x1b4')],_0xf63800));}}return this[_0x6400('0xb')]['noop'](util[_0x6400('0x25')](_0x6400('0x1b5'),_0x25b594[_0x6400('0x1b4')]));};AGIVertices['prototype'][_0x6400('0x1b6')]=function(_0x355c13){logger[_0x6400('0x2a')](util[_0x6400('0x25')](_0x6400('0x1b7'),_0x355c13[_0x6400('0xa7')]));_0x355c13[_0x6400('0x56')]=_0x355c13[_0x6400('0x56')]['replace'](/(\r\n|\n|\r)/gm,'\x20');if(!this[_0x6400('0x7e')](_0x355c13[_0x6400('0x55')])){return this['channel'][_0x6400('0xa2')](_0x6400('0x1b8'));}if(!this[_0x6400('0x7e')](_0x355c13[_0x6400('0x56')])){return this[_0x6400('0xb')][_0x6400('0xa2')](_0x6400('0xa3'));}this['channel'][_0x6400('0xa2')](util['format'](_0x6400('0x1b9'),_0x355c13[_0x6400('0x56')]));var _0x2aec49=this[_0x6400('0x54')]['sync'](this,_0x355c13);if(_0x2aec49){this['channel'][_0x6400('0xa2')](util[_0x6400('0x25')](_0x6400('0x1ba'),_0x2aec49));var _0x26f777=this[_0x6400('0xb')][_0x6400('0x11e')](_0x2aec49);try{fs['unlink'](_0x2aec49+'.wav');}catch(_0x5f5a8f){logger[_0x6400('0x29')](_0x5f5a8f);}return _0x26f777;}return this[_0x6400('0xb')]['error'](_0x355c13,_0x6400('0x1bb'));};AGIVertices[_0x6400('0xe')][_0x6400('0x1bc')]=function(_0x2e0b9f){logger[_0x6400('0x2a')](util[_0x6400('0x25')]('Enter\x20in\x20GOOGLETTS\x20(%s)\x20block',_0x2e0b9f[_0x6400('0xa7')]));_0x2e0b9f[_0x6400('0x56')]=_0x2e0b9f[_0x6400('0x56')][_0x6400('0x182')](/(\r\n|\n|\r)/gm,'\x20');if(!this['isConfigured'](_0x2e0b9f['text'])){return this['channel']['noop'](_0x6400('0xa3'));}this[_0x6400('0xb')][_0x6400('0xa2')](util[_0x6400('0x25')]('Trying\x20Google\x20TTS\x20%s',_0x2e0b9f[_0x6400('0x56')]));var _0x34d1ba=this[_0x6400('0x5c')]['sync'](this,_0x2e0b9f);if(_0x34d1ba){this[_0x6400('0xb')][_0x6400('0xa2')](util['format']('Google\x20TTS\x20%s\x20file\x20created',_0x34d1ba));var _0x51b10c=this[_0x6400('0xb')]['streamFile'](_0x34d1ba);try{fs[_0x6400('0xfc')](_0x34d1ba+_0x6400('0xfd'));}catch(_0x508f2d){logger[_0x6400('0x29')](_0x508f2d);}return _0x51b10c;}return this[_0x6400('0xb')][_0x6400('0x29')](_0x2e0b9f,'Google\x20TTS\x20is\x20unreachable');};AGIVertices[_0x6400('0xe')][_0x6400('0x1bd')]=function(_0x4e167a){logger[_0x6400('0x2a')](util[_0x6400('0x25')](_0x6400('0x1be'),_0x4e167a[_0x6400('0xa7')]));if(!this['isConfigured'](_0x4e167a['findBy'])){return this[_0x6400('0xb')][_0x6400('0x29')](_0x4e167a,_0x6400('0x14d'));}logger[_0x6400('0x2a')](util['format'](_0x6400('0x14e'),this['channel'][_0x6400('0x36')],_0x4e167a[_0x6400('0x14c')]));var _0x4e6f2f=this['agentUnpause'][_0x6400('0x69')](this,_0x4e167a['findBy']);if(_0x4e6f2f){logger[_0x6400('0x2a')](util[_0x6400('0x25')]('AGENT\x20%s\x20FOUND\x20BY',this[_0x6400('0xb')][_0x6400('0x36')],_0x4e167a[_0x6400('0x14c')]));this['channel']['noop'](util[_0x6400('0x25')]('AGENT\x20%s\x20FOUND\x20BY',this['channel']['callerid'],_0x4e167a[_0x6400('0x14c')]));return{'code':0xc8,'result':_0x6400('0x150')};}else{logger[_0x6400('0x2a')](util[_0x6400('0x25')](_0x6400('0x151'),this[_0x6400('0xb')][_0x6400('0x36')],_0x4e167a['findBy']));this['channel'][_0x6400('0xa2')](util[_0x6400('0x25')]('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this['channel'][_0x6400('0x36')],_0x4e167a['findBy']));return{'code':0xc8,'result':_0x6400('0x152')};}};AGIVertices[_0x6400('0xe')][_0x6400('0x1bf')]=function(_0x1bb5bc){logger['info'](util[_0x6400('0x25')](_0x6400('0x1c0'),_0x1bb5bc[_0x6400('0xa7')]));var _0xc78f32=this[_0x6400('0xb')][_0x6400('0x53')](_0x6400('0x1c1'),[_0x1bb5bc['mailbox'],_0x1bb5bc['options']]);if(_0xc78f32[_0x6400('0x9c')]===-0x1){return _0xc78f32;}return this[_0x6400('0xb')][_0x6400('0xa2')](util['format'](_0x6400('0xbf'),_0x6400('0x1c1'),_0x1bb5bc['mailbox']));};AGIVertices[_0x6400('0xe')]['vswitch']=function(_0x281aed){logger[_0x6400('0x2a')](util['format']('Enter\x20in\x20SWITCH\x20(%s)\x20block',_0x281aed['label']));if(!this['isConfigured'](_0x281aed[_0x6400('0xd2')])){return this['channel'][_0x6400('0x29')](_0x281aed,_0x6400('0x1c2'));}var _0x5998f7=this[_0x6400('0xf')]['sync'](this,_0x281aed[_0x6400('0xd2')]);if(!_0x5998f7){return this[_0x6400('0xb')][_0x6400('0x29')](_0x281aed,_0x6400('0xd4'));}var _0x308907=this[_0x6400('0xb')]['getVariable'](_0x5998f7);return{'code':0xc8,'result':_0x308907['extra']?_0x308907[_0x6400('0x9d')]:'-'};};String['prototype']['replaceAll']=function(_0xf3160c,_0x50972e){return this[_0x6400('0x9a')](_0xf3160c)['join'](_0x50972e);};module[_0x6400('0x1c3')]=AGIVertices;
\ No newline at end of file