Built motion from commit 20b39a97.|2.6.29
[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 _0x6737=['speech','out','Dialogflow\x20is\x20unreachable','client_email','no\x20client_email\x20configured','no\x20private_key\x20configured','no\x20anguage\x20configured','Trying\x20DialogflowV2:\x20%s','googleDialogflowV2','providerResponse','DialogflowV2\x20Result\x20%s','DialogflowV2\x20is\x20unreachable','sesteknda','Enter\x20in\x20SESTEKNDA\x20(%s)\x20block','no\x20ndauth\x20url\x20configured','no\x20username\x20configured','password','ndassistant_url','Trying\x20SestekNDA:\x20%s','audiofile','Sestek\x20NDA\x20%s\x20file\x20created','unlink','.wav','SestekNDA\x20Result\x20%s','SestekNDA\x20is\x20unreachable','end','Enter\x20in\x20END\x20(%s)\x20block','ext_dial','Enter\x20in\x20EXTERNAL\x20DIAL\x20(%s)\x20block','trunk_id','no\x20trunk\x20selected','trunk_name','SIP/%s/%s','Executed\x20command\x20%s','getdigits','Enter\x20in\x20GETDIGITS\x20(%s)\x20block','file_id','no\x20file\x20audio\x20found','response','test','maxdigit','hiddendigitsnum','generate','hiddendigitspos','first','substr','getsecretdigits','Enter\x20in\x20GETSECRETDIGITS\x20(%s)\x20block','goal','Enter\x20in\x20GOAL\x20(%s)\x20block','goalname','[AGI]\x20Enter\x20in\x20AWSPOLLY\x20(%s)\x20block','Trying\x20aws\x20Polly\x20%s','aws\x20Polly\x20%s\x20file\x20created','streamFile','aws\x20Polly\x20is\x20unreachable','awslex','Enter\x20in\x20Amazon\x20Lex\x20(%s)\x20block','no\x20valid\x20credentials\x20configured','no\x20bot\x20name\x20configured','Trying\x20Amazon\x20Lex:\x20%s','amazonlex','Amazon\x20Lex\x20Result\x20%s','Enter\x20in\x20GOOGLEASR\x20(%s)\x20block\x20%s','wav','%s/recordings/%s','NOBEEP','recordFile','intKey','GOOGLE_ASR_%s','GoogleASR\x20Result\x20%s','tildeasr','Enter\x20in\x20TILDEASR\x20(%s)\x20block','no\x20appid\x20configured','no\x20appsecret\x20configured','beep','tilde\x20%s\x20file\x20created','TildeASR\x20Result\x20%s','gotoc','Enter\x20in\x20GOTO\x20(%s)\x20block','continueAt','extension','gotoif','Enter\x20in\x20GOTOIF\x20(%s)\x20block','no\x20condition\x20configured','condition','true','false','gotoiftime','interval_id','no\x20interval\x20configured','IFTIME(%s?true:false)','IFTIME\x20%s\x20%s','hangup','ispeechasr','Enter\x20in\x20ISPEECHASR\x20(%s)\x20block','ispeech\x20%s\x20file\x20created','Enter\x20in\x20ISPEECHTTS\x20(%s)\x20block','ispeech\x20TTS\x20is\x20unreachable','login','Enter\x20in\x20LOGIN\x20(%s)\x20block','findBy','FIND\x20AGENT\x20%s\x20BY\x20%s','AGENT\x20%s\x20FOUND\x20BY','AGENT\x20%s\x20NOT\x20FOUND\x20BY','failure','logout','Enter\x20in\x20LOGOUT\x20(%s)\x20block','no\x20find\x20by\x20configured','success','math','operation','no\x20operation\x20configured','math\x20%s','%s[%s]','variable\x20%s[key]\x20set','menu','no\x20file\x20audio\x20selected','getData','digit','Enter\x20in\x20NOOP\x20(%s)\x20block','output','pause','Enter\x20in\x20PAUSE\x20(%s)\x20block','pause_id','playback','PLAYBACK','Enter\x20in\x20QUEUE\x20(%s)\x20block','queue_id','no\x20queue\x20selected','no\x20queue\x20found','indexOf','XMCS-QUEUE','toLowerCase','QUEUE','macro','gosub','position','record','Enter\x20in\x20RECORD\x20(%s)\x20block','recordingFormat','%s_%s','%s/recordings/%s.%s','Recording\x20%s\x20%s\x20%s\x20%s','escape_digits','restapi','Enter\x20in\x20RESTAPI\x20(%s)\x20block','Response:','inspect','no\x20variable\x20selected\x20for\x20the\x20response','%s_STATUS_CODE','200','%s_STATUS_MESSAGE','Unable\x20to\x20set\x20result\x20in\x20variable\x20%s','Enter\x20in\x20SAYDIGITS\x20(%s)\x20block','sayDigits','digits','saynumber','Enter\x20in\x20SAYNUMBER\x20(%s)\x20block','sayNumber','Enter\x20in\x20SAYPHONETIC\x20(%s)\x20block','sayPhonetic','account_id','no\x20mail\x20account\x20found','\x22%s\x22\x20<%s>','email','user','bcc','template_id','sendMail\x20message','Trying\x20SendMail\x20with\x20account\x20%s','smtpOptions','Mail\x20message\x20added\x20to\x20outgoing\x20process','sendFax','Enter\x20in\x20SENDFAX\x20(%s)\x20block','SENDFAX\x20block\x20not\x20implemented','sendSMS','no\x20sms\x20account\x20configured','getSmsAccount','sms_account_id','no\x20sms\x20account\x20found','sms_text','Sms\x20message\x20added\x20to\x20outgoing\x20process','set','Enter\x20in\x20SET\x20(%s)\x20block','no\x20variable\x20selected','variable_value','start','Enter\x20in\x20START\x20(%s)\x20block','START\x20CALLY\x20SQUARE','XMCS-UNIQUEID','yes','Answer','Skipped\x20Answer','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','host','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','Trying\x20Google\x20Cloud\x20TTS\x20%s','Google\x20Cloud\x20TTS\x20%s\x20file\x20created','tts','Enter\x20in\x20GOOGLETTS\x20(%s)\x20block','Google\x20TTS\x20%s\x20file\x20created','Google\x20TTS\x20is\x20unreachable','unpause','Enter\x20in\x20UNPAUSE\x20(%s)\x20block','voicemail','Enter\x20in\x20VOICEMAIL\x20(%s)\x20block','mailbox','vswitch','Enter\x20in\x20SWITCH\x20(%s)\x20block','join','exports','lodash','shelljs','randomstring','moment','mustache','request-promise','agi','../../config/environment','/var/opt/motion2/server/files','rawHeaders','channel','mailRpc','prototype','getVariable','rpc','then','name','catch','getVoiceQueue','getSquareProject','getSquareProjectById','getSquareOdbc','getSquareOdbcById','dsn','getUser','getUserById','getTrunk','getSound','getSoundById','save_name','getMailAccount','sendMailMessage','getIntervals','getIntervalById','IntervalId','interval','map','Intervals','getSoundPath','format','%s/sounds/converted/%s','getQueryOdbc','open','error','Error\x20getting\x20ODBC\x20connection\x20%s','info','ODBC\x20connection\x20successfully','Error\x20executing\x20query\x20%s','Query\x20executed\x20correctly\x20%s','Error\x20closing\x20connection\x20to\x20odbc\x20%s','getSmsAccountById','createSmsMessage','createSquareDetailsReport','uniqueid','label','arg_1','createSquareRecording','callerid','calleridname','context','priority','accountcode','file','createSquareMessage','createCmContact','isEmpty','isNil','random','lastName','phone','list_id','scheduledAt','callback','Callback\x20scheduled\x20at\x20','toString','callback_priority','agentPause','agent','agentUnpause','agentLogout','agentLogin','internal','%s/%s@from-sip/n','LOCAL','exec','trim','replace','googleCloudTTS','apiKey','text','languageCode','en-US','ssmlGender','audioEncoding','MP3','googleTTS','google_tts_language','restAPI','url','timeout','number','POST','PUT','method','toUpperCase','body','rawBody','parse','An\x20incorrect\x20formatted\x20json\x20headers\x20has\x20been\x20passed\x20to\x20the\x20function','computedVariables','uri','render','headers','stringify','An\x20incorrect\x20formatted\x20json\x20has\x20been\x20passed\x20to\x20the\x20function','statusCode','statusMessage','message','500\x20-\x20Internal\x20Server\x20Error','googleDialogflow','dialogflow_language','dialogflowV2_project_id','private_key','dialogflowV2_language','sestekNDA','ispeechTTS','key','ispeech_tts_language','speed','ispeechASR','ispeech_asr_language','isConfigured','model','awsPolly','aws_polly_region','aws_text_type','awsLex','aws_access_key_id','aws_secret_access_key','aws_lex_region','aws_bot_name','googleASR','google_asr_language','tildeASR','appid','appsecret','includes','isString','replaceObjectAllVariables','replaceAllVariables','recursiveNodeIndex','hasOwnProperty','isPlainObject','isArray','length','saveRestApiResult','%s.%s','split','replaceAll','extra','The\x20\x22%s\x22\x20variable\x20value\x20is:\x20%s','setVariable','maxRetry','sync','retry','mrcpsynth','Enter\x20in\x20MRCPSynth\x20(%s)\x20block','noop','no\x20text\x20configured','options','MRCPSynth','result','Executed\x20command\x20MRCPSynth\x20%s','mrcprecog','Enter\x20in\x20MRCPRecog\x20(%s)\x20block','grammar','getAndSetVariable','MRCP_RECOG_CONFIDENCE','MRCP_RECOG_TRANSCRIPT','MRCP_RECOG_INSTANCE','Executed\x20command\x20MRCPRecog\x20%s','Enter\x20in\x20AGI\x20(%s)\x20block','command','answer','Enter\x20in\x20ANSWER\x20(%s)\x20block','Wait\x20%s\x20seconds\x20before\x20answer','wait','Enter\x20in\x20CALLBACK\x20(%s)\x20block','delay','add','minutes','custom_app','Executed\x20command\x20%s\x20%s','application','Enter\x20in\x20LUMENVOXTTS\x20(%s)\x20block','sestektts','lumenvoxasr','Enter\x20in\x20LUMENVOXASR\x20(%s)\x20block','no\x20grammar\x20configured','MRCPRecog','LUMENVOX_ASR_CONFIDENCE','RECOG_INPUT()','LUMENVOX_ASR_TRANSCRIPT','RECOG_INSTANCE()','Enter\x20in\x20SESTEKASR\x20(%s)\x20block','RECOG_CONFIDENCE()','SESTEK_ASR_CONFIDENCE','SESTEK_ASR_TRANSCRIPT','SESTEK_ASR_INSTANCE','database','Enter\x20in\x20DATABASE\x20(%s)\x20block','no\x20database\x20selected','query','query:\x20%s','variable_id','no\x20variable\x20selected\x20for\x20the\x20result','no\x20variable\x20found','forEach','keys','variable\x20%s\x20set','dial','debug','Enter\x20in\x20DIAL\x20(%s)\x20block','no\x20user\x20selected','sip_id','no\x20user\x20found','DIAL','SIP/%s','opts','dialogflow','Enter\x20in\x20DIALOGFLOW\x20(%s)\x20block','no\x20key\x20configured','bot','Trying\x20Dialogflow:\x20%s','DIALOGFLOW_%s'];(function(_0x502c7d,_0x2f1285){var _0x30b7ed=function(_0x2d92f3){while(--_0x2d92f3){_0x502c7d['push'](_0x502c7d['shift']());}};_0x30b7ed(++_0x2f1285);}(_0x6737,0xe2));var _0x7673=function(_0x1661d6,_0x23bd39){_0x1661d6=_0x1661d6-0x0;var _0x480ab0=_0x6737[_0x1661d6];return _0x480ab0;};'use strict';var fs=require('fs');var util=require('util');var _=require(_0x7673('0x0'));var sh=require(_0x7673('0x1'));var odbc=require('odbc')();var rs=require(_0x7673('0x2'));var moment=require(_0x7673('0x3'));var Mustache=require(_0x7673('0x4'));var rp=require(_0x7673('0x5'));var logger=require('../../config/logger')(_0x7673('0x6'));var config=require(_0x7673('0x7'));var scripts=require('./scripts');var FILES_PATH=_0x7673('0x8');var recursiveMapAttributes=[_0x7673('0x9'),'rawBody'];var verticesWithRetry=['menu','getdigits','getsecretdigits'];var AGIVertices=function(_0x285c6d,_0x5bede8,_0x3b3184){this[_0x7673('0xa')]=_0x285c6d;this['rpc']=_0x5bede8;this[_0x7673('0xb')]=_0x3b3184;};AGIVertices[_0x7673('0xc')][_0x7673('0xd')]=function(_0x4d40ce,_0x49fcb2){this[_0x7673('0xe')]['getVariableById'](_0x4d40ce)[_0x7673('0xf')](function(_0x8b5b80){_0x49fcb2(null,_0x8b5b80?_0x8b5b80[_0x7673('0x10')]:![]);})[_0x7673('0x11')](function(_0x41d6bd){_0x49fcb2(_0x41d6bd);});};AGIVertices[_0x7673('0xc')][_0x7673('0x12')]=function(_0x457ffe,_0x1da115){this[_0x7673('0xe')]['getVoiceQueueById'](_0x457ffe)[_0x7673('0xf')](function(_0x4738bd){_0x1da115(null,_0x4738bd?_0x4738bd[_0x7673('0x10')]:![]);})[_0x7673('0x11')](function(_0x224cea){_0x1da115(_0x224cea);});};AGIVertices[_0x7673('0xc')][_0x7673('0x13')]=function(_0x4a8ea0,_0x5ed354){this[_0x7673('0xe')][_0x7673('0x14')](_0x4a8ea0)['then'](function(_0x3afbb3){_0x5ed354(null,_0x3afbb3?_0x3afbb3[_0x7673('0x10')]:![]);})['catch'](function(_0x33ff7d){_0x5ed354(_0x33ff7d);});};AGIVertices[_0x7673('0xc')][_0x7673('0x15')]=function(_0x4b981b,_0x50f22d){this[_0x7673('0xe')][_0x7673('0x16')](_0x4b981b)['then'](function(_0x17c564){_0x50f22d(null,_0x17c564?_0x17c564[_0x7673('0x17')]:![]);})[_0x7673('0x11')](function(_0x33eb47){_0x50f22d(_0x33eb47);});};AGIVertices[_0x7673('0xc')][_0x7673('0x18')]=function(_0x59879a,_0x557161){this[_0x7673('0xe')][_0x7673('0x19')](_0x59879a)[_0x7673('0xf')](function(_0x345277){_0x557161(null,_0x345277?_0x345277[_0x7673('0x10')]:![]);})['catch'](function(_0x2009e1){_0x557161(_0x2009e1);});};AGIVertices[_0x7673('0xc')][_0x7673('0x1a')]=function(_0x2a8abf,_0x132dc6){this[_0x7673('0xe')]['getTrunkById'](_0x2a8abf)[_0x7673('0xf')](function(_0xaca974){_0x132dc6(null,_0xaca974?_0xaca974[_0x7673('0x10')]:![]);})[_0x7673('0x11')](function(_0x5a98fe){_0x132dc6(_0x5a98fe);});};AGIVertices['prototype'][_0x7673('0x1b')]=function(_0x11b42b,_0x291d10){var _0x9d9eab=this;this[_0x7673('0xe')][_0x7673('0x1c')](_0x11b42b)[_0x7673('0xf')](function(_0x5a59f9){_0x291d10(null,_0x5a59f9?_0x9d9eab['getSoundPath'](_0x5a59f9[_0x7673('0x1d')]):![]);})[_0x7673('0x11')](function(_0x1dd436){_0x291d10(_0x1dd436);});};AGIVertices[_0x7673('0xc')][_0x7673('0x1e')]=function(_0x3aaf6b,_0x224122){this['rpc']['getMailAccountById'](_0x3aaf6b)[_0x7673('0xf')](function(_0x36c841){_0x224122(null,_0x36c841?_0x36c841:![]);})[_0x7673('0x11')](function(_0xf5097a){_0x224122(_0xf5097a);});};AGIVertices['prototype'][_0x7673('0x1f')]=function(_0x497760,_0x15f6a7,_0x139717){this[_0x7673('0xb')][_0x7673('0x1f')](_0x497760,_0x15f6a7)[_0x7673('0xf')](function(){_0x139717(null);})[_0x7673('0x11')](function(_0x2cb973){_0x139717(_0x2cb973);});};AGIVertices[_0x7673('0xc')][_0x7673('0x20')]=function(_0x1b6061,_0x16681f){this[_0x7673('0xe')][_0x7673('0x21')](_0x1b6061)['then'](function(_0x32ee3d){if(_0x32ee3d){if(_0x32ee3d[_0x7673('0x22')]){_0x16681f(null,[_0x32ee3d[_0x7673('0x23')]]);}else{_0x16681f(null,_[_0x7673('0x24')](_0x32ee3d[_0x7673('0x25')],_0x7673('0x23')));}}else{_0x16681f(null,![]);}})[_0x7673('0x11')](function(_0x5736c0){_0x16681f(_0x5736c0);});};AGIVertices['prototype'][_0x7673('0x26')]=function(_0x32666c){return util[_0x7673('0x27')](_0x7673('0x28'),FILES_PATH,_0x32666c);};AGIVertices[_0x7673('0xc')][_0x7673('0x29')]=function(_0x159afd,_0x47c9a3,_0x2845f6){odbc[_0x7673('0x2a')](_0x159afd,function(_0x59905c){if(_0x59905c){logger[_0x7673('0x2b')](_0x7673('0x2c'),_0x59905c);_0x2845f6(_0x59905c);}else{logger[_0x7673('0x2d')](_0x7673('0x2e'));odbc['query'](_0x47c9a3,function(_0xcfd76e,_0x1f77c0){if(_0xcfd76e){logger['info'](_0x7673('0x2f'),_0x47c9a3);_0x2845f6(_0xcfd76e);}else{logger[_0x7673('0x2d')](_0x7673('0x30'),_0x47c9a3);odbc['close'](function(_0xe50aa5){if(_0xe50aa5){logger[_0x7673('0x2b')](_0x7673('0x31'),_0xe50aa5);}_0x2845f6(null,_0x1f77c0);});}});}});};AGIVertices['prototype']['getSmsAccount']=function(_0x13ce30,_0x5efdf6){this['rpc'][_0x7673('0x32')](_0x13ce30)[_0x7673('0xf')](function(_0x58b9b1){_0x5efdf6(null,_0x58b9b1?_0x58b9b1:![]);})[_0x7673('0x11')](function(_0x2926a3){_0x5efdf6(_0x2926a3);});};AGIVertices[_0x7673('0xc')][_0x7673('0x33')]=function(_0x12b84d,_0x2466b8){this['rpc'][_0x7673('0x33')](_0x12b84d)['then'](function(_0xf43bb7){_0x2466b8(null,_0xf43bb7);})['catch'](function(_0x76b90a){_0x2466b8(_0x76b90a);});};AGIVertices[_0x7673('0xc')]['createSquareDetailsReport']=function(_0x5b2e69,_0x1cac93,_0x503412){this[_0x7673('0xe')][_0x7673('0x34')]({'uniqueid':this[_0x7673('0xa')][_0x7673('0x35')],'node':_0x5b2e69[_0x7673('0x36')],'application':_0x5b2e69['agicommand'],'data':_0x1cac93||null,'project_name':this['channel'][_0x7673('0x37')],'callerid':this[_0x7673('0xa')]['callerid']})[_0x7673('0xf')](function(_0xb10099){if(_0x503412){_0x503412(null,_0xb10099);}})[_0x7673('0x11')](function(_0x5991d7){if(_0x503412){_0x503412(_0x5991d7);}});};AGIVertices[_0x7673('0xc')][_0x7673('0x38')]=function(_0x46ecbb,_0x229c13,_0xbdd0e5,_0x138e68){this[_0x7673('0xe')][_0x7673('0x38')]({'uniqueid':this[_0x7673('0xa')]['uniqueid'],'callerid':this[_0x7673('0xa')][_0x7673('0x39')],'calleridname':this[_0x7673('0xa')][_0x7673('0x3a')],'context':this[_0x7673('0xa')][_0x7673('0x3b')],'extension':this[_0x7673('0xa')]['extension'],'priority':this[_0x7673('0xa')][_0x7673('0x3c')],'accountcode':this[_0x7673('0xa')][_0x7673('0x3d')],'dnid':this[_0x7673('0xa')]['dnid'],'projectName':this[_0x7673('0xa')][_0x7673('0x37')],'saveName':_0x229c13,'filename':_0x46ecbb[_0x7673('0x3e')]||_0x229c13,'savePath':_0xbdd0e5})[_0x7673('0xf')](function(_0x3f76a3){_0x138e68(null,_0x3f76a3);})['catch'](function(_0x56cd7a){_0x138e68(_0x56cd7a);});};AGIVertices[_0x7673('0xc')][_0x7673('0x3f')]=function(_0x510960,_0x2314e7,_0x2a841b,_0x76ee09,_0x32a5e7){this[_0x7673('0xe')]['createSquareMessage']({'uniqueid':this[_0x7673('0xa')][_0x7673('0x35')],'body':_0x510960,'direction':_0x2314e7,'providerName':_0x2a841b,'providerResponse':_0x76ee09})[_0x7673('0xf')](function(_0x3e802d){if(_0x32a5e7){_0x32a5e7(null,_0x3e802d);}})['catch'](function(_0x1691a5){if(_0x32a5e7){_0x32a5e7(_0x1691a5);}});};AGIVertices[_0x7673('0xc')][_0x7673('0x40')]=function(_0xa93124,_0x228053){this[_0x7673('0xe')][_0x7673('0x40')]({'firstName':_[_0x7673('0x41')](_0xa93124[_0x7673('0x10')])||_[_0x7673('0x42')](_0xa93124[_0x7673('0x10')])?'callback_'+Math[_0x7673('0x43')]():_0xa93124['name'],'lastName':_[_0x7673('0x41')](_0xa93124[_0x7673('0x44')])||_[_0x7673('0x42')](_0xa93124['lastName'])?null:_0xa93124[_0x7673('0x44')],'phone':_0xa93124[_0x7673('0x45')],'ListId':_0xa93124[_0x7673('0x46')],'scheduledat':_0xa93124[_0x7673('0x47')],'callbackUniqueid':this[_0x7673('0xa')][_0x7673('0x35')],'tags':_0x7673('0x48'),'description':_0x7673('0x49')+_0xa93124[_0x7673('0x47')][_0x7673('0x4a')](),'priority':_0xa93124[_0x7673('0x4b')]})[_0x7673('0xf')](function(_0x9be9a4){_0x228053(null,_0x9be9a4);})[_0x7673('0x11')](function(_0x59bcf3){_0x228053(_0x59bcf3);});};AGIVertices[_0x7673('0xc')]['getPause']=function(_0x2f25cc,_0x268ed3){this[_0x7673('0xe')]['getPauseById'](_0x2f25cc)[_0x7673('0xf')](function(_0x5d71b7){_0x268ed3(null,_0x5d71b7?_0x5d71b7['name']:![]);})[_0x7673('0x11')](function(_0x5bbfdd){_0x268ed3(_0x5bbfdd);});};AGIVertices['prototype'][_0x7673('0x4c')]=function(_0x3f6ef3,_0x215a32,_0xeaa731){var _0x10bc98={'role':_0x7673('0x4d')};_0x10bc98[_0x3f6ef3]=this[_0x7673('0xa')][_0x7673('0x39')];this[_0x7673('0xe')][_0x7673('0x4c')](_0x10bc98,_0x215a32,this[_0x7673('0xa')]['uniqueid'])['then'](function(_0x2aa032){_0xeaa731(null,_[_0x7673('0x42')](_0x2aa032)?![]:!![]);})[_0x7673('0x11')](function(_0x204e02){logger[_0x7673('0x2b')](_0x204e02);_0xeaa731(null,![]);});};AGIVertices['prototype']['agentUnpause']=function(_0x44fa26,_0x7ac2d){var _0x1cd46c={'role':_0x7673('0x4d')};_0x1cd46c[_0x44fa26]=this[_0x7673('0xa')]['callerid'];this[_0x7673('0xe')][_0x7673('0x4e')](_0x1cd46c)[_0x7673('0xf')](function(_0x5d121e){_0x7ac2d(null,_[_0x7673('0x42')](_0x5d121e)?![]:!![]);})['catch'](function(_0x1240f9){logger[_0x7673('0x2b')](_0x1240f9);_0x7ac2d(null,![]);});};AGIVertices[_0x7673('0xc')]['agentLogout']=function(_0x278612,_0x20fb33){var _0x562a20={'role':'agent'};_0x562a20[_0x278612]=this['channel'][_0x7673('0x39')];this[_0x7673('0xe')][_0x7673('0x4f')](_0x562a20)[_0x7673('0xf')](function(_0x585989){_0x20fb33(null,_[_0x7673('0x42')](_0x585989)?![]:!![]);})['catch'](function(_0x94bd14){logger[_0x7673('0x2b')](_0x94bd14);_0x20fb33(null,![]);});};AGIVertices[_0x7673('0xc')][_0x7673('0x50')]=function(_0x5abb12,_0x2027b8){var _0x3a2e09={'role':_0x7673('0x4d')};_0x3a2e09[_0x5abb12]=this['channel']['callerid'];var _0x2d21f2=_0x5abb12!=_0x7673('0x51')?util[_0x7673('0x27')](_0x7673('0x52'),_0x7673('0x53'),this['channel'][_0x7673('0x39')]):undefined;this[_0x7673('0xe')]['agentLogin'](_0x3a2e09,_0x2d21f2)['then'](function(_0x4a6ef8){_0x2027b8(null,_[_0x7673('0x42')](_0x4a6ef8)?![]:!![]);})[_0x7673('0x11')](function(_0x56d4cf){logger[_0x7673('0x2b')](_0x56d4cf);_0x2027b8(null,![]);});};AGIVertices['prototype']['shellCommand']=function(_0x355d27,_0x3f00d0){sh[_0x7673('0x54')](_[_0x7673('0x55')](_0x355d27),function(_0x4a0af5,_0x104704){var _0x4d626e=_0x104704[_0x7673('0x56')](/(\r\n|\n|\r)/gm,'');_0x3f00d0(null,_0x4d626e);});};AGIVertices[_0x7673('0xc')][_0x7673('0x57')]=function(_0x3a12e7,_0xcfbf4){scripts[_0x7673('0x57')](_0x3a12e7[_0x7673('0x58')],_0x3a12e7['google_cloud_tts_text_type']||'text',_0x3a12e7[_0x7673('0x59')],_0x3a12e7[_0x7673('0x5a')]||_0x7673('0x5b'),_0x3a12e7[_0x7673('0x5c')]||'MALE',_0x3a12e7[_0x7673('0x5d')]||_0x7673('0x5e'))[_0x7673('0xf')](function(_0x867245){_0xcfbf4(null,_0x867245);})[_0x7673('0x11')](function(_0x4ef0f8){_0xcfbf4(_0x4ef0f8);});};AGIVertices[_0x7673('0xc')][_0x7673('0x5f')]=function(_0xe587bf,_0x4f35a3){scripts[_0x7673('0x5f')](_0xe587bf[_0x7673('0x59')],_0xe587bf[_0x7673('0x60')]||'en',0x1)[_0x7673('0xf')](function(_0x23521d){_0x4f35a3(null,_0x23521d);})[_0x7673('0x11')](function(_0x5f38ae){_0x4f35a3(_0x5f38ae);});};AGIVertices[_0x7673('0xc')][_0x7673('0x61')]=function(_0xc6660d,_0x413d2a){var _0x1a32e3={'uri':_0xc6660d[_0x7673('0x62')],'method':_0xc6660d['method'],'json':!![],'resolveWithFullResponse':!![],'strictSSL':![],'timeout':typeof parseInt(_0xc6660d[_0x7673('0x63')])===_0x7673('0x64')&&parseInt(_0xc6660d[_0x7673('0x63')])>=0x1?parseInt(_0xc6660d[_0x7673('0x63')])*0x3e8:0x5*0x3e8};if(_['includes']([_0x7673('0x65'),_0x7673('0x66')],_0x1a32e3[_0x7673('0x67')][_0x7673('0x68')]())){try{_0x1a32e3[_0x7673('0x69')]=_0xc6660d[_0x7673('0x6a')]?JSON[_0x7673('0x6b')](_0xc6660d[_0x7673('0x6a')]):{};}catch(_0x20ba4a){logger[_0x7673('0x2b')]('An\x20incorrect\x20formatted\x20json\x20body\x20has\x20been\x20passed\x20to\x20the\x20function',_0x20ba4a);}}try{_0x1a32e3['headers']=_0xc6660d[_0x7673('0x9')]?JSON[_0x7673('0x6b')](_0xc6660d[_0x7673('0x9')]):{};}catch(_0x49c80d){logger[_0x7673('0x2b')](_0x7673('0x6c'),_0x49c80d);}if(_0xc6660d[_0x7673('0x6d')]){try{var _0x4d353a=require(_0xc6660d[_0x7673('0x6d')])['sync'](this,_0x1a32e3);_0x1a32e3[_0x7673('0x6e')]=Mustache[_0x7673('0x6f')](_0xc6660d['url'],_0x4d353a,{},['$$','$$']);if(_0x1a32e3['headers']){_0x1a32e3[_0x7673('0x70')]=JSON[_0x7673('0x6b')](Mustache['render'](JSON['stringify'](_0x1a32e3[_0x7673('0x70')]),_0x4d353a,{},['$$','$$']));}if(_0x1a32e3['body']){_0x1a32e3[_0x7673('0x69')]=JSON[_0x7673('0x6b')](Mustache[_0x7673('0x6f')](JSON[_0x7673('0x71')](_0x1a32e3[_0x7673('0x69')]),_0x4d353a,{},['$$','$$']));}}catch(_0x3c82d3){logger[_0x7673('0x2b')](_0x7673('0x72'),_0x3c82d3);}}rp(_0x1a32e3)[_0x7673('0xf')](function(_0x506fdf){var _0xf324d9={'statusCode':_0x506fdf[_0x7673('0x73')]||0xc8,'statusMessage':_0x506fdf[_0x7673('0x74')]||'OK','headers':_0x506fdf['headers']||{},'body':_0x506fdf[_0x7673('0x69')]||{}};_0x413d2a(null,_0xf324d9);})[_0x7673('0x11')](function(_0x460aab){var _0x15b19c={'statusCode':_0x460aab[_0x7673('0x73')]||0x1f4,'statusMessage':_0x460aab[_0x7673('0x75')]||_0x7673('0x76'),'headers':_0x460aab['options'][_0x7673('0x70')]||{},'body':_0x460aab['options'][_0x7673('0x69')]||{}};_0x413d2a(null,_0x15b19c);});};AGIVertices[_0x7673('0xc')][_0x7673('0x77')]=function(_0x3a7767,_0x4ed050){scripts[_0x7673('0x77')](this[_0x7673('0xa')][_0x7673('0x35')],_0x3a7767['key'],_0x3a7767[_0x7673('0x59')],_0x3a7767[_0x7673('0x78')]||'en')[_0x7673('0xf')](function(_0x3a50f4){_0x4ed050(null,_0x3a50f4);})['catch'](function(_0x78baa2){_0x4ed050(_0x78baa2);});};AGIVertices[_0x7673('0xc')]['googleDialogflowV2']=function(_0x2d3583,_0x332c63){scripts['googleDialogflowV2'](this[_0x7673('0xa')]['uniqueid'],_0x2d3583[_0x7673('0x79')],_0x2d3583['client_email'],_0x2d3583[_0x7673('0x7a')],_0x2d3583[_0x7673('0x59')],_0x2d3583[_0x7673('0x7b')]||'en')[_0x7673('0xf')](function(_0x331971){_0x332c63(null,_0x331971);})[_0x7673('0x11')](function(_0x1b49fd){_0x332c63(_0x1b49fd);});};AGIVertices[_0x7673('0xc')]['sestekNDA']=function(_0x555ce3,_0x39901d){scripts[_0x7673('0x7c')](this[_0x7673('0xa')],_0x555ce3)[_0x7673('0xf')](function(_0x5304a4){_0x39901d(null,_0x5304a4);})[_0x7673('0x11')](function(_0x3834ad){_0x39901d(_0x3834ad);});};AGIVertices[_0x7673('0xc')][_0x7673('0x7d')]=function(_0x307617,_0x461cc8){scripts['ispeechTTS'](_0x307617[_0x7673('0x7e')],_0x307617['text'],_0x307617[_0x7673('0x7f')]||_0x7673('0x5b'),_0x307617[_0x7673('0x80')])[_0x7673('0xf')](function(_0x3811b7){_0x461cc8(null,_0x3811b7);})[_0x7673('0x11')](function(_0x2c2e96){_0x461cc8(_0x2c2e96);});};AGIVertices[_0x7673('0xc')][_0x7673('0x81')]=function(_0x16c6c7,_0x40e283,_0x2c90ab){scripts[_0x7673('0x81')](_0x40e283,_0x16c6c7['key'],_0x16c6c7[_0x7673('0x82')]||'en-US',this[_0x7673('0x83')](_0x16c6c7['model'])?_0x16c6c7[_0x7673('0x84')]:undefined)[_0x7673('0xf')](function(_0x3eb426){_0x2c90ab(null,_0x3eb426);})[_0x7673('0x11')](function(_0x1f0a18){_0x2c90ab(_0x1f0a18);});};AGIVertices[_0x7673('0xc')][_0x7673('0x85')]=function(_0x19c25f,_0x31e8c0){scripts[_0x7673('0x85')](_0x19c25f['aws_access_key_id'],_0x19c25f['aws_secret_access_key'],_0x19c25f[_0x7673('0x86')],_0x19c25f['aws_polly_voice']||'Amy',_0x19c25f[_0x7673('0x59')],_0x19c25f[_0x7673('0x87')]||_0x7673('0x59'))['then'](function(_0xe467db){_0x31e8c0(null,_0xe467db);})['catch'](function(_0x419747){_0x31e8c0(_0x419747);});};AGIVertices['prototype'][_0x7673('0x88')]=function(_0x116de3,_0x15f311){scripts['awsLex'](this[_0x7673('0xa')]['uniqueid'],_0x116de3[_0x7673('0x89')],_0x116de3[_0x7673('0x8a')],_0x116de3[_0x7673('0x8b')],_0x116de3[_0x7673('0x59')],_0x116de3[_0x7673('0x8c')])[_0x7673('0xf')](function(_0x179610){_0x15f311(null,_0x179610);})[_0x7673('0x11')](function(_0x3c19ab){_0x15f311(_0x3c19ab);});};AGIVertices['prototype']['googleASR']=function(_0x29632b,_0x26a42a,_0x54de2f){scripts[_0x7673('0x8d')](_0x26a42a,_0x29632b[_0x7673('0x7e')],_0x29632b[_0x7673('0x8e')]||_0x7673('0x5b'))[_0x7673('0xf')](function(_0x336f4e){_0x54de2f(null,_0x336f4e);})[_0x7673('0x11')](function(_0x420e2d){_0x54de2f(_0x420e2d);});};AGIVertices['prototype'][_0x7673('0x8f')]=function(_0x21b7ad,_0x28171b,_0x593182){scripts[_0x7673('0x8f')](_0x28171b,_0x21b7ad[_0x7673('0x90')],_0x21b7ad[_0x7673('0x91')],_0x21b7ad[_0x7673('0x6e')])[_0x7673('0xf')](function(_0x42dc55){_0x593182(null,_0x42dc55);})[_0x7673('0x11')](function(_0x4dee4a){_0x593182(_0x4dee4a);});};AGIVertices[_0x7673('0xc')]['clear']=function(_0x1570b6){var _0x42aa1a=_[_0x7673('0x92')](verticesWithRetry,_0x1570b6['agicommand'])?_0x1570b6:_['clone'](_0x1570b6);for(var _0x1543ac in _0x42aa1a){if(_0x42aa1a['hasOwnProperty'](_0x1543ac)){if(_0x42aa1a[_0x1543ac]&&_[_0x7673('0x93')](_0x42aa1a[_0x1543ac])){if(_[_0x7673('0x92')](recursiveMapAttributes,_0x1543ac)){_0x42aa1a[_0x1543ac]=this[_0x7673('0x94')](_0x42aa1a[_0x1543ac]);}else{_0x42aa1a[_0x1543ac]=this[_0x7673('0x95')](_0x42aa1a[_0x1543ac]);}}}}return _0x42aa1a;};AGIVertices[_0x7673('0xc')][_0x7673('0x96')]=function(_0x4b7faf){for(var _0x264a94 in _0x4b7faf){if(_0x4b7faf[_0x7673('0x97')](_0x264a94)){if(_[_0x7673('0x98')](_0x4b7faf[_0x264a94])){this[_0x7673('0x96')](_0x4b7faf[_0x264a94]);}else if(_[_0x7673('0x99')](_0x4b7faf[_0x264a94])){for(var _0x106f4b=0x0;_0x106f4b<_0x4b7faf[_0x264a94][_0x7673('0x9a')];_0x106f4b++){this[_0x7673('0x96')](_0x4b7faf[_0x264a94][_0x106f4b]);}}else if(_['isString'](_0x4b7faf[_0x264a94])){_0x4b7faf[_0x264a94]=this[_0x7673('0x95')](_0x4b7faf[_0x264a94]);}}}};AGIVertices[_0x7673('0xc')]['saveRestApiResult']=function(_0x3a4be1,_0x5297f0){for(var _0x47cb89 in _0x3a4be1){if(_0x3a4be1[_0x7673('0x97')](_0x47cb89)){if(_['isPlainObject'](_0x3a4be1[_0x47cb89])){if(!_[_0x7673('0x41')](_0x3a4be1[_0x47cb89])){this[_0x7673('0x9b')](_0x3a4be1[_0x47cb89],util[_0x7673('0x27')](_0x7673('0x9c'),_0x5297f0,_0x47cb89));}}else if(_[_0x7673('0x99')](_0x3a4be1[_0x47cb89])){for(var _0x1edb9b=0x0;_0x1edb9b<_0x3a4be1[_0x47cb89][_0x7673('0x9a')];_0x1edb9b++){this[_0x7673('0x9b')](_0x3a4be1[_0x47cb89][_0x1edb9b],util[_0x7673('0x27')](_0x7673('0x9c'),_0x5297f0,_0x47cb89+'['+_0x1edb9b+']'));}}else{if(!_[_0x7673('0x42')](_0x3a4be1[_0x47cb89])){this[_0x7673('0xa')]['setVariable'](util[_0x7673('0x27')](_0x7673('0x9c'),_0x5297f0,_0x47cb89),_0x3a4be1[_0x47cb89]);}}}}};AGIVertices[_0x7673('0xc')]['replaceObjectAllVariables']=function(_0x28722b){try{var _0x3e49ef=JSON[_0x7673('0x6b')](_0x28722b);this[_0x7673('0x96')](_0x3e49ef);return JSON['stringify'](_0x3e49ef);}catch(_0x5c2bc4){return this['replaceAllVariables'](_0x28722b);}};AGIVertices[_0x7673('0xc')]['replaceAllVariables']=function(_0x229285){var _0x445824=_0x229285[_0x7673('0x9d')]('{');for(var _0x590f91=0x1;_0x590f91<_0x445824[_0x7673('0x9a')];_0x590f91+=0x1){var _0xdf47bd=_0x445824[_0x590f91][_0x7673('0x9d')]('}');if(_0xdf47bd[_0x7673('0x9a')]>0x1){_0x229285=_0x229285[_0x7673('0x9e')]('{'+_0xdf47bd[0x0]+'}',this[_0x7673('0xa')][_0x7673('0xd')](_0xdf47bd[0x0])[_0x7673('0x9f')]||_0xdf47bd[0x0]);}}if(_0x445824[_0x7673('0x9a')]===0x1){return _0x229285[_0x7673('0x4a')]();}return this[_0x7673('0x95')](_0x229285);};AGIVertices[_0x7673('0xc')]['getAndSetVariable']=function(_0x566654,_0x58c661){var _0x506e23=this[_0x7673('0xa')][_0x7673('0xd')](_0x566654);if(_0x506e23['result']===-0x1){return _0x506e23;}logger['info'](util['format'](_0x7673('0xa0'),_0x58c661,_0x506e23[_0x7673('0x9f')]));return this[_0x7673('0xa')][_0x7673('0xa1')](_0x58c661,_0x506e23[_0x7673('0x9f')]);};AGIVertices['prototype'][_0x7673('0x83')]=function(_0x4eea90){return _0x4eea90&&_0x4eea90!=='0'&&_0x4eea90!=='-1'&&_0x4eea90!=='';};AGIVertices[_0x7673('0xc')][_0x7673('0xa2')]=function(_0x4aac13){this['createSquareDetailsReport'][_0x7673('0xa3')](this,_0x4aac13,'-');_0x4aac13[_0x7673('0xa4')]=_0x4aac13[_0x7673('0xa2')];return{'code':0xc8,'result':'-'};};AGIVertices[_0x7673('0xc')][_0x7673('0xa5')]=function(_0x3111e7){logger[_0x7673('0x2d')](util[_0x7673('0x27')](_0x7673('0xa6'),_0x3111e7[_0x7673('0x36')]));if(!this[_0x7673('0x83')](_0x3111e7['text'])){return this['channel'][_0x7673('0xa7')](_0x7673('0xa8'));}var _0x2ae811='\x22'+_0x3111e7[_0x7673('0x59')]+'\x22';if(this[_0x7673('0x83')](_0x3111e7['options'])){_0x2ae811+=','+_0x3111e7[_0x7673('0xa9')];}var _0x3d58ac=this[_0x7673('0xa')][_0x7673('0x54')](_0x7673('0xaa'),_0x2ae811);if(_0x3d58ac[_0x7673('0xab')]===-0x1){return _0x3d58ac;}return this['channel'][_0x7673('0xa7')](util['format'](_0x7673('0xac'),_0x2ae811));};AGIVertices[_0x7673('0xc')][_0x7673('0xad')]=function(_0x57da03){logger['info'](util['format'](_0x7673('0xae'),_0x57da03[_0x7673('0x36')]));if(!this['isConfigured'](_0x57da03[_0x7673('0xaf')])){return this['channel'][_0x7673('0xa7')]('no\x20grammar\x20configured');}var _0x22c572=_0x57da03[_0x7673('0xaf')];if(this[_0x7673('0x83')](_0x57da03[_0x7673('0xa9')])){_0x22c572+=','+_0x57da03['options'];}var _0x1e2da6=this[_0x7673('0xa')][_0x7673('0x54')]('MRCPRecog',_0x22c572);if(_0x1e2da6['result']===-0x1){return _0x1e2da6;}var _0x184859=this[_0x7673('0xb0')]('RECOG_CONFIDENCE()',_0x7673('0xb1'));if(_0x184859['result']===-0x1){return _0x184859;}var _0x94d51d=this['getAndSetVariable']('RECOG_INPUT()',_0x7673('0xb2'));if(_0x94d51d[_0x7673('0xab')]===-0x1){return _0x94d51d;}var _0x5bec1a=this[_0x7673('0xb0')]('RECOG_INSTANCE()',_0x7673('0xb3'));if(_0x5bec1a[_0x7673('0xab')]===-0x1){return _0x5bec1a;}return this[_0x7673('0xa')][_0x7673('0xa7')](util[_0x7673('0x27')](_0x7673('0xb4'),_0x22c572));};AGIVertices[_0x7673('0xc')]['agi']=function(_0x2b24b1){logger[_0x7673('0x2d')](util[_0x7673('0x27')](_0x7673('0xb5'),_0x2b24b1['label']));return this[_0x7673('0xa')][_0x7673('0x6')]([_0x2b24b1[_0x7673('0xb6')],_0x2b24b1['args']]);};AGIVertices[_0x7673('0xc')][_0x7673('0xb7')]=function(_0x2f3ae9){logger[_0x7673('0x2d')](util[_0x7673('0x27')](_0x7673('0xb8'),_0x2f3ae9[_0x7673('0x36')]));if(this[_0x7673('0x83')](_0x2f3ae9[_0x7673('0x63')])){logger[_0x7673('0x2d')](util[_0x7673('0x27')](_0x7673('0xb9'),_0x2f3ae9['timeout']));var _0x3ff143=this[_0x7673('0xa')][_0x7673('0xba')](_0x2f3ae9[_0x7673('0x63')]);if(_0x3ff143[_0x7673('0xab')]===-0x1){return _0x3ff143;}}return this[_0x7673('0xa')][_0x7673('0xb7')]();};AGIVertices[_0x7673('0xc')]['callback']=function(_0x5e202c){logger[_0x7673('0x2d')](util[_0x7673('0x27')](_0x7673('0xbb'),_0x5e202c[_0x7673('0x36')]));if(!this[_0x7673('0x83')](_0x5e202c['list_id'])){return this[_0x7673('0xa')]['error'](_0x5e202c,'no\x20list\x20selected');}_0x5e202c[_0x7673('0x47')]=moment();if(this['isConfigured'](_0x5e202c[_0x7673('0xbc')])){_0x5e202c[_0x7673('0x47')]=moment()[_0x7673('0xbd')](_0x5e202c[_0x7673('0xbc')],_0x7673('0xbe'));}if(!this[_0x7673('0x83')](_0x5e202c[_0x7673('0x4b')])){_0x5e202c[_0x7673('0x4b')]=0x2;}this[_0x7673('0x40')]['sync'](this,_0x5e202c);return this[_0x7673('0xa')][_0x7673('0xa7')](util[_0x7673('0x27')]('CALLBACK\x20added\x20phone:\x20%s\x20on\x20list:\x20%s\x20at\x20%s',_0x5e202c[_0x7673('0x45')],_0x5e202c[_0x7673('0x46')],_0x5e202c['scheduledAt']));};AGIVertices[_0x7673('0xc')][_0x7673('0xbf')]=function(_0x1a77a4){logger[_0x7673('0x2d')](util[_0x7673('0x27')]('Enter\x20in\x20CUSTOM\x20APP\x20(%s)\x20block',_0x1a77a4[_0x7673('0x36')]));var _0x28a26a=this[_0x7673('0xa')][_0x7673('0x54')](_0x1a77a4['application'],_0x1a77a4[_0x7673('0xa9')]);if(_0x28a26a[_0x7673('0xab')]===-0x1){return _0x28a26a;}return this[_0x7673('0xa')][_0x7673('0xa7')](util[_0x7673('0x27')](_0x7673('0xc0'),_0x1a77a4[_0x7673('0xc1')],_0x1a77a4[_0x7673('0xa9')]));};AGIVertices['prototype']['lumenvoxtts']=function(_0x1b3208){logger[_0x7673('0x2d')](util[_0x7673('0x27')](_0x7673('0xc2'),_0x1b3208[_0x7673('0x36')]));if(!this[_0x7673('0x83')](_0x1b3208[_0x7673('0x59')])){return this[_0x7673('0xa')][_0x7673('0xa7')](_0x7673('0xa8'));}var _0x2bfe03='\x22'+_0x1b3208[_0x7673('0x59')]+'\x22';if(this[_0x7673('0x83')](_0x1b3208['options'])){_0x2bfe03+=','+_0x1b3208[_0x7673('0xa9')];}var _0x27bd92=this[_0x7673('0xa')]['exec'](_0x7673('0xaa'),_0x2bfe03);if(_0x27bd92[_0x7673('0xab')]===-0x1){return _0x27bd92;}return this['channel']['noop'](util['format'](_0x7673('0xac'),_0x2bfe03));};AGIVertices[_0x7673('0xc')][_0x7673('0xc3')]=function(_0x359833){logger[_0x7673('0x2d')](util[_0x7673('0x27')]('Enter\x20in\x20SESTEKTTS\x20(%s)\x20block',_0x359833[_0x7673('0x36')]));if(!this[_0x7673('0x83')](_0x359833[_0x7673('0x59')])){return this[_0x7673('0xa')][_0x7673('0xa7')](_0x7673('0xa8'));}var _0x2a561d='\x22'+_0x359833[_0x7673('0x59')]+'\x22';if(this[_0x7673('0x83')](_0x359833[_0x7673('0xa9')])){_0x2a561d+=','+_0x359833[_0x7673('0xa9')];}var _0x3ba5bb=this[_0x7673('0xa')][_0x7673('0x54')]('MRCPSynth',_0x2a561d);if(_0x3ba5bb[_0x7673('0xab')]===-0x1){return _0x3ba5bb;}return this[_0x7673('0xa')]['noop'](util[_0x7673('0x27')](_0x7673('0xac'),_0x2a561d));};AGIVertices[_0x7673('0xc')][_0x7673('0xc4')]=function(_0x8c10f9){logger[_0x7673('0x2d')](util[_0x7673('0x27')](_0x7673('0xc5'),_0x8c10f9[_0x7673('0x36')]));if(!this['isConfigured'](_0x8c10f9[_0x7673('0xaf')])){return this[_0x7673('0xa')][_0x7673('0xa7')](_0x7673('0xc6'));}var _0x1e1c19=_0x8c10f9[_0x7673('0xaf')];if(this[_0x7673('0x83')](_0x8c10f9[_0x7673('0xa9')])){_0x1e1c19+=','+_0x8c10f9[_0x7673('0xa9')];}var _0x179eeb=this['channel'][_0x7673('0x54')](_0x7673('0xc7'),_0x1e1c19);if(_0x179eeb[_0x7673('0xab')]===-0x1){return _0x179eeb;}var _0x22219f=this[_0x7673('0xb0')]('RECOG_CONFIDENCE()',_0x7673('0xc8'));if(_0x22219f['result']===-0x1){return _0x22219f;}var _0x281616=this[_0x7673('0xb0')](_0x7673('0xc9'),_0x7673('0xca'));if(_0x281616[_0x7673('0xab')]===-0x1){return _0x281616;}var _0x84a06=this['getAndSetVariable'](_0x7673('0xcb'),'LUMENVOX_ASR_INSTANCE');if(_0x84a06['result']===-0x1){return _0x84a06;}return this[_0x7673('0xa')]['noop'](util['format'](_0x7673('0xb4'),_0x1e1c19));};AGIVertices[_0x7673('0xc')]['sestekasr']=function(_0x37be59){logger[_0x7673('0x2d')](util[_0x7673('0x27')](_0x7673('0xcc'),_0x37be59[_0x7673('0x36')]));if(!this['isConfigured'](_0x37be59['grammar'])){return this['channel'][_0x7673('0xa7')]('no\x20grammar\x20configured');}var _0x3c6e3a=_0x37be59[_0x7673('0xaf')];if(this['isConfigured'](_0x37be59[_0x7673('0xa9')])){_0x3c6e3a+=','+_0x37be59[_0x7673('0xa9')];}var _0x45d2ad=this[_0x7673('0xa')][_0x7673('0x54')](_0x7673('0xc7'),_0x3c6e3a);if(_0x45d2ad[_0x7673('0xab')]===-0x1){return _0x45d2ad;}var _0x2c4280=this[_0x7673('0xb0')](_0x7673('0xcd'),_0x7673('0xce'));if(_0x2c4280[_0x7673('0xab')]===-0x1){return _0x2c4280;}var _0x2e2972=this[_0x7673('0xb0')](_0x7673('0xc9'),_0x7673('0xcf'));if(_0x2e2972[_0x7673('0xab')]===-0x1){return _0x2e2972;}var _0xe4c379=this[_0x7673('0xb0')](_0x7673('0xcb'),_0x7673('0xd0'));if(_0xe4c379[_0x7673('0xab')]===-0x1){return _0xe4c379;}return this[_0x7673('0xa')][_0x7673('0xa7')](util[_0x7673('0x27')]('Executed\x20command\x20MRCPRecog\x20%s',_0x3c6e3a));};AGIVertices[_0x7673('0xc')][_0x7673('0xd1')]=function(_0xbe354){logger[_0x7673('0x2d')](util[_0x7673('0x27')](_0x7673('0xd2'),_0xbe354[_0x7673('0x36')]));if(!this[_0x7673('0x83')](_0xbe354['odbc_id'])){return this[_0x7673('0xa')][_0x7673('0x2b')](_0xbe354,_0x7673('0xd3'));}var _0x21937d=this[_0x7673('0x15')][_0x7673('0xa3')](this,_0xbe354['odbc_id']);if(!_0x21937d){return this[_0x7673('0xa')]['error'](_0xbe354,'no\x20odbc\x20database\x20found');}if(!this[_0x7673('0x83')](_0xbe354[_0x7673('0xd4')])){return this[_0x7673('0xa')][_0x7673('0x2b')](_0xbe354,'no\x20query\x20configured');}var _0x5939f8=_0xbe354[_0x7673('0xd4')][_0x7673('0x56')](/(\r\n|\n|\r)/gm,'\x20');this[_0x7673('0xa')][_0x7673('0xa7')](util[_0x7673('0x27')](_0x7673('0xd5'),_0x5939f8));var _0x35bbb9=this['getQueryOdbc']['sync'](this,_0x21937d,_0x5939f8);this[_0x7673('0x34')][_0x7673('0xa3')](this,_0xbe354,_0x5939f8);if(!this['isConfigured'](_0xbe354[_0x7673('0xd6')])){return this[_0x7673('0xa')]['noop'](_0x7673('0xd7'));}var _0x5bf7c1=this['getVariable'][_0x7673('0xa3')](this,_0xbe354[_0x7673('0xd6')]);if(!_0x5bf7c1){return this[_0x7673('0xa')][_0x7673('0x2b')](_0xbe354,_0x7673('0xd8'));}var _0x385f47=this;_0x35bbb9[_0x7673('0xd9')](function(_0x4b68dc,_0xd11abd){Object[_0x7673('0xda')](_0x4b68dc)[_0x7673('0xd9')](function(_0x42cdc6){_0x385f47['channel'][_0x7673('0xa1')](util[_0x7673('0x27')]('%s[%s][%s]',_0x5bf7c1,_0xd11abd,_0x42cdc6),_0x4b68dc[_0x42cdc6]);});});this[_0x7673('0xa')]['setVariable'](util[_0x7673('0x27')]('%s_ROWS_COUNT',_0x5bf7c1),_0x35bbb9[_0x7673('0x9a')]);return this[_0x7673('0xa')][_0x7673('0xa7')](util[_0x7673('0x27')](_0x7673('0xdb'),_0x5bf7c1));};AGIVertices[_0x7673('0xc')][_0x7673('0xdc')]=function(_0x439bb6){logger[_0x7673('0xdd')](util[_0x7673('0x27')](_0x7673('0xde'),_0x439bb6[_0x7673('0x36')]));if(!this[_0x7673('0x83')](_0x439bb6['sip_id'])){return this['channel'][_0x7673('0x2b')](_0x439bb6,_0x7673('0xdf'));}var _0x655cec=this[_0x7673('0x18')]['sync'](this,_0x439bb6[_0x7673('0xe0')]);if(!_0x655cec){return this['channel'][_0x7673('0x2b')](_0x439bb6,_0x7673('0xe1'));}var _0x18e457=this[_0x7673('0xa')]['exec'](_0x7673('0xe2'),[util[_0x7673('0x27')](_0x7673('0xe3'),_0x655cec),_0x439bb6[_0x7673('0x63')],_0x439bb6[_0x7673('0xe4')],_0x439bb6['url']]);if(_0x18e457['result']===-0x1){return _0x18e457;}return this[_0x7673('0xa')][_0x7673('0xa7')](util[_0x7673('0x27')]('Executed\x20command\x20%s',_0x7673('0xe2')));};AGIVertices[_0x7673('0xc')][_0x7673('0xe5')]=function(_0x3a5b10){logger[_0x7673('0x2d')](util['format'](_0x7673('0xe6'),_0x3a5b10[_0x7673('0x36')]));if(!this[_0x7673('0x83')](_0x3a5b10[_0x7673('0x7e')])){return this['channel'][_0x7673('0xa7')](_0x7673('0xe7'));}if(!this[_0x7673('0x83')](_0x3a5b10['text'])){return this['channel'][_0x7673('0xa7')](_0x7673('0xa8'));}this[_0x7673('0xa')][_0x7673('0xe8')]=!![];this['createSquareDetailsReport'](_0x3a5b10);this[_0x7673('0x3f')](_0x3a5b10['text'],'in','','');this[_0x7673('0xa')][_0x7673('0xa7')](util[_0x7673('0x27')](_0x7673('0xe9'),_0x3a5b10[_0x7673('0x59')]));var _0x45d3e5=this[_0x7673('0x77')][_0x7673('0xa3')](this,_0x3a5b10);if(_0x45d3e5){for(var _0x40d623 in _0x45d3e5){if(_0x45d3e5[_0x7673('0x97')](_0x40d623)){this[_0x7673('0xa')]['setVariable'](util[_0x7673('0x27')](_0x7673('0xea'),_0x40d623[_0x7673('0x68')]()),_0x45d3e5[_0x40d623]);}}this['createSquareMessage'](_0x45d3e5[_0x7673('0xeb')],_0x7673('0xec'),_0x7673('0xe5'),'');return this['channel'][_0x7673('0xa7')](util[_0x7673('0x27')]('Dialogflow\x20Result\x20%s',_0x45d3e5[_0x7673('0xeb')]));}return this['channel'][_0x7673('0x2b')](_0x3a5b10,_0x7673('0xed'));};AGIVertices[_0x7673('0xc')]['dialogflowV2']=function(_0x14556b){logger[_0x7673('0x2d')](util[_0x7673('0x27')]('Enter\x20in\x20DIALOGFLOW\x20V2\x20(%s)\x20block',_0x14556b['label']));if(!this[_0x7673('0x83')](_0x14556b[_0x7673('0x79')])){return this[_0x7673('0xa')][_0x7673('0xa7')]('no\x20project_id\x20configured');}if(!this['isConfigured'](_0x14556b[_0x7673('0xee')])){return this[_0x7673('0xa')][_0x7673('0xa7')](_0x7673('0xef'));}if(!this[_0x7673('0x83')](_0x14556b[_0x7673('0x7a')])){return this[_0x7673('0xa')][_0x7673('0xa7')](_0x7673('0xf0'));}if(!this[_0x7673('0x83')](_0x14556b[_0x7673('0x7b')])){return this['channel'][_0x7673('0xa7')](_0x7673('0xf1'));}if(!this[_0x7673('0x83')](_0x14556b[_0x7673('0x59')])){return this[_0x7673('0xa')][_0x7673('0xa7')](_0x7673('0xa8'));}this[_0x7673('0xa')][_0x7673('0xe8')]=!![];this['createSquareDetailsReport'](_0x14556b);this['createSquareMessage'](_0x14556b[_0x7673('0x59')],'in','','');this[_0x7673('0xa')][_0x7673('0xa7')](util[_0x7673('0x27')](_0x7673('0xf2'),_0x14556b[_0x7673('0x59')]));var _0x414e82=this[_0x7673('0xf3')][_0x7673('0xa3')](this,_0x14556b);if(_0x414e82){for(var _0x5556b4 in _0x414e82){if(_0x414e82[_0x7673('0x97')](_0x5556b4)){if(_0x5556b4!=='providerResponse'){this[_0x7673('0xa')][_0x7673('0xa1')](util['format'](_0x7673('0xea'),_0x5556b4['toUpperCase']()),_0x414e82[_0x5556b4]);}}}this['createSquareMessage'](_0x414e82[_0x7673('0xeb')],_0x7673('0xec'),'dialogflowV2',_0x414e82[_0x7673('0xf4')]);return this['channel'][_0x7673('0xa7')](util[_0x7673('0x27')](_0x7673('0xf5'),_0x414e82[_0x7673('0xeb')]));}return this[_0x7673('0xa')][_0x7673('0x2b')](_0x14556b,_0x7673('0xf6'));};AGIVertices[_0x7673('0xc')][_0x7673('0xf7')]=function(_0x1e8f47){logger[_0x7673('0x2d')](util['format'](_0x7673('0xf8'),_0x1e8f47[_0x7673('0x36')]));if(!this['isConfigured'](_0x1e8f47['ndauth_url'])){return this['channel'][_0x7673('0xa7')](_0x7673('0xf9'));}if(!this[_0x7673('0x83')](_0x1e8f47['username'])){return this[_0x7673('0xa')][_0x7673('0xa7')](_0x7673('0xfa'));}if(!this[_0x7673('0x83')](_0x1e8f47[_0x7673('0xfb')])){return this[_0x7673('0xa')][_0x7673('0xa7')]('no\x20password\x20configured');}if(!this[_0x7673('0x83')](_0x1e8f47[_0x7673('0xfc')])){return this[_0x7673('0xa')][_0x7673('0xa7')]('no\x20text\x20configured');}this[_0x7673('0xa')]['bot']=!![];this[_0x7673('0x34')](_0x1e8f47);this['createSquareMessage'](_0x1e8f47[_0x7673('0x59')],'in','','');this[_0x7673('0xa')][_0x7673('0xa7')](util['format'](_0x7673('0xfd'),_0x1e8f47['text']));var _0x2e1ab3=this[_0x7673('0x7c')][_0x7673('0xa3')](this,_0x1e8f47);if(_0x2e1ab3){for(var _0x32006c in _0x2e1ab3){if(_0x2e1ab3[_0x7673('0x97')](_0x32006c)){this[_0x7673('0xa')][_0x7673('0xa1')](util[_0x7673('0x27')]('SESTEK_NDA_%s',_0x32006c[_0x7673('0x68')]()),_0x2e1ab3[_0x32006c]);}}this['createSquareMessage'](_0x2e1ab3['speech'],_0x7673('0xec'),'sesteknda','');if(_0x2e1ab3[_0x7673('0xfe')]){this[_0x7673('0xa')][_0x7673('0xa7')](util[_0x7673('0x27')](_0x7673('0xff'),_0x2e1ab3['audiofile']));var _0x598ca4=this[_0x7673('0xa')]['streamFile'](_0x2e1ab3[_0x7673('0xfe')]);try{fs[_0x7673('0x100')](_0x2e1ab3[_0x7673('0xfe')]+_0x7673('0x101'));}catch(_0x1927d7){logger[_0x7673('0x2b')](_0x1927d7);}return _0x598ca4;}else{return this['channel'][_0x7673('0xa7')](util['format'](_0x7673('0x102'),_0x2e1ab3[_0x7673('0xeb')]));}}return this[_0x7673('0xa')][_0x7673('0x2b')](_0x1e8f47,_0x7673('0x103'));};AGIVertices[_0x7673('0xc')][_0x7673('0x104')]=function(_0x458512){logger[_0x7673('0x2d')](util['format'](_0x7673('0x105'),_0x458512['label']));return this[_0x7673('0xa')]['noop'](_0x7673('0x104'));};AGIVertices[_0x7673('0xc')][_0x7673('0x106')]=function(_0x18c217){logger[_0x7673('0x2d')](util[_0x7673('0x27')](_0x7673('0x107'),_0x18c217[_0x7673('0x36')]));var _0x4b3e1='';if(_0x18c217[_0x7673('0x108')]){if(!this[_0x7673('0x83')](_0x18c217[_0x7673('0x108')])){return this['channel'][_0x7673('0x2b')](_0x18c217,_0x7673('0x109'));}else{var _0x5ad489=parseInt(_0x18c217[_0x7673('0x108')],0xa);if(isNaN(_0x5ad489)){_0x4b3e1=_0x18c217[_0x7673('0x108')];}else{_0x4b3e1=this[_0x7673('0x1a')][_0x7673('0xa3')](this,_0x18c217[_0x7673('0x108')]);if(!_0x4b3e1){return this[_0x7673('0xa')][_0x7673('0x2b')](_0x18c217,'no\x20trunk\x20found');}}}}else if(_0x18c217[_0x7673('0x10a')]){_0x4b3e1=_0x18c217[_0x7673('0x10a')];}else{return this[_0x7673('0xa')][_0x7673('0x2b')](_0x18c217,_0x7673('0x109'));}var _0x24ef37=this[_0x7673('0xa')][_0x7673('0x54')](_0x7673('0xe2'),[util[_0x7673('0x27')](_0x7673('0x10b'),_0x4b3e1,_0x18c217[_0x7673('0x45')]),_0x18c217['timeout'],_0x18c217[_0x7673('0xe4')],_0x18c217[_0x7673('0x62')]]);if(_0x24ef37['result']===-0x1){return _0x24ef37;}return this[_0x7673('0xa')]['noop'](util['format'](_0x7673('0x10c'),_0x7673('0xe2')));};AGIVertices['prototype']['finally']=function(_0x33c5c6){logger[_0x7673('0x2d')](util[_0x7673('0x27')]('Enter\x20in\x20FINALLY\x20(%s)\x20block',_0x33c5c6[_0x7673('0x36')]));return this['channel']['noop']('finally');};AGIVertices[_0x7673('0xc')][_0x7673('0x10d')]=function(_0x47c1ac){logger['info'](util['format'](_0x7673('0x10e'),_0x47c1ac[_0x7673('0x36')]));if(_0x47c1ac[_0x7673('0xa4')]===0x0){return this[_0x7673('0xa2')](_0x47c1ac);}_0x47c1ac[_0x7673('0xa4')]-=0x1;if(!this['isConfigured'](_0x47c1ac['file_id'])){return this[_0x7673('0xa')][_0x7673('0x2b')](_0x47c1ac,'no\x20file\x20audio\x20selected');}var _0x3f044c=this['getSound'][_0x7673('0xa3')](this,_0x47c1ac[_0x7673('0x10f')]);if(!_0x3f044c){return this['channel'][_0x7673('0x2b')](_0x47c1ac,_0x7673('0x110'));}if(!this[_0x7673('0x83')](_0x47c1ac[_0x7673('0xd6')])){return this[_0x7673('0xa')][_0x7673('0x2b')](_0x7673('0xd7'));}var _0x4e7610=this[_0x7673('0xa')]['getData'](_0x3f044c,_0x47c1ac[_0x7673('0x111')],_0x47c1ac['maxdigit']);var _0xbe7337=_0x4e7610[_0x7673('0xab')]?_0x4e7610[_0x7673('0xab')][_0x7673('0x4a')]():'';logger[_0x7673('0x2d')](_0x7673('0x112'),JSON['stringify'](_0x4e7610));if(_0x4e7610[_0x7673('0xab')]===-0x1){this[_0x7673('0x34')]['sync'](this,_0x47c1ac,_0xbe7337);return _0x4e7610;}else if(_0x4e7610[_0x7673('0x9f')]===_0x7673('0x63')){_0x4e7610[_0x7673('0xab')]=_0xbe7337[_0x7673('0x9a')]>=parseInt(_0x47c1ac['mindigit'])?'x':'i';}else{_0x4e7610[_0x7673('0xab')]=_0xbe7337[_0x7673('0x9a')]>=parseInt(_0x47c1ac['mindigit'])&&_0xbe7337[_0x7673('0x9a')]<=parseInt(_0x47c1ac[_0x7673('0x113')])?'x':'i';}var _0x341b24=this['getVariable'][_0x7673('0xa3')](this,_0x47c1ac[_0x7673('0xd6')]);if(!_0x341b24){return this[_0x7673('0xa')]['error'](_0x47c1ac,_0x7673('0xd8'));}this[_0x7673('0xa')][_0x7673('0xa1')](_0x341b24,_0xbe7337);if(this[_0x7673('0x83')](_0x47c1ac[_0x7673('0x114')])){var _0x4d71f1=parseInt(_0x47c1ac[_0x7673('0x114')],0xa);var _0xb1e7cc=rs[_0x7673('0x115')]({'charset':'*','length':_0x4d71f1});var _0x397d90=_0xbe7337[_0x7673('0x9a')];if(_0x397d90>0x0){if(_0x397d90>_0x4d71f1){this[_0x7673('0x34')][_0x7673('0xa3')](this,_0x47c1ac,_0x47c1ac[_0x7673('0x116')]===_0x7673('0x117')?_0xb1e7cc+_0xbe7337[_0x7673('0x118')](_0x4d71f1):_0xbe7337[_0x7673('0x118')](0x0,_0x397d90-_0x4d71f1)+_0xb1e7cc);}else{this[_0x7673('0x34')]['sync'](this,_0x47c1ac,rs[_0x7673('0x115')]({'charset':'*','length':_0x397d90}));}}else{this[_0x7673('0x34')][_0x7673('0xa3')](this,_0x47c1ac,'');}}else{this[_0x7673('0x34')]['sync'](this,_0x47c1ac,_0xbe7337);}return _0x4e7610;};AGIVertices[_0x7673('0xc')][_0x7673('0x119')]=function(_0x53073b){logger['info'](util['format'](_0x7673('0x11a'),_0x53073b[_0x7673('0x36')]));return this['getdigits'](_0x53073b);};AGIVertices[_0x7673('0xc')][_0x7673('0x11b')]=function(_0x4b09a8){logger['info'](util[_0x7673('0x27')](_0x7673('0x11c'),_0x4b09a8[_0x7673('0x36')]));this[_0x7673('0x34')][_0x7673('0xa3')](this,_0x4b09a8,_0x4b09a8[_0x7673('0x11d')]);return this[_0x7673('0xa')]['noop'](util[_0x7673('0x27')]('GOAL\x20%s',_0x4b09a8[_0x7673('0x11d')]));};AGIVertices[_0x7673('0xc')]['awspolly']=function(_0x5f1c08){logger[_0x7673('0x2d')](util['format'](_0x7673('0x11e'),_0x5f1c08[_0x7673('0x36')]));if(!this[_0x7673('0x83')](_0x5f1c08['aws_access_key_id'])||!this[_0x7673('0x83')](_0x5f1c08['aws_secret_access_key'])){return this[_0x7673('0xa')][_0x7673('0xa7')]('no\x20valid\x20credentials\x20configured');}if(!this[_0x7673('0x83')](_0x5f1c08[_0x7673('0x59')])){return this[_0x7673('0xa')]['noop'](_0x7673('0xa8'));}this[_0x7673('0xa')]['noop'](util[_0x7673('0x27')](_0x7673('0x11f'),_0x5f1c08['text']));var _0x55841c=this[_0x7673('0x85')][_0x7673('0xa3')](this,_0x5f1c08);if(_0x55841c){this[_0x7673('0xa')][_0x7673('0xa7')](util[_0x7673('0x27')](_0x7673('0x120'),_0x55841c));var _0x57ee5a=this[_0x7673('0xa')][_0x7673('0x121')](_0x55841c);try{fs[_0x7673('0x100')](_0x55841c+_0x7673('0x101'));}catch(_0x54be32){logger[_0x7673('0x2b')](_0x54be32);}return _0x57ee5a;}return this[_0x7673('0xa')][_0x7673('0x2b')](_0x5f1c08,_0x7673('0x122'));};AGIVertices[_0x7673('0xc')][_0x7673('0x123')]=function(_0x34b73a){logger['info'](util[_0x7673('0x27')](_0x7673('0x124'),_0x34b73a[_0x7673('0x36')]));if(!this['isConfigured'](_0x34b73a['aws_access_key_id'])||!this[_0x7673('0x83')](_0x34b73a['aws_secret_access_key'])){return this['channel']['noop'](_0x7673('0x125'));}if(!this[_0x7673('0x83')](_0x34b73a[_0x7673('0x8c')])){return this[_0x7673('0xa')]['noop'](_0x7673('0x126'));}if(!this[_0x7673('0x83')](_0x34b73a[_0x7673('0x59')])){return this[_0x7673('0xa')][_0x7673('0xa7')]('no\x20text\x20configured');}this[_0x7673('0xa')][_0x7673('0xe8')]=!![];this[_0x7673('0x34')](_0x34b73a);this['createSquareMessage'](_0x34b73a[_0x7673('0x59')],'in','','');this['channel'][_0x7673('0xa7')](util[_0x7673('0x27')](_0x7673('0x127'),_0x34b73a[_0x7673('0x59')]));var _0x4999f2=this['awsLex'][_0x7673('0xa3')](this,_0x34b73a);if(_0x4999f2){for(var _0x292270 in _0x4999f2){if(_0x4999f2[_0x7673('0x97')](_0x292270)&&_[_0x7673('0x93')](_0x4999f2[_0x292270])){this[_0x7673('0xa')][_0x7673('0xa1')](util[_0x7673('0x27')]('AWS_LEX_%s',_0x292270[_0x7673('0x68')]()),_0x4999f2[_0x292270]);}}if(_[_0x7673('0x42')](_0x4999f2[_0x7673('0x75')])){return this[_0x7673('0xa')][_0x7673('0xa7')]('Amazon\x20Lex\x20ready\x20for\x20fulfillment');}else{this['createSquareMessage'](_0x4999f2[_0x7673('0x75')],_0x7673('0xec'),_0x7673('0x128'),'');return this[_0x7673('0xa')][_0x7673('0xa7')](util[_0x7673('0x27')](_0x7673('0x129'),_0x4999f2[_0x7673('0x75')]));}}return this['channel'][_0x7673('0x2b')](_0x34b73a,'Amazon\x20Lex\x20is\x20unreachable');};AGIVertices[_0x7673('0xc')]['googleasr']=function(_0x208c73){logger[_0x7673('0x2d')](util[_0x7673('0x27')](_0x7673('0x12a'),_0x208c73[_0x7673('0x36')],_0x208c73[_0x7673('0x63')]));if(!this[_0x7673('0x83')](_0x208c73[_0x7673('0x7e')])){return this[_0x7673('0xa')][_0x7673('0xa7')](_0x7673('0xe7'));}var _0x33db43=_0x7673('0x12b');var _0x447078=util[_0x7673('0x27')](_0x7673('0x12c'),FILES_PATH,rs[_0x7673('0x115')](0x4));var _0x2b67a2=util['format'](_0x7673('0x9c'),_0x447078,_0x33db43);var _0x3b6de6=!![];if(_0x208c73['beep']===_0x7673('0x12d')){_0x3b6de6=![];}var _0x788fe9=this[_0x7673('0xa')][_0x7673('0x12e')](_0x447078,_0x33db43,_0x208c73[_0x7673('0x12f')],_0x208c73[_0x7673('0x63')],undefined,_0x3b6de6);if(_0x788fe9['result']!==-0x1){this[_0x7673('0xa')][_0x7673('0xa7')](util[_0x7673('0x27')]('google\x20%s\x20file\x20created',_0x2b67a2));var _0x222efe=this[_0x7673('0x8d')][_0x7673('0xa3')](this,_0x208c73,_0x2b67a2);if(_0x222efe){for(var _0x892908 in _0x222efe){if(_0x222efe[_0x7673('0x97')](_0x892908)){this[_0x7673('0xa')][_0x7673('0xa1')](util[_0x7673('0x27')](_0x7673('0x130'),_0x892908['toUpperCase']()),_0x222efe[_0x892908]);}}return this['channel'][_0x7673('0xa7')](util['format'](_0x7673('0x131'),JSON[_0x7673('0x71')](_0x222efe)));}}return _0x788fe9;};AGIVertices[_0x7673('0xc')][_0x7673('0x132')]=function(_0x263f8b){logger[_0x7673('0x2d')](util[_0x7673('0x27')](_0x7673('0x133'),_0x263f8b['label']));if(!this['isConfigured'](_0x263f8b[_0x7673('0x90')])){return this[_0x7673('0xa')]['noop'](_0x7673('0x134'));}if(!this[_0x7673('0x83')](_0x263f8b[_0x7673('0x91')])){return this[_0x7673('0xa')][_0x7673('0xa7')](_0x7673('0x135'));}var _0x310e0d=_0x7673('0x12b');var _0x45358e=util[_0x7673('0x27')](_0x7673('0x12c'),FILES_PATH,rs[_0x7673('0x115')](0x4));var _0x5b3485=util['format']('%s.%s',_0x45358e,_0x310e0d);var _0xa89ece=!![];if(_0x263f8b[_0x7673('0x136')]===_0x7673('0x12d')){_0xa89ece=![];}var _0x527f79=this[_0x7673('0xa')][_0x7673('0x12e')](_0x45358e,_0x310e0d,_0x263f8b[_0x7673('0x12f')],_0x263f8b[_0x7673('0x63')],undefined,_0xa89ece);if(_0x527f79[_0x7673('0xab')]!==-0x1){this[_0x7673('0xa')]['noop'](util['format'](_0x7673('0x137'),_0x5b3485));var _0x3f9dff=this['tildeASR'][_0x7673('0xa3')](this,_0x263f8b,_0x5b3485);if(_0x3f9dff){for(var _0x40afb3 in _0x3f9dff){if(_0x3f9dff['hasOwnProperty'](_0x40afb3)){this[_0x7673('0xa')]['setVariable'](util[_0x7673('0x27')]('TILDE_ASR_%s',_0x40afb3[_0x7673('0x68')]()),_0x3f9dff[_0x40afb3]);}}return this[_0x7673('0xa')][_0x7673('0xa7')](util[_0x7673('0x27')](_0x7673('0x138'),JSON['stringify'](_0x3f9dff)));}}return _0x527f79;};AGIVertices[_0x7673('0xc')][_0x7673('0x139')]=function(_0x3da51e){logger[_0x7673('0x2d')](util[_0x7673('0x27')](_0x7673('0x13a'),_0x3da51e[_0x7673('0x36')]));return this[_0x7673('0xa')][_0x7673('0x13b')](_0x3da51e['context'],_0x3da51e[_0x7673('0x13c')],_0x3da51e[_0x7673('0x3c')]);};AGIVertices[_0x7673('0xc')][_0x7673('0x13d')]=function(_0x5ea0a4){logger['info'](util['format'](_0x7673('0x13e'),_0x5ea0a4[_0x7673('0x36')]));if(!this['isConfigured'](_0x5ea0a4['condition'])){return this[_0x7673('0xa')][_0x7673('0x2b')](_0x5ea0a4,_0x7673('0x13f'));}try{var _0x2b931f=eval(_0x5ea0a4[_0x7673('0x140')])?_0x7673('0x141'):_0x7673('0x142');this[_0x7673('0xa')][_0x7673('0xa7')](util['format']('EVAL\x20CONDITION\x20%s\x20%s',_0x5ea0a4[_0x7673('0x140')],_0x2b931f));return{'code':0xc8,'result':_0x2b931f};}catch(_0x3961d6){return{'code':0xc8,'result':_0x7673('0x142')};}};AGIVertices[_0x7673('0xc')][_0x7673('0x143')]=function(_0x509a9c){logger[_0x7673('0x2d')](util[_0x7673('0x27')]('Enter\x20in\x20GOTOIFTIME\x20(%s)\x20block',_0x509a9c[_0x7673('0x36')]));if(!this['isConfigured'](_0x509a9c[_0x7673('0x144')])){return this[_0x7673('0xa')][_0x7673('0x2b')](_0x509a9c,_0x7673('0x145'));}var _0x58a1b1=this[_0x7673('0x20')][_0x7673('0xa3')](this,_0x509a9c[_0x7673('0x144')]);if(!_0x58a1b1){return this[_0x7673('0xa')]['error'](_0x509a9c,'no\x20intervals\x20found');}for(var _0x487af0=0x0;_0x487af0<_0x58a1b1[_0x7673('0x9a')];_0x487af0+=0x1){var _0x220a3b=this[_0x7673('0xa')]['getVariable'](util[_0x7673('0x27')](_0x7673('0x146'),_0x58a1b1[_0x487af0]));if(_0x220a3b[_0x7673('0xab')]===-0x1){return _0x220a3b;}logger[_0x7673('0x2d')](util[_0x7673('0x27')](_0x7673('0x147'),_0x58a1b1[_0x487af0],_0x220a3b[_0x7673('0x9f')]));if(_0x220a3b[_0x7673('0x9f')]===_0x7673('0x141')){logger[_0x7673('0x2d')](util['format'](_0x7673('0x147'),_0x58a1b1[_0x487af0],_0x7673('0x141')));this[_0x7673('0xa')][_0x7673('0xa7')](util[_0x7673('0x27')](_0x7673('0x147'),_0x58a1b1[_0x487af0],_0x7673('0x141')));return{'code':0xc8,'result':_0x7673('0x141')};}else{logger[_0x7673('0x2d')](util['format'](_0x7673('0x147'),_0x58a1b1[_0x487af0],_0x7673('0x142')));this['channel'][_0x7673('0xa7')](util[_0x7673('0x27')]('IFTIME\x20%s\x20%s',_0x58a1b1[_0x487af0],'false'));}}return{'code':0xc8,'result':_0x7673('0x142')};};AGIVertices[_0x7673('0xc')]['hangup']=function(_0x19f83c){logger[_0x7673('0x2d')](util[_0x7673('0x27')]('Enter\x20in\x20HANGUP\x20(%s)\x20block',_0x19f83c[_0x7673('0x36')]));return this[_0x7673('0xa')][_0x7673('0x148')]();};AGIVertices[_0x7673('0xc')][_0x7673('0x149')]=function(_0x42d41d){logger[_0x7673('0x2d')](util['format'](_0x7673('0x14a'),_0x42d41d[_0x7673('0x36')]));if(!this[_0x7673('0x83')](_0x42d41d[_0x7673('0x7e')])){return this[_0x7673('0xa')][_0x7673('0xa7')]('no\x20key\x20configured');}var _0x1e90b6='wav';var _0xcd5715=util[_0x7673('0x27')]('%s/recordings/%s',FILES_PATH,rs['generate'](0x4));var _0x1df6e5=util['format'](_0x7673('0x9c'),_0xcd5715,_0x1e90b6);var _0x3a4c30=!![];if(_0x42d41d[_0x7673('0x136')]==='NOBEEP'){_0x3a4c30=![];}var _0x21a079=this[_0x7673('0xa')][_0x7673('0x12e')](_0xcd5715,_0x1e90b6,_0x42d41d[_0x7673('0x12f')],_0x42d41d['timeout'],undefined,_0x3a4c30);if(_0x21a079[_0x7673('0xab')]!==-0x1){this[_0x7673('0xa')][_0x7673('0xa7')](util[_0x7673('0x27')](_0x7673('0x14b'),_0x1df6e5));var _0x2c1eed=this[_0x7673('0x81')]['sync'](this,_0x42d41d,_0x1df6e5);if(_0x2c1eed){for(var _0x3a61f4 in _0x2c1eed){if(_0x2c1eed[_0x7673('0x97')](_0x3a61f4)){this[_0x7673('0xa')][_0x7673('0xa1')](util['format']('ISPEECH_ASR_%s',_0x3a61f4[_0x7673('0x68')]()),_0x2c1eed[_0x3a61f4]);}}return this[_0x7673('0xa')]['noop'](util[_0x7673('0x27')]('IspeechASR\x20Result\x20%s',JSON[_0x7673('0x71')](_0x2c1eed)));}}return _0x21a079;};AGIVertices['prototype']['ispeechtts']=function(_0x40bacb){logger[_0x7673('0x2d')](util[_0x7673('0x27')](_0x7673('0x14c'),_0x40bacb[_0x7673('0x36')]));if(!this[_0x7673('0x83')](_0x40bacb[_0x7673('0x7e')])){return this[_0x7673('0xa')]['noop'](_0x7673('0xe7'));}if(!this['isConfigured'](_0x40bacb['text'])){return this[_0x7673('0xa')][_0x7673('0xa7')]('no\x20text\x20configured');}this[_0x7673('0xa')]['noop'](util['format']('Trying\x20ispeech\x20TTS\x20%s',_0x40bacb[_0x7673('0x59')]));var _0x5cb648=this[_0x7673('0x7d')][_0x7673('0xa3')](this,_0x40bacb);if(_0x5cb648){this[_0x7673('0xa')]['noop'](util[_0x7673('0x27')](_0x7673('0x14b'),_0x5cb648));var _0x50a89a=this[_0x7673('0xa')][_0x7673('0x121')](_0x5cb648,_0x40bacb[_0x7673('0x12f')]);try{fs[_0x7673('0x100')](_0x5cb648+_0x7673('0x101'));}catch(_0x2127e2){logger['error'](_0x2127e2);}return _0x50a89a;}return this[_0x7673('0xa')][_0x7673('0x2b')](_0x40bacb,_0x7673('0x14d'));};AGIVertices[_0x7673('0xc')][_0x7673('0x14e')]=function(_0x49e7b9){logger[_0x7673('0x2d')](util[_0x7673('0x27')](_0x7673('0x14f'),_0x49e7b9[_0x7673('0x36')]));if(!this[_0x7673('0x83')](_0x49e7b9[_0x7673('0x150')])){return this[_0x7673('0xa')][_0x7673('0x2b')](_0x49e7b9,'no\x20find\x20by\x20configured');}logger[_0x7673('0x2d')](util[_0x7673('0x27')](_0x7673('0x151'),this[_0x7673('0xa')][_0x7673('0x39')],_0x49e7b9[_0x7673('0x150')]));var _0x5e5268=this['agentLogin']['sync'](this,_0x49e7b9[_0x7673('0x150')]);if(_0x5e5268){logger[_0x7673('0x2d')](util[_0x7673('0x27')](_0x7673('0x152'),this[_0x7673('0xa')][_0x7673('0x39')],_0x49e7b9['findBy']));this[_0x7673('0xa')][_0x7673('0xa7')](util[_0x7673('0x27')](_0x7673('0x152'),this['channel']['callerid'],_0x49e7b9[_0x7673('0x150')]));return{'code':0xc8,'result':'success'};}else{logger[_0x7673('0x2d')](util[_0x7673('0x27')](_0x7673('0x153'),this[_0x7673('0xa')][_0x7673('0x39')],_0x49e7b9['findBy']));this[_0x7673('0xa')][_0x7673('0xa7')](util[_0x7673('0x27')]('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this[_0x7673('0xa')][_0x7673('0x39')],_0x49e7b9[_0x7673('0x150')]));return{'code':0xc8,'result':_0x7673('0x154')};}};AGIVertices['prototype'][_0x7673('0x155')]=function(_0x51a260){logger[_0x7673('0x2d')](util[_0x7673('0x27')](_0x7673('0x156'),_0x51a260['label']));if(!this[_0x7673('0x83')](_0x51a260[_0x7673('0x150')])){return this[_0x7673('0xa')][_0x7673('0x2b')](_0x51a260,_0x7673('0x157'));}logger['info'](util[_0x7673('0x27')](_0x7673('0x151'),this[_0x7673('0xa')]['callerid'],_0x51a260[_0x7673('0x150')]));var _0x590df0=this['agentLogout'][_0x7673('0xa3')](this,_0x51a260[_0x7673('0x150')]);if(_0x590df0){logger[_0x7673('0x2d')](util[_0x7673('0x27')](_0x7673('0x152'),this[_0x7673('0xa')][_0x7673('0x39')],_0x51a260[_0x7673('0x150')]));this['channel'][_0x7673('0xa7')](util['format'](_0x7673('0x152'),this[_0x7673('0xa')]['callerid'],_0x51a260[_0x7673('0x150')]));return{'code':0xc8,'result':_0x7673('0x158')};}else{logger['info'](util[_0x7673('0x27')](_0x7673('0x153'),this['channel'][_0x7673('0x39')],_0x51a260[_0x7673('0x150')]));this['channel']['noop'](util[_0x7673('0x27')](_0x7673('0x153'),this[_0x7673('0xa')][_0x7673('0x39')],_0x51a260[_0x7673('0x150')]));return{'code':0xc8,'result':_0x7673('0x154')};}};AGIVertices[_0x7673('0xc')][_0x7673('0x159')]=function(_0x15ad6d){logger[_0x7673('0x2d')](util[_0x7673('0x27')]('Enter\x20in\x20MATH\x20(%s)\x20block',_0x15ad6d[_0x7673('0x36')]));if(!this['isConfigured'](_0x15ad6d[_0x7673('0x15a')])){return this[_0x7673('0xa')][_0x7673('0x2b')](_0x15ad6d,_0x7673('0x15b'));}this['channel'][_0x7673('0xa7')](util[_0x7673('0x27')](_0x7673('0x15c'),_0x15ad6d[_0x7673('0x15a')]));var _0x5195db=eval(_0x15ad6d[_0x7673('0x15a')]);if(!this[_0x7673('0x83')](_0x15ad6d['variable_id'])){return this[_0x7673('0xa')][_0x7673('0xa7')](_0x7673('0xd7'));}var _0x146497=this[_0x7673('0xd')][_0x7673('0xa3')](this,_0x15ad6d[_0x7673('0xd6')]);if(!_0x146497){return this[_0x7673('0xa')][_0x7673('0x2b')](_0x15ad6d,_0x7673('0xd8'));}if(_['isArray'](_0x5195db)){var _0x3b6251=this;_0x5195db[_0x7673('0xd9')](function(_0x1d6ed5,_0x4d5f3d){_0x3b6251[_0x7673('0xa')][_0x7673('0xa1')](util[_0x7673('0x27')](_0x7673('0x15d'),_0x146497,_0x4d5f3d),_0x1d6ed5);});return this[_0x7673('0xa')][_0x7673('0xa7')](util[_0x7673('0x27')](_0x7673('0x15e'),_0x146497));}else{return this[_0x7673('0xa')][_0x7673('0xa1')](_0x146497,_0x5195db);}};AGIVertices['prototype'][_0x7673('0x15f')]=function(_0x5c646d){logger[_0x7673('0x2d')](util[_0x7673('0x27')]('Enter\x20in\x20MENU\x20(%s)\x20block',_0x5c646d[_0x7673('0x36')]));if(_0x5c646d[_0x7673('0xa4')]===0x0){return this[_0x7673('0xa2')](_0x5c646d);}_0x5c646d[_0x7673('0xa4')]-=0x1;if(!this['isConfigured'](_0x5c646d[_0x7673('0x10f')])){return this[_0x7673('0xa')][_0x7673('0x2b')](_0x5c646d,_0x7673('0x160'));}var _0x463c1c=this[_0x7673('0x1b')][_0x7673('0xa3')](this,_0x5c646d[_0x7673('0x10f')]);if(!_0x463c1c){return this[_0x7673('0xa')]['error'](_0x5c646d,_0x7673('0x110'));}var _0x2c2feb=this['channel'][_0x7673('0x161')](_0x463c1c,_0x5c646d[_0x7673('0x111')],_0x5c646d[_0x7673('0x162')]);var _0xb41810=_0x2c2feb[_0x7673('0xab')];if(_0x2c2feb[_0x7673('0xab')]===-0x1){this[_0x7673('0x34')][_0x7673('0xa3')](this,_0x5c646d,'-1');return _0x2c2feb;}else if(_0x2c2feb['extra']===_0x7673('0x63')){_0x2c2feb['result']=_0x2c2feb['result']['length']>0x0?_0x2c2feb[_0x7673('0xab')]:'t';}else if(_[_0x7673('0x41')](_0x2c2feb[_0x7673('0xab')])){_0x2c2feb[_0x7673('0xab')]='#';_0xb41810='#';}if(!this['isConfigured'](_0x5c646d['variable_id'])){this['channel']['noop'](_0x7673('0xd7'));}else{var _0x4312eb=this[_0x7673('0xd')][_0x7673('0xa3')](this,_0x5c646d[_0x7673('0xd6')]);if(!_0x4312eb){return this[_0x7673('0xa')][_0x7673('0x2b')](_0x5c646d,_0x7673('0xd8'));}this[_0x7673('0xa')]['setVariable'](_0x4312eb,_0xb41810);}this[_0x7673('0x34')][_0x7673('0xa3')](this,_0x5c646d,_0xb41810);return _0x2c2feb;};AGIVertices[_0x7673('0xc')][_0x7673('0xa7')]=function(_0x1bfd84){logger[_0x7673('0x2d')](util['format'](_0x7673('0x163'),_0x1bfd84[_0x7673('0x36')]));return this[_0x7673('0xa')]['noop'](_0x1bfd84[_0x7673('0x164')]||_0x1bfd84[_0x7673('0x36')]);};AGIVertices[_0x7673('0xc')][_0x7673('0x165')]=function(_0xa75b6f){logger[_0x7673('0x2d')](util['format'](_0x7673('0x166'),_0xa75b6f[_0x7673('0x36')]));if(!this['isConfigured'](_0xa75b6f['findBy'])){return this[_0x7673('0xa')]['error'](_0xa75b6f,_0x7673('0x157'));}logger['info'](util['format'](_0x7673('0x151'),this['channel'][_0x7673('0x39')],_0xa75b6f['findBy']));var _0x1b3250=this['getPause'][_0x7673('0xa3')](this,_0xa75b6f[_0x7673('0x167')]);var _0x110022=this[_0x7673('0x4c')][_0x7673('0xa3')](this,_0xa75b6f[_0x7673('0x150')],_0x1b3250);if(_0x110022){logger[_0x7673('0x2d')](util[_0x7673('0x27')](_0x7673('0x152'),this[_0x7673('0xa')]['callerid'],_0xa75b6f['findBy']));this[_0x7673('0xa')][_0x7673('0xa7')](util[_0x7673('0x27')](_0x7673('0x152'),this[_0x7673('0xa')][_0x7673('0x39')],_0xa75b6f[_0x7673('0x150')]));return{'code':0xc8,'result':_0x7673('0x158')};}else{logger[_0x7673('0x2d')](util[_0x7673('0x27')](_0x7673('0x153'),this[_0x7673('0xa')][_0x7673('0x39')],_0xa75b6f[_0x7673('0x150')]));this[_0x7673('0xa')]['noop'](util[_0x7673('0x27')](_0x7673('0x152'),this['channel'][_0x7673('0x39')],_0xa75b6f[_0x7673('0x150')]));return{'code':0xc8,'result':_0x7673('0x154')};}};AGIVertices[_0x7673('0xc')][_0x7673('0x168')]=function(_0x3c9ddf){logger[_0x7673('0x2d')](util[_0x7673('0x27')]('Enter\x20in\x20PLAYBACK\x20(%s)\x20block',_0x3c9ddf[_0x7673('0x36')]));if(!this[_0x7673('0x83')](_0x3c9ddf['file_id'])){return this[_0x7673('0xa')][_0x7673('0x2b')](_0x3c9ddf,'no\x20file\x20audio\x20selected');}var _0x5c4dfb=this[_0x7673('0x1b')][_0x7673('0xa3')](this,_0x3c9ddf['file_id']);if(!_0x5c4dfb){return this['channel'][_0x7673('0x2b')](_0x3c9ddf,_0x7673('0x110'));}var _0x26392b=this[_0x7673('0xa')]['exec'](_0x7673('0x169'),[_0x5c4dfb,_0x3c9ddf[_0x7673('0xe4')]]);if(_0x26392b[_0x7673('0xab')]===-0x1){return _0x26392b;}return this[_0x7673('0xa')][_0x7673('0xa7')](util[_0x7673('0x27')](_0x7673('0xc0'),_0x7673('0x169'),_0x5c4dfb));};AGIVertices[_0x7673('0xc')]['queue']=function(_0x4ea130){logger['info'](util[_0x7673('0x27')](_0x7673('0x16a'),_0x4ea130[_0x7673('0x36')]));if(!this[_0x7673('0x83')](_0x4ea130[_0x7673('0x16b')])){return this[_0x7673('0xa')]['error'](_0x4ea130,_0x7673('0x16c'));}var _0x36a49b='';var _0x20724e=parseInt(_0x4ea130[_0x7673('0x16b')],0xa);if(isNaN(_0x20724e)){_0x36a49b=_0x4ea130[_0x7673('0x16b')];}else{_0x36a49b=this[_0x7673('0x12')][_0x7673('0xa3')](this,_0x4ea130[_0x7673('0x16b')]);if(!_0x36a49b){return this[_0x7673('0xa')][_0x7673('0x2b')](_0x4ea130,_0x7673('0x16d'));}}var _0x2b9fb2='';if(this[_0x7673('0x83')](_0x4ea130[_0x7673('0x10f')])){var _0xf6612e=this[_0x7673('0x1b')][_0x7673('0xa3')](this,_0x4ea130[_0x7673('0x10f')]);if(_0xf6612e){_0x2b9fb2=_0xf6612e;}}this[_0x7673('0x34')][_0x7673('0xa3')](this,_0x4ea130,_0x36a49b);if(_0x4ea130['opts'][_0x7673('0x16e')]('x')<0x0){_0x4ea130[_0x7673('0xe4')]+='x';}if(_0x4ea130['opts'][_0x7673('0x16e')]('X')<0x0){_0x4ea130[_0x7673('0xe4')]+='X';}this[_0x7673('0xa')][_0x7673('0xa1')](_0x7673('0x16f'),_0x36a49b?_0x36a49b[_0x7673('0x170')]():'');var _0x4131e0=this[_0x7673('0xa')][_0x7673('0x54')](_0x7673('0x171'),[_0x36a49b,_0x4ea130[_0x7673('0xe4')],_0x4ea130['url'],_0x2b9fb2,_0x4ea130['timeout'],_0x4ea130[_0x7673('0x6')],_0x4ea130[_0x7673('0x172')],_0x4ea130[_0x7673('0x173')],'',_0x4ea130[_0x7673('0x174')]]);if(_0x4131e0[_0x7673('0xab')]===-0x1){return _0x4131e0;}return this[_0x7673('0xa')][_0x7673('0xa7')](util[_0x7673('0x27')]('Executed\x20command\x20%s\x20%s',_0x7673('0x171'),_0x36a49b));};AGIVertices[_0x7673('0xc')][_0x7673('0x175')]=function(_0x520e05){logger[_0x7673('0x2d')](util[_0x7673('0x27')](_0x7673('0x176'),_0x520e05['label']));var _0x302c04=_0x520e05[_0x7673('0x177')]||_0x7673('0x12b');var _0x4ca79f=util[_0x7673('0x27')](_0x7673('0x178'),this[_0x7673('0xa')][_0x7673('0x35')],rs[_0x7673('0x115')](0x5));var _0x1bfbd6=util[_0x7673('0x27')](_0x7673('0x179'),FILES_PATH,_0x4ca79f,_0x302c04);var _0x55e3a6=util[_0x7673('0x27')](_0x7673('0x12c'),FILES_PATH,_0x4ca79f);this[_0x7673('0x38')][_0x7673('0xa3')](this,_0x520e05,_0x4ca79f,_0x1bfbd6);this[_0x7673('0xa')][_0x7673('0xa1')]('RECORDING_SAVENAME',_0x4ca79f);logger[_0x7673('0x2d')](_0x7673('0x17a'),_0x55e3a6,_0x302c04,_0x520e05[_0x7673('0x17b')],_0x520e05[_0x7673('0x63')]);return this[_0x7673('0xa')][_0x7673('0x12e')](_0x55e3a6,_0x302c04,_0x520e05[_0x7673('0x17b')],_0x520e05[_0x7673('0x63')],undefined,!![]);};AGIVertices[_0x7673('0xc')][_0x7673('0x17c')]=function(_0x179c39){logger[_0x7673('0x2d')](util[_0x7673('0x27')](_0x7673('0x17d'),_0x179c39[_0x7673('0x36')]));if(!this[_0x7673('0x83')](_0x179c39[_0x7673('0x62')])){return this['channel']['noop']('no\x20url\x20configured');}var _0x39b21a=this[_0x7673('0x61')]['sync'](this,_0x179c39);logger[_0x7673('0x2d')](util['format'](_0x7673('0x17e'),util[_0x7673('0x17f')](_0x39b21a,{'showHidden':![],'depth':null})));if(!this[_0x7673('0x83')](_0x179c39[_0x7673('0xd6')])){return this[_0x7673('0xa')][_0x7673('0xa7')](_0x7673('0x180'));}var _0x1e78d6=this[_0x7673('0xd')][_0x7673('0xa3')](this,_0x179c39[_0x7673('0xd6')]);if(!_0x1e78d6){return this[_0x7673('0xa')]['error'](_0x179c39,_0x7673('0xd8'));}this[_0x7673('0xa')][_0x7673('0xa1')](util['format'](_0x7673('0x181'),_0x1e78d6),_0x39b21a[_0x7673('0x73')]?_0x39b21a[_0x7673('0x73')]:_0x7673('0x182'));this['channel'][_0x7673('0xa1')](util['format'](_0x7673('0x183'),_0x1e78d6),_0x39b21a[_0x7673('0x74')]?_0x39b21a['statusMessage']:'OK');if(_0x39b21a['body']){try{this[_0x7673('0x9b')](_0x39b21a['body'],_0x1e78d6);}catch(_0x3f7376){logger[_0x7673('0x2b')](util[_0x7673('0x27')](_0x7673('0x184'),_0x1e78d6));}}return this[_0x7673('0xa')][_0x7673('0xa7')](util['format'](_0x7673('0xdb'),_0x1e78d6));};AGIVertices[_0x7673('0xc')]['saydigits']=function(_0x14899d){logger['info'](util[_0x7673('0x27')](_0x7673('0x185'),_0x14899d[_0x7673('0x36')]));return this[_0x7673('0xa')][_0x7673('0x186')](_0x14899d[_0x7673('0x187')][_0x7673('0x56')](/\s+/g,''),_0x14899d[_0x7673('0x17b')]);};AGIVertices[_0x7673('0xc')][_0x7673('0x188')]=function(_0x292586){logger[_0x7673('0x2d')](util['format'](_0x7673('0x189'),_0x292586[_0x7673('0x36')]));return this['channel'][_0x7673('0x18a')](_0x292586[_0x7673('0x64')][_0x7673('0x56')](/\s+/g,''),_0x292586['escape_digits']);};AGIVertices[_0x7673('0xc')]['sayphonetic']=function(_0x2c5fd4){logger[_0x7673('0x2d')](util[_0x7673('0x27')](_0x7673('0x18b'),_0x2c5fd4['label']));return this[_0x7673('0xa')][_0x7673('0x18c')](_0x2c5fd4[_0x7673('0x59')],_0x2c5fd4['escape_digits']);};AGIVertices['prototype']['sendMail']=function(_0x3f59ce){logger[_0x7673('0x2d')](util[_0x7673('0x27')]('Enter\x20in\x20SENDMAIL\x20(%s)\x20block',_0x3f59ce[_0x7673('0x36')]));if(!this[_0x7673('0x83')](_0x3f59ce[_0x7673('0x18d')])){return this[_0x7673('0xa')]['noop']('no\x20mail\x20account\x20configured');}var _0x53659d=this[_0x7673('0x1e')][_0x7673('0xa3')](this,_0x3f59ce[_0x7673('0x18d')]);if(!_0x53659d||!_0x53659d['Smtp']){return this[_0x7673('0xa')][_0x7673('0x2b')](_0x3f59ce,_0x7673('0x18e'));}var _0x59669d={'from':util[_0x7673('0x27')](_0x7673('0x18f'),_0x53659d['name'],_0x53659d[_0x7673('0x190')]||_0x53659d['Smtp'][_0x7673('0x191')]),'to':_0x3f59ce['to']||'','cc':_0x3f59ce['cc']||'','bcc':_0x3f59ce[_0x7673('0x192')]||'','subject':_0x3f59ce['subject'],'html':_0x3f59ce[_0x7673('0x59')],'text':_0x3f59ce[_0x7673('0x59')]};if(this[_0x7673('0x83')](_0x3f59ce[_0x7673('0x193')])){}logger[_0x7673('0xdd')](_0x7673('0x194'),JSON[_0x7673('0x71')](_0x59669d));this['createSquareDetailsReport'][_0x7673('0xa3')](this,_0x3f59ce,_0x3f59ce[_0x7673('0x18d')]);this['channel'][_0x7673('0xa7')](util[_0x7673('0x27')](_0x7673('0x195'),_0x53659d['name']));this[_0x7673('0x1f')]['sync'](this,_0x53659d[_0x7673('0x196')],_0x59669d);return this['channel']['noop'](_0x7673('0x197'));};AGIVertices[_0x7673('0xc')][_0x7673('0x198')]=function(_0x4d7bef){logger[_0x7673('0x2d')](util[_0x7673('0x27')](_0x7673('0x199'),_0x4d7bef[_0x7673('0x36')]));return this[_0x7673('0xa')]['noop'](_0x7673('0x19a'));};AGIVertices['prototype'][_0x7673('0x19b')]=function(_0x5e9a63){logger[_0x7673('0x2d')](util[_0x7673('0x27')]('Enter\x20in\x20SENDSMS\x20(%s)\x20block',_0x5e9a63[_0x7673('0x36')]));if(!this[_0x7673('0x83')](_0x5e9a63['sms_account_id'])){return this['channel'][_0x7673('0xa7')](_0x7673('0x19c'));}var _0x589f1e=this[_0x7673('0x19d')][_0x7673('0xa3')](this,_0x5e9a63[_0x7673('0x19e')]);if(!_0x589f1e){return this[_0x7673('0xa')]['error'](_0x5e9a63,_0x7673('0x19f'));}var _0x579e45={'body':_0x5e9a63[_0x7673('0x1a0')],'phone':_0x5e9a63['to']||'','SmsAccountId':_0x589f1e['id']};logger[_0x7673('0xdd')]('sendSMS\x20message',JSON[_0x7673('0x71')](_0x579e45));this['createSquareDetailsReport']['sync'](this,_0x5e9a63,_0x5e9a63[_0x7673('0x19e')]);this['channel'][_0x7673('0xa7')](util['format']('Trying\x20SendSMS\x20with\x20account\x20%s',_0x589f1e[_0x7673('0x10')]));this[_0x7673('0x33')][_0x7673('0xa3')](this,_0x579e45);return this[_0x7673('0xa')][_0x7673('0xa7')](_0x7673('0x1a1'));};AGIVertices[_0x7673('0xc')][_0x7673('0x1a2')]=function(_0x396ce7){logger[_0x7673('0x2d')](util['format'](_0x7673('0x1a3'),_0x396ce7['label']));if(!this['isConfigured'](_0x396ce7[_0x7673('0xd6')])){return this[_0x7673('0xa')][_0x7673('0x2b')](_0x396ce7,_0x7673('0x1a4'));}var _0x22fd0a=this[_0x7673('0xd')][_0x7673('0xa3')](this,_0x396ce7['variable_id']);if(!_0x22fd0a){return this[_0x7673('0xa')][_0x7673('0x2b')](_0x396ce7,_0x7673('0xd8'));}return this[_0x7673('0xa')][_0x7673('0xa1')](_0x22fd0a,_0x396ce7[_0x7673('0x1a5')]);};AGIVertices[_0x7673('0xc')][_0x7673('0x1a6')]=function(_0x368b43){logger['info'](util[_0x7673('0x27')](_0x7673('0x1a7'),_0x368b43[_0x7673('0x36')]));this[_0x7673('0xa')]['noop'](_0x7673('0x1a8'));var _0x2fc4b2=this[_0x7673('0xa')][_0x7673('0xd')](_0x7673('0x1a9'));if(!_[_0x7673('0x41')](_0x2fc4b2['extra'])){this[_0x7673('0xa')]['uniqueid']=_0x2fc4b2[_0x7673('0x9f')];}if(_0x368b43[_0x7673('0xb7')]===_0x7673('0x1aa')){this['channel'][_0x7673('0xa7')](_0x7673('0x1ab'));return this[_0x7673('0xa')][_0x7673('0xb7')]();}return this[_0x7673('0xa')][_0x7673('0xa7')](_0x7673('0x1ac'));};AGIVertices[_0x7673('0xc')]['subproject']=function(_0x4565af){logger[_0x7673('0x2d')](util['format'](_0x7673('0x1ad'),_0x4565af[_0x7673('0x36')]));if(!this[_0x7673('0x83')](_0x4565af['project_id'])){return this[_0x7673('0xa')][_0x7673('0x2b')](_0x4565af,_0x7673('0x1ae'));}var _0x2a950c=this[_0x7673('0x13')][_0x7673('0xa3')](this,_0x4565af[_0x7673('0x1af')]);if(!this['isConfigured'](_0x2a950c)){return this['channel'][_0x7673('0x2b')](_0x4565af,util['format'](_0x7673('0x1b0'),_0x4565af[_0x7673('0x1af')]));}if(_0x2a950c===this['channel'][_0x7673('0x37')]){return this[_0x7673('0xa')][_0x7673('0x2b')](_0x4565af,_0x7673('0x1b1'));}this['createSquareDetailsReport'][_0x7673('0xa3')](this,_0x4565af,_0x2a950c);var _0x256286=this[_0x7673('0xa')][_0x7673('0x54')]('AGI',util['format'](_0x7673('0x1b2'),config['agi'][_0x7673('0x1b3')]||_0x7673('0x1b4'),_0x2a950c,this[_0x7673('0xa')][_0x7673('0x37')]));if(_0x256286[_0x7673('0xab')]===-0x1){return _0x256286;}return this[_0x7673('0xa')]['noop'](util[_0x7673('0x27')]('Executed\x20command\x20%s\x20%s',_0x7673('0x1b5'),_0x2a950c));};AGIVertices[_0x7673('0xc')][_0x7673('0x1b6')]=function(_0x31e342){logger[_0x7673('0x2d')](util['format'](_0x7673('0x1b7'),_0x31e342[_0x7673('0x36')]));var _0x12c62d=this[_0x7673('0x1b8')][_0x7673('0xa3')](this,_0x31e342[_0x7673('0xb6')]);this[_0x7673('0x34')]['sync'](this,_0x31e342,_0x31e342['command']);if(this[_0x7673('0x83')](_0x31e342['variable_id'])){var _0x8c9bf3=this[_0x7673('0xd')]['sync'](this,_0x31e342[_0x7673('0xd6')]);if(_0x8c9bf3){this['channel'][_0x7673('0xa1')](_0x8c9bf3,_0x12c62d);return this['channel'][_0x7673('0xa7')](util[_0x7673('0x27')](_0x7673('0x1b9'),_0x31e342[_0x7673('0xb6')],_0x8c9bf3));}}return this[_0x7673('0xa')][_0x7673('0xa7')](util['format'](_0x7673('0x1ba'),_0x31e342['command']));};AGIVertices[_0x7673('0xc')][_0x7673('0x1bb')]=function(_0x2dfef1){logger[_0x7673('0x2d')](util[_0x7673('0x27')](_0x7673('0x1bc'),_0x2dfef1['label']));_0x2dfef1[_0x7673('0x59')]=_0x2dfef1[_0x7673('0x59')][_0x7673('0x56')](/(\r\n|\n|\r)/gm,'\x20');if(!this[_0x7673('0x83')](_0x2dfef1[_0x7673('0x58')])){return this[_0x7673('0xa')][_0x7673('0xa7')](_0x7673('0x1bd'));}if(!this[_0x7673('0x83')](_0x2dfef1[_0x7673('0x59')])){return this[_0x7673('0xa')][_0x7673('0xa7')](_0x7673('0xa8'));}this['channel']['noop'](util[_0x7673('0x27')](_0x7673('0x1be'),_0x2dfef1[_0x7673('0x59')]));var _0x247500=this[_0x7673('0x57')][_0x7673('0xa3')](this,_0x2dfef1);if(_0x247500){this['channel'][_0x7673('0xa7')](util[_0x7673('0x27')](_0x7673('0x1bf'),_0x247500));var _0x33b24e=this[_0x7673('0xa')][_0x7673('0x121')](_0x247500);try{fs[_0x7673('0x100')](_0x247500+'.wav');}catch(_0x27d82a){logger['error'](_0x27d82a);}return _0x33b24e;}return this[_0x7673('0xa')][_0x7673('0x2b')](_0x2dfef1,'Google\x20Cloud\x20TTS\x20is\x20unreachable');};AGIVertices[_0x7673('0xc')][_0x7673('0x1c0')]=function(_0x1b2d21){logger[_0x7673('0x2d')](util[_0x7673('0x27')](_0x7673('0x1c1'),_0x1b2d21[_0x7673('0x36')]));_0x1b2d21[_0x7673('0x59')]=_0x1b2d21[_0x7673('0x59')]['replace'](/(\r\n|\n|\r)/gm,'\x20');if(!this['isConfigured'](_0x1b2d21[_0x7673('0x59')])){return this[_0x7673('0xa')]['noop']('no\x20text\x20configured');}this['channel'][_0x7673('0xa7')](util[_0x7673('0x27')]('Trying\x20Google\x20TTS\x20%s',_0x1b2d21[_0x7673('0x59')]));var _0x393bb5=this[_0x7673('0x5f')][_0x7673('0xa3')](this,_0x1b2d21);if(_0x393bb5){this[_0x7673('0xa')][_0x7673('0xa7')](util[_0x7673('0x27')](_0x7673('0x1c2'),_0x393bb5));var _0x4841ee=this[_0x7673('0xa')][_0x7673('0x121')](_0x393bb5);try{fs[_0x7673('0x100')](_0x393bb5+_0x7673('0x101'));}catch(_0x59ff68){logger['error'](_0x59ff68);}return _0x4841ee;}return this['channel'][_0x7673('0x2b')](_0x1b2d21,_0x7673('0x1c3'));};AGIVertices[_0x7673('0xc')][_0x7673('0x1c4')]=function(_0x7b0882){logger['info'](util[_0x7673('0x27')](_0x7673('0x1c5'),_0x7b0882[_0x7673('0x36')]));if(!this[_0x7673('0x83')](_0x7b0882[_0x7673('0x150')])){return this['channel'][_0x7673('0x2b')](_0x7b0882,'no\x20find\x20by\x20configured');}logger[_0x7673('0x2d')](util['format'](_0x7673('0x151'),this[_0x7673('0xa')][_0x7673('0x39')],_0x7b0882[_0x7673('0x150')]));var _0x35edd3=this[_0x7673('0x4e')][_0x7673('0xa3')](this,_0x7b0882[_0x7673('0x150')]);if(_0x35edd3){logger['info'](util['format']('AGENT\x20%s\x20FOUND\x20BY',this[_0x7673('0xa')][_0x7673('0x39')],_0x7b0882[_0x7673('0x150')]));this[_0x7673('0xa')][_0x7673('0xa7')](util[_0x7673('0x27')](_0x7673('0x152'),this['channel'][_0x7673('0x39')],_0x7b0882[_0x7673('0x150')]));return{'code':0xc8,'result':_0x7673('0x158')};}else{logger[_0x7673('0x2d')](util[_0x7673('0x27')](_0x7673('0x153'),this[_0x7673('0xa')]['callerid'],_0x7b0882[_0x7673('0x150')]));this[_0x7673('0xa')][_0x7673('0xa7')](util[_0x7673('0x27')](_0x7673('0x153'),this['channel'][_0x7673('0x39')],_0x7b0882[_0x7673('0x150')]));return{'code':0xc8,'result':_0x7673('0x154')};}};AGIVertices[_0x7673('0xc')][_0x7673('0x1c6')]=function(_0x228505){logger[_0x7673('0x2d')](util[_0x7673('0x27')](_0x7673('0x1c7'),_0x228505[_0x7673('0x36')]));var _0x14651b=this[_0x7673('0xa')][_0x7673('0x54')]('VOICEMAIL',[_0x228505[_0x7673('0x1c8')],_0x228505[_0x7673('0xa9')]]);if(_0x14651b[_0x7673('0xab')]===-0x1){return _0x14651b;}return this[_0x7673('0xa')][_0x7673('0xa7')](util[_0x7673('0x27')](_0x7673('0xc0'),'VOICEMAIL',_0x228505[_0x7673('0x1c8')]));};AGIVertices['prototype'][_0x7673('0x1c9')]=function(_0x256d05){logger['info'](util['format'](_0x7673('0x1ca'),_0x256d05['label']));if(!this['isConfigured'](_0x256d05[_0x7673('0xd6')])){return this[_0x7673('0xa')][_0x7673('0x2b')](_0x256d05,_0x7673('0x1a4'));}var _0x56d278=this[_0x7673('0xd')]['sync'](this,_0x256d05[_0x7673('0xd6')]);if(!_0x56d278){return this[_0x7673('0xa')][_0x7673('0x2b')](_0x256d05,_0x7673('0xd8'));}var _0x2b01e5=this[_0x7673('0xa')][_0x7673('0xd')](_0x56d278);return{'code':0xc8,'result':_0x2b01e5['extra']?_0x2b01e5[_0x7673('0x9f')]:'-'};};String[_0x7673('0xc')][_0x7673('0x9e')]=function(_0xa007ae,_0x5c13c4){return this[_0x7673('0x9d')](_0xa007ae)[_0x7673('0x1cb')](_0x5c13c4);};module[_0x7673('0x1cc')]=AGIVertices;