e0cbe2203ec99f5ab12f0fa2592e80d956d1649d
[motion2.git] / server / services / agi / vertices.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
13 // * The SOFTWARE PRODUCT is protected by copyright laws and international *
14 // * copyright treaties, as well as other intellectual property laws and   *
15 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0xafdd=['close','Error\x20closing\x20connection\x20to\x20odbc\x20%s','getSmsAccount','getSmsAccountById','createSquareDetailsReport','uniqueid','label','agicommand','arg_1','callerid','createSquareRecording','calleridname','context','extension','accountcode','dnid','file','createSquareMessage','createCmContact','isNil','random','lastName','phone','list_id','scheduledAt','callback','Callback\x20scheduled\x20at\x20','toString','callback_priority','getPause','agentPause','agent','agentLogout','agentLogin','internal','LOCAL','shellCommand','replace','googleCloudTTS','apiKey','google_cloud_tts_text_type','text','en-US','ssmlGender','audioEncoding','MP3','googleTTS','google_tts_language','url','method','timeout','POST','PUT','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','headers','render','stringify','An\x20incorrect\x20formatted\x20json\x20has\x20been\x20passed\x20to\x20the\x20function','statusCode','statusMessage','message','500\x20-\x20Internal\x20Server\x20Error','options','googleDialogflow','dialogflow_language','googleDialogflowV2','client_email','dialogflowV2_language','sestekNDA','ispeechTTS','key','ispeech_tts_language','speed','ispeechASR','model','awsPolly','aws_access_key_id','aws_secret_access_key','aws_polly_voice','aws_text_type','awsLex','aws_lex_region','aws_bot_name','googleASR','tildeASR','appid','appsecret','clear','includes','hasOwnProperty','isString','replaceObjectAllVariables','recursiveNodeIndex','isPlainObject','isArray','length','replaceAllVariables','saveRestApiResult','%s.%s','setVariable','split','replaceAll','getVariable','extra','getAndSetVariable','result','The\x20\x22%s\x22\x20variable\x20value\x20is:\x20%s','isConfigured','maxRetry','retry','mrcpsynth','Enter\x20in\x20MRCPSynth\x20(%s)\x20block','noop','no\x20text\x20configured','exec','MRCPSynth','Executed\x20command\x20MRCPSynth\x20%s','mrcprecog','Enter\x20in\x20MRCPRecog\x20(%s)\x20block','grammar','no\x20grammar\x20configured','MRCPRecog','RECOG_CONFIDENCE()','MRCP_RECOG_CONFIDENCE','RECOG_INSTANCE()','MRCP_RECOG_INSTANCE','Enter\x20in\x20AGI\x20(%s)\x20block','command','args','answer','Wait\x20%s\x20seconds\x20before\x20answer','wait','delay','CALLBACK\x20added\x20phone:\x20%s\x20on\x20list:\x20%s\x20at\x20%s','custom_app','application','Executed\x20command\x20%s\x20%s','lumenvoxtts','sestektts','Enter\x20in\x20SESTEKTTS\x20(%s)\x20block','lumenvoxasr','LUMENVOX_ASR_CONFIDENCE','RECOG_INPUT()','LUMENVOX_ASR_TRANSCRIPT','Executed\x20command\x20MRCPRecog\x20%s','sestekasr','Enter\x20in\x20SESTEKASR\x20(%s)\x20block','SESTEK_ASR_CONFIDENCE','SESTEK_ASR_TRANSCRIPT','SESTEK_ASR_INSTANCE','database','Enter\x20in\x20DATABASE\x20(%s)\x20block','odbc_id','no\x20database\x20selected','no\x20query\x20configured','query:\x20%s','variable_id','no\x20variable\x20selected\x20for\x20the\x20result','no\x20variable\x20found','forEach','%s[%s][%s]','%s_ROWS_COUNT','variable\x20%s\x20set','dial','debug','sip_id','no\x20user\x20selected','no\x20user\x20found','SIP/%s','opts','Executed\x20command\x20%s','DIAL','dialogflow','Enter\x20in\x20DIALOGFLOW\x20(%s)\x20block','no\x20key\x20configured','bot','Trying\x20Dialogflow:\x20%s','DIALOGFLOW_%s','Dialogflow\x20Result\x20%s','speech','Dialogflow\x20is\x20unreachable','dialogflowV2','Enter\x20in\x20DIALOGFLOW\x20V2\x20(%s)\x20block','dialogflowV2_project_id','no\x20project_id\x20configured','no\x20client_email\x20configured','private_key','no\x20private_key\x20configured','no\x20anguage\x20configured','Trying\x20DialogflowV2:\x20%s','providerResponse','DialogflowV2\x20Result\x20%s','DialogflowV2\x20is\x20unreachable','sesteknda','Enter\x20in\x20SESTEKNDA\x20(%s)\x20block','ndauth_url','no\x20ndauth\x20url\x20configured','username','no\x20password\x20configured','ndassistant_url','Trying\x20SestekNDA:\x20%s','audiofile','streamFile','unlink','.wav','Enter\x20in\x20END\x20(%s)\x20block','end','ext_dial','Enter\x20in\x20EXTERNAL\x20DIAL\x20(%s)\x20block','trunk_id','no\x20trunk\x20selected','no\x20trunk\x20found','trunk_name','SIP/%s/%s','finally','getdigits','Enter\x20in\x20GETDIGITS\x20(%s)\x20block','no\x20file\x20audio\x20selected','file_id','no\x20file\x20audio\x20found','getData','response','maxdigit','test','mindigit','hiddendigitsnum','hiddendigitspos','first','substr','Enter\x20in\x20GETSECRETDIGITS\x20(%s)\x20block','goal','Enter\x20in\x20GOAL\x20(%s)\x20block','goalname','GOAL\x20%s','awspolly','[AGI]\x20Enter\x20in\x20AWSPOLLY\x20(%s)\x20block','no\x20valid\x20credentials\x20configured','aws\x20Polly\x20%s\x20file\x20created','aws\x20Polly\x20is\x20unreachable','awslex','Enter\x20in\x20Amazon\x20Lex\x20(%s)\x20block','no\x20bot\x20name\x20configured','Trying\x20Amazon\x20Lex:\x20%s','Amazon\x20Lex\x20ready\x20for\x20fulfillment','out','Amazon\x20Lex\x20is\x20unreachable','googleasr','Enter\x20in\x20GOOGLEASR\x20(%s)\x20block\x20%s','%s/recordings/%s','generate','beep','NOBEEP','google\x20%s\x20file\x20created','GoogleASR\x20Result\x20%s','tildeasr','Enter\x20in\x20TILDEASR\x20(%s)\x20block','no\x20appid\x20configured','no\x20appsecret\x20configured','wav','intKey','tilde\x20%s\x20file\x20created','TILDE_ASR_%s','TildeASR\x20Result\x20%s','gotoc','Enter\x20in\x20GOTO\x20(%s)\x20block','priority','Enter\x20in\x20GOTOIF\x20(%s)\x20block','condition','no\x20condition\x20configured','true','false','EVAL\x20CONDITION\x20%s\x20%s','gotoiftime','Enter\x20in\x20GOTOIFTIME\x20(%s)\x20block','interval_id','no\x20interval\x20configured','no\x20intervals\x20found','IFTIME\x20%s\x20%s','hangup','Enter\x20in\x20HANGUP\x20(%s)\x20block','ispeechasr','Enter\x20in\x20ISPEECHASR\x20(%s)\x20block','recordFile','ispeech\x20%s\x20file\x20created','ISPEECH_ASR_%s','ispeechtts','Enter\x20in\x20ISPEECHTTS\x20(%s)\x20block','Trying\x20ispeech\x20TTS\x20%s','login','Enter\x20in\x20LOGIN\x20(%s)\x20block','FIND\x20AGENT\x20%s\x20BY\x20%s','findBy','AGENT\x20%s\x20FOUND\x20BY','failure','logout','Enter\x20in\x20LOGOUT\x20(%s)\x20block','no\x20find\x20by\x20configured','success','AGENT\x20%s\x20NOT\x20FOUND\x20BY','Enter\x20in\x20MATH\x20(%s)\x20block','no\x20operation\x20configured','math\x20%s','operation','%s[%s]','variable\x20%s[key]\x20set','Enter\x20in\x20MENU\x20(%s)\x20block','digit','isEmpty','output','Enter\x20in\x20PAUSE\x20(%s)\x20block','pause_id','Enter\x20in\x20PLAYBACK\x20(%s)\x20block','PLAYBACK','queue','Enter\x20in\x20QUEUE\x20(%s)\x20block','queue_id','no\x20queue\x20found','indexOf','XMCS-QUEUE','toLowerCase','macro','position','QUEUE','record','Enter\x20in\x20RECORD\x20(%s)\x20block','%s/recordings/%s.%s','RECORDING_SAVENAME','escape_digits','Enter\x20in\x20RESTAPI\x20(%s)\x20block','no\x20url\x20configured','restAPI','Response:','inspect','%s_STATUS_CODE','%s_STATUS_MESSAGE','saydigits','Enter\x20in\x20SAYDIGITS\x20(%s)\x20block','sayDigits','digits','saynumber','sayNumber','number','sayphonetic','Enter\x20in\x20SAYPHONETIC\x20(%s)\x20block','sendMail','Enter\x20in\x20SENDMAIL\x20(%s)\x20block','account_id','no\x20mail\x20account\x20configured','getMailAccount','no\x20mail\x20account\x20found','Smtp','user','subject','template_id','smtpOptions','Mail\x20message\x20added\x20to\x20outgoing\x20process','sendFax','SENDFAX\x20block\x20not\x20implemented','sendSMS','no\x20sms\x20account\x20configured','no\x20sms\x20account\x20found','sms_text','sendSMS\x20message','sms_account_id','Trying\x20SendSMS\x20with\x20account\x20%s','createSmsMessage','Sms\x20message\x20added\x20to\x20outgoing\x20process','set','variable_value','start','Enter\x20in\x20START\x20(%s)\x20block','START\x20CALLY\x20SQUARE','yes','Answer','Skipped\x20Answer','Enter\x20in\x20SUBPROJECT\x20(%s)\x20block','getSquareProject','project_id','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','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','Google\x20Cloud\x20TTS\x20is\x20unreachable','tts','Enter\x20in\x20GOOGLETTS\x20(%s)\x20block','Google\x20TTS\x20is\x20unreachable','unpause','agentUnpause','VOICEMAIL','mailbox','Enter\x20in\x20SWITCH\x20(%s)\x20block','no\x20variable\x20selected','join','exports','util','lodash','shelljs','odbc','randomstring','moment','mustache','request-promise','agi','../../config/environment','./scripts','/var/opt/motion2/server/files','rawHeaders','rawBody','menu','getsecretdigits','channel','rpc','mailRpc','prototype','getVariableById','then','catch','getVoiceQueue','name','getSquareOdbc','getSquareOdbcById','dsn','getUser','getUserById','getTrunk','getTrunkById','getSound','getSoundById','getSoundPath','save_name','getMailAccountById','sendMailMessage','getIntervals','getIntervalById','IntervalId','interval','map','Intervals','format','%s/sounds/converted/%s','getQueryOdbc','open','error','Error\x20getting\x20ODBC\x20connection\x20%s','info','ODBC\x20connection\x20successfully','query','Error\x20executing\x20query\x20%s','Query\x20executed\x20correctly\x20%s'];(function(_0x3a718b,_0x3134ae){var _0x576b76=function(_0x237370){while(--_0x237370){_0x3a718b['push'](_0x3a718b['shift']());}};_0x576b76(++_0x3134ae);}(_0xafdd,0x19a));var _0xdafd=function(_0x4aaa95,_0x2b9c98){_0x4aaa95=_0x4aaa95-0x0;var _0x29e0d0=_0xafdd[_0x4aaa95];return _0x29e0d0;};'use strict';var fs=require('fs');var util=require(_0xdafd('0x0'));var _=require(_0xdafd('0x1'));var sh=require(_0xdafd('0x2'));var odbc=require(_0xdafd('0x3'))();var rs=require(_0xdafd('0x4'));var moment=require(_0xdafd('0x5'));var Mustache=require(_0xdafd('0x6'));var rp=require(_0xdafd('0x7'));var logger=require('../../config/logger')(_0xdafd('0x8'));var config=require(_0xdafd('0x9'));var scripts=require(_0xdafd('0xa'));var FILES_PATH=_0xdafd('0xb');var recursiveMapAttributes=[_0xdafd('0xc'),_0xdafd('0xd')];var verticesWithRetry=[_0xdafd('0xe'),'getdigits',_0xdafd('0xf')];var AGIVertices=function(_0x385520,_0x7a279f,_0x48000b){this[_0xdafd('0x10')]=_0x385520;this[_0xdafd('0x11')]=_0x7a279f;this[_0xdafd('0x12')]=_0x48000b;};AGIVertices[_0xdafd('0x13')]['getVariable']=function(_0x42373f,_0x2fec30){this[_0xdafd('0x11')][_0xdafd('0x14')](_0x42373f)[_0xdafd('0x15')](function(_0x3bf1f7){_0x2fec30(null,_0x3bf1f7?_0x3bf1f7['name']:![]);})[_0xdafd('0x16')](function(_0x594f47){_0x2fec30(_0x594f47);});};AGIVertices['prototype'][_0xdafd('0x17')]=function(_0x35d2e5,_0x55b05a){this[_0xdafd('0x11')]['getVoiceQueueById'](_0x35d2e5)['then'](function(_0x1c312d){_0x55b05a(null,_0x1c312d?_0x1c312d[_0xdafd('0x18')]:![]);})[_0xdafd('0x16')](function(_0x267bfc){_0x55b05a(_0x267bfc);});};AGIVertices[_0xdafd('0x13')]['getSquareProject']=function(_0x47240f,_0x1842d3){this[_0xdafd('0x11')]['getSquareProjectById'](_0x47240f)[_0xdafd('0x15')](function(_0x15beca){_0x1842d3(null,_0x15beca?_0x15beca['name']:![]);})['catch'](function(_0x2569b2){_0x1842d3(_0x2569b2);});};AGIVertices['prototype'][_0xdafd('0x19')]=function(_0x341d3d,_0x1e64d3){this[_0xdafd('0x11')][_0xdafd('0x1a')](_0x341d3d)[_0xdafd('0x15')](function(_0x44f825){_0x1e64d3(null,_0x44f825?_0x44f825[_0xdafd('0x1b')]:![]);})[_0xdafd('0x16')](function(_0x10c353){_0x1e64d3(_0x10c353);});};AGIVertices[_0xdafd('0x13')][_0xdafd('0x1c')]=function(_0xa6ddd7,_0xf4a521){this['rpc'][_0xdafd('0x1d')](_0xa6ddd7)['then'](function(_0x31bcd1){_0xf4a521(null,_0x31bcd1?_0x31bcd1['name']:![]);})[_0xdafd('0x16')](function(_0x35ef78){_0xf4a521(_0x35ef78);});};AGIVertices[_0xdafd('0x13')][_0xdafd('0x1e')]=function(_0xfc36d7,_0x31cf35){this[_0xdafd('0x11')][_0xdafd('0x1f')](_0xfc36d7)[_0xdafd('0x15')](function(_0x5cd11d){_0x31cf35(null,_0x5cd11d?_0x5cd11d[_0xdafd('0x18')]:![]);})[_0xdafd('0x16')](function(_0x18554c){_0x31cf35(_0x18554c);});};AGIVertices[_0xdafd('0x13')][_0xdafd('0x20')]=function(_0x25f277,_0x383845){var _0x29037e=this;this[_0xdafd('0x11')][_0xdafd('0x21')](_0x25f277)['then'](function(_0x243182){_0x383845(null,_0x243182?_0x29037e[_0xdafd('0x22')](_0x243182[_0xdafd('0x23')]):![]);})[_0xdafd('0x16')](function(_0x21edb6){_0x383845(_0x21edb6);});};AGIVertices[_0xdafd('0x13')]['getMailAccount']=function(_0x549bf2,_0x512562){this[_0xdafd('0x11')][_0xdafd('0x24')](_0x549bf2)['then'](function(_0x4f6cb1){_0x512562(null,_0x4f6cb1?_0x4f6cb1:![]);})[_0xdafd('0x16')](function(_0x3e7b4d){_0x512562(_0x3e7b4d);});};AGIVertices[_0xdafd('0x13')][_0xdafd('0x25')]=function(_0x2339c3,_0xa8b2ac,_0x3e1287){this['mailRpc'][_0xdafd('0x25')](_0x2339c3,_0xa8b2ac)[_0xdafd('0x15')](function(){_0x3e1287(null);})[_0xdafd('0x16')](function(_0x500504){_0x3e1287(_0x500504);});};AGIVertices[_0xdafd('0x13')][_0xdafd('0x26')]=function(_0x5e0995,_0x5e785a){this[_0xdafd('0x11')][_0xdafd('0x27')](_0x5e0995)['then'](function(_0x41cf77){if(_0x41cf77){if(_0x41cf77[_0xdafd('0x28')]){_0x5e785a(null,[_0x41cf77[_0xdafd('0x29')]]);}else{_0x5e785a(null,_[_0xdafd('0x2a')](_0x41cf77[_0xdafd('0x2b')],_0xdafd('0x29')));}}else{_0x5e785a(null,![]);}})[_0xdafd('0x16')](function(_0x5dc9f2){_0x5e785a(_0x5dc9f2);});};AGIVertices[_0xdafd('0x13')][_0xdafd('0x22')]=function(_0x2a711d){return util[_0xdafd('0x2c')](_0xdafd('0x2d'),FILES_PATH,_0x2a711d);};AGIVertices['prototype'][_0xdafd('0x2e')]=function(_0x21d724,_0x501470,_0x3dbdb1){odbc[_0xdafd('0x2f')](_0x21d724,function(_0x360b94){if(_0x360b94){logger[_0xdafd('0x30')](_0xdafd('0x31'),_0x360b94);_0x3dbdb1(_0x360b94);}else{logger[_0xdafd('0x32')](_0xdafd('0x33'));odbc[_0xdafd('0x34')](_0x501470,function(_0x19c501,_0x436201){if(_0x19c501){logger[_0xdafd('0x32')](_0xdafd('0x35'),_0x501470);_0x3dbdb1(_0x19c501);}else{logger[_0xdafd('0x32')](_0xdafd('0x36'),_0x501470);odbc[_0xdafd('0x37')](function(_0x401964){if(_0x401964){logger[_0xdafd('0x30')](_0xdafd('0x38'),_0x401964);}_0x3dbdb1(null,_0x436201);});}});}});};AGIVertices[_0xdafd('0x13')][_0xdafd('0x39')]=function(_0x3f25c2,_0x2605d2){this[_0xdafd('0x11')][_0xdafd('0x3a')](_0x3f25c2)[_0xdafd('0x15')](function(_0x21d43d){_0x2605d2(null,_0x21d43d?_0x21d43d:![]);})['catch'](function(_0x5e68a7){_0x2605d2(_0x5e68a7);});};AGIVertices[_0xdafd('0x13')]['createSmsMessage']=function(_0x12d1ab,_0xde0f32){this['rpc']['createSmsMessage'](_0x12d1ab)[_0xdafd('0x15')](function(_0x3382d3){_0xde0f32(null,_0x3382d3);})[_0xdafd('0x16')](function(_0x1b0e3a){_0xde0f32(_0x1b0e3a);});};AGIVertices[_0xdafd('0x13')][_0xdafd('0x3b')]=function(_0x3a3a14,_0x2417f8,_0x11446c){this['rpc']['createSquareDetailsReport']({'uniqueid':this[_0xdafd('0x10')][_0xdafd('0x3c')],'node':_0x3a3a14[_0xdafd('0x3d')],'application':_0x3a3a14[_0xdafd('0x3e')],'data':_0x2417f8||null,'project_name':this[_0xdafd('0x10')][_0xdafd('0x3f')],'callerid':this[_0xdafd('0x10')][_0xdafd('0x40')]})[_0xdafd('0x15')](function(_0x4694f1){if(_0x11446c){_0x11446c(null,_0x4694f1);}})[_0xdafd('0x16')](function(_0x3a9505){if(_0x11446c){_0x11446c(_0x3a9505);}});};AGIVertices[_0xdafd('0x13')]['createSquareRecording']=function(_0x43c44a,_0x536227,_0x57aea9,_0x4d30c3){this[_0xdafd('0x11')][_0xdafd('0x41')]({'uniqueid':this[_0xdafd('0x10')][_0xdafd('0x3c')],'callerid':this[_0xdafd('0x10')][_0xdafd('0x40')],'calleridname':this['channel'][_0xdafd('0x42')],'context':this[_0xdafd('0x10')][_0xdafd('0x43')],'extension':this[_0xdafd('0x10')][_0xdafd('0x44')],'priority':this['channel']['priority'],'accountcode':this[_0xdafd('0x10')][_0xdafd('0x45')],'dnid':this[_0xdafd('0x10')][_0xdafd('0x46')],'projectName':this[_0xdafd('0x10')][_0xdafd('0x3f')],'saveName':_0x536227,'filename':_0x43c44a[_0xdafd('0x47')]||_0x536227,'savePath':_0x57aea9})[_0xdafd('0x15')](function(_0x2ae4cd){_0x4d30c3(null,_0x2ae4cd);})['catch'](function(_0x6f2f39){_0x4d30c3(_0x6f2f39);});};AGIVertices[_0xdafd('0x13')][_0xdafd('0x48')]=function(_0x4555f1,_0x4f204a,_0xf8fcb8,_0x343ef5,_0x254824){this[_0xdafd('0x11')][_0xdafd('0x48')]({'uniqueid':this['channel']['uniqueid'],'body':_0x4555f1,'direction':_0x4f204a,'providerName':_0xf8fcb8,'providerResponse':_0x343ef5})[_0xdafd('0x15')](function(_0x261dc1){if(_0x254824){_0x254824(null,_0x261dc1);}})['catch'](function(_0x5334c3){if(_0x254824){_0x254824(_0x5334c3);}});};AGIVertices[_0xdafd('0x13')][_0xdafd('0x49')]=function(_0x4b138b,_0x2dde06){this[_0xdafd('0x11')][_0xdafd('0x49')]({'firstName':_['isEmpty'](_0x4b138b['name'])||_[_0xdafd('0x4a')](_0x4b138b[_0xdafd('0x18')])?'callback_'+Math[_0xdafd('0x4b')]():_0x4b138b['name'],'lastName':_['isEmpty'](_0x4b138b[_0xdafd('0x4c')])||_[_0xdafd('0x4a')](_0x4b138b[_0xdafd('0x4c')])?null:_0x4b138b[_0xdafd('0x4c')],'phone':_0x4b138b[_0xdafd('0x4d')],'ListId':_0x4b138b[_0xdafd('0x4e')],'scheduledat':_0x4b138b[_0xdafd('0x4f')],'callbackUniqueid':this[_0xdafd('0x10')]['uniqueid'],'tags':_0xdafd('0x50'),'description':_0xdafd('0x51')+_0x4b138b['scheduledAt'][_0xdafd('0x52')](),'priority':_0x4b138b[_0xdafd('0x53')]})[_0xdafd('0x15')](function(_0x126529){_0x2dde06(null,_0x126529);})[_0xdafd('0x16')](function(_0x556f7e){_0x2dde06(_0x556f7e);});};AGIVertices[_0xdafd('0x13')][_0xdafd('0x54')]=function(_0x32340c,_0x3f480c){this[_0xdafd('0x11')]['getPauseById'](_0x32340c)[_0xdafd('0x15')](function(_0x810d30){_0x3f480c(null,_0x810d30?_0x810d30['name']:![]);})['catch'](function(_0x219a25){_0x3f480c(_0x219a25);});};AGIVertices['prototype'][_0xdafd('0x55')]=function(_0x4a8ca1,_0x47130c,_0x12c412){var _0x403a3b={'role':'agent'};_0x403a3b[_0x4a8ca1]=this[_0xdafd('0x10')]['callerid'];this[_0xdafd('0x11')][_0xdafd('0x55')](_0x403a3b,_0x47130c,this['channel'][_0xdafd('0x3c')])[_0xdafd('0x15')](function(_0x2846aa){_0x12c412(null,_[_0xdafd('0x4a')](_0x2846aa)?![]:!![]);})[_0xdafd('0x16')](function(_0x4a651e){logger[_0xdafd('0x30')](_0x4a651e);_0x12c412(null,![]);});};AGIVertices[_0xdafd('0x13')]['agentUnpause']=function(_0x316699,_0x46b3fb){var _0x1f5cd2={'role':_0xdafd('0x56')};_0x1f5cd2[_0x316699]=this[_0xdafd('0x10')]['callerid'];this[_0xdafd('0x11')]['agentUnpause'](_0x1f5cd2)['then'](function(_0x2bac93){_0x46b3fb(null,_['isNil'](_0x2bac93)?![]:!![]);})[_0xdafd('0x16')](function(_0x221822){logger[_0xdafd('0x30')](_0x221822);_0x46b3fb(null,![]);});};AGIVertices[_0xdafd('0x13')]['agentLogout']=function(_0x2a9785,_0x40f234){var _0x3f080b={'role':_0xdafd('0x56')};_0x3f080b[_0x2a9785]=this[_0xdafd('0x10')][_0xdafd('0x40')];this[_0xdafd('0x11')][_0xdafd('0x57')](_0x3f080b)[_0xdafd('0x15')](function(_0xbd4ab5){_0x40f234(null,_[_0xdafd('0x4a')](_0xbd4ab5)?![]:!![]);})[_0xdafd('0x16')](function(_0x24a8f2){logger[_0xdafd('0x30')](_0x24a8f2);_0x40f234(null,![]);});};AGIVertices[_0xdafd('0x13')][_0xdafd('0x58')]=function(_0x190930,_0x54267d){var _0x30cef1={'role':'agent'};_0x30cef1[_0x190930]=this[_0xdafd('0x10')]['callerid'];var _0x378243=_0x190930!=_0xdafd('0x59')?util['format']('%s/%s@from-sip/n',_0xdafd('0x5a'),this[_0xdafd('0x10')][_0xdafd('0x40')]):undefined;this['rpc']['agentLogin'](_0x30cef1,_0x378243)['then'](function(_0xfe8337){_0x54267d(null,_['isNil'](_0xfe8337)?![]:!![]);})[_0xdafd('0x16')](function(_0x5ee392){logger[_0xdafd('0x30')](_0x5ee392);_0x54267d(null,![]);});};AGIVertices[_0xdafd('0x13')][_0xdafd('0x5b')]=function(_0x27e2c9,_0x3f64fe){sh['exec'](_['trim'](_0x27e2c9),function(_0x17b2a9,_0x58b353){var _0x26d218=_0x58b353[_0xdafd('0x5c')](/(\r\n|\n|\r)/gm,'');_0x3f64fe(null,_0x26d218);});};AGIVertices['prototype'][_0xdafd('0x5d')]=function(_0x397a4e,_0x4bfc18){scripts[_0xdafd('0x5d')](_0x397a4e[_0xdafd('0x5e')],_0x397a4e[_0xdafd('0x5f')]||_0xdafd('0x60'),_0x397a4e[_0xdafd('0x60')],_0x397a4e['languageCode']||_0xdafd('0x61'),_0x397a4e[_0xdafd('0x62')]||'MALE',_0x397a4e[_0xdafd('0x63')]||_0xdafd('0x64'))['then'](function(_0x28b09a){_0x4bfc18(null,_0x28b09a);})[_0xdafd('0x16')](function(_0x56adcd){_0x4bfc18(_0x56adcd);});};AGIVertices[_0xdafd('0x13')][_0xdafd('0x65')]=function(_0x1e47bf,_0x547571){scripts[_0xdafd('0x65')](_0x1e47bf[_0xdafd('0x60')],_0x1e47bf[_0xdafd('0x66')]||'en',0x1)[_0xdafd('0x15')](function(_0x4ad46f){_0x547571(null,_0x4ad46f);})['catch'](function(_0x42138e){_0x547571(_0x42138e);});};AGIVertices[_0xdafd('0x13')]['restAPI']=function(_0x3bbf21,_0x3d3862){var _0x6f3fec={'uri':_0x3bbf21[_0xdafd('0x67')],'method':_0x3bbf21[_0xdafd('0x68')],'json':!![],'resolveWithFullResponse':!![],'strictSSL':![],'timeout':typeof parseInt(_0x3bbf21[_0xdafd('0x69')])==='number'&&parseInt(_0x3bbf21[_0xdafd('0x69')])>=0x1?parseInt(_0x3bbf21[_0xdafd('0x69')])*0x3e8:0x5*0x3e8};if(_['includes']([_0xdafd('0x6a'),_0xdafd('0x6b')],_0x6f3fec[_0xdafd('0x68')][_0xdafd('0x6c')]())){try{_0x6f3fec[_0xdafd('0x6d')]=_0x3bbf21[_0xdafd('0xd')]?JSON[_0xdafd('0x6e')](_0x3bbf21[_0xdafd('0xd')]):{};}catch(_0x28f9b3){logger[_0xdafd('0x30')](_0xdafd('0x6f'),_0x28f9b3);}}try{_0x6f3fec['headers']=_0x3bbf21[_0xdafd('0xc')]?JSON[_0xdafd('0x6e')](_0x3bbf21[_0xdafd('0xc')]):{};}catch(_0x42da9f){logger[_0xdafd('0x30')](_0xdafd('0x70'),_0x42da9f);}if(_0x3bbf21[_0xdafd('0x71')]){try{var _0x207098=require(_0x3bbf21[_0xdafd('0x71')])[_0xdafd('0x72')](this,_0x6f3fec);_0x6f3fec[_0xdafd('0x73')]=Mustache['render'](_0x3bbf21[_0xdafd('0x67')],_0x207098,{},['$$','$$']);if(_0x6f3fec[_0xdafd('0x74')]){_0x6f3fec['headers']=JSON[_0xdafd('0x6e')](Mustache[_0xdafd('0x75')](JSON[_0xdafd('0x76')](_0x6f3fec['headers']),_0x207098,{},['$$','$$']));}if(_0x6f3fec[_0xdafd('0x6d')]){_0x6f3fec['body']=JSON[_0xdafd('0x6e')](Mustache[_0xdafd('0x75')](JSON['stringify'](_0x6f3fec[_0xdafd('0x6d')]),_0x207098,{},['$$','$$']));}}catch(_0x1f8091){logger[_0xdafd('0x30')](_0xdafd('0x77'),_0x1f8091);}}rp(_0x6f3fec)[_0xdafd('0x15')](function(_0x2d8032){var _0x3328b1={'statusCode':_0x2d8032[_0xdafd('0x78')]||0xc8,'statusMessage':_0x2d8032[_0xdafd('0x79')]||'OK','headers':_0x2d8032[_0xdafd('0x74')]||{},'body':_0x2d8032[_0xdafd('0x6d')]||{}};_0x3d3862(null,_0x3328b1);})[_0xdafd('0x16')](function(_0x4f6984){var _0x5d8327={'statusCode':_0x4f6984[_0xdafd('0x78')]||0x1f4,'statusMessage':_0x4f6984[_0xdafd('0x7a')]||_0xdafd('0x7b'),'headers':_0x4f6984[_0xdafd('0x7c')][_0xdafd('0x74')]||{},'body':_0x4f6984[_0xdafd('0x7c')][_0xdafd('0x6d')]||{}};_0x3d3862(null,_0x5d8327);});};AGIVertices[_0xdafd('0x13')]['googleDialogflow']=function(_0x705220,_0x368142){scripts[_0xdafd('0x7d')](this[_0xdafd('0x10')]['uniqueid'],_0x705220['key'],_0x705220['text'],_0x705220[_0xdafd('0x7e')]||'en')['then'](function(_0x2f25d5){_0x368142(null,_0x2f25d5);})[_0xdafd('0x16')](function(_0x143221){_0x368142(_0x143221);});};AGIVertices[_0xdafd('0x13')]['googleDialogflowV2']=function(_0xed0633,_0x16172d){scripts[_0xdafd('0x7f')](this[_0xdafd('0x10')][_0xdafd('0x3c')],_0xed0633['dialogflowV2_project_id'],_0xed0633[_0xdafd('0x80')],_0xed0633['private_key'],_0xed0633[_0xdafd('0x60')],_0xed0633[_0xdafd('0x81')]||'en')['then'](function(_0x352f74){_0x16172d(null,_0x352f74);})[_0xdafd('0x16')](function(_0x4d4d66){_0x16172d(_0x4d4d66);});};AGIVertices[_0xdafd('0x13')][_0xdafd('0x82')]=function(_0x1387da,_0x54d7db){scripts[_0xdafd('0x82')](this['channel'],_0x1387da)[_0xdafd('0x15')](function(_0x1d8287){_0x54d7db(null,_0x1d8287);})[_0xdafd('0x16')](function(_0x2d5dd4){_0x54d7db(_0x2d5dd4);});};AGIVertices['prototype']['ispeechTTS']=function(_0x393693,_0x1a6070){scripts[_0xdafd('0x83')](_0x393693[_0xdafd('0x84')],_0x393693[_0xdafd('0x60')],_0x393693[_0xdafd('0x85')]||_0xdafd('0x61'),_0x393693[_0xdafd('0x86')])['then'](function(_0xc3f3af){_0x1a6070(null,_0xc3f3af);})[_0xdafd('0x16')](function(_0x105d18){_0x1a6070(_0x105d18);});};AGIVertices[_0xdafd('0x13')]['ispeechASR']=function(_0x2fd239,_0x342ed1,_0x4e5072){scripts[_0xdafd('0x87')](_0x342ed1,_0x2fd239[_0xdafd('0x84')],_0x2fd239['ispeech_asr_language']||_0xdafd('0x61'),this['isConfigured'](_0x2fd239[_0xdafd('0x88')])?_0x2fd239[_0xdafd('0x88')]:undefined)[_0xdafd('0x15')](function(_0x1ae8d1){_0x4e5072(null,_0x1ae8d1);})['catch'](function(_0x5b5236){_0x4e5072(_0x5b5236);});};AGIVertices[_0xdafd('0x13')][_0xdafd('0x89')]=function(_0x5e16af,_0x258696){scripts[_0xdafd('0x89')](_0x5e16af[_0xdafd('0x8a')],_0x5e16af[_0xdafd('0x8b')],_0x5e16af['aws_polly_region'],_0x5e16af[_0xdafd('0x8c')]||'Amy',_0x5e16af[_0xdafd('0x60')],_0x5e16af[_0xdafd('0x8d')]||_0xdafd('0x60'))['then'](function(_0x3d1d8e){_0x258696(null,_0x3d1d8e);})['catch'](function(_0x186980){_0x258696(_0x186980);});};AGIVertices[_0xdafd('0x13')][_0xdafd('0x8e')]=function(_0x3fa782,_0x1dfb3e){scripts[_0xdafd('0x8e')](this[_0xdafd('0x10')]['uniqueid'],_0x3fa782[_0xdafd('0x8a')],_0x3fa782[_0xdafd('0x8b')],_0x3fa782[_0xdafd('0x8f')],_0x3fa782['text'],_0x3fa782[_0xdafd('0x90')])['then'](function(_0x82945c){_0x1dfb3e(null,_0x82945c);})[_0xdafd('0x16')](function(_0x2bceca){_0x1dfb3e(_0x2bceca);});};AGIVertices[_0xdafd('0x13')]['googleASR']=function(_0x470e0b,_0x2ab87a,_0x5ffaaf){scripts[_0xdafd('0x91')](_0x2ab87a,_0x470e0b[_0xdafd('0x84')],_0x470e0b['google_asr_language']||_0xdafd('0x61'))['then'](function(_0x1268f2){_0x5ffaaf(null,_0x1268f2);})[_0xdafd('0x16')](function(_0x5e404e){_0x5ffaaf(_0x5e404e);});};AGIVertices['prototype'][_0xdafd('0x92')]=function(_0x214ea6,_0x519d21,_0x440a3f){scripts['tildeASR'](_0x519d21,_0x214ea6[_0xdafd('0x93')],_0x214ea6[_0xdafd('0x94')],_0x214ea6[_0xdafd('0x73')])[_0xdafd('0x15')](function(_0x1175a8){_0x440a3f(null,_0x1175a8);})[_0xdafd('0x16')](function(_0x143526){_0x440a3f(_0x143526);});};AGIVertices[_0xdafd('0x13')][_0xdafd('0x95')]=function(_0x227a8e){var _0x42fd4a=_[_0xdafd('0x96')](verticesWithRetry,_0x227a8e[_0xdafd('0x3e')])?_0x227a8e:_['clone'](_0x227a8e);for(var _0x2eb72e in _0x42fd4a){if(_0x42fd4a[_0xdafd('0x97')](_0x2eb72e)){if(_0x42fd4a[_0x2eb72e]&&_[_0xdafd('0x98')](_0x42fd4a[_0x2eb72e])){if(_['includes'](recursiveMapAttributes,_0x2eb72e)){_0x42fd4a[_0x2eb72e]=this[_0xdafd('0x99')](_0x42fd4a[_0x2eb72e]);}else{_0x42fd4a[_0x2eb72e]=this['replaceAllVariables'](_0x42fd4a[_0x2eb72e]);}}}}return _0x42fd4a;};AGIVertices[_0xdafd('0x13')][_0xdafd('0x9a')]=function(_0x677036){for(var _0x418fcc in _0x677036){if(_0x677036['hasOwnProperty'](_0x418fcc)){if(_[_0xdafd('0x9b')](_0x677036[_0x418fcc])){this[_0xdafd('0x9a')](_0x677036[_0x418fcc]);}else if(_[_0xdafd('0x9c')](_0x677036[_0x418fcc])){for(var _0x1fb5c3=0x0;_0x1fb5c3<_0x677036[_0x418fcc][_0xdafd('0x9d')];_0x1fb5c3++){this[_0xdafd('0x9a')](_0x677036[_0x418fcc][_0x1fb5c3]);}}else if(_[_0xdafd('0x98')](_0x677036[_0x418fcc])){_0x677036[_0x418fcc]=this[_0xdafd('0x9e')](_0x677036[_0x418fcc]);}}}};AGIVertices[_0xdafd('0x13')]['saveRestApiResult']=function(_0xd7384e,_0x47e4a2){for(var _0x5cbc6f in _0xd7384e){if(_0xd7384e[_0xdafd('0x97')](_0x5cbc6f)){if(_[_0xdafd('0x9b')](_0xd7384e[_0x5cbc6f])){if(!_['isEmpty'](_0xd7384e[_0x5cbc6f])){this[_0xdafd('0x9f')](_0xd7384e[_0x5cbc6f],util[_0xdafd('0x2c')](_0xdafd('0xa0'),_0x47e4a2,_0x5cbc6f));}}else if(_[_0xdafd('0x9c')](_0xd7384e[_0x5cbc6f])){for(var _0x5a49ab=0x0;_0x5a49ab<_0xd7384e[_0x5cbc6f][_0xdafd('0x9d')];_0x5a49ab++){this[_0xdafd('0x9f')](_0xd7384e[_0x5cbc6f][_0x5a49ab],util[_0xdafd('0x2c')](_0xdafd('0xa0'),_0x47e4a2,_0x5cbc6f+'['+_0x5a49ab+']'));}}else{if(!_[_0xdafd('0x4a')](_0xd7384e[_0x5cbc6f])){this[_0xdafd('0x10')][_0xdafd('0xa1')](util[_0xdafd('0x2c')](_0xdafd('0xa0'),_0x47e4a2,_0x5cbc6f),_0xd7384e[_0x5cbc6f]);}}}}};AGIVertices[_0xdafd('0x13')][_0xdafd('0x99')]=function(_0x52d5fc){try{var _0x5bf65a=JSON[_0xdafd('0x6e')](_0x52d5fc);this[_0xdafd('0x9a')](_0x5bf65a);return JSON[_0xdafd('0x76')](_0x5bf65a);}catch(_0x4d862a){return this['replaceAllVariables'](_0x52d5fc);}};AGIVertices[_0xdafd('0x13')]['replaceAllVariables']=function(_0x3a34d4){var _0x382d68=_0x3a34d4[_0xdafd('0xa2')]('{');for(var _0x48acb9=0x1;_0x48acb9<_0x382d68[_0xdafd('0x9d')];_0x48acb9+=0x1){var _0x13d7e9=_0x382d68[_0x48acb9][_0xdafd('0xa2')]('}');if(_0x13d7e9['length']>0x1){_0x3a34d4=_0x3a34d4[_0xdafd('0xa3')]('{'+_0x13d7e9[0x0]+'}',this[_0xdafd('0x10')][_0xdafd('0xa4')](_0x13d7e9[0x0])[_0xdafd('0xa5')]||_0x13d7e9[0x0]);}}if(_0x382d68[_0xdafd('0x9d')]===0x1){return _0x3a34d4[_0xdafd('0x52')]();}return this[_0xdafd('0x9e')](_0x3a34d4);};AGIVertices['prototype'][_0xdafd('0xa6')]=function(_0x44d6f4,_0x54ae4d){var _0x2f7717=this[_0xdafd('0x10')][_0xdafd('0xa4')](_0x44d6f4);if(_0x2f7717[_0xdafd('0xa7')]===-0x1){return _0x2f7717;}logger['info'](util[_0xdafd('0x2c')](_0xdafd('0xa8'),_0x54ae4d,_0x2f7717[_0xdafd('0xa5')]));return this['channel']['setVariable'](_0x54ae4d,_0x2f7717['extra']);};AGIVertices[_0xdafd('0x13')][_0xdafd('0xa9')]=function(_0x440ba8){return _0x440ba8&&_0x440ba8!=='0'&&_0x440ba8!=='-1'&&_0x440ba8!=='';};AGIVertices[_0xdafd('0x13')][_0xdafd('0xaa')]=function(_0x3b115f){this[_0xdafd('0x3b')]['sync'](this,_0x3b115f,'-');_0x3b115f[_0xdafd('0xab')]=_0x3b115f['maxRetry'];return{'code':0xc8,'result':'-'};};AGIVertices[_0xdafd('0x13')][_0xdafd('0xac')]=function(_0x208eaf){logger[_0xdafd('0x32')](util['format'](_0xdafd('0xad'),_0x208eaf['label']));if(!this[_0xdafd('0xa9')](_0x208eaf['text'])){return this['channel'][_0xdafd('0xae')](_0xdafd('0xaf'));}var _0x4b988a='\x22'+_0x208eaf[_0xdafd('0x60')]+'\x22';if(this['isConfigured'](_0x208eaf[_0xdafd('0x7c')])){_0x4b988a+=','+_0x208eaf[_0xdafd('0x7c')];}var _0x1f65b5=this[_0xdafd('0x10')][_0xdafd('0xb0')](_0xdafd('0xb1'),_0x4b988a);if(_0x1f65b5[_0xdafd('0xa7')]===-0x1){return _0x1f65b5;}return this[_0xdafd('0x10')]['noop'](util[_0xdafd('0x2c')](_0xdafd('0xb2'),_0x4b988a));};AGIVertices['prototype'][_0xdafd('0xb3')]=function(_0x2fecf0){logger[_0xdafd('0x32')](util[_0xdafd('0x2c')](_0xdafd('0xb4'),_0x2fecf0[_0xdafd('0x3d')]));if(!this[_0xdafd('0xa9')](_0x2fecf0[_0xdafd('0xb5')])){return this[_0xdafd('0x10')][_0xdafd('0xae')](_0xdafd('0xb6'));}var _0x54323b=_0x2fecf0[_0xdafd('0xb5')];if(this[_0xdafd('0xa9')](_0x2fecf0['options'])){_0x54323b+=','+_0x2fecf0[_0xdafd('0x7c')];}var _0x1e1c28=this[_0xdafd('0x10')]['exec'](_0xdafd('0xb7'),_0x54323b);if(_0x1e1c28[_0xdafd('0xa7')]===-0x1){return _0x1e1c28;}var _0x5bb826=this[_0xdafd('0xa6')](_0xdafd('0xb8'),_0xdafd('0xb9'));if(_0x5bb826['result']===-0x1){return _0x5bb826;}var _0x47f86f=this[_0xdafd('0xa6')]('RECOG_INPUT()','MRCP_RECOG_TRANSCRIPT');if(_0x47f86f[_0xdafd('0xa7')]===-0x1){return _0x47f86f;}var _0x22636d=this['getAndSetVariable'](_0xdafd('0xba'),_0xdafd('0xbb'));if(_0x22636d['result']===-0x1){return _0x22636d;}return this[_0xdafd('0x10')][_0xdafd('0xae')](util[_0xdafd('0x2c')]('Executed\x20command\x20MRCPRecog\x20%s',_0x54323b));};AGIVertices[_0xdafd('0x13')][_0xdafd('0x8')]=function(_0x5795db){logger[_0xdafd('0x32')](util[_0xdafd('0x2c')](_0xdafd('0xbc'),_0x5795db[_0xdafd('0x3d')]));return this[_0xdafd('0x10')]['agi']([_0x5795db[_0xdafd('0xbd')],_0x5795db[_0xdafd('0xbe')]]);};AGIVertices[_0xdafd('0x13')][_0xdafd('0xbf')]=function(_0x5b7512){logger[_0xdafd('0x32')](util[_0xdafd('0x2c')]('Enter\x20in\x20ANSWER\x20(%s)\x20block',_0x5b7512['label']));if(this[_0xdafd('0xa9')](_0x5b7512[_0xdafd('0x69')])){logger['info'](util[_0xdafd('0x2c')](_0xdafd('0xc0'),_0x5b7512['timeout']));var _0x40fe4a=this['channel'][_0xdafd('0xc1')](_0x5b7512[_0xdafd('0x69')]);if(_0x40fe4a[_0xdafd('0xa7')]===-0x1){return _0x40fe4a;}}return this[_0xdafd('0x10')]['answer']();};AGIVertices['prototype'][_0xdafd('0x50')]=function(_0x49397e){logger[_0xdafd('0x32')](util[_0xdafd('0x2c')]('Enter\x20in\x20CALLBACK\x20(%s)\x20block',_0x49397e['label']));if(!this['isConfigured'](_0x49397e[_0xdafd('0x4e')])){return this[_0xdafd('0x10')][_0xdafd('0x30')](_0x49397e,'no\x20list\x20selected');}_0x49397e[_0xdafd('0x4f')]=moment();if(this[_0xdafd('0xa9')](_0x49397e[_0xdafd('0xc2')])){_0x49397e[_0xdafd('0x4f')]=moment()['add'](_0x49397e['delay'],'minutes');}if(!this[_0xdafd('0xa9')](_0x49397e[_0xdafd('0x53')])){_0x49397e[_0xdafd('0x53')]=0x2;}this[_0xdafd('0x49')][_0xdafd('0x72')](this,_0x49397e);return this[_0xdafd('0x10')]['noop'](util['format'](_0xdafd('0xc3'),_0x49397e[_0xdafd('0x4d')],_0x49397e[_0xdafd('0x4e')],_0x49397e['scheduledAt']));};AGIVertices['prototype'][_0xdafd('0xc4')]=function(_0x4eaa42){logger[_0xdafd('0x32')](util[_0xdafd('0x2c')]('Enter\x20in\x20CUSTOM\x20APP\x20(%s)\x20block',_0x4eaa42[_0xdafd('0x3d')]));var _0x262b98=this[_0xdafd('0x10')][_0xdafd('0xb0')](_0x4eaa42[_0xdafd('0xc5')],_0x4eaa42['options']);if(_0x262b98[_0xdafd('0xa7')]===-0x1){return _0x262b98;}return this['channel'][_0xdafd('0xae')](util[_0xdafd('0x2c')](_0xdafd('0xc6'),_0x4eaa42[_0xdafd('0xc5')],_0x4eaa42['options']));};AGIVertices[_0xdafd('0x13')][_0xdafd('0xc7')]=function(_0x34ac6b){logger['info'](util[_0xdafd('0x2c')]('Enter\x20in\x20LUMENVOXTTS\x20(%s)\x20block',_0x34ac6b['label']));if(!this[_0xdafd('0xa9')](_0x34ac6b['text'])){return this[_0xdafd('0x10')][_0xdafd('0xae')](_0xdafd('0xaf'));}var _0x993caa='\x22'+_0x34ac6b[_0xdafd('0x60')]+'\x22';if(this[_0xdafd('0xa9')](_0x34ac6b['options'])){_0x993caa+=','+_0x34ac6b[_0xdafd('0x7c')];}var _0x38e41a=this[_0xdafd('0x10')][_0xdafd('0xb0')](_0xdafd('0xb1'),_0x993caa);if(_0x38e41a[_0xdafd('0xa7')]===-0x1){return _0x38e41a;}return this[_0xdafd('0x10')]['noop'](util[_0xdafd('0x2c')]('Executed\x20command\x20MRCPSynth\x20%s',_0x993caa));};AGIVertices[_0xdafd('0x13')][_0xdafd('0xc8')]=function(_0x177f08){logger[_0xdafd('0x32')](util['format'](_0xdafd('0xc9'),_0x177f08['label']));if(!this[_0xdafd('0xa9')](_0x177f08[_0xdafd('0x60')])){return this[_0xdafd('0x10')][_0xdafd('0xae')](_0xdafd('0xaf'));}var _0x341ab1='\x22'+_0x177f08[_0xdafd('0x60')]+'\x22';if(this[_0xdafd('0xa9')](_0x177f08['options'])){_0x341ab1+=','+_0x177f08[_0xdafd('0x7c')];}var _0x57517c=this[_0xdafd('0x10')][_0xdafd('0xb0')](_0xdafd('0xb1'),_0x341ab1);if(_0x57517c[_0xdafd('0xa7')]===-0x1){return _0x57517c;}return this[_0xdafd('0x10')][_0xdafd('0xae')](util[_0xdafd('0x2c')](_0xdafd('0xb2'),_0x341ab1));};AGIVertices[_0xdafd('0x13')][_0xdafd('0xca')]=function(_0x5b823e){logger[_0xdafd('0x32')](util['format']('Enter\x20in\x20LUMENVOXASR\x20(%s)\x20block',_0x5b823e['label']));if(!this['isConfigured'](_0x5b823e[_0xdafd('0xb5')])){return this[_0xdafd('0x10')]['noop'](_0xdafd('0xb6'));}var _0x1449ab=_0x5b823e[_0xdafd('0xb5')];if(this[_0xdafd('0xa9')](_0x5b823e[_0xdafd('0x7c')])){_0x1449ab+=','+_0x5b823e['options'];}var _0x64e1c7=this[_0xdafd('0x10')]['exec'](_0xdafd('0xb7'),_0x1449ab);if(_0x64e1c7['result']===-0x1){return _0x64e1c7;}var _0x8d3e3d=this[_0xdafd('0xa6')](_0xdafd('0xb8'),_0xdafd('0xcb'));if(_0x8d3e3d[_0xdafd('0xa7')]===-0x1){return _0x8d3e3d;}var _0x212ba8=this[_0xdafd('0xa6')](_0xdafd('0xcc'),_0xdafd('0xcd'));if(_0x212ba8[_0xdafd('0xa7')]===-0x1){return _0x212ba8;}var _0x424940=this[_0xdafd('0xa6')](_0xdafd('0xba'),'LUMENVOX_ASR_INSTANCE');if(_0x424940[_0xdafd('0xa7')]===-0x1){return _0x424940;}return this[_0xdafd('0x10')][_0xdafd('0xae')](util['format'](_0xdafd('0xce'),_0x1449ab));};AGIVertices[_0xdafd('0x13')][_0xdafd('0xcf')]=function(_0x587633){logger[_0xdafd('0x32')](util[_0xdafd('0x2c')](_0xdafd('0xd0'),_0x587633[_0xdafd('0x3d')]));if(!this[_0xdafd('0xa9')](_0x587633[_0xdafd('0xb5')])){return this[_0xdafd('0x10')][_0xdafd('0xae')](_0xdafd('0xb6'));}var _0x36346e=_0x587633[_0xdafd('0xb5')];if(this['isConfigured'](_0x587633[_0xdafd('0x7c')])){_0x36346e+=','+_0x587633[_0xdafd('0x7c')];}var _0x498a2b=this[_0xdafd('0x10')]['exec'](_0xdafd('0xb7'),_0x36346e);if(_0x498a2b[_0xdafd('0xa7')]===-0x1){return _0x498a2b;}var _0x49965b=this['getAndSetVariable'](_0xdafd('0xb8'),_0xdafd('0xd1'));if(_0x49965b[_0xdafd('0xa7')]===-0x1){return _0x49965b;}var _0x5d19fd=this[_0xdafd('0xa6')](_0xdafd('0xcc'),_0xdafd('0xd2'));if(_0x5d19fd[_0xdafd('0xa7')]===-0x1){return _0x5d19fd;}var _0xc25a42=this[_0xdafd('0xa6')](_0xdafd('0xba'),_0xdafd('0xd3'));if(_0xc25a42[_0xdafd('0xa7')]===-0x1){return _0xc25a42;}return this[_0xdafd('0x10')][_0xdafd('0xae')](util[_0xdafd('0x2c')](_0xdafd('0xce'),_0x36346e));};AGIVertices[_0xdafd('0x13')][_0xdafd('0xd4')]=function(_0xe5f90a){logger['info'](util[_0xdafd('0x2c')](_0xdafd('0xd5'),_0xe5f90a[_0xdafd('0x3d')]));if(!this[_0xdafd('0xa9')](_0xe5f90a[_0xdafd('0xd6')])){return this['channel'][_0xdafd('0x30')](_0xe5f90a,_0xdafd('0xd7'));}var _0x306540=this[_0xdafd('0x19')][_0xdafd('0x72')](this,_0xe5f90a['odbc_id']);if(!_0x306540){return this[_0xdafd('0x10')]['error'](_0xe5f90a,'no\x20odbc\x20database\x20found');}if(!this[_0xdafd('0xa9')](_0xe5f90a[_0xdafd('0x34')])){return this['channel']['error'](_0xe5f90a,_0xdafd('0xd8'));}var _0x1cd2f1=_0xe5f90a[_0xdafd('0x34')][_0xdafd('0x5c')](/(\r\n|\n|\r)/gm,'\x20');this['channel'][_0xdafd('0xae')](util['format'](_0xdafd('0xd9'),_0x1cd2f1));var _0x4ec24b=this[_0xdafd('0x2e')][_0xdafd('0x72')](this,_0x306540,_0x1cd2f1);this['createSquareDetailsReport'][_0xdafd('0x72')](this,_0xe5f90a,_0x1cd2f1);if(!this[_0xdafd('0xa9')](_0xe5f90a[_0xdafd('0xda')])){return this['channel']['noop'](_0xdafd('0xdb'));}var _0xe87b91=this['getVariable'][_0xdafd('0x72')](this,_0xe5f90a[_0xdafd('0xda')]);if(!_0xe87b91){return this[_0xdafd('0x10')]['error'](_0xe5f90a,_0xdafd('0xdc'));}var _0x3cc897=this;_0x4ec24b[_0xdafd('0xdd')](function(_0x41a23e,_0x5322cb){Object['keys'](_0x41a23e)['forEach'](function(_0x37184b){_0x3cc897['channel']['setVariable'](util[_0xdafd('0x2c')](_0xdafd('0xde'),_0xe87b91,_0x5322cb,_0x37184b),_0x41a23e[_0x37184b]);});});this[_0xdafd('0x10')]['setVariable'](util[_0xdafd('0x2c')](_0xdafd('0xdf'),_0xe87b91),_0x4ec24b[_0xdafd('0x9d')]);return this[_0xdafd('0x10')][_0xdafd('0xae')](util['format'](_0xdafd('0xe0'),_0xe87b91));};AGIVertices['prototype'][_0xdafd('0xe1')]=function(_0x367256){logger[_0xdafd('0xe2')](util[_0xdafd('0x2c')]('Enter\x20in\x20DIAL\x20(%s)\x20block',_0x367256[_0xdafd('0x3d')]));if(!this[_0xdafd('0xa9')](_0x367256[_0xdafd('0xe3')])){return this[_0xdafd('0x10')][_0xdafd('0x30')](_0x367256,_0xdafd('0xe4'));}var _0x3d1deb=this[_0xdafd('0x1c')][_0xdafd('0x72')](this,_0x367256[_0xdafd('0xe3')]);if(!_0x3d1deb){return this[_0xdafd('0x10')]['error'](_0x367256,_0xdafd('0xe5'));}var _0x3632d4=this[_0xdafd('0x10')][_0xdafd('0xb0')]('DIAL',[util[_0xdafd('0x2c')](_0xdafd('0xe6'),_0x3d1deb),_0x367256[_0xdafd('0x69')],_0x367256[_0xdafd('0xe7')],_0x367256['url']]);if(_0x3632d4[_0xdafd('0xa7')]===-0x1){return _0x3632d4;}return this['channel']['noop'](util[_0xdafd('0x2c')](_0xdafd('0xe8'),_0xdafd('0xe9')));};AGIVertices[_0xdafd('0x13')][_0xdafd('0xea')]=function(_0x5bbebc){logger['info'](util[_0xdafd('0x2c')](_0xdafd('0xeb'),_0x5bbebc['label']));if(!this[_0xdafd('0xa9')](_0x5bbebc[_0xdafd('0x84')])){return this[_0xdafd('0x10')][_0xdafd('0xae')](_0xdafd('0xec'));}if(!this[_0xdafd('0xa9')](_0x5bbebc[_0xdafd('0x60')])){return this[_0xdafd('0x10')][_0xdafd('0xae')]('no\x20text\x20configured');}this['channel'][_0xdafd('0xed')]=!![];this[_0xdafd('0x3b')](_0x5bbebc);this['createSquareMessage'](_0x5bbebc['text'],'in','','');this[_0xdafd('0x10')][_0xdafd('0xae')](util[_0xdafd('0x2c')](_0xdafd('0xee'),_0x5bbebc[_0xdafd('0x60')]));var _0x1b9a74=this['googleDialogflow'][_0xdafd('0x72')](this,_0x5bbebc);if(_0x1b9a74){for(var _0xa4384 in _0x1b9a74){if(_0x1b9a74['hasOwnProperty'](_0xa4384)){this['channel'][_0xdafd('0xa1')](util[_0xdafd('0x2c')](_0xdafd('0xef'),_0xa4384['toUpperCase']()),_0x1b9a74[_0xa4384]);}}this[_0xdafd('0x48')](_0x1b9a74['speech'],'out',_0xdafd('0xea'),'');return this[_0xdafd('0x10')]['noop'](util[_0xdafd('0x2c')](_0xdafd('0xf0'),_0x1b9a74[_0xdafd('0xf1')]));}return this[_0xdafd('0x10')]['error'](_0x5bbebc,_0xdafd('0xf2'));};AGIVertices[_0xdafd('0x13')][_0xdafd('0xf3')]=function(_0x43e6c5){logger[_0xdafd('0x32')](util[_0xdafd('0x2c')](_0xdafd('0xf4'),_0x43e6c5[_0xdafd('0x3d')]));if(!this['isConfigured'](_0x43e6c5[_0xdafd('0xf5')])){return this[_0xdafd('0x10')][_0xdafd('0xae')](_0xdafd('0xf6'));}if(!this[_0xdafd('0xa9')](_0x43e6c5[_0xdafd('0x80')])){return this[_0xdafd('0x10')][_0xdafd('0xae')](_0xdafd('0xf7'));}if(!this['isConfigured'](_0x43e6c5[_0xdafd('0xf8')])){return this[_0xdafd('0x10')]['noop'](_0xdafd('0xf9'));}if(!this[_0xdafd('0xa9')](_0x43e6c5[_0xdafd('0x81')])){return this[_0xdafd('0x10')]['noop'](_0xdafd('0xfa'));}if(!this[_0xdafd('0xa9')](_0x43e6c5[_0xdafd('0x60')])){return this[_0xdafd('0x10')][_0xdafd('0xae')](_0xdafd('0xaf'));}this[_0xdafd('0x10')][_0xdafd('0xed')]=!![];this[_0xdafd('0x3b')](_0x43e6c5);this[_0xdafd('0x48')](_0x43e6c5[_0xdafd('0x60')],'in','','');this['channel'][_0xdafd('0xae')](util[_0xdafd('0x2c')](_0xdafd('0xfb'),_0x43e6c5['text']));var _0x26107a=this[_0xdafd('0x7f')]['sync'](this,_0x43e6c5);if(_0x26107a){for(var _0x95c234 in _0x26107a){if(_0x26107a['hasOwnProperty'](_0x95c234)){if(_0x95c234!==_0xdafd('0xfc')){this['channel'][_0xdafd('0xa1')](util[_0xdafd('0x2c')](_0xdafd('0xef'),_0x95c234[_0xdafd('0x6c')]()),_0x26107a[_0x95c234]);}}}this['createSquareMessage'](_0x26107a[_0xdafd('0xf1')],'out',_0xdafd('0xf3'),_0x26107a[_0xdafd('0xfc')]);return this['channel'][_0xdafd('0xae')](util[_0xdafd('0x2c')](_0xdafd('0xfd'),_0x26107a[_0xdafd('0xf1')]));}return this[_0xdafd('0x10')][_0xdafd('0x30')](_0x43e6c5,_0xdafd('0xfe'));};AGIVertices[_0xdafd('0x13')][_0xdafd('0xff')]=function(_0x35f0cc){logger[_0xdafd('0x32')](util[_0xdafd('0x2c')](_0xdafd('0x100'),_0x35f0cc[_0xdafd('0x3d')]));if(!this[_0xdafd('0xa9')](_0x35f0cc[_0xdafd('0x101')])){return this[_0xdafd('0x10')][_0xdafd('0xae')](_0xdafd('0x102'));}if(!this[_0xdafd('0xa9')](_0x35f0cc[_0xdafd('0x103')])){return this['channel'][_0xdafd('0xae')]('no\x20username\x20configured');}if(!this['isConfigured'](_0x35f0cc['password'])){return this['channel'][_0xdafd('0xae')](_0xdafd('0x104'));}if(!this[_0xdafd('0xa9')](_0x35f0cc[_0xdafd('0x105')])){return this['channel'][_0xdafd('0xae')](_0xdafd('0xaf'));}this[_0xdafd('0x10')][_0xdafd('0xed')]=!![];this[_0xdafd('0x3b')](_0x35f0cc);this[_0xdafd('0x48')](_0x35f0cc[_0xdafd('0x60')],'in','','');this[_0xdafd('0x10')][_0xdafd('0xae')](util['format'](_0xdafd('0x106'),_0x35f0cc[_0xdafd('0x60')]));var _0x5ef632=this[_0xdafd('0x82')][_0xdafd('0x72')](this,_0x35f0cc);if(_0x5ef632){for(var _0x2a1a05 in _0x5ef632){if(_0x5ef632[_0xdafd('0x97')](_0x2a1a05)){this['channel']['setVariable'](util['format']('SESTEK_NDA_%s',_0x2a1a05['toUpperCase']()),_0x5ef632[_0x2a1a05]);}}this[_0xdafd('0x48')](_0x5ef632[_0xdafd('0xf1')],'out',_0xdafd('0xff'),'');if(_0x5ef632[_0xdafd('0x107')]){this[_0xdafd('0x10')][_0xdafd('0xae')](util['format']('Sestek\x20NDA\x20%s\x20file\x20created',_0x5ef632[_0xdafd('0x107')]));var _0xbe0421=this['channel'][_0xdafd('0x108')](_0x5ef632['audiofile']);try{fs[_0xdafd('0x109')](_0x5ef632[_0xdafd('0x107')]+_0xdafd('0x10a'));}catch(_0x498600){logger[_0xdafd('0x30')](_0x498600);}return _0xbe0421;}else{return this[_0xdafd('0x10')][_0xdafd('0xae')](util['format']('SestekNDA\x20Result\x20%s',_0x5ef632[_0xdafd('0xf1')]));}}return this[_0xdafd('0x10')][_0xdafd('0x30')](_0x35f0cc,'SestekNDA\x20is\x20unreachable');};AGIVertices['prototype']['end']=function(_0x4185b3){logger[_0xdafd('0x32')](util[_0xdafd('0x2c')](_0xdafd('0x10b'),_0x4185b3[_0xdafd('0x3d')]));return this[_0xdafd('0x10')][_0xdafd('0xae')](_0xdafd('0x10c'));};AGIVertices[_0xdafd('0x13')][_0xdafd('0x10d')]=function(_0x3ecaa0){logger[_0xdafd('0x32')](util[_0xdafd('0x2c')](_0xdafd('0x10e'),_0x3ecaa0['label']));var _0x5e4ad6='';if(_0x3ecaa0[_0xdafd('0x10f')]){if(!this[_0xdafd('0xa9')](_0x3ecaa0['trunk_id'])){return this['channel'][_0xdafd('0x30')](_0x3ecaa0,_0xdafd('0x110'));}else{var _0x35db11=parseInt(_0x3ecaa0[_0xdafd('0x10f')],0xa);if(isNaN(_0x35db11)){_0x5e4ad6=_0x3ecaa0[_0xdafd('0x10f')];}else{_0x5e4ad6=this['getTrunk']['sync'](this,_0x3ecaa0[_0xdafd('0x10f')]);if(!_0x5e4ad6){return this[_0xdafd('0x10')][_0xdafd('0x30')](_0x3ecaa0,_0xdafd('0x111'));}}}}else if(_0x3ecaa0[_0xdafd('0x112')]){_0x5e4ad6=_0x3ecaa0[_0xdafd('0x112')];}else{return this[_0xdafd('0x10')][_0xdafd('0x30')](_0x3ecaa0,'no\x20trunk\x20selected');}var _0x3740a8=this[_0xdafd('0x10')][_0xdafd('0xb0')](_0xdafd('0xe9'),[util[_0xdafd('0x2c')](_0xdafd('0x113'),_0x5e4ad6,_0x3ecaa0['phone']),_0x3ecaa0[_0xdafd('0x69')],_0x3ecaa0[_0xdafd('0xe7')],_0x3ecaa0['url']]);if(_0x3740a8[_0xdafd('0xa7')]===-0x1){return _0x3740a8;}return this[_0xdafd('0x10')][_0xdafd('0xae')](util[_0xdafd('0x2c')]('Executed\x20command\x20%s',_0xdafd('0xe9')));};AGIVertices['prototype'][_0xdafd('0x114')]=function(_0x20c472){logger[_0xdafd('0x32')](util[_0xdafd('0x2c')]('Enter\x20in\x20FINALLY\x20(%s)\x20block',_0x20c472['label']));return this[_0xdafd('0x10')][_0xdafd('0xae')](_0xdafd('0x114'));};AGIVertices['prototype'][_0xdafd('0x115')]=function(_0xe45dc5){logger[_0xdafd('0x32')](util[_0xdafd('0x2c')](_0xdafd('0x116'),_0xe45dc5['label']));if(_0xe45dc5['retry']===0x0){return this[_0xdafd('0xaa')](_0xe45dc5);}_0xe45dc5[_0xdafd('0xab')]-=0x1;if(!this['isConfigured'](_0xe45dc5['file_id'])){return this[_0xdafd('0x10')][_0xdafd('0x30')](_0xe45dc5,_0xdafd('0x117'));}var _0x2dc23b=this[_0xdafd('0x20')][_0xdafd('0x72')](this,_0xe45dc5[_0xdafd('0x118')]);if(!_0x2dc23b){return this['channel'][_0xdafd('0x30')](_0xe45dc5,_0xdafd('0x119'));}if(!this[_0xdafd('0xa9')](_0xe45dc5['variable_id'])){return this[_0xdafd('0x10')][_0xdafd('0x30')](_0xdafd('0xdb'));}var _0x4ed1e2=this[_0xdafd('0x10')][_0xdafd('0x11a')](_0x2dc23b,_0xe45dc5[_0xdafd('0x11b')],_0xe45dc5[_0xdafd('0x11c')]);var _0x25a681=_0x4ed1e2[_0xdafd('0xa7')]?_0x4ed1e2[_0xdafd('0xa7')]['toString']():'';logger[_0xdafd('0x32')](_0xdafd('0x11d'),JSON[_0xdafd('0x76')](_0x4ed1e2));if(_0x4ed1e2[_0xdafd('0xa7')]===-0x1){this[_0xdafd('0x3b')][_0xdafd('0x72')](this,_0xe45dc5,_0x25a681);return _0x4ed1e2;}else if(_0x4ed1e2[_0xdafd('0xa5')]===_0xdafd('0x69')){_0x4ed1e2[_0xdafd('0xa7')]=_0x25a681[_0xdafd('0x9d')]>=parseInt(_0xe45dc5[_0xdafd('0x11e')])?'x':'i';}else{_0x4ed1e2['result']=_0x25a681[_0xdafd('0x9d')]>=parseInt(_0xe45dc5[_0xdafd('0x11e')])&&_0x25a681['length']<=parseInt(_0xe45dc5[_0xdafd('0x11c')])?'x':'i';}var _0xa0dd9=this['getVariable'][_0xdafd('0x72')](this,_0xe45dc5[_0xdafd('0xda')]);if(!_0xa0dd9){return this[_0xdafd('0x10')][_0xdafd('0x30')](_0xe45dc5,_0xdafd('0xdc'));}this[_0xdafd('0x10')]['setVariable'](_0xa0dd9,_0x25a681);if(this['isConfigured'](_0xe45dc5['hiddendigitsnum'])){var _0x3b18b3=parseInt(_0xe45dc5[_0xdafd('0x11f')],0xa);var _0x1c994a=rs['generate']({'charset':'*','length':_0x3b18b3});var _0x31baa1=_0x25a681[_0xdafd('0x9d')];if(_0x31baa1>0x0){if(_0x31baa1>_0x3b18b3){this[_0xdafd('0x3b')][_0xdafd('0x72')](this,_0xe45dc5,_0xe45dc5[_0xdafd('0x120')]===_0xdafd('0x121')?_0x1c994a+_0x25a681[_0xdafd('0x122')](_0x3b18b3):_0x25a681[_0xdafd('0x122')](0x0,_0x31baa1-_0x3b18b3)+_0x1c994a);}else{this[_0xdafd('0x3b')][_0xdafd('0x72')](this,_0xe45dc5,rs['generate']({'charset':'*','length':_0x31baa1}));}}else{this[_0xdafd('0x3b')]['sync'](this,_0xe45dc5,'');}}else{this[_0xdafd('0x3b')][_0xdafd('0x72')](this,_0xe45dc5,_0x25a681);}return _0x4ed1e2;};AGIVertices[_0xdafd('0x13')]['getsecretdigits']=function(_0x4efc45){logger[_0xdafd('0x32')](util[_0xdafd('0x2c')](_0xdafd('0x123'),_0x4efc45[_0xdafd('0x3d')]));return this['getdigits'](_0x4efc45);};AGIVertices['prototype'][_0xdafd('0x124')]=function(_0x20535a){logger[_0xdafd('0x32')](util[_0xdafd('0x2c')](_0xdafd('0x125'),_0x20535a[_0xdafd('0x3d')]));this[_0xdafd('0x3b')][_0xdafd('0x72')](this,_0x20535a,_0x20535a[_0xdafd('0x126')]);return this[_0xdafd('0x10')][_0xdafd('0xae')](util[_0xdafd('0x2c')](_0xdafd('0x127'),_0x20535a[_0xdafd('0x126')]));};AGIVertices[_0xdafd('0x13')][_0xdafd('0x128')]=function(_0x4b4e24){logger[_0xdafd('0x32')](util[_0xdafd('0x2c')](_0xdafd('0x129'),_0x4b4e24[_0xdafd('0x3d')]));if(!this[_0xdafd('0xa9')](_0x4b4e24[_0xdafd('0x8a')])||!this['isConfigured'](_0x4b4e24[_0xdafd('0x8b')])){return this['channel'][_0xdafd('0xae')](_0xdafd('0x12a'));}if(!this[_0xdafd('0xa9')](_0x4b4e24[_0xdafd('0x60')])){return this[_0xdafd('0x10')][_0xdafd('0xae')](_0xdafd('0xaf'));}this[_0xdafd('0x10')][_0xdafd('0xae')](util[_0xdafd('0x2c')]('Trying\x20aws\x20Polly\x20%s',_0x4b4e24[_0xdafd('0x60')]));var _0x5f8402=this[_0xdafd('0x89')][_0xdafd('0x72')](this,_0x4b4e24);if(_0x5f8402){this['channel'][_0xdafd('0xae')](util['format'](_0xdafd('0x12b'),_0x5f8402));var _0x14174d=this['channel'][_0xdafd('0x108')](_0x5f8402);try{fs[_0xdafd('0x109')](_0x5f8402+_0xdafd('0x10a'));}catch(_0x21bda4){logger[_0xdafd('0x30')](_0x21bda4);}return _0x14174d;}return this[_0xdafd('0x10')][_0xdafd('0x30')](_0x4b4e24,_0xdafd('0x12c'));};AGIVertices['prototype'][_0xdafd('0x12d')]=function(_0x318866){logger[_0xdafd('0x32')](util['format'](_0xdafd('0x12e'),_0x318866['label']));if(!this[_0xdafd('0xa9')](_0x318866[_0xdafd('0x8a')])||!this[_0xdafd('0xa9')](_0x318866[_0xdafd('0x8b')])){return this[_0xdafd('0x10')]['noop'](_0xdafd('0x12a'));}if(!this[_0xdafd('0xa9')](_0x318866['aws_bot_name'])){return this[_0xdafd('0x10')][_0xdafd('0xae')](_0xdafd('0x12f'));}if(!this[_0xdafd('0xa9')](_0x318866['text'])){return this[_0xdafd('0x10')][_0xdafd('0xae')](_0xdafd('0xaf'));}this['channel'][_0xdafd('0xed')]=!![];this[_0xdafd('0x3b')](_0x318866);this['createSquareMessage'](_0x318866[_0xdafd('0x60')],'in','','');this[_0xdafd('0x10')]['noop'](util[_0xdafd('0x2c')](_0xdafd('0x130'),_0x318866[_0xdafd('0x60')]));var _0x76a8c7=this[_0xdafd('0x8e')]['sync'](this,_0x318866);if(_0x76a8c7){for(var _0x24b4b3 in _0x76a8c7){if(_0x76a8c7[_0xdafd('0x97')](_0x24b4b3)&&_[_0xdafd('0x98')](_0x76a8c7[_0x24b4b3])){this[_0xdafd('0x10')][_0xdafd('0xa1')](util[_0xdafd('0x2c')]('AWS_LEX_%s',_0x24b4b3[_0xdafd('0x6c')]()),_0x76a8c7[_0x24b4b3]);}}if(_[_0xdafd('0x4a')](_0x76a8c7['message'])){return this[_0xdafd('0x10')][_0xdafd('0xae')](_0xdafd('0x131'));}else{this['createSquareMessage'](_0x76a8c7[_0xdafd('0x7a')],_0xdafd('0x132'),'amazonlex','');return this[_0xdafd('0x10')][_0xdafd('0xae')](util['format']('Amazon\x20Lex\x20Result\x20%s',_0x76a8c7['message']));}}return this[_0xdafd('0x10')][_0xdafd('0x30')](_0x318866,_0xdafd('0x133'));};AGIVertices[_0xdafd('0x13')][_0xdafd('0x134')]=function(_0x1a5ebf){logger['info'](util[_0xdafd('0x2c')](_0xdafd('0x135'),_0x1a5ebf[_0xdafd('0x3d')],_0x1a5ebf['timeout']));if(!this['isConfigured'](_0x1a5ebf[_0xdafd('0x84')])){return this['channel']['noop'](_0xdafd('0xec'));}var _0x463794='wav';var _0x2f64ac=util[_0xdafd('0x2c')](_0xdafd('0x136'),FILES_PATH,rs[_0xdafd('0x137')](0x4));var _0x3162f6=util['format']('%s.%s',_0x2f64ac,_0x463794);var _0x147d67=!![];if(_0x1a5ebf[_0xdafd('0x138')]===_0xdafd('0x139')){_0x147d67=![];}var _0x109c54=this[_0xdafd('0x10')]['recordFile'](_0x2f64ac,_0x463794,_0x1a5ebf['intKey'],_0x1a5ebf['timeout'],undefined,_0x147d67);if(_0x109c54['result']!==-0x1){this[_0xdafd('0x10')][_0xdafd('0xae')](util[_0xdafd('0x2c')](_0xdafd('0x13a'),_0x3162f6));var _0x58a581=this[_0xdafd('0x91')]['sync'](this,_0x1a5ebf,_0x3162f6);if(_0x58a581){for(var _0x248a52 in _0x58a581){if(_0x58a581[_0xdafd('0x97')](_0x248a52)){this[_0xdafd('0x10')][_0xdafd('0xa1')](util[_0xdafd('0x2c')]('GOOGLE_ASR_%s',_0x248a52[_0xdafd('0x6c')]()),_0x58a581[_0x248a52]);}}return this[_0xdafd('0x10')][_0xdafd('0xae')](util[_0xdafd('0x2c')](_0xdafd('0x13b'),JSON[_0xdafd('0x76')](_0x58a581)));}}return _0x109c54;};AGIVertices[_0xdafd('0x13')][_0xdafd('0x13c')]=function(_0x4bc4c7){logger[_0xdafd('0x32')](util['format'](_0xdafd('0x13d'),_0x4bc4c7[_0xdafd('0x3d')]));if(!this[_0xdafd('0xa9')](_0x4bc4c7[_0xdafd('0x93')])){return this['channel'][_0xdafd('0xae')](_0xdafd('0x13e'));}if(!this[_0xdafd('0xa9')](_0x4bc4c7['appsecret'])){return this[_0xdafd('0x10')][_0xdafd('0xae')](_0xdafd('0x13f'));}var _0x37b6a8=_0xdafd('0x140');var _0x3324ba=util[_0xdafd('0x2c')](_0xdafd('0x136'),FILES_PATH,rs[_0xdafd('0x137')](0x4));var _0x1bc7be=util['format'](_0xdafd('0xa0'),_0x3324ba,_0x37b6a8);var _0x1fc41f=!![];if(_0x4bc4c7[_0xdafd('0x138')]===_0xdafd('0x139')){_0x1fc41f=![];}var _0x52e244=this[_0xdafd('0x10')]['recordFile'](_0x3324ba,_0x37b6a8,_0x4bc4c7[_0xdafd('0x141')],_0x4bc4c7[_0xdafd('0x69')],undefined,_0x1fc41f);if(_0x52e244[_0xdafd('0xa7')]!==-0x1){this[_0xdafd('0x10')][_0xdafd('0xae')](util[_0xdafd('0x2c')](_0xdafd('0x142'),_0x1bc7be));var _0x41f268=this[_0xdafd('0x92')]['sync'](this,_0x4bc4c7,_0x1bc7be);if(_0x41f268){for(var _0x35259c in _0x41f268){if(_0x41f268[_0xdafd('0x97')](_0x35259c)){this[_0xdafd('0x10')][_0xdafd('0xa1')](util['format'](_0xdafd('0x143'),_0x35259c[_0xdafd('0x6c')]()),_0x41f268[_0x35259c]);}}return this[_0xdafd('0x10')]['noop'](util[_0xdafd('0x2c')](_0xdafd('0x144'),JSON['stringify'](_0x41f268)));}}return _0x52e244;};AGIVertices[_0xdafd('0x13')][_0xdafd('0x145')]=function(_0x6cdcb8){logger['info'](util[_0xdafd('0x2c')](_0xdafd('0x146'),_0x6cdcb8[_0xdafd('0x3d')]));return this['channel']['continueAt'](_0x6cdcb8[_0xdafd('0x43')],_0x6cdcb8[_0xdafd('0x44')],_0x6cdcb8[_0xdafd('0x147')]);};AGIVertices[_0xdafd('0x13')]['gotoif']=function(_0x2411ce){logger[_0xdafd('0x32')](util[_0xdafd('0x2c')](_0xdafd('0x148'),_0x2411ce[_0xdafd('0x3d')]));if(!this[_0xdafd('0xa9')](_0x2411ce[_0xdafd('0x149')])){return this['channel']['error'](_0x2411ce,_0xdafd('0x14a'));}try{var _0x390c7a=eval(_0x2411ce[_0xdafd('0x149')])?_0xdafd('0x14b'):_0xdafd('0x14c');this[_0xdafd('0x10')][_0xdafd('0xae')](util[_0xdafd('0x2c')](_0xdafd('0x14d'),_0x2411ce[_0xdafd('0x149')],_0x390c7a));return{'code':0xc8,'result':_0x390c7a};}catch(_0x32a09f){return{'code':0xc8,'result':_0xdafd('0x14c')};}};AGIVertices[_0xdafd('0x13')][_0xdafd('0x14e')]=function(_0x26ddbd){logger[_0xdafd('0x32')](util[_0xdafd('0x2c')](_0xdafd('0x14f'),_0x26ddbd[_0xdafd('0x3d')]));if(!this[_0xdafd('0xa9')](_0x26ddbd[_0xdafd('0x150')])){return this['channel']['error'](_0x26ddbd,_0xdafd('0x151'));}var _0x249cee=this[_0xdafd('0x26')][_0xdafd('0x72')](this,_0x26ddbd['interval_id']);if(!_0x249cee){return this[_0xdafd('0x10')][_0xdafd('0x30')](_0x26ddbd,_0xdafd('0x152'));}for(var _0x109681=0x0;_0x109681<_0x249cee[_0xdafd('0x9d')];_0x109681+=0x1){var _0x59550e=this['channel'][_0xdafd('0xa4')](util[_0xdafd('0x2c')]('IFTIME(%s?true:false)',_0x249cee[_0x109681]));if(_0x59550e['result']===-0x1){return _0x59550e;}logger['info'](util[_0xdafd('0x2c')](_0xdafd('0x153'),_0x249cee[_0x109681],_0x59550e[_0xdafd('0xa5')]));if(_0x59550e[_0xdafd('0xa5')]===_0xdafd('0x14b')){logger[_0xdafd('0x32')](util['format'](_0xdafd('0x153'),_0x249cee[_0x109681],_0xdafd('0x14b')));this[_0xdafd('0x10')]['noop'](util[_0xdafd('0x2c')](_0xdafd('0x153'),_0x249cee[_0x109681],_0xdafd('0x14b')));return{'code':0xc8,'result':_0xdafd('0x14b')};}else{logger[_0xdafd('0x32')](util[_0xdafd('0x2c')]('IFTIME\x20%s\x20%s',_0x249cee[_0x109681],_0xdafd('0x14c')));this[_0xdafd('0x10')][_0xdafd('0xae')](util[_0xdafd('0x2c')]('IFTIME\x20%s\x20%s',_0x249cee[_0x109681],_0xdafd('0x14c')));}}return{'code':0xc8,'result':_0xdafd('0x14c')};};AGIVertices[_0xdafd('0x13')][_0xdafd('0x154')]=function(_0x44bd1b){logger[_0xdafd('0x32')](util[_0xdafd('0x2c')](_0xdafd('0x155'),_0x44bd1b[_0xdafd('0x3d')]));return this[_0xdafd('0x10')]['hangup']();};AGIVertices['prototype'][_0xdafd('0x156')]=function(_0x49650b){logger['info'](util[_0xdafd('0x2c')](_0xdafd('0x157'),_0x49650b['label']));if(!this[_0xdafd('0xa9')](_0x49650b[_0xdafd('0x84')])){return this['channel'][_0xdafd('0xae')](_0xdafd('0xec'));}var _0x4a9ae9='wav';var _0x4a3175=util[_0xdafd('0x2c')](_0xdafd('0x136'),FILES_PATH,rs['generate'](0x4));var _0x50b4b3=util[_0xdafd('0x2c')](_0xdafd('0xa0'),_0x4a3175,_0x4a9ae9);var _0x5cdd57=!![];if(_0x49650b[_0xdafd('0x138')]==='NOBEEP'){_0x5cdd57=![];}var _0x1078ee=this[_0xdafd('0x10')][_0xdafd('0x158')](_0x4a3175,_0x4a9ae9,_0x49650b[_0xdafd('0x141')],_0x49650b[_0xdafd('0x69')],undefined,_0x5cdd57);if(_0x1078ee[_0xdafd('0xa7')]!==-0x1){this[_0xdafd('0x10')][_0xdafd('0xae')](util[_0xdafd('0x2c')](_0xdafd('0x159'),_0x50b4b3));var _0x103adc=this[_0xdafd('0x87')][_0xdafd('0x72')](this,_0x49650b,_0x50b4b3);if(_0x103adc){for(var _0x3e8800 in _0x103adc){if(_0x103adc['hasOwnProperty'](_0x3e8800)){this['channel'][_0xdafd('0xa1')](util[_0xdafd('0x2c')](_0xdafd('0x15a'),_0x3e8800[_0xdafd('0x6c')]()),_0x103adc[_0x3e8800]);}}return this[_0xdafd('0x10')][_0xdafd('0xae')](util[_0xdafd('0x2c')]('IspeechASR\x20Result\x20%s',JSON[_0xdafd('0x76')](_0x103adc)));}}return _0x1078ee;};AGIVertices[_0xdafd('0x13')][_0xdafd('0x15b')]=function(_0x19a56e){logger[_0xdafd('0x32')](util['format'](_0xdafd('0x15c'),_0x19a56e[_0xdafd('0x3d')]));if(!this[_0xdafd('0xa9')](_0x19a56e['key'])){return this['channel']['noop'](_0xdafd('0xec'));}if(!this[_0xdafd('0xa9')](_0x19a56e[_0xdafd('0x60')])){return this[_0xdafd('0x10')]['noop'](_0xdafd('0xaf'));}this[_0xdafd('0x10')]['noop'](util[_0xdafd('0x2c')](_0xdafd('0x15d'),_0x19a56e[_0xdafd('0x60')]));var _0x511016=this[_0xdafd('0x83')]['sync'](this,_0x19a56e);if(_0x511016){this[_0xdafd('0x10')][_0xdafd('0xae')](util['format']('ispeech\x20%s\x20file\x20created',_0x511016));var _0x1c1c70=this[_0xdafd('0x10')][_0xdafd('0x108')](_0x511016,_0x19a56e['intKey']);try{fs['unlink'](_0x511016+_0xdafd('0x10a'));}catch(_0x2e492d){logger['error'](_0x2e492d);}return _0x1c1c70;}return this[_0xdafd('0x10')][_0xdafd('0x30')](_0x19a56e,'ispeech\x20TTS\x20is\x20unreachable');};AGIVertices['prototype'][_0xdafd('0x15e')]=function(_0x1ea98c){logger[_0xdafd('0x32')](util[_0xdafd('0x2c')](_0xdafd('0x15f'),_0x1ea98c[_0xdafd('0x3d')]));if(!this[_0xdafd('0xa9')](_0x1ea98c['findBy'])){return this['channel'][_0xdafd('0x30')](_0x1ea98c,'no\x20find\x20by\x20configured');}logger[_0xdafd('0x32')](util[_0xdafd('0x2c')](_0xdafd('0x160'),this[_0xdafd('0x10')][_0xdafd('0x40')],_0x1ea98c[_0xdafd('0x161')]));var _0x1968b6=this[_0xdafd('0x58')][_0xdafd('0x72')](this,_0x1ea98c[_0xdafd('0x161')]);if(_0x1968b6){logger[_0xdafd('0x32')](util[_0xdafd('0x2c')](_0xdafd('0x162'),this[_0xdafd('0x10')][_0xdafd('0x40')],_0x1ea98c[_0xdafd('0x161')]));this[_0xdafd('0x10')][_0xdafd('0xae')](util[_0xdafd('0x2c')](_0xdafd('0x162'),this[_0xdafd('0x10')][_0xdafd('0x40')],_0x1ea98c[_0xdafd('0x161')]));return{'code':0xc8,'result':'success'};}else{logger[_0xdafd('0x32')](util['format']('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this['channel'][_0xdafd('0x40')],_0x1ea98c[_0xdafd('0x161')]));this[_0xdafd('0x10')][_0xdafd('0xae')](util[_0xdafd('0x2c')]('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this[_0xdafd('0x10')][_0xdafd('0x40')],_0x1ea98c[_0xdafd('0x161')]));return{'code':0xc8,'result':_0xdafd('0x163')};}};AGIVertices[_0xdafd('0x13')][_0xdafd('0x164')]=function(_0x22d7d5){logger[_0xdafd('0x32')](util[_0xdafd('0x2c')](_0xdafd('0x165'),_0x22d7d5['label']));if(!this['isConfigured'](_0x22d7d5[_0xdafd('0x161')])){return this[_0xdafd('0x10')]['error'](_0x22d7d5,_0xdafd('0x166'));}logger['info'](util[_0xdafd('0x2c')](_0xdafd('0x160'),this[_0xdafd('0x10')][_0xdafd('0x40')],_0x22d7d5['findBy']));var _0x4944e9=this[_0xdafd('0x57')][_0xdafd('0x72')](this,_0x22d7d5[_0xdafd('0x161')]);if(_0x4944e9){logger[_0xdafd('0x32')](util['format'](_0xdafd('0x162'),this[_0xdafd('0x10')][_0xdafd('0x40')],_0x22d7d5['findBy']));this['channel'][_0xdafd('0xae')](util['format'](_0xdafd('0x162'),this[_0xdafd('0x10')]['callerid'],_0x22d7d5[_0xdafd('0x161')]));return{'code':0xc8,'result':_0xdafd('0x167')};}else{logger[_0xdafd('0x32')](util[_0xdafd('0x2c')](_0xdafd('0x168'),this['channel'][_0xdafd('0x40')],_0x22d7d5[_0xdafd('0x161')]));this[_0xdafd('0x10')][_0xdafd('0xae')](util['format'](_0xdafd('0x168'),this[_0xdafd('0x10')]['callerid'],_0x22d7d5[_0xdafd('0x161')]));return{'code':0xc8,'result':_0xdafd('0x163')};}};AGIVertices[_0xdafd('0x13')]['math']=function(_0x2cb5ac){logger[_0xdafd('0x32')](util[_0xdafd('0x2c')](_0xdafd('0x169'),_0x2cb5ac[_0xdafd('0x3d')]));if(!this[_0xdafd('0xa9')](_0x2cb5ac['operation'])){return this[_0xdafd('0x10')][_0xdafd('0x30')](_0x2cb5ac,_0xdafd('0x16a'));}this[_0xdafd('0x10')][_0xdafd('0xae')](util[_0xdafd('0x2c')](_0xdafd('0x16b'),_0x2cb5ac[_0xdafd('0x16c')]));var _0x578464=eval(_0x2cb5ac['operation']);if(!this[_0xdafd('0xa9')](_0x2cb5ac[_0xdafd('0xda')])){return this[_0xdafd('0x10')][_0xdafd('0xae')]('no\x20variable\x20selected\x20for\x20the\x20result');}var _0x3d86fe=this[_0xdafd('0xa4')]['sync'](this,_0x2cb5ac[_0xdafd('0xda')]);if(!_0x3d86fe){return this[_0xdafd('0x10')][_0xdafd('0x30')](_0x2cb5ac,_0xdafd('0xdc'));}if(_[_0xdafd('0x9c')](_0x578464)){var _0x42aebc=this;_0x578464[_0xdafd('0xdd')](function(_0x41e8c,_0x48f2d8){_0x42aebc[_0xdafd('0x10')][_0xdafd('0xa1')](util['format'](_0xdafd('0x16d'),_0x3d86fe,_0x48f2d8),_0x41e8c);});return this[_0xdafd('0x10')][_0xdafd('0xae')](util[_0xdafd('0x2c')](_0xdafd('0x16e'),_0x3d86fe));}else{return this[_0xdafd('0x10')]['setVariable'](_0x3d86fe,_0x578464);}};AGIVertices[_0xdafd('0x13')][_0xdafd('0xe')]=function(_0x4b7c66){logger[_0xdafd('0x32')](util[_0xdafd('0x2c')](_0xdafd('0x16f'),_0x4b7c66[_0xdafd('0x3d')]));if(_0x4b7c66['retry']===0x0){return this[_0xdafd('0xaa')](_0x4b7c66);}_0x4b7c66[_0xdafd('0xab')]-=0x1;if(!this[_0xdafd('0xa9')](_0x4b7c66[_0xdafd('0x118')])){return this[_0xdafd('0x10')]['error'](_0x4b7c66,_0xdafd('0x117'));}var _0x39f310=this[_0xdafd('0x20')][_0xdafd('0x72')](this,_0x4b7c66[_0xdafd('0x118')]);if(!_0x39f310){return this['channel'][_0xdafd('0x30')](_0x4b7c66,_0xdafd('0x119'));}var _0x59ac9e=this[_0xdafd('0x10')][_0xdafd('0x11a')](_0x39f310,_0x4b7c66['response'],_0x4b7c66[_0xdafd('0x170')]);var _0x278bf8=_0x59ac9e[_0xdafd('0xa7')];if(_0x59ac9e[_0xdafd('0xa7')]===-0x1){this[_0xdafd('0x3b')][_0xdafd('0x72')](this,_0x4b7c66,'-1');return _0x59ac9e;}else if(_0x59ac9e[_0xdafd('0xa5')]==='timeout'){_0x59ac9e[_0xdafd('0xa7')]=_0x59ac9e['result'][_0xdafd('0x9d')]>0x0?_0x59ac9e[_0xdafd('0xa7')]:'t';}else if(_[_0xdafd('0x171')](_0x59ac9e[_0xdafd('0xa7')])){_0x59ac9e[_0xdafd('0xa7')]='#';_0x278bf8='#';}if(!this[_0xdafd('0xa9')](_0x4b7c66[_0xdafd('0xda')])){this[_0xdafd('0x10')][_0xdafd('0xae')]('no\x20variable\x20selected\x20for\x20the\x20result');}else{var _0x27a89d=this['getVariable'][_0xdafd('0x72')](this,_0x4b7c66[_0xdafd('0xda')]);if(!_0x27a89d){return this['channel']['error'](_0x4b7c66,_0xdafd('0xdc'));}this[_0xdafd('0x10')][_0xdafd('0xa1')](_0x27a89d,_0x278bf8);}this[_0xdafd('0x3b')][_0xdafd('0x72')](this,_0x4b7c66,_0x278bf8);return _0x59ac9e;};AGIVertices['prototype'][_0xdafd('0xae')]=function(_0x24e894){logger[_0xdafd('0x32')](util[_0xdafd('0x2c')]('Enter\x20in\x20NOOP\x20(%s)\x20block',_0x24e894[_0xdafd('0x3d')]));return this[_0xdafd('0x10')][_0xdafd('0xae')](_0x24e894[_0xdafd('0x172')]||_0x24e894[_0xdafd('0x3d')]);};AGIVertices['prototype']['pause']=function(_0xf4f25b){logger[_0xdafd('0x32')](util[_0xdafd('0x2c')](_0xdafd('0x173'),_0xf4f25b['label']));if(!this[_0xdafd('0xa9')](_0xf4f25b[_0xdafd('0x161')])){return this[_0xdafd('0x10')]['error'](_0xf4f25b,_0xdafd('0x166'));}logger[_0xdafd('0x32')](util[_0xdafd('0x2c')]('FIND\x20AGENT\x20%s\x20BY\x20%s',this[_0xdafd('0x10')][_0xdafd('0x40')],_0xf4f25b[_0xdafd('0x161')]));var _0xacf4b6=this[_0xdafd('0x54')][_0xdafd('0x72')](this,_0xf4f25b[_0xdafd('0x174')]);var _0x15b4e2=this[_0xdafd('0x55')][_0xdafd('0x72')](this,_0xf4f25b['findBy'],_0xacf4b6);if(_0x15b4e2){logger[_0xdafd('0x32')](util[_0xdafd('0x2c')](_0xdafd('0x162'),this[_0xdafd('0x10')][_0xdafd('0x40')],_0xf4f25b[_0xdafd('0x161')]));this['channel']['noop'](util['format'](_0xdafd('0x162'),this[_0xdafd('0x10')][_0xdafd('0x40')],_0xf4f25b[_0xdafd('0x161')]));return{'code':0xc8,'result':_0xdafd('0x167')};}else{logger[_0xdafd('0x32')](util[_0xdafd('0x2c')]('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this['channel']['callerid'],_0xf4f25b['findBy']));this[_0xdafd('0x10')]['noop'](util[_0xdafd('0x2c')](_0xdafd('0x162'),this[_0xdafd('0x10')][_0xdafd('0x40')],_0xf4f25b[_0xdafd('0x161')]));return{'code':0xc8,'result':_0xdafd('0x163')};}};AGIVertices[_0xdafd('0x13')]['playback']=function(_0x4020ac){logger[_0xdafd('0x32')](util[_0xdafd('0x2c')](_0xdafd('0x175'),_0x4020ac[_0xdafd('0x3d')]));if(!this[_0xdafd('0xa9')](_0x4020ac['file_id'])){return this[_0xdafd('0x10')][_0xdafd('0x30')](_0x4020ac,'no\x20file\x20audio\x20selected');}var _0x575161=this[_0xdafd('0x20')][_0xdafd('0x72')](this,_0x4020ac[_0xdafd('0x118')]);if(!_0x575161){return this[_0xdafd('0x10')][_0xdafd('0x30')](_0x4020ac,_0xdafd('0x119'));}var _0x1c0811=this[_0xdafd('0x10')]['exec'](_0xdafd('0x176'),[_0x575161,_0x4020ac['opts']]);if(_0x1c0811[_0xdafd('0xa7')]===-0x1){return _0x1c0811;}return this['channel']['noop'](util[_0xdafd('0x2c')](_0xdafd('0xc6'),_0xdafd('0x176'),_0x575161));};AGIVertices[_0xdafd('0x13')][_0xdafd('0x177')]=function(_0x192697){logger[_0xdafd('0x32')](util[_0xdafd('0x2c')](_0xdafd('0x178'),_0x192697['label']));if(!this[_0xdafd('0xa9')](_0x192697[_0xdafd('0x179')])){return this['channel']['error'](_0x192697,'no\x20queue\x20selected');}var _0x28a9ca='';var _0x208a44=parseInt(_0x192697['queue_id'],0xa);if(isNaN(_0x208a44)){_0x28a9ca=_0x192697[_0xdafd('0x179')];}else{_0x28a9ca=this[_0xdafd('0x17')][_0xdafd('0x72')](this,_0x192697['queue_id']);if(!_0x28a9ca){return this[_0xdafd('0x10')][_0xdafd('0x30')](_0x192697,_0xdafd('0x17a'));}}var _0xd8588c='';if(this[_0xdafd('0xa9')](_0x192697[_0xdafd('0x118')])){var _0xc7d026=this[_0xdafd('0x20')][_0xdafd('0x72')](this,_0x192697[_0xdafd('0x118')]);if(_0xc7d026){_0xd8588c=_0xc7d026;}}this[_0xdafd('0x3b')][_0xdafd('0x72')](this,_0x192697,_0x28a9ca);if(_0x192697['opts'][_0xdafd('0x17b')]('x')<0x0){_0x192697['opts']+='x';}if(_0x192697[_0xdafd('0xe7')][_0xdafd('0x17b')]('X')<0x0){_0x192697['opts']+='X';}this[_0xdafd('0x10')][_0xdafd('0xa1')](_0xdafd('0x17c'),_0x28a9ca?_0x28a9ca[_0xdafd('0x17d')]():'');var _0x4c74e4=this[_0xdafd('0x10')]['exec']('QUEUE',[_0x28a9ca,_0x192697[_0xdafd('0xe7')],_0x192697[_0xdafd('0x67')],_0xd8588c,_0x192697[_0xdafd('0x69')],_0x192697['agi'],_0x192697[_0xdafd('0x17e')],_0x192697['gosub'],'',_0x192697[_0xdafd('0x17f')]]);if(_0x4c74e4[_0xdafd('0xa7')]===-0x1){return _0x4c74e4;}return this[_0xdafd('0x10')][_0xdafd('0xae')](util[_0xdafd('0x2c')](_0xdafd('0xc6'),_0xdafd('0x180'),_0x28a9ca));};AGIVertices[_0xdafd('0x13')][_0xdafd('0x181')]=function(_0x19ff82){logger['info'](util['format'](_0xdafd('0x182'),_0x19ff82[_0xdafd('0x3d')]));var _0x294478=_0x19ff82['recordingFormat']||_0xdafd('0x140');var _0x24e3e6=util[_0xdafd('0x2c')]('%s_%s',this[_0xdafd('0x10')][_0xdafd('0x3c')],rs[_0xdafd('0x137')](0x5));var _0x3286c5=util[_0xdafd('0x2c')](_0xdafd('0x183'),FILES_PATH,_0x24e3e6,_0x294478);var _0x232bff=util[_0xdafd('0x2c')](_0xdafd('0x136'),FILES_PATH,_0x24e3e6);this[_0xdafd('0x41')][_0xdafd('0x72')](this,_0x19ff82,_0x24e3e6,_0x3286c5);this[_0xdafd('0x10')]['setVariable'](_0xdafd('0x184'),_0x24e3e6);logger[_0xdafd('0x32')]('Recording\x20%s\x20%s\x20%s\x20%s',_0x232bff,_0x294478,_0x19ff82[_0xdafd('0x185')],_0x19ff82[_0xdafd('0x69')]);return this[_0xdafd('0x10')]['recordFile'](_0x232bff,_0x294478,_0x19ff82['escape_digits'],_0x19ff82[_0xdafd('0x69')],undefined,!![]);};AGIVertices[_0xdafd('0x13')]['restapi']=function(_0x1e7591){logger['info'](util['format'](_0xdafd('0x186'),_0x1e7591[_0xdafd('0x3d')]));if(!this[_0xdafd('0xa9')](_0x1e7591[_0xdafd('0x67')])){return this[_0xdafd('0x10')]['noop'](_0xdafd('0x187'));}var _0x4960ee=this[_0xdafd('0x188')]['sync'](this,_0x1e7591);logger[_0xdafd('0x32')](util[_0xdafd('0x2c')](_0xdafd('0x189'),util[_0xdafd('0x18a')](_0x4960ee,{'showHidden':![],'depth':null})));if(!this[_0xdafd('0xa9')](_0x1e7591[_0xdafd('0xda')])){return this[_0xdafd('0x10')][_0xdafd('0xae')]('no\x20variable\x20selected\x20for\x20the\x20response');}var _0x308328=this[_0xdafd('0xa4')][_0xdafd('0x72')](this,_0x1e7591[_0xdafd('0xda')]);if(!_0x308328){return this[_0xdafd('0x10')][_0xdafd('0x30')](_0x1e7591,_0xdafd('0xdc'));}this[_0xdafd('0x10')][_0xdafd('0xa1')](util[_0xdafd('0x2c')](_0xdafd('0x18b'),_0x308328),_0x4960ee[_0xdafd('0x78')]?_0x4960ee[_0xdafd('0x78')]:'200');this[_0xdafd('0x10')][_0xdafd('0xa1')](util['format'](_0xdafd('0x18c'),_0x308328),_0x4960ee[_0xdafd('0x79')]?_0x4960ee[_0xdafd('0x79')]:'OK');if(_0x4960ee[_0xdafd('0x6d')]){try{this[_0xdafd('0x9f')](_0x4960ee[_0xdafd('0x6d')],_0x308328);}catch(_0x192478){logger[_0xdafd('0x30')](util['format']('Unable\x20to\x20set\x20result\x20in\x20variable\x20%s',_0x308328));}}return this[_0xdafd('0x10')][_0xdafd('0xae')](util[_0xdafd('0x2c')](_0xdafd('0xe0'),_0x308328));};AGIVertices[_0xdafd('0x13')][_0xdafd('0x18d')]=function(_0x18d1f3){logger['info'](util[_0xdafd('0x2c')](_0xdafd('0x18e'),_0x18d1f3[_0xdafd('0x3d')]));return this[_0xdafd('0x10')][_0xdafd('0x18f')](_0x18d1f3[_0xdafd('0x190')][_0xdafd('0x5c')](/\s+/g,''),_0x18d1f3['escape_digits']);};AGIVertices['prototype'][_0xdafd('0x191')]=function(_0x338884){logger['info'](util[_0xdafd('0x2c')]('Enter\x20in\x20SAYNUMBER\x20(%s)\x20block',_0x338884[_0xdafd('0x3d')]));return this['channel'][_0xdafd('0x192')](_0x338884[_0xdafd('0x193')][_0xdafd('0x5c')](/\s+/g,''),_0x338884[_0xdafd('0x185')]);};AGIVertices[_0xdafd('0x13')][_0xdafd('0x194')]=function(_0x33e927){logger[_0xdafd('0x32')](util[_0xdafd('0x2c')](_0xdafd('0x195'),_0x33e927['label']));return this[_0xdafd('0x10')]['sayPhonetic'](_0x33e927[_0xdafd('0x60')],_0x33e927[_0xdafd('0x185')]);};AGIVertices[_0xdafd('0x13')][_0xdafd('0x196')]=function(_0x1633af){logger[_0xdafd('0x32')](util['format'](_0xdafd('0x197'),_0x1633af['label']));if(!this['isConfigured'](_0x1633af[_0xdafd('0x198')])){return this[_0xdafd('0x10')][_0xdafd('0xae')](_0xdafd('0x199'));}var _0x4ea75a=this[_0xdafd('0x19a')]['sync'](this,_0x1633af[_0xdafd('0x198')]);if(!_0x4ea75a||!_0x4ea75a['Smtp']){return this[_0xdafd('0x10')][_0xdafd('0x30')](_0x1633af,_0xdafd('0x19b'));}var _0x1ab19e={'from':util[_0xdafd('0x2c')]('\x22%s\x22\x20<%s>',_0x4ea75a[_0xdafd('0x18')],_0x4ea75a['email']||_0x4ea75a[_0xdafd('0x19c')][_0xdafd('0x19d')]),'to':_0x1633af['to']||'','cc':_0x1633af['cc']||'','bcc':_0x1633af['bcc']||'','subject':_0x1633af[_0xdafd('0x19e')],'html':_0x1633af[_0xdafd('0x60')],'text':_0x1633af[_0xdafd('0x60')]};if(this['isConfigured'](_0x1633af[_0xdafd('0x19f')])){}logger[_0xdafd('0xe2')]('sendMail\x20message',JSON[_0xdafd('0x76')](_0x1ab19e));this[_0xdafd('0x3b')][_0xdafd('0x72')](this,_0x1633af,_0x1633af['account_id']);this['channel']['noop'](util[_0xdafd('0x2c')]('Trying\x20SendMail\x20with\x20account\x20%s',_0x4ea75a[_0xdafd('0x18')]));this['sendMailMessage'][_0xdafd('0x72')](this,_0x4ea75a[_0xdafd('0x1a0')],_0x1ab19e);return this[_0xdafd('0x10')][_0xdafd('0xae')](_0xdafd('0x1a1'));};AGIVertices[_0xdafd('0x13')][_0xdafd('0x1a2')]=function(_0x4edcd8){logger['info'](util[_0xdafd('0x2c')]('Enter\x20in\x20SENDFAX\x20(%s)\x20block',_0x4edcd8[_0xdafd('0x3d')]));return this['channel'][_0xdafd('0xae')](_0xdafd('0x1a3'));};AGIVertices['prototype'][_0xdafd('0x1a4')]=function(_0x2d4b8e){logger['info'](util[_0xdafd('0x2c')]('Enter\x20in\x20SENDSMS\x20(%s)\x20block',_0x2d4b8e[_0xdafd('0x3d')]));if(!this[_0xdafd('0xa9')](_0x2d4b8e['sms_account_id'])){return this[_0xdafd('0x10')][_0xdafd('0xae')](_0xdafd('0x1a5'));}var _0x127edd=this[_0xdafd('0x39')]['sync'](this,_0x2d4b8e['sms_account_id']);if(!_0x127edd){return this[_0xdafd('0x10')][_0xdafd('0x30')](_0x2d4b8e,_0xdafd('0x1a6'));}var _0x30e98f={'body':_0x2d4b8e[_0xdafd('0x1a7')],'phone':_0x2d4b8e['to']||'','SmsAccountId':_0x127edd['id']};logger[_0xdafd('0xe2')](_0xdafd('0x1a8'),JSON['stringify'](_0x30e98f));this['createSquareDetailsReport'][_0xdafd('0x72')](this,_0x2d4b8e,_0x2d4b8e[_0xdafd('0x1a9')]);this[_0xdafd('0x10')]['noop'](util['format'](_0xdafd('0x1aa'),_0x127edd['name']));this[_0xdafd('0x1ab')][_0xdafd('0x72')](this,_0x30e98f);return this[_0xdafd('0x10')][_0xdafd('0xae')](_0xdafd('0x1ac'));};AGIVertices['prototype'][_0xdafd('0x1ad')]=function(_0x34cc13){logger['info'](util[_0xdafd('0x2c')]('Enter\x20in\x20SET\x20(%s)\x20block',_0x34cc13[_0xdafd('0x3d')]));if(!this[_0xdafd('0xa9')](_0x34cc13[_0xdafd('0xda')])){return this[_0xdafd('0x10')][_0xdafd('0x30')](_0x34cc13,'no\x20variable\x20selected');}var _0x32b33e=this[_0xdafd('0xa4')][_0xdafd('0x72')](this,_0x34cc13[_0xdafd('0xda')]);if(!_0x32b33e){return this[_0xdafd('0x10')][_0xdafd('0x30')](_0x34cc13,_0xdafd('0xdc'));}return this['channel']['setVariable'](_0x32b33e,_0x34cc13[_0xdafd('0x1ae')]);};AGIVertices[_0xdafd('0x13')][_0xdafd('0x1af')]=function(_0x4b69f3){logger['info'](util['format'](_0xdafd('0x1b0'),_0x4b69f3[_0xdafd('0x3d')]));this['channel']['noop'](_0xdafd('0x1b1'));var _0x1736ff=this[_0xdafd('0x10')]['getVariable']('XMCS-UNIQUEID');if(!_[_0xdafd('0x171')](_0x1736ff[_0xdafd('0xa5')])){this[_0xdafd('0x10')][_0xdafd('0x3c')]=_0x1736ff[_0xdafd('0xa5')];}if(_0x4b69f3[_0xdafd('0xbf')]===_0xdafd('0x1b2')){this[_0xdafd('0x10')][_0xdafd('0xae')](_0xdafd('0x1b3'));return this[_0xdafd('0x10')]['answer']();}return this[_0xdafd('0x10')][_0xdafd('0xae')](_0xdafd('0x1b4'));};AGIVertices[_0xdafd('0x13')]['subproject']=function(_0x564bb8){logger['info'](util['format'](_0xdafd('0x1b5'),_0x564bb8[_0xdafd('0x3d')]));if(!this[_0xdafd('0xa9')](_0x564bb8['project_id'])){return this[_0xdafd('0x10')][_0xdafd('0x30')](_0x564bb8,'no\x20subproject\x20selected');}var _0x3ddf4e=this[_0xdafd('0x1b6')][_0xdafd('0x72')](this,_0x564bb8[_0xdafd('0x1b7')]);if(!this[_0xdafd('0xa9')](_0x3ddf4e)){return this[_0xdafd('0x10')][_0xdafd('0x30')](_0x564bb8,util[_0xdafd('0x2c')](_0xdafd('0x1b8'),_0x564bb8[_0xdafd('0x1b7')]));}if(_0x3ddf4e===this[_0xdafd('0x10')][_0xdafd('0x3f')]){return this[_0xdafd('0x10')][_0xdafd('0x30')](_0x564bb8,_0xdafd('0x1b9'));}this['createSquareDetailsReport'][_0xdafd('0x72')](this,_0x564bb8,_0x3ddf4e);var _0x4c9c92=this[_0xdafd('0x10')][_0xdafd('0xb0')](_0xdafd('0x1ba'),util[_0xdafd('0x2c')](_0xdafd('0x1bb'),config[_0xdafd('0x8')][_0xdafd('0x1bc')]||_0xdafd('0x1bd'),_0x3ddf4e,this[_0xdafd('0x10')][_0xdafd('0x3f')]));if(_0x4c9c92[_0xdafd('0xa7')]===-0x1){return _0x4c9c92;}return this['channel'][_0xdafd('0xae')](util['format'](_0xdafd('0xc6'),'AGI',_0x3ddf4e));};AGIVertices[_0xdafd('0x13')][_0xdafd('0x1be')]=function(_0x31dbab){logger[_0xdafd('0x32')](util[_0xdafd('0x2c')](_0xdafd('0x1bf'),_0x31dbab['label']));var _0x489e53=this[_0xdafd('0x5b')][_0xdafd('0x72')](this,_0x31dbab[_0xdafd('0xbd')]);this[_0xdafd('0x3b')][_0xdafd('0x72')](this,_0x31dbab,_0x31dbab[_0xdafd('0xbd')]);if(this[_0xdafd('0xa9')](_0x31dbab[_0xdafd('0xda')])){var _0x214c52=this[_0xdafd('0xa4')][_0xdafd('0x72')](this,_0x31dbab[_0xdafd('0xda')]);if(_0x214c52){this['channel'][_0xdafd('0xa1')](_0x214c52,_0x489e53);return this['channel'][_0xdafd('0xae')](util[_0xdafd('0x2c')](_0xdafd('0x1c0'),_0x31dbab[_0xdafd('0xbd')],_0x214c52));}}return this['channel'][_0xdafd('0xae')](util[_0xdafd('0x2c')](_0xdafd('0x1c1'),_0x31dbab[_0xdafd('0xbd')]));};AGIVertices[_0xdafd('0x13')][_0xdafd('0x1c2')]=function(_0x3b0aa7){logger[_0xdafd('0x32')](util[_0xdafd('0x2c')]('Enter\x20in\x20Google\x20Cloud\x20TTS\x20(%s)\x20block',_0x3b0aa7['label']));_0x3b0aa7[_0xdafd('0x60')]=_0x3b0aa7[_0xdafd('0x60')][_0xdafd('0x5c')](/(\r\n|\n|\r)/gm,'\x20');if(!this[_0xdafd('0xa9')](_0x3b0aa7[_0xdafd('0x5e')])){return this[_0xdafd('0x10')][_0xdafd('0xae')]('no\x20apiKey\x20configured');}if(!this[_0xdafd('0xa9')](_0x3b0aa7[_0xdafd('0x60')])){return this['channel'][_0xdafd('0xae')](_0xdafd('0xaf'));}this[_0xdafd('0x10')]['noop'](util[_0xdafd('0x2c')](_0xdafd('0x1c3'),_0x3b0aa7[_0xdafd('0x60')]));var _0x3c489f=this[_0xdafd('0x5d')]['sync'](this,_0x3b0aa7);if(_0x3c489f){this['channel'][_0xdafd('0xae')](util[_0xdafd('0x2c')](_0xdafd('0x1c4'),_0x3c489f));var _0x30ea13=this[_0xdafd('0x10')][_0xdafd('0x108')](_0x3c489f);try{fs[_0xdafd('0x109')](_0x3c489f+_0xdafd('0x10a'));}catch(_0x247df7){logger[_0xdafd('0x30')](_0x247df7);}return _0x30ea13;}return this['channel'][_0xdafd('0x30')](_0x3b0aa7,_0xdafd('0x1c5'));};AGIVertices['prototype'][_0xdafd('0x1c6')]=function(_0x5cd58e){logger[_0xdafd('0x32')](util[_0xdafd('0x2c')](_0xdafd('0x1c7'),_0x5cd58e[_0xdafd('0x3d')]));_0x5cd58e[_0xdafd('0x60')]=_0x5cd58e[_0xdafd('0x60')][_0xdafd('0x5c')](/(\r\n|\n|\r)/gm,'\x20');if(!this[_0xdafd('0xa9')](_0x5cd58e[_0xdafd('0x60')])){return this[_0xdafd('0x10')][_0xdafd('0xae')](_0xdafd('0xaf'));}this[_0xdafd('0x10')]['noop'](util[_0xdafd('0x2c')]('Trying\x20Google\x20TTS\x20%s',_0x5cd58e[_0xdafd('0x60')]));var _0x4dbd7b=this[_0xdafd('0x65')][_0xdafd('0x72')](this,_0x5cd58e);if(_0x4dbd7b){this[_0xdafd('0x10')]['noop'](util[_0xdafd('0x2c')]('Google\x20TTS\x20%s\x20file\x20created',_0x4dbd7b));var _0x3da425=this[_0xdafd('0x10')]['streamFile'](_0x4dbd7b);try{fs[_0xdafd('0x109')](_0x4dbd7b+'.wav');}catch(_0x7a7252){logger[_0xdafd('0x30')](_0x7a7252);}return _0x3da425;}return this['channel'][_0xdafd('0x30')](_0x5cd58e,_0xdafd('0x1c8'));};AGIVertices[_0xdafd('0x13')][_0xdafd('0x1c9')]=function(_0x2234a6){logger['info'](util[_0xdafd('0x2c')]('Enter\x20in\x20UNPAUSE\x20(%s)\x20block',_0x2234a6[_0xdafd('0x3d')]));if(!this['isConfigured'](_0x2234a6['findBy'])){return this[_0xdafd('0x10')]['error'](_0x2234a6,_0xdafd('0x166'));}logger[_0xdafd('0x32')](util[_0xdafd('0x2c')](_0xdafd('0x160'),this[_0xdafd('0x10')][_0xdafd('0x40')],_0x2234a6[_0xdafd('0x161')]));var _0x408eaa=this[_0xdafd('0x1ca')][_0xdafd('0x72')](this,_0x2234a6[_0xdafd('0x161')]);if(_0x408eaa){logger['info'](util[_0xdafd('0x2c')](_0xdafd('0x162'),this[_0xdafd('0x10')]['callerid'],_0x2234a6[_0xdafd('0x161')]));this[_0xdafd('0x10')][_0xdafd('0xae')](util['format'](_0xdafd('0x162'),this[_0xdafd('0x10')]['callerid'],_0x2234a6[_0xdafd('0x161')]));return{'code':0xc8,'result':_0xdafd('0x167')};}else{logger['info'](util['format'](_0xdafd('0x168'),this[_0xdafd('0x10')][_0xdafd('0x40')],_0x2234a6['findBy']));this['channel'][_0xdafd('0xae')](util[_0xdafd('0x2c')](_0xdafd('0x168'),this[_0xdafd('0x10')]['callerid'],_0x2234a6['findBy']));return{'code':0xc8,'result':_0xdafd('0x163')};}};AGIVertices[_0xdafd('0x13')]['voicemail']=function(_0x30aadd){logger[_0xdafd('0x32')](util[_0xdafd('0x2c')]('Enter\x20in\x20VOICEMAIL\x20(%s)\x20block',_0x30aadd['label']));var _0xc6eaf2=this[_0xdafd('0x10')]['exec'](_0xdafd('0x1cb'),[_0x30aadd[_0xdafd('0x1cc')],_0x30aadd[_0xdafd('0x7c')]]);if(_0xc6eaf2[_0xdafd('0xa7')]===-0x1){return _0xc6eaf2;}return this[_0xdafd('0x10')][_0xdafd('0xae')](util[_0xdafd('0x2c')](_0xdafd('0xc6'),_0xdafd('0x1cb'),_0x30aadd['mailbox']));};AGIVertices[_0xdafd('0x13')]['vswitch']=function(_0x4fbd57){logger[_0xdafd('0x32')](util['format'](_0xdafd('0x1cd'),_0x4fbd57[_0xdafd('0x3d')]));if(!this[_0xdafd('0xa9')](_0x4fbd57[_0xdafd('0xda')])){return this['channel'][_0xdafd('0x30')](_0x4fbd57,_0xdafd('0x1ce'));}var _0x5c5d5e=this['getVariable'][_0xdafd('0x72')](this,_0x4fbd57['variable_id']);if(!_0x5c5d5e){return this[_0xdafd('0x10')][_0xdafd('0x30')](_0x4fbd57,_0xdafd('0xdc'));}var _0x4dbe2e=this[_0xdafd('0x10')][_0xdafd('0xa4')](_0x5c5d5e);return{'code':0xc8,'result':_0x4dbe2e['extra']?_0x4dbe2e[_0xdafd('0xa5')]:'-'};};String[_0xdafd('0x13')]['replaceAll']=function(_0xd39485,_0x49c146){return this[_0xdafd('0xa2')](_0xd39485)[_0xdafd('0x1cf')](_0x49c146);};module[_0xdafd('0x1d0')]=AGIVertices;