Built motion from commit 4d4d9a88.|2.6.26
[motion2.git] / server / services / agi / vertices.js
index 50bec2b..9143d14 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x31af=['DialogflowV2\x20is\x20unreachable','sesteknda','Enter\x20in\x20SESTEKNDA\x20(%s)\x20block','ndauth_url','username','no\x20username\x20configured','no\x20password\x20configured','ndassistant_url','Trying\x20SestekNDA:\x20%s','SESTEK_NDA_%s','audiofile','Sestek\x20NDA\x20%s\x20file\x20created','streamFile','.wav','SestekNDA\x20is\x20unreachable','Enter\x20in\x20END\x20(%s)\x20block','end','Enter\x20in\x20EXTERNAL\x20DIAL\x20(%s)\x20block','trunk_id','no\x20trunk\x20selected','no\x20trunk\x20found','trunk_name','SIP/%s/%s','Enter\x20in\x20FINALLY\x20(%s)\x20block','finally','getdigits','Enter\x20in\x20GETDIGITS\x20(%s)\x20block','retry','file_id','no\x20file\x20audio\x20selected','no\x20file\x20audio\x20found','no\x20variable\x20selected\x20for\x20the\x20result','getData','response','maxdigit','test','mindigit','hiddendigitsnum','generate','hiddendigitspos','first','substr','goal','Enter\x20in\x20GOAL\x20(%s)\x20block','goalname','GOAL\x20%s','awspolly','[AGI]\x20Enter\x20in\x20AWSPOLLY\x20(%s)\x20block','no\x20valid\x20credentials\x20configured','unlink','aws\x20Polly\x20is\x20unreachable','awslex','Enter\x20in\x20Amazon\x20Lex\x20(%s)\x20block','no\x20bot\x20name\x20configured','AWS_LEX_%s','Amazon\x20Lex\x20ready\x20for\x20fulfillment','amazonlex','Amazon\x20Lex\x20is\x20unreachable','Enter\x20in\x20GOOGLEASR\x20(%s)\x20block\x20%s','wav','%s/recordings/%s','NOBEEP','intKey','google\x20%s\x20file\x20created','GOOGLE_ASR_%s','GoogleASR\x20Result\x20%s','tildeasr','Enter\x20in\x20TILDEASR\x20(%s)\x20block','no\x20appid\x20configured','no\x20appsecret\x20configured','recordFile','tilde\x20%s\x20file\x20created','tildeASR','TILDE_ASR_%s','TildeASR\x20Result\x20%s','gotoc','Enter\x20in\x20GOTO\x20(%s)\x20block','continueAt','Enter\x20in\x20GOTOIF\x20(%s)\x20block','condition','true','false','gotoiftime','Enter\x20in\x20GOTOIFTIME\x20(%s)\x20block','interval_id','no\x20intervals\x20found','IFTIME(%s?true:false)','IFTIME\x20%s\x20%s','hangup','Enter\x20in\x20HANGUP\x20(%s)\x20block','Enter\x20in\x20ISPEECHASR\x20(%s)\x20block','beep','ispeech\x20%s\x20file\x20created','ISPEECH_ASR_%s','IspeechASR\x20Result\x20%s','ispeechtts','ispeech\x20TTS\x20is\x20unreachable','Enter\x20in\x20LOGIN\x20(%s)\x20block','findBy','no\x20find\x20by\x20configured','FIND\x20AGENT\x20%s\x20BY\x20%s','AGENT\x20%s\x20FOUND\x20BY','success','AGENT\x20%s\x20NOT\x20FOUND\x20BY','failure','Enter\x20in\x20LOGOUT\x20(%s)\x20block','math','Enter\x20in\x20MATH\x20(%s)\x20block','operation','no\x20operation\x20configured','math\x20%s','variable\x20%s[key]\x20set','Enter\x20in\x20MENU\x20(%s)\x20block','Enter\x20in\x20NOOP\x20(%s)\x20block','output','pause','Enter\x20in\x20PAUSE\x20(%s)\x20block','pause_id','Enter\x20in\x20PLAYBACK\x20(%s)\x20block','PLAYBACK','queue','queue_id','no\x20queue\x20selected','no\x20queue\x20found','indexOf','XMCS-QUEUE','toLowerCase','QUEUE','macro','gosub','position','record','Enter\x20in\x20RECORD\x20(%s)\x20block','recordingFormat','%s_%s','%s/recordings/%s.%s','RECORDING_SAVENAME','Recording\x20%s\x20%s\x20%s\x20%s','escape_digits','restapi','Enter\x20in\x20RESTAPI\x20(%s)\x20block','no\x20url\x20configured','Response:','inspect','no\x20variable\x20selected\x20for\x20the\x20response','%s_STATUS_CODE','200','Unable\x20to\x20set\x20result\x20in\x20variable\x20%s','saydigits','Enter\x20in\x20SAYDIGITS\x20(%s)\x20block','sayDigits','saynumber','Enter\x20in\x20SAYNUMBER\x20(%s)\x20block','sayNumber','sayphonetic','Enter\x20in\x20SAYPHONETIC\x20(%s)\x20block','sayPhonetic','sendMail','Enter\x20in\x20SENDMAIL\x20(%s)\x20block','account_id','no\x20mail\x20account\x20configured','Smtp','no\x20mail\x20account\x20found','\x22%s\x22\x20<%s>','email','subject','template_id','sendMail\x20message','Trying\x20SendMail\x20with\x20account\x20%s','Mail\x20message\x20added\x20to\x20outgoing\x20process','sendFax','Enter\x20in\x20SENDFAX\x20(%s)\x20block','SENDFAX\x20block\x20not\x20implemented','sendSMS','Enter\x20in\x20SENDSMS\x20(%s)\x20block','sms_account_id','no\x20sms\x20account\x20configured','sms_text','debug','Trying\x20SendSMS\x20with\x20account\x20%s','Sms\x20message\x20added\x20to\x20outgoing\x20process','set','Enter\x20in\x20SET\x20(%s)\x20block','no\x20variable\x20selected','variable_value','start','START\x20CALLY\x20SQUARE','XMCS-UNIQUEID','yes','Skipped\x20Answer','subproject','Enter\x20in\x20SUBPROJECT\x20(%s)\x20block','project_id','no\x20subproject\x20selected','no\x20subproject\x20found\x20with\x20id\x20%d','project\x20in\x20subproject\x20must\x20be\x20different\x20from\x20the\x20called\x20project','AGI','agi://%s/square,\x22%s\x22,\x22%s\x22','host','system','Enter\x20in\x20SYSTEM\x20(%s)\x20block','command','sh\x20command:\x20%s\x20result\x20on\x20variable:\x20%s','sh\x20command:\x20%s\x20result\x20no\x20stored','google_cloud_tts','Enter\x20in\x20Google\x20Cloud\x20TTS\x20(%s)\x20block','no\x20apiKey\x20configured','googleCloudTTS','Google\x20Cloud\x20TTS\x20%s\x20file\x20created','Google\x20Cloud\x20TTS\x20is\x20unreachable','Trying\x20Google\x20TTS\x20%s','Google\x20TTS\x20%s\x20file\x20created','Google\x20TTS\x20is\x20unreachable','unpause','Enter\x20in\x20UNPAUSE\x20(%s)\x20block','voicemail','Enter\x20in\x20VOICEMAIL\x20(%s)\x20block','mailbox','VOICEMAIL','vswitch','Enter\x20in\x20SWITCH\x20(%s)\x20block','exports','util','lodash','shelljs','moment','request-promise','../../config/logger','agi','../../config/environment','/var/opt/motion2/server/files','rawHeaders','rawBody','menu','getsecretdigits','rpc','mailRpc','prototype','getVariable','getVariableById','then','catch','getVoiceQueue','getVoiceQueueById','name','getSquareProject','getSquareOdbc','getUser','getTrunk','getTrunkById','getSound','getSoundById','getSoundPath','save_name','getMailAccount','getMailAccountById','sendMailMessage','getIntervals','getIntervalById','IntervalId','interval','map','Intervals','format','getQueryOdbc','open','error','Error\x20getting\x20ODBC\x20connection\x20%s','ODBC\x20connection\x20successfully','Error\x20executing\x20query\x20%s','info','Query\x20executed\x20correctly\x20%s','Error\x20closing\x20connection\x20to\x20odbc\x20%s','getSmsAccount','getSmsAccountById','createSmsMessage','createSquareDetailsReport','uniqueid','label','agicommand','channel','arg_1','callerid','createSquareRecording','calleridname','context','extension','priority','dnid','file','createSquareMessage','createCmContact','isEmpty','isNil','callback_','random','lastName','phone','list_id','scheduledAt','Callback\x20scheduled\x20at\x20','toString','callback_priority','getPause','agentPause','agent','agentUnpause','agentLogout','agentLogin','LOCAL','shellCommand','exec','replace','apiKey','google_cloud_tts_text_type','text','languageCode','MALE','MP3','googleTTS','restAPI','url','method','timeout','number','POST','toUpperCase','body','parse','An\x20incorrect\x20formatted\x20json\x20body\x20has\x20been\x20passed\x20to\x20the\x20function','An\x20incorrect\x20formatted\x20json\x20headers\x20has\x20been\x20passed\x20to\x20the\x20function','computedVariables','sync','uri','render','headers','stringify','An\x20incorrect\x20formatted\x20json\x20has\x20been\x20passed\x20to\x20the\x20function','statusCode','statusMessage','message','500\x20-\x20Internal\x20Server\x20Error','options','key','dialogflow_language','googleDialogflowV2','dialogflowV2_project_id','client_email','private_key','sestekNDA','ispeechTTS','speed','ispeechASR','ispeech_asr_language','en-US','isConfigured','model','awsPolly','aws_secret_access_key','aws_polly_region','aws_polly_voice','Amy','awsLex','aws_access_key_id','aws_lex_region','aws_bot_name','googleASR','google_asr_language','appid','appsecret','clear','includes','clone','hasOwnProperty','replaceObjectAllVariables','recursiveNodeIndex','isPlainObject','isArray','length','replaceAllVariables','saveRestApiResult','%s.%s','setVariable','split','replaceAll','extra','getAndSetVariable','result','The\x20\x22%s\x22\x20variable\x20value\x20is:\x20%s','maxRetry','mrcpsynth','Enter\x20in\x20MRCPSynth\x20(%s)\x20block','noop','no\x20text\x20configured','MRCPSynth','Executed\x20command\x20MRCPSynth\x20%s','mrcprecog','Enter\x20in\x20MRCPRecog\x20(%s)\x20block','grammar','no\x20grammar\x20configured','MRCPRecog','MRCP_RECOG_CONFIDENCE','RECOG_INPUT()','MRCP_RECOG_TRANSCRIPT','RECOG_INSTANCE()','MRCP_RECOG_INSTANCE','Executed\x20command\x20MRCPRecog\x20%s','Enter\x20in\x20AGI\x20(%s)\x20block','answer','Enter\x20in\x20ANSWER\x20(%s)\x20block','Wait\x20%s\x20seconds\x20before\x20answer','wait','callback','Enter\x20in\x20CALLBACK\x20(%s)\x20block','delay','add','minutes','CALLBACK\x20added\x20phone:\x20%s\x20on\x20list:\x20%s\x20at\x20%s','Enter\x20in\x20CUSTOM\x20APP\x20(%s)\x20block','Executed\x20command\x20%s\x20%s','application','Enter\x20in\x20LUMENVOXTTS\x20(%s)\x20block','sestektts','Enter\x20in\x20SESTEKTTS\x20(%s)\x20block','LUMENVOX_ASR_CONFIDENCE','LUMENVOX_ASR_TRANSCRIPT','LUMENVOX_ASR_INSTANCE','sestekasr','Enter\x20in\x20SESTEKASR\x20(%s)\x20block','RECOG_CONFIDENCE()','SESTEK_ASR_CONFIDENCE','SESTEK_ASR_TRANSCRIPT','database','no\x20database\x20selected','odbc_id','no\x20odbc\x20database\x20found','no\x20query\x20configured','query:\x20%s','variable_id','no\x20variable\x20found','keys','forEach','%s[%s][%s]','%s_ROWS_COUNT','variable\x20%s\x20set','dial','Enter\x20in\x20DIAL\x20(%s)\x20block','no\x20user\x20selected','sip_id','no\x20user\x20found','DIAL','SIP/%s','opts','Executed\x20command\x20%s','dialogflow','Enter\x20in\x20DIALOGFLOW\x20(%s)\x20block','no\x20key\x20configured','bot','Trying\x20Dialogflow:\x20%s','DIALOGFLOW_%s','speech','Dialogflow\x20is\x20unreachable','no\x20project_id\x20configured','no\x20client_email\x20configured','no\x20private_key\x20configured','dialogflowV2_language','Trying\x20DialogflowV2:\x20%s','out','dialogflowV2'];(function(_0x2dafbe,_0x5d04de){var _0x58a45a=function(_0x50ac96){while(--_0x50ac96){_0x2dafbe['push'](_0x2dafbe['shift']());}};_0x58a45a(++_0x5d04de);}(_0x31af,0xde));var _0xf31a=function(_0x58ee64,_0x5c80fc){_0x58ee64=_0x58ee64-0x0;var _0x25dccb=_0x31af[_0x58ee64];return _0x25dccb;};'use strict';var fs=require('fs');var util=require(_0xf31a('0x0'));var _=require(_0xf31a('0x1'));var sh=require(_0xf31a('0x2'));var odbc=require('odbc')();var rs=require('randomstring');var moment=require(_0xf31a('0x3'));var Mustache=require('mustache');var rp=require(_0xf31a('0x4'));var logger=require(_0xf31a('0x5'))(_0xf31a('0x6'));var config=require(_0xf31a('0x7'));var scripts=require('./scripts');var FILES_PATH=_0xf31a('0x8');var recursiveMapAttributes=[_0xf31a('0x9'),_0xf31a('0xa')];var verticesWithRetry=[_0xf31a('0xb'),'getdigits',_0xf31a('0xc')];var AGIVertices=function(_0xe5778a,_0x410d44,_0xee6b4a){this['channel']=_0xe5778a;this[_0xf31a('0xd')]=_0x410d44;this[_0xf31a('0xe')]=_0xee6b4a;};AGIVertices[_0xf31a('0xf')][_0xf31a('0x10')]=function(_0xf2e284,_0x5165aa){this[_0xf31a('0xd')][_0xf31a('0x11')](_0xf2e284)[_0xf31a('0x12')](function(_0x3f0cc8){_0x5165aa(null,_0x3f0cc8?_0x3f0cc8['name']:![]);})[_0xf31a('0x13')](function(_0x26b85e){_0x5165aa(_0x26b85e);});};AGIVertices['prototype'][_0xf31a('0x14')]=function(_0x46345c,_0x46bdd3){this[_0xf31a('0xd')][_0xf31a('0x15')](_0x46345c)[_0xf31a('0x12')](function(_0x1d2d07){_0x46bdd3(null,_0x1d2d07?_0x1d2d07[_0xf31a('0x16')]:![]);})[_0xf31a('0x13')](function(_0x22522c){_0x46bdd3(_0x22522c);});};AGIVertices[_0xf31a('0xf')][_0xf31a('0x17')]=function(_0x3439ba,_0xccfd8b){this[_0xf31a('0xd')]['getSquareProjectById'](_0x3439ba)[_0xf31a('0x12')](function(_0x27e161){_0xccfd8b(null,_0x27e161?_0x27e161[_0xf31a('0x16')]:![]);})[_0xf31a('0x13')](function(_0x4c3589){_0xccfd8b(_0x4c3589);});};AGIVertices[_0xf31a('0xf')][_0xf31a('0x18')]=function(_0x204dc2,_0x208da3){this[_0xf31a('0xd')]['getSquareOdbcById'](_0x204dc2)[_0xf31a('0x12')](function(_0xd3ac94){_0x208da3(null,_0xd3ac94?_0xd3ac94['dsn']:![]);})[_0xf31a('0x13')](function(_0x504d13){_0x208da3(_0x504d13);});};AGIVertices['prototype'][_0xf31a('0x19')]=function(_0x7ce891,_0x54f9b5){this['rpc']['getUserById'](_0x7ce891)[_0xf31a('0x12')](function(_0x1e4dea){_0x54f9b5(null,_0x1e4dea?_0x1e4dea['name']:![]);})[_0xf31a('0x13')](function(_0x2a8a22){_0x54f9b5(_0x2a8a22);});};AGIVertices[_0xf31a('0xf')][_0xf31a('0x1a')]=function(_0x4c46d9,_0x5d8083){this[_0xf31a('0xd')][_0xf31a('0x1b')](_0x4c46d9)['then'](function(_0x4e115c){_0x5d8083(null,_0x4e115c?_0x4e115c['name']:![]);})['catch'](function(_0x14c82e){_0x5d8083(_0x14c82e);});};AGIVertices[_0xf31a('0xf')][_0xf31a('0x1c')]=function(_0x595db6,_0x2281c5){var _0x2ace06=this;this[_0xf31a('0xd')][_0xf31a('0x1d')](_0x595db6)[_0xf31a('0x12')](function(_0x5a55c6){_0x2281c5(null,_0x5a55c6?_0x2ace06[_0xf31a('0x1e')](_0x5a55c6[_0xf31a('0x1f')]):![]);})['catch'](function(_0x52da7d){_0x2281c5(_0x52da7d);});};AGIVertices[_0xf31a('0xf')][_0xf31a('0x20')]=function(_0x5c842e,_0x1bcfe6){this[_0xf31a('0xd')][_0xf31a('0x21')](_0x5c842e)['then'](function(_0x1d4d9b){_0x1bcfe6(null,_0x1d4d9b?_0x1d4d9b:![]);})[_0xf31a('0x13')](function(_0x289f27){_0x1bcfe6(_0x289f27);});};AGIVertices[_0xf31a('0xf')][_0xf31a('0x22')]=function(_0x19807c,_0x53ffb6,_0xcdf92){this[_0xf31a('0xe')][_0xf31a('0x22')](_0x19807c,_0x53ffb6)[_0xf31a('0x12')](function(){_0xcdf92(null);})[_0xf31a('0x13')](function(_0x42d1a6){_0xcdf92(_0x42d1a6);});};AGIVertices[_0xf31a('0xf')][_0xf31a('0x23')]=function(_0x17c5dc,_0x137ea4){this[_0xf31a('0xd')][_0xf31a('0x24')](_0x17c5dc)[_0xf31a('0x12')](function(_0x25cd42){if(_0x25cd42){if(_0x25cd42[_0xf31a('0x25')]){_0x137ea4(null,[_0x25cd42[_0xf31a('0x26')]]);}else{_0x137ea4(null,_[_0xf31a('0x27')](_0x25cd42[_0xf31a('0x28')],_0xf31a('0x26')));}}else{_0x137ea4(null,![]);}})['catch'](function(_0x2d81f3){_0x137ea4(_0x2d81f3);});};AGIVertices[_0xf31a('0xf')][_0xf31a('0x1e')]=function(_0x424db8){return util[_0xf31a('0x29')]('%s/sounds/converted/%s',FILES_PATH,_0x424db8);};AGIVertices[_0xf31a('0xf')][_0xf31a('0x2a')]=function(_0xe8e0e0,_0x5820e6,_0x474cfc){odbc[_0xf31a('0x2b')](_0xe8e0e0,function(_0xe141dd){if(_0xe141dd){logger[_0xf31a('0x2c')](_0xf31a('0x2d'),_0xe141dd);_0x474cfc(_0xe141dd);}else{logger['info'](_0xf31a('0x2e'));odbc['query'](_0x5820e6,function(_0x44321d,_0x129409){if(_0x44321d){logger['info'](_0xf31a('0x2f'),_0x5820e6);_0x474cfc(_0x44321d);}else{logger[_0xf31a('0x30')](_0xf31a('0x31'),_0x5820e6);odbc['close'](function(_0x5d1176){if(_0x5d1176){logger[_0xf31a('0x2c')](_0xf31a('0x32'),_0x5d1176);}_0x474cfc(null,_0x129409);});}});}});};AGIVertices[_0xf31a('0xf')][_0xf31a('0x33')]=function(_0x2a240d,_0x46587e){this[_0xf31a('0xd')][_0xf31a('0x34')](_0x2a240d)['then'](function(_0x3b4aef){_0x46587e(null,_0x3b4aef?_0x3b4aef:![]);})[_0xf31a('0x13')](function(_0x4ac009){_0x46587e(_0x4ac009);});};AGIVertices[_0xf31a('0xf')][_0xf31a('0x35')]=function(_0x1085c2,_0x44b30b){this['rpc'][_0xf31a('0x35')](_0x1085c2)[_0xf31a('0x12')](function(_0x306415){_0x44b30b(null,_0x306415);})[_0xf31a('0x13')](function(_0x529814){_0x44b30b(_0x529814);});};AGIVertices[_0xf31a('0xf')]['createSquareDetailsReport']=function(_0x303066,_0x172e1c,_0x1ef487){this['rpc'][_0xf31a('0x36')]({'uniqueid':this['channel'][_0xf31a('0x37')],'node':_0x303066[_0xf31a('0x38')],'application':_0x303066[_0xf31a('0x39')],'data':_0x172e1c||null,'project_name':this[_0xf31a('0x3a')][_0xf31a('0x3b')],'callerid':this[_0xf31a('0x3a')][_0xf31a('0x3c')]})[_0xf31a('0x12')](function(_0x344649){if(_0x1ef487){_0x1ef487(null,_0x344649);}})['catch'](function(_0x1a9f36){if(_0x1ef487){_0x1ef487(_0x1a9f36);}});};AGIVertices[_0xf31a('0xf')][_0xf31a('0x3d')]=function(_0x38d568,_0x82885d,_0x12cf9b,_0x2a2459){this['rpc']['createSquareRecording']({'uniqueid':this[_0xf31a('0x3a')][_0xf31a('0x37')],'callerid':this[_0xf31a('0x3a')][_0xf31a('0x3c')],'calleridname':this[_0xf31a('0x3a')][_0xf31a('0x3e')],'context':this['channel'][_0xf31a('0x3f')],'extension':this[_0xf31a('0x3a')][_0xf31a('0x40')],'priority':this[_0xf31a('0x3a')][_0xf31a('0x41')],'accountcode':this[_0xf31a('0x3a')]['accountcode'],'dnid':this[_0xf31a('0x3a')][_0xf31a('0x42')],'projectName':this[_0xf31a('0x3a')][_0xf31a('0x3b')],'saveName':_0x82885d,'filename':_0x38d568[_0xf31a('0x43')]||_0x82885d,'savePath':_0x12cf9b})[_0xf31a('0x12')](function(_0x20bd0c){_0x2a2459(null,_0x20bd0c);})[_0xf31a('0x13')](function(_0x1f8161){_0x2a2459(_0x1f8161);});};AGIVertices[_0xf31a('0xf')]['createSquareMessage']=function(_0x2f1b64,_0x4d17fc,_0x423768,_0x3f8b9b,_0xa9b74c){this[_0xf31a('0xd')][_0xf31a('0x44')]({'uniqueid':this[_0xf31a('0x3a')][_0xf31a('0x37')],'body':_0x2f1b64,'direction':_0x4d17fc,'providerName':_0x423768,'providerResponse':_0x3f8b9b})[_0xf31a('0x12')](function(_0x4aaa57){if(_0xa9b74c){_0xa9b74c(null,_0x4aaa57);}})[_0xf31a('0x13')](function(_0x416227){if(_0xa9b74c){_0xa9b74c(_0x416227);}});};AGIVertices[_0xf31a('0xf')][_0xf31a('0x45')]=function(_0x3877f8,_0x8c6795){this['rpc'][_0xf31a('0x45')]({'firstName':_[_0xf31a('0x46')](_0x3877f8[_0xf31a('0x16')])||_[_0xf31a('0x47')](_0x3877f8[_0xf31a('0x16')])?_0xf31a('0x48')+Math[_0xf31a('0x49')]():_0x3877f8[_0xf31a('0x16')],'lastName':_[_0xf31a('0x46')](_0x3877f8[_0xf31a('0x4a')])||_[_0xf31a('0x47')](_0x3877f8[_0xf31a('0x4a')])?null:_0x3877f8['lastName'],'phone':_0x3877f8[_0xf31a('0x4b')],'ListId':_0x3877f8[_0xf31a('0x4c')],'scheduledat':_0x3877f8[_0xf31a('0x4d')],'callbackUniqueid':this['channel'][_0xf31a('0x37')],'tags':'callback','description':_0xf31a('0x4e')+_0x3877f8[_0xf31a('0x4d')][_0xf31a('0x4f')](),'priority':_0x3877f8[_0xf31a('0x50')]})['then'](function(_0x89bdd){_0x8c6795(null,_0x89bdd);})[_0xf31a('0x13')](function(_0x2ebd69){_0x8c6795(_0x2ebd69);});};AGIVertices[_0xf31a('0xf')][_0xf31a('0x51')]=function(_0x10eb82,_0x5579c6){this[_0xf31a('0xd')]['getPauseById'](_0x10eb82)['then'](function(_0x5d2700){_0x5579c6(null,_0x5d2700?_0x5d2700[_0xf31a('0x16')]:![]);})[_0xf31a('0x13')](function(_0x501409){_0x5579c6(_0x501409);});};AGIVertices['prototype'][_0xf31a('0x52')]=function(_0x292b58,_0xfd1cf7,_0x4bc18c){var _0x4b9586={'role':_0xf31a('0x53')};_0x4b9586[_0x292b58]=this[_0xf31a('0x3a')][_0xf31a('0x3c')];this[_0xf31a('0xd')][_0xf31a('0x52')](_0x4b9586,_0xfd1cf7,this[_0xf31a('0x3a')]['uniqueid'])[_0xf31a('0x12')](function(_0x4e8669){_0x4bc18c(null,_[_0xf31a('0x47')](_0x4e8669)?![]:!![]);})[_0xf31a('0x13')](function(_0x73c0a1){logger['error'](_0x73c0a1);_0x4bc18c(null,![]);});};AGIVertices[_0xf31a('0xf')][_0xf31a('0x54')]=function(_0x24be18,_0xcf0f0b){var _0x122b6d={'role':_0xf31a('0x53')};_0x122b6d[_0x24be18]=this[_0xf31a('0x3a')][_0xf31a('0x3c')];this['rpc'][_0xf31a('0x54')](_0x122b6d)['then'](function(_0x29aeb9){_0xcf0f0b(null,_['isNil'](_0x29aeb9)?![]:!![]);})[_0xf31a('0x13')](function(_0x11cd2b){logger[_0xf31a('0x2c')](_0x11cd2b);_0xcf0f0b(null,![]);});};AGIVertices[_0xf31a('0xf')]['agentLogout']=function(_0x3e109a,_0x21548d){var _0x694196={'role':_0xf31a('0x53')};_0x694196[_0x3e109a]=this[_0xf31a('0x3a')][_0xf31a('0x3c')];this[_0xf31a('0xd')][_0xf31a('0x55')](_0x694196)[_0xf31a('0x12')](function(_0xb2e809){_0x21548d(null,_[_0xf31a('0x47')](_0xb2e809)?![]:!![]);})[_0xf31a('0x13')](function(_0x41f206){logger['error'](_0x41f206);_0x21548d(null,![]);});};AGIVertices[_0xf31a('0xf')][_0xf31a('0x56')]=function(_0x55695a,_0x4558d8){var _0x37b704={'role':'agent'};_0x37b704[_0x55695a]=this[_0xf31a('0x3a')][_0xf31a('0x3c')];var _0x50e484=_0x55695a!='internal'?util['format']('%s/%s@from-sip/n',_0xf31a('0x57'),this[_0xf31a('0x3a')][_0xf31a('0x3c')]):undefined;this[_0xf31a('0xd')][_0xf31a('0x56')](_0x37b704,_0x50e484)[_0xf31a('0x12')](function(_0x560b8d){_0x4558d8(null,_[_0xf31a('0x47')](_0x560b8d)?![]:!![]);})[_0xf31a('0x13')](function(_0x12e5a1){logger[_0xf31a('0x2c')](_0x12e5a1);_0x4558d8(null,![]);});};AGIVertices[_0xf31a('0xf')][_0xf31a('0x58')]=function(_0x12dca4,_0x2bcc4f){sh[_0xf31a('0x59')](_['trim'](_0x12dca4),function(_0x7e978c,_0x53b8e0){var _0x293e14=_0x53b8e0[_0xf31a('0x5a')](/(\r\n|\n|\r)/gm,'');_0x2bcc4f(null,_0x293e14);});};AGIVertices['prototype']['googleCloudTTS']=function(_0x5e7abf,_0x81361f){scripts['googleCloudTTS'](_0x5e7abf[_0xf31a('0x5b')],_0x5e7abf[_0xf31a('0x5c')]||'text',_0x5e7abf[_0xf31a('0x5d')],_0x5e7abf[_0xf31a('0x5e')]||'en-US',_0x5e7abf['ssmlGender']||_0xf31a('0x5f'),_0x5e7abf['audioEncoding']||_0xf31a('0x60'))[_0xf31a('0x12')](function(_0x4eab0e){_0x81361f(null,_0x4eab0e);})['catch'](function(_0x3fc2bb){_0x81361f(_0x3fc2bb);});};AGIVertices[_0xf31a('0xf')][_0xf31a('0x61')]=function(_0x5787e8,_0x49986e){scripts['googleTTS'](_0x5787e8[_0xf31a('0x5d')],_0x5787e8['google_tts_language']||'en',0x1)['then'](function(_0x49435b){_0x49986e(null,_0x49435b);})[_0xf31a('0x13')](function(_0x48de0c){_0x49986e(_0x48de0c);});};AGIVertices[_0xf31a('0xf')][_0xf31a('0x62')]=function(_0x38e3c7,_0x22bb77){var _0x4452a6={'uri':_0x38e3c7[_0xf31a('0x63')],'method':_0x38e3c7[_0xf31a('0x64')],'json':!![],'resolveWithFullResponse':!![],'strictSSL':![],'timeout':typeof parseInt(_0x38e3c7[_0xf31a('0x65')])===_0xf31a('0x66')&&parseInt(_0x38e3c7[_0xf31a('0x65')])>=0x1?parseInt(_0x38e3c7[_0xf31a('0x65')])*0x3e8:0x5*0x3e8};if(_['includes']([_0xf31a('0x67'),'PUT'],_0x4452a6['method'][_0xf31a('0x68')]())){try{_0x4452a6[_0xf31a('0x69')]=_0x38e3c7[_0xf31a('0xa')]?JSON[_0xf31a('0x6a')](_0x38e3c7[_0xf31a('0xa')]):{};}catch(_0x2b3019){logger[_0xf31a('0x2c')](_0xf31a('0x6b'),_0x2b3019);}}try{_0x4452a6['headers']=_0x38e3c7[_0xf31a('0x9')]?JSON[_0xf31a('0x6a')](_0x38e3c7[_0xf31a('0x9')]):{};}catch(_0x4933e0){logger[_0xf31a('0x2c')](_0xf31a('0x6c'),_0x4933e0);}if(_0x38e3c7['computedVariables']){try{var _0x31b51a=require(_0x38e3c7[_0xf31a('0x6d')])[_0xf31a('0x6e')](this,_0x4452a6);_0x4452a6[_0xf31a('0x6f')]=Mustache[_0xf31a('0x70')](_0x38e3c7[_0xf31a('0x63')],_0x31b51a,{},['$$','$$']);if(_0x4452a6['headers']){_0x4452a6[_0xf31a('0x71')]=JSON[_0xf31a('0x6a')](Mustache[_0xf31a('0x70')](JSON[_0xf31a('0x72')](_0x4452a6['headers']),_0x31b51a,{},['$$','$$']));}if(_0x4452a6['body']){_0x4452a6[_0xf31a('0x69')]=JSON[_0xf31a('0x6a')](Mustache[_0xf31a('0x70')](JSON[_0xf31a('0x72')](_0x4452a6[_0xf31a('0x69')]),_0x31b51a,{},['$$','$$']));}}catch(_0x3a772d){logger['error'](_0xf31a('0x73'),_0x3a772d);}}rp(_0x4452a6)[_0xf31a('0x12')](function(_0x1fd44e){var _0xba3819={'statusCode':_0x1fd44e[_0xf31a('0x74')]||0xc8,'statusMessage':_0x1fd44e[_0xf31a('0x75')]||'OK','headers':_0x1fd44e[_0xf31a('0x71')]||{},'body':_0x1fd44e[_0xf31a('0x69')]||{}};_0x22bb77(null,_0xba3819);})['catch'](function(_0x583d4a){var _0x55a76e={'statusCode':_0x583d4a[_0xf31a('0x74')]||0x1f4,'statusMessage':_0x583d4a[_0xf31a('0x76')]||_0xf31a('0x77'),'headers':_0x583d4a['options'][_0xf31a('0x71')]||{},'body':_0x583d4a[_0xf31a('0x78')][_0xf31a('0x69')]||{}};_0x22bb77(null,_0x55a76e);});};AGIVertices[_0xf31a('0xf')]['googleDialogflow']=function(_0x573fbd,_0x381d42){scripts['googleDialogflow'](this[_0xf31a('0x3a')]['uniqueid'],_0x573fbd[_0xf31a('0x79')],_0x573fbd[_0xf31a('0x5d')],_0x573fbd[_0xf31a('0x7a')]||'en')[_0xf31a('0x12')](function(_0xd21867){_0x381d42(null,_0xd21867);})['catch'](function(_0x351733){_0x381d42(_0x351733);});};AGIVertices[_0xf31a('0xf')][_0xf31a('0x7b')]=function(_0x50bbba,_0x1fdb59){scripts[_0xf31a('0x7b')](this[_0xf31a('0x3a')]['uniqueid'],_0x50bbba[_0xf31a('0x7c')],_0x50bbba[_0xf31a('0x7d')],_0x50bbba[_0xf31a('0x7e')],_0x50bbba[_0xf31a('0x5d')],_0x50bbba['dialogflowV2_language']||'en')[_0xf31a('0x12')](function(_0x31b6ee){_0x1fdb59(null,_0x31b6ee);})['catch'](function(_0x512855){_0x1fdb59(_0x512855);});};AGIVertices[_0xf31a('0xf')][_0xf31a('0x7f')]=function(_0x5515e6,_0x1b5c7e){scripts['sestekNDA'](this[_0xf31a('0x3a')],_0x5515e6)[_0xf31a('0x12')](function(_0x3bf3f4){_0x1b5c7e(null,_0x3bf3f4);})['catch'](function(_0x3c7519){_0x1b5c7e(_0x3c7519);});};AGIVertices[_0xf31a('0xf')][_0xf31a('0x80')]=function(_0xbf3985,_0x1b28c5){scripts[_0xf31a('0x80')](_0xbf3985[_0xf31a('0x79')],_0xbf3985['text'],_0xbf3985['ispeech_tts_language']||'en-US',_0xbf3985[_0xf31a('0x81')])[_0xf31a('0x12')](function(_0x2bba06){_0x1b28c5(null,_0x2bba06);})[_0xf31a('0x13')](function(_0x360baf){_0x1b28c5(_0x360baf);});};AGIVertices[_0xf31a('0xf')][_0xf31a('0x82')]=function(_0xe178c3,_0x163780,_0x4bd014){scripts[_0xf31a('0x82')](_0x163780,_0xe178c3[_0xf31a('0x79')],_0xe178c3[_0xf31a('0x83')]||_0xf31a('0x84'),this[_0xf31a('0x85')](_0xe178c3[_0xf31a('0x86')])?_0xe178c3[_0xf31a('0x86')]:undefined)[_0xf31a('0x12')](function(_0x168ebe){_0x4bd014(null,_0x168ebe);})[_0xf31a('0x13')](function(_0x394a38){_0x4bd014(_0x394a38);});};AGIVertices[_0xf31a('0xf')][_0xf31a('0x87')]=function(_0x4e3223,_0x3849d9){scripts[_0xf31a('0x87')](_0x4e3223['aws_access_key_id'],_0x4e3223[_0xf31a('0x88')],_0x4e3223[_0xf31a('0x89')],_0x4e3223[_0xf31a('0x8a')]||_0xf31a('0x8b'),_0x4e3223['text'],_0x4e3223['aws_text_type']||_0xf31a('0x5d'))[_0xf31a('0x12')](function(_0x11d390){_0x3849d9(null,_0x11d390);})[_0xf31a('0x13')](function(_0x4ea997){_0x3849d9(_0x4ea997);});};AGIVertices['prototype']['awsLex']=function(_0x5815f3,_0x46d39a){scripts[_0xf31a('0x8c')](this[_0xf31a('0x3a')][_0xf31a('0x37')],_0x5815f3[_0xf31a('0x8d')],_0x5815f3[_0xf31a('0x88')],_0x5815f3[_0xf31a('0x8e')],_0x5815f3[_0xf31a('0x5d')],_0x5815f3[_0xf31a('0x8f')])[_0xf31a('0x12')](function(_0x17183b){_0x46d39a(null,_0x17183b);})[_0xf31a('0x13')](function(_0x109b70){_0x46d39a(_0x109b70);});};AGIVertices['prototype'][_0xf31a('0x90')]=function(_0x1452e0,_0x4a3959,_0x4c79bd){scripts['googleASR'](_0x4a3959,_0x1452e0[_0xf31a('0x79')],_0x1452e0[_0xf31a('0x91')]||'en-US')[_0xf31a('0x12')](function(_0x524d15){_0x4c79bd(null,_0x524d15);})[_0xf31a('0x13')](function(_0x41a9f9){_0x4c79bd(_0x41a9f9);});};AGIVertices[_0xf31a('0xf')]['tildeASR']=function(_0x1b7365,_0x2f00d0,_0x43015d){scripts['tildeASR'](_0x2f00d0,_0x1b7365[_0xf31a('0x92')],_0x1b7365[_0xf31a('0x93')],_0x1b7365['uri'])[_0xf31a('0x12')](function(_0x9b47e5){_0x43015d(null,_0x9b47e5);})[_0xf31a('0x13')](function(_0x5c0ce2){_0x43015d(_0x5c0ce2);});};AGIVertices['prototype'][_0xf31a('0x94')]=function(_0x5a6036){var _0x26dcc3=_[_0xf31a('0x95')](verticesWithRetry,_0x5a6036['agicommand'])?_0x5a6036:_[_0xf31a('0x96')](_0x5a6036);for(var _0x44e8dc in _0x26dcc3){if(_0x26dcc3[_0xf31a('0x97')](_0x44e8dc)){if(_0x26dcc3[_0x44e8dc]&&_['isString'](_0x26dcc3[_0x44e8dc])){if(_['includes'](recursiveMapAttributes,_0x44e8dc)){_0x26dcc3[_0x44e8dc]=this[_0xf31a('0x98')](_0x26dcc3[_0x44e8dc]);}else{_0x26dcc3[_0x44e8dc]=this['replaceAllVariables'](_0x26dcc3[_0x44e8dc]);}}}}return _0x26dcc3;};AGIVertices[_0xf31a('0xf')][_0xf31a('0x99')]=function(_0x48c0f6){for(var _0x340d5a in _0x48c0f6){if(_0x48c0f6[_0xf31a('0x97')](_0x340d5a)){if(_[_0xf31a('0x9a')](_0x48c0f6[_0x340d5a])){this[_0xf31a('0x99')](_0x48c0f6[_0x340d5a]);}else if(_[_0xf31a('0x9b')](_0x48c0f6[_0x340d5a])){for(var _0x24de43=0x0;_0x24de43<_0x48c0f6[_0x340d5a][_0xf31a('0x9c')];_0x24de43++){this[_0xf31a('0x99')](_0x48c0f6[_0x340d5a][_0x24de43]);}}else if(_['isString'](_0x48c0f6[_0x340d5a])){_0x48c0f6[_0x340d5a]=this[_0xf31a('0x9d')](_0x48c0f6[_0x340d5a]);}}}};AGIVertices[_0xf31a('0xf')][_0xf31a('0x9e')]=function(_0x5ae195,_0x47fa1e){for(var _0x44872a in _0x5ae195){if(_0x5ae195[_0xf31a('0x97')](_0x44872a)){if(_[_0xf31a('0x9a')](_0x5ae195[_0x44872a])){if(!_[_0xf31a('0x46')](_0x5ae195[_0x44872a])){this['saveRestApiResult'](_0x5ae195[_0x44872a],util[_0xf31a('0x29')]('%s.%s',_0x47fa1e,_0x44872a));}}else if(_[_0xf31a('0x9b')](_0x5ae195[_0x44872a])){for(var _0x1b9f29=0x0;_0x1b9f29<_0x5ae195[_0x44872a][_0xf31a('0x9c')];_0x1b9f29++){this[_0xf31a('0x9e')](_0x5ae195[_0x44872a][_0x1b9f29],util['format'](_0xf31a('0x9f'),_0x47fa1e,_0x44872a+'['+_0x1b9f29+']'));}}else{if(!_['isNil'](_0x5ae195[_0x44872a])){this[_0xf31a('0x3a')][_0xf31a('0xa0')](util[_0xf31a('0x29')](_0xf31a('0x9f'),_0x47fa1e,_0x44872a),_0x5ae195[_0x44872a]);}}}}};AGIVertices[_0xf31a('0xf')]['replaceObjectAllVariables']=function(_0x1a08bb){try{var _0x84220=JSON[_0xf31a('0x6a')](_0x1a08bb);this['recursiveNodeIndex'](_0x84220);return JSON[_0xf31a('0x72')](_0x84220);}catch(_0x1c5fc1){return this[_0xf31a('0x9d')](_0x1a08bb);}};AGIVertices[_0xf31a('0xf')]['replaceAllVariables']=function(_0x2adb41){var _0x2bb68e=_0x2adb41['split']('{');for(var _0x54de42=0x1;_0x54de42<_0x2bb68e['length'];_0x54de42+=0x1){var _0x24f3f2=_0x2bb68e[_0x54de42][_0xf31a('0xa1')]('}');if(_0x24f3f2[_0xf31a('0x9c')]>0x1){_0x2adb41=_0x2adb41[_0xf31a('0xa2')]('{'+_0x24f3f2[0x0]+'}',this[_0xf31a('0x3a')]['getVariable'](_0x24f3f2[0x0])[_0xf31a('0xa3')]||_0x24f3f2[0x0]);}}if(_0x2bb68e[_0xf31a('0x9c')]===0x1){return _0x2adb41[_0xf31a('0x4f')]();}return this['replaceAllVariables'](_0x2adb41);};AGIVertices[_0xf31a('0xf')][_0xf31a('0xa4')]=function(_0x1008c4,_0x109240){var _0x4c6cb0=this['channel']['getVariable'](_0x1008c4);if(_0x4c6cb0[_0xf31a('0xa5')]===-0x1){return _0x4c6cb0;}logger[_0xf31a('0x30')](util['format'](_0xf31a('0xa6'),_0x109240,_0x4c6cb0[_0xf31a('0xa3')]));return this[_0xf31a('0x3a')][_0xf31a('0xa0')](_0x109240,_0x4c6cb0['extra']);};AGIVertices[_0xf31a('0xf')][_0xf31a('0x85')]=function(_0x15d0bf){return _0x15d0bf&&_0x15d0bf!=='0'&&_0x15d0bf!=='-1'&&_0x15d0bf!=='';};AGIVertices[_0xf31a('0xf')][_0xf31a('0xa7')]=function(_0x15702f){this[_0xf31a('0x36')][_0xf31a('0x6e')](this,_0x15702f,'-');_0x15702f['retry']=_0x15702f[_0xf31a('0xa7')];return{'code':0xc8,'result':'-'};};AGIVertices[_0xf31a('0xf')][_0xf31a('0xa8')]=function(_0x4a4945){logger[_0xf31a('0x30')](util[_0xf31a('0x29')](_0xf31a('0xa9'),_0x4a4945[_0xf31a('0x38')]));if(!this['isConfigured'](_0x4a4945[_0xf31a('0x5d')])){return this[_0xf31a('0x3a')][_0xf31a('0xaa')](_0xf31a('0xab'));}var _0x5fa7c9='\x22'+_0x4a4945['text']+'\x22';if(this['isConfigured'](_0x4a4945[_0xf31a('0x78')])){_0x5fa7c9+=','+_0x4a4945[_0xf31a('0x78')];}var _0x3a5582=this[_0xf31a('0x3a')][_0xf31a('0x59')](_0xf31a('0xac'),_0x5fa7c9);if(_0x3a5582[_0xf31a('0xa5')]===-0x1){return _0x3a5582;}return this[_0xf31a('0x3a')]['noop'](util[_0xf31a('0x29')](_0xf31a('0xad'),_0x5fa7c9));};AGIVertices[_0xf31a('0xf')][_0xf31a('0xae')]=function(_0x15ba20){logger['info'](util[_0xf31a('0x29')](_0xf31a('0xaf'),_0x15ba20[_0xf31a('0x38')]));if(!this[_0xf31a('0x85')](_0x15ba20[_0xf31a('0xb0')])){return this[_0xf31a('0x3a')]['noop'](_0xf31a('0xb1'));}var _0x443594=_0x15ba20[_0xf31a('0xb0')];if(this[_0xf31a('0x85')](_0x15ba20[_0xf31a('0x78')])){_0x443594+=','+_0x15ba20['options'];}var _0x31dea5=this[_0xf31a('0x3a')][_0xf31a('0x59')](_0xf31a('0xb2'),_0x443594);if(_0x31dea5[_0xf31a('0xa5')]===-0x1){return _0x31dea5;}var _0x32837f=this['getAndSetVariable']('RECOG_CONFIDENCE()',_0xf31a('0xb3'));if(_0x32837f[_0xf31a('0xa5')]===-0x1){return _0x32837f;}var _0x589f59=this[_0xf31a('0xa4')](_0xf31a('0xb4'),_0xf31a('0xb5'));if(_0x589f59[_0xf31a('0xa5')]===-0x1){return _0x589f59;}var _0x537cf9=this[_0xf31a('0xa4')](_0xf31a('0xb6'),_0xf31a('0xb7'));if(_0x537cf9[_0xf31a('0xa5')]===-0x1){return _0x537cf9;}return this[_0xf31a('0x3a')][_0xf31a('0xaa')](util[_0xf31a('0x29')](_0xf31a('0xb8'),_0x443594));};AGIVertices[_0xf31a('0xf')][_0xf31a('0x6')]=function(_0xa357eb){logger[_0xf31a('0x30')](util[_0xf31a('0x29')](_0xf31a('0xb9'),_0xa357eb['label']));return this['channel'][_0xf31a('0x6')]([_0xa357eb['command'],_0xa357eb['args']]);};AGIVertices[_0xf31a('0xf')][_0xf31a('0xba')]=function(_0x179f62){logger[_0xf31a('0x30')](util[_0xf31a('0x29')](_0xf31a('0xbb'),_0x179f62['label']));if(this[_0xf31a('0x85')](_0x179f62['timeout'])){logger[_0xf31a('0x30')](util[_0xf31a('0x29')](_0xf31a('0xbc'),_0x179f62[_0xf31a('0x65')]));var _0x3637c2=this['channel'][_0xf31a('0xbd')](_0x179f62[_0xf31a('0x65')]);if(_0x3637c2[_0xf31a('0xa5')]===-0x1){return _0x3637c2;}}return this[_0xf31a('0x3a')][_0xf31a('0xba')]();};AGIVertices['prototype'][_0xf31a('0xbe')]=function(_0x8cce99){logger[_0xf31a('0x30')](util[_0xf31a('0x29')](_0xf31a('0xbf'),_0x8cce99[_0xf31a('0x38')]));if(!this['isConfigured'](_0x8cce99['list_id'])){return this[_0xf31a('0x3a')][_0xf31a('0x2c')](_0x8cce99,'no\x20list\x20selected');}_0x8cce99[_0xf31a('0x4d')]=moment();if(this[_0xf31a('0x85')](_0x8cce99[_0xf31a('0xc0')])){_0x8cce99[_0xf31a('0x4d')]=moment()[_0xf31a('0xc1')](_0x8cce99['delay'],_0xf31a('0xc2'));}if(!this['isConfigured'](_0x8cce99[_0xf31a('0x50')])){_0x8cce99[_0xf31a('0x50')]=0x2;}this['createCmContact'][_0xf31a('0x6e')](this,_0x8cce99);return this[_0xf31a('0x3a')][_0xf31a('0xaa')](util['format'](_0xf31a('0xc3'),_0x8cce99[_0xf31a('0x4b')],_0x8cce99['list_id'],_0x8cce99[_0xf31a('0x4d')]));};AGIVertices['prototype']['custom_app']=function(_0x3c8549){logger['info'](util[_0xf31a('0x29')](_0xf31a('0xc4'),_0x3c8549[_0xf31a('0x38')]));var _0x89fcd4=this[_0xf31a('0x3a')][_0xf31a('0x59')](_0x3c8549['application'],_0x3c8549['options']);if(_0x89fcd4[_0xf31a('0xa5')]===-0x1){return _0x89fcd4;}return this[_0xf31a('0x3a')][_0xf31a('0xaa')](util['format'](_0xf31a('0xc5'),_0x3c8549[_0xf31a('0xc6')],_0x3c8549[_0xf31a('0x78')]));};AGIVertices[_0xf31a('0xf')]['lumenvoxtts']=function(_0x476865){logger[_0xf31a('0x30')](util[_0xf31a('0x29')](_0xf31a('0xc7'),_0x476865[_0xf31a('0x38')]));if(!this[_0xf31a('0x85')](_0x476865[_0xf31a('0x5d')])){return this[_0xf31a('0x3a')][_0xf31a('0xaa')](_0xf31a('0xab'));}var _0xc49c9f='\x22'+_0x476865['text']+'\x22';if(this[_0xf31a('0x85')](_0x476865['options'])){_0xc49c9f+=','+_0x476865[_0xf31a('0x78')];}var _0x246d4f=this[_0xf31a('0x3a')][_0xf31a('0x59')](_0xf31a('0xac'),_0xc49c9f);if(_0x246d4f[_0xf31a('0xa5')]===-0x1){return _0x246d4f;}return this['channel'][_0xf31a('0xaa')](util['format'](_0xf31a('0xad'),_0xc49c9f));};AGIVertices[_0xf31a('0xf')][_0xf31a('0xc8')]=function(_0x519b33){logger['info'](util[_0xf31a('0x29')](_0xf31a('0xc9'),_0x519b33['label']));if(!this['isConfigured'](_0x519b33['text'])){return this[_0xf31a('0x3a')][_0xf31a('0xaa')](_0xf31a('0xab'));}var _0x17e99c='\x22'+_0x519b33[_0xf31a('0x5d')]+'\x22';if(this[_0xf31a('0x85')](_0x519b33[_0xf31a('0x78')])){_0x17e99c+=','+_0x519b33[_0xf31a('0x78')];}var _0x5d833a=this[_0xf31a('0x3a')][_0xf31a('0x59')](_0xf31a('0xac'),_0x17e99c);if(_0x5d833a['result']===-0x1){return _0x5d833a;}return this[_0xf31a('0x3a')][_0xf31a('0xaa')](util[_0xf31a('0x29')](_0xf31a('0xad'),_0x17e99c));};AGIVertices[_0xf31a('0xf')]['lumenvoxasr']=function(_0x45fac1){logger[_0xf31a('0x30')](util[_0xf31a('0x29')]('Enter\x20in\x20LUMENVOXASR\x20(%s)\x20block',_0x45fac1[_0xf31a('0x38')]));if(!this['isConfigured'](_0x45fac1[_0xf31a('0xb0')])){return this['channel'][_0xf31a('0xaa')](_0xf31a('0xb1'));}var _0x742459=_0x45fac1[_0xf31a('0xb0')];if(this[_0xf31a('0x85')](_0x45fac1[_0xf31a('0x78')])){_0x742459+=','+_0x45fac1[_0xf31a('0x78')];}var _0x4bfd2f=this['channel'][_0xf31a('0x59')](_0xf31a('0xb2'),_0x742459);if(_0x4bfd2f[_0xf31a('0xa5')]===-0x1){return _0x4bfd2f;}var _0x111e1c=this['getAndSetVariable']('RECOG_CONFIDENCE()',_0xf31a('0xca'));if(_0x111e1c[_0xf31a('0xa5')]===-0x1){return _0x111e1c;}var _0x4ad44e=this['getAndSetVariable'](_0xf31a('0xb4'),_0xf31a('0xcb'));if(_0x4ad44e['result']===-0x1){return _0x4ad44e;}var _0x5853a2=this[_0xf31a('0xa4')](_0xf31a('0xb6'),_0xf31a('0xcc'));if(_0x5853a2[_0xf31a('0xa5')]===-0x1){return _0x5853a2;}return this[_0xf31a('0x3a')]['noop'](util[_0xf31a('0x29')](_0xf31a('0xb8'),_0x742459));};AGIVertices[_0xf31a('0xf')][_0xf31a('0xcd')]=function(_0x220e22){logger[_0xf31a('0x30')](util[_0xf31a('0x29')](_0xf31a('0xce'),_0x220e22[_0xf31a('0x38')]));if(!this[_0xf31a('0x85')](_0x220e22['grammar'])){return this[_0xf31a('0x3a')][_0xf31a('0xaa')](_0xf31a('0xb1'));}var _0x18fd3a=_0x220e22[_0xf31a('0xb0')];if(this[_0xf31a('0x85')](_0x220e22[_0xf31a('0x78')])){_0x18fd3a+=','+_0x220e22['options'];}var _0x4dfd79=this['channel'][_0xf31a('0x59')](_0xf31a('0xb2'),_0x18fd3a);if(_0x4dfd79[_0xf31a('0xa5')]===-0x1){return _0x4dfd79;}var _0x4d7636=this[_0xf31a('0xa4')](_0xf31a('0xcf'),_0xf31a('0xd0'));if(_0x4d7636[_0xf31a('0xa5')]===-0x1){return _0x4d7636;}var _0x41a050=this[_0xf31a('0xa4')](_0xf31a('0xb4'),_0xf31a('0xd1'));if(_0x41a050[_0xf31a('0xa5')]===-0x1){return _0x41a050;}var _0x3b5e73=this[_0xf31a('0xa4')](_0xf31a('0xb6'),'SESTEK_ASR_INSTANCE');if(_0x3b5e73[_0xf31a('0xa5')]===-0x1){return _0x3b5e73;}return this[_0xf31a('0x3a')]['noop'](util[_0xf31a('0x29')](_0xf31a('0xb8'),_0x18fd3a));};AGIVertices[_0xf31a('0xf')][_0xf31a('0xd2')]=function(_0x464b28){logger[_0xf31a('0x30')](util['format']('Enter\x20in\x20DATABASE\x20(%s)\x20block',_0x464b28[_0xf31a('0x38')]));if(!this[_0xf31a('0x85')](_0x464b28['odbc_id'])){return this[_0xf31a('0x3a')][_0xf31a('0x2c')](_0x464b28,_0xf31a('0xd3'));}var _0xb6a6bf=this[_0xf31a('0x18')][_0xf31a('0x6e')](this,_0x464b28[_0xf31a('0xd4')]);if(!_0xb6a6bf){return this['channel']['error'](_0x464b28,_0xf31a('0xd5'));}if(!this[_0xf31a('0x85')](_0x464b28['query'])){return this[_0xf31a('0x3a')][_0xf31a('0x2c')](_0x464b28,_0xf31a('0xd6'));}var _0x4b5097=_0x464b28['query'][_0xf31a('0x5a')](/(\r\n|\n|\r)/gm,'\x20');this[_0xf31a('0x3a')][_0xf31a('0xaa')](util[_0xf31a('0x29')](_0xf31a('0xd7'),_0x4b5097));var _0x5a2e07=this[_0xf31a('0x2a')][_0xf31a('0x6e')](this,_0xb6a6bf,_0x4b5097);this[_0xf31a('0x36')][_0xf31a('0x6e')](this,_0x464b28,_0x4b5097);if(!this['isConfigured'](_0x464b28[_0xf31a('0xd8')])){return this[_0xf31a('0x3a')][_0xf31a('0xaa')]('no\x20variable\x20selected\x20for\x20the\x20result');}var _0x18ffef=this[_0xf31a('0x10')]['sync'](this,_0x464b28['variable_id']);if(!_0x18ffef){return this[_0xf31a('0x3a')][_0xf31a('0x2c')](_0x464b28,_0xf31a('0xd9'));}var _0xee640c=this;_0x5a2e07['forEach'](function(_0xaa6e9c,_0x1ab500){Object[_0xf31a('0xda')](_0xaa6e9c)[_0xf31a('0xdb')](function(_0x446a40){_0xee640c['channel'][_0xf31a('0xa0')](util['format'](_0xf31a('0xdc'),_0x18ffef,_0x1ab500,_0x446a40),_0xaa6e9c[_0x446a40]);});});this['channel'][_0xf31a('0xa0')](util['format'](_0xf31a('0xdd'),_0x18ffef),_0x5a2e07[_0xf31a('0x9c')]);return this[_0xf31a('0x3a')]['noop'](util['format'](_0xf31a('0xde'),_0x18ffef));};AGIVertices[_0xf31a('0xf')][_0xf31a('0xdf')]=function(_0x46ef98){logger['debug'](util['format'](_0xf31a('0xe0'),_0x46ef98[_0xf31a('0x38')]));if(!this[_0xf31a('0x85')](_0x46ef98['sip_id'])){return this['channel'][_0xf31a('0x2c')](_0x46ef98,_0xf31a('0xe1'));}var _0x5a85bd=this['getUser'][_0xf31a('0x6e')](this,_0x46ef98[_0xf31a('0xe2')]);if(!_0x5a85bd){return this[_0xf31a('0x3a')][_0xf31a('0x2c')](_0x46ef98,_0xf31a('0xe3'));}var _0x3665f9=this['channel'][_0xf31a('0x59')](_0xf31a('0xe4'),[util[_0xf31a('0x29')](_0xf31a('0xe5'),_0x5a85bd),_0x46ef98[_0xf31a('0x65')],_0x46ef98[_0xf31a('0xe6')],_0x46ef98[_0xf31a('0x63')]]);if(_0x3665f9[_0xf31a('0xa5')]===-0x1){return _0x3665f9;}return this[_0xf31a('0x3a')]['noop'](util[_0xf31a('0x29')](_0xf31a('0xe7'),_0xf31a('0xe4')));};AGIVertices[_0xf31a('0xf')][_0xf31a('0xe8')]=function(_0x485b7e){logger[_0xf31a('0x30')](util[_0xf31a('0x29')](_0xf31a('0xe9'),_0x485b7e[_0xf31a('0x38')]));if(!this[_0xf31a('0x85')](_0x485b7e[_0xf31a('0x79')])){return this[_0xf31a('0x3a')][_0xf31a('0xaa')](_0xf31a('0xea'));}if(!this['isConfigured'](_0x485b7e[_0xf31a('0x5d')])){return this[_0xf31a('0x3a')][_0xf31a('0xaa')]('no\x20text\x20configured');}this[_0xf31a('0x3a')][_0xf31a('0xeb')]=!![];this['createSquareDetailsReport'](_0x485b7e);this[_0xf31a('0x44')](_0x485b7e[_0xf31a('0x5d')],'in','','');this[_0xf31a('0x3a')]['noop'](util[_0xf31a('0x29')](_0xf31a('0xec'),_0x485b7e[_0xf31a('0x5d')]));var _0x29e6ef=this['googleDialogflow'][_0xf31a('0x6e')](this,_0x485b7e);if(_0x29e6ef){for(var _0x3cb272 in _0x29e6ef){if(_0x29e6ef[_0xf31a('0x97')](_0x3cb272)){this['channel'][_0xf31a('0xa0')](util[_0xf31a('0x29')](_0xf31a('0xed'),_0x3cb272[_0xf31a('0x68')]()),_0x29e6ef[_0x3cb272]);}}this[_0xf31a('0x44')](_0x29e6ef[_0xf31a('0xee')],'out',_0xf31a('0xe8'),'');return this[_0xf31a('0x3a')]['noop'](util['format']('Dialogflow\x20Result\x20%s',_0x29e6ef[_0xf31a('0xee')]));}return this[_0xf31a('0x3a')][_0xf31a('0x2c')](_0x485b7e,_0xf31a('0xef'));};AGIVertices[_0xf31a('0xf')]['dialogflowV2']=function(_0x299697){logger[_0xf31a('0x30')](util[_0xf31a('0x29')]('Enter\x20in\x20DIALOGFLOW\x20V2\x20(%s)\x20block',_0x299697[_0xf31a('0x38')]));if(!this[_0xf31a('0x85')](_0x299697[_0xf31a('0x7c')])){return this[_0xf31a('0x3a')]['noop'](_0xf31a('0xf0'));}if(!this[_0xf31a('0x85')](_0x299697['client_email'])){return this[_0xf31a('0x3a')]['noop'](_0xf31a('0xf1'));}if(!this[_0xf31a('0x85')](_0x299697[_0xf31a('0x7e')])){return this['channel'][_0xf31a('0xaa')](_0xf31a('0xf2'));}if(!this[_0xf31a('0x85')](_0x299697[_0xf31a('0xf3')])){return this[_0xf31a('0x3a')][_0xf31a('0xaa')]('no\x20anguage\x20configured');}if(!this[_0xf31a('0x85')](_0x299697[_0xf31a('0x5d')])){return this['channel']['noop'](_0xf31a('0xab'));}this['channel']['bot']=!![];this[_0xf31a('0x36')](_0x299697);this[_0xf31a('0x44')](_0x299697[_0xf31a('0x5d')],'in','','');this[_0xf31a('0x3a')][_0xf31a('0xaa')](util['format'](_0xf31a('0xf4'),_0x299697[_0xf31a('0x5d')]));var _0x4cabb4=this['googleDialogflowV2'][_0xf31a('0x6e')](this,_0x299697);if(_0x4cabb4){for(var _0x3dcfad in _0x4cabb4){if(_0x4cabb4[_0xf31a('0x97')](_0x3dcfad)){if(_0x3dcfad!=='providerResponse'){this[_0xf31a('0x3a')][_0xf31a('0xa0')](util[_0xf31a('0x29')]('DIALOGFLOW_%s',_0x3dcfad[_0xf31a('0x68')]()),_0x4cabb4[_0x3dcfad]);}}}this['createSquareMessage'](_0x4cabb4[_0xf31a('0xee')],_0xf31a('0xf5'),_0xf31a('0xf6'),_0x4cabb4['providerResponse']);return this['channel'][_0xf31a('0xaa')](util[_0xf31a('0x29')]('DialogflowV2\x20Result\x20%s',_0x4cabb4['speech']));}return this[_0xf31a('0x3a')]['error'](_0x299697,_0xf31a('0xf7'));};AGIVertices[_0xf31a('0xf')][_0xf31a('0xf8')]=function(_0x5bcf58){logger[_0xf31a('0x30')](util[_0xf31a('0x29')](_0xf31a('0xf9'),_0x5bcf58[_0xf31a('0x38')]));if(!this[_0xf31a('0x85')](_0x5bcf58[_0xf31a('0xfa')])){return this['channel'][_0xf31a('0xaa')]('no\x20ndauth\x20url\x20configured');}if(!this[_0xf31a('0x85')](_0x5bcf58[_0xf31a('0xfb')])){return this[_0xf31a('0x3a')][_0xf31a('0xaa')](_0xf31a('0xfc'));}if(!this['isConfigured'](_0x5bcf58['password'])){return this[_0xf31a('0x3a')][_0xf31a('0xaa')](_0xf31a('0xfd'));}if(!this[_0xf31a('0x85')](_0x5bcf58[_0xf31a('0xfe')])){return this[_0xf31a('0x3a')][_0xf31a('0xaa')](_0xf31a('0xab'));}this[_0xf31a('0x3a')][_0xf31a('0xeb')]=!![];this[_0xf31a('0x36')](_0x5bcf58);this[_0xf31a('0x44')](_0x5bcf58['text'],'in','','');this[_0xf31a('0x3a')][_0xf31a('0xaa')](util[_0xf31a('0x29')](_0xf31a('0xff'),_0x5bcf58['text']));var _0x459b01=this['sestekNDA'][_0xf31a('0x6e')](this,_0x5bcf58);if(_0x459b01){for(var _0x4a9818 in _0x459b01){if(_0x459b01[_0xf31a('0x97')](_0x4a9818)){this[_0xf31a('0x3a')][_0xf31a('0xa0')](util[_0xf31a('0x29')](_0xf31a('0x100'),_0x4a9818[_0xf31a('0x68')]()),_0x459b01[_0x4a9818]);}}this[_0xf31a('0x44')](_0x459b01['speech'],'out','sesteknda','');if(_0x459b01[_0xf31a('0x101')]){this[_0xf31a('0x3a')][_0xf31a('0xaa')](util[_0xf31a('0x29')](_0xf31a('0x102'),_0x459b01[_0xf31a('0x101')]));var _0x194566=this[_0xf31a('0x3a')][_0xf31a('0x103')](_0x459b01[_0xf31a('0x101')]);try{fs['unlink'](_0x459b01[_0xf31a('0x101')]+_0xf31a('0x104'));}catch(_0x587685){logger['error'](_0x587685);}return _0x194566;}else{return this[_0xf31a('0x3a')]['noop'](util[_0xf31a('0x29')]('SestekNDA\x20Result\x20%s',_0x459b01[_0xf31a('0xee')]));}}return this[_0xf31a('0x3a')][_0xf31a('0x2c')](_0x5bcf58,_0xf31a('0x105'));};AGIVertices[_0xf31a('0xf')]['end']=function(_0x102b28){logger[_0xf31a('0x30')](util['format'](_0xf31a('0x106'),_0x102b28[_0xf31a('0x38')]));return this[_0xf31a('0x3a')][_0xf31a('0xaa')](_0xf31a('0x107'));};AGIVertices[_0xf31a('0xf')]['ext_dial']=function(_0x53ea86){logger[_0xf31a('0x30')](util[_0xf31a('0x29')](_0xf31a('0x108'),_0x53ea86[_0xf31a('0x38')]));var _0x225b0b='';if(_0x53ea86['trunk_id']){if(!this[_0xf31a('0x85')](_0x53ea86[_0xf31a('0x109')])){return this[_0xf31a('0x3a')][_0xf31a('0x2c')](_0x53ea86,_0xf31a('0x10a'));}else{var _0x3a5b8e=parseInt(_0x53ea86['trunk_id'],0xa);if(isNaN(_0x3a5b8e)){_0x225b0b=_0x53ea86[_0xf31a('0x109')];}else{_0x225b0b=this[_0xf31a('0x1a')][_0xf31a('0x6e')](this,_0x53ea86[_0xf31a('0x109')]);if(!_0x225b0b){return this[_0xf31a('0x3a')][_0xf31a('0x2c')](_0x53ea86,_0xf31a('0x10b'));}}}}else if(_0x53ea86['trunk_name']){_0x225b0b=_0x53ea86[_0xf31a('0x10c')];}else{return this[_0xf31a('0x3a')]['error'](_0x53ea86,_0xf31a('0x10a'));}var _0x28a62b=this['channel']['exec'](_0xf31a('0xe4'),[util[_0xf31a('0x29')](_0xf31a('0x10d'),_0x225b0b,_0x53ea86['phone']),_0x53ea86[_0xf31a('0x65')],_0x53ea86['opts'],_0x53ea86[_0xf31a('0x63')]]);if(_0x28a62b[_0xf31a('0xa5')]===-0x1){return _0x28a62b;}return this[_0xf31a('0x3a')][_0xf31a('0xaa')](util[_0xf31a('0x29')](_0xf31a('0xe7'),_0xf31a('0xe4')));};AGIVertices['prototype']['finally']=function(_0x34693f){logger[_0xf31a('0x30')](util[_0xf31a('0x29')](_0xf31a('0x10e'),_0x34693f['label']));return this[_0xf31a('0x3a')][_0xf31a('0xaa')](_0xf31a('0x10f'));};AGIVertices[_0xf31a('0xf')][_0xf31a('0x110')]=function(_0x24e01e){logger[_0xf31a('0x30')](util['format'](_0xf31a('0x111'),_0x24e01e[_0xf31a('0x38')]));if(_0x24e01e[_0xf31a('0x112')]===0x0){return this[_0xf31a('0xa7')](_0x24e01e);}_0x24e01e[_0xf31a('0x112')]-=0x1;if(!this[_0xf31a('0x85')](_0x24e01e[_0xf31a('0x113')])){return this[_0xf31a('0x3a')][_0xf31a('0x2c')](_0x24e01e,_0xf31a('0x114'));}var _0x1735fa=this[_0xf31a('0x1c')][_0xf31a('0x6e')](this,_0x24e01e[_0xf31a('0x113')]);if(!_0x1735fa){return this[_0xf31a('0x3a')]['error'](_0x24e01e,_0xf31a('0x115'));}if(!this[_0xf31a('0x85')](_0x24e01e['variable_id'])){return this['channel'][_0xf31a('0x2c')](_0xf31a('0x116'));}var _0x3563aa=this[_0xf31a('0x3a')][_0xf31a('0x117')](_0x1735fa,_0x24e01e[_0xf31a('0x118')],_0x24e01e[_0xf31a('0x119')]);var _0x4a79c6=_0x3563aa['result']?_0x3563aa[_0xf31a('0xa5')][_0xf31a('0x4f')]():'';logger[_0xf31a('0x30')](_0xf31a('0x11a'),JSON[_0xf31a('0x72')](_0x3563aa));if(_0x3563aa[_0xf31a('0xa5')]===-0x1){this['createSquareDetailsReport'][_0xf31a('0x6e')](this,_0x24e01e,_0x4a79c6);return _0x3563aa;}else if(_0x3563aa[_0xf31a('0xa3')]===_0xf31a('0x65')){_0x3563aa[_0xf31a('0xa5')]=_0x4a79c6['length']>=parseInt(_0x24e01e[_0xf31a('0x11b')])?'x':'i';}else{_0x3563aa[_0xf31a('0xa5')]=_0x4a79c6['length']>=parseInt(_0x24e01e[_0xf31a('0x11b')])&&_0x4a79c6[_0xf31a('0x9c')]<=parseInt(_0x24e01e[_0xf31a('0x119')])?'x':'i';}var _0x4191bf=this[_0xf31a('0x10')][_0xf31a('0x6e')](this,_0x24e01e[_0xf31a('0xd8')]);if(!_0x4191bf){return this['channel'][_0xf31a('0x2c')](_0x24e01e,_0xf31a('0xd9'));}this[_0xf31a('0x3a')][_0xf31a('0xa0')](_0x4191bf,_0x4a79c6);if(this[_0xf31a('0x85')](_0x24e01e[_0xf31a('0x11c')])){var _0x6f634f=parseInt(_0x24e01e[_0xf31a('0x11c')],0xa);var _0x43eff1=rs[_0xf31a('0x11d')]({'charset':'*','length':_0x6f634f});var _0x28b525=_0x4a79c6[_0xf31a('0x9c')];if(_0x28b525>0x0){if(_0x28b525>_0x6f634f){this['createSquareDetailsReport'][_0xf31a('0x6e')](this,_0x24e01e,_0x24e01e[_0xf31a('0x11e')]===_0xf31a('0x11f')?_0x43eff1+_0x4a79c6[_0xf31a('0x120')](_0x6f634f):_0x4a79c6['substr'](0x0,_0x28b525-_0x6f634f)+_0x43eff1);}else{this[_0xf31a('0x36')][_0xf31a('0x6e')](this,_0x24e01e,rs[_0xf31a('0x11d')]({'charset':'*','length':_0x28b525}));}}else{this[_0xf31a('0x36')][_0xf31a('0x6e')](this,_0x24e01e,'');}}else{this['createSquareDetailsReport'][_0xf31a('0x6e')](this,_0x24e01e,_0x4a79c6);}return _0x3563aa;};AGIVertices[_0xf31a('0xf')][_0xf31a('0xc')]=function(_0x46adac){logger[_0xf31a('0x30')](util['format']('Enter\x20in\x20GETSECRETDIGITS\x20(%s)\x20block',_0x46adac[_0xf31a('0x38')]));return this['getdigits'](_0x46adac);};AGIVertices[_0xf31a('0xf')][_0xf31a('0x121')]=function(_0x3fc459){logger['info'](util[_0xf31a('0x29')](_0xf31a('0x122'),_0x3fc459[_0xf31a('0x38')]));this['createSquareDetailsReport'][_0xf31a('0x6e')](this,_0x3fc459,_0x3fc459[_0xf31a('0x123')]);return this[_0xf31a('0x3a')][_0xf31a('0xaa')](util[_0xf31a('0x29')](_0xf31a('0x124'),_0x3fc459[_0xf31a('0x123')]));};AGIVertices[_0xf31a('0xf')][_0xf31a('0x125')]=function(_0x3a5748){logger[_0xf31a('0x30')](util[_0xf31a('0x29')](_0xf31a('0x126'),_0x3a5748[_0xf31a('0x38')]));if(!this[_0xf31a('0x85')](_0x3a5748['aws_access_key_id'])||!this['isConfigured'](_0x3a5748[_0xf31a('0x88')])){return this[_0xf31a('0x3a')][_0xf31a('0xaa')](_0xf31a('0x127'));}if(!this[_0xf31a('0x85')](_0x3a5748[_0xf31a('0x5d')])){return this[_0xf31a('0x3a')]['noop'](_0xf31a('0xab'));}this[_0xf31a('0x3a')][_0xf31a('0xaa')](util[_0xf31a('0x29')]('Trying\x20aws\x20Polly\x20%s',_0x3a5748['text']));var _0x1381b7=this[_0xf31a('0x87')][_0xf31a('0x6e')](this,_0x3a5748);if(_0x1381b7){this[_0xf31a('0x3a')][_0xf31a('0xaa')](util[_0xf31a('0x29')]('aws\x20Polly\x20%s\x20file\x20created',_0x1381b7));var _0x3165a3=this['channel'][_0xf31a('0x103')](_0x1381b7);try{fs[_0xf31a('0x128')](_0x1381b7+_0xf31a('0x104'));}catch(_0x4db0ca){logger[_0xf31a('0x2c')](_0x4db0ca);}return _0x3165a3;}return this[_0xf31a('0x3a')][_0xf31a('0x2c')](_0x3a5748,_0xf31a('0x129'));};AGIVertices[_0xf31a('0xf')][_0xf31a('0x12a')]=function(_0x67e4c8){logger['info'](util['format'](_0xf31a('0x12b'),_0x67e4c8[_0xf31a('0x38')]));if(!this[_0xf31a('0x85')](_0x67e4c8[_0xf31a('0x8d')])||!this['isConfigured'](_0x67e4c8[_0xf31a('0x88')])){return this['channel'][_0xf31a('0xaa')](_0xf31a('0x127'));}if(!this[_0xf31a('0x85')](_0x67e4c8[_0xf31a('0x8f')])){return this[_0xf31a('0x3a')][_0xf31a('0xaa')](_0xf31a('0x12c'));}if(!this[_0xf31a('0x85')](_0x67e4c8[_0xf31a('0x5d')])){return this[_0xf31a('0x3a')]['noop'](_0xf31a('0xab'));}this['channel'][_0xf31a('0xeb')]=!![];this[_0xf31a('0x36')](_0x67e4c8);this[_0xf31a('0x44')](_0x67e4c8[_0xf31a('0x5d')],'in','','');this['channel'][_0xf31a('0xaa')](util[_0xf31a('0x29')]('Trying\x20Amazon\x20Lex:\x20%s',_0x67e4c8[_0xf31a('0x5d')]));var _0x531ad4=this['awsLex'][_0xf31a('0x6e')](this,_0x67e4c8);if(_0x531ad4){for(var _0x50bb77 in _0x531ad4){if(_0x531ad4[_0xf31a('0x97')](_0x50bb77)&&_['isString'](_0x531ad4[_0x50bb77])){this['channel'][_0xf31a('0xa0')](util[_0xf31a('0x29')](_0xf31a('0x12d'),_0x50bb77[_0xf31a('0x68')]()),_0x531ad4[_0x50bb77]);}}if(_[_0xf31a('0x47')](_0x531ad4[_0xf31a('0x76')])){return this[_0xf31a('0x3a')][_0xf31a('0xaa')](_0xf31a('0x12e'));}else{this[_0xf31a('0x44')](_0x531ad4[_0xf31a('0x76')],_0xf31a('0xf5'),_0xf31a('0x12f'),'');return this[_0xf31a('0x3a')][_0xf31a('0xaa')](util[_0xf31a('0x29')]('Amazon\x20Lex\x20Result\x20%s',_0x531ad4[_0xf31a('0x76')]));}}return this[_0xf31a('0x3a')]['error'](_0x67e4c8,_0xf31a('0x130'));};AGIVertices[_0xf31a('0xf')]['googleasr']=function(_0x886812){logger[_0xf31a('0x30')](util[_0xf31a('0x29')](_0xf31a('0x131'),_0x886812['label'],_0x886812['timeout']));if(!this[_0xf31a('0x85')](_0x886812[_0xf31a('0x79')])){return this['channel'][_0xf31a('0xaa')](_0xf31a('0xea'));}var _0x84479f=_0xf31a('0x132');var _0x1dc508=util['format'](_0xf31a('0x133'),FILES_PATH,rs[_0xf31a('0x11d')](0x4));var _0x129676=util[_0xf31a('0x29')](_0xf31a('0x9f'),_0x1dc508,_0x84479f);var _0x8ea211=!![];if(_0x886812['beep']===_0xf31a('0x134')){_0x8ea211=![];}var _0x3f15c0=this[_0xf31a('0x3a')]['recordFile'](_0x1dc508,_0x84479f,_0x886812[_0xf31a('0x135')],_0x886812[_0xf31a('0x65')],undefined,_0x8ea211);if(_0x3f15c0[_0xf31a('0xa5')]!==-0x1){this['channel'][_0xf31a('0xaa')](util[_0xf31a('0x29')](_0xf31a('0x136'),_0x129676));var _0xf62ad7=this[_0xf31a('0x90')]['sync'](this,_0x886812,_0x129676);if(_0xf62ad7){for(var _0x511a35 in _0xf62ad7){if(_0xf62ad7[_0xf31a('0x97')](_0x511a35)){this['channel']['setVariable'](util[_0xf31a('0x29')](_0xf31a('0x137'),_0x511a35[_0xf31a('0x68')]()),_0xf62ad7[_0x511a35]);}}return this[_0xf31a('0x3a')][_0xf31a('0xaa')](util[_0xf31a('0x29')](_0xf31a('0x138'),JSON['stringify'](_0xf62ad7)));}}return _0x3f15c0;};AGIVertices[_0xf31a('0xf')][_0xf31a('0x139')]=function(_0x5512ca){logger[_0xf31a('0x30')](util[_0xf31a('0x29')](_0xf31a('0x13a'),_0x5512ca['label']));if(!this['isConfigured'](_0x5512ca[_0xf31a('0x92')])){return this[_0xf31a('0x3a')][_0xf31a('0xaa')](_0xf31a('0x13b'));}if(!this['isConfigured'](_0x5512ca[_0xf31a('0x93')])){return this[_0xf31a('0x3a')][_0xf31a('0xaa')](_0xf31a('0x13c'));}var _0xf9267b=_0xf31a('0x132');var _0xb9e2b3=util[_0xf31a('0x29')](_0xf31a('0x133'),FILES_PATH,rs['generate'](0x4));var _0x3a2b4f=util[_0xf31a('0x29')]('%s.%s',_0xb9e2b3,_0xf9267b);var _0x5e2c5b=!![];if(_0x5512ca['beep']===_0xf31a('0x134')){_0x5e2c5b=![];}var _0x215363=this[_0xf31a('0x3a')][_0xf31a('0x13d')](_0xb9e2b3,_0xf9267b,_0x5512ca[_0xf31a('0x135')],_0x5512ca['timeout'],undefined,_0x5e2c5b);if(_0x215363[_0xf31a('0xa5')]!==-0x1){this[_0xf31a('0x3a')]['noop'](util[_0xf31a('0x29')](_0xf31a('0x13e'),_0x3a2b4f));var _0x2fd020=this[_0xf31a('0x13f')][_0xf31a('0x6e')](this,_0x5512ca,_0x3a2b4f);if(_0x2fd020){for(var _0x2f0da1 in _0x2fd020){if(_0x2fd020[_0xf31a('0x97')](_0x2f0da1)){this['channel'][_0xf31a('0xa0')](util[_0xf31a('0x29')](_0xf31a('0x140'),_0x2f0da1['toUpperCase']()),_0x2fd020[_0x2f0da1]);}}return this[_0xf31a('0x3a')][_0xf31a('0xaa')](util[_0xf31a('0x29')](_0xf31a('0x141'),JSON[_0xf31a('0x72')](_0x2fd020)));}}return _0x215363;};AGIVertices[_0xf31a('0xf')][_0xf31a('0x142')]=function(_0x58e32b){logger[_0xf31a('0x30')](util[_0xf31a('0x29')](_0xf31a('0x143'),_0x58e32b['label']));return this[_0xf31a('0x3a')][_0xf31a('0x144')](_0x58e32b[_0xf31a('0x3f')],_0x58e32b[_0xf31a('0x40')],_0x58e32b[_0xf31a('0x41')]);};AGIVertices['prototype']['gotoif']=function(_0xffbaf5){logger[_0xf31a('0x30')](util['format'](_0xf31a('0x145'),_0xffbaf5[_0xf31a('0x38')]));if(!this[_0xf31a('0x85')](_0xffbaf5[_0xf31a('0x146')])){return this[_0xf31a('0x3a')][_0xf31a('0x2c')](_0xffbaf5,'no\x20condition\x20configured');}try{var _0x26f96e=eval(_0xffbaf5[_0xf31a('0x146')])?_0xf31a('0x147'):_0xf31a('0x148');this['channel'][_0xf31a('0xaa')](util['format']('EVAL\x20CONDITION\x20%s\x20%s',_0xffbaf5['condition'],_0x26f96e));return{'code':0xc8,'result':_0x26f96e};}catch(_0x28adf3){return{'code':0xc8,'result':_0xf31a('0x148')};}};AGIVertices[_0xf31a('0xf')][_0xf31a('0x149')]=function(_0x21be35){logger[_0xf31a('0x30')](util['format'](_0xf31a('0x14a'),_0x21be35[_0xf31a('0x38')]));if(!this['isConfigured'](_0x21be35[_0xf31a('0x14b')])){return this[_0xf31a('0x3a')]['error'](_0x21be35,'no\x20interval\x20configured');}var _0x3307c8=this['getIntervals'][_0xf31a('0x6e')](this,_0x21be35['interval_id']);if(!_0x3307c8){return this[_0xf31a('0x3a')][_0xf31a('0x2c')](_0x21be35,_0xf31a('0x14c'));}for(var _0x30fa6b=0x0;_0x30fa6b<_0x3307c8[_0xf31a('0x9c')];_0x30fa6b+=0x1){var _0x272237=this[_0xf31a('0x3a')][_0xf31a('0x10')](util[_0xf31a('0x29')](_0xf31a('0x14d'),_0x3307c8[_0x30fa6b]));if(_0x272237[_0xf31a('0xa5')]===-0x1){return _0x272237;}logger[_0xf31a('0x30')](util[_0xf31a('0x29')](_0xf31a('0x14e'),_0x3307c8[_0x30fa6b],_0x272237['extra']));if(_0x272237[_0xf31a('0xa3')]===_0xf31a('0x147')){logger[_0xf31a('0x30')](util[_0xf31a('0x29')]('IFTIME\x20%s\x20%s',_0x3307c8[_0x30fa6b],_0xf31a('0x147')));this[_0xf31a('0x3a')]['noop'](util[_0xf31a('0x29')](_0xf31a('0x14e'),_0x3307c8[_0x30fa6b],_0xf31a('0x147')));return{'code':0xc8,'result':_0xf31a('0x147')};}else{logger['info'](util[_0xf31a('0x29')](_0xf31a('0x14e'),_0x3307c8[_0x30fa6b],_0xf31a('0x148')));this[_0xf31a('0x3a')][_0xf31a('0xaa')](util['format'](_0xf31a('0x14e'),_0x3307c8[_0x30fa6b],_0xf31a('0x148')));}}return{'code':0xc8,'result':_0xf31a('0x148')};};AGIVertices[_0xf31a('0xf')][_0xf31a('0x14f')]=function(_0x5c1261){logger[_0xf31a('0x30')](util['format'](_0xf31a('0x150'),_0x5c1261[_0xf31a('0x38')]));return this[_0xf31a('0x3a')]['hangup']();};AGIVertices[_0xf31a('0xf')]['ispeechasr']=function(_0x2051b8){logger[_0xf31a('0x30')](util[_0xf31a('0x29')](_0xf31a('0x151'),_0x2051b8['label']));if(!this[_0xf31a('0x85')](_0x2051b8[_0xf31a('0x79')])){return this[_0xf31a('0x3a')][_0xf31a('0xaa')](_0xf31a('0xea'));}var _0xb15a4=_0xf31a('0x132');var _0x40350d=util[_0xf31a('0x29')](_0xf31a('0x133'),FILES_PATH,rs[_0xf31a('0x11d')](0x4));var _0x183cad=util[_0xf31a('0x29')](_0xf31a('0x9f'),_0x40350d,_0xb15a4);var _0x5d710d=!![];if(_0x2051b8[_0xf31a('0x152')]===_0xf31a('0x134')){_0x5d710d=![];}var _0x490c16=this[_0xf31a('0x3a')][_0xf31a('0x13d')](_0x40350d,_0xb15a4,_0x2051b8[_0xf31a('0x135')],_0x2051b8[_0xf31a('0x65')],undefined,_0x5d710d);if(_0x490c16[_0xf31a('0xa5')]!==-0x1){this[_0xf31a('0x3a')][_0xf31a('0xaa')](util[_0xf31a('0x29')](_0xf31a('0x153'),_0x183cad));var _0x29b2f3=this[_0xf31a('0x82')]['sync'](this,_0x2051b8,_0x183cad);if(_0x29b2f3){for(var _0x36c8e7 in _0x29b2f3){if(_0x29b2f3[_0xf31a('0x97')](_0x36c8e7)){this[_0xf31a('0x3a')]['setVariable'](util['format'](_0xf31a('0x154'),_0x36c8e7['toUpperCase']()),_0x29b2f3[_0x36c8e7]);}}return this[_0xf31a('0x3a')][_0xf31a('0xaa')](util[_0xf31a('0x29')](_0xf31a('0x155'),JSON['stringify'](_0x29b2f3)));}}return _0x490c16;};AGIVertices['prototype'][_0xf31a('0x156')]=function(_0x3cfe88){logger[_0xf31a('0x30')](util[_0xf31a('0x29')]('Enter\x20in\x20ISPEECHTTS\x20(%s)\x20block',_0x3cfe88[_0xf31a('0x38')]));if(!this['isConfigured'](_0x3cfe88[_0xf31a('0x79')])){return this['channel'][_0xf31a('0xaa')](_0xf31a('0xea'));}if(!this[_0xf31a('0x85')](_0x3cfe88['text'])){return this[_0xf31a('0x3a')]['noop'](_0xf31a('0xab'));}this['channel'][_0xf31a('0xaa')](util['format']('Trying\x20ispeech\x20TTS\x20%s',_0x3cfe88[_0xf31a('0x5d')]));var _0x3119c8=this['ispeechTTS'][_0xf31a('0x6e')](this,_0x3cfe88);if(_0x3119c8){this[_0xf31a('0x3a')][_0xf31a('0xaa')](util[_0xf31a('0x29')](_0xf31a('0x153'),_0x3119c8));var _0x28ab2b=this[_0xf31a('0x3a')]['streamFile'](_0x3119c8,_0x3cfe88[_0xf31a('0x135')]);try{fs[_0xf31a('0x128')](_0x3119c8+'.wav');}catch(_0x10b685){logger[_0xf31a('0x2c')](_0x10b685);}return _0x28ab2b;}return this[_0xf31a('0x3a')][_0xf31a('0x2c')](_0x3cfe88,_0xf31a('0x157'));};AGIVertices['prototype']['login']=function(_0x4d45cc){logger[_0xf31a('0x30')](util[_0xf31a('0x29')](_0xf31a('0x158'),_0x4d45cc[_0xf31a('0x38')]));if(!this[_0xf31a('0x85')](_0x4d45cc[_0xf31a('0x159')])){return this[_0xf31a('0x3a')]['error'](_0x4d45cc,_0xf31a('0x15a'));}logger[_0xf31a('0x30')](util[_0xf31a('0x29')](_0xf31a('0x15b'),this[_0xf31a('0x3a')]['callerid'],_0x4d45cc[_0xf31a('0x159')]));var _0x50fdac=this['agentLogin'][_0xf31a('0x6e')](this,_0x4d45cc[_0xf31a('0x159')]);if(_0x50fdac){logger['info'](util[_0xf31a('0x29')](_0xf31a('0x15c'),this[_0xf31a('0x3a')]['callerid'],_0x4d45cc[_0xf31a('0x159')]));this['channel']['noop'](util['format'](_0xf31a('0x15c'),this[_0xf31a('0x3a')][_0xf31a('0x3c')],_0x4d45cc['findBy']));return{'code':0xc8,'result':_0xf31a('0x15d')};}else{logger[_0xf31a('0x30')](util['format'](_0xf31a('0x15e'),this['channel'][_0xf31a('0x3c')],_0x4d45cc['findBy']));this[_0xf31a('0x3a')]['noop'](util[_0xf31a('0x29')]('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this[_0xf31a('0x3a')]['callerid'],_0x4d45cc[_0xf31a('0x159')]));return{'code':0xc8,'result':_0xf31a('0x15f')};}};AGIVertices[_0xf31a('0xf')]['logout']=function(_0x21f4fa){logger[_0xf31a('0x30')](util['format'](_0xf31a('0x160'),_0x21f4fa[_0xf31a('0x38')]));if(!this[_0xf31a('0x85')](_0x21f4fa[_0xf31a('0x159')])){return this[_0xf31a('0x3a')]['error'](_0x21f4fa,_0xf31a('0x15a'));}logger['info'](util[_0xf31a('0x29')](_0xf31a('0x15b'),this[_0xf31a('0x3a')][_0xf31a('0x3c')],_0x21f4fa[_0xf31a('0x159')]));var _0x40cba5=this[_0xf31a('0x55')][_0xf31a('0x6e')](this,_0x21f4fa[_0xf31a('0x159')]);if(_0x40cba5){logger[_0xf31a('0x30')](util['format'](_0xf31a('0x15c'),this[_0xf31a('0x3a')][_0xf31a('0x3c')],_0x21f4fa['findBy']));this[_0xf31a('0x3a')]['noop'](util['format'](_0xf31a('0x15c'),this['channel'][_0xf31a('0x3c')],_0x21f4fa[_0xf31a('0x159')]));return{'code':0xc8,'result':_0xf31a('0x15d')};}else{logger[_0xf31a('0x30')](util[_0xf31a('0x29')](_0xf31a('0x15e'),this['channel'][_0xf31a('0x3c')],_0x21f4fa[_0xf31a('0x159')]));this[_0xf31a('0x3a')][_0xf31a('0xaa')](util[_0xf31a('0x29')]('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this[_0xf31a('0x3a')][_0xf31a('0x3c')],_0x21f4fa['findBy']));return{'code':0xc8,'result':_0xf31a('0x15f')};}};AGIVertices[_0xf31a('0xf')][_0xf31a('0x161')]=function(_0x1558f3){logger[_0xf31a('0x30')](util['format'](_0xf31a('0x162'),_0x1558f3[_0xf31a('0x38')]));if(!this[_0xf31a('0x85')](_0x1558f3[_0xf31a('0x163')])){return this[_0xf31a('0x3a')][_0xf31a('0x2c')](_0x1558f3,_0xf31a('0x164'));}this[_0xf31a('0x3a')]['noop'](util[_0xf31a('0x29')](_0xf31a('0x165'),_0x1558f3[_0xf31a('0x163')]));var _0x2cb546=eval(_0x1558f3[_0xf31a('0x163')]);if(!this['isConfigured'](_0x1558f3[_0xf31a('0xd8')])){return this['channel'][_0xf31a('0xaa')]('no\x20variable\x20selected\x20for\x20the\x20result');}var _0x19e610=this['getVariable'][_0xf31a('0x6e')](this,_0x1558f3[_0xf31a('0xd8')]);if(!_0x19e610){return this[_0xf31a('0x3a')]['error'](_0x1558f3,_0xf31a('0xd9'));}if(_[_0xf31a('0x9b')](_0x2cb546)){var _0x2ef83a=this;_0x2cb546['forEach'](function(_0x459ca3,_0x410a61){_0x2ef83a[_0xf31a('0x3a')][_0xf31a('0xa0')](util['format']('%s[%s]',_0x19e610,_0x410a61),_0x459ca3);});return this['channel'][_0xf31a('0xaa')](util[_0xf31a('0x29')](_0xf31a('0x166'),_0x19e610));}else{return this[_0xf31a('0x3a')][_0xf31a('0xa0')](_0x19e610,_0x2cb546);}};AGIVertices['prototype'][_0xf31a('0xb')]=function(_0x31615d){logger[_0xf31a('0x30')](util[_0xf31a('0x29')](_0xf31a('0x167'),_0x31615d[_0xf31a('0x38')]));if(_0x31615d['retry']===0x0){return this[_0xf31a('0xa7')](_0x31615d);}_0x31615d[_0xf31a('0x112')]-=0x1;if(!this[_0xf31a('0x85')](_0x31615d[_0xf31a('0x113')])){return this['channel'][_0xf31a('0x2c')](_0x31615d,_0xf31a('0x114'));}var _0x2b156c=this[_0xf31a('0x1c')][_0xf31a('0x6e')](this,_0x31615d[_0xf31a('0x113')]);if(!_0x2b156c){return this[_0xf31a('0x3a')][_0xf31a('0x2c')](_0x31615d,'no\x20file\x20audio\x20found');}var _0x2e2369=this[_0xf31a('0x3a')]['getData'](_0x2b156c,_0x31615d[_0xf31a('0x118')],_0x31615d['digit']);var _0x1933c4=_0x2e2369['result'];if(_0x2e2369['result']===-0x1){this[_0xf31a('0x36')][_0xf31a('0x6e')](this,_0x31615d,'-1');return _0x2e2369;}else if(_0x2e2369[_0xf31a('0xa3')]==='timeout'){_0x2e2369[_0xf31a('0xa5')]=_0x2e2369[_0xf31a('0xa5')]['length']>0x0?_0x2e2369[_0xf31a('0xa5')]:'t';}else if(_[_0xf31a('0x46')](_0x2e2369[_0xf31a('0xa5')])){_0x2e2369[_0xf31a('0xa5')]='#';_0x1933c4='#';}if(!this[_0xf31a('0x85')](_0x31615d['variable_id'])){this['channel'][_0xf31a('0xaa')]('no\x20variable\x20selected\x20for\x20the\x20result');}else{var _0x18de39=this[_0xf31a('0x10')][_0xf31a('0x6e')](this,_0x31615d['variable_id']);if(!_0x18de39){return this[_0xf31a('0x3a')][_0xf31a('0x2c')](_0x31615d,_0xf31a('0xd9'));}this[_0xf31a('0x3a')][_0xf31a('0xa0')](_0x18de39,_0x1933c4);}this[_0xf31a('0x36')]['sync'](this,_0x31615d,_0x1933c4);return _0x2e2369;};AGIVertices[_0xf31a('0xf')][_0xf31a('0xaa')]=function(_0x2618f7){logger['info'](util[_0xf31a('0x29')](_0xf31a('0x168'),_0x2618f7[_0xf31a('0x38')]));return this['channel']['noop'](_0x2618f7[_0xf31a('0x169')]||_0x2618f7[_0xf31a('0x38')]);};AGIVertices['prototype'][_0xf31a('0x16a')]=function(_0x2693c9){logger[_0xf31a('0x30')](util[_0xf31a('0x29')](_0xf31a('0x16b'),_0x2693c9[_0xf31a('0x38')]));if(!this[_0xf31a('0x85')](_0x2693c9[_0xf31a('0x159')])){return this[_0xf31a('0x3a')][_0xf31a('0x2c')](_0x2693c9,_0xf31a('0x15a'));}logger[_0xf31a('0x30')](util['format'](_0xf31a('0x15b'),this[_0xf31a('0x3a')]['callerid'],_0x2693c9[_0xf31a('0x159')]));var _0x5412da=this[_0xf31a('0x51')]['sync'](this,_0x2693c9[_0xf31a('0x16c')]);var _0x1aa5dd=this[_0xf31a('0x52')][_0xf31a('0x6e')](this,_0x2693c9[_0xf31a('0x159')],_0x5412da);if(_0x1aa5dd){logger['info'](util['format']('AGENT\x20%s\x20FOUND\x20BY',this[_0xf31a('0x3a')]['callerid'],_0x2693c9['findBy']));this['channel'][_0xf31a('0xaa')](util['format'](_0xf31a('0x15c'),this['channel']['callerid'],_0x2693c9[_0xf31a('0x159')]));return{'code':0xc8,'result':_0xf31a('0x15d')};}else{logger[_0xf31a('0x30')](util[_0xf31a('0x29')](_0xf31a('0x15e'),this[_0xf31a('0x3a')][_0xf31a('0x3c')],_0x2693c9[_0xf31a('0x159')]));this['channel'][_0xf31a('0xaa')](util['format'](_0xf31a('0x15c'),this[_0xf31a('0x3a')][_0xf31a('0x3c')],_0x2693c9[_0xf31a('0x159')]));return{'code':0xc8,'result':_0xf31a('0x15f')};}};AGIVertices['prototype']['playback']=function(_0x66ee66){logger[_0xf31a('0x30')](util['format'](_0xf31a('0x16d'),_0x66ee66['label']));if(!this['isConfigured'](_0x66ee66['file_id'])){return this[_0xf31a('0x3a')]['error'](_0x66ee66,_0xf31a('0x114'));}var _0x3e5147=this[_0xf31a('0x1c')]['sync'](this,_0x66ee66[_0xf31a('0x113')]);if(!_0x3e5147){return this[_0xf31a('0x3a')][_0xf31a('0x2c')](_0x66ee66,_0xf31a('0x115'));}var _0x128e6c=this[_0xf31a('0x3a')][_0xf31a('0x59')](_0xf31a('0x16e'),[_0x3e5147,_0x66ee66[_0xf31a('0xe6')]]);if(_0x128e6c['result']===-0x1){return _0x128e6c;}return this[_0xf31a('0x3a')]['noop'](util[_0xf31a('0x29')]('Executed\x20command\x20%s\x20%s',_0xf31a('0x16e'),_0x3e5147));};AGIVertices[_0xf31a('0xf')][_0xf31a('0x16f')]=function(_0x59caf0){logger[_0xf31a('0x30')](util[_0xf31a('0x29')]('Enter\x20in\x20QUEUE\x20(%s)\x20block',_0x59caf0[_0xf31a('0x38')]));if(!this[_0xf31a('0x85')](_0x59caf0[_0xf31a('0x170')])){return this['channel'][_0xf31a('0x2c')](_0x59caf0,_0xf31a('0x171'));}var _0x23708e='';var _0x309517=parseInt(_0x59caf0[_0xf31a('0x170')],0xa);if(isNaN(_0x309517)){_0x23708e=_0x59caf0['queue_id'];}else{_0x23708e=this[_0xf31a('0x14')][_0xf31a('0x6e')](this,_0x59caf0['queue_id']);if(!_0x23708e){return this['channel'][_0xf31a('0x2c')](_0x59caf0,_0xf31a('0x172'));}}var _0x4fb692='';if(this[_0xf31a('0x85')](_0x59caf0[_0xf31a('0x113')])){var _0x1a7e26=this[_0xf31a('0x1c')][_0xf31a('0x6e')](this,_0x59caf0[_0xf31a('0x113')]);if(_0x1a7e26){_0x4fb692=_0x1a7e26;}}this['createSquareDetailsReport'][_0xf31a('0x6e')](this,_0x59caf0,_0x23708e);if(_0x59caf0[_0xf31a('0xe6')][_0xf31a('0x173')]('x')<0x0){_0x59caf0[_0xf31a('0xe6')]+='x';}if(_0x59caf0['opts']['indexOf']('X')<0x0){_0x59caf0[_0xf31a('0xe6')]+='X';}this[_0xf31a('0x3a')]['setVariable'](_0xf31a('0x174'),_0x23708e?_0x23708e[_0xf31a('0x175')]():'');var _0x569ebc=this[_0xf31a('0x3a')][_0xf31a('0x59')](_0xf31a('0x176'),[_0x23708e,_0x59caf0[_0xf31a('0xe6')],_0x59caf0[_0xf31a('0x63')],_0x4fb692,_0x59caf0[_0xf31a('0x65')],_0x59caf0[_0xf31a('0x6')],_0x59caf0[_0xf31a('0x177')],_0x59caf0[_0xf31a('0x178')],'',_0x59caf0[_0xf31a('0x179')]]);if(_0x569ebc[_0xf31a('0xa5')]===-0x1){return _0x569ebc;}return this[_0xf31a('0x3a')]['noop'](util[_0xf31a('0x29')](_0xf31a('0xc5'),_0xf31a('0x176'),_0x23708e));};AGIVertices[_0xf31a('0xf')][_0xf31a('0x17a')]=function(_0x5b6262){logger[_0xf31a('0x30')](util[_0xf31a('0x29')](_0xf31a('0x17b'),_0x5b6262['label']));var _0x9731aa=_0x5b6262[_0xf31a('0x17c')]||_0xf31a('0x132');var _0x4f3510=util['format'](_0xf31a('0x17d'),this[_0xf31a('0x3a')]['uniqueid'],rs[_0xf31a('0x11d')](0x5));var _0x94a2cc=util[_0xf31a('0x29')](_0xf31a('0x17e'),FILES_PATH,_0x4f3510,_0x9731aa);var _0x1099a6=util[_0xf31a('0x29')](_0xf31a('0x133'),FILES_PATH,_0x4f3510);this[_0xf31a('0x3d')][_0xf31a('0x6e')](this,_0x5b6262,_0x4f3510,_0x94a2cc);this['channel'][_0xf31a('0xa0')](_0xf31a('0x17f'),_0x4f3510);logger[_0xf31a('0x30')](_0xf31a('0x180'),_0x1099a6,_0x9731aa,_0x5b6262[_0xf31a('0x181')],_0x5b6262[_0xf31a('0x65')]);return this['channel'][_0xf31a('0x13d')](_0x1099a6,_0x9731aa,_0x5b6262['escape_digits'],_0x5b6262[_0xf31a('0x65')],undefined,!![]);};AGIVertices[_0xf31a('0xf')][_0xf31a('0x182')]=function(_0x34e20e){logger['info'](util['format'](_0xf31a('0x183'),_0x34e20e['label']));if(!this[_0xf31a('0x85')](_0x34e20e[_0xf31a('0x63')])){return this['channel']['noop'](_0xf31a('0x184'));}var _0x2488c8=this[_0xf31a('0x62')]['sync'](this,_0x34e20e);logger['info'](util[_0xf31a('0x29')](_0xf31a('0x185'),util[_0xf31a('0x186')](_0x2488c8,{'showHidden':![],'depth':null})));if(!this[_0xf31a('0x85')](_0x34e20e[_0xf31a('0xd8')])){return this['channel'][_0xf31a('0xaa')](_0xf31a('0x187'));}var _0x45dc76=this[_0xf31a('0x10')][_0xf31a('0x6e')](this,_0x34e20e[_0xf31a('0xd8')]);if(!_0x45dc76){return this['channel'][_0xf31a('0x2c')](_0x34e20e,_0xf31a('0xd9'));}this[_0xf31a('0x3a')][_0xf31a('0xa0')](util[_0xf31a('0x29')](_0xf31a('0x188'),_0x45dc76),_0x2488c8[_0xf31a('0x74')]?_0x2488c8['statusCode']:_0xf31a('0x189'));this[_0xf31a('0x3a')]['setVariable'](util[_0xf31a('0x29')]('%s_STATUS_MESSAGE',_0x45dc76),_0x2488c8[_0xf31a('0x75')]?_0x2488c8[_0xf31a('0x75')]:'OK');if(_0x2488c8[_0xf31a('0x69')]){try{this['saveRestApiResult'](_0x2488c8[_0xf31a('0x69')],_0x45dc76);}catch(_0x109201){logger[_0xf31a('0x2c')](util[_0xf31a('0x29')](_0xf31a('0x18a'),_0x45dc76));}}return this[_0xf31a('0x3a')][_0xf31a('0xaa')](util[_0xf31a('0x29')](_0xf31a('0xde'),_0x45dc76));};AGIVertices[_0xf31a('0xf')][_0xf31a('0x18b')]=function(_0x4c7384){logger[_0xf31a('0x30')](util['format'](_0xf31a('0x18c'),_0x4c7384[_0xf31a('0x38')]));return this[_0xf31a('0x3a')][_0xf31a('0x18d')](_0x4c7384['digits']['replace'](/\s+/g,''),_0x4c7384['escape_digits']);};AGIVertices[_0xf31a('0xf')][_0xf31a('0x18e')]=function(_0x15d31b){logger[_0xf31a('0x30')](util[_0xf31a('0x29')](_0xf31a('0x18f'),_0x15d31b[_0xf31a('0x38')]));return this[_0xf31a('0x3a')][_0xf31a('0x190')](_0x15d31b[_0xf31a('0x66')][_0xf31a('0x5a')](/\s+/g,''),_0x15d31b['escape_digits']);};AGIVertices[_0xf31a('0xf')][_0xf31a('0x191')]=function(_0x39cc18){logger['info'](util[_0xf31a('0x29')](_0xf31a('0x192'),_0x39cc18[_0xf31a('0x38')]));return this[_0xf31a('0x3a')][_0xf31a('0x193')](_0x39cc18[_0xf31a('0x5d')],_0x39cc18[_0xf31a('0x181')]);};AGIVertices[_0xf31a('0xf')][_0xf31a('0x194')]=function(_0x440ba7){logger['info'](util[_0xf31a('0x29')](_0xf31a('0x195'),_0x440ba7['label']));if(!this['isConfigured'](_0x440ba7[_0xf31a('0x196')])){return this[_0xf31a('0x3a')][_0xf31a('0xaa')](_0xf31a('0x197'));}var _0x418d07=this[_0xf31a('0x20')]['sync'](this,_0x440ba7[_0xf31a('0x196')]);if(!_0x418d07||!_0x418d07[_0xf31a('0x198')]){return this['channel'][_0xf31a('0x2c')](_0x440ba7,_0xf31a('0x199'));}var _0x557249={'from':util[_0xf31a('0x29')](_0xf31a('0x19a'),_0x418d07[_0xf31a('0x16')],_0x418d07[_0xf31a('0x19b')]||_0x418d07[_0xf31a('0x198')]['user']),'to':_0x440ba7['to']||'','cc':_0x440ba7['cc']||'','bcc':_0x440ba7['bcc']||'','subject':_0x440ba7[_0xf31a('0x19c')],'html':_0x440ba7[_0xf31a('0x5d')],'text':_0x440ba7[_0xf31a('0x5d')]};if(this[_0xf31a('0x85')](_0x440ba7[_0xf31a('0x19d')])){}logger['debug'](_0xf31a('0x19e'),JSON[_0xf31a('0x72')](_0x557249));this[_0xf31a('0x36')]['sync'](this,_0x440ba7,_0x440ba7[_0xf31a('0x196')]);this[_0xf31a('0x3a')][_0xf31a('0xaa')](util[_0xf31a('0x29')](_0xf31a('0x19f'),_0x418d07[_0xf31a('0x16')]));this[_0xf31a('0x22')][_0xf31a('0x6e')](this,_0x418d07['smtpOptions'],_0x557249);return this[_0xf31a('0x3a')][_0xf31a('0xaa')](_0xf31a('0x1a0'));};AGIVertices[_0xf31a('0xf')][_0xf31a('0x1a1')]=function(_0x569a6b){logger['info'](util['format'](_0xf31a('0x1a2'),_0x569a6b['label']));return this[_0xf31a('0x3a')][_0xf31a('0xaa')](_0xf31a('0x1a3'));};AGIVertices[_0xf31a('0xf')][_0xf31a('0x1a4')]=function(_0x296075){logger[_0xf31a('0x30')](util[_0xf31a('0x29')](_0xf31a('0x1a5'),_0x296075[_0xf31a('0x38')]));if(!this[_0xf31a('0x85')](_0x296075[_0xf31a('0x1a6')])){return this[_0xf31a('0x3a')][_0xf31a('0xaa')](_0xf31a('0x1a7'));}var _0x3cd5ac=this['getSmsAccount'][_0xf31a('0x6e')](this,_0x296075[_0xf31a('0x1a6')]);if(!_0x3cd5ac){return this[_0xf31a('0x3a')][_0xf31a('0x2c')](_0x296075,'no\x20sms\x20account\x20found');}var _0x514362={'body':_0x296075[_0xf31a('0x1a8')],'phone':_0x296075['to']||'','SmsAccountId':_0x3cd5ac['id']};logger[_0xf31a('0x1a9')]('sendSMS\x20message',JSON['stringify'](_0x514362));this[_0xf31a('0x36')][_0xf31a('0x6e')](this,_0x296075,_0x296075['sms_account_id']);this[_0xf31a('0x3a')][_0xf31a('0xaa')](util[_0xf31a('0x29')](_0xf31a('0x1aa'),_0x3cd5ac['name']));this[_0xf31a('0x35')][_0xf31a('0x6e')](this,_0x514362);return this[_0xf31a('0x3a')][_0xf31a('0xaa')](_0xf31a('0x1ab'));};AGIVertices[_0xf31a('0xf')][_0xf31a('0x1ac')]=function(_0x2ae0e0){logger[_0xf31a('0x30')](util[_0xf31a('0x29')](_0xf31a('0x1ad'),_0x2ae0e0[_0xf31a('0x38')]));if(!this[_0xf31a('0x85')](_0x2ae0e0[_0xf31a('0xd8')])){return this[_0xf31a('0x3a')][_0xf31a('0x2c')](_0x2ae0e0,_0xf31a('0x1ae'));}var _0x8e81dc=this[_0xf31a('0x10')][_0xf31a('0x6e')](this,_0x2ae0e0[_0xf31a('0xd8')]);if(!_0x8e81dc){return this[_0xf31a('0x3a')]['error'](_0x2ae0e0,_0xf31a('0xd9'));}return this[_0xf31a('0x3a')]['setVariable'](_0x8e81dc,_0x2ae0e0[_0xf31a('0x1af')]);};AGIVertices[_0xf31a('0xf')][_0xf31a('0x1b0')]=function(_0x5bbccd){logger[_0xf31a('0x30')](util['format']('Enter\x20in\x20START\x20(%s)\x20block',_0x5bbccd[_0xf31a('0x38')]));this[_0xf31a('0x3a')]['noop'](_0xf31a('0x1b1'));var _0x1192f3=this[_0xf31a('0x3a')][_0xf31a('0x10')](_0xf31a('0x1b2'));if(!_['isEmpty'](_0x1192f3['extra'])){this['channel'][_0xf31a('0x37')]=_0x1192f3['extra'];}if(_0x5bbccd[_0xf31a('0xba')]===_0xf31a('0x1b3')){this[_0xf31a('0x3a')][_0xf31a('0xaa')]('Answer');return this[_0xf31a('0x3a')][_0xf31a('0xba')]();}return this[_0xf31a('0x3a')][_0xf31a('0xaa')](_0xf31a('0x1b4'));};AGIVertices[_0xf31a('0xf')][_0xf31a('0x1b5')]=function(_0x294cf8){logger[_0xf31a('0x30')](util['format'](_0xf31a('0x1b6'),_0x294cf8[_0xf31a('0x38')]));if(!this[_0xf31a('0x85')](_0x294cf8[_0xf31a('0x1b7')])){return this[_0xf31a('0x3a')]['error'](_0x294cf8,_0xf31a('0x1b8'));}var _0x42ffd6=this[_0xf31a('0x17')][_0xf31a('0x6e')](this,_0x294cf8[_0xf31a('0x1b7')]);if(!this['isConfigured'](_0x42ffd6)){return this['channel'][_0xf31a('0x2c')](_0x294cf8,util['format'](_0xf31a('0x1b9'),_0x294cf8[_0xf31a('0x1b7')]));}if(_0x42ffd6===this[_0xf31a('0x3a')][_0xf31a('0x3b')]){return this[_0xf31a('0x3a')][_0xf31a('0x2c')](_0x294cf8,_0xf31a('0x1ba'));}this['createSquareDetailsReport'][_0xf31a('0x6e')](this,_0x294cf8,_0x42ffd6);var _0x126901=this['channel'][_0xf31a('0x59')](_0xf31a('0x1bb'),util['format'](_0xf31a('0x1bc'),config['agi'][_0xf31a('0x1bd')]||'127.0.0.1',_0x42ffd6,this[_0xf31a('0x3a')][_0xf31a('0x3b')]));if(_0x126901[_0xf31a('0xa5')]===-0x1){return _0x126901;}return this[_0xf31a('0x3a')][_0xf31a('0xaa')](util[_0xf31a('0x29')](_0xf31a('0xc5'),_0xf31a('0x1bb'),_0x42ffd6));};AGIVertices['prototype'][_0xf31a('0x1be')]=function(_0x2ea979){logger['info'](util[_0xf31a('0x29')](_0xf31a('0x1bf'),_0x2ea979[_0xf31a('0x38')]));var _0x383f01=this['shellCommand'][_0xf31a('0x6e')](this,_0x2ea979['command']);this[_0xf31a('0x36')][_0xf31a('0x6e')](this,_0x2ea979,_0x2ea979[_0xf31a('0x1c0')]);if(this[_0xf31a('0x85')](_0x2ea979[_0xf31a('0xd8')])){var _0xe930da=this[_0xf31a('0x10')][_0xf31a('0x6e')](this,_0x2ea979[_0xf31a('0xd8')]);if(_0xe930da){this[_0xf31a('0x3a')][_0xf31a('0xa0')](_0xe930da,_0x383f01);return this[_0xf31a('0x3a')][_0xf31a('0xaa')](util[_0xf31a('0x29')](_0xf31a('0x1c1'),_0x2ea979[_0xf31a('0x1c0')],_0xe930da));}}return this[_0xf31a('0x3a')]['noop'](util[_0xf31a('0x29')](_0xf31a('0x1c2'),_0x2ea979[_0xf31a('0x1c0')]));};AGIVertices[_0xf31a('0xf')][_0xf31a('0x1c3')]=function(_0x51b382){logger[_0xf31a('0x30')](util[_0xf31a('0x29')](_0xf31a('0x1c4'),_0x51b382['label']));_0x51b382[_0xf31a('0x5d')]=_0x51b382['text'][_0xf31a('0x5a')](/(\r\n|\n|\r)/gm,'\x20');if(!this[_0xf31a('0x85')](_0x51b382[_0xf31a('0x5b')])){return this[_0xf31a('0x3a')][_0xf31a('0xaa')](_0xf31a('0x1c5'));}if(!this['isConfigured'](_0x51b382['text'])){return this[_0xf31a('0x3a')][_0xf31a('0xaa')]('no\x20text\x20configured');}this[_0xf31a('0x3a')]['noop'](util[_0xf31a('0x29')]('Trying\x20Google\x20Cloud\x20TTS\x20%s',_0x51b382[_0xf31a('0x5d')]));var _0xc942ee=this[_0xf31a('0x1c6')][_0xf31a('0x6e')](this,_0x51b382);if(_0xc942ee){this['channel'][_0xf31a('0xaa')](util[_0xf31a('0x29')](_0xf31a('0x1c7'),_0xc942ee));var _0x3d5b41=this[_0xf31a('0x3a')][_0xf31a('0x103')](_0xc942ee);try{fs[_0xf31a('0x128')](_0xc942ee+_0xf31a('0x104'));}catch(_0x32ff03){logger[_0xf31a('0x2c')](_0x32ff03);}return _0x3d5b41;}return this['channel']['error'](_0x51b382,_0xf31a('0x1c8'));};AGIVertices['prototype']['tts']=function(_0x3cfd1f){logger[_0xf31a('0x30')](util[_0xf31a('0x29')]('Enter\x20in\x20GOOGLETTS\x20(%s)\x20block',_0x3cfd1f[_0xf31a('0x38')]));_0x3cfd1f[_0xf31a('0x5d')]=_0x3cfd1f['text'][_0xf31a('0x5a')](/(\r\n|\n|\r)/gm,'\x20');if(!this[_0xf31a('0x85')](_0x3cfd1f['text'])){return this[_0xf31a('0x3a')][_0xf31a('0xaa')]('no\x20text\x20configured');}this['channel'][_0xf31a('0xaa')](util[_0xf31a('0x29')](_0xf31a('0x1c9'),_0x3cfd1f['text']));var _0xfccba=this[_0xf31a('0x61')][_0xf31a('0x6e')](this,_0x3cfd1f);if(_0xfccba){this[_0xf31a('0x3a')]['noop'](util[_0xf31a('0x29')](_0xf31a('0x1ca'),_0xfccba));var _0x2c6bfb=this['channel'][_0xf31a('0x103')](_0xfccba);try{fs[_0xf31a('0x128')](_0xfccba+_0xf31a('0x104'));}catch(_0x19bf75){logger['error'](_0x19bf75);}return _0x2c6bfb;}return this['channel'][_0xf31a('0x2c')](_0x3cfd1f,_0xf31a('0x1cb'));};AGIVertices['prototype'][_0xf31a('0x1cc')]=function(_0x4c18d8){logger[_0xf31a('0x30')](util[_0xf31a('0x29')](_0xf31a('0x1cd'),_0x4c18d8[_0xf31a('0x38')]));if(!this[_0xf31a('0x85')](_0x4c18d8[_0xf31a('0x159')])){return this[_0xf31a('0x3a')][_0xf31a('0x2c')](_0x4c18d8,'no\x20find\x20by\x20configured');}logger['info'](util[_0xf31a('0x29')]('FIND\x20AGENT\x20%s\x20BY\x20%s',this[_0xf31a('0x3a')][_0xf31a('0x3c')],_0x4c18d8['findBy']));var _0x20a68f=this[_0xf31a('0x54')]['sync'](this,_0x4c18d8[_0xf31a('0x159')]);if(_0x20a68f){logger[_0xf31a('0x30')](util[_0xf31a('0x29')](_0xf31a('0x15c'),this['channel'][_0xf31a('0x3c')],_0x4c18d8[_0xf31a('0x159')]));this[_0xf31a('0x3a')]['noop'](util[_0xf31a('0x29')](_0xf31a('0x15c'),this[_0xf31a('0x3a')]['callerid'],_0x4c18d8[_0xf31a('0x159')]));return{'code':0xc8,'result':_0xf31a('0x15d')};}else{logger[_0xf31a('0x30')](util[_0xf31a('0x29')]('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this[_0xf31a('0x3a')][_0xf31a('0x3c')],_0x4c18d8[_0xf31a('0x159')]));this[_0xf31a('0x3a')][_0xf31a('0xaa')](util[_0xf31a('0x29')]('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this['channel'][_0xf31a('0x3c')],_0x4c18d8[_0xf31a('0x159')]));return{'code':0xc8,'result':'failure'};}};AGIVertices[_0xf31a('0xf')][_0xf31a('0x1ce')]=function(_0x1ce36f){logger[_0xf31a('0x30')](util[_0xf31a('0x29')](_0xf31a('0x1cf'),_0x1ce36f[_0xf31a('0x38')]));var _0x2bc116=this[_0xf31a('0x3a')][_0xf31a('0x59')]('VOICEMAIL',[_0x1ce36f[_0xf31a('0x1d0')],_0x1ce36f[_0xf31a('0x78')]]);if(_0x2bc116['result']===-0x1){return _0x2bc116;}return this['channel'][_0xf31a('0xaa')](util[_0xf31a('0x29')](_0xf31a('0xc5'),_0xf31a('0x1d1'),_0x1ce36f[_0xf31a('0x1d0')]));};AGIVertices['prototype'][_0xf31a('0x1d2')]=function(_0x18e356){logger[_0xf31a('0x30')](util[_0xf31a('0x29')](_0xf31a('0x1d3'),_0x18e356[_0xf31a('0x38')]));if(!this['isConfigured'](_0x18e356[_0xf31a('0xd8')])){return this[_0xf31a('0x3a')]['error'](_0x18e356,_0xf31a('0x1ae'));}var _0x490496=this[_0xf31a('0x10')][_0xf31a('0x6e')](this,_0x18e356[_0xf31a('0xd8')]);if(!_0x490496){return this[_0xf31a('0x3a')][_0xf31a('0x2c')](_0x18e356,_0xf31a('0xd9'));}var _0x133263=this[_0xf31a('0x3a')]['getVariable'](_0x490496);return{'code':0xc8,'result':_0x133263[_0xf31a('0xa3')]?_0x133263['extra']:'-'};};String[_0xf31a('0xf')][_0xf31a('0xa2')]=function(_0x30d5bc,_0x66eb48){return this[_0xf31a('0xa1')](_0x30d5bc)['join'](_0x66eb48);};module[_0xf31a('0x1d4')]=AGIVertices;
\ No newline at end of file
+var _0x4b84=['project\x20in\x20subproject\x20must\x20be\x20different\x20from\x20the\x20called\x20project','AGI','host','127.0.0.1','system','Enter\x20in\x20SYSTEM\x20(%s)\x20block','sh\x20command:\x20%s\x20result\x20on\x20variable:\x20%s','sh\x20command:\x20%s\x20result\x20no\x20stored','google_cloud_tts','Trying\x20Google\x20Cloud\x20TTS\x20%s','Google\x20Cloud\x20TTS\x20%s\x20file\x20created','Enter\x20in\x20GOOGLETTS\x20(%s)\x20block','Trying\x20Google\x20TTS\x20%s','Google\x20TTS\x20%s\x20file\x20created','Google\x20TTS\x20is\x20unreachable','unpause','Enter\x20in\x20UNPAUSE\x20(%s)\x20block','voicemail','VOICEMAIL','mailbox','Enter\x20in\x20SWITCH\x20(%s)\x20block','no\x20variable\x20selected','replaceAll','join','util','lodash','randomstring','request-promise','../../config/logger','agi','rawHeaders','menu','getsecretdigits','channel','rpc','prototype','getVariable','getVariableById','then','name','catch','getVoiceQueueById','getSquareOdbc','getSquareOdbcById','dsn','getUser','getTrunk','getTrunkById','getSound','save_name','getMailAccountById','sendMailMessage','mailRpc','getIntervals','getIntervalById','IntervalId','interval','Intervals','getSoundPath','format','%s/sounds/converted/%s','getQueryOdbc','open','error','Error\x20getting\x20ODBC\x20connection\x20%s','info','ODBC\x20connection\x20successfully','query','Error\x20executing\x20query\x20%s','Query\x20executed\x20correctly\x20%s','close','getSmsAccount','getSmsAccountById','createSmsMessage','createSquareDetailsReport','uniqueid','label','arg_1','callerid','createSquareRecording','context','extension','priority','file','createSquareMessage','createCmContact','isEmpty','isNil','callback_','random','lastName','phone','scheduledAt','callback','toString','getPauseById','agentPause','agent','agentUnpause','agentLogout','internal','%s/%s@from-sip/n','LOCAL','agentLogin','shellCommand','exec','trim','googleCloudTTS','apiKey','google_cloud_tts_text_type','text','languageCode','en-US','ssmlGender','MALE','googleTTS','google_tts_language','restAPI','url','method','timeout','includes','POST','PUT','toUpperCase','body','rawBody','parse','headers','An\x20incorrect\x20formatted\x20json\x20headers\x20has\x20been\x20passed\x20to\x20the\x20function','computedVariables','sync','uri','render','stringify','An\x20incorrect\x20formatted\x20json\x20has\x20been\x20passed\x20to\x20the\x20function','statusCode','statusMessage','message','500\x20-\x20Internal\x20Server\x20Error','options','googleDialogflow','key','googleDialogflowV2','dialogflowV2_project_id','client_email','private_key','dialogflowV2_language','sestekNDA','ispeechTTS','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','awsLex','aws_lex_region','aws_bot_name','googleASR','google_asr_language','tildeASR','appid','appsecret','isString','replaceObjectAllVariables','replaceAllVariables','recursiveNodeIndex','isPlainObject','isArray','length','saveRestApiResult','%s.%s','setVariable','split','extra','getAndSetVariable','result','maxRetry','retry','mrcpsynth','Enter\x20in\x20MRCPSynth\x20(%s)\x20block','noop','no\x20text\x20configured','MRCPSynth','mrcprecog','Enter\x20in\x20MRCPRecog\x20(%s)\x20block','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','command','args','wait','answer','Enter\x20in\x20CALLBACK\x20(%s)\x20block','list_id','no\x20list\x20selected','delay','add','minutes','callback_priority','CALLBACK\x20added\x20phone:\x20%s\x20on\x20list:\x20%s\x20at\x20%s','Enter\x20in\x20CUSTOM\x20APP\x20(%s)\x20block','Executed\x20command\x20%s\x20%s','lumenvoxtts','Executed\x20command\x20MRCPSynth\x20%s','sestektts','Enter\x20in\x20SESTEKTTS\x20(%s)\x20block','lumenvoxasr','Enter\x20in\x20LUMENVOXASR\x20(%s)\x20block','LUMENVOX_ASR_CONFIDENCE','LUMENVOX_ASR_INSTANCE','sestekasr','SESTEK_ASR_INSTANCE','database','Enter\x20in\x20DATABASE\x20(%s)\x20block','no\x20database\x20selected','odbc_id','no\x20odbc\x20database\x20found','replace','variable_id','no\x20variable\x20found','forEach','%s[%s][%s]','variable\x20%s\x20set','Enter\x20in\x20DIAL\x20(%s)\x20block','no\x20user\x20selected','sip_id','no\x20user\x20found','DIAL','SIP/%s','dialogflow','Enter\x20in\x20DIALOGFLOW\x20(%s)\x20block','no\x20key\x20configured','bot','hasOwnProperty','DIALOGFLOW_%s','speech','out','Dialogflow\x20Result\x20%s','Dialogflow\x20is\x20unreachable','dialogflowV2','no\x20client_email\x20configured','no\x20private_key\x20configured','no\x20anguage\x20configured','Trying\x20DialogflowV2:\x20%s','providerResponse','DialogflowV2\x20Result\x20%s','sesteknda','ndauth_url','no\x20ndauth\x20url\x20configured','username','password','Trying\x20SestekNDA:\x20%s','SESTEK_NDA_%s','audiofile','Sestek\x20NDA\x20%s\x20file\x20created','streamFile','SestekNDA\x20Result\x20%s','SestekNDA\x20is\x20unreachable','end','Enter\x20in\x20END\x20(%s)\x20block','trunk_id','no\x20trunk\x20selected','no\x20trunk\x20found','trunk_name','SIP/%s/%s','opts','Executed\x20command\x20%s','Enter\x20in\x20FINALLY\x20(%s)\x20block','finally','getdigits','Enter\x20in\x20GETDIGITS\x20(%s)\x20block','file_id','no\x20file\x20audio\x20found','no\x20variable\x20selected\x20for\x20the\x20result','response','maxdigit','mindigit','hiddendigitsnum','generate','hiddendigitspos','first','substr','goal','Enter\x20in\x20GOAL\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','unlink','.wav','awslex','Enter\x20in\x20Amazon\x20Lex\x20(%s)\x20block','Trying\x20Amazon\x20Lex:\x20%s','amazonlex','Amazon\x20Lex\x20is\x20unreachable','googleasr','Enter\x20in\x20GOOGLEASR\x20(%s)\x20block\x20%s','wav','%s/recordings/%s','beep','NOBEEP','recordFile','intKey','GOOGLE_ASR_%s','GoogleASR\x20Result\x20%s','tildeasr','Enter\x20in\x20TILDEASR\x20(%s)\x20block','no\x20appid\x20configured','tilde\x20%s\x20file\x20created','Enter\x20in\x20GOTO\x20(%s)\x20block','gotoif','Enter\x20in\x20GOTOIF\x20(%s)\x20block','condition','no\x20condition\x20configured','true','false','gotoiftime','Enter\x20in\x20GOTOIFTIME\x20(%s)\x20block','no\x20interval\x20configured','interval_id','no\x20intervals\x20found','IFTIME(%s?true:false)','IFTIME\x20%s\x20%s','hangup','Enter\x20in\x20HANGUP\x20(%s)\x20block','ispeechasr','Enter\x20in\x20ISPEECHASR\x20(%s)\x20block','ispeech\x20%s\x20file\x20created','ISPEECH_ASR_%s','ispeechtts','Trying\x20ispeech\x20TTS\x20%s','ispeech\x20TTS\x20is\x20unreachable','Enter\x20in\x20LOGIN\x20(%s)\x20block','findBy','no\x20find\x20by\x20configured','FIND\x20AGENT\x20%s\x20BY\x20%s','AGENT\x20%s\x20FOUND\x20BY','success','AGENT\x20%s\x20NOT\x20FOUND\x20BY','failure','Enter\x20in\x20LOGOUT\x20(%s)\x20block','Enter\x20in\x20MATH\x20(%s)\x20block','operation','no\x20operation\x20configured','%s[%s]','variable\x20%s[key]\x20set','getData','Enter\x20in\x20NOOP\x20(%s)\x20block','output','pause','Enter\x20in\x20PAUSE\x20(%s)\x20block','getPause','pause_id','playback','no\x20file\x20audio\x20selected','PLAYBACK','queue','Enter\x20in\x20QUEUE\x20(%s)\x20block','queue_id','no\x20queue\x20selected','no\x20queue\x20found','indexOf','XMCS-QUEUE','toLowerCase','macro','gosub','QUEUE','record','Enter\x20in\x20RECORD\x20(%s)\x20block','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_MESSAGE','Unable\x20to\x20set\x20result\x20in\x20variable\x20%s','Enter\x20in\x20SAYDIGITS\x20(%s)\x20block','sayDigits','Enter\x20in\x20SAYNUMBER\x20(%s)\x20block','sayNumber','number','sayphonetic','Enter\x20in\x20SAYPHONETIC\x20(%s)\x20block','sayPhonetic','account_id','no\x20mail\x20account\x20configured','getMailAccount','Smtp','no\x20mail\x20account\x20found','\x22%s\x22\x20<%s>','email','bcc','template_id','debug','Trying\x20SendMail\x20with\x20account\x20%s','sendFax','Enter\x20in\x20SENDFAX\x20(%s)\x20block','SENDFAX\x20block\x20not\x20implemented','sendSMS','Enter\x20in\x20SENDSMS\x20(%s)\x20block','sms_account_id','no\x20sms\x20account\x20configured','sms_text','sendSMS\x20message','Trying\x20SendSMS\x20with\x20account\x20%s','Sms\x20message\x20added\x20to\x20outgoing\x20process','set','Enter\x20in\x20SET\x20(%s)\x20block','variable_value','START\x20CALLY\x20SQUARE','yes','Answer','subproject','project_id','getSquareProject','no\x20subproject\x20found\x20with\x20id\x20%d'];(function(_0x51cce9,_0x2b6d62){var _0x32053b=function(_0x18d168){while(--_0x18d168){_0x51cce9['push'](_0x51cce9['shift']());}};_0x32053b(++_0x2b6d62);}(_0x4b84,0x1cc));var _0x44b8=function(_0x29d6e6,_0x264220){_0x29d6e6=_0x29d6e6-0x0;var _0xc75ff0=_0x4b84[_0x29d6e6];return _0xc75ff0;};'use strict';var fs=require('fs');var util=require(_0x44b8('0x0'));var _=require(_0x44b8('0x1'));var sh=require('shelljs');var odbc=require('odbc')();var rs=require(_0x44b8('0x2'));var moment=require('moment');var Mustache=require('mustache');var rp=require(_0x44b8('0x3'));var logger=require(_0x44b8('0x4'))(_0x44b8('0x5'));var config=require('../../config/environment');var scripts=require('./scripts');var FILES_PATH='/var/opt/motion2/server/files';var recursiveMapAttributes=[_0x44b8('0x6'),'rawBody'];var verticesWithRetry=[_0x44b8('0x7'),'getdigits',_0x44b8('0x8')];var AGIVertices=function(_0x5a2353,_0x5034b6,_0x41d515){this[_0x44b8('0x9')]=_0x5a2353;this[_0x44b8('0xa')]=_0x5034b6;this['mailRpc']=_0x41d515;};AGIVertices[_0x44b8('0xb')][_0x44b8('0xc')]=function(_0x4315f6,_0x9b6048){this[_0x44b8('0xa')][_0x44b8('0xd')](_0x4315f6)[_0x44b8('0xe')](function(_0x4ae8a1){_0x9b6048(null,_0x4ae8a1?_0x4ae8a1[_0x44b8('0xf')]:![]);})[_0x44b8('0x10')](function(_0x4bcc43){_0x9b6048(_0x4bcc43);});};AGIVertices[_0x44b8('0xb')]['getVoiceQueue']=function(_0x833ea3,_0x18d642){this['rpc'][_0x44b8('0x11')](_0x833ea3)['then'](function(_0x54fa95){_0x18d642(null,_0x54fa95?_0x54fa95[_0x44b8('0xf')]:![]);})[_0x44b8('0x10')](function(_0x1722da){_0x18d642(_0x1722da);});};AGIVertices[_0x44b8('0xb')]['getSquareProject']=function(_0x495c74,_0x5d6349){this[_0x44b8('0xa')]['getSquareProjectById'](_0x495c74)[_0x44b8('0xe')](function(_0x31651b){_0x5d6349(null,_0x31651b?_0x31651b['name']:![]);})[_0x44b8('0x10')](function(_0xe3de8f){_0x5d6349(_0xe3de8f);});};AGIVertices['prototype'][_0x44b8('0x12')]=function(_0x3f4688,_0x4b600f){this[_0x44b8('0xa')][_0x44b8('0x13')](_0x3f4688)[_0x44b8('0xe')](function(_0x235bdc){_0x4b600f(null,_0x235bdc?_0x235bdc[_0x44b8('0x14')]:![]);})[_0x44b8('0x10')](function(_0x452f2f){_0x4b600f(_0x452f2f);});};AGIVertices[_0x44b8('0xb')][_0x44b8('0x15')]=function(_0x1e0f2d,_0x1d642b){this[_0x44b8('0xa')]['getUserById'](_0x1e0f2d)[_0x44b8('0xe')](function(_0x3a8aa4){_0x1d642b(null,_0x3a8aa4?_0x3a8aa4[_0x44b8('0xf')]:![]);})[_0x44b8('0x10')](function(_0x305a5c){_0x1d642b(_0x305a5c);});};AGIVertices['prototype'][_0x44b8('0x16')]=function(_0x54677c,_0x41a922){this[_0x44b8('0xa')][_0x44b8('0x17')](_0x54677c)[_0x44b8('0xe')](function(_0x230a3d){_0x41a922(null,_0x230a3d?_0x230a3d['name']:![]);})[_0x44b8('0x10')](function(_0x502acf){_0x41a922(_0x502acf);});};AGIVertices[_0x44b8('0xb')][_0x44b8('0x18')]=function(_0x549a26,_0x17ac44){var _0x470f49=this;this[_0x44b8('0xa')]['getSoundById'](_0x549a26)[_0x44b8('0xe')](function(_0x242342){_0x17ac44(null,_0x242342?_0x470f49['getSoundPath'](_0x242342[_0x44b8('0x19')]):![]);})['catch'](function(_0xfb0028){_0x17ac44(_0xfb0028);});};AGIVertices['prototype']['getMailAccount']=function(_0x5948dc,_0x387293){this[_0x44b8('0xa')][_0x44b8('0x1a')](_0x5948dc)[_0x44b8('0xe')](function(_0x38cd17){_0x387293(null,_0x38cd17?_0x38cd17:![]);})[_0x44b8('0x10')](function(_0x2cf205){_0x387293(_0x2cf205);});};AGIVertices[_0x44b8('0xb')][_0x44b8('0x1b')]=function(_0x28f918,_0x5e1129,_0x417d81){this[_0x44b8('0x1c')]['sendMailMessage'](_0x28f918,_0x5e1129)[_0x44b8('0xe')](function(){_0x417d81(null);})['catch'](function(_0x212983){_0x417d81(_0x212983);});};AGIVertices[_0x44b8('0xb')][_0x44b8('0x1d')]=function(_0xb64609,_0x1b63a7){this['rpc'][_0x44b8('0x1e')](_0xb64609)[_0x44b8('0xe')](function(_0x26265f){if(_0x26265f){if(_0x26265f[_0x44b8('0x1f')]){_0x1b63a7(null,[_0x26265f[_0x44b8('0x20')]]);}else{_0x1b63a7(null,_['map'](_0x26265f[_0x44b8('0x21')],_0x44b8('0x20')));}}else{_0x1b63a7(null,![]);}})[_0x44b8('0x10')](function(_0x3e93af){_0x1b63a7(_0x3e93af);});};AGIVertices[_0x44b8('0xb')][_0x44b8('0x22')]=function(_0x2e8b88){return util[_0x44b8('0x23')](_0x44b8('0x24'),FILES_PATH,_0x2e8b88);};AGIVertices[_0x44b8('0xb')][_0x44b8('0x25')]=function(_0xce304d,_0xa5ac3e,_0xae15f4){odbc[_0x44b8('0x26')](_0xce304d,function(_0x1becb0){if(_0x1becb0){logger[_0x44b8('0x27')](_0x44b8('0x28'),_0x1becb0);_0xae15f4(_0x1becb0);}else{logger[_0x44b8('0x29')](_0x44b8('0x2a'));odbc[_0x44b8('0x2b')](_0xa5ac3e,function(_0x282345,_0x59848c){if(_0x282345){logger[_0x44b8('0x29')](_0x44b8('0x2c'),_0xa5ac3e);_0xae15f4(_0x282345);}else{logger['info'](_0x44b8('0x2d'),_0xa5ac3e);odbc[_0x44b8('0x2e')](function(_0x6658be){if(_0x6658be){logger[_0x44b8('0x27')]('Error\x20closing\x20connection\x20to\x20odbc\x20%s',_0x6658be);}_0xae15f4(null,_0x59848c);});}});}});};AGIVertices[_0x44b8('0xb')][_0x44b8('0x2f')]=function(_0x3611b4,_0x1ee3cc){this[_0x44b8('0xa')][_0x44b8('0x30')](_0x3611b4)[_0x44b8('0xe')](function(_0x3581b8){_0x1ee3cc(null,_0x3581b8?_0x3581b8:![]);})[_0x44b8('0x10')](function(_0x3d1be1){_0x1ee3cc(_0x3d1be1);});};AGIVertices[_0x44b8('0xb')][_0x44b8('0x31')]=function(_0xd69398,_0x31f22f){this[_0x44b8('0xa')][_0x44b8('0x31')](_0xd69398)['then'](function(_0x12a0a4){_0x31f22f(null,_0x12a0a4);})[_0x44b8('0x10')](function(_0xbf444f){_0x31f22f(_0xbf444f);});};AGIVertices['prototype'][_0x44b8('0x32')]=function(_0x1054c5,_0x229cc9,_0x585a16){this[_0x44b8('0xa')][_0x44b8('0x32')]({'uniqueid':this[_0x44b8('0x9')][_0x44b8('0x33')],'node':_0x1054c5[_0x44b8('0x34')],'application':_0x1054c5['agicommand'],'data':_0x229cc9||null,'project_name':this['channel'][_0x44b8('0x35')],'callerid':this[_0x44b8('0x9')][_0x44b8('0x36')]})[_0x44b8('0xe')](function(_0x43906b){if(_0x585a16){_0x585a16(null,_0x43906b);}})[_0x44b8('0x10')](function(_0x3fc41b){if(_0x585a16){_0x585a16(_0x3fc41b);}});};AGIVertices[_0x44b8('0xb')][_0x44b8('0x37')]=function(_0xb55911,_0x197782,_0x2a9b2a,_0xc1b9de){this[_0x44b8('0xa')][_0x44b8('0x37')]({'uniqueid':this[_0x44b8('0x9')][_0x44b8('0x33')],'callerid':this[_0x44b8('0x9')][_0x44b8('0x36')],'calleridname':this['channel']['calleridname'],'context':this[_0x44b8('0x9')][_0x44b8('0x38')],'extension':this[_0x44b8('0x9')][_0x44b8('0x39')],'priority':this[_0x44b8('0x9')][_0x44b8('0x3a')],'accountcode':this[_0x44b8('0x9')]['accountcode'],'dnid':this[_0x44b8('0x9')]['dnid'],'projectName':this[_0x44b8('0x9')][_0x44b8('0x35')],'saveName':_0x197782,'filename':_0xb55911[_0x44b8('0x3b')]||_0x197782,'savePath':_0x2a9b2a})[_0x44b8('0xe')](function(_0x103d57){_0xc1b9de(null,_0x103d57);})[_0x44b8('0x10')](function(_0x491600){_0xc1b9de(_0x491600);});};AGIVertices[_0x44b8('0xb')][_0x44b8('0x3c')]=function(_0x10602c,_0x25d266,_0x4ccc77,_0x4e4ed1,_0x2f549d){this[_0x44b8('0xa')][_0x44b8('0x3c')]({'uniqueid':this[_0x44b8('0x9')][_0x44b8('0x33')],'body':_0x10602c,'direction':_0x25d266,'providerName':_0x4ccc77,'providerResponse':_0x4e4ed1})['then'](function(_0x19d95d){if(_0x2f549d){_0x2f549d(null,_0x19d95d);}})[_0x44b8('0x10')](function(_0x2c5c27){if(_0x2f549d){_0x2f549d(_0x2c5c27);}});};AGIVertices[_0x44b8('0xb')][_0x44b8('0x3d')]=function(_0x57d0e2,_0x493840){this[_0x44b8('0xa')]['createCmContact']({'firstName':_[_0x44b8('0x3e')](_0x57d0e2['name'])||_[_0x44b8('0x3f')](_0x57d0e2[_0x44b8('0xf')])?_0x44b8('0x40')+Math[_0x44b8('0x41')]():_0x57d0e2[_0x44b8('0xf')],'lastName':_[_0x44b8('0x3e')](_0x57d0e2[_0x44b8('0x42')])||_['isNil'](_0x57d0e2[_0x44b8('0x42')])?null:_0x57d0e2[_0x44b8('0x42')],'phone':_0x57d0e2[_0x44b8('0x43')],'ListId':_0x57d0e2['list_id'],'scheduledat':_0x57d0e2[_0x44b8('0x44')],'callbackUniqueid':this[_0x44b8('0x9')][_0x44b8('0x33')],'tags':_0x44b8('0x45'),'description':'Callback\x20scheduled\x20at\x20'+_0x57d0e2[_0x44b8('0x44')][_0x44b8('0x46')](),'priority':_0x57d0e2['callback_priority']})[_0x44b8('0xe')](function(_0x19f22b){_0x493840(null,_0x19f22b);})[_0x44b8('0x10')](function(_0x3df6aa){_0x493840(_0x3df6aa);});};AGIVertices[_0x44b8('0xb')]['getPause']=function(_0x5b99a3,_0xc181d2){this[_0x44b8('0xa')][_0x44b8('0x47')](_0x5b99a3)[_0x44b8('0xe')](function(_0x765e45){_0xc181d2(null,_0x765e45?_0x765e45[_0x44b8('0xf')]:![]);})[_0x44b8('0x10')](function(_0xf0fb0d){_0xc181d2(_0xf0fb0d);});};AGIVertices[_0x44b8('0xb')][_0x44b8('0x48')]=function(_0x16c628,_0x3f7576,_0x5af3e6){var _0x1367ae={'role':_0x44b8('0x49')};_0x1367ae[_0x16c628]=this[_0x44b8('0x9')][_0x44b8('0x36')];this[_0x44b8('0xa')][_0x44b8('0x48')](_0x1367ae,_0x3f7576,this[_0x44b8('0x9')][_0x44b8('0x33')])[_0x44b8('0xe')](function(_0x2d6a31){_0x5af3e6(null,_[_0x44b8('0x3f')](_0x2d6a31)?![]:!![]);})[_0x44b8('0x10')](function(_0x1da152){logger[_0x44b8('0x27')](_0x1da152);_0x5af3e6(null,![]);});};AGIVertices[_0x44b8('0xb')][_0x44b8('0x4a')]=function(_0x25f91c,_0x20e563){var _0x4cf835={'role':_0x44b8('0x49')};_0x4cf835[_0x25f91c]=this[_0x44b8('0x9')][_0x44b8('0x36')];this[_0x44b8('0xa')][_0x44b8('0x4a')](_0x4cf835)[_0x44b8('0xe')](function(_0x2ecf65){_0x20e563(null,_['isNil'](_0x2ecf65)?![]:!![]);})[_0x44b8('0x10')](function(_0xc4d667){logger['error'](_0xc4d667);_0x20e563(null,![]);});};AGIVertices[_0x44b8('0xb')][_0x44b8('0x4b')]=function(_0x520929,_0x37e42e){var _0x454fe6={'role':_0x44b8('0x49')};_0x454fe6[_0x520929]=this['channel'][_0x44b8('0x36')];this['rpc'][_0x44b8('0x4b')](_0x454fe6)['then'](function(_0x176536){_0x37e42e(null,_[_0x44b8('0x3f')](_0x176536)?![]:!![]);})[_0x44b8('0x10')](function(_0xb64e26){logger[_0x44b8('0x27')](_0xb64e26);_0x37e42e(null,![]);});};AGIVertices[_0x44b8('0xb')]['agentLogin']=function(_0x2af6be,_0x4a08e8){var _0x458bdf={'role':_0x44b8('0x49')};_0x458bdf[_0x2af6be]=this['channel'][_0x44b8('0x36')];var _0x1ee26b=_0x2af6be!=_0x44b8('0x4c')?util[_0x44b8('0x23')](_0x44b8('0x4d'),_0x44b8('0x4e'),this[_0x44b8('0x9')][_0x44b8('0x36')]):undefined;this[_0x44b8('0xa')][_0x44b8('0x4f')](_0x458bdf,_0x1ee26b)[_0x44b8('0xe')](function(_0x27869f){_0x4a08e8(null,_['isNil'](_0x27869f)?![]:!![]);})[_0x44b8('0x10')](function(_0x4052a9){logger[_0x44b8('0x27')](_0x4052a9);_0x4a08e8(null,![]);});};AGIVertices['prototype'][_0x44b8('0x50')]=function(_0x5cc122,_0x5bff09){sh[_0x44b8('0x51')](_[_0x44b8('0x52')](_0x5cc122),function(_0xb89680,_0x3d80c3){var _0x44bb6b=_0x3d80c3['replace'](/(\r\n|\n|\r)/gm,'');_0x5bff09(null,_0x44bb6b);});};AGIVertices[_0x44b8('0xb')][_0x44b8('0x53')]=function(_0x279753,_0x270224){scripts[_0x44b8('0x53')](_0x279753[_0x44b8('0x54')],_0x279753[_0x44b8('0x55')]||_0x44b8('0x56'),_0x279753['text'],_0x279753[_0x44b8('0x57')]||_0x44b8('0x58'),_0x279753[_0x44b8('0x59')]||_0x44b8('0x5a'),_0x279753['audioEncoding']||'MP3')['then'](function(_0x118f89){_0x270224(null,_0x118f89);})[_0x44b8('0x10')](function(_0x1bee2e){_0x270224(_0x1bee2e);});};AGIVertices[_0x44b8('0xb')][_0x44b8('0x5b')]=function(_0x5beb66,_0x26745c){scripts['googleTTS'](_0x5beb66[_0x44b8('0x56')],_0x5beb66[_0x44b8('0x5c')]||'en',0x1)[_0x44b8('0xe')](function(_0x5da034){_0x26745c(null,_0x5da034);})['catch'](function(_0xb4c6dc){_0x26745c(_0xb4c6dc);});};AGIVertices[_0x44b8('0xb')][_0x44b8('0x5d')]=function(_0x536734,_0x1f5277){var _0x36f217={'uri':_0x536734[_0x44b8('0x5e')],'method':_0x536734[_0x44b8('0x5f')],'json':!![],'resolveWithFullResponse':!![],'strictSSL':![],'timeout':typeof parseInt(_0x536734[_0x44b8('0x60')])==='number'&&parseInt(_0x536734[_0x44b8('0x60')])>=0x1?parseInt(_0x536734[_0x44b8('0x60')])*0x3e8:0x5*0x3e8};if(_[_0x44b8('0x61')]([_0x44b8('0x62'),_0x44b8('0x63')],_0x36f217['method'][_0x44b8('0x64')]())){try{_0x36f217[_0x44b8('0x65')]=_0x536734[_0x44b8('0x66')]?JSON[_0x44b8('0x67')](_0x536734[_0x44b8('0x66')]):{};}catch(_0x1bd9e9){logger[_0x44b8('0x27')]('An\x20incorrect\x20formatted\x20json\x20body\x20has\x20been\x20passed\x20to\x20the\x20function',_0x1bd9e9);}}try{_0x36f217[_0x44b8('0x68')]=_0x536734[_0x44b8('0x6')]?JSON['parse'](_0x536734[_0x44b8('0x6')]):{};}catch(_0xa19e5f){logger['error'](_0x44b8('0x69'),_0xa19e5f);}if(_0x536734['computedVariables']){try{var _0x56dccf=require(_0x536734[_0x44b8('0x6a')])[_0x44b8('0x6b')](this,_0x36f217);_0x36f217[_0x44b8('0x6c')]=Mustache['render'](_0x536734['url'],_0x56dccf,{},['$$','$$']);if(_0x36f217['headers']){_0x36f217[_0x44b8('0x68')]=JSON[_0x44b8('0x67')](Mustache[_0x44b8('0x6d')](JSON[_0x44b8('0x6e')](_0x36f217[_0x44b8('0x68')]),_0x56dccf,{},['$$','$$']));}if(_0x36f217[_0x44b8('0x65')]){_0x36f217[_0x44b8('0x65')]=JSON[_0x44b8('0x67')](Mustache['render'](JSON[_0x44b8('0x6e')](_0x36f217['body']),_0x56dccf,{},['$$','$$']));}}catch(_0x59e7b4){logger['error'](_0x44b8('0x6f'),_0x59e7b4);}}rp(_0x36f217)['then'](function(_0x2166df){var _0x1e37fd={'statusCode':_0x2166df[_0x44b8('0x70')]||0xc8,'statusMessage':_0x2166df[_0x44b8('0x71')]||'OK','headers':_0x2166df[_0x44b8('0x68')]||{},'body':_0x2166df[_0x44b8('0x65')]||{}};_0x1f5277(null,_0x1e37fd);})[_0x44b8('0x10')](function(_0x953f65){var _0x5e8e0b={'statusCode':_0x953f65[_0x44b8('0x70')]||0x1f4,'statusMessage':_0x953f65[_0x44b8('0x72')]||_0x44b8('0x73'),'headers':_0x953f65[_0x44b8('0x74')][_0x44b8('0x68')]||{},'body':_0x953f65[_0x44b8('0x74')][_0x44b8('0x65')]||{}};_0x1f5277(null,_0x5e8e0b);});};AGIVertices[_0x44b8('0xb')][_0x44b8('0x75')]=function(_0x5f4734,_0x4b45a7){scripts[_0x44b8('0x75')](this['channel'][_0x44b8('0x33')],_0x5f4734[_0x44b8('0x76')],_0x5f4734[_0x44b8('0x56')],_0x5f4734['dialogflow_language']||'en')['then'](function(_0x4b22e7){_0x4b45a7(null,_0x4b22e7);})[_0x44b8('0x10')](function(_0x4860af){_0x4b45a7(_0x4860af);});};AGIVertices[_0x44b8('0xb')][_0x44b8('0x77')]=function(_0xf18cb2,_0x322a49){scripts[_0x44b8('0x77')](this[_0x44b8('0x9')][_0x44b8('0x33')],_0xf18cb2[_0x44b8('0x78')],_0xf18cb2[_0x44b8('0x79')],_0xf18cb2[_0x44b8('0x7a')],_0xf18cb2[_0x44b8('0x56')],_0xf18cb2[_0x44b8('0x7b')]||'en')[_0x44b8('0xe')](function(_0x1abe3a){_0x322a49(null,_0x1abe3a);})['catch'](function(_0x410b3a){_0x322a49(_0x410b3a);});};AGIVertices[_0x44b8('0xb')][_0x44b8('0x7c')]=function(_0x379b35,_0x45a6c3){scripts[_0x44b8('0x7c')](this[_0x44b8('0x9')],_0x379b35)[_0x44b8('0xe')](function(_0x39dc52){_0x45a6c3(null,_0x39dc52);})[_0x44b8('0x10')](function(_0x1774db){_0x45a6c3(_0x1774db);});};AGIVertices[_0x44b8('0xb')][_0x44b8('0x7d')]=function(_0x4f9b68,_0xfb6160){scripts[_0x44b8('0x7d')](_0x4f9b68[_0x44b8('0x76')],_0x4f9b68['text'],_0x4f9b68['ispeech_tts_language']||_0x44b8('0x58'),_0x4f9b68[_0x44b8('0x7e')])[_0x44b8('0xe')](function(_0x57c4d7){_0xfb6160(null,_0x57c4d7);})[_0x44b8('0x10')](function(_0x419852){_0xfb6160(_0x419852);});};AGIVertices[_0x44b8('0xb')][_0x44b8('0x7f')]=function(_0x1d7b07,_0x4695b3,_0x327f5a){scripts[_0x44b8('0x7f')](_0x4695b3,_0x1d7b07['key'],_0x1d7b07[_0x44b8('0x80')]||_0x44b8('0x58'),this[_0x44b8('0x81')](_0x1d7b07[_0x44b8('0x82')])?_0x1d7b07[_0x44b8('0x82')]:undefined)[_0x44b8('0xe')](function(_0x9d6d07){_0x327f5a(null,_0x9d6d07);})['catch'](function(_0x5c8ce9){_0x327f5a(_0x5c8ce9);});};AGIVertices['prototype'][_0x44b8('0x83')]=function(_0xc5f9ef,_0x2d74ee){scripts[_0x44b8('0x83')](_0xc5f9ef[_0x44b8('0x84')],_0xc5f9ef[_0x44b8('0x85')],_0xc5f9ef[_0x44b8('0x86')],_0xc5f9ef[_0x44b8('0x87')]||_0x44b8('0x88'),_0xc5f9ef['text'],_0xc5f9ef[_0x44b8('0x89')]||_0x44b8('0x56'))['then'](function(_0x4e204b){_0x2d74ee(null,_0x4e204b);})[_0x44b8('0x10')](function(_0x4ee9e3){_0x2d74ee(_0x4ee9e3);});};AGIVertices[_0x44b8('0xb')][_0x44b8('0x8a')]=function(_0x207164,_0x5e5e1d){scripts[_0x44b8('0x8a')](this[_0x44b8('0x9')][_0x44b8('0x33')],_0x207164[_0x44b8('0x84')],_0x207164['aws_secret_access_key'],_0x207164[_0x44b8('0x8b')],_0x207164['text'],_0x207164[_0x44b8('0x8c')])[_0x44b8('0xe')](function(_0x2d9d62){_0x5e5e1d(null,_0x2d9d62);})[_0x44b8('0x10')](function(_0x3fe77d){_0x5e5e1d(_0x3fe77d);});};AGIVertices[_0x44b8('0xb')][_0x44b8('0x8d')]=function(_0x5b3e72,_0x4d3b82,_0x563d7d){scripts[_0x44b8('0x8d')](_0x4d3b82,_0x5b3e72[_0x44b8('0x76')],_0x5b3e72[_0x44b8('0x8e')]||_0x44b8('0x58'))[_0x44b8('0xe')](function(_0x185b3c){_0x563d7d(null,_0x185b3c);})[_0x44b8('0x10')](function(_0x1236df){_0x563d7d(_0x1236df);});};AGIVertices[_0x44b8('0xb')][_0x44b8('0x8f')]=function(_0x32057a,_0x3dfb2c,_0x3cd117){scripts[_0x44b8('0x8f')](_0x3dfb2c,_0x32057a[_0x44b8('0x90')],_0x32057a[_0x44b8('0x91')],_0x32057a[_0x44b8('0x6c')])[_0x44b8('0xe')](function(_0x5cf8ba){_0x3cd117(null,_0x5cf8ba);})[_0x44b8('0x10')](function(_0x49aecf){_0x3cd117(_0x49aecf);});};AGIVertices[_0x44b8('0xb')]['clear']=function(_0x5db410){var _0x2e171b=_['includes'](verticesWithRetry,_0x5db410['agicommand'])?_0x5db410:_['clone'](_0x5db410);for(var _0x4aa919 in _0x2e171b){if(_0x2e171b['hasOwnProperty'](_0x4aa919)){if(_0x2e171b[_0x4aa919]&&_[_0x44b8('0x92')](_0x2e171b[_0x4aa919])){if(_[_0x44b8('0x61')](recursiveMapAttributes,_0x4aa919)){_0x2e171b[_0x4aa919]=this[_0x44b8('0x93')](_0x2e171b[_0x4aa919]);}else{_0x2e171b[_0x4aa919]=this[_0x44b8('0x94')](_0x2e171b[_0x4aa919]);}}}}return _0x2e171b;};AGIVertices['prototype'][_0x44b8('0x95')]=function(_0x416c89){for(var _0x5bcd22 in _0x416c89){if(_0x416c89['hasOwnProperty'](_0x5bcd22)){if(_[_0x44b8('0x96')](_0x416c89[_0x5bcd22])){this[_0x44b8('0x95')](_0x416c89[_0x5bcd22]);}else if(_[_0x44b8('0x97')](_0x416c89[_0x5bcd22])){for(var _0x507eda=0x0;_0x507eda<_0x416c89[_0x5bcd22][_0x44b8('0x98')];_0x507eda++){this[_0x44b8('0x95')](_0x416c89[_0x5bcd22][_0x507eda]);}}else if(_[_0x44b8('0x92')](_0x416c89[_0x5bcd22])){_0x416c89[_0x5bcd22]=this[_0x44b8('0x94')](_0x416c89[_0x5bcd22]);}}}};AGIVertices[_0x44b8('0xb')][_0x44b8('0x99')]=function(_0x25f605,_0x16344b){for(var _0x21057f in _0x25f605){if(_0x25f605['hasOwnProperty'](_0x21057f)){if(_[_0x44b8('0x96')](_0x25f605[_0x21057f])){if(!_[_0x44b8('0x3e')](_0x25f605[_0x21057f])){this['saveRestApiResult'](_0x25f605[_0x21057f],util[_0x44b8('0x23')](_0x44b8('0x9a'),_0x16344b,_0x21057f));}}else if(_[_0x44b8('0x97')](_0x25f605[_0x21057f])){for(var _0x4da0a5=0x0;_0x4da0a5<_0x25f605[_0x21057f][_0x44b8('0x98')];_0x4da0a5++){this['saveRestApiResult'](_0x25f605[_0x21057f][_0x4da0a5],util[_0x44b8('0x23')](_0x44b8('0x9a'),_0x16344b,_0x21057f+'['+_0x4da0a5+']'));}}else{if(!_['isNil'](_0x25f605[_0x21057f])){this[_0x44b8('0x9')][_0x44b8('0x9b')](util[_0x44b8('0x23')](_0x44b8('0x9a'),_0x16344b,_0x21057f),_0x25f605[_0x21057f]);}}}}};AGIVertices['prototype'][_0x44b8('0x93')]=function(_0xf73cde){try{var _0x10caca=JSON[_0x44b8('0x67')](_0xf73cde);this[_0x44b8('0x95')](_0x10caca);return JSON[_0x44b8('0x6e')](_0x10caca);}catch(_0x10a66a){return this[_0x44b8('0x94')](_0xf73cde);}};AGIVertices[_0x44b8('0xb')]['replaceAllVariables']=function(_0x53cbee){var _0x331e89=_0x53cbee[_0x44b8('0x9c')]('{');for(var _0x1d29cd=0x1;_0x1d29cd<_0x331e89[_0x44b8('0x98')];_0x1d29cd+=0x1){var _0x276c14=_0x331e89[_0x1d29cd]['split']('}');if(_0x276c14[_0x44b8('0x98')]>0x1){_0x53cbee=_0x53cbee['replaceAll']('{'+_0x276c14[0x0]+'}',this[_0x44b8('0x9')]['getVariable'](_0x276c14[0x0])[_0x44b8('0x9d')]||_0x276c14[0x0]);}}if(_0x331e89[_0x44b8('0x98')]===0x1){return _0x53cbee[_0x44b8('0x46')]();}return this[_0x44b8('0x94')](_0x53cbee);};AGIVertices[_0x44b8('0xb')][_0x44b8('0x9e')]=function(_0x1ee7d1,_0x465ef7){var _0x1c7d88=this['channel'][_0x44b8('0xc')](_0x1ee7d1);if(_0x1c7d88[_0x44b8('0x9f')]===-0x1){return _0x1c7d88;}logger[_0x44b8('0x29')](util[_0x44b8('0x23')]('The\x20\x22%s\x22\x20variable\x20value\x20is:\x20%s',_0x465ef7,_0x1c7d88['extra']));return this['channel'][_0x44b8('0x9b')](_0x465ef7,_0x1c7d88['extra']);};AGIVertices['prototype'][_0x44b8('0x81')]=function(_0x317337){return _0x317337&&_0x317337!=='0'&&_0x317337!=='-1'&&_0x317337!=='';};AGIVertices[_0x44b8('0xb')][_0x44b8('0xa0')]=function(_0x413dd9){this[_0x44b8('0x32')][_0x44b8('0x6b')](this,_0x413dd9,'-');_0x413dd9[_0x44b8('0xa1')]=_0x413dd9['maxRetry'];return{'code':0xc8,'result':'-'};};AGIVertices[_0x44b8('0xb')][_0x44b8('0xa2')]=function(_0x1e2407){logger[_0x44b8('0x29')](util['format'](_0x44b8('0xa3'),_0x1e2407[_0x44b8('0x34')]));if(!this[_0x44b8('0x81')](_0x1e2407['text'])){return this['channel'][_0x44b8('0xa4')](_0x44b8('0xa5'));}var _0x187213='\x22'+_0x1e2407[_0x44b8('0x56')]+'\x22';if(this[_0x44b8('0x81')](_0x1e2407['options'])){_0x187213+=','+_0x1e2407[_0x44b8('0x74')];}var _0x458cfc=this['channel'][_0x44b8('0x51')](_0x44b8('0xa6'),_0x187213);if(_0x458cfc[_0x44b8('0x9f')]===-0x1){return _0x458cfc;}return this[_0x44b8('0x9')]['noop'](util[_0x44b8('0x23')]('Executed\x20command\x20MRCPSynth\x20%s',_0x187213));};AGIVertices[_0x44b8('0xb')][_0x44b8('0xa7')]=function(_0x1eb1b7){logger[_0x44b8('0x29')](util[_0x44b8('0x23')](_0x44b8('0xa8'),_0x1eb1b7[_0x44b8('0x34')]));if(!this[_0x44b8('0x81')](_0x1eb1b7['grammar'])){return this[_0x44b8('0x9')][_0x44b8('0xa4')](_0x44b8('0xa9'));}var _0x42e772=_0x1eb1b7[_0x44b8('0xaa')];if(this[_0x44b8('0x81')](_0x1eb1b7['options'])){_0x42e772+=','+_0x1eb1b7['options'];}var _0x342125=this[_0x44b8('0x9')]['exec'](_0x44b8('0xab'),_0x42e772);if(_0x342125[_0x44b8('0x9f')]===-0x1){return _0x342125;}var _0x4e83b6=this[_0x44b8('0x9e')](_0x44b8('0xac'),_0x44b8('0xad'));if(_0x4e83b6[_0x44b8('0x9f')]===-0x1){return _0x4e83b6;}var _0x334522=this[_0x44b8('0x9e')](_0x44b8('0xae'),_0x44b8('0xaf'));if(_0x334522[_0x44b8('0x9f')]===-0x1){return _0x334522;}var _0x225f18=this[_0x44b8('0x9e')](_0x44b8('0xb0'),_0x44b8('0xb1'));if(_0x225f18[_0x44b8('0x9f')]===-0x1){return _0x225f18;}return this[_0x44b8('0x9')]['noop'](util[_0x44b8('0x23')](_0x44b8('0xb2'),_0x42e772));};AGIVertices[_0x44b8('0xb')][_0x44b8('0x5')]=function(_0x584768){logger[_0x44b8('0x29')](util[_0x44b8('0x23')]('Enter\x20in\x20AGI\x20(%s)\x20block',_0x584768[_0x44b8('0x34')]));return this['channel'][_0x44b8('0x5')]([_0x584768[_0x44b8('0xb3')],_0x584768[_0x44b8('0xb4')]]);};AGIVertices[_0x44b8('0xb')]['answer']=function(_0x4ff9c0){logger[_0x44b8('0x29')](util[_0x44b8('0x23')]('Enter\x20in\x20ANSWER\x20(%s)\x20block',_0x4ff9c0['label']));if(this['isConfigured'](_0x4ff9c0[_0x44b8('0x60')])){logger[_0x44b8('0x29')](util[_0x44b8('0x23')]('Wait\x20%s\x20seconds\x20before\x20answer',_0x4ff9c0['timeout']));var _0x28da8b=this[_0x44b8('0x9')][_0x44b8('0xb5')](_0x4ff9c0[_0x44b8('0x60')]);if(_0x28da8b[_0x44b8('0x9f')]===-0x1){return _0x28da8b;}}return this[_0x44b8('0x9')][_0x44b8('0xb6')]();};AGIVertices[_0x44b8('0xb')][_0x44b8('0x45')]=function(_0x4ed62f){logger[_0x44b8('0x29')](util['format'](_0x44b8('0xb7'),_0x4ed62f['label']));if(!this['isConfigured'](_0x4ed62f[_0x44b8('0xb8')])){return this[_0x44b8('0x9')][_0x44b8('0x27')](_0x4ed62f,_0x44b8('0xb9'));}_0x4ed62f[_0x44b8('0x44')]=moment();if(this[_0x44b8('0x81')](_0x4ed62f[_0x44b8('0xba')])){_0x4ed62f[_0x44b8('0x44')]=moment()[_0x44b8('0xbb')](_0x4ed62f['delay'],_0x44b8('0xbc'));}if(!this[_0x44b8('0x81')](_0x4ed62f[_0x44b8('0xbd')])){_0x4ed62f['callback_priority']=0x2;}this['createCmContact'][_0x44b8('0x6b')](this,_0x4ed62f);return this['channel'][_0x44b8('0xa4')](util['format'](_0x44b8('0xbe'),_0x4ed62f['phone'],_0x4ed62f['list_id'],_0x4ed62f[_0x44b8('0x44')]));};AGIVertices[_0x44b8('0xb')]['custom_app']=function(_0x32e08e){logger[_0x44b8('0x29')](util[_0x44b8('0x23')](_0x44b8('0xbf'),_0x32e08e[_0x44b8('0x34')]));var _0x57b73f=this[_0x44b8('0x9')]['exec'](_0x32e08e['application'],_0x32e08e['options']);if(_0x57b73f[_0x44b8('0x9f')]===-0x1){return _0x57b73f;}return this[_0x44b8('0x9')]['noop'](util[_0x44b8('0x23')](_0x44b8('0xc0'),_0x32e08e['application'],_0x32e08e['options']));};AGIVertices[_0x44b8('0xb')][_0x44b8('0xc1')]=function(_0x51adc0){logger[_0x44b8('0x29')](util[_0x44b8('0x23')]('Enter\x20in\x20LUMENVOXTTS\x20(%s)\x20block',_0x51adc0[_0x44b8('0x34')]));if(!this[_0x44b8('0x81')](_0x51adc0['text'])){return this[_0x44b8('0x9')][_0x44b8('0xa4')](_0x44b8('0xa5'));}var _0x4edc9b='\x22'+_0x51adc0[_0x44b8('0x56')]+'\x22';if(this['isConfigured'](_0x51adc0[_0x44b8('0x74')])){_0x4edc9b+=','+_0x51adc0['options'];}var _0x5eedf4=this[_0x44b8('0x9')][_0x44b8('0x51')](_0x44b8('0xa6'),_0x4edc9b);if(_0x5eedf4[_0x44b8('0x9f')]===-0x1){return _0x5eedf4;}return this[_0x44b8('0x9')][_0x44b8('0xa4')](util[_0x44b8('0x23')](_0x44b8('0xc2'),_0x4edc9b));};AGIVertices[_0x44b8('0xb')][_0x44b8('0xc3')]=function(_0x1b5352){logger['info'](util[_0x44b8('0x23')](_0x44b8('0xc4'),_0x1b5352[_0x44b8('0x34')]));if(!this[_0x44b8('0x81')](_0x1b5352[_0x44b8('0x56')])){return this[_0x44b8('0x9')][_0x44b8('0xa4')](_0x44b8('0xa5'));}var _0x5c2adc='\x22'+_0x1b5352[_0x44b8('0x56')]+'\x22';if(this[_0x44b8('0x81')](_0x1b5352['options'])){_0x5c2adc+=','+_0x1b5352[_0x44b8('0x74')];}var _0x355a20=this[_0x44b8('0x9')]['exec']('MRCPSynth',_0x5c2adc);if(_0x355a20[_0x44b8('0x9f')]===-0x1){return _0x355a20;}return this[_0x44b8('0x9')]['noop'](util['format'](_0x44b8('0xc2'),_0x5c2adc));};AGIVertices[_0x44b8('0xb')][_0x44b8('0xc5')]=function(_0x2bccf9){logger[_0x44b8('0x29')](util['format'](_0x44b8('0xc6'),_0x2bccf9['label']));if(!this[_0x44b8('0x81')](_0x2bccf9[_0x44b8('0xaa')])){return this[_0x44b8('0x9')][_0x44b8('0xa4')](_0x44b8('0xa9'));}var _0x180c33=_0x2bccf9['grammar'];if(this[_0x44b8('0x81')](_0x2bccf9['options'])){_0x180c33+=','+_0x2bccf9[_0x44b8('0x74')];}var _0x1233a3=this['channel'][_0x44b8('0x51')]('MRCPRecog',_0x180c33);if(_0x1233a3[_0x44b8('0x9f')]===-0x1){return _0x1233a3;}var _0x371094=this[_0x44b8('0x9e')]('RECOG_CONFIDENCE()',_0x44b8('0xc7'));if(_0x371094[_0x44b8('0x9f')]===-0x1){return _0x371094;}var _0x4ff63e=this[_0x44b8('0x9e')]('RECOG_INPUT()','LUMENVOX_ASR_TRANSCRIPT');if(_0x4ff63e[_0x44b8('0x9f')]===-0x1){return _0x4ff63e;}var _0x4da59c=this[_0x44b8('0x9e')]('RECOG_INSTANCE()',_0x44b8('0xc8'));if(_0x4da59c[_0x44b8('0x9f')]===-0x1){return _0x4da59c;}return this['channel'][_0x44b8('0xa4')](util[_0x44b8('0x23')]('Executed\x20command\x20MRCPRecog\x20%s',_0x180c33));};AGIVertices['prototype'][_0x44b8('0xc9')]=function(_0x440eb4){logger[_0x44b8('0x29')](util[_0x44b8('0x23')]('Enter\x20in\x20SESTEKASR\x20(%s)\x20block',_0x440eb4[_0x44b8('0x34')]));if(!this[_0x44b8('0x81')](_0x440eb4[_0x44b8('0xaa')])){return this[_0x44b8('0x9')]['noop']('no\x20grammar\x20configured');}var _0xf7cbd8=_0x440eb4[_0x44b8('0xaa')];if(this[_0x44b8('0x81')](_0x440eb4['options'])){_0xf7cbd8+=','+_0x440eb4[_0x44b8('0x74')];}var _0x301770=this['channel'][_0x44b8('0x51')](_0x44b8('0xab'),_0xf7cbd8);if(_0x301770[_0x44b8('0x9f')]===-0x1){return _0x301770;}var _0x2cb698=this[_0x44b8('0x9e')](_0x44b8('0xac'),'SESTEK_ASR_CONFIDENCE');if(_0x2cb698['result']===-0x1){return _0x2cb698;}var _0x46382c=this['getAndSetVariable'](_0x44b8('0xae'),'SESTEK_ASR_TRANSCRIPT');if(_0x46382c[_0x44b8('0x9f')]===-0x1){return _0x46382c;}var _0x36d09c=this[_0x44b8('0x9e')](_0x44b8('0xb0'),_0x44b8('0xca'));if(_0x36d09c[_0x44b8('0x9f')]===-0x1){return _0x36d09c;}return this[_0x44b8('0x9')][_0x44b8('0xa4')](util[_0x44b8('0x23')](_0x44b8('0xb2'),_0xf7cbd8));};AGIVertices[_0x44b8('0xb')][_0x44b8('0xcb')]=function(_0xb8404f){logger[_0x44b8('0x29')](util[_0x44b8('0x23')](_0x44b8('0xcc'),_0xb8404f['label']));if(!this[_0x44b8('0x81')](_0xb8404f['odbc_id'])){return this[_0x44b8('0x9')][_0x44b8('0x27')](_0xb8404f,_0x44b8('0xcd'));}var _0x10fd21=this[_0x44b8('0x12')][_0x44b8('0x6b')](this,_0xb8404f[_0x44b8('0xce')]);if(!_0x10fd21){return this['channel']['error'](_0xb8404f,_0x44b8('0xcf'));}if(!this[_0x44b8('0x81')](_0xb8404f[_0x44b8('0x2b')])){return this[_0x44b8('0x9')][_0x44b8('0x27')](_0xb8404f,'no\x20query\x20configured');}var _0x32c4a4=_0xb8404f[_0x44b8('0x2b')][_0x44b8('0xd0')](/(\r\n|\n|\r)/gm,'\x20');this[_0x44b8('0x9')][_0x44b8('0xa4')](util[_0x44b8('0x23')]('query:\x20%s',_0x32c4a4));var _0x4d07e=this[_0x44b8('0x25')][_0x44b8('0x6b')](this,_0x10fd21,_0x32c4a4);this[_0x44b8('0x32')][_0x44b8('0x6b')](this,_0xb8404f,_0x32c4a4);if(!this['isConfigured'](_0xb8404f['variable_id'])){return this[_0x44b8('0x9')][_0x44b8('0xa4')]('no\x20variable\x20selected\x20for\x20the\x20result');}var _0x5ae640=this[_0x44b8('0xc')]['sync'](this,_0xb8404f[_0x44b8('0xd1')]);if(!_0x5ae640){return this[_0x44b8('0x9')][_0x44b8('0x27')](_0xb8404f,_0x44b8('0xd2'));}var _0x3de181=this;_0x4d07e[_0x44b8('0xd3')](function(_0x249f6a,_0x42c8a5){Object['keys'](_0x249f6a)[_0x44b8('0xd3')](function(_0xf24cdd){_0x3de181[_0x44b8('0x9')]['setVariable'](util[_0x44b8('0x23')](_0x44b8('0xd4'),_0x5ae640,_0x42c8a5,_0xf24cdd),_0x249f6a[_0xf24cdd]);});});this['channel']['setVariable'](util['format']('%s_ROWS_COUNT',_0x5ae640),_0x4d07e[_0x44b8('0x98')]);return this['channel']['noop'](util[_0x44b8('0x23')](_0x44b8('0xd5'),_0x5ae640));};AGIVertices[_0x44b8('0xb')]['dial']=function(_0x36927e){logger['debug'](util[_0x44b8('0x23')](_0x44b8('0xd6'),_0x36927e[_0x44b8('0x34')]));if(!this[_0x44b8('0x81')](_0x36927e['sip_id'])){return this[_0x44b8('0x9')][_0x44b8('0x27')](_0x36927e,_0x44b8('0xd7'));}var _0x494697=this['getUser']['sync'](this,_0x36927e[_0x44b8('0xd8')]);if(!_0x494697){return this[_0x44b8('0x9')]['error'](_0x36927e,_0x44b8('0xd9'));}var _0x188744=this[_0x44b8('0x9')][_0x44b8('0x51')](_0x44b8('0xda'),[util[_0x44b8('0x23')](_0x44b8('0xdb'),_0x494697),_0x36927e[_0x44b8('0x60')],_0x36927e['opts'],_0x36927e[_0x44b8('0x5e')]]);if(_0x188744[_0x44b8('0x9f')]===-0x1){return _0x188744;}return this[_0x44b8('0x9')]['noop'](util[_0x44b8('0x23')]('Executed\x20command\x20%s',_0x44b8('0xda')));};AGIVertices['prototype'][_0x44b8('0xdc')]=function(_0x1978a9){logger[_0x44b8('0x29')](util[_0x44b8('0x23')](_0x44b8('0xdd'),_0x1978a9[_0x44b8('0x34')]));if(!this[_0x44b8('0x81')](_0x1978a9[_0x44b8('0x76')])){return this[_0x44b8('0x9')][_0x44b8('0xa4')](_0x44b8('0xde'));}if(!this[_0x44b8('0x81')](_0x1978a9['text'])){return this[_0x44b8('0x9')]['noop'](_0x44b8('0xa5'));}this['channel'][_0x44b8('0xdf')]=!![];this[_0x44b8('0x32')](_0x1978a9);this[_0x44b8('0x3c')](_0x1978a9[_0x44b8('0x56')],'in','','');this[_0x44b8('0x9')][_0x44b8('0xa4')](util[_0x44b8('0x23')]('Trying\x20Dialogflow:\x20%s',_0x1978a9[_0x44b8('0x56')]));var _0x2ea253=this[_0x44b8('0x75')][_0x44b8('0x6b')](this,_0x1978a9);if(_0x2ea253){for(var _0x3ee44e in _0x2ea253){if(_0x2ea253[_0x44b8('0xe0')](_0x3ee44e)){this[_0x44b8('0x9')][_0x44b8('0x9b')](util[_0x44b8('0x23')](_0x44b8('0xe1'),_0x3ee44e[_0x44b8('0x64')]()),_0x2ea253[_0x3ee44e]);}}this[_0x44b8('0x3c')](_0x2ea253[_0x44b8('0xe2')],_0x44b8('0xe3'),'dialogflow','');return this[_0x44b8('0x9')][_0x44b8('0xa4')](util['format'](_0x44b8('0xe4'),_0x2ea253[_0x44b8('0xe2')]));}return this[_0x44b8('0x9')][_0x44b8('0x27')](_0x1978a9,_0x44b8('0xe5'));};AGIVertices['prototype'][_0x44b8('0xe6')]=function(_0x1c8718){logger[_0x44b8('0x29')](util[_0x44b8('0x23')]('Enter\x20in\x20DIALOGFLOW\x20V2\x20(%s)\x20block',_0x1c8718[_0x44b8('0x34')]));if(!this[_0x44b8('0x81')](_0x1c8718['dialogflowV2_project_id'])){return this['channel']['noop']('no\x20project_id\x20configured');}if(!this[_0x44b8('0x81')](_0x1c8718['client_email'])){return this['channel'][_0x44b8('0xa4')](_0x44b8('0xe7'));}if(!this[_0x44b8('0x81')](_0x1c8718['private_key'])){return this[_0x44b8('0x9')][_0x44b8('0xa4')](_0x44b8('0xe8'));}if(!this[_0x44b8('0x81')](_0x1c8718['dialogflowV2_language'])){return this[_0x44b8('0x9')]['noop'](_0x44b8('0xe9'));}if(!this[_0x44b8('0x81')](_0x1c8718['text'])){return this[_0x44b8('0x9')][_0x44b8('0xa4')](_0x44b8('0xa5'));}this[_0x44b8('0x9')][_0x44b8('0xdf')]=!![];this['createSquareDetailsReport'](_0x1c8718);this['createSquareMessage'](_0x1c8718[_0x44b8('0x56')],'in','','');this[_0x44b8('0x9')][_0x44b8('0xa4')](util[_0x44b8('0x23')](_0x44b8('0xea'),_0x1c8718[_0x44b8('0x56')]));var _0x1bed4f=this[_0x44b8('0x77')][_0x44b8('0x6b')](this,_0x1c8718);if(_0x1bed4f){for(var _0x157824 in _0x1bed4f){if(_0x1bed4f[_0x44b8('0xe0')](_0x157824)){if(_0x157824!==_0x44b8('0xeb')){this['channel']['setVariable'](util[_0x44b8('0x23')]('DIALOGFLOW_%s',_0x157824[_0x44b8('0x64')]()),_0x1bed4f[_0x157824]);}}}this[_0x44b8('0x3c')](_0x1bed4f[_0x44b8('0xe2')],'out',_0x44b8('0xe6'),_0x1bed4f[_0x44b8('0xeb')]);return this[_0x44b8('0x9')][_0x44b8('0xa4')](util[_0x44b8('0x23')](_0x44b8('0xec'),_0x1bed4f['speech']));}return this[_0x44b8('0x9')][_0x44b8('0x27')](_0x1c8718,'DialogflowV2\x20is\x20unreachable');};AGIVertices[_0x44b8('0xb')][_0x44b8('0xed')]=function(_0x22edd7){logger[_0x44b8('0x29')](util[_0x44b8('0x23')]('Enter\x20in\x20SESTEKNDA\x20(%s)\x20block',_0x22edd7[_0x44b8('0x34')]));if(!this[_0x44b8('0x81')](_0x22edd7[_0x44b8('0xee')])){return this[_0x44b8('0x9')][_0x44b8('0xa4')](_0x44b8('0xef'));}if(!this[_0x44b8('0x81')](_0x22edd7[_0x44b8('0xf0')])){return this[_0x44b8('0x9')][_0x44b8('0xa4')]('no\x20username\x20configured');}if(!this[_0x44b8('0x81')](_0x22edd7[_0x44b8('0xf1')])){return this[_0x44b8('0x9')]['noop']('no\x20password\x20configured');}if(!this[_0x44b8('0x81')](_0x22edd7['ndassistant_url'])){return this[_0x44b8('0x9')][_0x44b8('0xa4')](_0x44b8('0xa5'));}this[_0x44b8('0x9')][_0x44b8('0xdf')]=!![];this[_0x44b8('0x32')](_0x22edd7);this[_0x44b8('0x3c')](_0x22edd7['text'],'in','','');this['channel'][_0x44b8('0xa4')](util[_0x44b8('0x23')](_0x44b8('0xf2'),_0x22edd7[_0x44b8('0x56')]));var _0x506731=this[_0x44b8('0x7c')]['sync'](this,_0x22edd7);if(_0x506731){for(var _0x4d88a6 in _0x506731){if(_0x506731[_0x44b8('0xe0')](_0x4d88a6)){this[_0x44b8('0x9')][_0x44b8('0x9b')](util[_0x44b8('0x23')](_0x44b8('0xf3'),_0x4d88a6[_0x44b8('0x64')]()),_0x506731[_0x4d88a6]);}}this[_0x44b8('0x3c')](_0x506731['speech'],_0x44b8('0xe3'),_0x44b8('0xed'),'');if(_0x506731[_0x44b8('0xf4')]){this['channel'][_0x44b8('0xa4')](util[_0x44b8('0x23')](_0x44b8('0xf5'),_0x506731[_0x44b8('0xf4')]));var _0x4dd93c=this[_0x44b8('0x9')][_0x44b8('0xf6')](_0x506731[_0x44b8('0xf4')]);try{fs['unlink'](_0x506731['audiofile']+'.wav');}catch(_0x4b3c64){logger['error'](_0x4b3c64);}return _0x4dd93c;}else{return this[_0x44b8('0x9')][_0x44b8('0xa4')](util[_0x44b8('0x23')](_0x44b8('0xf7'),_0x506731[_0x44b8('0xe2')]));}}return this[_0x44b8('0x9')][_0x44b8('0x27')](_0x22edd7,_0x44b8('0xf8'));};AGIVertices[_0x44b8('0xb')][_0x44b8('0xf9')]=function(_0x16e1d6){logger['info'](util[_0x44b8('0x23')](_0x44b8('0xfa'),_0x16e1d6[_0x44b8('0x34')]));return this[_0x44b8('0x9')][_0x44b8('0xa4')]('end');};AGIVertices[_0x44b8('0xb')]['ext_dial']=function(_0x4033b5){logger[_0x44b8('0x29')](util[_0x44b8('0x23')]('Enter\x20in\x20EXTERNAL\x20DIAL\x20(%s)\x20block',_0x4033b5[_0x44b8('0x34')]));var _0x964c3c='';if(_0x4033b5['trunk_id']){if(!this[_0x44b8('0x81')](_0x4033b5[_0x44b8('0xfb')])){return this[_0x44b8('0x9')]['error'](_0x4033b5,_0x44b8('0xfc'));}else{var _0x5495e6=parseInt(_0x4033b5[_0x44b8('0xfb')],0xa);if(isNaN(_0x5495e6)){_0x964c3c=_0x4033b5[_0x44b8('0xfb')];}else{_0x964c3c=this[_0x44b8('0x16')]['sync'](this,_0x4033b5[_0x44b8('0xfb')]);if(!_0x964c3c){return this['channel'][_0x44b8('0x27')](_0x4033b5,_0x44b8('0xfd'));}}}}else if(_0x4033b5[_0x44b8('0xfe')]){_0x964c3c=_0x4033b5[_0x44b8('0xfe')];}else{return this[_0x44b8('0x9')][_0x44b8('0x27')](_0x4033b5,'no\x20trunk\x20selected');}var _0x3c0557=this[_0x44b8('0x9')][_0x44b8('0x51')](_0x44b8('0xda'),[util['format'](_0x44b8('0xff'),_0x964c3c,_0x4033b5[_0x44b8('0x43')]),_0x4033b5[_0x44b8('0x60')],_0x4033b5[_0x44b8('0x100')],_0x4033b5[_0x44b8('0x5e')]]);if(_0x3c0557[_0x44b8('0x9f')]===-0x1){return _0x3c0557;}return this[_0x44b8('0x9')][_0x44b8('0xa4')](util[_0x44b8('0x23')](_0x44b8('0x101'),_0x44b8('0xda')));};AGIVertices[_0x44b8('0xb')]['finally']=function(_0x2cf3ac){logger[_0x44b8('0x29')](util[_0x44b8('0x23')](_0x44b8('0x102'),_0x2cf3ac['label']));return this[_0x44b8('0x9')]['noop'](_0x44b8('0x103'));};AGIVertices[_0x44b8('0xb')][_0x44b8('0x104')]=function(_0x5baaa3){logger[_0x44b8('0x29')](util[_0x44b8('0x23')](_0x44b8('0x105'),_0x5baaa3[_0x44b8('0x34')]));if(_0x5baaa3[_0x44b8('0xa1')]===0x0){return this['maxRetry'](_0x5baaa3);}_0x5baaa3[_0x44b8('0xa1')]-=0x1;if(!this[_0x44b8('0x81')](_0x5baaa3[_0x44b8('0x106')])){return this[_0x44b8('0x9')][_0x44b8('0x27')](_0x5baaa3,'no\x20file\x20audio\x20selected');}var _0x422f56=this[_0x44b8('0x18')][_0x44b8('0x6b')](this,_0x5baaa3[_0x44b8('0x106')]);if(!_0x422f56){return this[_0x44b8('0x9')][_0x44b8('0x27')](_0x5baaa3,_0x44b8('0x107'));}if(!this['isConfigured'](_0x5baaa3['variable_id'])){return this['channel'][_0x44b8('0x27')](_0x44b8('0x108'));}var _0x46dd24=this['channel']['getData'](_0x422f56,_0x5baaa3[_0x44b8('0x109')],_0x5baaa3[_0x44b8('0x10a')]);var _0x452d24=_0x46dd24[_0x44b8('0x9f')]?_0x46dd24[_0x44b8('0x9f')]['toString']():'';logger['info']('test',JSON['stringify'](_0x46dd24));if(_0x46dd24[_0x44b8('0x9f')]===-0x1){this[_0x44b8('0x32')][_0x44b8('0x6b')](this,_0x5baaa3,_0x452d24);return _0x46dd24;}else if(_0x46dd24[_0x44b8('0x9d')]===_0x44b8('0x60')){_0x46dd24[_0x44b8('0x9f')]=_0x452d24['length']>=parseInt(_0x5baaa3[_0x44b8('0x10b')])?'x':'i';}else{_0x46dd24['result']=_0x452d24[_0x44b8('0x98')]>=parseInt(_0x5baaa3[_0x44b8('0x10b')])&&_0x452d24[_0x44b8('0x98')]<=parseInt(_0x5baaa3['maxdigit'])?'x':'i';}var _0x529d41=this[_0x44b8('0xc')][_0x44b8('0x6b')](this,_0x5baaa3['variable_id']);if(!_0x529d41){return this['channel'][_0x44b8('0x27')](_0x5baaa3,_0x44b8('0xd2'));}this[_0x44b8('0x9')][_0x44b8('0x9b')](_0x529d41,_0x452d24);if(this[_0x44b8('0x81')](_0x5baaa3['hiddendigitsnum'])){var _0x43f4c3=parseInt(_0x5baaa3[_0x44b8('0x10c')],0xa);var _0x150628=rs[_0x44b8('0x10d')]({'charset':'*','length':_0x43f4c3});var _0x12c9e7=_0x452d24[_0x44b8('0x98')];if(_0x12c9e7>0x0){if(_0x12c9e7>_0x43f4c3){this[_0x44b8('0x32')]['sync'](this,_0x5baaa3,_0x5baaa3[_0x44b8('0x10e')]===_0x44b8('0x10f')?_0x150628+_0x452d24[_0x44b8('0x110')](_0x43f4c3):_0x452d24[_0x44b8('0x110')](0x0,_0x12c9e7-_0x43f4c3)+_0x150628);}else{this[_0x44b8('0x32')][_0x44b8('0x6b')](this,_0x5baaa3,rs['generate']({'charset':'*','length':_0x12c9e7}));}}else{this[_0x44b8('0x32')][_0x44b8('0x6b')](this,_0x5baaa3,'');}}else{this[_0x44b8('0x32')][_0x44b8('0x6b')](this,_0x5baaa3,_0x452d24);}return _0x46dd24;};AGIVertices['prototype'][_0x44b8('0x8')]=function(_0xa2a34b){logger[_0x44b8('0x29')](util[_0x44b8('0x23')]('Enter\x20in\x20GETSECRETDIGITS\x20(%s)\x20block',_0xa2a34b['label']));return this[_0x44b8('0x104')](_0xa2a34b);};AGIVertices[_0x44b8('0xb')][_0x44b8('0x111')]=function(_0x2468b0){logger[_0x44b8('0x29')](util['format'](_0x44b8('0x112'),_0x2468b0[_0x44b8('0x34')]));this[_0x44b8('0x32')][_0x44b8('0x6b')](this,_0x2468b0,_0x2468b0[_0x44b8('0x113')]);return this[_0x44b8('0x9')]['noop'](util[_0x44b8('0x23')](_0x44b8('0x114'),_0x2468b0[_0x44b8('0x113')]));};AGIVertices[_0x44b8('0xb')][_0x44b8('0x115')]=function(_0x773a46){logger[_0x44b8('0x29')](util['format'](_0x44b8('0x116'),_0x773a46[_0x44b8('0x34')]));if(!this[_0x44b8('0x81')](_0x773a46[_0x44b8('0x84')])||!this['isConfigured'](_0x773a46[_0x44b8('0x85')])){return this['channel'][_0x44b8('0xa4')](_0x44b8('0x117'));}if(!this[_0x44b8('0x81')](_0x773a46[_0x44b8('0x56')])){return this['channel'][_0x44b8('0xa4')](_0x44b8('0xa5'));}this[_0x44b8('0x9')]['noop'](util[_0x44b8('0x23')](_0x44b8('0x118'),_0x773a46[_0x44b8('0x56')]));var _0x37145d=this[_0x44b8('0x83')][_0x44b8('0x6b')](this,_0x773a46);if(_0x37145d){this[_0x44b8('0x9')][_0x44b8('0xa4')](util[_0x44b8('0x23')](_0x44b8('0x119'),_0x37145d));var _0x5dd6a9=this[_0x44b8('0x9')]['streamFile'](_0x37145d);try{fs[_0x44b8('0x11a')](_0x37145d+_0x44b8('0x11b'));}catch(_0xc9881e){logger[_0x44b8('0x27')](_0xc9881e);}return _0x5dd6a9;}return this[_0x44b8('0x9')]['error'](_0x773a46,'aws\x20Polly\x20is\x20unreachable');};AGIVertices['prototype'][_0x44b8('0x11c')]=function(_0x239d16){logger[_0x44b8('0x29')](util[_0x44b8('0x23')](_0x44b8('0x11d'),_0x239d16[_0x44b8('0x34')]));if(!this['isConfigured'](_0x239d16[_0x44b8('0x84')])||!this[_0x44b8('0x81')](_0x239d16['aws_secret_access_key'])){return this[_0x44b8('0x9')]['noop'](_0x44b8('0x117'));}if(!this[_0x44b8('0x81')](_0x239d16['aws_bot_name'])){return this[_0x44b8('0x9')][_0x44b8('0xa4')]('no\x20bot\x20name\x20configured');}if(!this[_0x44b8('0x81')](_0x239d16[_0x44b8('0x56')])){return this[_0x44b8('0x9')][_0x44b8('0xa4')]('no\x20text\x20configured');}this[_0x44b8('0x9')][_0x44b8('0xdf')]=!![];this[_0x44b8('0x32')](_0x239d16);this[_0x44b8('0x3c')](_0x239d16[_0x44b8('0x56')],'in','','');this[_0x44b8('0x9')][_0x44b8('0xa4')](util['format'](_0x44b8('0x11e'),_0x239d16[_0x44b8('0x56')]));var _0xca3c70=this['awsLex'][_0x44b8('0x6b')](this,_0x239d16);if(_0xca3c70){for(var _0x372015 in _0xca3c70){if(_0xca3c70['hasOwnProperty'](_0x372015)&&_[_0x44b8('0x92')](_0xca3c70[_0x372015])){this[_0x44b8('0x9')][_0x44b8('0x9b')](util[_0x44b8('0x23')]('AWS_LEX_%s',_0x372015[_0x44b8('0x64')]()),_0xca3c70[_0x372015]);}}if(_[_0x44b8('0x3f')](_0xca3c70[_0x44b8('0x72')])){return this[_0x44b8('0x9')][_0x44b8('0xa4')]('Amazon\x20Lex\x20ready\x20for\x20fulfillment');}else{this[_0x44b8('0x3c')](_0xca3c70[_0x44b8('0x72')],'out',_0x44b8('0x11f'),'');return this[_0x44b8('0x9')][_0x44b8('0xa4')](util[_0x44b8('0x23')]('Amazon\x20Lex\x20Result\x20%s',_0xca3c70[_0x44b8('0x72')]));}}return this[_0x44b8('0x9')][_0x44b8('0x27')](_0x239d16,_0x44b8('0x120'));};AGIVertices[_0x44b8('0xb')][_0x44b8('0x121')]=function(_0x87c4b1){logger['info'](util[_0x44b8('0x23')](_0x44b8('0x122'),_0x87c4b1[_0x44b8('0x34')],_0x87c4b1[_0x44b8('0x60')]));if(!this['isConfigured'](_0x87c4b1[_0x44b8('0x76')])){return this[_0x44b8('0x9')][_0x44b8('0xa4')]('no\x20key\x20configured');}var _0x55250c=_0x44b8('0x123');var _0x45e3ef=util[_0x44b8('0x23')](_0x44b8('0x124'),FILES_PATH,rs['generate'](0x4));var _0x3dca15=util[_0x44b8('0x23')]('%s.%s',_0x45e3ef,_0x55250c);var _0xd19a35=!![];if(_0x87c4b1[_0x44b8('0x125')]===_0x44b8('0x126')){_0xd19a35=![];}var _0x559b12=this[_0x44b8('0x9')][_0x44b8('0x127')](_0x45e3ef,_0x55250c,_0x87c4b1[_0x44b8('0x128')],_0x87c4b1[_0x44b8('0x60')],undefined,_0xd19a35);if(_0x559b12[_0x44b8('0x9f')]!==-0x1){this['channel'][_0x44b8('0xa4')](util[_0x44b8('0x23')]('google\x20%s\x20file\x20created',_0x3dca15));var _0x2d2994=this[_0x44b8('0x8d')][_0x44b8('0x6b')](this,_0x87c4b1,_0x3dca15);if(_0x2d2994){for(var _0x3b9cd2 in _0x2d2994){if(_0x2d2994[_0x44b8('0xe0')](_0x3b9cd2)){this[_0x44b8('0x9')][_0x44b8('0x9b')](util[_0x44b8('0x23')](_0x44b8('0x129'),_0x3b9cd2['toUpperCase']()),_0x2d2994[_0x3b9cd2]);}}return this['channel']['noop'](util['format'](_0x44b8('0x12a'),JSON[_0x44b8('0x6e')](_0x2d2994)));}}return _0x559b12;};AGIVertices['prototype'][_0x44b8('0x12b')]=function(_0x470c9e){logger[_0x44b8('0x29')](util[_0x44b8('0x23')](_0x44b8('0x12c'),_0x470c9e[_0x44b8('0x34')]));if(!this['isConfigured'](_0x470c9e[_0x44b8('0x90')])){return this['channel']['noop'](_0x44b8('0x12d'));}if(!this[_0x44b8('0x81')](_0x470c9e[_0x44b8('0x91')])){return this[_0x44b8('0x9')][_0x44b8('0xa4')]('no\x20appsecret\x20configured');}var _0x3906b7=_0x44b8('0x123');var _0x19ddbe=util[_0x44b8('0x23')](_0x44b8('0x124'),FILES_PATH,rs[_0x44b8('0x10d')](0x4));var _0x3f4d24=util['format'](_0x44b8('0x9a'),_0x19ddbe,_0x3906b7);var _0x36bef1=!![];if(_0x470c9e[_0x44b8('0x125')]==='NOBEEP'){_0x36bef1=![];}var _0x2de514=this[_0x44b8('0x9')][_0x44b8('0x127')](_0x19ddbe,_0x3906b7,_0x470c9e[_0x44b8('0x128')],_0x470c9e[_0x44b8('0x60')],undefined,_0x36bef1);if(_0x2de514[_0x44b8('0x9f')]!==-0x1){this[_0x44b8('0x9')][_0x44b8('0xa4')](util['format'](_0x44b8('0x12e'),_0x3f4d24));var _0x292592=this[_0x44b8('0x8f')][_0x44b8('0x6b')](this,_0x470c9e,_0x3f4d24);if(_0x292592){for(var _0x7c1aaa in _0x292592){if(_0x292592[_0x44b8('0xe0')](_0x7c1aaa)){this['channel'][_0x44b8('0x9b')](util[_0x44b8('0x23')]('TILDE_ASR_%s',_0x7c1aaa[_0x44b8('0x64')]()),_0x292592[_0x7c1aaa]);}}return this[_0x44b8('0x9')][_0x44b8('0xa4')](util[_0x44b8('0x23')]('TildeASR\x20Result\x20%s',JSON[_0x44b8('0x6e')](_0x292592)));}}return _0x2de514;};AGIVertices['prototype']['gotoc']=function(_0x9a5734){logger[_0x44b8('0x29')](util[_0x44b8('0x23')](_0x44b8('0x12f'),_0x9a5734[_0x44b8('0x34')]));return this['channel']['continueAt'](_0x9a5734['context'],_0x9a5734[_0x44b8('0x39')],_0x9a5734[_0x44b8('0x3a')]);};AGIVertices['prototype'][_0x44b8('0x130')]=function(_0x154fe2){logger[_0x44b8('0x29')](util[_0x44b8('0x23')](_0x44b8('0x131'),_0x154fe2[_0x44b8('0x34')]));if(!this[_0x44b8('0x81')](_0x154fe2[_0x44b8('0x132')])){return this[_0x44b8('0x9')]['error'](_0x154fe2,_0x44b8('0x133'));}try{var _0x1cc640=eval(_0x154fe2[_0x44b8('0x132')])?_0x44b8('0x134'):_0x44b8('0x135');this['channel'][_0x44b8('0xa4')](util[_0x44b8('0x23')]('EVAL\x20CONDITION\x20%s\x20%s',_0x154fe2['condition'],_0x1cc640));return{'code':0xc8,'result':_0x1cc640};}catch(_0xca26a5){return{'code':0xc8,'result':_0x44b8('0x135')};}};AGIVertices[_0x44b8('0xb')][_0x44b8('0x136')]=function(_0x3689d0){logger['info'](util[_0x44b8('0x23')](_0x44b8('0x137'),_0x3689d0['label']));if(!this[_0x44b8('0x81')](_0x3689d0['interval_id'])){return this['channel'][_0x44b8('0x27')](_0x3689d0,_0x44b8('0x138'));}var _0x3af78a=this[_0x44b8('0x1d')]['sync'](this,_0x3689d0[_0x44b8('0x139')]);if(!_0x3af78a){return this[_0x44b8('0x9')][_0x44b8('0x27')](_0x3689d0,_0x44b8('0x13a'));}for(var _0x175ae3=0x0;_0x175ae3<_0x3af78a[_0x44b8('0x98')];_0x175ae3+=0x1){var _0x3c53fa=this[_0x44b8('0x9')][_0x44b8('0xc')](util[_0x44b8('0x23')](_0x44b8('0x13b'),_0x3af78a[_0x175ae3]));if(_0x3c53fa[_0x44b8('0x9f')]===-0x1){return _0x3c53fa;}logger[_0x44b8('0x29')](util['format']('IFTIME\x20%s\x20%s',_0x3af78a[_0x175ae3],_0x3c53fa[_0x44b8('0x9d')]));if(_0x3c53fa[_0x44b8('0x9d')]===_0x44b8('0x134')){logger['info'](util[_0x44b8('0x23')](_0x44b8('0x13c'),_0x3af78a[_0x175ae3],_0x44b8('0x134')));this[_0x44b8('0x9')][_0x44b8('0xa4')](util[_0x44b8('0x23')](_0x44b8('0x13c'),_0x3af78a[_0x175ae3],'true'));return{'code':0xc8,'result':'true'};}else{logger['info'](util[_0x44b8('0x23')](_0x44b8('0x13c'),_0x3af78a[_0x175ae3],_0x44b8('0x135')));this['channel']['noop'](util[_0x44b8('0x23')](_0x44b8('0x13c'),_0x3af78a[_0x175ae3],_0x44b8('0x135')));}}return{'code':0xc8,'result':_0x44b8('0x135')};};AGIVertices[_0x44b8('0xb')][_0x44b8('0x13d')]=function(_0x2c1d36){logger['info'](util[_0x44b8('0x23')](_0x44b8('0x13e'),_0x2c1d36[_0x44b8('0x34')]));return this['channel'][_0x44b8('0x13d')]();};AGIVertices[_0x44b8('0xb')][_0x44b8('0x13f')]=function(_0x4aec46){logger[_0x44b8('0x29')](util[_0x44b8('0x23')](_0x44b8('0x140'),_0x4aec46['label']));if(!this[_0x44b8('0x81')](_0x4aec46[_0x44b8('0x76')])){return this[_0x44b8('0x9')]['noop'](_0x44b8('0xde'));}var _0x3922b8='wav';var _0x40829b=util[_0x44b8('0x23')](_0x44b8('0x124'),FILES_PATH,rs['generate'](0x4));var _0x310c11=util[_0x44b8('0x23')](_0x44b8('0x9a'),_0x40829b,_0x3922b8);var _0x1d41c8=!![];if(_0x4aec46[_0x44b8('0x125')]===_0x44b8('0x126')){_0x1d41c8=![];}var _0x317eed=this[_0x44b8('0x9')]['recordFile'](_0x40829b,_0x3922b8,_0x4aec46[_0x44b8('0x128')],_0x4aec46[_0x44b8('0x60')],undefined,_0x1d41c8);if(_0x317eed[_0x44b8('0x9f')]!==-0x1){this[_0x44b8('0x9')]['noop'](util['format'](_0x44b8('0x141'),_0x310c11));var _0x549f1c=this[_0x44b8('0x7f')][_0x44b8('0x6b')](this,_0x4aec46,_0x310c11);if(_0x549f1c){for(var _0xb7dbe7 in _0x549f1c){if(_0x549f1c[_0x44b8('0xe0')](_0xb7dbe7)){this[_0x44b8('0x9')]['setVariable'](util['format'](_0x44b8('0x142'),_0xb7dbe7[_0x44b8('0x64')]()),_0x549f1c[_0xb7dbe7]);}}return this[_0x44b8('0x9')][_0x44b8('0xa4')](util['format']('IspeechASR\x20Result\x20%s',JSON[_0x44b8('0x6e')](_0x549f1c)));}}return _0x317eed;};AGIVertices[_0x44b8('0xb')][_0x44b8('0x143')]=function(_0x16fd39){logger['info'](util['format']('Enter\x20in\x20ISPEECHTTS\x20(%s)\x20block',_0x16fd39[_0x44b8('0x34')]));if(!this['isConfigured'](_0x16fd39[_0x44b8('0x76')])){return this[_0x44b8('0x9')][_0x44b8('0xa4')](_0x44b8('0xde'));}if(!this['isConfigured'](_0x16fd39[_0x44b8('0x56')])){return this[_0x44b8('0x9')]['noop'](_0x44b8('0xa5'));}this[_0x44b8('0x9')][_0x44b8('0xa4')](util[_0x44b8('0x23')](_0x44b8('0x144'),_0x16fd39['text']));var _0x20cc34=this[_0x44b8('0x7d')][_0x44b8('0x6b')](this,_0x16fd39);if(_0x20cc34){this['channel'][_0x44b8('0xa4')](util[_0x44b8('0x23')](_0x44b8('0x141'),_0x20cc34));var _0x48d8c0=this[_0x44b8('0x9')][_0x44b8('0xf6')](_0x20cc34,_0x16fd39[_0x44b8('0x128')]);try{fs['unlink'](_0x20cc34+_0x44b8('0x11b'));}catch(_0x26ed11){logger[_0x44b8('0x27')](_0x26ed11);}return _0x48d8c0;}return this['channel'][_0x44b8('0x27')](_0x16fd39,_0x44b8('0x145'));};AGIVertices['prototype']['login']=function(_0x1cbf9c){logger[_0x44b8('0x29')](util[_0x44b8('0x23')](_0x44b8('0x146'),_0x1cbf9c['label']));if(!this['isConfigured'](_0x1cbf9c[_0x44b8('0x147')])){return this[_0x44b8('0x9')][_0x44b8('0x27')](_0x1cbf9c,_0x44b8('0x148'));}logger[_0x44b8('0x29')](util[_0x44b8('0x23')](_0x44b8('0x149'),this[_0x44b8('0x9')][_0x44b8('0x36')],_0x1cbf9c[_0x44b8('0x147')]));var _0x4af0af=this[_0x44b8('0x4f')][_0x44b8('0x6b')](this,_0x1cbf9c[_0x44b8('0x147')]);if(_0x4af0af){logger[_0x44b8('0x29')](util[_0x44b8('0x23')](_0x44b8('0x14a'),this['channel'][_0x44b8('0x36')],_0x1cbf9c[_0x44b8('0x147')]));this[_0x44b8('0x9')]['noop'](util[_0x44b8('0x23')](_0x44b8('0x14a'),this[_0x44b8('0x9')][_0x44b8('0x36')],_0x1cbf9c[_0x44b8('0x147')]));return{'code':0xc8,'result':_0x44b8('0x14b')};}else{logger['info'](util[_0x44b8('0x23')]('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this[_0x44b8('0x9')]['callerid'],_0x1cbf9c[_0x44b8('0x147')]));this[_0x44b8('0x9')][_0x44b8('0xa4')](util[_0x44b8('0x23')](_0x44b8('0x14c'),this[_0x44b8('0x9')]['callerid'],_0x1cbf9c[_0x44b8('0x147')]));return{'code':0xc8,'result':_0x44b8('0x14d')};}};AGIVertices[_0x44b8('0xb')]['logout']=function(_0x2c7999){logger[_0x44b8('0x29')](util['format'](_0x44b8('0x14e'),_0x2c7999[_0x44b8('0x34')]));if(!this['isConfigured'](_0x2c7999['findBy'])){return this[_0x44b8('0x9')]['error'](_0x2c7999,'no\x20find\x20by\x20configured');}logger['info'](util[_0x44b8('0x23')](_0x44b8('0x149'),this[_0x44b8('0x9')][_0x44b8('0x36')],_0x2c7999[_0x44b8('0x147')]));var _0x15382e=this[_0x44b8('0x4b')]['sync'](this,_0x2c7999[_0x44b8('0x147')]);if(_0x15382e){logger[_0x44b8('0x29')](util[_0x44b8('0x23')](_0x44b8('0x14a'),this[_0x44b8('0x9')][_0x44b8('0x36')],_0x2c7999[_0x44b8('0x147')]));this[_0x44b8('0x9')][_0x44b8('0xa4')](util[_0x44b8('0x23')](_0x44b8('0x14a'),this[_0x44b8('0x9')][_0x44b8('0x36')],_0x2c7999['findBy']));return{'code':0xc8,'result':_0x44b8('0x14b')};}else{logger[_0x44b8('0x29')](util[_0x44b8('0x23')](_0x44b8('0x14c'),this[_0x44b8('0x9')][_0x44b8('0x36')],_0x2c7999['findBy']));this[_0x44b8('0x9')][_0x44b8('0xa4')](util[_0x44b8('0x23')](_0x44b8('0x14c'),this['channel'][_0x44b8('0x36')],_0x2c7999[_0x44b8('0x147')]));return{'code':0xc8,'result':'failure'};}};AGIVertices['prototype']['math']=function(_0x216348){logger[_0x44b8('0x29')](util['format'](_0x44b8('0x14f'),_0x216348[_0x44b8('0x34')]));if(!this['isConfigured'](_0x216348[_0x44b8('0x150')])){return this[_0x44b8('0x9')][_0x44b8('0x27')](_0x216348,_0x44b8('0x151'));}this['channel'][_0x44b8('0xa4')](util[_0x44b8('0x23')]('math\x20%s',_0x216348[_0x44b8('0x150')]));var _0x20cac3=eval(_0x216348[_0x44b8('0x150')]);if(!this['isConfigured'](_0x216348[_0x44b8('0xd1')])){return this[_0x44b8('0x9')][_0x44b8('0xa4')](_0x44b8('0x108'));}var _0x59e899=this[_0x44b8('0xc')][_0x44b8('0x6b')](this,_0x216348['variable_id']);if(!_0x59e899){return this['channel']['error'](_0x216348,_0x44b8('0xd2'));}if(_[_0x44b8('0x97')](_0x20cac3)){var _0xeacf3d=this;_0x20cac3[_0x44b8('0xd3')](function(_0xf330f1,_0x3c2c22){_0xeacf3d['channel'][_0x44b8('0x9b')](util[_0x44b8('0x23')](_0x44b8('0x152'),_0x59e899,_0x3c2c22),_0xf330f1);});return this[_0x44b8('0x9')]['noop'](util['format'](_0x44b8('0x153'),_0x59e899));}else{return this[_0x44b8('0x9')][_0x44b8('0x9b')](_0x59e899,_0x20cac3);}};AGIVertices[_0x44b8('0xb')][_0x44b8('0x7')]=function(_0x4ca814){logger[_0x44b8('0x29')](util[_0x44b8('0x23')]('Enter\x20in\x20MENU\x20(%s)\x20block',_0x4ca814[_0x44b8('0x34')]));if(_0x4ca814[_0x44b8('0xa1')]===0x0){return this[_0x44b8('0xa0')](_0x4ca814);}_0x4ca814[_0x44b8('0xa1')]-=0x1;if(!this[_0x44b8('0x81')](_0x4ca814[_0x44b8('0x106')])){return this[_0x44b8('0x9')][_0x44b8('0x27')](_0x4ca814,'no\x20file\x20audio\x20selected');}var _0x306e31=this[_0x44b8('0x18')][_0x44b8('0x6b')](this,_0x4ca814[_0x44b8('0x106')]);if(!_0x306e31){return this[_0x44b8('0x9')]['error'](_0x4ca814,'no\x20file\x20audio\x20found');}var _0xf26205=this[_0x44b8('0x9')][_0x44b8('0x154')](_0x306e31,_0x4ca814[_0x44b8('0x109')],_0x4ca814['digit']);var _0x3b5a69=_0xf26205['result'];if(_0xf26205[_0x44b8('0x9f')]===-0x1){this[_0x44b8('0x32')][_0x44b8('0x6b')](this,_0x4ca814,'-1');return _0xf26205;}else if(_0xf26205[_0x44b8('0x9d')]===_0x44b8('0x60')){_0xf26205['result']=_0xf26205[_0x44b8('0x9f')][_0x44b8('0x98')]>0x0?_0xf26205['result']:'t';}else if(_[_0x44b8('0x3e')](_0xf26205[_0x44b8('0x9f')])){_0xf26205[_0x44b8('0x9f')]='#';_0x3b5a69='#';}if(!this['isConfigured'](_0x4ca814[_0x44b8('0xd1')])){this[_0x44b8('0x9')][_0x44b8('0xa4')](_0x44b8('0x108'));}else{var _0x10567c=this[_0x44b8('0xc')]['sync'](this,_0x4ca814[_0x44b8('0xd1')]);if(!_0x10567c){return this[_0x44b8('0x9')]['error'](_0x4ca814,_0x44b8('0xd2'));}this[_0x44b8('0x9')][_0x44b8('0x9b')](_0x10567c,_0x3b5a69);}this[_0x44b8('0x32')][_0x44b8('0x6b')](this,_0x4ca814,_0x3b5a69);return _0xf26205;};AGIVertices[_0x44b8('0xb')][_0x44b8('0xa4')]=function(_0x4576b7){logger[_0x44b8('0x29')](util[_0x44b8('0x23')](_0x44b8('0x155'),_0x4576b7['label']));return this[_0x44b8('0x9')][_0x44b8('0xa4')](_0x4576b7[_0x44b8('0x156')]||_0x4576b7[_0x44b8('0x34')]);};AGIVertices['prototype'][_0x44b8('0x157')]=function(_0x47aa08){logger[_0x44b8('0x29')](util['format'](_0x44b8('0x158'),_0x47aa08[_0x44b8('0x34')]));if(!this['isConfigured'](_0x47aa08['findBy'])){return this[_0x44b8('0x9')]['error'](_0x47aa08,_0x44b8('0x148'));}logger[_0x44b8('0x29')](util[_0x44b8('0x23')]('FIND\x20AGENT\x20%s\x20BY\x20%s',this['channel'][_0x44b8('0x36')],_0x47aa08[_0x44b8('0x147')]));var _0x169d87=this[_0x44b8('0x159')][_0x44b8('0x6b')](this,_0x47aa08[_0x44b8('0x15a')]);var _0x38d6d8=this[_0x44b8('0x48')]['sync'](this,_0x47aa08[_0x44b8('0x147')],_0x169d87);if(_0x38d6d8){logger[_0x44b8('0x29')](util[_0x44b8('0x23')](_0x44b8('0x14a'),this['channel'][_0x44b8('0x36')],_0x47aa08[_0x44b8('0x147')]));this[_0x44b8('0x9')][_0x44b8('0xa4')](util['format'](_0x44b8('0x14a'),this['channel'][_0x44b8('0x36')],_0x47aa08[_0x44b8('0x147')]));return{'code':0xc8,'result':'success'};}else{logger[_0x44b8('0x29')](util['format'](_0x44b8('0x14c'),this[_0x44b8('0x9')][_0x44b8('0x36')],_0x47aa08[_0x44b8('0x147')]));this['channel'][_0x44b8('0xa4')](util['format'](_0x44b8('0x14a'),this['channel'][_0x44b8('0x36')],_0x47aa08[_0x44b8('0x147')]));return{'code':0xc8,'result':_0x44b8('0x14d')};}};AGIVertices[_0x44b8('0xb')][_0x44b8('0x15b')]=function(_0x3e7cc3){logger[_0x44b8('0x29')](util[_0x44b8('0x23')]('Enter\x20in\x20PLAYBACK\x20(%s)\x20block',_0x3e7cc3[_0x44b8('0x34')]));if(!this[_0x44b8('0x81')](_0x3e7cc3[_0x44b8('0x106')])){return this[_0x44b8('0x9')][_0x44b8('0x27')](_0x3e7cc3,_0x44b8('0x15c'));}var _0x39d1b4=this[_0x44b8('0x18')][_0x44b8('0x6b')](this,_0x3e7cc3[_0x44b8('0x106')]);if(!_0x39d1b4){return this['channel'][_0x44b8('0x27')](_0x3e7cc3,_0x44b8('0x107'));}var _0x40cb99=this[_0x44b8('0x9')][_0x44b8('0x51')](_0x44b8('0x15d'),[_0x39d1b4,_0x3e7cc3[_0x44b8('0x100')]]);if(_0x40cb99[_0x44b8('0x9f')]===-0x1){return _0x40cb99;}return this[_0x44b8('0x9')][_0x44b8('0xa4')](util['format'](_0x44b8('0xc0'),'PLAYBACK',_0x39d1b4));};AGIVertices[_0x44b8('0xb')][_0x44b8('0x15e')]=function(_0x24c7e9){logger[_0x44b8('0x29')](util[_0x44b8('0x23')](_0x44b8('0x15f'),_0x24c7e9[_0x44b8('0x34')]));if(!this[_0x44b8('0x81')](_0x24c7e9[_0x44b8('0x160')])){return this[_0x44b8('0x9')][_0x44b8('0x27')](_0x24c7e9,_0x44b8('0x161'));}var _0x2cff2d='';var _0xec2b21=parseInt(_0x24c7e9[_0x44b8('0x160')],0xa);if(isNaN(_0xec2b21)){_0x2cff2d=_0x24c7e9[_0x44b8('0x160')];}else{_0x2cff2d=this['getVoiceQueue']['sync'](this,_0x24c7e9[_0x44b8('0x160')]);if(!_0x2cff2d){return this[_0x44b8('0x9')][_0x44b8('0x27')](_0x24c7e9,_0x44b8('0x162'));}}var _0x26377c='';if(this[_0x44b8('0x81')](_0x24c7e9[_0x44b8('0x106')])){var _0x521f5c=this[_0x44b8('0x18')][_0x44b8('0x6b')](this,_0x24c7e9['file_id']);if(_0x521f5c){_0x26377c=_0x521f5c;}}this[_0x44b8('0x32')][_0x44b8('0x6b')](this,_0x24c7e9,_0x2cff2d);if(_0x24c7e9[_0x44b8('0x100')][_0x44b8('0x163')]('x')<0x0){_0x24c7e9[_0x44b8('0x100')]+='x';}if(_0x24c7e9[_0x44b8('0x100')]['indexOf']('X')<0x0){_0x24c7e9['opts']+='X';}this[_0x44b8('0x9')][_0x44b8('0x9b')](_0x44b8('0x164'),_0x2cff2d?_0x2cff2d[_0x44b8('0x165')]():'');var _0x525eb7=this[_0x44b8('0x9')]['exec']('QUEUE',[_0x2cff2d,_0x24c7e9[_0x44b8('0x100')],_0x24c7e9[_0x44b8('0x5e')],_0x26377c,_0x24c7e9[_0x44b8('0x60')],_0x24c7e9[_0x44b8('0x5')],_0x24c7e9[_0x44b8('0x166')],_0x24c7e9[_0x44b8('0x167')],'',_0x24c7e9['position']]);if(_0x525eb7[_0x44b8('0x9f')]===-0x1){return _0x525eb7;}return this[_0x44b8('0x9')][_0x44b8('0xa4')](util[_0x44b8('0x23')](_0x44b8('0xc0'),_0x44b8('0x168'),_0x2cff2d));};AGIVertices[_0x44b8('0xb')][_0x44b8('0x169')]=function(_0x24ab51){logger[_0x44b8('0x29')](util[_0x44b8('0x23')](_0x44b8('0x16a'),_0x24ab51[_0x44b8('0x34')]));var _0x4be254=_0x24ab51['recordingFormat']||_0x44b8('0x123');var _0x159848=util[_0x44b8('0x23')]('%s_%s',this[_0x44b8('0x9')][_0x44b8('0x33')],rs[_0x44b8('0x10d')](0x5));var _0x454565=util[_0x44b8('0x23')]('%s/recordings/%s.%s',FILES_PATH,_0x159848,_0x4be254);var _0xb50fef=util[_0x44b8('0x23')](_0x44b8('0x124'),FILES_PATH,_0x159848);this[_0x44b8('0x37')][_0x44b8('0x6b')](this,_0x24ab51,_0x159848,_0x454565);this[_0x44b8('0x9')][_0x44b8('0x9b')](_0x44b8('0x16b'),_0x159848);logger[_0x44b8('0x29')](_0x44b8('0x16c'),_0xb50fef,_0x4be254,_0x24ab51[_0x44b8('0x16d')],_0x24ab51[_0x44b8('0x60')]);return this[_0x44b8('0x9')][_0x44b8('0x127')](_0xb50fef,_0x4be254,_0x24ab51['escape_digits'],_0x24ab51['timeout'],undefined,!![]);};AGIVertices[_0x44b8('0xb')]['restapi']=function(_0x1f1b3b){logger[_0x44b8('0x29')](util[_0x44b8('0x23')]('Enter\x20in\x20RESTAPI\x20(%s)\x20block',_0x1f1b3b[_0x44b8('0x34')]));if(!this['isConfigured'](_0x1f1b3b[_0x44b8('0x5e')])){return this['channel']['noop'](_0x44b8('0x16e'));}var _0x230623=this[_0x44b8('0x5d')][_0x44b8('0x6b')](this,_0x1f1b3b);logger[_0x44b8('0x29')](util[_0x44b8('0x23')](_0x44b8('0x16f'),util[_0x44b8('0x170')](_0x230623,{'showHidden':![],'depth':null})));if(!this[_0x44b8('0x81')](_0x1f1b3b[_0x44b8('0xd1')])){return this['channel'][_0x44b8('0xa4')](_0x44b8('0x171'));}var _0x815569=this[_0x44b8('0xc')][_0x44b8('0x6b')](this,_0x1f1b3b[_0x44b8('0xd1')]);if(!_0x815569){return this['channel'][_0x44b8('0x27')](_0x1f1b3b,_0x44b8('0xd2'));}this[_0x44b8('0x9')]['setVariable'](util[_0x44b8('0x23')]('%s_STATUS_CODE',_0x815569),_0x230623[_0x44b8('0x70')]?_0x230623['statusCode']:'200');this[_0x44b8('0x9')][_0x44b8('0x9b')](util['format'](_0x44b8('0x172'),_0x815569),_0x230623['statusMessage']?_0x230623[_0x44b8('0x71')]:'OK');if(_0x230623[_0x44b8('0x65')]){try{this[_0x44b8('0x99')](_0x230623[_0x44b8('0x65')],_0x815569);}catch(_0x2b27c5){logger['error'](util[_0x44b8('0x23')](_0x44b8('0x173'),_0x815569));}}return this[_0x44b8('0x9')][_0x44b8('0xa4')](util[_0x44b8('0x23')](_0x44b8('0xd5'),_0x815569));};AGIVertices['prototype']['saydigits']=function(_0x43fe5e){logger[_0x44b8('0x29')](util['format'](_0x44b8('0x174'),_0x43fe5e[_0x44b8('0x34')]));return this[_0x44b8('0x9')][_0x44b8('0x175')](_0x43fe5e['digits'][_0x44b8('0xd0')](/\s+/g,''),_0x43fe5e[_0x44b8('0x16d')]);};AGIVertices[_0x44b8('0xb')]['saynumber']=function(_0x50244d){logger[_0x44b8('0x29')](util[_0x44b8('0x23')](_0x44b8('0x176'),_0x50244d[_0x44b8('0x34')]));return this[_0x44b8('0x9')][_0x44b8('0x177')](_0x50244d[_0x44b8('0x178')]['replace'](/\s+/g,''),_0x50244d[_0x44b8('0x16d')]);};AGIVertices[_0x44b8('0xb')][_0x44b8('0x179')]=function(_0x345d3d){logger[_0x44b8('0x29')](util[_0x44b8('0x23')](_0x44b8('0x17a'),_0x345d3d[_0x44b8('0x34')]));return this[_0x44b8('0x9')][_0x44b8('0x17b')](_0x345d3d[_0x44b8('0x56')],_0x345d3d[_0x44b8('0x16d')]);};AGIVertices['prototype']['sendMail']=function(_0x51dbd8){logger[_0x44b8('0x29')](util[_0x44b8('0x23')]('Enter\x20in\x20SENDMAIL\x20(%s)\x20block',_0x51dbd8[_0x44b8('0x34')]));if(!this[_0x44b8('0x81')](_0x51dbd8[_0x44b8('0x17c')])){return this[_0x44b8('0x9')][_0x44b8('0xa4')](_0x44b8('0x17d'));}var _0x38691f=this[_0x44b8('0x17e')][_0x44b8('0x6b')](this,_0x51dbd8[_0x44b8('0x17c')]);if(!_0x38691f||!_0x38691f[_0x44b8('0x17f')]){return this[_0x44b8('0x9')][_0x44b8('0x27')](_0x51dbd8,_0x44b8('0x180'));}var _0x3fce6a={'from':util[_0x44b8('0x23')](_0x44b8('0x181'),_0x38691f[_0x44b8('0xf')],_0x38691f[_0x44b8('0x182')]||_0x38691f[_0x44b8('0x17f')]['user']),'to':_0x51dbd8['to']||'','cc':_0x51dbd8['cc']||'','bcc':_0x51dbd8[_0x44b8('0x183')]||'','subject':_0x51dbd8['subject'],'html':_0x51dbd8['text'],'text':_0x51dbd8['text']};if(this[_0x44b8('0x81')](_0x51dbd8[_0x44b8('0x184')])){}logger[_0x44b8('0x185')]('sendMail\x20message',JSON[_0x44b8('0x6e')](_0x3fce6a));this[_0x44b8('0x32')][_0x44b8('0x6b')](this,_0x51dbd8,_0x51dbd8[_0x44b8('0x17c')]);this[_0x44b8('0x9')][_0x44b8('0xa4')](util[_0x44b8('0x23')](_0x44b8('0x186'),_0x38691f[_0x44b8('0xf')]));this[_0x44b8('0x1b')][_0x44b8('0x6b')](this,_0x38691f['smtpOptions'],_0x3fce6a);return this[_0x44b8('0x9')][_0x44b8('0xa4')]('Mail\x20message\x20added\x20to\x20outgoing\x20process');};AGIVertices[_0x44b8('0xb')][_0x44b8('0x187')]=function(_0x1e737b){logger['info'](util[_0x44b8('0x23')](_0x44b8('0x188'),_0x1e737b[_0x44b8('0x34')]));return this[_0x44b8('0x9')][_0x44b8('0xa4')](_0x44b8('0x189'));};AGIVertices[_0x44b8('0xb')][_0x44b8('0x18a')]=function(_0x735553){logger[_0x44b8('0x29')](util[_0x44b8('0x23')](_0x44b8('0x18b'),_0x735553[_0x44b8('0x34')]));if(!this[_0x44b8('0x81')](_0x735553[_0x44b8('0x18c')])){return this[_0x44b8('0x9')][_0x44b8('0xa4')](_0x44b8('0x18d'));}var _0x542e4f=this['getSmsAccount'][_0x44b8('0x6b')](this,_0x735553[_0x44b8('0x18c')]);if(!_0x542e4f){return this[_0x44b8('0x9')][_0x44b8('0x27')](_0x735553,'no\x20sms\x20account\x20found');}var _0x1a78a8={'body':_0x735553[_0x44b8('0x18e')],'phone':_0x735553['to']||'','SmsAccountId':_0x542e4f['id']};logger[_0x44b8('0x185')](_0x44b8('0x18f'),JSON[_0x44b8('0x6e')](_0x1a78a8));this[_0x44b8('0x32')][_0x44b8('0x6b')](this,_0x735553,_0x735553['sms_account_id']);this[_0x44b8('0x9')]['noop'](util[_0x44b8('0x23')](_0x44b8('0x190'),_0x542e4f[_0x44b8('0xf')]));this['createSmsMessage'][_0x44b8('0x6b')](this,_0x1a78a8);return this['channel'][_0x44b8('0xa4')](_0x44b8('0x191'));};AGIVertices[_0x44b8('0xb')][_0x44b8('0x192')]=function(_0x774615){logger[_0x44b8('0x29')](util[_0x44b8('0x23')](_0x44b8('0x193'),_0x774615[_0x44b8('0x34')]));if(!this[_0x44b8('0x81')](_0x774615[_0x44b8('0xd1')])){return this[_0x44b8('0x9')][_0x44b8('0x27')](_0x774615,'no\x20variable\x20selected');}var _0x2ede32=this[_0x44b8('0xc')][_0x44b8('0x6b')](this,_0x774615['variable_id']);if(!_0x2ede32){return this[_0x44b8('0x9')][_0x44b8('0x27')](_0x774615,_0x44b8('0xd2'));}return this[_0x44b8('0x9')][_0x44b8('0x9b')](_0x2ede32,_0x774615[_0x44b8('0x194')]);};AGIVertices[_0x44b8('0xb')]['start']=function(_0x1ffd7b){logger[_0x44b8('0x29')](util[_0x44b8('0x23')]('Enter\x20in\x20START\x20(%s)\x20block',_0x1ffd7b[_0x44b8('0x34')]));this[_0x44b8('0x9')][_0x44b8('0xa4')](_0x44b8('0x195'));var _0x519e52=this[_0x44b8('0x9')][_0x44b8('0xc')]('XMCS-UNIQUEID');if(!_[_0x44b8('0x3e')](_0x519e52[_0x44b8('0x9d')])){this[_0x44b8('0x9')][_0x44b8('0x33')]=_0x519e52['extra'];}if(_0x1ffd7b['answer']===_0x44b8('0x196')){this['channel'][_0x44b8('0xa4')](_0x44b8('0x197'));return this['channel'][_0x44b8('0xb6')]();}return this[_0x44b8('0x9')]['noop']('Skipped\x20Answer');};AGIVertices['prototype'][_0x44b8('0x198')]=function(_0x3edc61){logger[_0x44b8('0x29')](util['format']('Enter\x20in\x20SUBPROJECT\x20(%s)\x20block',_0x3edc61['label']));if(!this[_0x44b8('0x81')](_0x3edc61[_0x44b8('0x199')])){return this[_0x44b8('0x9')][_0x44b8('0x27')](_0x3edc61,'no\x20subproject\x20selected');}var _0x31addc=this[_0x44b8('0x19a')][_0x44b8('0x6b')](this,_0x3edc61[_0x44b8('0x199')]);if(!this[_0x44b8('0x81')](_0x31addc)){return this['channel'][_0x44b8('0x27')](_0x3edc61,util[_0x44b8('0x23')](_0x44b8('0x19b'),_0x3edc61[_0x44b8('0x199')]));}if(_0x31addc===this[_0x44b8('0x9')]['arg_1']){return this[_0x44b8('0x9')][_0x44b8('0x27')](_0x3edc61,_0x44b8('0x19c'));}this[_0x44b8('0x32')][_0x44b8('0x6b')](this,_0x3edc61,_0x31addc);var _0x4390fb=this[_0x44b8('0x9')][_0x44b8('0x51')](_0x44b8('0x19d'),util[_0x44b8('0x23')]('agi://%s/square,\x22%s\x22,\x22%s\x22',config[_0x44b8('0x5')][_0x44b8('0x19e')]||_0x44b8('0x19f'),_0x31addc,this[_0x44b8('0x9')][_0x44b8('0x35')]));if(_0x4390fb[_0x44b8('0x9f')]===-0x1){return _0x4390fb;}return this[_0x44b8('0x9')][_0x44b8('0xa4')](util[_0x44b8('0x23')](_0x44b8('0xc0'),'AGI',_0x31addc));};AGIVertices[_0x44b8('0xb')][_0x44b8('0x1a0')]=function(_0x467f72){logger[_0x44b8('0x29')](util[_0x44b8('0x23')](_0x44b8('0x1a1'),_0x467f72['label']));var _0x47d28a=this[_0x44b8('0x50')][_0x44b8('0x6b')](this,_0x467f72[_0x44b8('0xb3')]);this[_0x44b8('0x32')][_0x44b8('0x6b')](this,_0x467f72,_0x467f72[_0x44b8('0xb3')]);if(this[_0x44b8('0x81')](_0x467f72[_0x44b8('0xd1')])){var _0x43ee4a=this[_0x44b8('0xc')][_0x44b8('0x6b')](this,_0x467f72[_0x44b8('0xd1')]);if(_0x43ee4a){this[_0x44b8('0x9')]['setVariable'](_0x43ee4a,_0x47d28a);return this[_0x44b8('0x9')][_0x44b8('0xa4')](util[_0x44b8('0x23')](_0x44b8('0x1a2'),_0x467f72[_0x44b8('0xb3')],_0x43ee4a));}}return this['channel'][_0x44b8('0xa4')](util[_0x44b8('0x23')](_0x44b8('0x1a3'),_0x467f72['command']));};AGIVertices[_0x44b8('0xb')][_0x44b8('0x1a4')]=function(_0x120e8b){logger[_0x44b8('0x29')](util['format']('Enter\x20in\x20Google\x20Cloud\x20TTS\x20(%s)\x20block',_0x120e8b[_0x44b8('0x34')]));_0x120e8b[_0x44b8('0x56')]=_0x120e8b[_0x44b8('0x56')][_0x44b8('0xd0')](/(\r\n|\n|\r)/gm,'\x20');if(!this['isConfigured'](_0x120e8b[_0x44b8('0x54')])){return this[_0x44b8('0x9')][_0x44b8('0xa4')]('no\x20apiKey\x20configured');}if(!this[_0x44b8('0x81')](_0x120e8b[_0x44b8('0x56')])){return this[_0x44b8('0x9')][_0x44b8('0xa4')](_0x44b8('0xa5'));}this[_0x44b8('0x9')][_0x44b8('0xa4')](util[_0x44b8('0x23')](_0x44b8('0x1a5'),_0x120e8b[_0x44b8('0x56')]));var _0x418961=this['googleCloudTTS'][_0x44b8('0x6b')](this,_0x120e8b);if(_0x418961){this[_0x44b8('0x9')]['noop'](util[_0x44b8('0x23')](_0x44b8('0x1a6'),_0x418961));var _0x17c1f4=this[_0x44b8('0x9')]['streamFile'](_0x418961);try{fs[_0x44b8('0x11a')](_0x418961+'.wav');}catch(_0x3cda92){logger['error'](_0x3cda92);}return _0x17c1f4;}return this['channel'][_0x44b8('0x27')](_0x120e8b,'Google\x20Cloud\x20TTS\x20is\x20unreachable');};AGIVertices[_0x44b8('0xb')]['tts']=function(_0x17db2d){logger[_0x44b8('0x29')](util['format'](_0x44b8('0x1a7'),_0x17db2d['label']));_0x17db2d[_0x44b8('0x56')]=_0x17db2d[_0x44b8('0x56')][_0x44b8('0xd0')](/(\r\n|\n|\r)/gm,'\x20');if(!this[_0x44b8('0x81')](_0x17db2d[_0x44b8('0x56')])){return this[_0x44b8('0x9')][_0x44b8('0xa4')]('no\x20text\x20configured');}this[_0x44b8('0x9')]['noop'](util['format'](_0x44b8('0x1a8'),_0x17db2d['text']));var _0x54cbce=this[_0x44b8('0x5b')]['sync'](this,_0x17db2d);if(_0x54cbce){this[_0x44b8('0x9')][_0x44b8('0xa4')](util[_0x44b8('0x23')](_0x44b8('0x1a9'),_0x54cbce));var _0x29904b=this[_0x44b8('0x9')]['streamFile'](_0x54cbce);try{fs[_0x44b8('0x11a')](_0x54cbce+_0x44b8('0x11b'));}catch(_0x48040c){logger[_0x44b8('0x27')](_0x48040c);}return _0x29904b;}return this['channel']['error'](_0x17db2d,_0x44b8('0x1aa'));};AGIVertices['prototype'][_0x44b8('0x1ab')]=function(_0x498cc6){logger[_0x44b8('0x29')](util[_0x44b8('0x23')](_0x44b8('0x1ac'),_0x498cc6[_0x44b8('0x34')]));if(!this[_0x44b8('0x81')](_0x498cc6[_0x44b8('0x147')])){return this[_0x44b8('0x9')][_0x44b8('0x27')](_0x498cc6,_0x44b8('0x148'));}logger[_0x44b8('0x29')](util[_0x44b8('0x23')](_0x44b8('0x149'),this[_0x44b8('0x9')][_0x44b8('0x36')],_0x498cc6[_0x44b8('0x147')]));var _0x4efee9=this['agentUnpause']['sync'](this,_0x498cc6[_0x44b8('0x147')]);if(_0x4efee9){logger[_0x44b8('0x29')](util['format'](_0x44b8('0x14a'),this['channel'][_0x44b8('0x36')],_0x498cc6[_0x44b8('0x147')]));this[_0x44b8('0x9')]['noop'](util['format'](_0x44b8('0x14a'),this['channel'][_0x44b8('0x36')],_0x498cc6[_0x44b8('0x147')]));return{'code':0xc8,'result':_0x44b8('0x14b')};}else{logger[_0x44b8('0x29')](util[_0x44b8('0x23')](_0x44b8('0x14c'),this[_0x44b8('0x9')][_0x44b8('0x36')],_0x498cc6[_0x44b8('0x147')]));this[_0x44b8('0x9')]['noop'](util['format']('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this[_0x44b8('0x9')][_0x44b8('0x36')],_0x498cc6[_0x44b8('0x147')]));return{'code':0xc8,'result':_0x44b8('0x14d')};}};AGIVertices[_0x44b8('0xb')][_0x44b8('0x1ad')]=function(_0x11231a){logger[_0x44b8('0x29')](util[_0x44b8('0x23')]('Enter\x20in\x20VOICEMAIL\x20(%s)\x20block',_0x11231a[_0x44b8('0x34')]));var _0x1d10f6=this[_0x44b8('0x9')][_0x44b8('0x51')]('VOICEMAIL',[_0x11231a['mailbox'],_0x11231a[_0x44b8('0x74')]]);if(_0x1d10f6[_0x44b8('0x9f')]===-0x1){return _0x1d10f6;}return this[_0x44b8('0x9')][_0x44b8('0xa4')](util[_0x44b8('0x23')](_0x44b8('0xc0'),_0x44b8('0x1ae'),_0x11231a[_0x44b8('0x1af')]));};AGIVertices['prototype']['vswitch']=function(_0x41449b){logger[_0x44b8('0x29')](util['format'](_0x44b8('0x1b0'),_0x41449b[_0x44b8('0x34')]));if(!this['isConfigured'](_0x41449b[_0x44b8('0xd1')])){return this['channel'][_0x44b8('0x27')](_0x41449b,_0x44b8('0x1b1'));}var _0x29a8c5=this[_0x44b8('0xc')][_0x44b8('0x6b')](this,_0x41449b[_0x44b8('0xd1')]);if(!_0x29a8c5){return this[_0x44b8('0x9')][_0x44b8('0x27')](_0x41449b,_0x44b8('0xd2'));}var _0x32262e=this[_0x44b8('0x9')][_0x44b8('0xc')](_0x29a8c5);return{'code':0xc8,'result':_0x32262e[_0x44b8('0x9d')]?_0x32262e[_0x44b8('0x9d')]:'-'};};String[_0x44b8('0xb')][_0x44b8('0x1b2')]=function(_0x366cec,_0x5d70fd){return this[_0x44b8('0x9c')](_0x366cec)[_0x44b8('0x1b3')](_0x5d70fd);};module['exports']=AGIVertices;
\ No newline at end of file