d3ae5d95753a9b81351fa093547ce219e388c02c
[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 _0xf725=['hangup','ispeechasr','ispeech\x20%s\x20file\x20created','ISPEECH_ASR_%s','IspeechASR\x20Result\x20%s','ispeechtts','Enter\x20in\x20ISPEECHTTS\x20(%s)\x20block','Trying\x20ispeech\x20TTS\x20%s','ispeech\x20TTS\x20is\x20unreachable','login','Enter\x20in\x20LOGIN\x20(%s)\x20block','findBy','no\x20find\x20by\x20configured','AGENT\x20%s\x20FOUND\x20BY','AGENT\x20%s\x20NOT\x20FOUND\x20BY','failure','Enter\x20in\x20LOGOUT\x20(%s)\x20block','FIND\x20AGENT\x20%s\x20BY\x20%s','success','math','Enter\x20in\x20MATH\x20(%s)\x20block','no\x20operation\x20configured','math\x20%s','operation','isArray','%s[%s]','variable\x20%s[key]\x20set','digit','Enter\x20in\x20NOOP\x20(%s)\x20block','output','pause','Enter\x20in\x20PAUSE\x20(%s)\x20block','Enter\x20in\x20PLAYBACK\x20(%s)\x20block','queue','queue_id','no\x20queue\x20selected','no\x20queue\x20found','indexOf','XMCS-QUEUE','toLowerCase','macro','gosub','position','QUEUE','record','Enter\x20in\x20RECORD\x20(%s)\x20block','recordingFormat','%s_%s','%s/recordings/%s.%s','RECORDING_SAVENAME','Recording\x20%s\x20%s\x20%s\x20%s','escape_digits','restapi','Enter\x20in\x20RESTAPI\x20(%s)\x20block','no\x20url\x20configured','Response:','no\x20variable\x20selected\x20for\x20the\x20response','%s_STATUS_CODE','200','Unable\x20to\x20set\x20result\x20in\x20variable\x20%s','saydigits','Enter\x20in\x20SAYDIGITS\x20(%s)\x20block','digits','saynumber','sayphonetic','Enter\x20in\x20SAYPHONETIC\x20(%s)\x20block','sayPhonetic','sendMail','account_id','no\x20mail\x20account\x20configured','Smtp','no\x20mail\x20account\x20found','\x22%s\x22\x20<%s>','email','subject','template_id','debug','sendMail\x20message','Trying\x20SendMail\x20with\x20account\x20%s','smtpOptions','Mail\x20message\x20added\x20to\x20outgoing\x20process','sendFax','Enter\x20in\x20SENDFAX\x20(%s)\x20block','sms_account_id','no\x20sms\x20account\x20configured','sendSMS\x20message','Trying\x20SendSMS\x20with\x20account\x20%s','Sms\x20message\x20added\x20to\x20outgoing\x20process','set','no\x20variable\x20selected','variable_value','start','XMCS-UNIQUEID','yes','Answer','Skipped\x20Answer','subproject','Enter\x20in\x20SUBPROJECT\x20(%s)\x20block','project_id','no\x20subproject\x20selected','no\x20subproject\x20found\x20with\x20id\x20%d','AGI','host','127.0.0.1','system','Enter\x20in\x20SYSTEM\x20(%s)\x20block','sh\x20command:\x20%s\x20result\x20on\x20variable:\x20%s','sh\x20command:\x20%s\x20result\x20no\x20stored','google_cloud_tts','Enter\x20in\x20Google\x20Cloud\x20TTS\x20(%s)\x20block','apiKey','no\x20apiKey\x20configured','Trying\x20Google\x20Cloud\x20TTS\x20%s','Google\x20Cloud\x20TTS\x20%s\x20file\x20created','Google\x20Cloud\x20TTS\x20is\x20unreachable','tts','Trying\x20Google\x20TTS\x20%s','Google\x20TTS\x20is\x20unreachable','unpause','Enter\x20in\x20VOICEMAIL\x20(%s)\x20block','VOICEMAIL','mailbox','vswitch','Enter\x20in\x20SWITCH\x20(%s)\x20block','join','exports','util','lodash','shelljs','odbc','randomstring','moment','mustache','request-promise','../../config/logger','agi','./scripts','/var/opt/motion2/server/files','rawHeaders','rawBody','menu','getdigits','getsecretdigits','channel','mailRpc','prototype','rpc','getVariableById','then','name','getVoiceQueue','getVoiceQueueById','getSquareProject','getSquareOdbc','getSquareOdbcById','catch','getUser','getUserById','getTrunk','getTrunkById','getSound','getSoundById','getSoundPath','getMailAccount','getMailAccountById','sendMailMessage','getIntervals','IntervalId','map','Intervals','interval','format','%s/sounds/converted/%s','getQueryOdbc','open','Error\x20getting\x20ODBC\x20connection\x20%s','info','ODBC\x20connection\x20successfully','query','Error\x20executing\x20query\x20%s','Query\x20executed\x20correctly\x20%s','close','error','Error\x20closing\x20connection\x20to\x20odbc\x20%s','getSmsAccount','getSmsAccountById','createSquareDetailsReport','uniqueid','label','agicommand','callerid','createSquareRecording','calleridname','context','extension','priority','accountcode','arg_1','file','createSquareMessage','createCmContact','isNil','callback_','random','lastName','phone','list_id','scheduledAt','callback','toString','getPause','getPauseById','agentPause','agent','agentUnpause','agentLogout','agentLogin','internal','%s/%s@from-sip/n','LOCAL','exec','replace','googleCloudTTS','google_cloud_tts_text_type','text','languageCode','en-US','ssmlGender','MALE','audioEncoding','MP3','googleTTS','restAPI','method','timeout','number','includes','POST','PUT','toUpperCase','body','parse','An\x20incorrect\x20formatted\x20json\x20body\x20has\x20been\x20passed\x20to\x20the\x20function','An\x20incorrect\x20formatted\x20json\x20headers\x20has\x20been\x20passed\x20to\x20the\x20function','computedVariables','sync','uri','render','url','headers','stringify','An\x20incorrect\x20formatted\x20json\x20has\x20been\x20passed\x20to\x20the\x20function','statusCode','statusMessage','message','500\x20-\x20Internal\x20Server\x20Error','key','googleDialogflowV2','dialogflowV2_language','sestekNDA','ispeechTTS','ispeech_tts_language','ispeechASR','ispeech_asr_language','isConfigured','model','awsPolly','aws_access_key_id','aws_secret_access_key','aws_polly_region','aws_polly_voice','Amy','awsLex','aws_lex_region','aws_bot_name','google_asr_language','appid','appsecret','clone','hasOwnProperty','isString','replaceObjectAllVariables','recursiveNodeIndex','isPlainObject','length','replaceAllVariables','saveRestApiResult','isEmpty','%s.%s','setVariable','split','replaceAll','extra','getVariable','maxRetry','retry','Enter\x20in\x20MRCPSynth\x20(%s)\x20block','noop','no\x20text\x20configured','options','result','Executed\x20command\x20MRCPSynth\x20%s','mrcprecog','Enter\x20in\x20MRCPRecog\x20(%s)\x20block','grammar','MRCPRecog','getAndSetVariable','MRCP_RECOG_CONFIDENCE','MRCP_RECOG_TRANSCRIPT','RECOG_INSTANCE()','MRCP_RECOG_INSTANCE','Enter\x20in\x20AGI\x20(%s)\x20block','command','args','Wait\x20%s\x20seconds\x20before\x20answer','answer','no\x20list\x20selected','delay','add','minutes','callback_priority','CALLBACK\x20added\x20phone:\x20%s\x20on\x20list:\x20%s\x20at\x20%s','custom_app','Enter\x20in\x20CUSTOM\x20APP\x20(%s)\x20block','Executed\x20command\x20%s\x20%s','lumenvoxtts','Enter\x20in\x20LUMENVOXTTS\x20(%s)\x20block','MRCPSynth','Enter\x20in\x20SESTEKTTS\x20(%s)\x20block','Enter\x20in\x20LUMENVOXASR\x20(%s)\x20block','no\x20grammar\x20configured','RECOG_CONFIDENCE()','LUMENVOX_ASR_CONFIDENCE','LUMENVOX_ASR_TRANSCRIPT','sestekasr','Enter\x20in\x20SESTEKASR\x20(%s)\x20block','RECOG_INPUT()','SESTEK_ASR_TRANSCRIPT','SESTEK_ASR_INSTANCE','Executed\x20command\x20MRCPRecog\x20%s','database','Enter\x20in\x20DATABASE\x20(%s)\x20block','no\x20database\x20selected','odbc_id','no\x20odbc\x20database\x20found','query:\x20%s','variable_id','forEach','%s[%s][%s]','%s_ROWS_COUNT','variable\x20%s\x20set','dial','Enter\x20in\x20DIAL\x20(%s)\x20block','sip_id','no\x20user\x20found','DIAL','SIP/%s','opts','Executed\x20command\x20%s','Enter\x20in\x20DIALOGFLOW\x20(%s)\x20block','no\x20key\x20configured','bot','Trying\x20Dialogflow:\x20%s','DIALOGFLOW_%s','dialogflow','Dialogflow\x20Result\x20%s','speech','dialogflowV2','Enter\x20in\x20DIALOGFLOW\x20V2\x20(%s)\x20block','dialogflowV2_project_id','no\x20client_email\x20configured','private_key','no\x20private_key\x20configured','no\x20anguage\x20configured','out','providerResponse','DialogflowV2\x20is\x20unreachable','sesteknda','Enter\x20in\x20SESTEKNDA\x20(%s)\x20block','ndauth_url','no\x20ndauth\x20url\x20configured','username','password','no\x20password\x20configured','ndassistant_url','Trying\x20SestekNDA:\x20%s','audiofile','Sestek\x20NDA\x20%s\x20file\x20created','streamFile','unlink','SestekNDA\x20is\x20unreachable','Enter\x20in\x20END\x20(%s)\x20block','end','Enter\x20in\x20EXTERNAL\x20DIAL\x20(%s)\x20block','trunk_id','no\x20trunk\x20selected','trunk_name','SIP/%s/%s','finally','Enter\x20in\x20GETDIGITS\x20(%s)\x20block','file_id','no\x20file\x20audio\x20selected','no\x20file\x20audio\x20found','no\x20variable\x20selected\x20for\x20the\x20result','getData','response','maxdigit','test','mindigit','no\x20variable\x20found','hiddendigitsnum','generate','hiddendigitspos','first','substr','Enter\x20in\x20GETSECRETDIGITS\x20(%s)\x20block','goal','Enter\x20in\x20GOAL\x20(%s)\x20block','GOAL\x20%s','goalname','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','Enter\x20in\x20Amazon\x20Lex\x20(%s)\x20block','Trying\x20Amazon\x20Lex:\x20%s','Amazon\x20Lex\x20ready\x20for\x20fulfillment','amazonlex','Amazon\x20Lex\x20Result\x20%s','Amazon\x20Lex\x20is\x20unreachable','wav','%s/recordings/%s','NOBEEP','recordFile','intKey','google\x20%s\x20file\x20created','googleASR','GOOGLE_ASR_%s','GoogleASR\x20Result\x20%s','Enter\x20in\x20TILDEASR\x20(%s)\x20block','no\x20appid\x20configured','no\x20appsecret\x20configured','beep','tilde\x20%s\x20file\x20created','tildeASR','TILDE_ASR_%s','TildeASR\x20Result\x20%s','gotoc','Enter\x20in\x20GOTO\x20(%s)\x20block','continueAt','gotoif','Enter\x20in\x20GOTOIF\x20(%s)\x20block','condition','no\x20condition\x20configured','EVAL\x20CONDITION\x20%s\x20%s','false','gotoiftime','interval_id','no\x20intervals\x20found','IFTIME(%s?true:false)','IFTIME\x20%s\x20%s','true','Enter\x20in\x20HANGUP\x20(%s)\x20block'];(function(_0x248a43,_0x59e52a){var _0x451379=function(_0x2c5209){while(--_0x2c5209){_0x248a43['push'](_0x248a43['shift']());}};_0x451379(++_0x59e52a);}(_0xf725,0x7e));var _0x5f72=function(_0x526ee,_0x3345bf){_0x526ee=_0x526ee-0x0;var _0x293916=_0xf725[_0x526ee];return _0x293916;};'use strict';var fs=require('fs');var util=require(_0x5f72('0x0'));var _=require(_0x5f72('0x1'));var sh=require(_0x5f72('0x2'));var odbc=require(_0x5f72('0x3'))();var rs=require(_0x5f72('0x4'));var moment=require(_0x5f72('0x5'));var Mustache=require(_0x5f72('0x6'));var rp=require(_0x5f72('0x7'));var logger=require(_0x5f72('0x8'))(_0x5f72('0x9'));var config=require('../../config/environment');var scripts=require(_0x5f72('0xa'));var FILES_PATH=_0x5f72('0xb');var recursiveMapAttributes=[_0x5f72('0xc'),_0x5f72('0xd')];var verticesWithRetry=[_0x5f72('0xe'),_0x5f72('0xf'),_0x5f72('0x10')];var AGIVertices=function(_0x523365,_0x499e28,_0x16de9b){this[_0x5f72('0x11')]=_0x523365;this['rpc']=_0x499e28;this[_0x5f72('0x12')]=_0x16de9b;};AGIVertices[_0x5f72('0x13')]['getVariable']=function(_0x3a3b76,_0x3f4614){this[_0x5f72('0x14')][_0x5f72('0x15')](_0x3a3b76)[_0x5f72('0x16')](function(_0x283d20){_0x3f4614(null,_0x283d20?_0x283d20[_0x5f72('0x17')]:![]);})['catch'](function(_0x1ac591){_0x3f4614(_0x1ac591);});};AGIVertices[_0x5f72('0x13')][_0x5f72('0x18')]=function(_0x136591,_0x333d9a){this['rpc'][_0x5f72('0x19')](_0x136591)['then'](function(_0x50f8c8){_0x333d9a(null,_0x50f8c8?_0x50f8c8[_0x5f72('0x17')]:![]);})['catch'](function(_0x3267a){_0x333d9a(_0x3267a);});};AGIVertices['prototype'][_0x5f72('0x1a')]=function(_0x4e0c32,_0x44893b){this[_0x5f72('0x14')]['getSquareProjectById'](_0x4e0c32)[_0x5f72('0x16')](function(_0x276323){_0x44893b(null,_0x276323?_0x276323[_0x5f72('0x17')]:![]);})['catch'](function(_0x490d14){_0x44893b(_0x490d14);});};AGIVertices['prototype'][_0x5f72('0x1b')]=function(_0x36e1a8,_0x269dae){this[_0x5f72('0x14')][_0x5f72('0x1c')](_0x36e1a8)[_0x5f72('0x16')](function(_0x47ec64){_0x269dae(null,_0x47ec64?_0x47ec64['dsn']:![]);})[_0x5f72('0x1d')](function(_0x315b71){_0x269dae(_0x315b71);});};AGIVertices[_0x5f72('0x13')][_0x5f72('0x1e')]=function(_0x471a9c,_0x2c599a){this[_0x5f72('0x14')][_0x5f72('0x1f')](_0x471a9c)[_0x5f72('0x16')](function(_0x1d5b00){_0x2c599a(null,_0x1d5b00?_0x1d5b00[_0x5f72('0x17')]:![]);})['catch'](function(_0x433935){_0x2c599a(_0x433935);});};AGIVertices[_0x5f72('0x13')][_0x5f72('0x20')]=function(_0xdac9cc,_0x57afb3){this[_0x5f72('0x14')][_0x5f72('0x21')](_0xdac9cc)['then'](function(_0x447019){_0x57afb3(null,_0x447019?_0x447019[_0x5f72('0x17')]:![]);})[_0x5f72('0x1d')](function(_0x521174){_0x57afb3(_0x521174);});};AGIVertices['prototype'][_0x5f72('0x22')]=function(_0xf36295,_0x3936ed){var _0x18374d=this;this[_0x5f72('0x14')][_0x5f72('0x23')](_0xf36295)[_0x5f72('0x16')](function(_0x59af82){_0x3936ed(null,_0x59af82?_0x18374d[_0x5f72('0x24')](_0x59af82['save_name']):![]);})[_0x5f72('0x1d')](function(_0x35fa31){_0x3936ed(_0x35fa31);});};AGIVertices[_0x5f72('0x13')][_0x5f72('0x25')]=function(_0xbed98f,_0x5278d9){this['rpc'][_0x5f72('0x26')](_0xbed98f)[_0x5f72('0x16')](function(_0x25ab30){_0x5278d9(null,_0x25ab30?_0x25ab30:![]);})[_0x5f72('0x1d')](function(_0xce2370){_0x5278d9(_0xce2370);});};AGIVertices[_0x5f72('0x13')][_0x5f72('0x27')]=function(_0x48912a,_0x4c6909,_0x2d4bbe){this[_0x5f72('0x12')][_0x5f72('0x27')](_0x48912a,_0x4c6909)[_0x5f72('0x16')](function(){_0x2d4bbe(null);})['catch'](function(_0x3fcaa3){_0x2d4bbe(_0x3fcaa3);});};AGIVertices[_0x5f72('0x13')][_0x5f72('0x28')]=function(_0x2581df,_0x3a7aaa){this[_0x5f72('0x14')]['getIntervalById'](_0x2581df)['then'](function(_0x11299c){if(_0x11299c){if(_0x11299c[_0x5f72('0x29')]){_0x3a7aaa(null,[_0x11299c['interval']]);}else{_0x3a7aaa(null,_[_0x5f72('0x2a')](_0x11299c[_0x5f72('0x2b')],_0x5f72('0x2c')));}}else{_0x3a7aaa(null,![]);}})[_0x5f72('0x1d')](function(_0x3bec42){_0x3a7aaa(_0x3bec42);});};AGIVertices[_0x5f72('0x13')][_0x5f72('0x24')]=function(_0x37c178){return util[_0x5f72('0x2d')](_0x5f72('0x2e'),FILES_PATH,_0x37c178);};AGIVertices[_0x5f72('0x13')][_0x5f72('0x2f')]=function(_0x441633,_0x38d7bd,_0x52fab3){odbc[_0x5f72('0x30')](_0x441633,function(_0x479510){if(_0x479510){logger['error'](_0x5f72('0x31'),_0x479510);_0x52fab3(_0x479510);}else{logger[_0x5f72('0x32')](_0x5f72('0x33'));odbc[_0x5f72('0x34')](_0x38d7bd,function(_0x281168,_0x1da045){if(_0x281168){logger['info'](_0x5f72('0x35'),_0x38d7bd);_0x52fab3(_0x281168);}else{logger[_0x5f72('0x32')](_0x5f72('0x36'),_0x38d7bd);odbc[_0x5f72('0x37')](function(_0x148cd6){if(_0x148cd6){logger[_0x5f72('0x38')](_0x5f72('0x39'),_0x148cd6);}_0x52fab3(null,_0x1da045);});}});}});};AGIVertices[_0x5f72('0x13')][_0x5f72('0x3a')]=function(_0x2b8549,_0x39c2af){this[_0x5f72('0x14')][_0x5f72('0x3b')](_0x2b8549)[_0x5f72('0x16')](function(_0xefdf17){_0x39c2af(null,_0xefdf17?_0xefdf17:![]);})['catch'](function(_0x594bb4){_0x39c2af(_0x594bb4);});};AGIVertices[_0x5f72('0x13')]['createSmsMessage']=function(_0x58508d,_0x3b438f){this[_0x5f72('0x14')]['createSmsMessage'](_0x58508d)[_0x5f72('0x16')](function(_0x42298c){_0x3b438f(null,_0x42298c);})['catch'](function(_0x339890){_0x3b438f(_0x339890);});};AGIVertices[_0x5f72('0x13')][_0x5f72('0x3c')]=function(_0xcfefc5,_0x4f57a6,_0x5720d4){this[_0x5f72('0x14')][_0x5f72('0x3c')]({'uniqueid':this[_0x5f72('0x11')][_0x5f72('0x3d')],'node':_0xcfefc5[_0x5f72('0x3e')],'application':_0xcfefc5[_0x5f72('0x3f')],'data':_0x4f57a6||null,'project_name':this[_0x5f72('0x11')]['arg_1'],'callerid':this[_0x5f72('0x11')][_0x5f72('0x40')]})[_0x5f72('0x16')](function(_0x62f48e){if(_0x5720d4){_0x5720d4(null,_0x62f48e);}})['catch'](function(_0x28e912){if(_0x5720d4){_0x5720d4(_0x28e912);}});};AGIVertices[_0x5f72('0x13')][_0x5f72('0x41')]=function(_0x32e530,_0x5a84fe,_0x40d158,_0x160d65){this[_0x5f72('0x14')][_0x5f72('0x41')]({'uniqueid':this['channel'][_0x5f72('0x3d')],'callerid':this[_0x5f72('0x11')]['callerid'],'calleridname':this[_0x5f72('0x11')][_0x5f72('0x42')],'context':this['channel'][_0x5f72('0x43')],'extension':this[_0x5f72('0x11')][_0x5f72('0x44')],'priority':this['channel'][_0x5f72('0x45')],'accountcode':this[_0x5f72('0x11')][_0x5f72('0x46')],'dnid':this[_0x5f72('0x11')]['dnid'],'projectName':this[_0x5f72('0x11')][_0x5f72('0x47')],'saveName':_0x5a84fe,'filename':_0x32e530[_0x5f72('0x48')]||_0x5a84fe,'savePath':_0x40d158})[_0x5f72('0x16')](function(_0x506774){_0x160d65(null,_0x506774);})[_0x5f72('0x1d')](function(_0xff5cb5){_0x160d65(_0xff5cb5);});};AGIVertices[_0x5f72('0x13')][_0x5f72('0x49')]=function(_0x4a8bf8,_0x16a452,_0x4de14c,_0x2f1a8f,_0x7dd3){this[_0x5f72('0x14')][_0x5f72('0x49')]({'uniqueid':this[_0x5f72('0x11')][_0x5f72('0x3d')],'body':_0x4a8bf8,'direction':_0x16a452,'providerName':_0x4de14c,'providerResponse':_0x2f1a8f})[_0x5f72('0x16')](function(_0x35116c){if(_0x7dd3){_0x7dd3(null,_0x35116c);}})[_0x5f72('0x1d')](function(_0x1d4a2f){if(_0x7dd3){_0x7dd3(_0x1d4a2f);}});};AGIVertices['prototype'][_0x5f72('0x4a')]=function(_0x1b817f,_0x5c5d94){this[_0x5f72('0x14')][_0x5f72('0x4a')]({'firstName':_['isEmpty'](_0x1b817f[_0x5f72('0x17')])||_[_0x5f72('0x4b')](_0x1b817f[_0x5f72('0x17')])?_0x5f72('0x4c')+Math[_0x5f72('0x4d')]():_0x1b817f['name'],'lastName':_['isEmpty'](_0x1b817f[_0x5f72('0x4e')])||_[_0x5f72('0x4b')](_0x1b817f[_0x5f72('0x4e')])?null:_0x1b817f['lastName'],'phone':_0x1b817f[_0x5f72('0x4f')],'ListId':_0x1b817f[_0x5f72('0x50')],'scheduledat':_0x1b817f[_0x5f72('0x51')],'callbackUniqueid':this['channel'][_0x5f72('0x3d')],'tags':_0x5f72('0x52'),'description':'Callback\x20scheduled\x20at\x20'+_0x1b817f['scheduledAt'][_0x5f72('0x53')](),'priority':_0x1b817f['callback_priority']})['then'](function(_0x2d889c){_0x5c5d94(null,_0x2d889c);})[_0x5f72('0x1d')](function(_0x1b9cab){_0x5c5d94(_0x1b9cab);});};AGIVertices[_0x5f72('0x13')][_0x5f72('0x54')]=function(_0xc32b04,_0x38d38a){this['rpc'][_0x5f72('0x55')](_0xc32b04)['then'](function(_0x3b0baf){_0x38d38a(null,_0x3b0baf?_0x3b0baf[_0x5f72('0x17')]:![]);})['catch'](function(_0x4c3930){_0x38d38a(_0x4c3930);});};AGIVertices[_0x5f72('0x13')][_0x5f72('0x56')]=function(_0x39036d,_0x167ea7,_0x4c6951){var _0xa9dbb9={'role':_0x5f72('0x57')};_0xa9dbb9[_0x39036d]=this[_0x5f72('0x11')]['callerid'];this[_0x5f72('0x14')][_0x5f72('0x56')](_0xa9dbb9,_0x167ea7,this[_0x5f72('0x11')][_0x5f72('0x3d')])[_0x5f72('0x16')](function(_0x36774e){_0x4c6951(null,_[_0x5f72('0x4b')](_0x36774e)?![]:!![]);})[_0x5f72('0x1d')](function(_0x1cc153){logger[_0x5f72('0x38')](_0x1cc153);_0x4c6951(null,![]);});};AGIVertices[_0x5f72('0x13')][_0x5f72('0x58')]=function(_0x56bfa2,_0x2545fd){var _0x343d19={'role':_0x5f72('0x57')};_0x343d19[_0x56bfa2]=this[_0x5f72('0x11')][_0x5f72('0x40')];this[_0x5f72('0x14')]['agentUnpause'](_0x343d19)[_0x5f72('0x16')](function(_0x46596f){_0x2545fd(null,_[_0x5f72('0x4b')](_0x46596f)?![]:!![]);})[_0x5f72('0x1d')](function(_0x559877){logger[_0x5f72('0x38')](_0x559877);_0x2545fd(null,![]);});};AGIVertices['prototype'][_0x5f72('0x59')]=function(_0x4665c8,_0x1380fb){var _0x6b865d={'role':'agent'};_0x6b865d[_0x4665c8]=this[_0x5f72('0x11')][_0x5f72('0x40')];this[_0x5f72('0x14')][_0x5f72('0x59')](_0x6b865d)['then'](function(_0x50bd1a){_0x1380fb(null,_[_0x5f72('0x4b')](_0x50bd1a)?![]:!![]);})['catch'](function(_0x4b6a90){logger[_0x5f72('0x38')](_0x4b6a90);_0x1380fb(null,![]);});};AGIVertices[_0x5f72('0x13')][_0x5f72('0x5a')]=function(_0x5e1686,_0x318717){var _0x1801d7={'role':_0x5f72('0x57')};_0x1801d7[_0x5e1686]=this[_0x5f72('0x11')][_0x5f72('0x40')];var _0xeed004=_0x5e1686!=_0x5f72('0x5b')?util[_0x5f72('0x2d')](_0x5f72('0x5c'),_0x5f72('0x5d'),this[_0x5f72('0x11')][_0x5f72('0x40')]):undefined;this[_0x5f72('0x14')]['agentLogin'](_0x1801d7,_0xeed004)[_0x5f72('0x16')](function(_0x21d978){_0x318717(null,_[_0x5f72('0x4b')](_0x21d978)?![]:!![]);})['catch'](function(_0x2a0cfc){logger['error'](_0x2a0cfc);_0x318717(null,![]);});};AGIVertices['prototype']['shellCommand']=function(_0x5ca842,_0x49d3d7){sh[_0x5f72('0x5e')](_['trim'](_0x5ca842),function(_0x551736,_0x2a846b){var _0x2404fd=_0x2a846b[_0x5f72('0x5f')](/(\r\n|\n|\r)/gm,'');_0x49d3d7(null,_0x2404fd);});};AGIVertices[_0x5f72('0x13')][_0x5f72('0x60')]=function(_0x3352c5,_0x25ed96){scripts[_0x5f72('0x60')](_0x3352c5['apiKey'],_0x3352c5[_0x5f72('0x61')]||_0x5f72('0x62'),_0x3352c5[_0x5f72('0x62')],_0x3352c5[_0x5f72('0x63')]||_0x5f72('0x64'),_0x3352c5[_0x5f72('0x65')]||_0x5f72('0x66'),_0x3352c5[_0x5f72('0x67')]||_0x5f72('0x68'))[_0x5f72('0x16')](function(_0x18e110){_0x25ed96(null,_0x18e110);})[_0x5f72('0x1d')](function(_0x6a5a6c){_0x25ed96(_0x6a5a6c);});};AGIVertices[_0x5f72('0x13')][_0x5f72('0x69')]=function(_0x5d3dd5,_0x164fba){scripts[_0x5f72('0x69')](_0x5d3dd5[_0x5f72('0x62')],_0x5d3dd5['google_tts_language']||'en',0x1)[_0x5f72('0x16')](function(_0x492c93){_0x164fba(null,_0x492c93);})[_0x5f72('0x1d')](function(_0x16e71a){_0x164fba(_0x16e71a);});};AGIVertices[_0x5f72('0x13')][_0x5f72('0x6a')]=function(_0x4ee2f6,_0x8886b4){var _0x1145a1={'uri':_0x4ee2f6['url'],'method':_0x4ee2f6[_0x5f72('0x6b')],'json':!![],'resolveWithFullResponse':!![],'strictSSL':![],'timeout':typeof parseInt(_0x4ee2f6[_0x5f72('0x6c')])===_0x5f72('0x6d')&&parseInt(_0x4ee2f6[_0x5f72('0x6c')])>=0x1?parseInt(_0x4ee2f6[_0x5f72('0x6c')])*0x3e8:0x5*0x3e8};if(_[_0x5f72('0x6e')]([_0x5f72('0x6f'),_0x5f72('0x70')],_0x1145a1['method'][_0x5f72('0x71')]())){try{_0x1145a1[_0x5f72('0x72')]=_0x4ee2f6[_0x5f72('0xd')]?JSON[_0x5f72('0x73')](_0x4ee2f6[_0x5f72('0xd')]):{};}catch(_0x19281a){logger[_0x5f72('0x38')](_0x5f72('0x74'),_0x19281a);}}try{_0x1145a1['headers']=_0x4ee2f6[_0x5f72('0xc')]?JSON[_0x5f72('0x73')](_0x4ee2f6[_0x5f72('0xc')]):{};}catch(_0x4fc610){logger[_0x5f72('0x38')](_0x5f72('0x75'),_0x4fc610);}if(_0x4ee2f6[_0x5f72('0x76')]){try{var _0x54b9cd=require(_0x4ee2f6[_0x5f72('0x76')])[_0x5f72('0x77')](this,_0x1145a1);_0x1145a1[_0x5f72('0x78')]=Mustache[_0x5f72('0x79')](_0x4ee2f6[_0x5f72('0x7a')],_0x54b9cd,{},['$$','$$']);if(_0x1145a1[_0x5f72('0x7b')]){_0x1145a1[_0x5f72('0x7b')]=JSON['parse'](Mustache['render'](JSON['stringify'](_0x1145a1['headers']),_0x54b9cd,{},['$$','$$']));}if(_0x1145a1['body']){_0x1145a1[_0x5f72('0x72')]=JSON['parse'](Mustache[_0x5f72('0x79')](JSON[_0x5f72('0x7c')](_0x1145a1[_0x5f72('0x72')]),_0x54b9cd,{},['$$','$$']));}}catch(_0x38a654){logger[_0x5f72('0x38')](_0x5f72('0x7d'),_0x38a654);}}rp(_0x1145a1)[_0x5f72('0x16')](function(_0xa154bb){var _0x3d7eee={'statusCode':_0xa154bb[_0x5f72('0x7e')]||0xc8,'statusMessage':_0xa154bb[_0x5f72('0x7f')]||'OK','headers':_0xa154bb['headers']||{},'body':_0xa154bb[_0x5f72('0x72')]||{}};_0x8886b4(null,_0x3d7eee);})[_0x5f72('0x1d')](function(_0x3b56db){var _0x39c3bd={'statusCode':_0x3b56db['statusCode']||0x1f4,'statusMessage':_0x3b56db[_0x5f72('0x80')]||_0x5f72('0x81'),'headers':_0x3b56db['options']['headers']||{},'body':_0x3b56db['options'][_0x5f72('0x72')]||{}};_0x8886b4(null,_0x39c3bd);});};AGIVertices['prototype']['googleDialogflow']=function(_0x5cd8dc,_0x170c22){scripts['googleDialogflow'](this[_0x5f72('0x11')]['uniqueid'],_0x5cd8dc[_0x5f72('0x82')],_0x5cd8dc[_0x5f72('0x62')],_0x5cd8dc['dialogflow_language']||'en')[_0x5f72('0x16')](function(_0x56a6a7){_0x170c22(null,_0x56a6a7);})['catch'](function(_0x2b4411){_0x170c22(_0x2b4411);});};AGIVertices['prototype'][_0x5f72('0x83')]=function(_0x5666eb,_0x5b1a94){scripts['googleDialogflowV2'](this[_0x5f72('0x11')]['uniqueid'],_0x5666eb['dialogflowV2_project_id'],_0x5666eb['client_email'],_0x5666eb['private_key'],_0x5666eb[_0x5f72('0x62')],_0x5666eb[_0x5f72('0x84')]||'en')[_0x5f72('0x16')](function(_0x2722e0){_0x5b1a94(null,_0x2722e0);})['catch'](function(_0x58232f){_0x5b1a94(_0x58232f);});};AGIVertices[_0x5f72('0x13')][_0x5f72('0x85')]=function(_0x162139,_0x1bf453){scripts['sestekNDA'](this[_0x5f72('0x11')],_0x162139)[_0x5f72('0x16')](function(_0x552bb9){_0x1bf453(null,_0x552bb9);})[_0x5f72('0x1d')](function(_0x12e4c3){_0x1bf453(_0x12e4c3);});};AGIVertices['prototype'][_0x5f72('0x86')]=function(_0x7c0325,_0x4357b0){scripts[_0x5f72('0x86')](_0x7c0325['key'],_0x7c0325['text'],_0x7c0325[_0x5f72('0x87')]||_0x5f72('0x64'),_0x7c0325['speed'])['then'](function(_0x3ee9be){_0x4357b0(null,_0x3ee9be);})[_0x5f72('0x1d')](function(_0x5b25de){_0x4357b0(_0x5b25de);});};AGIVertices['prototype']['ispeechASR']=function(_0x2fd743,_0x214b42,_0x348f8b){scripts[_0x5f72('0x88')](_0x214b42,_0x2fd743['key'],_0x2fd743[_0x5f72('0x89')]||_0x5f72('0x64'),this[_0x5f72('0x8a')](_0x2fd743[_0x5f72('0x8b')])?_0x2fd743[_0x5f72('0x8b')]:undefined)[_0x5f72('0x16')](function(_0x6e945a){_0x348f8b(null,_0x6e945a);})['catch'](function(_0x2697e0){_0x348f8b(_0x2697e0);});};AGIVertices[_0x5f72('0x13')][_0x5f72('0x8c')]=function(_0x71e01e,_0x48fcb5){scripts[_0x5f72('0x8c')](_0x71e01e[_0x5f72('0x8d')],_0x71e01e[_0x5f72('0x8e')],_0x71e01e[_0x5f72('0x8f')],_0x71e01e[_0x5f72('0x90')]||_0x5f72('0x91'),_0x71e01e[_0x5f72('0x62')],_0x71e01e['aws_text_type']||_0x5f72('0x62'))[_0x5f72('0x16')](function(_0x69d056){_0x48fcb5(null,_0x69d056);})[_0x5f72('0x1d')](function(_0x80d5bd){_0x48fcb5(_0x80d5bd);});};AGIVertices[_0x5f72('0x13')][_0x5f72('0x92')]=function(_0x4aad69,_0x10f3f8){scripts[_0x5f72('0x92')](this['channel'][_0x5f72('0x3d')],_0x4aad69['aws_access_key_id'],_0x4aad69[_0x5f72('0x8e')],_0x4aad69[_0x5f72('0x93')],_0x4aad69[_0x5f72('0x62')],_0x4aad69[_0x5f72('0x94')])[_0x5f72('0x16')](function(_0x3c6243){_0x10f3f8(null,_0x3c6243);})[_0x5f72('0x1d')](function(_0x516a6c){_0x10f3f8(_0x516a6c);});};AGIVertices['prototype']['googleASR']=function(_0x4123d9,_0xe9589,_0x166e1c){scripts['googleASR'](_0xe9589,_0x4123d9[_0x5f72('0x82')],_0x4123d9[_0x5f72('0x95')]||'en-US')['then'](function(_0x22a5ed){_0x166e1c(null,_0x22a5ed);})['catch'](function(_0x52de22){_0x166e1c(_0x52de22);});};AGIVertices[_0x5f72('0x13')]['tildeASR']=function(_0x61951a,_0x42ba29,_0x12fc33){scripts['tildeASR'](_0x42ba29,_0x61951a[_0x5f72('0x96')],_0x61951a[_0x5f72('0x97')],_0x61951a[_0x5f72('0x78')])[_0x5f72('0x16')](function(_0x5de456){_0x12fc33(null,_0x5de456);})['catch'](function(_0x5e6c2d){_0x12fc33(_0x5e6c2d);});};AGIVertices['prototype']['clear']=function(_0x2e5c8b){var _0x4781cd=_[_0x5f72('0x6e')](verticesWithRetry,_0x2e5c8b[_0x5f72('0x3f')])?_0x2e5c8b:_[_0x5f72('0x98')](_0x2e5c8b);for(var _0x20b398 in _0x4781cd){if(_0x4781cd[_0x5f72('0x99')](_0x20b398)){if(_0x4781cd[_0x20b398]&&_[_0x5f72('0x9a')](_0x4781cd[_0x20b398])){if(_[_0x5f72('0x6e')](recursiveMapAttributes,_0x20b398)){_0x4781cd[_0x20b398]=this[_0x5f72('0x9b')](_0x4781cd[_0x20b398]);}else{_0x4781cd[_0x20b398]=this['replaceAllVariables'](_0x4781cd[_0x20b398]);}}}}return _0x4781cd;};AGIVertices['prototype'][_0x5f72('0x9c')]=function(_0x11b286){for(var _0x49c211 in _0x11b286){if(_0x11b286[_0x5f72('0x99')](_0x49c211)){if(_[_0x5f72('0x9d')](_0x11b286[_0x49c211])){this[_0x5f72('0x9c')](_0x11b286[_0x49c211]);}else if(_['isArray'](_0x11b286[_0x49c211])){for(var _0x2bfc8d=0x0;_0x2bfc8d<_0x11b286[_0x49c211][_0x5f72('0x9e')];_0x2bfc8d++){this[_0x5f72('0x9c')](_0x11b286[_0x49c211][_0x2bfc8d]);}}else if(_[_0x5f72('0x9a')](_0x11b286[_0x49c211])){_0x11b286[_0x49c211]=this[_0x5f72('0x9f')](_0x11b286[_0x49c211]);}}}};AGIVertices['prototype'][_0x5f72('0xa0')]=function(_0x122fea,_0x28e334){for(var _0x16eeaa in _0x122fea){if(_0x122fea['hasOwnProperty'](_0x16eeaa)){if(_[_0x5f72('0x9d')](_0x122fea[_0x16eeaa])){if(!_[_0x5f72('0xa1')](_0x122fea[_0x16eeaa])){this[_0x5f72('0xa0')](_0x122fea[_0x16eeaa],util['format']('%s.%s',_0x28e334,_0x16eeaa));}}else if(_['isArray'](_0x122fea[_0x16eeaa])){for(var _0x1a23b3=0x0;_0x1a23b3<_0x122fea[_0x16eeaa][_0x5f72('0x9e')];_0x1a23b3++){this['saveRestApiResult'](_0x122fea[_0x16eeaa][_0x1a23b3],util['format'](_0x5f72('0xa2'),_0x28e334,_0x16eeaa+'['+_0x1a23b3+']'));}}else{if(!_[_0x5f72('0x4b')](_0x122fea[_0x16eeaa])){this[_0x5f72('0x11')][_0x5f72('0xa3')](util[_0x5f72('0x2d')]('%s.%s',_0x28e334,_0x16eeaa),_0x122fea[_0x16eeaa]);}}}}};AGIVertices[_0x5f72('0x13')][_0x5f72('0x9b')]=function(_0xd324f4){try{var _0x59633c=JSON[_0x5f72('0x73')](_0xd324f4);this['recursiveNodeIndex'](_0x59633c);return JSON[_0x5f72('0x7c')](_0x59633c);}catch(_0x188c0e){return this[_0x5f72('0x9f')](_0xd324f4);}};AGIVertices[_0x5f72('0x13')][_0x5f72('0x9f')]=function(_0x3a1834){var _0x11c846=_0x3a1834[_0x5f72('0xa4')]('{');for(var _0x50c3c8=0x1;_0x50c3c8<_0x11c846[_0x5f72('0x9e')];_0x50c3c8+=0x1){var _0x582da0=_0x11c846[_0x50c3c8][_0x5f72('0xa4')]('}');if(_0x582da0[_0x5f72('0x9e')]>0x1){_0x3a1834=_0x3a1834[_0x5f72('0xa5')]('{'+_0x582da0[0x0]+'}',this['channel']['getVariable'](_0x582da0[0x0])[_0x5f72('0xa6')]||_0x582da0[0x0]);}}if(_0x11c846['length']===0x1){return _0x3a1834[_0x5f72('0x53')]();}return this[_0x5f72('0x9f')](_0x3a1834);};AGIVertices['prototype']['getAndSetVariable']=function(_0x9d0259,_0x266204){var _0x5587a3=this[_0x5f72('0x11')][_0x5f72('0xa7')](_0x9d0259);if(_0x5587a3['result']===-0x1){return _0x5587a3;}logger[_0x5f72('0x32')](util[_0x5f72('0x2d')]('The\x20\x22%s\x22\x20variable\x20value\x20is:\x20%s',_0x266204,_0x5587a3[_0x5f72('0xa6')]));return this[_0x5f72('0x11')][_0x5f72('0xa3')](_0x266204,_0x5587a3[_0x5f72('0xa6')]);};AGIVertices['prototype'][_0x5f72('0x8a')]=function(_0x180f4f){return _0x180f4f&&_0x180f4f!=='0'&&_0x180f4f!=='-1'&&_0x180f4f!=='';};AGIVertices[_0x5f72('0x13')][_0x5f72('0xa8')]=function(_0x24a65c){this['createSquareDetailsReport'][_0x5f72('0x77')](this,_0x24a65c,'-');_0x24a65c[_0x5f72('0xa9')]=_0x24a65c['maxRetry'];return{'code':0xc8,'result':'-'};};AGIVertices['prototype']['mrcpsynth']=function(_0x2898b3){logger[_0x5f72('0x32')](util[_0x5f72('0x2d')](_0x5f72('0xaa'),_0x2898b3[_0x5f72('0x3e')]));if(!this['isConfigured'](_0x2898b3['text'])){return this[_0x5f72('0x11')][_0x5f72('0xab')](_0x5f72('0xac'));}var _0x4bbdc6='\x22'+_0x2898b3['text']+'\x22';if(this[_0x5f72('0x8a')](_0x2898b3[_0x5f72('0xad')])){_0x4bbdc6+=','+_0x2898b3[_0x5f72('0xad')];}var _0x1525fa=this[_0x5f72('0x11')][_0x5f72('0x5e')]('MRCPSynth',_0x4bbdc6);if(_0x1525fa[_0x5f72('0xae')]===-0x1){return _0x1525fa;}return this[_0x5f72('0x11')]['noop'](util[_0x5f72('0x2d')](_0x5f72('0xaf'),_0x4bbdc6));};AGIVertices[_0x5f72('0x13')][_0x5f72('0xb0')]=function(_0x4e7f9c){logger[_0x5f72('0x32')](util[_0x5f72('0x2d')](_0x5f72('0xb1'),_0x4e7f9c[_0x5f72('0x3e')]));if(!this[_0x5f72('0x8a')](_0x4e7f9c[_0x5f72('0xb2')])){return this[_0x5f72('0x11')][_0x5f72('0xab')]('no\x20grammar\x20configured');}var _0x40f31b=_0x4e7f9c[_0x5f72('0xb2')];if(this[_0x5f72('0x8a')](_0x4e7f9c['options'])){_0x40f31b+=','+_0x4e7f9c[_0x5f72('0xad')];}var _0x36445c=this[_0x5f72('0x11')][_0x5f72('0x5e')](_0x5f72('0xb3'),_0x40f31b);if(_0x36445c['result']===-0x1){return _0x36445c;}var _0x2c0ecf=this[_0x5f72('0xb4')]('RECOG_CONFIDENCE()',_0x5f72('0xb5'));if(_0x2c0ecf[_0x5f72('0xae')]===-0x1){return _0x2c0ecf;}var _0x4691e9=this[_0x5f72('0xb4')]('RECOG_INPUT()',_0x5f72('0xb6'));if(_0x4691e9[_0x5f72('0xae')]===-0x1){return _0x4691e9;}var _0x327bd7=this['getAndSetVariable'](_0x5f72('0xb7'),_0x5f72('0xb8'));if(_0x327bd7[_0x5f72('0xae')]===-0x1){return _0x327bd7;}return this[_0x5f72('0x11')]['noop'](util[_0x5f72('0x2d')]('Executed\x20command\x20MRCPRecog\x20%s',_0x40f31b));};AGIVertices[_0x5f72('0x13')][_0x5f72('0x9')]=function(_0x23daa6){logger[_0x5f72('0x32')](util['format'](_0x5f72('0xb9'),_0x23daa6[_0x5f72('0x3e')]));return this[_0x5f72('0x11')][_0x5f72('0x9')]([_0x23daa6[_0x5f72('0xba')],_0x23daa6[_0x5f72('0xbb')]]);};AGIVertices[_0x5f72('0x13')]['answer']=function(_0x38a244){logger[_0x5f72('0x32')](util[_0x5f72('0x2d')]('Enter\x20in\x20ANSWER\x20(%s)\x20block',_0x38a244[_0x5f72('0x3e')]));if(this[_0x5f72('0x8a')](_0x38a244[_0x5f72('0x6c')])){logger['info'](util[_0x5f72('0x2d')](_0x5f72('0xbc'),_0x38a244[_0x5f72('0x6c')]));var _0x5a5964=this[_0x5f72('0x11')]['wait'](_0x38a244[_0x5f72('0x6c')]);if(_0x5a5964[_0x5f72('0xae')]===-0x1){return _0x5a5964;}}return this['channel'][_0x5f72('0xbd')]();};AGIVertices['prototype'][_0x5f72('0x52')]=function(_0x49cf65){logger['info'](util['format']('Enter\x20in\x20CALLBACK\x20(%s)\x20block',_0x49cf65[_0x5f72('0x3e')]));if(!this[_0x5f72('0x8a')](_0x49cf65[_0x5f72('0x50')])){return this[_0x5f72('0x11')][_0x5f72('0x38')](_0x49cf65,_0x5f72('0xbe'));}_0x49cf65[_0x5f72('0x51')]=moment();if(this['isConfigured'](_0x49cf65[_0x5f72('0xbf')])){_0x49cf65[_0x5f72('0x51')]=moment()[_0x5f72('0xc0')](_0x49cf65[_0x5f72('0xbf')],_0x5f72('0xc1'));}if(!this[_0x5f72('0x8a')](_0x49cf65[_0x5f72('0xc2')])){_0x49cf65[_0x5f72('0xc2')]=0x2;}this['createCmContact']['sync'](this,_0x49cf65);return this[_0x5f72('0x11')]['noop'](util[_0x5f72('0x2d')](_0x5f72('0xc3'),_0x49cf65[_0x5f72('0x4f')],_0x49cf65[_0x5f72('0x50')],_0x49cf65[_0x5f72('0x51')]));};AGIVertices[_0x5f72('0x13')][_0x5f72('0xc4')]=function(_0x431927){logger['info'](util[_0x5f72('0x2d')](_0x5f72('0xc5'),_0x431927[_0x5f72('0x3e')]));var _0x28bd0d=this['channel'][_0x5f72('0x5e')](_0x431927['application'],_0x431927[_0x5f72('0xad')]);if(_0x28bd0d['result']===-0x1){return _0x28bd0d;}return this[_0x5f72('0x11')][_0x5f72('0xab')](util['format'](_0x5f72('0xc6'),_0x431927['application'],_0x431927[_0x5f72('0xad')]));};AGIVertices['prototype'][_0x5f72('0xc7')]=function(_0x3634f7){logger[_0x5f72('0x32')](util[_0x5f72('0x2d')](_0x5f72('0xc8'),_0x3634f7[_0x5f72('0x3e')]));if(!this[_0x5f72('0x8a')](_0x3634f7['text'])){return this[_0x5f72('0x11')][_0x5f72('0xab')](_0x5f72('0xac'));}var _0x218a6c='\x22'+_0x3634f7[_0x5f72('0x62')]+'\x22';if(this[_0x5f72('0x8a')](_0x3634f7[_0x5f72('0xad')])){_0x218a6c+=','+_0x3634f7[_0x5f72('0xad')];}var _0x3c6ebf=this[_0x5f72('0x11')][_0x5f72('0x5e')](_0x5f72('0xc9'),_0x218a6c);if(_0x3c6ebf[_0x5f72('0xae')]===-0x1){return _0x3c6ebf;}return this[_0x5f72('0x11')]['noop'](util[_0x5f72('0x2d')](_0x5f72('0xaf'),_0x218a6c));};AGIVertices['prototype']['sestektts']=function(_0x24918d){logger[_0x5f72('0x32')](util['format'](_0x5f72('0xca'),_0x24918d['label']));if(!this[_0x5f72('0x8a')](_0x24918d[_0x5f72('0x62')])){return this[_0x5f72('0x11')]['noop'](_0x5f72('0xac'));}var _0x1c8278='\x22'+_0x24918d[_0x5f72('0x62')]+'\x22';if(this[_0x5f72('0x8a')](_0x24918d[_0x5f72('0xad')])){_0x1c8278+=','+_0x24918d[_0x5f72('0xad')];}var _0x2f2fda=this[_0x5f72('0x11')][_0x5f72('0x5e')](_0x5f72('0xc9'),_0x1c8278);if(_0x2f2fda[_0x5f72('0xae')]===-0x1){return _0x2f2fda;}return this['channel'][_0x5f72('0xab')](util[_0x5f72('0x2d')](_0x5f72('0xaf'),_0x1c8278));};AGIVertices[_0x5f72('0x13')]['lumenvoxasr']=function(_0x1df638){logger[_0x5f72('0x32')](util[_0x5f72('0x2d')](_0x5f72('0xcb'),_0x1df638[_0x5f72('0x3e')]));if(!this[_0x5f72('0x8a')](_0x1df638[_0x5f72('0xb2')])){return this[_0x5f72('0x11')][_0x5f72('0xab')](_0x5f72('0xcc'));}var _0x1ec112=_0x1df638['grammar'];if(this['isConfigured'](_0x1df638['options'])){_0x1ec112+=','+_0x1df638[_0x5f72('0xad')];}var _0x5a427f=this[_0x5f72('0x11')][_0x5f72('0x5e')](_0x5f72('0xb3'),_0x1ec112);if(_0x5a427f['result']===-0x1){return _0x5a427f;}var _0x1235ca=this['getAndSetVariable'](_0x5f72('0xcd'),_0x5f72('0xce'));if(_0x1235ca[_0x5f72('0xae')]===-0x1){return _0x1235ca;}var _0x3e1f6f=this['getAndSetVariable']('RECOG_INPUT()',_0x5f72('0xcf'));if(_0x3e1f6f['result']===-0x1){return _0x3e1f6f;}var _0x110f4b=this[_0x5f72('0xb4')]('RECOG_INSTANCE()','LUMENVOX_ASR_INSTANCE');if(_0x110f4b[_0x5f72('0xae')]===-0x1){return _0x110f4b;}return this[_0x5f72('0x11')][_0x5f72('0xab')](util['format']('Executed\x20command\x20MRCPRecog\x20%s',_0x1ec112));};AGIVertices[_0x5f72('0x13')][_0x5f72('0xd0')]=function(_0x572d7f){logger['info'](util['format'](_0x5f72('0xd1'),_0x572d7f[_0x5f72('0x3e')]));if(!this['isConfigured'](_0x572d7f[_0x5f72('0xb2')])){return this[_0x5f72('0x11')]['noop']('no\x20grammar\x20configured');}var _0x3b9dd0=_0x572d7f[_0x5f72('0xb2')];if(this[_0x5f72('0x8a')](_0x572d7f[_0x5f72('0xad')])){_0x3b9dd0+=','+_0x572d7f[_0x5f72('0xad')];}var _0xa14494=this['channel'][_0x5f72('0x5e')](_0x5f72('0xb3'),_0x3b9dd0);if(_0xa14494[_0x5f72('0xae')]===-0x1){return _0xa14494;}var _0x23c09c=this['getAndSetVariable'](_0x5f72('0xcd'),'SESTEK_ASR_CONFIDENCE');if(_0x23c09c[_0x5f72('0xae')]===-0x1){return _0x23c09c;}var _0x10a642=this[_0x5f72('0xb4')](_0x5f72('0xd2'),_0x5f72('0xd3'));if(_0x10a642[_0x5f72('0xae')]===-0x1){return _0x10a642;}var _0x20d01c=this['getAndSetVariable'](_0x5f72('0xb7'),_0x5f72('0xd4'));if(_0x20d01c[_0x5f72('0xae')]===-0x1){return _0x20d01c;}return this[_0x5f72('0x11')][_0x5f72('0xab')](util[_0x5f72('0x2d')](_0x5f72('0xd5'),_0x3b9dd0));};AGIVertices[_0x5f72('0x13')][_0x5f72('0xd6')]=function(_0x109177){logger[_0x5f72('0x32')](util[_0x5f72('0x2d')](_0x5f72('0xd7'),_0x109177[_0x5f72('0x3e')]));if(!this[_0x5f72('0x8a')](_0x109177['odbc_id'])){return this['channel'][_0x5f72('0x38')](_0x109177,_0x5f72('0xd8'));}var _0x208143=this[_0x5f72('0x1b')][_0x5f72('0x77')](this,_0x109177[_0x5f72('0xd9')]);if(!_0x208143){return this['channel']['error'](_0x109177,_0x5f72('0xda'));}if(!this[_0x5f72('0x8a')](_0x109177[_0x5f72('0x34')])){return this[_0x5f72('0x11')]['error'](_0x109177,'no\x20query\x20configured');}var _0x2b9bf8=_0x109177[_0x5f72('0x34')][_0x5f72('0x5f')](/(\r\n|\n|\r)/gm,'\x20');this['channel'][_0x5f72('0xab')](util[_0x5f72('0x2d')](_0x5f72('0xdb'),_0x2b9bf8));var _0x1e019c=this[_0x5f72('0x2f')]['sync'](this,_0x208143,_0x2b9bf8);this[_0x5f72('0x3c')][_0x5f72('0x77')](this,_0x109177,_0x2b9bf8);if(!this[_0x5f72('0x8a')](_0x109177[_0x5f72('0xdc')])){return this['channel'][_0x5f72('0xab')]('no\x20variable\x20selected\x20for\x20the\x20result');}var _0x5e1a07=this[_0x5f72('0xa7')][_0x5f72('0x77')](this,_0x109177[_0x5f72('0xdc')]);if(!_0x5e1a07){return this[_0x5f72('0x11')][_0x5f72('0x38')](_0x109177,'no\x20variable\x20found');}var _0x50aa1b=this;_0x1e019c[_0x5f72('0xdd')](function(_0x1d149c,_0x4d18b4){Object['keys'](_0x1d149c)[_0x5f72('0xdd')](function(_0x44286c){_0x50aa1b[_0x5f72('0x11')]['setVariable'](util['format'](_0x5f72('0xde'),_0x5e1a07,_0x4d18b4,_0x44286c),_0x1d149c[_0x44286c]);});});this[_0x5f72('0x11')][_0x5f72('0xa3')](util['format'](_0x5f72('0xdf'),_0x5e1a07),_0x1e019c[_0x5f72('0x9e')]);return this[_0x5f72('0x11')][_0x5f72('0xab')](util['format'](_0x5f72('0xe0'),_0x5e1a07));};AGIVertices[_0x5f72('0x13')][_0x5f72('0xe1')]=function(_0x54d6da){logger['debug'](util['format'](_0x5f72('0xe2'),_0x54d6da['label']));if(!this['isConfigured'](_0x54d6da['sip_id'])){return this[_0x5f72('0x11')][_0x5f72('0x38')](_0x54d6da,'no\x20user\x20selected');}var _0x3655de=this[_0x5f72('0x1e')]['sync'](this,_0x54d6da[_0x5f72('0xe3')]);if(!_0x3655de){return this['channel'][_0x5f72('0x38')](_0x54d6da,_0x5f72('0xe4'));}var _0x5233a=this[_0x5f72('0x11')][_0x5f72('0x5e')](_0x5f72('0xe5'),[util[_0x5f72('0x2d')](_0x5f72('0xe6'),_0x3655de),_0x54d6da['timeout'],_0x54d6da[_0x5f72('0xe7')],_0x54d6da['url']]);if(_0x5233a[_0x5f72('0xae')]===-0x1){return _0x5233a;}return this['channel'][_0x5f72('0xab')](util[_0x5f72('0x2d')](_0x5f72('0xe8'),_0x5f72('0xe5')));};AGIVertices[_0x5f72('0x13')]['dialogflow']=function(_0x5eb8f3){logger['info'](util[_0x5f72('0x2d')](_0x5f72('0xe9'),_0x5eb8f3[_0x5f72('0x3e')]));if(!this[_0x5f72('0x8a')](_0x5eb8f3[_0x5f72('0x82')])){return this[_0x5f72('0x11')][_0x5f72('0xab')](_0x5f72('0xea'));}if(!this[_0x5f72('0x8a')](_0x5eb8f3[_0x5f72('0x62')])){return this['channel']['noop'](_0x5f72('0xac'));}this[_0x5f72('0x11')][_0x5f72('0xeb')]=!![];this[_0x5f72('0x3c')](_0x5eb8f3);this[_0x5f72('0x49')](_0x5eb8f3[_0x5f72('0x62')],'in','','');this[_0x5f72('0x11')][_0x5f72('0xab')](util[_0x5f72('0x2d')](_0x5f72('0xec'),_0x5eb8f3[_0x5f72('0x62')]));var _0x2658e1=this['googleDialogflow'][_0x5f72('0x77')](this,_0x5eb8f3);if(_0x2658e1){for(var _0x797437 in _0x2658e1){if(_0x2658e1[_0x5f72('0x99')](_0x797437)){this[_0x5f72('0x11')]['setVariable'](util[_0x5f72('0x2d')](_0x5f72('0xed'),_0x797437['toUpperCase']()),_0x2658e1[_0x797437]);}}this['createSquareMessage'](_0x2658e1['speech'],'out',_0x5f72('0xee'),'');return this[_0x5f72('0x11')][_0x5f72('0xab')](util[_0x5f72('0x2d')](_0x5f72('0xef'),_0x2658e1[_0x5f72('0xf0')]));}return this['channel'][_0x5f72('0x38')](_0x5eb8f3,'Dialogflow\x20is\x20unreachable');};AGIVertices[_0x5f72('0x13')][_0x5f72('0xf1')]=function(_0x18149c){logger['info'](util[_0x5f72('0x2d')](_0x5f72('0xf2'),_0x18149c[_0x5f72('0x3e')]));if(!this[_0x5f72('0x8a')](_0x18149c[_0x5f72('0xf3')])){return this['channel'][_0x5f72('0xab')]('no\x20project_id\x20configured');}if(!this[_0x5f72('0x8a')](_0x18149c['client_email'])){return this[_0x5f72('0x11')]['noop'](_0x5f72('0xf4'));}if(!this[_0x5f72('0x8a')](_0x18149c[_0x5f72('0xf5')])){return this[_0x5f72('0x11')][_0x5f72('0xab')](_0x5f72('0xf6'));}if(!this[_0x5f72('0x8a')](_0x18149c[_0x5f72('0x84')])){return this['channel']['noop'](_0x5f72('0xf7'));}if(!this[_0x5f72('0x8a')](_0x18149c[_0x5f72('0x62')])){return this[_0x5f72('0x11')][_0x5f72('0xab')](_0x5f72('0xac'));}this[_0x5f72('0x11')][_0x5f72('0xeb')]=!![];this['createSquareDetailsReport'](_0x18149c);this[_0x5f72('0x49')](_0x18149c[_0x5f72('0x62')],'in','','');this[_0x5f72('0x11')][_0x5f72('0xab')](util[_0x5f72('0x2d')]('Trying\x20DialogflowV2:\x20%s',_0x18149c[_0x5f72('0x62')]));var _0x2b03dd=this[_0x5f72('0x83')]['sync'](this,_0x18149c);if(_0x2b03dd){for(var _0x2d7f99 in _0x2b03dd){if(_0x2b03dd['hasOwnProperty'](_0x2d7f99)){if(_0x2d7f99!=='providerResponse'){this['channel']['setVariable'](util[_0x5f72('0x2d')](_0x5f72('0xed'),_0x2d7f99['toUpperCase']()),_0x2b03dd[_0x2d7f99]);}}}this[_0x5f72('0x49')](_0x2b03dd[_0x5f72('0xf0')],_0x5f72('0xf8'),_0x5f72('0xf1'),_0x2b03dd[_0x5f72('0xf9')]);return this[_0x5f72('0x11')]['noop'](util[_0x5f72('0x2d')]('DialogflowV2\x20Result\x20%s',_0x2b03dd[_0x5f72('0xf0')]));}return this[_0x5f72('0x11')]['error'](_0x18149c,_0x5f72('0xfa'));};AGIVertices['prototype'][_0x5f72('0xfb')]=function(_0x1a07b5){logger['info'](util[_0x5f72('0x2d')](_0x5f72('0xfc'),_0x1a07b5[_0x5f72('0x3e')]));if(!this['isConfigured'](_0x1a07b5[_0x5f72('0xfd')])){return this[_0x5f72('0x11')][_0x5f72('0xab')](_0x5f72('0xfe'));}if(!this[_0x5f72('0x8a')](_0x1a07b5[_0x5f72('0xff')])){return this['channel'][_0x5f72('0xab')]('no\x20username\x20configured');}if(!this['isConfigured'](_0x1a07b5[_0x5f72('0x100')])){return this[_0x5f72('0x11')][_0x5f72('0xab')](_0x5f72('0x101'));}if(!this[_0x5f72('0x8a')](_0x1a07b5[_0x5f72('0x102')])){return this['channel']['noop'](_0x5f72('0xac'));}this[_0x5f72('0x11')][_0x5f72('0xeb')]=!![];this[_0x5f72('0x3c')](_0x1a07b5);this[_0x5f72('0x49')](_0x1a07b5[_0x5f72('0x62')],'in','','');this[_0x5f72('0x11')][_0x5f72('0xab')](util['format'](_0x5f72('0x103'),_0x1a07b5[_0x5f72('0x62')]));var _0x4d83c6=this[_0x5f72('0x85')][_0x5f72('0x77')](this,_0x1a07b5);if(_0x4d83c6){for(var _0x40ed22 in _0x4d83c6){if(_0x4d83c6[_0x5f72('0x99')](_0x40ed22)){this[_0x5f72('0x11')]['setVariable'](util['format']('SESTEK_NDA_%s',_0x40ed22[_0x5f72('0x71')]()),_0x4d83c6[_0x40ed22]);}}this['createSquareMessage'](_0x4d83c6[_0x5f72('0xf0')],_0x5f72('0xf8'),_0x5f72('0xfb'),'');if(_0x4d83c6[_0x5f72('0x104')]){this[_0x5f72('0x11')]['noop'](util[_0x5f72('0x2d')](_0x5f72('0x105'),_0x4d83c6['audiofile']));var _0x9681ae=this['channel'][_0x5f72('0x106')](_0x4d83c6[_0x5f72('0x104')]);try{fs[_0x5f72('0x107')](_0x4d83c6[_0x5f72('0x104')]+'.wav');}catch(_0x37ea9a){logger['error'](_0x37ea9a);}return _0x9681ae;}else{return this['channel'][_0x5f72('0xab')](util[_0x5f72('0x2d')]('SestekNDA\x20Result\x20%s',_0x4d83c6[_0x5f72('0xf0')]));}}return this[_0x5f72('0x11')]['error'](_0x1a07b5,_0x5f72('0x108'));};AGIVertices[_0x5f72('0x13')]['end']=function(_0x520e42){logger['info'](util[_0x5f72('0x2d')](_0x5f72('0x109'),_0x520e42['label']));return this['channel'][_0x5f72('0xab')](_0x5f72('0x10a'));};AGIVertices[_0x5f72('0x13')]['ext_dial']=function(_0x450b06){logger[_0x5f72('0x32')](util[_0x5f72('0x2d')](_0x5f72('0x10b'),_0x450b06[_0x5f72('0x3e')]));var _0x1971c2='';if(_0x450b06[_0x5f72('0x10c')]){if(!this[_0x5f72('0x8a')](_0x450b06['trunk_id'])){return this[_0x5f72('0x11')][_0x5f72('0x38')](_0x450b06,_0x5f72('0x10d'));}else{var _0x3f8ab8=parseInt(_0x450b06[_0x5f72('0x10c')],0xa);if(isNaN(_0x3f8ab8)){_0x1971c2=_0x450b06[_0x5f72('0x10c')];}else{_0x1971c2=this[_0x5f72('0x20')][_0x5f72('0x77')](this,_0x450b06['trunk_id']);if(!_0x1971c2){return this[_0x5f72('0x11')][_0x5f72('0x38')](_0x450b06,'no\x20trunk\x20found');}}}}else if(_0x450b06[_0x5f72('0x10e')]){_0x1971c2=_0x450b06[_0x5f72('0x10e')];}else{return this[_0x5f72('0x11')][_0x5f72('0x38')](_0x450b06,_0x5f72('0x10d'));}var _0x4d9e8e=this['channel'][_0x5f72('0x5e')](_0x5f72('0xe5'),[util[_0x5f72('0x2d')](_0x5f72('0x10f'),_0x1971c2,_0x450b06[_0x5f72('0x4f')]),_0x450b06[_0x5f72('0x6c')],_0x450b06['opts'],_0x450b06[_0x5f72('0x7a')]]);if(_0x4d9e8e['result']===-0x1){return _0x4d9e8e;}return this['channel'][_0x5f72('0xab')](util[_0x5f72('0x2d')](_0x5f72('0xe8'),_0x5f72('0xe5')));};AGIVertices[_0x5f72('0x13')][_0x5f72('0x110')]=function(_0x104d10){logger['info'](util[_0x5f72('0x2d')]('Enter\x20in\x20FINALLY\x20(%s)\x20block',_0x104d10[_0x5f72('0x3e')]));return this[_0x5f72('0x11')][_0x5f72('0xab')](_0x5f72('0x110'));};AGIVertices['prototype'][_0x5f72('0xf')]=function(_0x99fce2){logger[_0x5f72('0x32')](util[_0x5f72('0x2d')](_0x5f72('0x111'),_0x99fce2['label']));if(_0x99fce2[_0x5f72('0xa9')]===0x0){return this[_0x5f72('0xa8')](_0x99fce2);}_0x99fce2[_0x5f72('0xa9')]-=0x1;if(!this[_0x5f72('0x8a')](_0x99fce2[_0x5f72('0x112')])){return this[_0x5f72('0x11')]['error'](_0x99fce2,_0x5f72('0x113'));}var _0x197efa=this[_0x5f72('0x22')][_0x5f72('0x77')](this,_0x99fce2['file_id']);if(!_0x197efa){return this[_0x5f72('0x11')][_0x5f72('0x38')](_0x99fce2,_0x5f72('0x114'));}if(!this[_0x5f72('0x8a')](_0x99fce2[_0x5f72('0xdc')])){return this[_0x5f72('0x11')][_0x5f72('0x38')](_0x5f72('0x115'));}var _0x3daaa0=this[_0x5f72('0x11')][_0x5f72('0x116')](_0x197efa,_0x99fce2[_0x5f72('0x117')],_0x99fce2[_0x5f72('0x118')]);var _0xd31ac3=_0x3daaa0[_0x5f72('0xae')]?_0x3daaa0[_0x5f72('0xae')]['toString']():'';logger[_0x5f72('0x32')](_0x5f72('0x119'),JSON[_0x5f72('0x7c')](_0x3daaa0));if(_0x3daaa0[_0x5f72('0xae')]===-0x1){this[_0x5f72('0x3c')]['sync'](this,_0x99fce2,_0xd31ac3);return _0x3daaa0;}else if(_0x3daaa0[_0x5f72('0xa6')]===_0x5f72('0x6c')){_0x3daaa0[_0x5f72('0xae')]=_0xd31ac3[_0x5f72('0x9e')]>=parseInt(_0x99fce2[_0x5f72('0x11a')])?'x':'i';}else{_0x3daaa0[_0x5f72('0xae')]=_0xd31ac3[_0x5f72('0x9e')]>=parseInt(_0x99fce2[_0x5f72('0x11a')])&&_0xd31ac3[_0x5f72('0x9e')]<=parseInt(_0x99fce2[_0x5f72('0x118')])?'x':'i';}var _0x5b194b=this['getVariable']['sync'](this,_0x99fce2[_0x5f72('0xdc')]);if(!_0x5b194b){return this[_0x5f72('0x11')][_0x5f72('0x38')](_0x99fce2,_0x5f72('0x11b'));}this[_0x5f72('0x11')][_0x5f72('0xa3')](_0x5b194b,_0xd31ac3);if(this[_0x5f72('0x8a')](_0x99fce2[_0x5f72('0x11c')])){var _0x35042a=parseInt(_0x99fce2['hiddendigitsnum'],0xa);var _0x3e66bb=rs[_0x5f72('0x11d')]({'charset':'*','length':_0x35042a});var _0x132b50=_0xd31ac3[_0x5f72('0x9e')];if(_0x132b50>0x0){if(_0x132b50>_0x35042a){this[_0x5f72('0x3c')][_0x5f72('0x77')](this,_0x99fce2,_0x99fce2[_0x5f72('0x11e')]===_0x5f72('0x11f')?_0x3e66bb+_0xd31ac3[_0x5f72('0x120')](_0x35042a):_0xd31ac3[_0x5f72('0x120')](0x0,_0x132b50-_0x35042a)+_0x3e66bb);}else{this[_0x5f72('0x3c')][_0x5f72('0x77')](this,_0x99fce2,rs[_0x5f72('0x11d')]({'charset':'*','length':_0x132b50}));}}else{this['createSquareDetailsReport'][_0x5f72('0x77')](this,_0x99fce2,'');}}else{this['createSquareDetailsReport'][_0x5f72('0x77')](this,_0x99fce2,_0xd31ac3);}return _0x3daaa0;};AGIVertices[_0x5f72('0x13')][_0x5f72('0x10')]=function(_0x4f96bc){logger[_0x5f72('0x32')](util['format'](_0x5f72('0x121'),_0x4f96bc['label']));return this[_0x5f72('0xf')](_0x4f96bc);};AGIVertices['prototype'][_0x5f72('0x122')]=function(_0x5870f5){logger['info'](util['format'](_0x5f72('0x123'),_0x5870f5[_0x5f72('0x3e')]));this['createSquareDetailsReport'][_0x5f72('0x77')](this,_0x5870f5,_0x5870f5['goalname']);return this['channel']['noop'](util['format'](_0x5f72('0x124'),_0x5870f5[_0x5f72('0x125')]));};AGIVertices[_0x5f72('0x13')][_0x5f72('0x126')]=function(_0x46aae4){logger[_0x5f72('0x32')](util[_0x5f72('0x2d')](_0x5f72('0x127'),_0x46aae4['label']));if(!this[_0x5f72('0x8a')](_0x46aae4[_0x5f72('0x8d')])||!this[_0x5f72('0x8a')](_0x46aae4[_0x5f72('0x8e')])){return this[_0x5f72('0x11')][_0x5f72('0xab')](_0x5f72('0x128'));}if(!this['isConfigured'](_0x46aae4[_0x5f72('0x62')])){return this[_0x5f72('0x11')][_0x5f72('0xab')](_0x5f72('0xac'));}this[_0x5f72('0x11')][_0x5f72('0xab')](util['format'](_0x5f72('0x129'),_0x46aae4['text']));var _0x3dffcd=this[_0x5f72('0x8c')][_0x5f72('0x77')](this,_0x46aae4);if(_0x3dffcd){this[_0x5f72('0x11')][_0x5f72('0xab')](util[_0x5f72('0x2d')](_0x5f72('0x12a'),_0x3dffcd));var _0x52db9a=this[_0x5f72('0x11')][_0x5f72('0x106')](_0x3dffcd);try{fs[_0x5f72('0x107')](_0x3dffcd+_0x5f72('0x12b'));}catch(_0x45198c){logger[_0x5f72('0x38')](_0x45198c);}return _0x52db9a;}return this[_0x5f72('0x11')][_0x5f72('0x38')](_0x46aae4,_0x5f72('0x12c'));};AGIVertices[_0x5f72('0x13')]['awslex']=function(_0x5bf96b){logger[_0x5f72('0x32')](util[_0x5f72('0x2d')](_0x5f72('0x12d'),_0x5bf96b[_0x5f72('0x3e')]));if(!this['isConfigured'](_0x5bf96b[_0x5f72('0x8d')])||!this[_0x5f72('0x8a')](_0x5bf96b['aws_secret_access_key'])){return this[_0x5f72('0x11')]['noop']('no\x20valid\x20credentials\x20configured');}if(!this[_0x5f72('0x8a')](_0x5bf96b[_0x5f72('0x94')])){return this[_0x5f72('0x11')][_0x5f72('0xab')]('no\x20bot\x20name\x20configured');}if(!this['isConfigured'](_0x5bf96b[_0x5f72('0x62')])){return this['channel'][_0x5f72('0xab')](_0x5f72('0xac'));}this[_0x5f72('0x11')][_0x5f72('0xeb')]=!![];this[_0x5f72('0x3c')](_0x5bf96b);this[_0x5f72('0x49')](_0x5bf96b[_0x5f72('0x62')],'in','','');this[_0x5f72('0x11')][_0x5f72('0xab')](util[_0x5f72('0x2d')](_0x5f72('0x12e'),_0x5bf96b['text']));var _0x5b0e52=this[_0x5f72('0x92')][_0x5f72('0x77')](this,_0x5bf96b);if(_0x5b0e52){for(var _0xdd9d3f in _0x5b0e52){if(_0x5b0e52[_0x5f72('0x99')](_0xdd9d3f)&&_['isString'](_0x5b0e52[_0xdd9d3f])){this['channel'][_0x5f72('0xa3')](util['format']('AWS_LEX_%s',_0xdd9d3f[_0x5f72('0x71')]()),_0x5b0e52[_0xdd9d3f]);}}if(_['isNil'](_0x5b0e52[_0x5f72('0x80')])){return this[_0x5f72('0x11')]['noop'](_0x5f72('0x12f'));}else{this[_0x5f72('0x49')](_0x5b0e52['message'],_0x5f72('0xf8'),_0x5f72('0x130'),'');return this[_0x5f72('0x11')][_0x5f72('0xab')](util[_0x5f72('0x2d')](_0x5f72('0x131'),_0x5b0e52[_0x5f72('0x80')]));}}return this[_0x5f72('0x11')][_0x5f72('0x38')](_0x5bf96b,_0x5f72('0x132'));};AGIVertices[_0x5f72('0x13')]['googleasr']=function(_0x5cff23){logger['info'](util[_0x5f72('0x2d')]('Enter\x20in\x20GOOGLEASR\x20(%s)\x20block\x20%s',_0x5cff23[_0x5f72('0x3e')],_0x5cff23[_0x5f72('0x6c')]));if(!this[_0x5f72('0x8a')](_0x5cff23[_0x5f72('0x82')])){return this[_0x5f72('0x11')][_0x5f72('0xab')](_0x5f72('0xea'));}var _0x3bfb6d=_0x5f72('0x133');var _0x40242f=util[_0x5f72('0x2d')](_0x5f72('0x134'),FILES_PATH,rs[_0x5f72('0x11d')](0x4));var _0x3f2543=util[_0x5f72('0x2d')]('%s.%s',_0x40242f,_0x3bfb6d);var _0x3ae2f5=!![];if(_0x5cff23['beep']===_0x5f72('0x135')){_0x3ae2f5=![];}var _0x157b22=this[_0x5f72('0x11')][_0x5f72('0x136')](_0x40242f,_0x3bfb6d,_0x5cff23[_0x5f72('0x137')],_0x5cff23[_0x5f72('0x6c')],undefined,_0x3ae2f5);if(_0x157b22[_0x5f72('0xae')]!==-0x1){this[_0x5f72('0x11')][_0x5f72('0xab')](util[_0x5f72('0x2d')](_0x5f72('0x138'),_0x3f2543));var _0x264633=this[_0x5f72('0x139')][_0x5f72('0x77')](this,_0x5cff23,_0x3f2543);if(_0x264633){for(var _0xd32c3 in _0x264633){if(_0x264633['hasOwnProperty'](_0xd32c3)){this[_0x5f72('0x11')][_0x5f72('0xa3')](util[_0x5f72('0x2d')](_0x5f72('0x13a'),_0xd32c3[_0x5f72('0x71')]()),_0x264633[_0xd32c3]);}}return this[_0x5f72('0x11')][_0x5f72('0xab')](util[_0x5f72('0x2d')](_0x5f72('0x13b'),JSON[_0x5f72('0x7c')](_0x264633)));}}return _0x157b22;};AGIVertices[_0x5f72('0x13')]['tildeasr']=function(_0x1a6bf6){logger[_0x5f72('0x32')](util['format'](_0x5f72('0x13c'),_0x1a6bf6[_0x5f72('0x3e')]));if(!this[_0x5f72('0x8a')](_0x1a6bf6[_0x5f72('0x96')])){return this[_0x5f72('0x11')][_0x5f72('0xab')](_0x5f72('0x13d'));}if(!this[_0x5f72('0x8a')](_0x1a6bf6[_0x5f72('0x97')])){return this[_0x5f72('0x11')][_0x5f72('0xab')](_0x5f72('0x13e'));}var _0x26dbc6=_0x5f72('0x133');var _0x3fe97d=util[_0x5f72('0x2d')](_0x5f72('0x134'),FILES_PATH,rs['generate'](0x4));var _0x314ead=util[_0x5f72('0x2d')](_0x5f72('0xa2'),_0x3fe97d,_0x26dbc6);var _0x3cb2d3=!![];if(_0x1a6bf6[_0x5f72('0x13f')]===_0x5f72('0x135')){_0x3cb2d3=![];}var _0x52bfa8=this[_0x5f72('0x11')][_0x5f72('0x136')](_0x3fe97d,_0x26dbc6,_0x1a6bf6[_0x5f72('0x137')],_0x1a6bf6[_0x5f72('0x6c')],undefined,_0x3cb2d3);if(_0x52bfa8['result']!==-0x1){this[_0x5f72('0x11')][_0x5f72('0xab')](util[_0x5f72('0x2d')](_0x5f72('0x140'),_0x314ead));var _0x57497d=this[_0x5f72('0x141')][_0x5f72('0x77')](this,_0x1a6bf6,_0x314ead);if(_0x57497d){for(var _0x166636 in _0x57497d){if(_0x57497d['hasOwnProperty'](_0x166636)){this[_0x5f72('0x11')][_0x5f72('0xa3')](util[_0x5f72('0x2d')](_0x5f72('0x142'),_0x166636[_0x5f72('0x71')]()),_0x57497d[_0x166636]);}}return this['channel'][_0x5f72('0xab')](util[_0x5f72('0x2d')](_0x5f72('0x143'),JSON[_0x5f72('0x7c')](_0x57497d)));}}return _0x52bfa8;};AGIVertices[_0x5f72('0x13')][_0x5f72('0x144')]=function(_0x303589){logger[_0x5f72('0x32')](util[_0x5f72('0x2d')](_0x5f72('0x145'),_0x303589[_0x5f72('0x3e')]));return this[_0x5f72('0x11')][_0x5f72('0x146')](_0x303589[_0x5f72('0x43')],_0x303589['extension'],_0x303589['priority']);};AGIVertices[_0x5f72('0x13')][_0x5f72('0x147')]=function(_0x4c7586){logger[_0x5f72('0x32')](util[_0x5f72('0x2d')](_0x5f72('0x148'),_0x4c7586['label']));if(!this['isConfigured'](_0x4c7586[_0x5f72('0x149')])){return this[_0x5f72('0x11')]['error'](_0x4c7586,_0x5f72('0x14a'));}try{var _0x344eea=eval(_0x4c7586[_0x5f72('0x149')])?'true':'false';this['channel']['noop'](util[_0x5f72('0x2d')](_0x5f72('0x14b'),_0x4c7586[_0x5f72('0x149')],_0x344eea));return{'code':0xc8,'result':_0x344eea};}catch(_0x30d311){return{'code':0xc8,'result':_0x5f72('0x14c')};}};AGIVertices['prototype'][_0x5f72('0x14d')]=function(_0x38e7ae){logger['info'](util[_0x5f72('0x2d')]('Enter\x20in\x20GOTOIFTIME\x20(%s)\x20block',_0x38e7ae['label']));if(!this[_0x5f72('0x8a')](_0x38e7ae[_0x5f72('0x14e')])){return this[_0x5f72('0x11')][_0x5f72('0x38')](_0x38e7ae,'no\x20interval\x20configured');}var _0x83a18f=this[_0x5f72('0x28')][_0x5f72('0x77')](this,_0x38e7ae[_0x5f72('0x14e')]);if(!_0x83a18f){return this['channel']['error'](_0x38e7ae,_0x5f72('0x14f'));}for(var _0x1bc546=0x0;_0x1bc546<_0x83a18f[_0x5f72('0x9e')];_0x1bc546+=0x1){var _0x44ad9c=this[_0x5f72('0x11')][_0x5f72('0xa7')](util['format'](_0x5f72('0x150'),_0x83a18f[_0x1bc546]));if(_0x44ad9c[_0x5f72('0xae')]===-0x1){return _0x44ad9c;}logger[_0x5f72('0x32')](util['format'](_0x5f72('0x151'),_0x83a18f[_0x1bc546],_0x44ad9c[_0x5f72('0xa6')]));if(_0x44ad9c['extra']==='true'){logger[_0x5f72('0x32')](util[_0x5f72('0x2d')](_0x5f72('0x151'),_0x83a18f[_0x1bc546],'true'));this[_0x5f72('0x11')][_0x5f72('0xab')](util[_0x5f72('0x2d')](_0x5f72('0x151'),_0x83a18f[_0x1bc546],'true'));return{'code':0xc8,'result':_0x5f72('0x152')};}else{logger['info'](util['format'](_0x5f72('0x151'),_0x83a18f[_0x1bc546],_0x5f72('0x14c')));this['channel'][_0x5f72('0xab')](util[_0x5f72('0x2d')](_0x5f72('0x151'),_0x83a18f[_0x1bc546],'false'));}}return{'code':0xc8,'result':_0x5f72('0x14c')};};AGIVertices['prototype']['hangup']=function(_0x2e430a){logger[_0x5f72('0x32')](util[_0x5f72('0x2d')](_0x5f72('0x153'),_0x2e430a[_0x5f72('0x3e')]));return this[_0x5f72('0x11')][_0x5f72('0x154')]();};AGIVertices[_0x5f72('0x13')][_0x5f72('0x155')]=function(_0x30fabc){logger[_0x5f72('0x32')](util[_0x5f72('0x2d')]('Enter\x20in\x20ISPEECHASR\x20(%s)\x20block',_0x30fabc[_0x5f72('0x3e')]));if(!this['isConfigured'](_0x30fabc[_0x5f72('0x82')])){return this['channel'][_0x5f72('0xab')](_0x5f72('0xea'));}var _0x8c40c7=_0x5f72('0x133');var _0x9c22dc=util[_0x5f72('0x2d')](_0x5f72('0x134'),FILES_PATH,rs[_0x5f72('0x11d')](0x4));var _0x3e5c19=util[_0x5f72('0x2d')](_0x5f72('0xa2'),_0x9c22dc,_0x8c40c7);var _0x42c988=!![];if(_0x30fabc['beep']===_0x5f72('0x135')){_0x42c988=![];}var _0x50079b=this[_0x5f72('0x11')]['recordFile'](_0x9c22dc,_0x8c40c7,_0x30fabc[_0x5f72('0x137')],_0x30fabc['timeout'],undefined,_0x42c988);if(_0x50079b[_0x5f72('0xae')]!==-0x1){this['channel'][_0x5f72('0xab')](util[_0x5f72('0x2d')](_0x5f72('0x156'),_0x3e5c19));var _0x537d13=this['ispeechASR'][_0x5f72('0x77')](this,_0x30fabc,_0x3e5c19);if(_0x537d13){for(var _0x353f6b in _0x537d13){if(_0x537d13[_0x5f72('0x99')](_0x353f6b)){this[_0x5f72('0x11')]['setVariable'](util[_0x5f72('0x2d')](_0x5f72('0x157'),_0x353f6b[_0x5f72('0x71')]()),_0x537d13[_0x353f6b]);}}return this[_0x5f72('0x11')][_0x5f72('0xab')](util['format'](_0x5f72('0x158'),JSON[_0x5f72('0x7c')](_0x537d13)));}}return _0x50079b;};AGIVertices['prototype'][_0x5f72('0x159')]=function(_0x259b7f){logger[_0x5f72('0x32')](util[_0x5f72('0x2d')](_0x5f72('0x15a'),_0x259b7f[_0x5f72('0x3e')]));if(!this['isConfigured'](_0x259b7f[_0x5f72('0x82')])){return this['channel'][_0x5f72('0xab')](_0x5f72('0xea'));}if(!this[_0x5f72('0x8a')](_0x259b7f[_0x5f72('0x62')])){return this[_0x5f72('0x11')][_0x5f72('0xab')](_0x5f72('0xac'));}this[_0x5f72('0x11')][_0x5f72('0xab')](util['format'](_0x5f72('0x15b'),_0x259b7f[_0x5f72('0x62')]));var _0x54b2df=this[_0x5f72('0x86')][_0x5f72('0x77')](this,_0x259b7f);if(_0x54b2df){this[_0x5f72('0x11')][_0x5f72('0xab')](util[_0x5f72('0x2d')]('ispeech\x20%s\x20file\x20created',_0x54b2df));var _0x3d74ef=this[_0x5f72('0x11')][_0x5f72('0x106')](_0x54b2df,_0x259b7f['intKey']);try{fs[_0x5f72('0x107')](_0x54b2df+_0x5f72('0x12b'));}catch(_0x20ef1e){logger[_0x5f72('0x38')](_0x20ef1e);}return _0x3d74ef;}return this['channel'][_0x5f72('0x38')](_0x259b7f,_0x5f72('0x15c'));};AGIVertices['prototype'][_0x5f72('0x15d')]=function(_0x22a9ce){logger[_0x5f72('0x32')](util[_0x5f72('0x2d')](_0x5f72('0x15e'),_0x22a9ce[_0x5f72('0x3e')]));if(!this[_0x5f72('0x8a')](_0x22a9ce[_0x5f72('0x15f')])){return this[_0x5f72('0x11')][_0x5f72('0x38')](_0x22a9ce,_0x5f72('0x160'));}logger[_0x5f72('0x32')](util[_0x5f72('0x2d')]('FIND\x20AGENT\x20%s\x20BY\x20%s',this[_0x5f72('0x11')][_0x5f72('0x40')],_0x22a9ce['findBy']));var _0x44557f=this[_0x5f72('0x5a')][_0x5f72('0x77')](this,_0x22a9ce[_0x5f72('0x15f')]);if(_0x44557f){logger[_0x5f72('0x32')](util[_0x5f72('0x2d')](_0x5f72('0x161'),this[_0x5f72('0x11')][_0x5f72('0x40')],_0x22a9ce[_0x5f72('0x15f')]));this[_0x5f72('0x11')]['noop'](util['format'](_0x5f72('0x161'),this[_0x5f72('0x11')][_0x5f72('0x40')],_0x22a9ce[_0x5f72('0x15f')]));return{'code':0xc8,'result':'success'};}else{logger['info'](util[_0x5f72('0x2d')](_0x5f72('0x162'),this['channel'][_0x5f72('0x40')],_0x22a9ce[_0x5f72('0x15f')]));this['channel'][_0x5f72('0xab')](util[_0x5f72('0x2d')](_0x5f72('0x162'),this[_0x5f72('0x11')]['callerid'],_0x22a9ce['findBy']));return{'code':0xc8,'result':_0x5f72('0x163')};}};AGIVertices[_0x5f72('0x13')]['logout']=function(_0x26d026){logger['info'](util[_0x5f72('0x2d')](_0x5f72('0x164'),_0x26d026[_0x5f72('0x3e')]));if(!this[_0x5f72('0x8a')](_0x26d026[_0x5f72('0x15f')])){return this['channel'][_0x5f72('0x38')](_0x26d026,_0x5f72('0x160'));}logger[_0x5f72('0x32')](util['format'](_0x5f72('0x165'),this[_0x5f72('0x11')]['callerid'],_0x26d026['findBy']));var _0x357bf0=this[_0x5f72('0x59')][_0x5f72('0x77')](this,_0x26d026[_0x5f72('0x15f')]);if(_0x357bf0){logger['info'](util[_0x5f72('0x2d')](_0x5f72('0x161'),this[_0x5f72('0x11')][_0x5f72('0x40')],_0x26d026['findBy']));this['channel'][_0x5f72('0xab')](util[_0x5f72('0x2d')](_0x5f72('0x161'),this[_0x5f72('0x11')][_0x5f72('0x40')],_0x26d026[_0x5f72('0x15f')]));return{'code':0xc8,'result':_0x5f72('0x166')};}else{logger[_0x5f72('0x32')](util[_0x5f72('0x2d')](_0x5f72('0x162'),this['channel'][_0x5f72('0x40')],_0x26d026[_0x5f72('0x15f')]));this[_0x5f72('0x11')][_0x5f72('0xab')](util['format'](_0x5f72('0x162'),this[_0x5f72('0x11')][_0x5f72('0x40')],_0x26d026[_0x5f72('0x15f')]));return{'code':0xc8,'result':_0x5f72('0x163')};}};AGIVertices['prototype'][_0x5f72('0x167')]=function(_0x16e110){logger[_0x5f72('0x32')](util['format'](_0x5f72('0x168'),_0x16e110[_0x5f72('0x3e')]));if(!this['isConfigured'](_0x16e110['operation'])){return this['channel'][_0x5f72('0x38')](_0x16e110,_0x5f72('0x169'));}this[_0x5f72('0x11')][_0x5f72('0xab')](util[_0x5f72('0x2d')](_0x5f72('0x16a'),_0x16e110['operation']));var _0x2edea1=eval(_0x16e110[_0x5f72('0x16b')]);if(!this[_0x5f72('0x8a')](_0x16e110[_0x5f72('0xdc')])){return this['channel'][_0x5f72('0xab')](_0x5f72('0x115'));}var _0x804a73=this['getVariable'][_0x5f72('0x77')](this,_0x16e110[_0x5f72('0xdc')]);if(!_0x804a73){return this['channel'][_0x5f72('0x38')](_0x16e110,'no\x20variable\x20found');}if(_[_0x5f72('0x16c')](_0x2edea1)){var _0x25c3cd=this;_0x2edea1[_0x5f72('0xdd')](function(_0x52d7e4,_0x5be0bf){_0x25c3cd[_0x5f72('0x11')][_0x5f72('0xa3')](util[_0x5f72('0x2d')](_0x5f72('0x16d'),_0x804a73,_0x5be0bf),_0x52d7e4);});return this[_0x5f72('0x11')][_0x5f72('0xab')](util['format'](_0x5f72('0x16e'),_0x804a73));}else{return this[_0x5f72('0x11')][_0x5f72('0xa3')](_0x804a73,_0x2edea1);}};AGIVertices[_0x5f72('0x13')][_0x5f72('0xe')]=function(_0x474853){logger['info'](util[_0x5f72('0x2d')]('Enter\x20in\x20MENU\x20(%s)\x20block',_0x474853[_0x5f72('0x3e')]));if(_0x474853['retry']===0x0){return this['maxRetry'](_0x474853);}_0x474853[_0x5f72('0xa9')]-=0x1;if(!this[_0x5f72('0x8a')](_0x474853[_0x5f72('0x112')])){return this[_0x5f72('0x11')][_0x5f72('0x38')](_0x474853,_0x5f72('0x113'));}var _0x491a75=this[_0x5f72('0x22')][_0x5f72('0x77')](this,_0x474853['file_id']);if(!_0x491a75){return this['channel'][_0x5f72('0x38')](_0x474853,'no\x20file\x20audio\x20found');}var _0x3d175b=this[_0x5f72('0x11')][_0x5f72('0x116')](_0x491a75,_0x474853[_0x5f72('0x117')],_0x474853[_0x5f72('0x16f')]);var _0x2a6bf4=_0x3d175b[_0x5f72('0xae')];if(_0x3d175b[_0x5f72('0xae')]===-0x1){this[_0x5f72('0x3c')][_0x5f72('0x77')](this,_0x474853,'-1');return _0x3d175b;}else if(_0x3d175b['extra']===_0x5f72('0x6c')){_0x3d175b[_0x5f72('0xae')]=_0x3d175b['result'][_0x5f72('0x9e')]>0x0?_0x3d175b[_0x5f72('0xae')]:'t';}else if(_[_0x5f72('0xa1')](_0x3d175b[_0x5f72('0xae')])){_0x3d175b[_0x5f72('0xae')]='#';_0x2a6bf4='#';}if(!this[_0x5f72('0x8a')](_0x474853['variable_id'])){this[_0x5f72('0x11')][_0x5f72('0xab')](_0x5f72('0x115'));}else{var _0x4030d2=this[_0x5f72('0xa7')][_0x5f72('0x77')](this,_0x474853[_0x5f72('0xdc')]);if(!_0x4030d2){return this['channel'][_0x5f72('0x38')](_0x474853,_0x5f72('0x11b'));}this[_0x5f72('0x11')][_0x5f72('0xa3')](_0x4030d2,_0x2a6bf4);}this[_0x5f72('0x3c')][_0x5f72('0x77')](this,_0x474853,_0x2a6bf4);return _0x3d175b;};AGIVertices[_0x5f72('0x13')][_0x5f72('0xab')]=function(_0x4d36aa){logger[_0x5f72('0x32')](util[_0x5f72('0x2d')](_0x5f72('0x170'),_0x4d36aa['label']));return this[_0x5f72('0x11')][_0x5f72('0xab')](_0x4d36aa[_0x5f72('0x171')]||_0x4d36aa[_0x5f72('0x3e')]);};AGIVertices[_0x5f72('0x13')][_0x5f72('0x172')]=function(_0x1f8550){logger[_0x5f72('0x32')](util['format'](_0x5f72('0x173'),_0x1f8550['label']));if(!this[_0x5f72('0x8a')](_0x1f8550[_0x5f72('0x15f')])){return this[_0x5f72('0x11')][_0x5f72('0x38')](_0x1f8550,_0x5f72('0x160'));}logger[_0x5f72('0x32')](util[_0x5f72('0x2d')](_0x5f72('0x165'),this[_0x5f72('0x11')][_0x5f72('0x40')],_0x1f8550[_0x5f72('0x15f')]));var _0x554064=this[_0x5f72('0x54')]['sync'](this,_0x1f8550['pause_id']);var _0x137e4e=this[_0x5f72('0x56')]['sync'](this,_0x1f8550[_0x5f72('0x15f')],_0x554064);if(_0x137e4e){logger[_0x5f72('0x32')](util['format'](_0x5f72('0x161'),this[_0x5f72('0x11')]['callerid'],_0x1f8550[_0x5f72('0x15f')]));this[_0x5f72('0x11')][_0x5f72('0xab')](util[_0x5f72('0x2d')](_0x5f72('0x161'),this[_0x5f72('0x11')][_0x5f72('0x40')],_0x1f8550[_0x5f72('0x15f')]));return{'code':0xc8,'result':'success'};}else{logger[_0x5f72('0x32')](util[_0x5f72('0x2d')](_0x5f72('0x162'),this[_0x5f72('0x11')][_0x5f72('0x40')],_0x1f8550['findBy']));this[_0x5f72('0x11')]['noop'](util['format'](_0x5f72('0x161'),this['channel'][_0x5f72('0x40')],_0x1f8550[_0x5f72('0x15f')]));return{'code':0xc8,'result':_0x5f72('0x163')};}};AGIVertices[_0x5f72('0x13')]['playback']=function(_0x4d785a){logger[_0x5f72('0x32')](util[_0x5f72('0x2d')](_0x5f72('0x174'),_0x4d785a[_0x5f72('0x3e')]));if(!this[_0x5f72('0x8a')](_0x4d785a['file_id'])){return this['channel'][_0x5f72('0x38')](_0x4d785a,_0x5f72('0x113'));}var _0xf0b800=this[_0x5f72('0x22')][_0x5f72('0x77')](this,_0x4d785a[_0x5f72('0x112')]);if(!_0xf0b800){return this[_0x5f72('0x11')]['error'](_0x4d785a,'no\x20file\x20audio\x20found');}var _0x3558b0=this[_0x5f72('0x11')][_0x5f72('0x5e')]('PLAYBACK',[_0xf0b800,_0x4d785a[_0x5f72('0xe7')]]);if(_0x3558b0[_0x5f72('0xae')]===-0x1){return _0x3558b0;}return this[_0x5f72('0x11')][_0x5f72('0xab')](util[_0x5f72('0x2d')](_0x5f72('0xc6'),'PLAYBACK',_0xf0b800));};AGIVertices[_0x5f72('0x13')][_0x5f72('0x175')]=function(_0xcc9924){logger[_0x5f72('0x32')](util[_0x5f72('0x2d')]('Enter\x20in\x20QUEUE\x20(%s)\x20block',_0xcc9924['label']));if(!this['isConfigured'](_0xcc9924[_0x5f72('0x176')])){return this[_0x5f72('0x11')][_0x5f72('0x38')](_0xcc9924,_0x5f72('0x177'));}var _0x11ba9d='';var _0x5b42d1=parseInt(_0xcc9924[_0x5f72('0x176')],0xa);if(isNaN(_0x5b42d1)){_0x11ba9d=_0xcc9924[_0x5f72('0x176')];}else{_0x11ba9d=this['getVoiceQueue']['sync'](this,_0xcc9924[_0x5f72('0x176')]);if(!_0x11ba9d){return this[_0x5f72('0x11')][_0x5f72('0x38')](_0xcc9924,_0x5f72('0x178'));}}var _0xeb2e8a='';if(this[_0x5f72('0x8a')](_0xcc9924[_0x5f72('0x112')])){var _0x202310=this[_0x5f72('0x22')][_0x5f72('0x77')](this,_0xcc9924[_0x5f72('0x112')]);if(_0x202310){_0xeb2e8a=_0x202310;}}this[_0x5f72('0x3c')][_0x5f72('0x77')](this,_0xcc9924,_0x11ba9d);if(_0xcc9924[_0x5f72('0xe7')][_0x5f72('0x179')]('x')<0x0){_0xcc9924[_0x5f72('0xe7')]+='x';}if(_0xcc9924[_0x5f72('0xe7')][_0x5f72('0x179')]('X')<0x0){_0xcc9924[_0x5f72('0xe7')]+='X';}this[_0x5f72('0x11')][_0x5f72('0xa3')](_0x5f72('0x17a'),_0x11ba9d?_0x11ba9d[_0x5f72('0x17b')]():'');var _0x3ba9a4=this[_0x5f72('0x11')][_0x5f72('0x5e')]('QUEUE',[_0x11ba9d,_0xcc9924[_0x5f72('0xe7')],_0xcc9924[_0x5f72('0x7a')],_0xeb2e8a,_0xcc9924[_0x5f72('0x6c')],_0xcc9924[_0x5f72('0x9')],_0xcc9924[_0x5f72('0x17c')],_0xcc9924[_0x5f72('0x17d')],'',_0xcc9924[_0x5f72('0x17e')]]);if(_0x3ba9a4['result']===-0x1){return _0x3ba9a4;}return this[_0x5f72('0x11')]['noop'](util[_0x5f72('0x2d')](_0x5f72('0xc6'),_0x5f72('0x17f'),_0x11ba9d));};AGIVertices[_0x5f72('0x13')][_0x5f72('0x180')]=function(_0x51dcdc){logger[_0x5f72('0x32')](util['format'](_0x5f72('0x181'),_0x51dcdc[_0x5f72('0x3e')]));var _0x3721b3=_0x51dcdc[_0x5f72('0x182')]||'wav';var _0x624f6=util[_0x5f72('0x2d')](_0x5f72('0x183'),this[_0x5f72('0x11')][_0x5f72('0x3d')],rs[_0x5f72('0x11d')](0x5));var _0x35c20a=util['format'](_0x5f72('0x184'),FILES_PATH,_0x624f6,_0x3721b3);var _0x603b8f=util[_0x5f72('0x2d')]('%s/recordings/%s',FILES_PATH,_0x624f6);this[_0x5f72('0x41')][_0x5f72('0x77')](this,_0x51dcdc,_0x624f6,_0x35c20a);this[_0x5f72('0x11')][_0x5f72('0xa3')](_0x5f72('0x185'),_0x624f6);logger[_0x5f72('0x32')](_0x5f72('0x186'),_0x603b8f,_0x3721b3,_0x51dcdc[_0x5f72('0x187')],_0x51dcdc['timeout']);return this['channel'][_0x5f72('0x136')](_0x603b8f,_0x3721b3,_0x51dcdc[_0x5f72('0x187')],_0x51dcdc[_0x5f72('0x6c')],undefined,!![]);};AGIVertices[_0x5f72('0x13')][_0x5f72('0x188')]=function(_0x1b9afe){logger[_0x5f72('0x32')](util['format'](_0x5f72('0x189'),_0x1b9afe[_0x5f72('0x3e')]));if(!this[_0x5f72('0x8a')](_0x1b9afe['url'])){return this[_0x5f72('0x11')][_0x5f72('0xab')](_0x5f72('0x18a'));}var _0x33b2dd=this[_0x5f72('0x6a')]['sync'](this,_0x1b9afe);logger[_0x5f72('0x32')](util['format'](_0x5f72('0x18b'),util['inspect'](_0x33b2dd,{'showHidden':![],'depth':null})));if(!this['isConfigured'](_0x1b9afe[_0x5f72('0xdc')])){return this[_0x5f72('0x11')][_0x5f72('0xab')](_0x5f72('0x18c'));}var _0x330734=this['getVariable'][_0x5f72('0x77')](this,_0x1b9afe[_0x5f72('0xdc')]);if(!_0x330734){return this['channel']['error'](_0x1b9afe,'no\x20variable\x20found');}this[_0x5f72('0x11')]['setVariable'](util[_0x5f72('0x2d')](_0x5f72('0x18d'),_0x330734),_0x33b2dd[_0x5f72('0x7e')]?_0x33b2dd['statusCode']:_0x5f72('0x18e'));this['channel'][_0x5f72('0xa3')](util[_0x5f72('0x2d')]('%s_STATUS_MESSAGE',_0x330734),_0x33b2dd[_0x5f72('0x7f')]?_0x33b2dd[_0x5f72('0x7f')]:'OK');if(_0x33b2dd['body']){try{this[_0x5f72('0xa0')](_0x33b2dd[_0x5f72('0x72')],_0x330734);}catch(_0x919987){logger[_0x5f72('0x38')](util[_0x5f72('0x2d')](_0x5f72('0x18f'),_0x330734));}}return this[_0x5f72('0x11')][_0x5f72('0xab')](util[_0x5f72('0x2d')](_0x5f72('0xe0'),_0x330734));};AGIVertices[_0x5f72('0x13')][_0x5f72('0x190')]=function(_0x31483a){logger['info'](util['format'](_0x5f72('0x191'),_0x31483a[_0x5f72('0x3e')]));return this['channel']['sayDigits'](_0x31483a[_0x5f72('0x192')][_0x5f72('0x5f')](/\s+/g,''),_0x31483a[_0x5f72('0x187')]);};AGIVertices[_0x5f72('0x13')][_0x5f72('0x193')]=function(_0x33a2b){logger['info'](util[_0x5f72('0x2d')]('Enter\x20in\x20SAYNUMBER\x20(%s)\x20block',_0x33a2b['label']));return this['channel']['sayNumber'](_0x33a2b[_0x5f72('0x6d')][_0x5f72('0x5f')](/\s+/g,''),_0x33a2b[_0x5f72('0x187')]);};AGIVertices['prototype'][_0x5f72('0x194')]=function(_0x154fca){logger[_0x5f72('0x32')](util[_0x5f72('0x2d')](_0x5f72('0x195'),_0x154fca[_0x5f72('0x3e')]));return this[_0x5f72('0x11')][_0x5f72('0x196')](_0x154fca['text'],_0x154fca['escape_digits']);};AGIVertices[_0x5f72('0x13')][_0x5f72('0x197')]=function(_0x350d48){logger['info'](util['format']('Enter\x20in\x20SENDMAIL\x20(%s)\x20block',_0x350d48[_0x5f72('0x3e')]));if(!this[_0x5f72('0x8a')](_0x350d48[_0x5f72('0x198')])){return this[_0x5f72('0x11')][_0x5f72('0xab')](_0x5f72('0x199'));}var _0x300c5d=this['getMailAccount'][_0x5f72('0x77')](this,_0x350d48[_0x5f72('0x198')]);if(!_0x300c5d||!_0x300c5d[_0x5f72('0x19a')]){return this[_0x5f72('0x11')]['error'](_0x350d48,_0x5f72('0x19b'));}var _0x7132f3={'from':util[_0x5f72('0x2d')](_0x5f72('0x19c'),_0x300c5d['name'],_0x300c5d[_0x5f72('0x19d')]||_0x300c5d['Smtp']['user']),'to':_0x350d48['to']||'','cc':_0x350d48['cc']||'','bcc':_0x350d48['bcc']||'','subject':_0x350d48[_0x5f72('0x19e')],'html':_0x350d48['text'],'text':_0x350d48[_0x5f72('0x62')]};if(this[_0x5f72('0x8a')](_0x350d48[_0x5f72('0x19f')])){}logger[_0x5f72('0x1a0')](_0x5f72('0x1a1'),JSON[_0x5f72('0x7c')](_0x7132f3));this[_0x5f72('0x3c')][_0x5f72('0x77')](this,_0x350d48,_0x350d48['account_id']);this[_0x5f72('0x11')][_0x5f72('0xab')](util[_0x5f72('0x2d')](_0x5f72('0x1a2'),_0x300c5d[_0x5f72('0x17')]));this[_0x5f72('0x27')][_0x5f72('0x77')](this,_0x300c5d[_0x5f72('0x1a3')],_0x7132f3);return this['channel']['noop'](_0x5f72('0x1a4'));};AGIVertices[_0x5f72('0x13')][_0x5f72('0x1a5')]=function(_0x538e86){logger[_0x5f72('0x32')](util[_0x5f72('0x2d')](_0x5f72('0x1a6'),_0x538e86[_0x5f72('0x3e')]));return this[_0x5f72('0x11')][_0x5f72('0xab')]('SENDFAX\x20block\x20not\x20implemented');};AGIVertices[_0x5f72('0x13')]['sendSMS']=function(_0x4cce93){logger[_0x5f72('0x32')](util[_0x5f72('0x2d')]('Enter\x20in\x20SENDSMS\x20(%s)\x20block',_0x4cce93['label']));if(!this[_0x5f72('0x8a')](_0x4cce93[_0x5f72('0x1a7')])){return this[_0x5f72('0x11')]['noop'](_0x5f72('0x1a8'));}var _0x577c5d=this[_0x5f72('0x3a')][_0x5f72('0x77')](this,_0x4cce93[_0x5f72('0x1a7')]);if(!_0x577c5d){return this[_0x5f72('0x11')][_0x5f72('0x38')](_0x4cce93,'no\x20sms\x20account\x20found');}var _0x14a0ae={'body':_0x4cce93['sms_text'],'phone':_0x4cce93['to']||'','SmsAccountId':_0x577c5d['id']};logger[_0x5f72('0x1a0')](_0x5f72('0x1a9'),JSON[_0x5f72('0x7c')](_0x14a0ae));this['createSquareDetailsReport'][_0x5f72('0x77')](this,_0x4cce93,_0x4cce93[_0x5f72('0x1a7')]);this[_0x5f72('0x11')]['noop'](util[_0x5f72('0x2d')](_0x5f72('0x1aa'),_0x577c5d[_0x5f72('0x17')]));this['createSmsMessage'][_0x5f72('0x77')](this,_0x14a0ae);return this[_0x5f72('0x11')][_0x5f72('0xab')](_0x5f72('0x1ab'));};AGIVertices[_0x5f72('0x13')][_0x5f72('0x1ac')]=function(_0x3ead86){logger[_0x5f72('0x32')](util[_0x5f72('0x2d')]('Enter\x20in\x20SET\x20(%s)\x20block',_0x3ead86['label']));if(!this[_0x5f72('0x8a')](_0x3ead86[_0x5f72('0xdc')])){return this[_0x5f72('0x11')][_0x5f72('0x38')](_0x3ead86,_0x5f72('0x1ad'));}var _0x241f2d=this[_0x5f72('0xa7')][_0x5f72('0x77')](this,_0x3ead86[_0x5f72('0xdc')]);if(!_0x241f2d){return this[_0x5f72('0x11')][_0x5f72('0x38')](_0x3ead86,_0x5f72('0x11b'));}return this['channel'][_0x5f72('0xa3')](_0x241f2d,_0x3ead86[_0x5f72('0x1ae')]);};AGIVertices[_0x5f72('0x13')][_0x5f72('0x1af')]=function(_0x4bf06f){logger[_0x5f72('0x32')](util[_0x5f72('0x2d')]('Enter\x20in\x20START\x20(%s)\x20block',_0x4bf06f[_0x5f72('0x3e')]));this['channel'][_0x5f72('0xab')]('START\x20CALLY\x20SQUARE');var _0x5bb77f=this[_0x5f72('0x11')][_0x5f72('0xa7')](_0x5f72('0x1b0'));if(!_['isEmpty'](_0x5bb77f[_0x5f72('0xa6')])){this[_0x5f72('0x11')][_0x5f72('0x3d')]=_0x5bb77f[_0x5f72('0xa6')];}if(_0x4bf06f[_0x5f72('0xbd')]===_0x5f72('0x1b1')){this[_0x5f72('0x11')][_0x5f72('0xab')](_0x5f72('0x1b2'));return this['channel'][_0x5f72('0xbd')]();}return this[_0x5f72('0x11')]['noop'](_0x5f72('0x1b3'));};AGIVertices['prototype'][_0x5f72('0x1b4')]=function(_0x41191f){logger['info'](util[_0x5f72('0x2d')](_0x5f72('0x1b5'),_0x41191f['label']));if(!this[_0x5f72('0x8a')](_0x41191f[_0x5f72('0x1b6')])){return this[_0x5f72('0x11')]['error'](_0x41191f,_0x5f72('0x1b7'));}var _0x5284af=this['getSquareProject'][_0x5f72('0x77')](this,_0x41191f[_0x5f72('0x1b6')]);if(!this[_0x5f72('0x8a')](_0x5284af)){return this[_0x5f72('0x11')][_0x5f72('0x38')](_0x41191f,util[_0x5f72('0x2d')](_0x5f72('0x1b8'),_0x41191f[_0x5f72('0x1b6')]));}if(_0x5284af===this[_0x5f72('0x11')][_0x5f72('0x47')]){return this[_0x5f72('0x11')][_0x5f72('0x38')](_0x41191f,'project\x20in\x20subproject\x20must\x20be\x20different\x20from\x20the\x20called\x20project');}this[_0x5f72('0x3c')]['sync'](this,_0x41191f,_0x5284af);var _0x4e54fe=this[_0x5f72('0x11')][_0x5f72('0x5e')](_0x5f72('0x1b9'),util['format']('agi://%s/square,\x22%s\x22,\x22%s\x22',config[_0x5f72('0x9')][_0x5f72('0x1ba')]||_0x5f72('0x1bb'),_0x5284af,this[_0x5f72('0x11')][_0x5f72('0x47')]));if(_0x4e54fe[_0x5f72('0xae')]===-0x1){return _0x4e54fe;}return this['channel'][_0x5f72('0xab')](util[_0x5f72('0x2d')]('Executed\x20command\x20%s\x20%s',_0x5f72('0x1b9'),_0x5284af));};AGIVertices[_0x5f72('0x13')][_0x5f72('0x1bc')]=function(_0x2a21d4){logger[_0x5f72('0x32')](util[_0x5f72('0x2d')](_0x5f72('0x1bd'),_0x2a21d4['label']));var _0x3bd435=this['shellCommand'][_0x5f72('0x77')](this,_0x2a21d4[_0x5f72('0xba')]);this['createSquareDetailsReport'][_0x5f72('0x77')](this,_0x2a21d4,_0x2a21d4[_0x5f72('0xba')]);if(this[_0x5f72('0x8a')](_0x2a21d4['variable_id'])){var _0x3aec95=this[_0x5f72('0xa7')][_0x5f72('0x77')](this,_0x2a21d4['variable_id']);if(_0x3aec95){this[_0x5f72('0x11')][_0x5f72('0xa3')](_0x3aec95,_0x3bd435);return this[_0x5f72('0x11')][_0x5f72('0xab')](util[_0x5f72('0x2d')](_0x5f72('0x1be'),_0x2a21d4[_0x5f72('0xba')],_0x3aec95));}}return this[_0x5f72('0x11')][_0x5f72('0xab')](util[_0x5f72('0x2d')](_0x5f72('0x1bf'),_0x2a21d4[_0x5f72('0xba')]));};AGIVertices[_0x5f72('0x13')][_0x5f72('0x1c0')]=function(_0x4b9e28){logger[_0x5f72('0x32')](util[_0x5f72('0x2d')](_0x5f72('0x1c1'),_0x4b9e28['label']));_0x4b9e28[_0x5f72('0x62')]=_0x4b9e28['text']['replace'](/(\r\n|\n|\r)/gm,'\x20');if(!this[_0x5f72('0x8a')](_0x4b9e28[_0x5f72('0x1c2')])){return this['channel'][_0x5f72('0xab')](_0x5f72('0x1c3'));}if(!this['isConfigured'](_0x4b9e28[_0x5f72('0x62')])){return this[_0x5f72('0x11')][_0x5f72('0xab')](_0x5f72('0xac'));}this[_0x5f72('0x11')]['noop'](util['format'](_0x5f72('0x1c4'),_0x4b9e28[_0x5f72('0x62')]));var _0xa4fbaf=this[_0x5f72('0x60')]['sync'](this,_0x4b9e28);if(_0xa4fbaf){this[_0x5f72('0x11')]['noop'](util[_0x5f72('0x2d')](_0x5f72('0x1c5'),_0xa4fbaf));var _0x5355be=this[_0x5f72('0x11')][_0x5f72('0x106')](_0xa4fbaf);try{fs[_0x5f72('0x107')](_0xa4fbaf+_0x5f72('0x12b'));}catch(_0x55ac60){logger[_0x5f72('0x38')](_0x55ac60);}return _0x5355be;}return this['channel']['error'](_0x4b9e28,_0x5f72('0x1c6'));};AGIVertices[_0x5f72('0x13')][_0x5f72('0x1c7')]=function(_0xa15d15){logger[_0x5f72('0x32')](util[_0x5f72('0x2d')]('Enter\x20in\x20GOOGLETTS\x20(%s)\x20block',_0xa15d15[_0x5f72('0x3e')]));_0xa15d15[_0x5f72('0x62')]=_0xa15d15[_0x5f72('0x62')][_0x5f72('0x5f')](/(\r\n|\n|\r)/gm,'\x20');if(!this[_0x5f72('0x8a')](_0xa15d15[_0x5f72('0x62')])){return this[_0x5f72('0x11')][_0x5f72('0xab')](_0x5f72('0xac'));}this['channel'][_0x5f72('0xab')](util['format'](_0x5f72('0x1c8'),_0xa15d15['text']));var _0xd86fb6=this[_0x5f72('0x69')]['sync'](this,_0xa15d15);if(_0xd86fb6){this[_0x5f72('0x11')][_0x5f72('0xab')](util['format']('Google\x20TTS\x20%s\x20file\x20created',_0xd86fb6));var _0x419977=this[_0x5f72('0x11')][_0x5f72('0x106')](_0xd86fb6);try{fs[_0x5f72('0x107')](_0xd86fb6+'.wav');}catch(_0x4d4ecc){logger[_0x5f72('0x38')](_0x4d4ecc);}return _0x419977;}return this[_0x5f72('0x11')][_0x5f72('0x38')](_0xa15d15,_0x5f72('0x1c9'));};AGIVertices[_0x5f72('0x13')][_0x5f72('0x1ca')]=function(_0x5bce1f){logger[_0x5f72('0x32')](util[_0x5f72('0x2d')]('Enter\x20in\x20UNPAUSE\x20(%s)\x20block',_0x5bce1f[_0x5f72('0x3e')]));if(!this['isConfigured'](_0x5bce1f['findBy'])){return this[_0x5f72('0x11')][_0x5f72('0x38')](_0x5bce1f,_0x5f72('0x160'));}logger[_0x5f72('0x32')](util['format'](_0x5f72('0x165'),this[_0x5f72('0x11')][_0x5f72('0x40')],_0x5bce1f[_0x5f72('0x15f')]));var _0xb7224b=this[_0x5f72('0x58')][_0x5f72('0x77')](this,_0x5bce1f['findBy']);if(_0xb7224b){logger[_0x5f72('0x32')](util['format'](_0x5f72('0x161'),this[_0x5f72('0x11')][_0x5f72('0x40')],_0x5bce1f[_0x5f72('0x15f')]));this['channel']['noop'](util[_0x5f72('0x2d')](_0x5f72('0x161'),this[_0x5f72('0x11')]['callerid'],_0x5bce1f[_0x5f72('0x15f')]));return{'code':0xc8,'result':_0x5f72('0x166')};}else{logger[_0x5f72('0x32')](util[_0x5f72('0x2d')](_0x5f72('0x162'),this['channel']['callerid'],_0x5bce1f[_0x5f72('0x15f')]));this['channel']['noop'](util[_0x5f72('0x2d')](_0x5f72('0x162'),this[_0x5f72('0x11')][_0x5f72('0x40')],_0x5bce1f['findBy']));return{'code':0xc8,'result':_0x5f72('0x163')};}};AGIVertices[_0x5f72('0x13')]['voicemail']=function(_0xfc95cf){logger[_0x5f72('0x32')](util['format'](_0x5f72('0x1cb'),_0xfc95cf['label']));var _0x501bbe=this[_0x5f72('0x11')][_0x5f72('0x5e')]('VOICEMAIL',[_0xfc95cf['mailbox'],_0xfc95cf[_0x5f72('0xad')]]);if(_0x501bbe['result']===-0x1){return _0x501bbe;}return this['channel'][_0x5f72('0xab')](util[_0x5f72('0x2d')](_0x5f72('0xc6'),_0x5f72('0x1cc'),_0xfc95cf[_0x5f72('0x1cd')]));};AGIVertices[_0x5f72('0x13')][_0x5f72('0x1ce')]=function(_0xe1e543){logger[_0x5f72('0x32')](util['format'](_0x5f72('0x1cf'),_0xe1e543[_0x5f72('0x3e')]));if(!this[_0x5f72('0x8a')](_0xe1e543['variable_id'])){return this[_0x5f72('0x11')]['error'](_0xe1e543,'no\x20variable\x20selected');}var _0x11ffed=this['getVariable'][_0x5f72('0x77')](this,_0xe1e543['variable_id']);if(!_0x11ffed){return this[_0x5f72('0x11')][_0x5f72('0x38')](_0xe1e543,_0x5f72('0x11b'));}var _0x7cf306=this['channel'][_0x5f72('0xa7')](_0x11ffed);return{'code':0xc8,'result':_0x7cf306[_0x5f72('0xa6')]?_0x7cf306['extra']:'-'};};String['prototype'][_0x5f72('0xa5')]=function(_0x54e554,_0x2ec762){return this[_0x5f72('0xa4')](_0x54e554)[_0x5f72('0x1d0')](_0x2ec762);};module[_0x5f72('0x1d1')]=AGIVertices;