d5d695e3e94423174322f4ffd536558c466899e1
[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 _0x89c3=['custom_app','Enter\x20in\x20CUSTOM\x20APP\x20(%s)\x20block','application','Executed\x20command\x20%s\x20%s','lumenvoxtts','Enter\x20in\x20LUMENVOXTTS\x20(%s)\x20block','sestektts','Enter\x20in\x20SESTEKTTS\x20(%s)\x20block','Enter\x20in\x20LUMENVOXASR\x20(%s)\x20block','no\x20grammar\x20configured','MRCPRecog','RECOG_CONFIDENCE()','RECOG_INSTANCE()','sestekasr','SESTEK_ASR_CONFIDENCE','SESTEK_ASR_TRANSCRIPT','Enter\x20in\x20DATABASE\x20(%s)\x20block','odbc_id','no\x20variable\x20selected\x20for\x20the\x20result','variable_id','no\x20variable\x20found','forEach','%s[%s][%s]','dial','debug','Enter\x20in\x20DIAL\x20(%s)\x20block','sip_id','no\x20user\x20found','DIAL','SIP/%s','opts','dialogflow','bot','Trying\x20Dialogflow:\x20%s','DIALOGFLOW_%s','speech','Dialogflow\x20is\x20unreachable','dialogflowV2','Enter\x20in\x20DIALOGFLOW\x20V2\x20(%s)\x20block','no\x20project_id\x20configured','no\x20client_email\x20configured','Trying\x20DialogflowV2:\x20%s','providerResponse','sesteknda','Enter\x20in\x20SESTEKNDA\x20(%s)\x20block','ndauth_url','no\x20ndauth\x20url\x20configured','username','no\x20username\x20configured','password','no\x20password\x20configured','Trying\x20SestekNDA:\x20%s','SESTEK_NDA_%s','out','audiofile','Sestek\x20NDA\x20%s\x20file\x20created','streamFile','unlink','.wav','SestekNDA\x20Result\x20%s','SestekNDA\x20is\x20unreachable','Enter\x20in\x20END\x20(%s)\x20block','ext_dial','trunk_id','no\x20trunk\x20selected','trunk_name','SIP/%s/%s','finally','getdigits','Enter\x20in\x20GETDIGITS\x20(%s)\x20block','retry','file_id','no\x20file\x20audio\x20found','getData','response','test','mindigit','maxdigit','generate','hiddendigitspos','substr','goal','Enter\x20in\x20GOAL\x20(%s)\x20block','goalname','GOAL\x20%s','awspolly','Trying\x20aws\x20Polly\x20%s','aws\x20Polly\x20%s\x20file\x20created','awslex','Enter\x20in\x20Amazon\x20Lex\x20(%s)\x20block','aws_bot_name','no\x20bot\x20name\x20configured','AWS_LEX_%s','Amazon\x20Lex\x20ready\x20for\x20fulfillment','amazonlex','Amazon\x20Lex\x20Result\x20%s','message','Amazon\x20Lex\x20is\x20unreachable','Enter\x20in\x20GOOGLEASR\x20(%s)\x20block\x20%s','no\x20key\x20configured','beep','NOBEEP','recordFile','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','wav','%s/recordings/%s','tilde\x20%s\x20file\x20created','TILDE_ASR_%s','TildeASR\x20Result\x20%s','Enter\x20in\x20GOTO\x20(%s)\x20block','continueAt','extension','gotoif','no\x20condition\x20configured','condition','true','false','EVAL\x20CONDITION\x20%s\x20%s','gotoiftime','Enter\x20in\x20GOTOIFTIME\x20(%s)\x20block','interval_id','no\x20interval\x20configured','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','IspeechASR\x20Result\x20%s','ispeechtts','Enter\x20in\x20ISPEECHTTS\x20(%s)\x20block','ispeech\x20TTS\x20is\x20unreachable','login','findBy','no\x20find\x20by\x20configured','FIND\x20AGENT\x20%s\x20BY\x20%s','AGENT\x20%s\x20FOUND\x20BY','success','AGENT\x20%s\x20NOT\x20FOUND\x20BY','failure','logout','Enter\x20in\x20MATH\x20(%s)\x20block','operation','no\x20operation\x20configured','math\x20%s','%s[%s]','variable\x20%s[key]\x20set','Enter\x20in\x20MENU\x20(%s)\x20block','no\x20file\x20audio\x20selected','Enter\x20in\x20NOOP\x20(%s)\x20block','output','Enter\x20in\x20PAUSE\x20(%s)\x20block','playback','Enter\x20in\x20PLAYBACK\x20(%s)\x20block','PLAYBACK','queue','Enter\x20in\x20QUEUE\x20(%s)\x20block','queue_id','no\x20queue\x20selected','no\x20queue\x20found','indexOf','XMCS-QUEUE','toLowerCase','position','QUEUE','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:','no\x20variable\x20selected\x20for\x20the\x20response','%s_STATUS_CODE','200','%s_STATUS_MESSAGE','Unable\x20to\x20set\x20result\x20in\x20variable\x20%s','variable\x20%s\x20set','saydigits','Enter\x20in\x20SAYDIGITS\x20(%s)\x20block','sayDigits','digits','Enter\x20in\x20SAYNUMBER\x20(%s)\x20block','sayNumber','sayphonetic','Enter\x20in\x20SAYPHONETIC\x20(%s)\x20block','Enter\x20in\x20SENDMAIL\x20(%s)\x20block','account_id','no\x20mail\x20account\x20configured','Smtp','\x22%s\x22\x20<%s>','user','bcc','subject','template_id','Trying\x20SendMail\x20with\x20account\x20%s','smtpOptions','Mail\x20message\x20added\x20to\x20outgoing\x20process','SENDFAX\x20block\x20not\x20implemented','sendSMS','sms_account_id','no\x20sms\x20account\x20configured','Sms\x20message\x20added\x20to\x20outgoing\x20process','set','Enter\x20in\x20SET\x20(%s)\x20block','variable_value','start','Enter\x20in\x20START\x20(%s)\x20block','Skipped\x20Answer','subproject','Enter\x20in\x20SUBPROJECT\x20(%s)\x20block','no\x20subproject\x20selected','project_id','no\x20subproject\x20found\x20with\x20id\x20%d','project\x20in\x20subproject\x20must\x20be\x20different\x20from\x20the\x20called\x20project','agi://%s/square,\x22%s\x22,\x22%s\x22','127.0.0.1','AGI','system','Enter\x20in\x20SYSTEM\x20(%s)\x20block','shellCommand','sh\x20command:\x20%s\x20result\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','Google\x20Cloud\x20TTS\x20%s\x20file\x20created','Google\x20Cloud\x20TTS\x20is\x20unreachable','Trying\x20Google\x20TTS\x20%s','Google\x20TTS\x20%s\x20file\x20created','unpause','Enter\x20in\x20UNPAUSE\x20(%s)\x20block','voicemail','Enter\x20in\x20VOICEMAIL\x20(%s)\x20block','VOICEMAIL','mailbox','vswitch','Enter\x20in\x20SWITCH\x20(%s)\x20block','join','exports','util','lodash','shelljs','odbc','randomstring','moment','mustache','request-promise','agi','./scripts','rawBody','getsecretdigits','channel','rpc','mailRpc','prototype','getVariable','getVariableById','then','getVoiceQueue','getVoiceQueueById','name','catch','getSquareProject','getSquareProjectById','getSquareOdbc','getSquareOdbcById','dsn','getUser','getUserById','getTrunk','getSound','getSoundPath','save_name','getMailAccount','getMailAccountById','sendMailMessage','getIntervals','getIntervalById','IntervalId','interval','map','Intervals','format','%s/sounds/converted/%s','getQueryOdbc','open','error','Error\x20getting\x20ODBC\x20connection\x20%s','query','info','Error\x20executing\x20query\x20%s','Error\x20closing\x20connection\x20to\x20odbc\x20%s','getSmsAccount','getSmsAccountById','createSmsMessage','createSquareDetailsReport','uniqueid','agicommand','arg_1','callerid','createSquareRecording','calleridname','context','dnid','file','createSquareMessage','createCmContact','isEmpty','isNil','callback_','random','lastName','phone','list_id','scheduledAt','callback','Callback\x20scheduled\x20at\x20','callback_priority','getPauseById','agentPause','agent','agentUnpause','agentLogout','agentLogin','internal','%s/%s@from-sip/n','LOCAL','trim','replace','googleCloudTTS','apiKey','text','languageCode','en-US','ssmlGender','audioEncoding','MP3','googleTTS','google_tts_language','restAPI','url','timeout','number','includes','POST','toUpperCase','body','An\x20incorrect\x20formatted\x20json\x20body\x20has\x20been\x20passed\x20to\x20the\x20function','headers','rawHeaders','parse','An\x20incorrect\x20formatted\x20json\x20headers\x20has\x20been\x20passed\x20to\x20the\x20function','computedVariables','sync','uri','render','stringify','statusCode','statusMessage','options','googleDialogflow','key','googleDialogflowV2','dialogflowV2_project_id','client_email','private_key','dialogflowV2_language','sestekNDA','ispeechTTS','ispeechASR','ispeech_asr_language','isConfigured','model','awsPolly','aws_secret_access_key','aws_polly_region','aws_polly_voice','Amy','aws_text_type','awsLex','aws_access_key_id','aws_lex_region','googleASR','google_asr_language','tildeASR','appid','appsecret','clear','clone','hasOwnProperty','isString','replaceObjectAllVariables','replaceAllVariables','recursiveNodeIndex','isArray','length','saveRestApiResult','isPlainObject','%s.%s','split','replaceAll','extra','toString','result','setVariable','maxRetry','mrcpsynth','Enter\x20in\x20MRCPSynth\x20(%s)\x20block','label','noop','no\x20text\x20configured','exec','MRCPSynth','Executed\x20command\x20MRCPSynth\x20%s','mrcprecog','Enter\x20in\x20MRCPRecog\x20(%s)\x20block','grammar','getAndSetVariable','MRCP_RECOG_CONFIDENCE','RECOG_INPUT()','MRCP_RECOG_TRANSCRIPT','Executed\x20command\x20MRCPRecog\x20%s','command','Enter\x20in\x20ANSWER\x20(%s)\x20block','Wait\x20%s\x20seconds\x20before\x20answer','answer','Enter\x20in\x20CALLBACK\x20(%s)\x20block','no\x20list\x20selected','add','delay','minutes'];(function(_0x1f7413,_0x3388c3){var _0x2d2775=function(_0x5e5b4){while(--_0x5e5b4){_0x1f7413['push'](_0x1f7413['shift']());}};_0x2d2775(++_0x3388c3);}(_0x89c3,0xff));var _0x389c=function(_0x4e4712,_0x4e1afa){_0x4e4712=_0x4e4712-0x0;var _0x233dd1=_0x89c3[_0x4e4712];return _0x233dd1;};'use strict';var fs=require('fs');var util=require(_0x389c('0x0'));var _=require(_0x389c('0x1'));var sh=require(_0x389c('0x2'));var odbc=require(_0x389c('0x3'))();var rs=require(_0x389c('0x4'));var moment=require(_0x389c('0x5'));var Mustache=require(_0x389c('0x6'));var rp=require(_0x389c('0x7'));var logger=require('../../config/logger')(_0x389c('0x8'));var config=require('../../config/environment');var scripts=require(_0x389c('0x9'));var FILES_PATH='/var/opt/motion2/server/files';var recursiveMapAttributes=['rawHeaders',_0x389c('0xa')];var verticesWithRetry=['menu','getdigits',_0x389c('0xb')];var AGIVertices=function(_0x41b63b,_0x28d373,_0x2efa82){this[_0x389c('0xc')]=_0x41b63b;this[_0x389c('0xd')]=_0x28d373;this[_0x389c('0xe')]=_0x2efa82;};AGIVertices[_0x389c('0xf')][_0x389c('0x10')]=function(_0x564686,_0x202742){this[_0x389c('0xd')][_0x389c('0x11')](_0x564686)[_0x389c('0x12')](function(_0x37f595){_0x202742(null,_0x37f595?_0x37f595['name']:![]);})['catch'](function(_0x2a2d7d){_0x202742(_0x2a2d7d);});};AGIVertices[_0x389c('0xf')][_0x389c('0x13')]=function(_0x501dc8,_0x3f2391){this['rpc'][_0x389c('0x14')](_0x501dc8)[_0x389c('0x12')](function(_0x4d5de3){_0x3f2391(null,_0x4d5de3?_0x4d5de3[_0x389c('0x15')]:![]);})[_0x389c('0x16')](function(_0x36c118){_0x3f2391(_0x36c118);});};AGIVertices['prototype'][_0x389c('0x17')]=function(_0x1ecb4c,_0xf3bc0d){this[_0x389c('0xd')][_0x389c('0x18')](_0x1ecb4c)['then'](function(_0x5b6ef8){_0xf3bc0d(null,_0x5b6ef8?_0x5b6ef8['name']:![]);})[_0x389c('0x16')](function(_0x2e23d2){_0xf3bc0d(_0x2e23d2);});};AGIVertices['prototype'][_0x389c('0x19')]=function(_0x11d40e,_0x421f5f){this[_0x389c('0xd')][_0x389c('0x1a')](_0x11d40e)[_0x389c('0x12')](function(_0x14b845){_0x421f5f(null,_0x14b845?_0x14b845[_0x389c('0x1b')]:![]);})[_0x389c('0x16')](function(_0x4fc960){_0x421f5f(_0x4fc960);});};AGIVertices[_0x389c('0xf')][_0x389c('0x1c')]=function(_0x33fffa,_0xef720){this[_0x389c('0xd')][_0x389c('0x1d')](_0x33fffa)['then'](function(_0x18e06b){_0xef720(null,_0x18e06b?_0x18e06b[_0x389c('0x15')]:![]);})[_0x389c('0x16')](function(_0x2dcd88){_0xef720(_0x2dcd88);});};AGIVertices['prototype'][_0x389c('0x1e')]=function(_0x2729bd,_0x4e09c0){this[_0x389c('0xd')]['getTrunkById'](_0x2729bd)[_0x389c('0x12')](function(_0x307113){_0x4e09c0(null,_0x307113?_0x307113[_0x389c('0x15')]:![]);})[_0x389c('0x16')](function(_0x21ab93){_0x4e09c0(_0x21ab93);});};AGIVertices['prototype'][_0x389c('0x1f')]=function(_0xcc1b60,_0x29e9f8){var _0x23382f=this;this[_0x389c('0xd')]['getSoundById'](_0xcc1b60)[_0x389c('0x12')](function(_0x4e30da){_0x29e9f8(null,_0x4e30da?_0x23382f[_0x389c('0x20')](_0x4e30da[_0x389c('0x21')]):![]);})[_0x389c('0x16')](function(_0xeac171){_0x29e9f8(_0xeac171);});};AGIVertices['prototype'][_0x389c('0x22')]=function(_0x80a2e1,_0x594f6a){this[_0x389c('0xd')][_0x389c('0x23')](_0x80a2e1)[_0x389c('0x12')](function(_0xa1cf2b){_0x594f6a(null,_0xa1cf2b?_0xa1cf2b:![]);})[_0x389c('0x16')](function(_0x2219f3){_0x594f6a(_0x2219f3);});};AGIVertices[_0x389c('0xf')][_0x389c('0x24')]=function(_0x22220d,_0x6c7d45,_0x34885e){this[_0x389c('0xe')]['sendMailMessage'](_0x22220d,_0x6c7d45)['then'](function(){_0x34885e(null);})['catch'](function(_0x19a63f){_0x34885e(_0x19a63f);});};AGIVertices['prototype'][_0x389c('0x25')]=function(_0x4973c5,_0xadda60){this[_0x389c('0xd')][_0x389c('0x26')](_0x4973c5)[_0x389c('0x12')](function(_0x4b5b6c){if(_0x4b5b6c){if(_0x4b5b6c[_0x389c('0x27')]){_0xadda60(null,[_0x4b5b6c[_0x389c('0x28')]]);}else{_0xadda60(null,_[_0x389c('0x29')](_0x4b5b6c[_0x389c('0x2a')],_0x389c('0x28')));}}else{_0xadda60(null,![]);}})[_0x389c('0x16')](function(_0x4d0217){_0xadda60(_0x4d0217);});};AGIVertices['prototype'][_0x389c('0x20')]=function(_0x192009){return util[_0x389c('0x2b')](_0x389c('0x2c'),FILES_PATH,_0x192009);};AGIVertices[_0x389c('0xf')][_0x389c('0x2d')]=function(_0x418a84,_0x337f81,_0x22341d){odbc[_0x389c('0x2e')](_0x418a84,function(_0x3eec96){if(_0x3eec96){logger[_0x389c('0x2f')](_0x389c('0x30'),_0x3eec96);_0x22341d(_0x3eec96);}else{logger['info']('ODBC\x20connection\x20successfully');odbc[_0x389c('0x31')](_0x337f81,function(_0x5b819f,_0x451c13){if(_0x5b819f){logger[_0x389c('0x32')](_0x389c('0x33'),_0x337f81);_0x22341d(_0x5b819f);}else{logger[_0x389c('0x32')]('Query\x20executed\x20correctly\x20%s',_0x337f81);odbc['close'](function(_0x31b0fa){if(_0x31b0fa){logger[_0x389c('0x2f')](_0x389c('0x34'),_0x31b0fa);}_0x22341d(null,_0x451c13);});}});}});};AGIVertices['prototype'][_0x389c('0x35')]=function(_0x2884c4,_0x37f4d7){this[_0x389c('0xd')][_0x389c('0x36')](_0x2884c4)[_0x389c('0x12')](function(_0x4c67cf){_0x37f4d7(null,_0x4c67cf?_0x4c67cf:![]);})[_0x389c('0x16')](function(_0x1c73b9){_0x37f4d7(_0x1c73b9);});};AGIVertices[_0x389c('0xf')][_0x389c('0x37')]=function(_0x56ea80,_0x195b4e){this['rpc'][_0x389c('0x37')](_0x56ea80)[_0x389c('0x12')](function(_0x2ff312){_0x195b4e(null,_0x2ff312);})[_0x389c('0x16')](function(_0x850845){_0x195b4e(_0x850845);});};AGIVertices[_0x389c('0xf')][_0x389c('0x38')]=function(_0x176110,_0x2fc644,_0x213bd9){this[_0x389c('0xd')]['createSquareDetailsReport']({'uniqueid':this[_0x389c('0xc')][_0x389c('0x39')],'node':_0x176110['label'],'application':_0x176110[_0x389c('0x3a')],'data':_0x2fc644||null,'project_name':this['channel'][_0x389c('0x3b')],'callerid':this[_0x389c('0xc')][_0x389c('0x3c')]})[_0x389c('0x12')](function(_0x2f708b){if(_0x213bd9){_0x213bd9(null,_0x2f708b);}})[_0x389c('0x16')](function(_0xc2ef3c){if(_0x213bd9){_0x213bd9(_0xc2ef3c);}});};AGIVertices[_0x389c('0xf')][_0x389c('0x3d')]=function(_0x439ff7,_0x127fc5,_0x368503,_0x3c9003){this['rpc']['createSquareRecording']({'uniqueid':this[_0x389c('0xc')][_0x389c('0x39')],'callerid':this[_0x389c('0xc')]['callerid'],'calleridname':this[_0x389c('0xc')][_0x389c('0x3e')],'context':this[_0x389c('0xc')][_0x389c('0x3f')],'extension':this['channel']['extension'],'priority':this['channel']['priority'],'accountcode':this[_0x389c('0xc')]['accountcode'],'dnid':this['channel'][_0x389c('0x40')],'projectName':this[_0x389c('0xc')][_0x389c('0x3b')],'saveName':_0x127fc5,'filename':_0x439ff7[_0x389c('0x41')]||_0x127fc5,'savePath':_0x368503})[_0x389c('0x12')](function(_0xd37a48){_0x3c9003(null,_0xd37a48);})[_0x389c('0x16')](function(_0x556928){_0x3c9003(_0x556928);});};AGIVertices[_0x389c('0xf')][_0x389c('0x42')]=function(_0x28e449,_0x10581a,_0x3efa0f,_0x26f7cc,_0x483eb8){this[_0x389c('0xd')]['createSquareMessage']({'uniqueid':this[_0x389c('0xc')]['uniqueid'],'body':_0x28e449,'direction':_0x10581a,'providerName':_0x3efa0f,'providerResponse':_0x26f7cc})[_0x389c('0x12')](function(_0x1589eb){if(_0x483eb8){_0x483eb8(null,_0x1589eb);}})[_0x389c('0x16')](function(_0x3c684c){if(_0x483eb8){_0x483eb8(_0x3c684c);}});};AGIVertices[_0x389c('0xf')][_0x389c('0x43')]=function(_0x5ad065,_0x151829){this[_0x389c('0xd')]['createCmContact']({'firstName':_[_0x389c('0x44')](_0x5ad065[_0x389c('0x15')])||_[_0x389c('0x45')](_0x5ad065['name'])?_0x389c('0x46')+Math[_0x389c('0x47')]():_0x5ad065['name'],'lastName':_[_0x389c('0x44')](_0x5ad065[_0x389c('0x48')])||_['isNil'](_0x5ad065[_0x389c('0x48')])?null:_0x5ad065[_0x389c('0x48')],'phone':_0x5ad065[_0x389c('0x49')],'ListId':_0x5ad065[_0x389c('0x4a')],'scheduledat':_0x5ad065[_0x389c('0x4b')],'callbackUniqueid':this[_0x389c('0xc')][_0x389c('0x39')],'tags':_0x389c('0x4c'),'description':_0x389c('0x4d')+_0x5ad065[_0x389c('0x4b')]['toString'](),'priority':_0x5ad065[_0x389c('0x4e')]})[_0x389c('0x12')](function(_0x3c2469){_0x151829(null,_0x3c2469);})['catch'](function(_0x407816){_0x151829(_0x407816);});};AGIVertices['prototype']['getPause']=function(_0x37cac6,_0x33a7a1){this[_0x389c('0xd')][_0x389c('0x4f')](_0x37cac6)[_0x389c('0x12')](function(_0x56c31a){_0x33a7a1(null,_0x56c31a?_0x56c31a[_0x389c('0x15')]:![]);})[_0x389c('0x16')](function(_0x19a92c){_0x33a7a1(_0x19a92c);});};AGIVertices['prototype'][_0x389c('0x50')]=function(_0x3a1f8d,_0x2d1444,_0x645ded){var _0x47c6c6={'role':_0x389c('0x51')};_0x47c6c6[_0x3a1f8d]=this[_0x389c('0xc')][_0x389c('0x3c')];this[_0x389c('0xd')][_0x389c('0x50')](_0x47c6c6,_0x2d1444,this['channel']['uniqueid'])[_0x389c('0x12')](function(_0x4bf9ec){_0x645ded(null,_[_0x389c('0x45')](_0x4bf9ec)?![]:!![]);})[_0x389c('0x16')](function(_0x2f7483){logger['error'](_0x2f7483);_0x645ded(null,![]);});};AGIVertices[_0x389c('0xf')]['agentUnpause']=function(_0x18d3d7,_0x5e24a6){var _0x41e244={'role':'agent'};_0x41e244[_0x18d3d7]=this[_0x389c('0xc')][_0x389c('0x3c')];this[_0x389c('0xd')][_0x389c('0x52')](_0x41e244)['then'](function(_0x34a05a){_0x5e24a6(null,_[_0x389c('0x45')](_0x34a05a)?![]:!![]);})['catch'](function(_0x1bd349){logger['error'](_0x1bd349);_0x5e24a6(null,![]);});};AGIVertices['prototype'][_0x389c('0x53')]=function(_0x2b7358,_0x2ef819){var _0x4ce5fd={'role':_0x389c('0x51')};_0x4ce5fd[_0x2b7358]=this[_0x389c('0xc')][_0x389c('0x3c')];this[_0x389c('0xd')]['agentLogout'](_0x4ce5fd)[_0x389c('0x12')](function(_0x4d9230){_0x2ef819(null,_['isNil'](_0x4d9230)?![]:!![]);})[_0x389c('0x16')](function(_0x42c4f6){logger['error'](_0x42c4f6);_0x2ef819(null,![]);});};AGIVertices[_0x389c('0xf')][_0x389c('0x54')]=function(_0x4ede90,_0x480b5e){var _0x3d08b0={'role':_0x389c('0x51')};_0x3d08b0[_0x4ede90]=this[_0x389c('0xc')][_0x389c('0x3c')];var _0x3d9f99=_0x4ede90!=_0x389c('0x55')?util[_0x389c('0x2b')](_0x389c('0x56'),_0x389c('0x57'),this[_0x389c('0xc')][_0x389c('0x3c')]):undefined;this['rpc'][_0x389c('0x54')](_0x3d08b0,_0x3d9f99)[_0x389c('0x12')](function(_0x3c2844){_0x480b5e(null,_['isNil'](_0x3c2844)?![]:!![]);})[_0x389c('0x16')](function(_0xa8265c){logger[_0x389c('0x2f')](_0xa8265c);_0x480b5e(null,![]);});};AGIVertices[_0x389c('0xf')]['shellCommand']=function(_0x2112b6,_0x136966){sh['exec'](_[_0x389c('0x58')](_0x2112b6),function(_0x3acab3,_0x3abf92){var _0x351748=_0x3abf92[_0x389c('0x59')](/(\r\n|\n|\r)/gm,'');_0x136966(null,_0x351748);});};AGIVertices[_0x389c('0xf')][_0x389c('0x5a')]=function(_0xe6c8b4,_0x33ef0c){scripts[_0x389c('0x5a')](_0xe6c8b4[_0x389c('0x5b')],_0xe6c8b4['google_cloud_tts_text_type']||_0x389c('0x5c'),_0xe6c8b4['text'],_0xe6c8b4[_0x389c('0x5d')]||_0x389c('0x5e'),_0xe6c8b4[_0x389c('0x5f')]||'MALE',_0xe6c8b4[_0x389c('0x60')]||_0x389c('0x61'))['then'](function(_0x2f99ea){_0x33ef0c(null,_0x2f99ea);})['catch'](function(_0x5492a9){_0x33ef0c(_0x5492a9);});};AGIVertices[_0x389c('0xf')][_0x389c('0x62')]=function(_0x526dbe,_0x5a755f){scripts[_0x389c('0x62')](_0x526dbe[_0x389c('0x5c')],_0x526dbe[_0x389c('0x63')]||'en',0x1)[_0x389c('0x12')](function(_0x211347){_0x5a755f(null,_0x211347);})[_0x389c('0x16')](function(_0x57a80f){_0x5a755f(_0x57a80f);});};AGIVertices[_0x389c('0xf')][_0x389c('0x64')]=function(_0x135ebd,_0xe3b7b2){var _0x58885f={'uri':_0x135ebd[_0x389c('0x65')],'method':_0x135ebd['method'],'json':!![],'resolveWithFullResponse':!![],'strictSSL':![],'timeout':typeof parseInt(_0x135ebd[_0x389c('0x66')])===_0x389c('0x67')&&parseInt(_0x135ebd[_0x389c('0x66')])>=0x1?parseInt(_0x135ebd[_0x389c('0x66')])*0x3e8:0x5*0x3e8};if(_[_0x389c('0x68')]([_0x389c('0x69'),'PUT'],_0x58885f['method'][_0x389c('0x6a')]())){try{_0x58885f[_0x389c('0x6b')]=_0x135ebd[_0x389c('0xa')]?JSON['parse'](_0x135ebd[_0x389c('0xa')]):{};}catch(_0x232794){logger['error'](_0x389c('0x6c'),_0x232794);}}try{_0x58885f[_0x389c('0x6d')]=_0x135ebd[_0x389c('0x6e')]?JSON[_0x389c('0x6f')](_0x135ebd[_0x389c('0x6e')]):{};}catch(_0x48ac95){logger[_0x389c('0x2f')](_0x389c('0x70'),_0x48ac95);}if(_0x135ebd['computedVariables']){try{var _0x12ae7b=require(_0x135ebd[_0x389c('0x71')])[_0x389c('0x72')](this,_0x58885f);_0x58885f[_0x389c('0x73')]=Mustache[_0x389c('0x74')](_0x135ebd[_0x389c('0x65')],_0x12ae7b,{},['$$','$$']);if(_0x58885f[_0x389c('0x6d')]){_0x58885f[_0x389c('0x6d')]=JSON['parse'](Mustache[_0x389c('0x74')](JSON[_0x389c('0x75')](_0x58885f[_0x389c('0x6d')]),_0x12ae7b,{},['$$','$$']));}if(_0x58885f[_0x389c('0x6b')]){_0x58885f[_0x389c('0x6b')]=JSON['parse'](Mustache['render'](JSON[_0x389c('0x75')](_0x58885f[_0x389c('0x6b')]),_0x12ae7b,{},['$$','$$']));}}catch(_0x63cb59){logger[_0x389c('0x2f')]('An\x20incorrect\x20formatted\x20json\x20has\x20been\x20passed\x20to\x20the\x20function',_0x63cb59);}}rp(_0x58885f)[_0x389c('0x12')](function(_0x398859){var _0x300389={'statusCode':_0x398859[_0x389c('0x76')]||0xc8,'statusMessage':_0x398859[_0x389c('0x77')]||'OK','headers':_0x398859['headers']||{},'body':_0x398859['body']||{}};_0xe3b7b2(null,_0x300389);})[_0x389c('0x16')](function(_0x24197e){var _0x3e71c6={'statusCode':_0x24197e[_0x389c('0x76')]||0x1f4,'statusMessage':_0x24197e['message']||'500\x20-\x20Internal\x20Server\x20Error','headers':_0x24197e[_0x389c('0x78')][_0x389c('0x6d')]||{},'body':_0x24197e[_0x389c('0x78')][_0x389c('0x6b')]||{}};_0xe3b7b2(null,_0x3e71c6);});};AGIVertices[_0x389c('0xf')][_0x389c('0x79')]=function(_0x589598,_0x1f8960){scripts[_0x389c('0x79')](this[_0x389c('0xc')][_0x389c('0x39')],_0x589598[_0x389c('0x7a')],_0x589598[_0x389c('0x5c')],_0x589598['dialogflow_language']||'en')[_0x389c('0x12')](function(_0x14a652){_0x1f8960(null,_0x14a652);})[_0x389c('0x16')](function(_0x3379cf){_0x1f8960(_0x3379cf);});};AGIVertices[_0x389c('0xf')][_0x389c('0x7b')]=function(_0x2ea6d8,_0x34adf5){scripts[_0x389c('0x7b')](this['channel'][_0x389c('0x39')],_0x2ea6d8[_0x389c('0x7c')],_0x2ea6d8[_0x389c('0x7d')],_0x2ea6d8[_0x389c('0x7e')],_0x2ea6d8[_0x389c('0x5c')],_0x2ea6d8[_0x389c('0x7f')]||'en')['then'](function(_0x511663){_0x34adf5(null,_0x511663);})[_0x389c('0x16')](function(_0x363111){_0x34adf5(_0x363111);});};AGIVertices['prototype'][_0x389c('0x80')]=function(_0xfc98f,_0x327390){scripts[_0x389c('0x80')](this[_0x389c('0xc')],_0xfc98f)[_0x389c('0x12')](function(_0x5c7532){_0x327390(null,_0x5c7532);})[_0x389c('0x16')](function(_0x508599){_0x327390(_0x508599);});};AGIVertices['prototype'][_0x389c('0x81')]=function(_0x2fa0d0,_0x5e37cf){scripts[_0x389c('0x81')](_0x2fa0d0['key'],_0x2fa0d0[_0x389c('0x5c')],_0x2fa0d0['ispeech_tts_language']||_0x389c('0x5e'),_0x2fa0d0['speed'])['then'](function(_0x4d8c35){_0x5e37cf(null,_0x4d8c35);})[_0x389c('0x16')](function(_0x20a220){_0x5e37cf(_0x20a220);});};AGIVertices['prototype'][_0x389c('0x82')]=function(_0x474a6a,_0x5c5fd0,_0x4e6b13){scripts[_0x389c('0x82')](_0x5c5fd0,_0x474a6a['key'],_0x474a6a[_0x389c('0x83')]||_0x389c('0x5e'),this[_0x389c('0x84')](_0x474a6a['model'])?_0x474a6a[_0x389c('0x85')]:undefined)['then'](function(_0x149eed){_0x4e6b13(null,_0x149eed);})[_0x389c('0x16')](function(_0x413f54){_0x4e6b13(_0x413f54);});};AGIVertices[_0x389c('0xf')][_0x389c('0x86')]=function(_0x356666,_0x2a6c0f){scripts[_0x389c('0x86')](_0x356666['aws_access_key_id'],_0x356666[_0x389c('0x87')],_0x356666[_0x389c('0x88')],_0x356666[_0x389c('0x89')]||_0x389c('0x8a'),_0x356666[_0x389c('0x5c')],_0x356666[_0x389c('0x8b')]||'text')[_0x389c('0x12')](function(_0x118fdd){_0x2a6c0f(null,_0x118fdd);})['catch'](function(_0x2e5d54){_0x2a6c0f(_0x2e5d54);});};AGIVertices['prototype'][_0x389c('0x8c')]=function(_0x57af6d,_0x1c1cd2){scripts[_0x389c('0x8c')](this['channel'][_0x389c('0x39')],_0x57af6d[_0x389c('0x8d')],_0x57af6d[_0x389c('0x87')],_0x57af6d[_0x389c('0x8e')],_0x57af6d[_0x389c('0x5c')],_0x57af6d['aws_bot_name'])[_0x389c('0x12')](function(_0x2e3d0e){_0x1c1cd2(null,_0x2e3d0e);})[_0x389c('0x16')](function(_0x5e61d2){_0x1c1cd2(_0x5e61d2);});};AGIVertices[_0x389c('0xf')][_0x389c('0x8f')]=function(_0x385c63,_0x4a13f8,_0x2440f4){scripts[_0x389c('0x8f')](_0x4a13f8,_0x385c63['key'],_0x385c63[_0x389c('0x90')]||_0x389c('0x5e'))[_0x389c('0x12')](function(_0x17ee16){_0x2440f4(null,_0x17ee16);})[_0x389c('0x16')](function(_0x34eefc){_0x2440f4(_0x34eefc);});};AGIVertices[_0x389c('0xf')][_0x389c('0x91')]=function(_0x20bac8,_0x520455,_0x5e417b){scripts[_0x389c('0x91')](_0x520455,_0x20bac8[_0x389c('0x92')],_0x20bac8[_0x389c('0x93')],_0x20bac8[_0x389c('0x73')])[_0x389c('0x12')](function(_0x574f51){_0x5e417b(null,_0x574f51);})[_0x389c('0x16')](function(_0x1db5ce){_0x5e417b(_0x1db5ce);});};AGIVertices[_0x389c('0xf')][_0x389c('0x94')]=function(_0x26f61b){var _0x1149c7=_[_0x389c('0x68')](verticesWithRetry,_0x26f61b[_0x389c('0x3a')])?_0x26f61b:_[_0x389c('0x95')](_0x26f61b);for(var _0xd7c1a7 in _0x1149c7){if(_0x1149c7[_0x389c('0x96')](_0xd7c1a7)){if(_0x1149c7[_0xd7c1a7]&&_[_0x389c('0x97')](_0x1149c7[_0xd7c1a7])){if(_['includes'](recursiveMapAttributes,_0xd7c1a7)){_0x1149c7[_0xd7c1a7]=this[_0x389c('0x98')](_0x1149c7[_0xd7c1a7]);}else{_0x1149c7[_0xd7c1a7]=this[_0x389c('0x99')](_0x1149c7[_0xd7c1a7]);}}}}return _0x1149c7;};AGIVertices[_0x389c('0xf')][_0x389c('0x9a')]=function(_0x4c583f){for(var _0x1125da in _0x4c583f){if(_0x4c583f[_0x389c('0x96')](_0x1125da)){if(_['isPlainObject'](_0x4c583f[_0x1125da])){this['recursiveNodeIndex'](_0x4c583f[_0x1125da]);}else if(_[_0x389c('0x9b')](_0x4c583f[_0x1125da])){for(var _0x1d1b58=0x0;_0x1d1b58<_0x4c583f[_0x1125da][_0x389c('0x9c')];_0x1d1b58++){this[_0x389c('0x9a')](_0x4c583f[_0x1125da][_0x1d1b58]);}}else if(_[_0x389c('0x97')](_0x4c583f[_0x1125da])){_0x4c583f[_0x1125da]=this[_0x389c('0x99')](_0x4c583f[_0x1125da]);}}}};AGIVertices[_0x389c('0xf')][_0x389c('0x9d')]=function(_0x123f77,_0x1443cd){for(var _0x4ba851 in _0x123f77){if(_0x123f77[_0x389c('0x96')](_0x4ba851)){if(_[_0x389c('0x9e')](_0x123f77[_0x4ba851])){if(!_['isEmpty'](_0x123f77[_0x4ba851])){this[_0x389c('0x9d')](_0x123f77[_0x4ba851],util[_0x389c('0x2b')](_0x389c('0x9f'),_0x1443cd,_0x4ba851));}}else if(_[_0x389c('0x9b')](_0x123f77[_0x4ba851])){for(var _0x348664=0x0;_0x348664<_0x123f77[_0x4ba851][_0x389c('0x9c')];_0x348664++){this[_0x389c('0x9d')](_0x123f77[_0x4ba851][_0x348664],util[_0x389c('0x2b')]('%s.%s',_0x1443cd,_0x4ba851+'['+_0x348664+']'));}}else{if(!_['isNil'](_0x123f77[_0x4ba851])){this[_0x389c('0xc')]['setVariable'](util['format'](_0x389c('0x9f'),_0x1443cd,_0x4ba851),_0x123f77[_0x4ba851]);}}}}};AGIVertices[_0x389c('0xf')]['replaceObjectAllVariables']=function(_0x7074af){try{var _0x2490db=JSON['parse'](_0x7074af);this['recursiveNodeIndex'](_0x2490db);return JSON[_0x389c('0x75')](_0x2490db);}catch(_0x3c48f2){return this[_0x389c('0x99')](_0x7074af);}};AGIVertices[_0x389c('0xf')][_0x389c('0x99')]=function(_0x28006f){var _0x3cec43=_0x28006f[_0x389c('0xa0')]('{');for(var _0x3e1dbb=0x1;_0x3e1dbb<_0x3cec43[_0x389c('0x9c')];_0x3e1dbb+=0x1){var _0x347c9d=_0x3cec43[_0x3e1dbb][_0x389c('0xa0')]('}');if(_0x347c9d[_0x389c('0x9c')]>0x1){_0x28006f=_0x28006f[_0x389c('0xa1')]('{'+_0x347c9d[0x0]+'}',this[_0x389c('0xc')][_0x389c('0x10')](_0x347c9d[0x0])[_0x389c('0xa2')]||_0x347c9d[0x0]);}}if(_0x3cec43[_0x389c('0x9c')]===0x1){return _0x28006f[_0x389c('0xa3')]();}return this['replaceAllVariables'](_0x28006f);};AGIVertices[_0x389c('0xf')]['getAndSetVariable']=function(_0x4b0728,_0x226030){var _0x1bc21f=this[_0x389c('0xc')][_0x389c('0x10')](_0x4b0728);if(_0x1bc21f[_0x389c('0xa4')]===-0x1){return _0x1bc21f;}logger[_0x389c('0x32')](util[_0x389c('0x2b')]('The\x20\x22%s\x22\x20variable\x20value\x20is:\x20%s',_0x226030,_0x1bc21f[_0x389c('0xa2')]));return this[_0x389c('0xc')][_0x389c('0xa5')](_0x226030,_0x1bc21f[_0x389c('0xa2')]);};AGIVertices[_0x389c('0xf')][_0x389c('0x84')]=function(_0xdcdbc0){return _0xdcdbc0&&_0xdcdbc0!=='0'&&_0xdcdbc0!=='-1'&&_0xdcdbc0!=='';};AGIVertices[_0x389c('0xf')][_0x389c('0xa6')]=function(_0x4dcfe0){this[_0x389c('0x38')]['sync'](this,_0x4dcfe0,'-');_0x4dcfe0['retry']=_0x4dcfe0[_0x389c('0xa6')];return{'code':0xc8,'result':'-'};};AGIVertices['prototype'][_0x389c('0xa7')]=function(_0x25cba4){logger[_0x389c('0x32')](util[_0x389c('0x2b')](_0x389c('0xa8'),_0x25cba4[_0x389c('0xa9')]));if(!this[_0x389c('0x84')](_0x25cba4[_0x389c('0x5c')])){return this[_0x389c('0xc')][_0x389c('0xaa')](_0x389c('0xab'));}var _0x138db7='\x22'+_0x25cba4['text']+'\x22';if(this[_0x389c('0x84')](_0x25cba4['options'])){_0x138db7+=','+_0x25cba4[_0x389c('0x78')];}var _0x2fb476=this[_0x389c('0xc')][_0x389c('0xac')](_0x389c('0xad'),_0x138db7);if(_0x2fb476['result']===-0x1){return _0x2fb476;}return this[_0x389c('0xc')][_0x389c('0xaa')](util['format'](_0x389c('0xae'),_0x138db7));};AGIVertices[_0x389c('0xf')][_0x389c('0xaf')]=function(_0x30529e){logger[_0x389c('0x32')](util[_0x389c('0x2b')](_0x389c('0xb0'),_0x30529e[_0x389c('0xa9')]));if(!this['isConfigured'](_0x30529e[_0x389c('0xb1')])){return this[_0x389c('0xc')][_0x389c('0xaa')]('no\x20grammar\x20configured');}var _0x4b4a57=_0x30529e[_0x389c('0xb1')];if(this[_0x389c('0x84')](_0x30529e[_0x389c('0x78')])){_0x4b4a57+=','+_0x30529e[_0x389c('0x78')];}var _0x222875=this[_0x389c('0xc')]['exec']('MRCPRecog',_0x4b4a57);if(_0x222875[_0x389c('0xa4')]===-0x1){return _0x222875;}var _0x10d8a3=this[_0x389c('0xb2')]('RECOG_CONFIDENCE()',_0x389c('0xb3'));if(_0x10d8a3[_0x389c('0xa4')]===-0x1){return _0x10d8a3;}var _0x55ba23=this[_0x389c('0xb2')](_0x389c('0xb4'),_0x389c('0xb5'));if(_0x55ba23[_0x389c('0xa4')]===-0x1){return _0x55ba23;}var _0x108a38=this[_0x389c('0xb2')]('RECOG_INSTANCE()','MRCP_RECOG_INSTANCE');if(_0x108a38[_0x389c('0xa4')]===-0x1){return _0x108a38;}return this[_0x389c('0xc')]['noop'](util['format'](_0x389c('0xb6'),_0x4b4a57));};AGIVertices['prototype'][_0x389c('0x8')]=function(_0x1b354d){logger['info'](util[_0x389c('0x2b')]('Enter\x20in\x20AGI\x20(%s)\x20block',_0x1b354d['label']));return this[_0x389c('0xc')][_0x389c('0x8')]([_0x1b354d[_0x389c('0xb7')],_0x1b354d['args']]);};AGIVertices[_0x389c('0xf')]['answer']=function(_0x16ea6e){logger[_0x389c('0x32')](util[_0x389c('0x2b')](_0x389c('0xb8'),_0x16ea6e['label']));if(this[_0x389c('0x84')](_0x16ea6e['timeout'])){logger[_0x389c('0x32')](util[_0x389c('0x2b')](_0x389c('0xb9'),_0x16ea6e[_0x389c('0x66')]));var _0x30af2e=this[_0x389c('0xc')]['wait'](_0x16ea6e[_0x389c('0x66')]);if(_0x30af2e[_0x389c('0xa4')]===-0x1){return _0x30af2e;}}return this[_0x389c('0xc')][_0x389c('0xba')]();};AGIVertices[_0x389c('0xf')][_0x389c('0x4c')]=function(_0x29618f){logger[_0x389c('0x32')](util['format'](_0x389c('0xbb'),_0x29618f[_0x389c('0xa9')]));if(!this['isConfigured'](_0x29618f['list_id'])){return this[_0x389c('0xc')][_0x389c('0x2f')](_0x29618f,_0x389c('0xbc'));}_0x29618f['scheduledAt']=moment();if(this['isConfigured'](_0x29618f['delay'])){_0x29618f[_0x389c('0x4b')]=moment()[_0x389c('0xbd')](_0x29618f[_0x389c('0xbe')],_0x389c('0xbf'));}if(!this[_0x389c('0x84')](_0x29618f['callback_priority'])){_0x29618f[_0x389c('0x4e')]=0x2;}this[_0x389c('0x43')]['sync'](this,_0x29618f);return this[_0x389c('0xc')][_0x389c('0xaa')](util[_0x389c('0x2b')]('CALLBACK\x20added\x20phone:\x20%s\x20on\x20list:\x20%s\x20at\x20%s',_0x29618f['phone'],_0x29618f[_0x389c('0x4a')],_0x29618f[_0x389c('0x4b')]));};AGIVertices[_0x389c('0xf')][_0x389c('0xc0')]=function(_0x53aa76){logger[_0x389c('0x32')](util[_0x389c('0x2b')](_0x389c('0xc1'),_0x53aa76['label']));var _0x29d58e=this['channel']['exec'](_0x53aa76[_0x389c('0xc2')],_0x53aa76['options']);if(_0x29d58e['result']===-0x1){return _0x29d58e;}return this[_0x389c('0xc')]['noop'](util['format'](_0x389c('0xc3'),_0x53aa76[_0x389c('0xc2')],_0x53aa76[_0x389c('0x78')]));};AGIVertices[_0x389c('0xf')][_0x389c('0xc4')]=function(_0x5e9a64){logger[_0x389c('0x32')](util[_0x389c('0x2b')](_0x389c('0xc5'),_0x5e9a64[_0x389c('0xa9')]));if(!this[_0x389c('0x84')](_0x5e9a64[_0x389c('0x5c')])){return this[_0x389c('0xc')][_0x389c('0xaa')](_0x389c('0xab'));}var _0x2d3342='\x22'+_0x5e9a64[_0x389c('0x5c')]+'\x22';if(this[_0x389c('0x84')](_0x5e9a64[_0x389c('0x78')])){_0x2d3342+=','+_0x5e9a64[_0x389c('0x78')];}var _0x3bd0f7=this[_0x389c('0xc')][_0x389c('0xac')](_0x389c('0xad'),_0x2d3342);if(_0x3bd0f7['result']===-0x1){return _0x3bd0f7;}return this['channel'][_0x389c('0xaa')](util['format'](_0x389c('0xae'),_0x2d3342));};AGIVertices[_0x389c('0xf')][_0x389c('0xc6')]=function(_0x56f4ff){logger[_0x389c('0x32')](util[_0x389c('0x2b')](_0x389c('0xc7'),_0x56f4ff[_0x389c('0xa9')]));if(!this[_0x389c('0x84')](_0x56f4ff[_0x389c('0x5c')])){return this[_0x389c('0xc')][_0x389c('0xaa')](_0x389c('0xab'));}var _0x5ac901='\x22'+_0x56f4ff['text']+'\x22';if(this['isConfigured'](_0x56f4ff[_0x389c('0x78')])){_0x5ac901+=','+_0x56f4ff['options'];}var _0x2adb6e=this[_0x389c('0xc')][_0x389c('0xac')](_0x389c('0xad'),_0x5ac901);if(_0x2adb6e[_0x389c('0xa4')]===-0x1){return _0x2adb6e;}return this['channel'][_0x389c('0xaa')](util[_0x389c('0x2b')]('Executed\x20command\x20MRCPSynth\x20%s',_0x5ac901));};AGIVertices['prototype']['lumenvoxasr']=function(_0x4a2371){logger[_0x389c('0x32')](util[_0x389c('0x2b')](_0x389c('0xc8'),_0x4a2371[_0x389c('0xa9')]));if(!this[_0x389c('0x84')](_0x4a2371[_0x389c('0xb1')])){return this[_0x389c('0xc')][_0x389c('0xaa')](_0x389c('0xc9'));}var _0x31b726=_0x4a2371['grammar'];if(this[_0x389c('0x84')](_0x4a2371[_0x389c('0x78')])){_0x31b726+=','+_0x4a2371['options'];}var _0x86911b=this['channel'][_0x389c('0xac')](_0x389c('0xca'),_0x31b726);if(_0x86911b[_0x389c('0xa4')]===-0x1){return _0x86911b;}var _0x21948d=this[_0x389c('0xb2')](_0x389c('0xcb'),'LUMENVOX_ASR_CONFIDENCE');if(_0x21948d[_0x389c('0xa4')]===-0x1){return _0x21948d;}var _0x28492e=this['getAndSetVariable']('RECOG_INPUT()','LUMENVOX_ASR_TRANSCRIPT');if(_0x28492e['result']===-0x1){return _0x28492e;}var _0xbe1a42=this[_0x389c('0xb2')](_0x389c('0xcc'),'LUMENVOX_ASR_INSTANCE');if(_0xbe1a42[_0x389c('0xa4')]===-0x1){return _0xbe1a42;}return this['channel'][_0x389c('0xaa')](util['format'](_0x389c('0xb6'),_0x31b726));};AGIVertices['prototype'][_0x389c('0xcd')]=function(_0x522e5f){logger[_0x389c('0x32')](util[_0x389c('0x2b')]('Enter\x20in\x20SESTEKASR\x20(%s)\x20block',_0x522e5f[_0x389c('0xa9')]));if(!this['isConfigured'](_0x522e5f[_0x389c('0xb1')])){return this[_0x389c('0xc')][_0x389c('0xaa')](_0x389c('0xc9'));}var _0x5d0142=_0x522e5f[_0x389c('0xb1')];if(this[_0x389c('0x84')](_0x522e5f['options'])){_0x5d0142+=','+_0x522e5f[_0x389c('0x78')];}var _0x2bd77b=this['channel'][_0x389c('0xac')]('MRCPRecog',_0x5d0142);if(_0x2bd77b[_0x389c('0xa4')]===-0x1){return _0x2bd77b;}var _0x3d2d5a=this[_0x389c('0xb2')](_0x389c('0xcb'),_0x389c('0xce'));if(_0x3d2d5a['result']===-0x1){return _0x3d2d5a;}var _0x1428a9=this[_0x389c('0xb2')](_0x389c('0xb4'),_0x389c('0xcf'));if(_0x1428a9['result']===-0x1){return _0x1428a9;}var _0xe77c2d=this['getAndSetVariable']('RECOG_INSTANCE()','SESTEK_ASR_INSTANCE');if(_0xe77c2d[_0x389c('0xa4')]===-0x1){return _0xe77c2d;}return this[_0x389c('0xc')][_0x389c('0xaa')](util[_0x389c('0x2b')]('Executed\x20command\x20MRCPRecog\x20%s',_0x5d0142));};AGIVertices['prototype']['database']=function(_0x12fe64){logger[_0x389c('0x32')](util[_0x389c('0x2b')](_0x389c('0xd0'),_0x12fe64[_0x389c('0xa9')]));if(!this[_0x389c('0x84')](_0x12fe64[_0x389c('0xd1')])){return this[_0x389c('0xc')]['error'](_0x12fe64,'no\x20database\x20selected');}var _0x20c679=this['getSquareOdbc'][_0x389c('0x72')](this,_0x12fe64[_0x389c('0xd1')]);if(!_0x20c679){return this[_0x389c('0xc')][_0x389c('0x2f')](_0x12fe64,'no\x20odbc\x20database\x20found');}if(!this[_0x389c('0x84')](_0x12fe64[_0x389c('0x31')])){return this[_0x389c('0xc')][_0x389c('0x2f')](_0x12fe64,'no\x20query\x20configured');}var _0x129898=_0x12fe64[_0x389c('0x31')][_0x389c('0x59')](/(\r\n|\n|\r)/gm,'\x20');this[_0x389c('0xc')]['noop'](util[_0x389c('0x2b')]('query:\x20%s',_0x129898));var _0x6b774f=this[_0x389c('0x2d')][_0x389c('0x72')](this,_0x20c679,_0x129898);this[_0x389c('0x38')]['sync'](this,_0x12fe64,_0x129898);if(!this[_0x389c('0x84')](_0x12fe64['variable_id'])){return this['channel']['noop'](_0x389c('0xd2'));}var _0x2fd51f=this[_0x389c('0x10')][_0x389c('0x72')](this,_0x12fe64[_0x389c('0xd3')]);if(!_0x2fd51f){return this[_0x389c('0xc')][_0x389c('0x2f')](_0x12fe64,_0x389c('0xd4'));}var _0x23b887=this;_0x6b774f[_0x389c('0xd5')](function(_0x5bd10f,_0x53b7c6){Object['keys'](_0x5bd10f)[_0x389c('0xd5')](function(_0x3410be){_0x23b887[_0x389c('0xc')][_0x389c('0xa5')](util[_0x389c('0x2b')](_0x389c('0xd6'),_0x2fd51f,_0x53b7c6,_0x3410be),_0x5bd10f[_0x3410be]);});});this[_0x389c('0xc')][_0x389c('0xa5')](util['format']('%s_ROWS_COUNT',_0x2fd51f),_0x6b774f['length']);return this[_0x389c('0xc')]['noop'](util[_0x389c('0x2b')]('variable\x20%s\x20set',_0x2fd51f));};AGIVertices[_0x389c('0xf')][_0x389c('0xd7')]=function(_0x3f38fb){logger[_0x389c('0xd8')](util['format'](_0x389c('0xd9'),_0x3f38fb['label']));if(!this[_0x389c('0x84')](_0x3f38fb[_0x389c('0xda')])){return this['channel'][_0x389c('0x2f')](_0x3f38fb,'no\x20user\x20selected');}var _0x5ccfe4=this[_0x389c('0x1c')][_0x389c('0x72')](this,_0x3f38fb[_0x389c('0xda')]);if(!_0x5ccfe4){return this[_0x389c('0xc')][_0x389c('0x2f')](_0x3f38fb,_0x389c('0xdb'));}var _0xb7fe87=this[_0x389c('0xc')][_0x389c('0xac')](_0x389c('0xdc'),[util[_0x389c('0x2b')](_0x389c('0xdd'),_0x5ccfe4),_0x3f38fb[_0x389c('0x66')],_0x3f38fb[_0x389c('0xde')],_0x3f38fb[_0x389c('0x65')]]);if(_0xb7fe87[_0x389c('0xa4')]===-0x1){return _0xb7fe87;}return this[_0x389c('0xc')][_0x389c('0xaa')](util[_0x389c('0x2b')]('Executed\x20command\x20%s',_0x389c('0xdc')));};AGIVertices[_0x389c('0xf')][_0x389c('0xdf')]=function(_0x36b804){logger[_0x389c('0x32')](util[_0x389c('0x2b')]('Enter\x20in\x20DIALOGFLOW\x20(%s)\x20block',_0x36b804[_0x389c('0xa9')]));if(!this[_0x389c('0x84')](_0x36b804[_0x389c('0x7a')])){return this[_0x389c('0xc')][_0x389c('0xaa')]('no\x20key\x20configured');}if(!this[_0x389c('0x84')](_0x36b804[_0x389c('0x5c')])){return this[_0x389c('0xc')]['noop'](_0x389c('0xab'));}this[_0x389c('0xc')][_0x389c('0xe0')]=!![];this['createSquareDetailsReport'](_0x36b804);this[_0x389c('0x42')](_0x36b804[_0x389c('0x5c')],'in','','');this['channel'][_0x389c('0xaa')](util[_0x389c('0x2b')](_0x389c('0xe1'),_0x36b804['text']));var _0x129845=this['googleDialogflow'][_0x389c('0x72')](this,_0x36b804);if(_0x129845){for(var _0x3674d6 in _0x129845){if(_0x129845[_0x389c('0x96')](_0x3674d6)){this[_0x389c('0xc')]['setVariable'](util[_0x389c('0x2b')](_0x389c('0xe2'),_0x3674d6[_0x389c('0x6a')]()),_0x129845[_0x3674d6]);}}this[_0x389c('0x42')](_0x129845[_0x389c('0xe3')],'out',_0x389c('0xdf'),'');return this['channel'][_0x389c('0xaa')](util['format']('Dialogflow\x20Result\x20%s',_0x129845['speech']));}return this[_0x389c('0xc')][_0x389c('0x2f')](_0x36b804,_0x389c('0xe4'));};AGIVertices[_0x389c('0xf')][_0x389c('0xe5')]=function(_0x3a8470){logger['info'](util['format'](_0x389c('0xe6'),_0x3a8470['label']));if(!this[_0x389c('0x84')](_0x3a8470['dialogflowV2_project_id'])){return this[_0x389c('0xc')][_0x389c('0xaa')](_0x389c('0xe7'));}if(!this[_0x389c('0x84')](_0x3a8470[_0x389c('0x7d')])){return this[_0x389c('0xc')][_0x389c('0xaa')](_0x389c('0xe8'));}if(!this[_0x389c('0x84')](_0x3a8470[_0x389c('0x7e')])){return this[_0x389c('0xc')][_0x389c('0xaa')]('no\x20private_key\x20configured');}if(!this[_0x389c('0x84')](_0x3a8470[_0x389c('0x7f')])){return this['channel'][_0x389c('0xaa')]('no\x20anguage\x20configured');}if(!this[_0x389c('0x84')](_0x3a8470['text'])){return this[_0x389c('0xc')]['noop'](_0x389c('0xab'));}this['channel'][_0x389c('0xe0')]=!![];this['createSquareDetailsReport'](_0x3a8470);this['createSquareMessage'](_0x3a8470[_0x389c('0x5c')],'in','','');this[_0x389c('0xc')][_0x389c('0xaa')](util[_0x389c('0x2b')](_0x389c('0xe9'),_0x3a8470[_0x389c('0x5c')]));var _0xf0af39=this['googleDialogflowV2'][_0x389c('0x72')](this,_0x3a8470);if(_0xf0af39){for(var _0x2f53fd in _0xf0af39){if(_0xf0af39[_0x389c('0x96')](_0x2f53fd)){if(_0x2f53fd!==_0x389c('0xea')){this[_0x389c('0xc')][_0x389c('0xa5')](util[_0x389c('0x2b')](_0x389c('0xe2'),_0x2f53fd[_0x389c('0x6a')]()),_0xf0af39[_0x2f53fd]);}}}this['createSquareMessage'](_0xf0af39[_0x389c('0xe3')],'out',_0x389c('0xe5'),_0xf0af39[_0x389c('0xea')]);return this[_0x389c('0xc')]['noop'](util[_0x389c('0x2b')]('DialogflowV2\x20Result\x20%s',_0xf0af39['speech']));}return this[_0x389c('0xc')][_0x389c('0x2f')](_0x3a8470,'DialogflowV2\x20is\x20unreachable');};AGIVertices['prototype'][_0x389c('0xeb')]=function(_0x5c5aef){logger[_0x389c('0x32')](util[_0x389c('0x2b')](_0x389c('0xec'),_0x5c5aef[_0x389c('0xa9')]));if(!this[_0x389c('0x84')](_0x5c5aef[_0x389c('0xed')])){return this[_0x389c('0xc')][_0x389c('0xaa')](_0x389c('0xee'));}if(!this['isConfigured'](_0x5c5aef[_0x389c('0xef')])){return this[_0x389c('0xc')][_0x389c('0xaa')](_0x389c('0xf0'));}if(!this[_0x389c('0x84')](_0x5c5aef[_0x389c('0xf1')])){return this[_0x389c('0xc')]['noop'](_0x389c('0xf2'));}if(!this[_0x389c('0x84')](_0x5c5aef['ndassistant_url'])){return this[_0x389c('0xc')][_0x389c('0xaa')](_0x389c('0xab'));}this[_0x389c('0xc')][_0x389c('0xe0')]=!![];this['createSquareDetailsReport'](_0x5c5aef);this[_0x389c('0x42')](_0x5c5aef['text'],'in','','');this['channel'][_0x389c('0xaa')](util[_0x389c('0x2b')](_0x389c('0xf3'),_0x5c5aef['text']));var _0x23ef80=this[_0x389c('0x80')][_0x389c('0x72')](this,_0x5c5aef);if(_0x23ef80){for(var _0x433bd5 in _0x23ef80){if(_0x23ef80[_0x389c('0x96')](_0x433bd5)){this[_0x389c('0xc')][_0x389c('0xa5')](util['format'](_0x389c('0xf4'),_0x433bd5[_0x389c('0x6a')]()),_0x23ef80[_0x433bd5]);}}this['createSquareMessage'](_0x23ef80[_0x389c('0xe3')],_0x389c('0xf5'),_0x389c('0xeb'),'');if(_0x23ef80[_0x389c('0xf6')]){this[_0x389c('0xc')][_0x389c('0xaa')](util['format'](_0x389c('0xf7'),_0x23ef80[_0x389c('0xf6')]));var _0x522612=this[_0x389c('0xc')][_0x389c('0xf8')](_0x23ef80['audiofile']);try{fs[_0x389c('0xf9')](_0x23ef80[_0x389c('0xf6')]+_0x389c('0xfa'));}catch(_0x22e7d0){logger[_0x389c('0x2f')](_0x22e7d0);}return _0x522612;}else{return this[_0x389c('0xc')][_0x389c('0xaa')](util[_0x389c('0x2b')](_0x389c('0xfb'),_0x23ef80['speech']));}}return this[_0x389c('0xc')][_0x389c('0x2f')](_0x5c5aef,_0x389c('0xfc'));};AGIVertices[_0x389c('0xf')]['end']=function(_0x3bf3b8){logger['info'](util[_0x389c('0x2b')](_0x389c('0xfd'),_0x3bf3b8[_0x389c('0xa9')]));return this[_0x389c('0xc')]['noop']('end');};AGIVertices['prototype'][_0x389c('0xfe')]=function(_0x242048){logger[_0x389c('0x32')](util[_0x389c('0x2b')]('Enter\x20in\x20EXTERNAL\x20DIAL\x20(%s)\x20block',_0x242048['label']));var _0x5da474='';if(_0x242048[_0x389c('0xff')]){if(!this[_0x389c('0x84')](_0x242048[_0x389c('0xff')])){return this['channel'][_0x389c('0x2f')](_0x242048,_0x389c('0x100'));}else{var _0x328faa=parseInt(_0x242048[_0x389c('0xff')],0xa);if(isNaN(_0x328faa)){_0x5da474=_0x242048[_0x389c('0xff')];}else{_0x5da474=this[_0x389c('0x1e')][_0x389c('0x72')](this,_0x242048[_0x389c('0xff')]);if(!_0x5da474){return this[_0x389c('0xc')][_0x389c('0x2f')](_0x242048,'no\x20trunk\x20found');}}}}else if(_0x242048[_0x389c('0x101')]){_0x5da474=_0x242048['trunk_name'];}else{return this[_0x389c('0xc')][_0x389c('0x2f')](_0x242048,_0x389c('0x100'));}var _0x1421cf=this[_0x389c('0xc')][_0x389c('0xac')](_0x389c('0xdc'),[util['format'](_0x389c('0x102'),_0x5da474,_0x242048[_0x389c('0x49')]),_0x242048[_0x389c('0x66')],_0x242048[_0x389c('0xde')],_0x242048[_0x389c('0x65')]]);if(_0x1421cf[_0x389c('0xa4')]===-0x1){return _0x1421cf;}return this[_0x389c('0xc')][_0x389c('0xaa')](util[_0x389c('0x2b')]('Executed\x20command\x20%s','DIAL'));};AGIVertices[_0x389c('0xf')][_0x389c('0x103')]=function(_0x11c925){logger['info'](util['format']('Enter\x20in\x20FINALLY\x20(%s)\x20block',_0x11c925[_0x389c('0xa9')]));return this[_0x389c('0xc')][_0x389c('0xaa')]('finally');};AGIVertices[_0x389c('0xf')][_0x389c('0x104')]=function(_0x4843ce){logger[_0x389c('0x32')](util[_0x389c('0x2b')](_0x389c('0x105'),_0x4843ce['label']));if(_0x4843ce[_0x389c('0x106')]===0x0){return this[_0x389c('0xa6')](_0x4843ce);}_0x4843ce[_0x389c('0x106')]-=0x1;if(!this[_0x389c('0x84')](_0x4843ce[_0x389c('0x107')])){return this[_0x389c('0xc')][_0x389c('0x2f')](_0x4843ce,'no\x20file\x20audio\x20selected');}var _0x55713e=this[_0x389c('0x1f')][_0x389c('0x72')](this,_0x4843ce[_0x389c('0x107')]);if(!_0x55713e){return this['channel'][_0x389c('0x2f')](_0x4843ce,_0x389c('0x108'));}if(!this['isConfigured'](_0x4843ce[_0x389c('0xd3')])){return this[_0x389c('0xc')][_0x389c('0x2f')](_0x389c('0xd2'));}var _0x3b3e27=this[_0x389c('0xc')][_0x389c('0x109')](_0x55713e,_0x4843ce[_0x389c('0x10a')],_0x4843ce['maxdigit']);var _0x45d2ed=_0x3b3e27[_0x389c('0xa4')]?_0x3b3e27[_0x389c('0xa4')][_0x389c('0xa3')]():'';logger[_0x389c('0x32')](_0x389c('0x10b'),JSON[_0x389c('0x75')](_0x3b3e27));if(_0x3b3e27[_0x389c('0xa4')]===-0x1){this[_0x389c('0x38')]['sync'](this,_0x4843ce,_0x45d2ed);return _0x3b3e27;}else if(_0x3b3e27[_0x389c('0xa2')]===_0x389c('0x66')){_0x3b3e27[_0x389c('0xa4')]=_0x45d2ed[_0x389c('0x9c')]>=parseInt(_0x4843ce[_0x389c('0x10c')])?'x':'i';}else{_0x3b3e27[_0x389c('0xa4')]=_0x45d2ed[_0x389c('0x9c')]>=parseInt(_0x4843ce[_0x389c('0x10c')])&&_0x45d2ed[_0x389c('0x9c')]<=parseInt(_0x4843ce[_0x389c('0x10d')])?'x':'i';}var _0x4e29b1=this[_0x389c('0x10')]['sync'](this,_0x4843ce['variable_id']);if(!_0x4e29b1){return this[_0x389c('0xc')][_0x389c('0x2f')](_0x4843ce,_0x389c('0xd4'));}this[_0x389c('0xc')][_0x389c('0xa5')](_0x4e29b1,_0x45d2ed);if(this['isConfigured'](_0x4843ce['hiddendigitsnum'])){var _0x28c01c=parseInt(_0x4843ce['hiddendigitsnum'],0xa);var _0x345d70=rs[_0x389c('0x10e')]({'charset':'*','length':_0x28c01c});var _0x595aea=_0x45d2ed[_0x389c('0x9c')];if(_0x595aea>0x0){if(_0x595aea>_0x28c01c){this[_0x389c('0x38')][_0x389c('0x72')](this,_0x4843ce,_0x4843ce[_0x389c('0x10f')]==='first'?_0x345d70+_0x45d2ed[_0x389c('0x110')](_0x28c01c):_0x45d2ed[_0x389c('0x110')](0x0,_0x595aea-_0x28c01c)+_0x345d70);}else{this[_0x389c('0x38')][_0x389c('0x72')](this,_0x4843ce,rs[_0x389c('0x10e')]({'charset':'*','length':_0x595aea}));}}else{this[_0x389c('0x38')][_0x389c('0x72')](this,_0x4843ce,'');}}else{this[_0x389c('0x38')][_0x389c('0x72')](this,_0x4843ce,_0x45d2ed);}return _0x3b3e27;};AGIVertices['prototype'][_0x389c('0xb')]=function(_0x41bcab){logger[_0x389c('0x32')](util[_0x389c('0x2b')]('Enter\x20in\x20GETSECRETDIGITS\x20(%s)\x20block',_0x41bcab[_0x389c('0xa9')]));return this[_0x389c('0x104')](_0x41bcab);};AGIVertices[_0x389c('0xf')][_0x389c('0x111')]=function(_0x109410){logger[_0x389c('0x32')](util[_0x389c('0x2b')](_0x389c('0x112'),_0x109410[_0x389c('0xa9')]));this[_0x389c('0x38')]['sync'](this,_0x109410,_0x109410[_0x389c('0x113')]);return this['channel']['noop'](util[_0x389c('0x2b')](_0x389c('0x114'),_0x109410[_0x389c('0x113')]));};AGIVertices['prototype'][_0x389c('0x115')]=function(_0xdc0f1d){logger[_0x389c('0x32')](util[_0x389c('0x2b')]('[AGI]\x20Enter\x20in\x20AWSPOLLY\x20(%s)\x20block',_0xdc0f1d[_0x389c('0xa9')]));if(!this[_0x389c('0x84')](_0xdc0f1d[_0x389c('0x8d')])||!this['isConfigured'](_0xdc0f1d[_0x389c('0x87')])){return this['channel'][_0x389c('0xaa')]('no\x20valid\x20credentials\x20configured');}if(!this['isConfigured'](_0xdc0f1d[_0x389c('0x5c')])){return this['channel'][_0x389c('0xaa')]('no\x20text\x20configured');}this[_0x389c('0xc')][_0x389c('0xaa')](util[_0x389c('0x2b')](_0x389c('0x116'),_0xdc0f1d[_0x389c('0x5c')]));var _0x377435=this[_0x389c('0x86')][_0x389c('0x72')](this,_0xdc0f1d);if(_0x377435){this['channel'][_0x389c('0xaa')](util[_0x389c('0x2b')](_0x389c('0x117'),_0x377435));var _0x1db53b=this[_0x389c('0xc')][_0x389c('0xf8')](_0x377435);try{fs['unlink'](_0x377435+'.wav');}catch(_0x447b63){logger[_0x389c('0x2f')](_0x447b63);}return _0x1db53b;}return this['channel']['error'](_0xdc0f1d,'aws\x20Polly\x20is\x20unreachable');};AGIVertices[_0x389c('0xf')][_0x389c('0x118')]=function(_0xc637f8){logger[_0x389c('0x32')](util['format'](_0x389c('0x119'),_0xc637f8[_0x389c('0xa9')]));if(!this[_0x389c('0x84')](_0xc637f8[_0x389c('0x8d')])||!this[_0x389c('0x84')](_0xc637f8[_0x389c('0x87')])){return this[_0x389c('0xc')][_0x389c('0xaa')]('no\x20valid\x20credentials\x20configured');}if(!this['isConfigured'](_0xc637f8[_0x389c('0x11a')])){return this[_0x389c('0xc')][_0x389c('0xaa')](_0x389c('0x11b'));}if(!this[_0x389c('0x84')](_0xc637f8[_0x389c('0x5c')])){return this[_0x389c('0xc')][_0x389c('0xaa')]('no\x20text\x20configured');}this[_0x389c('0xc')][_0x389c('0xe0')]=!![];this[_0x389c('0x38')](_0xc637f8);this[_0x389c('0x42')](_0xc637f8[_0x389c('0x5c')],'in','','');this['channel'][_0x389c('0xaa')](util[_0x389c('0x2b')]('Trying\x20Amazon\x20Lex:\x20%s',_0xc637f8['text']));var _0x544ba4=this[_0x389c('0x8c')][_0x389c('0x72')](this,_0xc637f8);if(_0x544ba4){for(var _0x35df85 in _0x544ba4){if(_0x544ba4[_0x389c('0x96')](_0x35df85)&&_[_0x389c('0x97')](_0x544ba4[_0x35df85])){this[_0x389c('0xc')][_0x389c('0xa5')](util[_0x389c('0x2b')](_0x389c('0x11c'),_0x35df85[_0x389c('0x6a')]()),_0x544ba4[_0x35df85]);}}if(_[_0x389c('0x45')](_0x544ba4['message'])){return this[_0x389c('0xc')][_0x389c('0xaa')](_0x389c('0x11d'));}else{this['createSquareMessage'](_0x544ba4['message'],_0x389c('0xf5'),_0x389c('0x11e'),'');return this[_0x389c('0xc')][_0x389c('0xaa')](util[_0x389c('0x2b')](_0x389c('0x11f'),_0x544ba4[_0x389c('0x120')]));}}return this[_0x389c('0xc')][_0x389c('0x2f')](_0xc637f8,_0x389c('0x121'));};AGIVertices[_0x389c('0xf')]['googleasr']=function(_0x119972){logger[_0x389c('0x32')](util['format'](_0x389c('0x122'),_0x119972[_0x389c('0xa9')],_0x119972[_0x389c('0x66')]));if(!this[_0x389c('0x84')](_0x119972[_0x389c('0x7a')])){return this['channel'][_0x389c('0xaa')](_0x389c('0x123'));}var _0x30faaf='wav';var _0xf3ed10=util[_0x389c('0x2b')]('%s/recordings/%s',FILES_PATH,rs[_0x389c('0x10e')](0x4));var _0x46b2d8=util[_0x389c('0x2b')](_0x389c('0x9f'),_0xf3ed10,_0x30faaf);var _0x9b57b4=!![];if(_0x119972[_0x389c('0x124')]===_0x389c('0x125')){_0x9b57b4=![];}var _0x11577f=this['channel'][_0x389c('0x126')](_0xf3ed10,_0x30faaf,_0x119972[_0x389c('0x127')],_0x119972[_0x389c('0x66')],undefined,_0x9b57b4);if(_0x11577f['result']!==-0x1){this[_0x389c('0xc')]['noop'](util[_0x389c('0x2b')](_0x389c('0x128'),_0x46b2d8));var _0x5818dd=this[_0x389c('0x8f')][_0x389c('0x72')](this,_0x119972,_0x46b2d8);if(_0x5818dd){for(var _0x4764f9 in _0x5818dd){if(_0x5818dd[_0x389c('0x96')](_0x4764f9)){this['channel'][_0x389c('0xa5')](util['format'](_0x389c('0x129'),_0x4764f9[_0x389c('0x6a')]()),_0x5818dd[_0x4764f9]);}}return this[_0x389c('0xc')]['noop'](util[_0x389c('0x2b')](_0x389c('0x12a'),JSON[_0x389c('0x75')](_0x5818dd)));}}return _0x11577f;};AGIVertices[_0x389c('0xf')][_0x389c('0x12b')]=function(_0x387ee0){logger['info'](util['format'](_0x389c('0x12c'),_0x387ee0[_0x389c('0xa9')]));if(!this[_0x389c('0x84')](_0x387ee0[_0x389c('0x92')])){return this[_0x389c('0xc')][_0x389c('0xaa')](_0x389c('0x12d'));}if(!this['isConfigured'](_0x387ee0[_0x389c('0x93')])){return this[_0x389c('0xc')][_0x389c('0xaa')](_0x389c('0x12e'));}var _0x482d9f=_0x389c('0x12f');var _0x4c8e67=util[_0x389c('0x2b')](_0x389c('0x130'),FILES_PATH,rs[_0x389c('0x10e')](0x4));var _0x3776ef=util[_0x389c('0x2b')]('%s.%s',_0x4c8e67,_0x482d9f);var _0x288d92=!![];if(_0x387ee0[_0x389c('0x124')]==='NOBEEP'){_0x288d92=![];}var _0xda75c7=this[_0x389c('0xc')][_0x389c('0x126')](_0x4c8e67,_0x482d9f,_0x387ee0[_0x389c('0x127')],_0x387ee0[_0x389c('0x66')],undefined,_0x288d92);if(_0xda75c7[_0x389c('0xa4')]!==-0x1){this[_0x389c('0xc')]['noop'](util['format'](_0x389c('0x131'),_0x3776ef));var _0x5166d7=this['tildeASR'][_0x389c('0x72')](this,_0x387ee0,_0x3776ef);if(_0x5166d7){for(var _0x54fe10 in _0x5166d7){if(_0x5166d7[_0x389c('0x96')](_0x54fe10)){this[_0x389c('0xc')]['setVariable'](util[_0x389c('0x2b')](_0x389c('0x132'),_0x54fe10[_0x389c('0x6a')]()),_0x5166d7[_0x54fe10]);}}return this[_0x389c('0xc')][_0x389c('0xaa')](util[_0x389c('0x2b')](_0x389c('0x133'),JSON[_0x389c('0x75')](_0x5166d7)));}}return _0xda75c7;};AGIVertices[_0x389c('0xf')]['gotoc']=function(_0x5769c7){logger['info'](util[_0x389c('0x2b')](_0x389c('0x134'),_0x5769c7[_0x389c('0xa9')]));return this[_0x389c('0xc')][_0x389c('0x135')](_0x5769c7[_0x389c('0x3f')],_0x5769c7[_0x389c('0x136')],_0x5769c7['priority']);};AGIVertices[_0x389c('0xf')][_0x389c('0x137')]=function(_0x4d5a75){logger[_0x389c('0x32')](util[_0x389c('0x2b')]('Enter\x20in\x20GOTOIF\x20(%s)\x20block',_0x4d5a75[_0x389c('0xa9')]));if(!this[_0x389c('0x84')](_0x4d5a75['condition'])){return this[_0x389c('0xc')][_0x389c('0x2f')](_0x4d5a75,_0x389c('0x138'));}try{var _0xbdafe3=eval(_0x4d5a75[_0x389c('0x139')])?_0x389c('0x13a'):_0x389c('0x13b');this['channel'][_0x389c('0xaa')](util[_0x389c('0x2b')](_0x389c('0x13c'),_0x4d5a75[_0x389c('0x139')],_0xbdafe3));return{'code':0xc8,'result':_0xbdafe3};}catch(_0x1cfeab){return{'code':0xc8,'result':_0x389c('0x13b')};}};AGIVertices[_0x389c('0xf')][_0x389c('0x13d')]=function(_0x20d1ad){logger[_0x389c('0x32')](util['format'](_0x389c('0x13e'),_0x20d1ad[_0x389c('0xa9')]));if(!this['isConfigured'](_0x20d1ad[_0x389c('0x13f')])){return this[_0x389c('0xc')]['error'](_0x20d1ad,_0x389c('0x140'));}var _0x4c5788=this[_0x389c('0x25')][_0x389c('0x72')](this,_0x20d1ad[_0x389c('0x13f')]);if(!_0x4c5788){return this[_0x389c('0xc')][_0x389c('0x2f')](_0x20d1ad,_0x389c('0x141'));}for(var _0x58aadd=0x0;_0x58aadd<_0x4c5788[_0x389c('0x9c')];_0x58aadd+=0x1){var _0x47cdc0=this[_0x389c('0xc')][_0x389c('0x10')](util[_0x389c('0x2b')](_0x389c('0x142'),_0x4c5788[_0x58aadd]));if(_0x47cdc0[_0x389c('0xa4')]===-0x1){return _0x47cdc0;}logger[_0x389c('0x32')](util['format'](_0x389c('0x143'),_0x4c5788[_0x58aadd],_0x47cdc0[_0x389c('0xa2')]));if(_0x47cdc0[_0x389c('0xa2')]===_0x389c('0x13a')){logger['info'](util[_0x389c('0x2b')]('IFTIME\x20%s\x20%s',_0x4c5788[_0x58aadd],_0x389c('0x13a')));this[_0x389c('0xc')][_0x389c('0xaa')](util[_0x389c('0x2b')](_0x389c('0x143'),_0x4c5788[_0x58aadd],'true'));return{'code':0xc8,'result':_0x389c('0x13a')};}else{logger[_0x389c('0x32')](util['format'](_0x389c('0x143'),_0x4c5788[_0x58aadd],_0x389c('0x13b')));this[_0x389c('0xc')]['noop'](util[_0x389c('0x2b')](_0x389c('0x143'),_0x4c5788[_0x58aadd],_0x389c('0x13b')));}}return{'code':0xc8,'result':_0x389c('0x13b')};};AGIVertices[_0x389c('0xf')][_0x389c('0x144')]=function(_0x44946a){logger[_0x389c('0x32')](util['format'](_0x389c('0x145'),_0x44946a[_0x389c('0xa9')]));return this[_0x389c('0xc')]['hangup']();};AGIVertices[_0x389c('0xf')][_0x389c('0x146')]=function(_0x2a0854){logger[_0x389c('0x32')](util[_0x389c('0x2b')](_0x389c('0x147'),_0x2a0854[_0x389c('0xa9')]));if(!this[_0x389c('0x84')](_0x2a0854[_0x389c('0x7a')])){return this['channel'][_0x389c('0xaa')](_0x389c('0x123'));}var _0x59fb5b=_0x389c('0x12f');var _0x8f6642=util['format']('%s/recordings/%s',FILES_PATH,rs[_0x389c('0x10e')](0x4));var _0x3ef508=util[_0x389c('0x2b')](_0x389c('0x9f'),_0x8f6642,_0x59fb5b);var _0x463482=!![];if(_0x2a0854[_0x389c('0x124')]==='NOBEEP'){_0x463482=![];}var _0x1eb926=this[_0x389c('0xc')][_0x389c('0x126')](_0x8f6642,_0x59fb5b,_0x2a0854[_0x389c('0x127')],_0x2a0854[_0x389c('0x66')],undefined,_0x463482);if(_0x1eb926['result']!==-0x1){this[_0x389c('0xc')][_0x389c('0xaa')](util[_0x389c('0x2b')](_0x389c('0x148'),_0x3ef508));var _0x14e30d=this['ispeechASR']['sync'](this,_0x2a0854,_0x3ef508);if(_0x14e30d){for(var _0x309669 in _0x14e30d){if(_0x14e30d[_0x389c('0x96')](_0x309669)){this[_0x389c('0xc')][_0x389c('0xa5')](util[_0x389c('0x2b')](_0x389c('0x149'),_0x309669['toUpperCase']()),_0x14e30d[_0x309669]);}}return this[_0x389c('0xc')][_0x389c('0xaa')](util[_0x389c('0x2b')](_0x389c('0x14a'),JSON['stringify'](_0x14e30d)));}}return _0x1eb926;};AGIVertices[_0x389c('0xf')][_0x389c('0x14b')]=function(_0x35bb35){logger[_0x389c('0x32')](util['format'](_0x389c('0x14c'),_0x35bb35[_0x389c('0xa9')]));if(!this[_0x389c('0x84')](_0x35bb35['key'])){return this['channel'][_0x389c('0xaa')](_0x389c('0x123'));}if(!this[_0x389c('0x84')](_0x35bb35[_0x389c('0x5c')])){return this[_0x389c('0xc')]['noop'](_0x389c('0xab'));}this['channel']['noop'](util[_0x389c('0x2b')]('Trying\x20ispeech\x20TTS\x20%s',_0x35bb35['text']));var _0x1a0e66=this[_0x389c('0x81')][_0x389c('0x72')](this,_0x35bb35);if(_0x1a0e66){this[_0x389c('0xc')][_0x389c('0xaa')](util['format']('ispeech\x20%s\x20file\x20created',_0x1a0e66));var _0x83707e=this['channel'][_0x389c('0xf8')](_0x1a0e66,_0x35bb35[_0x389c('0x127')]);try{fs['unlink'](_0x1a0e66+_0x389c('0xfa'));}catch(_0x5dff19){logger[_0x389c('0x2f')](_0x5dff19);}return _0x83707e;}return this[_0x389c('0xc')][_0x389c('0x2f')](_0x35bb35,_0x389c('0x14d'));};AGIVertices[_0x389c('0xf')][_0x389c('0x14e')]=function(_0x1aef79){logger[_0x389c('0x32')](util['format']('Enter\x20in\x20LOGIN\x20(%s)\x20block',_0x1aef79[_0x389c('0xa9')]));if(!this[_0x389c('0x84')](_0x1aef79[_0x389c('0x14f')])){return this[_0x389c('0xc')][_0x389c('0x2f')](_0x1aef79,_0x389c('0x150'));}logger['info'](util['format'](_0x389c('0x151'),this[_0x389c('0xc')][_0x389c('0x3c')],_0x1aef79[_0x389c('0x14f')]));var _0x4262d5=this[_0x389c('0x54')]['sync'](this,_0x1aef79[_0x389c('0x14f')]);if(_0x4262d5){logger[_0x389c('0x32')](util[_0x389c('0x2b')](_0x389c('0x152'),this[_0x389c('0xc')]['callerid'],_0x1aef79['findBy']));this[_0x389c('0xc')][_0x389c('0xaa')](util[_0x389c('0x2b')](_0x389c('0x152'),this[_0x389c('0xc')][_0x389c('0x3c')],_0x1aef79[_0x389c('0x14f')]));return{'code':0xc8,'result':_0x389c('0x153')};}else{logger[_0x389c('0x32')](util[_0x389c('0x2b')](_0x389c('0x154'),this[_0x389c('0xc')][_0x389c('0x3c')],_0x1aef79[_0x389c('0x14f')]));this[_0x389c('0xc')][_0x389c('0xaa')](util['format'](_0x389c('0x154'),this[_0x389c('0xc')][_0x389c('0x3c')],_0x1aef79[_0x389c('0x14f')]));return{'code':0xc8,'result':_0x389c('0x155')};}};AGIVertices[_0x389c('0xf')][_0x389c('0x156')]=function(_0xf54331){logger[_0x389c('0x32')](util['format']('Enter\x20in\x20LOGOUT\x20(%s)\x20block',_0xf54331['label']));if(!this[_0x389c('0x84')](_0xf54331[_0x389c('0x14f')])){return this[_0x389c('0xc')]['error'](_0xf54331,'no\x20find\x20by\x20configured');}logger[_0x389c('0x32')](util[_0x389c('0x2b')]('FIND\x20AGENT\x20%s\x20BY\x20%s',this[_0x389c('0xc')][_0x389c('0x3c')],_0xf54331['findBy']));var _0x582345=this[_0x389c('0x53')][_0x389c('0x72')](this,_0xf54331[_0x389c('0x14f')]);if(_0x582345){logger['info'](util[_0x389c('0x2b')](_0x389c('0x152'),this[_0x389c('0xc')][_0x389c('0x3c')],_0xf54331[_0x389c('0x14f')]));this[_0x389c('0xc')][_0x389c('0xaa')](util[_0x389c('0x2b')](_0x389c('0x152'),this['channel']['callerid'],_0xf54331[_0x389c('0x14f')]));return{'code':0xc8,'result':_0x389c('0x153')};}else{logger[_0x389c('0x32')](util[_0x389c('0x2b')](_0x389c('0x154'),this[_0x389c('0xc')]['callerid'],_0xf54331[_0x389c('0x14f')]));this['channel'][_0x389c('0xaa')](util[_0x389c('0x2b')](_0x389c('0x154'),this[_0x389c('0xc')]['callerid'],_0xf54331[_0x389c('0x14f')]));return{'code':0xc8,'result':_0x389c('0x155')};}};AGIVertices[_0x389c('0xf')]['math']=function(_0x5f0652){logger['info'](util[_0x389c('0x2b')](_0x389c('0x157'),_0x5f0652[_0x389c('0xa9')]));if(!this['isConfigured'](_0x5f0652[_0x389c('0x158')])){return this['channel']['error'](_0x5f0652,_0x389c('0x159'));}this[_0x389c('0xc')][_0x389c('0xaa')](util[_0x389c('0x2b')](_0x389c('0x15a'),_0x5f0652[_0x389c('0x158')]));var _0x3410bc=eval(_0x5f0652[_0x389c('0x158')]);if(!this['isConfigured'](_0x5f0652[_0x389c('0xd3')])){return this['channel'][_0x389c('0xaa')](_0x389c('0xd2'));}var _0x90e488=this[_0x389c('0x10')]['sync'](this,_0x5f0652[_0x389c('0xd3')]);if(!_0x90e488){return this[_0x389c('0xc')]['error'](_0x5f0652,_0x389c('0xd4'));}if(_[_0x389c('0x9b')](_0x3410bc)){var _0x25f6d6=this;_0x3410bc[_0x389c('0xd5')](function(_0x489782,_0x38c599){_0x25f6d6[_0x389c('0xc')][_0x389c('0xa5')](util[_0x389c('0x2b')](_0x389c('0x15b'),_0x90e488,_0x38c599),_0x489782);});return this[_0x389c('0xc')]['noop'](util['format'](_0x389c('0x15c'),_0x90e488));}else{return this[_0x389c('0xc')][_0x389c('0xa5')](_0x90e488,_0x3410bc);}};AGIVertices[_0x389c('0xf')]['menu']=function(_0x288439){logger[_0x389c('0x32')](util[_0x389c('0x2b')](_0x389c('0x15d'),_0x288439['label']));if(_0x288439[_0x389c('0x106')]===0x0){return this[_0x389c('0xa6')](_0x288439);}_0x288439['retry']-=0x1;if(!this[_0x389c('0x84')](_0x288439[_0x389c('0x107')])){return this[_0x389c('0xc')][_0x389c('0x2f')](_0x288439,_0x389c('0x15e'));}var _0x5d3fa5=this[_0x389c('0x1f')][_0x389c('0x72')](this,_0x288439[_0x389c('0x107')]);if(!_0x5d3fa5){return this[_0x389c('0xc')][_0x389c('0x2f')](_0x288439,_0x389c('0x108'));}var _0x32eff9=this[_0x389c('0xc')][_0x389c('0x109')](_0x5d3fa5,_0x288439['response'],_0x288439['digit']);var _0x22bbac=_0x32eff9[_0x389c('0xa4')];if(_0x32eff9['result']===-0x1){this[_0x389c('0x38')][_0x389c('0x72')](this,_0x288439,'-1');return _0x32eff9;}else if(_0x32eff9['extra']===_0x389c('0x66')){_0x32eff9[_0x389c('0xa4')]=_0x32eff9[_0x389c('0xa4')][_0x389c('0x9c')]>0x0?_0x32eff9['result']:'t';}else if(_['isEmpty'](_0x32eff9['result'])){_0x32eff9['result']='#';_0x22bbac='#';}if(!this[_0x389c('0x84')](_0x288439[_0x389c('0xd3')])){this[_0x389c('0xc')]['noop']('no\x20variable\x20selected\x20for\x20the\x20result');}else{var _0x55696a=this[_0x389c('0x10')]['sync'](this,_0x288439[_0x389c('0xd3')]);if(!_0x55696a){return this[_0x389c('0xc')][_0x389c('0x2f')](_0x288439,_0x389c('0xd4'));}this[_0x389c('0xc')][_0x389c('0xa5')](_0x55696a,_0x22bbac);}this['createSquareDetailsReport']['sync'](this,_0x288439,_0x22bbac);return _0x32eff9;};AGIVertices[_0x389c('0xf')]['noop']=function(_0x2d34a8){logger[_0x389c('0x32')](util[_0x389c('0x2b')](_0x389c('0x15f'),_0x2d34a8['label']));return this[_0x389c('0xc')][_0x389c('0xaa')](_0x2d34a8[_0x389c('0x160')]||_0x2d34a8['label']);};AGIVertices[_0x389c('0xf')]['pause']=function(_0x21e0b0){logger[_0x389c('0x32')](util[_0x389c('0x2b')](_0x389c('0x161'),_0x21e0b0['label']));if(!this['isConfigured'](_0x21e0b0[_0x389c('0x14f')])){return this[_0x389c('0xc')]['error'](_0x21e0b0,'no\x20find\x20by\x20configured');}logger[_0x389c('0x32')](util[_0x389c('0x2b')](_0x389c('0x151'),this['channel'][_0x389c('0x3c')],_0x21e0b0[_0x389c('0x14f')]));var _0x591950=this['getPause']['sync'](this,_0x21e0b0['pause_id']);var _0x57787c=this['agentPause'][_0x389c('0x72')](this,_0x21e0b0[_0x389c('0x14f')],_0x591950);if(_0x57787c){logger[_0x389c('0x32')](util[_0x389c('0x2b')](_0x389c('0x152'),this[_0x389c('0xc')]['callerid'],_0x21e0b0['findBy']));this[_0x389c('0xc')][_0x389c('0xaa')](util[_0x389c('0x2b')](_0x389c('0x152'),this['channel'][_0x389c('0x3c')],_0x21e0b0[_0x389c('0x14f')]));return{'code':0xc8,'result':_0x389c('0x153')};}else{logger[_0x389c('0x32')](util['format'](_0x389c('0x154'),this[_0x389c('0xc')][_0x389c('0x3c')],_0x21e0b0[_0x389c('0x14f')]));this[_0x389c('0xc')][_0x389c('0xaa')](util['format'](_0x389c('0x152'),this[_0x389c('0xc')]['callerid'],_0x21e0b0[_0x389c('0x14f')]));return{'code':0xc8,'result':_0x389c('0x155')};}};AGIVertices['prototype'][_0x389c('0x162')]=function(_0x100709){logger[_0x389c('0x32')](util[_0x389c('0x2b')](_0x389c('0x163'),_0x100709[_0x389c('0xa9')]));if(!this[_0x389c('0x84')](_0x100709['file_id'])){return this[_0x389c('0xc')]['error'](_0x100709,_0x389c('0x15e'));}var _0x256eaa=this[_0x389c('0x1f')][_0x389c('0x72')](this,_0x100709[_0x389c('0x107')]);if(!_0x256eaa){return this[_0x389c('0xc')][_0x389c('0x2f')](_0x100709,_0x389c('0x108'));}var _0x237276=this[_0x389c('0xc')]['exec'](_0x389c('0x164'),[_0x256eaa,_0x100709['opts']]);if(_0x237276[_0x389c('0xa4')]===-0x1){return _0x237276;}return this[_0x389c('0xc')]['noop'](util[_0x389c('0x2b')](_0x389c('0xc3'),_0x389c('0x164'),_0x256eaa));};AGIVertices[_0x389c('0xf')][_0x389c('0x165')]=function(_0x1d6e82){logger[_0x389c('0x32')](util[_0x389c('0x2b')](_0x389c('0x166'),_0x1d6e82[_0x389c('0xa9')]));if(!this[_0x389c('0x84')](_0x1d6e82[_0x389c('0x167')])){return this['channel'][_0x389c('0x2f')](_0x1d6e82,_0x389c('0x168'));}var _0x1e7e61='';var _0x1c161b=parseInt(_0x1d6e82['queue_id'],0xa);if(isNaN(_0x1c161b)){_0x1e7e61=_0x1d6e82[_0x389c('0x167')];}else{_0x1e7e61=this[_0x389c('0x13')][_0x389c('0x72')](this,_0x1d6e82['queue_id']);if(!_0x1e7e61){return this[_0x389c('0xc')][_0x389c('0x2f')](_0x1d6e82,_0x389c('0x169'));}}var _0x2eb08b='';if(this[_0x389c('0x84')](_0x1d6e82[_0x389c('0x107')])){var _0x4938b5=this[_0x389c('0x1f')]['sync'](this,_0x1d6e82[_0x389c('0x107')]);if(_0x4938b5){_0x2eb08b=_0x4938b5;}}this[_0x389c('0x38')][_0x389c('0x72')](this,_0x1d6e82,_0x1e7e61);if(_0x1d6e82['opts'][_0x389c('0x16a')]('x')<0x0){_0x1d6e82[_0x389c('0xde')]+='x';}if(_0x1d6e82['opts'][_0x389c('0x16a')]('X')<0x0){_0x1d6e82[_0x389c('0xde')]+='X';}this['channel'][_0x389c('0xa5')](_0x389c('0x16b'),_0x1e7e61?_0x1e7e61[_0x389c('0x16c')]():'');var _0x48de88=this[_0x389c('0xc')]['exec']('QUEUE',[_0x1e7e61,_0x1d6e82[_0x389c('0xde')],_0x1d6e82[_0x389c('0x65')],_0x2eb08b,_0x1d6e82[_0x389c('0x66')],_0x1d6e82['agi'],_0x1d6e82['macro'],_0x1d6e82['gosub'],'',_0x1d6e82[_0x389c('0x16d')]]);if(_0x48de88[_0x389c('0xa4')]===-0x1){return _0x48de88;}return this[_0x389c('0xc')]['noop'](util[_0x389c('0x2b')](_0x389c('0xc3'),_0x389c('0x16e'),_0x1e7e61));};AGIVertices[_0x389c('0xf')][_0x389c('0x16f')]=function(_0x29d09e){logger[_0x389c('0x32')](util[_0x389c('0x2b')](_0x389c('0x170'),_0x29d09e[_0x389c('0xa9')]));var _0x432845=_0x29d09e[_0x389c('0x171')]||_0x389c('0x12f');var _0x5c20b8=util['format'](_0x389c('0x172'),this['channel'][_0x389c('0x39')],rs[_0x389c('0x10e')](0x5));var _0x36863b=util[_0x389c('0x2b')](_0x389c('0x173'),FILES_PATH,_0x5c20b8,_0x432845);var _0x4943f2=util[_0x389c('0x2b')](_0x389c('0x130'),FILES_PATH,_0x5c20b8);this[_0x389c('0x3d')][_0x389c('0x72')](this,_0x29d09e,_0x5c20b8,_0x36863b);this[_0x389c('0xc')]['setVariable'](_0x389c('0x174'),_0x5c20b8);logger[_0x389c('0x32')](_0x389c('0x175'),_0x4943f2,_0x432845,_0x29d09e[_0x389c('0x176')],_0x29d09e[_0x389c('0x66')]);return this[_0x389c('0xc')][_0x389c('0x126')](_0x4943f2,_0x432845,_0x29d09e[_0x389c('0x176')],_0x29d09e['timeout'],undefined,!![]);};AGIVertices[_0x389c('0xf')][_0x389c('0x177')]=function(_0x4d615f){logger['info'](util[_0x389c('0x2b')](_0x389c('0x178'),_0x4d615f[_0x389c('0xa9')]));if(!this[_0x389c('0x84')](_0x4d615f[_0x389c('0x65')])){return this['channel'][_0x389c('0xaa')](_0x389c('0x179'));}var _0x2a4e8f=this[_0x389c('0x64')][_0x389c('0x72')](this,_0x4d615f);logger[_0x389c('0x32')](util['format'](_0x389c('0x17a'),util['inspect'](_0x2a4e8f,{'showHidden':![],'depth':null})));if(!this['isConfigured'](_0x4d615f[_0x389c('0xd3')])){return this['channel']['noop'](_0x389c('0x17b'));}var _0x4090bc=this[_0x389c('0x10')]['sync'](this,_0x4d615f[_0x389c('0xd3')]);if(!_0x4090bc){return this[_0x389c('0xc')][_0x389c('0x2f')](_0x4d615f,_0x389c('0xd4'));}this[_0x389c('0xc')][_0x389c('0xa5')](util[_0x389c('0x2b')](_0x389c('0x17c'),_0x4090bc),_0x2a4e8f['statusCode']?_0x2a4e8f['statusCode']:_0x389c('0x17d'));this[_0x389c('0xc')]['setVariable'](util[_0x389c('0x2b')](_0x389c('0x17e'),_0x4090bc),_0x2a4e8f[_0x389c('0x77')]?_0x2a4e8f[_0x389c('0x77')]:'OK');if(_0x2a4e8f['body']){try{this['saveRestApiResult'](_0x2a4e8f['body'],_0x4090bc);}catch(_0x2e8127){logger[_0x389c('0x2f')](util['format'](_0x389c('0x17f'),_0x4090bc));}}return this[_0x389c('0xc')][_0x389c('0xaa')](util['format'](_0x389c('0x180'),_0x4090bc));};AGIVertices[_0x389c('0xf')][_0x389c('0x181')]=function(_0x51578f){logger[_0x389c('0x32')](util['format'](_0x389c('0x182'),_0x51578f['label']));return this['channel'][_0x389c('0x183')](_0x51578f[_0x389c('0x184')][_0x389c('0x59')](/\s+/g,''),_0x51578f[_0x389c('0x176')]);};AGIVertices['prototype']['saynumber']=function(_0x1024b0){logger[_0x389c('0x32')](util['format'](_0x389c('0x185'),_0x1024b0[_0x389c('0xa9')]));return this[_0x389c('0xc')][_0x389c('0x186')](_0x1024b0[_0x389c('0x67')][_0x389c('0x59')](/\s+/g,''),_0x1024b0['escape_digits']);};AGIVertices[_0x389c('0xf')][_0x389c('0x187')]=function(_0x44c210){logger['info'](util[_0x389c('0x2b')](_0x389c('0x188'),_0x44c210['label']));return this[_0x389c('0xc')]['sayPhonetic'](_0x44c210['text'],_0x44c210[_0x389c('0x176')]);};AGIVertices[_0x389c('0xf')]['sendMail']=function(_0x43b4f5){logger[_0x389c('0x32')](util['format'](_0x389c('0x189'),_0x43b4f5[_0x389c('0xa9')]));if(!this['isConfigured'](_0x43b4f5[_0x389c('0x18a')])){return this[_0x389c('0xc')][_0x389c('0xaa')](_0x389c('0x18b'));}var _0x149fbb=this[_0x389c('0x22')][_0x389c('0x72')](this,_0x43b4f5[_0x389c('0x18a')]);if(!_0x149fbb||!_0x149fbb[_0x389c('0x18c')]){return this[_0x389c('0xc')][_0x389c('0x2f')](_0x43b4f5,'no\x20mail\x20account\x20found');}var _0x19958c={'from':util['format'](_0x389c('0x18d'),_0x149fbb[_0x389c('0x15')],_0x149fbb['email']||_0x149fbb[_0x389c('0x18c')][_0x389c('0x18e')]),'to':_0x43b4f5['to']||'','cc':_0x43b4f5['cc']||'','bcc':_0x43b4f5[_0x389c('0x18f')]||'','subject':_0x43b4f5[_0x389c('0x190')],'html':_0x43b4f5[_0x389c('0x5c')],'text':_0x43b4f5[_0x389c('0x5c')]};if(this[_0x389c('0x84')](_0x43b4f5[_0x389c('0x191')])){}logger['debug']('sendMail\x20message',JSON[_0x389c('0x75')](_0x19958c));this[_0x389c('0x38')][_0x389c('0x72')](this,_0x43b4f5,_0x43b4f5[_0x389c('0x18a')]);this[_0x389c('0xc')]['noop'](util[_0x389c('0x2b')](_0x389c('0x192'),_0x149fbb['name']));this[_0x389c('0x24')][_0x389c('0x72')](this,_0x149fbb[_0x389c('0x193')],_0x19958c);return this[_0x389c('0xc')][_0x389c('0xaa')](_0x389c('0x194'));};AGIVertices['prototype']['sendFax']=function(_0x12872a){logger[_0x389c('0x32')](util['format']('Enter\x20in\x20SENDFAX\x20(%s)\x20block',_0x12872a['label']));return this['channel'][_0x389c('0xaa')](_0x389c('0x195'));};AGIVertices[_0x389c('0xf')][_0x389c('0x196')]=function(_0x38625c){logger[_0x389c('0x32')](util[_0x389c('0x2b')]('Enter\x20in\x20SENDSMS\x20(%s)\x20block',_0x38625c['label']));if(!this[_0x389c('0x84')](_0x38625c[_0x389c('0x197')])){return this[_0x389c('0xc')][_0x389c('0xaa')](_0x389c('0x198'));}var _0x37e07d=this[_0x389c('0x35')][_0x389c('0x72')](this,_0x38625c['sms_account_id']);if(!_0x37e07d){return this[_0x389c('0xc')][_0x389c('0x2f')](_0x38625c,'no\x20sms\x20account\x20found');}var _0x93cd4={'body':_0x38625c['sms_text'],'phone':_0x38625c['to']||'','SmsAccountId':_0x37e07d['id']};logger['debug']('sendSMS\x20message',JSON[_0x389c('0x75')](_0x93cd4));this[_0x389c('0x38')][_0x389c('0x72')](this,_0x38625c,_0x38625c[_0x389c('0x197')]);this[_0x389c('0xc')][_0x389c('0xaa')](util[_0x389c('0x2b')]('Trying\x20SendSMS\x20with\x20account\x20%s',_0x37e07d['name']));this[_0x389c('0x37')][_0x389c('0x72')](this,_0x93cd4);return this[_0x389c('0xc')][_0x389c('0xaa')](_0x389c('0x199'));};AGIVertices['prototype'][_0x389c('0x19a')]=function(_0x1a847c){logger['info'](util['format'](_0x389c('0x19b'),_0x1a847c[_0x389c('0xa9')]));if(!this['isConfigured'](_0x1a847c[_0x389c('0xd3')])){return this[_0x389c('0xc')][_0x389c('0x2f')](_0x1a847c,'no\x20variable\x20selected');}var _0x5dafcd=this[_0x389c('0x10')]['sync'](this,_0x1a847c[_0x389c('0xd3')]);if(!_0x5dafcd){return this[_0x389c('0xc')][_0x389c('0x2f')](_0x1a847c,'no\x20variable\x20found');}return this['channel']['setVariable'](_0x5dafcd,_0x1a847c[_0x389c('0x19c')]);};AGIVertices[_0x389c('0xf')][_0x389c('0x19d')]=function(_0x253849){logger['info'](util['format'](_0x389c('0x19e'),_0x253849[_0x389c('0xa9')]));this[_0x389c('0xc')]['noop']('START\x20CALLY\x20SQUARE');var _0x90c1a5=this[_0x389c('0xc')][_0x389c('0x10')]('XMCS-UNIQUEID');if(!_[_0x389c('0x44')](_0x90c1a5[_0x389c('0xa2')])){this[_0x389c('0xc')][_0x389c('0x39')]=_0x90c1a5[_0x389c('0xa2')];}if(_0x253849[_0x389c('0xba')]==='yes'){this['channel']['noop']('Answer');return this[_0x389c('0xc')][_0x389c('0xba')]();}return this[_0x389c('0xc')]['noop'](_0x389c('0x19f'));};AGIVertices[_0x389c('0xf')][_0x389c('0x1a0')]=function(_0x4f02b6){logger[_0x389c('0x32')](util[_0x389c('0x2b')](_0x389c('0x1a1'),_0x4f02b6[_0x389c('0xa9')]));if(!this['isConfigured'](_0x4f02b6['project_id'])){return this['channel']['error'](_0x4f02b6,_0x389c('0x1a2'));}var _0x4b5838=this[_0x389c('0x17')]['sync'](this,_0x4f02b6[_0x389c('0x1a3')]);if(!this[_0x389c('0x84')](_0x4b5838)){return this[_0x389c('0xc')][_0x389c('0x2f')](_0x4f02b6,util['format'](_0x389c('0x1a4'),_0x4f02b6[_0x389c('0x1a3')]));}if(_0x4b5838===this['channel']['arg_1']){return this[_0x389c('0xc')][_0x389c('0x2f')](_0x4f02b6,_0x389c('0x1a5'));}this[_0x389c('0x38')][_0x389c('0x72')](this,_0x4f02b6,_0x4b5838);var _0x413291=this[_0x389c('0xc')]['exec']('AGI',util[_0x389c('0x2b')](_0x389c('0x1a6'),config['agi']['host']||_0x389c('0x1a7'),_0x4b5838,this[_0x389c('0xc')][_0x389c('0x3b')]));if(_0x413291['result']===-0x1){return _0x413291;}return this[_0x389c('0xc')][_0x389c('0xaa')](util[_0x389c('0x2b')](_0x389c('0xc3'),_0x389c('0x1a8'),_0x4b5838));};AGIVertices['prototype'][_0x389c('0x1a9')]=function(_0x45b6d1){logger[_0x389c('0x32')](util[_0x389c('0x2b')](_0x389c('0x1aa'),_0x45b6d1[_0x389c('0xa9')]));var _0x4ea551=this[_0x389c('0x1ab')]['sync'](this,_0x45b6d1[_0x389c('0xb7')]);this['createSquareDetailsReport'][_0x389c('0x72')](this,_0x45b6d1,_0x45b6d1[_0x389c('0xb7')]);if(this[_0x389c('0x84')](_0x45b6d1[_0x389c('0xd3')])){var _0xf178d6=this[_0x389c('0x10')][_0x389c('0x72')](this,_0x45b6d1[_0x389c('0xd3')]);if(_0xf178d6){this[_0x389c('0xc')]['setVariable'](_0xf178d6,_0x4ea551);return this[_0x389c('0xc')][_0x389c('0xaa')](util[_0x389c('0x2b')](_0x389c('0x1ac'),_0x45b6d1['command'],_0xf178d6));}}return this[_0x389c('0xc')][_0x389c('0xaa')](util[_0x389c('0x2b')](_0x389c('0x1ad'),_0x45b6d1[_0x389c('0xb7')]));};AGIVertices[_0x389c('0xf')][_0x389c('0x1ae')]=function(_0x5e6bae){logger[_0x389c('0x32')](util[_0x389c('0x2b')](_0x389c('0x1af'),_0x5e6bae[_0x389c('0xa9')]));_0x5e6bae[_0x389c('0x5c')]=_0x5e6bae[_0x389c('0x5c')]['replace'](/(\r\n|\n|\r)/gm,'\x20');if(!this['isConfigured'](_0x5e6bae[_0x389c('0x5b')])){return this[_0x389c('0xc')][_0x389c('0xaa')](_0x389c('0x1b0'));}if(!this[_0x389c('0x84')](_0x5e6bae[_0x389c('0x5c')])){return this[_0x389c('0xc')][_0x389c('0xaa')](_0x389c('0xab'));}this[_0x389c('0xc')][_0x389c('0xaa')](util[_0x389c('0x2b')]('Trying\x20Google\x20Cloud\x20TTS\x20%s',_0x5e6bae[_0x389c('0x5c')]));var _0x3de074=this[_0x389c('0x5a')][_0x389c('0x72')](this,_0x5e6bae);if(_0x3de074){this[_0x389c('0xc')][_0x389c('0xaa')](util[_0x389c('0x2b')](_0x389c('0x1b1'),_0x3de074));var _0xa4148a=this[_0x389c('0xc')][_0x389c('0xf8')](_0x3de074);try{fs[_0x389c('0xf9')](_0x3de074+_0x389c('0xfa'));}catch(_0x272dff){logger[_0x389c('0x2f')](_0x272dff);}return _0xa4148a;}return this[_0x389c('0xc')][_0x389c('0x2f')](_0x5e6bae,_0x389c('0x1b2'));};AGIVertices['prototype']['tts']=function(_0x298922){logger['info'](util[_0x389c('0x2b')]('Enter\x20in\x20GOOGLETTS\x20(%s)\x20block',_0x298922[_0x389c('0xa9')]));_0x298922[_0x389c('0x5c')]=_0x298922[_0x389c('0x5c')][_0x389c('0x59')](/(\r\n|\n|\r)/gm,'\x20');if(!this[_0x389c('0x84')](_0x298922[_0x389c('0x5c')])){return this['channel']['noop'](_0x389c('0xab'));}this[_0x389c('0xc')][_0x389c('0xaa')](util['format'](_0x389c('0x1b3'),_0x298922[_0x389c('0x5c')]));var _0x5ce7da=this[_0x389c('0x62')][_0x389c('0x72')](this,_0x298922);if(_0x5ce7da){this[_0x389c('0xc')]['noop'](util[_0x389c('0x2b')](_0x389c('0x1b4'),_0x5ce7da));var _0x4e3e28=this[_0x389c('0xc')]['streamFile'](_0x5ce7da);try{fs['unlink'](_0x5ce7da+'.wav');}catch(_0x3bccc4){logger[_0x389c('0x2f')](_0x3bccc4);}return _0x4e3e28;}return this[_0x389c('0xc')][_0x389c('0x2f')](_0x298922,'Google\x20TTS\x20is\x20unreachable');};AGIVertices[_0x389c('0xf')][_0x389c('0x1b5')]=function(_0x5abe9a){logger[_0x389c('0x32')](util[_0x389c('0x2b')](_0x389c('0x1b6'),_0x5abe9a['label']));if(!this[_0x389c('0x84')](_0x5abe9a[_0x389c('0x14f')])){return this['channel'][_0x389c('0x2f')](_0x5abe9a,'no\x20find\x20by\x20configured');}logger['info'](util[_0x389c('0x2b')]('FIND\x20AGENT\x20%s\x20BY\x20%s',this[_0x389c('0xc')]['callerid'],_0x5abe9a[_0x389c('0x14f')]));var _0x3c4057=this[_0x389c('0x52')][_0x389c('0x72')](this,_0x5abe9a[_0x389c('0x14f')]);if(_0x3c4057){logger[_0x389c('0x32')](util[_0x389c('0x2b')]('AGENT\x20%s\x20FOUND\x20BY',this['channel'][_0x389c('0x3c')],_0x5abe9a[_0x389c('0x14f')]));this['channel'][_0x389c('0xaa')](util[_0x389c('0x2b')](_0x389c('0x152'),this[_0x389c('0xc')]['callerid'],_0x5abe9a[_0x389c('0x14f')]));return{'code':0xc8,'result':_0x389c('0x153')};}else{logger[_0x389c('0x32')](util[_0x389c('0x2b')](_0x389c('0x154'),this['channel'][_0x389c('0x3c')],_0x5abe9a[_0x389c('0x14f')]));this['channel']['noop'](util[_0x389c('0x2b')](_0x389c('0x154'),this['channel'][_0x389c('0x3c')],_0x5abe9a[_0x389c('0x14f')]));return{'code':0xc8,'result':_0x389c('0x155')};}};AGIVertices['prototype'][_0x389c('0x1b7')]=function(_0x24ea36){logger[_0x389c('0x32')](util['format'](_0x389c('0x1b8'),_0x24ea36[_0x389c('0xa9')]));var _0x2b896c=this[_0x389c('0xc')][_0x389c('0xac')](_0x389c('0x1b9'),[_0x24ea36[_0x389c('0x1ba')],_0x24ea36[_0x389c('0x78')]]);if(_0x2b896c[_0x389c('0xa4')]===-0x1){return _0x2b896c;}return this['channel'][_0x389c('0xaa')](util[_0x389c('0x2b')]('Executed\x20command\x20%s\x20%s',_0x389c('0x1b9'),_0x24ea36['mailbox']));};AGIVertices[_0x389c('0xf')][_0x389c('0x1bb')]=function(_0x177e29){logger['info'](util[_0x389c('0x2b')](_0x389c('0x1bc'),_0x177e29[_0x389c('0xa9')]));if(!this[_0x389c('0x84')](_0x177e29[_0x389c('0xd3')])){return this['channel'][_0x389c('0x2f')](_0x177e29,'no\x20variable\x20selected');}var _0x4efe11=this[_0x389c('0x10')][_0x389c('0x72')](this,_0x177e29[_0x389c('0xd3')]);if(!_0x4efe11){return this['channel'][_0x389c('0x2f')](_0x177e29,_0x389c('0xd4'));}var _0x95bb23=this[_0x389c('0xc')][_0x389c('0x10')](_0x4efe11);return{'code':0xc8,'result':_0x95bb23['extra']?_0x95bb23[_0x389c('0xa2')]:'-'};};String[_0x389c('0xf')]['replaceAll']=function(_0x25a0f2,_0x538c48){return this[_0x389c('0xa0')](_0x25a0f2)[_0x389c('0x1bd')](_0x538c48);};module[_0x389c('0x1be')]=AGIVertices;