eee5e872fb1ce832b973ba719f0adcb7924d9c78
[motion2.git] / server / services / agi / vertices.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
13 // * The SOFTWARE PRODUCT is protected by copyright laws and international *
14 // * copyright treaties, as well as other intellectual property laws and   *
15 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0xbec5=['no\x20key\x20configured','bot','DIALOGFLOW_%s','speech','out','Dialogflow\x20Result\x20%s','Dialogflow\x20is\x20unreachable','dialogflowV2','Enter\x20in\x20DIALOGFLOW\x20V2\x20(%s)\x20block','dialogflowV2_project_id','no\x20project_id\x20configured','no\x20client_email\x20configured','no\x20anguage\x20configured','Trying\x20DialogflowV2:\x20%s','providerResponse','DialogflowV2\x20is\x20unreachable','sesteknda','ndauth_url','no\x20ndauth\x20url\x20configured','username','password','no\x20password\x20configured','ndassistant_url','Trying\x20SestekNDA:\x20%s','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','trunk_id','no\x20trunk\x20selected','no\x20trunk\x20found','trunk_name','DIAL','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','no\x20variable\x20selected\x20for\x20the\x20result','getData','response','test','mindigit','maxdigit','no\x20variable\x20found','hiddendigitsnum','generate','substr','Enter\x20in\x20GETSECRETDIGITS\x20(%s)\x20block','Enter\x20in\x20GOAL\x20(%s)\x20block','goalname','[AGI]\x20Enter\x20in\x20AWSPOLLY\x20(%s)\x20block','Trying\x20aws\x20Polly\x20%s','aws\x20Polly\x20%s\x20file\x20created','streamFile','Enter\x20in\x20Amazon\x20Lex\x20(%s)\x20block','no\x20valid\x20credentials\x20configured','no\x20bot\x20name\x20configured','AWS_LEX_%s','Amazon\x20Lex\x20ready\x20for\x20fulfillment','amazonlex','Amazon\x20Lex\x20Result\x20%s','Amazon\x20Lex\x20is\x20unreachable','googleasr','wav','recordFile','intKey','google\x20%s\x20file\x20created','GOOGLE_ASR_%s','GoogleASR\x20Result\x20%s','tildeasr','Enter\x20in\x20TILDEASR\x20(%s)\x20block','appid','no\x20appid\x20configured','no\x20appsecret\x20configured','%s/recordings/%s','TILDE_ASR_%s','TildeASR\x20Result\x20%s','gotoc','Enter\x20in\x20GOTO\x20(%s)\x20block','context','gotoif','Enter\x20in\x20GOTOIF\x20(%s)\x20block','condition','no\x20condition\x20configured','true','false','EVAL\x20CONDITION\x20%s\x20%s','gotoiftime','Enter\x20in\x20GOTOIFTIME\x20(%s)\x20block','no\x20interval\x20configured','getIntervals','interval_id','no\x20intervals\x20found','IFTIME\x20%s\x20%s','Enter\x20in\x20HANGUP\x20(%s)\x20block','hangup','ispeechasr','beep','ISPEECH_ASR_%s','IspeechASR\x20Result\x20%s','ispeechtts','Enter\x20in\x20ISPEECHTTS\x20(%s)\x20block','ispeech\x20%s\x20file\x20created','ispeech\x20TTS\x20is\x20unreachable','login','Enter\x20in\x20LOGIN\x20(%s)\x20block','findBy','no\x20find\x20by\x20configured','AGENT\x20%s\x20FOUND\x20BY','success','AGENT\x20%s\x20NOT\x20FOUND\x20BY','failure','logout','Enter\x20in\x20LOGOUT\x20(%s)\x20block','FIND\x20AGENT\x20%s\x20BY\x20%s','math','Enter\x20in\x20MATH\x20(%s)\x20block','operation','no\x20operation\x20configured','math\x20%s','%s[%s]','variable\x20%s[key]\x20set','Enter\x20in\x20MENU\x20(%s)\x20block','digit','Enter\x20in\x20NOOP\x20(%s)\x20block','output','pause','Enter\x20in\x20PAUSE\x20(%s)\x20block','pause_id','playback','Enter\x20in\x20PLAYBACK\x20(%s)\x20block','PLAYBACK','Enter\x20in\x20QUEUE\x20(%s)\x20block','queue_id','no\x20queue\x20found','indexOf','XMCS-QUEUE','toLowerCase','macro','gosub','QUEUE','record','recordingFormat','%s/recordings/%s.%s','RECORDING_SAVENAME','Recording\x20%s\x20%s\x20%s\x20%s','Enter\x20in\x20RESTAPI\x20(%s)\x20block','no\x20url\x20configured','Response:','no\x20variable\x20selected\x20for\x20the\x20response','%s_STATUS_CODE','200','%s_STATUS_MESSAGE','Unable\x20to\x20set\x20result\x20in\x20variable\x20%s','variable\x20%s\x20set','saydigits','Enter\x20in\x20SAYDIGITS\x20(%s)\x20block','sayDigits','digits','escape_digits','saynumber','Enter\x20in\x20SAYNUMBER\x20(%s)\x20block','sayNumber','number','sayphonetic','Enter\x20in\x20SAYPHONETIC\x20(%s)\x20block','sayPhonetic','sendMail','Enter\x20in\x20SENDMAIL\x20(%s)\x20block','no\x20mail\x20account\x20configured','account_id','Smtp','no\x20mail\x20account\x20found','\x22%s\x22\x20<%s>','user','bcc','subject','template_id','sendMail\x20message','smtpOptions','Mail\x20message\x20added\x20to\x20outgoing\x20process','Enter\x20in\x20SENDFAX\x20(%s)\x20block','SENDFAX\x20block\x20not\x20implemented','sendSMS','Enter\x20in\x20SENDSMS\x20(%s)\x20block','no\x20sms\x20account\x20configured','sms_account_id','no\x20sms\x20account\x20found','sms_text','Trying\x20SendSMS\x20with\x20account\x20%s','Sms\x20message\x20added\x20to\x20outgoing\x20process','set','Enter\x20in\x20SET\x20(%s)\x20block','START\x20CALLY\x20SQUARE','Answer','subproject','no\x20subproject\x20selected','project_id','project\x20in\x20subproject\x20must\x20be\x20different\x20from\x20the\x20called\x20project','AGI','host','system','Enter\x20in\x20SYSTEM\x20(%s)\x20block','command','sh\x20command:\x20%s\x20result\x20on\x20variable:\x20%s','google_cloud_tts','Enter\x20in\x20Google\x20Cloud\x20TTS\x20(%s)\x20block','no\x20apiKey\x20configured','Google\x20Cloud\x20TTS\x20%s\x20file\x20created','Google\x20Cloud\x20TTS\x20is\x20unreachable','tts','Enter\x20in\x20GOOGLETTS\x20(%s)\x20block','Trying\x20Google\x20TTS\x20%s','Google\x20TTS\x20%s\x20file\x20created','unpause','voicemail','VOICEMAIL','mailbox','no\x20variable\x20selected','join','exports','util','lodash','odbc','randomstring','moment','mustache','request-promise','agi','../../config/environment','./scripts','rawHeaders','rawBody','menu','getdigits','getsecretdigits','rpc','prototype','getVariable','getVariableById','then','name','catch','getVoiceQueue','getVoiceQueueById','getSquareProject','getSquareProjectById','getSquareOdbcById','getUser','getTrunk','getTrunkById','getSound','getMailAccount','getMailAccountById','sendMailMessage','getIntervalById','IntervalId','interval','Intervals','getSoundPath','format','getQueryOdbc','open','error','info','ODBC\x20connection\x20successfully','query','Error\x20executing\x20query\x20%s','Query\x20executed\x20correctly\x20%s','close','Error\x20closing\x20connection\x20to\x20odbc\x20%s','getSmsAccount','getSmsAccountById','createSmsMessage','createSquareDetailsReport','channel','uniqueid','label','agicommand','callerid','createSquareRecording','calleridname','priority','accountcode','dnid','arg_1','file','createSquareMessage','createCmContact','isEmpty','isNil','lastName','list_id','scheduledAt','Callback\x20scheduled\x20at\x20','toString','callback_priority','getPause','agentPause','agent','agentUnpause','agentLogout','internal','%s/%s@from-sip/n','LOCAL','shellCommand','exec','trim','replace','googleCloudTTS','apiKey','google_cloud_tts_text_type','text','languageCode','en-US','audioEncoding','MP3','googleTTS','google_tts_language','restAPI','timeout','POST','PUT','toUpperCase','body','parse','An\x20incorrect\x20formatted\x20json\x20body\x20has\x20been\x20passed\x20to\x20the\x20function','computedVariables','sync','uri','render','url','headers','stringify','statusCode','statusMessage','message','500\x20-\x20Internal\x20Server\x20Error','options','googleDialogflow','googleDialogflowV2','client_email','private_key','dialogflowV2_language','sestekNDA','ispeechTTS','key','speed','ispeechASR','ispeech_asr_language','isConfigured','model','awsPolly','aws_access_key_id','aws_secret_access_key','aws_polly_region','aws_polly_voice','Amy','aws_text_type','aws_lex_region','aws_bot_name','googleASR','google_asr_language','tildeASR','appsecret','includes','clone','hasOwnProperty','replaceObjectAllVariables','replaceAllVariables','isPlainObject','recursiveNodeIndex','saveRestApiResult','%s.%s','isArray','length','setVariable','split','extra','getAndSetVariable','maxRetry','retry','Enter\x20in\x20MRCPSynth\x20(%s)\x20block','noop','MRCPSynth','result','mrcprecog','grammar','RECOG_CONFIDENCE()','RECOG_INPUT()','MRCP_RECOG_TRANSCRIPT','RECOG_INSTANCE()','MRCP_RECOG_INSTANCE','Enter\x20in\x20AGI\x20(%s)\x20block','args','answer','Enter\x20in\x20ANSWER\x20(%s)\x20block','wait','callback','Enter\x20in\x20CALLBACK\x20(%s)\x20block','no\x20list\x20selected','delay','minutes','phone','custom_app','Enter\x20in\x20CUSTOM\x20APP\x20(%s)\x20block','Executed\x20command\x20%s\x20%s','application','lumenvoxtts','no\x20text\x20configured','Executed\x20command\x20MRCPSynth\x20%s','sestektts','Enter\x20in\x20SESTEKTTS\x20(%s)\x20block','lumenvoxasr','Enter\x20in\x20LUMENVOXASR\x20(%s)\x20block','no\x20grammar\x20configured','MRCPRecog','LUMENVOX_ASR_CONFIDENCE','LUMENVOX_ASR_TRANSCRIPT','sestekasr','Enter\x20in\x20SESTEKASR\x20(%s)\x20block','SESTEK_ASR_CONFIDENCE','SESTEK_ASR_TRANSCRIPT','SESTEK_ASR_INSTANCE','database','Enter\x20in\x20DATABASE\x20(%s)\x20block','odbc_id','no\x20database\x20selected','getSquareOdbc','no\x20odbc\x20database\x20found','no\x20query\x20configured','variable_id','forEach','keys','%s[%s][%s]','%s_ROWS_COUNT','debug','Enter\x20in\x20DIAL\x20(%s)\x20block','sip_id','no\x20user\x20found','SIP/%s','opts','Executed\x20command\x20%s','dialogflow','Enter\x20in\x20DIALOGFLOW\x20(%s)\x20block'];(function(_0x3bf83f,_0x181cac){var _0x22c4a9=function(_0xb3ff0d){while(--_0xb3ff0d){_0x3bf83f['push'](_0x3bf83f['shift']());}};_0x22c4a9(++_0x181cac);}(_0xbec5,0xe5));var _0x5bec=function(_0x1b76e6,_0x598520){_0x1b76e6=_0x1b76e6-0x0;var _0x333b53=_0xbec5[_0x1b76e6];return _0x333b53;};'use strict';var fs=require('fs');var util=require(_0x5bec('0x0'));var _=require(_0x5bec('0x1'));var sh=require('shelljs');var odbc=require(_0x5bec('0x2'))();var rs=require(_0x5bec('0x3'));var moment=require(_0x5bec('0x4'));var Mustache=require(_0x5bec('0x5'));var rp=require(_0x5bec('0x6'));var logger=require('../../config/logger')(_0x5bec('0x7'));var config=require(_0x5bec('0x8'));var scripts=require(_0x5bec('0x9'));var FILES_PATH='/var/opt/motion2/server/files';var recursiveMapAttributes=[_0x5bec('0xa'),_0x5bec('0xb')];var verticesWithRetry=[_0x5bec('0xc'),_0x5bec('0xd'),_0x5bec('0xe')];var AGIVertices=function(_0x302aae,_0x6406a1,_0x442b31){this['channel']=_0x302aae;this[_0x5bec('0xf')]=_0x6406a1;this['mailRpc']=_0x442b31;};AGIVertices[_0x5bec('0x10')][_0x5bec('0x11')]=function(_0x117162,_0x4a5482){this[_0x5bec('0xf')][_0x5bec('0x12')](_0x117162)[_0x5bec('0x13')](function(_0x57ffc4){_0x4a5482(null,_0x57ffc4?_0x57ffc4[_0x5bec('0x14')]:![]);})[_0x5bec('0x15')](function(_0x589d14){_0x4a5482(_0x589d14);});};AGIVertices[_0x5bec('0x10')][_0x5bec('0x16')]=function(_0x35393a,_0x6888a4){this[_0x5bec('0xf')][_0x5bec('0x17')](_0x35393a)[_0x5bec('0x13')](function(_0x43fd2a){_0x6888a4(null,_0x43fd2a?_0x43fd2a[_0x5bec('0x14')]:![]);})[_0x5bec('0x15')](function(_0x31b9e4){_0x6888a4(_0x31b9e4);});};AGIVertices[_0x5bec('0x10')][_0x5bec('0x18')]=function(_0x506639,_0x4ab821){this[_0x5bec('0xf')][_0x5bec('0x19')](_0x506639)[_0x5bec('0x13')](function(_0x1771e7){_0x4ab821(null,_0x1771e7?_0x1771e7['name']:![]);})['catch'](function(_0x3cd354){_0x4ab821(_0x3cd354);});};AGIVertices[_0x5bec('0x10')]['getSquareOdbc']=function(_0x339614,_0xa7e223){this[_0x5bec('0xf')][_0x5bec('0x1a')](_0x339614)['then'](function(_0xab397b){_0xa7e223(null,_0xab397b?_0xab397b['dsn']:![]);})[_0x5bec('0x15')](function(_0x208d99){_0xa7e223(_0x208d99);});};AGIVertices[_0x5bec('0x10')][_0x5bec('0x1b')]=function(_0xfed23,_0x5e154e){this[_0x5bec('0xf')]['getUserById'](_0xfed23)[_0x5bec('0x13')](function(_0x3ddb88){_0x5e154e(null,_0x3ddb88?_0x3ddb88['name']:![]);})[_0x5bec('0x15')](function(_0xbef70b){_0x5e154e(_0xbef70b);});};AGIVertices['prototype'][_0x5bec('0x1c')]=function(_0x218c13,_0x43d460){this[_0x5bec('0xf')][_0x5bec('0x1d')](_0x218c13)[_0x5bec('0x13')](function(_0x2dc014){_0x43d460(null,_0x2dc014?_0x2dc014['name']:![]);})['catch'](function(_0x5e44b3){_0x43d460(_0x5e44b3);});};AGIVertices[_0x5bec('0x10')][_0x5bec('0x1e')]=function(_0x338c25,_0x4939a5){var _0x2b3b2c=this;this[_0x5bec('0xf')]['getSoundById'](_0x338c25)[_0x5bec('0x13')](function(_0x63ac8){_0x4939a5(null,_0x63ac8?_0x2b3b2c['getSoundPath'](_0x63ac8['save_name']):![]);})[_0x5bec('0x15')](function(_0x2a82d5){_0x4939a5(_0x2a82d5);});};AGIVertices[_0x5bec('0x10')][_0x5bec('0x1f')]=function(_0x12862c,_0x3f224c){this['rpc'][_0x5bec('0x20')](_0x12862c)['then'](function(_0x45863b){_0x3f224c(null,_0x45863b?_0x45863b:![]);})[_0x5bec('0x15')](function(_0x3034c9){_0x3f224c(_0x3034c9);});};AGIVertices[_0x5bec('0x10')]['sendMailMessage']=function(_0x2b42c8,_0x1aba46,_0xfc7d41){this['mailRpc'][_0x5bec('0x21')](_0x2b42c8,_0x1aba46)['then'](function(){_0xfc7d41(null);})[_0x5bec('0x15')](function(_0x207192){_0xfc7d41(_0x207192);});};AGIVertices[_0x5bec('0x10')]['getIntervals']=function(_0xdc831e,_0x420ad4){this['rpc'][_0x5bec('0x22')](_0xdc831e)[_0x5bec('0x13')](function(_0x24aa2f){if(_0x24aa2f){if(_0x24aa2f[_0x5bec('0x23')]){_0x420ad4(null,[_0x24aa2f[_0x5bec('0x24')]]);}else{_0x420ad4(null,_['map'](_0x24aa2f[_0x5bec('0x25')],'interval'));}}else{_0x420ad4(null,![]);}})[_0x5bec('0x15')](function(_0x384f04){_0x420ad4(_0x384f04);});};AGIVertices[_0x5bec('0x10')][_0x5bec('0x26')]=function(_0x2e421e){return util[_0x5bec('0x27')]('%s/sounds/converted/%s',FILES_PATH,_0x2e421e);};AGIVertices[_0x5bec('0x10')][_0x5bec('0x28')]=function(_0x1d42b0,_0x5de683,_0x40db29){odbc[_0x5bec('0x29')](_0x1d42b0,function(_0x497519){if(_0x497519){logger[_0x5bec('0x2a')]('Error\x20getting\x20ODBC\x20connection\x20%s',_0x497519);_0x40db29(_0x497519);}else{logger[_0x5bec('0x2b')](_0x5bec('0x2c'));odbc[_0x5bec('0x2d')](_0x5de683,function(_0x49cdfa,_0xd7b727){if(_0x49cdfa){logger[_0x5bec('0x2b')](_0x5bec('0x2e'),_0x5de683);_0x40db29(_0x49cdfa);}else{logger[_0x5bec('0x2b')](_0x5bec('0x2f'),_0x5de683);odbc[_0x5bec('0x30')](function(_0x3b7e50){if(_0x3b7e50){logger['error'](_0x5bec('0x31'),_0x3b7e50);}_0x40db29(null,_0xd7b727);});}});}});};AGIVertices[_0x5bec('0x10')][_0x5bec('0x32')]=function(_0x414d59,_0x598e53){this[_0x5bec('0xf')][_0x5bec('0x33')](_0x414d59)[_0x5bec('0x13')](function(_0x57e07c){_0x598e53(null,_0x57e07c?_0x57e07c:![]);})['catch'](function(_0x1a57e3){_0x598e53(_0x1a57e3);});};AGIVertices[_0x5bec('0x10')][_0x5bec('0x34')]=function(_0x11f667,_0x46f83d){this['rpc']['createSmsMessage'](_0x11f667)[_0x5bec('0x13')](function(_0x5cb97e){_0x46f83d(null,_0x5cb97e);})[_0x5bec('0x15')](function(_0x420d89){_0x46f83d(_0x420d89);});};AGIVertices[_0x5bec('0x10')]['createSquareDetailsReport']=function(_0x1e59a3,_0x26a4a5,_0x4fbbd4){this[_0x5bec('0xf')][_0x5bec('0x35')]({'uniqueid':this[_0x5bec('0x36')][_0x5bec('0x37')],'node':_0x1e59a3[_0x5bec('0x38')],'application':_0x1e59a3[_0x5bec('0x39')],'data':_0x26a4a5||null,'project_name':this[_0x5bec('0x36')]['arg_1'],'callerid':this['channel'][_0x5bec('0x3a')]})['then'](function(_0x5c88a4){if(_0x4fbbd4){_0x4fbbd4(null,_0x5c88a4);}})[_0x5bec('0x15')](function(_0x5bc5f6){if(_0x4fbbd4){_0x4fbbd4(_0x5bc5f6);}});};AGIVertices['prototype']['createSquareRecording']=function(_0x264cd4,_0x45bab2,_0xb7ad6,_0x2451ca){this['rpc'][_0x5bec('0x3b')]({'uniqueid':this[_0x5bec('0x36')][_0x5bec('0x37')],'callerid':this[_0x5bec('0x36')]['callerid'],'calleridname':this[_0x5bec('0x36')][_0x5bec('0x3c')],'context':this[_0x5bec('0x36')]['context'],'extension':this[_0x5bec('0x36')]['extension'],'priority':this[_0x5bec('0x36')][_0x5bec('0x3d')],'accountcode':this[_0x5bec('0x36')][_0x5bec('0x3e')],'dnid':this['channel'][_0x5bec('0x3f')],'projectName':this[_0x5bec('0x36')][_0x5bec('0x40')],'saveName':_0x45bab2,'filename':_0x264cd4[_0x5bec('0x41')]||_0x45bab2,'savePath':_0xb7ad6})[_0x5bec('0x13')](function(_0x123758){_0x2451ca(null,_0x123758);})[_0x5bec('0x15')](function(_0x47deb1){_0x2451ca(_0x47deb1);});};AGIVertices[_0x5bec('0x10')][_0x5bec('0x42')]=function(_0x5775ca,_0x273e09,_0x3e6180,_0x34ee24,_0x43ddbf){this[_0x5bec('0xf')][_0x5bec('0x42')]({'uniqueid':this[_0x5bec('0x36')]['uniqueid'],'body':_0x5775ca,'direction':_0x273e09,'providerName':_0x3e6180,'providerResponse':_0x34ee24})[_0x5bec('0x13')](function(_0x579cd2){if(_0x43ddbf){_0x43ddbf(null,_0x579cd2);}})[_0x5bec('0x15')](function(_0x208c7b){if(_0x43ddbf){_0x43ddbf(_0x208c7b);}});};AGIVertices[_0x5bec('0x10')][_0x5bec('0x43')]=function(_0x158e8e,_0x1c6401){this[_0x5bec('0xf')][_0x5bec('0x43')]({'firstName':_[_0x5bec('0x44')](_0x158e8e[_0x5bec('0x14')])||_['isNil'](_0x158e8e[_0x5bec('0x14')])?'callback_'+Math['random']():_0x158e8e[_0x5bec('0x14')],'lastName':_['isEmpty'](_0x158e8e['lastName'])||_[_0x5bec('0x45')](_0x158e8e[_0x5bec('0x46')])?null:_0x158e8e[_0x5bec('0x46')],'phone':_0x158e8e['phone'],'ListId':_0x158e8e[_0x5bec('0x47')],'scheduledat':_0x158e8e[_0x5bec('0x48')],'callbackUniqueid':this[_0x5bec('0x36')][_0x5bec('0x37')],'tags':'callback','description':_0x5bec('0x49')+_0x158e8e[_0x5bec('0x48')][_0x5bec('0x4a')](),'priority':_0x158e8e[_0x5bec('0x4b')]})[_0x5bec('0x13')](function(_0x3ddf28){_0x1c6401(null,_0x3ddf28);})[_0x5bec('0x15')](function(_0x47ea9f){_0x1c6401(_0x47ea9f);});};AGIVertices['prototype'][_0x5bec('0x4c')]=function(_0x4b8331,_0xee3844){this[_0x5bec('0xf')]['getPauseById'](_0x4b8331)[_0x5bec('0x13')](function(_0x5ddf8b){_0xee3844(null,_0x5ddf8b?_0x5ddf8b[_0x5bec('0x14')]:![]);})[_0x5bec('0x15')](function(_0x1399e5){_0xee3844(_0x1399e5);});};AGIVertices[_0x5bec('0x10')][_0x5bec('0x4d')]=function(_0x340b42,_0x2e4293,_0x2c2e44){var _0x11d928={'role':_0x5bec('0x4e')};_0x11d928[_0x340b42]=this[_0x5bec('0x36')][_0x5bec('0x3a')];this[_0x5bec('0xf')][_0x5bec('0x4d')](_0x11d928,_0x2e4293,this['channel'][_0x5bec('0x37')])[_0x5bec('0x13')](function(_0x432a26){_0x2c2e44(null,_['isNil'](_0x432a26)?![]:!![]);})[_0x5bec('0x15')](function(_0x381cb8){logger[_0x5bec('0x2a')](_0x381cb8);_0x2c2e44(null,![]);});};AGIVertices[_0x5bec('0x10')][_0x5bec('0x4f')]=function(_0x5adc8b,_0x3e3108){var _0x11b30c={'role':_0x5bec('0x4e')};_0x11b30c[_0x5adc8b]=this[_0x5bec('0x36')]['callerid'];this[_0x5bec('0xf')]['agentUnpause'](_0x11b30c)[_0x5bec('0x13')](function(_0x38deb0){_0x3e3108(null,_[_0x5bec('0x45')](_0x38deb0)?![]:!![]);})[_0x5bec('0x15')](function(_0x4b50a2){logger[_0x5bec('0x2a')](_0x4b50a2);_0x3e3108(null,![]);});};AGIVertices[_0x5bec('0x10')][_0x5bec('0x50')]=function(_0x125dfb,_0xc3e3df){var _0x2d040e={'role':_0x5bec('0x4e')};_0x2d040e[_0x125dfb]=this[_0x5bec('0x36')][_0x5bec('0x3a')];this[_0x5bec('0xf')][_0x5bec('0x50')](_0x2d040e)[_0x5bec('0x13')](function(_0x65a9e2){_0xc3e3df(null,_[_0x5bec('0x45')](_0x65a9e2)?![]:!![]);})[_0x5bec('0x15')](function(_0x490d4b){logger[_0x5bec('0x2a')](_0x490d4b);_0xc3e3df(null,![]);});};AGIVertices[_0x5bec('0x10')]['agentLogin']=function(_0xa7a394,_0x4984c6){var _0x1a5cb0={'role':_0x5bec('0x4e')};_0x1a5cb0[_0xa7a394]=this['channel']['callerid'];var _0xd54be0=_0xa7a394!=_0x5bec('0x51')?util[_0x5bec('0x27')](_0x5bec('0x52'),_0x5bec('0x53'),this['channel'][_0x5bec('0x3a')]):undefined;this[_0x5bec('0xf')]['agentLogin'](_0x1a5cb0,_0xd54be0)[_0x5bec('0x13')](function(_0x38f7de){_0x4984c6(null,_[_0x5bec('0x45')](_0x38f7de)?![]:!![]);})[_0x5bec('0x15')](function(_0x572dc5){logger[_0x5bec('0x2a')](_0x572dc5);_0x4984c6(null,![]);});};AGIVertices['prototype'][_0x5bec('0x54')]=function(_0x18d7af,_0x3ede1d){sh[_0x5bec('0x55')](_[_0x5bec('0x56')](_0x18d7af),function(_0x222526,_0x21513e){var _0x340b5c=_0x21513e[_0x5bec('0x57')](/(\r\n|\n|\r)/gm,'');_0x3ede1d(null,_0x340b5c);});};AGIVertices[_0x5bec('0x10')][_0x5bec('0x58')]=function(_0x5bbd32,_0x5a9d3f){scripts[_0x5bec('0x58')](_0x5bbd32[_0x5bec('0x59')],_0x5bbd32[_0x5bec('0x5a')]||_0x5bec('0x5b'),_0x5bbd32[_0x5bec('0x5b')],_0x5bbd32[_0x5bec('0x5c')]||_0x5bec('0x5d'),_0x5bbd32['ssmlGender']||'MALE',_0x5bbd32[_0x5bec('0x5e')]||_0x5bec('0x5f'))[_0x5bec('0x13')](function(_0x3f909a){_0x5a9d3f(null,_0x3f909a);})[_0x5bec('0x15')](function(_0x2c3baf){_0x5a9d3f(_0x2c3baf);});};AGIVertices[_0x5bec('0x10')][_0x5bec('0x60')]=function(_0x132c57,_0x29b7ae){scripts[_0x5bec('0x60')](_0x132c57[_0x5bec('0x5b')],_0x132c57[_0x5bec('0x61')]||'en',0x1)[_0x5bec('0x13')](function(_0x282c3b){_0x29b7ae(null,_0x282c3b);})[_0x5bec('0x15')](function(_0x313792){_0x29b7ae(_0x313792);});};AGIVertices[_0x5bec('0x10')][_0x5bec('0x62')]=function(_0x16b0cf,_0x55e306){var _0x2e76c0={'uri':_0x16b0cf['url'],'method':_0x16b0cf['method'],'json':!![],'resolveWithFullResponse':!![],'strictSSL':![],'timeout':typeof parseInt(_0x16b0cf[_0x5bec('0x63')])==='number'&&parseInt(_0x16b0cf[_0x5bec('0x63')])>=0x1?parseInt(_0x16b0cf['timeout'])*0x3e8:0x5*0x3e8};if(_['includes']([_0x5bec('0x64'),_0x5bec('0x65')],_0x2e76c0['method'][_0x5bec('0x66')]())){try{_0x2e76c0[_0x5bec('0x67')]=_0x16b0cf[_0x5bec('0xb')]?JSON[_0x5bec('0x68')](_0x16b0cf[_0x5bec('0xb')]):{};}catch(_0x321e1e){logger[_0x5bec('0x2a')](_0x5bec('0x69'),_0x321e1e);}}try{_0x2e76c0['headers']=_0x16b0cf['rawHeaders']?JSON[_0x5bec('0x68')](_0x16b0cf[_0x5bec('0xa')]):{};}catch(_0x365e48){logger[_0x5bec('0x2a')]('An\x20incorrect\x20formatted\x20json\x20headers\x20has\x20been\x20passed\x20to\x20the\x20function',_0x365e48);}if(_0x16b0cf[_0x5bec('0x6a')]){try{var _0x5e35a6=require(_0x16b0cf[_0x5bec('0x6a')])[_0x5bec('0x6b')](this,_0x2e76c0);_0x2e76c0[_0x5bec('0x6c')]=Mustache[_0x5bec('0x6d')](_0x16b0cf[_0x5bec('0x6e')],_0x5e35a6,{},['$$','$$']);if(_0x2e76c0[_0x5bec('0x6f')]){_0x2e76c0[_0x5bec('0x6f')]=JSON[_0x5bec('0x68')](Mustache['render'](JSON[_0x5bec('0x70')](_0x2e76c0[_0x5bec('0x6f')]),_0x5e35a6,{},['$$','$$']));}if(_0x2e76c0[_0x5bec('0x67')]){_0x2e76c0[_0x5bec('0x67')]=JSON[_0x5bec('0x68')](Mustache['render'](JSON[_0x5bec('0x70')](_0x2e76c0[_0x5bec('0x67')]),_0x5e35a6,{},['$$','$$']));}}catch(_0x5c124d){logger[_0x5bec('0x2a')]('An\x20incorrect\x20formatted\x20json\x20has\x20been\x20passed\x20to\x20the\x20function',_0x5c124d);}}rp(_0x2e76c0)[_0x5bec('0x13')](function(_0x3130bc){var _0x4646a3={'statusCode':_0x3130bc[_0x5bec('0x71')]||0xc8,'statusMessage':_0x3130bc[_0x5bec('0x72')]||'OK','headers':_0x3130bc[_0x5bec('0x6f')]||{},'body':_0x3130bc[_0x5bec('0x67')]||{}};_0x55e306(null,_0x4646a3);})[_0x5bec('0x15')](function(_0x1b8633){var _0xe32bff={'statusCode':_0x1b8633[_0x5bec('0x71')]||0x1f4,'statusMessage':_0x1b8633[_0x5bec('0x73')]||_0x5bec('0x74'),'headers':_0x1b8633[_0x5bec('0x75')][_0x5bec('0x6f')]||{},'body':_0x1b8633[_0x5bec('0x75')][_0x5bec('0x67')]||{}};_0x55e306(null,_0xe32bff);});};AGIVertices[_0x5bec('0x10')]['googleDialogflow']=function(_0x1aa391,_0x4d178b){scripts[_0x5bec('0x76')](this[_0x5bec('0x36')]['uniqueid'],_0x1aa391['key'],_0x1aa391[_0x5bec('0x5b')],_0x1aa391['dialogflow_language']||'en')[_0x5bec('0x13')](function(_0x4b70df){_0x4d178b(null,_0x4b70df);})[_0x5bec('0x15')](function(_0x27b40b){_0x4d178b(_0x27b40b);});};AGIVertices['prototype'][_0x5bec('0x77')]=function(_0x487ce4,_0xd35279){scripts['googleDialogflowV2'](this[_0x5bec('0x36')][_0x5bec('0x37')],_0x487ce4['dialogflowV2_project_id'],_0x487ce4[_0x5bec('0x78')],_0x487ce4[_0x5bec('0x79')],_0x487ce4[_0x5bec('0x5b')],_0x487ce4[_0x5bec('0x7a')]||'en')[_0x5bec('0x13')](function(_0x405660){_0xd35279(null,_0x405660);})['catch'](function(_0x433ad2){_0xd35279(_0x433ad2);});};AGIVertices['prototype'][_0x5bec('0x7b')]=function(_0x5a1070,_0x59882b){scripts[_0x5bec('0x7b')](this[_0x5bec('0x36')],_0x5a1070)[_0x5bec('0x13')](function(_0x4fccce){_0x59882b(null,_0x4fccce);})[_0x5bec('0x15')](function(_0x6914ac){_0x59882b(_0x6914ac);});};AGIVertices[_0x5bec('0x10')][_0x5bec('0x7c')]=function(_0x5782af,_0x2c7ffa){scripts[_0x5bec('0x7c')](_0x5782af[_0x5bec('0x7d')],_0x5782af[_0x5bec('0x5b')],_0x5782af['ispeech_tts_language']||_0x5bec('0x5d'),_0x5782af[_0x5bec('0x7e')])[_0x5bec('0x13')](function(_0x268680){_0x2c7ffa(null,_0x268680);})[_0x5bec('0x15')](function(_0x333d33){_0x2c7ffa(_0x333d33);});};AGIVertices[_0x5bec('0x10')][_0x5bec('0x7f')]=function(_0x5b8560,_0x2dc78b,_0x445ea3){scripts[_0x5bec('0x7f')](_0x2dc78b,_0x5b8560[_0x5bec('0x7d')],_0x5b8560[_0x5bec('0x80')]||'en-US',this[_0x5bec('0x81')](_0x5b8560[_0x5bec('0x82')])?_0x5b8560['model']:undefined)[_0x5bec('0x13')](function(_0x528102){_0x445ea3(null,_0x528102);})[_0x5bec('0x15')](function(_0x3e09e5){_0x445ea3(_0x3e09e5);});};AGIVertices[_0x5bec('0x10')][_0x5bec('0x83')]=function(_0x3cf417,_0x4a577e){scripts[_0x5bec('0x83')](_0x3cf417[_0x5bec('0x84')],_0x3cf417[_0x5bec('0x85')],_0x3cf417[_0x5bec('0x86')],_0x3cf417[_0x5bec('0x87')]||_0x5bec('0x88'),_0x3cf417[_0x5bec('0x5b')],_0x3cf417[_0x5bec('0x89')]||_0x5bec('0x5b'))['then'](function(_0x2e71b6){_0x4a577e(null,_0x2e71b6);})[_0x5bec('0x15')](function(_0x187416){_0x4a577e(_0x187416);});};AGIVertices['prototype']['awsLex']=function(_0x1b7573,_0x153346){scripts['awsLex'](this[_0x5bec('0x36')]['uniqueid'],_0x1b7573[_0x5bec('0x84')],_0x1b7573['aws_secret_access_key'],_0x1b7573[_0x5bec('0x8a')],_0x1b7573['text'],_0x1b7573[_0x5bec('0x8b')])['then'](function(_0x3919c8){_0x153346(null,_0x3919c8);})['catch'](function(_0x209f2d){_0x153346(_0x209f2d);});};AGIVertices[_0x5bec('0x10')]['googleASR']=function(_0x2b8227,_0xd4ffe1,_0x4bee78){scripts[_0x5bec('0x8c')](_0xd4ffe1,_0x2b8227[_0x5bec('0x7d')],_0x2b8227[_0x5bec('0x8d')]||_0x5bec('0x5d'))[_0x5bec('0x13')](function(_0x21bf21){_0x4bee78(null,_0x21bf21);})[_0x5bec('0x15')](function(_0x1c9f75){_0x4bee78(_0x1c9f75);});};AGIVertices[_0x5bec('0x10')]['tildeASR']=function(_0x4e46ed,_0x57bab4,_0x53f093){scripts[_0x5bec('0x8e')](_0x57bab4,_0x4e46ed['appid'],_0x4e46ed[_0x5bec('0x8f')],_0x4e46ed['uri'])[_0x5bec('0x13')](function(_0x36faae){_0x53f093(null,_0x36faae);})[_0x5bec('0x15')](function(_0x56fe9f){_0x53f093(_0x56fe9f);});};AGIVertices[_0x5bec('0x10')]['clear']=function(_0x426190){var _0x45f5d8=_[_0x5bec('0x90')](verticesWithRetry,_0x426190[_0x5bec('0x39')])?_0x426190:_[_0x5bec('0x91')](_0x426190);for(var _0x2ffee8 in _0x45f5d8){if(_0x45f5d8[_0x5bec('0x92')](_0x2ffee8)){if(_0x45f5d8[_0x2ffee8]&&_['isString'](_0x45f5d8[_0x2ffee8])){if(_[_0x5bec('0x90')](recursiveMapAttributes,_0x2ffee8)){_0x45f5d8[_0x2ffee8]=this[_0x5bec('0x93')](_0x45f5d8[_0x2ffee8]);}else{_0x45f5d8[_0x2ffee8]=this[_0x5bec('0x94')](_0x45f5d8[_0x2ffee8]);}}}}return _0x45f5d8;};AGIVertices[_0x5bec('0x10')]['recursiveNodeIndex']=function(_0x175f7a){for(var _0x91b3eb in _0x175f7a){if(_0x175f7a[_0x5bec('0x92')](_0x91b3eb)){if(_[_0x5bec('0x95')](_0x175f7a[_0x91b3eb])){this[_0x5bec('0x96')](_0x175f7a[_0x91b3eb]);}else if(_['isArray'](_0x175f7a[_0x91b3eb])){for(var _0x4efccc=0x0;_0x4efccc<_0x175f7a[_0x91b3eb]['length'];_0x4efccc++){this['recursiveNodeIndex'](_0x175f7a[_0x91b3eb][_0x4efccc]);}}else if(_['isString'](_0x175f7a[_0x91b3eb])){_0x175f7a[_0x91b3eb]=this[_0x5bec('0x94')](_0x175f7a[_0x91b3eb]);}}}};AGIVertices['prototype'][_0x5bec('0x97')]=function(_0x1e7eec,_0x4f0bf3){for(var _0x15c29f in _0x1e7eec){if(_0x1e7eec[_0x5bec('0x92')](_0x15c29f)){if(_['isPlainObject'](_0x1e7eec[_0x15c29f])){if(!_[_0x5bec('0x44')](_0x1e7eec[_0x15c29f])){this[_0x5bec('0x97')](_0x1e7eec[_0x15c29f],util[_0x5bec('0x27')](_0x5bec('0x98'),_0x4f0bf3,_0x15c29f));}}else if(_[_0x5bec('0x99')](_0x1e7eec[_0x15c29f])){for(var _0x1d567a=0x0;_0x1d567a<_0x1e7eec[_0x15c29f][_0x5bec('0x9a')];_0x1d567a++){this[_0x5bec('0x97')](_0x1e7eec[_0x15c29f][_0x1d567a],util['format'](_0x5bec('0x98'),_0x4f0bf3,_0x15c29f+'['+_0x1d567a+']'));}}else{if(!_[_0x5bec('0x45')](_0x1e7eec[_0x15c29f])){this[_0x5bec('0x36')][_0x5bec('0x9b')](util[_0x5bec('0x27')]('%s.%s',_0x4f0bf3,_0x15c29f),_0x1e7eec[_0x15c29f]);}}}}};AGIVertices['prototype'][_0x5bec('0x93')]=function(_0x2153b2){try{var _0x35294f=JSON[_0x5bec('0x68')](_0x2153b2);this[_0x5bec('0x96')](_0x35294f);return JSON['stringify'](_0x35294f);}catch(_0x179fa5){return this[_0x5bec('0x94')](_0x2153b2);}};AGIVertices['prototype'][_0x5bec('0x94')]=function(_0x1e6a6e){var _0x48f090=_0x1e6a6e[_0x5bec('0x9c')]('{');for(var _0x3cc03a=0x1;_0x3cc03a<_0x48f090[_0x5bec('0x9a')];_0x3cc03a+=0x1){var _0x2d8262=_0x48f090[_0x3cc03a][_0x5bec('0x9c')]('}');if(_0x2d8262['length']>0x1){_0x1e6a6e=_0x1e6a6e['replaceAll']('{'+_0x2d8262[0x0]+'}',this['channel']['getVariable'](_0x2d8262[0x0])[_0x5bec('0x9d')]||_0x2d8262[0x0]);}}if(_0x48f090[_0x5bec('0x9a')]===0x1){return _0x1e6a6e[_0x5bec('0x4a')]();}return this[_0x5bec('0x94')](_0x1e6a6e);};AGIVertices[_0x5bec('0x10')][_0x5bec('0x9e')]=function(_0x558695,_0x4b7841){var _0x3da745=this[_0x5bec('0x36')]['getVariable'](_0x558695);if(_0x3da745['result']===-0x1){return _0x3da745;}logger[_0x5bec('0x2b')](util[_0x5bec('0x27')]('The\x20\x22%s\x22\x20variable\x20value\x20is:\x20%s',_0x4b7841,_0x3da745[_0x5bec('0x9d')]));return this[_0x5bec('0x36')][_0x5bec('0x9b')](_0x4b7841,_0x3da745[_0x5bec('0x9d')]);};AGIVertices[_0x5bec('0x10')][_0x5bec('0x81')]=function(_0x113d2d){return _0x113d2d&&_0x113d2d!=='0'&&_0x113d2d!=='-1'&&_0x113d2d!=='';};AGIVertices['prototype'][_0x5bec('0x9f')]=function(_0x57bb04){this['createSquareDetailsReport'][_0x5bec('0x6b')](this,_0x57bb04,'-');_0x57bb04[_0x5bec('0xa0')]=_0x57bb04[_0x5bec('0x9f')];return{'code':0xc8,'result':'-'};};AGIVertices['prototype']['mrcpsynth']=function(_0x195fd8){logger[_0x5bec('0x2b')](util[_0x5bec('0x27')](_0x5bec('0xa1'),_0x195fd8[_0x5bec('0x38')]));if(!this['isConfigured'](_0x195fd8[_0x5bec('0x5b')])){return this[_0x5bec('0x36')][_0x5bec('0xa2')]('no\x20text\x20configured');}var _0x2d0c1d='\x22'+_0x195fd8[_0x5bec('0x5b')]+'\x22';if(this['isConfigured'](_0x195fd8[_0x5bec('0x75')])){_0x2d0c1d+=','+_0x195fd8[_0x5bec('0x75')];}var _0x23ff17=this[_0x5bec('0x36')][_0x5bec('0x55')](_0x5bec('0xa3'),_0x2d0c1d);if(_0x23ff17[_0x5bec('0xa4')]===-0x1){return _0x23ff17;}return this[_0x5bec('0x36')][_0x5bec('0xa2')](util[_0x5bec('0x27')]('Executed\x20command\x20MRCPSynth\x20%s',_0x2d0c1d));};AGIVertices[_0x5bec('0x10')][_0x5bec('0xa5')]=function(_0x1ec101){logger[_0x5bec('0x2b')](util[_0x5bec('0x27')]('Enter\x20in\x20MRCPRecog\x20(%s)\x20block',_0x1ec101[_0x5bec('0x38')]));if(!this[_0x5bec('0x81')](_0x1ec101['grammar'])){return this[_0x5bec('0x36')][_0x5bec('0xa2')]('no\x20grammar\x20configured');}var _0x23a470=_0x1ec101[_0x5bec('0xa6')];if(this[_0x5bec('0x81')](_0x1ec101['options'])){_0x23a470+=','+_0x1ec101[_0x5bec('0x75')];}var _0x3d9bd7=this[_0x5bec('0x36')][_0x5bec('0x55')]('MRCPRecog',_0x23a470);if(_0x3d9bd7[_0x5bec('0xa4')]===-0x1){return _0x3d9bd7;}var _0x1a66ee=this[_0x5bec('0x9e')](_0x5bec('0xa7'),'MRCP_RECOG_CONFIDENCE');if(_0x1a66ee[_0x5bec('0xa4')]===-0x1){return _0x1a66ee;}var _0x433d37=this[_0x5bec('0x9e')](_0x5bec('0xa8'),_0x5bec('0xa9'));if(_0x433d37[_0x5bec('0xa4')]===-0x1){return _0x433d37;}var _0x1fa382=this[_0x5bec('0x9e')](_0x5bec('0xaa'),_0x5bec('0xab'));if(_0x1fa382[_0x5bec('0xa4')]===-0x1){return _0x1fa382;}return this[_0x5bec('0x36')][_0x5bec('0xa2')](util['format']('Executed\x20command\x20MRCPRecog\x20%s',_0x23a470));};AGIVertices[_0x5bec('0x10')]['agi']=function(_0x47e1b3){logger[_0x5bec('0x2b')](util[_0x5bec('0x27')](_0x5bec('0xac'),_0x47e1b3[_0x5bec('0x38')]));return this[_0x5bec('0x36')][_0x5bec('0x7')]([_0x47e1b3['command'],_0x47e1b3[_0x5bec('0xad')]]);};AGIVertices['prototype'][_0x5bec('0xae')]=function(_0x3ddd70){logger[_0x5bec('0x2b')](util['format'](_0x5bec('0xaf'),_0x3ddd70[_0x5bec('0x38')]));if(this[_0x5bec('0x81')](_0x3ddd70['timeout'])){logger[_0x5bec('0x2b')](util[_0x5bec('0x27')]('Wait\x20%s\x20seconds\x20before\x20answer',_0x3ddd70[_0x5bec('0x63')]));var _0x5ccad0=this[_0x5bec('0x36')][_0x5bec('0xb0')](_0x3ddd70['timeout']);if(_0x5ccad0[_0x5bec('0xa4')]===-0x1){return _0x5ccad0;}}return this[_0x5bec('0x36')][_0x5bec('0xae')]();};AGIVertices['prototype'][_0x5bec('0xb1')]=function(_0x3c30a7){logger[_0x5bec('0x2b')](util[_0x5bec('0x27')](_0x5bec('0xb2'),_0x3c30a7[_0x5bec('0x38')]));if(!this[_0x5bec('0x81')](_0x3c30a7[_0x5bec('0x47')])){return this[_0x5bec('0x36')][_0x5bec('0x2a')](_0x3c30a7,_0x5bec('0xb3'));}_0x3c30a7['scheduledAt']=moment();if(this['isConfigured'](_0x3c30a7[_0x5bec('0xb4')])){_0x3c30a7[_0x5bec('0x48')]=moment()['add'](_0x3c30a7['delay'],_0x5bec('0xb5'));}if(!this[_0x5bec('0x81')](_0x3c30a7[_0x5bec('0x4b')])){_0x3c30a7[_0x5bec('0x4b')]=0x2;}this[_0x5bec('0x43')][_0x5bec('0x6b')](this,_0x3c30a7);return this[_0x5bec('0x36')]['noop'](util[_0x5bec('0x27')]('CALLBACK\x20added\x20phone:\x20%s\x20on\x20list:\x20%s\x20at\x20%s',_0x3c30a7[_0x5bec('0xb6')],_0x3c30a7[_0x5bec('0x47')],_0x3c30a7[_0x5bec('0x48')]));};AGIVertices[_0x5bec('0x10')][_0x5bec('0xb7')]=function(_0x3d89df){logger[_0x5bec('0x2b')](util['format'](_0x5bec('0xb8'),_0x3d89df['label']));var _0x236cb8=this[_0x5bec('0x36')]['exec'](_0x3d89df['application'],_0x3d89df['options']);if(_0x236cb8[_0x5bec('0xa4')]===-0x1){return _0x236cb8;}return this['channel'][_0x5bec('0xa2')](util[_0x5bec('0x27')](_0x5bec('0xb9'),_0x3d89df[_0x5bec('0xba')],_0x3d89df['options']));};AGIVertices[_0x5bec('0x10')][_0x5bec('0xbb')]=function(_0x5f2f79){logger[_0x5bec('0x2b')](util[_0x5bec('0x27')]('Enter\x20in\x20LUMENVOXTTS\x20(%s)\x20block',_0x5f2f79['label']));if(!this[_0x5bec('0x81')](_0x5f2f79[_0x5bec('0x5b')])){return this[_0x5bec('0x36')]['noop'](_0x5bec('0xbc'));}var _0x58022c='\x22'+_0x5f2f79[_0x5bec('0x5b')]+'\x22';if(this['isConfigured'](_0x5f2f79[_0x5bec('0x75')])){_0x58022c+=','+_0x5f2f79['options'];}var _0x4b83b9=this[_0x5bec('0x36')]['exec'](_0x5bec('0xa3'),_0x58022c);if(_0x4b83b9['result']===-0x1){return _0x4b83b9;}return this[_0x5bec('0x36')][_0x5bec('0xa2')](util[_0x5bec('0x27')](_0x5bec('0xbd'),_0x58022c));};AGIVertices[_0x5bec('0x10')][_0x5bec('0xbe')]=function(_0x51a78a){logger[_0x5bec('0x2b')](util['format'](_0x5bec('0xbf'),_0x51a78a[_0x5bec('0x38')]));if(!this[_0x5bec('0x81')](_0x51a78a[_0x5bec('0x5b')])){return this[_0x5bec('0x36')][_0x5bec('0xa2')](_0x5bec('0xbc'));}var _0x450c79='\x22'+_0x51a78a[_0x5bec('0x5b')]+'\x22';if(this[_0x5bec('0x81')](_0x51a78a[_0x5bec('0x75')])){_0x450c79+=','+_0x51a78a[_0x5bec('0x75')];}var _0x40487f=this[_0x5bec('0x36')][_0x5bec('0x55')](_0x5bec('0xa3'),_0x450c79);if(_0x40487f[_0x5bec('0xa4')]===-0x1){return _0x40487f;}return this[_0x5bec('0x36')][_0x5bec('0xa2')](util[_0x5bec('0x27')](_0x5bec('0xbd'),_0x450c79));};AGIVertices['prototype'][_0x5bec('0xc0')]=function(_0x4f2e2f){logger[_0x5bec('0x2b')](util[_0x5bec('0x27')](_0x5bec('0xc1'),_0x4f2e2f['label']));if(!this['isConfigured'](_0x4f2e2f[_0x5bec('0xa6')])){return this['channel'][_0x5bec('0xa2')](_0x5bec('0xc2'));}var _0x494a3f=_0x4f2e2f[_0x5bec('0xa6')];if(this['isConfigured'](_0x4f2e2f[_0x5bec('0x75')])){_0x494a3f+=','+_0x4f2e2f[_0x5bec('0x75')];}var _0x53d172=this[_0x5bec('0x36')]['exec'](_0x5bec('0xc3'),_0x494a3f);if(_0x53d172['result']===-0x1){return _0x53d172;}var _0x2d9e1e=this[_0x5bec('0x9e')](_0x5bec('0xa7'),_0x5bec('0xc4'));if(_0x2d9e1e[_0x5bec('0xa4')]===-0x1){return _0x2d9e1e;}var _0x4c819d=this[_0x5bec('0x9e')](_0x5bec('0xa8'),_0x5bec('0xc5'));if(_0x4c819d['result']===-0x1){return _0x4c819d;}var _0x3396f0=this['getAndSetVariable'](_0x5bec('0xaa'),'LUMENVOX_ASR_INSTANCE');if(_0x3396f0[_0x5bec('0xa4')]===-0x1){return _0x3396f0;}return this[_0x5bec('0x36')][_0x5bec('0xa2')](util['format']('Executed\x20command\x20MRCPRecog\x20%s',_0x494a3f));};AGIVertices[_0x5bec('0x10')][_0x5bec('0xc6')]=function(_0x2650af){logger['info'](util['format'](_0x5bec('0xc7'),_0x2650af[_0x5bec('0x38')]));if(!this['isConfigured'](_0x2650af[_0x5bec('0xa6')])){return this[_0x5bec('0x36')][_0x5bec('0xa2')](_0x5bec('0xc2'));}var _0x4f177e=_0x2650af[_0x5bec('0xa6')];if(this['isConfigured'](_0x2650af['options'])){_0x4f177e+=','+_0x2650af[_0x5bec('0x75')];}var _0x33a88a=this['channel'][_0x5bec('0x55')](_0x5bec('0xc3'),_0x4f177e);if(_0x33a88a[_0x5bec('0xa4')]===-0x1){return _0x33a88a;}var _0x5b1bd1=this['getAndSetVariable']('RECOG_CONFIDENCE()',_0x5bec('0xc8'));if(_0x5b1bd1[_0x5bec('0xa4')]===-0x1){return _0x5b1bd1;}var _0x41b127=this[_0x5bec('0x9e')]('RECOG_INPUT()',_0x5bec('0xc9'));if(_0x41b127['result']===-0x1){return _0x41b127;}var _0x42f306=this[_0x5bec('0x9e')](_0x5bec('0xaa'),_0x5bec('0xca'));if(_0x42f306['result']===-0x1){return _0x42f306;}return this[_0x5bec('0x36')][_0x5bec('0xa2')](util[_0x5bec('0x27')]('Executed\x20command\x20MRCPRecog\x20%s',_0x4f177e));};AGIVertices[_0x5bec('0x10')][_0x5bec('0xcb')]=function(_0x3f1b07){logger[_0x5bec('0x2b')](util[_0x5bec('0x27')](_0x5bec('0xcc'),_0x3f1b07[_0x5bec('0x38')]));if(!this[_0x5bec('0x81')](_0x3f1b07[_0x5bec('0xcd')])){return this[_0x5bec('0x36')][_0x5bec('0x2a')](_0x3f1b07,_0x5bec('0xce'));}var _0x49ed9e=this[_0x5bec('0xcf')][_0x5bec('0x6b')](this,_0x3f1b07[_0x5bec('0xcd')]);if(!_0x49ed9e){return this[_0x5bec('0x36')][_0x5bec('0x2a')](_0x3f1b07,_0x5bec('0xd0'));}if(!this[_0x5bec('0x81')](_0x3f1b07[_0x5bec('0x2d')])){return this[_0x5bec('0x36')]['error'](_0x3f1b07,_0x5bec('0xd1'));}var _0x1d4f40=_0x3f1b07[_0x5bec('0x2d')]['replace'](/(\r\n|\n|\r)/gm,'\x20');this['channel'][_0x5bec('0xa2')](util[_0x5bec('0x27')]('query:\x20%s',_0x1d4f40));var _0x2d04ac=this[_0x5bec('0x28')][_0x5bec('0x6b')](this,_0x49ed9e,_0x1d4f40);this[_0x5bec('0x35')][_0x5bec('0x6b')](this,_0x3f1b07,_0x1d4f40);if(!this['isConfigured'](_0x3f1b07[_0x5bec('0xd2')])){return this[_0x5bec('0x36')][_0x5bec('0xa2')]('no\x20variable\x20selected\x20for\x20the\x20result');}var _0xc19322=this['getVariable'][_0x5bec('0x6b')](this,_0x3f1b07[_0x5bec('0xd2')]);if(!_0xc19322){return this[_0x5bec('0x36')][_0x5bec('0x2a')](_0x3f1b07,'no\x20variable\x20found');}var _0x4e6f3e=this;_0x2d04ac[_0x5bec('0xd3')](function(_0x2d9c4d,_0x2f3677){Object[_0x5bec('0xd4')](_0x2d9c4d)[_0x5bec('0xd3')](function(_0x582453){_0x4e6f3e[_0x5bec('0x36')][_0x5bec('0x9b')](util[_0x5bec('0x27')](_0x5bec('0xd5'),_0xc19322,_0x2f3677,_0x582453),_0x2d9c4d[_0x582453]);});});this['channel'][_0x5bec('0x9b')](util[_0x5bec('0x27')](_0x5bec('0xd6'),_0xc19322),_0x2d04ac[_0x5bec('0x9a')]);return this[_0x5bec('0x36')][_0x5bec('0xa2')](util[_0x5bec('0x27')]('variable\x20%s\x20set',_0xc19322));};AGIVertices[_0x5bec('0x10')]['dial']=function(_0x5af7a8){logger[_0x5bec('0xd7')](util[_0x5bec('0x27')](_0x5bec('0xd8'),_0x5af7a8[_0x5bec('0x38')]));if(!this[_0x5bec('0x81')](_0x5af7a8[_0x5bec('0xd9')])){return this[_0x5bec('0x36')][_0x5bec('0x2a')](_0x5af7a8,'no\x20user\x20selected');}var _0x64d84f=this[_0x5bec('0x1b')]['sync'](this,_0x5af7a8[_0x5bec('0xd9')]);if(!_0x64d84f){return this['channel'][_0x5bec('0x2a')](_0x5af7a8,_0x5bec('0xda'));}var _0x110988=this[_0x5bec('0x36')][_0x5bec('0x55')]('DIAL',[util[_0x5bec('0x27')](_0x5bec('0xdb'),_0x64d84f),_0x5af7a8[_0x5bec('0x63')],_0x5af7a8[_0x5bec('0xdc')],_0x5af7a8[_0x5bec('0x6e')]]);if(_0x110988[_0x5bec('0xa4')]===-0x1){return _0x110988;}return this[_0x5bec('0x36')][_0x5bec('0xa2')](util['format'](_0x5bec('0xdd'),'DIAL'));};AGIVertices[_0x5bec('0x10')][_0x5bec('0xde')]=function(_0x5d2589){logger['info'](util[_0x5bec('0x27')](_0x5bec('0xdf'),_0x5d2589[_0x5bec('0x38')]));if(!this['isConfigured'](_0x5d2589[_0x5bec('0x7d')])){return this[_0x5bec('0x36')][_0x5bec('0xa2')](_0x5bec('0xe0'));}if(!this[_0x5bec('0x81')](_0x5d2589[_0x5bec('0x5b')])){return this['channel'][_0x5bec('0xa2')](_0x5bec('0xbc'));}this[_0x5bec('0x36')][_0x5bec('0xe1')]=!![];this['createSquareDetailsReport'](_0x5d2589);this[_0x5bec('0x42')](_0x5d2589[_0x5bec('0x5b')],'in','','');this[_0x5bec('0x36')][_0x5bec('0xa2')](util[_0x5bec('0x27')]('Trying\x20Dialogflow:\x20%s',_0x5d2589[_0x5bec('0x5b')]));var _0x169e6d=this['googleDialogflow'][_0x5bec('0x6b')](this,_0x5d2589);if(_0x169e6d){for(var _0x574465 in _0x169e6d){if(_0x169e6d[_0x5bec('0x92')](_0x574465)){this[_0x5bec('0x36')][_0x5bec('0x9b')](util[_0x5bec('0x27')](_0x5bec('0xe2'),_0x574465[_0x5bec('0x66')]()),_0x169e6d[_0x574465]);}}this[_0x5bec('0x42')](_0x169e6d[_0x5bec('0xe3')],_0x5bec('0xe4'),_0x5bec('0xde'),'');return this[_0x5bec('0x36')][_0x5bec('0xa2')](util[_0x5bec('0x27')](_0x5bec('0xe5'),_0x169e6d[_0x5bec('0xe3')]));}return this[_0x5bec('0x36')][_0x5bec('0x2a')](_0x5d2589,_0x5bec('0xe6'));};AGIVertices['prototype'][_0x5bec('0xe7')]=function(_0x379d12){logger['info'](util['format'](_0x5bec('0xe8'),_0x379d12[_0x5bec('0x38')]));if(!this[_0x5bec('0x81')](_0x379d12[_0x5bec('0xe9')])){return this['channel'][_0x5bec('0xa2')](_0x5bec('0xea'));}if(!this['isConfigured'](_0x379d12[_0x5bec('0x78')])){return this[_0x5bec('0x36')][_0x5bec('0xa2')](_0x5bec('0xeb'));}if(!this[_0x5bec('0x81')](_0x379d12[_0x5bec('0x79')])){return this[_0x5bec('0x36')]['noop']('no\x20private_key\x20configured');}if(!this[_0x5bec('0x81')](_0x379d12[_0x5bec('0x7a')])){return this['channel'][_0x5bec('0xa2')](_0x5bec('0xec'));}if(!this['isConfigured'](_0x379d12[_0x5bec('0x5b')])){return this[_0x5bec('0x36')][_0x5bec('0xa2')]('no\x20text\x20configured');}this['channel']['bot']=!![];this[_0x5bec('0x35')](_0x379d12);this[_0x5bec('0x42')](_0x379d12['text'],'in','','');this[_0x5bec('0x36')]['noop'](util[_0x5bec('0x27')](_0x5bec('0xed'),_0x379d12[_0x5bec('0x5b')]));var _0x27fb59=this['googleDialogflowV2'][_0x5bec('0x6b')](this,_0x379d12);if(_0x27fb59){for(var _0x45b48c in _0x27fb59){if(_0x27fb59[_0x5bec('0x92')](_0x45b48c)){if(_0x45b48c!==_0x5bec('0xee')){this[_0x5bec('0x36')]['setVariable'](util[_0x5bec('0x27')]('DIALOGFLOW_%s',_0x45b48c[_0x5bec('0x66')]()),_0x27fb59[_0x45b48c]);}}}this[_0x5bec('0x42')](_0x27fb59['speech'],_0x5bec('0xe4'),_0x5bec('0xe7'),_0x27fb59[_0x5bec('0xee')]);return this['channel'][_0x5bec('0xa2')](util[_0x5bec('0x27')]('DialogflowV2\x20Result\x20%s',_0x27fb59[_0x5bec('0xe3')]));}return this[_0x5bec('0x36')][_0x5bec('0x2a')](_0x379d12,_0x5bec('0xef'));};AGIVertices['prototype'][_0x5bec('0xf0')]=function(_0x28fadf){logger[_0x5bec('0x2b')](util[_0x5bec('0x27')]('Enter\x20in\x20SESTEKNDA\x20(%s)\x20block',_0x28fadf[_0x5bec('0x38')]));if(!this['isConfigured'](_0x28fadf[_0x5bec('0xf1')])){return this[_0x5bec('0x36')]['noop'](_0x5bec('0xf2'));}if(!this[_0x5bec('0x81')](_0x28fadf[_0x5bec('0xf3')])){return this['channel'][_0x5bec('0xa2')]('no\x20username\x20configured');}if(!this[_0x5bec('0x81')](_0x28fadf[_0x5bec('0xf4')])){return this['channel'][_0x5bec('0xa2')](_0x5bec('0xf5'));}if(!this[_0x5bec('0x81')](_0x28fadf[_0x5bec('0xf6')])){return this['channel'][_0x5bec('0xa2')](_0x5bec('0xbc'));}this[_0x5bec('0x36')][_0x5bec('0xe1')]=!![];this[_0x5bec('0x35')](_0x28fadf);this[_0x5bec('0x42')](_0x28fadf['text'],'in','','');this[_0x5bec('0x36')][_0x5bec('0xa2')](util[_0x5bec('0x27')](_0x5bec('0xf7'),_0x28fadf[_0x5bec('0x5b')]));var _0x1fad0d=this['sestekNDA'][_0x5bec('0x6b')](this,_0x28fadf);if(_0x1fad0d){for(var _0x25da79 in _0x1fad0d){if(_0x1fad0d['hasOwnProperty'](_0x25da79)){this[_0x5bec('0x36')]['setVariable'](util['format'](_0x5bec('0xf8'),_0x25da79[_0x5bec('0x66')]()),_0x1fad0d[_0x25da79]);}}this['createSquareMessage'](_0x1fad0d[_0x5bec('0xe3')],'out',_0x5bec('0xf0'),'');if(_0x1fad0d[_0x5bec('0xf9')]){this[_0x5bec('0x36')][_0x5bec('0xa2')](util['format'](_0x5bec('0xfa'),_0x1fad0d['audiofile']));var _0x3ed0b7=this[_0x5bec('0x36')]['streamFile'](_0x1fad0d[_0x5bec('0xf9')]);try{fs[_0x5bec('0xfb')](_0x1fad0d['audiofile']+_0x5bec('0xfc'));}catch(_0x1b8cd2){logger['error'](_0x1b8cd2);}return _0x3ed0b7;}else{return this['channel'][_0x5bec('0xa2')](util[_0x5bec('0x27')](_0x5bec('0xfd'),_0x1fad0d[_0x5bec('0xe3')]));}}return this['channel'][_0x5bec('0x2a')](_0x28fadf,_0x5bec('0xfe'));};AGIVertices[_0x5bec('0x10')][_0x5bec('0xff')]=function(_0x4532d9){logger[_0x5bec('0x2b')](util[_0x5bec('0x27')](_0x5bec('0x100'),_0x4532d9[_0x5bec('0x38')]));return this[_0x5bec('0x36')][_0x5bec('0xa2')](_0x5bec('0xff'));};AGIVertices[_0x5bec('0x10')]['ext_dial']=function(_0x471ddb){logger[_0x5bec('0x2b')](util[_0x5bec('0x27')]('Enter\x20in\x20EXTERNAL\x20DIAL\x20(%s)\x20block',_0x471ddb['label']));var _0x49a486='';if(_0x471ddb[_0x5bec('0x101')]){if(!this[_0x5bec('0x81')](_0x471ddb['trunk_id'])){return this['channel'][_0x5bec('0x2a')](_0x471ddb,_0x5bec('0x102'));}else{var _0x52506e=parseInt(_0x471ddb[_0x5bec('0x101')],0xa);if(isNaN(_0x52506e)){_0x49a486=_0x471ddb[_0x5bec('0x101')];}else{_0x49a486=this['getTrunk'][_0x5bec('0x6b')](this,_0x471ddb[_0x5bec('0x101')]);if(!_0x49a486){return this['channel']['error'](_0x471ddb,_0x5bec('0x103'));}}}}else if(_0x471ddb[_0x5bec('0x104')]){_0x49a486=_0x471ddb[_0x5bec('0x104')];}else{return this[_0x5bec('0x36')][_0x5bec('0x2a')](_0x471ddb,_0x5bec('0x102'));}var _0x3b095e=this[_0x5bec('0x36')][_0x5bec('0x55')](_0x5bec('0x105'),[util[_0x5bec('0x27')](_0x5bec('0x106'),_0x49a486,_0x471ddb[_0x5bec('0xb6')]),_0x471ddb['timeout'],_0x471ddb['opts'],_0x471ddb[_0x5bec('0x6e')]]);if(_0x3b095e['result']===-0x1){return _0x3b095e;}return this['channel'][_0x5bec('0xa2')](util[_0x5bec('0x27')](_0x5bec('0xdd'),'DIAL'));};AGIVertices[_0x5bec('0x10')][_0x5bec('0x107')]=function(_0x40197d){logger[_0x5bec('0x2b')](util['format'](_0x5bec('0x108'),_0x40197d[_0x5bec('0x38')]));return this[_0x5bec('0x36')][_0x5bec('0xa2')](_0x5bec('0x107'));};AGIVertices[_0x5bec('0x10')]['getdigits']=function(_0x5c52e8){logger[_0x5bec('0x2b')](util[_0x5bec('0x27')](_0x5bec('0x109'),_0x5c52e8[_0x5bec('0x38')]));if(_0x5c52e8[_0x5bec('0xa0')]===0x0){return this[_0x5bec('0x9f')](_0x5c52e8);}_0x5c52e8[_0x5bec('0xa0')]-=0x1;if(!this[_0x5bec('0x81')](_0x5c52e8[_0x5bec('0x10a')])){return this['channel'][_0x5bec('0x2a')](_0x5c52e8,_0x5bec('0x10b'));}var _0x13c974=this[_0x5bec('0x1e')][_0x5bec('0x6b')](this,_0x5c52e8[_0x5bec('0x10a')]);if(!_0x13c974){return this[_0x5bec('0x36')][_0x5bec('0x2a')](_0x5c52e8,_0x5bec('0x10c'));}if(!this['isConfigured'](_0x5c52e8[_0x5bec('0xd2')])){return this[_0x5bec('0x36')][_0x5bec('0x2a')](_0x5bec('0x10d'));}var _0x64a46f=this[_0x5bec('0x36')][_0x5bec('0x10e')](_0x13c974,_0x5c52e8[_0x5bec('0x10f')],_0x5c52e8['maxdigit']);var _0x57bac7=_0x64a46f['result']?_0x64a46f[_0x5bec('0xa4')][_0x5bec('0x4a')]():'';logger[_0x5bec('0x2b')](_0x5bec('0x110'),JSON[_0x5bec('0x70')](_0x64a46f));if(_0x64a46f[_0x5bec('0xa4')]===-0x1){this['createSquareDetailsReport'][_0x5bec('0x6b')](this,_0x5c52e8,_0x57bac7);return _0x64a46f;}else if(_0x64a46f[_0x5bec('0x9d')]===_0x5bec('0x63')){_0x64a46f[_0x5bec('0xa4')]=_0x57bac7[_0x5bec('0x9a')]>=parseInt(_0x5c52e8['mindigit'])?'x':'i';}else{_0x64a46f[_0x5bec('0xa4')]=_0x57bac7['length']>=parseInt(_0x5c52e8[_0x5bec('0x111')])&&_0x57bac7[_0x5bec('0x9a')]<=parseInt(_0x5c52e8[_0x5bec('0x112')])?'x':'i';}var _0x181838=this[_0x5bec('0x11')][_0x5bec('0x6b')](this,_0x5c52e8[_0x5bec('0xd2')]);if(!_0x181838){return this[_0x5bec('0x36')][_0x5bec('0x2a')](_0x5c52e8,_0x5bec('0x113'));}this[_0x5bec('0x36')]['setVariable'](_0x181838,_0x57bac7);if(this['isConfigured'](_0x5c52e8[_0x5bec('0x114')])){var _0x214fcc=parseInt(_0x5c52e8['hiddendigitsnum'],0xa);var _0x49836e=rs[_0x5bec('0x115')]({'charset':'*','length':_0x214fcc});var _0x49fb43=_0x57bac7[_0x5bec('0x9a')];if(_0x49fb43>0x0){if(_0x49fb43>_0x214fcc){this[_0x5bec('0x35')][_0x5bec('0x6b')](this,_0x5c52e8,_0x5c52e8['hiddendigitspos']==='first'?_0x49836e+_0x57bac7[_0x5bec('0x116')](_0x214fcc):_0x57bac7['substr'](0x0,_0x49fb43-_0x214fcc)+_0x49836e);}else{this[_0x5bec('0x35')][_0x5bec('0x6b')](this,_0x5c52e8,rs[_0x5bec('0x115')]({'charset':'*','length':_0x49fb43}));}}else{this[_0x5bec('0x35')][_0x5bec('0x6b')](this,_0x5c52e8,'');}}else{this[_0x5bec('0x35')]['sync'](this,_0x5c52e8,_0x57bac7);}return _0x64a46f;};AGIVertices['prototype'][_0x5bec('0xe')]=function(_0x355b25){logger[_0x5bec('0x2b')](util[_0x5bec('0x27')](_0x5bec('0x117'),_0x355b25['label']));return this[_0x5bec('0xd')](_0x355b25);};AGIVertices[_0x5bec('0x10')]['goal']=function(_0x5e1e60){logger[_0x5bec('0x2b')](util[_0x5bec('0x27')](_0x5bec('0x118'),_0x5e1e60[_0x5bec('0x38')]));this[_0x5bec('0x35')][_0x5bec('0x6b')](this,_0x5e1e60,_0x5e1e60['goalname']);return this[_0x5bec('0x36')][_0x5bec('0xa2')](util[_0x5bec('0x27')]('GOAL\x20%s',_0x5e1e60[_0x5bec('0x119')]));};AGIVertices['prototype']['awspolly']=function(_0x353666){logger[_0x5bec('0x2b')](util[_0x5bec('0x27')](_0x5bec('0x11a'),_0x353666[_0x5bec('0x38')]));if(!this['isConfigured'](_0x353666[_0x5bec('0x84')])||!this['isConfigured'](_0x353666[_0x5bec('0x85')])){return this[_0x5bec('0x36')][_0x5bec('0xa2')]('no\x20valid\x20credentials\x20configured');}if(!this['isConfigured'](_0x353666['text'])){return this[_0x5bec('0x36')][_0x5bec('0xa2')](_0x5bec('0xbc'));}this['channel'][_0x5bec('0xa2')](util[_0x5bec('0x27')](_0x5bec('0x11b'),_0x353666[_0x5bec('0x5b')]));var _0x5050ed=this[_0x5bec('0x83')][_0x5bec('0x6b')](this,_0x353666);if(_0x5050ed){this['channel'][_0x5bec('0xa2')](util['format'](_0x5bec('0x11c'),_0x5050ed));var _0x20038e=this['channel'][_0x5bec('0x11d')](_0x5050ed);try{fs['unlink'](_0x5050ed+_0x5bec('0xfc'));}catch(_0x51e3f7){logger[_0x5bec('0x2a')](_0x51e3f7);}return _0x20038e;}return this[_0x5bec('0x36')][_0x5bec('0x2a')](_0x353666,'aws\x20Polly\x20is\x20unreachable');};AGIVertices[_0x5bec('0x10')]['awslex']=function(_0x16b876){logger[_0x5bec('0x2b')](util[_0x5bec('0x27')](_0x5bec('0x11e'),_0x16b876['label']));if(!this[_0x5bec('0x81')](_0x16b876[_0x5bec('0x84')])||!this[_0x5bec('0x81')](_0x16b876[_0x5bec('0x85')])){return this[_0x5bec('0x36')][_0x5bec('0xa2')](_0x5bec('0x11f'));}if(!this[_0x5bec('0x81')](_0x16b876[_0x5bec('0x8b')])){return this[_0x5bec('0x36')][_0x5bec('0xa2')](_0x5bec('0x120'));}if(!this['isConfigured'](_0x16b876[_0x5bec('0x5b')])){return this['channel'][_0x5bec('0xa2')](_0x5bec('0xbc'));}this[_0x5bec('0x36')][_0x5bec('0xe1')]=!![];this[_0x5bec('0x35')](_0x16b876);this[_0x5bec('0x42')](_0x16b876['text'],'in','','');this[_0x5bec('0x36')][_0x5bec('0xa2')](util[_0x5bec('0x27')]('Trying\x20Amazon\x20Lex:\x20%s',_0x16b876[_0x5bec('0x5b')]));var _0x276667=this['awsLex'][_0x5bec('0x6b')](this,_0x16b876);if(_0x276667){for(var _0x446928 in _0x276667){if(_0x276667[_0x5bec('0x92')](_0x446928)&&_['isString'](_0x276667[_0x446928])){this[_0x5bec('0x36')]['setVariable'](util[_0x5bec('0x27')](_0x5bec('0x121'),_0x446928[_0x5bec('0x66')]()),_0x276667[_0x446928]);}}if(_['isNil'](_0x276667[_0x5bec('0x73')])){return this[_0x5bec('0x36')]['noop'](_0x5bec('0x122'));}else{this[_0x5bec('0x42')](_0x276667[_0x5bec('0x73')],_0x5bec('0xe4'),_0x5bec('0x123'),'');return this[_0x5bec('0x36')][_0x5bec('0xa2')](util[_0x5bec('0x27')](_0x5bec('0x124'),_0x276667[_0x5bec('0x73')]));}}return this[_0x5bec('0x36')]['error'](_0x16b876,_0x5bec('0x125'));};AGIVertices[_0x5bec('0x10')][_0x5bec('0x126')]=function(_0x1334d1){logger[_0x5bec('0x2b')](util[_0x5bec('0x27')]('Enter\x20in\x20GOOGLEASR\x20(%s)\x20block\x20%s',_0x1334d1[_0x5bec('0x38')],_0x1334d1[_0x5bec('0x63')]));if(!this[_0x5bec('0x81')](_0x1334d1[_0x5bec('0x7d')])){return this[_0x5bec('0x36')][_0x5bec('0xa2')](_0x5bec('0xe0'));}var _0x17ec65=_0x5bec('0x127');var _0x351f48=util['format']('%s/recordings/%s',FILES_PATH,rs[_0x5bec('0x115')](0x4));var _0x4ee4bc=util[_0x5bec('0x27')](_0x5bec('0x98'),_0x351f48,_0x17ec65);var _0x5de21e=!![];if(_0x1334d1['beep']==='NOBEEP'){_0x5de21e=![];}var _0x16260d=this['channel'][_0x5bec('0x128')](_0x351f48,_0x17ec65,_0x1334d1[_0x5bec('0x129')],_0x1334d1[_0x5bec('0x63')],undefined,_0x5de21e);if(_0x16260d['result']!==-0x1){this['channel']['noop'](util[_0x5bec('0x27')](_0x5bec('0x12a'),_0x4ee4bc));var _0x3bcd32=this[_0x5bec('0x8c')][_0x5bec('0x6b')](this,_0x1334d1,_0x4ee4bc);if(_0x3bcd32){for(var _0x3af1e3 in _0x3bcd32){if(_0x3bcd32[_0x5bec('0x92')](_0x3af1e3)){this[_0x5bec('0x36')][_0x5bec('0x9b')](util[_0x5bec('0x27')](_0x5bec('0x12b'),_0x3af1e3[_0x5bec('0x66')]()),_0x3bcd32[_0x3af1e3]);}}return this[_0x5bec('0x36')][_0x5bec('0xa2')](util['format'](_0x5bec('0x12c'),JSON[_0x5bec('0x70')](_0x3bcd32)));}}return _0x16260d;};AGIVertices['prototype'][_0x5bec('0x12d')]=function(_0x540383){logger[_0x5bec('0x2b')](util[_0x5bec('0x27')](_0x5bec('0x12e'),_0x540383[_0x5bec('0x38')]));if(!this['isConfigured'](_0x540383[_0x5bec('0x12f')])){return this[_0x5bec('0x36')][_0x5bec('0xa2')](_0x5bec('0x130'));}if(!this[_0x5bec('0x81')](_0x540383[_0x5bec('0x8f')])){return this[_0x5bec('0x36')]['noop'](_0x5bec('0x131'));}var _0x5971b6='wav';var _0x32bca2=util['format'](_0x5bec('0x132'),FILES_PATH,rs['generate'](0x4));var _0x92da72=util[_0x5bec('0x27')](_0x5bec('0x98'),_0x32bca2,_0x5971b6);var _0x54a712=!![];if(_0x540383['beep']==='NOBEEP'){_0x54a712=![];}var _0x30bbf7=this[_0x5bec('0x36')][_0x5bec('0x128')](_0x32bca2,_0x5971b6,_0x540383[_0x5bec('0x129')],_0x540383[_0x5bec('0x63')],undefined,_0x54a712);if(_0x30bbf7['result']!==-0x1){this[_0x5bec('0x36')][_0x5bec('0xa2')](util[_0x5bec('0x27')]('tilde\x20%s\x20file\x20created',_0x92da72));var _0x5d311d=this[_0x5bec('0x8e')][_0x5bec('0x6b')](this,_0x540383,_0x92da72);if(_0x5d311d){for(var _0x2b5e76 in _0x5d311d){if(_0x5d311d[_0x5bec('0x92')](_0x2b5e76)){this[_0x5bec('0x36')][_0x5bec('0x9b')](util[_0x5bec('0x27')](_0x5bec('0x133'),_0x2b5e76[_0x5bec('0x66')]()),_0x5d311d[_0x2b5e76]);}}return this[_0x5bec('0x36')]['noop'](util[_0x5bec('0x27')](_0x5bec('0x134'),JSON[_0x5bec('0x70')](_0x5d311d)));}}return _0x30bbf7;};AGIVertices[_0x5bec('0x10')][_0x5bec('0x135')]=function(_0x2b3181){logger[_0x5bec('0x2b')](util[_0x5bec('0x27')](_0x5bec('0x136'),_0x2b3181[_0x5bec('0x38')]));return this[_0x5bec('0x36')]['continueAt'](_0x2b3181[_0x5bec('0x137')],_0x2b3181['extension'],_0x2b3181[_0x5bec('0x3d')]);};AGIVertices['prototype'][_0x5bec('0x138')]=function(_0x377fee){logger[_0x5bec('0x2b')](util['format'](_0x5bec('0x139'),_0x377fee[_0x5bec('0x38')]));if(!this[_0x5bec('0x81')](_0x377fee[_0x5bec('0x13a')])){return this[_0x5bec('0x36')]['error'](_0x377fee,_0x5bec('0x13b'));}try{var _0x40d8e7=eval(_0x377fee['condition'])?_0x5bec('0x13c'):_0x5bec('0x13d');this['channel'][_0x5bec('0xa2')](util[_0x5bec('0x27')](_0x5bec('0x13e'),_0x377fee[_0x5bec('0x13a')],_0x40d8e7));return{'code':0xc8,'result':_0x40d8e7};}catch(_0x5854b5){return{'code':0xc8,'result':_0x5bec('0x13d')};}};AGIVertices['prototype'][_0x5bec('0x13f')]=function(_0x4acdef){logger[_0x5bec('0x2b')](util[_0x5bec('0x27')](_0x5bec('0x140'),_0x4acdef[_0x5bec('0x38')]));if(!this[_0x5bec('0x81')](_0x4acdef['interval_id'])){return this['channel'][_0x5bec('0x2a')](_0x4acdef,_0x5bec('0x141'));}var _0x55b98f=this[_0x5bec('0x142')][_0x5bec('0x6b')](this,_0x4acdef[_0x5bec('0x143')]);if(!_0x55b98f){return this[_0x5bec('0x36')][_0x5bec('0x2a')](_0x4acdef,_0x5bec('0x144'));}for(var _0x3dd7ab=0x0;_0x3dd7ab<_0x55b98f[_0x5bec('0x9a')];_0x3dd7ab+=0x1){var _0x140748=this[_0x5bec('0x36')][_0x5bec('0x11')](util[_0x5bec('0x27')]('IFTIME(%s?true:false)',_0x55b98f[_0x3dd7ab]));if(_0x140748[_0x5bec('0xa4')]===-0x1){return _0x140748;}logger['info'](util['format']('IFTIME\x20%s\x20%s',_0x55b98f[_0x3dd7ab],_0x140748[_0x5bec('0x9d')]));if(_0x140748[_0x5bec('0x9d')]===_0x5bec('0x13c')){logger[_0x5bec('0x2b')](util['format'](_0x5bec('0x145'),_0x55b98f[_0x3dd7ab],_0x5bec('0x13c')));this[_0x5bec('0x36')][_0x5bec('0xa2')](util[_0x5bec('0x27')](_0x5bec('0x145'),_0x55b98f[_0x3dd7ab],'true'));return{'code':0xc8,'result':'true'};}else{logger[_0x5bec('0x2b')](util[_0x5bec('0x27')](_0x5bec('0x145'),_0x55b98f[_0x3dd7ab],_0x5bec('0x13d')));this[_0x5bec('0x36')][_0x5bec('0xa2')](util[_0x5bec('0x27')]('IFTIME\x20%s\x20%s',_0x55b98f[_0x3dd7ab],_0x5bec('0x13d')));}}return{'code':0xc8,'result':_0x5bec('0x13d')};};AGIVertices[_0x5bec('0x10')]['hangup']=function(_0x5ca8b7){logger['info'](util[_0x5bec('0x27')](_0x5bec('0x146'),_0x5ca8b7[_0x5bec('0x38')]));return this['channel'][_0x5bec('0x147')]();};AGIVertices[_0x5bec('0x10')][_0x5bec('0x148')]=function(_0x323057){logger[_0x5bec('0x2b')](util['format']('Enter\x20in\x20ISPEECHASR\x20(%s)\x20block',_0x323057[_0x5bec('0x38')]));if(!this[_0x5bec('0x81')](_0x323057[_0x5bec('0x7d')])){return this[_0x5bec('0x36')][_0x5bec('0xa2')](_0x5bec('0xe0'));}var _0x44480d=_0x5bec('0x127');var _0x324d0a=util['format'](_0x5bec('0x132'),FILES_PATH,rs[_0x5bec('0x115')](0x4));var _0x518a1b=util['format'](_0x5bec('0x98'),_0x324d0a,_0x44480d);var _0x2db86c=!![];if(_0x323057[_0x5bec('0x149')]==='NOBEEP'){_0x2db86c=![];}var _0xa3dd0e=this[_0x5bec('0x36')][_0x5bec('0x128')](_0x324d0a,_0x44480d,_0x323057[_0x5bec('0x129')],_0x323057['timeout'],undefined,_0x2db86c);if(_0xa3dd0e[_0x5bec('0xa4')]!==-0x1){this['channel'][_0x5bec('0xa2')](util['format']('ispeech\x20%s\x20file\x20created',_0x518a1b));var _0x122abe=this[_0x5bec('0x7f')]['sync'](this,_0x323057,_0x518a1b);if(_0x122abe){for(var _0x3f4266 in _0x122abe){if(_0x122abe[_0x5bec('0x92')](_0x3f4266)){this[_0x5bec('0x36')][_0x5bec('0x9b')](util[_0x5bec('0x27')](_0x5bec('0x14a'),_0x3f4266['toUpperCase']()),_0x122abe[_0x3f4266]);}}return this[_0x5bec('0x36')]['noop'](util[_0x5bec('0x27')](_0x5bec('0x14b'),JSON['stringify'](_0x122abe)));}}return _0xa3dd0e;};AGIVertices['prototype'][_0x5bec('0x14c')]=function(_0x3cc522){logger[_0x5bec('0x2b')](util[_0x5bec('0x27')](_0x5bec('0x14d'),_0x3cc522[_0x5bec('0x38')]));if(!this[_0x5bec('0x81')](_0x3cc522[_0x5bec('0x7d')])){return this[_0x5bec('0x36')]['noop'](_0x5bec('0xe0'));}if(!this[_0x5bec('0x81')](_0x3cc522[_0x5bec('0x5b')])){return this[_0x5bec('0x36')]['noop'](_0x5bec('0xbc'));}this[_0x5bec('0x36')]['noop'](util['format']('Trying\x20ispeech\x20TTS\x20%s',_0x3cc522[_0x5bec('0x5b')]));var _0x330721=this[_0x5bec('0x7c')][_0x5bec('0x6b')](this,_0x3cc522);if(_0x330721){this['channel'][_0x5bec('0xa2')](util[_0x5bec('0x27')](_0x5bec('0x14e'),_0x330721));var _0x516600=this['channel'][_0x5bec('0x11d')](_0x330721,_0x3cc522[_0x5bec('0x129')]);try{fs['unlink'](_0x330721+_0x5bec('0xfc'));}catch(_0x424a5d){logger[_0x5bec('0x2a')](_0x424a5d);}return _0x516600;}return this[_0x5bec('0x36')][_0x5bec('0x2a')](_0x3cc522,_0x5bec('0x14f'));};AGIVertices[_0x5bec('0x10')][_0x5bec('0x150')]=function(_0x42ea6f){logger['info'](util[_0x5bec('0x27')](_0x5bec('0x151'),_0x42ea6f[_0x5bec('0x38')]));if(!this[_0x5bec('0x81')](_0x42ea6f[_0x5bec('0x152')])){return this[_0x5bec('0x36')]['error'](_0x42ea6f,_0x5bec('0x153'));}logger[_0x5bec('0x2b')](util[_0x5bec('0x27')]('FIND\x20AGENT\x20%s\x20BY\x20%s',this[_0x5bec('0x36')][_0x5bec('0x3a')],_0x42ea6f[_0x5bec('0x152')]));var _0x457e00=this['agentLogin']['sync'](this,_0x42ea6f[_0x5bec('0x152')]);if(_0x457e00){logger[_0x5bec('0x2b')](util[_0x5bec('0x27')](_0x5bec('0x154'),this['channel'][_0x5bec('0x3a')],_0x42ea6f[_0x5bec('0x152')]));this[_0x5bec('0x36')][_0x5bec('0xa2')](util[_0x5bec('0x27')]('AGENT\x20%s\x20FOUND\x20BY',this[_0x5bec('0x36')]['callerid'],_0x42ea6f['findBy']));return{'code':0xc8,'result':_0x5bec('0x155')};}else{logger[_0x5bec('0x2b')](util[_0x5bec('0x27')]('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this['channel'][_0x5bec('0x3a')],_0x42ea6f['findBy']));this['channel'][_0x5bec('0xa2')](util[_0x5bec('0x27')](_0x5bec('0x156'),this[_0x5bec('0x36')][_0x5bec('0x3a')],_0x42ea6f[_0x5bec('0x152')]));return{'code':0xc8,'result':_0x5bec('0x157')};}};AGIVertices[_0x5bec('0x10')][_0x5bec('0x158')]=function(_0x56427e){logger[_0x5bec('0x2b')](util[_0x5bec('0x27')](_0x5bec('0x159'),_0x56427e[_0x5bec('0x38')]));if(!this[_0x5bec('0x81')](_0x56427e[_0x5bec('0x152')])){return this['channel'][_0x5bec('0x2a')](_0x56427e,'no\x20find\x20by\x20configured');}logger[_0x5bec('0x2b')](util[_0x5bec('0x27')](_0x5bec('0x15a'),this[_0x5bec('0x36')]['callerid'],_0x56427e[_0x5bec('0x152')]));var _0x1b41bc=this['agentLogout'][_0x5bec('0x6b')](this,_0x56427e[_0x5bec('0x152')]);if(_0x1b41bc){logger[_0x5bec('0x2b')](util[_0x5bec('0x27')](_0x5bec('0x154'),this[_0x5bec('0x36')]['callerid'],_0x56427e['findBy']));this[_0x5bec('0x36')][_0x5bec('0xa2')](util[_0x5bec('0x27')]('AGENT\x20%s\x20FOUND\x20BY',this[_0x5bec('0x36')]['callerid'],_0x56427e[_0x5bec('0x152')]));return{'code':0xc8,'result':_0x5bec('0x155')};}else{logger[_0x5bec('0x2b')](util[_0x5bec('0x27')](_0x5bec('0x156'),this[_0x5bec('0x36')][_0x5bec('0x3a')],_0x56427e[_0x5bec('0x152')]));this[_0x5bec('0x36')][_0x5bec('0xa2')](util[_0x5bec('0x27')](_0x5bec('0x156'),this[_0x5bec('0x36')][_0x5bec('0x3a')],_0x56427e[_0x5bec('0x152')]));return{'code':0xc8,'result':'failure'};}};AGIVertices[_0x5bec('0x10')][_0x5bec('0x15b')]=function(_0x22ca59){logger[_0x5bec('0x2b')](util[_0x5bec('0x27')](_0x5bec('0x15c'),_0x22ca59['label']));if(!this[_0x5bec('0x81')](_0x22ca59[_0x5bec('0x15d')])){return this[_0x5bec('0x36')][_0x5bec('0x2a')](_0x22ca59,_0x5bec('0x15e'));}this[_0x5bec('0x36')][_0x5bec('0xa2')](util['format'](_0x5bec('0x15f'),_0x22ca59[_0x5bec('0x15d')]));var _0x5ea878=eval(_0x22ca59['operation']);if(!this[_0x5bec('0x81')](_0x22ca59[_0x5bec('0xd2')])){return this[_0x5bec('0x36')][_0x5bec('0xa2')](_0x5bec('0x10d'));}var _0x2273e2=this[_0x5bec('0x11')]['sync'](this,_0x22ca59[_0x5bec('0xd2')]);if(!_0x2273e2){return this[_0x5bec('0x36')]['error'](_0x22ca59,_0x5bec('0x113'));}if(_[_0x5bec('0x99')](_0x5ea878)){var _0x17ed5f=this;_0x5ea878[_0x5bec('0xd3')](function(_0x4a444a,_0x39922d){_0x17ed5f['channel'][_0x5bec('0x9b')](util[_0x5bec('0x27')](_0x5bec('0x160'),_0x2273e2,_0x39922d),_0x4a444a);});return this[_0x5bec('0x36')][_0x5bec('0xa2')](util[_0x5bec('0x27')](_0x5bec('0x161'),_0x2273e2));}else{return this['channel'][_0x5bec('0x9b')](_0x2273e2,_0x5ea878);}};AGIVertices[_0x5bec('0x10')][_0x5bec('0xc')]=function(_0x252774){logger['info'](util['format'](_0x5bec('0x162'),_0x252774[_0x5bec('0x38')]));if(_0x252774[_0x5bec('0xa0')]===0x0){return this[_0x5bec('0x9f')](_0x252774);}_0x252774[_0x5bec('0xa0')]-=0x1;if(!this[_0x5bec('0x81')](_0x252774[_0x5bec('0x10a')])){return this['channel'][_0x5bec('0x2a')](_0x252774,_0x5bec('0x10b'));}var _0x5de05a=this[_0x5bec('0x1e')]['sync'](this,_0x252774[_0x5bec('0x10a')]);if(!_0x5de05a){return this[_0x5bec('0x36')][_0x5bec('0x2a')](_0x252774,_0x5bec('0x10c'));}var _0x117767=this['channel'][_0x5bec('0x10e')](_0x5de05a,_0x252774[_0x5bec('0x10f')],_0x252774[_0x5bec('0x163')]);var _0xf36770=_0x117767[_0x5bec('0xa4')];if(_0x117767[_0x5bec('0xa4')]===-0x1){this[_0x5bec('0x35')][_0x5bec('0x6b')](this,_0x252774,'-1');return _0x117767;}else if(_0x117767[_0x5bec('0x9d')]===_0x5bec('0x63')){_0x117767[_0x5bec('0xa4')]=_0x117767['result']['length']>0x0?_0x117767['result']:'t';}else if(_['isEmpty'](_0x117767[_0x5bec('0xa4')])){_0x117767[_0x5bec('0xa4')]='#';_0xf36770='#';}if(!this['isConfigured'](_0x252774[_0x5bec('0xd2')])){this[_0x5bec('0x36')][_0x5bec('0xa2')]('no\x20variable\x20selected\x20for\x20the\x20result');}else{var _0xb61b03=this[_0x5bec('0x11')][_0x5bec('0x6b')](this,_0x252774[_0x5bec('0xd2')]);if(!_0xb61b03){return this['channel']['error'](_0x252774,_0x5bec('0x113'));}this[_0x5bec('0x36')][_0x5bec('0x9b')](_0xb61b03,_0xf36770);}this[_0x5bec('0x35')][_0x5bec('0x6b')](this,_0x252774,_0xf36770);return _0x117767;};AGIVertices[_0x5bec('0x10')][_0x5bec('0xa2')]=function(_0x110c1d){logger[_0x5bec('0x2b')](util['format'](_0x5bec('0x164'),_0x110c1d[_0x5bec('0x38')]));return this['channel'][_0x5bec('0xa2')](_0x110c1d[_0x5bec('0x165')]||_0x110c1d['label']);};AGIVertices[_0x5bec('0x10')][_0x5bec('0x166')]=function(_0x3fc253){logger['info'](util[_0x5bec('0x27')](_0x5bec('0x167'),_0x3fc253[_0x5bec('0x38')]));if(!this[_0x5bec('0x81')](_0x3fc253[_0x5bec('0x152')])){return this[_0x5bec('0x36')][_0x5bec('0x2a')](_0x3fc253,'no\x20find\x20by\x20configured');}logger['info'](util[_0x5bec('0x27')](_0x5bec('0x15a'),this['channel'][_0x5bec('0x3a')],_0x3fc253[_0x5bec('0x152')]));var _0x1a454f=this[_0x5bec('0x4c')][_0x5bec('0x6b')](this,_0x3fc253[_0x5bec('0x168')]);var _0xd86243=this[_0x5bec('0x4d')][_0x5bec('0x6b')](this,_0x3fc253[_0x5bec('0x152')],_0x1a454f);if(_0xd86243){logger[_0x5bec('0x2b')](util[_0x5bec('0x27')](_0x5bec('0x154'),this[_0x5bec('0x36')]['callerid'],_0x3fc253[_0x5bec('0x152')]));this[_0x5bec('0x36')][_0x5bec('0xa2')](util[_0x5bec('0x27')](_0x5bec('0x154'),this['channel'][_0x5bec('0x3a')],_0x3fc253[_0x5bec('0x152')]));return{'code':0xc8,'result':_0x5bec('0x155')};}else{logger[_0x5bec('0x2b')](util[_0x5bec('0x27')](_0x5bec('0x156'),this[_0x5bec('0x36')][_0x5bec('0x3a')],_0x3fc253['findBy']));this[_0x5bec('0x36')]['noop'](util[_0x5bec('0x27')]('AGENT\x20%s\x20FOUND\x20BY',this['channel'][_0x5bec('0x3a')],_0x3fc253[_0x5bec('0x152')]));return{'code':0xc8,'result':'failure'};}};AGIVertices[_0x5bec('0x10')][_0x5bec('0x169')]=function(_0x5b2a52){logger[_0x5bec('0x2b')](util[_0x5bec('0x27')](_0x5bec('0x16a'),_0x5b2a52[_0x5bec('0x38')]));if(!this['isConfigured'](_0x5b2a52[_0x5bec('0x10a')])){return this[_0x5bec('0x36')][_0x5bec('0x2a')](_0x5b2a52,_0x5bec('0x10b'));}var _0x11baa0=this['getSound'][_0x5bec('0x6b')](this,_0x5b2a52['file_id']);if(!_0x11baa0){return this[_0x5bec('0x36')][_0x5bec('0x2a')](_0x5b2a52,'no\x20file\x20audio\x20found');}var _0x5af06c=this['channel'][_0x5bec('0x55')]('PLAYBACK',[_0x11baa0,_0x5b2a52[_0x5bec('0xdc')]]);if(_0x5af06c[_0x5bec('0xa4')]===-0x1){return _0x5af06c;}return this['channel']['noop'](util[_0x5bec('0x27')](_0x5bec('0xb9'),_0x5bec('0x16b'),_0x11baa0));};AGIVertices[_0x5bec('0x10')]['queue']=function(_0x23f27f){logger[_0x5bec('0x2b')](util[_0x5bec('0x27')](_0x5bec('0x16c'),_0x23f27f[_0x5bec('0x38')]));if(!this[_0x5bec('0x81')](_0x23f27f[_0x5bec('0x16d')])){return this[_0x5bec('0x36')][_0x5bec('0x2a')](_0x23f27f,'no\x20queue\x20selected');}var _0x21f8a0='';var _0x392038=parseInt(_0x23f27f['queue_id'],0xa);if(isNaN(_0x392038)){_0x21f8a0=_0x23f27f['queue_id'];}else{_0x21f8a0=this[_0x5bec('0x16')][_0x5bec('0x6b')](this,_0x23f27f[_0x5bec('0x16d')]);if(!_0x21f8a0){return this[_0x5bec('0x36')][_0x5bec('0x2a')](_0x23f27f,_0x5bec('0x16e'));}}var _0x405f53='';if(this[_0x5bec('0x81')](_0x23f27f[_0x5bec('0x10a')])){var _0x3b1143=this[_0x5bec('0x1e')][_0x5bec('0x6b')](this,_0x23f27f[_0x5bec('0x10a')]);if(_0x3b1143){_0x405f53=_0x3b1143;}}this[_0x5bec('0x35')][_0x5bec('0x6b')](this,_0x23f27f,_0x21f8a0);if(_0x23f27f[_0x5bec('0xdc')][_0x5bec('0x16f')]('x')<0x0){_0x23f27f['opts']+='x';}if(_0x23f27f[_0x5bec('0xdc')][_0x5bec('0x16f')]('X')<0x0){_0x23f27f[_0x5bec('0xdc')]+='X';}this[_0x5bec('0x36')]['setVariable'](_0x5bec('0x170'),_0x21f8a0?_0x21f8a0[_0x5bec('0x171')]():'');var _0x129efd=this[_0x5bec('0x36')][_0x5bec('0x55')]('QUEUE',[_0x21f8a0,_0x23f27f[_0x5bec('0xdc')],_0x23f27f[_0x5bec('0x6e')],_0x405f53,_0x23f27f[_0x5bec('0x63')],_0x23f27f[_0x5bec('0x7')],_0x23f27f[_0x5bec('0x172')],_0x23f27f[_0x5bec('0x173')],'',_0x23f27f['position']]);if(_0x129efd[_0x5bec('0xa4')]===-0x1){return _0x129efd;}return this[_0x5bec('0x36')][_0x5bec('0xa2')](util[_0x5bec('0x27')]('Executed\x20command\x20%s\x20%s',_0x5bec('0x174'),_0x21f8a0));};AGIVertices[_0x5bec('0x10')][_0x5bec('0x175')]=function(_0x575056){logger[_0x5bec('0x2b')](util[_0x5bec('0x27')]('Enter\x20in\x20RECORD\x20(%s)\x20block',_0x575056[_0x5bec('0x38')]));var _0xae918c=_0x575056[_0x5bec('0x176')]||_0x5bec('0x127');var _0x50fbf9=util['format']('%s_%s',this[_0x5bec('0x36')][_0x5bec('0x37')],rs[_0x5bec('0x115')](0x5));var _0x598d74=util['format'](_0x5bec('0x177'),FILES_PATH,_0x50fbf9,_0xae918c);var _0xeb450b=util['format'](_0x5bec('0x132'),FILES_PATH,_0x50fbf9);this[_0x5bec('0x3b')][_0x5bec('0x6b')](this,_0x575056,_0x50fbf9,_0x598d74);this[_0x5bec('0x36')]['setVariable'](_0x5bec('0x178'),_0x50fbf9);logger['info'](_0x5bec('0x179'),_0xeb450b,_0xae918c,_0x575056['escape_digits'],_0x575056['timeout']);return this[_0x5bec('0x36')][_0x5bec('0x128')](_0xeb450b,_0xae918c,_0x575056['escape_digits'],_0x575056['timeout'],undefined,!![]);};AGIVertices['prototype']['restapi']=function(_0x5f5664){logger[_0x5bec('0x2b')](util[_0x5bec('0x27')](_0x5bec('0x17a'),_0x5f5664[_0x5bec('0x38')]));if(!this['isConfigured'](_0x5f5664[_0x5bec('0x6e')])){return this['channel'][_0x5bec('0xa2')](_0x5bec('0x17b'));}var _0x292a6a=this['restAPI']['sync'](this,_0x5f5664);logger[_0x5bec('0x2b')](util[_0x5bec('0x27')](_0x5bec('0x17c'),util['inspect'](_0x292a6a,{'showHidden':![],'depth':null})));if(!this[_0x5bec('0x81')](_0x5f5664[_0x5bec('0xd2')])){return this[_0x5bec('0x36')][_0x5bec('0xa2')](_0x5bec('0x17d'));}var _0x307812=this[_0x5bec('0x11')][_0x5bec('0x6b')](this,_0x5f5664['variable_id']);if(!_0x307812){return this[_0x5bec('0x36')][_0x5bec('0x2a')](_0x5f5664,_0x5bec('0x113'));}this[_0x5bec('0x36')][_0x5bec('0x9b')](util['format'](_0x5bec('0x17e'),_0x307812),_0x292a6a[_0x5bec('0x71')]?_0x292a6a[_0x5bec('0x71')]:_0x5bec('0x17f'));this['channel']['setVariable'](util[_0x5bec('0x27')](_0x5bec('0x180'),_0x307812),_0x292a6a[_0x5bec('0x72')]?_0x292a6a[_0x5bec('0x72')]:'OK');if(_0x292a6a['body']){try{this[_0x5bec('0x97')](_0x292a6a[_0x5bec('0x67')],_0x307812);}catch(_0x4aa65e){logger[_0x5bec('0x2a')](util[_0x5bec('0x27')](_0x5bec('0x181'),_0x307812));}}return this['channel']['noop'](util[_0x5bec('0x27')](_0x5bec('0x182'),_0x307812));};AGIVertices['prototype'][_0x5bec('0x183')]=function(_0x30fe46){logger[_0x5bec('0x2b')](util[_0x5bec('0x27')](_0x5bec('0x184'),_0x30fe46[_0x5bec('0x38')]));return this[_0x5bec('0x36')][_0x5bec('0x185')](_0x30fe46[_0x5bec('0x186')][_0x5bec('0x57')](/\s+/g,''),_0x30fe46[_0x5bec('0x187')]);};AGIVertices[_0x5bec('0x10')][_0x5bec('0x188')]=function(_0x544bd3){logger['info'](util[_0x5bec('0x27')](_0x5bec('0x189'),_0x544bd3[_0x5bec('0x38')]));return this[_0x5bec('0x36')][_0x5bec('0x18a')](_0x544bd3[_0x5bec('0x18b')]['replace'](/\s+/g,''),_0x544bd3[_0x5bec('0x187')]);};AGIVertices[_0x5bec('0x10')][_0x5bec('0x18c')]=function(_0x1eee96){logger['info'](util[_0x5bec('0x27')](_0x5bec('0x18d'),_0x1eee96['label']));return this['channel'][_0x5bec('0x18e')](_0x1eee96[_0x5bec('0x5b')],_0x1eee96[_0x5bec('0x187')]);};AGIVertices['prototype'][_0x5bec('0x18f')]=function(_0x326363){logger[_0x5bec('0x2b')](util[_0x5bec('0x27')](_0x5bec('0x190'),_0x326363['label']));if(!this[_0x5bec('0x81')](_0x326363['account_id'])){return this[_0x5bec('0x36')][_0x5bec('0xa2')](_0x5bec('0x191'));}var _0x52588d=this[_0x5bec('0x1f')][_0x5bec('0x6b')](this,_0x326363[_0x5bec('0x192')]);if(!_0x52588d||!_0x52588d[_0x5bec('0x193')]){return this['channel'][_0x5bec('0x2a')](_0x326363,_0x5bec('0x194'));}var _0x313d43={'from':util[_0x5bec('0x27')](_0x5bec('0x195'),_0x52588d[_0x5bec('0x14')],_0x52588d['email']||_0x52588d[_0x5bec('0x193')][_0x5bec('0x196')]),'to':_0x326363['to']||'','cc':_0x326363['cc']||'','bcc':_0x326363[_0x5bec('0x197')]||'','subject':_0x326363[_0x5bec('0x198')],'html':_0x326363[_0x5bec('0x5b')],'text':_0x326363[_0x5bec('0x5b')]};if(this[_0x5bec('0x81')](_0x326363[_0x5bec('0x199')])){}logger[_0x5bec('0xd7')](_0x5bec('0x19a'),JSON[_0x5bec('0x70')](_0x313d43));this[_0x5bec('0x35')][_0x5bec('0x6b')](this,_0x326363,_0x326363[_0x5bec('0x192')]);this[_0x5bec('0x36')]['noop'](util[_0x5bec('0x27')]('Trying\x20SendMail\x20with\x20account\x20%s',_0x52588d[_0x5bec('0x14')]));this[_0x5bec('0x21')]['sync'](this,_0x52588d[_0x5bec('0x19b')],_0x313d43);return this[_0x5bec('0x36')][_0x5bec('0xa2')](_0x5bec('0x19c'));};AGIVertices[_0x5bec('0x10')]['sendFax']=function(_0x2e77a7){logger[_0x5bec('0x2b')](util[_0x5bec('0x27')](_0x5bec('0x19d'),_0x2e77a7[_0x5bec('0x38')]));return this[_0x5bec('0x36')][_0x5bec('0xa2')](_0x5bec('0x19e'));};AGIVertices[_0x5bec('0x10')][_0x5bec('0x19f')]=function(_0x3ff2b1){logger[_0x5bec('0x2b')](util[_0x5bec('0x27')](_0x5bec('0x1a0'),_0x3ff2b1['label']));if(!this[_0x5bec('0x81')](_0x3ff2b1['sms_account_id'])){return this[_0x5bec('0x36')][_0x5bec('0xa2')](_0x5bec('0x1a1'));}var _0x36854e=this[_0x5bec('0x32')][_0x5bec('0x6b')](this,_0x3ff2b1[_0x5bec('0x1a2')]);if(!_0x36854e){return this[_0x5bec('0x36')]['error'](_0x3ff2b1,_0x5bec('0x1a3'));}var _0x19da27={'body':_0x3ff2b1[_0x5bec('0x1a4')],'phone':_0x3ff2b1['to']||'','SmsAccountId':_0x36854e['id']};logger['debug']('sendSMS\x20message',JSON['stringify'](_0x19da27));this[_0x5bec('0x35')][_0x5bec('0x6b')](this,_0x3ff2b1,_0x3ff2b1[_0x5bec('0x1a2')]);this[_0x5bec('0x36')]['noop'](util['format'](_0x5bec('0x1a5'),_0x36854e[_0x5bec('0x14')]));this['createSmsMessage'][_0x5bec('0x6b')](this,_0x19da27);return this[_0x5bec('0x36')]['noop'](_0x5bec('0x1a6'));};AGIVertices[_0x5bec('0x10')][_0x5bec('0x1a7')]=function(_0x3ab7ef){logger[_0x5bec('0x2b')](util['format'](_0x5bec('0x1a8'),_0x3ab7ef[_0x5bec('0x38')]));if(!this['isConfigured'](_0x3ab7ef[_0x5bec('0xd2')])){return this[_0x5bec('0x36')][_0x5bec('0x2a')](_0x3ab7ef,'no\x20variable\x20selected');}var _0x3a3dda=this[_0x5bec('0x11')][_0x5bec('0x6b')](this,_0x3ab7ef[_0x5bec('0xd2')]);if(!_0x3a3dda){return this[_0x5bec('0x36')][_0x5bec('0x2a')](_0x3ab7ef,_0x5bec('0x113'));}return this['channel'][_0x5bec('0x9b')](_0x3a3dda,_0x3ab7ef['variable_value']);};AGIVertices[_0x5bec('0x10')]['start']=function(_0x1626a1){logger[_0x5bec('0x2b')](util[_0x5bec('0x27')]('Enter\x20in\x20START\x20(%s)\x20block',_0x1626a1['label']));this['channel'][_0x5bec('0xa2')](_0x5bec('0x1a9'));var _0x2cc447=this['channel']['getVariable']('XMCS-UNIQUEID');if(!_[_0x5bec('0x44')](_0x2cc447[_0x5bec('0x9d')])){this[_0x5bec('0x36')][_0x5bec('0x37')]=_0x2cc447[_0x5bec('0x9d')];}if(_0x1626a1[_0x5bec('0xae')]==='yes'){this['channel'][_0x5bec('0xa2')](_0x5bec('0x1aa'));return this[_0x5bec('0x36')][_0x5bec('0xae')]();}return this[_0x5bec('0x36')]['noop']('Skipped\x20Answer');};AGIVertices['prototype'][_0x5bec('0x1ab')]=function(_0x470ca1){logger[_0x5bec('0x2b')](util[_0x5bec('0x27')]('Enter\x20in\x20SUBPROJECT\x20(%s)\x20block',_0x470ca1[_0x5bec('0x38')]));if(!this['isConfigured'](_0x470ca1['project_id'])){return this['channel']['error'](_0x470ca1,_0x5bec('0x1ac'));}var _0x287ade=this['getSquareProject'][_0x5bec('0x6b')](this,_0x470ca1['project_id']);if(!this[_0x5bec('0x81')](_0x287ade)){return this['channel'][_0x5bec('0x2a')](_0x470ca1,util[_0x5bec('0x27')]('no\x20subproject\x20found\x20with\x20id\x20%d',_0x470ca1[_0x5bec('0x1ad')]));}if(_0x287ade===this['channel']['arg_1']){return this['channel'][_0x5bec('0x2a')](_0x470ca1,_0x5bec('0x1ae'));}this[_0x5bec('0x35')][_0x5bec('0x6b')](this,_0x470ca1,_0x287ade);var _0x1acabe=this[_0x5bec('0x36')][_0x5bec('0x55')](_0x5bec('0x1af'),util[_0x5bec('0x27')]('agi://%s/square,\x22%s\x22,\x22%s\x22',config[_0x5bec('0x7')][_0x5bec('0x1b0')]||'127.0.0.1',_0x287ade,this[_0x5bec('0x36')][_0x5bec('0x40')]));if(_0x1acabe[_0x5bec('0xa4')]===-0x1){return _0x1acabe;}return this[_0x5bec('0x36')][_0x5bec('0xa2')](util[_0x5bec('0x27')]('Executed\x20command\x20%s\x20%s',_0x5bec('0x1af'),_0x287ade));};AGIVertices[_0x5bec('0x10')][_0x5bec('0x1b1')]=function(_0x2404a3){logger[_0x5bec('0x2b')](util[_0x5bec('0x27')](_0x5bec('0x1b2'),_0x2404a3[_0x5bec('0x38')]));var _0x245d0c=this[_0x5bec('0x54')][_0x5bec('0x6b')](this,_0x2404a3[_0x5bec('0x1b3')]);this[_0x5bec('0x35')][_0x5bec('0x6b')](this,_0x2404a3,_0x2404a3['command']);if(this[_0x5bec('0x81')](_0x2404a3[_0x5bec('0xd2')])){var _0x491dcd=this[_0x5bec('0x11')][_0x5bec('0x6b')](this,_0x2404a3['variable_id']);if(_0x491dcd){this[_0x5bec('0x36')][_0x5bec('0x9b')](_0x491dcd,_0x245d0c);return this[_0x5bec('0x36')][_0x5bec('0xa2')](util['format'](_0x5bec('0x1b4'),_0x2404a3[_0x5bec('0x1b3')],_0x491dcd));}}return this[_0x5bec('0x36')][_0x5bec('0xa2')](util[_0x5bec('0x27')]('sh\x20command:\x20%s\x20result\x20no\x20stored',_0x2404a3[_0x5bec('0x1b3')]));};AGIVertices[_0x5bec('0x10')][_0x5bec('0x1b5')]=function(_0x5a24cc){logger['info'](util[_0x5bec('0x27')](_0x5bec('0x1b6'),_0x5a24cc[_0x5bec('0x38')]));_0x5a24cc[_0x5bec('0x5b')]=_0x5a24cc[_0x5bec('0x5b')][_0x5bec('0x57')](/(\r\n|\n|\r)/gm,'\x20');if(!this[_0x5bec('0x81')](_0x5a24cc['apiKey'])){return this['channel'][_0x5bec('0xa2')](_0x5bec('0x1b7'));}if(!this[_0x5bec('0x81')](_0x5a24cc['text'])){return this[_0x5bec('0x36')][_0x5bec('0xa2')](_0x5bec('0xbc'));}this['channel'][_0x5bec('0xa2')](util[_0x5bec('0x27')]('Trying\x20Google\x20Cloud\x20TTS\x20%s',_0x5a24cc[_0x5bec('0x5b')]));var _0x43d35b=this['googleCloudTTS'][_0x5bec('0x6b')](this,_0x5a24cc);if(_0x43d35b){this[_0x5bec('0x36')][_0x5bec('0xa2')](util[_0x5bec('0x27')](_0x5bec('0x1b8'),_0x43d35b));var _0x506ecb=this['channel']['streamFile'](_0x43d35b);try{fs['unlink'](_0x43d35b+_0x5bec('0xfc'));}catch(_0x2372a7){logger[_0x5bec('0x2a')](_0x2372a7);}return _0x506ecb;}return this[_0x5bec('0x36')][_0x5bec('0x2a')](_0x5a24cc,_0x5bec('0x1b9'));};AGIVertices[_0x5bec('0x10')][_0x5bec('0x1ba')]=function(_0x155051){logger[_0x5bec('0x2b')](util['format'](_0x5bec('0x1bb'),_0x155051['label']));_0x155051[_0x5bec('0x5b')]=_0x155051[_0x5bec('0x5b')][_0x5bec('0x57')](/(\r\n|\n|\r)/gm,'\x20');if(!this[_0x5bec('0x81')](_0x155051['text'])){return this[_0x5bec('0x36')]['noop'](_0x5bec('0xbc'));}this[_0x5bec('0x36')][_0x5bec('0xa2')](util[_0x5bec('0x27')](_0x5bec('0x1bc'),_0x155051['text']));var _0x4c365e=this['googleTTS'][_0x5bec('0x6b')](this,_0x155051);if(_0x4c365e){this[_0x5bec('0x36')][_0x5bec('0xa2')](util[_0x5bec('0x27')](_0x5bec('0x1bd'),_0x4c365e));var _0x8b1d62=this[_0x5bec('0x36')]['streamFile'](_0x4c365e);try{fs[_0x5bec('0xfb')](_0x4c365e+_0x5bec('0xfc'));}catch(_0x4419fd){logger[_0x5bec('0x2a')](_0x4419fd);}return _0x8b1d62;}return this[_0x5bec('0x36')]['error'](_0x155051,'Google\x20TTS\x20is\x20unreachable');};AGIVertices[_0x5bec('0x10')][_0x5bec('0x1be')]=function(_0x3f259d){logger['info'](util['format']('Enter\x20in\x20UNPAUSE\x20(%s)\x20block',_0x3f259d['label']));if(!this[_0x5bec('0x81')](_0x3f259d[_0x5bec('0x152')])){return this[_0x5bec('0x36')][_0x5bec('0x2a')](_0x3f259d,_0x5bec('0x153'));}logger[_0x5bec('0x2b')](util['format'](_0x5bec('0x15a'),this['channel'][_0x5bec('0x3a')],_0x3f259d['findBy']));var _0x5a8e73=this['agentUnpause'][_0x5bec('0x6b')](this,_0x3f259d[_0x5bec('0x152')]);if(_0x5a8e73){logger[_0x5bec('0x2b')](util[_0x5bec('0x27')]('AGENT\x20%s\x20FOUND\x20BY',this[_0x5bec('0x36')]['callerid'],_0x3f259d[_0x5bec('0x152')]));this[_0x5bec('0x36')]['noop'](util[_0x5bec('0x27')]('AGENT\x20%s\x20FOUND\x20BY',this[_0x5bec('0x36')]['callerid'],_0x3f259d[_0x5bec('0x152')]));return{'code':0xc8,'result':_0x5bec('0x155')};}else{logger[_0x5bec('0x2b')](util[_0x5bec('0x27')](_0x5bec('0x156'),this[_0x5bec('0x36')][_0x5bec('0x3a')],_0x3f259d[_0x5bec('0x152')]));this[_0x5bec('0x36')][_0x5bec('0xa2')](util[_0x5bec('0x27')](_0x5bec('0x156'),this[_0x5bec('0x36')][_0x5bec('0x3a')],_0x3f259d['findBy']));return{'code':0xc8,'result':_0x5bec('0x157')};}};AGIVertices[_0x5bec('0x10')][_0x5bec('0x1bf')]=function(_0x1fa490){logger['info'](util[_0x5bec('0x27')]('Enter\x20in\x20VOICEMAIL\x20(%s)\x20block',_0x1fa490[_0x5bec('0x38')]));var _0x17ca7d=this[_0x5bec('0x36')][_0x5bec('0x55')](_0x5bec('0x1c0'),[_0x1fa490['mailbox'],_0x1fa490[_0x5bec('0x75')]]);if(_0x17ca7d['result']===-0x1){return _0x17ca7d;}return this['channel'][_0x5bec('0xa2')](util['format'](_0x5bec('0xb9'),'VOICEMAIL',_0x1fa490[_0x5bec('0x1c1')]));};AGIVertices['prototype']['vswitch']=function(_0x5709a0){logger[_0x5bec('0x2b')](util['format']('Enter\x20in\x20SWITCH\x20(%s)\x20block',_0x5709a0[_0x5bec('0x38')]));if(!this['isConfigured'](_0x5709a0[_0x5bec('0xd2')])){return this[_0x5bec('0x36')]['error'](_0x5709a0,_0x5bec('0x1c2'));}var _0x14ff6b=this[_0x5bec('0x11')]['sync'](this,_0x5709a0[_0x5bec('0xd2')]);if(!_0x14ff6b){return this[_0x5bec('0x36')]['error'](_0x5709a0,_0x5bec('0x113'));}var _0x266f70=this[_0x5bec('0x36')][_0x5bec('0x11')](_0x14ff6b);return{'code':0xc8,'result':_0x266f70[_0x5bec('0x9d')]?_0x266f70[_0x5bec('0x9d')]:'-'};};String[_0x5bec('0x10')]['replaceAll']=function(_0x2f758d,_0x391690){return this[_0x5bec('0x9c')](_0x2f758d)[_0x5bec('0x1c3')](_0x391690);};module[_0x5bec('0x1c4')]=AGIVertices;