Built motion from commit (unavailable).|2.4.9
[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 _0xf873=['hiddendigitspos','first','substr','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','aws\x20Polly\x20%s\x20file\x20created','.wav','aws\x20Polly\x20is\x20unreachable','no\x20bot\x20name\x20configured','Trying\x20Amazon\x20Lex:\x20%s','AWS_LEX_%s','message','Amazon\x20Lex\x20ready\x20for\x20fulfillment','Amazon\x20Lex\x20is\x20unreachable','googleasr','%s/recordings/%s','%s.%s','NOBEEP','recordFile','google\x20%s\x20file\x20created','GOOGLE_ASR_%s','GoogleASR\x20Result\x20%s','tildeasr','Enter\x20in\x20TILDEASR\x20(%s)\x20block','no\x20appid\x20configured','no\x20appsecret\x20configured','tilde\x20%s\x20file\x20created','tildeASR','TildeASR\x20Result\x20%s','gotoc','Enter\x20in\x20GOTO\x20(%s)\x20block','continueAt','extension','gotoif','Enter\x20in\x20GOTOIF\x20(%s)\x20block','condition','no\x20condition\x20configured','true','EVAL\x20CONDITION\x20%s\x20%s','false','gotoiftime','Enter\x20in\x20GOTOIFTIME\x20(%s)\x20block','interval_id','no\x20interval\x20configured','no\x20intervals\x20found','IFTIME(%s?true:false)','IFTIME\x20%s\x20%s','Enter\x20in\x20HANGUP\x20(%s)\x20block','ispeechasr','Enter\x20in\x20ISPEECHASR\x20(%s)\x20block','wav','beep','ispeech\x20%s\x20file\x20created','ISPEECH_ASR_%s','IspeechASR\x20Result\x20%s','Trying\x20ispeech\x20TTS\x20%s','ispeech\x20TTS\x20is\x20unreachable','login','Enter\x20in\x20LOGIN\x20(%s)\x20block','findBy','no\x20find\x20by\x20configured','FIND\x20AGENT\x20%s\x20BY\x20%s','AGENT\x20%s\x20FOUND\x20BY','success','AGENT\x20%s\x20NOT\x20FOUND\x20BY','failure','logout','Enter\x20in\x20LOGOUT\x20(%s)\x20block','math','Enter\x20in\x20MATH\x20(%s)\x20block','no\x20operation\x20configured','math\x20%s','operation','isArray','%s[%s]','variable\x20%s[key]\x20set','Enter\x20in\x20MENU\x20(%s)\x20block','getData','response','digit','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','Enter\x20in\x20QUEUE\x20(%s)\x20block','queue_id','no\x20queue\x20selected','no\x20queue\x20found','indexOf','XMCS-QUEUE','toLowerCase','QUEUE','position','record','Enter\x20in\x20RECORD\x20(%s)\x20block','recordingFormat','%s_%s','RECORDING_SAVENAME','Recording\x20%s\x20%s\x20%s\x20%s','saydigits','Enter\x20in\x20SAYDIGITS\x20(%s)\x20block','digits','saynumber','Enter\x20in\x20SAYNUMBER\x20(%s)\x20block','sayNumber','escape_digits','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','port','auth','pass','template_id','Trying\x20SendMail\x20with\x20account\x20%s','Mail\x20message\x20added\x20to\x20outgoing\x20process','sendSMS','Enter\x20in\x20SENDSMS\x20(%s)\x20block','sms_account_id','getSmsAccount','no\x20sms\x20account\x20found','sms_text','sendSMS\x20message','set','no\x20variable\x20selected','variable_value','start','Enter\x20in\x20START\x20(%s)\x20block','START\x20CALLY\x20SQUARE','yes','Answer','Skipped\x20Answer','subproject','Enter\x20in\x20SUBPROJECT\x20(%s)\x20block','project_id','agi://%s/square,\x22%s\x22,\x22%s\x22','127.0.0.1','AGI','system','Enter\x20in\x20SYSTEM\x20(%s)\x20block','shellCommand','sh\x20command:\x20%s\x20result\x20on\x20variable:\x20%s','google_cloud_tts','Enter\x20in\x20Google\x20Cloud\x20TTS\x20(%s)\x20block','no\x20apiKey\x20configured','Google\x20Cloud\x20TTS\x20%s\x20file\x20created','Google\x20Cloud\x20TTS\x20is\x20unreachable','tts','Enter\x20in\x20GOOGLETTS\x20(%s)\x20block','Trying\x20Google\x20TTS\x20%s','Google\x20TTS\x20is\x20unreachable','Enter\x20in\x20UNPAUSE\x20(%s)\x20block','voicemail','VOICEMAIL','mailbox','Enter\x20in\x20SWITCH\x20(%s)\x20block','join','util','lodash','shelljs','odbc','randomstring','moment','mustache','../../config/logger','agi','./scripts','/var/opt/motion2/server/files','menu','getsecretdigits','channel','rpc','prototype','getVariable','getVariableById','then','name','catch','getVoiceQueue','getVoiceQueueById','getSquareProject','getSquareProjectById','getSquareOdbc','dsn','getTrunk','getTrunkById','getSoundById','getSoundPath','save_name','getMailAccount','mailRpc','sendMailMessage','getIntervals','getIntervalById','map','Intervals','interval','format','getQueryOdbc','open','error','Error\x20getting\x20ODBC\x20connection\x20%s','info','ODBC\x20connection\x20successfully','query','Error\x20executing\x20query\x20%s','Query\x20executed\x20correctly\x20%s','close','getSmsAccountById','createSmsMessage','createSquareDetailsReport','uniqueid','label','agicommand','callerid','createSquareRecording','calleridname','context','priority','dnid','arg_1','file','createSquareMessage','createCmContact','isEmpty','isNil','callback_','random','lastName','phone','list_id','scheduledAt','callback','callback_priority','agentPause','agent','agentUnpause','agentLogout','internal','%s/%s@from-sip/n','LOCAL','agentLogin','exec','trim','googleCloudTTS','apiKey','text','en-US','ssmlGender','MP3','googleTTS','google_tts_language','googleDialogflow','key','ispeechTTS','speed','ispeechASR','ispeech_asr_language','isConfigured','model','awsPolly','aws_access_key_id','aws_polly_region','aws_polly_voice','aws_text_type','aws_secret_access_key','aws_lex_region','aws_bot_name','googleASR','google_asr_language','appid','appsecret','uri','clear','includes','clone','isString','replaceAllVariables','split','length','replaceAll','extra','toString','getAndSetVariable','setVariable','maxRetry','sync','retry','Enter\x20in\x20AGI\x20(%s)\x20block','command','args','answer','Enter\x20in\x20ANSWER\x20(%s)\x20block','timeout','Wait\x20%s\x20seconds\x20before\x20answer','wait','Enter\x20in\x20CALLBACK\x20(%s)\x20block','no\x20list\x20selected','delay','add','minutes','noop','custom_app','Enter\x20in\x20CUSTOM\x20APP\x20(%s)\x20block','application','result','Executed\x20command\x20%s\x20%s','lumenvoxtts','Enter\x20in\x20LUMENVOXTTS\x20(%s)\x20block','no\x20text\x20configured','options','sestektts','Enter\x20in\x20SESTEKTTS\x20(%s)\x20block','MRCPSynth','Executed\x20command\x20MRCPSynth\x20%s','Enter\x20in\x20LUMENVOXASR\x20(%s)\x20block','no\x20grammar\x20configured','grammar','MRCPRecog','LUMENVOX_ASR_CONFIDENCE','RECOG_INPUT()','LUMENVOX_ASR_TRANSCRIPT','RECOG_INSTANCE()','LUMENVOX_ASR_INSTANCE','sestekasr','Enter\x20in\x20SESTEKASR\x20(%s)\x20block','RECOG_CONFIDENCE()','SESTEK_ASR_INSTANCE','database','Enter\x20in\x20DATABASE\x20(%s)\x20block','odbc_id','no\x20odbc\x20database\x20found','replace','query:\x20%s','no\x20variable\x20found','forEach','keys','%s[%s][%s]','%s_ROWS_COUNT','variable\x20%s\x20set','dial','debug','Enter\x20in\x20DIAL\x20(%s)\x20block','sip_id','no\x20user\x20found','DIAL','SIP/%s','opts','dialogflow','Enter\x20in\x20DIALOGFLOW\x20(%s)\x20block','no\x20key\x20configured','bot','Trying\x20Dialogflow:\x20%s','hasOwnProperty','DIALOGFLOW_%s','speech','Dialogflow\x20Result\x20%s','Dialogflow\x20is\x20unreachable','sesteknda','Enter\x20in\x20SESTEKNDA\x20(%s)\x20block','ndauth_url','no\x20ndauth\x20url\x20configured','password','no\x20password\x20configured','Trying\x20SestekNDA:\x20%s','sestekNDA','SESTEK_NDA_%s','toUpperCase','out','audiofile','Sestek\x20NDA\x20%s\x20file\x20created','streamFile','unlink','SestekNDA\x20Result\x20%s','SestekNDA\x20is\x20unreachable','end','Enter\x20in\x20END\x20(%s)\x20block','ext_dial','no\x20trunk\x20selected','trunk_id','no\x20trunk\x20found','trunk_name','SIP/%s/%s','url','Executed\x20command\x20%s','finally','Enter\x20in\x20FINALLY\x20(%s)\x20block','getdigits','Enter\x20in\x20GETDIGITS\x20(%s)\x20block','file_id','no\x20file\x20audio\x20selected','getSound','no\x20file\x20audio\x20found','variable_id','no\x20variable\x20selected\x20for\x20the\x20result','maxdigit','stringify','mindigit','hiddendigitsnum','generate'];(function(_0x430459,_0x58519c){var _0x3a2439=function(_0x27a0b3){while(--_0x27a0b3){_0x430459['push'](_0x430459['shift']());}};_0x3a2439(++_0x58519c);}(_0xf873,0xb2));var _0x3f87=function(_0x55b17e,_0x3c02d5){_0x55b17e=_0x55b17e-0x0;var _0x512c64=_0xf873[_0x55b17e];return _0x512c64;};'use strict';var fs=require('fs');var path=require('path');var util=require(_0x3f87('0x0'));var _=require(_0x3f87('0x1'));var sh=require(_0x3f87('0x2'));var odbc=require(_0x3f87('0x3'))();var rs=require(_0x3f87('0x4'));var moment=require(_0x3f87('0x5'));var Mustache=require(_0x3f87('0x6'));var logger=require(_0x3f87('0x7'))(_0x3f87('0x8'));var config=require('../../config/environment');var scripts=require(_0x3f87('0x9'));var FILES_PATH=_0x3f87('0xa');var verticesWithRetry=[_0x3f87('0xb'),'getdigits',_0x3f87('0xc')];var AGIVertices=function(_0x2c7ccc,_0x3b8e92,_0x41faf2){this[_0x3f87('0xd')]=_0x2c7ccc;this[_0x3f87('0xe')]=_0x3b8e92;this['mailRpc']=_0x41faf2;};AGIVertices[_0x3f87('0xf')][_0x3f87('0x10')]=function(_0x32e236,_0x3e6ca6){this[_0x3f87('0xe')][_0x3f87('0x11')](_0x32e236)[_0x3f87('0x12')](function(_0x2b7ca0){_0x3e6ca6(null,_0x2b7ca0?_0x2b7ca0[_0x3f87('0x13')]:![]);})[_0x3f87('0x14')](function(_0x42fde8){_0x3e6ca6(_0x42fde8);});};AGIVertices[_0x3f87('0xf')][_0x3f87('0x15')]=function(_0x160861,_0x5aff02){this[_0x3f87('0xe')][_0x3f87('0x16')](_0x160861)['then'](function(_0x1cfba3){_0x5aff02(null,_0x1cfba3?_0x1cfba3[_0x3f87('0x13')]:![]);})[_0x3f87('0x14')](function(_0x28cb47){_0x5aff02(_0x28cb47);});};AGIVertices[_0x3f87('0xf')][_0x3f87('0x17')]=function(_0xd6df66,_0x2ccf4d){this['rpc'][_0x3f87('0x18')](_0xd6df66)[_0x3f87('0x12')](function(_0x2c6d4c){_0x2ccf4d(null,_0x2c6d4c?_0x2c6d4c['name']:![]);})[_0x3f87('0x14')](function(_0x56d79e){_0x2ccf4d(_0x56d79e);});};AGIVertices[_0x3f87('0xf')][_0x3f87('0x19')]=function(_0x285b2c,_0x279eba){this[_0x3f87('0xe')]['getSquareOdbcById'](_0x285b2c)[_0x3f87('0x12')](function(_0x2372d3){_0x279eba(null,_0x2372d3?_0x2372d3[_0x3f87('0x1a')]:![]);})[_0x3f87('0x14')](function(_0x57f7c5){_0x279eba(_0x57f7c5);});};AGIVertices['prototype']['getUser']=function(_0x73aba6,_0x2b1684){this[_0x3f87('0xe')]['getUserById'](_0x73aba6)[_0x3f87('0x12')](function(_0xb01673){_0x2b1684(null,_0xb01673?_0xb01673[_0x3f87('0x13')]:![]);})[_0x3f87('0x14')](function(_0x15fad7){_0x2b1684(_0x15fad7);});};AGIVertices[_0x3f87('0xf')][_0x3f87('0x1b')]=function(_0xea7dda,_0x197ff4){this[_0x3f87('0xe')][_0x3f87('0x1c')](_0xea7dda)[_0x3f87('0x12')](function(_0x5ca13a){_0x197ff4(null,_0x5ca13a?_0x5ca13a[_0x3f87('0x13')]:![]);})[_0x3f87('0x14')](function(_0x3636b8){_0x197ff4(_0x3636b8);});};AGIVertices['prototype']['getSound']=function(_0x41f9e9,_0x2e4ee0){var _0x18df70=this;this[_0x3f87('0xe')][_0x3f87('0x1d')](_0x41f9e9)[_0x3f87('0x12')](function(_0x371d91){_0x2e4ee0(null,_0x371d91?_0x18df70[_0x3f87('0x1e')](_0x371d91[_0x3f87('0x1f')]):![]);})[_0x3f87('0x14')](function(_0x43576d){_0x2e4ee0(_0x43576d);});};AGIVertices[_0x3f87('0xf')][_0x3f87('0x20')]=function(_0x241d88,_0x27f173){this[_0x3f87('0xe')]['getMailAccountById'](_0x241d88)[_0x3f87('0x12')](function(_0x29a77f){_0x27f173(null,_0x29a77f?_0x29a77f:![]);})[_0x3f87('0x14')](function(_0x2f0f05){_0x27f173(_0x2f0f05);});};AGIVertices['prototype']['sendMailMessage']=function(_0x55d4d0,_0x221800,_0xcafb7d){this[_0x3f87('0x21')][_0x3f87('0x22')](_0x55d4d0,_0x221800)[_0x3f87('0x12')](function(){_0xcafb7d(null);})['catch'](function(_0x2d2d4c){_0xcafb7d(_0x2d2d4c);});};AGIVertices['prototype'][_0x3f87('0x23')]=function(_0x3ce0a5,_0x238f75){this[_0x3f87('0xe')][_0x3f87('0x24')](_0x3ce0a5)[_0x3f87('0x12')](function(_0x41aa27){if(_0x41aa27){if(_0x41aa27['IntervalId']){_0x238f75(null,[_0x41aa27['interval']]);}else{_0x238f75(null,_[_0x3f87('0x25')](_0x41aa27[_0x3f87('0x26')],_0x3f87('0x27')));}}else{_0x238f75(null,![]);}})[_0x3f87('0x14')](function(_0x213181){_0x238f75(_0x213181);});};AGIVertices[_0x3f87('0xf')][_0x3f87('0x1e')]=function(_0x4bc0bf){return util[_0x3f87('0x28')]('%s/sounds/converted/%s',FILES_PATH,_0x4bc0bf);};AGIVertices[_0x3f87('0xf')][_0x3f87('0x29')]=function(_0x75be4b,_0x2d8399,_0x51a33d){odbc[_0x3f87('0x2a')](_0x75be4b,function(_0x54fe61){if(_0x54fe61){logger[_0x3f87('0x2b')](_0x3f87('0x2c'),_0x54fe61);_0x51a33d(_0x54fe61);}else{logger[_0x3f87('0x2d')](_0x3f87('0x2e'));odbc[_0x3f87('0x2f')](_0x2d8399,function(_0x58bdcf,_0x524df7){if(_0x58bdcf){logger['info'](_0x3f87('0x30'),_0x2d8399);_0x51a33d(_0x58bdcf);}else{logger[_0x3f87('0x2d')](_0x3f87('0x31'),_0x2d8399);odbc[_0x3f87('0x32')](function(_0x11352f){if(_0x11352f){logger[_0x3f87('0x2b')]('Error\x20closing\x20connection\x20to\x20odbc\x20%s',_0x11352f);}_0x51a33d(null,_0x524df7);});}});}});};AGIVertices[_0x3f87('0xf')]['getSmsAccount']=function(_0x46a806,_0xe66e09){this['rpc'][_0x3f87('0x33')](_0x46a806)[_0x3f87('0x12')](function(_0x25d5a6){_0xe66e09(null,_0x25d5a6?_0x25d5a6:![]);})['catch'](function(_0x246976){_0xe66e09(_0x246976);});};AGIVertices['prototype']['createSmsMessage']=function(_0x16d548,_0x27b61d){this[_0x3f87('0xe')][_0x3f87('0x34')](_0x16d548)[_0x3f87('0x12')](function(_0x4d9a67){_0x27b61d(null,_0x4d9a67);})[_0x3f87('0x14')](function(_0x14ac14){_0x27b61d(_0x14ac14);});};AGIVertices[_0x3f87('0xf')][_0x3f87('0x35')]=function(_0x50ca7f,_0x13e99f,_0x458c79){this[_0x3f87('0xe')][_0x3f87('0x35')]({'uniqueid':this[_0x3f87('0xd')][_0x3f87('0x36')],'node':_0x50ca7f[_0x3f87('0x37')],'application':_0x50ca7f[_0x3f87('0x38')],'data':_0x13e99f||null,'project_name':this['channel']['arg_1'],'callerid':this[_0x3f87('0xd')][_0x3f87('0x39')]})[_0x3f87('0x12')](function(_0x1db8db){if(_0x458c79){_0x458c79(null,_0x1db8db);}})[_0x3f87('0x14')](function(_0x1617a1){if(_0x458c79){_0x458c79(_0x1617a1);}});};AGIVertices[_0x3f87('0xf')][_0x3f87('0x3a')]=function(_0x3f3a0f,_0x949b17,_0x2f8b47,_0x4bdd49){this[_0x3f87('0xe')][_0x3f87('0x3a')]({'uniqueid':this[_0x3f87('0xd')][_0x3f87('0x36')],'callerid':this[_0x3f87('0xd')][_0x3f87('0x39')],'calleridname':this[_0x3f87('0xd')][_0x3f87('0x3b')],'context':this[_0x3f87('0xd')][_0x3f87('0x3c')],'extension':this[_0x3f87('0xd')]['extension'],'priority':this[_0x3f87('0xd')][_0x3f87('0x3d')],'accountcode':this[_0x3f87('0xd')]['accountcode'],'dnid':this[_0x3f87('0xd')][_0x3f87('0x3e')],'projectName':this[_0x3f87('0xd')][_0x3f87('0x3f')],'saveName':_0x949b17,'filename':_0x3f3a0f[_0x3f87('0x40')]||_0x949b17,'savePath':_0x2f8b47})[_0x3f87('0x12')](function(_0x40bbcb){_0x4bdd49(null,_0x40bbcb);})['catch'](function(_0x163ebf){_0x4bdd49(_0x163ebf);});};AGIVertices[_0x3f87('0xf')][_0x3f87('0x41')]=function(_0x2b4d7d,_0x45bdfc,_0x31ad47){this[_0x3f87('0xe')][_0x3f87('0x41')]({'uniqueid':this[_0x3f87('0xd')][_0x3f87('0x36')],'body':_0x2b4d7d,'direction':_0x45bdfc})[_0x3f87('0x12')](function(_0x23c228){if(_0x31ad47){_0x31ad47(null,_0x23c228);}})['catch'](function(_0x25c95f){if(_0x31ad47){_0x31ad47(_0x25c95f);}});};AGIVertices['prototype'][_0x3f87('0x42')]=function(_0x463501,_0x3479b5){this[_0x3f87('0xe')][_0x3f87('0x42')]({'firstName':_[_0x3f87('0x43')](_0x463501['name'])||_[_0x3f87('0x44')](_0x463501[_0x3f87('0x13')])?_0x3f87('0x45')+Math[_0x3f87('0x46')]():_0x463501[_0x3f87('0x13')],'lastName':_[_0x3f87('0x43')](_0x463501[_0x3f87('0x47')])||_[_0x3f87('0x44')](_0x463501[_0x3f87('0x47')])?null:_0x463501[_0x3f87('0x47')],'phone':_0x463501[_0x3f87('0x48')],'ListId':_0x463501[_0x3f87('0x49')],'scheduledAt':_0x463501[_0x3f87('0x4a')],'callbackUniqueid':this[_0x3f87('0xd')][_0x3f87('0x36')],'tags':_0x3f87('0x4b'),'description':'Callback\x20scheduled\x20at\x20'+_0x463501['scheduledAt']['toString'](),'priority':_0x463501[_0x3f87('0x4c')]})['then'](function(_0x149940){_0x3479b5(null,_0x149940);})[_0x3f87('0x14')](function(_0x1fcd71){_0x3479b5(_0x1fcd71);});};AGIVertices[_0x3f87('0xf')]['getPause']=function(_0x268b0b,_0x2265a8){this[_0x3f87('0xe')]['getPauseById'](_0x268b0b)['then'](function(_0x58a387){_0x2265a8(null,_0x58a387?_0x58a387[_0x3f87('0x13')]:![]);})[_0x3f87('0x14')](function(_0x53fd12){_0x2265a8(_0x53fd12);});};AGIVertices[_0x3f87('0xf')][_0x3f87('0x4d')]=function(_0x18e3bd,_0xec32f4,_0x4433b1){var _0x163238={'role':_0x3f87('0x4e')};_0x163238[_0x18e3bd]=this[_0x3f87('0xd')][_0x3f87('0x39')];this[_0x3f87('0xe')][_0x3f87('0x4d')](_0x163238,_0xec32f4,this[_0x3f87('0xd')]['uniqueid'])[_0x3f87('0x12')](function(_0x230139){_0x4433b1(null,_[_0x3f87('0x44')](_0x230139)?![]:!![]);})[_0x3f87('0x14')](function(_0x398679){logger[_0x3f87('0x2b')](_0x398679);_0x4433b1(null,![]);});};AGIVertices[_0x3f87('0xf')][_0x3f87('0x4f')]=function(_0x1d18a4,_0xb72c79){var _0x4d5b6f={'role':_0x3f87('0x4e')};_0x4d5b6f[_0x1d18a4]=this['channel'][_0x3f87('0x39')];this[_0x3f87('0xe')][_0x3f87('0x4f')](_0x4d5b6f)[_0x3f87('0x12')](function(_0x4b2960){_0xb72c79(null,_['isNil'](_0x4b2960)?![]:!![]);})[_0x3f87('0x14')](function(_0x431f2d){logger[_0x3f87('0x2b')](_0x431f2d);_0xb72c79(null,![]);});};AGIVertices['prototype'][_0x3f87('0x50')]=function(_0x39e436,_0x7cf495){var _0x4b3573={'role':_0x3f87('0x4e')};_0x4b3573[_0x39e436]=this[_0x3f87('0xd')][_0x3f87('0x39')];this['rpc']['agentLogout'](_0x4b3573)[_0x3f87('0x12')](function(_0x489c67){_0x7cf495(null,_[_0x3f87('0x44')](_0x489c67)?![]:!![]);})[_0x3f87('0x14')](function(_0x5a48b9){logger[_0x3f87('0x2b')](_0x5a48b9);_0x7cf495(null,![]);});};AGIVertices[_0x3f87('0xf')]['agentLogin']=function(_0x49ca73,_0x3ffafe){var _0x4631e7={'role':_0x3f87('0x4e')};_0x4631e7[_0x49ca73]=this[_0x3f87('0xd')][_0x3f87('0x39')];var _0x1d5cf8=_0x49ca73!=_0x3f87('0x51')?util[_0x3f87('0x28')](_0x3f87('0x52'),_0x3f87('0x53'),this[_0x3f87('0xd')][_0x3f87('0x39')]):undefined;this[_0x3f87('0xe')][_0x3f87('0x54')](_0x4631e7,_0x1d5cf8)[_0x3f87('0x12')](function(_0x19aaac){_0x3ffafe(null,_['isNil'](_0x19aaac)?![]:!![]);})[_0x3f87('0x14')](function(_0x46aff2){logger[_0x3f87('0x2b')](_0x46aff2);_0x3ffafe(null,![]);});};AGIVertices[_0x3f87('0xf')]['shellCommand']=function(_0x383ea9,_0x24cabe){sh[_0x3f87('0x55')](_[_0x3f87('0x56')](_0x383ea9),function(_0x461ae4,_0x37a0f4){var _0x2811c2=_0x37a0f4['replace'](/(\r\n|\n|\r)/gm,'');_0x24cabe(null,_0x2811c2);});};AGIVertices['prototype'][_0x3f87('0x57')]=function(_0x3ac4d0,_0x4aa22f){scripts['googleCloudTTS'](_0x3ac4d0[_0x3f87('0x58')],_0x3ac4d0[_0x3f87('0x59')],_0x3ac4d0['languageCode']||_0x3f87('0x5a'),_0x3ac4d0[_0x3f87('0x5b')]||'MALE',_0x3ac4d0['audioEncoding']||_0x3f87('0x5c'))[_0x3f87('0x12')](function(_0x28ebd3){_0x4aa22f(null,_0x28ebd3);})['catch'](function(_0xf298b5){_0x4aa22f(_0xf298b5);});};AGIVertices['prototype'][_0x3f87('0x5d')]=function(_0x36c3bf,_0x1cf733){scripts[_0x3f87('0x5d')](_0x36c3bf[_0x3f87('0x59')],_0x36c3bf[_0x3f87('0x5e')]||'en',0x1)['then'](function(_0x1f44dc){_0x1cf733(null,_0x1f44dc);})[_0x3f87('0x14')](function(_0x374007){_0x1cf733(_0x374007);});};AGIVertices[_0x3f87('0xf')][_0x3f87('0x5f')]=function(_0x410054,_0x392efd){scripts['googleDialogflow'](this[_0x3f87('0xd')][_0x3f87('0x36')],_0x410054[_0x3f87('0x60')],_0x410054[_0x3f87('0x59')],_0x410054['dialogflow_language']||'en')[_0x3f87('0x12')](function(_0x2ec049){_0x392efd(null,_0x2ec049);})[_0x3f87('0x14')](function(_0x203556){_0x392efd(_0x203556);});};AGIVertices[_0x3f87('0xf')]['sestekNDA']=function(_0x4e4a6d,_0x32ea0c){scripts['sestekNDA'](this[_0x3f87('0xd')],_0x4e4a6d)[_0x3f87('0x12')](function(_0x475a4d){_0x32ea0c(null,_0x475a4d);})[_0x3f87('0x14')](function(_0x385a79){_0x32ea0c(_0x385a79);});};AGIVertices[_0x3f87('0xf')][_0x3f87('0x61')]=function(_0x1130f3,_0x40393f){scripts['ispeechTTS'](_0x1130f3[_0x3f87('0x60')],_0x1130f3[_0x3f87('0x59')],_0x1130f3['ispeech_tts_language']||_0x3f87('0x5a'),_0x1130f3[_0x3f87('0x62')])['then'](function(_0x4ce16a){_0x40393f(null,_0x4ce16a);})[_0x3f87('0x14')](function(_0x2c905a){_0x40393f(_0x2c905a);});};AGIVertices[_0x3f87('0xf')][_0x3f87('0x63')]=function(_0x2f1b7a,_0x3a9e9a,_0x112634){scripts[_0x3f87('0x63')](_0x3a9e9a,_0x2f1b7a[_0x3f87('0x60')],_0x2f1b7a[_0x3f87('0x64')]||_0x3f87('0x5a'),this[_0x3f87('0x65')](_0x2f1b7a[_0x3f87('0x66')])?_0x2f1b7a['model']:undefined)[_0x3f87('0x12')](function(_0x4f3735){_0x112634(null,_0x4f3735);})[_0x3f87('0x14')](function(_0x535e76){_0x112634(_0x535e76);});};AGIVertices[_0x3f87('0xf')][_0x3f87('0x67')]=function(_0x4d94f7,_0x42a80c){scripts[_0x3f87('0x67')](_0x4d94f7[_0x3f87('0x68')],_0x4d94f7['aws_secret_access_key'],_0x4d94f7[_0x3f87('0x69')],_0x4d94f7[_0x3f87('0x6a')]||'Amy',_0x4d94f7[_0x3f87('0x59')],_0x4d94f7[_0x3f87('0x6b')]||'text')[_0x3f87('0x12')](function(_0x2a544a){_0x42a80c(null,_0x2a544a);})[_0x3f87('0x14')](function(_0x31bf87){_0x42a80c(_0x31bf87);});};AGIVertices[_0x3f87('0xf')]['awsLex']=function(_0x545796,_0x6d7624){scripts['awsLex'](this['channel'][_0x3f87('0x36')],_0x545796['aws_access_key_id'],_0x545796[_0x3f87('0x6c')],_0x545796[_0x3f87('0x6d')],_0x545796['text'],_0x545796[_0x3f87('0x6e')])['then'](function(_0x2d9a29){_0x6d7624(null,_0x2d9a29);})['catch'](function(_0x5a9791){_0x6d7624(_0x5a9791);});};AGIVertices[_0x3f87('0xf')][_0x3f87('0x6f')]=function(_0x1e8265,_0x3e6185,_0x1d217b){scripts[_0x3f87('0x6f')](_0x3e6185,_0x1e8265[_0x3f87('0x60')],_0x1e8265[_0x3f87('0x70')]||_0x3f87('0x5a'))[_0x3f87('0x12')](function(_0x1f3497){_0x1d217b(null,_0x1f3497);})[_0x3f87('0x14')](function(_0x5a6d4d){_0x1d217b(_0x5a6d4d);});};AGIVertices['prototype']['tildeASR']=function(_0x2d3349,_0x1fee2f,_0x59e616){scripts['tildeASR'](_0x1fee2f,_0x2d3349[_0x3f87('0x71')],_0x2d3349[_0x3f87('0x72')],_0x2d3349[_0x3f87('0x73')])[_0x3f87('0x12')](function(_0x476cb0){_0x59e616(null,_0x476cb0);})['catch'](function(_0x2745c2){_0x59e616(_0x2745c2);});};AGIVertices[_0x3f87('0xf')][_0x3f87('0x74')]=function(_0xa7169){var _0x374426=_[_0x3f87('0x75')](verticesWithRetry,_0xa7169[_0x3f87('0x38')])?_0xa7169:_[_0x3f87('0x76')](_0xa7169);for(var _0x1c18ae in _0x374426){if(_0x374426['hasOwnProperty'](_0x1c18ae)){if(_0x374426[_0x1c18ae]&&_[_0x3f87('0x77')](_0x374426[_0x1c18ae])){_0x374426[_0x1c18ae]=this[_0x3f87('0x78')](_0x374426[_0x1c18ae]);}}}return _0x374426;};AGIVertices[_0x3f87('0xf')]['replaceAllVariables']=function(_0x2191c4){var _0xe5ef90=_0x2191c4[_0x3f87('0x79')]('{');for(var _0x5d066a=0x1;_0x5d066a<_0xe5ef90[_0x3f87('0x7a')];_0x5d066a+=0x1){var _0x1fd5e9=_0xe5ef90[_0x5d066a][_0x3f87('0x79')]('}');if(_0x1fd5e9[_0x3f87('0x7a')]>0x1){_0x2191c4=_0x2191c4[_0x3f87('0x7b')]('{'+_0x1fd5e9[0x0]+'}',this[_0x3f87('0xd')]['getVariable'](_0x1fd5e9[0x0])[_0x3f87('0x7c')]||_0x1fd5e9[0x0]);}}if(_0xe5ef90['length']===0x1){return _0x2191c4[_0x3f87('0x7d')]();}return this['replaceAllVariables'](_0x2191c4);};AGIVertices[_0x3f87('0xf')][_0x3f87('0x7e')]=function(_0x147fa7,_0xcaa54b){var _0x4bea55=this['channel'][_0x3f87('0x10')](_0x147fa7);if(_0x4bea55['result']===-0x1){return _0x4bea55;}logger['info'](util['format']('The\x20\x22%s\x22\x20variable\x20value\x20is:\x20%s',_0xcaa54b,_0x4bea55[_0x3f87('0x7c')]));return this[_0x3f87('0xd')][_0x3f87('0x7f')](_0xcaa54b,_0x4bea55['extra']);};AGIVertices[_0x3f87('0xf')][_0x3f87('0x65')]=function(_0xda84e1){return _0xda84e1&&_0xda84e1!=='0'&&_0xda84e1!=='-1'&&_0xda84e1!=='';};AGIVertices['prototype'][_0x3f87('0x80')]=function(_0x29ccbc){this['createSquareDetailsReport'][_0x3f87('0x81')](this,_0x29ccbc,'-');_0x29ccbc[_0x3f87('0x82')]=_0x29ccbc['maxRetry'];return{'code':0xc8,'result':'-'};};AGIVertices[_0x3f87('0xf')][_0x3f87('0x8')]=function(_0x46a2f9){logger['info'](util[_0x3f87('0x28')](_0x3f87('0x83'),_0x46a2f9['label']));return this['channel'][_0x3f87('0x8')]([_0x46a2f9[_0x3f87('0x84')],_0x46a2f9[_0x3f87('0x85')]]);};AGIVertices['prototype'][_0x3f87('0x86')]=function(_0x343565){logger['info'](util[_0x3f87('0x28')](_0x3f87('0x87'),_0x343565[_0x3f87('0x37')]));if(this['isConfigured'](_0x343565[_0x3f87('0x88')])){logger[_0x3f87('0x2d')](util[_0x3f87('0x28')](_0x3f87('0x89'),_0x343565[_0x3f87('0x88')]));var _0x17eb8d=this[_0x3f87('0xd')][_0x3f87('0x8a')](_0x343565[_0x3f87('0x88')]);if(_0x17eb8d['result']===-0x1){return _0x17eb8d;}}return this[_0x3f87('0xd')][_0x3f87('0x86')]();};AGIVertices[_0x3f87('0xf')]['callback']=function(_0x36aca4){logger[_0x3f87('0x2d')](util[_0x3f87('0x28')](_0x3f87('0x8b'),_0x36aca4[_0x3f87('0x37')]));if(!this[_0x3f87('0x65')](_0x36aca4['list_id'])){return this[_0x3f87('0xd')][_0x3f87('0x2b')](_0x36aca4,_0x3f87('0x8c'));}_0x36aca4[_0x3f87('0x4a')]=moment();if(this[_0x3f87('0x65')](_0x36aca4[_0x3f87('0x8d')])){_0x36aca4[_0x3f87('0x4a')]=moment()[_0x3f87('0x8e')](_0x36aca4[_0x3f87('0x8d')],_0x3f87('0x8f'));}if(!this[_0x3f87('0x65')](_0x36aca4[_0x3f87('0x4c')])){_0x36aca4[_0x3f87('0x4c')]=0x2;}this[_0x3f87('0x42')][_0x3f87('0x81')](this,_0x36aca4);return this[_0x3f87('0xd')][_0x3f87('0x90')](util[_0x3f87('0x28')]('CALLBACK\x20added\x20phone:\x20%s\x20on\x20list:\x20%s\x20at\x20%s',_0x36aca4[_0x3f87('0x48')],_0x36aca4[_0x3f87('0x49')],_0x36aca4[_0x3f87('0x4a')]));};AGIVertices[_0x3f87('0xf')][_0x3f87('0x91')]=function(_0x561ea0){logger[_0x3f87('0x2d')](util[_0x3f87('0x28')](_0x3f87('0x92'),_0x561ea0[_0x3f87('0x37')]));var _0x146d75=this[_0x3f87('0xd')][_0x3f87('0x55')](_0x561ea0[_0x3f87('0x93')],_0x561ea0['options']);if(_0x146d75[_0x3f87('0x94')]===-0x1){return _0x146d75;}return this[_0x3f87('0xd')][_0x3f87('0x90')](util[_0x3f87('0x28')](_0x3f87('0x95'),_0x561ea0['application'],_0x561ea0['options']));};AGIVertices['prototype'][_0x3f87('0x96')]=function(_0x48f923){logger[_0x3f87('0x2d')](util[_0x3f87('0x28')](_0x3f87('0x97'),_0x48f923[_0x3f87('0x37')]));if(!this[_0x3f87('0x65')](_0x48f923[_0x3f87('0x59')])){return this[_0x3f87('0xd')][_0x3f87('0x90')](_0x3f87('0x98'));}var _0x15d85a='\x22'+_0x48f923[_0x3f87('0x59')]+'\x22';if(this[_0x3f87('0x65')](_0x48f923[_0x3f87('0x99')])){_0x15d85a+=','+_0x48f923[_0x3f87('0x99')];}var _0x40a986=this['channel'][_0x3f87('0x55')]('MRCPSynth',_0x15d85a);if(_0x40a986['result']===-0x1){return _0x40a986;}return this[_0x3f87('0xd')][_0x3f87('0x90')](util[_0x3f87('0x28')]('Executed\x20command\x20MRCPSynth\x20%s',_0x15d85a));};AGIVertices[_0x3f87('0xf')][_0x3f87('0x9a')]=function(_0x4e65b7){logger[_0x3f87('0x2d')](util[_0x3f87('0x28')](_0x3f87('0x9b'),_0x4e65b7['label']));if(!this[_0x3f87('0x65')](_0x4e65b7[_0x3f87('0x59')])){return this['channel'][_0x3f87('0x90')](_0x3f87('0x98'));}var _0x49198d='\x22'+_0x4e65b7['text']+'\x22';if(this[_0x3f87('0x65')](_0x4e65b7[_0x3f87('0x99')])){_0x49198d+=','+_0x4e65b7[_0x3f87('0x99')];}var _0x11077c=this[_0x3f87('0xd')][_0x3f87('0x55')](_0x3f87('0x9c'),_0x49198d);if(_0x11077c['result']===-0x1){return _0x11077c;}return this[_0x3f87('0xd')]['noop'](util['format'](_0x3f87('0x9d'),_0x49198d));};AGIVertices[_0x3f87('0xf')]['lumenvoxasr']=function(_0x503e63){logger['info'](util['format'](_0x3f87('0x9e'),_0x503e63['label']));if(!this[_0x3f87('0x65')](_0x503e63['grammar'])){return this['channel'][_0x3f87('0x90')](_0x3f87('0x9f'));}var _0xeada52=_0x503e63[_0x3f87('0xa0')];if(this['isConfigured'](_0x503e63[_0x3f87('0x99')])){_0xeada52+=','+_0x503e63[_0x3f87('0x99')];}var _0xe98e50=this['channel']['exec'](_0x3f87('0xa1'),_0xeada52);if(_0xe98e50[_0x3f87('0x94')]===-0x1){return _0xe98e50;}var _0x243874=this[_0x3f87('0x7e')]('RECOG_CONFIDENCE()',_0x3f87('0xa2'));if(_0x243874[_0x3f87('0x94')]===-0x1){return _0x243874;}var _0x1172d8=this[_0x3f87('0x7e')](_0x3f87('0xa3'),_0x3f87('0xa4'));if(_0x1172d8[_0x3f87('0x94')]===-0x1){return _0x1172d8;}var _0x465465=this[_0x3f87('0x7e')](_0x3f87('0xa5'),_0x3f87('0xa6'));if(_0x465465[_0x3f87('0x94')]===-0x1){return _0x465465;}return this['channel'][_0x3f87('0x90')](util['format']('Executed\x20command\x20MRCPRecog\x20%s',_0xeada52));};AGIVertices['prototype'][_0x3f87('0xa7')]=function(_0x551068){logger[_0x3f87('0x2d')](util[_0x3f87('0x28')](_0x3f87('0xa8'),_0x551068[_0x3f87('0x37')]));if(!this[_0x3f87('0x65')](_0x551068['grammar'])){return this[_0x3f87('0xd')]['noop']('no\x20grammar\x20configured');}var _0x45810c=_0x551068[_0x3f87('0xa0')];if(this['isConfigured'](_0x551068[_0x3f87('0x99')])){_0x45810c+=','+_0x551068[_0x3f87('0x99')];}var _0x6eacc=this['channel']['exec']('MRCPRecog',_0x45810c);if(_0x6eacc['result']===-0x1){return _0x6eacc;}var _0x3c6170=this[_0x3f87('0x7e')](_0x3f87('0xa9'),'SESTEK_ASR_CONFIDENCE');if(_0x3c6170['result']===-0x1){return _0x3c6170;}var _0x498880=this['getAndSetVariable'](_0x3f87('0xa3'),'SESTEK_ASR_TRANSCRIPT');if(_0x498880[_0x3f87('0x94')]===-0x1){return _0x498880;}var _0x328a00=this['getAndSetVariable'](_0x3f87('0xa5'),_0x3f87('0xaa'));if(_0x328a00[_0x3f87('0x94')]===-0x1){return _0x328a00;}return this[_0x3f87('0xd')]['noop'](util['format']('Executed\x20command\x20MRCPRecog\x20%s',_0x45810c));};AGIVertices[_0x3f87('0xf')][_0x3f87('0xab')]=function(_0x10c69c){logger[_0x3f87('0x2d')](util[_0x3f87('0x28')](_0x3f87('0xac'),_0x10c69c[_0x3f87('0x37')]));if(!this[_0x3f87('0x65')](_0x10c69c[_0x3f87('0xad')])){return this[_0x3f87('0xd')][_0x3f87('0x2b')](_0x10c69c,'no\x20database\x20selected');}var _0x3b5d2e=this[_0x3f87('0x19')]['sync'](this,_0x10c69c['odbc_id']);if(!_0x3b5d2e){return this[_0x3f87('0xd')]['error'](_0x10c69c,_0x3f87('0xae'));}if(!this[_0x3f87('0x65')](_0x10c69c[_0x3f87('0x2f')])){return this['channel'][_0x3f87('0x2b')](_0x10c69c,'no\x20query\x20configured');}var _0x36aa5f=_0x10c69c[_0x3f87('0x2f')][_0x3f87('0xaf')](/(\r\n|\n|\r)/gm,'\x20');this[_0x3f87('0xd')][_0x3f87('0x90')](util['format'](_0x3f87('0xb0'),_0x36aa5f));var _0x42c2b4=this['getQueryOdbc'][_0x3f87('0x81')](this,_0x3b5d2e,_0x36aa5f);this[_0x3f87('0x35')][_0x3f87('0x81')](this,_0x10c69c,_0x36aa5f);if(!this[_0x3f87('0x65')](_0x10c69c['variable_id'])){return this[_0x3f87('0xd')][_0x3f87('0x90')]('no\x20variable\x20selected\x20for\x20the\x20result');}var _0x135095=this[_0x3f87('0x10')]['sync'](this,_0x10c69c['variable_id']);if(!_0x135095){return this[_0x3f87('0xd')][_0x3f87('0x2b')](_0x10c69c,_0x3f87('0xb1'));}var _0x553121=this;_0x42c2b4[_0x3f87('0xb2')](function(_0x3050b6,_0x17a578){Object[_0x3f87('0xb3')](_0x3050b6)[_0x3f87('0xb2')](function(_0xa9f1b6){_0x553121[_0x3f87('0xd')]['setVariable'](util[_0x3f87('0x28')](_0x3f87('0xb4'),_0x135095,_0x17a578,_0xa9f1b6),_0x3050b6[_0xa9f1b6]);});});this[_0x3f87('0xd')][_0x3f87('0x7f')](util['format'](_0x3f87('0xb5'),_0x135095),_0x42c2b4[_0x3f87('0x7a')]);return this[_0x3f87('0xd')][_0x3f87('0x90')](util[_0x3f87('0x28')](_0x3f87('0xb6'),_0x135095));};AGIVertices[_0x3f87('0xf')][_0x3f87('0xb7')]=function(_0x1e0dba){logger[_0x3f87('0xb8')](util[_0x3f87('0x28')](_0x3f87('0xb9'),_0x1e0dba[_0x3f87('0x37')]));if(!this[_0x3f87('0x65')](_0x1e0dba['sip_id'])){return this[_0x3f87('0xd')]['error'](_0x1e0dba,'no\x20user\x20selected');}var _0x19e0c5=this['getUser'][_0x3f87('0x81')](this,_0x1e0dba[_0x3f87('0xba')]);if(!_0x19e0c5){return this[_0x3f87('0xd')][_0x3f87('0x2b')](_0x1e0dba,_0x3f87('0xbb'));}var _0x1e4562=this[_0x3f87('0xd')]['exec'](_0x3f87('0xbc'),[util[_0x3f87('0x28')](_0x3f87('0xbd'),_0x19e0c5),_0x1e0dba[_0x3f87('0x88')],_0x1e0dba[_0x3f87('0xbe')],_0x1e0dba['url']]);if(_0x1e4562[_0x3f87('0x94')]===-0x1){return _0x1e4562;}return this['channel'][_0x3f87('0x90')](util[_0x3f87('0x28')]('Executed\x20command\x20%s','DIAL'));};AGIVertices[_0x3f87('0xf')][_0x3f87('0xbf')]=function(_0x2c3804){logger[_0x3f87('0x2d')](util[_0x3f87('0x28')](_0x3f87('0xc0'),_0x2c3804[_0x3f87('0x37')]));if(!this[_0x3f87('0x65')](_0x2c3804['key'])){return this[_0x3f87('0xd')][_0x3f87('0x90')](_0x3f87('0xc1'));}if(!this[_0x3f87('0x65')](_0x2c3804['text'])){return this[_0x3f87('0xd')][_0x3f87('0x90')](_0x3f87('0x98'));}this[_0x3f87('0xd')][_0x3f87('0xc2')]=!![];this['createSquareDetailsReport'](_0x2c3804);this[_0x3f87('0x41')](_0x2c3804[_0x3f87('0x59')],'in');this[_0x3f87('0xd')][_0x3f87('0x90')](util[_0x3f87('0x28')](_0x3f87('0xc3'),_0x2c3804[_0x3f87('0x59')]));var _0x150afa=this[_0x3f87('0x5f')]['sync'](this,_0x2c3804);if(_0x150afa){for(var _0x1987f6 in _0x150afa){if(_0x150afa[_0x3f87('0xc4')](_0x1987f6)){this['channel'][_0x3f87('0x7f')](util[_0x3f87('0x28')](_0x3f87('0xc5'),_0x1987f6['toUpperCase']()),_0x150afa[_0x1987f6]);}}this[_0x3f87('0x41')](_0x150afa[_0x3f87('0xc6')],'out');return this[_0x3f87('0xd')][_0x3f87('0x90')](util[_0x3f87('0x28')](_0x3f87('0xc7'),_0x150afa['speech']));}return this[_0x3f87('0xd')][_0x3f87('0x2b')](_0x2c3804,_0x3f87('0xc8'));};AGIVertices['prototype'][_0x3f87('0xc9')]=function(_0x396caf){logger[_0x3f87('0x2d')](util[_0x3f87('0x28')](_0x3f87('0xca'),_0x396caf[_0x3f87('0x37')]));if(!this[_0x3f87('0x65')](_0x396caf[_0x3f87('0xcb')])){return this[_0x3f87('0xd')][_0x3f87('0x90')](_0x3f87('0xcc'));}if(!this[_0x3f87('0x65')](_0x396caf['username'])){return this['channel'][_0x3f87('0x90')]('no\x20username\x20configured');}if(!this['isConfigured'](_0x396caf[_0x3f87('0xcd')])){return this[_0x3f87('0xd')]['noop'](_0x3f87('0xce'));}if(!this[_0x3f87('0x65')](_0x396caf['ndassistant_url'])){return this['channel']['noop'](_0x3f87('0x98'));}this[_0x3f87('0xd')][_0x3f87('0xc2')]=!![];this[_0x3f87('0x35')](_0x396caf);this[_0x3f87('0x41')](_0x396caf[_0x3f87('0x59')],'in');this[_0x3f87('0xd')][_0x3f87('0x90')](util[_0x3f87('0x28')](_0x3f87('0xcf'),_0x396caf[_0x3f87('0x59')]));var _0x31d989=this[_0x3f87('0xd0')]['sync'](this,_0x396caf);if(_0x31d989){for(var _0x378953 in _0x31d989){if(_0x31d989[_0x3f87('0xc4')](_0x378953)){this['channel']['setVariable'](util[_0x3f87('0x28')](_0x3f87('0xd1'),_0x378953[_0x3f87('0xd2')]()),_0x31d989[_0x378953]);}}this['createSquareMessage'](_0x31d989[_0x3f87('0xc6')],_0x3f87('0xd3'));if(_0x31d989[_0x3f87('0xd4')]){this[_0x3f87('0xd')][_0x3f87('0x90')](util[_0x3f87('0x28')](_0x3f87('0xd5'),_0x31d989[_0x3f87('0xd4')]));var _0x48889d=this[_0x3f87('0xd')][_0x3f87('0xd6')](_0x31d989[_0x3f87('0xd4')]);try{fs[_0x3f87('0xd7')](_0x31d989['audiofile']+'.wav');}catch(_0x4621dd){logger[_0x3f87('0x2b')](_0x4621dd);}return _0x48889d;}else{return this['channel'][_0x3f87('0x90')](util[_0x3f87('0x28')](_0x3f87('0xd8'),_0x31d989['speech']));}}return this['channel'][_0x3f87('0x2b')](_0x396caf,_0x3f87('0xd9'));};AGIVertices['prototype'][_0x3f87('0xda')]=function(_0x5d8280){logger['info'](util[_0x3f87('0x28')](_0x3f87('0xdb'),_0x5d8280[_0x3f87('0x37')]));return this[_0x3f87('0xd')][_0x3f87('0x90')](_0x3f87('0xda'));};AGIVertices[_0x3f87('0xf')][_0x3f87('0xdc')]=function(_0x47a7e4){logger[_0x3f87('0x2d')](util[_0x3f87('0x28')]('Enter\x20in\x20EXTERNAL\x20DIAL\x20(%s)\x20block',_0x47a7e4['label']));var _0x135e67='';if(_0x47a7e4['trunk_id']){if(!this[_0x3f87('0x65')](_0x47a7e4['trunk_id'])){return this[_0x3f87('0xd')][_0x3f87('0x2b')](_0x47a7e4,_0x3f87('0xdd'));}else{var _0x577736=parseInt(_0x47a7e4[_0x3f87('0xde')],0xa);if(isNaN(_0x577736)){_0x135e67=_0x47a7e4['trunk_id'];}else{_0x135e67=this[_0x3f87('0x1b')][_0x3f87('0x81')](this,_0x47a7e4[_0x3f87('0xde')]);if(!_0x135e67){return this[_0x3f87('0xd')]['error'](_0x47a7e4,_0x3f87('0xdf'));}}}}else if(_0x47a7e4[_0x3f87('0xe0')]){_0x135e67=_0x47a7e4[_0x3f87('0xe0')];}else{return this[_0x3f87('0xd')]['error'](_0x47a7e4,_0x3f87('0xdd'));}var _0x13b227=this[_0x3f87('0xd')][_0x3f87('0x55')](_0x3f87('0xbc'),[util[_0x3f87('0x28')](_0x3f87('0xe1'),_0x135e67,_0x47a7e4[_0x3f87('0x48')]),_0x47a7e4[_0x3f87('0x88')],_0x47a7e4['opts'],_0x47a7e4[_0x3f87('0xe2')]]);if(_0x13b227[_0x3f87('0x94')]===-0x1){return _0x13b227;}return this[_0x3f87('0xd')][_0x3f87('0x90')](util[_0x3f87('0x28')](_0x3f87('0xe3'),_0x3f87('0xbc')));};AGIVertices[_0x3f87('0xf')][_0x3f87('0xe4')]=function(_0x2d3d66){logger[_0x3f87('0x2d')](util[_0x3f87('0x28')](_0x3f87('0xe5'),_0x2d3d66[_0x3f87('0x37')]));return this[_0x3f87('0xd')][_0x3f87('0x90')](_0x3f87('0xe4'));};AGIVertices['prototype'][_0x3f87('0xe6')]=function(_0x35fabb){logger[_0x3f87('0x2d')](util[_0x3f87('0x28')](_0x3f87('0xe7'),_0x35fabb['label']));if(_0x35fabb[_0x3f87('0x82')]===0x0){return this[_0x3f87('0x80')](_0x35fabb);}_0x35fabb[_0x3f87('0x82')]-=0x1;if(!this[_0x3f87('0x65')](_0x35fabb[_0x3f87('0xe8')])){return this[_0x3f87('0xd')][_0x3f87('0x2b')](_0x35fabb,_0x3f87('0xe9'));}var _0x3a8e6c=this[_0x3f87('0xea')][_0x3f87('0x81')](this,_0x35fabb[_0x3f87('0xe8')]);if(!_0x3a8e6c){return this['channel'][_0x3f87('0x2b')](_0x35fabb,_0x3f87('0xeb'));}if(!this[_0x3f87('0x65')](_0x35fabb[_0x3f87('0xec')])){return this[_0x3f87('0xd')][_0x3f87('0x2b')](_0x3f87('0xed'));}var _0x4925bc=this['channel']['getData'](_0x3a8e6c,_0x35fabb['response'],_0x35fabb[_0x3f87('0xee')]);var _0x4da0cf=_0x4925bc[_0x3f87('0x94')]?_0x4925bc['result']['toString']():'';logger['info']('test',JSON[_0x3f87('0xef')](_0x4925bc));if(_0x4925bc[_0x3f87('0x94')]===-0x1){this[_0x3f87('0x35')]['sync'](this,_0x35fabb,_0x4da0cf);return _0x4925bc;}else if(_0x4925bc[_0x3f87('0x7c')]===_0x3f87('0x88')){_0x4925bc[_0x3f87('0x94')]=_0x4da0cf[_0x3f87('0x7a')]>=parseInt(_0x35fabb['mindigit'])?'x':'i';}else{_0x4925bc[_0x3f87('0x94')]=_0x4da0cf[_0x3f87('0x7a')]>=parseInt(_0x35fabb[_0x3f87('0xf0')])&&_0x4da0cf['length']<=parseInt(_0x35fabb[_0x3f87('0xee')])?'x':'i';}var _0x58f9fc=this[_0x3f87('0x10')][_0x3f87('0x81')](this,_0x35fabb['variable_id']);if(!_0x58f9fc){return this[_0x3f87('0xd')][_0x3f87('0x2b')](_0x35fabb,'no\x20variable\x20found');}this[_0x3f87('0xd')][_0x3f87('0x7f')](_0x58f9fc,_0x4da0cf);if(this[_0x3f87('0x65')](_0x35fabb[_0x3f87('0xf1')])){var _0x48d6d2=parseInt(_0x35fabb[_0x3f87('0xf1')],0xa);var _0x41c908=rs[_0x3f87('0xf2')]({'charset':'*','length':_0x48d6d2});var _0x5573e4=_0x4da0cf[_0x3f87('0x7a')];if(_0x5573e4>0x0){if(_0x5573e4>_0x48d6d2){this[_0x3f87('0x35')]['sync'](this,_0x35fabb,_0x35fabb[_0x3f87('0xf3')]===_0x3f87('0xf4')?_0x41c908+_0x4da0cf['substr'](_0x48d6d2):_0x4da0cf[_0x3f87('0xf5')](0x0,_0x5573e4-_0x48d6d2)+_0x41c908);}else{this['createSquareDetailsReport']['sync'](this,_0x35fabb,rs[_0x3f87('0xf2')]({'charset':'*','length':_0x5573e4}));}}else{this['createSquareDetailsReport'][_0x3f87('0x81')](this,_0x35fabb,'');}}else{this[_0x3f87('0x35')]['sync'](this,_0x35fabb,_0x4da0cf);}return _0x4925bc;};AGIVertices[_0x3f87('0xf')]['getsecretdigits']=function(_0x16bb9b){logger['info'](util[_0x3f87('0x28')]('Enter\x20in\x20GETSECRETDIGITS\x20(%s)\x20block',_0x16bb9b[_0x3f87('0x37')]));return this['getdigits'](_0x16bb9b);};AGIVertices[_0x3f87('0xf')][_0x3f87('0xf6')]=function(_0x3c959a){logger[_0x3f87('0x2d')](util['format'](_0x3f87('0xf7'),_0x3c959a[_0x3f87('0x37')]));this[_0x3f87('0x35')]['sync'](this,_0x3c959a,_0x3c959a[_0x3f87('0xf8')]);return this[_0x3f87('0xd')][_0x3f87('0x90')](util[_0x3f87('0x28')](_0x3f87('0xf9'),_0x3c959a[_0x3f87('0xf8')]));};AGIVertices[_0x3f87('0xf')][_0x3f87('0xfa')]=function(_0x52d99b){logger[_0x3f87('0x2d')](util[_0x3f87('0x28')](_0x3f87('0xfb'),_0x52d99b['label']));if(!this[_0x3f87('0x65')](_0x52d99b[_0x3f87('0x68')])||!this[_0x3f87('0x65')](_0x52d99b[_0x3f87('0x6c')])){return this[_0x3f87('0xd')][_0x3f87('0x90')](_0x3f87('0xfc'));}if(!this[_0x3f87('0x65')](_0x52d99b[_0x3f87('0x59')])){return this['channel']['noop'](_0x3f87('0x98'));}this[_0x3f87('0xd')][_0x3f87('0x90')](util[_0x3f87('0x28')](_0x3f87('0xfd'),_0x52d99b[_0x3f87('0x59')]));var _0x47544f=this[_0x3f87('0x67')]['sync'](this,_0x52d99b);if(_0x47544f){this[_0x3f87('0xd')][_0x3f87('0x90')](util[_0x3f87('0x28')](_0x3f87('0xfe'),_0x47544f));var _0x557ed7=this[_0x3f87('0xd')]['streamFile'](_0x47544f);try{fs[_0x3f87('0xd7')](_0x47544f+_0x3f87('0xff'));}catch(_0x2f729b){logger[_0x3f87('0x2b')](_0x2f729b);}return _0x557ed7;}return this[_0x3f87('0xd')]['error'](_0x52d99b,_0x3f87('0x100'));};AGIVertices[_0x3f87('0xf')]['awslex']=function(_0x4eac9d){logger[_0x3f87('0x2d')](util[_0x3f87('0x28')]('Enter\x20in\x20Amazon\x20Lex\x20(%s)\x20block',_0x4eac9d[_0x3f87('0x37')]));if(!this[_0x3f87('0x65')](_0x4eac9d[_0x3f87('0x68')])||!this[_0x3f87('0x65')](_0x4eac9d[_0x3f87('0x6c')])){return this[_0x3f87('0xd')][_0x3f87('0x90')]('no\x20valid\x20credentials\x20configured');}if(!this[_0x3f87('0x65')](_0x4eac9d[_0x3f87('0x6e')])){return this[_0x3f87('0xd')][_0x3f87('0x90')](_0x3f87('0x101'));}if(!this[_0x3f87('0x65')](_0x4eac9d['text'])){return this[_0x3f87('0xd')][_0x3f87('0x90')](_0x3f87('0x98'));}this[_0x3f87('0xd')][_0x3f87('0xc2')]=!![];this[_0x3f87('0x35')](_0x4eac9d);this[_0x3f87('0x41')](_0x4eac9d[_0x3f87('0x59')],'in');this[_0x3f87('0xd')][_0x3f87('0x90')](util['format'](_0x3f87('0x102'),_0x4eac9d[_0x3f87('0x59')]));var _0x4437b3=this['awsLex'][_0x3f87('0x81')](this,_0x4eac9d);if(_0x4437b3){for(var _0x11d7f2 in _0x4437b3){if(_0x4437b3['hasOwnProperty'](_0x11d7f2)&&_[_0x3f87('0x77')](_0x4437b3[_0x11d7f2])){this['channel'][_0x3f87('0x7f')](util[_0x3f87('0x28')](_0x3f87('0x103'),_0x11d7f2[_0x3f87('0xd2')]()),_0x4437b3[_0x11d7f2]);}}if(_[_0x3f87('0x44')](_0x4437b3[_0x3f87('0x104')])){return this[_0x3f87('0xd')]['noop'](_0x3f87('0x105'));}else{this[_0x3f87('0x41')](_0x4437b3[_0x3f87('0x104')],'out');return this[_0x3f87('0xd')][_0x3f87('0x90')](util[_0x3f87('0x28')]('Amazon\x20Lex\x20Result\x20%s',_0x4437b3['message']));}}return this['channel'][_0x3f87('0x2b')](_0x4eac9d,_0x3f87('0x106'));};AGIVertices[_0x3f87('0xf')][_0x3f87('0x107')]=function(_0x224d2c){logger[_0x3f87('0x2d')](util[_0x3f87('0x28')]('Enter\x20in\x20GOOGLEASR\x20(%s)\x20block\x20%s',_0x224d2c[_0x3f87('0x37')],_0x224d2c[_0x3f87('0x88')]));if(!this['isConfigured'](_0x224d2c['key'])){return this[_0x3f87('0xd')][_0x3f87('0x90')]('no\x20key\x20configured');}var _0x213a73='wav';var _0x1e0809=util['format'](_0x3f87('0x108'),FILES_PATH,rs[_0x3f87('0xf2')](0x4));var _0x11f1fc=util['format'](_0x3f87('0x109'),_0x1e0809,_0x213a73);var _0x4966a4=!![];if(_0x224d2c['beep']===_0x3f87('0x10a')){_0x4966a4=![];}var _0x5ed119=this['channel'][_0x3f87('0x10b')](_0x1e0809,_0x213a73,_0x224d2c['intKey'],_0x224d2c[_0x3f87('0x88')],undefined,_0x4966a4);if(_0x5ed119[_0x3f87('0x94')]!==-0x1){this[_0x3f87('0xd')]['noop'](util[_0x3f87('0x28')](_0x3f87('0x10c'),_0x11f1fc));var _0x31a60c=this[_0x3f87('0x6f')][_0x3f87('0x81')](this,_0x224d2c,_0x11f1fc);if(_0x31a60c){for(var _0x4eea6e in _0x31a60c){if(_0x31a60c[_0x3f87('0xc4')](_0x4eea6e)){this['channel'][_0x3f87('0x7f')](util[_0x3f87('0x28')](_0x3f87('0x10d'),_0x4eea6e[_0x3f87('0xd2')]()),_0x31a60c[_0x4eea6e]);}}return this['channel'][_0x3f87('0x90')](util['format'](_0x3f87('0x10e'),JSON['stringify'](_0x31a60c)));}}return _0x5ed119;};AGIVertices[_0x3f87('0xf')][_0x3f87('0x10f')]=function(_0x35579e){logger[_0x3f87('0x2d')](util[_0x3f87('0x28')](_0x3f87('0x110'),_0x35579e[_0x3f87('0x37')]));if(!this[_0x3f87('0x65')](_0x35579e['appid'])){return this[_0x3f87('0xd')]['noop'](_0x3f87('0x111'));}if(!this['isConfigured'](_0x35579e[_0x3f87('0x72')])){return this[_0x3f87('0xd')][_0x3f87('0x90')](_0x3f87('0x112'));}var _0x47a5db='wav';var _0x2886d3=util[_0x3f87('0x28')]('%s/recordings/%s',FILES_PATH,rs[_0x3f87('0xf2')](0x4));var _0x4725ba=util[_0x3f87('0x28')](_0x3f87('0x109'),_0x2886d3,_0x47a5db);var _0x585089=!![];if(_0x35579e['beep']===_0x3f87('0x10a')){_0x585089=![];}var _0x20df75=this[_0x3f87('0xd')][_0x3f87('0x10b')](_0x2886d3,_0x47a5db,_0x35579e['intKey'],_0x35579e[_0x3f87('0x88')],undefined,_0x585089);if(_0x20df75['result']!==-0x1){this[_0x3f87('0xd')][_0x3f87('0x90')](util['format'](_0x3f87('0x113'),_0x4725ba));var _0x57beff=this[_0x3f87('0x114')][_0x3f87('0x81')](this,_0x35579e,_0x4725ba);if(_0x57beff){for(var _0x18ce2f in _0x57beff){if(_0x57beff[_0x3f87('0xc4')](_0x18ce2f)){this[_0x3f87('0xd')][_0x3f87('0x7f')](util[_0x3f87('0x28')]('TILDE_ASR_%s',_0x18ce2f['toUpperCase']()),_0x57beff[_0x18ce2f]);}}return this[_0x3f87('0xd')][_0x3f87('0x90')](util[_0x3f87('0x28')](_0x3f87('0x115'),JSON[_0x3f87('0xef')](_0x57beff)));}}return _0x20df75;};AGIVertices['prototype'][_0x3f87('0x116')]=function(_0x526ba4){logger[_0x3f87('0x2d')](util['format'](_0x3f87('0x117'),_0x526ba4[_0x3f87('0x37')]));return this[_0x3f87('0xd')][_0x3f87('0x118')](_0x526ba4['context'],_0x526ba4[_0x3f87('0x119')],_0x526ba4[_0x3f87('0x3d')]);};AGIVertices[_0x3f87('0xf')][_0x3f87('0x11a')]=function(_0x363637){logger[_0x3f87('0x2d')](util[_0x3f87('0x28')](_0x3f87('0x11b'),_0x363637[_0x3f87('0x37')]));if(!this[_0x3f87('0x65')](_0x363637[_0x3f87('0x11c')])){return this['channel'][_0x3f87('0x2b')](_0x363637,_0x3f87('0x11d'));}try{var _0x35e6ee=eval(_0x363637[_0x3f87('0x11c')])?_0x3f87('0x11e'):'false';this[_0x3f87('0xd')][_0x3f87('0x90')](util['format'](_0x3f87('0x11f'),_0x363637[_0x3f87('0x11c')],_0x35e6ee));return{'code':0xc8,'result':_0x35e6ee};}catch(_0x5a78f0){return{'code':0xc8,'result':_0x3f87('0x120')};}};AGIVertices[_0x3f87('0xf')][_0x3f87('0x121')]=function(_0x30e6ff){logger[_0x3f87('0x2d')](util[_0x3f87('0x28')](_0x3f87('0x122'),_0x30e6ff[_0x3f87('0x37')]));if(!this['isConfigured'](_0x30e6ff[_0x3f87('0x123')])){return this[_0x3f87('0xd')][_0x3f87('0x2b')](_0x30e6ff,_0x3f87('0x124'));}var _0x4d89a4=this['getIntervals'][_0x3f87('0x81')](this,_0x30e6ff[_0x3f87('0x123')]);if(!_0x4d89a4){return this['channel']['error'](_0x30e6ff,_0x3f87('0x125'));}for(var _0x109fab=0x0;_0x109fab<_0x4d89a4[_0x3f87('0x7a')];_0x109fab+=0x1){var _0x423e11=this['channel'][_0x3f87('0x10')](util[_0x3f87('0x28')](_0x3f87('0x126'),_0x4d89a4[_0x109fab]));if(_0x423e11[_0x3f87('0x94')]===-0x1){return _0x423e11;}logger[_0x3f87('0x2d')](util[_0x3f87('0x28')]('IFTIME\x20%s\x20%s',_0x4d89a4[_0x109fab],_0x423e11[_0x3f87('0x7c')]));if(_0x423e11['extra']===_0x3f87('0x11e')){logger[_0x3f87('0x2d')](util[_0x3f87('0x28')](_0x3f87('0x127'),_0x4d89a4[_0x109fab],_0x3f87('0x11e')));this[_0x3f87('0xd')]['noop'](util[_0x3f87('0x28')]('IFTIME\x20%s\x20%s',_0x4d89a4[_0x109fab],_0x3f87('0x11e')));return{'code':0xc8,'result':_0x3f87('0x11e')};}else{logger[_0x3f87('0x2d')](util[_0x3f87('0x28')]('IFTIME\x20%s\x20%s',_0x4d89a4[_0x109fab],_0x3f87('0x120')));this[_0x3f87('0xd')][_0x3f87('0x90')](util[_0x3f87('0x28')](_0x3f87('0x127'),_0x4d89a4[_0x109fab],_0x3f87('0x120')));}}return{'code':0xc8,'result':_0x3f87('0x120')};};AGIVertices[_0x3f87('0xf')]['hangup']=function(_0x8a2cba){logger[_0x3f87('0x2d')](util[_0x3f87('0x28')](_0x3f87('0x128'),_0x8a2cba[_0x3f87('0x37')]));return this[_0x3f87('0xd')]['hangup']();};AGIVertices[_0x3f87('0xf')][_0x3f87('0x129')]=function(_0x3e0eb3){logger['info'](util['format'](_0x3f87('0x12a'),_0x3e0eb3[_0x3f87('0x37')]));if(!this[_0x3f87('0x65')](_0x3e0eb3[_0x3f87('0x60')])){return this[_0x3f87('0xd')][_0x3f87('0x90')]('no\x20key\x20configured');}var _0x302372=_0x3f87('0x12b');var _0x34674b=util[_0x3f87('0x28')](_0x3f87('0x108'),FILES_PATH,rs['generate'](0x4));var _0x8019f0=util[_0x3f87('0x28')](_0x3f87('0x109'),_0x34674b,_0x302372);var _0x5896a9=!![];if(_0x3e0eb3[_0x3f87('0x12c')]===_0x3f87('0x10a')){_0x5896a9=![];}var _0x4998ed=this['channel'][_0x3f87('0x10b')](_0x34674b,_0x302372,_0x3e0eb3['intKey'],_0x3e0eb3[_0x3f87('0x88')],undefined,_0x5896a9);if(_0x4998ed[_0x3f87('0x94')]!==-0x1){this[_0x3f87('0xd')][_0x3f87('0x90')](util[_0x3f87('0x28')](_0x3f87('0x12d'),_0x8019f0));var _0x1555d9=this[_0x3f87('0x63')]['sync'](this,_0x3e0eb3,_0x8019f0);if(_0x1555d9){for(var _0x365862 in _0x1555d9){if(_0x1555d9[_0x3f87('0xc4')](_0x365862)){this[_0x3f87('0xd')][_0x3f87('0x7f')](util['format'](_0x3f87('0x12e'),_0x365862[_0x3f87('0xd2')]()),_0x1555d9[_0x365862]);}}return this['channel'][_0x3f87('0x90')](util['format'](_0x3f87('0x12f'),JSON[_0x3f87('0xef')](_0x1555d9)));}}return _0x4998ed;};AGIVertices['prototype']['ispeechtts']=function(_0x509e48){logger['info'](util['format']('Enter\x20in\x20ISPEECHTTS\x20(%s)\x20block',_0x509e48[_0x3f87('0x37')]));if(!this[_0x3f87('0x65')](_0x509e48[_0x3f87('0x60')])){return this[_0x3f87('0xd')][_0x3f87('0x90')](_0x3f87('0xc1'));}if(!this[_0x3f87('0x65')](_0x509e48['text'])){return this[_0x3f87('0xd')][_0x3f87('0x90')](_0x3f87('0x98'));}this[_0x3f87('0xd')][_0x3f87('0x90')](util[_0x3f87('0x28')](_0x3f87('0x130'),_0x509e48[_0x3f87('0x59')]));var _0x469567=this[_0x3f87('0x61')]['sync'](this,_0x509e48);if(_0x469567){this[_0x3f87('0xd')][_0x3f87('0x90')](util[_0x3f87('0x28')](_0x3f87('0x12d'),_0x469567));var _0x19866d=this['channel']['streamFile'](_0x469567,_0x509e48['intKey']);try{fs[_0x3f87('0xd7')](_0x469567+_0x3f87('0xff'));}catch(_0x399e0d){logger['error'](_0x399e0d);}return _0x19866d;}return this[_0x3f87('0xd')][_0x3f87('0x2b')](_0x509e48,_0x3f87('0x131'));};AGIVertices[_0x3f87('0xf')][_0x3f87('0x132')]=function(_0x9dccfc){logger[_0x3f87('0x2d')](util['format'](_0x3f87('0x133'),_0x9dccfc[_0x3f87('0x37')]));if(!this[_0x3f87('0x65')](_0x9dccfc[_0x3f87('0x134')])){return this['channel'][_0x3f87('0x2b')](_0x9dccfc,_0x3f87('0x135'));}logger[_0x3f87('0x2d')](util['format'](_0x3f87('0x136'),this['channel'][_0x3f87('0x39')],_0x9dccfc[_0x3f87('0x134')]));var _0x55b8a9=this[_0x3f87('0x54')][_0x3f87('0x81')](this,_0x9dccfc[_0x3f87('0x134')]);if(_0x55b8a9){logger['info'](util[_0x3f87('0x28')](_0x3f87('0x137'),this[_0x3f87('0xd')][_0x3f87('0x39')],_0x9dccfc[_0x3f87('0x134')]));this[_0x3f87('0xd')][_0x3f87('0x90')](util[_0x3f87('0x28')](_0x3f87('0x137'),this[_0x3f87('0xd')]['callerid'],_0x9dccfc[_0x3f87('0x134')]));return{'code':0xc8,'result':_0x3f87('0x138')};}else{logger['info'](util[_0x3f87('0x28')](_0x3f87('0x139'),this[_0x3f87('0xd')][_0x3f87('0x39')],_0x9dccfc[_0x3f87('0x134')]));this[_0x3f87('0xd')]['noop'](util[_0x3f87('0x28')]('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this[_0x3f87('0xd')]['callerid'],_0x9dccfc[_0x3f87('0x134')]));return{'code':0xc8,'result':_0x3f87('0x13a')};}};AGIVertices['prototype'][_0x3f87('0x13b')]=function(_0x4e75ef){logger[_0x3f87('0x2d')](util[_0x3f87('0x28')](_0x3f87('0x13c'),_0x4e75ef['label']));if(!this[_0x3f87('0x65')](_0x4e75ef['findBy'])){return this[_0x3f87('0xd')][_0x3f87('0x2b')](_0x4e75ef,_0x3f87('0x135'));}logger[_0x3f87('0x2d')](util[_0x3f87('0x28')](_0x3f87('0x136'),this[_0x3f87('0xd')][_0x3f87('0x39')],_0x4e75ef['findBy']));var _0x2be518=this['agentLogout'][_0x3f87('0x81')](this,_0x4e75ef[_0x3f87('0x134')]);if(_0x2be518){logger[_0x3f87('0x2d')](util[_0x3f87('0x28')]('AGENT\x20%s\x20FOUND\x20BY',this[_0x3f87('0xd')][_0x3f87('0x39')],_0x4e75ef[_0x3f87('0x134')]));this[_0x3f87('0xd')][_0x3f87('0x90')](util[_0x3f87('0x28')](_0x3f87('0x137'),this[_0x3f87('0xd')][_0x3f87('0x39')],_0x4e75ef['findBy']));return{'code':0xc8,'result':_0x3f87('0x138')};}else{logger['info'](util[_0x3f87('0x28')](_0x3f87('0x139'),this[_0x3f87('0xd')][_0x3f87('0x39')],_0x4e75ef[_0x3f87('0x134')]));this[_0x3f87('0xd')][_0x3f87('0x90')](util[_0x3f87('0x28')](_0x3f87('0x139'),this[_0x3f87('0xd')]['callerid'],_0x4e75ef[_0x3f87('0x134')]));return{'code':0xc8,'result':_0x3f87('0x13a')};}};AGIVertices[_0x3f87('0xf')][_0x3f87('0x13d')]=function(_0x1d9f5c){logger[_0x3f87('0x2d')](util[_0x3f87('0x28')](_0x3f87('0x13e'),_0x1d9f5c[_0x3f87('0x37')]));if(!this[_0x3f87('0x65')](_0x1d9f5c['operation'])){return this[_0x3f87('0xd')][_0x3f87('0x2b')](_0x1d9f5c,_0x3f87('0x13f'));}this[_0x3f87('0xd')]['noop'](util[_0x3f87('0x28')](_0x3f87('0x140'),_0x1d9f5c[_0x3f87('0x141')]));var _0xbaf74=eval(_0x1d9f5c[_0x3f87('0x141')]);if(!this[_0x3f87('0x65')](_0x1d9f5c[_0x3f87('0xec')])){return this[_0x3f87('0xd')][_0x3f87('0x90')](_0x3f87('0xed'));}var _0x58765d=this[_0x3f87('0x10')][_0x3f87('0x81')](this,_0x1d9f5c[_0x3f87('0xec')]);if(!_0x58765d){return this[_0x3f87('0xd')]['error'](_0x1d9f5c,'no\x20variable\x20found');}if(_[_0x3f87('0x142')](_0xbaf74)){var _0x340aef=this;_0xbaf74[_0x3f87('0xb2')](function(_0x5c1284,_0x22e6b0){_0x340aef['channel'][_0x3f87('0x7f')](util['format'](_0x3f87('0x143'),_0x58765d,_0x22e6b0),_0x5c1284);});return this[_0x3f87('0xd')][_0x3f87('0x90')](util['format'](_0x3f87('0x144'),_0x58765d));}else{return this[_0x3f87('0xd')]['setVariable'](_0x58765d,_0xbaf74);}};AGIVertices[_0x3f87('0xf')][_0x3f87('0xb')]=function(_0x3d51e0){logger[_0x3f87('0x2d')](util[_0x3f87('0x28')](_0x3f87('0x145'),_0x3d51e0[_0x3f87('0x37')]));if(_0x3d51e0[_0x3f87('0x82')]===0x0){return this[_0x3f87('0x80')](_0x3d51e0);}_0x3d51e0[_0x3f87('0x82')]-=0x1;if(!this[_0x3f87('0x65')](_0x3d51e0[_0x3f87('0xe8')])){return this[_0x3f87('0xd')]['error'](_0x3d51e0,_0x3f87('0xe9'));}var _0x3da587=this[_0x3f87('0xea')][_0x3f87('0x81')](this,_0x3d51e0[_0x3f87('0xe8')]);if(!_0x3da587){return this[_0x3f87('0xd')]['error'](_0x3d51e0,'no\x20file\x20audio\x20found');}var _0x540f0a=this[_0x3f87('0xd')][_0x3f87('0x146')](_0x3da587,_0x3d51e0[_0x3f87('0x147')],_0x3d51e0[_0x3f87('0x148')]);var _0x2c1405=_0x540f0a[_0x3f87('0x94')];if(_0x540f0a['result']===-0x1){this['createSquareDetailsReport'][_0x3f87('0x81')](this,_0x3d51e0,'-1');return _0x540f0a;}else if(_0x540f0a['extra']===_0x3f87('0x88')){_0x540f0a[_0x3f87('0x94')]=_0x540f0a[_0x3f87('0x94')][_0x3f87('0x7a')]>0x0?_0x540f0a[_0x3f87('0x94')]:'t';}else if(_['isEmpty'](_0x540f0a[_0x3f87('0x94')])){_0x540f0a[_0x3f87('0x94')]='#';_0x2c1405='#';}if(!this[_0x3f87('0x65')](_0x3d51e0[_0x3f87('0xec')])){this[_0x3f87('0xd')][_0x3f87('0x90')](_0x3f87('0xed'));}else{var _0x34865a=this['getVariable'][_0x3f87('0x81')](this,_0x3d51e0[_0x3f87('0xec')]);if(!_0x34865a){return this[_0x3f87('0xd')]['error'](_0x3d51e0,_0x3f87('0xb1'));}this[_0x3f87('0xd')][_0x3f87('0x7f')](_0x34865a,_0x2c1405);}this['createSquareDetailsReport'][_0x3f87('0x81')](this,_0x3d51e0,_0x2c1405);return _0x540f0a;};AGIVertices[_0x3f87('0xf')]['noop']=function(_0x43a71c){logger['info'](util[_0x3f87('0x28')](_0x3f87('0x149'),_0x43a71c[_0x3f87('0x37')]));return this[_0x3f87('0xd')]['noop'](_0x43a71c[_0x3f87('0x14a')]||_0x43a71c[_0x3f87('0x37')]);};AGIVertices[_0x3f87('0xf')][_0x3f87('0x14b')]=function(_0x1ed1b0){logger['info'](util[_0x3f87('0x28')](_0x3f87('0x14c'),_0x1ed1b0[_0x3f87('0x37')]));if(!this['isConfigured'](_0x1ed1b0[_0x3f87('0x134')])){return this['channel'][_0x3f87('0x2b')](_0x1ed1b0,_0x3f87('0x135'));}logger['info'](util[_0x3f87('0x28')](_0x3f87('0x136'),this['channel']['callerid'],_0x1ed1b0['findBy']));var _0x1a6f2b=this[_0x3f87('0x14d')][_0x3f87('0x81')](this,_0x1ed1b0[_0x3f87('0x14e')]);var _0x1531ba=this[_0x3f87('0x4d')][_0x3f87('0x81')](this,_0x1ed1b0[_0x3f87('0x134')],_0x1a6f2b);if(_0x1531ba){logger['info'](util[_0x3f87('0x28')](_0x3f87('0x137'),this['channel']['callerid'],_0x1ed1b0[_0x3f87('0x134')]));this['channel']['noop'](util[_0x3f87('0x28')](_0x3f87('0x137'),this['channel'][_0x3f87('0x39')],_0x1ed1b0[_0x3f87('0x134')]));return{'code':0xc8,'result':'success'};}else{logger[_0x3f87('0x2d')](util[_0x3f87('0x28')](_0x3f87('0x139'),this[_0x3f87('0xd')][_0x3f87('0x39')],_0x1ed1b0[_0x3f87('0x134')]));this[_0x3f87('0xd')][_0x3f87('0x90')](util['format'](_0x3f87('0x137'),this[_0x3f87('0xd')][_0x3f87('0x39')],_0x1ed1b0[_0x3f87('0x134')]));return{'code':0xc8,'result':'failure'};}};AGIVertices['prototype'][_0x3f87('0x14f')]=function(_0x5a88ff){logger[_0x3f87('0x2d')](util['format'](_0x3f87('0x150'),_0x5a88ff[_0x3f87('0x37')]));if(!this[_0x3f87('0x65')](_0x5a88ff[_0x3f87('0xe8')])){return this[_0x3f87('0xd')][_0x3f87('0x2b')](_0x5a88ff,_0x3f87('0xe9'));}var _0x5f2d9f=this['getSound'][_0x3f87('0x81')](this,_0x5a88ff[_0x3f87('0xe8')]);if(!_0x5f2d9f){return this[_0x3f87('0xd')][_0x3f87('0x2b')](_0x5a88ff,_0x3f87('0xeb'));}var _0x27740d=this[_0x3f87('0xd')][_0x3f87('0x55')](_0x3f87('0x151'),[_0x5f2d9f,_0x5a88ff[_0x3f87('0xbe')]]);if(_0x27740d[_0x3f87('0x94')]===-0x1){return _0x27740d;}return this[_0x3f87('0xd')][_0x3f87('0x90')](util[_0x3f87('0x28')](_0x3f87('0x95'),_0x3f87('0x151'),_0x5f2d9f));};AGIVertices[_0x3f87('0xf')][_0x3f87('0x152')]=function(_0x86c1df){logger['info'](util['format'](_0x3f87('0x153'),_0x86c1df[_0x3f87('0x37')]));if(!this[_0x3f87('0x65')](_0x86c1df[_0x3f87('0x154')])){return this[_0x3f87('0xd')][_0x3f87('0x2b')](_0x86c1df,_0x3f87('0x155'));}var _0x53d3c8='';var _0x4434ac=parseInt(_0x86c1df[_0x3f87('0x154')],0xa);if(isNaN(_0x4434ac)){_0x53d3c8=_0x86c1df['queue_id'];}else{_0x53d3c8=this[_0x3f87('0x15')][_0x3f87('0x81')](this,_0x86c1df[_0x3f87('0x154')]);if(!_0x53d3c8){return this[_0x3f87('0xd')][_0x3f87('0x2b')](_0x86c1df,_0x3f87('0x156'));}}var _0x4c594f='';if(this[_0x3f87('0x65')](_0x86c1df[_0x3f87('0xe8')])){var _0x1503ca=this[_0x3f87('0xea')][_0x3f87('0x81')](this,_0x86c1df['file_id']);if(_0x1503ca){_0x4c594f=_0x1503ca;}}this[_0x3f87('0x35')][_0x3f87('0x81')](this,_0x86c1df,_0x53d3c8);if(_0x86c1df[_0x3f87('0xbe')][_0x3f87('0x157')]('x')<0x0){_0x86c1df[_0x3f87('0xbe')]+='x';}if(_0x86c1df[_0x3f87('0xbe')][_0x3f87('0x157')]('X')<0x0){_0x86c1df[_0x3f87('0xbe')]+='X';}this[_0x3f87('0xd')][_0x3f87('0x7f')](_0x3f87('0x158'),_0x53d3c8?_0x53d3c8[_0x3f87('0x159')]():'');var _0x3691c7=this[_0x3f87('0xd')][_0x3f87('0x55')](_0x3f87('0x15a'),[_0x53d3c8,_0x86c1df[_0x3f87('0xbe')],_0x86c1df['url'],_0x4c594f,_0x86c1df[_0x3f87('0x88')],_0x86c1df[_0x3f87('0x8')],_0x86c1df['macro'],_0x86c1df['gosub'],'',_0x86c1df[_0x3f87('0x15b')]]);if(_0x3691c7['result']===-0x1){return _0x3691c7;}return this['channel']['noop'](util[_0x3f87('0x28')](_0x3f87('0x95'),'QUEUE',_0x53d3c8));};AGIVertices[_0x3f87('0xf')][_0x3f87('0x15c')]=function(_0x56f202){logger[_0x3f87('0x2d')](util[_0x3f87('0x28')](_0x3f87('0x15d'),_0x56f202['label']));var _0x255118=_0x56f202[_0x3f87('0x15e')]||_0x3f87('0x12b');var _0x14b96a=util[_0x3f87('0x28')](_0x3f87('0x15f'),this['channel'][_0x3f87('0x36')],rs[_0x3f87('0xf2')](0x5));var _0x1e5dbb=util[_0x3f87('0x28')]('%s/recordings/%s.%s',FILES_PATH,_0x14b96a,_0x255118);var _0x1e8f1b=util[_0x3f87('0x28')](_0x3f87('0x108'),FILES_PATH,_0x14b96a);this[_0x3f87('0x3a')][_0x3f87('0x81')](this,_0x56f202,_0x14b96a,_0x1e5dbb);this['channel'][_0x3f87('0x7f')](_0x3f87('0x160'),_0x14b96a);logger[_0x3f87('0x2d')](_0x3f87('0x161'),_0x1e8f1b,_0x255118,_0x56f202['escape_digits'],_0x56f202[_0x3f87('0x88')]);return this[_0x3f87('0xd')][_0x3f87('0x10b')](_0x1e8f1b,_0x255118,_0x56f202['escape_digits'],_0x56f202['timeout'],undefined,!![]);};AGIVertices[_0x3f87('0xf')][_0x3f87('0x162')]=function(_0x5a12ca){logger['info'](util[_0x3f87('0x28')](_0x3f87('0x163'),_0x5a12ca[_0x3f87('0x37')]));return this[_0x3f87('0xd')]['sayDigits'](_0x5a12ca[_0x3f87('0x164')][_0x3f87('0xaf')](/\s+/g,''),_0x5a12ca['escape_digits']);};AGIVertices['prototype'][_0x3f87('0x165')]=function(_0x4ea600){logger['info'](util[_0x3f87('0x28')](_0x3f87('0x166'),_0x4ea600['label']));return this[_0x3f87('0xd')][_0x3f87('0x167')](_0x4ea600['number']['replace'](/\s+/g,''),_0x4ea600[_0x3f87('0x168')]);};AGIVertices[_0x3f87('0xf')][_0x3f87('0x169')]=function(_0x8485b7){logger[_0x3f87('0x2d')](util[_0x3f87('0x28')](_0x3f87('0x16a'),_0x8485b7['label']));return this[_0x3f87('0xd')][_0x3f87('0x16b')](_0x8485b7[_0x3f87('0x59')],_0x8485b7[_0x3f87('0x168')]);};AGIVertices['prototype'][_0x3f87('0x16c')]=function(_0x311fd5){logger['info'](util[_0x3f87('0x28')]('Enter\x20in\x20SENDMAIL\x20(%s)\x20block',_0x311fd5[_0x3f87('0x37')]));if(!this[_0x3f87('0x65')](_0x311fd5[_0x3f87('0x16d')])){return this[_0x3f87('0xd')][_0x3f87('0x90')](_0x3f87('0x16e'));}var _0x35bd78=this[_0x3f87('0x20')][_0x3f87('0x81')](this,_0x311fd5['account_id']);if(!_0x35bd78||!_0x35bd78[_0x3f87('0x16f')]){return this['channel'][_0x3f87('0x2b')](_0x311fd5,_0x3f87('0x170'));}var _0x35c040={'from':util[_0x3f87('0x28')]('\x22%s\x22\x20<%s>',_0x35bd78['name'],_0x35bd78[_0x3f87('0x171')]||_0x35bd78[_0x3f87('0x16f')][_0x3f87('0x172')]),'to':_0x311fd5['to']||'','cc':_0x311fd5['cc']||'','bcc':_0x311fd5['bcc']||'','subject':_0x311fd5[_0x3f87('0x173')],'html':_0x311fd5[_0x3f87('0x59')],'text':_0x311fd5['text']};var _0x2382ad={'tls':{'rejectUnauthorized':![]}};if(_0x35bd78[_0x3f87('0x16f')]['service']){_0x2382ad[_0x3f87('0x174')]=_0x35bd78[_0x3f87('0x16f')][_0x3f87('0x174')];}else{_0x2382ad[_0x3f87('0x175')]=_0x35bd78[_0x3f87('0x16f')][_0x3f87('0x175')];_0x2382ad['port']=_0x35bd78[_0x3f87('0x16f')][_0x3f87('0x176')];_0x2382ad['secure']=_0x35bd78['Smtp']['secure'];}if(_0x35bd78[_0x3f87('0x16f')]['authentication']){_0x2382ad[_0x3f87('0x177')]={'user':_0x35bd78['Smtp']['user'],'pass':_0x35bd78[_0x3f87('0x16f')][_0x3f87('0x178')]};}if(this[_0x3f87('0x65')](_0x311fd5[_0x3f87('0x179')])){}logger[_0x3f87('0xb8')]('sendMail\x20message',JSON[_0x3f87('0xef')](_0x35c040));this['createSquareDetailsReport']['sync'](this,_0x311fd5,_0x311fd5[_0x3f87('0x16d')]);this['channel'][_0x3f87('0x90')](util[_0x3f87('0x28')](_0x3f87('0x17a'),_0x35bd78[_0x3f87('0x13')]));this[_0x3f87('0x22')][_0x3f87('0x81')](this,_0x2382ad,_0x35c040);return this[_0x3f87('0xd')][_0x3f87('0x90')](_0x3f87('0x17b'));};AGIVertices[_0x3f87('0xf')]['sendFax']=function(_0x5585dd){logger[_0x3f87('0x2d')](util[_0x3f87('0x28')]('Enter\x20in\x20SENDFAX\x20(%s)\x20block',_0x5585dd[_0x3f87('0x37')]));return this[_0x3f87('0xd')]['noop']('SENDFAX\x20block\x20not\x20implemented');};AGIVertices['prototype'][_0x3f87('0x17c')]=function(_0x3bc762){logger[_0x3f87('0x2d')](util[_0x3f87('0x28')](_0x3f87('0x17d'),_0x3bc762[_0x3f87('0x37')]));if(!this[_0x3f87('0x65')](_0x3bc762[_0x3f87('0x17e')])){return this['channel'][_0x3f87('0x90')]('no\x20sms\x20account\x20configured');}var _0x5dd541=this[_0x3f87('0x17f')][_0x3f87('0x81')](this,_0x3bc762[_0x3f87('0x17e')]);if(!_0x5dd541){return this[_0x3f87('0xd')][_0x3f87('0x2b')](_0x3bc762,_0x3f87('0x180'));}var _0x3f2d66={'body':_0x3bc762[_0x3f87('0x181')],'phone':_0x3bc762['to']||'','SmsAccountId':_0x5dd541['id']};logger['debug'](_0x3f87('0x182'),JSON[_0x3f87('0xef')](_0x3f2d66));this[_0x3f87('0x35')][_0x3f87('0x81')](this,_0x3bc762,_0x3bc762[_0x3f87('0x17e')]);this[_0x3f87('0xd')][_0x3f87('0x90')](util[_0x3f87('0x28')]('Trying\x20SendSMS\x20with\x20account\x20%s',_0x5dd541[_0x3f87('0x13')]));this[_0x3f87('0x34')]['sync'](this,_0x3f2d66);return this['channel'][_0x3f87('0x90')]('Sms\x20message\x20added\x20to\x20outgoing\x20process');};AGIVertices['prototype'][_0x3f87('0x183')]=function(_0x523439){logger['info'](util[_0x3f87('0x28')]('Enter\x20in\x20SET\x20(%s)\x20block',_0x523439[_0x3f87('0x37')]));if(!this['isConfigured'](_0x523439[_0x3f87('0xec')])){return this[_0x3f87('0xd')][_0x3f87('0x2b')](_0x523439,_0x3f87('0x184'));}var _0x6a4c9c=this[_0x3f87('0x10')][_0x3f87('0x81')](this,_0x523439['variable_id']);if(!_0x6a4c9c){return this[_0x3f87('0xd')]['error'](_0x523439,'no\x20variable\x20found');}return this['channel'][_0x3f87('0x7f')](_0x6a4c9c,_0x523439[_0x3f87('0x185')]);};AGIVertices[_0x3f87('0xf')][_0x3f87('0x186')]=function(_0x1d8ff3){logger[_0x3f87('0x2d')](util[_0x3f87('0x28')](_0x3f87('0x187'),_0x1d8ff3[_0x3f87('0x37')]));this[_0x3f87('0xd')][_0x3f87('0x90')](_0x3f87('0x188'));if(_0x1d8ff3[_0x3f87('0x86')]===_0x3f87('0x189')){this[_0x3f87('0xd')][_0x3f87('0x90')](_0x3f87('0x18a'));return this['channel'][_0x3f87('0x86')]();}return this[_0x3f87('0xd')][_0x3f87('0x90')](_0x3f87('0x18b'));};AGIVertices[_0x3f87('0xf')][_0x3f87('0x18c')]=function(_0xf5a9d1){logger[_0x3f87('0x2d')](util['format'](_0x3f87('0x18d'),_0xf5a9d1['label']));if(!this[_0x3f87('0x65')](_0xf5a9d1[_0x3f87('0x18e')])){return this['channel']['error'](_0xf5a9d1,'no\x20subproject\x20selected');}var _0x4fdf03=this[_0x3f87('0x17')][_0x3f87('0x81')](this,_0xf5a9d1[_0x3f87('0x18e')]);if(!this[_0x3f87('0x65')](_0x4fdf03)){return this[_0x3f87('0xd')][_0x3f87('0x2b')](_0xf5a9d1,util[_0x3f87('0x28')]('no\x20subproject\x20found\x20with\x20id\x20%d',_0xf5a9d1[_0x3f87('0x18e')]));}if(_0x4fdf03===this[_0x3f87('0xd')][_0x3f87('0x3f')]){return this[_0x3f87('0xd')][_0x3f87('0x2b')](_0xf5a9d1,'project\x20in\x20subproject\x20must\x20be\x20different\x20from\x20the\x20called\x20project');}this['createSquareDetailsReport'][_0x3f87('0x81')](this,_0xf5a9d1,_0x4fdf03);var _0x332299=this[_0x3f87('0xd')][_0x3f87('0x55')]('AGI',util[_0x3f87('0x28')](_0x3f87('0x18f'),config[_0x3f87('0x8')]['host']||_0x3f87('0x190'),_0x4fdf03,this[_0x3f87('0xd')][_0x3f87('0x3f')]));if(_0x332299[_0x3f87('0x94')]===-0x1){return _0x332299;}return this[_0x3f87('0xd')][_0x3f87('0x90')](util['format'](_0x3f87('0x95'),_0x3f87('0x191'),_0x4fdf03));};AGIVertices[_0x3f87('0xf')][_0x3f87('0x192')]=function(_0x36e901){logger[_0x3f87('0x2d')](util[_0x3f87('0x28')](_0x3f87('0x193'),_0x36e901[_0x3f87('0x37')]));var _0x19a1c7=this[_0x3f87('0x194')]['sync'](this,_0x36e901[_0x3f87('0x84')]);this[_0x3f87('0x35')][_0x3f87('0x81')](this,_0x36e901,_0x36e901[_0x3f87('0x84')]);if(this[_0x3f87('0x65')](_0x36e901[_0x3f87('0xec')])){var _0x1dd1f7=this[_0x3f87('0x10')][_0x3f87('0x81')](this,_0x36e901['variable_id']);if(_0x1dd1f7){this[_0x3f87('0xd')]['setVariable'](_0x1dd1f7,_0x19a1c7);return this['channel'][_0x3f87('0x90')](util[_0x3f87('0x28')](_0x3f87('0x195'),_0x36e901[_0x3f87('0x84')],_0x1dd1f7));}}return this[_0x3f87('0xd')]['noop'](util[_0x3f87('0x28')]('sh\x20command:\x20%s\x20result\x20no\x20stored',_0x36e901[_0x3f87('0x84')]));};AGIVertices[_0x3f87('0xf')][_0x3f87('0x196')]=function(_0x4c1da0){logger[_0x3f87('0x2d')](util[_0x3f87('0x28')](_0x3f87('0x197'),_0x4c1da0[_0x3f87('0x37')]));if(!this['isConfigured'](_0x4c1da0[_0x3f87('0x58')])){return this[_0x3f87('0xd')][_0x3f87('0x90')](_0x3f87('0x198'));}if(!this[_0x3f87('0x65')](_0x4c1da0[_0x3f87('0x59')])){return this[_0x3f87('0xd')][_0x3f87('0x90')](_0x3f87('0x98'));}this['channel'][_0x3f87('0x90')](util[_0x3f87('0x28')]('Trying\x20Google\x20Cloud\x20TTS\x20%s',_0x4c1da0['text']));var _0x360366=this[_0x3f87('0x57')][_0x3f87('0x81')](this,_0x4c1da0);if(_0x360366){this['channel'][_0x3f87('0x90')](util[_0x3f87('0x28')](_0x3f87('0x199'),_0x360366));var _0x1c2e58=this[_0x3f87('0xd')][_0x3f87('0xd6')](_0x360366);try{fs['unlink'](_0x360366+_0x3f87('0xff'));}catch(_0x531fc4){logger['error'](_0x531fc4);}return _0x1c2e58;}return this['channel']['error'](_0x4c1da0,_0x3f87('0x19a'));};AGIVertices[_0x3f87('0xf')][_0x3f87('0x19b')]=function(_0x1d2a50){logger[_0x3f87('0x2d')](util[_0x3f87('0x28')](_0x3f87('0x19c'),_0x1d2a50[_0x3f87('0x37')]));if(!this[_0x3f87('0x65')](_0x1d2a50[_0x3f87('0x59')])){return this[_0x3f87('0xd')]['noop'](_0x3f87('0x98'));}this[_0x3f87('0xd')][_0x3f87('0x90')](util[_0x3f87('0x28')](_0x3f87('0x19d'),_0x1d2a50[_0x3f87('0x59')]));var _0x176a96=this['googleTTS']['sync'](this,_0x1d2a50);if(_0x176a96){this[_0x3f87('0xd')]['noop'](util[_0x3f87('0x28')]('Google\x20TTS\x20%s\x20file\x20created',_0x176a96));var _0x388dc7=this[_0x3f87('0xd')][_0x3f87('0xd6')](_0x176a96);try{fs['unlink'](_0x176a96+'.wav');}catch(_0x37ccc2){logger[_0x3f87('0x2b')](_0x37ccc2);}return _0x388dc7;}return this[_0x3f87('0xd')][_0x3f87('0x2b')](_0x1d2a50,_0x3f87('0x19e'));};AGIVertices['prototype']['unpause']=function(_0x3a3490){logger[_0x3f87('0x2d')](util[_0x3f87('0x28')](_0x3f87('0x19f'),_0x3a3490[_0x3f87('0x37')]));if(!this['isConfigured'](_0x3a3490[_0x3f87('0x134')])){return this[_0x3f87('0xd')][_0x3f87('0x2b')](_0x3a3490,'no\x20find\x20by\x20configured');}logger['info'](util[_0x3f87('0x28')](_0x3f87('0x136'),this[_0x3f87('0xd')]['callerid'],_0x3a3490[_0x3f87('0x134')]));var _0x3186e4=this[_0x3f87('0x4f')][_0x3f87('0x81')](this,_0x3a3490['findBy']);if(_0x3186e4){logger[_0x3f87('0x2d')](util[_0x3f87('0x28')](_0x3f87('0x137'),this[_0x3f87('0xd')][_0x3f87('0x39')],_0x3a3490[_0x3f87('0x134')]));this[_0x3f87('0xd')]['noop'](util[_0x3f87('0x28')]('AGENT\x20%s\x20FOUND\x20BY',this['channel'][_0x3f87('0x39')],_0x3a3490[_0x3f87('0x134')]));return{'code':0xc8,'result':_0x3f87('0x138')};}else{logger[_0x3f87('0x2d')](util[_0x3f87('0x28')](_0x3f87('0x139'),this['channel'][_0x3f87('0x39')],_0x3a3490[_0x3f87('0x134')]));this[_0x3f87('0xd')]['noop'](util['format']('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this['channel'][_0x3f87('0x39')],_0x3a3490[_0x3f87('0x134')]));return{'code':0xc8,'result':_0x3f87('0x13a')};}};AGIVertices[_0x3f87('0xf')][_0x3f87('0x1a0')]=function(_0x255c56){logger[_0x3f87('0x2d')](util['format']('Enter\x20in\x20VOICEMAIL\x20(%s)\x20block',_0x255c56[_0x3f87('0x37')]));var _0x511b4d=this[_0x3f87('0xd')][_0x3f87('0x55')](_0x3f87('0x1a1'),[_0x255c56[_0x3f87('0x1a2')],_0x255c56[_0x3f87('0x99')]]);if(_0x511b4d[_0x3f87('0x94')]===-0x1){return _0x511b4d;}return this[_0x3f87('0xd')]['noop'](util[_0x3f87('0x28')](_0x3f87('0x95'),'VOICEMAIL',_0x255c56['mailbox']));};AGIVertices[_0x3f87('0xf')]['vswitch']=function(_0x701ca4){logger[_0x3f87('0x2d')](util[_0x3f87('0x28')](_0x3f87('0x1a3'),_0x701ca4[_0x3f87('0x37')]));if(!this[_0x3f87('0x65')](_0x701ca4[_0x3f87('0xec')])){return this[_0x3f87('0xd')][_0x3f87('0x2b')](_0x701ca4,_0x3f87('0x184'));}var _0x3ac454=this[_0x3f87('0x10')][_0x3f87('0x81')](this,_0x701ca4['variable_id']);if(!_0x3ac454){return this[_0x3f87('0xd')][_0x3f87('0x2b')](_0x701ca4,_0x3f87('0xb1'));}var _0x411ccd=this[_0x3f87('0xd')][_0x3f87('0x10')](_0x3ac454);return{'code':0xc8,'result':_0x411ccd[_0x3f87('0x7c')]?_0x411ccd[_0x3f87('0x7c')]:'-'};};String[_0x3f87('0xf')]['replaceAll']=function(_0x3715d5,_0x2b21f3){return this[_0x3f87('0x79')](_0x3715d5)[_0x3f87('0x1a4')](_0x2b21f3);};module['exports']=AGIVertices;