a86d26ff32dbad2b444d07d0f058d747b75b7c87
[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 _0xaba6=['bot','Trying\x20Dialogflow:\x20%s','DIALOGFLOW_%s','toUpperCase','speech','Dialogflow\x20Result\x20%s','Dialogflow\x20is\x20unreachable','dialogflowV2','Enter\x20in\x20DIALOGFLOW\x20V2\x20(%s)\x20block','no\x20project_id\x20configured','no\x20client_email\x20configured','no\x20private_key\x20configured','no\x20anguage\x20configured','Trying\x20DialogflowV2:\x20%s','providerResponse','out','DialogflowV2\x20Result\x20%s','sesteknda','Enter\x20in\x20SESTEKNDA\x20(%s)\x20block','ndauth_url','no\x20ndauth\x20url\x20configured','no\x20username\x20configured','password','no\x20password\x20configured','ndassistant_url','Trying\x20SestekNDA:\x20%s','SESTEK_NDA_%s','audiofile','Sestek\x20NDA\x20%s\x20file\x20created','streamFile','.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','no\x20trunk\x20found','trunk_name','Enter\x20in\x20FINALLY\x20(%s)\x20block','finally','getSound','file_id','response','maxdigit','mindigit','hiddendigitsnum','hiddendigitspos','first','substr','generate','Enter\x20in\x20GETSECRETDIGITS\x20(%s)\x20block','goal','Enter\x20in\x20GOAL\x20(%s)\x20block','goalname','GOAL\x20%s','awspolly','no\x20valid\x20credentials\x20configured','unlink','awslex','Enter\x20in\x20Amazon\x20Lex\x20(%s)\x20block','no\x20bot\x20name\x20configured','Trying\x20Amazon\x20Lex:\x20%s','AWS_LEX_%s','Amazon\x20Lex\x20ready\x20for\x20fulfillment','Amazon\x20Lex\x20Result\x20%s','Amazon\x20Lex\x20is\x20unreachable','googleasr','wav','%s/recordings/%s','beep','NOBEEP','intKey','google\x20%s\x20file\x20created','GOOGLE_ASR_%s','GoogleASR\x20Result\x20%s','Enter\x20in\x20TILDEASR\x20(%s)\x20block','no\x20appid\x20configured','appsecret','no\x20appsecret\x20configured','recordFile','TILDE_ASR_%s','TildeASR\x20Result\x20%s','Enter\x20in\x20GOTO\x20(%s)\x20block','continueAt','gotoif','Enter\x20in\x20GOTOIF\x20(%s)\x20block','no\x20condition\x20configured','condition','false','EVAL\x20CONDITION\x20%s\x20%s','gotoiftime','Enter\x20in\x20GOTOIFTIME\x20(%s)\x20block','interval_id','no\x20interval\x20configured','no\x20intervals\x20found','IFTIME(%s?true:false)','IFTIME\x20%s\x20%s','true','Enter\x20in\x20HANGUP\x20(%s)\x20block','hangup','ispeech\x20%s\x20file\x20created','IspeechASR\x20Result\x20%s','ispeechtts','Enter\x20in\x20ISPEECHTTS\x20(%s)\x20block','Trying\x20ispeech\x20TTS\x20%s','login','findBy','no\x20find\x20by\x20configured','FIND\x20AGENT\x20%s\x20BY\x20%s','AGENT\x20%s\x20FOUND\x20BY','success','AGENT\x20%s\x20NOT\x20FOUND\x20BY','failure','logout','math','Enter\x20in\x20MATH\x20(%s)\x20block','operation','math\x20%s','no\x20variable\x20found','%s[%s]','variable\x20%s[key]\x20set','Enter\x20in\x20MENU\x20(%s)\x20block','no\x20file\x20audio\x20selected','getData','digit','Enter\x20in\x20NOOP\x20(%s)\x20block','output','pause','Enter\x20in\x20PAUSE\x20(%s)\x20block','getPause','no\x20file\x20audio\x20found','PLAYBACK','queue','Enter\x20in\x20QUEUE\x20(%s)\x20block','queue_id','no\x20queue\x20selected','no\x20queue\x20found','toLowerCase','QUEUE','macro','Executed\x20command\x20%s\x20%s','record','Enter\x20in\x20RECORD\x20(%s)\x20block','%s_%s','%s/recordings/%s.%s','RECORDING_SAVENAME','Recording\x20%s\x20%s\x20%s\x20%s','escape_digits','restapi','Enter\x20in\x20RESTAPI\x20(%s)\x20block','Response:','inspect','no\x20variable\x20selected\x20for\x20the\x20response','%s_STATUS_CODE','200','%s_STATUS_MESSAGE','saydigits','Enter\x20in\x20SAYDIGITS\x20(%s)\x20block','sayDigits','digits','saynumber','Enter\x20in\x20SAYNUMBER\x20(%s)\x20block','sayNumber','sayphonetic','Enter\x20in\x20SAYPHONETIC\x20(%s)\x20block','sayPhonetic','Enter\x20in\x20SENDMAIL\x20(%s)\x20block','account_id','no\x20mail\x20account\x20configured','getMailAccount','Smtp','no\x20mail\x20account\x20found','\x22%s\x22\x20<%s>','bcc','template_id','sendMail\x20message','Trying\x20SendMail\x20with\x20account\x20%s','smtpOptions','sendSMS','Enter\x20in\x20SENDSMS\x20(%s)\x20block','no\x20sms\x20account\x20configured','no\x20sms\x20account\x20found','sms_text','sendSMS\x20message','sms_account_id','Trying\x20SendSMS\x20with\x20account\x20%s','createSmsMessage','Sms\x20message\x20added\x20to\x20outgoing\x20process','set','Enter\x20in\x20SET\x20(%s)\x20block','no\x20variable\x20selected','START\x20CALLY\x20SQUARE','XMCS-UNIQUEID','yes','Answer','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://%s/square,\x22%s\x22,\x22%s\x22','127.0.0.1','AGI','system','shellCommand','command','sh\x20command:\x20%s\x20result\x20on\x20variable:\x20%s','sh\x20command:\x20%s\x20result\x20no\x20stored','google_cloud_tts','Enter\x20in\x20Google\x20Cloud\x20TTS\x20(%s)\x20block','no\x20apiKey\x20configured','Enter\x20in\x20GOOGLETTS\x20(%s)\x20block','Trying\x20Google\x20TTS\x20%s','Google\x20TTS\x20is\x20unreachable','Enter\x20in\x20UNPAUSE\x20(%s)\x20block','voicemail','Enter\x20in\x20VOICEMAIL\x20(%s)\x20block','VOICEMAIL','mailbox','vswitch','Enter\x20in\x20SWITCH\x20(%s)\x20block','join','exports','util','lodash','mustache','request-promise','agi','../../config/environment','rawBody','getdigits','getsecretdigits','rpc','mailRpc','prototype','getVariable','then','name','catch','getVoiceQueue','getVoiceQueueById','getSquareProject','getSquareProjectById','getSquareOdbc','dsn','getUser','getUserById','getTrunk','getTrunkById','getSoundById','getSoundPath','save_name','getMailAccountById','sendMailMessage','getIntervals','getIntervalById','interval','Intervals','format','getQueryOdbc','open','info','query','Error\x20executing\x20query\x20%s','Query\x20executed\x20correctly\x20%s','close','error','Error\x20closing\x20connection\x20to\x20odbc\x20%s','getSmsAccount','getSmsAccountById','createSquareDetailsReport','label','agicommand','channel','arg_1','createSquareRecording','uniqueid','callerid','context','extension','priority','accountcode','dnid','file','createSquareMessage','createCmContact','isEmpty','isNil','random','lastName','phone','list_id','callback','scheduledAt','toString','getPauseById','agentPause','agent','agentUnpause','agentLogout','agentLogin','internal','LOCAL','exec','trim','replace','googleCloudTTS','apiKey','google_cloud_tts_text_type','text','languageCode','en-US','ssmlGender','MALE','googleTTS','google_tts_language','restAPI','url','method','number','POST','PUT','body','parse','headers','rawHeaders','An\x20incorrect\x20formatted\x20json\x20headers\x20has\x20been\x20passed\x20to\x20the\x20function','computedVariables','sync','render','stringify','An\x20incorrect\x20formatted\x20json\x20has\x20been\x20passed\x20to\x20the\x20function','statusCode','statusMessage','message','options','googleDialogflow','key','dialogflow_language','googleDialogflowV2','dialogflowV2_project_id','client_email','private_key','dialogflowV2_language','sestekNDA','ispeechTTS','ispeech_tts_language','speed','ispeechASR','ispeech_asr_language','isConfigured','awsPolly','aws_access_key_id','aws_secret_access_key','aws_polly_region','aws_text_type','awsLex','aws_lex_region','aws_bot_name','googleASR','google_asr_language','tildeASR','appid','uri','clear','includes','hasOwnProperty','isString','replaceObjectAllVariables','replaceAllVariables','recursiveNodeIndex','isPlainObject','isArray','length','saveRestApiResult','%s.%s','setVariable','split','replaceAll','extra','result','The\x20\x22%s\x22\x20variable\x20value\x20is:\x20%s','maxRetry','retry','mrcpsynth','noop','no\x20text\x20configured','MRCPSynth','mrcprecog','no\x20grammar\x20configured','MRCPRecog','getAndSetVariable','RECOG_CONFIDENCE()','MRCP_RECOG_CONFIDENCE','RECOG_INPUT()','MRCP_RECOG_TRANSCRIPT','RECOG_INSTANCE()','MRCP_RECOG_INSTANCE','Enter\x20in\x20AGI\x20(%s)\x20block','args','answer','Enter\x20in\x20ANSWER\x20(%s)\x20block','timeout','Wait\x20%s\x20seconds\x20before\x20answer','wait','Enter\x20in\x20CALLBACK\x20(%s)\x20block','no\x20list\x20selected','delay','minutes','callback_priority','CALLBACK\x20added\x20phone:\x20%s\x20on\x20list:\x20%s\x20at\x20%s','custom_app','Enter\x20in\x20CUSTOM\x20APP\x20(%s)\x20block','application','lumenvoxtts','Executed\x20command\x20MRCPSynth\x20%s','Enter\x20in\x20LUMENVOXASR\x20(%s)\x20block','LUMENVOX_ASR_CONFIDENCE','LUMENVOX_ASR_TRANSCRIPT','LUMENVOX_ASR_INSTANCE','Executed\x20command\x20MRCPRecog\x20%s','grammar','SESTEK_ASR_TRANSCRIPT','SESTEK_ASR_INSTANCE','database','Enter\x20in\x20DATABASE\x20(%s)\x20block','odbc_id','no\x20database\x20selected','no\x20odbc\x20database\x20found','no\x20query\x20configured','query:\x20%s','no\x20variable\x20selected\x20for\x20the\x20result','variable_id','forEach','keys','%s_ROWS_COUNT','variable\x20%s\x20set','dial','debug','sip_id','no\x20user\x20selected','no\x20user\x20found','DIAL','SIP/%s','opts','Executed\x20command\x20%s','dialogflow','Enter\x20in\x20DIALOGFLOW\x20(%s)\x20block','no\x20key\x20configured'];(function(_0x2212d1,_0x460b4f){var _0x35d279=function(_0x536567){while(--_0x536567){_0x2212d1['push'](_0x2212d1['shift']());}};_0x35d279(++_0x460b4f);}(_0xaba6,0xe2));var _0x6aba=function(_0x42cc1f,_0xe9eb20){_0x42cc1f=_0x42cc1f-0x0;var _0x175df5=_0xaba6[_0x42cc1f];return _0x175df5;};'use strict';var fs=require('fs');var util=require(_0x6aba('0x0'));var _=require(_0x6aba('0x1'));var sh=require('shelljs');var odbc=require('odbc')();var rs=require('randomstring');var moment=require('moment');var Mustache=require(_0x6aba('0x2'));var rp=require(_0x6aba('0x3'));var logger=require('../../config/logger')(_0x6aba('0x4'));var config=require(_0x6aba('0x5'));var scripts=require('./scripts');var FILES_PATH='/var/opt/motion2/server/files';var recursiveMapAttributes=['rawHeaders',_0x6aba('0x6')];var verticesWithRetry=['menu',_0x6aba('0x7'),_0x6aba('0x8')];var AGIVertices=function(_0x508dff,_0x460fe2,_0x27c8ba){this['channel']=_0x508dff;this[_0x6aba('0x9')]=_0x460fe2;this[_0x6aba('0xa')]=_0x27c8ba;};AGIVertices[_0x6aba('0xb')][_0x6aba('0xc')]=function(_0xdbc119,_0x4089c6){this[_0x6aba('0x9')]['getVariableById'](_0xdbc119)[_0x6aba('0xd')](function(_0x158935){_0x4089c6(null,_0x158935?_0x158935[_0x6aba('0xe')]:![]);})[_0x6aba('0xf')](function(_0x53e604){_0x4089c6(_0x53e604);});};AGIVertices[_0x6aba('0xb')][_0x6aba('0x10')]=function(_0x4cad26,_0x123575){this[_0x6aba('0x9')][_0x6aba('0x11')](_0x4cad26)['then'](function(_0x1cf9d9){_0x123575(null,_0x1cf9d9?_0x1cf9d9[_0x6aba('0xe')]:![]);})[_0x6aba('0xf')](function(_0x4ae616){_0x123575(_0x4ae616);});};AGIVertices[_0x6aba('0xb')][_0x6aba('0x12')]=function(_0xa3cb32,_0x21921d){this[_0x6aba('0x9')][_0x6aba('0x13')](_0xa3cb32)[_0x6aba('0xd')](function(_0x564827){_0x21921d(null,_0x564827?_0x564827[_0x6aba('0xe')]:![]);})[_0x6aba('0xf')](function(_0x1c2efe){_0x21921d(_0x1c2efe);});};AGIVertices['prototype'][_0x6aba('0x14')]=function(_0x4b0ed4,_0x4dd600){this[_0x6aba('0x9')]['getSquareOdbcById'](_0x4b0ed4)[_0x6aba('0xd')](function(_0x1881ae){_0x4dd600(null,_0x1881ae?_0x1881ae[_0x6aba('0x15')]:![]);})[_0x6aba('0xf')](function(_0x110be5){_0x4dd600(_0x110be5);});};AGIVertices[_0x6aba('0xb')][_0x6aba('0x16')]=function(_0x5953f2,_0x2e5f65){this[_0x6aba('0x9')][_0x6aba('0x17')](_0x5953f2)[_0x6aba('0xd')](function(_0x3f1412){_0x2e5f65(null,_0x3f1412?_0x3f1412[_0x6aba('0xe')]:![]);})[_0x6aba('0xf')](function(_0x67ba6e){_0x2e5f65(_0x67ba6e);});};AGIVertices[_0x6aba('0xb')][_0x6aba('0x18')]=function(_0x31ec71,_0x3e18e3){this[_0x6aba('0x9')][_0x6aba('0x19')](_0x31ec71)[_0x6aba('0xd')](function(_0xb947da){_0x3e18e3(null,_0xb947da?_0xb947da[_0x6aba('0xe')]:![]);})[_0x6aba('0xf')](function(_0x2cbbf7){_0x3e18e3(_0x2cbbf7);});};AGIVertices['prototype']['getSound']=function(_0x335e82,_0x5b0845){var _0x30ecf9=this;this[_0x6aba('0x9')][_0x6aba('0x1a')](_0x335e82)[_0x6aba('0xd')](function(_0x5eef59){_0x5b0845(null,_0x5eef59?_0x30ecf9[_0x6aba('0x1b')](_0x5eef59[_0x6aba('0x1c')]):![]);})[_0x6aba('0xf')](function(_0x660643){_0x5b0845(_0x660643);});};AGIVertices[_0x6aba('0xb')]['getMailAccount']=function(_0x30bb81,_0x5d89aa){this[_0x6aba('0x9')][_0x6aba('0x1d')](_0x30bb81)['then'](function(_0x4d601a){_0x5d89aa(null,_0x4d601a?_0x4d601a:![]);})[_0x6aba('0xf')](function(_0x21c144){_0x5d89aa(_0x21c144);});};AGIVertices[_0x6aba('0xb')][_0x6aba('0x1e')]=function(_0x121908,_0x14d25e,_0x39c449){this['mailRpc'][_0x6aba('0x1e')](_0x121908,_0x14d25e)[_0x6aba('0xd')](function(){_0x39c449(null);})[_0x6aba('0xf')](function(_0x586e01){_0x39c449(_0x586e01);});};AGIVertices[_0x6aba('0xb')][_0x6aba('0x1f')]=function(_0x31458f,_0x53336b){this[_0x6aba('0x9')][_0x6aba('0x20')](_0x31458f)['then'](function(_0x14a119){if(_0x14a119){if(_0x14a119['IntervalId']){_0x53336b(null,[_0x14a119[_0x6aba('0x21')]]);}else{_0x53336b(null,_['map'](_0x14a119[_0x6aba('0x22')],_0x6aba('0x21')));}}else{_0x53336b(null,![]);}})['catch'](function(_0x5bd745){_0x53336b(_0x5bd745);});};AGIVertices[_0x6aba('0xb')]['getSoundPath']=function(_0x42d3be){return util[_0x6aba('0x23')]('%s/sounds/converted/%s',FILES_PATH,_0x42d3be);};AGIVertices[_0x6aba('0xb')][_0x6aba('0x24')]=function(_0x23d34a,_0x2b00f2,_0x8ca947){odbc[_0x6aba('0x25')](_0x23d34a,function(_0x337694){if(_0x337694){logger['error']('Error\x20getting\x20ODBC\x20connection\x20%s',_0x337694);_0x8ca947(_0x337694);}else{logger[_0x6aba('0x26')]('ODBC\x20connection\x20successfully');odbc[_0x6aba('0x27')](_0x2b00f2,function(_0x4a34e4,_0x3b6276){if(_0x4a34e4){logger['info'](_0x6aba('0x28'),_0x2b00f2);_0x8ca947(_0x4a34e4);}else{logger[_0x6aba('0x26')](_0x6aba('0x29'),_0x2b00f2);odbc[_0x6aba('0x2a')](function(_0x1bd3f3){if(_0x1bd3f3){logger[_0x6aba('0x2b')](_0x6aba('0x2c'),_0x1bd3f3);}_0x8ca947(null,_0x3b6276);});}});}});};AGIVertices[_0x6aba('0xb')][_0x6aba('0x2d')]=function(_0x550d00,_0x1d041e){this[_0x6aba('0x9')][_0x6aba('0x2e')](_0x550d00)[_0x6aba('0xd')](function(_0x4c485b){_0x1d041e(null,_0x4c485b?_0x4c485b:![]);})[_0x6aba('0xf')](function(_0x4abf0e){_0x1d041e(_0x4abf0e);});};AGIVertices[_0x6aba('0xb')]['createSmsMessage']=function(_0x4af6e2,_0x4fc264){this[_0x6aba('0x9')]['createSmsMessage'](_0x4af6e2)[_0x6aba('0xd')](function(_0x3263a9){_0x4fc264(null,_0x3263a9);})[_0x6aba('0xf')](function(_0xfb89e8){_0x4fc264(_0xfb89e8);});};AGIVertices[_0x6aba('0xb')][_0x6aba('0x2f')]=function(_0x29aaa7,_0x5cfea2,_0x46e693){this[_0x6aba('0x9')][_0x6aba('0x2f')]({'uniqueid':this['channel']['uniqueid'],'node':_0x29aaa7[_0x6aba('0x30')],'application':_0x29aaa7[_0x6aba('0x31')],'data':_0x5cfea2||null,'project_name':this[_0x6aba('0x32')][_0x6aba('0x33')],'callerid':this[_0x6aba('0x32')]['callerid']})[_0x6aba('0xd')](function(_0x145279){if(_0x46e693){_0x46e693(null,_0x145279);}})[_0x6aba('0xf')](function(_0x3e233d){if(_0x46e693){_0x46e693(_0x3e233d);}});};AGIVertices[_0x6aba('0xb')][_0x6aba('0x34')]=function(_0x29d1b9,_0x56eca0,_0x3ad708,_0x9ddc9f){this[_0x6aba('0x9')][_0x6aba('0x34')]({'uniqueid':this[_0x6aba('0x32')][_0x6aba('0x35')],'callerid':this['channel'][_0x6aba('0x36')],'calleridname':this['channel']['calleridname'],'context':this[_0x6aba('0x32')][_0x6aba('0x37')],'extension':this[_0x6aba('0x32')][_0x6aba('0x38')],'priority':this[_0x6aba('0x32')][_0x6aba('0x39')],'accountcode':this[_0x6aba('0x32')][_0x6aba('0x3a')],'dnid':this[_0x6aba('0x32')][_0x6aba('0x3b')],'projectName':this['channel'][_0x6aba('0x33')],'saveName':_0x56eca0,'filename':_0x29d1b9[_0x6aba('0x3c')]||_0x56eca0,'savePath':_0x3ad708})[_0x6aba('0xd')](function(_0xee64df){_0x9ddc9f(null,_0xee64df);})[_0x6aba('0xf')](function(_0x123a4c){_0x9ddc9f(_0x123a4c);});};AGIVertices[_0x6aba('0xb')][_0x6aba('0x3d')]=function(_0x303c41,_0x2b0963,_0x24f87c,_0xd4afa2,_0x3f7003){this['rpc'][_0x6aba('0x3d')]({'uniqueid':this[_0x6aba('0x32')][_0x6aba('0x35')],'body':_0x303c41,'direction':_0x2b0963,'providerName':_0x24f87c,'providerResponse':_0xd4afa2})['then'](function(_0x12383d){if(_0x3f7003){_0x3f7003(null,_0x12383d);}})['catch'](function(_0x56737e){if(_0x3f7003){_0x3f7003(_0x56737e);}});};AGIVertices[_0x6aba('0xb')][_0x6aba('0x3e')]=function(_0x1b61bb,_0x558089){this[_0x6aba('0x9')][_0x6aba('0x3e')]({'firstName':_[_0x6aba('0x3f')](_0x1b61bb[_0x6aba('0xe')])||_[_0x6aba('0x40')](_0x1b61bb[_0x6aba('0xe')])?'callback_'+Math[_0x6aba('0x41')]():_0x1b61bb[_0x6aba('0xe')],'lastName':_['isEmpty'](_0x1b61bb[_0x6aba('0x42')])||_[_0x6aba('0x40')](_0x1b61bb[_0x6aba('0x42')])?null:_0x1b61bb[_0x6aba('0x42')],'phone':_0x1b61bb[_0x6aba('0x43')],'ListId':_0x1b61bb[_0x6aba('0x44')],'scheduledat':_0x1b61bb['scheduledAt'],'callbackUniqueid':this['channel'][_0x6aba('0x35')],'tags':_0x6aba('0x45'),'description':'Callback\x20scheduled\x20at\x20'+_0x1b61bb[_0x6aba('0x46')][_0x6aba('0x47')](),'priority':_0x1b61bb['callback_priority']})[_0x6aba('0xd')](function(_0x592cc5){_0x558089(null,_0x592cc5);})[_0x6aba('0xf')](function(_0x342b05){_0x558089(_0x342b05);});};AGIVertices[_0x6aba('0xb')]['getPause']=function(_0x20d58e,_0x127f44){this[_0x6aba('0x9')][_0x6aba('0x48')](_0x20d58e)[_0x6aba('0xd')](function(_0x560d5a){_0x127f44(null,_0x560d5a?_0x560d5a['name']:![]);})[_0x6aba('0xf')](function(_0x36449f){_0x127f44(_0x36449f);});};AGIVertices['prototype'][_0x6aba('0x49')]=function(_0x145903,_0x654b72,_0x19bcfb){var _0x3d0c16={'role':_0x6aba('0x4a')};_0x3d0c16[_0x145903]=this['channel'][_0x6aba('0x36')];this[_0x6aba('0x9')][_0x6aba('0x49')](_0x3d0c16,_0x654b72,this[_0x6aba('0x32')][_0x6aba('0x35')])[_0x6aba('0xd')](function(_0x4118d1){_0x19bcfb(null,_[_0x6aba('0x40')](_0x4118d1)?![]:!![]);})[_0x6aba('0xf')](function(_0x112514){logger[_0x6aba('0x2b')](_0x112514);_0x19bcfb(null,![]);});};AGIVertices[_0x6aba('0xb')][_0x6aba('0x4b')]=function(_0x2684bb,_0x128027){var _0x4736c9={'role':_0x6aba('0x4a')};_0x4736c9[_0x2684bb]=this[_0x6aba('0x32')]['callerid'];this['rpc'][_0x6aba('0x4b')](_0x4736c9)['then'](function(_0x2ddb61){_0x128027(null,_[_0x6aba('0x40')](_0x2ddb61)?![]:!![]);})[_0x6aba('0xf')](function(_0x1432d3){logger[_0x6aba('0x2b')](_0x1432d3);_0x128027(null,![]);});};AGIVertices[_0x6aba('0xb')][_0x6aba('0x4c')]=function(_0x39ee9d,_0x66d89b){var _0x523b4a={'role':_0x6aba('0x4a')};_0x523b4a[_0x39ee9d]=this[_0x6aba('0x32')][_0x6aba('0x36')];this['rpc'][_0x6aba('0x4c')](_0x523b4a)[_0x6aba('0xd')](function(_0x5e9d71){_0x66d89b(null,_[_0x6aba('0x40')](_0x5e9d71)?![]:!![]);})[_0x6aba('0xf')](function(_0xa5c265){logger[_0x6aba('0x2b')](_0xa5c265);_0x66d89b(null,![]);});};AGIVertices[_0x6aba('0xb')][_0x6aba('0x4d')]=function(_0x5c095e,_0x15d5cc){var _0x38d502={'role':'agent'};_0x38d502[_0x5c095e]=this[_0x6aba('0x32')][_0x6aba('0x36')];var _0x4f2ec4=_0x5c095e!=_0x6aba('0x4e')?util[_0x6aba('0x23')]('%s/%s@from-sip/n',_0x6aba('0x4f'),this[_0x6aba('0x32')]['callerid']):undefined;this[_0x6aba('0x9')][_0x6aba('0x4d')](_0x38d502,_0x4f2ec4)[_0x6aba('0xd')](function(_0x12a7d9){_0x15d5cc(null,_[_0x6aba('0x40')](_0x12a7d9)?![]:!![]);})[_0x6aba('0xf')](function(_0x24d49f){logger[_0x6aba('0x2b')](_0x24d49f);_0x15d5cc(null,![]);});};AGIVertices['prototype']['shellCommand']=function(_0xed849a,_0x357a0d){sh[_0x6aba('0x50')](_[_0x6aba('0x51')](_0xed849a),function(_0x117886,_0x1355e6){var _0x14abe9=_0x1355e6[_0x6aba('0x52')](/(\r\n|\n|\r)/gm,'');_0x357a0d(null,_0x14abe9);});};AGIVertices[_0x6aba('0xb')][_0x6aba('0x53')]=function(_0x38e8bb,_0x5351f5){scripts[_0x6aba('0x53')](_0x38e8bb[_0x6aba('0x54')],_0x38e8bb[_0x6aba('0x55')]||_0x6aba('0x56'),_0x38e8bb[_0x6aba('0x56')],_0x38e8bb[_0x6aba('0x57')]||_0x6aba('0x58'),_0x38e8bb[_0x6aba('0x59')]||_0x6aba('0x5a'),_0x38e8bb['audioEncoding']||'MP3')[_0x6aba('0xd')](function(_0x533d3e){_0x5351f5(null,_0x533d3e);})['catch'](function(_0x11f714){_0x5351f5(_0x11f714);});};AGIVertices[_0x6aba('0xb')][_0x6aba('0x5b')]=function(_0x3d769f,_0x27fbde){scripts[_0x6aba('0x5b')](_0x3d769f[_0x6aba('0x56')],_0x3d769f[_0x6aba('0x5c')]||'en',0x1)[_0x6aba('0xd')](function(_0x42a7ea){_0x27fbde(null,_0x42a7ea);})[_0x6aba('0xf')](function(_0x24364f){_0x27fbde(_0x24364f);});};AGIVertices['prototype'][_0x6aba('0x5d')]=function(_0x278587,_0x4cb071){var _0x10c913={'uri':_0x278587[_0x6aba('0x5e')],'method':_0x278587[_0x6aba('0x5f')],'json':!![],'resolveWithFullResponse':!![],'strictSSL':![],'timeout':typeof parseInt(_0x278587['timeout'])===_0x6aba('0x60')&&parseInt(_0x278587['timeout'])>=0x1?parseInt(_0x278587['timeout'])*0x3e8:0x5*0x3e8};if(_['includes']([_0x6aba('0x61'),_0x6aba('0x62')],_0x10c913[_0x6aba('0x5f')]['toUpperCase']())){try{_0x10c913[_0x6aba('0x63')]=_0x278587[_0x6aba('0x6')]?JSON[_0x6aba('0x64')](_0x278587[_0x6aba('0x6')]):{};}catch(_0xcd9507){logger['error']('An\x20incorrect\x20formatted\x20json\x20body\x20has\x20been\x20passed\x20to\x20the\x20function',_0xcd9507);}}try{_0x10c913[_0x6aba('0x65')]=_0x278587['rawHeaders']?JSON[_0x6aba('0x64')](_0x278587[_0x6aba('0x66')]):{};}catch(_0xe74693){logger[_0x6aba('0x2b')](_0x6aba('0x67'),_0xe74693);}if(_0x278587[_0x6aba('0x68')]){try{var _0xcd997e=require(_0x278587[_0x6aba('0x68')])[_0x6aba('0x69')](this,_0x10c913);_0x10c913['uri']=Mustache[_0x6aba('0x6a')](_0x278587[_0x6aba('0x5e')],_0xcd997e,{},['$$','$$']);if(_0x10c913[_0x6aba('0x65')]){_0x10c913['headers']=JSON[_0x6aba('0x64')](Mustache['render'](JSON[_0x6aba('0x6b')](_0x10c913[_0x6aba('0x65')]),_0xcd997e,{},['$$','$$']));}if(_0x10c913['body']){_0x10c913[_0x6aba('0x63')]=JSON[_0x6aba('0x64')](Mustache[_0x6aba('0x6a')](JSON[_0x6aba('0x6b')](_0x10c913[_0x6aba('0x63')]),_0xcd997e,{},['$$','$$']));}}catch(_0x513c16){logger[_0x6aba('0x2b')](_0x6aba('0x6c'),_0x513c16);}}rp(_0x10c913)[_0x6aba('0xd')](function(_0x6d1543){var _0x4dd2bb={'statusCode':_0x6d1543[_0x6aba('0x6d')]||0xc8,'statusMessage':_0x6d1543[_0x6aba('0x6e')]||'OK','headers':_0x6d1543['headers']||{},'body':_0x6d1543[_0x6aba('0x63')]||{}};_0x4cb071(null,_0x4dd2bb);})[_0x6aba('0xf')](function(_0x41e021){var _0x26342a={'statusCode':_0x41e021[_0x6aba('0x6d')]||0x1f4,'statusMessage':_0x41e021[_0x6aba('0x6f')]||'500\x20-\x20Internal\x20Server\x20Error','headers':_0x41e021[_0x6aba('0x70')][_0x6aba('0x65')]||{},'body':_0x41e021[_0x6aba('0x70')][_0x6aba('0x63')]||{}};_0x4cb071(null,_0x26342a);});};AGIVertices[_0x6aba('0xb')]['googleDialogflow']=function(_0x2052f4,_0x40fa05){scripts[_0x6aba('0x71')](this[_0x6aba('0x32')][_0x6aba('0x35')],_0x2052f4[_0x6aba('0x72')],_0x2052f4[_0x6aba('0x56')],_0x2052f4[_0x6aba('0x73')]||'en')[_0x6aba('0xd')](function(_0x59e095){_0x40fa05(null,_0x59e095);})[_0x6aba('0xf')](function(_0x66df64){_0x40fa05(_0x66df64);});};AGIVertices[_0x6aba('0xb')][_0x6aba('0x74')]=function(_0x261457,_0x4654b3){scripts[_0x6aba('0x74')](this['channel']['uniqueid'],_0x261457[_0x6aba('0x75')],_0x261457[_0x6aba('0x76')],_0x261457[_0x6aba('0x77')],_0x261457[_0x6aba('0x56')],_0x261457[_0x6aba('0x78')]||'en')[_0x6aba('0xd')](function(_0x336d70){_0x4654b3(null,_0x336d70);})[_0x6aba('0xf')](function(_0x38a067){_0x4654b3(_0x38a067);});};AGIVertices[_0x6aba('0xb')][_0x6aba('0x79')]=function(_0x23636e,_0x24b50e){scripts[_0x6aba('0x79')](this[_0x6aba('0x32')],_0x23636e)[_0x6aba('0xd')](function(_0x377c28){_0x24b50e(null,_0x377c28);})[_0x6aba('0xf')](function(_0x4c9dcb){_0x24b50e(_0x4c9dcb);});};AGIVertices[_0x6aba('0xb')][_0x6aba('0x7a')]=function(_0x18204,_0xa9a737){scripts['ispeechTTS'](_0x18204[_0x6aba('0x72')],_0x18204['text'],_0x18204[_0x6aba('0x7b')]||_0x6aba('0x58'),_0x18204[_0x6aba('0x7c')])['then'](function(_0x19150e){_0xa9a737(null,_0x19150e);})[_0x6aba('0xf')](function(_0x165555){_0xa9a737(_0x165555);});};AGIVertices['prototype'][_0x6aba('0x7d')]=function(_0x282ad3,_0x4bdaf5,_0x8395c1){scripts[_0x6aba('0x7d')](_0x4bdaf5,_0x282ad3[_0x6aba('0x72')],_0x282ad3[_0x6aba('0x7e')]||'en-US',this[_0x6aba('0x7f')](_0x282ad3['model'])?_0x282ad3['model']:undefined)[_0x6aba('0xd')](function(_0xbcbe4d){_0x8395c1(null,_0xbcbe4d);})['catch'](function(_0x30affe){_0x8395c1(_0x30affe);});};AGIVertices['prototype']['awsPolly']=function(_0x27bf0d,_0x5a6494){scripts[_0x6aba('0x80')](_0x27bf0d[_0x6aba('0x81')],_0x27bf0d[_0x6aba('0x82')],_0x27bf0d[_0x6aba('0x83')],_0x27bf0d['aws_polly_voice']||'Amy',_0x27bf0d[_0x6aba('0x56')],_0x27bf0d[_0x6aba('0x84')]||_0x6aba('0x56'))['then'](function(_0x16130b){_0x5a6494(null,_0x16130b);})[_0x6aba('0xf')](function(_0x8c2123){_0x5a6494(_0x8c2123);});};AGIVertices[_0x6aba('0xb')]['awsLex']=function(_0x57dfa3,_0x2cbd40){scripts[_0x6aba('0x85')](this[_0x6aba('0x32')][_0x6aba('0x35')],_0x57dfa3[_0x6aba('0x81')],_0x57dfa3[_0x6aba('0x82')],_0x57dfa3[_0x6aba('0x86')],_0x57dfa3['text'],_0x57dfa3[_0x6aba('0x87')])[_0x6aba('0xd')](function(_0x4e8dc0){_0x2cbd40(null,_0x4e8dc0);})['catch'](function(_0x4d680c){_0x2cbd40(_0x4d680c);});};AGIVertices[_0x6aba('0xb')][_0x6aba('0x88')]=function(_0xc73ce5,_0x37d04a,_0x5754ed){scripts['googleASR'](_0x37d04a,_0xc73ce5[_0x6aba('0x72')],_0xc73ce5[_0x6aba('0x89')]||_0x6aba('0x58'))[_0x6aba('0xd')](function(_0x324216){_0x5754ed(null,_0x324216);})[_0x6aba('0xf')](function(_0x14e6b9){_0x5754ed(_0x14e6b9);});};AGIVertices[_0x6aba('0xb')][_0x6aba('0x8a')]=function(_0x775670,_0x28eac0,_0x2acfd3){scripts['tildeASR'](_0x28eac0,_0x775670[_0x6aba('0x8b')],_0x775670['appsecret'],_0x775670[_0x6aba('0x8c')])[_0x6aba('0xd')](function(_0x3379f0){_0x2acfd3(null,_0x3379f0);})['catch'](function(_0x2cf899){_0x2acfd3(_0x2cf899);});};AGIVertices[_0x6aba('0xb')][_0x6aba('0x8d')]=function(_0x51806c){var _0x2f9106=_[_0x6aba('0x8e')](verticesWithRetry,_0x51806c[_0x6aba('0x31')])?_0x51806c:_['clone'](_0x51806c);for(var _0x292693 in _0x2f9106){if(_0x2f9106[_0x6aba('0x8f')](_0x292693)){if(_0x2f9106[_0x292693]&&_[_0x6aba('0x90')](_0x2f9106[_0x292693])){if(_[_0x6aba('0x8e')](recursiveMapAttributes,_0x292693)){_0x2f9106[_0x292693]=this[_0x6aba('0x91')](_0x2f9106[_0x292693]);}else{_0x2f9106[_0x292693]=this[_0x6aba('0x92')](_0x2f9106[_0x292693]);}}}}return _0x2f9106;};AGIVertices[_0x6aba('0xb')][_0x6aba('0x93')]=function(_0x5e49d9){for(var _0x3bf775 in _0x5e49d9){if(_0x5e49d9['hasOwnProperty'](_0x3bf775)){if(_[_0x6aba('0x94')](_0x5e49d9[_0x3bf775])){this[_0x6aba('0x93')](_0x5e49d9[_0x3bf775]);}else if(_[_0x6aba('0x95')](_0x5e49d9[_0x3bf775])){for(var _0x336ec5=0x0;_0x336ec5<_0x5e49d9[_0x3bf775][_0x6aba('0x96')];_0x336ec5++){this[_0x6aba('0x93')](_0x5e49d9[_0x3bf775][_0x336ec5]);}}else if(_[_0x6aba('0x90')](_0x5e49d9[_0x3bf775])){_0x5e49d9[_0x3bf775]=this[_0x6aba('0x92')](_0x5e49d9[_0x3bf775]);}}}};AGIVertices[_0x6aba('0xb')][_0x6aba('0x97')]=function(_0xe8be61,_0x50bee3){for(var _0xd00572 in _0xe8be61){if(_0xe8be61[_0x6aba('0x8f')](_0xd00572)){if(_[_0x6aba('0x94')](_0xe8be61[_0xd00572])){if(!_[_0x6aba('0x3f')](_0xe8be61[_0xd00572])){this[_0x6aba('0x97')](_0xe8be61[_0xd00572],util[_0x6aba('0x23')](_0x6aba('0x98'),_0x50bee3,_0xd00572));}}else if(_[_0x6aba('0x95')](_0xe8be61[_0xd00572])){for(var _0x37849f=0x0;_0x37849f<_0xe8be61[_0xd00572][_0x6aba('0x96')];_0x37849f++){this[_0x6aba('0x97')](_0xe8be61[_0xd00572][_0x37849f],util[_0x6aba('0x23')](_0x6aba('0x98'),_0x50bee3,_0xd00572+'['+_0x37849f+']'));}}else{if(!_[_0x6aba('0x40')](_0xe8be61[_0xd00572])){this[_0x6aba('0x32')][_0x6aba('0x99')](util[_0x6aba('0x23')](_0x6aba('0x98'),_0x50bee3,_0xd00572),_0xe8be61[_0xd00572]);}}}}};AGIVertices['prototype'][_0x6aba('0x91')]=function(_0x3c5a45){try{var _0x410358=JSON['parse'](_0x3c5a45);this[_0x6aba('0x93')](_0x410358);return JSON['stringify'](_0x410358);}catch(_0x43fa78){return this['replaceAllVariables'](_0x3c5a45);}};AGIVertices[_0x6aba('0xb')]['replaceAllVariables']=function(_0x5f06a2){var _0x560529=_0x5f06a2[_0x6aba('0x9a')]('{');for(var _0x5b36c7=0x1;_0x5b36c7<_0x560529['length'];_0x5b36c7+=0x1){var _0x2731c0=_0x560529[_0x5b36c7]['split']('}');if(_0x2731c0[_0x6aba('0x96')]>0x1){_0x5f06a2=_0x5f06a2[_0x6aba('0x9b')]('{'+_0x2731c0[0x0]+'}',this['channel'][_0x6aba('0xc')](_0x2731c0[0x0])[_0x6aba('0x9c')]||_0x2731c0[0x0]);}}if(_0x560529['length']===0x1){return _0x5f06a2[_0x6aba('0x47')]();}return this['replaceAllVariables'](_0x5f06a2);};AGIVertices[_0x6aba('0xb')]['getAndSetVariable']=function(_0x5cd5cf,_0x4470ff){var _0x3dcaa4=this['channel'][_0x6aba('0xc')](_0x5cd5cf);if(_0x3dcaa4[_0x6aba('0x9d')]===-0x1){return _0x3dcaa4;}logger[_0x6aba('0x26')](util['format'](_0x6aba('0x9e'),_0x4470ff,_0x3dcaa4[_0x6aba('0x9c')]));return this[_0x6aba('0x32')][_0x6aba('0x99')](_0x4470ff,_0x3dcaa4[_0x6aba('0x9c')]);};AGIVertices[_0x6aba('0xb')][_0x6aba('0x7f')]=function(_0x43181d){return _0x43181d&&_0x43181d!=='0'&&_0x43181d!=='-1'&&_0x43181d!=='';};AGIVertices[_0x6aba('0xb')][_0x6aba('0x9f')]=function(_0x4568f9){this[_0x6aba('0x2f')]['sync'](this,_0x4568f9,'-');_0x4568f9[_0x6aba('0xa0')]=_0x4568f9[_0x6aba('0x9f')];return{'code':0xc8,'result':'-'};};AGIVertices['prototype'][_0x6aba('0xa1')]=function(_0x2274f0){logger[_0x6aba('0x26')](util['format']('Enter\x20in\x20MRCPSynth\x20(%s)\x20block',_0x2274f0[_0x6aba('0x30')]));if(!this[_0x6aba('0x7f')](_0x2274f0[_0x6aba('0x56')])){return this[_0x6aba('0x32')][_0x6aba('0xa2')](_0x6aba('0xa3'));}var _0x369e4c='\x22'+_0x2274f0[_0x6aba('0x56')]+'\x22';if(this[_0x6aba('0x7f')](_0x2274f0[_0x6aba('0x70')])){_0x369e4c+=','+_0x2274f0[_0x6aba('0x70')];}var _0x1869aa=this[_0x6aba('0x32')]['exec'](_0x6aba('0xa4'),_0x369e4c);if(_0x1869aa[_0x6aba('0x9d')]===-0x1){return _0x1869aa;}return this[_0x6aba('0x32')]['noop'](util['format']('Executed\x20command\x20MRCPSynth\x20%s',_0x369e4c));};AGIVertices[_0x6aba('0xb')][_0x6aba('0xa5')]=function(_0x3e2521){logger[_0x6aba('0x26')](util[_0x6aba('0x23')]('Enter\x20in\x20MRCPRecog\x20(%s)\x20block',_0x3e2521[_0x6aba('0x30')]));if(!this[_0x6aba('0x7f')](_0x3e2521['grammar'])){return this[_0x6aba('0x32')]['noop'](_0x6aba('0xa6'));}var _0x32fd08=_0x3e2521['grammar'];if(this['isConfigured'](_0x3e2521[_0x6aba('0x70')])){_0x32fd08+=','+_0x3e2521[_0x6aba('0x70')];}var _0x322195=this[_0x6aba('0x32')]['exec'](_0x6aba('0xa7'),_0x32fd08);if(_0x322195[_0x6aba('0x9d')]===-0x1){return _0x322195;}var _0x4954e8=this[_0x6aba('0xa8')](_0x6aba('0xa9'),_0x6aba('0xaa'));if(_0x4954e8[_0x6aba('0x9d')]===-0x1){return _0x4954e8;}var _0x386404=this[_0x6aba('0xa8')](_0x6aba('0xab'),_0x6aba('0xac'));if(_0x386404['result']===-0x1){return _0x386404;}var _0x47035b=this[_0x6aba('0xa8')](_0x6aba('0xad'),_0x6aba('0xae'));if(_0x47035b['result']===-0x1){return _0x47035b;}return this[_0x6aba('0x32')][_0x6aba('0xa2')](util['format']('Executed\x20command\x20MRCPRecog\x20%s',_0x32fd08));};AGIVertices[_0x6aba('0xb')][_0x6aba('0x4')]=function(_0x259ef9){logger[_0x6aba('0x26')](util[_0x6aba('0x23')](_0x6aba('0xaf'),_0x259ef9[_0x6aba('0x30')]));return this[_0x6aba('0x32')]['agi']([_0x259ef9['command'],_0x259ef9[_0x6aba('0xb0')]]);};AGIVertices[_0x6aba('0xb')][_0x6aba('0xb1')]=function(_0x5ad8ba){logger[_0x6aba('0x26')](util[_0x6aba('0x23')](_0x6aba('0xb2'),_0x5ad8ba[_0x6aba('0x30')]));if(this['isConfigured'](_0x5ad8ba[_0x6aba('0xb3')])){logger[_0x6aba('0x26')](util[_0x6aba('0x23')](_0x6aba('0xb4'),_0x5ad8ba[_0x6aba('0xb3')]));var _0x3f0971=this['channel'][_0x6aba('0xb5')](_0x5ad8ba['timeout']);if(_0x3f0971[_0x6aba('0x9d')]===-0x1){return _0x3f0971;}}return this['channel'][_0x6aba('0xb1')]();};AGIVertices[_0x6aba('0xb')][_0x6aba('0x45')]=function(_0x6bcdd4){logger[_0x6aba('0x26')](util[_0x6aba('0x23')](_0x6aba('0xb6'),_0x6bcdd4[_0x6aba('0x30')]));if(!this[_0x6aba('0x7f')](_0x6bcdd4[_0x6aba('0x44')])){return this[_0x6aba('0x32')]['error'](_0x6bcdd4,_0x6aba('0xb7'));}_0x6bcdd4[_0x6aba('0x46')]=moment();if(this[_0x6aba('0x7f')](_0x6bcdd4[_0x6aba('0xb8')])){_0x6bcdd4[_0x6aba('0x46')]=moment()['add'](_0x6bcdd4['delay'],_0x6aba('0xb9'));}if(!this[_0x6aba('0x7f')](_0x6bcdd4[_0x6aba('0xba')])){_0x6bcdd4[_0x6aba('0xba')]=0x2;}this[_0x6aba('0x3e')][_0x6aba('0x69')](this,_0x6bcdd4);return this[_0x6aba('0x32')]['noop'](util[_0x6aba('0x23')](_0x6aba('0xbb'),_0x6bcdd4[_0x6aba('0x43')],_0x6bcdd4[_0x6aba('0x44')],_0x6bcdd4[_0x6aba('0x46')]));};AGIVertices[_0x6aba('0xb')][_0x6aba('0xbc')]=function(_0x3c873e){logger[_0x6aba('0x26')](util[_0x6aba('0x23')](_0x6aba('0xbd'),_0x3c873e[_0x6aba('0x30')]));var _0x22c5c8=this[_0x6aba('0x32')][_0x6aba('0x50')](_0x3c873e[_0x6aba('0xbe')],_0x3c873e[_0x6aba('0x70')]);if(_0x22c5c8[_0x6aba('0x9d')]===-0x1){return _0x22c5c8;}return this[_0x6aba('0x32')][_0x6aba('0xa2')](util[_0x6aba('0x23')]('Executed\x20command\x20%s\x20%s',_0x3c873e['application'],_0x3c873e[_0x6aba('0x70')]));};AGIVertices[_0x6aba('0xb')][_0x6aba('0xbf')]=function(_0x1051b9){logger['info'](util['format']('Enter\x20in\x20LUMENVOXTTS\x20(%s)\x20block',_0x1051b9[_0x6aba('0x30')]));if(!this[_0x6aba('0x7f')](_0x1051b9[_0x6aba('0x56')])){return this[_0x6aba('0x32')][_0x6aba('0xa2')](_0x6aba('0xa3'));}var _0x40735d='\x22'+_0x1051b9['text']+'\x22';if(this['isConfigured'](_0x1051b9[_0x6aba('0x70')])){_0x40735d+=','+_0x1051b9[_0x6aba('0x70')];}var _0x1997c8=this[_0x6aba('0x32')][_0x6aba('0x50')]('MRCPSynth',_0x40735d);if(_0x1997c8[_0x6aba('0x9d')]===-0x1){return _0x1997c8;}return this[_0x6aba('0x32')][_0x6aba('0xa2')](util[_0x6aba('0x23')](_0x6aba('0xc0'),_0x40735d));};AGIVertices[_0x6aba('0xb')]['sestektts']=function(_0x506c1f){logger[_0x6aba('0x26')](util[_0x6aba('0x23')]('Enter\x20in\x20SESTEKTTS\x20(%s)\x20block',_0x506c1f[_0x6aba('0x30')]));if(!this['isConfigured'](_0x506c1f[_0x6aba('0x56')])){return this[_0x6aba('0x32')][_0x6aba('0xa2')](_0x6aba('0xa3'));}var _0x53594f='\x22'+_0x506c1f['text']+'\x22';if(this[_0x6aba('0x7f')](_0x506c1f[_0x6aba('0x70')])){_0x53594f+=','+_0x506c1f[_0x6aba('0x70')];}var _0x5b90e6=this[_0x6aba('0x32')][_0x6aba('0x50')](_0x6aba('0xa4'),_0x53594f);if(_0x5b90e6[_0x6aba('0x9d')]===-0x1){return _0x5b90e6;}return this[_0x6aba('0x32')][_0x6aba('0xa2')](util['format']('Executed\x20command\x20MRCPSynth\x20%s',_0x53594f));};AGIVertices['prototype']['lumenvoxasr']=function(_0x5ee1c9){logger[_0x6aba('0x26')](util[_0x6aba('0x23')](_0x6aba('0xc1'),_0x5ee1c9[_0x6aba('0x30')]));if(!this[_0x6aba('0x7f')](_0x5ee1c9['grammar'])){return this['channel'][_0x6aba('0xa2')](_0x6aba('0xa6'));}var _0x8c4c5d=_0x5ee1c9['grammar'];if(this[_0x6aba('0x7f')](_0x5ee1c9[_0x6aba('0x70')])){_0x8c4c5d+=','+_0x5ee1c9['options'];}var _0x429791=this[_0x6aba('0x32')][_0x6aba('0x50')](_0x6aba('0xa7'),_0x8c4c5d);if(_0x429791[_0x6aba('0x9d')]===-0x1){return _0x429791;}var _0x5c5669=this['getAndSetVariable']('RECOG_CONFIDENCE()',_0x6aba('0xc2'));if(_0x5c5669[_0x6aba('0x9d')]===-0x1){return _0x5c5669;}var _0x827a9b=this[_0x6aba('0xa8')](_0x6aba('0xab'),_0x6aba('0xc3'));if(_0x827a9b[_0x6aba('0x9d')]===-0x1){return _0x827a9b;}var _0x74fc95=this[_0x6aba('0xa8')]('RECOG_INSTANCE()',_0x6aba('0xc4'));if(_0x74fc95[_0x6aba('0x9d')]===-0x1){return _0x74fc95;}return this['channel'][_0x6aba('0xa2')](util[_0x6aba('0x23')](_0x6aba('0xc5'),_0x8c4c5d));};AGIVertices[_0x6aba('0xb')]['sestekasr']=function(_0x59341f){logger[_0x6aba('0x26')](util[_0x6aba('0x23')]('Enter\x20in\x20SESTEKASR\x20(%s)\x20block',_0x59341f[_0x6aba('0x30')]));if(!this['isConfigured'](_0x59341f[_0x6aba('0xc6')])){return this[_0x6aba('0x32')][_0x6aba('0xa2')](_0x6aba('0xa6'));}var _0x48907f=_0x59341f[_0x6aba('0xc6')];if(this[_0x6aba('0x7f')](_0x59341f[_0x6aba('0x70')])){_0x48907f+=','+_0x59341f[_0x6aba('0x70')];}var _0x3ac02f=this['channel'][_0x6aba('0x50')]('MRCPRecog',_0x48907f);if(_0x3ac02f[_0x6aba('0x9d')]===-0x1){return _0x3ac02f;}var _0x1a22eb=this['getAndSetVariable']('RECOG_CONFIDENCE()','SESTEK_ASR_CONFIDENCE');if(_0x1a22eb[_0x6aba('0x9d')]===-0x1){return _0x1a22eb;}var _0x5b46bc=this[_0x6aba('0xa8')](_0x6aba('0xab'),_0x6aba('0xc7'));if(_0x5b46bc['result']===-0x1){return _0x5b46bc;}var _0xb71159=this[_0x6aba('0xa8')](_0x6aba('0xad'),_0x6aba('0xc8'));if(_0xb71159[_0x6aba('0x9d')]===-0x1){return _0xb71159;}return this['channel']['noop'](util['format']('Executed\x20command\x20MRCPRecog\x20%s',_0x48907f));};AGIVertices[_0x6aba('0xb')][_0x6aba('0xc9')]=function(_0x58b185){logger['info'](util[_0x6aba('0x23')](_0x6aba('0xca'),_0x58b185[_0x6aba('0x30')]));if(!this[_0x6aba('0x7f')](_0x58b185[_0x6aba('0xcb')])){return this[_0x6aba('0x32')][_0x6aba('0x2b')](_0x58b185,_0x6aba('0xcc'));}var _0x262a96=this[_0x6aba('0x14')][_0x6aba('0x69')](this,_0x58b185[_0x6aba('0xcb')]);if(!_0x262a96){return this[_0x6aba('0x32')]['error'](_0x58b185,_0x6aba('0xcd'));}if(!this[_0x6aba('0x7f')](_0x58b185[_0x6aba('0x27')])){return this['channel'][_0x6aba('0x2b')](_0x58b185,_0x6aba('0xce'));}var _0x577958=_0x58b185[_0x6aba('0x27')][_0x6aba('0x52')](/(\r\n|\n|\r)/gm,'\x20');this[_0x6aba('0x32')][_0x6aba('0xa2')](util[_0x6aba('0x23')](_0x6aba('0xcf'),_0x577958));var _0xc53794=this[_0x6aba('0x24')][_0x6aba('0x69')](this,_0x262a96,_0x577958);this[_0x6aba('0x2f')][_0x6aba('0x69')](this,_0x58b185,_0x577958);if(!this[_0x6aba('0x7f')](_0x58b185['variable_id'])){return this[_0x6aba('0x32')][_0x6aba('0xa2')](_0x6aba('0xd0'));}var _0xb5af0a=this['getVariable']['sync'](this,_0x58b185[_0x6aba('0xd1')]);if(!_0xb5af0a){return this[_0x6aba('0x32')][_0x6aba('0x2b')](_0x58b185,'no\x20variable\x20found');}var _0x368366=this;_0xc53794[_0x6aba('0xd2')](function(_0x1cfc1b,_0x3a5f74){Object[_0x6aba('0xd3')](_0x1cfc1b)[_0x6aba('0xd2')](function(_0x391d27){_0x368366[_0x6aba('0x32')][_0x6aba('0x99')](util[_0x6aba('0x23')]('%s[%s][%s]',_0xb5af0a,_0x3a5f74,_0x391d27),_0x1cfc1b[_0x391d27]);});});this['channel'][_0x6aba('0x99')](util[_0x6aba('0x23')](_0x6aba('0xd4'),_0xb5af0a),_0xc53794['length']);return this[_0x6aba('0x32')]['noop'](util[_0x6aba('0x23')](_0x6aba('0xd5'),_0xb5af0a));};AGIVertices[_0x6aba('0xb')][_0x6aba('0xd6')]=function(_0x542fc8){logger[_0x6aba('0xd7')](util[_0x6aba('0x23')]('Enter\x20in\x20DIAL\x20(%s)\x20block',_0x542fc8[_0x6aba('0x30')]));if(!this['isConfigured'](_0x542fc8[_0x6aba('0xd8')])){return this[_0x6aba('0x32')][_0x6aba('0x2b')](_0x542fc8,_0x6aba('0xd9'));}var _0x1f74ad=this[_0x6aba('0x16')][_0x6aba('0x69')](this,_0x542fc8[_0x6aba('0xd8')]);if(!_0x1f74ad){return this['channel']['error'](_0x542fc8,_0x6aba('0xda'));}var _0x565664=this[_0x6aba('0x32')][_0x6aba('0x50')](_0x6aba('0xdb'),[util[_0x6aba('0x23')](_0x6aba('0xdc'),_0x1f74ad),_0x542fc8[_0x6aba('0xb3')],_0x542fc8[_0x6aba('0xdd')],_0x542fc8[_0x6aba('0x5e')]]);if(_0x565664[_0x6aba('0x9d')]===-0x1){return _0x565664;}return this[_0x6aba('0x32')][_0x6aba('0xa2')](util[_0x6aba('0x23')](_0x6aba('0xde'),_0x6aba('0xdb')));};AGIVertices[_0x6aba('0xb')][_0x6aba('0xdf')]=function(_0x1c3e4c){logger[_0x6aba('0x26')](util[_0x6aba('0x23')](_0x6aba('0xe0'),_0x1c3e4c[_0x6aba('0x30')]));if(!this[_0x6aba('0x7f')](_0x1c3e4c['key'])){return this[_0x6aba('0x32')][_0x6aba('0xa2')](_0x6aba('0xe1'));}if(!this[_0x6aba('0x7f')](_0x1c3e4c['text'])){return this[_0x6aba('0x32')]['noop']('no\x20text\x20configured');}this[_0x6aba('0x32')][_0x6aba('0xe2')]=!![];this[_0x6aba('0x2f')](_0x1c3e4c);this[_0x6aba('0x3d')](_0x1c3e4c[_0x6aba('0x56')],'in','','');this[_0x6aba('0x32')][_0x6aba('0xa2')](util[_0x6aba('0x23')](_0x6aba('0xe3'),_0x1c3e4c[_0x6aba('0x56')]));var _0x59367f=this[_0x6aba('0x71')][_0x6aba('0x69')](this,_0x1c3e4c);if(_0x59367f){for(var _0x23aad4 in _0x59367f){if(_0x59367f[_0x6aba('0x8f')](_0x23aad4)){this[_0x6aba('0x32')]['setVariable'](util[_0x6aba('0x23')](_0x6aba('0xe4'),_0x23aad4[_0x6aba('0xe5')]()),_0x59367f[_0x23aad4]);}}this[_0x6aba('0x3d')](_0x59367f[_0x6aba('0xe6')],'out',_0x6aba('0xdf'),'');return this['channel'][_0x6aba('0xa2')](util[_0x6aba('0x23')](_0x6aba('0xe7'),_0x59367f[_0x6aba('0xe6')]));}return this[_0x6aba('0x32')]['error'](_0x1c3e4c,_0x6aba('0xe8'));};AGIVertices['prototype'][_0x6aba('0xe9')]=function(_0x286658){logger['info'](util[_0x6aba('0x23')](_0x6aba('0xea'),_0x286658[_0x6aba('0x30')]));if(!this[_0x6aba('0x7f')](_0x286658[_0x6aba('0x75')])){return this[_0x6aba('0x32')][_0x6aba('0xa2')](_0x6aba('0xeb'));}if(!this['isConfigured'](_0x286658[_0x6aba('0x76')])){return this[_0x6aba('0x32')][_0x6aba('0xa2')](_0x6aba('0xec'));}if(!this[_0x6aba('0x7f')](_0x286658['private_key'])){return this['channel']['noop'](_0x6aba('0xed'));}if(!this[_0x6aba('0x7f')](_0x286658[_0x6aba('0x78')])){return this[_0x6aba('0x32')][_0x6aba('0xa2')](_0x6aba('0xee'));}if(!this[_0x6aba('0x7f')](_0x286658[_0x6aba('0x56')])){return this['channel'][_0x6aba('0xa2')](_0x6aba('0xa3'));}this[_0x6aba('0x32')][_0x6aba('0xe2')]=!![];this[_0x6aba('0x2f')](_0x286658);this[_0x6aba('0x3d')](_0x286658['text'],'in','','');this[_0x6aba('0x32')][_0x6aba('0xa2')](util[_0x6aba('0x23')](_0x6aba('0xef'),_0x286658[_0x6aba('0x56')]));var _0x57bd0d=this[_0x6aba('0x74')][_0x6aba('0x69')](this,_0x286658);if(_0x57bd0d){for(var _0x246530 in _0x57bd0d){if(_0x57bd0d[_0x6aba('0x8f')](_0x246530)){if(_0x246530!==_0x6aba('0xf0')){this[_0x6aba('0x32')][_0x6aba('0x99')](util[_0x6aba('0x23')](_0x6aba('0xe4'),_0x246530['toUpperCase']()),_0x57bd0d[_0x246530]);}}}this[_0x6aba('0x3d')](_0x57bd0d[_0x6aba('0xe6')],_0x6aba('0xf1'),_0x6aba('0xe9'),_0x57bd0d[_0x6aba('0xf0')]);return this[_0x6aba('0x32')][_0x6aba('0xa2')](util['format'](_0x6aba('0xf2'),_0x57bd0d[_0x6aba('0xe6')]));}return this[_0x6aba('0x32')]['error'](_0x286658,'DialogflowV2\x20is\x20unreachable');};AGIVertices[_0x6aba('0xb')][_0x6aba('0xf3')]=function(_0x486ab2){logger[_0x6aba('0x26')](util[_0x6aba('0x23')](_0x6aba('0xf4'),_0x486ab2['label']));if(!this[_0x6aba('0x7f')](_0x486ab2[_0x6aba('0xf5')])){return this[_0x6aba('0x32')]['noop'](_0x6aba('0xf6'));}if(!this['isConfigured'](_0x486ab2['username'])){return this[_0x6aba('0x32')]['noop'](_0x6aba('0xf7'));}if(!this[_0x6aba('0x7f')](_0x486ab2[_0x6aba('0xf8')])){return this[_0x6aba('0x32')][_0x6aba('0xa2')](_0x6aba('0xf9'));}if(!this['isConfigured'](_0x486ab2[_0x6aba('0xfa')])){return this['channel'][_0x6aba('0xa2')](_0x6aba('0xa3'));}this['channel'][_0x6aba('0xe2')]=!![];this['createSquareDetailsReport'](_0x486ab2);this[_0x6aba('0x3d')](_0x486ab2[_0x6aba('0x56')],'in','','');this[_0x6aba('0x32')]['noop'](util['format'](_0x6aba('0xfb'),_0x486ab2[_0x6aba('0x56')]));var _0x504d64=this[_0x6aba('0x79')][_0x6aba('0x69')](this,_0x486ab2);if(_0x504d64){for(var _0x21b9e6 in _0x504d64){if(_0x504d64[_0x6aba('0x8f')](_0x21b9e6)){this[_0x6aba('0x32')][_0x6aba('0x99')](util[_0x6aba('0x23')](_0x6aba('0xfc'),_0x21b9e6['toUpperCase']()),_0x504d64[_0x21b9e6]);}}this[_0x6aba('0x3d')](_0x504d64['speech'],'out',_0x6aba('0xf3'),'');if(_0x504d64[_0x6aba('0xfd')]){this[_0x6aba('0x32')][_0x6aba('0xa2')](util[_0x6aba('0x23')](_0x6aba('0xfe'),_0x504d64[_0x6aba('0xfd')]));var _0x2bec75=this['channel'][_0x6aba('0xff')](_0x504d64[_0x6aba('0xfd')]);try{fs['unlink'](_0x504d64['audiofile']+_0x6aba('0x100'));}catch(_0x234032){logger[_0x6aba('0x2b')](_0x234032);}return _0x2bec75;}else{return this['channel']['noop'](util[_0x6aba('0x23')](_0x6aba('0x101'),_0x504d64[_0x6aba('0xe6')]));}}return this[_0x6aba('0x32')][_0x6aba('0x2b')](_0x486ab2,_0x6aba('0x102'));};AGIVertices[_0x6aba('0xb')][_0x6aba('0x103')]=function(_0x4efe2c){logger[_0x6aba('0x26')](util[_0x6aba('0x23')](_0x6aba('0x104'),_0x4efe2c[_0x6aba('0x30')]));return this[_0x6aba('0x32')][_0x6aba('0xa2')]('end');};AGIVertices['prototype'][_0x6aba('0x105')]=function(_0x2c4987){logger[_0x6aba('0x26')](util[_0x6aba('0x23')](_0x6aba('0x106'),_0x2c4987[_0x6aba('0x30')]));var _0xc0a7b4='';if(_0x2c4987[_0x6aba('0x107')]){if(!this[_0x6aba('0x7f')](_0x2c4987[_0x6aba('0x107')])){return this['channel'][_0x6aba('0x2b')](_0x2c4987,_0x6aba('0x108'));}else{var _0x6221a4=parseInt(_0x2c4987[_0x6aba('0x107')],0xa);if(isNaN(_0x6221a4)){_0xc0a7b4=_0x2c4987[_0x6aba('0x107')];}else{_0xc0a7b4=this[_0x6aba('0x18')][_0x6aba('0x69')](this,_0x2c4987['trunk_id']);if(!_0xc0a7b4){return this[_0x6aba('0x32')][_0x6aba('0x2b')](_0x2c4987,_0x6aba('0x109'));}}}}else if(_0x2c4987[_0x6aba('0x10a')]){_0xc0a7b4=_0x2c4987[_0x6aba('0x10a')];}else{return this[_0x6aba('0x32')]['error'](_0x2c4987,_0x6aba('0x108'));}var _0x56f219=this[_0x6aba('0x32')][_0x6aba('0x50')](_0x6aba('0xdb'),[util[_0x6aba('0x23')]('SIP/%s/%s',_0xc0a7b4,_0x2c4987['phone']),_0x2c4987['timeout'],_0x2c4987['opts'],_0x2c4987['url']]);if(_0x56f219[_0x6aba('0x9d')]===-0x1){return _0x56f219;}return this[_0x6aba('0x32')][_0x6aba('0xa2')](util[_0x6aba('0x23')](_0x6aba('0xde'),_0x6aba('0xdb')));};AGIVertices[_0x6aba('0xb')]['finally']=function(_0x5c7ea5){logger['info'](util[_0x6aba('0x23')](_0x6aba('0x10b'),_0x5c7ea5[_0x6aba('0x30')]));return this[_0x6aba('0x32')]['noop'](_0x6aba('0x10c'));};AGIVertices[_0x6aba('0xb')][_0x6aba('0x7')]=function(_0x527f31){logger[_0x6aba('0x26')](util[_0x6aba('0x23')]('Enter\x20in\x20GETDIGITS\x20(%s)\x20block',_0x527f31[_0x6aba('0x30')]));if(_0x527f31[_0x6aba('0xa0')]===0x0){return this[_0x6aba('0x9f')](_0x527f31);}_0x527f31[_0x6aba('0xa0')]-=0x1;if(!this[_0x6aba('0x7f')](_0x527f31['file_id'])){return this[_0x6aba('0x32')][_0x6aba('0x2b')](_0x527f31,'no\x20file\x20audio\x20selected');}var _0x27c6f0=this[_0x6aba('0x10d')][_0x6aba('0x69')](this,_0x527f31[_0x6aba('0x10e')]);if(!_0x27c6f0){return this[_0x6aba('0x32')]['error'](_0x527f31,'no\x20file\x20audio\x20found');}if(!this['isConfigured'](_0x527f31[_0x6aba('0xd1')])){return this[_0x6aba('0x32')][_0x6aba('0x2b')]('no\x20variable\x20selected\x20for\x20the\x20result');}var _0x15fefc=this['channel']['getData'](_0x27c6f0,_0x527f31[_0x6aba('0x10f')],_0x527f31[_0x6aba('0x110')]);var _0x4a54b8=_0x15fefc[_0x6aba('0x9d')]?_0x15fefc[_0x6aba('0x9d')][_0x6aba('0x47')]():'';logger['info']('test',JSON[_0x6aba('0x6b')](_0x15fefc));if(_0x15fefc[_0x6aba('0x9d')]===-0x1){this['createSquareDetailsReport'][_0x6aba('0x69')](this,_0x527f31,_0x4a54b8);return _0x15fefc;}else if(_0x15fefc['extra']===_0x6aba('0xb3')){_0x15fefc[_0x6aba('0x9d')]=_0x4a54b8[_0x6aba('0x96')]>=parseInt(_0x527f31[_0x6aba('0x111')])?'x':'i';}else{_0x15fefc[_0x6aba('0x9d')]=_0x4a54b8['length']>=parseInt(_0x527f31[_0x6aba('0x111')])&&_0x4a54b8[_0x6aba('0x96')]<=parseInt(_0x527f31[_0x6aba('0x110')])?'x':'i';}var _0x1a284a=this[_0x6aba('0xc')][_0x6aba('0x69')](this,_0x527f31[_0x6aba('0xd1')]);if(!_0x1a284a){return this['channel'][_0x6aba('0x2b')](_0x527f31,'no\x20variable\x20found');}this[_0x6aba('0x32')][_0x6aba('0x99')](_0x1a284a,_0x4a54b8);if(this[_0x6aba('0x7f')](_0x527f31[_0x6aba('0x112')])){var _0x166c78=parseInt(_0x527f31[_0x6aba('0x112')],0xa);var _0x12a8e5=rs['generate']({'charset':'*','length':_0x166c78});var _0x4ca3c8=_0x4a54b8[_0x6aba('0x96')];if(_0x4ca3c8>0x0){if(_0x4ca3c8>_0x166c78){this[_0x6aba('0x2f')][_0x6aba('0x69')](this,_0x527f31,_0x527f31[_0x6aba('0x113')]===_0x6aba('0x114')?_0x12a8e5+_0x4a54b8[_0x6aba('0x115')](_0x166c78):_0x4a54b8[_0x6aba('0x115')](0x0,_0x4ca3c8-_0x166c78)+_0x12a8e5);}else{this[_0x6aba('0x2f')]['sync'](this,_0x527f31,rs[_0x6aba('0x116')]({'charset':'*','length':_0x4ca3c8}));}}else{this[_0x6aba('0x2f')][_0x6aba('0x69')](this,_0x527f31,'');}}else{this[_0x6aba('0x2f')][_0x6aba('0x69')](this,_0x527f31,_0x4a54b8);}return _0x15fefc;};AGIVertices['prototype'][_0x6aba('0x8')]=function(_0x3b5f97){logger[_0x6aba('0x26')](util[_0x6aba('0x23')](_0x6aba('0x117'),_0x3b5f97[_0x6aba('0x30')]));return this['getdigits'](_0x3b5f97);};AGIVertices['prototype'][_0x6aba('0x118')]=function(_0x348586){logger[_0x6aba('0x26')](util[_0x6aba('0x23')](_0x6aba('0x119'),_0x348586[_0x6aba('0x30')]));this[_0x6aba('0x2f')]['sync'](this,_0x348586,_0x348586[_0x6aba('0x11a')]);return this[_0x6aba('0x32')][_0x6aba('0xa2')](util[_0x6aba('0x23')](_0x6aba('0x11b'),_0x348586[_0x6aba('0x11a')]));};AGIVertices[_0x6aba('0xb')][_0x6aba('0x11c')]=function(_0x20e16d){logger[_0x6aba('0x26')](util['format']('[AGI]\x20Enter\x20in\x20AWSPOLLY\x20(%s)\x20block',_0x20e16d[_0x6aba('0x30')]));if(!this['isConfigured'](_0x20e16d['aws_access_key_id'])||!this['isConfigured'](_0x20e16d[_0x6aba('0x82')])){return this[_0x6aba('0x32')][_0x6aba('0xa2')](_0x6aba('0x11d'));}if(!this[_0x6aba('0x7f')](_0x20e16d[_0x6aba('0x56')])){return this['channel']['noop']('no\x20text\x20configured');}this['channel']['noop'](util[_0x6aba('0x23')]('Trying\x20aws\x20Polly\x20%s',_0x20e16d[_0x6aba('0x56')]));var _0x4e0684=this['awsPolly']['sync'](this,_0x20e16d);if(_0x4e0684){this[_0x6aba('0x32')][_0x6aba('0xa2')](util['format']('aws\x20Polly\x20%s\x20file\x20created',_0x4e0684));var _0x5f4818=this[_0x6aba('0x32')]['streamFile'](_0x4e0684);try{fs[_0x6aba('0x11e')](_0x4e0684+_0x6aba('0x100'));}catch(_0x327a84){logger['error'](_0x327a84);}return _0x5f4818;}return this[_0x6aba('0x32')][_0x6aba('0x2b')](_0x20e16d,'aws\x20Polly\x20is\x20unreachable');};AGIVertices[_0x6aba('0xb')][_0x6aba('0x11f')]=function(_0x5e4978){logger['info'](util[_0x6aba('0x23')](_0x6aba('0x120'),_0x5e4978['label']));if(!this[_0x6aba('0x7f')](_0x5e4978[_0x6aba('0x81')])||!this['isConfigured'](_0x5e4978['aws_secret_access_key'])){return this[_0x6aba('0x32')][_0x6aba('0xa2')](_0x6aba('0x11d'));}if(!this[_0x6aba('0x7f')](_0x5e4978[_0x6aba('0x87')])){return this['channel'][_0x6aba('0xa2')](_0x6aba('0x121'));}if(!this[_0x6aba('0x7f')](_0x5e4978['text'])){return this[_0x6aba('0x32')][_0x6aba('0xa2')](_0x6aba('0xa3'));}this[_0x6aba('0x32')][_0x6aba('0xe2')]=!![];this[_0x6aba('0x2f')](_0x5e4978);this[_0x6aba('0x3d')](_0x5e4978[_0x6aba('0x56')],'in','','');this[_0x6aba('0x32')][_0x6aba('0xa2')](util[_0x6aba('0x23')](_0x6aba('0x122'),_0x5e4978[_0x6aba('0x56')]));var _0x1526ac=this['awsLex']['sync'](this,_0x5e4978);if(_0x1526ac){for(var _0x1827fd in _0x1526ac){if(_0x1526ac[_0x6aba('0x8f')](_0x1827fd)&&_[_0x6aba('0x90')](_0x1526ac[_0x1827fd])){this['channel'][_0x6aba('0x99')](util[_0x6aba('0x23')](_0x6aba('0x123'),_0x1827fd[_0x6aba('0xe5')]()),_0x1526ac[_0x1827fd]);}}if(_[_0x6aba('0x40')](_0x1526ac[_0x6aba('0x6f')])){return this[_0x6aba('0x32')][_0x6aba('0xa2')](_0x6aba('0x124'));}else{this[_0x6aba('0x3d')](_0x1526ac[_0x6aba('0x6f')],'out','amazonlex','');return this[_0x6aba('0x32')][_0x6aba('0xa2')](util['format'](_0x6aba('0x125'),_0x1526ac['message']));}}return this['channel'][_0x6aba('0x2b')](_0x5e4978,_0x6aba('0x126'));};AGIVertices[_0x6aba('0xb')][_0x6aba('0x127')]=function(_0x57352d){logger[_0x6aba('0x26')](util[_0x6aba('0x23')]('Enter\x20in\x20GOOGLEASR\x20(%s)\x20block\x20%s',_0x57352d[_0x6aba('0x30')],_0x57352d[_0x6aba('0xb3')]));if(!this['isConfigured'](_0x57352d['key'])){return this[_0x6aba('0x32')][_0x6aba('0xa2')](_0x6aba('0xe1'));}var _0x4ccbf5=_0x6aba('0x128');var _0x3e9e25=util['format'](_0x6aba('0x129'),FILES_PATH,rs[_0x6aba('0x116')](0x4));var _0x2d46cf=util[_0x6aba('0x23')]('%s.%s',_0x3e9e25,_0x4ccbf5);var _0x31611d=!![];if(_0x57352d[_0x6aba('0x12a')]===_0x6aba('0x12b')){_0x31611d=![];}var _0x24622a=this[_0x6aba('0x32')]['recordFile'](_0x3e9e25,_0x4ccbf5,_0x57352d[_0x6aba('0x12c')],_0x57352d[_0x6aba('0xb3')],undefined,_0x31611d);if(_0x24622a['result']!==-0x1){this[_0x6aba('0x32')]['noop'](util[_0x6aba('0x23')](_0x6aba('0x12d'),_0x2d46cf));var _0x59f8de=this[_0x6aba('0x88')][_0x6aba('0x69')](this,_0x57352d,_0x2d46cf);if(_0x59f8de){for(var _0x2d92c3 in _0x59f8de){if(_0x59f8de[_0x6aba('0x8f')](_0x2d92c3)){this[_0x6aba('0x32')][_0x6aba('0x99')](util[_0x6aba('0x23')](_0x6aba('0x12e'),_0x2d92c3['toUpperCase']()),_0x59f8de[_0x2d92c3]);}}return this[_0x6aba('0x32')][_0x6aba('0xa2')](util[_0x6aba('0x23')](_0x6aba('0x12f'),JSON['stringify'](_0x59f8de)));}}return _0x24622a;};AGIVertices[_0x6aba('0xb')]['tildeasr']=function(_0x2b1ec1){logger[_0x6aba('0x26')](util[_0x6aba('0x23')](_0x6aba('0x130'),_0x2b1ec1[_0x6aba('0x30')]));if(!this[_0x6aba('0x7f')](_0x2b1ec1['appid'])){return this[_0x6aba('0x32')][_0x6aba('0xa2')](_0x6aba('0x131'));}if(!this[_0x6aba('0x7f')](_0x2b1ec1[_0x6aba('0x132')])){return this[_0x6aba('0x32')][_0x6aba('0xa2')](_0x6aba('0x133'));}var _0x1a04dc=_0x6aba('0x128');var _0x11aabc=util[_0x6aba('0x23')](_0x6aba('0x129'),FILES_PATH,rs['generate'](0x4));var _0x42ddee=util[_0x6aba('0x23')](_0x6aba('0x98'),_0x11aabc,_0x1a04dc);var _0x3107f7=!![];if(_0x2b1ec1[_0x6aba('0x12a')]==='NOBEEP'){_0x3107f7=![];}var _0x5d7111=this[_0x6aba('0x32')][_0x6aba('0x134')](_0x11aabc,_0x1a04dc,_0x2b1ec1[_0x6aba('0x12c')],_0x2b1ec1[_0x6aba('0xb3')],undefined,_0x3107f7);if(_0x5d7111['result']!==-0x1){this[_0x6aba('0x32')]['noop'](util['format']('tilde\x20%s\x20file\x20created',_0x42ddee));var _0x4e506a=this[_0x6aba('0x8a')]['sync'](this,_0x2b1ec1,_0x42ddee);if(_0x4e506a){for(var _0x4dc1f4 in _0x4e506a){if(_0x4e506a[_0x6aba('0x8f')](_0x4dc1f4)){this[_0x6aba('0x32')][_0x6aba('0x99')](util['format'](_0x6aba('0x135'),_0x4dc1f4[_0x6aba('0xe5')]()),_0x4e506a[_0x4dc1f4]);}}return this[_0x6aba('0x32')]['noop'](util['format'](_0x6aba('0x136'),JSON['stringify'](_0x4e506a)));}}return _0x5d7111;};AGIVertices['prototype']['gotoc']=function(_0x10c67c){logger[_0x6aba('0x26')](util[_0x6aba('0x23')](_0x6aba('0x137'),_0x10c67c[_0x6aba('0x30')]));return this[_0x6aba('0x32')][_0x6aba('0x138')](_0x10c67c['context'],_0x10c67c['extension'],_0x10c67c[_0x6aba('0x39')]);};AGIVertices[_0x6aba('0xb')][_0x6aba('0x139')]=function(_0x4cad45){logger[_0x6aba('0x26')](util[_0x6aba('0x23')](_0x6aba('0x13a'),_0x4cad45[_0x6aba('0x30')]));if(!this[_0x6aba('0x7f')](_0x4cad45['condition'])){return this[_0x6aba('0x32')][_0x6aba('0x2b')](_0x4cad45,_0x6aba('0x13b'));}try{var _0x3c66c2=eval(_0x4cad45[_0x6aba('0x13c')])?'true':_0x6aba('0x13d');this['channel']['noop'](util[_0x6aba('0x23')](_0x6aba('0x13e'),_0x4cad45[_0x6aba('0x13c')],_0x3c66c2));return{'code':0xc8,'result':_0x3c66c2};}catch(_0x315f20){return{'code':0xc8,'result':_0x6aba('0x13d')};}};AGIVertices[_0x6aba('0xb')][_0x6aba('0x13f')]=function(_0x2d9b05){logger[_0x6aba('0x26')](util['format'](_0x6aba('0x140'),_0x2d9b05['label']));if(!this[_0x6aba('0x7f')](_0x2d9b05[_0x6aba('0x141')])){return this['channel'][_0x6aba('0x2b')](_0x2d9b05,_0x6aba('0x142'));}var _0x5a55c1=this['getIntervals'][_0x6aba('0x69')](this,_0x2d9b05['interval_id']);if(!_0x5a55c1){return this[_0x6aba('0x32')][_0x6aba('0x2b')](_0x2d9b05,_0x6aba('0x143'));}for(var _0x23227e=0x0;_0x23227e<_0x5a55c1[_0x6aba('0x96')];_0x23227e+=0x1){var _0x10622c=this[_0x6aba('0x32')][_0x6aba('0xc')](util[_0x6aba('0x23')](_0x6aba('0x144'),_0x5a55c1[_0x23227e]));if(_0x10622c['result']===-0x1){return _0x10622c;}logger[_0x6aba('0x26')](util[_0x6aba('0x23')](_0x6aba('0x145'),_0x5a55c1[_0x23227e],_0x10622c[_0x6aba('0x9c')]));if(_0x10622c[_0x6aba('0x9c')]===_0x6aba('0x146')){logger['info'](util[_0x6aba('0x23')]('IFTIME\x20%s\x20%s',_0x5a55c1[_0x23227e],_0x6aba('0x146')));this['channel'][_0x6aba('0xa2')](util[_0x6aba('0x23')](_0x6aba('0x145'),_0x5a55c1[_0x23227e],_0x6aba('0x146')));return{'code':0xc8,'result':_0x6aba('0x146')};}else{logger[_0x6aba('0x26')](util[_0x6aba('0x23')](_0x6aba('0x145'),_0x5a55c1[_0x23227e],_0x6aba('0x13d')));this[_0x6aba('0x32')][_0x6aba('0xa2')](util[_0x6aba('0x23')](_0x6aba('0x145'),_0x5a55c1[_0x23227e],_0x6aba('0x13d')));}}return{'code':0xc8,'result':'false'};};AGIVertices[_0x6aba('0xb')]['hangup']=function(_0x15e755){logger[_0x6aba('0x26')](util[_0x6aba('0x23')](_0x6aba('0x147'),_0x15e755[_0x6aba('0x30')]));return this[_0x6aba('0x32')][_0x6aba('0x148')]();};AGIVertices[_0x6aba('0xb')]['ispeechasr']=function(_0x3faf67){logger['info'](util['format']('Enter\x20in\x20ISPEECHASR\x20(%s)\x20block',_0x3faf67[_0x6aba('0x30')]));if(!this[_0x6aba('0x7f')](_0x3faf67['key'])){return this[_0x6aba('0x32')]['noop'](_0x6aba('0xe1'));}var _0x250c28=_0x6aba('0x128');var _0x5882ef=util[_0x6aba('0x23')](_0x6aba('0x129'),FILES_PATH,rs['generate'](0x4));var _0x5ed90c=util['format'](_0x6aba('0x98'),_0x5882ef,_0x250c28);var _0x4407f6=!![];if(_0x3faf67[_0x6aba('0x12a')]==='NOBEEP'){_0x4407f6=![];}var _0x1ce883=this[_0x6aba('0x32')]['recordFile'](_0x5882ef,_0x250c28,_0x3faf67[_0x6aba('0x12c')],_0x3faf67[_0x6aba('0xb3')],undefined,_0x4407f6);if(_0x1ce883[_0x6aba('0x9d')]!==-0x1){this[_0x6aba('0x32')][_0x6aba('0xa2')](util['format'](_0x6aba('0x149'),_0x5ed90c));var _0x2993b9=this[_0x6aba('0x7d')]['sync'](this,_0x3faf67,_0x5ed90c);if(_0x2993b9){for(var _0x568b5b in _0x2993b9){if(_0x2993b9['hasOwnProperty'](_0x568b5b)){this[_0x6aba('0x32')][_0x6aba('0x99')](util[_0x6aba('0x23')]('ISPEECH_ASR_%s',_0x568b5b['toUpperCase']()),_0x2993b9[_0x568b5b]);}}return this[_0x6aba('0x32')][_0x6aba('0xa2')](util[_0x6aba('0x23')](_0x6aba('0x14a'),JSON[_0x6aba('0x6b')](_0x2993b9)));}}return _0x1ce883;};AGIVertices[_0x6aba('0xb')][_0x6aba('0x14b')]=function(_0x47997b){logger[_0x6aba('0x26')](util[_0x6aba('0x23')](_0x6aba('0x14c'),_0x47997b[_0x6aba('0x30')]));if(!this[_0x6aba('0x7f')](_0x47997b[_0x6aba('0x72')])){return this['channel'][_0x6aba('0xa2')](_0x6aba('0xe1'));}if(!this['isConfigured'](_0x47997b[_0x6aba('0x56')])){return this[_0x6aba('0x32')][_0x6aba('0xa2')](_0x6aba('0xa3'));}this[_0x6aba('0x32')][_0x6aba('0xa2')](util[_0x6aba('0x23')](_0x6aba('0x14d'),_0x47997b['text']));var _0x1f46bf=this['ispeechTTS'][_0x6aba('0x69')](this,_0x47997b);if(_0x1f46bf){this[_0x6aba('0x32')]['noop'](util[_0x6aba('0x23')](_0x6aba('0x149'),_0x1f46bf));var _0x401dd2=this[_0x6aba('0x32')][_0x6aba('0xff')](_0x1f46bf,_0x47997b[_0x6aba('0x12c')]);try{fs[_0x6aba('0x11e')](_0x1f46bf+_0x6aba('0x100'));}catch(_0x4314bf){logger[_0x6aba('0x2b')](_0x4314bf);}return _0x401dd2;}return this[_0x6aba('0x32')][_0x6aba('0x2b')](_0x47997b,'ispeech\x20TTS\x20is\x20unreachable');};AGIVertices[_0x6aba('0xb')][_0x6aba('0x14e')]=function(_0x3b6bb4){logger[_0x6aba('0x26')](util['format']('Enter\x20in\x20LOGIN\x20(%s)\x20block',_0x3b6bb4[_0x6aba('0x30')]));if(!this['isConfigured'](_0x3b6bb4[_0x6aba('0x14f')])){return this['channel']['error'](_0x3b6bb4,_0x6aba('0x150'));}logger['info'](util[_0x6aba('0x23')](_0x6aba('0x151'),this['channel'][_0x6aba('0x36')],_0x3b6bb4[_0x6aba('0x14f')]));var _0x2c896f=this['agentLogin'][_0x6aba('0x69')](this,_0x3b6bb4[_0x6aba('0x14f')]);if(_0x2c896f){logger['info'](util['format']('AGENT\x20%s\x20FOUND\x20BY',this[_0x6aba('0x32')]['callerid'],_0x3b6bb4['findBy']));this[_0x6aba('0x32')][_0x6aba('0xa2')](util[_0x6aba('0x23')](_0x6aba('0x152'),this[_0x6aba('0x32')][_0x6aba('0x36')],_0x3b6bb4[_0x6aba('0x14f')]));return{'code':0xc8,'result':_0x6aba('0x153')};}else{logger[_0x6aba('0x26')](util['format'](_0x6aba('0x154'),this[_0x6aba('0x32')][_0x6aba('0x36')],_0x3b6bb4[_0x6aba('0x14f')]));this['channel']['noop'](util['format'](_0x6aba('0x154'),this[_0x6aba('0x32')][_0x6aba('0x36')],_0x3b6bb4[_0x6aba('0x14f')]));return{'code':0xc8,'result':_0x6aba('0x155')};}};AGIVertices[_0x6aba('0xb')][_0x6aba('0x156')]=function(_0x40a3f1){logger['info'](util[_0x6aba('0x23')]('Enter\x20in\x20LOGOUT\x20(%s)\x20block',_0x40a3f1[_0x6aba('0x30')]));if(!this[_0x6aba('0x7f')](_0x40a3f1[_0x6aba('0x14f')])){return this[_0x6aba('0x32')][_0x6aba('0x2b')](_0x40a3f1,_0x6aba('0x150'));}logger[_0x6aba('0x26')](util[_0x6aba('0x23')]('FIND\x20AGENT\x20%s\x20BY\x20%s',this[_0x6aba('0x32')][_0x6aba('0x36')],_0x40a3f1[_0x6aba('0x14f')]));var _0x5a5510=this[_0x6aba('0x4c')][_0x6aba('0x69')](this,_0x40a3f1[_0x6aba('0x14f')]);if(_0x5a5510){logger[_0x6aba('0x26')](util[_0x6aba('0x23')](_0x6aba('0x152'),this[_0x6aba('0x32')][_0x6aba('0x36')],_0x40a3f1[_0x6aba('0x14f')]));this[_0x6aba('0x32')][_0x6aba('0xa2')](util['format'](_0x6aba('0x152'),this[_0x6aba('0x32')]['callerid'],_0x40a3f1[_0x6aba('0x14f')]));return{'code':0xc8,'result':_0x6aba('0x153')};}else{logger[_0x6aba('0x26')](util['format'](_0x6aba('0x154'),this['channel'][_0x6aba('0x36')],_0x40a3f1['findBy']));this[_0x6aba('0x32')]['noop'](util['format'](_0x6aba('0x154'),this['channel']['callerid'],_0x40a3f1['findBy']));return{'code':0xc8,'result':_0x6aba('0x155')};}};AGIVertices[_0x6aba('0xb')][_0x6aba('0x157')]=function(_0x2f06c6){logger[_0x6aba('0x26')](util[_0x6aba('0x23')](_0x6aba('0x158'),_0x2f06c6[_0x6aba('0x30')]));if(!this[_0x6aba('0x7f')](_0x2f06c6[_0x6aba('0x159')])){return this[_0x6aba('0x32')][_0x6aba('0x2b')](_0x2f06c6,'no\x20operation\x20configured');}this['channel']['noop'](util[_0x6aba('0x23')](_0x6aba('0x15a'),_0x2f06c6[_0x6aba('0x159')]));var _0x88932=eval(_0x2f06c6[_0x6aba('0x159')]);if(!this['isConfigured'](_0x2f06c6['variable_id'])){return this['channel'][_0x6aba('0xa2')]('no\x20variable\x20selected\x20for\x20the\x20result');}var _0x2a4a1e=this[_0x6aba('0xc')]['sync'](this,_0x2f06c6[_0x6aba('0xd1')]);if(!_0x2a4a1e){return this[_0x6aba('0x32')]['error'](_0x2f06c6,_0x6aba('0x15b'));}if(_['isArray'](_0x88932)){var _0x15e63c=this;_0x88932[_0x6aba('0xd2')](function(_0x31ac2d,_0x2b838f){_0x15e63c[_0x6aba('0x32')][_0x6aba('0x99')](util[_0x6aba('0x23')](_0x6aba('0x15c'),_0x2a4a1e,_0x2b838f),_0x31ac2d);});return this[_0x6aba('0x32')][_0x6aba('0xa2')](util[_0x6aba('0x23')](_0x6aba('0x15d'),_0x2a4a1e));}else{return this[_0x6aba('0x32')]['setVariable'](_0x2a4a1e,_0x88932);}};AGIVertices[_0x6aba('0xb')]['menu']=function(_0x90c38){logger['info'](util[_0x6aba('0x23')](_0x6aba('0x15e'),_0x90c38['label']));if(_0x90c38[_0x6aba('0xa0')]===0x0){return this[_0x6aba('0x9f')](_0x90c38);}_0x90c38[_0x6aba('0xa0')]-=0x1;if(!this[_0x6aba('0x7f')](_0x90c38[_0x6aba('0x10e')])){return this[_0x6aba('0x32')][_0x6aba('0x2b')](_0x90c38,_0x6aba('0x15f'));}var _0x4645f2=this['getSound'][_0x6aba('0x69')](this,_0x90c38[_0x6aba('0x10e')]);if(!_0x4645f2){return this[_0x6aba('0x32')][_0x6aba('0x2b')](_0x90c38,'no\x20file\x20audio\x20found');}var _0x2f249c=this['channel'][_0x6aba('0x160')](_0x4645f2,_0x90c38[_0x6aba('0x10f')],_0x90c38[_0x6aba('0x161')]);var _0x30c8c9=_0x2f249c[_0x6aba('0x9d')];if(_0x2f249c[_0x6aba('0x9d')]===-0x1){this[_0x6aba('0x2f')][_0x6aba('0x69')](this,_0x90c38,'-1');return _0x2f249c;}else if(_0x2f249c[_0x6aba('0x9c')]===_0x6aba('0xb3')){_0x2f249c[_0x6aba('0x9d')]=_0x2f249c[_0x6aba('0x9d')][_0x6aba('0x96')]>0x0?_0x2f249c[_0x6aba('0x9d')]:'t';}else if(_[_0x6aba('0x3f')](_0x2f249c[_0x6aba('0x9d')])){_0x2f249c['result']='#';_0x30c8c9='#';}if(!this[_0x6aba('0x7f')](_0x90c38[_0x6aba('0xd1')])){this['channel'][_0x6aba('0xa2')](_0x6aba('0xd0'));}else{var _0x471b43=this['getVariable'][_0x6aba('0x69')](this,_0x90c38[_0x6aba('0xd1')]);if(!_0x471b43){return this[_0x6aba('0x32')][_0x6aba('0x2b')](_0x90c38,_0x6aba('0x15b'));}this['channel'][_0x6aba('0x99')](_0x471b43,_0x30c8c9);}this['createSquareDetailsReport'][_0x6aba('0x69')](this,_0x90c38,_0x30c8c9);return _0x2f249c;};AGIVertices[_0x6aba('0xb')]['noop']=function(_0x5b98a0){logger[_0x6aba('0x26')](util[_0x6aba('0x23')](_0x6aba('0x162'),_0x5b98a0['label']));return this[_0x6aba('0x32')][_0x6aba('0xa2')](_0x5b98a0[_0x6aba('0x163')]||_0x5b98a0['label']);};AGIVertices[_0x6aba('0xb')][_0x6aba('0x164')]=function(_0x5ed6b8){logger['info'](util[_0x6aba('0x23')](_0x6aba('0x165'),_0x5ed6b8[_0x6aba('0x30')]));if(!this[_0x6aba('0x7f')](_0x5ed6b8[_0x6aba('0x14f')])){return this[_0x6aba('0x32')][_0x6aba('0x2b')](_0x5ed6b8,_0x6aba('0x150'));}logger[_0x6aba('0x26')](util['format'](_0x6aba('0x151'),this['channel'][_0x6aba('0x36')],_0x5ed6b8[_0x6aba('0x14f')]));var _0x21921a=this[_0x6aba('0x166')][_0x6aba('0x69')](this,_0x5ed6b8['pause_id']);var _0x19d183=this['agentPause']['sync'](this,_0x5ed6b8[_0x6aba('0x14f')],_0x21921a);if(_0x19d183){logger[_0x6aba('0x26')](util[_0x6aba('0x23')](_0x6aba('0x152'),this[_0x6aba('0x32')][_0x6aba('0x36')],_0x5ed6b8[_0x6aba('0x14f')]));this['channel']['noop'](util[_0x6aba('0x23')](_0x6aba('0x152'),this[_0x6aba('0x32')][_0x6aba('0x36')],_0x5ed6b8['findBy']));return{'code':0xc8,'result':_0x6aba('0x153')};}else{logger[_0x6aba('0x26')](util[_0x6aba('0x23')](_0x6aba('0x154'),this[_0x6aba('0x32')]['callerid'],_0x5ed6b8[_0x6aba('0x14f')]));this['channel'][_0x6aba('0xa2')](util[_0x6aba('0x23')](_0x6aba('0x152'),this[_0x6aba('0x32')][_0x6aba('0x36')],_0x5ed6b8['findBy']));return{'code':0xc8,'result':_0x6aba('0x155')};}};AGIVertices[_0x6aba('0xb')]['playback']=function(_0x2dc449){logger['info'](util[_0x6aba('0x23')]('Enter\x20in\x20PLAYBACK\x20(%s)\x20block',_0x2dc449['label']));if(!this['isConfigured'](_0x2dc449['file_id'])){return this[_0x6aba('0x32')][_0x6aba('0x2b')](_0x2dc449,_0x6aba('0x15f'));}var _0x49f5c2=this[_0x6aba('0x10d')][_0x6aba('0x69')](this,_0x2dc449[_0x6aba('0x10e')]);if(!_0x49f5c2){return this['channel'][_0x6aba('0x2b')](_0x2dc449,_0x6aba('0x167'));}var _0x3b298a=this['channel'][_0x6aba('0x50')](_0x6aba('0x168'),[_0x49f5c2,_0x2dc449[_0x6aba('0xdd')]]);if(_0x3b298a[_0x6aba('0x9d')]===-0x1){return _0x3b298a;}return this[_0x6aba('0x32')][_0x6aba('0xa2')](util['format']('Executed\x20command\x20%s\x20%s',_0x6aba('0x168'),_0x49f5c2));};AGIVertices[_0x6aba('0xb')][_0x6aba('0x169')]=function(_0x520cfe){logger[_0x6aba('0x26')](util[_0x6aba('0x23')](_0x6aba('0x16a'),_0x520cfe[_0x6aba('0x30')]));if(!this[_0x6aba('0x7f')](_0x520cfe[_0x6aba('0x16b')])){return this['channel'][_0x6aba('0x2b')](_0x520cfe,_0x6aba('0x16c'));}var _0x17b024='';var _0x3e91ad=parseInt(_0x520cfe[_0x6aba('0x16b')],0xa);if(isNaN(_0x3e91ad)){_0x17b024=_0x520cfe[_0x6aba('0x16b')];}else{_0x17b024=this[_0x6aba('0x10')][_0x6aba('0x69')](this,_0x520cfe[_0x6aba('0x16b')]);if(!_0x17b024){return this[_0x6aba('0x32')]['error'](_0x520cfe,_0x6aba('0x16d'));}}var _0x158fe5='';if(this['isConfigured'](_0x520cfe['file_id'])){var _0x2a75ba=this[_0x6aba('0x10d')][_0x6aba('0x69')](this,_0x520cfe[_0x6aba('0x10e')]);if(_0x2a75ba){_0x158fe5=_0x2a75ba;}}this[_0x6aba('0x2f')][_0x6aba('0x69')](this,_0x520cfe,_0x17b024);if(_0x520cfe[_0x6aba('0xdd')]['indexOf']('x')<0x0){_0x520cfe[_0x6aba('0xdd')]+='x';}if(_0x520cfe[_0x6aba('0xdd')]['indexOf']('X')<0x0){_0x520cfe[_0x6aba('0xdd')]+='X';}this[_0x6aba('0x32')][_0x6aba('0x99')]('XMCS-QUEUE',_0x17b024?_0x17b024[_0x6aba('0x16e')]():'');var _0x2dc727=this[_0x6aba('0x32')]['exec'](_0x6aba('0x16f'),[_0x17b024,_0x520cfe[_0x6aba('0xdd')],_0x520cfe[_0x6aba('0x5e')],_0x158fe5,_0x520cfe[_0x6aba('0xb3')],_0x520cfe['agi'],_0x520cfe[_0x6aba('0x170')],_0x520cfe['gosub'],'',_0x520cfe['position']]);if(_0x2dc727['result']===-0x1){return _0x2dc727;}return this[_0x6aba('0x32')][_0x6aba('0xa2')](util[_0x6aba('0x23')](_0x6aba('0x171'),_0x6aba('0x16f'),_0x17b024));};AGIVertices['prototype'][_0x6aba('0x172')]=function(_0x3afde6){logger[_0x6aba('0x26')](util[_0x6aba('0x23')](_0x6aba('0x173'),_0x3afde6[_0x6aba('0x30')]));var _0xb7bc03=_0x3afde6['recordingFormat']||'wav';var _0x10a8f1=util[_0x6aba('0x23')](_0x6aba('0x174'),this[_0x6aba('0x32')][_0x6aba('0x35')],rs[_0x6aba('0x116')](0x5));var _0x2596ce=util[_0x6aba('0x23')](_0x6aba('0x175'),FILES_PATH,_0x10a8f1,_0xb7bc03);var _0x3a0480=util[_0x6aba('0x23')](_0x6aba('0x129'),FILES_PATH,_0x10a8f1);this[_0x6aba('0x34')]['sync'](this,_0x3afde6,_0x10a8f1,_0x2596ce);this[_0x6aba('0x32')][_0x6aba('0x99')](_0x6aba('0x176'),_0x10a8f1);logger['info'](_0x6aba('0x177'),_0x3a0480,_0xb7bc03,_0x3afde6[_0x6aba('0x178')],_0x3afde6[_0x6aba('0xb3')]);return this['channel'][_0x6aba('0x134')](_0x3a0480,_0xb7bc03,_0x3afde6[_0x6aba('0x178')],_0x3afde6[_0x6aba('0xb3')],undefined,!![]);};AGIVertices[_0x6aba('0xb')][_0x6aba('0x179')]=function(_0x441395){logger[_0x6aba('0x26')](util['format'](_0x6aba('0x17a'),_0x441395[_0x6aba('0x30')]));if(!this[_0x6aba('0x7f')](_0x441395['url'])){return this[_0x6aba('0x32')]['noop']('no\x20url\x20configured');}var _0x3d6d47=this[_0x6aba('0x5d')][_0x6aba('0x69')](this,_0x441395);logger['info'](util[_0x6aba('0x23')](_0x6aba('0x17b'),util[_0x6aba('0x17c')](_0x3d6d47,{'showHidden':![],'depth':null})));if(!this[_0x6aba('0x7f')](_0x441395[_0x6aba('0xd1')])){return this[_0x6aba('0x32')][_0x6aba('0xa2')](_0x6aba('0x17d'));}var _0x596109=this['getVariable']['sync'](this,_0x441395[_0x6aba('0xd1')]);if(!_0x596109){return this['channel'][_0x6aba('0x2b')](_0x441395,_0x6aba('0x15b'));}this[_0x6aba('0x32')][_0x6aba('0x99')](util[_0x6aba('0x23')](_0x6aba('0x17e'),_0x596109),_0x3d6d47[_0x6aba('0x6d')]?_0x3d6d47[_0x6aba('0x6d')]:_0x6aba('0x17f'));this[_0x6aba('0x32')][_0x6aba('0x99')](util['format'](_0x6aba('0x180'),_0x596109),_0x3d6d47[_0x6aba('0x6e')]?_0x3d6d47['statusMessage']:'OK');if(_0x3d6d47[_0x6aba('0x63')]){try{this[_0x6aba('0x97')](_0x3d6d47['body'],_0x596109);}catch(_0x4ca195){logger[_0x6aba('0x2b')](util[_0x6aba('0x23')]('Unable\x20to\x20set\x20result\x20in\x20variable\x20%s',_0x596109));}}return this[_0x6aba('0x32')][_0x6aba('0xa2')](util[_0x6aba('0x23')]('variable\x20%s\x20set',_0x596109));};AGIVertices[_0x6aba('0xb')][_0x6aba('0x181')]=function(_0xe329d6){logger['info'](util[_0x6aba('0x23')](_0x6aba('0x182'),_0xe329d6['label']));return this[_0x6aba('0x32')][_0x6aba('0x183')](_0xe329d6[_0x6aba('0x184')][_0x6aba('0x52')](/\s+/g,''),_0xe329d6[_0x6aba('0x178')]);};AGIVertices[_0x6aba('0xb')][_0x6aba('0x185')]=function(_0x3472c9){logger[_0x6aba('0x26')](util['format'](_0x6aba('0x186'),_0x3472c9[_0x6aba('0x30')]));return this[_0x6aba('0x32')][_0x6aba('0x187')](_0x3472c9[_0x6aba('0x60')]['replace'](/\s+/g,''),_0x3472c9[_0x6aba('0x178')]);};AGIVertices[_0x6aba('0xb')][_0x6aba('0x188')]=function(_0x32bdd1){logger[_0x6aba('0x26')](util[_0x6aba('0x23')](_0x6aba('0x189'),_0x32bdd1[_0x6aba('0x30')]));return this[_0x6aba('0x32')][_0x6aba('0x18a')](_0x32bdd1['text'],_0x32bdd1[_0x6aba('0x178')]);};AGIVertices[_0x6aba('0xb')]['sendMail']=function(_0x36cf41){logger[_0x6aba('0x26')](util[_0x6aba('0x23')](_0x6aba('0x18b'),_0x36cf41[_0x6aba('0x30')]));if(!this[_0x6aba('0x7f')](_0x36cf41[_0x6aba('0x18c')])){return this[_0x6aba('0x32')][_0x6aba('0xa2')](_0x6aba('0x18d'));}var _0x1627fd=this[_0x6aba('0x18e')][_0x6aba('0x69')](this,_0x36cf41[_0x6aba('0x18c')]);if(!_0x1627fd||!_0x1627fd[_0x6aba('0x18f')]){return this[_0x6aba('0x32')][_0x6aba('0x2b')](_0x36cf41,_0x6aba('0x190'));}var _0x5c50b3={'from':util[_0x6aba('0x23')](_0x6aba('0x191'),_0x1627fd[_0x6aba('0xe')],_0x1627fd['email']||_0x1627fd[_0x6aba('0x18f')]['user']),'to':_0x36cf41['to']||'','cc':_0x36cf41['cc']||'','bcc':_0x36cf41[_0x6aba('0x192')]||'','subject':_0x36cf41['subject'],'html':_0x36cf41[_0x6aba('0x56')],'text':_0x36cf41[_0x6aba('0x56')]};if(this[_0x6aba('0x7f')](_0x36cf41[_0x6aba('0x193')])){}logger[_0x6aba('0xd7')](_0x6aba('0x194'),JSON['stringify'](_0x5c50b3));this['createSquareDetailsReport'][_0x6aba('0x69')](this,_0x36cf41,_0x36cf41['account_id']);this[_0x6aba('0x32')][_0x6aba('0xa2')](util['format'](_0x6aba('0x195'),_0x1627fd[_0x6aba('0xe')]));this['sendMailMessage']['sync'](this,_0x1627fd[_0x6aba('0x196')],_0x5c50b3);return this[_0x6aba('0x32')][_0x6aba('0xa2')]('Mail\x20message\x20added\x20to\x20outgoing\x20process');};AGIVertices[_0x6aba('0xb')]['sendFax']=function(_0x511afe){logger[_0x6aba('0x26')](util[_0x6aba('0x23')]('Enter\x20in\x20SENDFAX\x20(%s)\x20block',_0x511afe['label']));return this[_0x6aba('0x32')][_0x6aba('0xa2')]('SENDFAX\x20block\x20not\x20implemented');};AGIVertices['prototype'][_0x6aba('0x197')]=function(_0x18e302){logger[_0x6aba('0x26')](util[_0x6aba('0x23')](_0x6aba('0x198'),_0x18e302['label']));if(!this[_0x6aba('0x7f')](_0x18e302['sms_account_id'])){return this[_0x6aba('0x32')]['noop'](_0x6aba('0x199'));}var _0x38d843=this[_0x6aba('0x2d')][_0x6aba('0x69')](this,_0x18e302['sms_account_id']);if(!_0x38d843){return this['channel'][_0x6aba('0x2b')](_0x18e302,_0x6aba('0x19a'));}var _0x3477ed={'body':_0x18e302[_0x6aba('0x19b')],'phone':_0x18e302['to']||'','SmsAccountId':_0x38d843['id']};logger['debug'](_0x6aba('0x19c'),JSON['stringify'](_0x3477ed));this[_0x6aba('0x2f')]['sync'](this,_0x18e302,_0x18e302[_0x6aba('0x19d')]);this['channel'][_0x6aba('0xa2')](util[_0x6aba('0x23')](_0x6aba('0x19e'),_0x38d843[_0x6aba('0xe')]));this[_0x6aba('0x19f')]['sync'](this,_0x3477ed);return this[_0x6aba('0x32')]['noop'](_0x6aba('0x1a0'));};AGIVertices[_0x6aba('0xb')][_0x6aba('0x1a1')]=function(_0x4fff59){logger[_0x6aba('0x26')](util[_0x6aba('0x23')](_0x6aba('0x1a2'),_0x4fff59[_0x6aba('0x30')]));if(!this[_0x6aba('0x7f')](_0x4fff59['variable_id'])){return this[_0x6aba('0x32')][_0x6aba('0x2b')](_0x4fff59,_0x6aba('0x1a3'));}var _0x1c5648=this['getVariable'][_0x6aba('0x69')](this,_0x4fff59[_0x6aba('0xd1')]);if(!_0x1c5648){return this[_0x6aba('0x32')][_0x6aba('0x2b')](_0x4fff59,'no\x20variable\x20found');}return this[_0x6aba('0x32')]['setVariable'](_0x1c5648,_0x4fff59['variable_value']);};AGIVertices[_0x6aba('0xb')]['start']=function(_0x30043f){logger['info'](util[_0x6aba('0x23')]('Enter\x20in\x20START\x20(%s)\x20block',_0x30043f[_0x6aba('0x30')]));this[_0x6aba('0x32')][_0x6aba('0xa2')](_0x6aba('0x1a4'));var _0x50f365=this[_0x6aba('0x32')][_0x6aba('0xc')](_0x6aba('0x1a5'));if(!_['isEmpty'](_0x50f365[_0x6aba('0x9c')])){this[_0x6aba('0x32')][_0x6aba('0x35')]=_0x50f365[_0x6aba('0x9c')];}if(_0x30043f['answer']===_0x6aba('0x1a6')){this[_0x6aba('0x32')]['noop'](_0x6aba('0x1a7'));return this['channel'][_0x6aba('0xb1')]();}return this[_0x6aba('0x32')][_0x6aba('0xa2')]('Skipped\x20Answer');};AGIVertices[_0x6aba('0xb')]['subproject']=function(_0x25b54f){logger[_0x6aba('0x26')](util[_0x6aba('0x23')](_0x6aba('0x1a8'),_0x25b54f[_0x6aba('0x30')]));if(!this['isConfigured'](_0x25b54f[_0x6aba('0x1a9')])){return this[_0x6aba('0x32')]['error'](_0x25b54f,_0x6aba('0x1aa'));}var _0x5aa5a0=this['getSquareProject'][_0x6aba('0x69')](this,_0x25b54f[_0x6aba('0x1a9')]);if(!this[_0x6aba('0x7f')](_0x5aa5a0)){return this[_0x6aba('0x32')][_0x6aba('0x2b')](_0x25b54f,util[_0x6aba('0x23')](_0x6aba('0x1ab'),_0x25b54f['project_id']));}if(_0x5aa5a0===this[_0x6aba('0x32')]['arg_1']){return this[_0x6aba('0x32')][_0x6aba('0x2b')](_0x25b54f,_0x6aba('0x1ac'));}this[_0x6aba('0x2f')]['sync'](this,_0x25b54f,_0x5aa5a0);var _0x308e33=this['channel']['exec']('AGI',util['format'](_0x6aba('0x1ad'),config[_0x6aba('0x4')]['host']||_0x6aba('0x1ae'),_0x5aa5a0,this[_0x6aba('0x32')]['arg_1']));if(_0x308e33[_0x6aba('0x9d')]===-0x1){return _0x308e33;}return this[_0x6aba('0x32')]['noop'](util[_0x6aba('0x23')](_0x6aba('0x171'),_0x6aba('0x1af'),_0x5aa5a0));};AGIVertices[_0x6aba('0xb')][_0x6aba('0x1b0')]=function(_0x2fe9cf){logger[_0x6aba('0x26')](util[_0x6aba('0x23')]('Enter\x20in\x20SYSTEM\x20(%s)\x20block',_0x2fe9cf[_0x6aba('0x30')]));var _0x373809=this[_0x6aba('0x1b1')]['sync'](this,_0x2fe9cf[_0x6aba('0x1b2')]);this[_0x6aba('0x2f')][_0x6aba('0x69')](this,_0x2fe9cf,_0x2fe9cf[_0x6aba('0x1b2')]);if(this['isConfigured'](_0x2fe9cf[_0x6aba('0xd1')])){var _0x181094=this[_0x6aba('0xc')]['sync'](this,_0x2fe9cf[_0x6aba('0xd1')]);if(_0x181094){this[_0x6aba('0x32')][_0x6aba('0x99')](_0x181094,_0x373809);return this[_0x6aba('0x32')][_0x6aba('0xa2')](util['format'](_0x6aba('0x1b3'),_0x2fe9cf[_0x6aba('0x1b2')],_0x181094));}}return this[_0x6aba('0x32')][_0x6aba('0xa2')](util[_0x6aba('0x23')](_0x6aba('0x1b4'),_0x2fe9cf[_0x6aba('0x1b2')]));};AGIVertices[_0x6aba('0xb')][_0x6aba('0x1b5')]=function(_0x20ceb3){logger[_0x6aba('0x26')](util['format'](_0x6aba('0x1b6'),_0x20ceb3[_0x6aba('0x30')]));_0x20ceb3['text']=_0x20ceb3[_0x6aba('0x56')][_0x6aba('0x52')](/(\r\n|\n|\r)/gm,'\x20');if(!this['isConfigured'](_0x20ceb3[_0x6aba('0x54')])){return this[_0x6aba('0x32')][_0x6aba('0xa2')](_0x6aba('0x1b7'));}if(!this[_0x6aba('0x7f')](_0x20ceb3[_0x6aba('0x56')])){return this[_0x6aba('0x32')][_0x6aba('0xa2')]('no\x20text\x20configured');}this[_0x6aba('0x32')][_0x6aba('0xa2')](util[_0x6aba('0x23')]('Trying\x20Google\x20Cloud\x20TTS\x20%s',_0x20ceb3['text']));var _0x161bfb=this[_0x6aba('0x53')][_0x6aba('0x69')](this,_0x20ceb3);if(_0x161bfb){this[_0x6aba('0x32')][_0x6aba('0xa2')](util[_0x6aba('0x23')]('Google\x20Cloud\x20TTS\x20%s\x20file\x20created',_0x161bfb));var _0x8b7603=this[_0x6aba('0x32')][_0x6aba('0xff')](_0x161bfb);try{fs[_0x6aba('0x11e')](_0x161bfb+'.wav');}catch(_0x44cfd8){logger['error'](_0x44cfd8);}return _0x8b7603;}return this['channel'][_0x6aba('0x2b')](_0x20ceb3,'Google\x20Cloud\x20TTS\x20is\x20unreachable');};AGIVertices[_0x6aba('0xb')]['tts']=function(_0x418e44){logger['info'](util[_0x6aba('0x23')](_0x6aba('0x1b8'),_0x418e44[_0x6aba('0x30')]));_0x418e44[_0x6aba('0x56')]=_0x418e44[_0x6aba('0x56')][_0x6aba('0x52')](/(\r\n|\n|\r)/gm,'\x20');if(!this[_0x6aba('0x7f')](_0x418e44[_0x6aba('0x56')])){return this[_0x6aba('0x32')][_0x6aba('0xa2')](_0x6aba('0xa3'));}this['channel']['noop'](util[_0x6aba('0x23')](_0x6aba('0x1b9'),_0x418e44[_0x6aba('0x56')]));var _0x911697=this['googleTTS'][_0x6aba('0x69')](this,_0x418e44);if(_0x911697){this[_0x6aba('0x32')][_0x6aba('0xa2')](util['format']('Google\x20TTS\x20%s\x20file\x20created',_0x911697));var _0x5469fe=this[_0x6aba('0x32')]['streamFile'](_0x911697);try{fs[_0x6aba('0x11e')](_0x911697+_0x6aba('0x100'));}catch(_0x5143e5){logger[_0x6aba('0x2b')](_0x5143e5);}return _0x5469fe;}return this[_0x6aba('0x32')]['error'](_0x418e44,_0x6aba('0x1ba'));};AGIVertices[_0x6aba('0xb')]['unpause']=function(_0x124768){logger['info'](util[_0x6aba('0x23')](_0x6aba('0x1bb'),_0x124768[_0x6aba('0x30')]));if(!this[_0x6aba('0x7f')](_0x124768[_0x6aba('0x14f')])){return this[_0x6aba('0x32')][_0x6aba('0x2b')](_0x124768,_0x6aba('0x150'));}logger['info'](util[_0x6aba('0x23')](_0x6aba('0x151'),this['channel'][_0x6aba('0x36')],_0x124768[_0x6aba('0x14f')]));var _0x11cedb=this['agentUnpause'][_0x6aba('0x69')](this,_0x124768[_0x6aba('0x14f')]);if(_0x11cedb){logger['info'](util[_0x6aba('0x23')](_0x6aba('0x152'),this[_0x6aba('0x32')][_0x6aba('0x36')],_0x124768[_0x6aba('0x14f')]));this[_0x6aba('0x32')][_0x6aba('0xa2')](util['format'](_0x6aba('0x152'),this[_0x6aba('0x32')][_0x6aba('0x36')],_0x124768['findBy']));return{'code':0xc8,'result':_0x6aba('0x153')};}else{logger[_0x6aba('0x26')](util[_0x6aba('0x23')](_0x6aba('0x154'),this[_0x6aba('0x32')][_0x6aba('0x36')],_0x124768[_0x6aba('0x14f')]));this[_0x6aba('0x32')]['noop'](util[_0x6aba('0x23')](_0x6aba('0x154'),this[_0x6aba('0x32')][_0x6aba('0x36')],_0x124768[_0x6aba('0x14f')]));return{'code':0xc8,'result':_0x6aba('0x155')};}};AGIVertices[_0x6aba('0xb')][_0x6aba('0x1bc')]=function(_0xad9a44){logger[_0x6aba('0x26')](util[_0x6aba('0x23')](_0x6aba('0x1bd'),_0xad9a44[_0x6aba('0x30')]));var _0x4f0780=this[_0x6aba('0x32')][_0x6aba('0x50')](_0x6aba('0x1be'),[_0xad9a44[_0x6aba('0x1bf')],_0xad9a44[_0x6aba('0x70')]]);if(_0x4f0780[_0x6aba('0x9d')]===-0x1){return _0x4f0780;}return this[_0x6aba('0x32')][_0x6aba('0xa2')](util['format'](_0x6aba('0x171'),_0x6aba('0x1be'),_0xad9a44[_0x6aba('0x1bf')]));};AGIVertices[_0x6aba('0xb')][_0x6aba('0x1c0')]=function(_0x28c437){logger['info'](util[_0x6aba('0x23')](_0x6aba('0x1c1'),_0x28c437[_0x6aba('0x30')]));if(!this[_0x6aba('0x7f')](_0x28c437['variable_id'])){return this[_0x6aba('0x32')][_0x6aba('0x2b')](_0x28c437,_0x6aba('0x1a3'));}var _0x150461=this[_0x6aba('0xc')][_0x6aba('0x69')](this,_0x28c437[_0x6aba('0xd1')]);if(!_0x150461){return this['channel']['error'](_0x28c437,_0x6aba('0x15b'));}var _0x521bc6=this[_0x6aba('0x32')][_0x6aba('0xc')](_0x150461);return{'code':0xc8,'result':_0x521bc6['extra']?_0x521bc6['extra']:'-'};};String[_0x6aba('0xb')][_0x6aba('0x9b')]=function(_0x2e7745,_0x2c4c31){return this['split'](_0x2e7745)[_0x6aba('0x1c2')](_0x2c4c31);};module[_0x6aba('0x1c3')]=AGIVertices;