Built motion from commit (unavailable).|2.6.0
[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 _0x631c=['then','name','catch','prototype','getVoiceQueue','getSquareProject','getSquareProjectById','getSquareOdbc','getSquareOdbcById','dsn','getUserById','getTrunk','getTrunkById','getSound','getSoundById','getSoundPath','save_name','getMailAccount','getMailAccountById','sendMailMessage','IntervalId','interval','Intervals','%s/sounds/converted/%s','getQueryOdbc','open','error','info','ODBC\x20connection\x20successfully','Error\x20executing\x20query\x20%s','Query\x20executed\x20correctly\x20%s','close','Error\x20closing\x20connection\x20to\x20odbc\x20%s','getSmsAccount','getSmsAccountById','createSmsMessage','createSquareDetailsReport','uniqueid','label','callerid','createSquareRecording','calleridname','extension','priority','accountcode','arg_1','createSquareMessage','createCmContact','isEmpty','isNil','callback_','random','lastName','scheduledAt','callback','Callback\x20scheduled\x20at\x20','toString','agentPause','agent','agentUnpause','agentLogout','agentLogin','internal','format','LOCAL','shellCommand','exec','replace','googleCloudTTS','apiKey','google_cloud_tts_text_type','text','en-US','audioEncoding','MP3','googleTTS','google_tts_language','url','timeout','includes','POST','PUT','method','body','parse','headers','An\x20incorrect\x20formatted\x20json\x20headers\x20has\x20been\x20passed\x20to\x20the\x20function','computedVariables','uri','render','stringify','An\x20incorrect\x20formatted\x20json\x20has\x20been\x20passed\x20to\x20the\x20function','statusCode','statusMessage','message','options','googleDialogflow','key','dialogflow_language','googleDialogflowV2','dialogflowV2_project_id','private_key','dialogflowV2_language','sestekNDA','ispeechTTS','ispeech_tts_language','ispeechASR','ispeech_asr_language','model','awsPolly','aws_access_key_id','aws_secret_access_key','aws_polly_region','aws_polly_voice','Amy','aws_text_type','awsLex','aws_bot_name','googleASR','google_asr_language','tildeASR','appid','appsecret','clear','agicommand','clone','hasOwnProperty','isString','replaceObjectAllVariables','replaceAllVariables','recursiveNodeIndex','isPlainObject','isArray','saveRestApiResult','%s.%s','length','setVariable','split','replaceAll','getAndSetVariable','The\x20\x22%s\x22\x20variable\x20value\x20is:\x20%s','extra','maxRetry','mrcpsynth','no\x20text\x20configured','isConfigured','MRCPSynth','result','Executed\x20command\x20MRCPSynth\x20%s','mrcprecog','grammar','noop','no\x20grammar\x20configured','MRCPRecog','RECOG_CONFIDENCE()','RECOG_INSTANCE()','Executed\x20command\x20MRCPRecog\x20%s','Enter\x20in\x20AGI\x20(%s)\x20block','args','answer','Enter\x20in\x20ANSWER\x20(%s)\x20block','Wait\x20%s\x20seconds\x20before\x20answer','wait','Enter\x20in\x20CALLBACK\x20(%s)\x20block','list_id','no\x20list\x20selected','add','delay','minutes','callback_priority','sync','phone','custom_app','application','Enter\x20in\x20LUMENVOXTTS\x20(%s)\x20block','sestektts','Enter\x20in\x20SESTEKTTS\x20(%s)\x20block','lumenvoxasr','Enter\x20in\x20LUMENVOXASR\x20(%s)\x20block','LUMENVOX_ASR_CONFIDENCE','RECOG_INPUT()','LUMENVOX_ASR_INSTANCE','sestekasr','Enter\x20in\x20SESTEKASR\x20(%s)\x20block','SESTEK_ASR_CONFIDENCE','SESTEK_ASR_TRANSCRIPT','SESTEK_ASR_INSTANCE','database','Enter\x20in\x20DATABASE\x20(%s)\x20block','odbc_id','no\x20database\x20selected','no\x20odbc\x20database\x20found','no\x20query\x20configured','query','query:\x20%s','variable_id','no\x20variable\x20found','forEach','keys','variable\x20%s\x20set','dial','Enter\x20in\x20DIAL\x20(%s)\x20block','sip_id','no\x20user\x20selected','getUser','no\x20user\x20found','DIAL','SIP/%s','opts','Executed\x20command\x20%s','Enter\x20in\x20DIALOGFLOW\x20(%s)\x20block','no\x20key\x20configured','bot','toUpperCase','speech','Dialogflow\x20Result\x20%s','Dialogflow\x20is\x20unreachable','dialogflowV2','no\x20project_id\x20configured','client_email','no\x20client_email\x20configured','no\x20private_key\x20configured','providerResponse','out','DialogflowV2\x20Result\x20%s','DialogflowV2\x20is\x20unreachable','sesteknda','Enter\x20in\x20SESTEKNDA\x20(%s)\x20block','ndauth_url','username','password','no\x20password\x20configured','SESTEK_NDA_%s','streamFile','unlink','.wav','end','trunk_id','no\x20trunk\x20found','no\x20trunk\x20selected','SIP/%s/%s','finally','Enter\x20in\x20FINALLY\x20(%s)\x20block','Enter\x20in\x20GETDIGITS\x20(%s)\x20block','retry','file_id','no\x20file\x20audio\x20selected','no\x20file\x20audio\x20found','no\x20variable\x20selected\x20for\x20the\x20result','response','mindigit','maxdigit','generate','hiddendigitspos','first','getdigits','goal','Enter\x20in\x20GOAL\x20(%s)\x20block','awspolly','[AGI]\x20Enter\x20in\x20AWSPOLLY\x20(%s)\x20block','no\x20valid\x20credentials\x20configured','Trying\x20aws\x20Polly\x20%s','aws\x20Polly\x20%s\x20file\x20created','aws\x20Polly\x20is\x20unreachable','Enter\x20in\x20Amazon\x20Lex\x20(%s)\x20block','no\x20bot\x20name\x20configured','Trying\x20Amazon\x20Lex:\x20%s','AWS_LEX_%s','Amazon\x20Lex\x20ready\x20for\x20fulfillment','amazonlex','Amazon\x20Lex\x20Result\x20%s','Amazon\x20Lex\x20is\x20unreachable','googleasr','Enter\x20in\x20GOOGLEASR\x20(%s)\x20block\x20%s','wav','%s/recordings/%s','beep','recordFile','intKey','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','NOBEEP','TILDE_ASR_%s','TildeASR\x20Result\x20%s','gotoc','continueAt','context','gotoif','Enter\x20in\x20GOTOIF\x20(%s)\x20block','condition','no\x20condition\x20configured','true','EVAL\x20CONDITION\x20%s\x20%s','Enter\x20in\x20GOTOIFTIME\x20(%s)\x20block','interval_id','no\x20interval\x20configured','getIntervals','no\x20intervals\x20found','IFTIME\x20%s\x20%s','false','hangup','ispeechasr','ISPEECH_ASR_%s','IspeechASR\x20Result\x20%s','Enter\x20in\x20ISPEECHTTS\x20(%s)\x20block','ispeech\x20%s\x20file\x20created','ispeech\x20TTS\x20is\x20unreachable','Enter\x20in\x20LOGIN\x20(%s)\x20block','findBy','no\x20find\x20by\x20configured','FIND\x20AGENT\x20%s\x20BY\x20%s','AGENT\x20%s\x20FOUND\x20BY','success','failure','logout','AGENT\x20%s\x20NOT\x20FOUND\x20BY','math','Enter\x20in\x20MATH\x20(%s)\x20block','no\x20operation\x20configured','math\x20%s','operation','%s[%s]','variable\x20%s[key]\x20set','Enter\x20in\x20MENU\x20(%s)\x20block','getData','Enter\x20in\x20NOOP\x20(%s)\x20block','output','Enter\x20in\x20PAUSE\x20(%s)\x20block','getPause','pause_id','playback','Enter\x20in\x20PLAYBACK\x20(%s)\x20block','Executed\x20command\x20%s\x20%s','Enter\x20in\x20QUEUE\x20(%s)\x20block','queue_id','no\x20queue\x20selected','no\x20queue\x20found','indexOf','XMCS-QUEUE','QUEUE','macro','gosub','position','Enter\x20in\x20RECORD\x20(%s)\x20block','recordingFormat','%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','restAPI','Response:','no\x20variable\x20selected\x20for\x20the\x20response','%s_STATUS_CODE','200','%s_STATUS_MESSAGE','Unable\x20to\x20set\x20result\x20in\x20variable\x20%s','saydigits','Enter\x20in\x20SAYDIGITS\x20(%s)\x20block','sayDigits','digits','saynumber','Enter\x20in\x20SAYNUMBER\x20(%s)\x20block','sayNumber','number','sayphonetic','sayPhonetic','sendMail','Enter\x20in\x20SENDMAIL\x20(%s)\x20block','account_id','no\x20mail\x20account\x20configured','\x22%s\x22\x20<%s>','Smtp','bcc','subject','service','host','port','secure','auth','user','pass','Trying\x20SendMail\x20with\x20account\x20%s','Mail\x20message\x20added\x20to\x20outgoing\x20process','Enter\x20in\x20SENDFAX\x20(%s)\x20block','sendSMS','Enter\x20in\x20SENDSMS\x20(%s)\x20block','sms_account_id','no\x20sms\x20account\x20found','sms_text','debug','sendSMS\x20message','Trying\x20SendSMS\x20with\x20account\x20%s','Sms\x20message\x20added\x20to\x20outgoing\x20process','Enter\x20in\x20SET\x20(%s)\x20block','no\x20variable\x20selected','variable_value','start','Enter\x20in\x20START\x20(%s)\x20block','START\x20CALLY\x20SQUARE','yes','Skipped\x20Answer','no\x20subproject\x20selected','project_id','no\x20subproject\x20found\x20with\x20id\x20%d','project\x20in\x20subproject\x20must\x20be\x20different\x20from\x20the\x20called\x20project','AGI','agi://%s/square,\x22%s\x22,\x22%s\x22','127.0.0.1','system','command','sh\x20command:\x20%s\x20result\x20on\x20variable:\x20%s','sh\x20command:\x20%s\x20result\x20no\x20stored','google_cloud_tts','Enter\x20in\x20Google\x20Cloud\x20TTS\x20(%s)\x20block','no\x20apiKey\x20configured','Trying\x20Google\x20Cloud\x20TTS\x20%s','Google\x20Cloud\x20TTS\x20%s\x20file\x20created','tts','Enter\x20in\x20GOOGLETTS\x20(%s)\x20block','Google\x20TTS\x20%s\x20file\x20created','Google\x20TTS\x20is\x20unreachable','unpause','voicemail','Enter\x20in\x20VOICEMAIL\x20(%s)\x20block','VOICEMAIL','mailbox','vswitch','Enter\x20in\x20SWITCH\x20(%s)\x20block','join','exports','path','util','shelljs','odbc','moment','mustache','request-promise','agi','../../config/environment','/var/opt/motion2/server/files','rawBody','menu','channel','rpc','mailRpc','getVariable','getVariableById'];(function(_0x1d6248,_0x25b11e){var _0x4ad468=function(_0x3de3e5){while(--_0x3de3e5){_0x1d6248['push'](_0x1d6248['shift']());}};_0x4ad468(++_0x25b11e);}(_0x631c,0x1b6));var _0xc631=function(_0x15c692,_0x44f407){_0x15c692=_0x15c692-0x0;var _0x438fee=_0x631c[_0x15c692];return _0x438fee;};'use strict';var fs=require('fs');var path=require(_0xc631('0x0'));var util=require(_0xc631('0x1'));var _=require('lodash');var sh=require(_0xc631('0x2'));var odbc=require(_0xc631('0x3'))();var rs=require('randomstring');var moment=require(_0xc631('0x4'));var Mustache=require(_0xc631('0x5'));var rp=require(_0xc631('0x6'));var logger=require('../../config/logger')(_0xc631('0x7'));var config=require(_0xc631('0x8'));var scripts=require('./scripts');var FILES_PATH=_0xc631('0x9');var recursiveMapAttributes=['rawHeaders',_0xc631('0xa')];var verticesWithRetry=[_0xc631('0xb'),'getdigits','getsecretdigits'];var AGIVertices=function(_0x4a34d9,_0x45bf13,_0x578473){this[_0xc631('0xc')]=_0x4a34d9;this[_0xc631('0xd')]=_0x45bf13;this[_0xc631('0xe')]=_0x578473;};AGIVertices['prototype'][_0xc631('0xf')]=function(_0x804fff,_0x462987){this[_0xc631('0xd')][_0xc631('0x10')](_0x804fff)[_0xc631('0x11')](function(_0x56ef08){_0x462987(null,_0x56ef08?_0x56ef08[_0xc631('0x12')]:![]);})[_0xc631('0x13')](function(_0x2e9ac8){_0x462987(_0x2e9ac8);});};AGIVertices[_0xc631('0x14')][_0xc631('0x15')]=function(_0x551059,_0x241e39){this[_0xc631('0xd')]['getVoiceQueueById'](_0x551059)[_0xc631('0x11')](function(_0xf9bc56){_0x241e39(null,_0xf9bc56?_0xf9bc56[_0xc631('0x12')]:![]);})[_0xc631('0x13')](function(_0x418a7c){_0x241e39(_0x418a7c);});};AGIVertices[_0xc631('0x14')][_0xc631('0x16')]=function(_0x283b13,_0x30758f){this['rpc'][_0xc631('0x17')](_0x283b13)['then'](function(_0x1943ce){_0x30758f(null,_0x1943ce?_0x1943ce['name']:![]);})[_0xc631('0x13')](function(_0x5dc64b){_0x30758f(_0x5dc64b);});};AGIVertices[_0xc631('0x14')][_0xc631('0x18')]=function(_0x2d09b8,_0x24d9fb){this[_0xc631('0xd')][_0xc631('0x19')](_0x2d09b8)[_0xc631('0x11')](function(_0x487bf9){_0x24d9fb(null,_0x487bf9?_0x487bf9[_0xc631('0x1a')]:![]);})[_0xc631('0x13')](function(_0x47efa9){_0x24d9fb(_0x47efa9);});};AGIVertices[_0xc631('0x14')]['getUser']=function(_0x229859,_0x1982ee){this[_0xc631('0xd')][_0xc631('0x1b')](_0x229859)[_0xc631('0x11')](function(_0x31f871){_0x1982ee(null,_0x31f871?_0x31f871[_0xc631('0x12')]:![]);})[_0xc631('0x13')](function(_0x5a5dbe){_0x1982ee(_0x5a5dbe);});};AGIVertices[_0xc631('0x14')][_0xc631('0x1c')]=function(_0x4c6d5b,_0x2293c8){this['rpc'][_0xc631('0x1d')](_0x4c6d5b)['then'](function(_0x34ad2f){_0x2293c8(null,_0x34ad2f?_0x34ad2f[_0xc631('0x12')]:![]);})['catch'](function(_0x43c2f8){_0x2293c8(_0x43c2f8);});};AGIVertices[_0xc631('0x14')][_0xc631('0x1e')]=function(_0x5d019b,_0x5679d6){var _0x235a77=this;this[_0xc631('0xd')][_0xc631('0x1f')](_0x5d019b)['then'](function(_0x186092){_0x5679d6(null,_0x186092?_0x235a77[_0xc631('0x20')](_0x186092[_0xc631('0x21')]):![]);})[_0xc631('0x13')](function(_0x1b8a1c){_0x5679d6(_0x1b8a1c);});};AGIVertices['prototype'][_0xc631('0x22')]=function(_0x2ccc87,_0x35d49c){this['rpc'][_0xc631('0x23')](_0x2ccc87)[_0xc631('0x11')](function(_0x57a784){_0x35d49c(null,_0x57a784?_0x57a784:![]);})[_0xc631('0x13')](function(_0x148579){_0x35d49c(_0x148579);});};AGIVertices[_0xc631('0x14')][_0xc631('0x24')]=function(_0x315fed,_0x39160d,_0x9afde5){this[_0xc631('0xe')][_0xc631('0x24')](_0x315fed,_0x39160d)[_0xc631('0x11')](function(){_0x9afde5(null);})[_0xc631('0x13')](function(_0x498695){_0x9afde5(_0x498695);});};AGIVertices['prototype']['getIntervals']=function(_0x4f0b29,_0x30cb01){this[_0xc631('0xd')]['getIntervalById'](_0x4f0b29)['then'](function(_0x1fe810){if(_0x1fe810){if(_0x1fe810[_0xc631('0x25')]){_0x30cb01(null,[_0x1fe810[_0xc631('0x26')]]);}else{_0x30cb01(null,_['map'](_0x1fe810[_0xc631('0x27')],_0xc631('0x26')));}}else{_0x30cb01(null,![]);}})['catch'](function(_0x2865a1){_0x30cb01(_0x2865a1);});};AGIVertices[_0xc631('0x14')][_0xc631('0x20')]=function(_0x1f20b9){return util['format'](_0xc631('0x28'),FILES_PATH,_0x1f20b9);};AGIVertices[_0xc631('0x14')][_0xc631('0x29')]=function(_0x4fe811,_0x52255b,_0x1543ed){odbc[_0xc631('0x2a')](_0x4fe811,function(_0xa03ae4){if(_0xa03ae4){logger[_0xc631('0x2b')]('Error\x20getting\x20ODBC\x20connection\x20%s',_0xa03ae4);_0x1543ed(_0xa03ae4);}else{logger[_0xc631('0x2c')](_0xc631('0x2d'));odbc['query'](_0x52255b,function(_0x250414,_0x1c9f56){if(_0x250414){logger[_0xc631('0x2c')](_0xc631('0x2e'),_0x52255b);_0x1543ed(_0x250414);}else{logger[_0xc631('0x2c')](_0xc631('0x2f'),_0x52255b);odbc[_0xc631('0x30')](function(_0x2ea1e3){if(_0x2ea1e3){logger['error'](_0xc631('0x31'),_0x2ea1e3);}_0x1543ed(null,_0x1c9f56);});}});}});};AGIVertices[_0xc631('0x14')][_0xc631('0x32')]=function(_0x234981,_0x4743f1){this[_0xc631('0xd')][_0xc631('0x33')](_0x234981)[_0xc631('0x11')](function(_0x404912){_0x4743f1(null,_0x404912?_0x404912:![]);})[_0xc631('0x13')](function(_0x415808){_0x4743f1(_0x415808);});};AGIVertices[_0xc631('0x14')][_0xc631('0x34')]=function(_0x4a865e,_0x53bd9f){this['rpc']['createSmsMessage'](_0x4a865e)[_0xc631('0x11')](function(_0x37f6b1){_0x53bd9f(null,_0x37f6b1);})[_0xc631('0x13')](function(_0x2e81da){_0x53bd9f(_0x2e81da);});};AGIVertices[_0xc631('0x14')][_0xc631('0x35')]=function(_0x5df634,_0x5509ae,_0x465521){this[_0xc631('0xd')][_0xc631('0x35')]({'uniqueid':this[_0xc631('0xc')][_0xc631('0x36')],'node':_0x5df634[_0xc631('0x37')],'application':_0x5df634['agicommand'],'data':_0x5509ae||null,'project_name':this['channel']['arg_1'],'callerid':this[_0xc631('0xc')][_0xc631('0x38')]})['then'](function(_0x449614){if(_0x465521){_0x465521(null,_0x449614);}})[_0xc631('0x13')](function(_0x499ec9){if(_0x465521){_0x465521(_0x499ec9);}});};AGIVertices[_0xc631('0x14')]['createSquareRecording']=function(_0xc1f989,_0x2ed01f,_0x1bdfa3,_0x18309b){this[_0xc631('0xd')][_0xc631('0x39')]({'uniqueid':this[_0xc631('0xc')][_0xc631('0x36')],'callerid':this[_0xc631('0xc')][_0xc631('0x38')],'calleridname':this[_0xc631('0xc')][_0xc631('0x3a')],'context':this[_0xc631('0xc')]['context'],'extension':this[_0xc631('0xc')][_0xc631('0x3b')],'priority':this[_0xc631('0xc')][_0xc631('0x3c')],'accountcode':this[_0xc631('0xc')][_0xc631('0x3d')],'dnid':this['channel']['dnid'],'projectName':this[_0xc631('0xc')][_0xc631('0x3e')],'saveName':_0x2ed01f,'filename':_0xc1f989['file']||_0x2ed01f,'savePath':_0x1bdfa3})['then'](function(_0x33864e){_0x18309b(null,_0x33864e);})[_0xc631('0x13')](function(_0x5055c5){_0x18309b(_0x5055c5);});};AGIVertices[_0xc631('0x14')][_0xc631('0x3f')]=function(_0x565f69,_0x246173,_0x4ed897,_0x38b2cc,_0x275d7c){this[_0xc631('0xd')][_0xc631('0x3f')]({'uniqueid':this[_0xc631('0xc')][_0xc631('0x36')],'body':_0x565f69,'direction':_0x246173,'providerName':_0x4ed897,'providerResponse':_0x38b2cc})[_0xc631('0x11')](function(_0x14b990){if(_0x275d7c){_0x275d7c(null,_0x14b990);}})[_0xc631('0x13')](function(_0x1090ef){if(_0x275d7c){_0x275d7c(_0x1090ef);}});};AGIVertices[_0xc631('0x14')][_0xc631('0x40')]=function(_0x344023,_0x4f9c0a){this[_0xc631('0xd')]['createCmContact']({'firstName':_[_0xc631('0x41')](_0x344023[_0xc631('0x12')])||_[_0xc631('0x42')](_0x344023[_0xc631('0x12')])?_0xc631('0x43')+Math[_0xc631('0x44')]():_0x344023[_0xc631('0x12')],'lastName':_[_0xc631('0x41')](_0x344023[_0xc631('0x45')])||_[_0xc631('0x42')](_0x344023[_0xc631('0x45')])?null:_0x344023[_0xc631('0x45')],'phone':_0x344023['phone'],'ListId':_0x344023['list_id'],'scheduledat':_0x344023[_0xc631('0x46')],'callbackUniqueid':this[_0xc631('0xc')][_0xc631('0x36')],'tags':_0xc631('0x47'),'description':_0xc631('0x48')+_0x344023[_0xc631('0x46')][_0xc631('0x49')](),'priority':_0x344023['callback_priority']})['then'](function(_0xe9f420){_0x4f9c0a(null,_0xe9f420);})[_0xc631('0x13')](function(_0x29115d){_0x4f9c0a(_0x29115d);});};AGIVertices[_0xc631('0x14')]['getPause']=function(_0x59cff4,_0x2cfe3f){this[_0xc631('0xd')]['getPauseById'](_0x59cff4)[_0xc631('0x11')](function(_0x2adc8a){_0x2cfe3f(null,_0x2adc8a?_0x2adc8a[_0xc631('0x12')]:![]);})['catch'](function(_0x10f95e){_0x2cfe3f(_0x10f95e);});};AGIVertices[_0xc631('0x14')][_0xc631('0x4a')]=function(_0x18a2a2,_0x48f653,_0x88618a){var _0x54d2ea={'role':_0xc631('0x4b')};_0x54d2ea[_0x18a2a2]=this[_0xc631('0xc')][_0xc631('0x38')];this[_0xc631('0xd')][_0xc631('0x4a')](_0x54d2ea,_0x48f653,this['channel']['uniqueid'])[_0xc631('0x11')](function(_0x4528b2){_0x88618a(null,_['isNil'](_0x4528b2)?![]:!![]);})[_0xc631('0x13')](function(_0x3bebad){logger[_0xc631('0x2b')](_0x3bebad);_0x88618a(null,![]);});};AGIVertices['prototype'][_0xc631('0x4c')]=function(_0x17343f,_0x197a1a){var _0x2a681={'role':_0xc631('0x4b')};_0x2a681[_0x17343f]=this[_0xc631('0xc')]['callerid'];this[_0xc631('0xd')][_0xc631('0x4c')](_0x2a681)[_0xc631('0x11')](function(_0xa1d063){_0x197a1a(null,_[_0xc631('0x42')](_0xa1d063)?![]:!![]);})[_0xc631('0x13')](function(_0x5d474a){logger[_0xc631('0x2b')](_0x5d474a);_0x197a1a(null,![]);});};AGIVertices['prototype'][_0xc631('0x4d')]=function(_0x23d431,_0x21d2e2){var _0xdb7393={'role':_0xc631('0x4b')};_0xdb7393[_0x23d431]=this['channel'][_0xc631('0x38')];this[_0xc631('0xd')][_0xc631('0x4d')](_0xdb7393)[_0xc631('0x11')](function(_0x5bba74){_0x21d2e2(null,_[_0xc631('0x42')](_0x5bba74)?![]:!![]);})[_0xc631('0x13')](function(_0x55a29c){logger[_0xc631('0x2b')](_0x55a29c);_0x21d2e2(null,![]);});};AGIVertices[_0xc631('0x14')][_0xc631('0x4e')]=function(_0x3af708,_0x471f54){var _0xca5f93={'role':_0xc631('0x4b')};_0xca5f93[_0x3af708]=this[_0xc631('0xc')][_0xc631('0x38')];var _0x21eccb=_0x3af708!=_0xc631('0x4f')?util[_0xc631('0x50')]('%s/%s@from-sip/n',_0xc631('0x51'),this[_0xc631('0xc')][_0xc631('0x38')]):undefined;this[_0xc631('0xd')]['agentLogin'](_0xca5f93,_0x21eccb)[_0xc631('0x11')](function(_0x12d8e8){_0x471f54(null,_[_0xc631('0x42')](_0x12d8e8)?![]:!![]);})[_0xc631('0x13')](function(_0x4b5c58){logger[_0xc631('0x2b')](_0x4b5c58);_0x471f54(null,![]);});};AGIVertices[_0xc631('0x14')][_0xc631('0x52')]=function(_0x1e72b6,_0x15358d){sh[_0xc631('0x53')](_['trim'](_0x1e72b6),function(_0x31cf03,_0x1eddf7){var _0x145506=_0x1eddf7[_0xc631('0x54')](/(\r\n|\n|\r)/gm,'');_0x15358d(null,_0x145506);});};AGIVertices[_0xc631('0x14')][_0xc631('0x55')]=function(_0x415691,_0x28d97b){scripts[_0xc631('0x55')](_0x415691[_0xc631('0x56')],_0x415691[_0xc631('0x57')]||_0xc631('0x58'),_0x415691[_0xc631('0x58')],_0x415691['languageCode']||_0xc631('0x59'),_0x415691['ssmlGender']||'MALE',_0x415691[_0xc631('0x5a')]||_0xc631('0x5b'))[_0xc631('0x11')](function(_0x36f99f){_0x28d97b(null,_0x36f99f);})['catch'](function(_0x3b564d){_0x28d97b(_0x3b564d);});};AGIVertices[_0xc631('0x14')]['googleTTS']=function(_0x26df56,_0x1bd244){scripts[_0xc631('0x5c')](_0x26df56['text'],_0x26df56[_0xc631('0x5d')]||'en',0x1)[_0xc631('0x11')](function(_0x1c8e3c){_0x1bd244(null,_0x1c8e3c);})['catch'](function(_0x30ca43){_0x1bd244(_0x30ca43);});};AGIVertices['prototype']['restAPI']=function(_0x18979c,_0x16bcc8){var _0x3ec097={'uri':_0x18979c[_0xc631('0x5e')],'method':_0x18979c['method'],'json':!![],'resolveWithFullResponse':!![],'strictSSL':![],'timeout':typeof parseInt(_0x18979c[_0xc631('0x5f')])==='number'&&parseInt(_0x18979c[_0xc631('0x5f')])>=0x1?parseInt(_0x18979c['timeout'])*0x3e8:0x5*0x3e8};if(_[_0xc631('0x60')]([_0xc631('0x61'),_0xc631('0x62')],_0x3ec097[_0xc631('0x63')]['toUpperCase']())){try{_0x3ec097[_0xc631('0x64')]=_0x18979c[_0xc631('0xa')]?JSON[_0xc631('0x65')](_0x18979c[_0xc631('0xa')]):{};}catch(_0x3840e1){logger[_0xc631('0x2b')]('An\x20incorrect\x20formatted\x20json\x20body\x20has\x20been\x20passed\x20to\x20the\x20function',_0x3840e1);}}try{_0x3ec097[_0xc631('0x66')]=_0x18979c['rawHeaders']?JSON[_0xc631('0x65')](_0x18979c['rawHeaders']):{};}catch(_0x4f3297){logger[_0xc631('0x2b')](_0xc631('0x67'),_0x4f3297);}if(_0x18979c[_0xc631('0x68')]){try{var _0x3257ae=require(_0x18979c[_0xc631('0x68')])['sync'](this,_0x3ec097);_0x3ec097[_0xc631('0x69')]=Mustache[_0xc631('0x6a')](_0x18979c[_0xc631('0x5e')],_0x3257ae,{},['$$','$$']);if(_0x3ec097['headers']){_0x3ec097[_0xc631('0x66')]=JSON['parse'](Mustache[_0xc631('0x6a')](JSON['stringify'](_0x3ec097[_0xc631('0x66')]),_0x3257ae,{},['$$','$$']));}if(_0x3ec097[_0xc631('0x64')]){_0x3ec097[_0xc631('0x64')]=JSON[_0xc631('0x65')](Mustache[_0xc631('0x6a')](JSON[_0xc631('0x6b')](_0x3ec097['body']),_0x3257ae,{},['$$','$$']));}}catch(_0x3b3a45){logger[_0xc631('0x2b')](_0xc631('0x6c'),_0x3b3a45);}}rp(_0x3ec097)[_0xc631('0x11')](function(_0x1722a7){var _0x3818e7={'statusCode':_0x1722a7[_0xc631('0x6d')]||0xc8,'statusMessage':_0x1722a7[_0xc631('0x6e')]||'OK','headers':_0x1722a7[_0xc631('0x66')]||{},'body':_0x1722a7[_0xc631('0x64')]||{}};_0x16bcc8(null,_0x3818e7);})['catch'](function(_0x43fc05){var _0x45c154={'statusCode':_0x43fc05[_0xc631('0x6d')]||0x1f4,'statusMessage':_0x43fc05[_0xc631('0x6f')]||'500\x20-\x20Internal\x20Server\x20Error','headers':_0x43fc05[_0xc631('0x70')]['headers']||{},'body':_0x43fc05[_0xc631('0x70')][_0xc631('0x64')]||{}};_0x16bcc8(null,_0x45c154);});};AGIVertices[_0xc631('0x14')][_0xc631('0x71')]=function(_0x4afb02,_0x4d5ade){scripts[_0xc631('0x71')](this[_0xc631('0xc')][_0xc631('0x36')],_0x4afb02[_0xc631('0x72')],_0x4afb02[_0xc631('0x58')],_0x4afb02[_0xc631('0x73')]||'en')[_0xc631('0x11')](function(_0x1b879c){_0x4d5ade(null,_0x1b879c);})[_0xc631('0x13')](function(_0x20aa9a){_0x4d5ade(_0x20aa9a);});};AGIVertices[_0xc631('0x14')][_0xc631('0x74')]=function(_0x202fff,_0x214127){scripts['googleDialogflowV2'](this['channel']['uniqueid'],_0x202fff[_0xc631('0x75')],_0x202fff['client_email'],_0x202fff[_0xc631('0x76')],_0x202fff[_0xc631('0x58')],_0x202fff[_0xc631('0x77')]||'en')[_0xc631('0x11')](function(_0x304f64){_0x214127(null,_0x304f64);})[_0xc631('0x13')](function(_0x110ec9){_0x214127(_0x110ec9);});};AGIVertices['prototype'][_0xc631('0x78')]=function(_0x21a19a,_0x4c7fdc){scripts[_0xc631('0x78')](this[_0xc631('0xc')],_0x21a19a)['then'](function(_0xa8d1b){_0x4c7fdc(null,_0xa8d1b);})[_0xc631('0x13')](function(_0x13af82){_0x4c7fdc(_0x13af82);});};AGIVertices[_0xc631('0x14')][_0xc631('0x79')]=function(_0x2ee67d,_0x237928){scripts['ispeechTTS'](_0x2ee67d[_0xc631('0x72')],_0x2ee67d['text'],_0x2ee67d[_0xc631('0x7a')]||_0xc631('0x59'),_0x2ee67d['speed'])['then'](function(_0x42b35c){_0x237928(null,_0x42b35c);})[_0xc631('0x13')](function(_0x8deb6b){_0x237928(_0x8deb6b);});};AGIVertices[_0xc631('0x14')][_0xc631('0x7b')]=function(_0x39f205,_0x1eb4a6,_0x17ddd6){scripts[_0xc631('0x7b')](_0x1eb4a6,_0x39f205['key'],_0x39f205[_0xc631('0x7c')]||'en-US',this['isConfigured'](_0x39f205['model'])?_0x39f205[_0xc631('0x7d')]:undefined)[_0xc631('0x11')](function(_0x16d7c8){_0x17ddd6(null,_0x16d7c8);})[_0xc631('0x13')](function(_0x9f4ff9){_0x17ddd6(_0x9f4ff9);});};AGIVertices['prototype'][_0xc631('0x7e')]=function(_0x105be9,_0x2ad80a){scripts[_0xc631('0x7e')](_0x105be9[_0xc631('0x7f')],_0x105be9[_0xc631('0x80')],_0x105be9[_0xc631('0x81')],_0x105be9[_0xc631('0x82')]||_0xc631('0x83'),_0x105be9['text'],_0x105be9[_0xc631('0x84')]||_0xc631('0x58'))['then'](function(_0x503ff2){_0x2ad80a(null,_0x503ff2);})[_0xc631('0x13')](function(_0x4814b8){_0x2ad80a(_0x4814b8);});};AGIVertices[_0xc631('0x14')][_0xc631('0x85')]=function(_0x14ee56,_0x33477d){scripts['awsLex'](this['channel'][_0xc631('0x36')],_0x14ee56[_0xc631('0x7f')],_0x14ee56[_0xc631('0x80')],_0x14ee56['aws_lex_region'],_0x14ee56[_0xc631('0x58')],_0x14ee56[_0xc631('0x86')])['then'](function(_0x4e8e3e){_0x33477d(null,_0x4e8e3e);})[_0xc631('0x13')](function(_0x59430f){_0x33477d(_0x59430f);});};AGIVertices[_0xc631('0x14')]['googleASR']=function(_0x26596b,_0x4d871d,_0x4460d1){scripts[_0xc631('0x87')](_0x4d871d,_0x26596b[_0xc631('0x72')],_0x26596b[_0xc631('0x88')]||_0xc631('0x59'))[_0xc631('0x11')](function(_0x2c1aff){_0x4460d1(null,_0x2c1aff);})[_0xc631('0x13')](function(_0x273279){_0x4460d1(_0x273279);});};AGIVertices['prototype'][_0xc631('0x89')]=function(_0x564f58,_0x25f2e3,_0x4bec37){scripts[_0xc631('0x89')](_0x25f2e3,_0x564f58[_0xc631('0x8a')],_0x564f58[_0xc631('0x8b')],_0x564f58[_0xc631('0x69')])[_0xc631('0x11')](function(_0xea38e5){_0x4bec37(null,_0xea38e5);})[_0xc631('0x13')](function(_0xc183d1){_0x4bec37(_0xc183d1);});};AGIVertices[_0xc631('0x14')][_0xc631('0x8c')]=function(_0x38d48e){var _0x4672f9=_[_0xc631('0x60')](verticesWithRetry,_0x38d48e[_0xc631('0x8d')])?_0x38d48e:_[_0xc631('0x8e')](_0x38d48e);for(var _0x3c89b3 in _0x4672f9){if(_0x4672f9[_0xc631('0x8f')](_0x3c89b3)){if(_0x4672f9[_0x3c89b3]&&_[_0xc631('0x90')](_0x4672f9[_0x3c89b3])){if(_[_0xc631('0x60')](recursiveMapAttributes,_0x3c89b3)){_0x4672f9[_0x3c89b3]=this[_0xc631('0x91')](_0x4672f9[_0x3c89b3]);}else{_0x4672f9[_0x3c89b3]=this[_0xc631('0x92')](_0x4672f9[_0x3c89b3]);}}}}return _0x4672f9;};AGIVertices[_0xc631('0x14')][_0xc631('0x93')]=function(_0x47b2fb){for(var _0xf03e45 in _0x47b2fb){if(_0x47b2fb[_0xc631('0x8f')](_0xf03e45)){if(_[_0xc631('0x94')](_0x47b2fb[_0xf03e45])){this[_0xc631('0x93')](_0x47b2fb[_0xf03e45]);}else if(_[_0xc631('0x95')](_0x47b2fb[_0xf03e45])){for(var _0x335a5e=0x0;_0x335a5e<_0x47b2fb[_0xf03e45]['length'];_0x335a5e++){this[_0xc631('0x93')](_0x47b2fb[_0xf03e45][_0x335a5e]);}}else if(_[_0xc631('0x90')](_0x47b2fb[_0xf03e45])){_0x47b2fb[_0xf03e45]=this[_0xc631('0x92')](_0x47b2fb[_0xf03e45]);}}}};AGIVertices['prototype'][_0xc631('0x96')]=function(_0x1b01f9,_0x1e8618){for(var _0x2ec773 in _0x1b01f9){if(_0x1b01f9[_0xc631('0x8f')](_0x2ec773)){if(_[_0xc631('0x94')](_0x1b01f9[_0x2ec773])){if(!_['isEmpty'](_0x1b01f9[_0x2ec773])){this[_0xc631('0x96')](_0x1b01f9[_0x2ec773],util[_0xc631('0x50')](_0xc631('0x97'),_0x1e8618,_0x2ec773));}}else if(_['isArray'](_0x1b01f9[_0x2ec773])){for(var _0x4c0676=0x0;_0x4c0676<_0x1b01f9[_0x2ec773][_0xc631('0x98')];_0x4c0676++){this['saveRestApiResult'](_0x1b01f9[_0x2ec773][_0x4c0676],util['format'](_0xc631('0x97'),_0x1e8618,_0x2ec773+'['+_0x4c0676+']'));}}else{if(!_[_0xc631('0x42')](_0x1b01f9[_0x2ec773])){this[_0xc631('0xc')][_0xc631('0x99')](util[_0xc631('0x50')](_0xc631('0x97'),_0x1e8618,_0x2ec773),_0x1b01f9[_0x2ec773]);}}}}};AGIVertices[_0xc631('0x14')]['replaceObjectAllVariables']=function(_0x2994b9){try{var _0x21ef5e=JSON['parse'](_0x2994b9);this[_0xc631('0x93')](_0x21ef5e);return JSON[_0xc631('0x6b')](_0x21ef5e);}catch(_0x3f3098){return this['replaceAllVariables'](_0x2994b9);}};AGIVertices[_0xc631('0x14')][_0xc631('0x92')]=function(_0x32faa7){var _0x49e354=_0x32faa7[_0xc631('0x9a')]('{');for(var _0x128703=0x1;_0x128703<_0x49e354[_0xc631('0x98')];_0x128703+=0x1){var _0x54631c=_0x49e354[_0x128703][_0xc631('0x9a')]('}');if(_0x54631c['length']>0x1){_0x32faa7=_0x32faa7[_0xc631('0x9b')]('{'+_0x54631c[0x0]+'}',this['channel'][_0xc631('0xf')](_0x54631c[0x0])['extra']||_0x54631c[0x0]);}}if(_0x49e354[_0xc631('0x98')]===0x1){return _0x32faa7['toString']();}return this[_0xc631('0x92')](_0x32faa7);};AGIVertices['prototype'][_0xc631('0x9c')]=function(_0x535d16,_0x123b43){var _0x2e7a79=this[_0xc631('0xc')][_0xc631('0xf')](_0x535d16);if(_0x2e7a79['result']===-0x1){return _0x2e7a79;}logger['info'](util[_0xc631('0x50')](_0xc631('0x9d'),_0x123b43,_0x2e7a79[_0xc631('0x9e')]));return this[_0xc631('0xc')][_0xc631('0x99')](_0x123b43,_0x2e7a79['extra']);};AGIVertices['prototype']['isConfigured']=function(_0xc06cb4){return _0xc06cb4&&_0xc06cb4!=='0'&&_0xc06cb4!=='-1'&&_0xc06cb4!=='';};AGIVertices['prototype']['maxRetry']=function(_0x29b123){this['createSquareDetailsReport']['sync'](this,_0x29b123,'-');_0x29b123['retry']=_0x29b123[_0xc631('0x9f')];return{'code':0xc8,'result':'-'};};AGIVertices[_0xc631('0x14')][_0xc631('0xa0')]=function(_0x484b46){logger[_0xc631('0x2c')](util['format']('Enter\x20in\x20MRCPSynth\x20(%s)\x20block',_0x484b46[_0xc631('0x37')]));if(!this['isConfigured'](_0x484b46[_0xc631('0x58')])){return this[_0xc631('0xc')]['noop'](_0xc631('0xa1'));}var _0x347f07='\x22'+_0x484b46['text']+'\x22';if(this[_0xc631('0xa2')](_0x484b46[_0xc631('0x70')])){_0x347f07+=','+_0x484b46[_0xc631('0x70')];}var _0x5d3b34=this[_0xc631('0xc')][_0xc631('0x53')](_0xc631('0xa3'),_0x347f07);if(_0x5d3b34[_0xc631('0xa4')]===-0x1){return _0x5d3b34;}return this['channel']['noop'](util['format'](_0xc631('0xa5'),_0x347f07));};AGIVertices[_0xc631('0x14')][_0xc631('0xa6')]=function(_0x435e53){logger[_0xc631('0x2c')](util[_0xc631('0x50')]('Enter\x20in\x20MRCPRecog\x20(%s)\x20block',_0x435e53[_0xc631('0x37')]));if(!this[_0xc631('0xa2')](_0x435e53[_0xc631('0xa7')])){return this[_0xc631('0xc')][_0xc631('0xa8')](_0xc631('0xa9'));}var _0x1e0af8=_0x435e53[_0xc631('0xa7')];if(this[_0xc631('0xa2')](_0x435e53[_0xc631('0x70')])){_0x1e0af8+=','+_0x435e53[_0xc631('0x70')];}var _0x4ebbf2=this[_0xc631('0xc')][_0xc631('0x53')](_0xc631('0xaa'),_0x1e0af8);if(_0x4ebbf2['result']===-0x1){return _0x4ebbf2;}var _0x58b423=this[_0xc631('0x9c')](_0xc631('0xab'),'MRCP_RECOG_CONFIDENCE');if(_0x58b423['result']===-0x1){return _0x58b423;}var _0x54dc47=this[_0xc631('0x9c')]('RECOG_INPUT()','MRCP_RECOG_TRANSCRIPT');if(_0x54dc47['result']===-0x1){return _0x54dc47;}var _0x11b07a=this['getAndSetVariable'](_0xc631('0xac'),'MRCP_RECOG_INSTANCE');if(_0x11b07a['result']===-0x1){return _0x11b07a;}return this[_0xc631('0xc')]['noop'](util[_0xc631('0x50')](_0xc631('0xad'),_0x1e0af8));};AGIVertices[_0xc631('0x14')]['agi']=function(_0x3070da){logger[_0xc631('0x2c')](util[_0xc631('0x50')](_0xc631('0xae'),_0x3070da[_0xc631('0x37')]));return this['channel']['agi']([_0x3070da['command'],_0x3070da[_0xc631('0xaf')]]);};AGIVertices['prototype'][_0xc631('0xb0')]=function(_0x362429){logger['info'](util[_0xc631('0x50')](_0xc631('0xb1'),_0x362429[_0xc631('0x37')]));if(this[_0xc631('0xa2')](_0x362429[_0xc631('0x5f')])){logger[_0xc631('0x2c')](util[_0xc631('0x50')](_0xc631('0xb2'),_0x362429[_0xc631('0x5f')]));var _0x5e573f=this['channel'][_0xc631('0xb3')](_0x362429[_0xc631('0x5f')]);if(_0x5e573f['result']===-0x1){return _0x5e573f;}}return this[_0xc631('0xc')][_0xc631('0xb0')]();};AGIVertices[_0xc631('0x14')][_0xc631('0x47')]=function(_0x3e24cd){logger[_0xc631('0x2c')](util[_0xc631('0x50')](_0xc631('0xb4'),_0x3e24cd[_0xc631('0x37')]));if(!this['isConfigured'](_0x3e24cd[_0xc631('0xb5')])){return this['channel'][_0xc631('0x2b')](_0x3e24cd,_0xc631('0xb6'));}_0x3e24cd[_0xc631('0x46')]=moment();if(this['isConfigured'](_0x3e24cd['delay'])){_0x3e24cd[_0xc631('0x46')]=moment()[_0xc631('0xb7')](_0x3e24cd[_0xc631('0xb8')],_0xc631('0xb9'));}if(!this[_0xc631('0xa2')](_0x3e24cd[_0xc631('0xba')])){_0x3e24cd[_0xc631('0xba')]=0x2;}this[_0xc631('0x40')][_0xc631('0xbb')](this,_0x3e24cd);return this[_0xc631('0xc')][_0xc631('0xa8')](util[_0xc631('0x50')]('CALLBACK\x20added\x20phone:\x20%s\x20on\x20list:\x20%s\x20at\x20%s',_0x3e24cd[_0xc631('0xbc')],_0x3e24cd[_0xc631('0xb5')],_0x3e24cd[_0xc631('0x46')]));};AGIVertices['prototype'][_0xc631('0xbd')]=function(_0x4fc4d6){logger[_0xc631('0x2c')](util[_0xc631('0x50')]('Enter\x20in\x20CUSTOM\x20APP\x20(%s)\x20block',_0x4fc4d6[_0xc631('0x37')]));var _0x45c8ca=this['channel'][_0xc631('0x53')](_0x4fc4d6[_0xc631('0xbe')],_0x4fc4d6['options']);if(_0x45c8ca['result']===-0x1){return _0x45c8ca;}return this[_0xc631('0xc')][_0xc631('0xa8')](util['format']('Executed\x20command\x20%s\x20%s',_0x4fc4d6[_0xc631('0xbe')],_0x4fc4d6['options']));};AGIVertices[_0xc631('0x14')]['lumenvoxtts']=function(_0x2f16e4){logger[_0xc631('0x2c')](util[_0xc631('0x50')](_0xc631('0xbf'),_0x2f16e4[_0xc631('0x37')]));if(!this['isConfigured'](_0x2f16e4['text'])){return this[_0xc631('0xc')][_0xc631('0xa8')]('no\x20text\x20configured');}var _0x467f9e='\x22'+_0x2f16e4[_0xc631('0x58')]+'\x22';if(this[_0xc631('0xa2')](_0x2f16e4[_0xc631('0x70')])){_0x467f9e+=','+_0x2f16e4[_0xc631('0x70')];}var _0x4bf4d7=this[_0xc631('0xc')][_0xc631('0x53')](_0xc631('0xa3'),_0x467f9e);if(_0x4bf4d7[_0xc631('0xa4')]===-0x1){return _0x4bf4d7;}return this[_0xc631('0xc')][_0xc631('0xa8')](util[_0xc631('0x50')](_0xc631('0xa5'),_0x467f9e));};AGIVertices[_0xc631('0x14')][_0xc631('0xc0')]=function(_0x39488c){logger[_0xc631('0x2c')](util['format'](_0xc631('0xc1'),_0x39488c[_0xc631('0x37')]));if(!this['isConfigured'](_0x39488c[_0xc631('0x58')])){return this[_0xc631('0xc')][_0xc631('0xa8')]('no\x20text\x20configured');}var _0x46ed87='\x22'+_0x39488c['text']+'\x22';if(this[_0xc631('0xa2')](_0x39488c[_0xc631('0x70')])){_0x46ed87+=','+_0x39488c[_0xc631('0x70')];}var _0x23fe23=this[_0xc631('0xc')][_0xc631('0x53')](_0xc631('0xa3'),_0x46ed87);if(_0x23fe23[_0xc631('0xa4')]===-0x1){return _0x23fe23;}return this[_0xc631('0xc')][_0xc631('0xa8')](util['format'](_0xc631('0xa5'),_0x46ed87));};AGIVertices['prototype'][_0xc631('0xc2')]=function(_0x1db4da){logger['info'](util[_0xc631('0x50')](_0xc631('0xc3'),_0x1db4da[_0xc631('0x37')]));if(!this[_0xc631('0xa2')](_0x1db4da['grammar'])){return this[_0xc631('0xc')]['noop'](_0xc631('0xa9'));}var _0x219685=_0x1db4da[_0xc631('0xa7')];if(this['isConfigured'](_0x1db4da[_0xc631('0x70')])){_0x219685+=','+_0x1db4da[_0xc631('0x70')];}var _0x2294c1=this['channel']['exec'](_0xc631('0xaa'),_0x219685);if(_0x2294c1[_0xc631('0xa4')]===-0x1){return _0x2294c1;}var _0x549d4f=this['getAndSetVariable'](_0xc631('0xab'),_0xc631('0xc4'));if(_0x549d4f[_0xc631('0xa4')]===-0x1){return _0x549d4f;}var _0x4d57c4=this[_0xc631('0x9c')](_0xc631('0xc5'),'LUMENVOX_ASR_TRANSCRIPT');if(_0x4d57c4[_0xc631('0xa4')]===-0x1){return _0x4d57c4;}var _0x11eb39=this['getAndSetVariable'](_0xc631('0xac'),_0xc631('0xc6'));if(_0x11eb39[_0xc631('0xa4')]===-0x1){return _0x11eb39;}return this[_0xc631('0xc')][_0xc631('0xa8')](util['format'](_0xc631('0xad'),_0x219685));};AGIVertices[_0xc631('0x14')][_0xc631('0xc7')]=function(_0x5d04fb){logger[_0xc631('0x2c')](util[_0xc631('0x50')](_0xc631('0xc8'),_0x5d04fb['label']));if(!this['isConfigured'](_0x5d04fb[_0xc631('0xa7')])){return this[_0xc631('0xc')][_0xc631('0xa8')](_0xc631('0xa9'));}var _0x29f0b1=_0x5d04fb['grammar'];if(this[_0xc631('0xa2')](_0x5d04fb[_0xc631('0x70')])){_0x29f0b1+=','+_0x5d04fb['options'];}var _0x37e487=this[_0xc631('0xc')][_0xc631('0x53')](_0xc631('0xaa'),_0x29f0b1);if(_0x37e487[_0xc631('0xa4')]===-0x1){return _0x37e487;}var _0x17aa44=this[_0xc631('0x9c')](_0xc631('0xab'),_0xc631('0xc9'));if(_0x17aa44[_0xc631('0xa4')]===-0x1){return _0x17aa44;}var _0x3e369a=this[_0xc631('0x9c')](_0xc631('0xc5'),_0xc631('0xca'));if(_0x3e369a[_0xc631('0xa4')]===-0x1){return _0x3e369a;}var _0xd8522b=this[_0xc631('0x9c')](_0xc631('0xac'),_0xc631('0xcb'));if(_0xd8522b[_0xc631('0xa4')]===-0x1){return _0xd8522b;}return this[_0xc631('0xc')][_0xc631('0xa8')](util[_0xc631('0x50')](_0xc631('0xad'),_0x29f0b1));};AGIVertices[_0xc631('0x14')][_0xc631('0xcc')]=function(_0x2a23eb){logger[_0xc631('0x2c')](util['format'](_0xc631('0xcd'),_0x2a23eb[_0xc631('0x37')]));if(!this[_0xc631('0xa2')](_0x2a23eb[_0xc631('0xce')])){return this['channel'][_0xc631('0x2b')](_0x2a23eb,_0xc631('0xcf'));}var _0x129c02=this[_0xc631('0x18')][_0xc631('0xbb')](this,_0x2a23eb[_0xc631('0xce')]);if(!_0x129c02){return this['channel'][_0xc631('0x2b')](_0x2a23eb,_0xc631('0xd0'));}if(!this[_0xc631('0xa2')](_0x2a23eb['query'])){return this[_0xc631('0xc')][_0xc631('0x2b')](_0x2a23eb,_0xc631('0xd1'));}var _0x1faabe=_0x2a23eb[_0xc631('0xd2')][_0xc631('0x54')](/(\r\n|\n|\r)/gm,'\x20');this[_0xc631('0xc')][_0xc631('0xa8')](util[_0xc631('0x50')](_0xc631('0xd3'),_0x1faabe));var _0x289a31=this[_0xc631('0x29')]['sync'](this,_0x129c02,_0x1faabe);this[_0xc631('0x35')][_0xc631('0xbb')](this,_0x2a23eb,_0x1faabe);if(!this[_0xc631('0xa2')](_0x2a23eb[_0xc631('0xd4')])){return this[_0xc631('0xc')][_0xc631('0xa8')]('no\x20variable\x20selected\x20for\x20the\x20result');}var _0x563222=this[_0xc631('0xf')][_0xc631('0xbb')](this,_0x2a23eb['variable_id']);if(!_0x563222){return this[_0xc631('0xc')][_0xc631('0x2b')](_0x2a23eb,_0xc631('0xd5'));}var _0x45cbdb=this;_0x289a31[_0xc631('0xd6')](function(_0x17d470,_0x3e2477){Object[_0xc631('0xd7')](_0x17d470)['forEach'](function(_0x372a70){_0x45cbdb[_0xc631('0xc')][_0xc631('0x99')](util[_0xc631('0x50')]('%s[%s][%s]',_0x563222,_0x3e2477,_0x372a70),_0x17d470[_0x372a70]);});});this[_0xc631('0xc')][_0xc631('0x99')](util[_0xc631('0x50')]('%s_ROWS_COUNT',_0x563222),_0x289a31[_0xc631('0x98')]);return this[_0xc631('0xc')][_0xc631('0xa8')](util[_0xc631('0x50')](_0xc631('0xd8'),_0x563222));};AGIVertices['prototype'][_0xc631('0xd9')]=function(_0x45a5aa){logger['debug'](util['format'](_0xc631('0xda'),_0x45a5aa[_0xc631('0x37')]));if(!this[_0xc631('0xa2')](_0x45a5aa[_0xc631('0xdb')])){return this[_0xc631('0xc')][_0xc631('0x2b')](_0x45a5aa,_0xc631('0xdc'));}var _0x1a8bc3=this[_0xc631('0xdd')]['sync'](this,_0x45a5aa[_0xc631('0xdb')]);if(!_0x1a8bc3){return this[_0xc631('0xc')][_0xc631('0x2b')](_0x45a5aa,_0xc631('0xde'));}var _0x1d9b38=this[_0xc631('0xc')][_0xc631('0x53')](_0xc631('0xdf'),[util[_0xc631('0x50')](_0xc631('0xe0'),_0x1a8bc3),_0x45a5aa[_0xc631('0x5f')],_0x45a5aa[_0xc631('0xe1')],_0x45a5aa[_0xc631('0x5e')]]);if(_0x1d9b38['result']===-0x1){return _0x1d9b38;}return this[_0xc631('0xc')][_0xc631('0xa8')](util[_0xc631('0x50')](_0xc631('0xe2'),'DIAL'));};AGIVertices[_0xc631('0x14')]['dialogflow']=function(_0xde596b){logger['info'](util[_0xc631('0x50')](_0xc631('0xe3'),_0xde596b[_0xc631('0x37')]));if(!this['isConfigured'](_0xde596b['key'])){return this[_0xc631('0xc')][_0xc631('0xa8')](_0xc631('0xe4'));}if(!this[_0xc631('0xa2')](_0xde596b['text'])){return this['channel']['noop'](_0xc631('0xa1'));}this[_0xc631('0xc')][_0xc631('0xe5')]=!![];this[_0xc631('0x35')](_0xde596b);this[_0xc631('0x3f')](_0xde596b[_0xc631('0x58')],'in','','');this[_0xc631('0xc')][_0xc631('0xa8')](util['format']('Trying\x20Dialogflow:\x20%s',_0xde596b[_0xc631('0x58')]));var _0x2adde2=this['googleDialogflow'][_0xc631('0xbb')](this,_0xde596b);if(_0x2adde2){for(var _0x24d2a4 in _0x2adde2){if(_0x2adde2[_0xc631('0x8f')](_0x24d2a4)){this[_0xc631('0xc')][_0xc631('0x99')](util[_0xc631('0x50')]('DIALOGFLOW_%s',_0x24d2a4[_0xc631('0xe6')]()),_0x2adde2[_0x24d2a4]);}}this['createSquareMessage'](_0x2adde2[_0xc631('0xe7')],'out','dialogflow','');return this[_0xc631('0xc')][_0xc631('0xa8')](util[_0xc631('0x50')](_0xc631('0xe8'),_0x2adde2['speech']));}return this[_0xc631('0xc')][_0xc631('0x2b')](_0xde596b,_0xc631('0xe9'));};AGIVertices[_0xc631('0x14')][_0xc631('0xea')]=function(_0x4b63cc){logger[_0xc631('0x2c')](util['format']('Enter\x20in\x20DIALOGFLOW\x20V2\x20(%s)\x20block',_0x4b63cc[_0xc631('0x37')]));if(!this[_0xc631('0xa2')](_0x4b63cc[_0xc631('0x75')])){return this[_0xc631('0xc')][_0xc631('0xa8')](_0xc631('0xeb'));}if(!this[_0xc631('0xa2')](_0x4b63cc[_0xc631('0xec')])){return this[_0xc631('0xc')][_0xc631('0xa8')](_0xc631('0xed'));}if(!this[_0xc631('0xa2')](_0x4b63cc[_0xc631('0x76')])){return this[_0xc631('0xc')][_0xc631('0xa8')](_0xc631('0xee'));}if(!this[_0xc631('0xa2')](_0x4b63cc[_0xc631('0x77')])){return this['channel']['noop']('no\x20anguage\x20configured');}if(!this[_0xc631('0xa2')](_0x4b63cc[_0xc631('0x58')])){return this[_0xc631('0xc')]['noop']('no\x20text\x20configured');}this[_0xc631('0xc')][_0xc631('0xe5')]=!![];this['createSquareDetailsReport'](_0x4b63cc);this['createSquareMessage'](_0x4b63cc[_0xc631('0x58')],'in','','');this[_0xc631('0xc')]['noop'](util[_0xc631('0x50')]('Trying\x20DialogflowV2:\x20%s',_0x4b63cc['text']));var _0x58f82f=this['googleDialogflowV2'][_0xc631('0xbb')](this,_0x4b63cc);if(_0x58f82f){for(var _0x5d416a in _0x58f82f){if(_0x58f82f[_0xc631('0x8f')](_0x5d416a)){if(_0x5d416a!==_0xc631('0xef')){this[_0xc631('0xc')][_0xc631('0x99')](util[_0xc631('0x50')]('DIALOGFLOW_%s',_0x5d416a['toUpperCase']()),_0x58f82f[_0x5d416a]);}}}this[_0xc631('0x3f')](_0x58f82f[_0xc631('0xe7')],_0xc631('0xf0'),_0xc631('0xea'),_0x58f82f[_0xc631('0xef')]);return this[_0xc631('0xc')][_0xc631('0xa8')](util['format'](_0xc631('0xf1'),_0x58f82f[_0xc631('0xe7')]));}return this['channel'][_0xc631('0x2b')](_0x4b63cc,_0xc631('0xf2'));};AGIVertices[_0xc631('0x14')][_0xc631('0xf3')]=function(_0x27f17a){logger[_0xc631('0x2c')](util['format'](_0xc631('0xf4'),_0x27f17a[_0xc631('0x37')]));if(!this[_0xc631('0xa2')](_0x27f17a[_0xc631('0xf5')])){return this[_0xc631('0xc')][_0xc631('0xa8')]('no\x20ndauth\x20url\x20configured');}if(!this[_0xc631('0xa2')](_0x27f17a[_0xc631('0xf6')])){return this[_0xc631('0xc')]['noop']('no\x20username\x20configured');}if(!this[_0xc631('0xa2')](_0x27f17a[_0xc631('0xf7')])){return this['channel'][_0xc631('0xa8')](_0xc631('0xf8'));}if(!this[_0xc631('0xa2')](_0x27f17a['ndassistant_url'])){return this[_0xc631('0xc')]['noop'](_0xc631('0xa1'));}this[_0xc631('0xc')]['bot']=!![];this['createSquareDetailsReport'](_0x27f17a);this['createSquareMessage'](_0x27f17a[_0xc631('0x58')],'in','','');this[_0xc631('0xc')][_0xc631('0xa8')](util[_0xc631('0x50')]('Trying\x20SestekNDA:\x20%s',_0x27f17a[_0xc631('0x58')]));var _0x428c90=this['sestekNDA'][_0xc631('0xbb')](this,_0x27f17a);if(_0x428c90){for(var _0x36a052 in _0x428c90){if(_0x428c90[_0xc631('0x8f')](_0x36a052)){this[_0xc631('0xc')][_0xc631('0x99')](util[_0xc631('0x50')](_0xc631('0xf9'),_0x36a052[_0xc631('0xe6')]()),_0x428c90[_0x36a052]);}}this[_0xc631('0x3f')](_0x428c90[_0xc631('0xe7')],_0xc631('0xf0'),_0xc631('0xf3'),'');if(_0x428c90['audiofile']){this[_0xc631('0xc')]['noop'](util[_0xc631('0x50')]('Sestek\x20NDA\x20%s\x20file\x20created',_0x428c90['audiofile']));var _0x3b4b82=this['channel'][_0xc631('0xfa')](_0x428c90['audiofile']);try{fs[_0xc631('0xfb')](_0x428c90['audiofile']+_0xc631('0xfc'));}catch(_0x1b7a22){logger[_0xc631('0x2b')](_0x1b7a22);}return _0x3b4b82;}else{return this[_0xc631('0xc')][_0xc631('0xa8')](util[_0xc631('0x50')]('SestekNDA\x20Result\x20%s',_0x428c90[_0xc631('0xe7')]));}}return this['channel'][_0xc631('0x2b')](_0x27f17a,'SestekNDA\x20is\x20unreachable');};AGIVertices['prototype'][_0xc631('0xfd')]=function(_0x45c441){logger[_0xc631('0x2c')](util[_0xc631('0x50')]('Enter\x20in\x20END\x20(%s)\x20block',_0x45c441['label']));return this[_0xc631('0xc')][_0xc631('0xa8')](_0xc631('0xfd'));};AGIVertices[_0xc631('0x14')]['ext_dial']=function(_0x34a645){logger[_0xc631('0x2c')](util[_0xc631('0x50')]('Enter\x20in\x20EXTERNAL\x20DIAL\x20(%s)\x20block',_0x34a645[_0xc631('0x37')]));var _0x44ed9c='';if(_0x34a645['trunk_id']){if(!this['isConfigured'](_0x34a645[_0xc631('0xfe')])){return this['channel']['error'](_0x34a645,'no\x20trunk\x20selected');}else{var _0x4f2aed=parseInt(_0x34a645[_0xc631('0xfe')],0xa);if(isNaN(_0x4f2aed)){_0x44ed9c=_0x34a645[_0xc631('0xfe')];}else{_0x44ed9c=this[_0xc631('0x1c')][_0xc631('0xbb')](this,_0x34a645[_0xc631('0xfe')]);if(!_0x44ed9c){return this[_0xc631('0xc')]['error'](_0x34a645,_0xc631('0xff'));}}}}else if(_0x34a645['trunk_name']){_0x44ed9c=_0x34a645['trunk_name'];}else{return this[_0xc631('0xc')]['error'](_0x34a645,_0xc631('0x100'));}var _0x4b002f=this[_0xc631('0xc')][_0xc631('0x53')](_0xc631('0xdf'),[util[_0xc631('0x50')](_0xc631('0x101'),_0x44ed9c,_0x34a645['phone']),_0x34a645[_0xc631('0x5f')],_0x34a645[_0xc631('0xe1')],_0x34a645['url']]);if(_0x4b002f[_0xc631('0xa4')]===-0x1){return _0x4b002f;}return this[_0xc631('0xc')][_0xc631('0xa8')](util[_0xc631('0x50')]('Executed\x20command\x20%s','DIAL'));};AGIVertices[_0xc631('0x14')][_0xc631('0x102')]=function(_0x200daf){logger[_0xc631('0x2c')](util[_0xc631('0x50')](_0xc631('0x103'),_0x200daf[_0xc631('0x37')]));return this[_0xc631('0xc')]['noop'](_0xc631('0x102'));};AGIVertices['prototype']['getdigits']=function(_0x1a9c67){logger[_0xc631('0x2c')](util['format'](_0xc631('0x104'),_0x1a9c67[_0xc631('0x37')]));if(_0x1a9c67['retry']===0x0){return this[_0xc631('0x9f')](_0x1a9c67);}_0x1a9c67[_0xc631('0x105')]-=0x1;if(!this['isConfigured'](_0x1a9c67[_0xc631('0x106')])){return this['channel']['error'](_0x1a9c67,_0xc631('0x107'));}var _0x4d261c=this['getSound'][_0xc631('0xbb')](this,_0x1a9c67[_0xc631('0x106')]);if(!_0x4d261c){return this['channel']['error'](_0x1a9c67,_0xc631('0x108'));}if(!this[_0xc631('0xa2')](_0x1a9c67[_0xc631('0xd4')])){return this[_0xc631('0xc')][_0xc631('0x2b')](_0xc631('0x109'));}var _0x5eaa2f=this[_0xc631('0xc')]['getData'](_0x4d261c,_0x1a9c67[_0xc631('0x10a')],_0x1a9c67['maxdigit']);var _0x4c46ad=_0x5eaa2f['result']?_0x5eaa2f[_0xc631('0xa4')]['toString']():'';logger[_0xc631('0x2c')]('test',JSON['stringify'](_0x5eaa2f));if(_0x5eaa2f[_0xc631('0xa4')]===-0x1){this['createSquareDetailsReport'][_0xc631('0xbb')](this,_0x1a9c67,_0x4c46ad);return _0x5eaa2f;}else if(_0x5eaa2f['extra']===_0xc631('0x5f')){_0x5eaa2f['result']=_0x4c46ad[_0xc631('0x98')]>=parseInt(_0x1a9c67[_0xc631('0x10b')])?'x':'i';}else{_0x5eaa2f[_0xc631('0xa4')]=_0x4c46ad[_0xc631('0x98')]>=parseInt(_0x1a9c67['mindigit'])&&_0x4c46ad[_0xc631('0x98')]<=parseInt(_0x1a9c67[_0xc631('0x10c')])?'x':'i';}var _0x24f304=this[_0xc631('0xf')][_0xc631('0xbb')](this,_0x1a9c67['variable_id']);if(!_0x24f304){return this[_0xc631('0xc')][_0xc631('0x2b')](_0x1a9c67,_0xc631('0xd5'));}this['channel'][_0xc631('0x99')](_0x24f304,_0x4c46ad);if(this[_0xc631('0xa2')](_0x1a9c67['hiddendigitsnum'])){var _0x422a87=parseInt(_0x1a9c67['hiddendigitsnum'],0xa);var _0x389d45=rs[_0xc631('0x10d')]({'charset':'*','length':_0x422a87});var _0x21cebb=_0x4c46ad[_0xc631('0x98')];if(_0x21cebb>0x0){if(_0x21cebb>_0x422a87){this[_0xc631('0x35')]['sync'](this,_0x1a9c67,_0x1a9c67[_0xc631('0x10e')]===_0xc631('0x10f')?_0x389d45+_0x4c46ad['substr'](_0x422a87):_0x4c46ad['substr'](0x0,_0x21cebb-_0x422a87)+_0x389d45);}else{this['createSquareDetailsReport'][_0xc631('0xbb')](this,_0x1a9c67,rs[_0xc631('0x10d')]({'charset':'*','length':_0x21cebb}));}}else{this['createSquareDetailsReport'][_0xc631('0xbb')](this,_0x1a9c67,'');}}else{this[_0xc631('0x35')][_0xc631('0xbb')](this,_0x1a9c67,_0x4c46ad);}return _0x5eaa2f;};AGIVertices['prototype']['getsecretdigits']=function(_0x1a4813){logger[_0xc631('0x2c')](util[_0xc631('0x50')]('Enter\x20in\x20GETSECRETDIGITS\x20(%s)\x20block',_0x1a4813[_0xc631('0x37')]));return this[_0xc631('0x110')](_0x1a4813);};AGIVertices[_0xc631('0x14')][_0xc631('0x111')]=function(_0x344033){logger[_0xc631('0x2c')](util[_0xc631('0x50')](_0xc631('0x112'),_0x344033[_0xc631('0x37')]));this[_0xc631('0x35')]['sync'](this,_0x344033,_0x344033['goalname']);return this[_0xc631('0xc')][_0xc631('0xa8')](util[_0xc631('0x50')]('GOAL\x20%s',_0x344033['goalname']));};AGIVertices[_0xc631('0x14')][_0xc631('0x113')]=function(_0x4cd9ab){logger[_0xc631('0x2c')](util[_0xc631('0x50')](_0xc631('0x114'),_0x4cd9ab[_0xc631('0x37')]));if(!this['isConfigured'](_0x4cd9ab[_0xc631('0x7f')])||!this[_0xc631('0xa2')](_0x4cd9ab[_0xc631('0x80')])){return this['channel']['noop'](_0xc631('0x115'));}if(!this[_0xc631('0xa2')](_0x4cd9ab[_0xc631('0x58')])){return this[_0xc631('0xc')][_0xc631('0xa8')](_0xc631('0xa1'));}this[_0xc631('0xc')][_0xc631('0xa8')](util[_0xc631('0x50')](_0xc631('0x116'),_0x4cd9ab['text']));var _0x3d29cf=this[_0xc631('0x7e')][_0xc631('0xbb')](this,_0x4cd9ab);if(_0x3d29cf){this['channel'][_0xc631('0xa8')](util[_0xc631('0x50')](_0xc631('0x117'),_0x3d29cf));var _0x19c93a=this[_0xc631('0xc')][_0xc631('0xfa')](_0x3d29cf);try{fs['unlink'](_0x3d29cf+'.wav');}catch(_0x5617e6){logger[_0xc631('0x2b')](_0x5617e6);}return _0x19c93a;}return this[_0xc631('0xc')][_0xc631('0x2b')](_0x4cd9ab,_0xc631('0x118'));};AGIVertices['prototype']['awslex']=function(_0x248aa6){logger[_0xc631('0x2c')](util[_0xc631('0x50')](_0xc631('0x119'),_0x248aa6[_0xc631('0x37')]));if(!this['isConfigured'](_0x248aa6[_0xc631('0x7f')])||!this[_0xc631('0xa2')](_0x248aa6[_0xc631('0x80')])){return this['channel']['noop'](_0xc631('0x115'));}if(!this[_0xc631('0xa2')](_0x248aa6[_0xc631('0x86')])){return this[_0xc631('0xc')][_0xc631('0xa8')](_0xc631('0x11a'));}if(!this['isConfigured'](_0x248aa6['text'])){return this[_0xc631('0xc')]['noop'](_0xc631('0xa1'));}this[_0xc631('0xc')][_0xc631('0xe5')]=!![];this[_0xc631('0x35')](_0x248aa6);this[_0xc631('0x3f')](_0x248aa6[_0xc631('0x58')],'in','','');this['channel']['noop'](util[_0xc631('0x50')](_0xc631('0x11b'),_0x248aa6[_0xc631('0x58')]));var _0x295df5=this[_0xc631('0x85')][_0xc631('0xbb')](this,_0x248aa6);if(_0x295df5){for(var _0x3fe935 in _0x295df5){if(_0x295df5['hasOwnProperty'](_0x3fe935)&&_['isString'](_0x295df5[_0x3fe935])){this[_0xc631('0xc')][_0xc631('0x99')](util[_0xc631('0x50')](_0xc631('0x11c'),_0x3fe935[_0xc631('0xe6')]()),_0x295df5[_0x3fe935]);}}if(_[_0xc631('0x42')](_0x295df5[_0xc631('0x6f')])){return this['channel']['noop'](_0xc631('0x11d'));}else{this[_0xc631('0x3f')](_0x295df5[_0xc631('0x6f')],_0xc631('0xf0'),_0xc631('0x11e'),'');return this[_0xc631('0xc')][_0xc631('0xa8')](util['format'](_0xc631('0x11f'),_0x295df5[_0xc631('0x6f')]));}}return this[_0xc631('0xc')][_0xc631('0x2b')](_0x248aa6,_0xc631('0x120'));};AGIVertices['prototype'][_0xc631('0x121')]=function(_0x1164e3){logger[_0xc631('0x2c')](util['format'](_0xc631('0x122'),_0x1164e3[_0xc631('0x37')],_0x1164e3[_0xc631('0x5f')]));if(!this[_0xc631('0xa2')](_0x1164e3[_0xc631('0x72')])){return this[_0xc631('0xc')]['noop']('no\x20key\x20configured');}var _0x3f81cb=_0xc631('0x123');var _0x20e526=util[_0xc631('0x50')](_0xc631('0x124'),FILES_PATH,rs[_0xc631('0x10d')](0x4));var _0x171f71=util[_0xc631('0x50')](_0xc631('0x97'),_0x20e526,_0x3f81cb);var _0x28075e=!![];if(_0x1164e3[_0xc631('0x125')]==='NOBEEP'){_0x28075e=![];}var _0xf5228=this[_0xc631('0xc')][_0xc631('0x126')](_0x20e526,_0x3f81cb,_0x1164e3[_0xc631('0x127')],_0x1164e3[_0xc631('0x5f')],undefined,_0x28075e);if(_0xf5228[_0xc631('0xa4')]!==-0x1){this[_0xc631('0xc')]['noop'](util[_0xc631('0x50')](_0xc631('0x128'),_0x171f71));var _0x591f59=this['googleASR']['sync'](this,_0x1164e3,_0x171f71);if(_0x591f59){for(var _0x223776 in _0x591f59){if(_0x591f59['hasOwnProperty'](_0x223776)){this[_0xc631('0xc')][_0xc631('0x99')](util[_0xc631('0x50')](_0xc631('0x129'),_0x223776[_0xc631('0xe6')]()),_0x591f59[_0x223776]);}}return this[_0xc631('0xc')][_0xc631('0xa8')](util[_0xc631('0x50')](_0xc631('0x12a'),JSON['stringify'](_0x591f59)));}}return _0xf5228;};AGIVertices[_0xc631('0x14')][_0xc631('0x12b')]=function(_0x521c1d){logger[_0xc631('0x2c')](util[_0xc631('0x50')](_0xc631('0x12c'),_0x521c1d[_0xc631('0x37')]));if(!this[_0xc631('0xa2')](_0x521c1d['appid'])){return this[_0xc631('0xc')][_0xc631('0xa8')](_0xc631('0x12d'));}if(!this[_0xc631('0xa2')](_0x521c1d[_0xc631('0x8b')])){return this[_0xc631('0xc')][_0xc631('0xa8')](_0xc631('0x12e'));}var _0x507a5d=_0xc631('0x123');var _0x52de8f=util[_0xc631('0x50')](_0xc631('0x124'),FILES_PATH,rs['generate'](0x4));var _0x40a4f5=util[_0xc631('0x50')](_0xc631('0x97'),_0x52de8f,_0x507a5d);var _0x2a1027=!![];if(_0x521c1d[_0xc631('0x125')]===_0xc631('0x12f')){_0x2a1027=![];}var _0x413e60=this[_0xc631('0xc')]['recordFile'](_0x52de8f,_0x507a5d,_0x521c1d[_0xc631('0x127')],_0x521c1d[_0xc631('0x5f')],undefined,_0x2a1027);if(_0x413e60[_0xc631('0xa4')]!==-0x1){this[_0xc631('0xc')][_0xc631('0xa8')](util[_0xc631('0x50')]('tilde\x20%s\x20file\x20created',_0x40a4f5));var _0x16ca32=this['tildeASR'][_0xc631('0xbb')](this,_0x521c1d,_0x40a4f5);if(_0x16ca32){for(var _0x5ce84f in _0x16ca32){if(_0x16ca32[_0xc631('0x8f')](_0x5ce84f)){this[_0xc631('0xc')][_0xc631('0x99')](util[_0xc631('0x50')](_0xc631('0x130'),_0x5ce84f[_0xc631('0xe6')]()),_0x16ca32[_0x5ce84f]);}}return this[_0xc631('0xc')][_0xc631('0xa8')](util[_0xc631('0x50')](_0xc631('0x131'),JSON[_0xc631('0x6b')](_0x16ca32)));}}return _0x413e60;};AGIVertices[_0xc631('0x14')][_0xc631('0x132')]=function(_0x3ec697){logger[_0xc631('0x2c')](util[_0xc631('0x50')]('Enter\x20in\x20GOTO\x20(%s)\x20block',_0x3ec697['label']));return this['channel'][_0xc631('0x133')](_0x3ec697[_0xc631('0x134')],_0x3ec697[_0xc631('0x3b')],_0x3ec697[_0xc631('0x3c')]);};AGIVertices[_0xc631('0x14')][_0xc631('0x135')]=function(_0x1836de){logger['info'](util[_0xc631('0x50')](_0xc631('0x136'),_0x1836de[_0xc631('0x37')]));if(!this[_0xc631('0xa2')](_0x1836de[_0xc631('0x137')])){return this['channel'][_0xc631('0x2b')](_0x1836de,_0xc631('0x138'));}try{var _0x59a088=eval(_0x1836de[_0xc631('0x137')])?_0xc631('0x139'):'false';this[_0xc631('0xc')][_0xc631('0xa8')](util[_0xc631('0x50')](_0xc631('0x13a'),_0x1836de[_0xc631('0x137')],_0x59a088));return{'code':0xc8,'result':_0x59a088};}catch(_0x5231bb){return{'code':0xc8,'result':'false'};}};AGIVertices['prototype']['gotoiftime']=function(_0xcfd6a0){logger[_0xc631('0x2c')](util[_0xc631('0x50')](_0xc631('0x13b'),_0xcfd6a0[_0xc631('0x37')]));if(!this['isConfigured'](_0xcfd6a0[_0xc631('0x13c')])){return this[_0xc631('0xc')][_0xc631('0x2b')](_0xcfd6a0,_0xc631('0x13d'));}var _0x4a93d9=this[_0xc631('0x13e')][_0xc631('0xbb')](this,_0xcfd6a0[_0xc631('0x13c')]);if(!_0x4a93d9){return this[_0xc631('0xc')][_0xc631('0x2b')](_0xcfd6a0,_0xc631('0x13f'));}for(var _0x1532fa=0x0;_0x1532fa<_0x4a93d9['length'];_0x1532fa+=0x1){var _0x7c0ec3=this[_0xc631('0xc')]['getVariable'](util['format']('IFTIME(%s?true:false)',_0x4a93d9[_0x1532fa]));if(_0x7c0ec3[_0xc631('0xa4')]===-0x1){return _0x7c0ec3;}logger[_0xc631('0x2c')](util[_0xc631('0x50')]('IFTIME\x20%s\x20%s',_0x4a93d9[_0x1532fa],_0x7c0ec3[_0xc631('0x9e')]));if(_0x7c0ec3[_0xc631('0x9e')]===_0xc631('0x139')){logger[_0xc631('0x2c')](util[_0xc631('0x50')](_0xc631('0x140'),_0x4a93d9[_0x1532fa],_0xc631('0x139')));this[_0xc631('0xc')][_0xc631('0xa8')](util[_0xc631('0x50')](_0xc631('0x140'),_0x4a93d9[_0x1532fa],_0xc631('0x139')));return{'code':0xc8,'result':'true'};}else{logger[_0xc631('0x2c')](util[_0xc631('0x50')](_0xc631('0x140'),_0x4a93d9[_0x1532fa],_0xc631('0x141')));this[_0xc631('0xc')][_0xc631('0xa8')](util[_0xc631('0x50')]('IFTIME\x20%s\x20%s',_0x4a93d9[_0x1532fa],_0xc631('0x141')));}}return{'code':0xc8,'result':_0xc631('0x141')};};AGIVertices[_0xc631('0x14')][_0xc631('0x142')]=function(_0x209692){logger[_0xc631('0x2c')](util[_0xc631('0x50')]('Enter\x20in\x20HANGUP\x20(%s)\x20block',_0x209692[_0xc631('0x37')]));return this[_0xc631('0xc')][_0xc631('0x142')]();};AGIVertices[_0xc631('0x14')][_0xc631('0x143')]=function(_0x3c2e8d){logger['info'](util[_0xc631('0x50')]('Enter\x20in\x20ISPEECHASR\x20(%s)\x20block',_0x3c2e8d['label']));if(!this[_0xc631('0xa2')](_0x3c2e8d[_0xc631('0x72')])){return this[_0xc631('0xc')][_0xc631('0xa8')](_0xc631('0xe4'));}var _0x53e500=_0xc631('0x123');var _0x41a11b=util[_0xc631('0x50')]('%s/recordings/%s',FILES_PATH,rs['generate'](0x4));var _0x1bef12=util['format'](_0xc631('0x97'),_0x41a11b,_0x53e500);var _0x59a63c=!![];if(_0x3c2e8d['beep']===_0xc631('0x12f')){_0x59a63c=![];}var _0x1232a5=this[_0xc631('0xc')][_0xc631('0x126')](_0x41a11b,_0x53e500,_0x3c2e8d[_0xc631('0x127')],_0x3c2e8d[_0xc631('0x5f')],undefined,_0x59a63c);if(_0x1232a5[_0xc631('0xa4')]!==-0x1){this['channel']['noop'](util[_0xc631('0x50')]('ispeech\x20%s\x20file\x20created',_0x1bef12));var _0x4a7d98=this[_0xc631('0x7b')][_0xc631('0xbb')](this,_0x3c2e8d,_0x1bef12);if(_0x4a7d98){for(var _0xbdbbf3 in _0x4a7d98){if(_0x4a7d98['hasOwnProperty'](_0xbdbbf3)){this[_0xc631('0xc')][_0xc631('0x99')](util[_0xc631('0x50')](_0xc631('0x144'),_0xbdbbf3[_0xc631('0xe6')]()),_0x4a7d98[_0xbdbbf3]);}}return this[_0xc631('0xc')][_0xc631('0xa8')](util[_0xc631('0x50')](_0xc631('0x145'),JSON['stringify'](_0x4a7d98)));}}return _0x1232a5;};AGIVertices['prototype']['ispeechtts']=function(_0x4d7425){logger[_0xc631('0x2c')](util['format'](_0xc631('0x146'),_0x4d7425[_0xc631('0x37')]));if(!this[_0xc631('0xa2')](_0x4d7425[_0xc631('0x72')])){return this['channel'][_0xc631('0xa8')](_0xc631('0xe4'));}if(!this['isConfigured'](_0x4d7425[_0xc631('0x58')])){return this['channel'][_0xc631('0xa8')](_0xc631('0xa1'));}this['channel']['noop'](util[_0xc631('0x50')]('Trying\x20ispeech\x20TTS\x20%s',_0x4d7425[_0xc631('0x58')]));var _0x5c2cc0=this['ispeechTTS'][_0xc631('0xbb')](this,_0x4d7425);if(_0x5c2cc0){this[_0xc631('0xc')][_0xc631('0xa8')](util[_0xc631('0x50')](_0xc631('0x147'),_0x5c2cc0));var _0x44d5c1=this[_0xc631('0xc')][_0xc631('0xfa')](_0x5c2cc0,_0x4d7425[_0xc631('0x127')]);try{fs[_0xc631('0xfb')](_0x5c2cc0+_0xc631('0xfc'));}catch(_0x2130d4){logger[_0xc631('0x2b')](_0x2130d4);}return _0x44d5c1;}return this[_0xc631('0xc')]['error'](_0x4d7425,_0xc631('0x148'));};AGIVertices['prototype']['login']=function(_0x165af0){logger[_0xc631('0x2c')](util['format'](_0xc631('0x149'),_0x165af0['label']));if(!this['isConfigured'](_0x165af0[_0xc631('0x14a')])){return this[_0xc631('0xc')][_0xc631('0x2b')](_0x165af0,_0xc631('0x14b'));}logger[_0xc631('0x2c')](util['format'](_0xc631('0x14c'),this['channel'][_0xc631('0x38')],_0x165af0[_0xc631('0x14a')]));var _0x6f571d=this[_0xc631('0x4e')][_0xc631('0xbb')](this,_0x165af0[_0xc631('0x14a')]);if(_0x6f571d){logger[_0xc631('0x2c')](util[_0xc631('0x50')](_0xc631('0x14d'),this[_0xc631('0xc')][_0xc631('0x38')],_0x165af0['findBy']));this[_0xc631('0xc')]['noop'](util[_0xc631('0x50')](_0xc631('0x14d'),this[_0xc631('0xc')][_0xc631('0x38')],_0x165af0[_0xc631('0x14a')]));return{'code':0xc8,'result':_0xc631('0x14e')};}else{logger['info'](util[_0xc631('0x50')]('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this[_0xc631('0xc')][_0xc631('0x38')],_0x165af0['findBy']));this['channel'][_0xc631('0xa8')](util[_0xc631('0x50')]('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this[_0xc631('0xc')][_0xc631('0x38')],_0x165af0[_0xc631('0x14a')]));return{'code':0xc8,'result':_0xc631('0x14f')};}};AGIVertices[_0xc631('0x14')][_0xc631('0x150')]=function(_0x55310b){logger[_0xc631('0x2c')](util['format']('Enter\x20in\x20LOGOUT\x20(%s)\x20block',_0x55310b[_0xc631('0x37')]));if(!this[_0xc631('0xa2')](_0x55310b['findBy'])){return this['channel']['error'](_0x55310b,'no\x20find\x20by\x20configured');}logger[_0xc631('0x2c')](util['format']('FIND\x20AGENT\x20%s\x20BY\x20%s',this[_0xc631('0xc')][_0xc631('0x38')],_0x55310b[_0xc631('0x14a')]));var _0x499823=this[_0xc631('0x4d')][_0xc631('0xbb')](this,_0x55310b[_0xc631('0x14a')]);if(_0x499823){logger['info'](util[_0xc631('0x50')](_0xc631('0x14d'),this[_0xc631('0xc')]['callerid'],_0x55310b[_0xc631('0x14a')]));this['channel'][_0xc631('0xa8')](util['format'](_0xc631('0x14d'),this[_0xc631('0xc')][_0xc631('0x38')],_0x55310b['findBy']));return{'code':0xc8,'result':_0xc631('0x14e')};}else{logger[_0xc631('0x2c')](util[_0xc631('0x50')](_0xc631('0x151'),this['channel']['callerid'],_0x55310b['findBy']));this['channel'][_0xc631('0xa8')](util[_0xc631('0x50')](_0xc631('0x151'),this[_0xc631('0xc')][_0xc631('0x38')],_0x55310b[_0xc631('0x14a')]));return{'code':0xc8,'result':'failure'};}};AGIVertices[_0xc631('0x14')][_0xc631('0x152')]=function(_0x510cbb){logger['info'](util['format'](_0xc631('0x153'),_0x510cbb['label']));if(!this[_0xc631('0xa2')](_0x510cbb['operation'])){return this[_0xc631('0xc')][_0xc631('0x2b')](_0x510cbb,_0xc631('0x154'));}this[_0xc631('0xc')][_0xc631('0xa8')](util[_0xc631('0x50')](_0xc631('0x155'),_0x510cbb[_0xc631('0x156')]));var _0x3bc6b6=eval(_0x510cbb['operation']);if(!this[_0xc631('0xa2')](_0x510cbb[_0xc631('0xd4')])){return this[_0xc631('0xc')][_0xc631('0xa8')](_0xc631('0x109'));}var _0x197f6d=this['getVariable'][_0xc631('0xbb')](this,_0x510cbb[_0xc631('0xd4')]);if(!_0x197f6d){return this[_0xc631('0xc')][_0xc631('0x2b')](_0x510cbb,_0xc631('0xd5'));}if(_[_0xc631('0x95')](_0x3bc6b6)){var _0x762f5a=this;_0x3bc6b6[_0xc631('0xd6')](function(_0x52eb9e,_0x5e02aa){_0x762f5a[_0xc631('0xc')]['setVariable'](util[_0xc631('0x50')](_0xc631('0x157'),_0x197f6d,_0x5e02aa),_0x52eb9e);});return this[_0xc631('0xc')][_0xc631('0xa8')](util[_0xc631('0x50')](_0xc631('0x158'),_0x197f6d));}else{return this[_0xc631('0xc')][_0xc631('0x99')](_0x197f6d,_0x3bc6b6);}};AGIVertices['prototype'][_0xc631('0xb')]=function(_0xe8d70a){logger[_0xc631('0x2c')](util[_0xc631('0x50')](_0xc631('0x159'),_0xe8d70a[_0xc631('0x37')]));if(_0xe8d70a[_0xc631('0x105')]===0x0){return this[_0xc631('0x9f')](_0xe8d70a);}_0xe8d70a['retry']-=0x1;if(!this[_0xc631('0xa2')](_0xe8d70a[_0xc631('0x106')])){return this[_0xc631('0xc')]['error'](_0xe8d70a,'no\x20file\x20audio\x20selected');}var _0xfa07f2=this[_0xc631('0x1e')]['sync'](this,_0xe8d70a['file_id']);if(!_0xfa07f2){return this[_0xc631('0xc')]['error'](_0xe8d70a,_0xc631('0x108'));}var _0x36155b=this[_0xc631('0xc')][_0xc631('0x15a')](_0xfa07f2,_0xe8d70a['response'],_0xe8d70a['digit']);var _0x788018=_0x36155b[_0xc631('0xa4')];if(_0x36155b['result']===-0x1){this[_0xc631('0x35')]['sync'](this,_0xe8d70a,'-1');return _0x36155b;}else if(_0x36155b[_0xc631('0x9e')]===_0xc631('0x5f')){_0x36155b[_0xc631('0xa4')]=_0x36155b['result']['length']>0x0?_0x36155b[_0xc631('0xa4')]:'t';}else if(_[_0xc631('0x41')](_0x36155b[_0xc631('0xa4')])){_0x36155b[_0xc631('0xa4')]='#';_0x788018='#';}if(!this[_0xc631('0xa2')](_0xe8d70a[_0xc631('0xd4')])){this['channel']['noop'](_0xc631('0x109'));}else{var _0x1cdfd1=this[_0xc631('0xf')][_0xc631('0xbb')](this,_0xe8d70a['variable_id']);if(!_0x1cdfd1){return this[_0xc631('0xc')]['error'](_0xe8d70a,_0xc631('0xd5'));}this[_0xc631('0xc')][_0xc631('0x99')](_0x1cdfd1,_0x788018);}this['createSquareDetailsReport'][_0xc631('0xbb')](this,_0xe8d70a,_0x788018);return _0x36155b;};AGIVertices['prototype']['noop']=function(_0x507b4b){logger['info'](util['format'](_0xc631('0x15b'),_0x507b4b[_0xc631('0x37')]));return this[_0xc631('0xc')][_0xc631('0xa8')](_0x507b4b[_0xc631('0x15c')]||_0x507b4b[_0xc631('0x37')]);};AGIVertices[_0xc631('0x14')]['pause']=function(_0x164630){logger[_0xc631('0x2c')](util['format'](_0xc631('0x15d'),_0x164630[_0xc631('0x37')]));if(!this[_0xc631('0xa2')](_0x164630['findBy'])){return this[_0xc631('0xc')][_0xc631('0x2b')](_0x164630,_0xc631('0x14b'));}logger['info'](util[_0xc631('0x50')](_0xc631('0x14c'),this[_0xc631('0xc')][_0xc631('0x38')],_0x164630['findBy']));var _0x9c64f9=this[_0xc631('0x15e')]['sync'](this,_0x164630[_0xc631('0x15f')]);var _0xc2b2fb=this[_0xc631('0x4a')][_0xc631('0xbb')](this,_0x164630[_0xc631('0x14a')],_0x9c64f9);if(_0xc2b2fb){logger[_0xc631('0x2c')](util['format'](_0xc631('0x14d'),this[_0xc631('0xc')][_0xc631('0x38')],_0x164630[_0xc631('0x14a')]));this[_0xc631('0xc')][_0xc631('0xa8')](util[_0xc631('0x50')](_0xc631('0x14d'),this[_0xc631('0xc')][_0xc631('0x38')],_0x164630[_0xc631('0x14a')]));return{'code':0xc8,'result':_0xc631('0x14e')};}else{logger[_0xc631('0x2c')](util['format'](_0xc631('0x151'),this[_0xc631('0xc')][_0xc631('0x38')],_0x164630[_0xc631('0x14a')]));this['channel'][_0xc631('0xa8')](util[_0xc631('0x50')](_0xc631('0x14d'),this[_0xc631('0xc')][_0xc631('0x38')],_0x164630[_0xc631('0x14a')]));return{'code':0xc8,'result':_0xc631('0x14f')};}};AGIVertices['prototype'][_0xc631('0x160')]=function(_0xbd2c88){logger[_0xc631('0x2c')](util[_0xc631('0x50')](_0xc631('0x161'),_0xbd2c88[_0xc631('0x37')]));if(!this[_0xc631('0xa2')](_0xbd2c88[_0xc631('0x106')])){return this[_0xc631('0xc')][_0xc631('0x2b')](_0xbd2c88,_0xc631('0x107'));}var _0x13cc61=this[_0xc631('0x1e')]['sync'](this,_0xbd2c88[_0xc631('0x106')]);if(!_0x13cc61){return this[_0xc631('0xc')][_0xc631('0x2b')](_0xbd2c88,_0xc631('0x108'));}var _0x156338=this[_0xc631('0xc')][_0xc631('0x53')]('PLAYBACK',[_0x13cc61,_0xbd2c88[_0xc631('0xe1')]]);if(_0x156338['result']===-0x1){return _0x156338;}return this[_0xc631('0xc')]['noop'](util[_0xc631('0x50')](_0xc631('0x162'),'PLAYBACK',_0x13cc61));};AGIVertices['prototype']['queue']=function(_0x301498){logger[_0xc631('0x2c')](util[_0xc631('0x50')](_0xc631('0x163'),_0x301498['label']));if(!this[_0xc631('0xa2')](_0x301498[_0xc631('0x164')])){return this[_0xc631('0xc')][_0xc631('0x2b')](_0x301498,_0xc631('0x165'));}var _0x3c4c58='';var _0x56d1d2=parseInt(_0x301498[_0xc631('0x164')],0xa);if(isNaN(_0x56d1d2)){_0x3c4c58=_0x301498[_0xc631('0x164')];}else{_0x3c4c58=this[_0xc631('0x15')][_0xc631('0xbb')](this,_0x301498['queue_id']);if(!_0x3c4c58){return this['channel'][_0xc631('0x2b')](_0x301498,_0xc631('0x166'));}}var _0x3da099='';if(this[_0xc631('0xa2')](_0x301498[_0xc631('0x106')])){var _0x2f7f5b=this['getSound'][_0xc631('0xbb')](this,_0x301498[_0xc631('0x106')]);if(_0x2f7f5b){_0x3da099=_0x2f7f5b;}}this[_0xc631('0x35')][_0xc631('0xbb')](this,_0x301498,_0x3c4c58);if(_0x301498[_0xc631('0xe1')][_0xc631('0x167')]('x')<0x0){_0x301498[_0xc631('0xe1')]+='x';}if(_0x301498[_0xc631('0xe1')][_0xc631('0x167')]('X')<0x0){_0x301498[_0xc631('0xe1')]+='X';}this[_0xc631('0xc')][_0xc631('0x99')](_0xc631('0x168'),_0x3c4c58?_0x3c4c58['toLowerCase']():'');var _0x33b433=this[_0xc631('0xc')][_0xc631('0x53')](_0xc631('0x169'),[_0x3c4c58,_0x301498[_0xc631('0xe1')],_0x301498[_0xc631('0x5e')],_0x3da099,_0x301498['timeout'],_0x301498['agi'],_0x301498[_0xc631('0x16a')],_0x301498[_0xc631('0x16b')],'',_0x301498[_0xc631('0x16c')]]);if(_0x33b433[_0xc631('0xa4')]===-0x1){return _0x33b433;}return this[_0xc631('0xc')][_0xc631('0xa8')](util['format']('Executed\x20command\x20%s\x20%s',_0xc631('0x169'),_0x3c4c58));};AGIVertices[_0xc631('0x14')]['record']=function(_0x18891a){logger[_0xc631('0x2c')](util[_0xc631('0x50')](_0xc631('0x16d'),_0x18891a['label']));var _0x3db517=_0x18891a[_0xc631('0x16e')]||'wav';var _0x2a1cab=util[_0xc631('0x50')](_0xc631('0x16f'),this[_0xc631('0xc')][_0xc631('0x36')],rs[_0xc631('0x10d')](0x5));var _0x122997=util['format']('%s/recordings/%s.%s',FILES_PATH,_0x2a1cab,_0x3db517);var _0x5d1df8=util[_0xc631('0x50')](_0xc631('0x124'),FILES_PATH,_0x2a1cab);this[_0xc631('0x39')][_0xc631('0xbb')](this,_0x18891a,_0x2a1cab,_0x122997);this[_0xc631('0xc')][_0xc631('0x99')](_0xc631('0x170'),_0x2a1cab);logger[_0xc631('0x2c')](_0xc631('0x171'),_0x5d1df8,_0x3db517,_0x18891a[_0xc631('0x172')],_0x18891a[_0xc631('0x5f')]);return this['channel'][_0xc631('0x126')](_0x5d1df8,_0x3db517,_0x18891a[_0xc631('0x172')],_0x18891a[_0xc631('0x5f')],undefined,!![]);};AGIVertices[_0xc631('0x14')][_0xc631('0x173')]=function(_0x16e5e0){logger[_0xc631('0x2c')](util['format'](_0xc631('0x174'),_0x16e5e0['label']));if(!this[_0xc631('0xa2')](_0x16e5e0[_0xc631('0x5e')])){return this['channel'][_0xc631('0xa8')](_0xc631('0x175'));}var _0x22ec71=this[_0xc631('0x176')][_0xc631('0xbb')](this,_0x16e5e0);logger[_0xc631('0x2c')](util['format'](_0xc631('0x177'),util['inspect'](_0x22ec71,{'showHidden':![],'depth':null})));if(!this['isConfigured'](_0x16e5e0[_0xc631('0xd4')])){return this[_0xc631('0xc')]['noop'](_0xc631('0x178'));}var _0x1c14d3=this[_0xc631('0xf')][_0xc631('0xbb')](this,_0x16e5e0[_0xc631('0xd4')]);if(!_0x1c14d3){return this['channel'][_0xc631('0x2b')](_0x16e5e0,_0xc631('0xd5'));}this[_0xc631('0xc')]['setVariable'](util[_0xc631('0x50')](_0xc631('0x179'),_0x1c14d3),_0x22ec71[_0xc631('0x6d')]?_0x22ec71[_0xc631('0x6d')]:_0xc631('0x17a'));this[_0xc631('0xc')][_0xc631('0x99')](util[_0xc631('0x50')](_0xc631('0x17b'),_0x1c14d3),_0x22ec71[_0xc631('0x6e')]?_0x22ec71[_0xc631('0x6e')]:'OK');if(_0x22ec71[_0xc631('0x64')]){try{this[_0xc631('0x96')](_0x22ec71[_0xc631('0x64')],_0x1c14d3);}catch(_0x28a3f7){logger[_0xc631('0x2b')](util[_0xc631('0x50')](_0xc631('0x17c'),_0x1c14d3));}}return this[_0xc631('0xc')][_0xc631('0xa8')](util['format'](_0xc631('0xd8'),_0x1c14d3));};AGIVertices['prototype'][_0xc631('0x17d')]=function(_0x3bce1d){logger[_0xc631('0x2c')](util[_0xc631('0x50')](_0xc631('0x17e'),_0x3bce1d['label']));return this['channel'][_0xc631('0x17f')](_0x3bce1d[_0xc631('0x180')][_0xc631('0x54')](/\s+/g,''),_0x3bce1d[_0xc631('0x172')]);};AGIVertices[_0xc631('0x14')][_0xc631('0x181')]=function(_0x52b78d){logger[_0xc631('0x2c')](util[_0xc631('0x50')](_0xc631('0x182'),_0x52b78d[_0xc631('0x37')]));return this[_0xc631('0xc')][_0xc631('0x183')](_0x52b78d[_0xc631('0x184')][_0xc631('0x54')](/\s+/g,''),_0x52b78d[_0xc631('0x172')]);};AGIVertices[_0xc631('0x14')][_0xc631('0x185')]=function(_0x134b5a){logger[_0xc631('0x2c')](util[_0xc631('0x50')]('Enter\x20in\x20SAYPHONETIC\x20(%s)\x20block',_0x134b5a[_0xc631('0x37')]));return this[_0xc631('0xc')][_0xc631('0x186')](_0x134b5a[_0xc631('0x58')],_0x134b5a[_0xc631('0x172')]);};AGIVertices[_0xc631('0x14')][_0xc631('0x187')]=function(_0x21f42d){logger['info'](util[_0xc631('0x50')](_0xc631('0x188'),_0x21f42d[_0xc631('0x37')]));if(!this['isConfigured'](_0x21f42d[_0xc631('0x189')])){return this[_0xc631('0xc')][_0xc631('0xa8')](_0xc631('0x18a'));}var _0x5513cc=this[_0xc631('0x22')][_0xc631('0xbb')](this,_0x21f42d[_0xc631('0x189')]);if(!_0x5513cc||!_0x5513cc['Smtp']){return this[_0xc631('0xc')][_0xc631('0x2b')](_0x21f42d,'no\x20mail\x20account\x20found');}var _0x53f2d3={'from':util[_0xc631('0x50')](_0xc631('0x18b'),_0x5513cc['name'],_0x5513cc['email']||_0x5513cc[_0xc631('0x18c')]['user']),'to':_0x21f42d['to']||'','cc':_0x21f42d['cc']||'','bcc':_0x21f42d[_0xc631('0x18d')]||'','subject':_0x21f42d[_0xc631('0x18e')],'html':_0x21f42d[_0xc631('0x58')],'text':_0x21f42d[_0xc631('0x58')]};var _0xc96178={'tls':{'rejectUnauthorized':![]}};if(_0x5513cc['Smtp'][_0xc631('0x18f')]){_0xc96178[_0xc631('0x18f')]=_0x5513cc[_0xc631('0x18c')][_0xc631('0x18f')];}else{_0xc96178[_0xc631('0x190')]=_0x5513cc[_0xc631('0x18c')]['host'];_0xc96178[_0xc631('0x191')]=_0x5513cc['Smtp'][_0xc631('0x191')];_0xc96178[_0xc631('0x192')]=_0x5513cc[_0xc631('0x18c')]['secure'];}if(_0x5513cc['Smtp']['authentication']){_0xc96178[_0xc631('0x193')]={'user':_0x5513cc['Smtp'][_0xc631('0x194')],'pass':_0x5513cc[_0xc631('0x18c')][_0xc631('0x195')]};}if(this[_0xc631('0xa2')](_0x21f42d['template_id'])){}logger['debug']('sendMail\x20message',JSON[_0xc631('0x6b')](_0x53f2d3));this['createSquareDetailsReport']['sync'](this,_0x21f42d,_0x21f42d[_0xc631('0x189')]);this[_0xc631('0xc')][_0xc631('0xa8')](util[_0xc631('0x50')](_0xc631('0x196'),_0x5513cc[_0xc631('0x12')]));this[_0xc631('0x24')][_0xc631('0xbb')](this,_0xc96178,_0x53f2d3);return this[_0xc631('0xc')][_0xc631('0xa8')](_0xc631('0x197'));};AGIVertices[_0xc631('0x14')]['sendFax']=function(_0x8bfd1e){logger[_0xc631('0x2c')](util[_0xc631('0x50')](_0xc631('0x198'),_0x8bfd1e['label']));return this[_0xc631('0xc')][_0xc631('0xa8')]('SENDFAX\x20block\x20not\x20implemented');};AGIVertices['prototype'][_0xc631('0x199')]=function(_0x218235){logger[_0xc631('0x2c')](util[_0xc631('0x50')](_0xc631('0x19a'),_0x218235[_0xc631('0x37')]));if(!this[_0xc631('0xa2')](_0x218235[_0xc631('0x19b')])){return this['channel'][_0xc631('0xa8')]('no\x20sms\x20account\x20configured');}var _0x32d8f3=this[_0xc631('0x32')][_0xc631('0xbb')](this,_0x218235[_0xc631('0x19b')]);if(!_0x32d8f3){return this[_0xc631('0xc')][_0xc631('0x2b')](_0x218235,_0xc631('0x19c'));}var _0x3e6346={'body':_0x218235[_0xc631('0x19d')],'phone':_0x218235['to']||'','SmsAccountId':_0x32d8f3['id']};logger[_0xc631('0x19e')](_0xc631('0x19f'),JSON[_0xc631('0x6b')](_0x3e6346));this[_0xc631('0x35')]['sync'](this,_0x218235,_0x218235[_0xc631('0x19b')]);this[_0xc631('0xc')][_0xc631('0xa8')](util[_0xc631('0x50')](_0xc631('0x1a0'),_0x32d8f3[_0xc631('0x12')]));this[_0xc631('0x34')][_0xc631('0xbb')](this,_0x3e6346);return this[_0xc631('0xc')][_0xc631('0xa8')](_0xc631('0x1a1'));};AGIVertices[_0xc631('0x14')]['set']=function(_0x39ae59){logger[_0xc631('0x2c')](util['format'](_0xc631('0x1a2'),_0x39ae59[_0xc631('0x37')]));if(!this[_0xc631('0xa2')](_0x39ae59[_0xc631('0xd4')])){return this[_0xc631('0xc')][_0xc631('0x2b')](_0x39ae59,_0xc631('0x1a3'));}var _0x525a4e=this['getVariable'][_0xc631('0xbb')](this,_0x39ae59[_0xc631('0xd4')]);if(!_0x525a4e){return this['channel'][_0xc631('0x2b')](_0x39ae59,_0xc631('0xd5'));}return this['channel'][_0xc631('0x99')](_0x525a4e,_0x39ae59[_0xc631('0x1a4')]);};AGIVertices[_0xc631('0x14')][_0xc631('0x1a5')]=function(_0x1b7194){logger[_0xc631('0x2c')](util[_0xc631('0x50')](_0xc631('0x1a6'),_0x1b7194[_0xc631('0x37')]));this[_0xc631('0xc')]['noop'](_0xc631('0x1a7'));if(_0x1b7194[_0xc631('0xb0')]===_0xc631('0x1a8')){this[_0xc631('0xc')][_0xc631('0xa8')]('Answer');return this[_0xc631('0xc')][_0xc631('0xb0')]();}return this['channel']['noop'](_0xc631('0x1a9'));};AGIVertices['prototype']['subproject']=function(_0x553d64){logger[_0xc631('0x2c')](util[_0xc631('0x50')]('Enter\x20in\x20SUBPROJECT\x20(%s)\x20block',_0x553d64['label']));if(!this[_0xc631('0xa2')](_0x553d64['project_id'])){return this[_0xc631('0xc')]['error'](_0x553d64,_0xc631('0x1aa'));}var _0x1f4c7d=this['getSquareProject']['sync'](this,_0x553d64[_0xc631('0x1ab')]);if(!this[_0xc631('0xa2')](_0x1f4c7d)){return this[_0xc631('0xc')][_0xc631('0x2b')](_0x553d64,util[_0xc631('0x50')](_0xc631('0x1ac'),_0x553d64['project_id']));}if(_0x1f4c7d===this['channel'][_0xc631('0x3e')]){return this[_0xc631('0xc')]['error'](_0x553d64,_0xc631('0x1ad'));}this['createSquareDetailsReport'][_0xc631('0xbb')](this,_0x553d64,_0x1f4c7d);var _0x51bf3b=this[_0xc631('0xc')]['exec'](_0xc631('0x1ae'),util['format'](_0xc631('0x1af'),config[_0xc631('0x7')][_0xc631('0x190')]||_0xc631('0x1b0'),_0x1f4c7d,this[_0xc631('0xc')]['arg_1']));if(_0x51bf3b[_0xc631('0xa4')]===-0x1){return _0x51bf3b;}return this['channel']['noop'](util[_0xc631('0x50')](_0xc631('0x162'),_0xc631('0x1ae'),_0x1f4c7d));};AGIVertices[_0xc631('0x14')][_0xc631('0x1b1')]=function(_0x1c1d9b){logger[_0xc631('0x2c')](util['format']('Enter\x20in\x20SYSTEM\x20(%s)\x20block',_0x1c1d9b[_0xc631('0x37')]));var _0x57f386=this[_0xc631('0x52')][_0xc631('0xbb')](this,_0x1c1d9b['command']);this['createSquareDetailsReport']['sync'](this,_0x1c1d9b,_0x1c1d9b[_0xc631('0x1b2')]);if(this[_0xc631('0xa2')](_0x1c1d9b[_0xc631('0xd4')])){var _0xfecb00=this[_0xc631('0xf')]['sync'](this,_0x1c1d9b['variable_id']);if(_0xfecb00){this[_0xc631('0xc')][_0xc631('0x99')](_0xfecb00,_0x57f386);return this[_0xc631('0xc')][_0xc631('0xa8')](util['format'](_0xc631('0x1b3'),_0x1c1d9b[_0xc631('0x1b2')],_0xfecb00));}}return this[_0xc631('0xc')][_0xc631('0xa8')](util[_0xc631('0x50')](_0xc631('0x1b4'),_0x1c1d9b[_0xc631('0x1b2')]));};AGIVertices[_0xc631('0x14')][_0xc631('0x1b5')]=function(_0xccb806){logger[_0xc631('0x2c')](util[_0xc631('0x50')](_0xc631('0x1b6'),_0xccb806[_0xc631('0x37')]));_0xccb806['text']=_0xccb806['text'][_0xc631('0x54')](/(\r\n|\n|\r)/gm,'\x20');if(!this['isConfigured'](_0xccb806[_0xc631('0x56')])){return this[_0xc631('0xc')]['noop'](_0xc631('0x1b7'));}if(!this[_0xc631('0xa2')](_0xccb806['text'])){return this[_0xc631('0xc')][_0xc631('0xa8')](_0xc631('0xa1'));}this[_0xc631('0xc')][_0xc631('0xa8')](util[_0xc631('0x50')](_0xc631('0x1b8'),_0xccb806[_0xc631('0x58')]));var _0x4c309a=this[_0xc631('0x55')][_0xc631('0xbb')](this,_0xccb806);if(_0x4c309a){this[_0xc631('0xc')][_0xc631('0xa8')](util['format'](_0xc631('0x1b9'),_0x4c309a));var _0x1a7b5b=this['channel'][_0xc631('0xfa')](_0x4c309a);try{fs[_0xc631('0xfb')](_0x4c309a+_0xc631('0xfc'));}catch(_0x4c7675){logger[_0xc631('0x2b')](_0x4c7675);}return _0x1a7b5b;}return this[_0xc631('0xc')][_0xc631('0x2b')](_0xccb806,'Google\x20Cloud\x20TTS\x20is\x20unreachable');};AGIVertices['prototype'][_0xc631('0x1ba')]=function(_0x30e4db){logger[_0xc631('0x2c')](util[_0xc631('0x50')](_0xc631('0x1bb'),_0x30e4db[_0xc631('0x37')]));_0x30e4db['text']=_0x30e4db[_0xc631('0x58')][_0xc631('0x54')](/(\r\n|\n|\r)/gm,'\x20');if(!this[_0xc631('0xa2')](_0x30e4db[_0xc631('0x58')])){return this[_0xc631('0xc')][_0xc631('0xa8')](_0xc631('0xa1'));}this[_0xc631('0xc')]['noop'](util[_0xc631('0x50')]('Trying\x20Google\x20TTS\x20%s',_0x30e4db[_0xc631('0x58')]));var _0x29858f=this[_0xc631('0x5c')][_0xc631('0xbb')](this,_0x30e4db);if(_0x29858f){this[_0xc631('0xc')][_0xc631('0xa8')](util[_0xc631('0x50')](_0xc631('0x1bc'),_0x29858f));var _0x558455=this[_0xc631('0xc')][_0xc631('0xfa')](_0x29858f);try{fs[_0xc631('0xfb')](_0x29858f+'.wav');}catch(_0x109522){logger[_0xc631('0x2b')](_0x109522);}return _0x558455;}return this[_0xc631('0xc')][_0xc631('0x2b')](_0x30e4db,_0xc631('0x1bd'));};AGIVertices[_0xc631('0x14')][_0xc631('0x1be')]=function(_0x52d301){logger[_0xc631('0x2c')](util[_0xc631('0x50')]('Enter\x20in\x20UNPAUSE\x20(%s)\x20block',_0x52d301[_0xc631('0x37')]));if(!this['isConfigured'](_0x52d301['findBy'])){return this[_0xc631('0xc')][_0xc631('0x2b')](_0x52d301,_0xc631('0x14b'));}logger['info'](util['format'](_0xc631('0x14c'),this[_0xc631('0xc')][_0xc631('0x38')],_0x52d301[_0xc631('0x14a')]));var _0x248d33=this['agentUnpause'][_0xc631('0xbb')](this,_0x52d301[_0xc631('0x14a')]);if(_0x248d33){logger[_0xc631('0x2c')](util[_0xc631('0x50')](_0xc631('0x14d'),this[_0xc631('0xc')][_0xc631('0x38')],_0x52d301[_0xc631('0x14a')]));this[_0xc631('0xc')][_0xc631('0xa8')](util['format'](_0xc631('0x14d'),this['channel'][_0xc631('0x38')],_0x52d301['findBy']));return{'code':0xc8,'result':_0xc631('0x14e')};}else{logger[_0xc631('0x2c')](util[_0xc631('0x50')](_0xc631('0x151'),this[_0xc631('0xc')]['callerid'],_0x52d301[_0xc631('0x14a')]));this[_0xc631('0xc')][_0xc631('0xa8')](util[_0xc631('0x50')](_0xc631('0x151'),this[_0xc631('0xc')][_0xc631('0x38')],_0x52d301[_0xc631('0x14a')]));return{'code':0xc8,'result':'failure'};}};AGIVertices[_0xc631('0x14')][_0xc631('0x1bf')]=function(_0x16b4a2){logger[_0xc631('0x2c')](util[_0xc631('0x50')](_0xc631('0x1c0'),_0x16b4a2[_0xc631('0x37')]));var _0x14f86b=this['channel'][_0xc631('0x53')]('VOICEMAIL',[_0x16b4a2['mailbox'],_0x16b4a2[_0xc631('0x70')]]);if(_0x14f86b[_0xc631('0xa4')]===-0x1){return _0x14f86b;}return this[_0xc631('0xc')][_0xc631('0xa8')](util[_0xc631('0x50')](_0xc631('0x162'),_0xc631('0x1c1'),_0x16b4a2[_0xc631('0x1c2')]));};AGIVertices[_0xc631('0x14')][_0xc631('0x1c3')]=function(_0x35dbd6){logger[_0xc631('0x2c')](util[_0xc631('0x50')](_0xc631('0x1c4'),_0x35dbd6['label']));if(!this[_0xc631('0xa2')](_0x35dbd6[_0xc631('0xd4')])){return this[_0xc631('0xc')][_0xc631('0x2b')](_0x35dbd6,_0xc631('0x1a3'));}var _0xf88eb5=this['getVariable']['sync'](this,_0x35dbd6[_0xc631('0xd4')]);if(!_0xf88eb5){return this[_0xc631('0xc')][_0xc631('0x2b')](_0x35dbd6,_0xc631('0xd5'));}var _0x1d6d2b=this[_0xc631('0xc')][_0xc631('0xf')](_0xf88eb5);return{'code':0xc8,'result':_0x1d6d2b[_0xc631('0x9e')]?_0x1d6d2b['extra']:'-'};};String['prototype'][_0xc631('0x9b')]=function(_0x27d6ba,_0x241292){return this['split'](_0x27d6ba)[_0xc631('0x1c5')](_0x241292);};module[_0xc631('0x1c6')]=AGIVertices;