Built motion from commit (unavailable).|2.5.4
[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 _0xecaf=['replaceAll','extra','getAndSetVariable','result','The\x20\x22%s\x22\x20variable\x20value\x20is:\x20%s','maxRetry','retry','mrcpsynth','Enter\x20in\x20MRCPSynth\x20(%s)\x20block','noop','no\x20text\x20configured','mrcprecog','Enter\x20in\x20MRCPRecog\x20(%s)\x20block','grammar','no\x20grammar\x20configured','MRCPRecog','RECOG_CONFIDENCE()','MRCP_RECOG_CONFIDENCE','RECOG_INPUT()','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','Enter\x20in\x20CALLBACK\x20(%s)\x20block','no\x20list\x20selected','delay','CALLBACK\x20added\x20phone:\x20%s\x20on\x20list:\x20%s\x20at\x20%s','phone','custom_app','application','Executed\x20command\x20%s\x20%s','Enter\x20in\x20LUMENVOXTTS\x20(%s)\x20block','MRCPSynth','Executed\x20command\x20MRCPSynth\x20%s','Enter\x20in\x20SESTEKTTS\x20(%s)\x20block','Enter\x20in\x20LUMENVOXASR\x20(%s)\x20block','LUMENVOX_ASR_CONFIDENCE','LUMENVOX_ASR_TRANSCRIPT','sestekasr','Enter\x20in\x20SESTEKASR\x20(%s)\x20block','SESTEK_ASR_CONFIDENCE','SESTEK_ASR_TRANSCRIPT','SESTEK_ASR_INSTANCE','database','Enter\x20in\x20DATABASE\x20(%s)\x20block','getSquareOdbc','odbc_id','query:\x20%s','getQueryOdbc','variable_id','no\x20variable\x20selected\x20for\x20the\x20result','no\x20variable\x20found','forEach','keys','setVariable','%s_ROWS_COUNT','variable\x20%s\x20set','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','DIALOGFLOW_%s','speech','out','Dialogflow\x20Result\x20%s','Dialogflow\x20is\x20unreachable','sesteknda','Enter\x20in\x20SESTEKNDA\x20(%s)\x20block','ndauth_url','username','no\x20username\x20configured','password','no\x20password\x20configured','bot','Trying\x20SestekNDA:\x20%s','SESTEK_NDA_%s','audiofile','Sestek\x20NDA\x20%s\x20file\x20created','streamFile','unlink','SestekNDA\x20Result\x20%s','SestekNDA\x20is\x20unreachable','end','ext_dial','Enter\x20in\x20EXTERNAL\x20DIAL\x20(%s)\x20block','trunk_id','no\x20trunk\x20found','trunk_name','no\x20trunk\x20selected','SIP/%s/%s','finally','Enter\x20in\x20FINALLY\x20(%s)\x20block','Enter\x20in\x20GETDIGITS\x20(%s)\x20block','file_id','no\x20file\x20audio\x20selected','getSound','no\x20file\x20audio\x20found','getData','response','maxdigit','mindigit','hiddendigitsnum','generate','hiddendigitspos','first','substr','Enter\x20in\x20GETSECRETDIGITS\x20(%s)\x20block','goal','Enter\x20in\x20GOAL\x20(%s)\x20block','goalname','GOAL\x20%s','awspolly','[AGI]\x20Enter\x20in\x20AWSPOLLY\x20(%s)\x20block','no\x20valid\x20credentials\x20configured','Trying\x20aws\x20Polly\x20%s','.wav','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','message','Amazon\x20Lex\x20Result\x20%s','Amazon\x20Lex\x20is\x20unreachable','googleasr','Enter\x20in\x20GOOGLEASR\x20(%s)\x20block\x20%s','wav','%s/recordings/%s','recordFile','intKey','google\x20%s\x20file\x20created','GOOGLE_ASR_%s','GoogleASR\x20Result\x20%s','Enter\x20in\x20TILDEASR\x20(%s)\x20block','no\x20appid\x20configured','beep','NOBEEP','tilde\x20%s\x20file\x20created','TildeASR\x20Result\x20%s','gotoc','Enter\x20in\x20GOTO\x20(%s)\x20block','continueAt','gotoif','Enter\x20in\x20GOTOIF\x20(%s)\x20block','condition','no\x20condition\x20configured','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','hangup','ispeechasr','Enter\x20in\x20ISPEECHASR\x20(%s)\x20block','IspeechASR\x20Result\x20%s','ispeechtts','Enter\x20in\x20ISPEECHTTS\x20(%s)\x20block','Trying\x20ispeech\x20TTS\x20%s','ispeech\x20%s\x20file\x20created','login','Enter\x20in\x20LOGIN\x20(%s)\x20block','findBy','AGENT\x20%s\x20FOUND\x20BY','AGENT\x20%s\x20NOT\x20FOUND\x20BY','logout','no\x20find\x20by\x20configured','success','failure','math','Enter\x20in\x20MATH\x20(%s)\x20block','operation','variable\x20%s[key]\x20set','Enter\x20in\x20MENU\x20(%s)\x20block','digit','output','pause','Enter\x20in\x20PAUSE\x20(%s)\x20block','pause_id','playback','PLAYBACK','queue','Enter\x20in\x20QUEUE\x20(%s)\x20block','queue_id','no\x20queue\x20found','indexOf','toLowerCase','QUEUE','macro','gosub','position','record','Enter\x20in\x20RECORD\x20(%s)\x20block','recordingFormat','%s/recordings/%s.%s','Recording\x20%s\x20%s\x20%s\x20%s','escape_digits','restapi','Enter\x20in\x20RESTAPI\x20(%s)\x20block','no\x20url\x20configured','inspect','no\x20variable\x20selected\x20for\x20the\x20response','%s_STATUS_CODE','200','statusMessage','saydigits','Enter\x20in\x20SAYDIGITS\x20(%s)\x20block','sayDigits','digits','saynumber','sayNumber','sayphonetic','Enter\x20in\x20SAYPHONETIC\x20(%s)\x20block','sayPhonetic','sendMail','account_id','no\x20mail\x20account\x20configured','Smtp','no\x20mail\x20account\x20found','email','user','subject','service','host','secure','authentication','auth','pass','sendMail\x20message','Trying\x20SendMail\x20with\x20account\x20%s','Mail\x20message\x20added\x20to\x20outgoing\x20process','Enter\x20in\x20SENDFAX\x20(%s)\x20block','SENDFAX\x20block\x20not\x20implemented','sendSMS','Enter\x20in\x20SENDSMS\x20(%s)\x20block','sms_account_id','no\x20sms\x20account\x20configured','Sms\x20message\x20added\x20to\x20outgoing\x20process','set','Enter\x20in\x20SET\x20(%s)\x20block','no\x20variable\x20selected','variable_value','start','START\x20CALLY\x20SQUARE','yes','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','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','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','Google\x20TTS\x20is\x20unreachable','unpause','voicemail','Enter\x20in\x20VOICEMAIL\x20(%s)\x20block','mailbox','VOICEMAIL','Enter\x20in\x20SWITCH\x20(%s)\x20block','join','util','lodash','shelljs','randomstring','moment','mustache','request-promise','agi','../../config/environment','./scripts','/var/opt/motion2/server/files','rawHeaders','rawBody','menu','getdigits','getsecretdigits','channel','rpc','prototype','getVariable','getVariableById','then','name','catch','getVoiceQueue','getVoiceQueueById','getSquareProject','getSquareProjectById','dsn','getUser','getUserById','getTrunk','getSoundById','getSoundPath','save_name','getMailAccount','sendMailMessage','mailRpc','getIntervals','IntervalId','interval','map','Intervals','format','%s/sounds/converted/%s','error','Error\x20getting\x20ODBC\x20connection\x20%s','info','query','Error\x20executing\x20query\x20%s','Query\x20executed\x20correctly\x20%s','close','getSmsAccount','getSmsAccountById','createSmsMessage','createSquareDetailsReport','uniqueid','label','agicommand','arg_1','callerid','createSquareRecording','calleridname','context','extension','priority','accountcode','dnid','file','createSquareMessage','createCmContact','isEmpty','isNil','callback_','lastName','scheduledAt','callback','toString','getPause','getPauseById','agentPause','agent','agentUnpause','agentLogout','agentLogin','LOCAL','shellCommand','exec','trim','replace','googleCloudTTS','apiKey','google_cloud_tts_text_type','text','languageCode','ssmlGender','audioEncoding','googleTTS','restAPI','url','method','number','timeout','includes','POST','PUT','toUpperCase','body','parse','An\x20incorrect\x20formatted\x20json\x20body\x20has\x20been\x20passed\x20to\x20the\x20function','headers','An\x20incorrect\x20formatted\x20json\x20headers\x20has\x20been\x20passed\x20to\x20the\x20function','computedVariables','sync','uri','render','stringify','An\x20incorrect\x20formatted\x20json\x20has\x20been\x20passed\x20to\x20the\x20function','statusCode','options','googleDialogflow','key','dialogflow_language','sestekNDA','ispeechTTS','en-US','speed','ispeechASR','ispeech_asr_language','isConfigured','model','awsPolly','aws_access_key_id','aws_secret_access_key','aws_polly_region','aws_polly_voice','aws_text_type','awsLex','aws_bot_name','googleASR','google_asr_language','tildeASR','appid','appsecret','clear','isString','replaceObjectAllVariables','replaceAllVariables','recursiveNodeIndex','hasOwnProperty','isPlainObject','length','saveRestApiResult','%s.%s','isArray','split'];(function(_0xaa0309,_0x1c8008){var _0x5de7ce=function(_0x3aa6ae){while(--_0x3aa6ae){_0xaa0309['push'](_0xaa0309['shift']());}};_0x5de7ce(++_0x1c8008);}(_0xecaf,0x127));var _0xfeca=function(_0x1cef96,_0x1f8e53){_0x1cef96=_0x1cef96-0x0;var _0x1c2ece=_0xecaf[_0x1cef96];return _0x1c2ece;};'use strict';var fs=require('fs');var path=require('path');var util=require(_0xfeca('0x0'));var _=require(_0xfeca('0x1'));var sh=require(_0xfeca('0x2'));var odbc=require('odbc')();var rs=require(_0xfeca('0x3'));var moment=require(_0xfeca('0x4'));var Mustache=require(_0xfeca('0x5'));var rp=require(_0xfeca('0x6'));var logger=require('../../config/logger')(_0xfeca('0x7'));var config=require(_0xfeca('0x8'));var scripts=require(_0xfeca('0x9'));var FILES_PATH=_0xfeca('0xa');var recursiveMapAttributes=[_0xfeca('0xb'),_0xfeca('0xc')];var verticesWithRetry=[_0xfeca('0xd'),_0xfeca('0xe'),_0xfeca('0xf')];var AGIVertices=function(_0x727356,_0x52ad94,_0x1261e6){this[_0xfeca('0x10')]=_0x727356;this[_0xfeca('0x11')]=_0x52ad94;this['mailRpc']=_0x1261e6;};AGIVertices[_0xfeca('0x12')][_0xfeca('0x13')]=function(_0x512025,_0x224968){this['rpc'][_0xfeca('0x14')](_0x512025)[_0xfeca('0x15')](function(_0x9811db){_0x224968(null,_0x9811db?_0x9811db[_0xfeca('0x16')]:![]);})[_0xfeca('0x17')](function(_0x5689f6){_0x224968(_0x5689f6);});};AGIVertices[_0xfeca('0x12')][_0xfeca('0x18')]=function(_0x79193a,_0x1a816b){this['rpc'][_0xfeca('0x19')](_0x79193a)['then'](function(_0x5ebec0){_0x1a816b(null,_0x5ebec0?_0x5ebec0[_0xfeca('0x16')]:![]);})[_0xfeca('0x17')](function(_0x2d25b7){_0x1a816b(_0x2d25b7);});};AGIVertices[_0xfeca('0x12')][_0xfeca('0x1a')]=function(_0x329187,_0x5d3902){this[_0xfeca('0x11')][_0xfeca('0x1b')](_0x329187)[_0xfeca('0x15')](function(_0x4eadc2){_0x5d3902(null,_0x4eadc2?_0x4eadc2['name']:![]);})[_0xfeca('0x17')](function(_0x497766){_0x5d3902(_0x497766);});};AGIVertices[_0xfeca('0x12')]['getSquareOdbc']=function(_0x5a000f,_0x1f9206){this[_0xfeca('0x11')]['getSquareOdbcById'](_0x5a000f)[_0xfeca('0x15')](function(_0x4c14b2){_0x1f9206(null,_0x4c14b2?_0x4c14b2[_0xfeca('0x1c')]:![]);})[_0xfeca('0x17')](function(_0x2b0012){_0x1f9206(_0x2b0012);});};AGIVertices['prototype'][_0xfeca('0x1d')]=function(_0x582478,_0x33483c){this['rpc'][_0xfeca('0x1e')](_0x582478)['then'](function(_0x3ea1aa){_0x33483c(null,_0x3ea1aa?_0x3ea1aa[_0xfeca('0x16')]:![]);})[_0xfeca('0x17')](function(_0x3ddcda){_0x33483c(_0x3ddcda);});};AGIVertices['prototype'][_0xfeca('0x1f')]=function(_0x281ea2,_0x124df0){this['rpc']['getTrunkById'](_0x281ea2)[_0xfeca('0x15')](function(_0x3a66b6){_0x124df0(null,_0x3a66b6?_0x3a66b6['name']:![]);})['catch'](function(_0x2922c4){_0x124df0(_0x2922c4);});};AGIVertices[_0xfeca('0x12')]['getSound']=function(_0x40929c,_0x21c391){var _0x23da6c=this;this[_0xfeca('0x11')][_0xfeca('0x20')](_0x40929c)['then'](function(_0x37cca){_0x21c391(null,_0x37cca?_0x23da6c[_0xfeca('0x21')](_0x37cca[_0xfeca('0x22')]):![]);})[_0xfeca('0x17')](function(_0x1ffee0){_0x21c391(_0x1ffee0);});};AGIVertices[_0xfeca('0x12')][_0xfeca('0x23')]=function(_0x10d592,_0x4615ed){this['rpc']['getMailAccountById'](_0x10d592)['then'](function(_0x5c5714){_0x4615ed(null,_0x5c5714?_0x5c5714:![]);})['catch'](function(_0x1e322e){_0x4615ed(_0x1e322e);});};AGIVertices[_0xfeca('0x12')][_0xfeca('0x24')]=function(_0x5ddbf,_0x228412,_0x10de66){this[_0xfeca('0x25')][_0xfeca('0x24')](_0x5ddbf,_0x228412)['then'](function(){_0x10de66(null);})[_0xfeca('0x17')](function(_0x19abfd){_0x10de66(_0x19abfd);});};AGIVertices[_0xfeca('0x12')][_0xfeca('0x26')]=function(_0x5427d9,_0xfd3aa5){this[_0xfeca('0x11')]['getIntervalById'](_0x5427d9)['then'](function(_0x464956){if(_0x464956){if(_0x464956[_0xfeca('0x27')]){_0xfd3aa5(null,[_0x464956[_0xfeca('0x28')]]);}else{_0xfd3aa5(null,_[_0xfeca('0x29')](_0x464956[_0xfeca('0x2a')],_0xfeca('0x28')));}}else{_0xfd3aa5(null,![]);}})[_0xfeca('0x17')](function(_0xa2b1e3){_0xfd3aa5(_0xa2b1e3);});};AGIVertices[_0xfeca('0x12')][_0xfeca('0x21')]=function(_0x1845ac){return util[_0xfeca('0x2b')](_0xfeca('0x2c'),FILES_PATH,_0x1845ac);};AGIVertices[_0xfeca('0x12')]['getQueryOdbc']=function(_0x587fb6,_0x27d917,_0x178ffd){odbc['open'](_0x587fb6,function(_0x54d64c){if(_0x54d64c){logger[_0xfeca('0x2d')](_0xfeca('0x2e'),_0x54d64c);_0x178ffd(_0x54d64c);}else{logger[_0xfeca('0x2f')]('ODBC\x20connection\x20successfully');odbc[_0xfeca('0x30')](_0x27d917,function(_0x1fe127,_0x2bd706){if(_0x1fe127){logger[_0xfeca('0x2f')](_0xfeca('0x31'),_0x27d917);_0x178ffd(_0x1fe127);}else{logger[_0xfeca('0x2f')](_0xfeca('0x32'),_0x27d917);odbc[_0xfeca('0x33')](function(_0x4a3f7b){if(_0x4a3f7b){logger[_0xfeca('0x2d')]('Error\x20closing\x20connection\x20to\x20odbc\x20%s',_0x4a3f7b);}_0x178ffd(null,_0x2bd706);});}});}});};AGIVertices['prototype'][_0xfeca('0x34')]=function(_0xf3cf05,_0x3dd827){this[_0xfeca('0x11')][_0xfeca('0x35')](_0xf3cf05)[_0xfeca('0x15')](function(_0x24652f){_0x3dd827(null,_0x24652f?_0x24652f:![]);})['catch'](function(_0x40f9bf){_0x3dd827(_0x40f9bf);});};AGIVertices['prototype'][_0xfeca('0x36')]=function(_0x26e962,_0x2ed4af){this[_0xfeca('0x11')]['createSmsMessage'](_0x26e962)[_0xfeca('0x15')](function(_0x4b2e54){_0x2ed4af(null,_0x4b2e54);})[_0xfeca('0x17')](function(_0x41e9c9){_0x2ed4af(_0x41e9c9);});};AGIVertices[_0xfeca('0x12')][_0xfeca('0x37')]=function(_0x1b851f,_0x34d2c8,_0x15bd1c){this[_0xfeca('0x11')][_0xfeca('0x37')]({'uniqueid':this[_0xfeca('0x10')][_0xfeca('0x38')],'node':_0x1b851f[_0xfeca('0x39')],'application':_0x1b851f[_0xfeca('0x3a')],'data':_0x34d2c8||null,'project_name':this[_0xfeca('0x10')][_0xfeca('0x3b')],'callerid':this[_0xfeca('0x10')][_0xfeca('0x3c')]})[_0xfeca('0x15')](function(_0x5a0e31){if(_0x15bd1c){_0x15bd1c(null,_0x5a0e31);}})[_0xfeca('0x17')](function(_0x3561eb){if(_0x15bd1c){_0x15bd1c(_0x3561eb);}});};AGIVertices[_0xfeca('0x12')]['createSquareRecording']=function(_0x3b467d,_0x1903e1,_0x47e56d,_0x212400){this[_0xfeca('0x11')][_0xfeca('0x3d')]({'uniqueid':this['channel']['uniqueid'],'callerid':this['channel']['callerid'],'calleridname':this[_0xfeca('0x10')][_0xfeca('0x3e')],'context':this[_0xfeca('0x10')][_0xfeca('0x3f')],'extension':this['channel'][_0xfeca('0x40')],'priority':this['channel'][_0xfeca('0x41')],'accountcode':this['channel'][_0xfeca('0x42')],'dnid':this[_0xfeca('0x10')][_0xfeca('0x43')],'projectName':this[_0xfeca('0x10')][_0xfeca('0x3b')],'saveName':_0x1903e1,'filename':_0x3b467d[_0xfeca('0x44')]||_0x1903e1,'savePath':_0x47e56d})[_0xfeca('0x15')](function(_0x4824f1){_0x212400(null,_0x4824f1);})[_0xfeca('0x17')](function(_0xd5bc7a){_0x212400(_0xd5bc7a);});};AGIVertices[_0xfeca('0x12')]['createSquareMessage']=function(_0x117ef5,_0x18baa0,_0x1eddd8){this['rpc'][_0xfeca('0x45')]({'uniqueid':this[_0xfeca('0x10')][_0xfeca('0x38')],'body':_0x117ef5,'direction':_0x18baa0})['then'](function(_0x2a9f8b){if(_0x1eddd8){_0x1eddd8(null,_0x2a9f8b);}})[_0xfeca('0x17')](function(_0x1aa5a4){if(_0x1eddd8){_0x1eddd8(_0x1aa5a4);}});};AGIVertices[_0xfeca('0x12')][_0xfeca('0x46')]=function(_0x32e77a,_0x4953f1){this['rpc']['createCmContact']({'firstName':_[_0xfeca('0x47')](_0x32e77a[_0xfeca('0x16')])||_[_0xfeca('0x48')](_0x32e77a['name'])?_0xfeca('0x49')+Math['random']():_0x32e77a[_0xfeca('0x16')],'lastName':_['isEmpty'](_0x32e77a[_0xfeca('0x4a')])||_['isNil'](_0x32e77a[_0xfeca('0x4a')])?null:_0x32e77a[_0xfeca('0x4a')],'phone':_0x32e77a['phone'],'ListId':_0x32e77a['list_id'],'scheduledat':_0x32e77a[_0xfeca('0x4b')],'callbackUniqueid':this[_0xfeca('0x10')][_0xfeca('0x38')],'tags':_0xfeca('0x4c'),'description':'Callback\x20scheduled\x20at\x20'+_0x32e77a[_0xfeca('0x4b')][_0xfeca('0x4d')](),'priority':_0x32e77a['callback_priority']})[_0xfeca('0x15')](function(_0xc35ca1){_0x4953f1(null,_0xc35ca1);})[_0xfeca('0x17')](function(_0x122b2f){_0x4953f1(_0x122b2f);});};AGIVertices[_0xfeca('0x12')][_0xfeca('0x4e')]=function(_0x314cbf,_0x1c5f83){this[_0xfeca('0x11')][_0xfeca('0x4f')](_0x314cbf)['then'](function(_0x57e0ba){_0x1c5f83(null,_0x57e0ba?_0x57e0ba['name']:![]);})['catch'](function(_0x491061){_0x1c5f83(_0x491061);});};AGIVertices[_0xfeca('0x12')][_0xfeca('0x50')]=function(_0x546ccf,_0x508859,_0x3d0d99){var _0x2079bf={'role':_0xfeca('0x51')};_0x2079bf[_0x546ccf]=this['channel'][_0xfeca('0x3c')];this[_0xfeca('0x11')][_0xfeca('0x50')](_0x2079bf,_0x508859,this[_0xfeca('0x10')][_0xfeca('0x38')])[_0xfeca('0x15')](function(_0x1fe9f3){_0x3d0d99(null,_[_0xfeca('0x48')](_0x1fe9f3)?![]:!![]);})[_0xfeca('0x17')](function(_0x5f5bd2){logger[_0xfeca('0x2d')](_0x5f5bd2);_0x3d0d99(null,![]);});};AGIVertices[_0xfeca('0x12')][_0xfeca('0x52')]=function(_0x899e77,_0x591b45){var _0x3c5b20={'role':_0xfeca('0x51')};_0x3c5b20[_0x899e77]=this['channel'][_0xfeca('0x3c')];this[_0xfeca('0x11')]['agentUnpause'](_0x3c5b20)[_0xfeca('0x15')](function(_0x3bff02){_0x591b45(null,_['isNil'](_0x3bff02)?![]:!![]);})[_0xfeca('0x17')](function(_0xb8e0fb){logger[_0xfeca('0x2d')](_0xb8e0fb);_0x591b45(null,![]);});};AGIVertices[_0xfeca('0x12')][_0xfeca('0x53')]=function(_0x92bae8,_0x3cfede){var _0x35687d={'role':'agent'};_0x35687d[_0x92bae8]=this[_0xfeca('0x10')][_0xfeca('0x3c')];this[_0xfeca('0x11')][_0xfeca('0x53')](_0x35687d)['then'](function(_0x5da2db){_0x3cfede(null,_['isNil'](_0x5da2db)?![]:!![]);})[_0xfeca('0x17')](function(_0x390d5d){logger['error'](_0x390d5d);_0x3cfede(null,![]);});};AGIVertices[_0xfeca('0x12')][_0xfeca('0x54')]=function(_0x39f211,_0x26669c){var _0x1a215f={'role':_0xfeca('0x51')};_0x1a215f[_0x39f211]=this[_0xfeca('0x10')][_0xfeca('0x3c')];var _0x57ba6c=_0x39f211!='internal'?util[_0xfeca('0x2b')]('%s/%s@from-sip/n',_0xfeca('0x55'),this['channel'][_0xfeca('0x3c')]):undefined;this['rpc'][_0xfeca('0x54')](_0x1a215f,_0x57ba6c)['then'](function(_0x5264cc){_0x26669c(null,_['isNil'](_0x5264cc)?![]:!![]);})[_0xfeca('0x17')](function(_0x457b49){logger[_0xfeca('0x2d')](_0x457b49);_0x26669c(null,![]);});};AGIVertices[_0xfeca('0x12')][_0xfeca('0x56')]=function(_0x46fe4a,_0x20e6aa){sh[_0xfeca('0x57')](_[_0xfeca('0x58')](_0x46fe4a),function(_0xbef480,_0x556c77){var _0x5c5d54=_0x556c77[_0xfeca('0x59')](/(\r\n|\n|\r)/gm,'');_0x20e6aa(null,_0x5c5d54);});};AGIVertices['prototype'][_0xfeca('0x5a')]=function(_0x301ab4,_0x20427a){scripts['googleCloudTTS'](_0x301ab4[_0xfeca('0x5b')],_0x301ab4[_0xfeca('0x5c')]||_0xfeca('0x5d'),_0x301ab4[_0xfeca('0x5d')],_0x301ab4[_0xfeca('0x5e')]||'en-US',_0x301ab4[_0xfeca('0x5f')]||'MALE',_0x301ab4[_0xfeca('0x60')]||'MP3')[_0xfeca('0x15')](function(_0x52a116){_0x20427a(null,_0x52a116);})[_0xfeca('0x17')](function(_0x596dd0){_0x20427a(_0x596dd0);});};AGIVertices['prototype'][_0xfeca('0x61')]=function(_0x43faef,_0x34f055){scripts[_0xfeca('0x61')](_0x43faef[_0xfeca('0x5d')],_0x43faef['google_tts_language']||'en',0x1)[_0xfeca('0x15')](function(_0xe8cfbd){_0x34f055(null,_0xe8cfbd);})[_0xfeca('0x17')](function(_0x373a1f){_0x34f055(_0x373a1f);});};AGIVertices[_0xfeca('0x12')][_0xfeca('0x62')]=function(_0x358281,_0x2e3512){var _0xe020c8={'uri':_0x358281[_0xfeca('0x63')],'method':_0x358281[_0xfeca('0x64')],'json':!![],'resolveWithFullResponse':!![],'timeout':typeof parseInt(_0x358281['timeout'])===_0xfeca('0x65')&&parseInt(_0x358281['timeout'])>=0x1?parseInt(_0x358281[_0xfeca('0x66')])*0x3e8:0x5*0x3e8};if(_[_0xfeca('0x67')]([_0xfeca('0x68'),_0xfeca('0x69')],_0xe020c8[_0xfeca('0x64')][_0xfeca('0x6a')]())){try{_0xe020c8[_0xfeca('0x6b')]=_0x358281[_0xfeca('0xc')]?JSON[_0xfeca('0x6c')](_0x358281[_0xfeca('0xc')]):{};}catch(_0x5c7d04){logger[_0xfeca('0x2d')](_0xfeca('0x6d'),_0x5c7d04);}}try{_0xe020c8[_0xfeca('0x6e')]=_0x358281[_0xfeca('0xb')]?JSON[_0xfeca('0x6c')](_0x358281[_0xfeca('0xb')]):{};}catch(_0x10b188){logger['error'](_0xfeca('0x6f'),_0x10b188);}if(_0x358281[_0xfeca('0x70')]){try{var _0x482fae=require(_0x358281[_0xfeca('0x70')])[_0xfeca('0x71')](this,_0xe020c8);_0xe020c8[_0xfeca('0x72')]=Mustache[_0xfeca('0x73')](_0x358281[_0xfeca('0x63')],_0x482fae,{},['$$','$$']);if(_0xe020c8[_0xfeca('0x6e')]){_0xe020c8['headers']=JSON[_0xfeca('0x6c')](Mustache['render'](JSON[_0xfeca('0x74')](_0xe020c8[_0xfeca('0x6e')]),_0x482fae,{},['$$','$$']));}if(_0xe020c8['body']){_0xe020c8[_0xfeca('0x6b')]=JSON['parse'](Mustache[_0xfeca('0x73')](JSON[_0xfeca('0x74')](_0xe020c8[_0xfeca('0x6b')]),_0x482fae,{},['$$','$$']));}}catch(_0x400d03){logger[_0xfeca('0x2d')](_0xfeca('0x75'),_0x400d03);}}rp(_0xe020c8)[_0xfeca('0x15')](function(_0x1d4921){var _0x2dee36={'statusCode':_0x1d4921[_0xfeca('0x76')]||0xc8,'statusMessage':_0x1d4921['statusMessage']||'OK','headers':_0x1d4921[_0xfeca('0x6e')]||{},'body':_0x1d4921['body']||{}};_0x2e3512(null,_0x2dee36);})[_0xfeca('0x17')](function(_0x4dc4c9){var _0x342987={'statusCode':_0x4dc4c9[_0xfeca('0x76')]||0x1f4,'statusMessage':_0x4dc4c9['message']||'500\x20-\x20Internal\x20Server\x20Error','headers':_0x4dc4c9[_0xfeca('0x77')][_0xfeca('0x6e')]||{},'body':_0x4dc4c9[_0xfeca('0x77')]['body']||{}};_0x2e3512(null,_0x342987);});};AGIVertices[_0xfeca('0x12')][_0xfeca('0x78')]=function(_0x540086,_0x22a669){scripts[_0xfeca('0x78')](this['channel'][_0xfeca('0x38')],_0x540086[_0xfeca('0x79')],_0x540086[_0xfeca('0x5d')],_0x540086[_0xfeca('0x7a')]||'en')[_0xfeca('0x15')](function(_0x58da6d){_0x22a669(null,_0x58da6d);})['catch'](function(_0x431a96){_0x22a669(_0x431a96);});};AGIVertices['prototype'][_0xfeca('0x7b')]=function(_0x20e967,_0x59439d){scripts[_0xfeca('0x7b')](this['channel'],_0x20e967)['then'](function(_0x2b6a92){_0x59439d(null,_0x2b6a92);})['catch'](function(_0x287bab){_0x59439d(_0x287bab);});};AGIVertices[_0xfeca('0x12')][_0xfeca('0x7c')]=function(_0x435d3c,_0x2d722d){scripts['ispeechTTS'](_0x435d3c[_0xfeca('0x79')],_0x435d3c[_0xfeca('0x5d')],_0x435d3c['ispeech_tts_language']||_0xfeca('0x7d'),_0x435d3c[_0xfeca('0x7e')])[_0xfeca('0x15')](function(_0x1f5818){_0x2d722d(null,_0x1f5818);})[_0xfeca('0x17')](function(_0x28283d){_0x2d722d(_0x28283d);});};AGIVertices[_0xfeca('0x12')][_0xfeca('0x7f')]=function(_0x365062,_0x46413b,_0x51e2e6){scripts[_0xfeca('0x7f')](_0x46413b,_0x365062[_0xfeca('0x79')],_0x365062[_0xfeca('0x80')]||_0xfeca('0x7d'),this[_0xfeca('0x81')](_0x365062[_0xfeca('0x82')])?_0x365062['model']:undefined)[_0xfeca('0x15')](function(_0x692876){_0x51e2e6(null,_0x692876);})[_0xfeca('0x17')](function(_0x27fa53){_0x51e2e6(_0x27fa53);});};AGIVertices[_0xfeca('0x12')][_0xfeca('0x83')]=function(_0x50936c,_0x103bfc){scripts[_0xfeca('0x83')](_0x50936c[_0xfeca('0x84')],_0x50936c[_0xfeca('0x85')],_0x50936c[_0xfeca('0x86')],_0x50936c[_0xfeca('0x87')]||'Amy',_0x50936c[_0xfeca('0x5d')],_0x50936c[_0xfeca('0x88')]||_0xfeca('0x5d'))['then'](function(_0x164a05){_0x103bfc(null,_0x164a05);})[_0xfeca('0x17')](function(_0x16f842){_0x103bfc(_0x16f842);});};AGIVertices['prototype'][_0xfeca('0x89')]=function(_0x49ac38,_0x507a26){scripts[_0xfeca('0x89')](this[_0xfeca('0x10')][_0xfeca('0x38')],_0x49ac38[_0xfeca('0x84')],_0x49ac38['aws_secret_access_key'],_0x49ac38['aws_lex_region'],_0x49ac38[_0xfeca('0x5d')],_0x49ac38[_0xfeca('0x8a')])[_0xfeca('0x15')](function(_0x328758){_0x507a26(null,_0x328758);})[_0xfeca('0x17')](function(_0x5cc253){_0x507a26(_0x5cc253);});};AGIVertices[_0xfeca('0x12')][_0xfeca('0x8b')]=function(_0x3779b2,_0x4c40f3,_0x392801){scripts[_0xfeca('0x8b')](_0x4c40f3,_0x3779b2['key'],_0x3779b2[_0xfeca('0x8c')]||'en-US')['then'](function(_0xe6e39d){_0x392801(null,_0xe6e39d);})[_0xfeca('0x17')](function(_0x2ca4a5){_0x392801(_0x2ca4a5);});};AGIVertices[_0xfeca('0x12')][_0xfeca('0x8d')]=function(_0x416138,_0x108dec,_0x4b1101){scripts[_0xfeca('0x8d')](_0x108dec,_0x416138[_0xfeca('0x8e')],_0x416138[_0xfeca('0x8f')],_0x416138['uri'])['then'](function(_0x390c99){_0x4b1101(null,_0x390c99);})['catch'](function(_0x32835c){_0x4b1101(_0x32835c);});};AGIVertices['prototype'][_0xfeca('0x90')]=function(_0x334d0a){var _0xbf3d78=_['includes'](verticesWithRetry,_0x334d0a[_0xfeca('0x3a')])?_0x334d0a:_['clone'](_0x334d0a);for(var _0x3e2f59 in _0xbf3d78){if(_0xbf3d78['hasOwnProperty'](_0x3e2f59)){if(_0xbf3d78[_0x3e2f59]&&_[_0xfeca('0x91')](_0xbf3d78[_0x3e2f59])){if(_[_0xfeca('0x67')](recursiveMapAttributes,_0x3e2f59)){_0xbf3d78[_0x3e2f59]=this[_0xfeca('0x92')](_0xbf3d78[_0x3e2f59]);}else{_0xbf3d78[_0x3e2f59]=this[_0xfeca('0x93')](_0xbf3d78[_0x3e2f59]);}}}}return _0xbf3d78;};AGIVertices['prototype'][_0xfeca('0x94')]=function(_0x353db7){for(var _0x3f6554 in _0x353db7){if(_0x353db7[_0xfeca('0x95')](_0x3f6554)){if(_[_0xfeca('0x96')](_0x353db7[_0x3f6554])){this['recursiveNodeIndex'](_0x353db7[_0x3f6554]);}else if(_['isArray'](_0x353db7[_0x3f6554])){for(var _0x4e8f53=0x0;_0x4e8f53<_0x353db7[_0x3f6554][_0xfeca('0x97')];_0x4e8f53++){this[_0xfeca('0x94')](_0x353db7[_0x3f6554][_0x4e8f53]);}}else if(_[_0xfeca('0x91')](_0x353db7[_0x3f6554])){_0x353db7[_0x3f6554]=this[_0xfeca('0x93')](_0x353db7[_0x3f6554]);}}}};AGIVertices[_0xfeca('0x12')][_0xfeca('0x98')]=function(_0xad82c7,_0xe1bdf5){for(var _0x19b759 in _0xad82c7){if(_0xad82c7[_0xfeca('0x95')](_0x19b759)){if(_[_0xfeca('0x96')](_0xad82c7[_0x19b759])){if(!_[_0xfeca('0x47')](_0xad82c7[_0x19b759])){this[_0xfeca('0x98')](_0xad82c7[_0x19b759],util[_0xfeca('0x2b')](_0xfeca('0x99'),_0xe1bdf5,_0x19b759));}}else if(_[_0xfeca('0x9a')](_0xad82c7[_0x19b759])){for(var _0x540c6d=0x0;_0x540c6d<_0xad82c7[_0x19b759][_0xfeca('0x97')];_0x540c6d++){this['saveRestApiResult'](_0xad82c7[_0x19b759][_0x540c6d],util[_0xfeca('0x2b')]('%s.%s',_0xe1bdf5,_0x19b759+'['+_0x540c6d+']'));}}else{if(!_[_0xfeca('0x48')](_0xad82c7[_0x19b759])){this['channel']['setVariable'](util[_0xfeca('0x2b')]('%s.%s',_0xe1bdf5,_0x19b759),_0xad82c7[_0x19b759]);}}}}};AGIVertices['prototype'][_0xfeca('0x92')]=function(_0x25829f){try{var _0x289f25=JSON[_0xfeca('0x6c')](_0x25829f);this['recursiveNodeIndex'](_0x289f25);return JSON[_0xfeca('0x74')](_0x289f25);}catch(_0x1de036){return this['replaceAllVariables'](_0x25829f);}};AGIVertices[_0xfeca('0x12')][_0xfeca('0x93')]=function(_0x5238e6){var _0x1051c9=_0x5238e6['split']('{');for(var _0x3397c0=0x1;_0x3397c0<_0x1051c9['length'];_0x3397c0+=0x1){var _0x476be4=_0x1051c9[_0x3397c0][_0xfeca('0x9b')]('}');if(_0x476be4[_0xfeca('0x97')]>0x1){_0x5238e6=_0x5238e6[_0xfeca('0x9c')]('{'+_0x476be4[0x0]+'}',this['channel'][_0xfeca('0x13')](_0x476be4[0x0])[_0xfeca('0x9d')]||_0x476be4[0x0]);}}if(_0x1051c9['length']===0x1){return _0x5238e6['toString']();}return this[_0xfeca('0x93')](_0x5238e6);};AGIVertices[_0xfeca('0x12')][_0xfeca('0x9e')]=function(_0x9cf2d4,_0x1c2258){var _0x25a1a4=this['channel']['getVariable'](_0x9cf2d4);if(_0x25a1a4[_0xfeca('0x9f')]===-0x1){return _0x25a1a4;}logger[_0xfeca('0x2f')](util[_0xfeca('0x2b')](_0xfeca('0xa0'),_0x1c2258,_0x25a1a4[_0xfeca('0x9d')]));return this[_0xfeca('0x10')]['setVariable'](_0x1c2258,_0x25a1a4['extra']);};AGIVertices[_0xfeca('0x12')][_0xfeca('0x81')]=function(_0x5626d7){return _0x5626d7&&_0x5626d7!=='0'&&_0x5626d7!=='-1'&&_0x5626d7!=='';};AGIVertices['prototype'][_0xfeca('0xa1')]=function(_0x46e7d1){this[_0xfeca('0x37')][_0xfeca('0x71')](this,_0x46e7d1,'-');_0x46e7d1[_0xfeca('0xa2')]=_0x46e7d1[_0xfeca('0xa1')];return{'code':0xc8,'result':'-'};};AGIVertices['prototype'][_0xfeca('0xa3')]=function(_0x29f90b){logger[_0xfeca('0x2f')](util[_0xfeca('0x2b')](_0xfeca('0xa4'),_0x29f90b[_0xfeca('0x39')]));if(!this['isConfigured'](_0x29f90b[_0xfeca('0x5d')])){return this[_0xfeca('0x10')][_0xfeca('0xa5')](_0xfeca('0xa6'));}var _0x36f3c7='\x22'+_0x29f90b[_0xfeca('0x5d')]+'\x22';if(this[_0xfeca('0x81')](_0x29f90b['options'])){_0x36f3c7+=','+_0x29f90b[_0xfeca('0x77')];}var _0x63aff6=this[_0xfeca('0x10')]['exec']('MRCPSynth',_0x36f3c7);if(_0x63aff6[_0xfeca('0x9f')]===-0x1){return _0x63aff6;}return this['channel']['noop'](util['format']('Executed\x20command\x20MRCPSynth\x20%s',_0x36f3c7));};AGIVertices[_0xfeca('0x12')][_0xfeca('0xa7')]=function(_0x3c3bc2){logger['info'](util[_0xfeca('0x2b')](_0xfeca('0xa8'),_0x3c3bc2[_0xfeca('0x39')]));if(!this['isConfigured'](_0x3c3bc2[_0xfeca('0xa9')])){return this[_0xfeca('0x10')][_0xfeca('0xa5')](_0xfeca('0xaa'));}var _0x46e91a=_0x3c3bc2[_0xfeca('0xa9')];if(this[_0xfeca('0x81')](_0x3c3bc2['options'])){_0x46e91a+=','+_0x3c3bc2[_0xfeca('0x77')];}var _0x336ce3=this[_0xfeca('0x10')][_0xfeca('0x57')](_0xfeca('0xab'),_0x46e91a);if(_0x336ce3['result']===-0x1){return _0x336ce3;}var _0x49ab9a=this[_0xfeca('0x9e')](_0xfeca('0xac'),_0xfeca('0xad'));if(_0x49ab9a[_0xfeca('0x9f')]===-0x1){return _0x49ab9a;}var _0x1f39bb=this[_0xfeca('0x9e')](_0xfeca('0xae'),_0xfeca('0xaf'));if(_0x1f39bb[_0xfeca('0x9f')]===-0x1){return _0x1f39bb;}var _0x3c4e81=this['getAndSetVariable'](_0xfeca('0xb0'),_0xfeca('0xb1'));if(_0x3c4e81['result']===-0x1){return _0x3c4e81;}return this[_0xfeca('0x10')][_0xfeca('0xa5')](util[_0xfeca('0x2b')](_0xfeca('0xb2'),_0x46e91a));};AGIVertices['prototype'][_0xfeca('0x7')]=function(_0x42dff2){logger[_0xfeca('0x2f')](util['format'](_0xfeca('0xb3'),_0x42dff2[_0xfeca('0x39')]));return this[_0xfeca('0x10')]['agi']([_0x42dff2[_0xfeca('0xb4')],_0x42dff2[_0xfeca('0xb5')]]);};AGIVertices[_0xfeca('0x12')][_0xfeca('0xb6')]=function(_0x2549b5){logger[_0xfeca('0x2f')](util[_0xfeca('0x2b')](_0xfeca('0xb7'),_0x2549b5[_0xfeca('0x39')]));if(this[_0xfeca('0x81')](_0x2549b5[_0xfeca('0x66')])){logger['info'](util[_0xfeca('0x2b')](_0xfeca('0xb8'),_0x2549b5['timeout']));var _0x1d1637=this[_0xfeca('0x10')][_0xfeca('0xb9')](_0x2549b5[_0xfeca('0x66')]);if(_0x1d1637[_0xfeca('0x9f')]===-0x1){return _0x1d1637;}}return this[_0xfeca('0x10')][_0xfeca('0xb6')]();};AGIVertices['prototype'][_0xfeca('0x4c')]=function(_0x28fff5){logger[_0xfeca('0x2f')](util[_0xfeca('0x2b')](_0xfeca('0xba'),_0x28fff5[_0xfeca('0x39')]));if(!this['isConfigured'](_0x28fff5['list_id'])){return this['channel']['error'](_0x28fff5,_0xfeca('0xbb'));}_0x28fff5[_0xfeca('0x4b')]=moment();if(this[_0xfeca('0x81')](_0x28fff5[_0xfeca('0xbc')])){_0x28fff5[_0xfeca('0x4b')]=moment()['add'](_0x28fff5['delay'],'minutes');}if(!this['isConfigured'](_0x28fff5['callback_priority'])){_0x28fff5['callback_priority']=0x2;}this[_0xfeca('0x46')][_0xfeca('0x71')](this,_0x28fff5);return this[_0xfeca('0x10')][_0xfeca('0xa5')](util[_0xfeca('0x2b')](_0xfeca('0xbd'),_0x28fff5[_0xfeca('0xbe')],_0x28fff5['list_id'],_0x28fff5[_0xfeca('0x4b')]));};AGIVertices[_0xfeca('0x12')][_0xfeca('0xbf')]=function(_0xd9d79c){logger['info'](util[_0xfeca('0x2b')]('Enter\x20in\x20CUSTOM\x20APP\x20(%s)\x20block',_0xd9d79c[_0xfeca('0x39')]));var _0xdf9e09=this[_0xfeca('0x10')][_0xfeca('0x57')](_0xd9d79c[_0xfeca('0xc0')],_0xd9d79c[_0xfeca('0x77')]);if(_0xdf9e09[_0xfeca('0x9f')]===-0x1){return _0xdf9e09;}return this[_0xfeca('0x10')][_0xfeca('0xa5')](util['format'](_0xfeca('0xc1'),_0xd9d79c[_0xfeca('0xc0')],_0xd9d79c[_0xfeca('0x77')]));};AGIVertices[_0xfeca('0x12')]['lumenvoxtts']=function(_0x2ac263){logger['info'](util['format'](_0xfeca('0xc2'),_0x2ac263[_0xfeca('0x39')]));if(!this[_0xfeca('0x81')](_0x2ac263[_0xfeca('0x5d')])){return this['channel']['noop'](_0xfeca('0xa6'));}var _0x33ff93='\x22'+_0x2ac263['text']+'\x22';if(this[_0xfeca('0x81')](_0x2ac263[_0xfeca('0x77')])){_0x33ff93+=','+_0x2ac263[_0xfeca('0x77')];}var _0x4df02b=this[_0xfeca('0x10')]['exec'](_0xfeca('0xc3'),_0x33ff93);if(_0x4df02b[_0xfeca('0x9f')]===-0x1){return _0x4df02b;}return this[_0xfeca('0x10')]['noop'](util[_0xfeca('0x2b')](_0xfeca('0xc4'),_0x33ff93));};AGIVertices[_0xfeca('0x12')]['sestektts']=function(_0x28303c){logger[_0xfeca('0x2f')](util[_0xfeca('0x2b')](_0xfeca('0xc5'),_0x28303c[_0xfeca('0x39')]));if(!this[_0xfeca('0x81')](_0x28303c[_0xfeca('0x5d')])){return this['channel'][_0xfeca('0xa5')](_0xfeca('0xa6'));}var _0xc4454a='\x22'+_0x28303c[_0xfeca('0x5d')]+'\x22';if(this['isConfigured'](_0x28303c[_0xfeca('0x77')])){_0xc4454a+=','+_0x28303c['options'];}var _0x5d2e8e=this[_0xfeca('0x10')]['exec']('MRCPSynth',_0xc4454a);if(_0x5d2e8e[_0xfeca('0x9f')]===-0x1){return _0x5d2e8e;}return this[_0xfeca('0x10')][_0xfeca('0xa5')](util[_0xfeca('0x2b')]('Executed\x20command\x20MRCPSynth\x20%s',_0xc4454a));};AGIVertices[_0xfeca('0x12')]['lumenvoxasr']=function(_0x204fe3){logger[_0xfeca('0x2f')](util['format'](_0xfeca('0xc6'),_0x204fe3[_0xfeca('0x39')]));if(!this[_0xfeca('0x81')](_0x204fe3[_0xfeca('0xa9')])){return this['channel']['noop'](_0xfeca('0xaa'));}var _0x428254=_0x204fe3[_0xfeca('0xa9')];if(this[_0xfeca('0x81')](_0x204fe3[_0xfeca('0x77')])){_0x428254+=','+_0x204fe3[_0xfeca('0x77')];}var _0x5cf546=this['channel'][_0xfeca('0x57')](_0xfeca('0xab'),_0x428254);if(_0x5cf546[_0xfeca('0x9f')]===-0x1){return _0x5cf546;}var _0x43aec3=this[_0xfeca('0x9e')]('RECOG_CONFIDENCE()',_0xfeca('0xc7'));if(_0x43aec3[_0xfeca('0x9f')]===-0x1){return _0x43aec3;}var _0x339c67=this[_0xfeca('0x9e')](_0xfeca('0xae'),_0xfeca('0xc8'));if(_0x339c67[_0xfeca('0x9f')]===-0x1){return _0x339c67;}var _0x4fb859=this[_0xfeca('0x9e')]('RECOG_INSTANCE()','LUMENVOX_ASR_INSTANCE');if(_0x4fb859[_0xfeca('0x9f')]===-0x1){return _0x4fb859;}return this['channel'][_0xfeca('0xa5')](util[_0xfeca('0x2b')]('Executed\x20command\x20MRCPRecog\x20%s',_0x428254));};AGIVertices[_0xfeca('0x12')][_0xfeca('0xc9')]=function(_0x5e4953){logger[_0xfeca('0x2f')](util[_0xfeca('0x2b')](_0xfeca('0xca'),_0x5e4953[_0xfeca('0x39')]));if(!this['isConfigured'](_0x5e4953[_0xfeca('0xa9')])){return this[_0xfeca('0x10')][_0xfeca('0xa5')]('no\x20grammar\x20configured');}var _0x24eab4=_0x5e4953['grammar'];if(this[_0xfeca('0x81')](_0x5e4953[_0xfeca('0x77')])){_0x24eab4+=','+_0x5e4953[_0xfeca('0x77')];}var _0x4957ce=this[_0xfeca('0x10')][_0xfeca('0x57')](_0xfeca('0xab'),_0x24eab4);if(_0x4957ce[_0xfeca('0x9f')]===-0x1){return _0x4957ce;}var _0x26cdc1=this[_0xfeca('0x9e')](_0xfeca('0xac'),_0xfeca('0xcb'));if(_0x26cdc1[_0xfeca('0x9f')]===-0x1){return _0x26cdc1;}var _0x3225d0=this[_0xfeca('0x9e')](_0xfeca('0xae'),_0xfeca('0xcc'));if(_0x3225d0[_0xfeca('0x9f')]===-0x1){return _0x3225d0;}var _0x36b326=this[_0xfeca('0x9e')]('RECOG_INSTANCE()',_0xfeca('0xcd'));if(_0x36b326['result']===-0x1){return _0x36b326;}return this[_0xfeca('0x10')]['noop'](util[_0xfeca('0x2b')](_0xfeca('0xb2'),_0x24eab4));};AGIVertices[_0xfeca('0x12')][_0xfeca('0xce')]=function(_0x13c411){logger['info'](util['format'](_0xfeca('0xcf'),_0x13c411[_0xfeca('0x39')]));if(!this[_0xfeca('0x81')](_0x13c411['odbc_id'])){return this[_0xfeca('0x10')]['error'](_0x13c411,'no\x20database\x20selected');}var _0x3ac16d=this[_0xfeca('0xd0')][_0xfeca('0x71')](this,_0x13c411[_0xfeca('0xd1')]);if(!_0x3ac16d){return this[_0xfeca('0x10')][_0xfeca('0x2d')](_0x13c411,'no\x20odbc\x20database\x20found');}if(!this[_0xfeca('0x81')](_0x13c411['query'])){return this[_0xfeca('0x10')][_0xfeca('0x2d')](_0x13c411,'no\x20query\x20configured');}var _0x4b297c=_0x13c411['query'][_0xfeca('0x59')](/(\r\n|\n|\r)/gm,'\x20');this[_0xfeca('0x10')][_0xfeca('0xa5')](util[_0xfeca('0x2b')](_0xfeca('0xd2'),_0x4b297c));var _0x38ca9c=this[_0xfeca('0xd3')][_0xfeca('0x71')](this,_0x3ac16d,_0x4b297c);this[_0xfeca('0x37')][_0xfeca('0x71')](this,_0x13c411,_0x4b297c);if(!this[_0xfeca('0x81')](_0x13c411[_0xfeca('0xd4')])){return this['channel'][_0xfeca('0xa5')](_0xfeca('0xd5'));}var _0x2380db=this['getVariable'][_0xfeca('0x71')](this,_0x13c411[_0xfeca('0xd4')]);if(!_0x2380db){return this['channel'][_0xfeca('0x2d')](_0x13c411,_0xfeca('0xd6'));}var _0x136953=this;_0x38ca9c[_0xfeca('0xd7')](function(_0x115d71,_0x243aaf){Object[_0xfeca('0xd8')](_0x115d71)[_0xfeca('0xd7')](function(_0x6253b1){_0x136953[_0xfeca('0x10')]['setVariable'](util[_0xfeca('0x2b')]('%s[%s][%s]',_0x2380db,_0x243aaf,_0x6253b1),_0x115d71[_0x6253b1]);});});this[_0xfeca('0x10')][_0xfeca('0xd9')](util[_0xfeca('0x2b')](_0xfeca('0xda'),_0x2380db),_0x38ca9c[_0xfeca('0x97')]);return this['channel'][_0xfeca('0xa5')](util[_0xfeca('0x2b')](_0xfeca('0xdb'),_0x2380db));};AGIVertices['prototype']['dial']=function(_0x351812){logger[_0xfeca('0xdc')](util['format'](_0xfeca('0xdd'),_0x351812[_0xfeca('0x39')]));if(!this[_0xfeca('0x81')](_0x351812[_0xfeca('0xde')])){return this[_0xfeca('0x10')]['error'](_0x351812,_0xfeca('0xdf'));}var _0x54b2c7=this[_0xfeca('0x1d')][_0xfeca('0x71')](this,_0x351812['sip_id']);if(!_0x54b2c7){return this[_0xfeca('0x10')][_0xfeca('0x2d')](_0x351812,_0xfeca('0xe0'));}var _0x31225a=this['channel']['exec'](_0xfeca('0xe1'),[util[_0xfeca('0x2b')](_0xfeca('0xe2'),_0x54b2c7),_0x351812[_0xfeca('0x66')],_0x351812[_0xfeca('0xe3')],_0x351812[_0xfeca('0x63')]]);if(_0x31225a['result']===-0x1){return _0x31225a;}return this['channel']['noop'](util[_0xfeca('0x2b')](_0xfeca('0xe4'),_0xfeca('0xe1')));};AGIVertices[_0xfeca('0x12')][_0xfeca('0xe5')]=function(_0x1038eb){logger[_0xfeca('0x2f')](util[_0xfeca('0x2b')](_0xfeca('0xe6'),_0x1038eb[_0xfeca('0x39')]));if(!this[_0xfeca('0x81')](_0x1038eb['key'])){return this[_0xfeca('0x10')]['noop'](_0xfeca('0xe7'));}if(!this[_0xfeca('0x81')](_0x1038eb['text'])){return this['channel'][_0xfeca('0xa5')](_0xfeca('0xa6'));}this[_0xfeca('0x10')]['bot']=!![];this['createSquareDetailsReport'](_0x1038eb);this['createSquareMessage'](_0x1038eb[_0xfeca('0x5d')],'in');this['channel'][_0xfeca('0xa5')](util[_0xfeca('0x2b')]('Trying\x20Dialogflow:\x20%s',_0x1038eb[_0xfeca('0x5d')]));var _0x249c1c=this[_0xfeca('0x78')]['sync'](this,_0x1038eb);if(_0x249c1c){for(var _0x4a6e54 in _0x249c1c){if(_0x249c1c[_0xfeca('0x95')](_0x4a6e54)){this[_0xfeca('0x10')]['setVariable'](util[_0xfeca('0x2b')](_0xfeca('0xe8'),_0x4a6e54[_0xfeca('0x6a')]()),_0x249c1c[_0x4a6e54]);}}this[_0xfeca('0x45')](_0x249c1c[_0xfeca('0xe9')],_0xfeca('0xea'));return this[_0xfeca('0x10')][_0xfeca('0xa5')](util['format'](_0xfeca('0xeb'),_0x249c1c[_0xfeca('0xe9')]));}return this[_0xfeca('0x10')][_0xfeca('0x2d')](_0x1038eb,_0xfeca('0xec'));};AGIVertices[_0xfeca('0x12')][_0xfeca('0xed')]=function(_0x5cf7c0){logger[_0xfeca('0x2f')](util[_0xfeca('0x2b')](_0xfeca('0xee'),_0x5cf7c0[_0xfeca('0x39')]));if(!this[_0xfeca('0x81')](_0x5cf7c0[_0xfeca('0xef')])){return this['channel'][_0xfeca('0xa5')]('no\x20ndauth\x20url\x20configured');}if(!this[_0xfeca('0x81')](_0x5cf7c0[_0xfeca('0xf0')])){return this['channel']['noop'](_0xfeca('0xf1'));}if(!this[_0xfeca('0x81')](_0x5cf7c0[_0xfeca('0xf2')])){return this['channel'][_0xfeca('0xa5')](_0xfeca('0xf3'));}if(!this[_0xfeca('0x81')](_0x5cf7c0['ndassistant_url'])){return this[_0xfeca('0x10')][_0xfeca('0xa5')](_0xfeca('0xa6'));}this[_0xfeca('0x10')][_0xfeca('0xf4')]=!![];this['createSquareDetailsReport'](_0x5cf7c0);this[_0xfeca('0x45')](_0x5cf7c0['text'],'in');this['channel']['noop'](util[_0xfeca('0x2b')](_0xfeca('0xf5'),_0x5cf7c0[_0xfeca('0x5d')]));var _0x4b6a62=this[_0xfeca('0x7b')][_0xfeca('0x71')](this,_0x5cf7c0);if(_0x4b6a62){for(var _0x9b48c2 in _0x4b6a62){if(_0x4b6a62[_0xfeca('0x95')](_0x9b48c2)){this[_0xfeca('0x10')][_0xfeca('0xd9')](util[_0xfeca('0x2b')](_0xfeca('0xf6'),_0x9b48c2['toUpperCase']()),_0x4b6a62[_0x9b48c2]);}}this[_0xfeca('0x45')](_0x4b6a62[_0xfeca('0xe9')],_0xfeca('0xea'));if(_0x4b6a62[_0xfeca('0xf7')]){this[_0xfeca('0x10')][_0xfeca('0xa5')](util[_0xfeca('0x2b')](_0xfeca('0xf8'),_0x4b6a62[_0xfeca('0xf7')]));var _0x516a71=this[_0xfeca('0x10')][_0xfeca('0xf9')](_0x4b6a62[_0xfeca('0xf7')]);try{fs[_0xfeca('0xfa')](_0x4b6a62[_0xfeca('0xf7')]+'.wav');}catch(_0x5b388d){logger[_0xfeca('0x2d')](_0x5b388d);}return _0x516a71;}else{return this[_0xfeca('0x10')][_0xfeca('0xa5')](util['format'](_0xfeca('0xfb'),_0x4b6a62[_0xfeca('0xe9')]));}}return this['channel'][_0xfeca('0x2d')](_0x5cf7c0,_0xfeca('0xfc'));};AGIVertices[_0xfeca('0x12')][_0xfeca('0xfd')]=function(_0x56e0f7){logger['info'](util[_0xfeca('0x2b')]('Enter\x20in\x20END\x20(%s)\x20block',_0x56e0f7['label']));return this['channel'][_0xfeca('0xa5')]('end');};AGIVertices[_0xfeca('0x12')][_0xfeca('0xfe')]=function(_0x4feca7){logger['info'](util[_0xfeca('0x2b')](_0xfeca('0xff'),_0x4feca7[_0xfeca('0x39')]));var _0x22f4dc='';if(_0x4feca7[_0xfeca('0x100')]){if(!this[_0xfeca('0x81')](_0x4feca7[_0xfeca('0x100')])){return this[_0xfeca('0x10')][_0xfeca('0x2d')](_0x4feca7,'no\x20trunk\x20selected');}else{var _0x880538=parseInt(_0x4feca7[_0xfeca('0x100')],0xa);if(isNaN(_0x880538)){_0x22f4dc=_0x4feca7[_0xfeca('0x100')];}else{_0x22f4dc=this[_0xfeca('0x1f')][_0xfeca('0x71')](this,_0x4feca7[_0xfeca('0x100')]);if(!_0x22f4dc){return this[_0xfeca('0x10')]['error'](_0x4feca7,_0xfeca('0x101'));}}}}else if(_0x4feca7[_0xfeca('0x102')]){_0x22f4dc=_0x4feca7[_0xfeca('0x102')];}else{return this[_0xfeca('0x10')]['error'](_0x4feca7,_0xfeca('0x103'));}var _0x34e0de=this[_0xfeca('0x10')]['exec'](_0xfeca('0xe1'),[util[_0xfeca('0x2b')](_0xfeca('0x104'),_0x22f4dc,_0x4feca7[_0xfeca('0xbe')]),_0x4feca7[_0xfeca('0x66')],_0x4feca7[_0xfeca('0xe3')],_0x4feca7[_0xfeca('0x63')]]);if(_0x34e0de[_0xfeca('0x9f')]===-0x1){return _0x34e0de;}return this[_0xfeca('0x10')][_0xfeca('0xa5')](util[_0xfeca('0x2b')](_0xfeca('0xe4'),_0xfeca('0xe1')));};AGIVertices[_0xfeca('0x12')][_0xfeca('0x105')]=function(_0x199148){logger['info'](util['format'](_0xfeca('0x106'),_0x199148[_0xfeca('0x39')]));return this['channel'][_0xfeca('0xa5')](_0xfeca('0x105'));};AGIVertices['prototype'][_0xfeca('0xe')]=function(_0x4accfb){logger[_0xfeca('0x2f')](util[_0xfeca('0x2b')](_0xfeca('0x107'),_0x4accfb['label']));if(_0x4accfb[_0xfeca('0xa2')]===0x0){return this['maxRetry'](_0x4accfb);}_0x4accfb[_0xfeca('0xa2')]-=0x1;if(!this[_0xfeca('0x81')](_0x4accfb[_0xfeca('0x108')])){return this[_0xfeca('0x10')]['error'](_0x4accfb,_0xfeca('0x109'));}var _0x34ea39=this[_0xfeca('0x10a')][_0xfeca('0x71')](this,_0x4accfb['file_id']);if(!_0x34ea39){return this[_0xfeca('0x10')][_0xfeca('0x2d')](_0x4accfb,_0xfeca('0x10b'));}if(!this[_0xfeca('0x81')](_0x4accfb[_0xfeca('0xd4')])){return this['channel'][_0xfeca('0x2d')](_0xfeca('0xd5'));}var _0x17e5bb=this[_0xfeca('0x10')][_0xfeca('0x10c')](_0x34ea39,_0x4accfb[_0xfeca('0x10d')],_0x4accfb[_0xfeca('0x10e')]);var _0x2becbf=_0x17e5bb[_0xfeca('0x9f')]?_0x17e5bb[_0xfeca('0x9f')][_0xfeca('0x4d')]():'';logger[_0xfeca('0x2f')]('test',JSON[_0xfeca('0x74')](_0x17e5bb));if(_0x17e5bb[_0xfeca('0x9f')]===-0x1){this[_0xfeca('0x37')][_0xfeca('0x71')](this,_0x4accfb,_0x2becbf);return _0x17e5bb;}else if(_0x17e5bb['extra']===_0xfeca('0x66')){_0x17e5bb[_0xfeca('0x9f')]=_0x2becbf[_0xfeca('0x97')]>=parseInt(_0x4accfb['mindigit'])?'x':'i';}else{_0x17e5bb[_0xfeca('0x9f')]=_0x2becbf['length']>=parseInt(_0x4accfb[_0xfeca('0x10f')])&&_0x2becbf[_0xfeca('0x97')]<=parseInt(_0x4accfb[_0xfeca('0x10e')])?'x':'i';}var _0x37b251=this['getVariable'][_0xfeca('0x71')](this,_0x4accfb[_0xfeca('0xd4')]);if(!_0x37b251){return this['channel'][_0xfeca('0x2d')](_0x4accfb,_0xfeca('0xd6'));}this[_0xfeca('0x10')][_0xfeca('0xd9')](_0x37b251,_0x2becbf);if(this[_0xfeca('0x81')](_0x4accfb[_0xfeca('0x110')])){var _0x3df640=parseInt(_0x4accfb['hiddendigitsnum'],0xa);var _0x17be35=rs[_0xfeca('0x111')]({'charset':'*','length':_0x3df640});var _0x540518=_0x2becbf[_0xfeca('0x97')];if(_0x540518>0x0){if(_0x540518>_0x3df640){this[_0xfeca('0x37')][_0xfeca('0x71')](this,_0x4accfb,_0x4accfb[_0xfeca('0x112')]===_0xfeca('0x113')?_0x17be35+_0x2becbf[_0xfeca('0x114')](_0x3df640):_0x2becbf[_0xfeca('0x114')](0x0,_0x540518-_0x3df640)+_0x17be35);}else{this['createSquareDetailsReport']['sync'](this,_0x4accfb,rs['generate']({'charset':'*','length':_0x540518}));}}else{this[_0xfeca('0x37')][_0xfeca('0x71')](this,_0x4accfb,'');}}else{this[_0xfeca('0x37')][_0xfeca('0x71')](this,_0x4accfb,_0x2becbf);}return _0x17e5bb;};AGIVertices[_0xfeca('0x12')]['getsecretdigits']=function(_0x3af96a){logger[_0xfeca('0x2f')](util[_0xfeca('0x2b')](_0xfeca('0x115'),_0x3af96a[_0xfeca('0x39')]));return this[_0xfeca('0xe')](_0x3af96a);};AGIVertices[_0xfeca('0x12')][_0xfeca('0x116')]=function(_0xc01497){logger['info'](util[_0xfeca('0x2b')](_0xfeca('0x117'),_0xc01497[_0xfeca('0x39')]));this[_0xfeca('0x37')]['sync'](this,_0xc01497,_0xc01497[_0xfeca('0x118')]);return this[_0xfeca('0x10')][_0xfeca('0xa5')](util[_0xfeca('0x2b')](_0xfeca('0x119'),_0xc01497[_0xfeca('0x118')]));};AGIVertices['prototype'][_0xfeca('0x11a')]=function(_0x1a5daa){logger[_0xfeca('0x2f')](util[_0xfeca('0x2b')](_0xfeca('0x11b'),_0x1a5daa[_0xfeca('0x39')]));if(!this[_0xfeca('0x81')](_0x1a5daa[_0xfeca('0x84')])||!this[_0xfeca('0x81')](_0x1a5daa[_0xfeca('0x85')])){return this[_0xfeca('0x10')][_0xfeca('0xa5')](_0xfeca('0x11c'));}if(!this['isConfigured'](_0x1a5daa[_0xfeca('0x5d')])){return this[_0xfeca('0x10')][_0xfeca('0xa5')](_0xfeca('0xa6'));}this[_0xfeca('0x10')][_0xfeca('0xa5')](util[_0xfeca('0x2b')](_0xfeca('0x11d'),_0x1a5daa[_0xfeca('0x5d')]));var _0x597d2e=this[_0xfeca('0x83')][_0xfeca('0x71')](this,_0x1a5daa);if(_0x597d2e){this['channel']['noop'](util[_0xfeca('0x2b')]('aws\x20Polly\x20%s\x20file\x20created',_0x597d2e));var _0x150c51=this[_0xfeca('0x10')][_0xfeca('0xf9')](_0x597d2e);try{fs[_0xfeca('0xfa')](_0x597d2e+_0xfeca('0x11e'));}catch(_0x58e513){logger[_0xfeca('0x2d')](_0x58e513);}return _0x150c51;}return this[_0xfeca('0x10')]['error'](_0x1a5daa,_0xfeca('0x11f'));};AGIVertices[_0xfeca('0x12')][_0xfeca('0x120')]=function(_0x54bb09){logger[_0xfeca('0x2f')](util['format'](_0xfeca('0x121'),_0x54bb09[_0xfeca('0x39')]));if(!this[_0xfeca('0x81')](_0x54bb09[_0xfeca('0x84')])||!this['isConfigured'](_0x54bb09[_0xfeca('0x85')])){return this[_0xfeca('0x10')][_0xfeca('0xa5')](_0xfeca('0x11c'));}if(!this['isConfigured'](_0x54bb09['aws_bot_name'])){return this[_0xfeca('0x10')]['noop'](_0xfeca('0x122'));}if(!this[_0xfeca('0x81')](_0x54bb09[_0xfeca('0x5d')])){return this[_0xfeca('0x10')][_0xfeca('0xa5')](_0xfeca('0xa6'));}this[_0xfeca('0x10')][_0xfeca('0xf4')]=!![];this[_0xfeca('0x37')](_0x54bb09);this[_0xfeca('0x45')](_0x54bb09['text'],'in');this['channel']['noop'](util[_0xfeca('0x2b')](_0xfeca('0x123'),_0x54bb09[_0xfeca('0x5d')]));var _0x167a99=this[_0xfeca('0x89')][_0xfeca('0x71')](this,_0x54bb09);if(_0x167a99){for(var _0x358a44 in _0x167a99){if(_0x167a99[_0xfeca('0x95')](_0x358a44)&&_[_0xfeca('0x91')](_0x167a99[_0x358a44])){this[_0xfeca('0x10')][_0xfeca('0xd9')](util[_0xfeca('0x2b')](_0xfeca('0x124'),_0x358a44['toUpperCase']()),_0x167a99[_0x358a44]);}}if(_[_0xfeca('0x48')](_0x167a99['message'])){return this['channel'][_0xfeca('0xa5')](_0xfeca('0x125'));}else{this[_0xfeca('0x45')](_0x167a99[_0xfeca('0x126')],_0xfeca('0xea'));return this[_0xfeca('0x10')][_0xfeca('0xa5')](util[_0xfeca('0x2b')](_0xfeca('0x127'),_0x167a99['message']));}}return this['channel'][_0xfeca('0x2d')](_0x54bb09,_0xfeca('0x128'));};AGIVertices[_0xfeca('0x12')][_0xfeca('0x129')]=function(_0x16ecc5){logger[_0xfeca('0x2f')](util[_0xfeca('0x2b')](_0xfeca('0x12a'),_0x16ecc5['label'],_0x16ecc5[_0xfeca('0x66')]));if(!this[_0xfeca('0x81')](_0x16ecc5[_0xfeca('0x79')])){return this[_0xfeca('0x10')][_0xfeca('0xa5')]('no\x20key\x20configured');}var _0x1b4d21=_0xfeca('0x12b');var _0x5d4a0f=util[_0xfeca('0x2b')](_0xfeca('0x12c'),FILES_PATH,rs[_0xfeca('0x111')](0x4));var _0x4330ae=util[_0xfeca('0x2b')](_0xfeca('0x99'),_0x5d4a0f,_0x1b4d21);var _0x1a642a=!![];if(_0x16ecc5['beep']==='NOBEEP'){_0x1a642a=![];}var _0x11b671=this[_0xfeca('0x10')][_0xfeca('0x12d')](_0x5d4a0f,_0x1b4d21,_0x16ecc5[_0xfeca('0x12e')],_0x16ecc5[_0xfeca('0x66')],undefined,_0x1a642a);if(_0x11b671[_0xfeca('0x9f')]!==-0x1){this['channel'][_0xfeca('0xa5')](util['format'](_0xfeca('0x12f'),_0x4330ae));var _0x26dffa=this[_0xfeca('0x8b')][_0xfeca('0x71')](this,_0x16ecc5,_0x4330ae);if(_0x26dffa){for(var _0x21e279 in _0x26dffa){if(_0x26dffa[_0xfeca('0x95')](_0x21e279)){this[_0xfeca('0x10')][_0xfeca('0xd9')](util['format'](_0xfeca('0x130'),_0x21e279['toUpperCase']()),_0x26dffa[_0x21e279]);}}return this[_0xfeca('0x10')][_0xfeca('0xa5')](util[_0xfeca('0x2b')](_0xfeca('0x131'),JSON[_0xfeca('0x74')](_0x26dffa)));}}return _0x11b671;};AGIVertices[_0xfeca('0x12')]['tildeasr']=function(_0xdd1372){logger[_0xfeca('0x2f')](util[_0xfeca('0x2b')](_0xfeca('0x132'),_0xdd1372[_0xfeca('0x39')]));if(!this[_0xfeca('0x81')](_0xdd1372[_0xfeca('0x8e')])){return this['channel']['noop'](_0xfeca('0x133'));}if(!this[_0xfeca('0x81')](_0xdd1372[_0xfeca('0x8f')])){return this[_0xfeca('0x10')][_0xfeca('0xa5')]('no\x20appsecret\x20configured');}var _0x2f06fc=_0xfeca('0x12b');var _0x2f34c1=util[_0xfeca('0x2b')](_0xfeca('0x12c'),FILES_PATH,rs[_0xfeca('0x111')](0x4));var _0x118083=util[_0xfeca('0x2b')](_0xfeca('0x99'),_0x2f34c1,_0x2f06fc);var _0x5e37f1=!![];if(_0xdd1372[_0xfeca('0x134')]===_0xfeca('0x135')){_0x5e37f1=![];}var _0x26df6c=this[_0xfeca('0x10')][_0xfeca('0x12d')](_0x2f34c1,_0x2f06fc,_0xdd1372[_0xfeca('0x12e')],_0xdd1372[_0xfeca('0x66')],undefined,_0x5e37f1);if(_0x26df6c[_0xfeca('0x9f')]!==-0x1){this['channel'][_0xfeca('0xa5')](util[_0xfeca('0x2b')](_0xfeca('0x136'),_0x118083));var _0x16bc1d=this[_0xfeca('0x8d')][_0xfeca('0x71')](this,_0xdd1372,_0x118083);if(_0x16bc1d){for(var _0x28b70f in _0x16bc1d){if(_0x16bc1d['hasOwnProperty'](_0x28b70f)){this[_0xfeca('0x10')]['setVariable'](util[_0xfeca('0x2b')]('TILDE_ASR_%s',_0x28b70f[_0xfeca('0x6a')]()),_0x16bc1d[_0x28b70f]);}}return this[_0xfeca('0x10')][_0xfeca('0xa5')](util['format'](_0xfeca('0x137'),JSON[_0xfeca('0x74')](_0x16bc1d)));}}return _0x26df6c;};AGIVertices[_0xfeca('0x12')][_0xfeca('0x138')]=function(_0x5bc3b4){logger[_0xfeca('0x2f')](util[_0xfeca('0x2b')](_0xfeca('0x139'),_0x5bc3b4[_0xfeca('0x39')]));return this['channel'][_0xfeca('0x13a')](_0x5bc3b4[_0xfeca('0x3f')],_0x5bc3b4['extension'],_0x5bc3b4[_0xfeca('0x41')]);};AGIVertices[_0xfeca('0x12')][_0xfeca('0x13b')]=function(_0x187394){logger[_0xfeca('0x2f')](util[_0xfeca('0x2b')](_0xfeca('0x13c'),_0x187394['label']));if(!this[_0xfeca('0x81')](_0x187394[_0xfeca('0x13d')])){return this[_0xfeca('0x10')]['error'](_0x187394,_0xfeca('0x13e'));}try{var _0x2e79da=eval(_0x187394[_0xfeca('0x13d')])?'true':_0xfeca('0x13f');this[_0xfeca('0x10')][_0xfeca('0xa5')](util[_0xfeca('0x2b')](_0xfeca('0x140'),_0x187394[_0xfeca('0x13d')],_0x2e79da));return{'code':0xc8,'result':_0x2e79da};}catch(_0x45e14e){return{'code':0xc8,'result':_0xfeca('0x13f')};}};AGIVertices[_0xfeca('0x12')][_0xfeca('0x141')]=function(_0x1d4f4b){logger['info'](util[_0xfeca('0x2b')](_0xfeca('0x142'),_0x1d4f4b['label']));if(!this['isConfigured'](_0x1d4f4b[_0xfeca('0x143')])){return this[_0xfeca('0x10')][_0xfeca('0x2d')](_0x1d4f4b,_0xfeca('0x144'));}var _0x5c64e4=this[_0xfeca('0x26')][_0xfeca('0x71')](this,_0x1d4f4b[_0xfeca('0x143')]);if(!_0x5c64e4){return this[_0xfeca('0x10')][_0xfeca('0x2d')](_0x1d4f4b,_0xfeca('0x145'));}for(var _0x476844=0x0;_0x476844<_0x5c64e4['length'];_0x476844+=0x1){var _0x5d3637=this[_0xfeca('0x10')][_0xfeca('0x13')](util['format'](_0xfeca('0x146'),_0x5c64e4[_0x476844]));if(_0x5d3637['result']===-0x1){return _0x5d3637;}logger[_0xfeca('0x2f')](util['format'](_0xfeca('0x147'),_0x5c64e4[_0x476844],_0x5d3637['extra']));if(_0x5d3637[_0xfeca('0x9d')]===_0xfeca('0x148')){logger[_0xfeca('0x2f')](util['format'](_0xfeca('0x147'),_0x5c64e4[_0x476844],_0xfeca('0x148')));this[_0xfeca('0x10')][_0xfeca('0xa5')](util[_0xfeca('0x2b')](_0xfeca('0x147'),_0x5c64e4[_0x476844],'true'));return{'code':0xc8,'result':_0xfeca('0x148')};}else{logger['info'](util[_0xfeca('0x2b')]('IFTIME\x20%s\x20%s',_0x5c64e4[_0x476844],_0xfeca('0x13f')));this['channel'][_0xfeca('0xa5')](util[_0xfeca('0x2b')]('IFTIME\x20%s\x20%s',_0x5c64e4[_0x476844],_0xfeca('0x13f')));}}return{'code':0xc8,'result':_0xfeca('0x13f')};};AGIVertices[_0xfeca('0x12')][_0xfeca('0x149')]=function(_0x2cd93d){logger[_0xfeca('0x2f')](util[_0xfeca('0x2b')]('Enter\x20in\x20HANGUP\x20(%s)\x20block',_0x2cd93d[_0xfeca('0x39')]));return this[_0xfeca('0x10')][_0xfeca('0x149')]();};AGIVertices[_0xfeca('0x12')][_0xfeca('0x14a')]=function(_0x3fd4df){logger['info'](util[_0xfeca('0x2b')](_0xfeca('0x14b'),_0x3fd4df[_0xfeca('0x39')]));if(!this['isConfigured'](_0x3fd4df[_0xfeca('0x79')])){return this[_0xfeca('0x10')][_0xfeca('0xa5')](_0xfeca('0xe7'));}var _0x59c6d9=_0xfeca('0x12b');var _0x148116=util['format'](_0xfeca('0x12c'),FILES_PATH,rs[_0xfeca('0x111')](0x4));var _0x5db32c=util[_0xfeca('0x2b')](_0xfeca('0x99'),_0x148116,_0x59c6d9);var _0x53d7c7=!![];if(_0x3fd4df[_0xfeca('0x134')]===_0xfeca('0x135')){_0x53d7c7=![];}var _0x46083d=this[_0xfeca('0x10')]['recordFile'](_0x148116,_0x59c6d9,_0x3fd4df[_0xfeca('0x12e')],_0x3fd4df[_0xfeca('0x66')],undefined,_0x53d7c7);if(_0x46083d['result']!==-0x1){this[_0xfeca('0x10')][_0xfeca('0xa5')](util[_0xfeca('0x2b')]('ispeech\x20%s\x20file\x20created',_0x5db32c));var _0x22d2d3=this['ispeechASR']['sync'](this,_0x3fd4df,_0x5db32c);if(_0x22d2d3){for(var _0x57ec05 in _0x22d2d3){if(_0x22d2d3[_0xfeca('0x95')](_0x57ec05)){this[_0xfeca('0x10')][_0xfeca('0xd9')](util[_0xfeca('0x2b')]('ISPEECH_ASR_%s',_0x57ec05[_0xfeca('0x6a')]()),_0x22d2d3[_0x57ec05]);}}return this['channel'][_0xfeca('0xa5')](util[_0xfeca('0x2b')](_0xfeca('0x14c'),JSON[_0xfeca('0x74')](_0x22d2d3)));}}return _0x46083d;};AGIVertices['prototype'][_0xfeca('0x14d')]=function(_0x4b7f00){logger[_0xfeca('0x2f')](util[_0xfeca('0x2b')](_0xfeca('0x14e'),_0x4b7f00[_0xfeca('0x39')]));if(!this[_0xfeca('0x81')](_0x4b7f00[_0xfeca('0x79')])){return this[_0xfeca('0x10')]['noop'](_0xfeca('0xe7'));}if(!this[_0xfeca('0x81')](_0x4b7f00[_0xfeca('0x5d')])){return this[_0xfeca('0x10')][_0xfeca('0xa5')](_0xfeca('0xa6'));}this[_0xfeca('0x10')][_0xfeca('0xa5')](util[_0xfeca('0x2b')](_0xfeca('0x14f'),_0x4b7f00[_0xfeca('0x5d')]));var _0x20a20d=this[_0xfeca('0x7c')][_0xfeca('0x71')](this,_0x4b7f00);if(_0x20a20d){this[_0xfeca('0x10')]['noop'](util['format'](_0xfeca('0x150'),_0x20a20d));var _0x3eb17e=this['channel'][_0xfeca('0xf9')](_0x20a20d,_0x4b7f00['intKey']);try{fs[_0xfeca('0xfa')](_0x20a20d+_0xfeca('0x11e'));}catch(_0x2a50d0){logger[_0xfeca('0x2d')](_0x2a50d0);}return _0x3eb17e;}return this['channel'][_0xfeca('0x2d')](_0x4b7f00,'ispeech\x20TTS\x20is\x20unreachable');};AGIVertices[_0xfeca('0x12')][_0xfeca('0x151')]=function(_0x2b3809){logger[_0xfeca('0x2f')](util['format'](_0xfeca('0x152'),_0x2b3809[_0xfeca('0x39')]));if(!this[_0xfeca('0x81')](_0x2b3809['findBy'])){return this[_0xfeca('0x10')][_0xfeca('0x2d')](_0x2b3809,'no\x20find\x20by\x20configured');}logger[_0xfeca('0x2f')](util[_0xfeca('0x2b')]('FIND\x20AGENT\x20%s\x20BY\x20%s',this[_0xfeca('0x10')][_0xfeca('0x3c')],_0x2b3809[_0xfeca('0x153')]));var _0x322f3f=this['agentLogin']['sync'](this,_0x2b3809[_0xfeca('0x153')]);if(_0x322f3f){logger[_0xfeca('0x2f')](util[_0xfeca('0x2b')](_0xfeca('0x154'),this[_0xfeca('0x10')][_0xfeca('0x3c')],_0x2b3809['findBy']));this['channel'][_0xfeca('0xa5')](util[_0xfeca('0x2b')](_0xfeca('0x154'),this['channel'][_0xfeca('0x3c')],_0x2b3809[_0xfeca('0x153')]));return{'code':0xc8,'result':'success'};}else{logger[_0xfeca('0x2f')](util[_0xfeca('0x2b')](_0xfeca('0x155'),this[_0xfeca('0x10')]['callerid'],_0x2b3809[_0xfeca('0x153')]));this[_0xfeca('0x10')][_0xfeca('0xa5')](util[_0xfeca('0x2b')](_0xfeca('0x155'),this[_0xfeca('0x10')]['callerid'],_0x2b3809[_0xfeca('0x153')]));return{'code':0xc8,'result':'failure'};}};AGIVertices[_0xfeca('0x12')][_0xfeca('0x156')]=function(_0x10f7b8){logger[_0xfeca('0x2f')](util[_0xfeca('0x2b')]('Enter\x20in\x20LOGOUT\x20(%s)\x20block',_0x10f7b8['label']));if(!this['isConfigured'](_0x10f7b8[_0xfeca('0x153')])){return this['channel']['error'](_0x10f7b8,_0xfeca('0x157'));}logger[_0xfeca('0x2f')](util[_0xfeca('0x2b')]('FIND\x20AGENT\x20%s\x20BY\x20%s',this[_0xfeca('0x10')][_0xfeca('0x3c')],_0x10f7b8['findBy']));var _0x4ca177=this[_0xfeca('0x53')][_0xfeca('0x71')](this,_0x10f7b8[_0xfeca('0x153')]);if(_0x4ca177){logger[_0xfeca('0x2f')](util[_0xfeca('0x2b')](_0xfeca('0x154'),this['channel'][_0xfeca('0x3c')],_0x10f7b8[_0xfeca('0x153')]));this[_0xfeca('0x10')][_0xfeca('0xa5')](util[_0xfeca('0x2b')](_0xfeca('0x154'),this[_0xfeca('0x10')][_0xfeca('0x3c')],_0x10f7b8[_0xfeca('0x153')]));return{'code':0xc8,'result':_0xfeca('0x158')};}else{logger[_0xfeca('0x2f')](util[_0xfeca('0x2b')](_0xfeca('0x155'),this[_0xfeca('0x10')][_0xfeca('0x3c')],_0x10f7b8[_0xfeca('0x153')]));this[_0xfeca('0x10')][_0xfeca('0xa5')](util[_0xfeca('0x2b')](_0xfeca('0x155'),this[_0xfeca('0x10')][_0xfeca('0x3c')],_0x10f7b8[_0xfeca('0x153')]));return{'code':0xc8,'result':_0xfeca('0x159')};}};AGIVertices[_0xfeca('0x12')][_0xfeca('0x15a')]=function(_0x379f36){logger[_0xfeca('0x2f')](util['format'](_0xfeca('0x15b'),_0x379f36[_0xfeca('0x39')]));if(!this['isConfigured'](_0x379f36[_0xfeca('0x15c')])){return this[_0xfeca('0x10')]['error'](_0x379f36,'no\x20operation\x20configured');}this['channel'][_0xfeca('0xa5')](util[_0xfeca('0x2b')]('math\x20%s',_0x379f36[_0xfeca('0x15c')]));var _0x3abeba=eval(_0x379f36[_0xfeca('0x15c')]);if(!this[_0xfeca('0x81')](_0x379f36[_0xfeca('0xd4')])){return this[_0xfeca('0x10')][_0xfeca('0xa5')](_0xfeca('0xd5'));}var _0x5bb77f=this[_0xfeca('0x13')]['sync'](this,_0x379f36[_0xfeca('0xd4')]);if(!_0x5bb77f){return this[_0xfeca('0x10')][_0xfeca('0x2d')](_0x379f36,_0xfeca('0xd6'));}if(_['isArray'](_0x3abeba)){var _0x24819e=this;_0x3abeba[_0xfeca('0xd7')](function(_0x560087,_0x4da6ba){_0x24819e[_0xfeca('0x10')][_0xfeca('0xd9')](util[_0xfeca('0x2b')]('%s[%s]',_0x5bb77f,_0x4da6ba),_0x560087);});return this['channel']['noop'](util[_0xfeca('0x2b')](_0xfeca('0x15d'),_0x5bb77f));}else{return this[_0xfeca('0x10')][_0xfeca('0xd9')](_0x5bb77f,_0x3abeba);}};AGIVertices['prototype'][_0xfeca('0xd')]=function(_0xc4e024){logger[_0xfeca('0x2f')](util['format'](_0xfeca('0x15e'),_0xc4e024[_0xfeca('0x39')]));if(_0xc4e024['retry']===0x0){return this[_0xfeca('0xa1')](_0xc4e024);}_0xc4e024[_0xfeca('0xa2')]-=0x1;if(!this[_0xfeca('0x81')](_0xc4e024[_0xfeca('0x108')])){return this[_0xfeca('0x10')][_0xfeca('0x2d')](_0xc4e024,'no\x20file\x20audio\x20selected');}var _0x26f283=this[_0xfeca('0x10a')][_0xfeca('0x71')](this,_0xc4e024[_0xfeca('0x108')]);if(!_0x26f283){return this[_0xfeca('0x10')][_0xfeca('0x2d')](_0xc4e024,_0xfeca('0x10b'));}var _0x69c3cd=this[_0xfeca('0x10')][_0xfeca('0x10c')](_0x26f283,_0xc4e024[_0xfeca('0x10d')],_0xc4e024[_0xfeca('0x15f')]);var _0x11a24f=_0x69c3cd[_0xfeca('0x9f')];if(_0x69c3cd[_0xfeca('0x9f')]===-0x1){this['createSquareDetailsReport']['sync'](this,_0xc4e024,'-1');return _0x69c3cd;}else if(_0x69c3cd[_0xfeca('0x9d')]===_0xfeca('0x66')){_0x69c3cd[_0xfeca('0x9f')]=_0x69c3cd[_0xfeca('0x9f')]['length']>0x0?_0x69c3cd['result']:'t';}else if(_['isEmpty'](_0x69c3cd[_0xfeca('0x9f')])){_0x69c3cd[_0xfeca('0x9f')]='#';_0x11a24f='#';}if(!this[_0xfeca('0x81')](_0xc4e024['variable_id'])){this[_0xfeca('0x10')][_0xfeca('0xa5')](_0xfeca('0xd5'));}else{var _0x434649=this[_0xfeca('0x13')]['sync'](this,_0xc4e024[_0xfeca('0xd4')]);if(!_0x434649){return this[_0xfeca('0x10')][_0xfeca('0x2d')](_0xc4e024,_0xfeca('0xd6'));}this[_0xfeca('0x10')]['setVariable'](_0x434649,_0x11a24f);}this['createSquareDetailsReport']['sync'](this,_0xc4e024,_0x11a24f);return _0x69c3cd;};AGIVertices[_0xfeca('0x12')]['noop']=function(_0x184d51){logger[_0xfeca('0x2f')](util['format']('Enter\x20in\x20NOOP\x20(%s)\x20block',_0x184d51['label']));return this[_0xfeca('0x10')]['noop'](_0x184d51[_0xfeca('0x160')]||_0x184d51[_0xfeca('0x39')]);};AGIVertices['prototype'][_0xfeca('0x161')]=function(_0x48bb9e){logger[_0xfeca('0x2f')](util['format'](_0xfeca('0x162'),_0x48bb9e['label']));if(!this[_0xfeca('0x81')](_0x48bb9e[_0xfeca('0x153')])){return this[_0xfeca('0x10')][_0xfeca('0x2d')](_0x48bb9e,'no\x20find\x20by\x20configured');}logger['info'](util[_0xfeca('0x2b')]('FIND\x20AGENT\x20%s\x20BY\x20%s',this[_0xfeca('0x10')][_0xfeca('0x3c')],_0x48bb9e['findBy']));var _0x2b3bd7=this[_0xfeca('0x4e')][_0xfeca('0x71')](this,_0x48bb9e[_0xfeca('0x163')]);var _0x25ea36=this[_0xfeca('0x50')][_0xfeca('0x71')](this,_0x48bb9e[_0xfeca('0x153')],_0x2b3bd7);if(_0x25ea36){logger[_0xfeca('0x2f')](util[_0xfeca('0x2b')](_0xfeca('0x154'),this['channel'][_0xfeca('0x3c')],_0x48bb9e[_0xfeca('0x153')]));this['channel'][_0xfeca('0xa5')](util[_0xfeca('0x2b')](_0xfeca('0x154'),this[_0xfeca('0x10')][_0xfeca('0x3c')],_0x48bb9e[_0xfeca('0x153')]));return{'code':0xc8,'result':_0xfeca('0x158')};}else{logger['info'](util[_0xfeca('0x2b')](_0xfeca('0x155'),this[_0xfeca('0x10')][_0xfeca('0x3c')],_0x48bb9e[_0xfeca('0x153')]));this[_0xfeca('0x10')]['noop'](util[_0xfeca('0x2b')](_0xfeca('0x154'),this[_0xfeca('0x10')][_0xfeca('0x3c')],_0x48bb9e[_0xfeca('0x153')]));return{'code':0xc8,'result':_0xfeca('0x159')};}};AGIVertices[_0xfeca('0x12')][_0xfeca('0x164')]=function(_0x3ecbc4){logger[_0xfeca('0x2f')](util[_0xfeca('0x2b')]('Enter\x20in\x20PLAYBACK\x20(%s)\x20block',_0x3ecbc4[_0xfeca('0x39')]));if(!this['isConfigured'](_0x3ecbc4[_0xfeca('0x108')])){return this['channel'][_0xfeca('0x2d')](_0x3ecbc4,_0xfeca('0x109'));}var _0x3539a6=this['getSound']['sync'](this,_0x3ecbc4['file_id']);if(!_0x3539a6){return this['channel'][_0xfeca('0x2d')](_0x3ecbc4,'no\x20file\x20audio\x20found');}var _0x355b27=this[_0xfeca('0x10')][_0xfeca('0x57')]('PLAYBACK',[_0x3539a6,_0x3ecbc4[_0xfeca('0xe3')]]);if(_0x355b27[_0xfeca('0x9f')]===-0x1){return _0x355b27;}return this[_0xfeca('0x10')][_0xfeca('0xa5')](util[_0xfeca('0x2b')]('Executed\x20command\x20%s\x20%s',_0xfeca('0x165'),_0x3539a6));};AGIVertices['prototype'][_0xfeca('0x166')]=function(_0xf59f72){logger['info'](util['format'](_0xfeca('0x167'),_0xf59f72['label']));if(!this[_0xfeca('0x81')](_0xf59f72[_0xfeca('0x168')])){return this['channel']['error'](_0xf59f72,'no\x20queue\x20selected');}var _0x2a8a65='';var _0x242c7e=parseInt(_0xf59f72['queue_id'],0xa);if(isNaN(_0x242c7e)){_0x2a8a65=_0xf59f72[_0xfeca('0x168')];}else{_0x2a8a65=this[_0xfeca('0x18')][_0xfeca('0x71')](this,_0xf59f72['queue_id']);if(!_0x2a8a65){return this[_0xfeca('0x10')]['error'](_0xf59f72,_0xfeca('0x169'));}}var _0x5af57b='';if(this[_0xfeca('0x81')](_0xf59f72[_0xfeca('0x108')])){var _0x4ee1ab=this['getSound'][_0xfeca('0x71')](this,_0xf59f72['file_id']);if(_0x4ee1ab){_0x5af57b=_0x4ee1ab;}}this['createSquareDetailsReport'][_0xfeca('0x71')](this,_0xf59f72,_0x2a8a65);if(_0xf59f72['opts'][_0xfeca('0x16a')]('x')<0x0){_0xf59f72['opts']+='x';}if(_0xf59f72['opts']['indexOf']('X')<0x0){_0xf59f72[_0xfeca('0xe3')]+='X';}this[_0xfeca('0x10')][_0xfeca('0xd9')]('XMCS-QUEUE',_0x2a8a65?_0x2a8a65[_0xfeca('0x16b')]():'');var _0x307baa=this['channel'][_0xfeca('0x57')](_0xfeca('0x16c'),[_0x2a8a65,_0xf59f72[_0xfeca('0xe3')],_0xf59f72[_0xfeca('0x63')],_0x5af57b,_0xf59f72[_0xfeca('0x66')],_0xf59f72[_0xfeca('0x7')],_0xf59f72[_0xfeca('0x16d')],_0xf59f72[_0xfeca('0x16e')],'',_0xf59f72[_0xfeca('0x16f')]]);if(_0x307baa['result']===-0x1){return _0x307baa;}return this[_0xfeca('0x10')][_0xfeca('0xa5')](util[_0xfeca('0x2b')]('Executed\x20command\x20%s\x20%s',_0xfeca('0x16c'),_0x2a8a65));};AGIVertices[_0xfeca('0x12')][_0xfeca('0x170')]=function(_0x135635){logger[_0xfeca('0x2f')](util[_0xfeca('0x2b')](_0xfeca('0x171'),_0x135635[_0xfeca('0x39')]));var _0x4e4155=_0x135635[_0xfeca('0x172')]||'wav';var _0x444501=util[_0xfeca('0x2b')]('%s_%s',this[_0xfeca('0x10')][_0xfeca('0x38')],rs[_0xfeca('0x111')](0x5));var _0x13d78b=util[_0xfeca('0x2b')](_0xfeca('0x173'),FILES_PATH,_0x444501,_0x4e4155);var _0x4580c0=util[_0xfeca('0x2b')](_0xfeca('0x12c'),FILES_PATH,_0x444501);this[_0xfeca('0x3d')][_0xfeca('0x71')](this,_0x135635,_0x444501,_0x13d78b);this['channel'][_0xfeca('0xd9')]('RECORDING_SAVENAME',_0x444501);logger[_0xfeca('0x2f')](_0xfeca('0x174'),_0x4580c0,_0x4e4155,_0x135635[_0xfeca('0x175')],_0x135635[_0xfeca('0x66')]);return this[_0xfeca('0x10')][_0xfeca('0x12d')](_0x4580c0,_0x4e4155,_0x135635['escape_digits'],_0x135635[_0xfeca('0x66')],undefined,!![]);};AGIVertices['prototype'][_0xfeca('0x176')]=function(_0x5fcc4d){logger[_0xfeca('0x2f')](util[_0xfeca('0x2b')](_0xfeca('0x177'),_0x5fcc4d[_0xfeca('0x39')]));if(!this[_0xfeca('0x81')](_0x5fcc4d['url'])){return this[_0xfeca('0x10')][_0xfeca('0xa5')](_0xfeca('0x178'));}var _0x345c9f=this['restAPI'][_0xfeca('0x71')](this,_0x5fcc4d);logger[_0xfeca('0x2f')](util[_0xfeca('0x2b')]('Response:',util[_0xfeca('0x179')](_0x345c9f,{'showHidden':![],'depth':null})));if(!this[_0xfeca('0x81')](_0x5fcc4d[_0xfeca('0xd4')])){return this[_0xfeca('0x10')]['noop'](_0xfeca('0x17a'));}var _0x5a4a33=this[_0xfeca('0x13')]['sync'](this,_0x5fcc4d['variable_id']);if(!_0x5a4a33){return this[_0xfeca('0x10')][_0xfeca('0x2d')](_0x5fcc4d,'no\x20variable\x20found');}this[_0xfeca('0x10')][_0xfeca('0xd9')](util[_0xfeca('0x2b')](_0xfeca('0x17b'),_0x5a4a33),_0x345c9f[_0xfeca('0x76')]?_0x345c9f[_0xfeca('0x76')]:_0xfeca('0x17c'));this[_0xfeca('0x10')]['setVariable'](util['format']('%s_STATUS_MESSAGE',_0x5a4a33),_0x345c9f['statusMessage']?_0x345c9f[_0xfeca('0x17d')]:'OK');if(_0x345c9f[_0xfeca('0x6b')]){try{this[_0xfeca('0x98')](_0x345c9f['body'],_0x5a4a33);}catch(_0x4f2010){logger[_0xfeca('0x2d')](util[_0xfeca('0x2b')]('Unable\x20to\x20set\x20result\x20in\x20variable\x20%s',_0x5a4a33));}}return this[_0xfeca('0x10')]['noop'](util['format']('variable\x20%s\x20set',_0x5a4a33));};AGIVertices[_0xfeca('0x12')][_0xfeca('0x17e')]=function(_0x5dbf63){logger['info'](util[_0xfeca('0x2b')](_0xfeca('0x17f'),_0x5dbf63['label']));return this['channel'][_0xfeca('0x180')](_0x5dbf63[_0xfeca('0x181')][_0xfeca('0x59')](/\s+/g,''),_0x5dbf63['escape_digits']);};AGIVertices[_0xfeca('0x12')][_0xfeca('0x182')]=function(_0x2998d1){logger[_0xfeca('0x2f')](util[_0xfeca('0x2b')]('Enter\x20in\x20SAYNUMBER\x20(%s)\x20block',_0x2998d1['label']));return this['channel'][_0xfeca('0x183')](_0x2998d1[_0xfeca('0x65')]['replace'](/\s+/g,''),_0x2998d1[_0xfeca('0x175')]);};AGIVertices[_0xfeca('0x12')][_0xfeca('0x184')]=function(_0x4ebb64){logger[_0xfeca('0x2f')](util[_0xfeca('0x2b')](_0xfeca('0x185'),_0x4ebb64[_0xfeca('0x39')]));return this[_0xfeca('0x10')][_0xfeca('0x186')](_0x4ebb64[_0xfeca('0x5d')],_0x4ebb64['escape_digits']);};AGIVertices['prototype'][_0xfeca('0x187')]=function(_0x7ed6fb){logger[_0xfeca('0x2f')](util[_0xfeca('0x2b')]('Enter\x20in\x20SENDMAIL\x20(%s)\x20block',_0x7ed6fb[_0xfeca('0x39')]));if(!this[_0xfeca('0x81')](_0x7ed6fb[_0xfeca('0x188')])){return this[_0xfeca('0x10')][_0xfeca('0xa5')](_0xfeca('0x189'));}var _0x7565a3=this[_0xfeca('0x23')]['sync'](this,_0x7ed6fb[_0xfeca('0x188')]);if(!_0x7565a3||!_0x7565a3[_0xfeca('0x18a')]){return this[_0xfeca('0x10')][_0xfeca('0x2d')](_0x7ed6fb,_0xfeca('0x18b'));}var _0x10770f={'from':util[_0xfeca('0x2b')]('\x22%s\x22\x20<%s>',_0x7565a3['name'],_0x7565a3[_0xfeca('0x18c')]||_0x7565a3[_0xfeca('0x18a')][_0xfeca('0x18d')]),'to':_0x7ed6fb['to']||'','cc':_0x7ed6fb['cc']||'','bcc':_0x7ed6fb['bcc']||'','subject':_0x7ed6fb[_0xfeca('0x18e')],'html':_0x7ed6fb['text'],'text':_0x7ed6fb['text']};var _0x3fbaef={'tls':{'rejectUnauthorized':![]}};if(_0x7565a3[_0xfeca('0x18a')]['service']){_0x3fbaef['service']=_0x7565a3[_0xfeca('0x18a')][_0xfeca('0x18f')];}else{_0x3fbaef[_0xfeca('0x190')]=_0x7565a3[_0xfeca('0x18a')][_0xfeca('0x190')];_0x3fbaef['port']=_0x7565a3[_0xfeca('0x18a')]['port'];_0x3fbaef[_0xfeca('0x191')]=_0x7565a3[_0xfeca('0x18a')][_0xfeca('0x191')];}if(_0x7565a3[_0xfeca('0x18a')][_0xfeca('0x192')]){_0x3fbaef[_0xfeca('0x193')]={'user':_0x7565a3[_0xfeca('0x18a')][_0xfeca('0x18d')],'pass':_0x7565a3[_0xfeca('0x18a')][_0xfeca('0x194')]};}if(this[_0xfeca('0x81')](_0x7ed6fb['template_id'])){}logger[_0xfeca('0xdc')](_0xfeca('0x195'),JSON[_0xfeca('0x74')](_0x10770f));this[_0xfeca('0x37')][_0xfeca('0x71')](this,_0x7ed6fb,_0x7ed6fb[_0xfeca('0x188')]);this[_0xfeca('0x10')][_0xfeca('0xa5')](util['format'](_0xfeca('0x196'),_0x7565a3[_0xfeca('0x16')]));this[_0xfeca('0x24')][_0xfeca('0x71')](this,_0x3fbaef,_0x10770f);return this[_0xfeca('0x10')]['noop'](_0xfeca('0x197'));};AGIVertices['prototype']['sendFax']=function(_0x6082c){logger['info'](util['format'](_0xfeca('0x198'),_0x6082c['label']));return this[_0xfeca('0x10')]['noop'](_0xfeca('0x199'));};AGIVertices[_0xfeca('0x12')][_0xfeca('0x19a')]=function(_0x456694){logger[_0xfeca('0x2f')](util[_0xfeca('0x2b')](_0xfeca('0x19b'),_0x456694[_0xfeca('0x39')]));if(!this['isConfigured'](_0x456694[_0xfeca('0x19c')])){return this[_0xfeca('0x10')][_0xfeca('0xa5')](_0xfeca('0x19d'));}var _0xcafc1c=this[_0xfeca('0x34')]['sync'](this,_0x456694[_0xfeca('0x19c')]);if(!_0xcafc1c){return this[_0xfeca('0x10')][_0xfeca('0x2d')](_0x456694,'no\x20sms\x20account\x20found');}var _0x270bcd={'body':_0x456694['sms_text'],'phone':_0x456694['to']||'','SmsAccountId':_0xcafc1c['id']};logger[_0xfeca('0xdc')]('sendSMS\x20message',JSON[_0xfeca('0x74')](_0x270bcd));this[_0xfeca('0x37')][_0xfeca('0x71')](this,_0x456694,_0x456694[_0xfeca('0x19c')]);this[_0xfeca('0x10')][_0xfeca('0xa5')](util['format']('Trying\x20SendSMS\x20with\x20account\x20%s',_0xcafc1c['name']));this[_0xfeca('0x36')][_0xfeca('0x71')](this,_0x270bcd);return this['channel'][_0xfeca('0xa5')](_0xfeca('0x19e'));};AGIVertices['prototype'][_0xfeca('0x19f')]=function(_0x537451){logger[_0xfeca('0x2f')](util[_0xfeca('0x2b')](_0xfeca('0x1a0'),_0x537451[_0xfeca('0x39')]));if(!this[_0xfeca('0x81')](_0x537451[_0xfeca('0xd4')])){return this[_0xfeca('0x10')][_0xfeca('0x2d')](_0x537451,_0xfeca('0x1a1'));}var _0x300905=this[_0xfeca('0x13')][_0xfeca('0x71')](this,_0x537451[_0xfeca('0xd4')]);if(!_0x300905){return this[_0xfeca('0x10')][_0xfeca('0x2d')](_0x537451,_0xfeca('0xd6'));}return this[_0xfeca('0x10')][_0xfeca('0xd9')](_0x300905,_0x537451[_0xfeca('0x1a2')]);};AGIVertices['prototype'][_0xfeca('0x1a3')]=function(_0x26d28c){logger[_0xfeca('0x2f')](util['format']('Enter\x20in\x20START\x20(%s)\x20block',_0x26d28c[_0xfeca('0x39')]));this[_0xfeca('0x10')][_0xfeca('0xa5')](_0xfeca('0x1a4'));if(_0x26d28c[_0xfeca('0xb6')]===_0xfeca('0x1a5')){this[_0xfeca('0x10')][_0xfeca('0xa5')](_0xfeca('0x1a6'));return this[_0xfeca('0x10')]['answer']();}return this[_0xfeca('0x10')][_0xfeca('0xa5')](_0xfeca('0x1a7'));};AGIVertices[_0xfeca('0x12')][_0xfeca('0x1a8')]=function(_0x59ea89){logger[_0xfeca('0x2f')](util[_0xfeca('0x2b')](_0xfeca('0x1a9'),_0x59ea89[_0xfeca('0x39')]));if(!this[_0xfeca('0x81')](_0x59ea89[_0xfeca('0x1aa')])){return this[_0xfeca('0x10')][_0xfeca('0x2d')](_0x59ea89,_0xfeca('0x1ab'));}var _0x293019=this['getSquareProject'][_0xfeca('0x71')](this,_0x59ea89[_0xfeca('0x1aa')]);if(!this['isConfigured'](_0x293019)){return this['channel']['error'](_0x59ea89,util[_0xfeca('0x2b')](_0xfeca('0x1ac'),_0x59ea89[_0xfeca('0x1aa')]));}if(_0x293019===this[_0xfeca('0x10')]['arg_1']){return this['channel'][_0xfeca('0x2d')](_0x59ea89,'project\x20in\x20subproject\x20must\x20be\x20different\x20from\x20the\x20called\x20project');}this[_0xfeca('0x37')]['sync'](this,_0x59ea89,_0x293019);var _0x35787f=this['channel'][_0xfeca('0x57')](_0xfeca('0x1ad'),util[_0xfeca('0x2b')](_0xfeca('0x1ae'),config[_0xfeca('0x7')][_0xfeca('0x190')]||_0xfeca('0x1af'),_0x293019,this[_0xfeca('0x10')][_0xfeca('0x3b')]));if(_0x35787f[_0xfeca('0x9f')]===-0x1){return _0x35787f;}return this[_0xfeca('0x10')][_0xfeca('0xa5')](util['format']('Executed\x20command\x20%s\x20%s','AGI',_0x293019));};AGIVertices[_0xfeca('0x12')][_0xfeca('0x1b0')]=function(_0x4dff37){logger[_0xfeca('0x2f')](util[_0xfeca('0x2b')](_0xfeca('0x1b1'),_0x4dff37[_0xfeca('0x39')]));var _0x71b251=this[_0xfeca('0x56')]['sync'](this,_0x4dff37[_0xfeca('0xb4')]);this['createSquareDetailsReport'][_0xfeca('0x71')](this,_0x4dff37,_0x4dff37[_0xfeca('0xb4')]);if(this['isConfigured'](_0x4dff37[_0xfeca('0xd4')])){var _0x56c354=this[_0xfeca('0x13')]['sync'](this,_0x4dff37['variable_id']);if(_0x56c354){this[_0xfeca('0x10')][_0xfeca('0xd9')](_0x56c354,_0x71b251);return this[_0xfeca('0x10')][_0xfeca('0xa5')](util[_0xfeca('0x2b')](_0xfeca('0x1b2'),_0x4dff37['command'],_0x56c354));}}return this['channel'][_0xfeca('0xa5')](util['format'](_0xfeca('0x1b3'),_0x4dff37['command']));};AGIVertices[_0xfeca('0x12')]['google_cloud_tts']=function(_0x3dcab2){logger[_0xfeca('0x2f')](util[_0xfeca('0x2b')]('Enter\x20in\x20Google\x20Cloud\x20TTS\x20(%s)\x20block',_0x3dcab2[_0xfeca('0x39')]));_0x3dcab2[_0xfeca('0x5d')]=_0x3dcab2[_0xfeca('0x5d')][_0xfeca('0x59')](/(\r\n|\n|\r)/gm,'\x20');if(!this[_0xfeca('0x81')](_0x3dcab2[_0xfeca('0x5b')])){return this['channel'][_0xfeca('0xa5')](_0xfeca('0x1b4'));}if(!this[_0xfeca('0x81')](_0x3dcab2[_0xfeca('0x5d')])){return this[_0xfeca('0x10')]['noop']('no\x20text\x20configured');}this[_0xfeca('0x10')][_0xfeca('0xa5')](util[_0xfeca('0x2b')](_0xfeca('0x1b5'),_0x3dcab2[_0xfeca('0x5d')]));var _0x177b74=this['googleCloudTTS']['sync'](this,_0x3dcab2);if(_0x177b74){this[_0xfeca('0x10')][_0xfeca('0xa5')](util[_0xfeca('0x2b')](_0xfeca('0x1b6'),_0x177b74));var _0x18b547=this[_0xfeca('0x10')][_0xfeca('0xf9')](_0x177b74);try{fs['unlink'](_0x177b74+_0xfeca('0x11e'));}catch(_0x211e6e){logger[_0xfeca('0x2d')](_0x211e6e);}return _0x18b547;}return this['channel']['error'](_0x3dcab2,_0xfeca('0x1b7'));};AGIVertices[_0xfeca('0x12')]['tts']=function(_0x55104b){logger[_0xfeca('0x2f')](util['format'](_0xfeca('0x1b8'),_0x55104b[_0xfeca('0x39')]));_0x55104b[_0xfeca('0x5d')]=_0x55104b[_0xfeca('0x5d')]['replace'](/(\r\n|\n|\r)/gm,'\x20');if(!this[_0xfeca('0x81')](_0x55104b[_0xfeca('0x5d')])){return this[_0xfeca('0x10')][_0xfeca('0xa5')](_0xfeca('0xa6'));}this[_0xfeca('0x10')][_0xfeca('0xa5')](util[_0xfeca('0x2b')](_0xfeca('0x1b9'),_0x55104b[_0xfeca('0x5d')]));var _0x1bdd22=this[_0xfeca('0x61')][_0xfeca('0x71')](this,_0x55104b);if(_0x1bdd22){this[_0xfeca('0x10')][_0xfeca('0xa5')](util[_0xfeca('0x2b')](_0xfeca('0x1ba'),_0x1bdd22));var _0x5a43c7=this[_0xfeca('0x10')][_0xfeca('0xf9')](_0x1bdd22);try{fs[_0xfeca('0xfa')](_0x1bdd22+_0xfeca('0x11e'));}catch(_0x37503a){logger[_0xfeca('0x2d')](_0x37503a);}return _0x5a43c7;}return this[_0xfeca('0x10')][_0xfeca('0x2d')](_0x55104b,_0xfeca('0x1bb'));};AGIVertices['prototype'][_0xfeca('0x1bc')]=function(_0x4622e4){logger[_0xfeca('0x2f')](util[_0xfeca('0x2b')]('Enter\x20in\x20UNPAUSE\x20(%s)\x20block',_0x4622e4[_0xfeca('0x39')]));if(!this[_0xfeca('0x81')](_0x4622e4[_0xfeca('0x153')])){return this[_0xfeca('0x10')]['error'](_0x4622e4,_0xfeca('0x157'));}logger[_0xfeca('0x2f')](util[_0xfeca('0x2b')]('FIND\x20AGENT\x20%s\x20BY\x20%s',this[_0xfeca('0x10')]['callerid'],_0x4622e4[_0xfeca('0x153')]));var _0x512e0b=this[_0xfeca('0x52')]['sync'](this,_0x4622e4[_0xfeca('0x153')]);if(_0x512e0b){logger[_0xfeca('0x2f')](util[_0xfeca('0x2b')](_0xfeca('0x154'),this[_0xfeca('0x10')]['callerid'],_0x4622e4[_0xfeca('0x153')]));this['channel']['noop'](util['format'](_0xfeca('0x154'),this[_0xfeca('0x10')][_0xfeca('0x3c')],_0x4622e4['findBy']));return{'code':0xc8,'result':_0xfeca('0x158')};}else{logger[_0xfeca('0x2f')](util[_0xfeca('0x2b')](_0xfeca('0x155'),this[_0xfeca('0x10')]['callerid'],_0x4622e4[_0xfeca('0x153')]));this[_0xfeca('0x10')]['noop'](util[_0xfeca('0x2b')](_0xfeca('0x155'),this[_0xfeca('0x10')][_0xfeca('0x3c')],_0x4622e4[_0xfeca('0x153')]));return{'code':0xc8,'result':_0xfeca('0x159')};}};AGIVertices[_0xfeca('0x12')][_0xfeca('0x1bd')]=function(_0xa2cded){logger[_0xfeca('0x2f')](util['format'](_0xfeca('0x1be'),_0xa2cded[_0xfeca('0x39')]));var _0x43b8c8=this['channel'][_0xfeca('0x57')]('VOICEMAIL',[_0xa2cded[_0xfeca('0x1bf')],_0xa2cded[_0xfeca('0x77')]]);if(_0x43b8c8[_0xfeca('0x9f')]===-0x1){return _0x43b8c8;}return this[_0xfeca('0x10')][_0xfeca('0xa5')](util[_0xfeca('0x2b')]('Executed\x20command\x20%s\x20%s',_0xfeca('0x1c0'),_0xa2cded['mailbox']));};AGIVertices['prototype']['vswitch']=function(_0x628e56){logger['info'](util[_0xfeca('0x2b')](_0xfeca('0x1c1'),_0x628e56[_0xfeca('0x39')]));if(!this[_0xfeca('0x81')](_0x628e56[_0xfeca('0xd4')])){return this[_0xfeca('0x10')]['error'](_0x628e56,_0xfeca('0x1a1'));}var _0x13afa3=this[_0xfeca('0x13')]['sync'](this,_0x628e56[_0xfeca('0xd4')]);if(!_0x13afa3){return this[_0xfeca('0x10')][_0xfeca('0x2d')](_0x628e56,'no\x20variable\x20found');}var _0x5098b5=this[_0xfeca('0x10')]['getVariable'](_0x13afa3);return{'code':0xc8,'result':_0x5098b5['extra']?_0x5098b5[_0xfeca('0x9d')]:'-'};};String['prototype']['replaceAll']=function(_0x248b80,_0x21ca4f){return this[_0xfeca('0x9b')](_0x248b80)[_0xfeca('0x1c2')](_0x21ca4f);};module['exports']=AGIVertices;