73fdcdbbd0d81fa92f523cec04d946c2d539a743
[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 _0x4bc3=['exec','trim','googleCloudTTS','apiKey','google_cloud_tts_text_type','text','en-US','ssmlGender','MALE','audioEncoding','MP3','googleTTS','google_tts_language','restAPI','url','method','timeout','includes','POST','PUT','body','rawHeaders','An\x20incorrect\x20formatted\x20json\x20headers\x20has\x20been\x20passed\x20to\x20the\x20function','computedVariables','sync','uri','render','headers','parse','stringify','An\x20incorrect\x20formatted\x20json\x20has\x20been\x20passed\x20to\x20the\x20function','statusCode','message','500\x20-\x20Internal\x20Server\x20Error','options','googleDialogflow','key','dialogflow_language','googleDialogflowV2','dialogflowV2_project_id','client_email','private_key','dialogflowV2_language','sestekNDA','ispeechTTS','speed','ispeechASR','ispeech_asr_language','isConfigured','model','awsPolly','aws_access_key_id','aws_secret_access_key','aws_polly_region','Amy','awsLex','aws_lex_region','googleASR','google_asr_language','tildeASR','appid','appsecret','clear','clone','isString','replaceObjectAllVariables','replaceAllVariables','recursiveNodeIndex','hasOwnProperty','isPlainObject','length','saveRestApiResult','isEmpty','%s.%s','isArray','setVariable','extra','getAndSetVariable','result','The\x20\x22%s\x22\x20variable\x20value\x20is:\x20%s','maxRetry','retry','mrcpsynth','Enter\x20in\x20MRCPSynth\x20(%s)\x20block','label','noop','no\x20text\x20configured','Executed\x20command\x20MRCPSynth\x20%s','no\x20grammar\x20configured','grammar','MRCPRecog','RECOG_CONFIDENCE()','MRCP_RECOG_TRANSCRIPT','RECOG_INSTANCE()','Enter\x20in\x20AGI\x20(%s)\x20block','command','args','Enter\x20in\x20ANSWER\x20(%s)\x20block','Wait\x20%s\x20seconds\x20before\x20answer','answer','scheduledAt','minutes','CALLBACK\x20added\x20phone:\x20%s\x20on\x20list:\x20%s\x20at\x20%s','custom_app','Enter\x20in\x20CUSTOM\x20APP\x20(%s)\x20block','application','lumenvoxtts','MRCPSynth','sestektts','Enter\x20in\x20SESTEKTTS\x20(%s)\x20block','lumenvoxasr','RECOG_INPUT()','LUMENVOX_ASR_TRANSCRIPT','LUMENVOX_ASR_INSTANCE','Executed\x20command\x20MRCPRecog\x20%s','Enter\x20in\x20SESTEKASR\x20(%s)\x20block','SESTEK_ASR_TRANSCRIPT','SESTEK_ASR_INSTANCE','database','Enter\x20in\x20DATABASE\x20(%s)\x20block','odbc_id','no\x20odbc\x20database\x20found','no\x20query\x20configured','replace','variable_id','no\x20variable\x20selected\x20for\x20the\x20result','no\x20variable\x20found','forEach','%s[%s][%s]','%s_ROWS_COUNT','variable\x20%s\x20set','dial','Enter\x20in\x20DIAL\x20(%s)\x20block','sip_id','no\x20user\x20selected','no\x20user\x20found','DIAL','SIP/%s','Executed\x20command\x20%s','dialogflow','no\x20key\x20configured','DIALOGFLOW_%s','out','Dialogflow\x20Result\x20%s','Dialogflow\x20is\x20unreachable','dialogflowV2','no\x20client_email\x20configured','no\x20private_key\x20configured','bot','providerResponse','speech','DialogflowV2\x20Result\x20%s','DialogflowV2\x20is\x20unreachable','Enter\x20in\x20SESTEKNDA\x20(%s)\x20block','ndauth_url','username','no\x20username\x20configured','password','ndassistant_url','Trying\x20SestekNDA:\x20%s','SESTEK_NDA_%s','toUpperCase','audiofile','Sestek\x20NDA\x20%s\x20file\x20created','unlink','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','opts','Enter\x20in\x20FINALLY\x20(%s)\x20block','getdigits','Enter\x20in\x20GETDIGITS\x20(%s)\x20block','no\x20file\x20audio\x20selected','getSound','file_id','no\x20file\x20audio\x20found','getData','response','maxdigit','test','mindigit','hiddendigitsnum','generate','first','substr','Enter\x20in\x20GETSECRETDIGITS\x20(%s)\x20block','goal','Enter\x20in\x20GOAL\x20(%s)\x20block','goalname','GOAL\x20%s','[AGI]\x20Enter\x20in\x20AWSPOLLY\x20(%s)\x20block','no\x20valid\x20credentials\x20configured','Trying\x20aws\x20Polly\x20%s','streamFile','aws\x20Polly\x20is\x20unreachable','awslex','Enter\x20in\x20Amazon\x20Lex\x20(%s)\x20block','aws_bot_name','no\x20bot\x20name\x20configured','Trying\x20Amazon\x20Lex:\x20%s','AWS_LEX_%s','amazonlex','Amazon\x20Lex\x20Result\x20%s','Amazon\x20Lex\x20is\x20unreachable','googleasr','Enter\x20in\x20GOOGLEASR\x20(%s)\x20block\x20%s','%s/recordings/%s','beep','NOBEEP','recordFile','google\x20%s\x20file\x20created','GOOGLE_ASR_%s','Enter\x20in\x20TILDEASR\x20(%s)\x20block','no\x20appid\x20configured','no\x20appsecret\x20configured','tilde\x20%s\x20file\x20created','TILDE_ASR_%s','TildeASR\x20Result\x20%s','gotoc','Enter\x20in\x20GOTO\x20(%s)\x20block','continueAt','extension','gotoif','Enter\x20in\x20GOTOIF\x20(%s)\x20block','true','false','EVAL\x20CONDITION\x20%s\x20%s','condition','gotoiftime','Enter\x20in\x20GOTOIFTIME\x20(%s)\x20block','interval_id','no\x20interval\x20configured','getIntervals','IFTIME(%s?true:false)','IFTIME\x20%s\x20%s','hangup','Enter\x20in\x20HANGUP\x20(%s)\x20block','ispeechasr','Enter\x20in\x20ISPEECHASR\x20(%s)\x20block','intKey','ispeech\x20%s\x20file\x20created','ISPEECH_ASR_%s','IspeechASR\x20Result\x20%s','ispeechtts','Trying\x20ispeech\x20TTS\x20%s','.wav','Enter\x20in\x20LOGIN\x20(%s)\x20block','findBy','AGENT\x20%s\x20FOUND\x20BY','success','AGENT\x20%s\x20NOT\x20FOUND\x20BY','failure','logout','FIND\x20AGENT\x20%s\x20BY\x20%s','Enter\x20in\x20MATH\x20(%s)\x20block','math\x20%s','operation','%s[%s]','variable\x20%s[key]\x20set','menu','digit','Enter\x20in\x20NOOP\x20(%s)\x20block','no\x20find\x20by\x20configured','pause_id','playback','Enter\x20in\x20PLAYBACK\x20(%s)\x20block','PLAYBACK','Executed\x20command\x20%s\x20%s','queue','Enter\x20in\x20QUEUE\x20(%s)\x20block','queue_id','no\x20queue\x20selected','getVoiceQueue','no\x20queue\x20found','indexOf','XMCS-QUEUE','toLowerCase','QUEUE','gosub','Enter\x20in\x20RECORD\x20(%s)\x20block','%s_%s','RECORDING_SAVENAME','escape_digits','Response:','inspect','no\x20variable\x20selected\x20for\x20the\x20response','200','%s_STATUS_MESSAGE','statusMessage','Unable\x20to\x20set\x20result\x20in\x20variable\x20%s','saydigits','sayDigits','digits','saynumber','Enter\x20in\x20SAYNUMBER\x20(%s)\x20block','sayNumber','number','sayPhonetic','sendMail','Enter\x20in\x20SENDMAIL\x20(%s)\x20block','account_id','no\x20mail\x20account\x20configured','getMailAccount','Smtp','no\x20mail\x20account\x20found','\x22%s\x22\x20<%s>','email','user','template_id','debug','sendMail\x20message','Trying\x20SendMail\x20with\x20account\x20%s','smtpOptions','Enter\x20in\x20SENDFAX\x20(%s)\x20block','SENDFAX\x20block\x20not\x20implemented','Enter\x20in\x20SENDSMS\x20(%s)\x20block','sms_account_id','no\x20sms\x20account\x20configured','no\x20sms\x20account\x20found','sms_text','sendSMS\x20message','Trying\x20SendSMS\x20with\x20account\x20%s','Sms\x20message\x20added\x20to\x20outgoing\x20process','set','Enter\x20in\x20SET\x20(%s)\x20block','variable_value','start','START\x20CALLY\x20SQUARE','Answer','Skipped\x20Answer','subproject','Enter\x20in\x20SUBPROJECT\x20(%s)\x20block','project_id','no\x20subproject\x20selected','no\x20subproject\x20found\x20with\x20id\x20%d','project\x20in\x20subproject\x20must\x20be\x20different\x20from\x20the\x20called\x20project','AGI','agi://%s/square,\x22%s\x22,\x22%s\x22','host','127.0.0.1','Enter\x20in\x20SYSTEM\x20(%s)\x20block','sh\x20command:\x20%s\x20result\x20on\x20variable:\x20%s','google_cloud_tts','no\x20apiKey\x20configured','Google\x20Cloud\x20TTS\x20%s\x20file\x20created','Google\x20Cloud\x20TTS\x20is\x20unreachable','tts','Enter\x20in\x20GOOGLETTS\x20(%s)\x20block','Trying\x20Google\x20TTS\x20%s','unpause','Enter\x20in\x20UNPAUSE\x20(%s)\x20block','voicemail','Enter\x20in\x20VOICEMAIL\x20(%s)\x20block','VOICEMAIL','mailbox','vswitch','no\x20variable\x20selected','replaceAll','join','exports','util','lodash','odbc','randomstring','mustache','request-promise','../../config/logger','agi','../../config/environment','./scripts','/var/opt/motion2/server/files','rawBody','getsecretdigits','channel','rpc','getVariable','getVariableById','name','catch','prototype','getSquareProject','getSquareOdbc','getSquareOdbcById','dsn','getUser','getUserById','getTrunk','getTrunkById','then','getSoundById','getSoundPath','save_name','getMailAccountById','mailRpc','sendMailMessage','getIntervalById','IntervalId','interval','map','Intervals','format','getQueryOdbc','open','error','info','ODBC\x20connection\x20successfully','query','Error\x20executing\x20query\x20%s','Query\x20executed\x20correctly\x20%s','Error\x20closing\x20connection\x20to\x20odbc\x20%s','getSmsAccount','getSmsAccountById','createSmsMessage','createSquareDetailsReport','agicommand','arg_1','callerid','createSquareRecording','uniqueid','calleridname','context','priority','dnid','createSquareMessage','createCmContact','isNil','callback_','random','lastName','phone','list_id','callback','Callback\x20scheduled\x20at\x20','toString','callback_priority','getPause','getPauseById','agentPause','agent','agentUnpause','agentLogout','agentLogin','%s/%s@from-sip/n','LOCAL','shellCommand'];(function(_0xb10818,_0x363991){var _0x139f18=function(_0x599197){while(--_0x599197){_0xb10818['push'](_0xb10818['shift']());}};_0x139f18(++_0x363991);}(_0x4bc3,0x16e));var _0x34bc=function(_0x1694f5,_0x49b7c3){_0x1694f5=_0x1694f5-0x0;var _0x5b4321=_0x4bc3[_0x1694f5];return _0x5b4321;};'use strict';var fs=require('fs');var util=require(_0x34bc('0x0'));var _=require(_0x34bc('0x1'));var sh=require('shelljs');var odbc=require(_0x34bc('0x2'))();var rs=require(_0x34bc('0x3'));var moment=require('moment');var Mustache=require(_0x34bc('0x4'));var rp=require(_0x34bc('0x5'));var logger=require(_0x34bc('0x6'))(_0x34bc('0x7'));var config=require(_0x34bc('0x8'));var scripts=require(_0x34bc('0x9'));var FILES_PATH=_0x34bc('0xa');var recursiveMapAttributes=['rawHeaders',_0x34bc('0xb')];var verticesWithRetry=['menu','getdigits',_0x34bc('0xc')];var AGIVertices=function(_0x474108,_0x1f72d8,_0x365e49){this[_0x34bc('0xd')]=_0x474108;this[_0x34bc('0xe')]=_0x1f72d8;this['mailRpc']=_0x365e49;};AGIVertices['prototype'][_0x34bc('0xf')]=function(_0x33025c,_0x2a35f3){this['rpc'][_0x34bc('0x10')](_0x33025c)['then'](function(_0x1ecedf){_0x2a35f3(null,_0x1ecedf?_0x1ecedf[_0x34bc('0x11')]:![]);})[_0x34bc('0x12')](function(_0x536ebd){_0x2a35f3(_0x536ebd);});};AGIVertices[_0x34bc('0x13')]['getVoiceQueue']=function(_0x12cf72,_0x43ff68){this[_0x34bc('0xe')]['getVoiceQueueById'](_0x12cf72)['then'](function(_0x354868){_0x43ff68(null,_0x354868?_0x354868['name']:![]);})[_0x34bc('0x12')](function(_0x217605){_0x43ff68(_0x217605);});};AGIVertices[_0x34bc('0x13')][_0x34bc('0x14')]=function(_0x2db2dd,_0x69542f){this['rpc']['getSquareProjectById'](_0x2db2dd)['then'](function(_0x4205eb){_0x69542f(null,_0x4205eb?_0x4205eb[_0x34bc('0x11')]:![]);})[_0x34bc('0x12')](function(_0x239e6c){_0x69542f(_0x239e6c);});};AGIVertices['prototype'][_0x34bc('0x15')]=function(_0x3ca9e8,_0x50106a){this[_0x34bc('0xe')][_0x34bc('0x16')](_0x3ca9e8)['then'](function(_0x14cec8){_0x50106a(null,_0x14cec8?_0x14cec8[_0x34bc('0x17')]:![]);})[_0x34bc('0x12')](function(_0x120bd3){_0x50106a(_0x120bd3);});};AGIVertices[_0x34bc('0x13')][_0x34bc('0x18')]=function(_0x48087e,_0x40e128){this[_0x34bc('0xe')][_0x34bc('0x19')](_0x48087e)['then'](function(_0x4c4b9a){_0x40e128(null,_0x4c4b9a?_0x4c4b9a[_0x34bc('0x11')]:![]);})[_0x34bc('0x12')](function(_0x4263de){_0x40e128(_0x4263de);});};AGIVertices[_0x34bc('0x13')][_0x34bc('0x1a')]=function(_0x2e22e3,_0x3f3653){this[_0x34bc('0xe')][_0x34bc('0x1b')](_0x2e22e3)[_0x34bc('0x1c')](function(_0x2de017){_0x3f3653(null,_0x2de017?_0x2de017[_0x34bc('0x11')]:![]);})['catch'](function(_0x43e527){_0x3f3653(_0x43e527);});};AGIVertices['prototype']['getSound']=function(_0x3da96b,_0x5332c8){var _0x4082c3=this;this[_0x34bc('0xe')][_0x34bc('0x1d')](_0x3da96b)['then'](function(_0x2e6d96){_0x5332c8(null,_0x2e6d96?_0x4082c3[_0x34bc('0x1e')](_0x2e6d96[_0x34bc('0x1f')]):![]);})[_0x34bc('0x12')](function(_0x2bb874){_0x5332c8(_0x2bb874);});};AGIVertices[_0x34bc('0x13')]['getMailAccount']=function(_0xff07bd,_0x1fb7c5){this[_0x34bc('0xe')][_0x34bc('0x20')](_0xff07bd)[_0x34bc('0x1c')](function(_0xd92957){_0x1fb7c5(null,_0xd92957?_0xd92957:![]);})['catch'](function(_0x155e44){_0x1fb7c5(_0x155e44);});};AGIVertices['prototype']['sendMailMessage']=function(_0x42fd40,_0x540aa3,_0x1e8445){this[_0x34bc('0x21')][_0x34bc('0x22')](_0x42fd40,_0x540aa3)[_0x34bc('0x1c')](function(){_0x1e8445(null);})[_0x34bc('0x12')](function(_0x246c39){_0x1e8445(_0x246c39);});};AGIVertices[_0x34bc('0x13')]['getIntervals']=function(_0xbd59f9,_0x3a5a74){this[_0x34bc('0xe')][_0x34bc('0x23')](_0xbd59f9)[_0x34bc('0x1c')](function(_0x5c7e56){if(_0x5c7e56){if(_0x5c7e56[_0x34bc('0x24')]){_0x3a5a74(null,[_0x5c7e56[_0x34bc('0x25')]]);}else{_0x3a5a74(null,_[_0x34bc('0x26')](_0x5c7e56[_0x34bc('0x27')],_0x34bc('0x25')));}}else{_0x3a5a74(null,![]);}})['catch'](function(_0x4ad3c7){_0x3a5a74(_0x4ad3c7);});};AGIVertices[_0x34bc('0x13')][_0x34bc('0x1e')]=function(_0xf9453c){return util[_0x34bc('0x28')]('%s/sounds/converted/%s',FILES_PATH,_0xf9453c);};AGIVertices[_0x34bc('0x13')][_0x34bc('0x29')]=function(_0x32cf3b,_0x5b6acd,_0x37cd30){odbc[_0x34bc('0x2a')](_0x32cf3b,function(_0xd0e121){if(_0xd0e121){logger[_0x34bc('0x2b')]('Error\x20getting\x20ODBC\x20connection\x20%s',_0xd0e121);_0x37cd30(_0xd0e121);}else{logger[_0x34bc('0x2c')](_0x34bc('0x2d'));odbc[_0x34bc('0x2e')](_0x5b6acd,function(_0x4ddef6,_0x246a86){if(_0x4ddef6){logger[_0x34bc('0x2c')](_0x34bc('0x2f'),_0x5b6acd);_0x37cd30(_0x4ddef6);}else{logger[_0x34bc('0x2c')](_0x34bc('0x30'),_0x5b6acd);odbc['close'](function(_0xca2aaf){if(_0xca2aaf){logger[_0x34bc('0x2b')](_0x34bc('0x31'),_0xca2aaf);}_0x37cd30(null,_0x246a86);});}});}});};AGIVertices[_0x34bc('0x13')][_0x34bc('0x32')]=function(_0x4bf331,_0x4105d8){this['rpc'][_0x34bc('0x33')](_0x4bf331)[_0x34bc('0x1c')](function(_0xfaa92d){_0x4105d8(null,_0xfaa92d?_0xfaa92d:![]);})[_0x34bc('0x12')](function(_0x53feca){_0x4105d8(_0x53feca);});};AGIVertices[_0x34bc('0x13')][_0x34bc('0x34')]=function(_0x5671fa,_0x16893d){this[_0x34bc('0xe')][_0x34bc('0x34')](_0x5671fa)['then'](function(_0x31afd3){_0x16893d(null,_0x31afd3);})[_0x34bc('0x12')](function(_0x397c64){_0x16893d(_0x397c64);});};AGIVertices[_0x34bc('0x13')][_0x34bc('0x35')]=function(_0x20debf,_0x428326,_0x2e4059){this[_0x34bc('0xe')][_0x34bc('0x35')]({'uniqueid':this[_0x34bc('0xd')]['uniqueid'],'node':_0x20debf['label'],'application':_0x20debf[_0x34bc('0x36')],'data':_0x428326||null,'project_name':this[_0x34bc('0xd')][_0x34bc('0x37')],'callerid':this[_0x34bc('0xd')][_0x34bc('0x38')]})[_0x34bc('0x1c')](function(_0x5af850){if(_0x2e4059){_0x2e4059(null,_0x5af850);}})[_0x34bc('0x12')](function(_0x4f912a){if(_0x2e4059){_0x2e4059(_0x4f912a);}});};AGIVertices[_0x34bc('0x13')][_0x34bc('0x39')]=function(_0x30d5f1,_0x4ba4eb,_0xc57588,_0xf7c0be){this[_0x34bc('0xe')][_0x34bc('0x39')]({'uniqueid':this[_0x34bc('0xd')][_0x34bc('0x3a')],'callerid':this[_0x34bc('0xd')][_0x34bc('0x38')],'calleridname':this[_0x34bc('0xd')][_0x34bc('0x3b')],'context':this[_0x34bc('0xd')][_0x34bc('0x3c')],'extension':this['channel']['extension'],'priority':this[_0x34bc('0xd')][_0x34bc('0x3d')],'accountcode':this[_0x34bc('0xd')]['accountcode'],'dnid':this['channel'][_0x34bc('0x3e')],'projectName':this[_0x34bc('0xd')][_0x34bc('0x37')],'saveName':_0x4ba4eb,'filename':_0x30d5f1['file']||_0x4ba4eb,'savePath':_0xc57588})[_0x34bc('0x1c')](function(_0x25b02e){_0xf7c0be(null,_0x25b02e);})['catch'](function(_0x4627de){_0xf7c0be(_0x4627de);});};AGIVertices['prototype'][_0x34bc('0x3f')]=function(_0x487678,_0x281d6f,_0xbed144,_0x1f0cd9,_0x374271){this['rpc'][_0x34bc('0x3f')]({'uniqueid':this[_0x34bc('0xd')][_0x34bc('0x3a')],'body':_0x487678,'direction':_0x281d6f,'providerName':_0xbed144,'providerResponse':_0x1f0cd9})[_0x34bc('0x1c')](function(_0x13ce50){if(_0x374271){_0x374271(null,_0x13ce50);}})[_0x34bc('0x12')](function(_0x18eadd){if(_0x374271){_0x374271(_0x18eadd);}});};AGIVertices[_0x34bc('0x13')]['createCmContact']=function(_0x592557,_0x561ee8){this[_0x34bc('0xe')][_0x34bc('0x40')]({'firstName':_['isEmpty'](_0x592557[_0x34bc('0x11')])||_[_0x34bc('0x41')](_0x592557[_0x34bc('0x11')])?_0x34bc('0x42')+Math[_0x34bc('0x43')]():_0x592557['name'],'lastName':_['isEmpty'](_0x592557['lastName'])||_[_0x34bc('0x41')](_0x592557[_0x34bc('0x44')])?null:_0x592557[_0x34bc('0x44')],'phone':_0x592557[_0x34bc('0x45')],'ListId':_0x592557[_0x34bc('0x46')],'scheduledat':_0x592557['scheduledAt'],'callbackUniqueid':this[_0x34bc('0xd')][_0x34bc('0x3a')],'tags':_0x34bc('0x47'),'description':_0x34bc('0x48')+_0x592557['scheduledAt'][_0x34bc('0x49')](),'priority':_0x592557[_0x34bc('0x4a')]})[_0x34bc('0x1c')](function(_0x91e6c5){_0x561ee8(null,_0x91e6c5);})[_0x34bc('0x12')](function(_0x31c40b){_0x561ee8(_0x31c40b);});};AGIVertices[_0x34bc('0x13')][_0x34bc('0x4b')]=function(_0x3cb7df,_0x1f789a){this[_0x34bc('0xe')][_0x34bc('0x4c')](_0x3cb7df)[_0x34bc('0x1c')](function(_0x592e81){_0x1f789a(null,_0x592e81?_0x592e81[_0x34bc('0x11')]:![]);})[_0x34bc('0x12')](function(_0x35e9ad){_0x1f789a(_0x35e9ad);});};AGIVertices[_0x34bc('0x13')][_0x34bc('0x4d')]=function(_0x1b3704,_0x31cf3a,_0x43337d){var _0x38c45c={'role':_0x34bc('0x4e')};_0x38c45c[_0x1b3704]=this[_0x34bc('0xd')][_0x34bc('0x38')];this[_0x34bc('0xe')][_0x34bc('0x4d')](_0x38c45c,_0x31cf3a,this['channel'][_0x34bc('0x3a')])[_0x34bc('0x1c')](function(_0x36143f){_0x43337d(null,_[_0x34bc('0x41')](_0x36143f)?![]:!![]);})[_0x34bc('0x12')](function(_0x2b46b8){logger[_0x34bc('0x2b')](_0x2b46b8);_0x43337d(null,![]);});};AGIVertices[_0x34bc('0x13')][_0x34bc('0x4f')]=function(_0x32041a,_0x5ba13a){var _0x837259={'role':_0x34bc('0x4e')};_0x837259[_0x32041a]=this[_0x34bc('0xd')]['callerid'];this[_0x34bc('0xe')][_0x34bc('0x4f')](_0x837259)[_0x34bc('0x1c')](function(_0x3b087){_0x5ba13a(null,_['isNil'](_0x3b087)?![]:!![]);})[_0x34bc('0x12')](function(_0x284b55){logger[_0x34bc('0x2b')](_0x284b55);_0x5ba13a(null,![]);});};AGIVertices[_0x34bc('0x13')][_0x34bc('0x50')]=function(_0x378690,_0x3c4a72){var _0x3b8f72={'role':'agent'};_0x3b8f72[_0x378690]=this['channel'][_0x34bc('0x38')];this[_0x34bc('0xe')][_0x34bc('0x50')](_0x3b8f72)[_0x34bc('0x1c')](function(_0x1108c5){_0x3c4a72(null,_[_0x34bc('0x41')](_0x1108c5)?![]:!![]);})[_0x34bc('0x12')](function(_0x2e49b9){logger[_0x34bc('0x2b')](_0x2e49b9);_0x3c4a72(null,![]);});};AGIVertices[_0x34bc('0x13')][_0x34bc('0x51')]=function(_0x2d0d2c,_0x46c64e){var _0x98f897={'role':'agent'};_0x98f897[_0x2d0d2c]=this[_0x34bc('0xd')][_0x34bc('0x38')];var _0xa4e120=_0x2d0d2c!='internal'?util[_0x34bc('0x28')](_0x34bc('0x52'),_0x34bc('0x53'),this[_0x34bc('0xd')]['callerid']):undefined;this[_0x34bc('0xe')][_0x34bc('0x51')](_0x98f897,_0xa4e120)[_0x34bc('0x1c')](function(_0x190689){_0x46c64e(null,_[_0x34bc('0x41')](_0x190689)?![]:!![]);})['catch'](function(_0xc08131){logger[_0x34bc('0x2b')](_0xc08131);_0x46c64e(null,![]);});};AGIVertices[_0x34bc('0x13')][_0x34bc('0x54')]=function(_0x52b73a,_0x1b4f1e){sh[_0x34bc('0x55')](_[_0x34bc('0x56')](_0x52b73a),function(_0x2915ec,_0x2b9750){var _0x368b92=_0x2b9750['replace'](/(\r\n|\n|\r)/gm,'');_0x1b4f1e(null,_0x368b92);});};AGIVertices['prototype'][_0x34bc('0x57')]=function(_0x913c76,_0x561528){scripts[_0x34bc('0x57')](_0x913c76[_0x34bc('0x58')],_0x913c76[_0x34bc('0x59')]||_0x34bc('0x5a'),_0x913c76['text'],_0x913c76['languageCode']||_0x34bc('0x5b'),_0x913c76[_0x34bc('0x5c')]||_0x34bc('0x5d'),_0x913c76[_0x34bc('0x5e')]||_0x34bc('0x5f'))[_0x34bc('0x1c')](function(_0xa508f4){_0x561528(null,_0xa508f4);})[_0x34bc('0x12')](function(_0x1a6fdb){_0x561528(_0x1a6fdb);});};AGIVertices[_0x34bc('0x13')][_0x34bc('0x60')]=function(_0x348be3,_0x21e18b){scripts[_0x34bc('0x60')](_0x348be3[_0x34bc('0x5a')],_0x348be3[_0x34bc('0x61')]||'en',0x1)['then'](function(_0x1a587a){_0x21e18b(null,_0x1a587a);})[_0x34bc('0x12')](function(_0x1d9f60){_0x21e18b(_0x1d9f60);});};AGIVertices[_0x34bc('0x13')][_0x34bc('0x62')]=function(_0x48b13c,_0x415c29){var _0x2d68f6={'uri':_0x48b13c[_0x34bc('0x63')],'method':_0x48b13c[_0x34bc('0x64')],'json':!![],'resolveWithFullResponse':!![],'strictSSL':![],'timeout':typeof parseInt(_0x48b13c[_0x34bc('0x65')])==='number'&&parseInt(_0x48b13c[_0x34bc('0x65')])>=0x1?parseInt(_0x48b13c[_0x34bc('0x65')])*0x3e8:0x5*0x3e8};if(_[_0x34bc('0x66')]([_0x34bc('0x67'),_0x34bc('0x68')],_0x2d68f6[_0x34bc('0x64')]['toUpperCase']())){try{_0x2d68f6[_0x34bc('0x69')]=_0x48b13c[_0x34bc('0xb')]?JSON['parse'](_0x48b13c[_0x34bc('0xb')]):{};}catch(_0x1685ef){logger[_0x34bc('0x2b')]('An\x20incorrect\x20formatted\x20json\x20body\x20has\x20been\x20passed\x20to\x20the\x20function',_0x1685ef);}}try{_0x2d68f6['headers']=_0x48b13c[_0x34bc('0x6a')]?JSON['parse'](_0x48b13c['rawHeaders']):{};}catch(_0x55055d){logger[_0x34bc('0x2b')](_0x34bc('0x6b'),_0x55055d);}if(_0x48b13c[_0x34bc('0x6c')]){try{var _0x5529b3=require(_0x48b13c[_0x34bc('0x6c')])[_0x34bc('0x6d')](this,_0x2d68f6);_0x2d68f6[_0x34bc('0x6e')]=Mustache[_0x34bc('0x6f')](_0x48b13c[_0x34bc('0x63')],_0x5529b3,{},['$$','$$']);if(_0x2d68f6[_0x34bc('0x70')]){_0x2d68f6[_0x34bc('0x70')]=JSON[_0x34bc('0x71')](Mustache[_0x34bc('0x6f')](JSON[_0x34bc('0x72')](_0x2d68f6[_0x34bc('0x70')]),_0x5529b3,{},['$$','$$']));}if(_0x2d68f6[_0x34bc('0x69')]){_0x2d68f6['body']=JSON['parse'](Mustache[_0x34bc('0x6f')](JSON[_0x34bc('0x72')](_0x2d68f6[_0x34bc('0x69')]),_0x5529b3,{},['$$','$$']));}}catch(_0x2423a3){logger[_0x34bc('0x2b')](_0x34bc('0x73'),_0x2423a3);}}rp(_0x2d68f6)[_0x34bc('0x1c')](function(_0x2acd0b){var _0x2a5455={'statusCode':_0x2acd0b[_0x34bc('0x74')]||0xc8,'statusMessage':_0x2acd0b['statusMessage']||'OK','headers':_0x2acd0b[_0x34bc('0x70')]||{},'body':_0x2acd0b[_0x34bc('0x69')]||{}};_0x415c29(null,_0x2a5455);})[_0x34bc('0x12')](function(_0x3726d8){var _0xe77c37={'statusCode':_0x3726d8[_0x34bc('0x74')]||0x1f4,'statusMessage':_0x3726d8[_0x34bc('0x75')]||_0x34bc('0x76'),'headers':_0x3726d8[_0x34bc('0x77')]['headers']||{},'body':_0x3726d8[_0x34bc('0x77')]['body']||{}};_0x415c29(null,_0xe77c37);});};AGIVertices['prototype'][_0x34bc('0x78')]=function(_0x5dac93,_0x4d25e2){scripts[_0x34bc('0x78')](this[_0x34bc('0xd')]['uniqueid'],_0x5dac93[_0x34bc('0x79')],_0x5dac93[_0x34bc('0x5a')],_0x5dac93[_0x34bc('0x7a')]||'en')[_0x34bc('0x1c')](function(_0x4eea4e){_0x4d25e2(null,_0x4eea4e);})[_0x34bc('0x12')](function(_0x35974b){_0x4d25e2(_0x35974b);});};AGIVertices['prototype']['googleDialogflowV2']=function(_0x49da95,_0x18c493){scripts[_0x34bc('0x7b')](this[_0x34bc('0xd')][_0x34bc('0x3a')],_0x49da95[_0x34bc('0x7c')],_0x49da95[_0x34bc('0x7d')],_0x49da95[_0x34bc('0x7e')],_0x49da95[_0x34bc('0x5a')],_0x49da95[_0x34bc('0x7f')]||'en')['then'](function(_0x31a30c){_0x18c493(null,_0x31a30c);})[_0x34bc('0x12')](function(_0x1716e3){_0x18c493(_0x1716e3);});};AGIVertices[_0x34bc('0x13')][_0x34bc('0x80')]=function(_0x443af6,_0x549da9){scripts[_0x34bc('0x80')](this[_0x34bc('0xd')],_0x443af6)[_0x34bc('0x1c')](function(_0x21cbfc){_0x549da9(null,_0x21cbfc);})[_0x34bc('0x12')](function(_0x56fe9c){_0x549da9(_0x56fe9c);});};AGIVertices[_0x34bc('0x13')][_0x34bc('0x81')]=function(_0x497a4a,_0x3d0ede){scripts[_0x34bc('0x81')](_0x497a4a[_0x34bc('0x79')],_0x497a4a['text'],_0x497a4a['ispeech_tts_language']||_0x34bc('0x5b'),_0x497a4a[_0x34bc('0x82')])[_0x34bc('0x1c')](function(_0x181c0f){_0x3d0ede(null,_0x181c0f);})['catch'](function(_0x43aa1e){_0x3d0ede(_0x43aa1e);});};AGIVertices[_0x34bc('0x13')][_0x34bc('0x83')]=function(_0x2491b8,_0x4cad49,_0x29d344){scripts[_0x34bc('0x83')](_0x4cad49,_0x2491b8[_0x34bc('0x79')],_0x2491b8[_0x34bc('0x84')]||_0x34bc('0x5b'),this[_0x34bc('0x85')](_0x2491b8['model'])?_0x2491b8[_0x34bc('0x86')]:undefined)[_0x34bc('0x1c')](function(_0x4094e4){_0x29d344(null,_0x4094e4);})[_0x34bc('0x12')](function(_0x4d318b){_0x29d344(_0x4d318b);});};AGIVertices[_0x34bc('0x13')][_0x34bc('0x87')]=function(_0x910451,_0x579ea0){scripts[_0x34bc('0x87')](_0x910451[_0x34bc('0x88')],_0x910451[_0x34bc('0x89')],_0x910451[_0x34bc('0x8a')],_0x910451['aws_polly_voice']||_0x34bc('0x8b'),_0x910451['text'],_0x910451['aws_text_type']||_0x34bc('0x5a'))['then'](function(_0xe31c4e){_0x579ea0(null,_0xe31c4e);})[_0x34bc('0x12')](function(_0x20139e){_0x579ea0(_0x20139e);});};AGIVertices[_0x34bc('0x13')]['awsLex']=function(_0x33b943,_0x5cf3a6){scripts[_0x34bc('0x8c')](this[_0x34bc('0xd')]['uniqueid'],_0x33b943[_0x34bc('0x88')],_0x33b943[_0x34bc('0x89')],_0x33b943[_0x34bc('0x8d')],_0x33b943['text'],_0x33b943['aws_bot_name'])['then'](function(_0x54965b){_0x5cf3a6(null,_0x54965b);})['catch'](function(_0x41057b){_0x5cf3a6(_0x41057b);});};AGIVertices[_0x34bc('0x13')][_0x34bc('0x8e')]=function(_0x352698,_0x597d42,_0x381322){scripts[_0x34bc('0x8e')](_0x597d42,_0x352698[_0x34bc('0x79')],_0x352698[_0x34bc('0x8f')]||_0x34bc('0x5b'))[_0x34bc('0x1c')](function(_0x1979e6){_0x381322(null,_0x1979e6);})[_0x34bc('0x12')](function(_0x3b4f56){_0x381322(_0x3b4f56);});};AGIVertices[_0x34bc('0x13')][_0x34bc('0x90')]=function(_0x3ccdd9,_0x46ae25,_0x220317){scripts[_0x34bc('0x90')](_0x46ae25,_0x3ccdd9[_0x34bc('0x91')],_0x3ccdd9[_0x34bc('0x92')],_0x3ccdd9[_0x34bc('0x6e')])['then'](function(_0x529ea0){_0x220317(null,_0x529ea0);})['catch'](function(_0x653f3){_0x220317(_0x653f3);});};AGIVertices[_0x34bc('0x13')][_0x34bc('0x93')]=function(_0x3d2e41){var _0x529d16=_[_0x34bc('0x66')](verticesWithRetry,_0x3d2e41[_0x34bc('0x36')])?_0x3d2e41:_[_0x34bc('0x94')](_0x3d2e41);for(var _0x2aaa14 in _0x529d16){if(_0x529d16['hasOwnProperty'](_0x2aaa14)){if(_0x529d16[_0x2aaa14]&&_[_0x34bc('0x95')](_0x529d16[_0x2aaa14])){if(_['includes'](recursiveMapAttributes,_0x2aaa14)){_0x529d16[_0x2aaa14]=this[_0x34bc('0x96')](_0x529d16[_0x2aaa14]);}else{_0x529d16[_0x2aaa14]=this[_0x34bc('0x97')](_0x529d16[_0x2aaa14]);}}}}return _0x529d16;};AGIVertices['prototype'][_0x34bc('0x98')]=function(_0x5ab98a){for(var _0x37b4d6 in _0x5ab98a){if(_0x5ab98a[_0x34bc('0x99')](_0x37b4d6)){if(_[_0x34bc('0x9a')](_0x5ab98a[_0x37b4d6])){this[_0x34bc('0x98')](_0x5ab98a[_0x37b4d6]);}else if(_['isArray'](_0x5ab98a[_0x37b4d6])){for(var _0x182850=0x0;_0x182850<_0x5ab98a[_0x37b4d6][_0x34bc('0x9b')];_0x182850++){this[_0x34bc('0x98')](_0x5ab98a[_0x37b4d6][_0x182850]);}}else if(_['isString'](_0x5ab98a[_0x37b4d6])){_0x5ab98a[_0x37b4d6]=this[_0x34bc('0x97')](_0x5ab98a[_0x37b4d6]);}}}};AGIVertices[_0x34bc('0x13')][_0x34bc('0x9c')]=function(_0x40405e,_0x283182){for(var _0x308223 in _0x40405e){if(_0x40405e[_0x34bc('0x99')](_0x308223)){if(_[_0x34bc('0x9a')](_0x40405e[_0x308223])){if(!_[_0x34bc('0x9d')](_0x40405e[_0x308223])){this[_0x34bc('0x9c')](_0x40405e[_0x308223],util['format'](_0x34bc('0x9e'),_0x283182,_0x308223));}}else if(_[_0x34bc('0x9f')](_0x40405e[_0x308223])){for(var _0x44b2cb=0x0;_0x44b2cb<_0x40405e[_0x308223][_0x34bc('0x9b')];_0x44b2cb++){this[_0x34bc('0x9c')](_0x40405e[_0x308223][_0x44b2cb],util[_0x34bc('0x28')](_0x34bc('0x9e'),_0x283182,_0x308223+'['+_0x44b2cb+']'));}}else{if(!_[_0x34bc('0x41')](_0x40405e[_0x308223])){this[_0x34bc('0xd')][_0x34bc('0xa0')](util['format'](_0x34bc('0x9e'),_0x283182,_0x308223),_0x40405e[_0x308223]);}}}}};AGIVertices[_0x34bc('0x13')][_0x34bc('0x96')]=function(_0x440aab){try{var _0x324269=JSON[_0x34bc('0x71')](_0x440aab);this[_0x34bc('0x98')](_0x324269);return JSON[_0x34bc('0x72')](_0x324269);}catch(_0x1d6966){return this[_0x34bc('0x97')](_0x440aab);}};AGIVertices[_0x34bc('0x13')][_0x34bc('0x97')]=function(_0x455206){var _0x2a8c1d=_0x455206['split']('{');for(var _0x19c29b=0x1;_0x19c29b<_0x2a8c1d[_0x34bc('0x9b')];_0x19c29b+=0x1){var _0x3d4373=_0x2a8c1d[_0x19c29b]['split']('}');if(_0x3d4373['length']>0x1){_0x455206=_0x455206['replaceAll']('{'+_0x3d4373[0x0]+'}',this[_0x34bc('0xd')]['getVariable'](_0x3d4373[0x0])[_0x34bc('0xa1')]||_0x3d4373[0x0]);}}if(_0x2a8c1d[_0x34bc('0x9b')]===0x1){return _0x455206['toString']();}return this['replaceAllVariables'](_0x455206);};AGIVertices[_0x34bc('0x13')][_0x34bc('0xa2')]=function(_0x4e3361,_0x33022b){var _0x4bba26=this[_0x34bc('0xd')][_0x34bc('0xf')](_0x4e3361);if(_0x4bba26[_0x34bc('0xa3')]===-0x1){return _0x4bba26;}logger[_0x34bc('0x2c')](util['format'](_0x34bc('0xa4'),_0x33022b,_0x4bba26[_0x34bc('0xa1')]));return this[_0x34bc('0xd')][_0x34bc('0xa0')](_0x33022b,_0x4bba26[_0x34bc('0xa1')]);};AGIVertices[_0x34bc('0x13')][_0x34bc('0x85')]=function(_0x52b208){return _0x52b208&&_0x52b208!=='0'&&_0x52b208!=='-1'&&_0x52b208!=='';};AGIVertices['prototype'][_0x34bc('0xa5')]=function(_0x1c6b4b){this[_0x34bc('0x35')]['sync'](this,_0x1c6b4b,'-');_0x1c6b4b[_0x34bc('0xa6')]=_0x1c6b4b[_0x34bc('0xa5')];return{'code':0xc8,'result':'-'};};AGIVertices[_0x34bc('0x13')][_0x34bc('0xa7')]=function(_0x57fd82){logger[_0x34bc('0x2c')](util[_0x34bc('0x28')](_0x34bc('0xa8'),_0x57fd82[_0x34bc('0xa9')]));if(!this[_0x34bc('0x85')](_0x57fd82[_0x34bc('0x5a')])){return this[_0x34bc('0xd')][_0x34bc('0xaa')](_0x34bc('0xab'));}var _0x524a52='\x22'+_0x57fd82[_0x34bc('0x5a')]+'\x22';if(this[_0x34bc('0x85')](_0x57fd82[_0x34bc('0x77')])){_0x524a52+=','+_0x57fd82[_0x34bc('0x77')];}var _0x554e5f=this[_0x34bc('0xd')][_0x34bc('0x55')]('MRCPSynth',_0x524a52);if(_0x554e5f[_0x34bc('0xa3')]===-0x1){return _0x554e5f;}return this[_0x34bc('0xd')][_0x34bc('0xaa')](util[_0x34bc('0x28')](_0x34bc('0xac'),_0x524a52));};AGIVertices[_0x34bc('0x13')]['mrcprecog']=function(_0x283a47){logger['info'](util[_0x34bc('0x28')]('Enter\x20in\x20MRCPRecog\x20(%s)\x20block',_0x283a47[_0x34bc('0xa9')]));if(!this[_0x34bc('0x85')](_0x283a47['grammar'])){return this[_0x34bc('0xd')][_0x34bc('0xaa')](_0x34bc('0xad'));}var _0x5894b3=_0x283a47[_0x34bc('0xae')];if(this[_0x34bc('0x85')](_0x283a47[_0x34bc('0x77')])){_0x5894b3+=','+_0x283a47[_0x34bc('0x77')];}var _0x190601=this[_0x34bc('0xd')]['exec'](_0x34bc('0xaf'),_0x5894b3);if(_0x190601[_0x34bc('0xa3')]===-0x1){return _0x190601;}var _0x4c6c58=this[_0x34bc('0xa2')](_0x34bc('0xb0'),'MRCP_RECOG_CONFIDENCE');if(_0x4c6c58[_0x34bc('0xa3')]===-0x1){return _0x4c6c58;}var _0x2fc389=this[_0x34bc('0xa2')]('RECOG_INPUT()',_0x34bc('0xb1'));if(_0x2fc389['result']===-0x1){return _0x2fc389;}var _0x484d79=this['getAndSetVariable'](_0x34bc('0xb2'),'MRCP_RECOG_INSTANCE');if(_0x484d79[_0x34bc('0xa3')]===-0x1){return _0x484d79;}return this['channel']['noop'](util[_0x34bc('0x28')]('Executed\x20command\x20MRCPRecog\x20%s',_0x5894b3));};AGIVertices['prototype'][_0x34bc('0x7')]=function(_0x47a273){logger[_0x34bc('0x2c')](util[_0x34bc('0x28')](_0x34bc('0xb3'),_0x47a273[_0x34bc('0xa9')]));return this['channel'][_0x34bc('0x7')]([_0x47a273[_0x34bc('0xb4')],_0x47a273[_0x34bc('0xb5')]]);};AGIVertices[_0x34bc('0x13')]['answer']=function(_0x3e48c6){logger[_0x34bc('0x2c')](util[_0x34bc('0x28')](_0x34bc('0xb6'),_0x3e48c6[_0x34bc('0xa9')]));if(this[_0x34bc('0x85')](_0x3e48c6[_0x34bc('0x65')])){logger[_0x34bc('0x2c')](util[_0x34bc('0x28')](_0x34bc('0xb7'),_0x3e48c6[_0x34bc('0x65')]));var _0x596197=this['channel']['wait'](_0x3e48c6[_0x34bc('0x65')]);if(_0x596197[_0x34bc('0xa3')]===-0x1){return _0x596197;}}return this['channel'][_0x34bc('0xb8')]();};AGIVertices[_0x34bc('0x13')]['callback']=function(_0x4808e8){logger[_0x34bc('0x2c')](util[_0x34bc('0x28')]('Enter\x20in\x20CALLBACK\x20(%s)\x20block',_0x4808e8['label']));if(!this[_0x34bc('0x85')](_0x4808e8[_0x34bc('0x46')])){return this[_0x34bc('0xd')]['error'](_0x4808e8,'no\x20list\x20selected');}_0x4808e8['scheduledAt']=moment();if(this[_0x34bc('0x85')](_0x4808e8['delay'])){_0x4808e8[_0x34bc('0xb9')]=moment()['add'](_0x4808e8['delay'],_0x34bc('0xba'));}if(!this[_0x34bc('0x85')](_0x4808e8[_0x34bc('0x4a')])){_0x4808e8[_0x34bc('0x4a')]=0x2;}this[_0x34bc('0x40')][_0x34bc('0x6d')](this,_0x4808e8);return this[_0x34bc('0xd')][_0x34bc('0xaa')](util[_0x34bc('0x28')](_0x34bc('0xbb'),_0x4808e8[_0x34bc('0x45')],_0x4808e8['list_id'],_0x4808e8[_0x34bc('0xb9')]));};AGIVertices[_0x34bc('0x13')][_0x34bc('0xbc')]=function(_0x33afa3){logger[_0x34bc('0x2c')](util['format'](_0x34bc('0xbd'),_0x33afa3['label']));var _0x61e569=this['channel']['exec'](_0x33afa3[_0x34bc('0xbe')],_0x33afa3[_0x34bc('0x77')]);if(_0x61e569[_0x34bc('0xa3')]===-0x1){return _0x61e569;}return this[_0x34bc('0xd')][_0x34bc('0xaa')](util['format']('Executed\x20command\x20%s\x20%s',_0x33afa3[_0x34bc('0xbe')],_0x33afa3[_0x34bc('0x77')]));};AGIVertices[_0x34bc('0x13')][_0x34bc('0xbf')]=function(_0x2c6225){logger[_0x34bc('0x2c')](util[_0x34bc('0x28')]('Enter\x20in\x20LUMENVOXTTS\x20(%s)\x20block',_0x2c6225['label']));if(!this[_0x34bc('0x85')](_0x2c6225[_0x34bc('0x5a')])){return this['channel'][_0x34bc('0xaa')](_0x34bc('0xab'));}var _0x2979ac='\x22'+_0x2c6225[_0x34bc('0x5a')]+'\x22';if(this['isConfigured'](_0x2c6225[_0x34bc('0x77')])){_0x2979ac+=','+_0x2c6225[_0x34bc('0x77')];}var _0x1fa6ba=this[_0x34bc('0xd')][_0x34bc('0x55')](_0x34bc('0xc0'),_0x2979ac);if(_0x1fa6ba['result']===-0x1){return _0x1fa6ba;}return this[_0x34bc('0xd')][_0x34bc('0xaa')](util[_0x34bc('0x28')]('Executed\x20command\x20MRCPSynth\x20%s',_0x2979ac));};AGIVertices[_0x34bc('0x13')][_0x34bc('0xc1')]=function(_0x478701){logger[_0x34bc('0x2c')](util[_0x34bc('0x28')](_0x34bc('0xc2'),_0x478701[_0x34bc('0xa9')]));if(!this[_0x34bc('0x85')](_0x478701['text'])){return this[_0x34bc('0xd')][_0x34bc('0xaa')](_0x34bc('0xab'));}var _0x5e0e3f='\x22'+_0x478701[_0x34bc('0x5a')]+'\x22';if(this['isConfigured'](_0x478701['options'])){_0x5e0e3f+=','+_0x478701['options'];}var _0x29a038=this['channel']['exec']('MRCPSynth',_0x5e0e3f);if(_0x29a038['result']===-0x1){return _0x29a038;}return this[_0x34bc('0xd')][_0x34bc('0xaa')](util[_0x34bc('0x28')](_0x34bc('0xac'),_0x5e0e3f));};AGIVertices[_0x34bc('0x13')][_0x34bc('0xc3')]=function(_0x4025e7){logger[_0x34bc('0x2c')](util[_0x34bc('0x28')]('Enter\x20in\x20LUMENVOXASR\x20(%s)\x20block',_0x4025e7[_0x34bc('0xa9')]));if(!this[_0x34bc('0x85')](_0x4025e7[_0x34bc('0xae')])){return this[_0x34bc('0xd')][_0x34bc('0xaa')](_0x34bc('0xad'));}var _0x1bb62d=_0x4025e7[_0x34bc('0xae')];if(this[_0x34bc('0x85')](_0x4025e7['options'])){_0x1bb62d+=','+_0x4025e7[_0x34bc('0x77')];}var _0x5ae468=this['channel'][_0x34bc('0x55')]('MRCPRecog',_0x1bb62d);if(_0x5ae468[_0x34bc('0xa3')]===-0x1){return _0x5ae468;}var _0x5b9a25=this['getAndSetVariable'](_0x34bc('0xb0'),'LUMENVOX_ASR_CONFIDENCE');if(_0x5b9a25[_0x34bc('0xa3')]===-0x1){return _0x5b9a25;}var _0xa77cea=this['getAndSetVariable'](_0x34bc('0xc4'),_0x34bc('0xc5'));if(_0xa77cea[_0x34bc('0xa3')]===-0x1){return _0xa77cea;}var _0x1e9083=this[_0x34bc('0xa2')](_0x34bc('0xb2'),_0x34bc('0xc6'));if(_0x1e9083[_0x34bc('0xa3')]===-0x1){return _0x1e9083;}return this[_0x34bc('0xd')][_0x34bc('0xaa')](util[_0x34bc('0x28')](_0x34bc('0xc7'),_0x1bb62d));};AGIVertices[_0x34bc('0x13')]['sestekasr']=function(_0x7f2aaf){logger[_0x34bc('0x2c')](util[_0x34bc('0x28')](_0x34bc('0xc8'),_0x7f2aaf[_0x34bc('0xa9')]));if(!this[_0x34bc('0x85')](_0x7f2aaf[_0x34bc('0xae')])){return this['channel'][_0x34bc('0xaa')](_0x34bc('0xad'));}var _0xa667dc=_0x7f2aaf[_0x34bc('0xae')];if(this[_0x34bc('0x85')](_0x7f2aaf[_0x34bc('0x77')])){_0xa667dc+=','+_0x7f2aaf['options'];}var _0x4bbf51=this[_0x34bc('0xd')][_0x34bc('0x55')]('MRCPRecog',_0xa667dc);if(_0x4bbf51[_0x34bc('0xa3')]===-0x1){return _0x4bbf51;}var _0x593802=this[_0x34bc('0xa2')]('RECOG_CONFIDENCE()','SESTEK_ASR_CONFIDENCE');if(_0x593802['result']===-0x1){return _0x593802;}var _0x3bb206=this[_0x34bc('0xa2')](_0x34bc('0xc4'),_0x34bc('0xc9'));if(_0x3bb206[_0x34bc('0xa3')]===-0x1){return _0x3bb206;}var _0x1153d0=this['getAndSetVariable'](_0x34bc('0xb2'),_0x34bc('0xca'));if(_0x1153d0[_0x34bc('0xa3')]===-0x1){return _0x1153d0;}return this[_0x34bc('0xd')][_0x34bc('0xaa')](util[_0x34bc('0x28')]('Executed\x20command\x20MRCPRecog\x20%s',_0xa667dc));};AGIVertices[_0x34bc('0x13')][_0x34bc('0xcb')]=function(_0x18f6b4){logger[_0x34bc('0x2c')](util[_0x34bc('0x28')](_0x34bc('0xcc'),_0x18f6b4[_0x34bc('0xa9')]));if(!this[_0x34bc('0x85')](_0x18f6b4[_0x34bc('0xcd')])){return this[_0x34bc('0xd')]['error'](_0x18f6b4,'no\x20database\x20selected');}var _0x4339b9=this[_0x34bc('0x15')][_0x34bc('0x6d')](this,_0x18f6b4['odbc_id']);if(!_0x4339b9){return this[_0x34bc('0xd')]['error'](_0x18f6b4,_0x34bc('0xce'));}if(!this[_0x34bc('0x85')](_0x18f6b4[_0x34bc('0x2e')])){return this[_0x34bc('0xd')]['error'](_0x18f6b4,_0x34bc('0xcf'));}var _0x526111=_0x18f6b4[_0x34bc('0x2e')][_0x34bc('0xd0')](/(\r\n|\n|\r)/gm,'\x20');this['channel'][_0x34bc('0xaa')](util[_0x34bc('0x28')]('query:\x20%s',_0x526111));var _0x4dab7c=this[_0x34bc('0x29')][_0x34bc('0x6d')](this,_0x4339b9,_0x526111);this['createSquareDetailsReport']['sync'](this,_0x18f6b4,_0x526111);if(!this[_0x34bc('0x85')](_0x18f6b4[_0x34bc('0xd1')])){return this[_0x34bc('0xd')]['noop'](_0x34bc('0xd2'));}var _0x40b723=this['getVariable'][_0x34bc('0x6d')](this,_0x18f6b4['variable_id']);if(!_0x40b723){return this[_0x34bc('0xd')][_0x34bc('0x2b')](_0x18f6b4,_0x34bc('0xd3'));}var _0x3bf43a=this;_0x4dab7c[_0x34bc('0xd4')](function(_0x13e1c9,_0x55d529){Object['keys'](_0x13e1c9)[_0x34bc('0xd4')](function(_0x4bcac0){_0x3bf43a[_0x34bc('0xd')][_0x34bc('0xa0')](util['format'](_0x34bc('0xd5'),_0x40b723,_0x55d529,_0x4bcac0),_0x13e1c9[_0x4bcac0]);});});this[_0x34bc('0xd')][_0x34bc('0xa0')](util[_0x34bc('0x28')](_0x34bc('0xd6'),_0x40b723),_0x4dab7c['length']);return this[_0x34bc('0xd')][_0x34bc('0xaa')](util[_0x34bc('0x28')](_0x34bc('0xd7'),_0x40b723));};AGIVertices[_0x34bc('0x13')][_0x34bc('0xd8')]=function(_0x2bffca){logger['debug'](util[_0x34bc('0x28')](_0x34bc('0xd9'),_0x2bffca[_0x34bc('0xa9')]));if(!this[_0x34bc('0x85')](_0x2bffca[_0x34bc('0xda')])){return this[_0x34bc('0xd')]['error'](_0x2bffca,_0x34bc('0xdb'));}var _0x2ad23b=this[_0x34bc('0x18')][_0x34bc('0x6d')](this,_0x2bffca[_0x34bc('0xda')]);if(!_0x2ad23b){return this[_0x34bc('0xd')]['error'](_0x2bffca,_0x34bc('0xdc'));}var _0x19a166=this[_0x34bc('0xd')][_0x34bc('0x55')](_0x34bc('0xdd'),[util[_0x34bc('0x28')](_0x34bc('0xde'),_0x2ad23b),_0x2bffca['timeout'],_0x2bffca['opts'],_0x2bffca[_0x34bc('0x63')]]);if(_0x19a166[_0x34bc('0xa3')]===-0x1){return _0x19a166;}return this[_0x34bc('0xd')][_0x34bc('0xaa')](util[_0x34bc('0x28')](_0x34bc('0xdf'),'DIAL'));};AGIVertices[_0x34bc('0x13')][_0x34bc('0xe0')]=function(_0x5d6d9e){logger[_0x34bc('0x2c')](util[_0x34bc('0x28')]('Enter\x20in\x20DIALOGFLOW\x20(%s)\x20block',_0x5d6d9e['label']));if(!this[_0x34bc('0x85')](_0x5d6d9e[_0x34bc('0x79')])){return this[_0x34bc('0xd')][_0x34bc('0xaa')](_0x34bc('0xe1'));}if(!this[_0x34bc('0x85')](_0x5d6d9e[_0x34bc('0x5a')])){return this[_0x34bc('0xd')][_0x34bc('0xaa')](_0x34bc('0xab'));}this[_0x34bc('0xd')]['bot']=!![];this[_0x34bc('0x35')](_0x5d6d9e);this[_0x34bc('0x3f')](_0x5d6d9e[_0x34bc('0x5a')],'in','','');this[_0x34bc('0xd')][_0x34bc('0xaa')](util[_0x34bc('0x28')]('Trying\x20Dialogflow:\x20%s',_0x5d6d9e[_0x34bc('0x5a')]));var _0x51ead1=this[_0x34bc('0x78')]['sync'](this,_0x5d6d9e);if(_0x51ead1){for(var _0x4a059c in _0x51ead1){if(_0x51ead1[_0x34bc('0x99')](_0x4a059c)){this[_0x34bc('0xd')][_0x34bc('0xa0')](util['format'](_0x34bc('0xe2'),_0x4a059c['toUpperCase']()),_0x51ead1[_0x4a059c]);}}this[_0x34bc('0x3f')](_0x51ead1['speech'],_0x34bc('0xe3'),_0x34bc('0xe0'),'');return this[_0x34bc('0xd')]['noop'](util['format'](_0x34bc('0xe4'),_0x51ead1['speech']));}return this['channel'][_0x34bc('0x2b')](_0x5d6d9e,_0x34bc('0xe5'));};AGIVertices[_0x34bc('0x13')][_0x34bc('0xe6')]=function(_0x10deff){logger[_0x34bc('0x2c')](util[_0x34bc('0x28')]('Enter\x20in\x20DIALOGFLOW\x20V2\x20(%s)\x20block',_0x10deff['label']));if(!this[_0x34bc('0x85')](_0x10deff[_0x34bc('0x7c')])){return this['channel'][_0x34bc('0xaa')]('no\x20project_id\x20configured');}if(!this[_0x34bc('0x85')](_0x10deff[_0x34bc('0x7d')])){return this[_0x34bc('0xd')][_0x34bc('0xaa')](_0x34bc('0xe7'));}if(!this[_0x34bc('0x85')](_0x10deff['private_key'])){return this['channel'][_0x34bc('0xaa')](_0x34bc('0xe8'));}if(!this[_0x34bc('0x85')](_0x10deff['dialogflowV2_language'])){return this['channel'][_0x34bc('0xaa')]('no\x20anguage\x20configured');}if(!this['isConfigured'](_0x10deff[_0x34bc('0x5a')])){return this[_0x34bc('0xd')][_0x34bc('0xaa')](_0x34bc('0xab'));}this[_0x34bc('0xd')][_0x34bc('0xe9')]=!![];this[_0x34bc('0x35')](_0x10deff);this['createSquareMessage'](_0x10deff[_0x34bc('0x5a')],'in','','');this['channel'][_0x34bc('0xaa')](util[_0x34bc('0x28')]('Trying\x20DialogflowV2:\x20%s',_0x10deff[_0x34bc('0x5a')]));var _0x5f4598=this[_0x34bc('0x7b')]['sync'](this,_0x10deff);if(_0x5f4598){for(var _0x57a3bd in _0x5f4598){if(_0x5f4598[_0x34bc('0x99')](_0x57a3bd)){if(_0x57a3bd!==_0x34bc('0xea')){this['channel']['setVariable'](util[_0x34bc('0x28')]('DIALOGFLOW_%s',_0x57a3bd['toUpperCase']()),_0x5f4598[_0x57a3bd]);}}}this[_0x34bc('0x3f')](_0x5f4598[_0x34bc('0xeb')],_0x34bc('0xe3'),'dialogflowV2',_0x5f4598[_0x34bc('0xea')]);return this[_0x34bc('0xd')]['noop'](util[_0x34bc('0x28')](_0x34bc('0xec'),_0x5f4598['speech']));}return this[_0x34bc('0xd')]['error'](_0x10deff,_0x34bc('0xed'));};AGIVertices[_0x34bc('0x13')]['sesteknda']=function(_0x51a21b){logger[_0x34bc('0x2c')](util['format'](_0x34bc('0xee'),_0x51a21b[_0x34bc('0xa9')]));if(!this['isConfigured'](_0x51a21b[_0x34bc('0xef')])){return this[_0x34bc('0xd')][_0x34bc('0xaa')]('no\x20ndauth\x20url\x20configured');}if(!this[_0x34bc('0x85')](_0x51a21b[_0x34bc('0xf0')])){return this[_0x34bc('0xd')][_0x34bc('0xaa')](_0x34bc('0xf1'));}if(!this[_0x34bc('0x85')](_0x51a21b[_0x34bc('0xf2')])){return this[_0x34bc('0xd')][_0x34bc('0xaa')]('no\x20password\x20configured');}if(!this[_0x34bc('0x85')](_0x51a21b[_0x34bc('0xf3')])){return this[_0x34bc('0xd')][_0x34bc('0xaa')](_0x34bc('0xab'));}this[_0x34bc('0xd')][_0x34bc('0xe9')]=!![];this[_0x34bc('0x35')](_0x51a21b);this[_0x34bc('0x3f')](_0x51a21b[_0x34bc('0x5a')],'in','','');this['channel']['noop'](util['format'](_0x34bc('0xf4'),_0x51a21b[_0x34bc('0x5a')]));var _0x271a27=this[_0x34bc('0x80')][_0x34bc('0x6d')](this,_0x51a21b);if(_0x271a27){for(var _0x2dad53 in _0x271a27){if(_0x271a27[_0x34bc('0x99')](_0x2dad53)){this[_0x34bc('0xd')][_0x34bc('0xa0')](util['format'](_0x34bc('0xf5'),_0x2dad53[_0x34bc('0xf6')]()),_0x271a27[_0x2dad53]);}}this[_0x34bc('0x3f')](_0x271a27[_0x34bc('0xeb')],'out','sesteknda','');if(_0x271a27[_0x34bc('0xf7')]){this[_0x34bc('0xd')][_0x34bc('0xaa')](util[_0x34bc('0x28')](_0x34bc('0xf8'),_0x271a27[_0x34bc('0xf7')]));var _0x586528=this[_0x34bc('0xd')]['streamFile'](_0x271a27[_0x34bc('0xf7')]);try{fs[_0x34bc('0xf9')](_0x271a27[_0x34bc('0xf7')]+'.wav');}catch(_0x15905c){logger[_0x34bc('0x2b')](_0x15905c);}return _0x586528;}else{return this[_0x34bc('0xd')][_0x34bc('0xaa')](util[_0x34bc('0x28')]('SestekNDA\x20Result\x20%s',_0x271a27[_0x34bc('0xeb')]));}}return this[_0x34bc('0xd')][_0x34bc('0x2b')](_0x51a21b,_0x34bc('0xfa'));};AGIVertices[_0x34bc('0x13')][_0x34bc('0xfb')]=function(_0x3bec77){logger[_0x34bc('0x2c')](util[_0x34bc('0x28')](_0x34bc('0xfc'),_0x3bec77['label']));return this[_0x34bc('0xd')][_0x34bc('0xaa')]('end');};AGIVertices[_0x34bc('0x13')][_0x34bc('0xfd')]=function(_0xa4df24){logger[_0x34bc('0x2c')](util[_0x34bc('0x28')](_0x34bc('0xfe'),_0xa4df24[_0x34bc('0xa9')]));var _0x5ba34b='';if(_0xa4df24[_0x34bc('0xff')]){if(!this[_0x34bc('0x85')](_0xa4df24[_0x34bc('0xff')])){return this[_0x34bc('0xd')][_0x34bc('0x2b')](_0xa4df24,_0x34bc('0x100'));}else{var _0xe4bce6=parseInt(_0xa4df24[_0x34bc('0xff')],0xa);if(isNaN(_0xe4bce6)){_0x5ba34b=_0xa4df24['trunk_id'];}else{_0x5ba34b=this[_0x34bc('0x1a')][_0x34bc('0x6d')](this,_0xa4df24[_0x34bc('0xff')]);if(!_0x5ba34b){return this[_0x34bc('0xd')][_0x34bc('0x2b')](_0xa4df24,'no\x20trunk\x20found');}}}}else if(_0xa4df24[_0x34bc('0x101')]){_0x5ba34b=_0xa4df24[_0x34bc('0x101')];}else{return this[_0x34bc('0xd')][_0x34bc('0x2b')](_0xa4df24,'no\x20trunk\x20selected');}var _0x103985=this[_0x34bc('0xd')][_0x34bc('0x55')](_0x34bc('0xdd'),[util[_0x34bc('0x28')](_0x34bc('0x102'),_0x5ba34b,_0xa4df24['phone']),_0xa4df24['timeout'],_0xa4df24[_0x34bc('0x103')],_0xa4df24[_0x34bc('0x63')]]);if(_0x103985[_0x34bc('0xa3')]===-0x1){return _0x103985;}return this[_0x34bc('0xd')]['noop'](util[_0x34bc('0x28')](_0x34bc('0xdf'),_0x34bc('0xdd')));};AGIVertices[_0x34bc('0x13')]['finally']=function(_0x488c55){logger[_0x34bc('0x2c')](util[_0x34bc('0x28')](_0x34bc('0x104'),_0x488c55[_0x34bc('0xa9')]));return this['channel'][_0x34bc('0xaa')]('finally');};AGIVertices[_0x34bc('0x13')][_0x34bc('0x105')]=function(_0x28d185){logger['info'](util[_0x34bc('0x28')](_0x34bc('0x106'),_0x28d185[_0x34bc('0xa9')]));if(_0x28d185[_0x34bc('0xa6')]===0x0){return this[_0x34bc('0xa5')](_0x28d185);}_0x28d185[_0x34bc('0xa6')]-=0x1;if(!this[_0x34bc('0x85')](_0x28d185['file_id'])){return this['channel'][_0x34bc('0x2b')](_0x28d185,_0x34bc('0x107'));}var _0x37b5b8=this[_0x34bc('0x108')]['sync'](this,_0x28d185[_0x34bc('0x109')]);if(!_0x37b5b8){return this[_0x34bc('0xd')][_0x34bc('0x2b')](_0x28d185,_0x34bc('0x10a'));}if(!this[_0x34bc('0x85')](_0x28d185[_0x34bc('0xd1')])){return this['channel'][_0x34bc('0x2b')](_0x34bc('0xd2'));}var _0x3ab42a=this[_0x34bc('0xd')][_0x34bc('0x10b')](_0x37b5b8,_0x28d185[_0x34bc('0x10c')],_0x28d185[_0x34bc('0x10d')]);var _0x270827=_0x3ab42a[_0x34bc('0xa3')]?_0x3ab42a[_0x34bc('0xa3')][_0x34bc('0x49')]():'';logger[_0x34bc('0x2c')](_0x34bc('0x10e'),JSON[_0x34bc('0x72')](_0x3ab42a));if(_0x3ab42a[_0x34bc('0xa3')]===-0x1){this[_0x34bc('0x35')][_0x34bc('0x6d')](this,_0x28d185,_0x270827);return _0x3ab42a;}else if(_0x3ab42a['extra']===_0x34bc('0x65')){_0x3ab42a[_0x34bc('0xa3')]=_0x270827['length']>=parseInt(_0x28d185[_0x34bc('0x10f')])?'x':'i';}else{_0x3ab42a[_0x34bc('0xa3')]=_0x270827[_0x34bc('0x9b')]>=parseInt(_0x28d185[_0x34bc('0x10f')])&&_0x270827[_0x34bc('0x9b')]<=parseInt(_0x28d185['maxdigit'])?'x':'i';}var _0x1d3ca7=this[_0x34bc('0xf')][_0x34bc('0x6d')](this,_0x28d185[_0x34bc('0xd1')]);if(!_0x1d3ca7){return this[_0x34bc('0xd')][_0x34bc('0x2b')](_0x28d185,_0x34bc('0xd3'));}this['channel'][_0x34bc('0xa0')](_0x1d3ca7,_0x270827);if(this[_0x34bc('0x85')](_0x28d185[_0x34bc('0x110')])){var _0x2ddd8b=parseInt(_0x28d185[_0x34bc('0x110')],0xa);var _0x5b00d4=rs[_0x34bc('0x111')]({'charset':'*','length':_0x2ddd8b});var _0x33bc51=_0x270827[_0x34bc('0x9b')];if(_0x33bc51>0x0){if(_0x33bc51>_0x2ddd8b){this['createSquareDetailsReport'][_0x34bc('0x6d')](this,_0x28d185,_0x28d185['hiddendigitspos']===_0x34bc('0x112')?_0x5b00d4+_0x270827['substr'](_0x2ddd8b):_0x270827[_0x34bc('0x113')](0x0,_0x33bc51-_0x2ddd8b)+_0x5b00d4);}else{this[_0x34bc('0x35')][_0x34bc('0x6d')](this,_0x28d185,rs[_0x34bc('0x111')]({'charset':'*','length':_0x33bc51}));}}else{this[_0x34bc('0x35')][_0x34bc('0x6d')](this,_0x28d185,'');}}else{this[_0x34bc('0x35')][_0x34bc('0x6d')](this,_0x28d185,_0x270827);}return _0x3ab42a;};AGIVertices[_0x34bc('0x13')]['getsecretdigits']=function(_0x29a700){logger[_0x34bc('0x2c')](util[_0x34bc('0x28')](_0x34bc('0x114'),_0x29a700[_0x34bc('0xa9')]));return this[_0x34bc('0x105')](_0x29a700);};AGIVertices[_0x34bc('0x13')][_0x34bc('0x115')]=function(_0x3f56ab){logger[_0x34bc('0x2c')](util[_0x34bc('0x28')](_0x34bc('0x116'),_0x3f56ab[_0x34bc('0xa9')]));this[_0x34bc('0x35')][_0x34bc('0x6d')](this,_0x3f56ab,_0x3f56ab[_0x34bc('0x117')]);return this[_0x34bc('0xd')][_0x34bc('0xaa')](util[_0x34bc('0x28')](_0x34bc('0x118'),_0x3f56ab[_0x34bc('0x117')]));};AGIVertices[_0x34bc('0x13')]['awspolly']=function(_0x3c5d51){logger[_0x34bc('0x2c')](util[_0x34bc('0x28')](_0x34bc('0x119'),_0x3c5d51['label']));if(!this[_0x34bc('0x85')](_0x3c5d51[_0x34bc('0x88')])||!this[_0x34bc('0x85')](_0x3c5d51[_0x34bc('0x89')])){return this[_0x34bc('0xd')][_0x34bc('0xaa')](_0x34bc('0x11a'));}if(!this[_0x34bc('0x85')](_0x3c5d51['text'])){return this['channel']['noop']('no\x20text\x20configured');}this[_0x34bc('0xd')][_0x34bc('0xaa')](util[_0x34bc('0x28')](_0x34bc('0x11b'),_0x3c5d51[_0x34bc('0x5a')]));var _0xec4fd3=this[_0x34bc('0x87')][_0x34bc('0x6d')](this,_0x3c5d51);if(_0xec4fd3){this[_0x34bc('0xd')]['noop'](util[_0x34bc('0x28')]('aws\x20Polly\x20%s\x20file\x20created',_0xec4fd3));var _0x102058=this['channel'][_0x34bc('0x11c')](_0xec4fd3);try{fs[_0x34bc('0xf9')](_0xec4fd3+'.wav');}catch(_0x16ecdb){logger[_0x34bc('0x2b')](_0x16ecdb);}return _0x102058;}return this[_0x34bc('0xd')]['error'](_0x3c5d51,_0x34bc('0x11d'));};AGIVertices[_0x34bc('0x13')][_0x34bc('0x11e')]=function(_0x1f3fc5){logger[_0x34bc('0x2c')](util[_0x34bc('0x28')](_0x34bc('0x11f'),_0x1f3fc5[_0x34bc('0xa9')]));if(!this[_0x34bc('0x85')](_0x1f3fc5[_0x34bc('0x88')])||!this[_0x34bc('0x85')](_0x1f3fc5[_0x34bc('0x89')])){return this[_0x34bc('0xd')][_0x34bc('0xaa')](_0x34bc('0x11a'));}if(!this[_0x34bc('0x85')](_0x1f3fc5[_0x34bc('0x120')])){return this[_0x34bc('0xd')]['noop'](_0x34bc('0x121'));}if(!this[_0x34bc('0x85')](_0x1f3fc5['text'])){return this['channel'][_0x34bc('0xaa')](_0x34bc('0xab'));}this[_0x34bc('0xd')][_0x34bc('0xe9')]=!![];this[_0x34bc('0x35')](_0x1f3fc5);this['createSquareMessage'](_0x1f3fc5['text'],'in','','');this[_0x34bc('0xd')][_0x34bc('0xaa')](util[_0x34bc('0x28')](_0x34bc('0x122'),_0x1f3fc5['text']));var _0x3a243e=this[_0x34bc('0x8c')][_0x34bc('0x6d')](this,_0x1f3fc5);if(_0x3a243e){for(var _0x2f0572 in _0x3a243e){if(_0x3a243e[_0x34bc('0x99')](_0x2f0572)&&_[_0x34bc('0x95')](_0x3a243e[_0x2f0572])){this[_0x34bc('0xd')][_0x34bc('0xa0')](util[_0x34bc('0x28')](_0x34bc('0x123'),_0x2f0572[_0x34bc('0xf6')]()),_0x3a243e[_0x2f0572]);}}if(_[_0x34bc('0x41')](_0x3a243e['message'])){return this['channel'][_0x34bc('0xaa')]('Amazon\x20Lex\x20ready\x20for\x20fulfillment');}else{this['createSquareMessage'](_0x3a243e[_0x34bc('0x75')],_0x34bc('0xe3'),_0x34bc('0x124'),'');return this[_0x34bc('0xd')][_0x34bc('0xaa')](util['format'](_0x34bc('0x125'),_0x3a243e[_0x34bc('0x75')]));}}return this[_0x34bc('0xd')][_0x34bc('0x2b')](_0x1f3fc5,_0x34bc('0x126'));};AGIVertices[_0x34bc('0x13')][_0x34bc('0x127')]=function(_0x82596a){logger[_0x34bc('0x2c')](util[_0x34bc('0x28')](_0x34bc('0x128'),_0x82596a[_0x34bc('0xa9')],_0x82596a[_0x34bc('0x65')]));if(!this['isConfigured'](_0x82596a[_0x34bc('0x79')])){return this[_0x34bc('0xd')][_0x34bc('0xaa')](_0x34bc('0xe1'));}var _0x53cb6f='wav';var _0x48fcec=util[_0x34bc('0x28')](_0x34bc('0x129'),FILES_PATH,rs[_0x34bc('0x111')](0x4));var _0xee5898=util[_0x34bc('0x28')]('%s.%s',_0x48fcec,_0x53cb6f);var _0x2e59e4=!![];if(_0x82596a[_0x34bc('0x12a')]===_0x34bc('0x12b')){_0x2e59e4=![];}var _0x56e1b5=this['channel'][_0x34bc('0x12c')](_0x48fcec,_0x53cb6f,_0x82596a['intKey'],_0x82596a[_0x34bc('0x65')],undefined,_0x2e59e4);if(_0x56e1b5['result']!==-0x1){this[_0x34bc('0xd')]['noop'](util['format'](_0x34bc('0x12d'),_0xee5898));var _0x209c32=this[_0x34bc('0x8e')][_0x34bc('0x6d')](this,_0x82596a,_0xee5898);if(_0x209c32){for(var _0x55d1ee in _0x209c32){if(_0x209c32[_0x34bc('0x99')](_0x55d1ee)){this['channel']['setVariable'](util['format'](_0x34bc('0x12e'),_0x55d1ee[_0x34bc('0xf6')]()),_0x209c32[_0x55d1ee]);}}return this[_0x34bc('0xd')]['noop'](util[_0x34bc('0x28')]('GoogleASR\x20Result\x20%s',JSON[_0x34bc('0x72')](_0x209c32)));}}return _0x56e1b5;};AGIVertices[_0x34bc('0x13')]['tildeasr']=function(_0x5eb024){logger[_0x34bc('0x2c')](util[_0x34bc('0x28')](_0x34bc('0x12f'),_0x5eb024[_0x34bc('0xa9')]));if(!this['isConfigured'](_0x5eb024[_0x34bc('0x91')])){return this[_0x34bc('0xd')][_0x34bc('0xaa')](_0x34bc('0x130'));}if(!this[_0x34bc('0x85')](_0x5eb024[_0x34bc('0x92')])){return this[_0x34bc('0xd')][_0x34bc('0xaa')](_0x34bc('0x131'));}var _0x4343be='wav';var _0x180757=util[_0x34bc('0x28')](_0x34bc('0x129'),FILES_PATH,rs[_0x34bc('0x111')](0x4));var _0x5d4b13=util[_0x34bc('0x28')](_0x34bc('0x9e'),_0x180757,_0x4343be);var _0x2c8d68=!![];if(_0x5eb024[_0x34bc('0x12a')]===_0x34bc('0x12b')){_0x2c8d68=![];}var _0x1b303c=this['channel'][_0x34bc('0x12c')](_0x180757,_0x4343be,_0x5eb024['intKey'],_0x5eb024[_0x34bc('0x65')],undefined,_0x2c8d68);if(_0x1b303c[_0x34bc('0xa3')]!==-0x1){this[_0x34bc('0xd')]['noop'](util[_0x34bc('0x28')](_0x34bc('0x132'),_0x5d4b13));var _0xedf340=this[_0x34bc('0x90')][_0x34bc('0x6d')](this,_0x5eb024,_0x5d4b13);if(_0xedf340){for(var _0x2bbbb3 in _0xedf340){if(_0xedf340['hasOwnProperty'](_0x2bbbb3)){this[_0x34bc('0xd')][_0x34bc('0xa0')](util[_0x34bc('0x28')](_0x34bc('0x133'),_0x2bbbb3[_0x34bc('0xf6')]()),_0xedf340[_0x2bbbb3]);}}return this[_0x34bc('0xd')][_0x34bc('0xaa')](util[_0x34bc('0x28')](_0x34bc('0x134'),JSON[_0x34bc('0x72')](_0xedf340)));}}return _0x1b303c;};AGIVertices[_0x34bc('0x13')][_0x34bc('0x135')]=function(_0x2f61f0){logger[_0x34bc('0x2c')](util[_0x34bc('0x28')](_0x34bc('0x136'),_0x2f61f0['label']));return this['channel'][_0x34bc('0x137')](_0x2f61f0['context'],_0x2f61f0[_0x34bc('0x138')],_0x2f61f0['priority']);};AGIVertices[_0x34bc('0x13')][_0x34bc('0x139')]=function(_0x5c710a){logger[_0x34bc('0x2c')](util[_0x34bc('0x28')](_0x34bc('0x13a'),_0x5c710a[_0x34bc('0xa9')]));if(!this['isConfigured'](_0x5c710a['condition'])){return this[_0x34bc('0xd')][_0x34bc('0x2b')](_0x5c710a,'no\x20condition\x20configured');}try{var _0x2fdacd=eval(_0x5c710a['condition'])?_0x34bc('0x13b'):_0x34bc('0x13c');this[_0x34bc('0xd')]['noop'](util[_0x34bc('0x28')](_0x34bc('0x13d'),_0x5c710a[_0x34bc('0x13e')],_0x2fdacd));return{'code':0xc8,'result':_0x2fdacd};}catch(_0x30be37){return{'code':0xc8,'result':_0x34bc('0x13c')};}};AGIVertices[_0x34bc('0x13')][_0x34bc('0x13f')]=function(_0x5c2ab8){logger[_0x34bc('0x2c')](util[_0x34bc('0x28')](_0x34bc('0x140'),_0x5c2ab8['label']));if(!this[_0x34bc('0x85')](_0x5c2ab8[_0x34bc('0x141')])){return this['channel'][_0x34bc('0x2b')](_0x5c2ab8,_0x34bc('0x142'));}var _0x48c153=this[_0x34bc('0x143')][_0x34bc('0x6d')](this,_0x5c2ab8[_0x34bc('0x141')]);if(!_0x48c153){return this[_0x34bc('0xd')]['error'](_0x5c2ab8,'no\x20intervals\x20found');}for(var _0x3d3555=0x0;_0x3d3555<_0x48c153[_0x34bc('0x9b')];_0x3d3555+=0x1){var _0x5cb344=this[_0x34bc('0xd')][_0x34bc('0xf')](util[_0x34bc('0x28')](_0x34bc('0x144'),_0x48c153[_0x3d3555]));if(_0x5cb344[_0x34bc('0xa3')]===-0x1){return _0x5cb344;}logger[_0x34bc('0x2c')](util[_0x34bc('0x28')]('IFTIME\x20%s\x20%s',_0x48c153[_0x3d3555],_0x5cb344[_0x34bc('0xa1')]));if(_0x5cb344['extra']===_0x34bc('0x13b')){logger[_0x34bc('0x2c')](util[_0x34bc('0x28')](_0x34bc('0x145'),_0x48c153[_0x3d3555],'true'));this[_0x34bc('0xd')]['noop'](util[_0x34bc('0x28')](_0x34bc('0x145'),_0x48c153[_0x3d3555],_0x34bc('0x13b')));return{'code':0xc8,'result':_0x34bc('0x13b')};}else{logger[_0x34bc('0x2c')](util[_0x34bc('0x28')]('IFTIME\x20%s\x20%s',_0x48c153[_0x3d3555],_0x34bc('0x13c')));this[_0x34bc('0xd')]['noop'](util[_0x34bc('0x28')](_0x34bc('0x145'),_0x48c153[_0x3d3555],'false'));}}return{'code':0xc8,'result':_0x34bc('0x13c')};};AGIVertices[_0x34bc('0x13')][_0x34bc('0x146')]=function(_0x28e8a8){logger[_0x34bc('0x2c')](util[_0x34bc('0x28')](_0x34bc('0x147'),_0x28e8a8['label']));return this['channel'][_0x34bc('0x146')]();};AGIVertices[_0x34bc('0x13')][_0x34bc('0x148')]=function(_0x5d33f){logger[_0x34bc('0x2c')](util['format'](_0x34bc('0x149'),_0x5d33f[_0x34bc('0xa9')]));if(!this[_0x34bc('0x85')](_0x5d33f[_0x34bc('0x79')])){return this['channel'][_0x34bc('0xaa')](_0x34bc('0xe1'));}var _0x431b03='wav';var _0x35aba3=util[_0x34bc('0x28')](_0x34bc('0x129'),FILES_PATH,rs[_0x34bc('0x111')](0x4));var _0x1fbca2=util[_0x34bc('0x28')](_0x34bc('0x9e'),_0x35aba3,_0x431b03);var _0x26b5ad=!![];if(_0x5d33f[_0x34bc('0x12a')]===_0x34bc('0x12b')){_0x26b5ad=![];}var _0xc897ad=this[_0x34bc('0xd')][_0x34bc('0x12c')](_0x35aba3,_0x431b03,_0x5d33f[_0x34bc('0x14a')],_0x5d33f[_0x34bc('0x65')],undefined,_0x26b5ad);if(_0xc897ad['result']!==-0x1){this[_0x34bc('0xd')][_0x34bc('0xaa')](util[_0x34bc('0x28')](_0x34bc('0x14b'),_0x1fbca2));var _0x586a0f=this['ispeechASR'][_0x34bc('0x6d')](this,_0x5d33f,_0x1fbca2);if(_0x586a0f){for(var _0x1e2428 in _0x586a0f){if(_0x586a0f[_0x34bc('0x99')](_0x1e2428)){this[_0x34bc('0xd')][_0x34bc('0xa0')](util['format'](_0x34bc('0x14c'),_0x1e2428[_0x34bc('0xf6')]()),_0x586a0f[_0x1e2428]);}}return this[_0x34bc('0xd')]['noop'](util[_0x34bc('0x28')](_0x34bc('0x14d'),JSON[_0x34bc('0x72')](_0x586a0f)));}}return _0xc897ad;};AGIVertices[_0x34bc('0x13')][_0x34bc('0x14e')]=function(_0x146131){logger['info'](util[_0x34bc('0x28')]('Enter\x20in\x20ISPEECHTTS\x20(%s)\x20block',_0x146131['label']));if(!this['isConfigured'](_0x146131[_0x34bc('0x79')])){return this[_0x34bc('0xd')][_0x34bc('0xaa')](_0x34bc('0xe1'));}if(!this['isConfigured'](_0x146131[_0x34bc('0x5a')])){return this[_0x34bc('0xd')][_0x34bc('0xaa')]('no\x20text\x20configured');}this['channel'][_0x34bc('0xaa')](util[_0x34bc('0x28')](_0x34bc('0x14f'),_0x146131[_0x34bc('0x5a')]));var _0x3a1d35=this[_0x34bc('0x81')][_0x34bc('0x6d')](this,_0x146131);if(_0x3a1d35){this[_0x34bc('0xd')][_0x34bc('0xaa')](util[_0x34bc('0x28')](_0x34bc('0x14b'),_0x3a1d35));var _0x5f095f=this['channel'][_0x34bc('0x11c')](_0x3a1d35,_0x146131[_0x34bc('0x14a')]);try{fs[_0x34bc('0xf9')](_0x3a1d35+_0x34bc('0x150'));}catch(_0x545109){logger[_0x34bc('0x2b')](_0x545109);}return _0x5f095f;}return this[_0x34bc('0xd')][_0x34bc('0x2b')](_0x146131,'ispeech\x20TTS\x20is\x20unreachable');};AGIVertices[_0x34bc('0x13')]['login']=function(_0x752ab0){logger[_0x34bc('0x2c')](util[_0x34bc('0x28')](_0x34bc('0x151'),_0x752ab0['label']));if(!this[_0x34bc('0x85')](_0x752ab0[_0x34bc('0x152')])){return this[_0x34bc('0xd')][_0x34bc('0x2b')](_0x752ab0,'no\x20find\x20by\x20configured');}logger[_0x34bc('0x2c')](util[_0x34bc('0x28')]('FIND\x20AGENT\x20%s\x20BY\x20%s',this[_0x34bc('0xd')][_0x34bc('0x38')],_0x752ab0[_0x34bc('0x152')]));var _0x190881=this[_0x34bc('0x51')][_0x34bc('0x6d')](this,_0x752ab0['findBy']);if(_0x190881){logger[_0x34bc('0x2c')](util[_0x34bc('0x28')](_0x34bc('0x153'),this['channel'][_0x34bc('0x38')],_0x752ab0[_0x34bc('0x152')]));this[_0x34bc('0xd')][_0x34bc('0xaa')](util['format'](_0x34bc('0x153'),this[_0x34bc('0xd')][_0x34bc('0x38')],_0x752ab0[_0x34bc('0x152')]));return{'code':0xc8,'result':_0x34bc('0x154')};}else{logger['info'](util[_0x34bc('0x28')](_0x34bc('0x155'),this[_0x34bc('0xd')][_0x34bc('0x38')],_0x752ab0['findBy']));this[_0x34bc('0xd')][_0x34bc('0xaa')](util[_0x34bc('0x28')]('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this['channel'][_0x34bc('0x38')],_0x752ab0[_0x34bc('0x152')]));return{'code':0xc8,'result':_0x34bc('0x156')};}};AGIVertices[_0x34bc('0x13')][_0x34bc('0x157')]=function(_0x38f6bd){logger['info'](util[_0x34bc('0x28')]('Enter\x20in\x20LOGOUT\x20(%s)\x20block',_0x38f6bd[_0x34bc('0xa9')]));if(!this[_0x34bc('0x85')](_0x38f6bd[_0x34bc('0x152')])){return this[_0x34bc('0xd')]['error'](_0x38f6bd,'no\x20find\x20by\x20configured');}logger[_0x34bc('0x2c')](util[_0x34bc('0x28')](_0x34bc('0x158'),this[_0x34bc('0xd')][_0x34bc('0x38')],_0x38f6bd[_0x34bc('0x152')]));var _0x23618c=this[_0x34bc('0x50')][_0x34bc('0x6d')](this,_0x38f6bd[_0x34bc('0x152')]);if(_0x23618c){logger[_0x34bc('0x2c')](util[_0x34bc('0x28')](_0x34bc('0x153'),this[_0x34bc('0xd')][_0x34bc('0x38')],_0x38f6bd[_0x34bc('0x152')]));this['channel'][_0x34bc('0xaa')](util['format'](_0x34bc('0x153'),this['channel']['callerid'],_0x38f6bd[_0x34bc('0x152')]));return{'code':0xc8,'result':_0x34bc('0x154')};}else{logger[_0x34bc('0x2c')](util[_0x34bc('0x28')]('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this['channel'][_0x34bc('0x38')],_0x38f6bd[_0x34bc('0x152')]));this[_0x34bc('0xd')][_0x34bc('0xaa')](util[_0x34bc('0x28')](_0x34bc('0x155'),this[_0x34bc('0xd')][_0x34bc('0x38')],_0x38f6bd['findBy']));return{'code':0xc8,'result':_0x34bc('0x156')};}};AGIVertices[_0x34bc('0x13')]['math']=function(_0x1a07fd){logger[_0x34bc('0x2c')](util[_0x34bc('0x28')](_0x34bc('0x159'),_0x1a07fd[_0x34bc('0xa9')]));if(!this[_0x34bc('0x85')](_0x1a07fd['operation'])){return this[_0x34bc('0xd')]['error'](_0x1a07fd,'no\x20operation\x20configured');}this[_0x34bc('0xd')][_0x34bc('0xaa')](util['format'](_0x34bc('0x15a'),_0x1a07fd[_0x34bc('0x15b')]));var _0x19f9cb=eval(_0x1a07fd[_0x34bc('0x15b')]);if(!this['isConfigured'](_0x1a07fd['variable_id'])){return this[_0x34bc('0xd')][_0x34bc('0xaa')]('no\x20variable\x20selected\x20for\x20the\x20result');}var _0x1b41f2=this[_0x34bc('0xf')][_0x34bc('0x6d')](this,_0x1a07fd[_0x34bc('0xd1')]);if(!_0x1b41f2){return this[_0x34bc('0xd')]['error'](_0x1a07fd,_0x34bc('0xd3'));}if(_[_0x34bc('0x9f')](_0x19f9cb)){var _0x2b7124=this;_0x19f9cb[_0x34bc('0xd4')](function(_0x458c70,_0x305702){_0x2b7124[_0x34bc('0xd')][_0x34bc('0xa0')](util[_0x34bc('0x28')](_0x34bc('0x15c'),_0x1b41f2,_0x305702),_0x458c70);});return this[_0x34bc('0xd')][_0x34bc('0xaa')](util[_0x34bc('0x28')](_0x34bc('0x15d'),_0x1b41f2));}else{return this[_0x34bc('0xd')][_0x34bc('0xa0')](_0x1b41f2,_0x19f9cb);}};AGIVertices[_0x34bc('0x13')][_0x34bc('0x15e')]=function(_0x55f57f){logger[_0x34bc('0x2c')](util[_0x34bc('0x28')]('Enter\x20in\x20MENU\x20(%s)\x20block',_0x55f57f['label']));if(_0x55f57f['retry']===0x0){return this[_0x34bc('0xa5')](_0x55f57f);}_0x55f57f[_0x34bc('0xa6')]-=0x1;if(!this['isConfigured'](_0x55f57f[_0x34bc('0x109')])){return this['channel']['error'](_0x55f57f,_0x34bc('0x107'));}var _0x39d594=this[_0x34bc('0x108')][_0x34bc('0x6d')](this,_0x55f57f[_0x34bc('0x109')]);if(!_0x39d594){return this[_0x34bc('0xd')][_0x34bc('0x2b')](_0x55f57f,_0x34bc('0x10a'));}var _0x1c2e7c=this[_0x34bc('0xd')][_0x34bc('0x10b')](_0x39d594,_0x55f57f[_0x34bc('0x10c')],_0x55f57f[_0x34bc('0x15f')]);var _0x1b1862=_0x1c2e7c['result'];if(_0x1c2e7c[_0x34bc('0xa3')]===-0x1){this[_0x34bc('0x35')][_0x34bc('0x6d')](this,_0x55f57f,'-1');return _0x1c2e7c;}else if(_0x1c2e7c['extra']==='timeout'){_0x1c2e7c[_0x34bc('0xa3')]=_0x1c2e7c[_0x34bc('0xa3')][_0x34bc('0x9b')]>0x0?_0x1c2e7c['result']:'t';}else if(_[_0x34bc('0x9d')](_0x1c2e7c['result'])){_0x1c2e7c['result']='#';_0x1b1862='#';}if(!this[_0x34bc('0x85')](_0x55f57f[_0x34bc('0xd1')])){this[_0x34bc('0xd')][_0x34bc('0xaa')](_0x34bc('0xd2'));}else{var _0x15acfd=this[_0x34bc('0xf')]['sync'](this,_0x55f57f['variable_id']);if(!_0x15acfd){return this[_0x34bc('0xd')][_0x34bc('0x2b')](_0x55f57f,_0x34bc('0xd3'));}this[_0x34bc('0xd')][_0x34bc('0xa0')](_0x15acfd,_0x1b1862);}this[_0x34bc('0x35')][_0x34bc('0x6d')](this,_0x55f57f,_0x1b1862);return _0x1c2e7c;};AGIVertices[_0x34bc('0x13')]['noop']=function(_0xbcb397){logger[_0x34bc('0x2c')](util[_0x34bc('0x28')](_0x34bc('0x160'),_0xbcb397['label']));return this['channel'][_0x34bc('0xaa')](_0xbcb397['output']||_0xbcb397[_0x34bc('0xa9')]);};AGIVertices[_0x34bc('0x13')]['pause']=function(_0x4ed076){logger[_0x34bc('0x2c')](util[_0x34bc('0x28')]('Enter\x20in\x20PAUSE\x20(%s)\x20block',_0x4ed076[_0x34bc('0xa9')]));if(!this['isConfigured'](_0x4ed076['findBy'])){return this[_0x34bc('0xd')]['error'](_0x4ed076,_0x34bc('0x161'));}logger['info'](util[_0x34bc('0x28')]('FIND\x20AGENT\x20%s\x20BY\x20%s',this[_0x34bc('0xd')][_0x34bc('0x38')],_0x4ed076[_0x34bc('0x152')]));var _0x1943a2=this[_0x34bc('0x4b')][_0x34bc('0x6d')](this,_0x4ed076[_0x34bc('0x162')]);var _0x1ab3b0=this[_0x34bc('0x4d')][_0x34bc('0x6d')](this,_0x4ed076[_0x34bc('0x152')],_0x1943a2);if(_0x1ab3b0){logger[_0x34bc('0x2c')](util[_0x34bc('0x28')](_0x34bc('0x153'),this[_0x34bc('0xd')][_0x34bc('0x38')],_0x4ed076[_0x34bc('0x152')]));this[_0x34bc('0xd')][_0x34bc('0xaa')](util[_0x34bc('0x28')](_0x34bc('0x153'),this[_0x34bc('0xd')]['callerid'],_0x4ed076[_0x34bc('0x152')]));return{'code':0xc8,'result':_0x34bc('0x154')};}else{logger[_0x34bc('0x2c')](util['format'](_0x34bc('0x155'),this[_0x34bc('0xd')][_0x34bc('0x38')],_0x4ed076[_0x34bc('0x152')]));this['channel'][_0x34bc('0xaa')](util[_0x34bc('0x28')](_0x34bc('0x153'),this[_0x34bc('0xd')][_0x34bc('0x38')],_0x4ed076[_0x34bc('0x152')]));return{'code':0xc8,'result':_0x34bc('0x156')};}};AGIVertices[_0x34bc('0x13')][_0x34bc('0x163')]=function(_0x2e8be6){logger[_0x34bc('0x2c')](util['format'](_0x34bc('0x164'),_0x2e8be6[_0x34bc('0xa9')]));if(!this[_0x34bc('0x85')](_0x2e8be6[_0x34bc('0x109')])){return this[_0x34bc('0xd')][_0x34bc('0x2b')](_0x2e8be6,_0x34bc('0x107'));}var _0x173955=this[_0x34bc('0x108')][_0x34bc('0x6d')](this,_0x2e8be6['file_id']);if(!_0x173955){return this[_0x34bc('0xd')][_0x34bc('0x2b')](_0x2e8be6,_0x34bc('0x10a'));}var _0x55d11e=this[_0x34bc('0xd')][_0x34bc('0x55')](_0x34bc('0x165'),[_0x173955,_0x2e8be6[_0x34bc('0x103')]]);if(_0x55d11e[_0x34bc('0xa3')]===-0x1){return _0x55d11e;}return this[_0x34bc('0xd')][_0x34bc('0xaa')](util[_0x34bc('0x28')](_0x34bc('0x166'),'PLAYBACK',_0x173955));};AGIVertices[_0x34bc('0x13')][_0x34bc('0x167')]=function(_0x91b3ad){logger['info'](util[_0x34bc('0x28')](_0x34bc('0x168'),_0x91b3ad['label']));if(!this[_0x34bc('0x85')](_0x91b3ad[_0x34bc('0x169')])){return this[_0x34bc('0xd')][_0x34bc('0x2b')](_0x91b3ad,_0x34bc('0x16a'));}var _0x3fea92='';var _0x30238f=parseInt(_0x91b3ad[_0x34bc('0x169')],0xa);if(isNaN(_0x30238f)){_0x3fea92=_0x91b3ad[_0x34bc('0x169')];}else{_0x3fea92=this[_0x34bc('0x16b')][_0x34bc('0x6d')](this,_0x91b3ad[_0x34bc('0x169')]);if(!_0x3fea92){return this['channel'][_0x34bc('0x2b')](_0x91b3ad,_0x34bc('0x16c'));}}var _0x8b47a6='';if(this[_0x34bc('0x85')](_0x91b3ad[_0x34bc('0x109')])){var _0x32a161=this[_0x34bc('0x108')][_0x34bc('0x6d')](this,_0x91b3ad['file_id']);if(_0x32a161){_0x8b47a6=_0x32a161;}}this['createSquareDetailsReport'][_0x34bc('0x6d')](this,_0x91b3ad,_0x3fea92);if(_0x91b3ad[_0x34bc('0x103')][_0x34bc('0x16d')]('x')<0x0){_0x91b3ad['opts']+='x';}if(_0x91b3ad[_0x34bc('0x103')][_0x34bc('0x16d')]('X')<0x0){_0x91b3ad[_0x34bc('0x103')]+='X';}this[_0x34bc('0xd')][_0x34bc('0xa0')](_0x34bc('0x16e'),_0x3fea92?_0x3fea92[_0x34bc('0x16f')]():'');var _0x54e003=this[_0x34bc('0xd')][_0x34bc('0x55')](_0x34bc('0x170'),[_0x3fea92,_0x91b3ad[_0x34bc('0x103')],_0x91b3ad[_0x34bc('0x63')],_0x8b47a6,_0x91b3ad[_0x34bc('0x65')],_0x91b3ad['agi'],_0x91b3ad['macro'],_0x91b3ad[_0x34bc('0x171')],'',_0x91b3ad['position']]);if(_0x54e003[_0x34bc('0xa3')]===-0x1){return _0x54e003;}return this[_0x34bc('0xd')]['noop'](util[_0x34bc('0x28')]('Executed\x20command\x20%s\x20%s',_0x34bc('0x170'),_0x3fea92));};AGIVertices['prototype']['record']=function(_0xd0295a){logger[_0x34bc('0x2c')](util[_0x34bc('0x28')](_0x34bc('0x172'),_0xd0295a[_0x34bc('0xa9')]));var _0x5147a1=_0xd0295a['recordingFormat']||'wav';var _0x20b516=util[_0x34bc('0x28')](_0x34bc('0x173'),this[_0x34bc('0xd')][_0x34bc('0x3a')],rs[_0x34bc('0x111')](0x5));var _0x1783fc=util['format']('%s/recordings/%s.%s',FILES_PATH,_0x20b516,_0x5147a1);var _0x20b802=util[_0x34bc('0x28')](_0x34bc('0x129'),FILES_PATH,_0x20b516);this[_0x34bc('0x39')][_0x34bc('0x6d')](this,_0xd0295a,_0x20b516,_0x1783fc);this[_0x34bc('0xd')][_0x34bc('0xa0')](_0x34bc('0x174'),_0x20b516);logger[_0x34bc('0x2c')]('Recording\x20%s\x20%s\x20%s\x20%s',_0x20b802,_0x5147a1,_0xd0295a[_0x34bc('0x175')],_0xd0295a[_0x34bc('0x65')]);return this[_0x34bc('0xd')]['recordFile'](_0x20b802,_0x5147a1,_0xd0295a['escape_digits'],_0xd0295a['timeout'],undefined,!![]);};AGIVertices[_0x34bc('0x13')]['restapi']=function(_0x50b65d){logger[_0x34bc('0x2c')](util[_0x34bc('0x28')]('Enter\x20in\x20RESTAPI\x20(%s)\x20block',_0x50b65d[_0x34bc('0xa9')]));if(!this[_0x34bc('0x85')](_0x50b65d[_0x34bc('0x63')])){return this['channel']['noop']('no\x20url\x20configured');}var _0x2d56fd=this[_0x34bc('0x62')][_0x34bc('0x6d')](this,_0x50b65d);logger[_0x34bc('0x2c')](util[_0x34bc('0x28')](_0x34bc('0x176'),util[_0x34bc('0x177')](_0x2d56fd,{'showHidden':![],'depth':null})));if(!this[_0x34bc('0x85')](_0x50b65d['variable_id'])){return this[_0x34bc('0xd')][_0x34bc('0xaa')](_0x34bc('0x178'));}var _0x58a094=this[_0x34bc('0xf')][_0x34bc('0x6d')](this,_0x50b65d['variable_id']);if(!_0x58a094){return this[_0x34bc('0xd')]['error'](_0x50b65d,_0x34bc('0xd3'));}this[_0x34bc('0xd')][_0x34bc('0xa0')](util[_0x34bc('0x28')]('%s_STATUS_CODE',_0x58a094),_0x2d56fd[_0x34bc('0x74')]?_0x2d56fd['statusCode']:_0x34bc('0x179'));this[_0x34bc('0xd')][_0x34bc('0xa0')](util[_0x34bc('0x28')](_0x34bc('0x17a'),_0x58a094),_0x2d56fd['statusMessage']?_0x2d56fd[_0x34bc('0x17b')]:'OK');if(_0x2d56fd[_0x34bc('0x69')]){try{this[_0x34bc('0x9c')](_0x2d56fd[_0x34bc('0x69')],_0x58a094);}catch(_0x43999d){logger['error'](util['format'](_0x34bc('0x17c'),_0x58a094));}}return this[_0x34bc('0xd')][_0x34bc('0xaa')](util[_0x34bc('0x28')](_0x34bc('0xd7'),_0x58a094));};AGIVertices['prototype'][_0x34bc('0x17d')]=function(_0x5c099a){logger['info'](util[_0x34bc('0x28')]('Enter\x20in\x20SAYDIGITS\x20(%s)\x20block',_0x5c099a['label']));return this[_0x34bc('0xd')][_0x34bc('0x17e')](_0x5c099a[_0x34bc('0x17f')][_0x34bc('0xd0')](/\s+/g,''),_0x5c099a[_0x34bc('0x175')]);};AGIVertices[_0x34bc('0x13')][_0x34bc('0x180')]=function(_0x91b695){logger[_0x34bc('0x2c')](util[_0x34bc('0x28')](_0x34bc('0x181'),_0x91b695['label']));return this[_0x34bc('0xd')][_0x34bc('0x182')](_0x91b695[_0x34bc('0x183')][_0x34bc('0xd0')](/\s+/g,''),_0x91b695[_0x34bc('0x175')]);};AGIVertices[_0x34bc('0x13')]['sayphonetic']=function(_0x1c815a){logger[_0x34bc('0x2c')](util['format']('Enter\x20in\x20SAYPHONETIC\x20(%s)\x20block',_0x1c815a['label']));return this[_0x34bc('0xd')][_0x34bc('0x184')](_0x1c815a[_0x34bc('0x5a')],_0x1c815a[_0x34bc('0x175')]);};AGIVertices[_0x34bc('0x13')][_0x34bc('0x185')]=function(_0xb20562){logger[_0x34bc('0x2c')](util['format'](_0x34bc('0x186'),_0xb20562['label']));if(!this[_0x34bc('0x85')](_0xb20562[_0x34bc('0x187')])){return this[_0x34bc('0xd')][_0x34bc('0xaa')](_0x34bc('0x188'));}var _0x214532=this[_0x34bc('0x189')][_0x34bc('0x6d')](this,_0xb20562[_0x34bc('0x187')]);if(!_0x214532||!_0x214532[_0x34bc('0x18a')]){return this[_0x34bc('0xd')]['error'](_0xb20562,_0x34bc('0x18b'));}var _0x41c9a1={'from':util['format'](_0x34bc('0x18c'),_0x214532[_0x34bc('0x11')],_0x214532[_0x34bc('0x18d')]||_0x214532[_0x34bc('0x18a')][_0x34bc('0x18e')]),'to':_0xb20562['to']||'','cc':_0xb20562['cc']||'','bcc':_0xb20562['bcc']||'','subject':_0xb20562['subject'],'html':_0xb20562['text'],'text':_0xb20562[_0x34bc('0x5a')]};if(this[_0x34bc('0x85')](_0xb20562[_0x34bc('0x18f')])){}logger[_0x34bc('0x190')](_0x34bc('0x191'),JSON[_0x34bc('0x72')](_0x41c9a1));this[_0x34bc('0x35')][_0x34bc('0x6d')](this,_0xb20562,_0xb20562[_0x34bc('0x187')]);this[_0x34bc('0xd')][_0x34bc('0xaa')](util[_0x34bc('0x28')](_0x34bc('0x192'),_0x214532[_0x34bc('0x11')]));this[_0x34bc('0x22')]['sync'](this,_0x214532[_0x34bc('0x193')],_0x41c9a1);return this['channel'][_0x34bc('0xaa')]('Mail\x20message\x20added\x20to\x20outgoing\x20process');};AGIVertices['prototype']['sendFax']=function(_0x59ad27){logger[_0x34bc('0x2c')](util[_0x34bc('0x28')](_0x34bc('0x194'),_0x59ad27[_0x34bc('0xa9')]));return this[_0x34bc('0xd')]['noop'](_0x34bc('0x195'));};AGIVertices[_0x34bc('0x13')]['sendSMS']=function(_0x2aa6b5){logger['info'](util[_0x34bc('0x28')](_0x34bc('0x196'),_0x2aa6b5[_0x34bc('0xa9')]));if(!this[_0x34bc('0x85')](_0x2aa6b5[_0x34bc('0x197')])){return this['channel'][_0x34bc('0xaa')](_0x34bc('0x198'));}var _0x5cb65f=this[_0x34bc('0x32')]['sync'](this,_0x2aa6b5[_0x34bc('0x197')]);if(!_0x5cb65f){return this['channel'][_0x34bc('0x2b')](_0x2aa6b5,_0x34bc('0x199'));}var _0x4b3236={'body':_0x2aa6b5[_0x34bc('0x19a')],'phone':_0x2aa6b5['to']||'','SmsAccountId':_0x5cb65f['id']};logger[_0x34bc('0x190')](_0x34bc('0x19b'),JSON[_0x34bc('0x72')](_0x4b3236));this[_0x34bc('0x35')][_0x34bc('0x6d')](this,_0x2aa6b5,_0x2aa6b5['sms_account_id']);this[_0x34bc('0xd')]['noop'](util[_0x34bc('0x28')](_0x34bc('0x19c'),_0x5cb65f[_0x34bc('0x11')]));this[_0x34bc('0x34')][_0x34bc('0x6d')](this,_0x4b3236);return this[_0x34bc('0xd')][_0x34bc('0xaa')](_0x34bc('0x19d'));};AGIVertices['prototype'][_0x34bc('0x19e')]=function(_0x3c4817){logger['info'](util[_0x34bc('0x28')](_0x34bc('0x19f'),_0x3c4817[_0x34bc('0xa9')]));if(!this[_0x34bc('0x85')](_0x3c4817[_0x34bc('0xd1')])){return this[_0x34bc('0xd')][_0x34bc('0x2b')](_0x3c4817,'no\x20variable\x20selected');}var _0x13b3e0=this['getVariable'][_0x34bc('0x6d')](this,_0x3c4817['variable_id']);if(!_0x13b3e0){return this[_0x34bc('0xd')][_0x34bc('0x2b')](_0x3c4817,_0x34bc('0xd3'));}return this[_0x34bc('0xd')][_0x34bc('0xa0')](_0x13b3e0,_0x3c4817[_0x34bc('0x1a0')]);};AGIVertices[_0x34bc('0x13')][_0x34bc('0x1a1')]=function(_0x46dd31){logger[_0x34bc('0x2c')](util[_0x34bc('0x28')]('Enter\x20in\x20START\x20(%s)\x20block',_0x46dd31[_0x34bc('0xa9')]));this[_0x34bc('0xd')][_0x34bc('0xaa')](_0x34bc('0x1a2'));var _0x242a63=this[_0x34bc('0xd')][_0x34bc('0xf')]('XMCS-UNIQUEID');if(!_[_0x34bc('0x9d')](_0x242a63[_0x34bc('0xa1')])){this[_0x34bc('0xd')][_0x34bc('0x3a')]=_0x242a63[_0x34bc('0xa1')];}if(_0x46dd31[_0x34bc('0xb8')]==='yes'){this[_0x34bc('0xd')]['noop'](_0x34bc('0x1a3'));return this[_0x34bc('0xd')][_0x34bc('0xb8')]();}return this['channel'][_0x34bc('0xaa')](_0x34bc('0x1a4'));};AGIVertices[_0x34bc('0x13')][_0x34bc('0x1a5')]=function(_0x493c7b){logger[_0x34bc('0x2c')](util[_0x34bc('0x28')](_0x34bc('0x1a6'),_0x493c7b['label']));if(!this['isConfigured'](_0x493c7b[_0x34bc('0x1a7')])){return this[_0x34bc('0xd')][_0x34bc('0x2b')](_0x493c7b,_0x34bc('0x1a8'));}var _0x57e9cb=this[_0x34bc('0x14')][_0x34bc('0x6d')](this,_0x493c7b[_0x34bc('0x1a7')]);if(!this[_0x34bc('0x85')](_0x57e9cb)){return this[_0x34bc('0xd')][_0x34bc('0x2b')](_0x493c7b,util['format'](_0x34bc('0x1a9'),_0x493c7b['project_id']));}if(_0x57e9cb===this['channel'][_0x34bc('0x37')]){return this[_0x34bc('0xd')]['error'](_0x493c7b,_0x34bc('0x1aa'));}this[_0x34bc('0x35')]['sync'](this,_0x493c7b,_0x57e9cb);var _0x1890e8=this[_0x34bc('0xd')][_0x34bc('0x55')](_0x34bc('0x1ab'),util[_0x34bc('0x28')](_0x34bc('0x1ac'),config[_0x34bc('0x7')][_0x34bc('0x1ad')]||_0x34bc('0x1ae'),_0x57e9cb,this[_0x34bc('0xd')][_0x34bc('0x37')]));if(_0x1890e8[_0x34bc('0xa3')]===-0x1){return _0x1890e8;}return this[_0x34bc('0xd')][_0x34bc('0xaa')](util[_0x34bc('0x28')]('Executed\x20command\x20%s\x20%s','AGI',_0x57e9cb));};AGIVertices[_0x34bc('0x13')]['system']=function(_0xbd3ce0){logger[_0x34bc('0x2c')](util[_0x34bc('0x28')](_0x34bc('0x1af'),_0xbd3ce0[_0x34bc('0xa9')]));var _0x24cbea=this[_0x34bc('0x54')][_0x34bc('0x6d')](this,_0xbd3ce0[_0x34bc('0xb4')]);this[_0x34bc('0x35')]['sync'](this,_0xbd3ce0,_0xbd3ce0[_0x34bc('0xb4')]);if(this['isConfigured'](_0xbd3ce0['variable_id'])){var _0x3e0cb3=this['getVariable'][_0x34bc('0x6d')](this,_0xbd3ce0[_0x34bc('0xd1')]);if(_0x3e0cb3){this['channel'][_0x34bc('0xa0')](_0x3e0cb3,_0x24cbea);return this[_0x34bc('0xd')]['noop'](util[_0x34bc('0x28')](_0x34bc('0x1b0'),_0xbd3ce0[_0x34bc('0xb4')],_0x3e0cb3));}}return this[_0x34bc('0xd')][_0x34bc('0xaa')](util[_0x34bc('0x28')]('sh\x20command:\x20%s\x20result\x20no\x20stored',_0xbd3ce0[_0x34bc('0xb4')]));};AGIVertices[_0x34bc('0x13')][_0x34bc('0x1b1')]=function(_0x597630){logger[_0x34bc('0x2c')](util[_0x34bc('0x28')]('Enter\x20in\x20Google\x20Cloud\x20TTS\x20(%s)\x20block',_0x597630['label']));_0x597630[_0x34bc('0x5a')]=_0x597630['text'][_0x34bc('0xd0')](/(\r\n|\n|\r)/gm,'\x20');if(!this[_0x34bc('0x85')](_0x597630[_0x34bc('0x58')])){return this['channel'][_0x34bc('0xaa')](_0x34bc('0x1b2'));}if(!this[_0x34bc('0x85')](_0x597630[_0x34bc('0x5a')])){return this[_0x34bc('0xd')]['noop'](_0x34bc('0xab'));}this[_0x34bc('0xd')][_0x34bc('0xaa')](util[_0x34bc('0x28')]('Trying\x20Google\x20Cloud\x20TTS\x20%s',_0x597630['text']));var _0x279fe0=this[_0x34bc('0x57')]['sync'](this,_0x597630);if(_0x279fe0){this[_0x34bc('0xd')][_0x34bc('0xaa')](util[_0x34bc('0x28')](_0x34bc('0x1b3'),_0x279fe0));var _0x31159f=this[_0x34bc('0xd')][_0x34bc('0x11c')](_0x279fe0);try{fs[_0x34bc('0xf9')](_0x279fe0+_0x34bc('0x150'));}catch(_0x3fbd23){logger[_0x34bc('0x2b')](_0x3fbd23);}return _0x31159f;}return this['channel'][_0x34bc('0x2b')](_0x597630,_0x34bc('0x1b4'));};AGIVertices[_0x34bc('0x13')][_0x34bc('0x1b5')]=function(_0x24c69d){logger[_0x34bc('0x2c')](util[_0x34bc('0x28')](_0x34bc('0x1b6'),_0x24c69d[_0x34bc('0xa9')]));_0x24c69d[_0x34bc('0x5a')]=_0x24c69d['text']['replace'](/(\r\n|\n|\r)/gm,'\x20');if(!this['isConfigured'](_0x24c69d[_0x34bc('0x5a')])){return this[_0x34bc('0xd')][_0x34bc('0xaa')]('no\x20text\x20configured');}this[_0x34bc('0xd')][_0x34bc('0xaa')](util[_0x34bc('0x28')](_0x34bc('0x1b7'),_0x24c69d[_0x34bc('0x5a')]));var _0x310d3b=this['googleTTS']['sync'](this,_0x24c69d);if(_0x310d3b){this[_0x34bc('0xd')][_0x34bc('0xaa')](util[_0x34bc('0x28')]('Google\x20TTS\x20%s\x20file\x20created',_0x310d3b));var _0x2c161f=this['channel'][_0x34bc('0x11c')](_0x310d3b);try{fs['unlink'](_0x310d3b+'.wav');}catch(_0xe04ce4){logger[_0x34bc('0x2b')](_0xe04ce4);}return _0x2c161f;}return this[_0x34bc('0xd')][_0x34bc('0x2b')](_0x24c69d,'Google\x20TTS\x20is\x20unreachable');};AGIVertices['prototype'][_0x34bc('0x1b8')]=function(_0x5bef89){logger[_0x34bc('0x2c')](util[_0x34bc('0x28')](_0x34bc('0x1b9'),_0x5bef89[_0x34bc('0xa9')]));if(!this[_0x34bc('0x85')](_0x5bef89['findBy'])){return this[_0x34bc('0xd')][_0x34bc('0x2b')](_0x5bef89,_0x34bc('0x161'));}logger[_0x34bc('0x2c')](util[_0x34bc('0x28')](_0x34bc('0x158'),this[_0x34bc('0xd')][_0x34bc('0x38')],_0x5bef89[_0x34bc('0x152')]));var _0x40035c=this[_0x34bc('0x4f')]['sync'](this,_0x5bef89[_0x34bc('0x152')]);if(_0x40035c){logger[_0x34bc('0x2c')](util[_0x34bc('0x28')]('AGENT\x20%s\x20FOUND\x20BY',this[_0x34bc('0xd')][_0x34bc('0x38')],_0x5bef89['findBy']));this[_0x34bc('0xd')]['noop'](util['format'](_0x34bc('0x153'),this[_0x34bc('0xd')][_0x34bc('0x38')],_0x5bef89[_0x34bc('0x152')]));return{'code':0xc8,'result':_0x34bc('0x154')};}else{logger[_0x34bc('0x2c')](util['format'](_0x34bc('0x155'),this[_0x34bc('0xd')][_0x34bc('0x38')],_0x5bef89[_0x34bc('0x152')]));this[_0x34bc('0xd')][_0x34bc('0xaa')](util[_0x34bc('0x28')]('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this[_0x34bc('0xd')][_0x34bc('0x38')],_0x5bef89[_0x34bc('0x152')]));return{'code':0xc8,'result':_0x34bc('0x156')};}};AGIVertices['prototype'][_0x34bc('0x1ba')]=function(_0x38e722){logger[_0x34bc('0x2c')](util[_0x34bc('0x28')](_0x34bc('0x1bb'),_0x38e722[_0x34bc('0xa9')]));var _0x2b5447=this[_0x34bc('0xd')]['exec'](_0x34bc('0x1bc'),[_0x38e722['mailbox'],_0x38e722[_0x34bc('0x77')]]);if(_0x2b5447[_0x34bc('0xa3')]===-0x1){return _0x2b5447;}return this['channel']['noop'](util[_0x34bc('0x28')](_0x34bc('0x166'),_0x34bc('0x1bc'),_0x38e722[_0x34bc('0x1bd')]));};AGIVertices['prototype'][_0x34bc('0x1be')]=function(_0x4ff45b){logger[_0x34bc('0x2c')](util[_0x34bc('0x28')]('Enter\x20in\x20SWITCH\x20(%s)\x20block',_0x4ff45b[_0x34bc('0xa9')]));if(!this[_0x34bc('0x85')](_0x4ff45b[_0x34bc('0xd1')])){return this[_0x34bc('0xd')][_0x34bc('0x2b')](_0x4ff45b,_0x34bc('0x1bf'));}var _0x38b2a6=this['getVariable'][_0x34bc('0x6d')](this,_0x4ff45b['variable_id']);if(!_0x38b2a6){return this[_0x34bc('0xd')]['error'](_0x4ff45b,_0x34bc('0xd3'));}var _0x1dac5b=this[_0x34bc('0xd')]['getVariable'](_0x38b2a6);return{'code':0xc8,'result':_0x1dac5b['extra']?_0x1dac5b['extra']:'-'};};String[_0x34bc('0x13')][_0x34bc('0x1c0')]=function(_0x5b1a4b,_0x1b9d27){return this['split'](_0x5b1a4b)[_0x34bc('0x1c1')](_0x1b9d27);};module[_0x34bc('0x1c2')]=AGIVertices;