Built motion from commit e8da49ee.|2.6.33
[motion2.git] / server / services / agi / vertices.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
13 // * The SOFTWARE PRODUCT is protected by copyright laws and international *
14 // * copyright treaties, as well as other intellectual property laws and   *
15 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x0ba7=['MP3','googleTTS','restAPI','method','timeout','number','POST','body','parse','headers','computedVariables','sync','render','stringify','An\x20incorrect\x20formatted\x20json\x20has\x20been\x20passed\x20to\x20the\x20function','statusMessage','message','500\x20-\x20Internal\x20Server\x20Error','options','googleDialogflow','key','dialogflow_language','googleDialogflowV2','dialogflowV2_project_id','dialogflowV2_language','sestekNDA','ispeechTTS','ispeech_tts_language','speed','ispeechASR','ispeech_asr_language','isConfigured','model','awsPolly','aws_access_key_id','aws_polly_voice','aws_text_type','awsLex','aws_secret_access_key','aws_bot_name','googleASR','tildeASR','appsecret','uri','clear','clone','hasOwnProperty','isString','includes','replaceAllVariables','recursiveNodeIndex','isArray','saveRestApiResult','%s.%s','length','setVariable','replaceObjectAllVariables','split','replaceAll','extra','result','The\x20\x22%s\x22\x20variable\x20value\x20is:\x20%s','maxRetry','retry','mrcpsynth','noop','no\x20text\x20configured','MRCPSynth','Executed\x20command\x20MRCPSynth\x20%s','mrcprecog','Enter\x20in\x20MRCPRecog\x20(%s)\x20block','grammar','no\x20grammar\x20configured','MRCPRecog','MRCP_RECOG_CONFIDENCE','getAndSetVariable','RECOG_INPUT()','MRCP_RECOG_TRANSCRIPT','RECOG_INSTANCE()','MRCP_RECOG_INSTANCE','Executed\x20command\x20MRCPRecog\x20%s','Enter\x20in\x20AGI\x20(%s)\x20block','args','answer','Enter\x20in\x20ANSWER\x20(%s)\x20block','Wait\x20%s\x20seconds\x20before\x20answer','wait','Enter\x20in\x20CALLBACK\x20(%s)\x20block','list_id','delay','minutes','custom_app','Enter\x20in\x20CUSTOM\x20APP\x20(%s)\x20block','application','Executed\x20command\x20%s\x20%s','Enter\x20in\x20SESTEKTTS\x20(%s)\x20block','Enter\x20in\x20LUMENVOXASR\x20(%s)\x20block','RECOG_CONFIDENCE()','LUMENVOX_ASR_CONFIDENCE','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','odbc_id','no\x20database\x20selected','no\x20odbc\x20database\x20found','no\x20query\x20configured','query:\x20%s','getQueryOdbc','variable_id','no\x20variable\x20found','forEach','keys','%s[%s][%s]','%s_ROWS_COUNT','dial','sip_id','DIAL','SIP/%s','Executed\x20command\x20%s','dialogflow','Enter\x20in\x20DIALOGFLOW\x20(%s)\x20block','bot','Trying\x20Dialogflow:\x20%s','DIALOGFLOW_%s','toUpperCase','speech','out','Dialogflow\x20is\x20unreachable','dialogflowV2','Enter\x20in\x20DIALOGFLOW\x20V2\x20(%s)\x20block','no\x20project_id\x20configured','client_email','private_key','no\x20private_key\x20configured','no\x20anguage\x20configured','Trying\x20DialogflowV2:\x20%s','providerResponse','DialogflowV2\x20is\x20unreachable','sesteknda','Enter\x20in\x20SESTEKNDA\x20(%s)\x20block','ndauth_url','no\x20ndauth\x20url\x20configured','username','no\x20username\x20configured','password','no\x20password\x20configured','SESTEK_NDA_%s','audiofile','unlink','.wav','SestekNDA\x20Result\x20%s','SestekNDA\x20is\x20unreachable','Enter\x20in\x20END\x20(%s)\x20block','end','ext_dial','trunk_id','getTrunk','no\x20trunk\x20found','trunk_name','no\x20trunk\x20selected','SIP/%s/%s','opts','finally','Enter\x20in\x20FINALLY\x20(%s)\x20block','Enter\x20in\x20GETDIGITS\x20(%s)\x20block','file_id','no\x20file\x20audio\x20selected','no\x20file\x20audio\x20found','no\x20variable\x20selected\x20for\x20the\x20result','response','maxdigit','toString','test','mindigit','hiddendigitsnum','first','substr','Enter\x20in\x20GETSECRETDIGITS\x20(%s)\x20block','Enter\x20in\x20GOAL\x20(%s)\x20block','goalname','GOAL\x20%s','awspolly','[AGI]\x20Enter\x20in\x20AWSPOLLY\x20(%s)\x20block','Trying\x20aws\x20Polly\x20%s','streamFile','aws\x20Polly\x20is\x20unreachable','awslex','Enter\x20in\x20Amazon\x20Lex\x20(%s)\x20block','no\x20valid\x20credentials\x20configured','no\x20bot\x20name\x20configured','Trying\x20Amazon\x20Lex:\x20%s','amazonlex','Amazon\x20Lex\x20Result\x20%s','Amazon\x20Lex\x20is\x20unreachable','googleasr','Enter\x20in\x20GOOGLEASR\x20(%s)\x20block\x20%s','no\x20key\x20configured','wav','generate','beep','recordFile','google\x20%s\x20file\x20created','GOOGLE_ASR_%s','GoogleASR\x20Result\x20%s','tildeasr','Enter\x20in\x20TILDEASR\x20(%s)\x20block','appid','no\x20appid\x20configured','no\x20appsecret\x20configured','%s/recordings/%s','NOBEEP','intKey','tilde\x20%s\x20file\x20created','TILDE_ASR_%s','TildeASR\x20Result\x20%s','gotoc','Enter\x20in\x20GOTO\x20(%s)\x20block','continueAt','priority','Enter\x20in\x20GOTOIF\x20(%s)\x20block','condition','no\x20condition\x20configured','true','EVAL\x20CONDITION\x20%s\x20%s','false','no\x20interval\x20configured','interval_id','no\x20intervals\x20found','IFTIME\x20%s\x20%s','Enter\x20in\x20HANGUP\x20(%s)\x20block','ispeechasr','Enter\x20in\x20ISPEECHASR\x20(%s)\x20block','IspeechASR\x20Result\x20%s','Enter\x20in\x20ISPEECHTTS\x20(%s)\x20block','Trying\x20ispeech\x20TTS\x20%s','ispeech\x20TTS\x20is\x20unreachable','login','findBy','no\x20find\x20by\x20configured','FIND\x20AGENT\x20%s\x20BY\x20%s','AGENT\x20%s\x20FOUND\x20BY','success','AGENT\x20%s\x20NOT\x20FOUND\x20BY','logout','Enter\x20in\x20LOGOUT\x20(%s)\x20block','agentLogout','failure','math','Enter\x20in\x20MATH\x20(%s)\x20block','operation','no\x20operation\x20configured','math\x20%s','%s[%s]','variable\x20%s[key]\x20set','getData','Enter\x20in\x20NOOP\x20(%s)\x20block','output','pause','Enter\x20in\x20PAUSE\x20(%s)\x20block','getPause','pause_id','playback','Enter\x20in\x20PLAYBACK\x20(%s)\x20block','PLAYBACK','queue','queue_id','no\x20queue\x20selected','indexOf','XMCS-QUEUE','url','macro','gosub','QUEUE','record','recordingFormat','%s/recordings/%s.%s','Recording\x20%s\x20%s\x20%s\x20%s','escape_digits','Enter\x20in\x20RESTAPI\x20(%s)\x20block','no\x20url\x20configured','Response:','inspect','no\x20variable\x20selected\x20for\x20the\x20response','%s_STATUS_CODE','statusCode','200','Unable\x20to\x20set\x20result\x20in\x20variable\x20%s','variable\x20%s\x20set','saydigits','Enter\x20in\x20SAYDIGITS\x20(%s)\x20block','sayDigits','digits','saynumber','Enter\x20in\x20SAYNUMBER\x20(%s)\x20block','sayNumber','Enter\x20in\x20SAYPHONETIC\x20(%s)\x20block','sayPhonetic','sendMail','account_id','no\x20mail\x20account\x20configured','no\x20mail\x20account\x20found','\x22%s\x22\x20<%s>','email','Smtp','user','subject','template_id','debug','sendMail\x20message','Trying\x20SendMail\x20with\x20account\x20%s','smtpOptions','Mail\x20message\x20added\x20to\x20outgoing\x20process','sendFax','Enter\x20in\x20SENDFAX\x20(%s)\x20block','SENDFAX\x20block\x20not\x20implemented','sendSMS','getSmsAccount','no\x20sms\x20account\x20found','sms_text','sms_account_id','Trying\x20SendSMS\x20with\x20account\x20%s','Sms\x20message\x20added\x20to\x20outgoing\x20process','set','Enter\x20in\x20SET\x20(%s)\x20block','no\x20variable\x20selected','variable_value','Enter\x20in\x20START\x20(%s)\x20block','START\x20CALLY\x20SQUARE','XMCS-UNIQUEID','Answer','Skipped\x20Answer','subproject','Enter\x20in\x20SUBPROJECT\x20(%s)\x20block','project_id','no\x20subproject\x20selected','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','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','Trying\x20Google\x20Cloud\x20TTS\x20%s','tts','Enter\x20in\x20GOOGLETTS\x20(%s)\x20block','Trying\x20Google\x20TTS\x20%s','Google\x20TTS\x20%s\x20file\x20created','Google\x20TTS\x20is\x20unreachable','Enter\x20in\x20VOICEMAIL\x20(%s)\x20block','VOICEMAIL','mailbox','vswitch','join','exports','util','shelljs','odbc','randomstring','moment','request-promise','../../config/logger','agi','../../config/environment','./scripts','/var/opt/motion2/server/files','rawHeaders','rawBody','menu','getdigits','getsecretdigits','channel','mailRpc','getVariable','rpc','catch','prototype','getVoiceQueue','getVoiceQueueById','then','name','getSquareProject','getSquareProjectById','getSquareOdbc','getSquareOdbcById','dsn','getUser','getUserById','getTrunkById','getSound','getSoundById','save_name','getMailAccount','getMailAccountById','sendMailMessage','getIntervals','IntervalId','map','getSoundPath','format','%s/sounds/converted/%s','open','error','info','ODBC\x20connection\x20successfully','query','Error\x20executing\x20query\x20%s','Query\x20executed\x20correctly\x20%s','close','Error\x20closing\x20connection\x20to\x20odbc\x20%s','createSmsMessage','createSquareDetailsReport','uniqueid','label','agicommand','arg_1','callerid','createSquareRecording','calleridname','context','extension','accountcode','dnid','file','createSquareMessage','createCmContact','isEmpty','isNil','lastName','phone','callback','Callback\x20scheduled\x20at\x20','scheduledAt','callback_priority','getPauseById','agentPause','agentUnpause','agent','internal','%s/%s@from-sip/n','LOCAL','agentLogin','shellCommand','exec','trim','replace','googleCloudTTS','apiKey','text','languageCode','en-US','MALE','audioEncoding'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x0ba7,0x16d));var _0x70ba=function(_0x2858b3,_0x100f5d){_0x2858b3=_0x2858b3-0x0;var _0x22dec0=_0x0ba7[_0x2858b3];return _0x22dec0;};'use strict';var fs=require('fs');var util=require(_0x70ba('0x0'));var _=require('lodash');var sh=require(_0x70ba('0x1'));var odbc=require(_0x70ba('0x2'))();var rs=require(_0x70ba('0x3'));var moment=require(_0x70ba('0x4'));var Mustache=require('mustache');var rp=require(_0x70ba('0x5'));var logger=require(_0x70ba('0x6'))(_0x70ba('0x7'));var config=require(_0x70ba('0x8'));var scripts=require(_0x70ba('0x9'));var FILES_PATH=_0x70ba('0xa');var recursiveMapAttributes=[_0x70ba('0xb'),_0x70ba('0xc')];var verticesWithRetry=[_0x70ba('0xd'),_0x70ba('0xe'),_0x70ba('0xf')];var AGIVertices=function(_0x41cd10,_0x1264b0,_0x371629){this[_0x70ba('0x10')]=_0x41cd10;this['rpc']=_0x1264b0;this[_0x70ba('0x11')]=_0x371629;};AGIVertices['prototype'][_0x70ba('0x12')]=function(_0x258604,_0xfc4de3){this[_0x70ba('0x13')]['getVariableById'](_0x258604)['then'](function(_0x12cea8){_0xfc4de3(null,_0x12cea8?_0x12cea8['name']:![]);})[_0x70ba('0x14')](function(_0x5e94c7){_0xfc4de3(_0x5e94c7);});};AGIVertices[_0x70ba('0x15')][_0x70ba('0x16')]=function(_0x4df1e3,_0x1d674b){this['rpc'][_0x70ba('0x17')](_0x4df1e3)[_0x70ba('0x18')](function(_0x211b0e){_0x1d674b(null,_0x211b0e?_0x211b0e[_0x70ba('0x19')]:![]);})[_0x70ba('0x14')](function(_0x29734b){_0x1d674b(_0x29734b);});};AGIVertices[_0x70ba('0x15')][_0x70ba('0x1a')]=function(_0x18334a,_0x3e27e8){this[_0x70ba('0x13')][_0x70ba('0x1b')](_0x18334a)[_0x70ba('0x18')](function(_0xb6d69a){_0x3e27e8(null,_0xb6d69a?_0xb6d69a['name']:![]);})['catch'](function(_0x489cf9){_0x3e27e8(_0x489cf9);});};AGIVertices[_0x70ba('0x15')][_0x70ba('0x1c')]=function(_0x20c2aa,_0xb4dad){this[_0x70ba('0x13')][_0x70ba('0x1d')](_0x20c2aa)[_0x70ba('0x18')](function(_0x2763f3){_0xb4dad(null,_0x2763f3?_0x2763f3[_0x70ba('0x1e')]:![]);})[_0x70ba('0x14')](function(_0x26c039){_0xb4dad(_0x26c039);});};AGIVertices[_0x70ba('0x15')][_0x70ba('0x1f')]=function(_0x4570b0,_0x273ce4){this['rpc'][_0x70ba('0x20')](_0x4570b0)[_0x70ba('0x18')](function(_0x52accf){_0x273ce4(null,_0x52accf?_0x52accf[_0x70ba('0x19')]:![]);})['catch'](function(_0x4868a1){_0x273ce4(_0x4868a1);});};AGIVertices[_0x70ba('0x15')]['getTrunk']=function(_0x45bbf2,_0x304a41){this['rpc'][_0x70ba('0x21')](_0x45bbf2)['then'](function(_0x5ad828){_0x304a41(null,_0x5ad828?_0x5ad828[_0x70ba('0x19')]:![]);})['catch'](function(_0x230d11){_0x304a41(_0x230d11);});};AGIVertices[_0x70ba('0x15')][_0x70ba('0x22')]=function(_0x33e218,_0x2c6d18){var _0x265423=this;this['rpc'][_0x70ba('0x23')](_0x33e218)[_0x70ba('0x18')](function(_0x797467){_0x2c6d18(null,_0x797467?_0x265423['getSoundPath'](_0x797467[_0x70ba('0x24')]):![]);})['catch'](function(_0x5955dc){_0x2c6d18(_0x5955dc);});};AGIVertices['prototype'][_0x70ba('0x25')]=function(_0x345edd,_0x5b6e6e){this['rpc'][_0x70ba('0x26')](_0x345edd)['then'](function(_0x102661){_0x5b6e6e(null,_0x102661?_0x102661:![]);})[_0x70ba('0x14')](function(_0x46b7e3){_0x5b6e6e(_0x46b7e3);});};AGIVertices[_0x70ba('0x15')][_0x70ba('0x27')]=function(_0x269943,_0x1f86cf,_0x9bafd){this[_0x70ba('0x11')][_0x70ba('0x27')](_0x269943,_0x1f86cf)[_0x70ba('0x18')](function(){_0x9bafd(null);})['catch'](function(_0x576ec4){_0x9bafd(_0x576ec4);});};AGIVertices[_0x70ba('0x15')][_0x70ba('0x28')]=function(_0x943e49,_0x563f68){this['rpc']['getIntervalById'](_0x943e49)[_0x70ba('0x18')](function(_0x806866){if(_0x806866){if(_0x806866[_0x70ba('0x29')]){_0x563f68(null,[_0x806866['interval']]);}else{_0x563f68(null,_[_0x70ba('0x2a')](_0x806866['Intervals'],'interval'));}}else{_0x563f68(null,![]);}})[_0x70ba('0x14')](function(_0x591596){_0x563f68(_0x591596);});};AGIVertices[_0x70ba('0x15')][_0x70ba('0x2b')]=function(_0x4f3d6f){return util[_0x70ba('0x2c')](_0x70ba('0x2d'),FILES_PATH,_0x4f3d6f);};AGIVertices[_0x70ba('0x15')]['getQueryOdbc']=function(_0x1402b2,_0x20c3fd,_0xbb0c72){odbc[_0x70ba('0x2e')](_0x1402b2,function(_0x5245f7){if(_0x5245f7){logger[_0x70ba('0x2f')]('Error\x20getting\x20ODBC\x20connection\x20%s',_0x5245f7);_0xbb0c72(_0x5245f7);}else{logger[_0x70ba('0x30')](_0x70ba('0x31'));odbc[_0x70ba('0x32')](_0x20c3fd,function(_0x450eb3,_0x16ce39){if(_0x450eb3){logger[_0x70ba('0x30')](_0x70ba('0x33'),_0x20c3fd);_0xbb0c72(_0x450eb3);}else{logger['info'](_0x70ba('0x34'),_0x20c3fd);odbc[_0x70ba('0x35')](function(_0x31e713){if(_0x31e713){logger[_0x70ba('0x2f')](_0x70ba('0x36'),_0x31e713);}_0xbb0c72(null,_0x16ce39);});}});}});};AGIVertices[_0x70ba('0x15')]['getSmsAccount']=function(_0x452208,_0x175152){this[_0x70ba('0x13')]['getSmsAccountById'](_0x452208)['then'](function(_0x5ee9b1){_0x175152(null,_0x5ee9b1?_0x5ee9b1:![]);})[_0x70ba('0x14')](function(_0x59044){_0x175152(_0x59044);});};AGIVertices[_0x70ba('0x15')]['createSmsMessage']=function(_0x24a8c3,_0x27203b){this[_0x70ba('0x13')][_0x70ba('0x37')](_0x24a8c3)[_0x70ba('0x18')](function(_0x54e732){_0x27203b(null,_0x54e732);})['catch'](function(_0x7b0436){_0x27203b(_0x7b0436);});};AGIVertices[_0x70ba('0x15')][_0x70ba('0x38')]=function(_0x5a1edb,_0x595645,_0x2fc262){this['rpc'][_0x70ba('0x38')]({'uniqueid':this[_0x70ba('0x10')][_0x70ba('0x39')],'node':_0x5a1edb[_0x70ba('0x3a')],'application':_0x5a1edb[_0x70ba('0x3b')],'data':_0x595645||null,'project_name':this['channel'][_0x70ba('0x3c')],'callerid':this[_0x70ba('0x10')][_0x70ba('0x3d')]})[_0x70ba('0x18')](function(_0x817e59){if(_0x2fc262){_0x2fc262(null,_0x817e59);}})[_0x70ba('0x14')](function(_0x900910){if(_0x2fc262){_0x2fc262(_0x900910);}});};AGIVertices[_0x70ba('0x15')][_0x70ba('0x3e')]=function(_0x1f804b,_0x389571,_0x349059,_0x3e3ce5){this[_0x70ba('0x13')][_0x70ba('0x3e')]({'uniqueid':this['channel'][_0x70ba('0x39')],'callerid':this[_0x70ba('0x10')]['callerid'],'calleridname':this[_0x70ba('0x10')][_0x70ba('0x3f')],'context':this[_0x70ba('0x10')][_0x70ba('0x40')],'extension':this[_0x70ba('0x10')][_0x70ba('0x41')],'priority':this[_0x70ba('0x10')]['priority'],'accountcode':this[_0x70ba('0x10')][_0x70ba('0x42')],'dnid':this[_0x70ba('0x10')][_0x70ba('0x43')],'projectName':this[_0x70ba('0x10')][_0x70ba('0x3c')],'saveName':_0x389571,'filename':_0x1f804b[_0x70ba('0x44')]||_0x389571,'savePath':_0x349059})[_0x70ba('0x18')](function(_0xc574b){_0x3e3ce5(null,_0xc574b);})[_0x70ba('0x14')](function(_0x3a4247){_0x3e3ce5(_0x3a4247);});};AGIVertices[_0x70ba('0x15')][_0x70ba('0x45')]=function(_0x16af4d,_0x25f68a,_0x2536cd,_0x9f97c5,_0x4a848b){this[_0x70ba('0x13')][_0x70ba('0x45')]({'uniqueid':this[_0x70ba('0x10')][_0x70ba('0x39')],'body':_0x16af4d,'direction':_0x25f68a,'providerName':_0x2536cd,'providerResponse':_0x9f97c5})['then'](function(_0x47c40c){if(_0x4a848b){_0x4a848b(null,_0x47c40c);}})['catch'](function(_0x471d19){if(_0x4a848b){_0x4a848b(_0x471d19);}});};AGIVertices[_0x70ba('0x15')]['createCmContact']=function(_0x572834,_0x6a3dc6){this[_0x70ba('0x13')][_0x70ba('0x46')]({'firstName':_[_0x70ba('0x47')](_0x572834[_0x70ba('0x19')])||_[_0x70ba('0x48')](_0x572834[_0x70ba('0x19')])?'callback_'+Math['random']():_0x572834[_0x70ba('0x19')],'lastName':_[_0x70ba('0x47')](_0x572834[_0x70ba('0x49')])||_[_0x70ba('0x48')](_0x572834['lastName'])?null:_0x572834[_0x70ba('0x49')],'phone':_0x572834[_0x70ba('0x4a')],'ListId':_0x572834['list_id'],'scheduledat':_0x572834['scheduledAt'],'callbackUniqueid':this['channel']['uniqueid'],'tags':_0x70ba('0x4b'),'description':_0x70ba('0x4c')+_0x572834[_0x70ba('0x4d')]['toString'](),'priority':_0x572834[_0x70ba('0x4e')]})[_0x70ba('0x18')](function(_0x29bb0b){_0x6a3dc6(null,_0x29bb0b);})['catch'](function(_0x1bdcd4){_0x6a3dc6(_0x1bdcd4);});};AGIVertices[_0x70ba('0x15')]['getPause']=function(_0x49f89a,_0x2ccfd4){this[_0x70ba('0x13')][_0x70ba('0x4f')](_0x49f89a)[_0x70ba('0x18')](function(_0x10e824){_0x2ccfd4(null,_0x10e824?_0x10e824[_0x70ba('0x19')]:![]);})[_0x70ba('0x14')](function(_0x5e7a92){_0x2ccfd4(_0x5e7a92);});};AGIVertices[_0x70ba('0x15')][_0x70ba('0x50')]=function(_0x4de412,_0x508da6,_0x137b7d){var _0x26c5a7={'role':'agent'};_0x26c5a7[_0x4de412]=this['channel'][_0x70ba('0x3d')];this['rpc']['agentPause'](_0x26c5a7,_0x508da6,this[_0x70ba('0x10')][_0x70ba('0x39')])[_0x70ba('0x18')](function(_0xb03649){_0x137b7d(null,_[_0x70ba('0x48')](_0xb03649)?![]:!![]);})[_0x70ba('0x14')](function(_0xeac8a8){logger['error'](_0xeac8a8);_0x137b7d(null,![]);});};AGIVertices[_0x70ba('0x15')][_0x70ba('0x51')]=function(_0x16e607,_0xaad21){var _0x355df4={'role':_0x70ba('0x52')};_0x355df4[_0x16e607]=this['channel'][_0x70ba('0x3d')];this['rpc'][_0x70ba('0x51')](_0x355df4)['then'](function(_0x3badfd){_0xaad21(null,_[_0x70ba('0x48')](_0x3badfd)?![]:!![]);})[_0x70ba('0x14')](function(_0x305df9){logger[_0x70ba('0x2f')](_0x305df9);_0xaad21(null,![]);});};AGIVertices[_0x70ba('0x15')]['agentLogout']=function(_0x2a46cd,_0x4d7e67){var _0x490948={'role':_0x70ba('0x52')};_0x490948[_0x2a46cd]=this[_0x70ba('0x10')]['callerid'];this[_0x70ba('0x13')]['agentLogout'](_0x490948)[_0x70ba('0x18')](function(_0x2a8aa9){_0x4d7e67(null,_[_0x70ba('0x48')](_0x2a8aa9)?![]:!![]);})['catch'](function(_0x327219){logger['error'](_0x327219);_0x4d7e67(null,![]);});};AGIVertices[_0x70ba('0x15')]['agentLogin']=function(_0x2ee3d0,_0x3e0aeb){var _0x1bd96e={'role':_0x70ba('0x52')};_0x1bd96e[_0x2ee3d0]=this['channel'][_0x70ba('0x3d')];var _0x530324=_0x2ee3d0!=_0x70ba('0x53')?util[_0x70ba('0x2c')](_0x70ba('0x54'),_0x70ba('0x55'),this['channel'][_0x70ba('0x3d')]):undefined;this[_0x70ba('0x13')][_0x70ba('0x56')](_0x1bd96e,_0x530324)[_0x70ba('0x18')](function(_0x14c761){_0x3e0aeb(null,_[_0x70ba('0x48')](_0x14c761)?![]:!![]);})[_0x70ba('0x14')](function(_0x2e0f08){logger['error'](_0x2e0f08);_0x3e0aeb(null,![]);});};AGIVertices[_0x70ba('0x15')][_0x70ba('0x57')]=function(_0x28294e,_0x157404){sh[_0x70ba('0x58')](_[_0x70ba('0x59')](_0x28294e),function(_0xb2276e,_0x4d83ab){var _0x1bc8c6=_0x4d83ab[_0x70ba('0x5a')](/(\r\n|\n|\r)/gm,'');_0x157404(null,_0x1bc8c6);});};AGIVertices[_0x70ba('0x15')][_0x70ba('0x5b')]=function(_0x30fad7,_0x67628f){scripts[_0x70ba('0x5b')](_0x30fad7[_0x70ba('0x5c')],_0x30fad7['google_cloud_tts_text_type']||'text',_0x30fad7[_0x70ba('0x5d')],_0x30fad7[_0x70ba('0x5e')]||_0x70ba('0x5f'),_0x30fad7['ssmlGender']||_0x70ba('0x60'),_0x30fad7[_0x70ba('0x61')]||_0x70ba('0x62'))['then'](function(_0x3e341a){_0x67628f(null,_0x3e341a);})[_0x70ba('0x14')](function(_0xa9009d){_0x67628f(_0xa9009d);});};AGIVertices[_0x70ba('0x15')][_0x70ba('0x63')]=function(_0x3184cc,_0x22e520){scripts['googleTTS'](_0x3184cc[_0x70ba('0x5d')],_0x3184cc['google_tts_language']||'en',0x1)['then'](function(_0x12f420){_0x22e520(null,_0x12f420);})[_0x70ba('0x14')](function(_0x13cb22){_0x22e520(_0x13cb22);});};AGIVertices[_0x70ba('0x15')][_0x70ba('0x64')]=function(_0x408f46,_0x36eb0f){var _0x315ed4={'uri':_0x408f46['url'],'method':_0x408f46[_0x70ba('0x65')],'json':!![],'resolveWithFullResponse':!![],'strictSSL':![],'timeout':typeof parseInt(_0x408f46[_0x70ba('0x66')])===_0x70ba('0x67')&&parseInt(_0x408f46['timeout'])>=0x1?parseInt(_0x408f46['timeout'])*0x3e8:0x5*0x3e8};if(_['includes']([_0x70ba('0x68'),'PUT'],_0x315ed4['method']['toUpperCase']())){try{_0x315ed4[_0x70ba('0x69')]=_0x408f46[_0x70ba('0xc')]?JSON[_0x70ba('0x6a')](_0x408f46[_0x70ba('0xc')]):{};}catch(_0xe214a7){logger['error']('An\x20incorrect\x20formatted\x20json\x20body\x20has\x20been\x20passed\x20to\x20the\x20function',_0xe214a7);}}try{_0x315ed4[_0x70ba('0x6b')]=_0x408f46[_0x70ba('0xb')]?JSON['parse'](_0x408f46[_0x70ba('0xb')]):{};}catch(_0x3ba6c3){logger[_0x70ba('0x2f')]('An\x20incorrect\x20formatted\x20json\x20headers\x20has\x20been\x20passed\x20to\x20the\x20function',_0x3ba6c3);}if(_0x408f46[_0x70ba('0x6c')]){try{var _0x534ea9=require(_0x408f46[_0x70ba('0x6c')])[_0x70ba('0x6d')](this,_0x315ed4);_0x315ed4['uri']=Mustache[_0x70ba('0x6e')](_0x408f46['url'],_0x534ea9,{},['$$','$$']);if(_0x315ed4[_0x70ba('0x6b')]){_0x315ed4[_0x70ba('0x6b')]=JSON['parse'](Mustache[_0x70ba('0x6e')](JSON[_0x70ba('0x6f')](_0x315ed4[_0x70ba('0x6b')]),_0x534ea9,{},['$$','$$']));}if(_0x315ed4[_0x70ba('0x69')]){_0x315ed4[_0x70ba('0x69')]=JSON[_0x70ba('0x6a')](Mustache[_0x70ba('0x6e')](JSON[_0x70ba('0x6f')](_0x315ed4[_0x70ba('0x69')]),_0x534ea9,{},['$$','$$']));}}catch(_0xc4c5d3){logger['error'](_0x70ba('0x70'),_0xc4c5d3);}}rp(_0x315ed4)[_0x70ba('0x18')](function(_0x46e1f1){var _0x313a9a={'statusCode':_0x46e1f1['statusCode']||0xc8,'statusMessage':_0x46e1f1[_0x70ba('0x71')]||'OK','headers':_0x46e1f1['headers']||{},'body':_0x46e1f1[_0x70ba('0x69')]||{}};_0x36eb0f(null,_0x313a9a);})['catch'](function(_0x44b3ad){var _0x18d129={'statusCode':_0x44b3ad['statusCode']||0x1f4,'statusMessage':_0x44b3ad[_0x70ba('0x72')]||_0x70ba('0x73'),'headers':_0x44b3ad[_0x70ba('0x74')][_0x70ba('0x6b')]||{},'body':_0x44b3ad[_0x70ba('0x74')][_0x70ba('0x69')]||{}};_0x36eb0f(null,_0x18d129);});};AGIVertices[_0x70ba('0x15')][_0x70ba('0x75')]=function(_0x58e514,_0x3b4036){scripts[_0x70ba('0x75')](this[_0x70ba('0x10')][_0x70ba('0x39')],_0x58e514[_0x70ba('0x76')],_0x58e514[_0x70ba('0x5d')],_0x58e514[_0x70ba('0x77')]||'en')[_0x70ba('0x18')](function(_0x57ec44){_0x3b4036(null,_0x57ec44);})[_0x70ba('0x14')](function(_0x3b4ee6){_0x3b4036(_0x3b4ee6);});};AGIVertices[_0x70ba('0x15')]['googleDialogflowV2']=function(_0x271b69,_0x1a037e){scripts[_0x70ba('0x78')](this['channel']['uniqueid'],_0x271b69[_0x70ba('0x79')],_0x271b69['client_email'],_0x271b69['private_key'],_0x271b69[_0x70ba('0x5d')],_0x271b69[_0x70ba('0x7a')]||'en')[_0x70ba('0x18')](function(_0x10282f){_0x1a037e(null,_0x10282f);})[_0x70ba('0x14')](function(_0x239265){_0x1a037e(_0x239265);});};AGIVertices['prototype']['sestekNDA']=function(_0xa0f12b,_0x312048){scripts[_0x70ba('0x7b')](this[_0x70ba('0x10')],_0xa0f12b)['then'](function(_0x3e4ec7){_0x312048(null,_0x3e4ec7);})[_0x70ba('0x14')](function(_0x459128){_0x312048(_0x459128);});};AGIVertices[_0x70ba('0x15')][_0x70ba('0x7c')]=function(_0x3e3e45,_0x132ff1){scripts[_0x70ba('0x7c')](_0x3e3e45[_0x70ba('0x76')],_0x3e3e45[_0x70ba('0x5d')],_0x3e3e45[_0x70ba('0x7d')]||_0x70ba('0x5f'),_0x3e3e45[_0x70ba('0x7e')])[_0x70ba('0x18')](function(_0x53df7a){_0x132ff1(null,_0x53df7a);})[_0x70ba('0x14')](function(_0x24328e){_0x132ff1(_0x24328e);});};AGIVertices[_0x70ba('0x15')]['ispeechASR']=function(_0x5f2e0a,_0x54849c,_0x1e9f8a){scripts[_0x70ba('0x7f')](_0x54849c,_0x5f2e0a[_0x70ba('0x76')],_0x5f2e0a[_0x70ba('0x80')]||'en-US',this[_0x70ba('0x81')](_0x5f2e0a[_0x70ba('0x82')])?_0x5f2e0a[_0x70ba('0x82')]:undefined)[_0x70ba('0x18')](function(_0x5445e7){_0x1e9f8a(null,_0x5445e7);})['catch'](function(_0x4875e6){_0x1e9f8a(_0x4875e6);});};AGIVertices[_0x70ba('0x15')]['awsPolly']=function(_0x363fa4,_0x5e2822){scripts[_0x70ba('0x83')](_0x363fa4[_0x70ba('0x84')],_0x363fa4['aws_secret_access_key'],_0x363fa4['aws_polly_region'],_0x363fa4[_0x70ba('0x85')]||'Amy',_0x363fa4['text'],_0x363fa4[_0x70ba('0x86')]||_0x70ba('0x5d'))[_0x70ba('0x18')](function(_0x374ed7){_0x5e2822(null,_0x374ed7);})[_0x70ba('0x14')](function(_0x130029){_0x5e2822(_0x130029);});};AGIVertices[_0x70ba('0x15')][_0x70ba('0x87')]=function(_0x152fdb,_0x26c4a7){scripts[_0x70ba('0x87')](this[_0x70ba('0x10')][_0x70ba('0x39')],_0x152fdb[_0x70ba('0x84')],_0x152fdb[_0x70ba('0x88')],_0x152fdb['aws_lex_region'],_0x152fdb[_0x70ba('0x5d')],_0x152fdb[_0x70ba('0x89')])[_0x70ba('0x18')](function(_0x5441f9){_0x26c4a7(null,_0x5441f9);})[_0x70ba('0x14')](function(_0x2fbf2b){_0x26c4a7(_0x2fbf2b);});};AGIVertices['prototype'][_0x70ba('0x8a')]=function(_0x490b96,_0x4cf238,_0xb13413){scripts['googleASR'](_0x4cf238,_0x490b96[_0x70ba('0x76')],_0x490b96['google_asr_language']||_0x70ba('0x5f'))[_0x70ba('0x18')](function(_0x3386fd){_0xb13413(null,_0x3386fd);})[_0x70ba('0x14')](function(_0x365faf){_0xb13413(_0x365faf);});};AGIVertices[_0x70ba('0x15')][_0x70ba('0x8b')]=function(_0x360b23,_0x5a1e70,_0x541fb6){scripts[_0x70ba('0x8b')](_0x5a1e70,_0x360b23['appid'],_0x360b23[_0x70ba('0x8c')],_0x360b23[_0x70ba('0x8d')])[_0x70ba('0x18')](function(_0x1359cc){_0x541fb6(null,_0x1359cc);})[_0x70ba('0x14')](function(_0xa0e34d){_0x541fb6(_0xa0e34d);});};AGIVertices[_0x70ba('0x15')][_0x70ba('0x8e')]=function(_0x1e537b){var _0x5ebb9a=_['includes'](verticesWithRetry,_0x1e537b['agicommand'])?_0x1e537b:_[_0x70ba('0x8f')](_0x1e537b);for(var _0x556c20 in _0x5ebb9a){if(_0x5ebb9a[_0x70ba('0x90')](_0x556c20)){if(_0x5ebb9a[_0x556c20]&&_[_0x70ba('0x91')](_0x5ebb9a[_0x556c20])){if(_[_0x70ba('0x92')](recursiveMapAttributes,_0x556c20)){_0x5ebb9a[_0x556c20]=this['replaceObjectAllVariables'](_0x5ebb9a[_0x556c20]);}else{_0x5ebb9a[_0x556c20]=this[_0x70ba('0x93')](_0x5ebb9a[_0x556c20]);}}}}return _0x5ebb9a;};AGIVertices[_0x70ba('0x15')][_0x70ba('0x94')]=function(_0x363aad){for(var _0x21dff6 in _0x363aad){if(_0x363aad[_0x70ba('0x90')](_0x21dff6)){if(_['isPlainObject'](_0x363aad[_0x21dff6])){this['recursiveNodeIndex'](_0x363aad[_0x21dff6]);}else if(_[_0x70ba('0x95')](_0x363aad[_0x21dff6])){for(var _0x4302e6=0x0;_0x4302e6<_0x363aad[_0x21dff6]['length'];_0x4302e6++){this[_0x70ba('0x94')](_0x363aad[_0x21dff6][_0x4302e6]);}}else if(_['isString'](_0x363aad[_0x21dff6])){_0x363aad[_0x21dff6]=this[_0x70ba('0x93')](_0x363aad[_0x21dff6]);}}}};AGIVertices[_0x70ba('0x15')]['saveRestApiResult']=function(_0x3b3c28,_0x1dc7db){for(var _0x814ec6 in _0x3b3c28){if(_0x3b3c28[_0x70ba('0x90')](_0x814ec6)){if(_['isPlainObject'](_0x3b3c28[_0x814ec6])){if(!_[_0x70ba('0x47')](_0x3b3c28[_0x814ec6])){this[_0x70ba('0x96')](_0x3b3c28[_0x814ec6],util[_0x70ba('0x2c')](_0x70ba('0x97'),_0x1dc7db,_0x814ec6));}}else if(_['isArray'](_0x3b3c28[_0x814ec6])){for(var _0x10acf1=0x0;_0x10acf1<_0x3b3c28[_0x814ec6][_0x70ba('0x98')];_0x10acf1++){this[_0x70ba('0x96')](_0x3b3c28[_0x814ec6][_0x10acf1],util[_0x70ba('0x2c')]('%s.%s',_0x1dc7db,_0x814ec6+'['+_0x10acf1+']'));}}else{if(!_['isNil'](_0x3b3c28[_0x814ec6])){this[_0x70ba('0x10')][_0x70ba('0x99')](util['format'](_0x70ba('0x97'),_0x1dc7db,_0x814ec6),_0x3b3c28[_0x814ec6]);}}}}};AGIVertices[_0x70ba('0x15')][_0x70ba('0x9a')]=function(_0xcdd6c4){try{var _0x2cfbd8=JSON[_0x70ba('0x6a')](_0xcdd6c4);this[_0x70ba('0x94')](_0x2cfbd8);return JSON[_0x70ba('0x6f')](_0x2cfbd8);}catch(_0x1536d6){return this[_0x70ba('0x93')](_0xcdd6c4);}};AGIVertices[_0x70ba('0x15')][_0x70ba('0x93')]=function(_0x1d90be){var _0xa83ff8=_0x1d90be[_0x70ba('0x9b')]('{');for(var _0x203622=0x1;_0x203622<_0xa83ff8[_0x70ba('0x98')];_0x203622+=0x1){var _0x53e87f=_0xa83ff8[_0x203622][_0x70ba('0x9b')]('}');if(_0x53e87f[_0x70ba('0x98')]>0x1){_0x1d90be=_0x1d90be[_0x70ba('0x9c')]('{'+_0x53e87f[0x0]+'}',this[_0x70ba('0x10')][_0x70ba('0x12')](_0x53e87f[0x0])[_0x70ba('0x9d')]||_0x53e87f[0x0]);}}if(_0xa83ff8[_0x70ba('0x98')]===0x1){return _0x1d90be['toString']();}return this['replaceAllVariables'](_0x1d90be);};AGIVertices[_0x70ba('0x15')]['getAndSetVariable']=function(_0x18db80,_0x1a23d9){var _0x12329d=this[_0x70ba('0x10')][_0x70ba('0x12')](_0x18db80);if(_0x12329d[_0x70ba('0x9e')]===-0x1){return _0x12329d;}logger[_0x70ba('0x30')](util['format'](_0x70ba('0x9f'),_0x1a23d9,_0x12329d[_0x70ba('0x9d')]));return this[_0x70ba('0x10')][_0x70ba('0x99')](_0x1a23d9,_0x12329d[_0x70ba('0x9d')]);};AGIVertices[_0x70ba('0x15')]['isConfigured']=function(_0x610164){return _0x610164&&_0x610164!=='0'&&_0x610164!=='-1'&&_0x610164!=='';};AGIVertices[_0x70ba('0x15')][_0x70ba('0xa0')]=function(_0x408378){this[_0x70ba('0x38')][_0x70ba('0x6d')](this,_0x408378,'-');_0x408378[_0x70ba('0xa1')]=_0x408378['maxRetry'];return{'code':0xc8,'result':'-'};};AGIVertices['prototype'][_0x70ba('0xa2')]=function(_0x312626){logger['info'](util[_0x70ba('0x2c')]('Enter\x20in\x20MRCPSynth\x20(%s)\x20block',_0x312626[_0x70ba('0x3a')]));if(!this[_0x70ba('0x81')](_0x312626[_0x70ba('0x5d')])){return this[_0x70ba('0x10')][_0x70ba('0xa3')](_0x70ba('0xa4'));}var _0x375b6d='\x22'+_0x312626[_0x70ba('0x5d')]+'\x22';if(this[_0x70ba('0x81')](_0x312626['options'])){_0x375b6d+=','+_0x312626[_0x70ba('0x74')];}var _0x237d3b=this[_0x70ba('0x10')]['exec'](_0x70ba('0xa5'),_0x375b6d);if(_0x237d3b[_0x70ba('0x9e')]===-0x1){return _0x237d3b;}return this['channel'][_0x70ba('0xa3')](util[_0x70ba('0x2c')](_0x70ba('0xa6'),_0x375b6d));};AGIVertices[_0x70ba('0x15')][_0x70ba('0xa7')]=function(_0x3016dd){logger[_0x70ba('0x30')](util[_0x70ba('0x2c')](_0x70ba('0xa8'),_0x3016dd[_0x70ba('0x3a')]));if(!this[_0x70ba('0x81')](_0x3016dd[_0x70ba('0xa9')])){return this[_0x70ba('0x10')]['noop'](_0x70ba('0xaa'));}var _0x491471=_0x3016dd[_0x70ba('0xa9')];if(this[_0x70ba('0x81')](_0x3016dd['options'])){_0x491471+=','+_0x3016dd['options'];}var _0x5e5e6b=this[_0x70ba('0x10')][_0x70ba('0x58')](_0x70ba('0xab'),_0x491471);if(_0x5e5e6b[_0x70ba('0x9e')]===-0x1){return _0x5e5e6b;}var _0x226f09=this['getAndSetVariable']('RECOG_CONFIDENCE()',_0x70ba('0xac'));if(_0x226f09['result']===-0x1){return _0x226f09;}var _0xb1be95=this[_0x70ba('0xad')](_0x70ba('0xae'),_0x70ba('0xaf'));if(_0xb1be95[_0x70ba('0x9e')]===-0x1){return _0xb1be95;}var _0x6b82ab=this[_0x70ba('0xad')](_0x70ba('0xb0'),_0x70ba('0xb1'));if(_0x6b82ab[_0x70ba('0x9e')]===-0x1){return _0x6b82ab;}return this[_0x70ba('0x10')][_0x70ba('0xa3')](util[_0x70ba('0x2c')](_0x70ba('0xb2'),_0x491471));};AGIVertices[_0x70ba('0x15')][_0x70ba('0x7')]=function(_0x569c8a){logger[_0x70ba('0x30')](util['format'](_0x70ba('0xb3'),_0x569c8a['label']));return this[_0x70ba('0x10')][_0x70ba('0x7')]([_0x569c8a['command'],_0x569c8a[_0x70ba('0xb4')]]);};AGIVertices[_0x70ba('0x15')][_0x70ba('0xb5')]=function(_0x2e6661){logger[_0x70ba('0x30')](util[_0x70ba('0x2c')](_0x70ba('0xb6'),_0x2e6661[_0x70ba('0x3a')]));if(this[_0x70ba('0x81')](_0x2e6661[_0x70ba('0x66')])){logger[_0x70ba('0x30')](util['format'](_0x70ba('0xb7'),_0x2e6661[_0x70ba('0x66')]));var _0x1e1133=this['channel'][_0x70ba('0xb8')](_0x2e6661['timeout']);if(_0x1e1133[_0x70ba('0x9e')]===-0x1){return _0x1e1133;}}return this['channel'][_0x70ba('0xb5')]();};AGIVertices[_0x70ba('0x15')][_0x70ba('0x4b')]=function(_0x264058){logger[_0x70ba('0x30')](util[_0x70ba('0x2c')](_0x70ba('0xb9'),_0x264058[_0x70ba('0x3a')]));if(!this[_0x70ba('0x81')](_0x264058[_0x70ba('0xba')])){return this['channel']['error'](_0x264058,'no\x20list\x20selected');}_0x264058[_0x70ba('0x4d')]=moment();if(this[_0x70ba('0x81')](_0x264058[_0x70ba('0xbb')])){_0x264058[_0x70ba('0x4d')]=moment()['add'](_0x264058[_0x70ba('0xbb')],_0x70ba('0xbc'));}if(!this[_0x70ba('0x81')](_0x264058[_0x70ba('0x4e')])){_0x264058['callback_priority']=0x2;}this[_0x70ba('0x46')][_0x70ba('0x6d')](this,_0x264058);return this['channel'][_0x70ba('0xa3')](util[_0x70ba('0x2c')]('CALLBACK\x20added\x20phone:\x20%s\x20on\x20list:\x20%s\x20at\x20%s',_0x264058[_0x70ba('0x4a')],_0x264058['list_id'],_0x264058[_0x70ba('0x4d')]));};AGIVertices[_0x70ba('0x15')][_0x70ba('0xbd')]=function(_0x43b8d4){logger['info'](util[_0x70ba('0x2c')](_0x70ba('0xbe'),_0x43b8d4[_0x70ba('0x3a')]));var _0x357fc2=this[_0x70ba('0x10')]['exec'](_0x43b8d4[_0x70ba('0xbf')],_0x43b8d4[_0x70ba('0x74')]);if(_0x357fc2['result']===-0x1){return _0x357fc2;}return this[_0x70ba('0x10')][_0x70ba('0xa3')](util[_0x70ba('0x2c')](_0x70ba('0xc0'),_0x43b8d4[_0x70ba('0xbf')],_0x43b8d4['options']));};AGIVertices[_0x70ba('0x15')]['lumenvoxtts']=function(_0x5a22b1){logger[_0x70ba('0x30')](util[_0x70ba('0x2c')]('Enter\x20in\x20LUMENVOXTTS\x20(%s)\x20block',_0x5a22b1[_0x70ba('0x3a')]));if(!this[_0x70ba('0x81')](_0x5a22b1['text'])){return this['channel'][_0x70ba('0xa3')]('no\x20text\x20configured');}var _0x5f5831='\x22'+_0x5a22b1[_0x70ba('0x5d')]+'\x22';if(this[_0x70ba('0x81')](_0x5a22b1[_0x70ba('0x74')])){_0x5f5831+=','+_0x5a22b1['options'];}var _0x29e322=this[_0x70ba('0x10')][_0x70ba('0x58')](_0x70ba('0xa5'),_0x5f5831);if(_0x29e322[_0x70ba('0x9e')]===-0x1){return _0x29e322;}return this['channel'][_0x70ba('0xa3')](util['format'](_0x70ba('0xa6'),_0x5f5831));};AGIVertices[_0x70ba('0x15')]['sestektts']=function(_0x4fb1f0){logger[_0x70ba('0x30')](util[_0x70ba('0x2c')](_0x70ba('0xc1'),_0x4fb1f0[_0x70ba('0x3a')]));if(!this['isConfigured'](_0x4fb1f0[_0x70ba('0x5d')])){return this['channel'][_0x70ba('0xa3')](_0x70ba('0xa4'));}var _0x29b478='\x22'+_0x4fb1f0[_0x70ba('0x5d')]+'\x22';if(this[_0x70ba('0x81')](_0x4fb1f0[_0x70ba('0x74')])){_0x29b478+=','+_0x4fb1f0['options'];}var _0xd4eb4e=this[_0x70ba('0x10')][_0x70ba('0x58')](_0x70ba('0xa5'),_0x29b478);if(_0xd4eb4e['result']===-0x1){return _0xd4eb4e;}return this[_0x70ba('0x10')][_0x70ba('0xa3')](util[_0x70ba('0x2c')](_0x70ba('0xa6'),_0x29b478));};AGIVertices[_0x70ba('0x15')]['lumenvoxasr']=function(_0x3cefff){logger[_0x70ba('0x30')](util[_0x70ba('0x2c')](_0x70ba('0xc2'),_0x3cefff[_0x70ba('0x3a')]));if(!this['isConfigured'](_0x3cefff[_0x70ba('0xa9')])){return this[_0x70ba('0x10')][_0x70ba('0xa3')](_0x70ba('0xaa'));}var _0x4f9305=_0x3cefff['grammar'];if(this[_0x70ba('0x81')](_0x3cefff[_0x70ba('0x74')])){_0x4f9305+=','+_0x3cefff['options'];}var _0x55c471=this[_0x70ba('0x10')][_0x70ba('0x58')](_0x70ba('0xab'),_0x4f9305);if(_0x55c471['result']===-0x1){return _0x55c471;}var _0x138ae3=this['getAndSetVariable'](_0x70ba('0xc3'),_0x70ba('0xc4'));if(_0x138ae3[_0x70ba('0x9e')]===-0x1){return _0x138ae3;}var _0x1ea5b8=this[_0x70ba('0xad')](_0x70ba('0xae'),'LUMENVOX_ASR_TRANSCRIPT');if(_0x1ea5b8[_0x70ba('0x9e')]===-0x1){return _0x1ea5b8;}var _0x5be21f=this[_0x70ba('0xad')](_0x70ba('0xb0'),_0x70ba('0xc5'));if(_0x5be21f[_0x70ba('0x9e')]===-0x1){return _0x5be21f;}return this[_0x70ba('0x10')][_0x70ba('0xa3')](util[_0x70ba('0x2c')](_0x70ba('0xb2'),_0x4f9305));};AGIVertices[_0x70ba('0x15')][_0x70ba('0xc6')]=function(_0xd1f4fc){logger[_0x70ba('0x30')](util[_0x70ba('0x2c')](_0x70ba('0xc7'),_0xd1f4fc[_0x70ba('0x3a')]));if(!this['isConfigured'](_0xd1f4fc['grammar'])){return this[_0x70ba('0x10')][_0x70ba('0xa3')](_0x70ba('0xaa'));}var _0x34e82d=_0xd1f4fc[_0x70ba('0xa9')];if(this[_0x70ba('0x81')](_0xd1f4fc[_0x70ba('0x74')])){_0x34e82d+=','+_0xd1f4fc[_0x70ba('0x74')];}var _0x88e63d=this[_0x70ba('0x10')]['exec'](_0x70ba('0xab'),_0x34e82d);if(_0x88e63d[_0x70ba('0x9e')]===-0x1){return _0x88e63d;}var _0x1bdae4=this[_0x70ba('0xad')](_0x70ba('0xc3'),_0x70ba('0xc8'));if(_0x1bdae4[_0x70ba('0x9e')]===-0x1){return _0x1bdae4;}var _0x1d7db7=this[_0x70ba('0xad')](_0x70ba('0xae'),_0x70ba('0xc9'));if(_0x1d7db7[_0x70ba('0x9e')]===-0x1){return _0x1d7db7;}var _0x1f9bfc=this[_0x70ba('0xad')]('RECOG_INSTANCE()',_0x70ba('0xca'));if(_0x1f9bfc[_0x70ba('0x9e')]===-0x1){return _0x1f9bfc;}return this[_0x70ba('0x10')]['noop'](util[_0x70ba('0x2c')](_0x70ba('0xb2'),_0x34e82d));};AGIVertices[_0x70ba('0x15')][_0x70ba('0xcb')]=function(_0x43a456){logger['info'](util['format'](_0x70ba('0xcc'),_0x43a456[_0x70ba('0x3a')]));if(!this['isConfigured'](_0x43a456[_0x70ba('0xcd')])){return this[_0x70ba('0x10')]['error'](_0x43a456,_0x70ba('0xce'));}var _0x3ab9d8=this[_0x70ba('0x1c')]['sync'](this,_0x43a456[_0x70ba('0xcd')]);if(!_0x3ab9d8){return this[_0x70ba('0x10')][_0x70ba('0x2f')](_0x43a456,_0x70ba('0xcf'));}if(!this['isConfigured'](_0x43a456[_0x70ba('0x32')])){return this['channel']['error'](_0x43a456,_0x70ba('0xd0'));}var _0x3d10d8=_0x43a456[_0x70ba('0x32')][_0x70ba('0x5a')](/(\r\n|\n|\r)/gm,'\x20');this[_0x70ba('0x10')][_0x70ba('0xa3')](util[_0x70ba('0x2c')](_0x70ba('0xd1'),_0x3d10d8));var _0x5c0407=this[_0x70ba('0xd2')][_0x70ba('0x6d')](this,_0x3ab9d8,_0x3d10d8);this[_0x70ba('0x38')][_0x70ba('0x6d')](this,_0x43a456,_0x3d10d8);if(!this['isConfigured'](_0x43a456[_0x70ba('0xd3')])){return this['channel']['noop']('no\x20variable\x20selected\x20for\x20the\x20result');}var _0x4eb230=this[_0x70ba('0x12')][_0x70ba('0x6d')](this,_0x43a456['variable_id']);if(!_0x4eb230){return this[_0x70ba('0x10')][_0x70ba('0x2f')](_0x43a456,_0x70ba('0xd4'));}var _0x36f3ed=this;_0x5c0407[_0x70ba('0xd5')](function(_0x217f66,_0x5d0ac3){Object[_0x70ba('0xd6')](_0x217f66)[_0x70ba('0xd5')](function(_0x39ea4d){_0x36f3ed[_0x70ba('0x10')]['setVariable'](util['format'](_0x70ba('0xd7'),_0x4eb230,_0x5d0ac3,_0x39ea4d),_0x217f66[_0x39ea4d]);});});this[_0x70ba('0x10')][_0x70ba('0x99')](util[_0x70ba('0x2c')](_0x70ba('0xd8'),_0x4eb230),_0x5c0407['length']);return this['channel'][_0x70ba('0xa3')](util['format']('variable\x20%s\x20set',_0x4eb230));};AGIVertices[_0x70ba('0x15')][_0x70ba('0xd9')]=function(_0x1e0375){logger['debug'](util['format']('Enter\x20in\x20DIAL\x20(%s)\x20block',_0x1e0375[_0x70ba('0x3a')]));if(!this[_0x70ba('0x81')](_0x1e0375[_0x70ba('0xda')])){return this[_0x70ba('0x10')]['error'](_0x1e0375,'no\x20user\x20selected');}var _0x4eed89=this[_0x70ba('0x1f')]['sync'](this,_0x1e0375['sip_id']);if(!_0x4eed89){return this[_0x70ba('0x10')][_0x70ba('0x2f')](_0x1e0375,'no\x20user\x20found');}var _0x4909d3=this[_0x70ba('0x10')][_0x70ba('0x58')](_0x70ba('0xdb'),[util['format'](_0x70ba('0xdc'),_0x4eed89),_0x1e0375[_0x70ba('0x66')],_0x1e0375['opts'],_0x1e0375['url']]);if(_0x4909d3[_0x70ba('0x9e')]===-0x1){return _0x4909d3;}return this['channel'][_0x70ba('0xa3')](util[_0x70ba('0x2c')](_0x70ba('0xdd'),'DIAL'));};AGIVertices[_0x70ba('0x15')][_0x70ba('0xde')]=function(_0xed07e2){logger[_0x70ba('0x30')](util[_0x70ba('0x2c')](_0x70ba('0xdf'),_0xed07e2[_0x70ba('0x3a')]));if(!this[_0x70ba('0x81')](_0xed07e2[_0x70ba('0x76')])){return this['channel'][_0x70ba('0xa3')]('no\x20key\x20configured');}if(!this[_0x70ba('0x81')](_0xed07e2['text'])){return this['channel']['noop'](_0x70ba('0xa4'));}this[_0x70ba('0x10')][_0x70ba('0xe0')]=!![];this[_0x70ba('0x38')](_0xed07e2);this[_0x70ba('0x45')](_0xed07e2[_0x70ba('0x5d')],'in','','');this[_0x70ba('0x10')][_0x70ba('0xa3')](util[_0x70ba('0x2c')](_0x70ba('0xe1'),_0xed07e2[_0x70ba('0x5d')]));var _0x401556=this['googleDialogflow'][_0x70ba('0x6d')](this,_0xed07e2);if(_0x401556){for(var _0x1a63b7 in _0x401556){if(_0x401556[_0x70ba('0x90')](_0x1a63b7)){this[_0x70ba('0x10')]['setVariable'](util[_0x70ba('0x2c')](_0x70ba('0xe2'),_0x1a63b7[_0x70ba('0xe3')]()),_0x401556[_0x1a63b7]);}}this['createSquareMessage'](_0x401556[_0x70ba('0xe4')],_0x70ba('0xe5'),_0x70ba('0xde'),'');return this[_0x70ba('0x10')]['noop'](util[_0x70ba('0x2c')]('Dialogflow\x20Result\x20%s',_0x401556[_0x70ba('0xe4')]));}return this[_0x70ba('0x10')][_0x70ba('0x2f')](_0xed07e2,_0x70ba('0xe6'));};AGIVertices['prototype'][_0x70ba('0xe7')]=function(_0x11efa8){logger[_0x70ba('0x30')](util['format'](_0x70ba('0xe8'),_0x11efa8[_0x70ba('0x3a')]));if(!this[_0x70ba('0x81')](_0x11efa8[_0x70ba('0x79')])){return this[_0x70ba('0x10')][_0x70ba('0xa3')](_0x70ba('0xe9'));}if(!this[_0x70ba('0x81')](_0x11efa8[_0x70ba('0xea')])){return this['channel'][_0x70ba('0xa3')]('no\x20client_email\x20configured');}if(!this[_0x70ba('0x81')](_0x11efa8[_0x70ba('0xeb')])){return this[_0x70ba('0x10')][_0x70ba('0xa3')](_0x70ba('0xec'));}if(!this[_0x70ba('0x81')](_0x11efa8[_0x70ba('0x7a')])){return this['channel']['noop'](_0x70ba('0xed'));}if(!this[_0x70ba('0x81')](_0x11efa8[_0x70ba('0x5d')])){return this[_0x70ba('0x10')][_0x70ba('0xa3')]('no\x20text\x20configured');}this[_0x70ba('0x10')]['bot']=!![];this['createSquareDetailsReport'](_0x11efa8);this[_0x70ba('0x45')](_0x11efa8[_0x70ba('0x5d')],'in','','');this['channel'][_0x70ba('0xa3')](util['format'](_0x70ba('0xee'),_0x11efa8[_0x70ba('0x5d')]));var _0x29fd70=this['googleDialogflowV2'][_0x70ba('0x6d')](this,_0x11efa8);if(_0x29fd70){for(var _0x32b3b9 in _0x29fd70){if(_0x29fd70[_0x70ba('0x90')](_0x32b3b9)){if(_0x32b3b9!==_0x70ba('0xef')){this[_0x70ba('0x10')][_0x70ba('0x99')](util['format']('DIALOGFLOW_%s',_0x32b3b9[_0x70ba('0xe3')]()),_0x29fd70[_0x32b3b9]);}}}this[_0x70ba('0x45')](_0x29fd70[_0x70ba('0xe4')],_0x70ba('0xe5'),_0x70ba('0xe7'),_0x29fd70[_0x70ba('0xef')]);return this[_0x70ba('0x10')][_0x70ba('0xa3')](util[_0x70ba('0x2c')]('DialogflowV2\x20Result\x20%s',_0x29fd70[_0x70ba('0xe4')]));}return this[_0x70ba('0x10')][_0x70ba('0x2f')](_0x11efa8,_0x70ba('0xf0'));};AGIVertices[_0x70ba('0x15')][_0x70ba('0xf1')]=function(_0x1c0bfa){logger['info'](util[_0x70ba('0x2c')](_0x70ba('0xf2'),_0x1c0bfa[_0x70ba('0x3a')]));if(!this[_0x70ba('0x81')](_0x1c0bfa[_0x70ba('0xf3')])){return this[_0x70ba('0x10')][_0x70ba('0xa3')](_0x70ba('0xf4'));}if(!this[_0x70ba('0x81')](_0x1c0bfa[_0x70ba('0xf5')])){return this['channel']['noop'](_0x70ba('0xf6'));}if(!this[_0x70ba('0x81')](_0x1c0bfa[_0x70ba('0xf7')])){return this[_0x70ba('0x10')][_0x70ba('0xa3')](_0x70ba('0xf8'));}if(!this[_0x70ba('0x81')](_0x1c0bfa['ndassistant_url'])){return this[_0x70ba('0x10')][_0x70ba('0xa3')](_0x70ba('0xa4'));}this[_0x70ba('0x10')][_0x70ba('0xe0')]=!![];this[_0x70ba('0x38')](_0x1c0bfa);this[_0x70ba('0x45')](_0x1c0bfa[_0x70ba('0x5d')],'in','','');this[_0x70ba('0x10')][_0x70ba('0xa3')](util['format']('Trying\x20SestekNDA:\x20%s',_0x1c0bfa[_0x70ba('0x5d')]));var _0x652fe7=this[_0x70ba('0x7b')][_0x70ba('0x6d')](this,_0x1c0bfa);if(_0x652fe7){for(var _0x2b08c9 in _0x652fe7){if(_0x652fe7[_0x70ba('0x90')](_0x2b08c9)){this[_0x70ba('0x10')][_0x70ba('0x99')](util[_0x70ba('0x2c')](_0x70ba('0xf9'),_0x2b08c9['toUpperCase']()),_0x652fe7[_0x2b08c9]);}}this[_0x70ba('0x45')](_0x652fe7[_0x70ba('0xe4')],_0x70ba('0xe5'),_0x70ba('0xf1'),'');if(_0x652fe7['audiofile']){this['channel'][_0x70ba('0xa3')](util['format']('Sestek\x20NDA\x20%s\x20file\x20created',_0x652fe7[_0x70ba('0xfa')]));var _0x1232b9=this['channel']['streamFile'](_0x652fe7[_0x70ba('0xfa')]);try{fs[_0x70ba('0xfb')](_0x652fe7[_0x70ba('0xfa')]+_0x70ba('0xfc'));}catch(_0x8d2d41){logger[_0x70ba('0x2f')](_0x8d2d41);}return _0x1232b9;}else{return this['channel']['noop'](util[_0x70ba('0x2c')](_0x70ba('0xfd'),_0x652fe7['speech']));}}return this['channel'][_0x70ba('0x2f')](_0x1c0bfa,_0x70ba('0xfe'));};AGIVertices['prototype']['end']=function(_0x3f65c3){logger[_0x70ba('0x30')](util[_0x70ba('0x2c')](_0x70ba('0xff'),_0x3f65c3['label']));return this[_0x70ba('0x10')]['noop'](_0x70ba('0x100'));};AGIVertices['prototype'][_0x70ba('0x101')]=function(_0xe2926f){logger[_0x70ba('0x30')](util[_0x70ba('0x2c')]('Enter\x20in\x20EXTERNAL\x20DIAL\x20(%s)\x20block',_0xe2926f[_0x70ba('0x3a')]));var _0x48014f='';if(_0xe2926f[_0x70ba('0x102')]){if(!this[_0x70ba('0x81')](_0xe2926f[_0x70ba('0x102')])){return this['channel']['error'](_0xe2926f,'no\x20trunk\x20selected');}else{var _0x7a9fdf=parseInt(_0xe2926f['trunk_id'],0xa);if(isNaN(_0x7a9fdf)){_0x48014f=_0xe2926f[_0x70ba('0x102')];}else{_0x48014f=this[_0x70ba('0x103')][_0x70ba('0x6d')](this,_0xe2926f[_0x70ba('0x102')]);if(!_0x48014f){return this[_0x70ba('0x10')][_0x70ba('0x2f')](_0xe2926f,_0x70ba('0x104'));}}}}else if(_0xe2926f[_0x70ba('0x105')]){_0x48014f=_0xe2926f[_0x70ba('0x105')];}else{return this[_0x70ba('0x10')][_0x70ba('0x2f')](_0xe2926f,_0x70ba('0x106'));}var _0x24ae91=this[_0x70ba('0x10')]['exec'](_0x70ba('0xdb'),[util[_0x70ba('0x2c')](_0x70ba('0x107'),_0x48014f,_0xe2926f[_0x70ba('0x4a')]),_0xe2926f[_0x70ba('0x66')],_0xe2926f[_0x70ba('0x108')],_0xe2926f['url']]);if(_0x24ae91[_0x70ba('0x9e')]===-0x1){return _0x24ae91;}return this[_0x70ba('0x10')]['noop'](util[_0x70ba('0x2c')](_0x70ba('0xdd'),_0x70ba('0xdb')));};AGIVertices[_0x70ba('0x15')][_0x70ba('0x109')]=function(_0x473f0f){logger[_0x70ba('0x30')](util[_0x70ba('0x2c')](_0x70ba('0x10a'),_0x473f0f[_0x70ba('0x3a')]));return this[_0x70ba('0x10')][_0x70ba('0xa3')](_0x70ba('0x109'));};AGIVertices[_0x70ba('0x15')]['getdigits']=function(_0x19459b){logger['info'](util['format'](_0x70ba('0x10b'),_0x19459b['label']));if(_0x19459b[_0x70ba('0xa1')]===0x0){return this[_0x70ba('0xa0')](_0x19459b);}_0x19459b[_0x70ba('0xa1')]-=0x1;if(!this[_0x70ba('0x81')](_0x19459b[_0x70ba('0x10c')])){return this[_0x70ba('0x10')][_0x70ba('0x2f')](_0x19459b,_0x70ba('0x10d'));}var _0x2742fe=this[_0x70ba('0x22')][_0x70ba('0x6d')](this,_0x19459b['file_id']);if(!_0x2742fe){return this[_0x70ba('0x10')][_0x70ba('0x2f')](_0x19459b,_0x70ba('0x10e'));}if(!this['isConfigured'](_0x19459b[_0x70ba('0xd3')])){return this['channel']['error'](_0x70ba('0x10f'));}var _0x330f9f=this[_0x70ba('0x10')]['getData'](_0x2742fe,_0x19459b[_0x70ba('0x110')],_0x19459b[_0x70ba('0x111')]);var _0x3c0a25=_0x330f9f[_0x70ba('0x9e')]?_0x330f9f['result'][_0x70ba('0x112')]():'';logger[_0x70ba('0x30')](_0x70ba('0x113'),JSON['stringify'](_0x330f9f));if(_0x330f9f[_0x70ba('0x9e')]===-0x1){this[_0x70ba('0x38')]['sync'](this,_0x19459b,_0x3c0a25);return _0x330f9f;}else if(_0x330f9f[_0x70ba('0x9d')]==='timeout'){_0x330f9f['result']=_0x3c0a25[_0x70ba('0x98')]>=parseInt(_0x19459b['mindigit'])?'x':'i';}else{_0x330f9f[_0x70ba('0x9e')]=_0x3c0a25[_0x70ba('0x98')]>=parseInt(_0x19459b[_0x70ba('0x114')])&&_0x3c0a25[_0x70ba('0x98')]<=parseInt(_0x19459b[_0x70ba('0x111')])?'x':'i';}var _0x46fc83=this['getVariable'][_0x70ba('0x6d')](this,_0x19459b[_0x70ba('0xd3')]);if(!_0x46fc83){return this[_0x70ba('0x10')][_0x70ba('0x2f')](_0x19459b,'no\x20variable\x20found');}this[_0x70ba('0x10')][_0x70ba('0x99')](_0x46fc83,_0x3c0a25);if(this['isConfigured'](_0x19459b['hiddendigitsnum'])){var _0x1cecde=parseInt(_0x19459b[_0x70ba('0x115')],0xa);var _0x344d78=rs['generate']({'charset':'*','length':_0x1cecde});var _0x316cdf=_0x3c0a25['length'];if(_0x316cdf>0x0){if(_0x316cdf>_0x1cecde){this[_0x70ba('0x38')][_0x70ba('0x6d')](this,_0x19459b,_0x19459b['hiddendigitspos']===_0x70ba('0x116')?_0x344d78+_0x3c0a25[_0x70ba('0x117')](_0x1cecde):_0x3c0a25['substr'](0x0,_0x316cdf-_0x1cecde)+_0x344d78);}else{this['createSquareDetailsReport']['sync'](this,_0x19459b,rs['generate']({'charset':'*','length':_0x316cdf}));}}else{this[_0x70ba('0x38')][_0x70ba('0x6d')](this,_0x19459b,'');}}else{this[_0x70ba('0x38')]['sync'](this,_0x19459b,_0x3c0a25);}return _0x330f9f;};AGIVertices[_0x70ba('0x15')]['getsecretdigits']=function(_0x34649b){logger[_0x70ba('0x30')](util[_0x70ba('0x2c')](_0x70ba('0x118'),_0x34649b[_0x70ba('0x3a')]));return this['getdigits'](_0x34649b);};AGIVertices[_0x70ba('0x15')]['goal']=function(_0x5567ce){logger['info'](util[_0x70ba('0x2c')](_0x70ba('0x119'),_0x5567ce[_0x70ba('0x3a')]));this['createSquareDetailsReport'][_0x70ba('0x6d')](this,_0x5567ce,_0x5567ce[_0x70ba('0x11a')]);return this[_0x70ba('0x10')][_0x70ba('0xa3')](util[_0x70ba('0x2c')](_0x70ba('0x11b'),_0x5567ce[_0x70ba('0x11a')]));};AGIVertices[_0x70ba('0x15')][_0x70ba('0x11c')]=function(_0x33ef13){logger[_0x70ba('0x30')](util[_0x70ba('0x2c')](_0x70ba('0x11d'),_0x33ef13[_0x70ba('0x3a')]));if(!this[_0x70ba('0x81')](_0x33ef13[_0x70ba('0x84')])||!this['isConfigured'](_0x33ef13[_0x70ba('0x88')])){return this[_0x70ba('0x10')][_0x70ba('0xa3')]('no\x20valid\x20credentials\x20configured');}if(!this[_0x70ba('0x81')](_0x33ef13[_0x70ba('0x5d')])){return this[_0x70ba('0x10')][_0x70ba('0xa3')]('no\x20text\x20configured');}this[_0x70ba('0x10')][_0x70ba('0xa3')](util[_0x70ba('0x2c')](_0x70ba('0x11e'),_0x33ef13[_0x70ba('0x5d')]));var _0x1c47c0=this['awsPolly'][_0x70ba('0x6d')](this,_0x33ef13);if(_0x1c47c0){this[_0x70ba('0x10')]['noop'](util['format']('aws\x20Polly\x20%s\x20file\x20created',_0x1c47c0));var _0xb8eda0=this['channel'][_0x70ba('0x11f')](_0x1c47c0);try{fs['unlink'](_0x1c47c0+'.wav');}catch(_0x2e49be){logger[_0x70ba('0x2f')](_0x2e49be);}return _0xb8eda0;}return this[_0x70ba('0x10')][_0x70ba('0x2f')](_0x33ef13,_0x70ba('0x120'));};AGIVertices[_0x70ba('0x15')][_0x70ba('0x121')]=function(_0x3f736a){logger[_0x70ba('0x30')](util[_0x70ba('0x2c')](_0x70ba('0x122'),_0x3f736a[_0x70ba('0x3a')]));if(!this[_0x70ba('0x81')](_0x3f736a[_0x70ba('0x84')])||!this[_0x70ba('0x81')](_0x3f736a[_0x70ba('0x88')])){return this['channel']['noop'](_0x70ba('0x123'));}if(!this['isConfigured'](_0x3f736a[_0x70ba('0x89')])){return this[_0x70ba('0x10')]['noop'](_0x70ba('0x124'));}if(!this[_0x70ba('0x81')](_0x3f736a[_0x70ba('0x5d')])){return this[_0x70ba('0x10')]['noop'](_0x70ba('0xa4'));}this[_0x70ba('0x10')][_0x70ba('0xe0')]=!![];this[_0x70ba('0x38')](_0x3f736a);this['createSquareMessage'](_0x3f736a[_0x70ba('0x5d')],'in','','');this[_0x70ba('0x10')][_0x70ba('0xa3')](util[_0x70ba('0x2c')](_0x70ba('0x125'),_0x3f736a[_0x70ba('0x5d')]));var _0x3637a7=this['awsLex'][_0x70ba('0x6d')](this,_0x3f736a);if(_0x3637a7){for(var _0x4912cb in _0x3637a7){if(_0x3637a7[_0x70ba('0x90')](_0x4912cb)&&_[_0x70ba('0x91')](_0x3637a7[_0x4912cb])){this[_0x70ba('0x10')][_0x70ba('0x99')](util['format']('AWS_LEX_%s',_0x4912cb[_0x70ba('0xe3')]()),_0x3637a7[_0x4912cb]);}}if(_[_0x70ba('0x48')](_0x3637a7[_0x70ba('0x72')])){return this[_0x70ba('0x10')][_0x70ba('0xa3')]('Amazon\x20Lex\x20ready\x20for\x20fulfillment');}else{this[_0x70ba('0x45')](_0x3637a7[_0x70ba('0x72')],_0x70ba('0xe5'),_0x70ba('0x126'),'');return this[_0x70ba('0x10')]['noop'](util[_0x70ba('0x2c')](_0x70ba('0x127'),_0x3637a7[_0x70ba('0x72')]));}}return this[_0x70ba('0x10')][_0x70ba('0x2f')](_0x3f736a,_0x70ba('0x128'));};AGIVertices['prototype'][_0x70ba('0x129')]=function(_0x2be697){logger[_0x70ba('0x30')](util[_0x70ba('0x2c')](_0x70ba('0x12a'),_0x2be697[_0x70ba('0x3a')],_0x2be697[_0x70ba('0x66')]));if(!this[_0x70ba('0x81')](_0x2be697[_0x70ba('0x76')])){return this[_0x70ba('0x10')][_0x70ba('0xa3')](_0x70ba('0x12b'));}var _0x27c559=_0x70ba('0x12c');var _0x5996f8=util[_0x70ba('0x2c')]('%s/recordings/%s',FILES_PATH,rs[_0x70ba('0x12d')](0x4));var _0x1c3dca=util['format']('%s.%s',_0x5996f8,_0x27c559);var _0x5a3c96=!![];if(_0x2be697[_0x70ba('0x12e')]==='NOBEEP'){_0x5a3c96=![];}var _0xea2416=this[_0x70ba('0x10')][_0x70ba('0x12f')](_0x5996f8,_0x27c559,_0x2be697['intKey'],_0x2be697['timeout'],undefined,_0x5a3c96);if(_0xea2416[_0x70ba('0x9e')]!==-0x1){this[_0x70ba('0x10')][_0x70ba('0xa3')](util[_0x70ba('0x2c')](_0x70ba('0x130'),_0x1c3dca));var _0x27a850=this[_0x70ba('0x8a')][_0x70ba('0x6d')](this,_0x2be697,_0x1c3dca);if(_0x27a850){for(var _0x43e2a7 in _0x27a850){if(_0x27a850[_0x70ba('0x90')](_0x43e2a7)){this['channel']['setVariable'](util[_0x70ba('0x2c')](_0x70ba('0x131'),_0x43e2a7[_0x70ba('0xe3')]()),_0x27a850[_0x43e2a7]);}}return this['channel'][_0x70ba('0xa3')](util['format'](_0x70ba('0x132'),JSON[_0x70ba('0x6f')](_0x27a850)));}}return _0xea2416;};AGIVertices['prototype'][_0x70ba('0x133')]=function(_0x255d7e){logger[_0x70ba('0x30')](util['format'](_0x70ba('0x134'),_0x255d7e[_0x70ba('0x3a')]));if(!this[_0x70ba('0x81')](_0x255d7e[_0x70ba('0x135')])){return this[_0x70ba('0x10')]['noop'](_0x70ba('0x136'));}if(!this[_0x70ba('0x81')](_0x255d7e[_0x70ba('0x8c')])){return this['channel'][_0x70ba('0xa3')](_0x70ba('0x137'));}var _0x5a36df='wav';var _0x5b2da3=util[_0x70ba('0x2c')](_0x70ba('0x138'),FILES_PATH,rs[_0x70ba('0x12d')](0x4));var _0x4cbd35=util[_0x70ba('0x2c')]('%s.%s',_0x5b2da3,_0x5a36df);var _0xc333d1=!![];if(_0x255d7e[_0x70ba('0x12e')]===_0x70ba('0x139')){_0xc333d1=![];}var _0x2e2856=this['channel']['recordFile'](_0x5b2da3,_0x5a36df,_0x255d7e[_0x70ba('0x13a')],_0x255d7e[_0x70ba('0x66')],undefined,_0xc333d1);if(_0x2e2856[_0x70ba('0x9e')]!==-0x1){this['channel'][_0x70ba('0xa3')](util[_0x70ba('0x2c')](_0x70ba('0x13b'),_0x4cbd35));var _0x34589c=this['tildeASR'][_0x70ba('0x6d')](this,_0x255d7e,_0x4cbd35);if(_0x34589c){for(var _0x44d4e6 in _0x34589c){if(_0x34589c[_0x70ba('0x90')](_0x44d4e6)){this[_0x70ba('0x10')][_0x70ba('0x99')](util[_0x70ba('0x2c')](_0x70ba('0x13c'),_0x44d4e6[_0x70ba('0xe3')]()),_0x34589c[_0x44d4e6]);}}return this[_0x70ba('0x10')]['noop'](util[_0x70ba('0x2c')](_0x70ba('0x13d'),JSON[_0x70ba('0x6f')](_0x34589c)));}}return _0x2e2856;};AGIVertices[_0x70ba('0x15')][_0x70ba('0x13e')]=function(_0x15461f){logger[_0x70ba('0x30')](util['format'](_0x70ba('0x13f'),_0x15461f[_0x70ba('0x3a')]));return this['channel'][_0x70ba('0x140')](_0x15461f[_0x70ba('0x40')],_0x15461f[_0x70ba('0x41')],_0x15461f[_0x70ba('0x141')]);};AGIVertices[_0x70ba('0x15')]['gotoif']=function(_0x3d39a9){logger['info'](util[_0x70ba('0x2c')](_0x70ba('0x142'),_0x3d39a9[_0x70ba('0x3a')]));if(!this[_0x70ba('0x81')](_0x3d39a9[_0x70ba('0x143')])){return this[_0x70ba('0x10')][_0x70ba('0x2f')](_0x3d39a9,_0x70ba('0x144'));}try{var _0x36a943=eval(_0x3d39a9[_0x70ba('0x143')])?_0x70ba('0x145'):'false';this['channel'][_0x70ba('0xa3')](util['format'](_0x70ba('0x146'),_0x3d39a9[_0x70ba('0x143')],_0x36a943));return{'code':0xc8,'result':_0x36a943};}catch(_0x124177){return{'code':0xc8,'result':_0x70ba('0x147')};}};AGIVertices[_0x70ba('0x15')]['gotoiftime']=function(_0x4e46e3){logger['info'](util[_0x70ba('0x2c')]('Enter\x20in\x20GOTOIFTIME\x20(%s)\x20block',_0x4e46e3[_0x70ba('0x3a')]));if(!this['isConfigured'](_0x4e46e3['interval_id'])){return this[_0x70ba('0x10')]['error'](_0x4e46e3,_0x70ba('0x148'));}var _0x183749=this[_0x70ba('0x28')][_0x70ba('0x6d')](this,_0x4e46e3[_0x70ba('0x149')]);if(!_0x183749){return this[_0x70ba('0x10')][_0x70ba('0x2f')](_0x4e46e3,_0x70ba('0x14a'));}for(var _0x228aa5=0x0;_0x228aa5<_0x183749['length'];_0x228aa5+=0x1){var _0x291d2d=this[_0x70ba('0x10')]['getVariable'](util[_0x70ba('0x2c')]('IFTIME(%s?true:false)',_0x183749[_0x228aa5]));if(_0x291d2d[_0x70ba('0x9e')]===-0x1){return _0x291d2d;}logger['info'](util[_0x70ba('0x2c')]('IFTIME\x20%s\x20%s',_0x183749[_0x228aa5],_0x291d2d['extra']));if(_0x291d2d['extra']===_0x70ba('0x145')){logger['info'](util[_0x70ba('0x2c')](_0x70ba('0x14b'),_0x183749[_0x228aa5],_0x70ba('0x145')));this[_0x70ba('0x10')]['noop'](util[_0x70ba('0x2c')](_0x70ba('0x14b'),_0x183749[_0x228aa5],'true'));return{'code':0xc8,'result':_0x70ba('0x145')};}else{logger['info'](util[_0x70ba('0x2c')](_0x70ba('0x14b'),_0x183749[_0x228aa5],_0x70ba('0x147')));this[_0x70ba('0x10')][_0x70ba('0xa3')](util['format']('IFTIME\x20%s\x20%s',_0x183749[_0x228aa5],_0x70ba('0x147')));}}return{'code':0xc8,'result':_0x70ba('0x147')};};AGIVertices[_0x70ba('0x15')]['hangup']=function(_0x5b86b0){logger['info'](util[_0x70ba('0x2c')](_0x70ba('0x14c'),_0x5b86b0[_0x70ba('0x3a')]));return this['channel']['hangup']();};AGIVertices[_0x70ba('0x15')][_0x70ba('0x14d')]=function(_0xf966b8){logger[_0x70ba('0x30')](util[_0x70ba('0x2c')](_0x70ba('0x14e'),_0xf966b8[_0x70ba('0x3a')]));if(!this[_0x70ba('0x81')](_0xf966b8[_0x70ba('0x76')])){return this['channel'][_0x70ba('0xa3')](_0x70ba('0x12b'));}var _0x14a6ec=_0x70ba('0x12c');var _0x54b253=util[_0x70ba('0x2c')](_0x70ba('0x138'),FILES_PATH,rs['generate'](0x4));var _0x148c21=util['format'](_0x70ba('0x97'),_0x54b253,_0x14a6ec);var _0x3d1cf0=!![];if(_0xf966b8[_0x70ba('0x12e')]===_0x70ba('0x139')){_0x3d1cf0=![];}var _0x2a590a=this['channel'][_0x70ba('0x12f')](_0x54b253,_0x14a6ec,_0xf966b8['intKey'],_0xf966b8['timeout'],undefined,_0x3d1cf0);if(_0x2a590a[_0x70ba('0x9e')]!==-0x1){this[_0x70ba('0x10')][_0x70ba('0xa3')](util['format']('ispeech\x20%s\x20file\x20created',_0x148c21));var _0x3cf5a7=this['ispeechASR'][_0x70ba('0x6d')](this,_0xf966b8,_0x148c21);if(_0x3cf5a7){for(var _0x37b72b in _0x3cf5a7){if(_0x3cf5a7[_0x70ba('0x90')](_0x37b72b)){this[_0x70ba('0x10')][_0x70ba('0x99')](util[_0x70ba('0x2c')]('ISPEECH_ASR_%s',_0x37b72b[_0x70ba('0xe3')]()),_0x3cf5a7[_0x37b72b]);}}return this[_0x70ba('0x10')][_0x70ba('0xa3')](util[_0x70ba('0x2c')](_0x70ba('0x14f'),JSON[_0x70ba('0x6f')](_0x3cf5a7)));}}return _0x2a590a;};AGIVertices['prototype']['ispeechtts']=function(_0x36afbb){logger['info'](util[_0x70ba('0x2c')](_0x70ba('0x150'),_0x36afbb[_0x70ba('0x3a')]));if(!this[_0x70ba('0x81')](_0x36afbb[_0x70ba('0x76')])){return this['channel']['noop'](_0x70ba('0x12b'));}if(!this['isConfigured'](_0x36afbb[_0x70ba('0x5d')])){return this[_0x70ba('0x10')][_0x70ba('0xa3')]('no\x20text\x20configured');}this[_0x70ba('0x10')][_0x70ba('0xa3')](util[_0x70ba('0x2c')](_0x70ba('0x151'),_0x36afbb[_0x70ba('0x5d')]));var _0x49293b=this[_0x70ba('0x7c')][_0x70ba('0x6d')](this,_0x36afbb);if(_0x49293b){this[_0x70ba('0x10')]['noop'](util[_0x70ba('0x2c')]('ispeech\x20%s\x20file\x20created',_0x49293b));var _0x3e6d49=this[_0x70ba('0x10')][_0x70ba('0x11f')](_0x49293b,_0x36afbb['intKey']);try{fs[_0x70ba('0xfb')](_0x49293b+_0x70ba('0xfc'));}catch(_0x43a5ec){logger[_0x70ba('0x2f')](_0x43a5ec);}return _0x3e6d49;}return this[_0x70ba('0x10')][_0x70ba('0x2f')](_0x36afbb,_0x70ba('0x152'));};AGIVertices['prototype'][_0x70ba('0x153')]=function(_0xf4c0f){logger[_0x70ba('0x30')](util[_0x70ba('0x2c')]('Enter\x20in\x20LOGIN\x20(%s)\x20block',_0xf4c0f[_0x70ba('0x3a')]));if(!this[_0x70ba('0x81')](_0xf4c0f[_0x70ba('0x154')])){return this[_0x70ba('0x10')][_0x70ba('0x2f')](_0xf4c0f,_0x70ba('0x155'));}logger['info'](util['format'](_0x70ba('0x156'),this[_0x70ba('0x10')][_0x70ba('0x3d')],_0xf4c0f[_0x70ba('0x154')]));var _0x34832e=this[_0x70ba('0x56')]['sync'](this,_0xf4c0f[_0x70ba('0x154')]);if(_0x34832e){logger[_0x70ba('0x30')](util[_0x70ba('0x2c')]('AGENT\x20%s\x20FOUND\x20BY',this[_0x70ba('0x10')][_0x70ba('0x3d')],_0xf4c0f[_0x70ba('0x154')]));this[_0x70ba('0x10')]['noop'](util[_0x70ba('0x2c')](_0x70ba('0x157'),this[_0x70ba('0x10')][_0x70ba('0x3d')],_0xf4c0f[_0x70ba('0x154')]));return{'code':0xc8,'result':_0x70ba('0x158')};}else{logger[_0x70ba('0x30')](util[_0x70ba('0x2c')](_0x70ba('0x159'),this[_0x70ba('0x10')][_0x70ba('0x3d')],_0xf4c0f[_0x70ba('0x154')]));this[_0x70ba('0x10')]['noop'](util[_0x70ba('0x2c')](_0x70ba('0x159'),this[_0x70ba('0x10')][_0x70ba('0x3d')],_0xf4c0f[_0x70ba('0x154')]));return{'code':0xc8,'result':'failure'};}};AGIVertices[_0x70ba('0x15')][_0x70ba('0x15a')]=function(_0x11d626){logger[_0x70ba('0x30')](util[_0x70ba('0x2c')](_0x70ba('0x15b'),_0x11d626[_0x70ba('0x3a')]));if(!this[_0x70ba('0x81')](_0x11d626[_0x70ba('0x154')])){return this[_0x70ba('0x10')][_0x70ba('0x2f')](_0x11d626,_0x70ba('0x155'));}logger[_0x70ba('0x30')](util['format']('FIND\x20AGENT\x20%s\x20BY\x20%s',this[_0x70ba('0x10')][_0x70ba('0x3d')],_0x11d626[_0x70ba('0x154')]));var _0x481ba6=this[_0x70ba('0x15c')][_0x70ba('0x6d')](this,_0x11d626[_0x70ba('0x154')]);if(_0x481ba6){logger[_0x70ba('0x30')](util['format'](_0x70ba('0x157'),this[_0x70ba('0x10')]['callerid'],_0x11d626[_0x70ba('0x154')]));this[_0x70ba('0x10')][_0x70ba('0xa3')](util['format']('AGENT\x20%s\x20FOUND\x20BY',this[_0x70ba('0x10')][_0x70ba('0x3d')],_0x11d626[_0x70ba('0x154')]));return{'code':0xc8,'result':_0x70ba('0x158')};}else{logger['info'](util[_0x70ba('0x2c')]('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this[_0x70ba('0x10')][_0x70ba('0x3d')],_0x11d626[_0x70ba('0x154')]));this['channel'][_0x70ba('0xa3')](util['format'](_0x70ba('0x159'),this[_0x70ba('0x10')][_0x70ba('0x3d')],_0x11d626['findBy']));return{'code':0xc8,'result':_0x70ba('0x15d')};}};AGIVertices[_0x70ba('0x15')][_0x70ba('0x15e')]=function(_0x551a95){logger['info'](util[_0x70ba('0x2c')](_0x70ba('0x15f'),_0x551a95[_0x70ba('0x3a')]));if(!this['isConfigured'](_0x551a95[_0x70ba('0x160')])){return this[_0x70ba('0x10')]['error'](_0x551a95,_0x70ba('0x161'));}this[_0x70ba('0x10')][_0x70ba('0xa3')](util[_0x70ba('0x2c')](_0x70ba('0x162'),_0x551a95[_0x70ba('0x160')]));var _0x40a429=eval(_0x551a95[_0x70ba('0x160')]);if(!this[_0x70ba('0x81')](_0x551a95['variable_id'])){return this[_0x70ba('0x10')][_0x70ba('0xa3')](_0x70ba('0x10f'));}var _0x5a7bb7=this[_0x70ba('0x12')][_0x70ba('0x6d')](this,_0x551a95[_0x70ba('0xd3')]);if(!_0x5a7bb7){return this['channel'][_0x70ba('0x2f')](_0x551a95,'no\x20variable\x20found');}if(_['isArray'](_0x40a429)){var _0x58f5d7=this;_0x40a429[_0x70ba('0xd5')](function(_0x223c10,_0x4bab7f){_0x58f5d7[_0x70ba('0x10')]['setVariable'](util['format'](_0x70ba('0x163'),_0x5a7bb7,_0x4bab7f),_0x223c10);});return this['channel'][_0x70ba('0xa3')](util[_0x70ba('0x2c')](_0x70ba('0x164'),_0x5a7bb7));}else{return this[_0x70ba('0x10')]['setVariable'](_0x5a7bb7,_0x40a429);}};AGIVertices[_0x70ba('0x15')][_0x70ba('0xd')]=function(_0x247767){logger[_0x70ba('0x30')](util[_0x70ba('0x2c')]('Enter\x20in\x20MENU\x20(%s)\x20block',_0x247767[_0x70ba('0x3a')]));if(_0x247767['retry']===0x0){return this[_0x70ba('0xa0')](_0x247767);}_0x247767[_0x70ba('0xa1')]-=0x1;if(!this[_0x70ba('0x81')](_0x247767[_0x70ba('0x10c')])){return this[_0x70ba('0x10')]['error'](_0x247767,_0x70ba('0x10d'));}var _0x19e17f=this[_0x70ba('0x22')][_0x70ba('0x6d')](this,_0x247767[_0x70ba('0x10c')]);if(!_0x19e17f){return this['channel'][_0x70ba('0x2f')](_0x247767,_0x70ba('0x10e'));}var _0x1932a4=this[_0x70ba('0x10')][_0x70ba('0x165')](_0x19e17f,_0x247767['response'],_0x247767['digit']);var _0x2cae5f=_0x1932a4[_0x70ba('0x9e')];if(_0x1932a4['result']===-0x1){this[_0x70ba('0x38')][_0x70ba('0x6d')](this,_0x247767,'-1');return _0x1932a4;}else if(_0x1932a4[_0x70ba('0x9d')]===_0x70ba('0x66')){_0x1932a4[_0x70ba('0x9e')]=_0x1932a4[_0x70ba('0x9e')]['length']>0x0?_0x1932a4[_0x70ba('0x9e')]:'t';}else if(_[_0x70ba('0x47')](_0x1932a4['result'])){_0x1932a4['result']='#';_0x2cae5f='#';}if(!this[_0x70ba('0x81')](_0x247767['variable_id'])){this['channel'][_0x70ba('0xa3')](_0x70ba('0x10f'));}else{var _0x45b259=this[_0x70ba('0x12')][_0x70ba('0x6d')](this,_0x247767[_0x70ba('0xd3')]);if(!_0x45b259){return this[_0x70ba('0x10')][_0x70ba('0x2f')](_0x247767,'no\x20variable\x20found');}this[_0x70ba('0x10')][_0x70ba('0x99')](_0x45b259,_0x2cae5f);}this[_0x70ba('0x38')][_0x70ba('0x6d')](this,_0x247767,_0x2cae5f);return _0x1932a4;};AGIVertices[_0x70ba('0x15')]['noop']=function(_0x3600ff){logger[_0x70ba('0x30')](util['format'](_0x70ba('0x166'),_0x3600ff[_0x70ba('0x3a')]));return this[_0x70ba('0x10')][_0x70ba('0xa3')](_0x3600ff[_0x70ba('0x167')]||_0x3600ff[_0x70ba('0x3a')]);};AGIVertices[_0x70ba('0x15')][_0x70ba('0x168')]=function(_0x249a43){logger[_0x70ba('0x30')](util[_0x70ba('0x2c')](_0x70ba('0x169'),_0x249a43['label']));if(!this[_0x70ba('0x81')](_0x249a43['findBy'])){return this[_0x70ba('0x10')][_0x70ba('0x2f')](_0x249a43,_0x70ba('0x155'));}logger['info'](util[_0x70ba('0x2c')](_0x70ba('0x156'),this[_0x70ba('0x10')][_0x70ba('0x3d')],_0x249a43[_0x70ba('0x154')]));var _0x5b7268=this[_0x70ba('0x16a')][_0x70ba('0x6d')](this,_0x249a43[_0x70ba('0x16b')]);var _0x204f52=this[_0x70ba('0x50')]['sync'](this,_0x249a43[_0x70ba('0x154')],_0x5b7268);if(_0x204f52){logger['info'](util[_0x70ba('0x2c')](_0x70ba('0x157'),this[_0x70ba('0x10')][_0x70ba('0x3d')],_0x249a43[_0x70ba('0x154')]));this[_0x70ba('0x10')][_0x70ba('0xa3')](util[_0x70ba('0x2c')](_0x70ba('0x157'),this[_0x70ba('0x10')][_0x70ba('0x3d')],_0x249a43[_0x70ba('0x154')]));return{'code':0xc8,'result':'success'};}else{logger[_0x70ba('0x30')](util[_0x70ba('0x2c')](_0x70ba('0x159'),this[_0x70ba('0x10')]['callerid'],_0x249a43[_0x70ba('0x154')]));this['channel'][_0x70ba('0xa3')](util[_0x70ba('0x2c')](_0x70ba('0x157'),this[_0x70ba('0x10')][_0x70ba('0x3d')],_0x249a43[_0x70ba('0x154')]));return{'code':0xc8,'result':_0x70ba('0x15d')};}};AGIVertices['prototype'][_0x70ba('0x16c')]=function(_0x48135d){logger['info'](util[_0x70ba('0x2c')](_0x70ba('0x16d'),_0x48135d[_0x70ba('0x3a')]));if(!this['isConfigured'](_0x48135d[_0x70ba('0x10c')])){return this[_0x70ba('0x10')][_0x70ba('0x2f')](_0x48135d,_0x70ba('0x10d'));}var _0x111c22=this[_0x70ba('0x22')][_0x70ba('0x6d')](this,_0x48135d[_0x70ba('0x10c')]);if(!_0x111c22){return this[_0x70ba('0x10')]['error'](_0x48135d,'no\x20file\x20audio\x20found');}var _0x4101f7=this[_0x70ba('0x10')][_0x70ba('0x58')](_0x70ba('0x16e'),[_0x111c22,_0x48135d[_0x70ba('0x108')]]);if(_0x4101f7[_0x70ba('0x9e')]===-0x1){return _0x4101f7;}return this[_0x70ba('0x10')][_0x70ba('0xa3')](util[_0x70ba('0x2c')]('Executed\x20command\x20%s\x20%s','PLAYBACK',_0x111c22));};AGIVertices[_0x70ba('0x15')][_0x70ba('0x16f')]=function(_0x4ff4d6){logger[_0x70ba('0x30')](util[_0x70ba('0x2c')]('Enter\x20in\x20QUEUE\x20(%s)\x20block',_0x4ff4d6[_0x70ba('0x3a')]));if(!this['isConfigured'](_0x4ff4d6[_0x70ba('0x170')])){return this[_0x70ba('0x10')][_0x70ba('0x2f')](_0x4ff4d6,_0x70ba('0x171'));}var _0xd51ae3='';var _0x1617a4=parseInt(_0x4ff4d6[_0x70ba('0x170')],0xa);if(isNaN(_0x1617a4)){_0xd51ae3=_0x4ff4d6[_0x70ba('0x170')];}else{_0xd51ae3=this[_0x70ba('0x16')]['sync'](this,_0x4ff4d6['queue_id']);if(!_0xd51ae3){return this[_0x70ba('0x10')][_0x70ba('0x2f')](_0x4ff4d6,'no\x20queue\x20found');}}var _0x1b9173='';if(this[_0x70ba('0x81')](_0x4ff4d6[_0x70ba('0x10c')])){var _0x4fa5ca=this[_0x70ba('0x22')][_0x70ba('0x6d')](this,_0x4ff4d6[_0x70ba('0x10c')]);if(_0x4fa5ca){_0x1b9173=_0x4fa5ca;}}this[_0x70ba('0x38')][_0x70ba('0x6d')](this,_0x4ff4d6,_0xd51ae3);if(_0x4ff4d6[_0x70ba('0x108')][_0x70ba('0x172')]('x')<0x0){_0x4ff4d6[_0x70ba('0x108')]+='x';}if(_0x4ff4d6[_0x70ba('0x108')][_0x70ba('0x172')]('X')<0x0){_0x4ff4d6[_0x70ba('0x108')]+='X';}this[_0x70ba('0x10')]['setVariable'](_0x70ba('0x173'),_0xd51ae3?_0xd51ae3['toLowerCase']():'');var _0x24101b=this['channel'][_0x70ba('0x58')]('QUEUE',[_0xd51ae3,_0x4ff4d6[_0x70ba('0x108')],_0x4ff4d6[_0x70ba('0x174')],_0x1b9173,_0x4ff4d6[_0x70ba('0x66')],_0x4ff4d6[_0x70ba('0x7')],_0x4ff4d6[_0x70ba('0x175')],_0x4ff4d6[_0x70ba('0x176')],'',_0x4ff4d6['position']]);if(_0x24101b[_0x70ba('0x9e')]===-0x1){return _0x24101b;}return this[_0x70ba('0x10')]['noop'](util[_0x70ba('0x2c')](_0x70ba('0xc0'),_0x70ba('0x177'),_0xd51ae3));};AGIVertices[_0x70ba('0x15')][_0x70ba('0x178')]=function(_0x3e5a68){logger[_0x70ba('0x30')](util[_0x70ba('0x2c')]('Enter\x20in\x20RECORD\x20(%s)\x20block',_0x3e5a68[_0x70ba('0x3a')]));var _0x3e4e26=_0x3e5a68[_0x70ba('0x179')]||_0x70ba('0x12c');var _0x3f239d=util['format']('%s_%s',this['channel']['uniqueid'],rs[_0x70ba('0x12d')](0x5));var _0xdc0f1b=util[_0x70ba('0x2c')](_0x70ba('0x17a'),FILES_PATH,_0x3f239d,_0x3e4e26);var _0x5171fd=util[_0x70ba('0x2c')]('%s/recordings/%s',FILES_PATH,_0x3f239d);this[_0x70ba('0x3e')][_0x70ba('0x6d')](this,_0x3e5a68,_0x3f239d,_0xdc0f1b);this[_0x70ba('0x10')][_0x70ba('0x99')]('RECORDING_SAVENAME',_0x3f239d);logger[_0x70ba('0x30')](_0x70ba('0x17b'),_0x5171fd,_0x3e4e26,_0x3e5a68['escape_digits'],_0x3e5a68['timeout']);return this[_0x70ba('0x10')][_0x70ba('0x12f')](_0x5171fd,_0x3e4e26,_0x3e5a68[_0x70ba('0x17c')],_0x3e5a68[_0x70ba('0x66')],undefined,!![]);};AGIVertices[_0x70ba('0x15')]['restapi']=function(_0x5eb281){logger[_0x70ba('0x30')](util['format'](_0x70ba('0x17d'),_0x5eb281[_0x70ba('0x3a')]));if(!this['isConfigured'](_0x5eb281[_0x70ba('0x174')])){return this['channel'][_0x70ba('0xa3')](_0x70ba('0x17e'));}var _0x1f3ce8=this['restAPI'][_0x70ba('0x6d')](this,_0x5eb281);logger[_0x70ba('0x30')](util[_0x70ba('0x2c')](_0x70ba('0x17f'),util[_0x70ba('0x180')](_0x1f3ce8,{'showHidden':![],'depth':null})));if(!this[_0x70ba('0x81')](_0x5eb281['variable_id'])){return this[_0x70ba('0x10')][_0x70ba('0xa3')](_0x70ba('0x181'));}var _0x4fda0a=this[_0x70ba('0x12')]['sync'](this,_0x5eb281[_0x70ba('0xd3')]);if(!_0x4fda0a){return this[_0x70ba('0x10')][_0x70ba('0x2f')](_0x5eb281,_0x70ba('0xd4'));}this[_0x70ba('0x10')][_0x70ba('0x99')](util['format'](_0x70ba('0x182'),_0x4fda0a),_0x1f3ce8[_0x70ba('0x183')]?_0x1f3ce8[_0x70ba('0x183')]:_0x70ba('0x184'));this[_0x70ba('0x10')][_0x70ba('0x99')](util[_0x70ba('0x2c')]('%s_STATUS_MESSAGE',_0x4fda0a),_0x1f3ce8[_0x70ba('0x71')]?_0x1f3ce8[_0x70ba('0x71')]:'OK');if(_0x1f3ce8[_0x70ba('0x69')]){try{this[_0x70ba('0x96')](_0x1f3ce8[_0x70ba('0x69')],_0x4fda0a);}catch(_0x2434fd){logger['error'](util[_0x70ba('0x2c')](_0x70ba('0x185'),_0x4fda0a));}}return this[_0x70ba('0x10')][_0x70ba('0xa3')](util[_0x70ba('0x2c')](_0x70ba('0x186'),_0x4fda0a));};AGIVertices[_0x70ba('0x15')][_0x70ba('0x187')]=function(_0x16b083){logger[_0x70ba('0x30')](util[_0x70ba('0x2c')](_0x70ba('0x188'),_0x16b083['label']));return this[_0x70ba('0x10')][_0x70ba('0x189')](_0x16b083[_0x70ba('0x18a')][_0x70ba('0x5a')](/\s+/g,''),_0x16b083[_0x70ba('0x17c')]);};AGIVertices['prototype'][_0x70ba('0x18b')]=function(_0x14e8f6){logger[_0x70ba('0x30')](util[_0x70ba('0x2c')](_0x70ba('0x18c'),_0x14e8f6['label']));return this['channel'][_0x70ba('0x18d')](_0x14e8f6[_0x70ba('0x67')][_0x70ba('0x5a')](/\s+/g,''),_0x14e8f6['escape_digits']);};AGIVertices['prototype']['sayphonetic']=function(_0x486e9f){logger[_0x70ba('0x30')](util[_0x70ba('0x2c')](_0x70ba('0x18e'),_0x486e9f[_0x70ba('0x3a')]));return this['channel'][_0x70ba('0x18f')](_0x486e9f[_0x70ba('0x5d')],_0x486e9f[_0x70ba('0x17c')]);};AGIVertices[_0x70ba('0x15')][_0x70ba('0x190')]=function(_0x1dc3c0){logger[_0x70ba('0x30')](util[_0x70ba('0x2c')]('Enter\x20in\x20SENDMAIL\x20(%s)\x20block',_0x1dc3c0[_0x70ba('0x3a')]));if(!this[_0x70ba('0x81')](_0x1dc3c0[_0x70ba('0x191')])){return this[_0x70ba('0x10')][_0x70ba('0xa3')](_0x70ba('0x192'));}var _0x293b23=this[_0x70ba('0x25')][_0x70ba('0x6d')](this,_0x1dc3c0['account_id']);if(!_0x293b23||!_0x293b23['Smtp']){return this[_0x70ba('0x10')][_0x70ba('0x2f')](_0x1dc3c0,_0x70ba('0x193'));}var _0x29fbff={'from':util[_0x70ba('0x2c')](_0x70ba('0x194'),_0x293b23['name'],_0x293b23[_0x70ba('0x195')]||_0x293b23[_0x70ba('0x196')][_0x70ba('0x197')]),'to':_0x1dc3c0['to']||'','cc':_0x1dc3c0['cc']||'','bcc':_0x1dc3c0['bcc']||'','subject':_0x1dc3c0[_0x70ba('0x198')],'html':_0x1dc3c0[_0x70ba('0x5d')],'text':_0x1dc3c0[_0x70ba('0x5d')]};if(this[_0x70ba('0x81')](_0x1dc3c0[_0x70ba('0x199')])){}logger[_0x70ba('0x19a')](_0x70ba('0x19b'),JSON['stringify'](_0x29fbff));this[_0x70ba('0x38')][_0x70ba('0x6d')](this,_0x1dc3c0,_0x1dc3c0['account_id']);this[_0x70ba('0x10')][_0x70ba('0xa3')](util['format'](_0x70ba('0x19c'),_0x293b23[_0x70ba('0x19')]));this[_0x70ba('0x27')][_0x70ba('0x6d')](this,_0x293b23[_0x70ba('0x19d')],_0x29fbff);return this[_0x70ba('0x10')][_0x70ba('0xa3')](_0x70ba('0x19e'));};AGIVertices[_0x70ba('0x15')][_0x70ba('0x19f')]=function(_0x4fe497){logger[_0x70ba('0x30')](util['format'](_0x70ba('0x1a0'),_0x4fe497[_0x70ba('0x3a')]));return this[_0x70ba('0x10')][_0x70ba('0xa3')](_0x70ba('0x1a1'));};AGIVertices['prototype'][_0x70ba('0x1a2')]=function(_0x175bf6){logger[_0x70ba('0x30')](util[_0x70ba('0x2c')]('Enter\x20in\x20SENDSMS\x20(%s)\x20block',_0x175bf6[_0x70ba('0x3a')]));if(!this[_0x70ba('0x81')](_0x175bf6['sms_account_id'])){return this[_0x70ba('0x10')][_0x70ba('0xa3')]('no\x20sms\x20account\x20configured');}var _0xff896a=this[_0x70ba('0x1a3')][_0x70ba('0x6d')](this,_0x175bf6['sms_account_id']);if(!_0xff896a){return this[_0x70ba('0x10')][_0x70ba('0x2f')](_0x175bf6,_0x70ba('0x1a4'));}var _0x52fd64={'body':_0x175bf6[_0x70ba('0x1a5')],'phone':_0x175bf6['to']||'','SmsAccountId':_0xff896a['id']};logger[_0x70ba('0x19a')]('sendSMS\x20message',JSON[_0x70ba('0x6f')](_0x52fd64));this[_0x70ba('0x38')][_0x70ba('0x6d')](this,_0x175bf6,_0x175bf6[_0x70ba('0x1a6')]);this[_0x70ba('0x10')][_0x70ba('0xa3')](util['format'](_0x70ba('0x1a7'),_0xff896a[_0x70ba('0x19')]));this[_0x70ba('0x37')][_0x70ba('0x6d')](this,_0x52fd64);return this['channel']['noop'](_0x70ba('0x1a8'));};AGIVertices[_0x70ba('0x15')][_0x70ba('0x1a9')]=function(_0x4c97fc){logger[_0x70ba('0x30')](util[_0x70ba('0x2c')](_0x70ba('0x1aa'),_0x4c97fc[_0x70ba('0x3a')]));if(!this[_0x70ba('0x81')](_0x4c97fc[_0x70ba('0xd3')])){return this[_0x70ba('0x10')][_0x70ba('0x2f')](_0x4c97fc,_0x70ba('0x1ab'));}var _0x2f2c95=this['getVariable'][_0x70ba('0x6d')](this,_0x4c97fc[_0x70ba('0xd3')]);if(!_0x2f2c95){return this[_0x70ba('0x10')][_0x70ba('0x2f')](_0x4c97fc,_0x70ba('0xd4'));}return this[_0x70ba('0x10')][_0x70ba('0x99')](_0x2f2c95,_0x4c97fc[_0x70ba('0x1ac')]);};AGIVertices[_0x70ba('0x15')]['start']=function(_0xea2390){logger[_0x70ba('0x30')](util['format'](_0x70ba('0x1ad'),_0xea2390[_0x70ba('0x3a')]));this[_0x70ba('0x10')]['noop'](_0x70ba('0x1ae'));var _0x5ae974=this[_0x70ba('0x10')][_0x70ba('0x12')](_0x70ba('0x1af'));if(!_['isEmpty'](_0x5ae974['extra'])){this[_0x70ba('0x10')][_0x70ba('0x39')]=_0x5ae974[_0x70ba('0x9d')];}if(_0xea2390['answer']==='yes'){this[_0x70ba('0x10')]['noop'](_0x70ba('0x1b0'));return this[_0x70ba('0x10')][_0x70ba('0xb5')]();}return this[_0x70ba('0x10')][_0x70ba('0xa3')](_0x70ba('0x1b1'));};AGIVertices[_0x70ba('0x15')][_0x70ba('0x1b2')]=function(_0xbf1224){logger['info'](util[_0x70ba('0x2c')](_0x70ba('0x1b3'),_0xbf1224[_0x70ba('0x3a')]));if(!this[_0x70ba('0x81')](_0xbf1224[_0x70ba('0x1b4')])){return this[_0x70ba('0x10')]['error'](_0xbf1224,_0x70ba('0x1b5'));}var _0x1a6410=this[_0x70ba('0x1a')][_0x70ba('0x6d')](this,_0xbf1224[_0x70ba('0x1b4')]);if(!this[_0x70ba('0x81')](_0x1a6410)){return this[_0x70ba('0x10')][_0x70ba('0x2f')](_0xbf1224,util[_0x70ba('0x2c')](_0x70ba('0x1b6'),_0xbf1224[_0x70ba('0x1b4')]));}if(_0x1a6410===this[_0x70ba('0x10')][_0x70ba('0x3c')]){return this['channel']['error'](_0xbf1224,'project\x20in\x20subproject\x20must\x20be\x20different\x20from\x20the\x20called\x20project');}this['createSquareDetailsReport'][_0x70ba('0x6d')](this,_0xbf1224,_0x1a6410);var _0x5a41e1=this[_0x70ba('0x10')][_0x70ba('0x58')](_0x70ba('0x1b7'),util[_0x70ba('0x2c')](_0x70ba('0x1b8'),config['agi'][_0x70ba('0x1b9')]||_0x70ba('0x1ba'),_0x1a6410,this[_0x70ba('0x10')]['arg_1']));if(_0x5a41e1['result']===-0x1){return _0x5a41e1;}return this[_0x70ba('0x10')]['noop'](util[_0x70ba('0x2c')](_0x70ba('0xc0'),'AGI',_0x1a6410));};AGIVertices['prototype'][_0x70ba('0x1bb')]=function(_0x53dcf7){logger['info'](util[_0x70ba('0x2c')](_0x70ba('0x1bc'),_0x53dcf7[_0x70ba('0x3a')]));var _0x5c7ca8=this[_0x70ba('0x57')][_0x70ba('0x6d')](this,_0x53dcf7['command']);this[_0x70ba('0x38')][_0x70ba('0x6d')](this,_0x53dcf7,_0x53dcf7[_0x70ba('0x1bd')]);if(this[_0x70ba('0x81')](_0x53dcf7[_0x70ba('0xd3')])){var _0x53647d=this[_0x70ba('0x12')]['sync'](this,_0x53dcf7['variable_id']);if(_0x53647d){this['channel'][_0x70ba('0x99')](_0x53647d,_0x5c7ca8);return this['channel'][_0x70ba('0xa3')](util[_0x70ba('0x2c')](_0x70ba('0x1be'),_0x53dcf7[_0x70ba('0x1bd')],_0x53647d));}}return this[_0x70ba('0x10')][_0x70ba('0xa3')](util[_0x70ba('0x2c')](_0x70ba('0x1bf'),_0x53dcf7[_0x70ba('0x1bd')]));};AGIVertices[_0x70ba('0x15')][_0x70ba('0x1c0')]=function(_0x4936a3){logger[_0x70ba('0x30')](util[_0x70ba('0x2c')](_0x70ba('0x1c1'),_0x4936a3[_0x70ba('0x3a')]));_0x4936a3['text']=_0x4936a3[_0x70ba('0x5d')][_0x70ba('0x5a')](/(\r\n|\n|\r)/gm,'\x20');if(!this[_0x70ba('0x81')](_0x4936a3[_0x70ba('0x5c')])){return this[_0x70ba('0x10')]['noop'](_0x70ba('0x1c2'));}if(!this['isConfigured'](_0x4936a3[_0x70ba('0x5d')])){return this[_0x70ba('0x10')]['noop'](_0x70ba('0xa4'));}this[_0x70ba('0x10')]['noop'](util[_0x70ba('0x2c')](_0x70ba('0x1c3'),_0x4936a3[_0x70ba('0x5d')]));var _0x8b1cbe=this[_0x70ba('0x5b')][_0x70ba('0x6d')](this,_0x4936a3);if(_0x8b1cbe){this[_0x70ba('0x10')][_0x70ba('0xa3')](util['format']('Google\x20Cloud\x20TTS\x20%s\x20file\x20created',_0x8b1cbe));var _0x38fa5f=this[_0x70ba('0x10')]['streamFile'](_0x8b1cbe);try{fs[_0x70ba('0xfb')](_0x8b1cbe+_0x70ba('0xfc'));}catch(_0x1af05e){logger[_0x70ba('0x2f')](_0x1af05e);}return _0x38fa5f;}return this[_0x70ba('0x10')][_0x70ba('0x2f')](_0x4936a3,'Google\x20Cloud\x20TTS\x20is\x20unreachable');};AGIVertices[_0x70ba('0x15')][_0x70ba('0x1c4')]=function(_0x1dbdca){logger[_0x70ba('0x30')](util[_0x70ba('0x2c')](_0x70ba('0x1c5'),_0x1dbdca['label']));_0x1dbdca[_0x70ba('0x5d')]=_0x1dbdca[_0x70ba('0x5d')][_0x70ba('0x5a')](/(\r\n|\n|\r)/gm,'\x20');if(!this['isConfigured'](_0x1dbdca[_0x70ba('0x5d')])){return this[_0x70ba('0x10')][_0x70ba('0xa3')](_0x70ba('0xa4'));}this[_0x70ba('0x10')][_0x70ba('0xa3')](util[_0x70ba('0x2c')](_0x70ba('0x1c6'),_0x1dbdca[_0x70ba('0x5d')]));var _0x4306e0=this[_0x70ba('0x63')][_0x70ba('0x6d')](this,_0x1dbdca);if(_0x4306e0){this['channel'][_0x70ba('0xa3')](util[_0x70ba('0x2c')](_0x70ba('0x1c7'),_0x4306e0));var _0x1d31ce=this['channel']['streamFile'](_0x4306e0);try{fs[_0x70ba('0xfb')](_0x4306e0+'.wav');}catch(_0x4a4436){logger[_0x70ba('0x2f')](_0x4a4436);}return _0x1d31ce;}return this[_0x70ba('0x10')][_0x70ba('0x2f')](_0x1dbdca,_0x70ba('0x1c8'));};AGIVertices[_0x70ba('0x15')]['unpause']=function(_0x3cc12a){logger[_0x70ba('0x30')](util[_0x70ba('0x2c')]('Enter\x20in\x20UNPAUSE\x20(%s)\x20block',_0x3cc12a[_0x70ba('0x3a')]));if(!this[_0x70ba('0x81')](_0x3cc12a[_0x70ba('0x154')])){return this[_0x70ba('0x10')][_0x70ba('0x2f')](_0x3cc12a,_0x70ba('0x155'));}logger[_0x70ba('0x30')](util[_0x70ba('0x2c')](_0x70ba('0x156'),this[_0x70ba('0x10')]['callerid'],_0x3cc12a[_0x70ba('0x154')]));var _0x57ae81=this[_0x70ba('0x51')][_0x70ba('0x6d')](this,_0x3cc12a[_0x70ba('0x154')]);if(_0x57ae81){logger[_0x70ba('0x30')](util[_0x70ba('0x2c')](_0x70ba('0x157'),this[_0x70ba('0x10')]['callerid'],_0x3cc12a[_0x70ba('0x154')]));this[_0x70ba('0x10')][_0x70ba('0xa3')](util[_0x70ba('0x2c')](_0x70ba('0x157'),this[_0x70ba('0x10')][_0x70ba('0x3d')],_0x3cc12a[_0x70ba('0x154')]));return{'code':0xc8,'result':_0x70ba('0x158')};}else{logger[_0x70ba('0x30')](util[_0x70ba('0x2c')](_0x70ba('0x159'),this[_0x70ba('0x10')][_0x70ba('0x3d')],_0x3cc12a[_0x70ba('0x154')]));this['channel'][_0x70ba('0xa3')](util[_0x70ba('0x2c')](_0x70ba('0x159'),this[_0x70ba('0x10')][_0x70ba('0x3d')],_0x3cc12a[_0x70ba('0x154')]));return{'code':0xc8,'result':'failure'};}};AGIVertices[_0x70ba('0x15')]['voicemail']=function(_0x11ab41){logger[_0x70ba('0x30')](util[_0x70ba('0x2c')](_0x70ba('0x1c9'),_0x11ab41[_0x70ba('0x3a')]));var _0x131c12=this[_0x70ba('0x10')]['exec'](_0x70ba('0x1ca'),[_0x11ab41[_0x70ba('0x1cb')],_0x11ab41[_0x70ba('0x74')]]);if(_0x131c12['result']===-0x1){return _0x131c12;}return this[_0x70ba('0x10')][_0x70ba('0xa3')](util['format'](_0x70ba('0xc0'),_0x70ba('0x1ca'),_0x11ab41['mailbox']));};AGIVertices[_0x70ba('0x15')][_0x70ba('0x1cc')]=function(_0x14578f){logger[_0x70ba('0x30')](util[_0x70ba('0x2c')]('Enter\x20in\x20SWITCH\x20(%s)\x20block',_0x14578f[_0x70ba('0x3a')]));if(!this[_0x70ba('0x81')](_0x14578f['variable_id'])){return this[_0x70ba('0x10')][_0x70ba('0x2f')](_0x14578f,_0x70ba('0x1ab'));}var _0x4ea88c=this[_0x70ba('0x12')][_0x70ba('0x6d')](this,_0x14578f[_0x70ba('0xd3')]);if(!_0x4ea88c){return this[_0x70ba('0x10')][_0x70ba('0x2f')](_0x14578f,_0x70ba('0xd4'));}var _0x550887=this['channel'][_0x70ba('0x12')](_0x4ea88c);return{'code':0xc8,'result':_0x550887[_0x70ba('0x9d')]?_0x550887[_0x70ba('0x9d')]:'-'};};String[_0x70ba('0x15')][_0x70ba('0x9c')]=function(_0x19ab44,_0xbb007c){return this['split'](_0x19ab44)[_0x70ba('0x1cd')](_0xbb007c);};module[_0x70ba('0x1ce')]=AGIVertices;