Built motion from commit 58b0471d.|2.6.29
[motion2.git] / server / services / agi / vertices.js
index a86d26f..c6327c2 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-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;
\ No newline at end of file
+var _0x24ca=['getSquareProjectById','getSquareOdbc','getSquareOdbcById','getUser','getTrunk','getSound','getSoundPath','save_name','getMailAccount','getMailAccountById','sendMailMessage','getIntervalById','IntervalId','interval','Intervals','format','%s/sounds/converted/%s','open','Error\x20getting\x20ODBC\x20connection\x20%s','ODBC\x20connection\x20successfully','query','info','Query\x20executed\x20correctly\x20%s','close','error','Error\x20closing\x20connection\x20to\x20odbc\x20%s','getSmsAccountById','createSmsMessage','createSquareDetailsReport','uniqueid','label','agicommand','arg_1','channel','callerid','createSquareRecording','calleridname','context','extension','accountcode','dnid','file','createCmContact','isEmpty','isNil','callback_','lastName','list_id','scheduledAt','callback','Callback\x20scheduled\x20at\x20','toString','getPauseById','agentPause','agent','agentLogout','agentLogin','internal','%s/%s@from-sip/n','LOCAL','shellCommand','exec','trim','googleCloudTTS','apiKey','google_cloud_tts_text_type','text','languageCode','en-US','ssmlGender','MALE','audioEncoding','MP3','googleTTS','google_tts_language','restAPI','url','method','timeout','number','includes','POST','PUT','toUpperCase','body','parse','An\x20incorrect\x20formatted\x20json\x20body\x20has\x20been\x20passed\x20to\x20the\x20function','headers','computedVariables','sync','uri','render','stringify','An\x20incorrect\x20formatted\x20json\x20has\x20been\x20passed\x20to\x20the\x20function','statusCode','statusMessage','message','500\x20-\x20Internal\x20Server\x20Error','options','googleDialogflow','key','dialogflow_language','googleDialogflowV2','private_key','dialogflowV2_language','sestekNDA','ispeechTTS','ispeechASR','ispeech_asr_language','isConfigured','model','awsPolly','aws_access_key_id','aws_secret_access_key','aws_polly_region','Amy','aws_text_type','awsLex','aws_lex_region','aws_bot_name','googleASR','google_asr_language','tildeASR','appid','appsecret','clear','clone','hasOwnProperty','isString','replaceAllVariables','recursiveNodeIndex','isPlainObject','isArray','length','saveRestApiResult','%s.%s','setVariable','replaceObjectAllVariables','split','extra','result','The\x20\x22%s\x22\x20variable\x20value\x20is:\x20%s','retry','maxRetry','Enter\x20in\x20MRCPSynth\x20(%s)\x20block','noop','no\x20text\x20configured','MRCPSynth','Executed\x20command\x20MRCPSynth\x20%s','mrcprecog','grammar','no\x20grammar\x20configured','MRCPRecog','RECOG_CONFIDENCE()','MRCP_RECOG_CONFIDENCE','getAndSetVariable','MRCP_RECOG_TRANSCRIPT','RECOG_INSTANCE()','MRCP_RECOG_INSTANCE','Executed\x20command\x20MRCPRecog\x20%s','Enter\x20in\x20AGI\x20(%s)\x20block','command','args','answer','Enter\x20in\x20ANSWER\x20(%s)\x20block','Wait\x20%s\x20seconds\x20before\x20answer','wait','delay','add','minutes','callback_priority','CALLBACK\x20added\x20phone:\x20%s\x20on\x20list:\x20%s\x20at\x20%s','phone','Enter\x20in\x20CUSTOM\x20APP\x20(%s)\x20block','application','Executed\x20command\x20%s\x20%s','lumenvoxtts','Enter\x20in\x20LUMENVOXTTS\x20(%s)\x20block','sestektts','lumenvoxasr','Enter\x20in\x20LUMENVOXASR\x20(%s)\x20block','LUMENVOX_ASR_CONFIDENCE','RECOG_INPUT()','LUMENVOX_ASR_TRANSCRIPT','LUMENVOX_ASR_INSTANCE','sestekasr','Enter\x20in\x20SESTEKASR\x20(%s)\x20block','SESTEK_ASR_CONFIDENCE','SESTEK_ASR_TRANSCRIPT','SESTEK_ASR_INSTANCE','database','Enter\x20in\x20DATABASE\x20(%s)\x20block','no\x20database\x20selected','odbc_id','no\x20query\x20configured','replace','query:\x20%s','no\x20variable\x20selected\x20for\x20the\x20result','variable_id','no\x20variable\x20found','forEach','keys','%s[%s][%s]','variable\x20%s\x20set','dial','debug','Enter\x20in\x20DIAL\x20(%s)\x20block','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','bot','createSquareMessage','Trying\x20Dialogflow:\x20%s','DIALOGFLOW_%s','out','Dialogflow\x20Result\x20%s','speech','Dialogflow\x20is\x20unreachable','dialogflowV2','Enter\x20in\x20DIALOGFLOW\x20V2\x20(%s)\x20block','dialogflowV2_project_id','no\x20project_id\x20configured','client_email','no\x20client_email\x20configured','providerResponse','DialogflowV2\x20Result\x20%s','DialogflowV2\x20is\x20unreachable','sesteknda','Enter\x20in\x20SESTEKNDA\x20(%s)\x20block','ndauth_url','no\x20ndauth\x20url\x20configured','password','no\x20password\x20configured','ndassistant_url','SESTEK_NDA_%s','audiofile','Sestek\x20NDA\x20%s\x20file\x20created','streamFile','unlink','.wav','SestekNDA\x20Result\x20%s','SestekNDA\x20is\x20unreachable','end','Enter\x20in\x20END\x20(%s)\x20block','ext_dial','trunk_id','no\x20trunk\x20selected','no\x20trunk\x20found','trunk_name','SIP/%s/%s','finally','file_id','no\x20file\x20audio\x20selected','no\x20file\x20audio\x20found','getData','maxdigit','test','mindigit','hiddendigitsnum','generate','hiddendigitspos','first','substr','getsecretdigits','goal','Enter\x20in\x20GOAL\x20(%s)\x20block','goalname','awspolly','[AGI]\x20Enter\x20in\x20AWSPOLLY\x20(%s)\x20block','no\x20valid\x20credentials\x20configured','aws\x20Polly\x20is\x20unreachable','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','amazonlex','Amazon\x20Lex\x20is\x20unreachable','Enter\x20in\x20GOOGLEASR\x20(%s)\x20block\x20%s','wav','beep','NOBEEP','recordFile','intKey','GoogleASR\x20Result\x20%s','tildeasr','no\x20appid\x20configured','no\x20appsecret\x20configured','tilde\x20%s\x20file\x20created','TILDE_ASR_%s','gotoc','Enter\x20in\x20GOTO\x20(%s)\x20block','priority','gotoif','Enter\x20in\x20GOTOIF\x20(%s)\x20block','condition','no\x20condition\x20configured','true','false','gotoiftime','Enter\x20in\x20GOTOIFTIME\x20(%s)\x20block','interval_id','no\x20interval\x20configured','getIntervals','no\x20intervals\x20found','IFTIME(%s?true:false)','IFTIME\x20%s\x20%s','hangup','Enter\x20in\x20HANGUP\x20(%s)\x20block','ispeechasr','Enter\x20in\x20ISPEECHASR\x20(%s)\x20block','%s/recordings/%s','ispeech\x20%s\x20file\x20created','IspeechASR\x20Result\x20%s','ispeechtts','Enter\x20in\x20ISPEECHTTS\x20(%s)\x20block','ispeech\x20TTS\x20is\x20unreachable','login','Enter\x20in\x20LOGIN\x20(%s)\x20block','findBy','no\x20find\x20by\x20configured','FIND\x20AGENT\x20%s\x20BY\x20%s','AGENT\x20%s\x20FOUND\x20BY','AGENT\x20%s\x20NOT\x20FOUND\x20BY','failure','logout','Enter\x20in\x20LOGOUT\x20(%s)\x20block','success','math','Enter\x20in\x20MATH\x20(%s)\x20block','math\x20%s','operation','%s[%s]','Enter\x20in\x20MENU\x20(%s)\x20block','response','pause','Enter\x20in\x20PAUSE\x20(%s)\x20block','getPause','pause_id','playback','Enter\x20in\x20PLAYBACK\x20(%s)\x20block','PLAYBACK','queue','Enter\x20in\x20QUEUE\x20(%s)\x20block','queue_id','no\x20queue\x20selected','getVoiceQueue','no\x20queue\x20found','indexOf','XMCS-QUEUE','toLowerCase','QUEUE','macro','gosub','position','record','Enter\x20in\x20RECORD\x20(%s)\x20block','recordingFormat','%s_%s','%s/recordings/%s.%s','RECORDING_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','%s_STATUS_MESSAGE','Unable\x20to\x20set\x20result\x20in\x20variable\x20%s','saydigits','sayDigits','digits','Enter\x20in\x20SAYNUMBER\x20(%s)\x20block','sayNumber','Enter\x20in\x20SAYPHONETIC\x20(%s)\x20block','sayPhonetic','Enter\x20in\x20SENDMAIL\x20(%s)\x20block','account_id','no\x20mail\x20account\x20configured','Smtp','\x22%s\x22\x20<%s>','email','user','template_id','sendMail\x20message','Trying\x20SendMail\x20with\x20account\x20%s','smtpOptions','sendFax','SENDFAX\x20block\x20not\x20implemented','sendSMS','Enter\x20in\x20SENDSMS\x20(%s)\x20block','sms_account_id','no\x20sms\x20account\x20configured','no\x20sms\x20account\x20found','sms_text','Sms\x20message\x20added\x20to\x20outgoing\x20process','set','Enter\x20in\x20SET\x20(%s)\x20block','no\x20variable\x20selected','variable_value','start','Enter\x20in\x20START\x20(%s)\x20block','START\x20CALLY\x20SQUARE','Answer','Skipped\x20Answer','subproject','project_id','no\x20subproject\x20found\x20with\x20id\x20%d','AGI','agi://%s/square,\x22%s\x22,\x22%s\x22','host','127.0.0.1','system','Enter\x20in\x20SYSTEM\x20(%s)\x20block','sh\x20command:\x20%s\x20result\x20on\x20variable:\x20%s','sh\x20command:\x20%s\x20result\x20no\x20stored','google_cloud_tts','no\x20apiKey\x20configured','Trying\x20Google\x20Cloud\x20TTS\x20%s','Google\x20Cloud\x20TTS\x20%s\x20file\x20created','Google\x20Cloud\x20TTS\x20is\x20unreachable','Enter\x20in\x20GOOGLETTS\x20(%s)\x20block','Trying\x20Google\x20TTS\x20%s','Google\x20TTS\x20%s\x20file\x20created','unpause','Enter\x20in\x20UNPAUSE\x20(%s)\x20block','agentUnpause','Enter\x20in\x20VOICEMAIL\x20(%s)\x20block','VOICEMAIL','mailbox','vswitch','Enter\x20in\x20SWITCH\x20(%s)\x20block','join','exports','util','shelljs','odbc','randomstring','mustache','request-promise','../../config/logger','agi','../../config/environment','./scripts','/var/opt/motion2/server/files','rawHeaders','rawBody','menu','getdigits','rpc','mailRpc','prototype','getVariable','getVariableById','then','name','catch','getVoiceQueueById','getSquareProject'];(function(_0x21ecc8,_0x2bdead){var _0x510c1d=function(_0x3b6862){while(--_0x3b6862){_0x21ecc8['push'](_0x21ecc8['shift']());}};_0x510c1d(++_0x2bdead);}(_0x24ca,0x1bc));var _0xa24c=function(_0x137d1d,_0x35c663){_0x137d1d=_0x137d1d-0x0;var _0x485108=_0x24ca[_0x137d1d];return _0x485108;};'use strict';var fs=require('fs');var util=require(_0xa24c('0x0'));var _=require('lodash');var sh=require(_0xa24c('0x1'));var odbc=require(_0xa24c('0x2'))();var rs=require(_0xa24c('0x3'));var moment=require('moment');var Mustache=require(_0xa24c('0x4'));var rp=require(_0xa24c('0x5'));var logger=require(_0xa24c('0x6'))(_0xa24c('0x7'));var config=require(_0xa24c('0x8'));var scripts=require(_0xa24c('0x9'));var FILES_PATH=_0xa24c('0xa');var recursiveMapAttributes=[_0xa24c('0xb'),_0xa24c('0xc')];var verticesWithRetry=[_0xa24c('0xd'),_0xa24c('0xe'),'getsecretdigits'];var AGIVertices=function(_0x42d89c,_0x3a5727,_0x2d645c){this['channel']=_0x42d89c;this[_0xa24c('0xf')]=_0x3a5727;this[_0xa24c('0x10')]=_0x2d645c;};AGIVertices[_0xa24c('0x11')][_0xa24c('0x12')]=function(_0x169632,_0x43aa5a){this[_0xa24c('0xf')][_0xa24c('0x13')](_0x169632)[_0xa24c('0x14')](function(_0x5aa811){_0x43aa5a(null,_0x5aa811?_0x5aa811[_0xa24c('0x15')]:![]);})[_0xa24c('0x16')](function(_0xcee4fe){_0x43aa5a(_0xcee4fe);});};AGIVertices[_0xa24c('0x11')]['getVoiceQueue']=function(_0x3ad0bf,_0x3c23fc){this[_0xa24c('0xf')][_0xa24c('0x17')](_0x3ad0bf)[_0xa24c('0x14')](function(_0x2d185c){_0x3c23fc(null,_0x2d185c?_0x2d185c[_0xa24c('0x15')]:![]);})['catch'](function(_0x47a063){_0x3c23fc(_0x47a063);});};AGIVertices[_0xa24c('0x11')][_0xa24c('0x18')]=function(_0x49ce53,_0x5babb5){this[_0xa24c('0xf')][_0xa24c('0x19')](_0x49ce53)['then'](function(_0x2a64ff){_0x5babb5(null,_0x2a64ff?_0x2a64ff['name']:![]);})[_0xa24c('0x16')](function(_0x2a610a){_0x5babb5(_0x2a610a);});};AGIVertices[_0xa24c('0x11')][_0xa24c('0x1a')]=function(_0x4ff97c,_0x16d363){this[_0xa24c('0xf')][_0xa24c('0x1b')](_0x4ff97c)['then'](function(_0x48a768){_0x16d363(null,_0x48a768?_0x48a768['dsn']:![]);})['catch'](function(_0x2173f6){_0x16d363(_0x2173f6);});};AGIVertices[_0xa24c('0x11')][_0xa24c('0x1c')]=function(_0x180297,_0x51a275){this[_0xa24c('0xf')]['getUserById'](_0x180297)[_0xa24c('0x14')](function(_0xb81d97){_0x51a275(null,_0xb81d97?_0xb81d97['name']:![]);})[_0xa24c('0x16')](function(_0x363d52){_0x51a275(_0x363d52);});};AGIVertices[_0xa24c('0x11')][_0xa24c('0x1d')]=function(_0x14cc65,_0x47e0eb){this[_0xa24c('0xf')]['getTrunkById'](_0x14cc65)[_0xa24c('0x14')](function(_0x3951ae){_0x47e0eb(null,_0x3951ae?_0x3951ae[_0xa24c('0x15')]:![]);})['catch'](function(_0x1beb55){_0x47e0eb(_0x1beb55);});};AGIVertices[_0xa24c('0x11')][_0xa24c('0x1e')]=function(_0x314121,_0x11e4e0){var _0x3ad0e6=this;this[_0xa24c('0xf')]['getSoundById'](_0x314121)[_0xa24c('0x14')](function(_0x28675f){_0x11e4e0(null,_0x28675f?_0x3ad0e6[_0xa24c('0x1f')](_0x28675f[_0xa24c('0x20')]):![]);})['catch'](function(_0x21d2a8){_0x11e4e0(_0x21d2a8);});};AGIVertices[_0xa24c('0x11')][_0xa24c('0x21')]=function(_0x59dbeb,_0x15eaaf){this[_0xa24c('0xf')][_0xa24c('0x22')](_0x59dbeb)['then'](function(_0x245fb2){_0x15eaaf(null,_0x245fb2?_0x245fb2:![]);})['catch'](function(_0x1102ab){_0x15eaaf(_0x1102ab);});};AGIVertices[_0xa24c('0x11')][_0xa24c('0x23')]=function(_0x5d025a,_0x1f52f8,_0x53f90){this[_0xa24c('0x10')]['sendMailMessage'](_0x5d025a,_0x1f52f8)[_0xa24c('0x14')](function(){_0x53f90(null);})['catch'](function(_0xa20091){_0x53f90(_0xa20091);});};AGIVertices[_0xa24c('0x11')]['getIntervals']=function(_0x5680f5,_0x20a276){this[_0xa24c('0xf')][_0xa24c('0x24')](_0x5680f5)[_0xa24c('0x14')](function(_0x298dec){if(_0x298dec){if(_0x298dec[_0xa24c('0x25')]){_0x20a276(null,[_0x298dec[_0xa24c('0x26')]]);}else{_0x20a276(null,_['map'](_0x298dec[_0xa24c('0x27')],_0xa24c('0x26')));}}else{_0x20a276(null,![]);}})[_0xa24c('0x16')](function(_0xbd24c0){_0x20a276(_0xbd24c0);});};AGIVertices[_0xa24c('0x11')][_0xa24c('0x1f')]=function(_0x86902f){return util[_0xa24c('0x28')](_0xa24c('0x29'),FILES_PATH,_0x86902f);};AGIVertices[_0xa24c('0x11')]['getQueryOdbc']=function(_0x70a957,_0x66f5a6,_0x2b362d){odbc[_0xa24c('0x2a')](_0x70a957,function(_0x578b72){if(_0x578b72){logger['error'](_0xa24c('0x2b'),_0x578b72);_0x2b362d(_0x578b72);}else{logger['info'](_0xa24c('0x2c'));odbc[_0xa24c('0x2d')](_0x66f5a6,function(_0x22a316,_0xa10c1){if(_0x22a316){logger[_0xa24c('0x2e')]('Error\x20executing\x20query\x20%s',_0x66f5a6);_0x2b362d(_0x22a316);}else{logger['info'](_0xa24c('0x2f'),_0x66f5a6);odbc[_0xa24c('0x30')](function(_0x3603db){if(_0x3603db){logger[_0xa24c('0x31')](_0xa24c('0x32'),_0x3603db);}_0x2b362d(null,_0xa10c1);});}});}});};AGIVertices[_0xa24c('0x11')]['getSmsAccount']=function(_0x56f392,_0x2a9317){this[_0xa24c('0xf')][_0xa24c('0x33')](_0x56f392)[_0xa24c('0x14')](function(_0x43beff){_0x2a9317(null,_0x43beff?_0x43beff:![]);})['catch'](function(_0x171c51){_0x2a9317(_0x171c51);});};AGIVertices[_0xa24c('0x11')]['createSmsMessage']=function(_0x599627,_0xba7407){this[_0xa24c('0xf')][_0xa24c('0x34')](_0x599627)['then'](function(_0x58ac8b){_0xba7407(null,_0x58ac8b);})[_0xa24c('0x16')](function(_0x32af67){_0xba7407(_0x32af67);});};AGIVertices[_0xa24c('0x11')][_0xa24c('0x35')]=function(_0x3f640e,_0x1b7faf,_0x23d1e0){this[_0xa24c('0xf')]['createSquareDetailsReport']({'uniqueid':this['channel'][_0xa24c('0x36')],'node':_0x3f640e[_0xa24c('0x37')],'application':_0x3f640e[_0xa24c('0x38')],'data':_0x1b7faf||null,'project_name':this['channel'][_0xa24c('0x39')],'callerid':this[_0xa24c('0x3a')][_0xa24c('0x3b')]})[_0xa24c('0x14')](function(_0x442ede){if(_0x23d1e0){_0x23d1e0(null,_0x442ede);}})[_0xa24c('0x16')](function(_0x1e7e97){if(_0x23d1e0){_0x23d1e0(_0x1e7e97);}});};AGIVertices[_0xa24c('0x11')][_0xa24c('0x3c')]=function(_0x320582,_0x4bbf93,_0xb8c7a5,_0x183107){this[_0xa24c('0xf')]['createSquareRecording']({'uniqueid':this[_0xa24c('0x3a')][_0xa24c('0x36')],'callerid':this[_0xa24c('0x3a')][_0xa24c('0x3b')],'calleridname':this[_0xa24c('0x3a')][_0xa24c('0x3d')],'context':this[_0xa24c('0x3a')][_0xa24c('0x3e')],'extension':this[_0xa24c('0x3a')][_0xa24c('0x3f')],'priority':this[_0xa24c('0x3a')]['priority'],'accountcode':this[_0xa24c('0x3a')][_0xa24c('0x40')],'dnid':this[_0xa24c('0x3a')][_0xa24c('0x41')],'projectName':this[_0xa24c('0x3a')][_0xa24c('0x39')],'saveName':_0x4bbf93,'filename':_0x320582[_0xa24c('0x42')]||_0x4bbf93,'savePath':_0xb8c7a5})[_0xa24c('0x14')](function(_0x184179){_0x183107(null,_0x184179);})['catch'](function(_0x540da8){_0x183107(_0x540da8);});};AGIVertices[_0xa24c('0x11')]['createSquareMessage']=function(_0xc078ef,_0x1f436c,_0x4ec677,_0x24b3df,_0x2bf401){this[_0xa24c('0xf')]['createSquareMessage']({'uniqueid':this['channel'][_0xa24c('0x36')],'body':_0xc078ef,'direction':_0x1f436c,'providerName':_0x4ec677,'providerResponse':_0x24b3df})['then'](function(_0x4769a1){if(_0x2bf401){_0x2bf401(null,_0x4769a1);}})[_0xa24c('0x16')](function(_0x3c3c8b){if(_0x2bf401){_0x2bf401(_0x3c3c8b);}});};AGIVertices[_0xa24c('0x11')][_0xa24c('0x43')]=function(_0x1fa739,_0x3f3ce6){this[_0xa24c('0xf')][_0xa24c('0x43')]({'firstName':_[_0xa24c('0x44')](_0x1fa739['name'])||_[_0xa24c('0x45')](_0x1fa739[_0xa24c('0x15')])?_0xa24c('0x46')+Math['random']():_0x1fa739['name'],'lastName':_['isEmpty'](_0x1fa739[_0xa24c('0x47')])||_['isNil'](_0x1fa739[_0xa24c('0x47')])?null:_0x1fa739[_0xa24c('0x47')],'phone':_0x1fa739['phone'],'ListId':_0x1fa739[_0xa24c('0x48')],'scheduledat':_0x1fa739[_0xa24c('0x49')],'callbackUniqueid':this[_0xa24c('0x3a')][_0xa24c('0x36')],'tags':_0xa24c('0x4a'),'description':_0xa24c('0x4b')+_0x1fa739[_0xa24c('0x49')][_0xa24c('0x4c')](),'priority':_0x1fa739['callback_priority']})[_0xa24c('0x14')](function(_0x47af80){_0x3f3ce6(null,_0x47af80);})['catch'](function(_0x565f0a){_0x3f3ce6(_0x565f0a);});};AGIVertices['prototype']['getPause']=function(_0x15e21f,_0x4bb0db){this[_0xa24c('0xf')][_0xa24c('0x4d')](_0x15e21f)[_0xa24c('0x14')](function(_0x1a5f17){_0x4bb0db(null,_0x1a5f17?_0x1a5f17[_0xa24c('0x15')]:![]);})[_0xa24c('0x16')](function(_0x6f5aad){_0x4bb0db(_0x6f5aad);});};AGIVertices[_0xa24c('0x11')][_0xa24c('0x4e')]=function(_0x3de0e3,_0x303b7d,_0x37dbbd){var _0x358b48={'role':_0xa24c('0x4f')};_0x358b48[_0x3de0e3]=this[_0xa24c('0x3a')]['callerid'];this[_0xa24c('0xf')][_0xa24c('0x4e')](_0x358b48,_0x303b7d,this['channel'][_0xa24c('0x36')])[_0xa24c('0x14')](function(_0x31a208){_0x37dbbd(null,_[_0xa24c('0x45')](_0x31a208)?![]:!![]);})['catch'](function(_0x4ba64a){logger[_0xa24c('0x31')](_0x4ba64a);_0x37dbbd(null,![]);});};AGIVertices['prototype']['agentUnpause']=function(_0x3549fe,_0x2515b1){var _0x120b38={'role':_0xa24c('0x4f')};_0x120b38[_0x3549fe]=this['channel']['callerid'];this[_0xa24c('0xf')]['agentUnpause'](_0x120b38)['then'](function(_0xfcc193){_0x2515b1(null,_[_0xa24c('0x45')](_0xfcc193)?![]:!![]);})[_0xa24c('0x16')](function(_0x54528f){logger[_0xa24c('0x31')](_0x54528f);_0x2515b1(null,![]);});};AGIVertices[_0xa24c('0x11')]['agentLogout']=function(_0x37d4da,_0x3f306d){var _0x3096bf={'role':'agent'};_0x3096bf[_0x37d4da]=this[_0xa24c('0x3a')][_0xa24c('0x3b')];this[_0xa24c('0xf')][_0xa24c('0x50')](_0x3096bf)[_0xa24c('0x14')](function(_0x4e89e4){_0x3f306d(null,_[_0xa24c('0x45')](_0x4e89e4)?![]:!![]);})[_0xa24c('0x16')](function(_0x1e2da8){logger[_0xa24c('0x31')](_0x1e2da8);_0x3f306d(null,![]);});};AGIVertices[_0xa24c('0x11')][_0xa24c('0x51')]=function(_0x239c87,_0x4f4ed9){var _0x266a1e={'role':_0xa24c('0x4f')};_0x266a1e[_0x239c87]=this['channel'][_0xa24c('0x3b')];var _0x3e455b=_0x239c87!=_0xa24c('0x52')?util[_0xa24c('0x28')](_0xa24c('0x53'),_0xa24c('0x54'),this[_0xa24c('0x3a')][_0xa24c('0x3b')]):undefined;this[_0xa24c('0xf')][_0xa24c('0x51')](_0x266a1e,_0x3e455b)['then'](function(_0x2771a1){_0x4f4ed9(null,_[_0xa24c('0x45')](_0x2771a1)?![]:!![]);})[_0xa24c('0x16')](function(_0x5e52f4){logger[_0xa24c('0x31')](_0x5e52f4);_0x4f4ed9(null,![]);});};AGIVertices[_0xa24c('0x11')][_0xa24c('0x55')]=function(_0x5023e3,_0x3ac3a0){sh[_0xa24c('0x56')](_[_0xa24c('0x57')](_0x5023e3),function(_0xc0f2bc,_0x320901){var _0x2635c0=_0x320901['replace'](/(\r\n|\n|\r)/gm,'');_0x3ac3a0(null,_0x2635c0);});};AGIVertices['prototype'][_0xa24c('0x58')]=function(_0x4b281b,_0x16678e){scripts[_0xa24c('0x58')](_0x4b281b[_0xa24c('0x59')],_0x4b281b[_0xa24c('0x5a')]||_0xa24c('0x5b'),_0x4b281b['text'],_0x4b281b[_0xa24c('0x5c')]||_0xa24c('0x5d'),_0x4b281b[_0xa24c('0x5e')]||_0xa24c('0x5f'),_0x4b281b[_0xa24c('0x60')]||_0xa24c('0x61'))['then'](function(_0x34d8c8){_0x16678e(null,_0x34d8c8);})[_0xa24c('0x16')](function(_0x42b79b){_0x16678e(_0x42b79b);});};AGIVertices[_0xa24c('0x11')]['googleTTS']=function(_0x403bf1,_0x4d8e3a){scripts[_0xa24c('0x62')](_0x403bf1[_0xa24c('0x5b')],_0x403bf1[_0xa24c('0x63')]||'en',0x1)[_0xa24c('0x14')](function(_0x5726e1){_0x4d8e3a(null,_0x5726e1);})[_0xa24c('0x16')](function(_0x2f3afb){_0x4d8e3a(_0x2f3afb);});};AGIVertices['prototype'][_0xa24c('0x64')]=function(_0x168a8b,_0x135cef){var _0x3e0c08={'uri':_0x168a8b[_0xa24c('0x65')],'method':_0x168a8b[_0xa24c('0x66')],'json':!![],'resolveWithFullResponse':!![],'strictSSL':![],'timeout':typeof parseInt(_0x168a8b[_0xa24c('0x67')])===_0xa24c('0x68')&&parseInt(_0x168a8b['timeout'])>=0x1?parseInt(_0x168a8b[_0xa24c('0x67')])*0x3e8:0x5*0x3e8};if(_[_0xa24c('0x69')]([_0xa24c('0x6a'),_0xa24c('0x6b')],_0x3e0c08[_0xa24c('0x66')][_0xa24c('0x6c')]())){try{_0x3e0c08[_0xa24c('0x6d')]=_0x168a8b[_0xa24c('0xc')]?JSON[_0xa24c('0x6e')](_0x168a8b[_0xa24c('0xc')]):{};}catch(_0xc4aa48){logger['error'](_0xa24c('0x6f'),_0xc4aa48);}}try{_0x3e0c08[_0xa24c('0x70')]=_0x168a8b['rawHeaders']?JSON[_0xa24c('0x6e')](_0x168a8b[_0xa24c('0xb')]):{};}catch(_0x1f7c59){logger['error']('An\x20incorrect\x20formatted\x20json\x20headers\x20has\x20been\x20passed\x20to\x20the\x20function',_0x1f7c59);}if(_0x168a8b[_0xa24c('0x71')]){try{var _0x4c9b19=require(_0x168a8b['computedVariables'])[_0xa24c('0x72')](this,_0x3e0c08);_0x3e0c08[_0xa24c('0x73')]=Mustache[_0xa24c('0x74')](_0x168a8b[_0xa24c('0x65')],_0x4c9b19,{},['$$','$$']);if(_0x3e0c08[_0xa24c('0x70')]){_0x3e0c08[_0xa24c('0x70')]=JSON['parse'](Mustache['render'](JSON['stringify'](_0x3e0c08[_0xa24c('0x70')]),_0x4c9b19,{},['$$','$$']));}if(_0x3e0c08['body']){_0x3e0c08['body']=JSON[_0xa24c('0x6e')](Mustache[_0xa24c('0x74')](JSON[_0xa24c('0x75')](_0x3e0c08[_0xa24c('0x6d')]),_0x4c9b19,{},['$$','$$']));}}catch(_0x84ddcc){logger[_0xa24c('0x31')](_0xa24c('0x76'),_0x84ddcc);}}rp(_0x3e0c08)[_0xa24c('0x14')](function(_0x2544fc){var _0x4ee10d={'statusCode':_0x2544fc[_0xa24c('0x77')]||0xc8,'statusMessage':_0x2544fc[_0xa24c('0x78')]||'OK','headers':_0x2544fc[_0xa24c('0x70')]||{},'body':_0x2544fc[_0xa24c('0x6d')]||{}};_0x135cef(null,_0x4ee10d);})[_0xa24c('0x16')](function(_0x84aa80){var _0x8aabc1={'statusCode':_0x84aa80[_0xa24c('0x77')]||0x1f4,'statusMessage':_0x84aa80[_0xa24c('0x79')]||_0xa24c('0x7a'),'headers':_0x84aa80[_0xa24c('0x7b')][_0xa24c('0x70')]||{},'body':_0x84aa80['options'][_0xa24c('0x6d')]||{}};_0x135cef(null,_0x8aabc1);});};AGIVertices[_0xa24c('0x11')]['googleDialogflow']=function(_0x257941,_0x1a0afd){scripts[_0xa24c('0x7c')](this['channel'][_0xa24c('0x36')],_0x257941[_0xa24c('0x7d')],_0x257941['text'],_0x257941[_0xa24c('0x7e')]||'en')[_0xa24c('0x14')](function(_0x4c108f){_0x1a0afd(null,_0x4c108f);})['catch'](function(_0x124d52){_0x1a0afd(_0x124d52);});};AGIVertices[_0xa24c('0x11')][_0xa24c('0x7f')]=function(_0x10c89f,_0x4a9ec2){scripts[_0xa24c('0x7f')](this[_0xa24c('0x3a')][_0xa24c('0x36')],_0x10c89f['dialogflowV2_project_id'],_0x10c89f['client_email'],_0x10c89f[_0xa24c('0x80')],_0x10c89f[_0xa24c('0x5b')],_0x10c89f[_0xa24c('0x81')]||'en')['then'](function(_0x568cc4){_0x4a9ec2(null,_0x568cc4);})[_0xa24c('0x16')](function(_0x51e48a){_0x4a9ec2(_0x51e48a);});};AGIVertices['prototype']['sestekNDA']=function(_0xdff1eb,_0x2c47bf){scripts[_0xa24c('0x82')](this[_0xa24c('0x3a')],_0xdff1eb)[_0xa24c('0x14')](function(_0x12836d){_0x2c47bf(null,_0x12836d);})[_0xa24c('0x16')](function(_0x2cb601){_0x2c47bf(_0x2cb601);});};AGIVertices[_0xa24c('0x11')][_0xa24c('0x83')]=function(_0x1c172c,_0x24b28c){scripts['ispeechTTS'](_0x1c172c[_0xa24c('0x7d')],_0x1c172c[_0xa24c('0x5b')],_0x1c172c['ispeech_tts_language']||_0xa24c('0x5d'),_0x1c172c['speed'])['then'](function(_0x574d37){_0x24b28c(null,_0x574d37);})[_0xa24c('0x16')](function(_0x4831d8){_0x24b28c(_0x4831d8);});};AGIVertices[_0xa24c('0x11')]['ispeechASR']=function(_0x22b445,_0x144c3b,_0x53bd12){scripts[_0xa24c('0x84')](_0x144c3b,_0x22b445['key'],_0x22b445[_0xa24c('0x85')]||_0xa24c('0x5d'),this[_0xa24c('0x86')](_0x22b445[_0xa24c('0x87')])?_0x22b445[_0xa24c('0x87')]:undefined)['then'](function(_0x2e38e6){_0x53bd12(null,_0x2e38e6);})['catch'](function(_0xf26277){_0x53bd12(_0xf26277);});};AGIVertices[_0xa24c('0x11')][_0xa24c('0x88')]=function(_0x23eca5,_0x4b848d){scripts[_0xa24c('0x88')](_0x23eca5[_0xa24c('0x89')],_0x23eca5[_0xa24c('0x8a')],_0x23eca5[_0xa24c('0x8b')],_0x23eca5['aws_polly_voice']||_0xa24c('0x8c'),_0x23eca5[_0xa24c('0x5b')],_0x23eca5[_0xa24c('0x8d')]||_0xa24c('0x5b'))[_0xa24c('0x14')](function(_0x35f9bd){_0x4b848d(null,_0x35f9bd);})[_0xa24c('0x16')](function(_0x4654f0){_0x4b848d(_0x4654f0);});};AGIVertices[_0xa24c('0x11')][_0xa24c('0x8e')]=function(_0x627114,_0x18f844){scripts[_0xa24c('0x8e')](this['channel'][_0xa24c('0x36')],_0x627114[_0xa24c('0x89')],_0x627114[_0xa24c('0x8a')],_0x627114[_0xa24c('0x8f')],_0x627114[_0xa24c('0x5b')],_0x627114[_0xa24c('0x90')])[_0xa24c('0x14')](function(_0x11be9f){_0x18f844(null,_0x11be9f);})['catch'](function(_0x264bc9){_0x18f844(_0x264bc9);});};AGIVertices[_0xa24c('0x11')][_0xa24c('0x91')]=function(_0x29753f,_0x20bc16,_0x8f1f6b){scripts[_0xa24c('0x91')](_0x20bc16,_0x29753f['key'],_0x29753f[_0xa24c('0x92')]||_0xa24c('0x5d'))[_0xa24c('0x14')](function(_0x1ef892){_0x8f1f6b(null,_0x1ef892);})[_0xa24c('0x16')](function(_0xb5a39a){_0x8f1f6b(_0xb5a39a);});};AGIVertices[_0xa24c('0x11')][_0xa24c('0x93')]=function(_0x372811,_0x13f38e,_0x5b3196){scripts[_0xa24c('0x93')](_0x13f38e,_0x372811[_0xa24c('0x94')],_0x372811[_0xa24c('0x95')],_0x372811[_0xa24c('0x73')])[_0xa24c('0x14')](function(_0x462d4a){_0x5b3196(null,_0x462d4a);})[_0xa24c('0x16')](function(_0x406854){_0x5b3196(_0x406854);});};AGIVertices['prototype'][_0xa24c('0x96')]=function(_0x4d7d5e){var _0x5e4d27=_['includes'](verticesWithRetry,_0x4d7d5e['agicommand'])?_0x4d7d5e:_[_0xa24c('0x97')](_0x4d7d5e);for(var _0x3791eb in _0x5e4d27){if(_0x5e4d27[_0xa24c('0x98')](_0x3791eb)){if(_0x5e4d27[_0x3791eb]&&_[_0xa24c('0x99')](_0x5e4d27[_0x3791eb])){if(_[_0xa24c('0x69')](recursiveMapAttributes,_0x3791eb)){_0x5e4d27[_0x3791eb]=this['replaceObjectAllVariables'](_0x5e4d27[_0x3791eb]);}else{_0x5e4d27[_0x3791eb]=this[_0xa24c('0x9a')](_0x5e4d27[_0x3791eb]);}}}}return _0x5e4d27;};AGIVertices[_0xa24c('0x11')][_0xa24c('0x9b')]=function(_0xc9810a){for(var _0xdac03 in _0xc9810a){if(_0xc9810a[_0xa24c('0x98')](_0xdac03)){if(_[_0xa24c('0x9c')](_0xc9810a[_0xdac03])){this[_0xa24c('0x9b')](_0xc9810a[_0xdac03]);}else if(_[_0xa24c('0x9d')](_0xc9810a[_0xdac03])){for(var _0x523ec2=0x0;_0x523ec2<_0xc9810a[_0xdac03][_0xa24c('0x9e')];_0x523ec2++){this[_0xa24c('0x9b')](_0xc9810a[_0xdac03][_0x523ec2]);}}else if(_[_0xa24c('0x99')](_0xc9810a[_0xdac03])){_0xc9810a[_0xdac03]=this[_0xa24c('0x9a')](_0xc9810a[_0xdac03]);}}}};AGIVertices[_0xa24c('0x11')]['saveRestApiResult']=function(_0x35b314,_0x161d6d){for(var _0x410b10 in _0x35b314){if(_0x35b314['hasOwnProperty'](_0x410b10)){if(_[_0xa24c('0x9c')](_0x35b314[_0x410b10])){if(!_[_0xa24c('0x44')](_0x35b314[_0x410b10])){this[_0xa24c('0x9f')](_0x35b314[_0x410b10],util[_0xa24c('0x28')](_0xa24c('0xa0'),_0x161d6d,_0x410b10));}}else if(_['isArray'](_0x35b314[_0x410b10])){for(var _0x56a345=0x0;_0x56a345<_0x35b314[_0x410b10][_0xa24c('0x9e')];_0x56a345++){this['saveRestApiResult'](_0x35b314[_0x410b10][_0x56a345],util[_0xa24c('0x28')](_0xa24c('0xa0'),_0x161d6d,_0x410b10+'['+_0x56a345+']'));}}else{if(!_['isNil'](_0x35b314[_0x410b10])){this[_0xa24c('0x3a')][_0xa24c('0xa1')](util[_0xa24c('0x28')](_0xa24c('0xa0'),_0x161d6d,_0x410b10),_0x35b314[_0x410b10]);}}}}};AGIVertices[_0xa24c('0x11')][_0xa24c('0xa2')]=function(_0x5a0fdb){try{var _0x250509=JSON[_0xa24c('0x6e')](_0x5a0fdb);this[_0xa24c('0x9b')](_0x250509);return JSON[_0xa24c('0x75')](_0x250509);}catch(_0x5583a3){return this[_0xa24c('0x9a')](_0x5a0fdb);}};AGIVertices[_0xa24c('0x11')][_0xa24c('0x9a')]=function(_0x3dfca8){var _0x13cf59=_0x3dfca8[_0xa24c('0xa3')]('{');for(var _0x19bf4e=0x1;_0x19bf4e<_0x13cf59['length'];_0x19bf4e+=0x1){var _0x19cb04=_0x13cf59[_0x19bf4e][_0xa24c('0xa3')]('}');if(_0x19cb04[_0xa24c('0x9e')]>0x1){_0x3dfca8=_0x3dfca8['replaceAll']('{'+_0x19cb04[0x0]+'}',this['channel'][_0xa24c('0x12')](_0x19cb04[0x0])[_0xa24c('0xa4')]||_0x19cb04[0x0]);}}if(_0x13cf59[_0xa24c('0x9e')]===0x1){return _0x3dfca8['toString']();}return this[_0xa24c('0x9a')](_0x3dfca8);};AGIVertices['prototype']['getAndSetVariable']=function(_0x29122e,_0x2463b8){var _0x3d7917=this[_0xa24c('0x3a')][_0xa24c('0x12')](_0x29122e);if(_0x3d7917[_0xa24c('0xa5')]===-0x1){return _0x3d7917;}logger[_0xa24c('0x2e')](util[_0xa24c('0x28')](_0xa24c('0xa6'),_0x2463b8,_0x3d7917['extra']));return this[_0xa24c('0x3a')][_0xa24c('0xa1')](_0x2463b8,_0x3d7917[_0xa24c('0xa4')]);};AGIVertices[_0xa24c('0x11')][_0xa24c('0x86')]=function(_0x1953ee){return _0x1953ee&&_0x1953ee!=='0'&&_0x1953ee!=='-1'&&_0x1953ee!=='';};AGIVertices['prototype']['maxRetry']=function(_0x1be9b0){this[_0xa24c('0x35')][_0xa24c('0x72')](this,_0x1be9b0,'-');_0x1be9b0[_0xa24c('0xa7')]=_0x1be9b0[_0xa24c('0xa8')];return{'code':0xc8,'result':'-'};};AGIVertices[_0xa24c('0x11')]['mrcpsynth']=function(_0xa1593f){logger['info'](util[_0xa24c('0x28')](_0xa24c('0xa9'),_0xa1593f[_0xa24c('0x37')]));if(!this[_0xa24c('0x86')](_0xa1593f[_0xa24c('0x5b')])){return this['channel'][_0xa24c('0xaa')](_0xa24c('0xab'));}var _0x36521a='\x22'+_0xa1593f['text']+'\x22';if(this[_0xa24c('0x86')](_0xa1593f[_0xa24c('0x7b')])){_0x36521a+=','+_0xa1593f[_0xa24c('0x7b')];}var _0x21596a=this['channel']['exec'](_0xa24c('0xac'),_0x36521a);if(_0x21596a[_0xa24c('0xa5')]===-0x1){return _0x21596a;}return this['channel'][_0xa24c('0xaa')](util[_0xa24c('0x28')](_0xa24c('0xad'),_0x36521a));};AGIVertices['prototype'][_0xa24c('0xae')]=function(_0x15d0c3){logger['info'](util['format']('Enter\x20in\x20MRCPRecog\x20(%s)\x20block',_0x15d0c3[_0xa24c('0x37')]));if(!this[_0xa24c('0x86')](_0x15d0c3[_0xa24c('0xaf')])){return this['channel']['noop'](_0xa24c('0xb0'));}var _0x660dd2=_0x15d0c3[_0xa24c('0xaf')];if(this[_0xa24c('0x86')](_0x15d0c3[_0xa24c('0x7b')])){_0x660dd2+=','+_0x15d0c3['options'];}var _0x4eba7d=this[_0xa24c('0x3a')][_0xa24c('0x56')](_0xa24c('0xb1'),_0x660dd2);if(_0x4eba7d[_0xa24c('0xa5')]===-0x1){return _0x4eba7d;}var _0x25a5da=this['getAndSetVariable'](_0xa24c('0xb2'),_0xa24c('0xb3'));if(_0x25a5da[_0xa24c('0xa5')]===-0x1){return _0x25a5da;}var _0x47c049=this[_0xa24c('0xb4')]('RECOG_INPUT()',_0xa24c('0xb5'));if(_0x47c049[_0xa24c('0xa5')]===-0x1){return _0x47c049;}var _0x54be0a=this[_0xa24c('0xb4')](_0xa24c('0xb6'),_0xa24c('0xb7'));if(_0x54be0a[_0xa24c('0xa5')]===-0x1){return _0x54be0a;}return this[_0xa24c('0x3a')][_0xa24c('0xaa')](util[_0xa24c('0x28')](_0xa24c('0xb8'),_0x660dd2));};AGIVertices[_0xa24c('0x11')]['agi']=function(_0x1a124f){logger[_0xa24c('0x2e')](util[_0xa24c('0x28')](_0xa24c('0xb9'),_0x1a124f['label']));return this[_0xa24c('0x3a')]['agi']([_0x1a124f[_0xa24c('0xba')],_0x1a124f[_0xa24c('0xbb')]]);};AGIVertices[_0xa24c('0x11')][_0xa24c('0xbc')]=function(_0x3f7f62){logger['info'](util[_0xa24c('0x28')](_0xa24c('0xbd'),_0x3f7f62['label']));if(this[_0xa24c('0x86')](_0x3f7f62[_0xa24c('0x67')])){logger[_0xa24c('0x2e')](util[_0xa24c('0x28')](_0xa24c('0xbe'),_0x3f7f62['timeout']));var _0xe72270=this[_0xa24c('0x3a')][_0xa24c('0xbf')](_0x3f7f62['timeout']);if(_0xe72270[_0xa24c('0xa5')]===-0x1){return _0xe72270;}}return this[_0xa24c('0x3a')][_0xa24c('0xbc')]();};AGIVertices['prototype'][_0xa24c('0x4a')]=function(_0x4c0222){logger[_0xa24c('0x2e')](util[_0xa24c('0x28')]('Enter\x20in\x20CALLBACK\x20(%s)\x20block',_0x4c0222['label']));if(!this[_0xa24c('0x86')](_0x4c0222[_0xa24c('0x48')])){return this[_0xa24c('0x3a')][_0xa24c('0x31')](_0x4c0222,'no\x20list\x20selected');}_0x4c0222[_0xa24c('0x49')]=moment();if(this[_0xa24c('0x86')](_0x4c0222[_0xa24c('0xc0')])){_0x4c0222[_0xa24c('0x49')]=moment()[_0xa24c('0xc1')](_0x4c0222[_0xa24c('0xc0')],_0xa24c('0xc2'));}if(!this['isConfigured'](_0x4c0222[_0xa24c('0xc3')])){_0x4c0222['callback_priority']=0x2;}this[_0xa24c('0x43')][_0xa24c('0x72')](this,_0x4c0222);return this[_0xa24c('0x3a')][_0xa24c('0xaa')](util['format'](_0xa24c('0xc4'),_0x4c0222[_0xa24c('0xc5')],_0x4c0222[_0xa24c('0x48')],_0x4c0222[_0xa24c('0x49')]));};AGIVertices['prototype']['custom_app']=function(_0x82b59b){logger['info'](util[_0xa24c('0x28')](_0xa24c('0xc6'),_0x82b59b['label']));var _0x1a8800=this[_0xa24c('0x3a')]['exec'](_0x82b59b[_0xa24c('0xc7')],_0x82b59b['options']);if(_0x1a8800[_0xa24c('0xa5')]===-0x1){return _0x1a8800;}return this[_0xa24c('0x3a')][_0xa24c('0xaa')](util['format'](_0xa24c('0xc8'),_0x82b59b[_0xa24c('0xc7')],_0x82b59b['options']));};AGIVertices[_0xa24c('0x11')][_0xa24c('0xc9')]=function(_0x4a67c1){logger[_0xa24c('0x2e')](util[_0xa24c('0x28')](_0xa24c('0xca'),_0x4a67c1[_0xa24c('0x37')]));if(!this[_0xa24c('0x86')](_0x4a67c1[_0xa24c('0x5b')])){return this[_0xa24c('0x3a')]['noop'](_0xa24c('0xab'));}var _0x34c44b='\x22'+_0x4a67c1[_0xa24c('0x5b')]+'\x22';if(this[_0xa24c('0x86')](_0x4a67c1[_0xa24c('0x7b')])){_0x34c44b+=','+_0x4a67c1[_0xa24c('0x7b')];}var _0x2468d5=this[_0xa24c('0x3a')][_0xa24c('0x56')]('MRCPSynth',_0x34c44b);if(_0x2468d5[_0xa24c('0xa5')]===-0x1){return _0x2468d5;}return this['channel'][_0xa24c('0xaa')](util['format'](_0xa24c('0xad'),_0x34c44b));};AGIVertices[_0xa24c('0x11')][_0xa24c('0xcb')]=function(_0x246481){logger[_0xa24c('0x2e')](util[_0xa24c('0x28')]('Enter\x20in\x20SESTEKTTS\x20(%s)\x20block',_0x246481['label']));if(!this['isConfigured'](_0x246481[_0xa24c('0x5b')])){return this[_0xa24c('0x3a')][_0xa24c('0xaa')](_0xa24c('0xab'));}var _0x247f18='\x22'+_0x246481['text']+'\x22';if(this[_0xa24c('0x86')](_0x246481[_0xa24c('0x7b')])){_0x247f18+=','+_0x246481[_0xa24c('0x7b')];}var _0x12c86f=this[_0xa24c('0x3a')]['exec'](_0xa24c('0xac'),_0x247f18);if(_0x12c86f[_0xa24c('0xa5')]===-0x1){return _0x12c86f;}return this[_0xa24c('0x3a')]['noop'](util[_0xa24c('0x28')](_0xa24c('0xad'),_0x247f18));};AGIVertices[_0xa24c('0x11')][_0xa24c('0xcc')]=function(_0x3ff537){logger['info'](util[_0xa24c('0x28')](_0xa24c('0xcd'),_0x3ff537[_0xa24c('0x37')]));if(!this[_0xa24c('0x86')](_0x3ff537[_0xa24c('0xaf')])){return this[_0xa24c('0x3a')][_0xa24c('0xaa')]('no\x20grammar\x20configured');}var _0x59dbb0=_0x3ff537[_0xa24c('0xaf')];if(this['isConfigured'](_0x3ff537[_0xa24c('0x7b')])){_0x59dbb0+=','+_0x3ff537['options'];}var _0x4ab618=this['channel'][_0xa24c('0x56')]('MRCPRecog',_0x59dbb0);if(_0x4ab618[_0xa24c('0xa5')]===-0x1){return _0x4ab618;}var _0xd5f1c2=this['getAndSetVariable'](_0xa24c('0xb2'),_0xa24c('0xce'));if(_0xd5f1c2['result']===-0x1){return _0xd5f1c2;}var _0x5986c9=this[_0xa24c('0xb4')](_0xa24c('0xcf'),_0xa24c('0xd0'));if(_0x5986c9['result']===-0x1){return _0x5986c9;}var _0x3dbe8f=this[_0xa24c('0xb4')](_0xa24c('0xb6'),_0xa24c('0xd1'));if(_0x3dbe8f[_0xa24c('0xa5')]===-0x1){return _0x3dbe8f;}return this[_0xa24c('0x3a')][_0xa24c('0xaa')](util[_0xa24c('0x28')](_0xa24c('0xb8'),_0x59dbb0));};AGIVertices['prototype'][_0xa24c('0xd2')]=function(_0x1c3682){logger[_0xa24c('0x2e')](util[_0xa24c('0x28')](_0xa24c('0xd3'),_0x1c3682[_0xa24c('0x37')]));if(!this[_0xa24c('0x86')](_0x1c3682[_0xa24c('0xaf')])){return this[_0xa24c('0x3a')]['noop'](_0xa24c('0xb0'));}var _0x20ea76=_0x1c3682[_0xa24c('0xaf')];if(this[_0xa24c('0x86')](_0x1c3682[_0xa24c('0x7b')])){_0x20ea76+=','+_0x1c3682['options'];}var _0x352aa6=this[_0xa24c('0x3a')][_0xa24c('0x56')]('MRCPRecog',_0x20ea76);if(_0x352aa6['result']===-0x1){return _0x352aa6;}var _0x4165d3=this['getAndSetVariable']('RECOG_CONFIDENCE()',_0xa24c('0xd4'));if(_0x4165d3[_0xa24c('0xa5')]===-0x1){return _0x4165d3;}var _0x37f5a9=this[_0xa24c('0xb4')](_0xa24c('0xcf'),_0xa24c('0xd5'));if(_0x37f5a9[_0xa24c('0xa5')]===-0x1){return _0x37f5a9;}var _0x132ab1=this[_0xa24c('0xb4')](_0xa24c('0xb6'),_0xa24c('0xd6'));if(_0x132ab1[_0xa24c('0xa5')]===-0x1){return _0x132ab1;}return this['channel'][_0xa24c('0xaa')](util[_0xa24c('0x28')](_0xa24c('0xb8'),_0x20ea76));};AGIVertices[_0xa24c('0x11')][_0xa24c('0xd7')]=function(_0x2baf99){logger[_0xa24c('0x2e')](util[_0xa24c('0x28')](_0xa24c('0xd8'),_0x2baf99[_0xa24c('0x37')]));if(!this[_0xa24c('0x86')](_0x2baf99['odbc_id'])){return this[_0xa24c('0x3a')][_0xa24c('0x31')](_0x2baf99,_0xa24c('0xd9'));}var _0x44ae9c=this[_0xa24c('0x1a')][_0xa24c('0x72')](this,_0x2baf99[_0xa24c('0xda')]);if(!_0x44ae9c){return this[_0xa24c('0x3a')][_0xa24c('0x31')](_0x2baf99,'no\x20odbc\x20database\x20found');}if(!this[_0xa24c('0x86')](_0x2baf99[_0xa24c('0x2d')])){return this[_0xa24c('0x3a')][_0xa24c('0x31')](_0x2baf99,_0xa24c('0xdb'));}var _0x5aecd0=_0x2baf99[_0xa24c('0x2d')][_0xa24c('0xdc')](/(\r\n|\n|\r)/gm,'\x20');this[_0xa24c('0x3a')][_0xa24c('0xaa')](util[_0xa24c('0x28')](_0xa24c('0xdd'),_0x5aecd0));var _0x1203d3=this['getQueryOdbc']['sync'](this,_0x44ae9c,_0x5aecd0);this['createSquareDetailsReport'][_0xa24c('0x72')](this,_0x2baf99,_0x5aecd0);if(!this[_0xa24c('0x86')](_0x2baf99['variable_id'])){return this[_0xa24c('0x3a')][_0xa24c('0xaa')](_0xa24c('0xde'));}var _0x1f4fd5=this[_0xa24c('0x12')]['sync'](this,_0x2baf99[_0xa24c('0xdf')]);if(!_0x1f4fd5){return this[_0xa24c('0x3a')]['error'](_0x2baf99,_0xa24c('0xe0'));}var _0x46b29e=this;_0x1203d3[_0xa24c('0xe1')](function(_0x2ebb57,_0xbbe647){Object[_0xa24c('0xe2')](_0x2ebb57)[_0xa24c('0xe1')](function(_0x3e0842){_0x46b29e[_0xa24c('0x3a')][_0xa24c('0xa1')](util[_0xa24c('0x28')](_0xa24c('0xe3'),_0x1f4fd5,_0xbbe647,_0x3e0842),_0x2ebb57[_0x3e0842]);});});this[_0xa24c('0x3a')][_0xa24c('0xa1')](util['format']('%s_ROWS_COUNT',_0x1f4fd5),_0x1203d3[_0xa24c('0x9e')]);return this[_0xa24c('0x3a')][_0xa24c('0xaa')](util[_0xa24c('0x28')](_0xa24c('0xe4'),_0x1f4fd5));};AGIVertices[_0xa24c('0x11')][_0xa24c('0xe5')]=function(_0x404104){logger[_0xa24c('0xe6')](util['format'](_0xa24c('0xe7'),_0x404104[_0xa24c('0x37')]));if(!this[_0xa24c('0x86')](_0x404104[_0xa24c('0xe8')])){return this[_0xa24c('0x3a')]['error'](_0x404104,_0xa24c('0xe9'));}var _0x110371=this['getUser'][_0xa24c('0x72')](this,_0x404104[_0xa24c('0xe8')]);if(!_0x110371){return this[_0xa24c('0x3a')]['error'](_0x404104,_0xa24c('0xea'));}var _0x1cec35=this[_0xa24c('0x3a')][_0xa24c('0x56')](_0xa24c('0xeb'),[util[_0xa24c('0x28')](_0xa24c('0xec'),_0x110371),_0x404104[_0xa24c('0x67')],_0x404104[_0xa24c('0xed')],_0x404104[_0xa24c('0x65')]]);if(_0x1cec35[_0xa24c('0xa5')]===-0x1){return _0x1cec35;}return this[_0xa24c('0x3a')]['noop'](util['format'](_0xa24c('0xee'),_0xa24c('0xeb')));};AGIVertices[_0xa24c('0x11')][_0xa24c('0xef')]=function(_0xba4e20){logger[_0xa24c('0x2e')](util[_0xa24c('0x28')](_0xa24c('0xf0'),_0xba4e20[_0xa24c('0x37')]));if(!this[_0xa24c('0x86')](_0xba4e20[_0xa24c('0x7d')])){return this[_0xa24c('0x3a')]['noop'](_0xa24c('0xf1'));}if(!this[_0xa24c('0x86')](_0xba4e20['text'])){return this[_0xa24c('0x3a')][_0xa24c('0xaa')](_0xa24c('0xab'));}this['channel'][_0xa24c('0xf2')]=!![];this['createSquareDetailsReport'](_0xba4e20);this[_0xa24c('0xf3')](_0xba4e20[_0xa24c('0x5b')],'in','','');this[_0xa24c('0x3a')][_0xa24c('0xaa')](util[_0xa24c('0x28')](_0xa24c('0xf4'),_0xba4e20[_0xa24c('0x5b')]));var _0x226c17=this['googleDialogflow']['sync'](this,_0xba4e20);if(_0x226c17){for(var _0x35df53 in _0x226c17){if(_0x226c17['hasOwnProperty'](_0x35df53)){this[_0xa24c('0x3a')][_0xa24c('0xa1')](util[_0xa24c('0x28')](_0xa24c('0xf5'),_0x35df53['toUpperCase']()),_0x226c17[_0x35df53]);}}this['createSquareMessage'](_0x226c17['speech'],_0xa24c('0xf6'),'dialogflow','');return this[_0xa24c('0x3a')][_0xa24c('0xaa')](util[_0xa24c('0x28')](_0xa24c('0xf7'),_0x226c17[_0xa24c('0xf8')]));}return this[_0xa24c('0x3a')][_0xa24c('0x31')](_0xba4e20,_0xa24c('0xf9'));};AGIVertices[_0xa24c('0x11')][_0xa24c('0xfa')]=function(_0x59e0a3){logger['info'](util['format'](_0xa24c('0xfb'),_0x59e0a3['label']));if(!this[_0xa24c('0x86')](_0x59e0a3[_0xa24c('0xfc')])){return this[_0xa24c('0x3a')][_0xa24c('0xaa')](_0xa24c('0xfd'));}if(!this['isConfigured'](_0x59e0a3[_0xa24c('0xfe')])){return this[_0xa24c('0x3a')][_0xa24c('0xaa')](_0xa24c('0xff'));}if(!this[_0xa24c('0x86')](_0x59e0a3['private_key'])){return this[_0xa24c('0x3a')][_0xa24c('0xaa')]('no\x20private_key\x20configured');}if(!this[_0xa24c('0x86')](_0x59e0a3['dialogflowV2_language'])){return this[_0xa24c('0x3a')][_0xa24c('0xaa')]('no\x20anguage\x20configured');}if(!this[_0xa24c('0x86')](_0x59e0a3[_0xa24c('0x5b')])){return this[_0xa24c('0x3a')][_0xa24c('0xaa')]('no\x20text\x20configured');}this['channel'][_0xa24c('0xf2')]=!![];this[_0xa24c('0x35')](_0x59e0a3);this[_0xa24c('0xf3')](_0x59e0a3[_0xa24c('0x5b')],'in','','');this['channel'][_0xa24c('0xaa')](util[_0xa24c('0x28')]('Trying\x20DialogflowV2:\x20%s',_0x59e0a3[_0xa24c('0x5b')]));var _0x38e1ff=this[_0xa24c('0x7f')][_0xa24c('0x72')](this,_0x59e0a3);if(_0x38e1ff){for(var _0x21e018 in _0x38e1ff){if(_0x38e1ff[_0xa24c('0x98')](_0x21e018)){if(_0x21e018!==_0xa24c('0x100')){this[_0xa24c('0x3a')][_0xa24c('0xa1')](util[_0xa24c('0x28')]('DIALOGFLOW_%s',_0x21e018['toUpperCase']()),_0x38e1ff[_0x21e018]);}}}this['createSquareMessage'](_0x38e1ff['speech'],_0xa24c('0xf6'),_0xa24c('0xfa'),_0x38e1ff[_0xa24c('0x100')]);return this[_0xa24c('0x3a')][_0xa24c('0xaa')](util['format'](_0xa24c('0x101'),_0x38e1ff['speech']));}return this['channel']['error'](_0x59e0a3,_0xa24c('0x102'));};AGIVertices['prototype'][_0xa24c('0x103')]=function(_0xadb53c){logger['info'](util[_0xa24c('0x28')](_0xa24c('0x104'),_0xadb53c[_0xa24c('0x37')]));if(!this[_0xa24c('0x86')](_0xadb53c[_0xa24c('0x105')])){return this[_0xa24c('0x3a')][_0xa24c('0xaa')](_0xa24c('0x106'));}if(!this[_0xa24c('0x86')](_0xadb53c['username'])){return this[_0xa24c('0x3a')][_0xa24c('0xaa')]('no\x20username\x20configured');}if(!this[_0xa24c('0x86')](_0xadb53c[_0xa24c('0x107')])){return this['channel'][_0xa24c('0xaa')](_0xa24c('0x108'));}if(!this['isConfigured'](_0xadb53c[_0xa24c('0x109')])){return this[_0xa24c('0x3a')]['noop'](_0xa24c('0xab'));}this[_0xa24c('0x3a')][_0xa24c('0xf2')]=!![];this[_0xa24c('0x35')](_0xadb53c);this['createSquareMessage'](_0xadb53c['text'],'in','','');this['channel'][_0xa24c('0xaa')](util[_0xa24c('0x28')]('Trying\x20SestekNDA:\x20%s',_0xadb53c['text']));var _0x305ee1=this[_0xa24c('0x82')][_0xa24c('0x72')](this,_0xadb53c);if(_0x305ee1){for(var _0x36f8a4 in _0x305ee1){if(_0x305ee1['hasOwnProperty'](_0x36f8a4)){this['channel']['setVariable'](util[_0xa24c('0x28')](_0xa24c('0x10a'),_0x36f8a4[_0xa24c('0x6c')]()),_0x305ee1[_0x36f8a4]);}}this[_0xa24c('0xf3')](_0x305ee1[_0xa24c('0xf8')],_0xa24c('0xf6'),_0xa24c('0x103'),'');if(_0x305ee1[_0xa24c('0x10b')]){this['channel'][_0xa24c('0xaa')](util[_0xa24c('0x28')](_0xa24c('0x10c'),_0x305ee1[_0xa24c('0x10b')]));var _0x12f041=this[_0xa24c('0x3a')][_0xa24c('0x10d')](_0x305ee1[_0xa24c('0x10b')]);try{fs[_0xa24c('0x10e')](_0x305ee1[_0xa24c('0x10b')]+_0xa24c('0x10f'));}catch(_0x17f7af){logger[_0xa24c('0x31')](_0x17f7af);}return _0x12f041;}else{return this[_0xa24c('0x3a')][_0xa24c('0xaa')](util[_0xa24c('0x28')](_0xa24c('0x110'),_0x305ee1[_0xa24c('0xf8')]));}}return this[_0xa24c('0x3a')][_0xa24c('0x31')](_0xadb53c,_0xa24c('0x111'));};AGIVertices[_0xa24c('0x11')][_0xa24c('0x112')]=function(_0x249eea){logger[_0xa24c('0x2e')](util['format'](_0xa24c('0x113'),_0x249eea['label']));return this[_0xa24c('0x3a')][_0xa24c('0xaa')](_0xa24c('0x112'));};AGIVertices[_0xa24c('0x11')][_0xa24c('0x114')]=function(_0x466134){logger['info'](util[_0xa24c('0x28')]('Enter\x20in\x20EXTERNAL\x20DIAL\x20(%s)\x20block',_0x466134[_0xa24c('0x37')]));var _0x599e0d='';if(_0x466134[_0xa24c('0x115')]){if(!this[_0xa24c('0x86')](_0x466134[_0xa24c('0x115')])){return this[_0xa24c('0x3a')][_0xa24c('0x31')](_0x466134,_0xa24c('0x116'));}else{var _0x304fbf=parseInt(_0x466134['trunk_id'],0xa);if(isNaN(_0x304fbf)){_0x599e0d=_0x466134[_0xa24c('0x115')];}else{_0x599e0d=this['getTrunk']['sync'](this,_0x466134[_0xa24c('0x115')]);if(!_0x599e0d){return this[_0xa24c('0x3a')]['error'](_0x466134,_0xa24c('0x117'));}}}}else if(_0x466134[_0xa24c('0x118')]){_0x599e0d=_0x466134[_0xa24c('0x118')];}else{return this[_0xa24c('0x3a')][_0xa24c('0x31')](_0x466134,_0xa24c('0x116'));}var _0x7d2199=this[_0xa24c('0x3a')][_0xa24c('0x56')](_0xa24c('0xeb'),[util[_0xa24c('0x28')](_0xa24c('0x119'),_0x599e0d,_0x466134[_0xa24c('0xc5')]),_0x466134['timeout'],_0x466134[_0xa24c('0xed')],_0x466134[_0xa24c('0x65')]]);if(_0x7d2199['result']===-0x1){return _0x7d2199;}return this[_0xa24c('0x3a')][_0xa24c('0xaa')](util[_0xa24c('0x28')]('Executed\x20command\x20%s',_0xa24c('0xeb')));};AGIVertices[_0xa24c('0x11')][_0xa24c('0x11a')]=function(_0x1bdc80){logger[_0xa24c('0x2e')](util[_0xa24c('0x28')]('Enter\x20in\x20FINALLY\x20(%s)\x20block',_0x1bdc80[_0xa24c('0x37')]));return this[_0xa24c('0x3a')]['noop'](_0xa24c('0x11a'));};AGIVertices[_0xa24c('0x11')]['getdigits']=function(_0x5f103d){logger[_0xa24c('0x2e')](util['format']('Enter\x20in\x20GETDIGITS\x20(%s)\x20block',_0x5f103d['label']));if(_0x5f103d[_0xa24c('0xa7')]===0x0){return this[_0xa24c('0xa8')](_0x5f103d);}_0x5f103d[_0xa24c('0xa7')]-=0x1;if(!this[_0xa24c('0x86')](_0x5f103d[_0xa24c('0x11b')])){return this[_0xa24c('0x3a')][_0xa24c('0x31')](_0x5f103d,_0xa24c('0x11c'));}var _0x510e68=this['getSound'][_0xa24c('0x72')](this,_0x5f103d[_0xa24c('0x11b')]);if(!_0x510e68){return this['channel'][_0xa24c('0x31')](_0x5f103d,_0xa24c('0x11d'));}if(!this[_0xa24c('0x86')](_0x5f103d[_0xa24c('0xdf')])){return this['channel'][_0xa24c('0x31')](_0xa24c('0xde'));}var _0x3a5fb4=this[_0xa24c('0x3a')][_0xa24c('0x11e')](_0x510e68,_0x5f103d['response'],_0x5f103d[_0xa24c('0x11f')]);var _0x16d30b=_0x3a5fb4[_0xa24c('0xa5')]?_0x3a5fb4[_0xa24c('0xa5')]['toString']():'';logger['info'](_0xa24c('0x120'),JSON[_0xa24c('0x75')](_0x3a5fb4));if(_0x3a5fb4[_0xa24c('0xa5')]===-0x1){this['createSquareDetailsReport'][_0xa24c('0x72')](this,_0x5f103d,_0x16d30b);return _0x3a5fb4;}else if(_0x3a5fb4[_0xa24c('0xa4')]===_0xa24c('0x67')){_0x3a5fb4[_0xa24c('0xa5')]=_0x16d30b[_0xa24c('0x9e')]>=parseInt(_0x5f103d[_0xa24c('0x121')])?'x':'i';}else{_0x3a5fb4['result']=_0x16d30b[_0xa24c('0x9e')]>=parseInt(_0x5f103d['mindigit'])&&_0x16d30b[_0xa24c('0x9e')]<=parseInt(_0x5f103d[_0xa24c('0x11f')])?'x':'i';}var _0x32d22c=this[_0xa24c('0x12')][_0xa24c('0x72')](this,_0x5f103d[_0xa24c('0xdf')]);if(!_0x32d22c){return this[_0xa24c('0x3a')][_0xa24c('0x31')](_0x5f103d,_0xa24c('0xe0'));}this[_0xa24c('0x3a')][_0xa24c('0xa1')](_0x32d22c,_0x16d30b);if(this['isConfigured'](_0x5f103d[_0xa24c('0x122')])){var _0x367603=parseInt(_0x5f103d[_0xa24c('0x122')],0xa);var _0x5a7514=rs[_0xa24c('0x123')]({'charset':'*','length':_0x367603});var _0x380ecb=_0x16d30b[_0xa24c('0x9e')];if(_0x380ecb>0x0){if(_0x380ecb>_0x367603){this['createSquareDetailsReport'][_0xa24c('0x72')](this,_0x5f103d,_0x5f103d[_0xa24c('0x124')]===_0xa24c('0x125')?_0x5a7514+_0x16d30b[_0xa24c('0x126')](_0x367603):_0x16d30b[_0xa24c('0x126')](0x0,_0x380ecb-_0x367603)+_0x5a7514);}else{this['createSquareDetailsReport'][_0xa24c('0x72')](this,_0x5f103d,rs[_0xa24c('0x123')]({'charset':'*','length':_0x380ecb}));}}else{this[_0xa24c('0x35')]['sync'](this,_0x5f103d,'');}}else{this[_0xa24c('0x35')][_0xa24c('0x72')](this,_0x5f103d,_0x16d30b);}return _0x3a5fb4;};AGIVertices['prototype'][_0xa24c('0x127')]=function(_0x305e89){logger[_0xa24c('0x2e')](util[_0xa24c('0x28')]('Enter\x20in\x20GETSECRETDIGITS\x20(%s)\x20block',_0x305e89[_0xa24c('0x37')]));return this[_0xa24c('0xe')](_0x305e89);};AGIVertices[_0xa24c('0x11')][_0xa24c('0x128')]=function(_0x1dda42){logger['info'](util[_0xa24c('0x28')](_0xa24c('0x129'),_0x1dda42[_0xa24c('0x37')]));this['createSquareDetailsReport']['sync'](this,_0x1dda42,_0x1dda42[_0xa24c('0x12a')]);return this[_0xa24c('0x3a')][_0xa24c('0xaa')](util[_0xa24c('0x28')]('GOAL\x20%s',_0x1dda42[_0xa24c('0x12a')]));};AGIVertices[_0xa24c('0x11')][_0xa24c('0x12b')]=function(_0x49b2cc){logger['info'](util[_0xa24c('0x28')](_0xa24c('0x12c'),_0x49b2cc[_0xa24c('0x37')]));if(!this[_0xa24c('0x86')](_0x49b2cc[_0xa24c('0x89')])||!this[_0xa24c('0x86')](_0x49b2cc[_0xa24c('0x8a')])){return this[_0xa24c('0x3a')][_0xa24c('0xaa')](_0xa24c('0x12d'));}if(!this[_0xa24c('0x86')](_0x49b2cc[_0xa24c('0x5b')])){return this['channel']['noop'](_0xa24c('0xab'));}this[_0xa24c('0x3a')][_0xa24c('0xaa')](util['format']('Trying\x20aws\x20Polly\x20%s',_0x49b2cc['text']));var _0x3da2f2=this[_0xa24c('0x88')][_0xa24c('0x72')](this,_0x49b2cc);if(_0x3da2f2){this[_0xa24c('0x3a')][_0xa24c('0xaa')](util[_0xa24c('0x28')]('aws\x20Polly\x20%s\x20file\x20created',_0x3da2f2));var _0x41b6b7=this[_0xa24c('0x3a')]['streamFile'](_0x3da2f2);try{fs['unlink'](_0x3da2f2+'.wav');}catch(_0x112d97){logger[_0xa24c('0x31')](_0x112d97);}return _0x41b6b7;}return this['channel'][_0xa24c('0x31')](_0x49b2cc,_0xa24c('0x12e'));};AGIVertices[_0xa24c('0x11')][_0xa24c('0x12f')]=function(_0x4b4092){logger['info'](util[_0xa24c('0x28')](_0xa24c('0x130'),_0x4b4092[_0xa24c('0x37')]));if(!this[_0xa24c('0x86')](_0x4b4092[_0xa24c('0x89')])||!this[_0xa24c('0x86')](_0x4b4092[_0xa24c('0x8a')])){return this[_0xa24c('0x3a')][_0xa24c('0xaa')](_0xa24c('0x12d'));}if(!this[_0xa24c('0x86')](_0x4b4092['aws_bot_name'])){return this[_0xa24c('0x3a')][_0xa24c('0xaa')](_0xa24c('0x131'));}if(!this[_0xa24c('0x86')](_0x4b4092[_0xa24c('0x5b')])){return this[_0xa24c('0x3a')][_0xa24c('0xaa')](_0xa24c('0xab'));}this[_0xa24c('0x3a')]['bot']=!![];this[_0xa24c('0x35')](_0x4b4092);this[_0xa24c('0xf3')](_0x4b4092[_0xa24c('0x5b')],'in','','');this[_0xa24c('0x3a')]['noop'](util[_0xa24c('0x28')](_0xa24c('0x132'),_0x4b4092[_0xa24c('0x5b')]));var _0x1e400e=this[_0xa24c('0x8e')][_0xa24c('0x72')](this,_0x4b4092);if(_0x1e400e){for(var _0x244b0e in _0x1e400e){if(_0x1e400e['hasOwnProperty'](_0x244b0e)&&_[_0xa24c('0x99')](_0x1e400e[_0x244b0e])){this[_0xa24c('0x3a')]['setVariable'](util[_0xa24c('0x28')](_0xa24c('0x133'),_0x244b0e[_0xa24c('0x6c')]()),_0x1e400e[_0x244b0e]);}}if(_[_0xa24c('0x45')](_0x1e400e[_0xa24c('0x79')])){return this['channel'][_0xa24c('0xaa')](_0xa24c('0x134'));}else{this[_0xa24c('0xf3')](_0x1e400e[_0xa24c('0x79')],'out',_0xa24c('0x135'),'');return this['channel'][_0xa24c('0xaa')](util['format']('Amazon\x20Lex\x20Result\x20%s',_0x1e400e[_0xa24c('0x79')]));}}return this[_0xa24c('0x3a')]['error'](_0x4b4092,_0xa24c('0x136'));};AGIVertices[_0xa24c('0x11')]['googleasr']=function(_0x4d6a25){logger[_0xa24c('0x2e')](util[_0xa24c('0x28')](_0xa24c('0x137'),_0x4d6a25[_0xa24c('0x37')],_0x4d6a25[_0xa24c('0x67')]));if(!this[_0xa24c('0x86')](_0x4d6a25[_0xa24c('0x7d')])){return this[_0xa24c('0x3a')][_0xa24c('0xaa')](_0xa24c('0xf1'));}var _0x546384=_0xa24c('0x138');var _0x249b58=util[_0xa24c('0x28')]('%s/recordings/%s',FILES_PATH,rs[_0xa24c('0x123')](0x4));var _0x5b466d=util['format']('%s.%s',_0x249b58,_0x546384);var _0x645364=!![];if(_0x4d6a25[_0xa24c('0x139')]===_0xa24c('0x13a')){_0x645364=![];}var _0x35cab1=this['channel'][_0xa24c('0x13b')](_0x249b58,_0x546384,_0x4d6a25[_0xa24c('0x13c')],_0x4d6a25['timeout'],undefined,_0x645364);if(_0x35cab1[_0xa24c('0xa5')]!==-0x1){this['channel'][_0xa24c('0xaa')](util[_0xa24c('0x28')]('google\x20%s\x20file\x20created',_0x5b466d));var _0x3701e8=this[_0xa24c('0x91')]['sync'](this,_0x4d6a25,_0x5b466d);if(_0x3701e8){for(var _0x26cef in _0x3701e8){if(_0x3701e8[_0xa24c('0x98')](_0x26cef)){this[_0xa24c('0x3a')][_0xa24c('0xa1')](util[_0xa24c('0x28')]('GOOGLE_ASR_%s',_0x26cef['toUpperCase']()),_0x3701e8[_0x26cef]);}}return this['channel'][_0xa24c('0xaa')](util[_0xa24c('0x28')](_0xa24c('0x13d'),JSON[_0xa24c('0x75')](_0x3701e8)));}}return _0x35cab1;};AGIVertices[_0xa24c('0x11')][_0xa24c('0x13e')]=function(_0x14dde6){logger['info'](util[_0xa24c('0x28')]('Enter\x20in\x20TILDEASR\x20(%s)\x20block',_0x14dde6[_0xa24c('0x37')]));if(!this['isConfigured'](_0x14dde6[_0xa24c('0x94')])){return this[_0xa24c('0x3a')][_0xa24c('0xaa')](_0xa24c('0x13f'));}if(!this[_0xa24c('0x86')](_0x14dde6[_0xa24c('0x95')])){return this[_0xa24c('0x3a')]['noop'](_0xa24c('0x140'));}var _0x241350='wav';var _0x2d1573=util[_0xa24c('0x28')]('%s/recordings/%s',FILES_PATH,rs[_0xa24c('0x123')](0x4));var _0x5b5cfb=util[_0xa24c('0x28')](_0xa24c('0xa0'),_0x2d1573,_0x241350);var _0x342742=!![];if(_0x14dde6[_0xa24c('0x139')]===_0xa24c('0x13a')){_0x342742=![];}var _0xcc4be3=this[_0xa24c('0x3a')]['recordFile'](_0x2d1573,_0x241350,_0x14dde6[_0xa24c('0x13c')],_0x14dde6['timeout'],undefined,_0x342742);if(_0xcc4be3[_0xa24c('0xa5')]!==-0x1){this[_0xa24c('0x3a')]['noop'](util[_0xa24c('0x28')](_0xa24c('0x141'),_0x5b5cfb));var _0x144933=this[_0xa24c('0x93')][_0xa24c('0x72')](this,_0x14dde6,_0x5b5cfb);if(_0x144933){for(var _0x40c995 in _0x144933){if(_0x144933[_0xa24c('0x98')](_0x40c995)){this[_0xa24c('0x3a')]['setVariable'](util[_0xa24c('0x28')](_0xa24c('0x142'),_0x40c995[_0xa24c('0x6c')]()),_0x144933[_0x40c995]);}}return this[_0xa24c('0x3a')][_0xa24c('0xaa')](util[_0xa24c('0x28')]('TildeASR\x20Result\x20%s',JSON[_0xa24c('0x75')](_0x144933)));}}return _0xcc4be3;};AGIVertices[_0xa24c('0x11')][_0xa24c('0x143')]=function(_0x119ec5){logger['info'](util['format'](_0xa24c('0x144'),_0x119ec5[_0xa24c('0x37')]));return this[_0xa24c('0x3a')]['continueAt'](_0x119ec5[_0xa24c('0x3e')],_0x119ec5[_0xa24c('0x3f')],_0x119ec5[_0xa24c('0x145')]);};AGIVertices[_0xa24c('0x11')][_0xa24c('0x146')]=function(_0x57eedd){logger['info'](util['format'](_0xa24c('0x147'),_0x57eedd[_0xa24c('0x37')]));if(!this['isConfigured'](_0x57eedd[_0xa24c('0x148')])){return this[_0xa24c('0x3a')][_0xa24c('0x31')](_0x57eedd,_0xa24c('0x149'));}try{var _0x38ac45=eval(_0x57eedd[_0xa24c('0x148')])?_0xa24c('0x14a'):_0xa24c('0x14b');this['channel'][_0xa24c('0xaa')](util[_0xa24c('0x28')]('EVAL\x20CONDITION\x20%s\x20%s',_0x57eedd[_0xa24c('0x148')],_0x38ac45));return{'code':0xc8,'result':_0x38ac45};}catch(_0x1fdf51){return{'code':0xc8,'result':_0xa24c('0x14b')};}};AGIVertices[_0xa24c('0x11')][_0xa24c('0x14c')]=function(_0x261801){logger[_0xa24c('0x2e')](util[_0xa24c('0x28')](_0xa24c('0x14d'),_0x261801['label']));if(!this['isConfigured'](_0x261801[_0xa24c('0x14e')])){return this[_0xa24c('0x3a')]['error'](_0x261801,_0xa24c('0x14f'));}var _0x1ead4e=this[_0xa24c('0x150')][_0xa24c('0x72')](this,_0x261801[_0xa24c('0x14e')]);if(!_0x1ead4e){return this[_0xa24c('0x3a')]['error'](_0x261801,_0xa24c('0x151'));}for(var _0x57a6d0=0x0;_0x57a6d0<_0x1ead4e['length'];_0x57a6d0+=0x1){var _0x58263f=this[_0xa24c('0x3a')][_0xa24c('0x12')](util[_0xa24c('0x28')](_0xa24c('0x152'),_0x1ead4e[_0x57a6d0]));if(_0x58263f[_0xa24c('0xa5')]===-0x1){return _0x58263f;}logger[_0xa24c('0x2e')](util[_0xa24c('0x28')]('IFTIME\x20%s\x20%s',_0x1ead4e[_0x57a6d0],_0x58263f['extra']));if(_0x58263f[_0xa24c('0xa4')]===_0xa24c('0x14a')){logger[_0xa24c('0x2e')](util[_0xa24c('0x28')](_0xa24c('0x153'),_0x1ead4e[_0x57a6d0],'true'));this[_0xa24c('0x3a')][_0xa24c('0xaa')](util[_0xa24c('0x28')](_0xa24c('0x153'),_0x1ead4e[_0x57a6d0],_0xa24c('0x14a')));return{'code':0xc8,'result':_0xa24c('0x14a')};}else{logger[_0xa24c('0x2e')](util['format'](_0xa24c('0x153'),_0x1ead4e[_0x57a6d0],_0xa24c('0x14b')));this['channel'][_0xa24c('0xaa')](util['format'](_0xa24c('0x153'),_0x1ead4e[_0x57a6d0],_0xa24c('0x14b')));}}return{'code':0xc8,'result':'false'};};AGIVertices[_0xa24c('0x11')][_0xa24c('0x154')]=function(_0x1ce8f2){logger[_0xa24c('0x2e')](util['format'](_0xa24c('0x155'),_0x1ce8f2['label']));return this[_0xa24c('0x3a')][_0xa24c('0x154')]();};AGIVertices[_0xa24c('0x11')][_0xa24c('0x156')]=function(_0x3d67a6){logger['info'](util[_0xa24c('0x28')](_0xa24c('0x157'),_0x3d67a6[_0xa24c('0x37')]));if(!this[_0xa24c('0x86')](_0x3d67a6['key'])){return this[_0xa24c('0x3a')]['noop'](_0xa24c('0xf1'));}var _0x417a21='wav';var _0x39f1d4=util[_0xa24c('0x28')](_0xa24c('0x158'),FILES_PATH,rs['generate'](0x4));var _0x2bd4fc=util[_0xa24c('0x28')](_0xa24c('0xa0'),_0x39f1d4,_0x417a21);var _0x5bbf19=!![];if(_0x3d67a6[_0xa24c('0x139')]===_0xa24c('0x13a')){_0x5bbf19=![];}var _0x4ace8a=this[_0xa24c('0x3a')][_0xa24c('0x13b')](_0x39f1d4,_0x417a21,_0x3d67a6[_0xa24c('0x13c')],_0x3d67a6[_0xa24c('0x67')],undefined,_0x5bbf19);if(_0x4ace8a['result']!==-0x1){this[_0xa24c('0x3a')][_0xa24c('0xaa')](util[_0xa24c('0x28')](_0xa24c('0x159'),_0x2bd4fc));var _0xcbb655=this[_0xa24c('0x84')][_0xa24c('0x72')](this,_0x3d67a6,_0x2bd4fc);if(_0xcbb655){for(var _0x458add in _0xcbb655){if(_0xcbb655['hasOwnProperty'](_0x458add)){this['channel']['setVariable'](util[_0xa24c('0x28')]('ISPEECH_ASR_%s',_0x458add[_0xa24c('0x6c')]()),_0xcbb655[_0x458add]);}}return this[_0xa24c('0x3a')][_0xa24c('0xaa')](util[_0xa24c('0x28')](_0xa24c('0x15a'),JSON[_0xa24c('0x75')](_0xcbb655)));}}return _0x4ace8a;};AGIVertices[_0xa24c('0x11')][_0xa24c('0x15b')]=function(_0x43bdd9){logger['info'](util[_0xa24c('0x28')](_0xa24c('0x15c'),_0x43bdd9[_0xa24c('0x37')]));if(!this[_0xa24c('0x86')](_0x43bdd9[_0xa24c('0x7d')])){return this[_0xa24c('0x3a')]['noop'](_0xa24c('0xf1'));}if(!this[_0xa24c('0x86')](_0x43bdd9[_0xa24c('0x5b')])){return this['channel'][_0xa24c('0xaa')]('no\x20text\x20configured');}this[_0xa24c('0x3a')][_0xa24c('0xaa')](util[_0xa24c('0x28')]('Trying\x20ispeech\x20TTS\x20%s',_0x43bdd9[_0xa24c('0x5b')]));var _0x1bdbe2=this['ispeechTTS'][_0xa24c('0x72')](this,_0x43bdd9);if(_0x1bdbe2){this[_0xa24c('0x3a')][_0xa24c('0xaa')](util[_0xa24c('0x28')](_0xa24c('0x159'),_0x1bdbe2));var _0x436f89=this[_0xa24c('0x3a')][_0xa24c('0x10d')](_0x1bdbe2,_0x43bdd9['intKey']);try{fs['unlink'](_0x1bdbe2+_0xa24c('0x10f'));}catch(_0x262a2d){logger['error'](_0x262a2d);}return _0x436f89;}return this['channel']['error'](_0x43bdd9,_0xa24c('0x15d'));};AGIVertices['prototype'][_0xa24c('0x15e')]=function(_0x12db3c){logger['info'](util[_0xa24c('0x28')](_0xa24c('0x15f'),_0x12db3c['label']));if(!this[_0xa24c('0x86')](_0x12db3c[_0xa24c('0x160')])){return this['channel'][_0xa24c('0x31')](_0x12db3c,_0xa24c('0x161'));}logger[_0xa24c('0x2e')](util['format'](_0xa24c('0x162'),this[_0xa24c('0x3a')][_0xa24c('0x3b')],_0x12db3c[_0xa24c('0x160')]));var _0x5d0ff6=this[_0xa24c('0x51')]['sync'](this,_0x12db3c['findBy']);if(_0x5d0ff6){logger[_0xa24c('0x2e')](util['format']('AGENT\x20%s\x20FOUND\x20BY',this[_0xa24c('0x3a')][_0xa24c('0x3b')],_0x12db3c[_0xa24c('0x160')]));this[_0xa24c('0x3a')][_0xa24c('0xaa')](util[_0xa24c('0x28')](_0xa24c('0x163'),this['channel']['callerid'],_0x12db3c[_0xa24c('0x160')]));return{'code':0xc8,'result':'success'};}else{logger[_0xa24c('0x2e')](util[_0xa24c('0x28')](_0xa24c('0x164'),this['channel']['callerid'],_0x12db3c['findBy']));this[_0xa24c('0x3a')][_0xa24c('0xaa')](util[_0xa24c('0x28')](_0xa24c('0x164'),this[_0xa24c('0x3a')]['callerid'],_0x12db3c[_0xa24c('0x160')]));return{'code':0xc8,'result':_0xa24c('0x165')};}};AGIVertices[_0xa24c('0x11')][_0xa24c('0x166')]=function(_0x233d3b){logger[_0xa24c('0x2e')](util[_0xa24c('0x28')](_0xa24c('0x167'),_0x233d3b[_0xa24c('0x37')]));if(!this[_0xa24c('0x86')](_0x233d3b[_0xa24c('0x160')])){return this[_0xa24c('0x3a')][_0xa24c('0x31')](_0x233d3b,_0xa24c('0x161'));}logger[_0xa24c('0x2e')](util[_0xa24c('0x28')](_0xa24c('0x162'),this['channel']['callerid'],_0x233d3b[_0xa24c('0x160')]));var _0x10ea95=this['agentLogout']['sync'](this,_0x233d3b[_0xa24c('0x160')]);if(_0x10ea95){logger[_0xa24c('0x2e')](util['format'](_0xa24c('0x163'),this[_0xa24c('0x3a')][_0xa24c('0x3b')],_0x233d3b[_0xa24c('0x160')]));this['channel']['noop'](util[_0xa24c('0x28')]('AGENT\x20%s\x20FOUND\x20BY',this[_0xa24c('0x3a')][_0xa24c('0x3b')],_0x233d3b['findBy']));return{'code':0xc8,'result':_0xa24c('0x168')};}else{logger[_0xa24c('0x2e')](util[_0xa24c('0x28')](_0xa24c('0x164'),this[_0xa24c('0x3a')][_0xa24c('0x3b')],_0x233d3b[_0xa24c('0x160')]));this[_0xa24c('0x3a')]['noop'](util[_0xa24c('0x28')](_0xa24c('0x164'),this[_0xa24c('0x3a')][_0xa24c('0x3b')],_0x233d3b[_0xa24c('0x160')]));return{'code':0xc8,'result':_0xa24c('0x165')};}};AGIVertices[_0xa24c('0x11')][_0xa24c('0x169')]=function(_0x444941){logger[_0xa24c('0x2e')](util[_0xa24c('0x28')](_0xa24c('0x16a'),_0x444941[_0xa24c('0x37')]));if(!this[_0xa24c('0x86')](_0x444941['operation'])){return this[_0xa24c('0x3a')]['error'](_0x444941,'no\x20operation\x20configured');}this[_0xa24c('0x3a')][_0xa24c('0xaa')](util[_0xa24c('0x28')](_0xa24c('0x16b'),_0x444941[_0xa24c('0x16c')]));var _0x1571ce=eval(_0x444941[_0xa24c('0x16c')]);if(!this[_0xa24c('0x86')](_0x444941['variable_id'])){return this['channel'][_0xa24c('0xaa')]('no\x20variable\x20selected\x20for\x20the\x20result');}var _0xd8605d=this[_0xa24c('0x12')][_0xa24c('0x72')](this,_0x444941[_0xa24c('0xdf')]);if(!_0xd8605d){return this[_0xa24c('0x3a')][_0xa24c('0x31')](_0x444941,_0xa24c('0xe0'));}if(_[_0xa24c('0x9d')](_0x1571ce)){var _0x1b2b3f=this;_0x1571ce[_0xa24c('0xe1')](function(_0x25aa79,_0x5c2f60){_0x1b2b3f[_0xa24c('0x3a')][_0xa24c('0xa1')](util[_0xa24c('0x28')](_0xa24c('0x16d'),_0xd8605d,_0x5c2f60),_0x25aa79);});return this['channel'][_0xa24c('0xaa')](util[_0xa24c('0x28')]('variable\x20%s[key]\x20set',_0xd8605d));}else{return this['channel'][_0xa24c('0xa1')](_0xd8605d,_0x1571ce);}};AGIVertices[_0xa24c('0x11')][_0xa24c('0xd')]=function(_0x538a5b){logger[_0xa24c('0x2e')](util[_0xa24c('0x28')](_0xa24c('0x16e'),_0x538a5b[_0xa24c('0x37')]));if(_0x538a5b[_0xa24c('0xa7')]===0x0){return this[_0xa24c('0xa8')](_0x538a5b);}_0x538a5b[_0xa24c('0xa7')]-=0x1;if(!this[_0xa24c('0x86')](_0x538a5b[_0xa24c('0x11b')])){return this['channel']['error'](_0x538a5b,_0xa24c('0x11c'));}var _0x4eb3db=this[_0xa24c('0x1e')]['sync'](this,_0x538a5b[_0xa24c('0x11b')]);if(!_0x4eb3db){return this['channel']['error'](_0x538a5b,'no\x20file\x20audio\x20found');}var _0x465a73=this[_0xa24c('0x3a')][_0xa24c('0x11e')](_0x4eb3db,_0x538a5b[_0xa24c('0x16f')],_0x538a5b['digit']);var _0x134980=_0x465a73[_0xa24c('0xa5')];if(_0x465a73[_0xa24c('0xa5')]===-0x1){this['createSquareDetailsReport'][_0xa24c('0x72')](this,_0x538a5b,'-1');return _0x465a73;}else if(_0x465a73['extra']===_0xa24c('0x67')){_0x465a73[_0xa24c('0xa5')]=_0x465a73[_0xa24c('0xa5')]['length']>0x0?_0x465a73[_0xa24c('0xa5')]:'t';}else if(_['isEmpty'](_0x465a73['result'])){_0x465a73['result']='#';_0x134980='#';}if(!this[_0xa24c('0x86')](_0x538a5b[_0xa24c('0xdf')])){this[_0xa24c('0x3a')][_0xa24c('0xaa')]('no\x20variable\x20selected\x20for\x20the\x20result');}else{var _0x457486=this[_0xa24c('0x12')][_0xa24c('0x72')](this,_0x538a5b[_0xa24c('0xdf')]);if(!_0x457486){return this[_0xa24c('0x3a')][_0xa24c('0x31')](_0x538a5b,_0xa24c('0xe0'));}this[_0xa24c('0x3a')][_0xa24c('0xa1')](_0x457486,_0x134980);}this[_0xa24c('0x35')]['sync'](this,_0x538a5b,_0x134980);return _0x465a73;};AGIVertices[_0xa24c('0x11')][_0xa24c('0xaa')]=function(_0x44bdb4){logger[_0xa24c('0x2e')](util[_0xa24c('0x28')]('Enter\x20in\x20NOOP\x20(%s)\x20block',_0x44bdb4['label']));return this['channel']['noop'](_0x44bdb4['output']||_0x44bdb4['label']);};AGIVertices[_0xa24c('0x11')][_0xa24c('0x170')]=function(_0x64c515){logger[_0xa24c('0x2e')](util[_0xa24c('0x28')](_0xa24c('0x171'),_0x64c515[_0xa24c('0x37')]));if(!this[_0xa24c('0x86')](_0x64c515[_0xa24c('0x160')])){return this[_0xa24c('0x3a')][_0xa24c('0x31')](_0x64c515,_0xa24c('0x161'));}logger[_0xa24c('0x2e')](util[_0xa24c('0x28')]('FIND\x20AGENT\x20%s\x20BY\x20%s',this[_0xa24c('0x3a')][_0xa24c('0x3b')],_0x64c515['findBy']));var _0x1ecb91=this[_0xa24c('0x172')]['sync'](this,_0x64c515[_0xa24c('0x173')]);var _0xa57665=this[_0xa24c('0x4e')]['sync'](this,_0x64c515[_0xa24c('0x160')],_0x1ecb91);if(_0xa57665){logger[_0xa24c('0x2e')](util['format'](_0xa24c('0x163'),this['channel'][_0xa24c('0x3b')],_0x64c515['findBy']));this[_0xa24c('0x3a')]['noop'](util[_0xa24c('0x28')](_0xa24c('0x163'),this[_0xa24c('0x3a')][_0xa24c('0x3b')],_0x64c515['findBy']));return{'code':0xc8,'result':_0xa24c('0x168')};}else{logger[_0xa24c('0x2e')](util[_0xa24c('0x28')]('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this[_0xa24c('0x3a')]['callerid'],_0x64c515[_0xa24c('0x160')]));this['channel']['noop'](util[_0xa24c('0x28')](_0xa24c('0x163'),this[_0xa24c('0x3a')][_0xa24c('0x3b')],_0x64c515[_0xa24c('0x160')]));return{'code':0xc8,'result':'failure'};}};AGIVertices[_0xa24c('0x11')][_0xa24c('0x174')]=function(_0x1483c0){logger['info'](util[_0xa24c('0x28')](_0xa24c('0x175'),_0x1483c0[_0xa24c('0x37')]));if(!this[_0xa24c('0x86')](_0x1483c0[_0xa24c('0x11b')])){return this['channel'][_0xa24c('0x31')](_0x1483c0,_0xa24c('0x11c'));}var _0xb1fdc6=this[_0xa24c('0x1e')][_0xa24c('0x72')](this,_0x1483c0[_0xa24c('0x11b')]);if(!_0xb1fdc6){return this[_0xa24c('0x3a')][_0xa24c('0x31')](_0x1483c0,_0xa24c('0x11d'));}var _0x2853db=this['channel'][_0xa24c('0x56')](_0xa24c('0x176'),[_0xb1fdc6,_0x1483c0[_0xa24c('0xed')]]);if(_0x2853db['result']===-0x1){return _0x2853db;}return this[_0xa24c('0x3a')]['noop'](util[_0xa24c('0x28')]('Executed\x20command\x20%s\x20%s','PLAYBACK',_0xb1fdc6));};AGIVertices['prototype'][_0xa24c('0x177')]=function(_0x268f40){logger[_0xa24c('0x2e')](util[_0xa24c('0x28')](_0xa24c('0x178'),_0x268f40[_0xa24c('0x37')]));if(!this['isConfigured'](_0x268f40[_0xa24c('0x179')])){return this[_0xa24c('0x3a')][_0xa24c('0x31')](_0x268f40,_0xa24c('0x17a'));}var _0xb53201='';var _0x50335e=parseInt(_0x268f40['queue_id'],0xa);if(isNaN(_0x50335e)){_0xb53201=_0x268f40[_0xa24c('0x179')];}else{_0xb53201=this[_0xa24c('0x17b')][_0xa24c('0x72')](this,_0x268f40[_0xa24c('0x179')]);if(!_0xb53201){return this['channel'][_0xa24c('0x31')](_0x268f40,_0xa24c('0x17c'));}}var _0x1e895b='';if(this[_0xa24c('0x86')](_0x268f40['file_id'])){var _0xa4968e=this[_0xa24c('0x1e')]['sync'](this,_0x268f40[_0xa24c('0x11b')]);if(_0xa4968e){_0x1e895b=_0xa4968e;}}this[_0xa24c('0x35')][_0xa24c('0x72')](this,_0x268f40,_0xb53201);if(_0x268f40[_0xa24c('0xed')][_0xa24c('0x17d')]('x')<0x0){_0x268f40[_0xa24c('0xed')]+='x';}if(_0x268f40[_0xa24c('0xed')][_0xa24c('0x17d')]('X')<0x0){_0x268f40[_0xa24c('0xed')]+='X';}this[_0xa24c('0x3a')][_0xa24c('0xa1')](_0xa24c('0x17e'),_0xb53201?_0xb53201[_0xa24c('0x17f')]():'');var _0x29c8a8=this[_0xa24c('0x3a')]['exec'](_0xa24c('0x180'),[_0xb53201,_0x268f40['opts'],_0x268f40[_0xa24c('0x65')],_0x1e895b,_0x268f40[_0xa24c('0x67')],_0x268f40['agi'],_0x268f40[_0xa24c('0x181')],_0x268f40[_0xa24c('0x182')],'',_0x268f40[_0xa24c('0x183')]]);if(_0x29c8a8[_0xa24c('0xa5')]===-0x1){return _0x29c8a8;}return this[_0xa24c('0x3a')][_0xa24c('0xaa')](util['format'](_0xa24c('0xc8'),'QUEUE',_0xb53201));};AGIVertices['prototype'][_0xa24c('0x184')]=function(_0x47049f){logger[_0xa24c('0x2e')](util[_0xa24c('0x28')](_0xa24c('0x185'),_0x47049f['label']));var _0x354528=_0x47049f[_0xa24c('0x186')]||'wav';var _0x13e282=util[_0xa24c('0x28')](_0xa24c('0x187'),this['channel']['uniqueid'],rs[_0xa24c('0x123')](0x5));var _0x3bd4b8=util[_0xa24c('0x28')](_0xa24c('0x188'),FILES_PATH,_0x13e282,_0x354528);var _0x28b3d0=util[_0xa24c('0x28')]('%s/recordings/%s',FILES_PATH,_0x13e282);this[_0xa24c('0x3c')][_0xa24c('0x72')](this,_0x47049f,_0x13e282,_0x3bd4b8);this['channel']['setVariable'](_0xa24c('0x189'),_0x13e282);logger['info'](_0xa24c('0x18a'),_0x28b3d0,_0x354528,_0x47049f[_0xa24c('0x18b')],_0x47049f[_0xa24c('0x67')]);return this[_0xa24c('0x3a')][_0xa24c('0x13b')](_0x28b3d0,_0x354528,_0x47049f[_0xa24c('0x18b')],_0x47049f['timeout'],undefined,!![]);};AGIVertices['prototype'][_0xa24c('0x18c')]=function(_0x15e809){logger['info'](util[_0xa24c('0x28')](_0xa24c('0x18d'),_0x15e809[_0xa24c('0x37')]));if(!this['isConfigured'](_0x15e809[_0xa24c('0x65')])){return this[_0xa24c('0x3a')]['noop']('no\x20url\x20configured');}var _0x3061b4=this['restAPI'][_0xa24c('0x72')](this,_0x15e809);logger[_0xa24c('0x2e')](util[_0xa24c('0x28')](_0xa24c('0x18e'),util[_0xa24c('0x18f')](_0x3061b4,{'showHidden':![],'depth':null})));if(!this['isConfigured'](_0x15e809[_0xa24c('0xdf')])){return this[_0xa24c('0x3a')][_0xa24c('0xaa')](_0xa24c('0x190'));}var _0x3ee77d=this[_0xa24c('0x12')][_0xa24c('0x72')](this,_0x15e809[_0xa24c('0xdf')]);if(!_0x3ee77d){return this[_0xa24c('0x3a')][_0xa24c('0x31')](_0x15e809,_0xa24c('0xe0'));}this[_0xa24c('0x3a')][_0xa24c('0xa1')](util['format'](_0xa24c('0x191'),_0x3ee77d),_0x3061b4['statusCode']?_0x3061b4[_0xa24c('0x77')]:'200');this[_0xa24c('0x3a')][_0xa24c('0xa1')](util['format'](_0xa24c('0x192'),_0x3ee77d),_0x3061b4['statusMessage']?_0x3061b4['statusMessage']:'OK');if(_0x3061b4[_0xa24c('0x6d')]){try{this[_0xa24c('0x9f')](_0x3061b4[_0xa24c('0x6d')],_0x3ee77d);}catch(_0xdaaf26){logger[_0xa24c('0x31')](util['format'](_0xa24c('0x193'),_0x3ee77d));}}return this[_0xa24c('0x3a')]['noop'](util[_0xa24c('0x28')](_0xa24c('0xe4'),_0x3ee77d));};AGIVertices['prototype'][_0xa24c('0x194')]=function(_0xdc49ad){logger[_0xa24c('0x2e')](util[_0xa24c('0x28')]('Enter\x20in\x20SAYDIGITS\x20(%s)\x20block',_0xdc49ad[_0xa24c('0x37')]));return this['channel'][_0xa24c('0x195')](_0xdc49ad[_0xa24c('0x196')]['replace'](/\s+/g,''),_0xdc49ad[_0xa24c('0x18b')]);};AGIVertices[_0xa24c('0x11')]['saynumber']=function(_0x230f29){logger[_0xa24c('0x2e')](util[_0xa24c('0x28')](_0xa24c('0x197'),_0x230f29[_0xa24c('0x37')]));return this[_0xa24c('0x3a')][_0xa24c('0x198')](_0x230f29['number'][_0xa24c('0xdc')](/\s+/g,''),_0x230f29[_0xa24c('0x18b')]);};AGIVertices['prototype']['sayphonetic']=function(_0x25743d){logger[_0xa24c('0x2e')](util[_0xa24c('0x28')](_0xa24c('0x199'),_0x25743d[_0xa24c('0x37')]));return this[_0xa24c('0x3a')][_0xa24c('0x19a')](_0x25743d['text'],_0x25743d[_0xa24c('0x18b')]);};AGIVertices['prototype']['sendMail']=function(_0x215eb1){logger[_0xa24c('0x2e')](util['format'](_0xa24c('0x19b'),_0x215eb1[_0xa24c('0x37')]));if(!this[_0xa24c('0x86')](_0x215eb1[_0xa24c('0x19c')])){return this[_0xa24c('0x3a')][_0xa24c('0xaa')](_0xa24c('0x19d'));}var _0xe39991=this[_0xa24c('0x21')][_0xa24c('0x72')](this,_0x215eb1[_0xa24c('0x19c')]);if(!_0xe39991||!_0xe39991[_0xa24c('0x19e')]){return this[_0xa24c('0x3a')][_0xa24c('0x31')](_0x215eb1,'no\x20mail\x20account\x20found');}var _0x5413cd={'from':util[_0xa24c('0x28')](_0xa24c('0x19f'),_0xe39991[_0xa24c('0x15')],_0xe39991[_0xa24c('0x1a0')]||_0xe39991[_0xa24c('0x19e')][_0xa24c('0x1a1')]),'to':_0x215eb1['to']||'','cc':_0x215eb1['cc']||'','bcc':_0x215eb1['bcc']||'','subject':_0x215eb1['subject'],'html':_0x215eb1[_0xa24c('0x5b')],'text':_0x215eb1[_0xa24c('0x5b')]};if(this[_0xa24c('0x86')](_0x215eb1[_0xa24c('0x1a2')])){}logger[_0xa24c('0xe6')](_0xa24c('0x1a3'),JSON[_0xa24c('0x75')](_0x5413cd));this[_0xa24c('0x35')][_0xa24c('0x72')](this,_0x215eb1,_0x215eb1[_0xa24c('0x19c')]);this['channel'][_0xa24c('0xaa')](util[_0xa24c('0x28')](_0xa24c('0x1a4'),_0xe39991[_0xa24c('0x15')]));this[_0xa24c('0x23')][_0xa24c('0x72')](this,_0xe39991[_0xa24c('0x1a5')],_0x5413cd);return this['channel'][_0xa24c('0xaa')]('Mail\x20message\x20added\x20to\x20outgoing\x20process');};AGIVertices[_0xa24c('0x11')][_0xa24c('0x1a6')]=function(_0x391af4){logger[_0xa24c('0x2e')](util[_0xa24c('0x28')]('Enter\x20in\x20SENDFAX\x20(%s)\x20block',_0x391af4['label']));return this[_0xa24c('0x3a')]['noop'](_0xa24c('0x1a7'));};AGIVertices[_0xa24c('0x11')][_0xa24c('0x1a8')]=function(_0x3804b1){logger[_0xa24c('0x2e')](util['format'](_0xa24c('0x1a9'),_0x3804b1['label']));if(!this['isConfigured'](_0x3804b1[_0xa24c('0x1aa')])){return this[_0xa24c('0x3a')]['noop'](_0xa24c('0x1ab'));}var _0xf0190=this['getSmsAccount']['sync'](this,_0x3804b1[_0xa24c('0x1aa')]);if(!_0xf0190){return this[_0xa24c('0x3a')][_0xa24c('0x31')](_0x3804b1,_0xa24c('0x1ac'));}var _0x151eb3={'body':_0x3804b1[_0xa24c('0x1ad')],'phone':_0x3804b1['to']||'','SmsAccountId':_0xf0190['id']};logger[_0xa24c('0xe6')]('sendSMS\x20message',JSON[_0xa24c('0x75')](_0x151eb3));this['createSquareDetailsReport'][_0xa24c('0x72')](this,_0x3804b1,_0x3804b1[_0xa24c('0x1aa')]);this[_0xa24c('0x3a')][_0xa24c('0xaa')](util['format']('Trying\x20SendSMS\x20with\x20account\x20%s',_0xf0190[_0xa24c('0x15')]));this[_0xa24c('0x34')][_0xa24c('0x72')](this,_0x151eb3);return this[_0xa24c('0x3a')][_0xa24c('0xaa')](_0xa24c('0x1ae'));};AGIVertices['prototype'][_0xa24c('0x1af')]=function(_0x2381ca){logger[_0xa24c('0x2e')](util['format'](_0xa24c('0x1b0'),_0x2381ca[_0xa24c('0x37')]));if(!this['isConfigured'](_0x2381ca['variable_id'])){return this[_0xa24c('0x3a')][_0xa24c('0x31')](_0x2381ca,_0xa24c('0x1b1'));}var _0x397fba=this[_0xa24c('0x12')][_0xa24c('0x72')](this,_0x2381ca['variable_id']);if(!_0x397fba){return this[_0xa24c('0x3a')][_0xa24c('0x31')](_0x2381ca,_0xa24c('0xe0'));}return this[_0xa24c('0x3a')][_0xa24c('0xa1')](_0x397fba,_0x2381ca[_0xa24c('0x1b2')]);};AGIVertices['prototype'][_0xa24c('0x1b3')]=function(_0x1938ba){logger[_0xa24c('0x2e')](util[_0xa24c('0x28')](_0xa24c('0x1b4'),_0x1938ba[_0xa24c('0x37')]));this[_0xa24c('0x3a')][_0xa24c('0xaa')](_0xa24c('0x1b5'));var _0xabdc0e=this[_0xa24c('0x3a')][_0xa24c('0x12')]('XMCS-UNIQUEID');if(!_[_0xa24c('0x44')](_0xabdc0e['extra'])){this[_0xa24c('0x3a')]['uniqueid']=_0xabdc0e[_0xa24c('0xa4')];}if(_0x1938ba[_0xa24c('0xbc')]==='yes'){this[_0xa24c('0x3a')][_0xa24c('0xaa')](_0xa24c('0x1b6'));return this[_0xa24c('0x3a')][_0xa24c('0xbc')]();}return this[_0xa24c('0x3a')]['noop'](_0xa24c('0x1b7'));};AGIVertices[_0xa24c('0x11')][_0xa24c('0x1b8')]=function(_0x52ff60){logger['info'](util['format']('Enter\x20in\x20SUBPROJECT\x20(%s)\x20block',_0x52ff60['label']));if(!this[_0xa24c('0x86')](_0x52ff60['project_id'])){return this[_0xa24c('0x3a')][_0xa24c('0x31')](_0x52ff60,'no\x20subproject\x20selected');}var _0xa49e18=this['getSquareProject'][_0xa24c('0x72')](this,_0x52ff60[_0xa24c('0x1b9')]);if(!this['isConfigured'](_0xa49e18)){return this[_0xa24c('0x3a')][_0xa24c('0x31')](_0x52ff60,util[_0xa24c('0x28')](_0xa24c('0x1ba'),_0x52ff60[_0xa24c('0x1b9')]));}if(_0xa49e18===this[_0xa24c('0x3a')][_0xa24c('0x39')]){return this[_0xa24c('0x3a')][_0xa24c('0x31')](_0x52ff60,'project\x20in\x20subproject\x20must\x20be\x20different\x20from\x20the\x20called\x20project');}this[_0xa24c('0x35')]['sync'](this,_0x52ff60,_0xa49e18);var _0x516208=this[_0xa24c('0x3a')][_0xa24c('0x56')](_0xa24c('0x1bb'),util[_0xa24c('0x28')](_0xa24c('0x1bc'),config[_0xa24c('0x7')][_0xa24c('0x1bd')]||_0xa24c('0x1be'),_0xa49e18,this['channel']['arg_1']));if(_0x516208[_0xa24c('0xa5')]===-0x1){return _0x516208;}return this[_0xa24c('0x3a')][_0xa24c('0xaa')](util[_0xa24c('0x28')](_0xa24c('0xc8'),_0xa24c('0x1bb'),_0xa49e18));};AGIVertices['prototype'][_0xa24c('0x1bf')]=function(_0x3beb34){logger[_0xa24c('0x2e')](util['format'](_0xa24c('0x1c0'),_0x3beb34[_0xa24c('0x37')]));var _0x165bb5=this['shellCommand'][_0xa24c('0x72')](this,_0x3beb34['command']);this[_0xa24c('0x35')][_0xa24c('0x72')](this,_0x3beb34,_0x3beb34['command']);if(this['isConfigured'](_0x3beb34['variable_id'])){var _0x296dcf=this[_0xa24c('0x12')][_0xa24c('0x72')](this,_0x3beb34[_0xa24c('0xdf')]);if(_0x296dcf){this['channel'][_0xa24c('0xa1')](_0x296dcf,_0x165bb5);return this[_0xa24c('0x3a')][_0xa24c('0xaa')](util['format'](_0xa24c('0x1c1'),_0x3beb34[_0xa24c('0xba')],_0x296dcf));}}return this['channel'][_0xa24c('0xaa')](util[_0xa24c('0x28')](_0xa24c('0x1c2'),_0x3beb34[_0xa24c('0xba')]));};AGIVertices['prototype'][_0xa24c('0x1c3')]=function(_0x1c3805){logger[_0xa24c('0x2e')](util[_0xa24c('0x28')]('Enter\x20in\x20Google\x20Cloud\x20TTS\x20(%s)\x20block',_0x1c3805[_0xa24c('0x37')]));_0x1c3805[_0xa24c('0x5b')]=_0x1c3805[_0xa24c('0x5b')][_0xa24c('0xdc')](/(\r\n|\n|\r)/gm,'\x20');if(!this[_0xa24c('0x86')](_0x1c3805['apiKey'])){return this[_0xa24c('0x3a')]['noop'](_0xa24c('0x1c4'));}if(!this[_0xa24c('0x86')](_0x1c3805['text'])){return this[_0xa24c('0x3a')][_0xa24c('0xaa')]('no\x20text\x20configured');}this['channel'][_0xa24c('0xaa')](util[_0xa24c('0x28')](_0xa24c('0x1c5'),_0x1c3805['text']));var _0x1035cc=this[_0xa24c('0x58')][_0xa24c('0x72')](this,_0x1c3805);if(_0x1035cc){this[_0xa24c('0x3a')][_0xa24c('0xaa')](util[_0xa24c('0x28')](_0xa24c('0x1c6'),_0x1035cc));var _0x320b21=this['channel'][_0xa24c('0x10d')](_0x1035cc);try{fs[_0xa24c('0x10e')](_0x1035cc+_0xa24c('0x10f'));}catch(_0x290561){logger[_0xa24c('0x31')](_0x290561);}return _0x320b21;}return this['channel'][_0xa24c('0x31')](_0x1c3805,_0xa24c('0x1c7'));};AGIVertices['prototype']['tts']=function(_0xd80553){logger['info'](util[_0xa24c('0x28')](_0xa24c('0x1c8'),_0xd80553[_0xa24c('0x37')]));_0xd80553['text']=_0xd80553[_0xa24c('0x5b')][_0xa24c('0xdc')](/(\r\n|\n|\r)/gm,'\x20');if(!this['isConfigured'](_0xd80553[_0xa24c('0x5b')])){return this[_0xa24c('0x3a')][_0xa24c('0xaa')](_0xa24c('0xab'));}this[_0xa24c('0x3a')][_0xa24c('0xaa')](util[_0xa24c('0x28')](_0xa24c('0x1c9'),_0xd80553[_0xa24c('0x5b')]));var _0x2eb489=this[_0xa24c('0x62')][_0xa24c('0x72')](this,_0xd80553);if(_0x2eb489){this['channel']['noop'](util[_0xa24c('0x28')](_0xa24c('0x1ca'),_0x2eb489));var _0x3c5966=this['channel'][_0xa24c('0x10d')](_0x2eb489);try{fs['unlink'](_0x2eb489+_0xa24c('0x10f'));}catch(_0x5639fd){logger[_0xa24c('0x31')](_0x5639fd);}return _0x3c5966;}return this[_0xa24c('0x3a')]['error'](_0xd80553,'Google\x20TTS\x20is\x20unreachable');};AGIVertices['prototype'][_0xa24c('0x1cb')]=function(_0x56ad37){logger['info'](util['format'](_0xa24c('0x1cc'),_0x56ad37[_0xa24c('0x37')]));if(!this[_0xa24c('0x86')](_0x56ad37[_0xa24c('0x160')])){return this[_0xa24c('0x3a')][_0xa24c('0x31')](_0x56ad37,_0xa24c('0x161'));}logger[_0xa24c('0x2e')](util[_0xa24c('0x28')](_0xa24c('0x162'),this[_0xa24c('0x3a')][_0xa24c('0x3b')],_0x56ad37[_0xa24c('0x160')]));var _0xf4b1c9=this[_0xa24c('0x1cd')][_0xa24c('0x72')](this,_0x56ad37[_0xa24c('0x160')]);if(_0xf4b1c9){logger[_0xa24c('0x2e')](util[_0xa24c('0x28')]('AGENT\x20%s\x20FOUND\x20BY',this[_0xa24c('0x3a')][_0xa24c('0x3b')],_0x56ad37[_0xa24c('0x160')]));this[_0xa24c('0x3a')][_0xa24c('0xaa')](util[_0xa24c('0x28')]('AGENT\x20%s\x20FOUND\x20BY',this[_0xa24c('0x3a')][_0xa24c('0x3b')],_0x56ad37[_0xa24c('0x160')]));return{'code':0xc8,'result':'success'};}else{logger[_0xa24c('0x2e')](util['format']('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this['channel'][_0xa24c('0x3b')],_0x56ad37[_0xa24c('0x160')]));this[_0xa24c('0x3a')]['noop'](util[_0xa24c('0x28')](_0xa24c('0x164'),this['channel']['callerid'],_0x56ad37[_0xa24c('0x160')]));return{'code':0xc8,'result':'failure'};}};AGIVertices[_0xa24c('0x11')]['voicemail']=function(_0x1df7a4){logger[_0xa24c('0x2e')](util[_0xa24c('0x28')](_0xa24c('0x1ce'),_0x1df7a4[_0xa24c('0x37')]));var _0x39635e=this[_0xa24c('0x3a')][_0xa24c('0x56')](_0xa24c('0x1cf'),[_0x1df7a4['mailbox'],_0x1df7a4['options']]);if(_0x39635e['result']===-0x1){return _0x39635e;}return this[_0xa24c('0x3a')][_0xa24c('0xaa')](util[_0xa24c('0x28')](_0xa24c('0xc8'),_0xa24c('0x1cf'),_0x1df7a4[_0xa24c('0x1d0')]));};AGIVertices[_0xa24c('0x11')][_0xa24c('0x1d1')]=function(_0x36c88d){logger['info'](util[_0xa24c('0x28')](_0xa24c('0x1d2'),_0x36c88d['label']));if(!this[_0xa24c('0x86')](_0x36c88d[_0xa24c('0xdf')])){return this[_0xa24c('0x3a')][_0xa24c('0x31')](_0x36c88d,_0xa24c('0x1b1'));}var _0x3707d9=this[_0xa24c('0x12')][_0xa24c('0x72')](this,_0x36c88d[_0xa24c('0xdf')]);if(!_0x3707d9){return this[_0xa24c('0x3a')][_0xa24c('0x31')](_0x36c88d,_0xa24c('0xe0'));}var _0x2750d9=this['channel']['getVariable'](_0x3707d9);return{'code':0xc8,'result':_0x2750d9[_0xa24c('0xa4')]?_0x2750d9[_0xa24c('0xa4')]:'-'};};String[_0xa24c('0x11')]['replaceAll']=function(_0x2997b5,_0x294c10){return this['split'](_0x2997b5)[_0xa24c('0x1d3')](_0x294c10);};module[_0xa24c('0x1d4')]=AGIVertices;
\ No newline at end of file