Built motion from commit (unavailable).|2.5.4
[motion2.git] / server / services / agi / vertices.js
index 3975b2f..d5bd01a 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xb1ef=['Enter\x20in\x20AGI\x20(%s)\x20block','command','Enter\x20in\x20ANSWER\x20(%s)\x20block','wait','answer','callback','Enter\x20in\x20CALLBACK\x20(%s)\x20block','list_id','no\x20list\x20selected','delay','callback_priority','CALLBACK\x20added\x20phone:\x20%s\x20on\x20list:\x20%s\x20at\x20%s','custom_app','Enter\x20in\x20CUSTOM\x20APP\x20(%s)\x20block','application','Executed\x20command\x20%s\x20%s','Enter\x20in\x20LUMENVOXTTS\x20(%s)\x20block','Enter\x20in\x20SESTEKTTS\x20(%s)\x20block','MRCPSynth','Executed\x20command\x20MRCPSynth\x20%s','lumenvoxasr','Enter\x20in\x20LUMENVOXASR\x20(%s)\x20block','no\x20grammar\x20configured','LUMENVOX_ASR_CONFIDENCE','RECOG_INSTANCE()','sestekasr','SESTEK_ASR_CONFIDENCE','SESTEK_ASR_TRANSCRIPT','database','Enter\x20in\x20DATABASE\x20(%s)\x20block','odbc_id','no\x20odbc\x20database\x20found','query:\x20%s','variable_id','no\x20variable\x20selected\x20for\x20the\x20result','no\x20variable\x20found','forEach','keys','%s[%s][%s]','%s_ROWS_COUNT','variable\x20%s\x20set','dial','debug','Enter\x20in\x20DIAL\x20(%s)\x20block','sip_id','no\x20user\x20selected','no\x20user\x20found','DIAL','SIP/%s','dialogflow','Enter\x20in\x20DIALOGFLOW\x20(%s)\x20block','no\x20key\x20configured','bot','DIALOGFLOW_%s','speech','out','Dialogflow\x20Result\x20%s','Dialogflow\x20is\x20unreachable','sesteknda','Enter\x20in\x20SESTEKNDA\x20(%s)\x20block','ndauth_url','username','no\x20username\x20configured','password','no\x20password\x20configured','ndassistant_url','sestekNDA','audiofile','streamFile','unlink','.wav','SestekNDA\x20is\x20unreachable','end','Enter\x20in\x20END\x20(%s)\x20block','ext_dial','Enter\x20in\x20EXTERNAL\x20DIAL\x20(%s)\x20block','trunk_id','no\x20trunk\x20selected','trunk_name','SIP/%s/%s','opts','Executed\x20command\x20%s','finally','Enter\x20in\x20FINALLY\x20(%s)\x20block','file_id','response','mindigit','maxdigit','hiddendigitsnum','generate','hiddendigitspos','first','substr','Enter\x20in\x20GETSECRETDIGITS\x20(%s)\x20block','goal','Enter\x20in\x20GOAL\x20(%s)\x20block','goalname','GOAL\x20%s','no\x20valid\x20credentials\x20configured','Trying\x20aws\x20Polly\x20%s','awsPolly','aws\x20Polly\x20%s\x20file\x20created','aws\x20Polly\x20is\x20unreachable','awslex','Enter\x20in\x20Amazon\x20Lex\x20(%s)\x20block','no\x20bot\x20name\x20configured','Trying\x20Amazon\x20Lex:\x20%s','AWS_LEX_%s','Amazon\x20Lex\x20ready\x20for\x20fulfillment','Amazon\x20Lex\x20is\x20unreachable','Enter\x20in\x20GOOGLEASR\x20(%s)\x20block\x20%s','wav','%s/recordings/%s','recordFile','intKey','google\x20%s\x20file\x20created','GOOGLE_ASR_%s','GoogleASR\x20Result\x20%s','tildeasr','Enter\x20in\x20TILDEASR\x20(%s)\x20block','no\x20appid\x20configured','no\x20appsecret\x20configured','beep','tilde\x20%s\x20file\x20created','TILDE_ASR_%s','TildeASR\x20Result\x20%s','gotoc','continueAt','condition','no\x20condition\x20configured','true','EVAL\x20CONDITION\x20%s\x20%s','false','gotoiftime','Enter\x20in\x20GOTOIFTIME\x20(%s)\x20block','interval_id','no\x20interval\x20configured','no\x20intervals\x20found','IFTIME(%s?true:false)','IFTIME\x20%s\x20%s','hangup','Enter\x20in\x20HANGUP\x20(%s)\x20block','Enter\x20in\x20ISPEECHASR\x20(%s)\x20block','NOBEEP','ispeech\x20%s\x20file\x20created','ISPEECH_ASR_%s','IspeechASR\x20Result\x20%s','ispeech\x20TTS\x20is\x20unreachable','Enter\x20in\x20LOGIN\x20(%s)\x20block','findBy','no\x20find\x20by\x20configured','AGENT\x20%s\x20FOUND\x20BY','success','AGENT\x20%s\x20NOT\x20FOUND\x20BY','failure','FIND\x20AGENT\x20%s\x20BY\x20%s','math','no\x20operation\x20configured','math\x20%s','operation','%s[%s]','variable\x20%s[key]\x20set','Enter\x20in\x20MENU\x20(%s)\x20block','no\x20file\x20audio\x20selected','no\x20file\x20audio\x20found','getData','digit','Enter\x20in\x20NOOP\x20(%s)\x20block','output','pause','Enter\x20in\x20PAUSE\x20(%s)\x20block','playback','Enter\x20in\x20PLAYBACK\x20(%s)\x20block','PLAYBACK','queue','queue_id','no\x20queue\x20selected','no\x20queue\x20found','indexOf','XMCS-QUEUE','toLowerCase','QUEUE','macro','gosub','record','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:','inspect','no\x20variable\x20selected\x20for\x20the\x20response','200','%s_STATUS_MESSAGE','Unable\x20to\x20set\x20result\x20in\x20variable\x20%s','saydigits','Enter\x20in\x20SAYNUMBER\x20(%s)\x20block','sayNumber','sayphonetic','Enter\x20in\x20SAYPHONETIC\x20(%s)\x20block','sayPhonetic','sendMail','account_id','no\x20mail\x20account\x20configured','Smtp','no\x20mail\x20account\x20found','email','user','bcc','service','host','port','secure','template_id','sendMail\x20message','Mail\x20message\x20added\x20to\x20outgoing\x20process','Enter\x20in\x20SENDFAX\x20(%s)\x20block','sendSMS','sms_account_id','no\x20sms\x20account\x20configured','no\x20sms\x20account\x20found','sendSMS\x20message','Trying\x20SendSMS\x20with\x20account\x20%s','Sms\x20message\x20added\x20to\x20outgoing\x20process','set','Enter\x20in\x20START\x20(%s)\x20block','START\x20CALLY\x20SQUARE','yes','Skipped\x20Answer','subproject','Enter\x20in\x20SUBPROJECT\x20(%s)\x20block','project_id','no\x20subproject\x20selected','127.0.0.1','AGI','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','no\x20apiKey\x20configured','Trying\x20Google\x20Cloud\x20TTS\x20%s','Google\x20Cloud\x20TTS\x20is\x20unreachable','Enter\x20in\x20GOOGLETTS\x20(%s)\x20block','Trying\x20Google\x20TTS\x20%s','Google\x20TTS\x20is\x20unreachable','unpause','Enter\x20in\x20UNPAUSE\x20(%s)\x20block','voicemail','Enter\x20in\x20VOICEMAIL\x20(%s)\x20block','VOICEMAIL','mailbox','vswitch','Enter\x20in\x20SWITCH\x20(%s)\x20block','no\x20variable\x20selected','split','join','exports','util','shelljs','odbc','mustache','request-promise','../../config/logger','agi','../../config/environment','./scripts','/var/opt/motion2/server/files','menu','getdigits','getsecretdigits','channel','rpc','prototype','getVariable','name','catch','getVoiceQueue','getVoiceQueueById','then','getSquareProject','getSquareProjectById','getSquareOdbc','getUser','getUserById','getTrunk','getSound','getSoundById','getSoundPath','save_name','sendMailMessage','mailRpc','getIntervals','IntervalId','interval','map','format','%s/sounds/converted/%s','getQueryOdbc','open','error','Error\x20getting\x20ODBC\x20connection\x20%s','query','info','Error\x20executing\x20query\x20%s','Query\x20executed\x20correctly\x20%s','close','Error\x20closing\x20connection\x20to\x20odbc\x20%s','getSmsAccount','getSmsAccountById','createSmsMessage','createSquareDetailsReport','agicommand','arg_1','createSquareRecording','uniqueid','callerid','context','extension','accountcode','dnid','file','createSquareMessage','createCmContact','isEmpty','isNil','random','lastName','phone','scheduledAt','Callback\x20scheduled\x20at\x20','getPause','getPauseById','agentPause','agent','agentUnpause','agentLogout','LOCAL','agentLogin','shellCommand','exec','trim','replace','googleCloudTTS','apiKey','text','languageCode','en-US','MALE','MP3','googleTTS','restAPI','method','timeout','number','includes','POST','toUpperCase','body','parse','rawBody','rawHeaders','An\x20incorrect\x20formatted\x20json\x20headers\x20has\x20been\x20passed\x20to\x20the\x20function','computedVariables','sync','uri','render','url','headers','stringify','statusCode','statusMessage','message','500\x20-\x20Internal\x20Server\x20Error','options','googleDialogflow','key','dialogflow_language','ispeechTTS','ispeech_tts_language','speed','ispeechASR','isConfigured','model','aws_secret_access_key','Amy','aws_text_type','awsLex','aws_access_key_id','aws_lex_region','aws_bot_name','googleASR','tildeASR','appid','appsecret','clone','hasOwnProperty','isString','replaceObjectAllVariables','replaceAllVariables','recursiveNodeIndex','isArray','length','%s.%s','saveRestApiResult','setVariable','replaceAll','extra','toString','getAndSetVariable','result','The\x20\x22%s\x22\x20variable\x20value\x20is:\x20%s','maxRetry','retry','mrcpsynth','noop','no\x20text\x20configured','Enter\x20in\x20MRCPRecog\x20(%s)\x20block','label','grammar','MRCPRecog','RECOG_CONFIDENCE()','MRCP_RECOG_CONFIDENCE','RECOG_INPUT()','MRCP_RECOG_INSTANCE','Executed\x20command\x20MRCPRecog\x20%s'];(function(_0x44fdef,_0x3b4291){var _0x33ad1b=function(_0x2d16a5){while(--_0x2d16a5){_0x44fdef['push'](_0x44fdef['shift']());}};_0x33ad1b(++_0x3b4291);}(_0xb1ef,0x107));var _0xfb1e=function(_0x20a584,_0xe384a5){_0x20a584=_0x20a584-0x0;var _0x4b41a8=_0xb1ef[_0x20a584];return _0x4b41a8;};'use strict';var fs=require('fs');var path=require('path');var util=require(_0xfb1e('0x0'));var _=require('lodash');var sh=require(_0xfb1e('0x1'));var odbc=require(_0xfb1e('0x2'))();var rs=require('randomstring');var moment=require('moment');var Mustache=require(_0xfb1e('0x3'));var rp=require(_0xfb1e('0x4'));var logger=require(_0xfb1e('0x5'))(_0xfb1e('0x6'));var config=require(_0xfb1e('0x7'));var scripts=require(_0xfb1e('0x8'));var FILES_PATH=_0xfb1e('0x9');var recursiveMapAttributes=['rawHeaders','rawBody'];var verticesWithRetry=[_0xfb1e('0xa'),_0xfb1e('0xb'),_0xfb1e('0xc')];var AGIVertices=function(_0x2dc186,_0x20c871,_0x1e271){this[_0xfb1e('0xd')]=_0x2dc186;this[_0xfb1e('0xe')]=_0x20c871;this['mailRpc']=_0x1e271;};AGIVertices[_0xfb1e('0xf')][_0xfb1e('0x10')]=function(_0x1dcede,_0x34ce02){this[_0xfb1e('0xe')]['getVariableById'](_0x1dcede)['then'](function(_0x1e890e){_0x34ce02(null,_0x1e890e?_0x1e890e[_0xfb1e('0x11')]:![]);})[_0xfb1e('0x12')](function(_0x36680e){_0x34ce02(_0x36680e);});};AGIVertices['prototype'][_0xfb1e('0x13')]=function(_0x27a0d1,_0x2a2d22){this[_0xfb1e('0xe')][_0xfb1e('0x14')](_0x27a0d1)[_0xfb1e('0x15')](function(_0x2c061f){_0x2a2d22(null,_0x2c061f?_0x2c061f[_0xfb1e('0x11')]:![]);})[_0xfb1e('0x12')](function(_0x4e3d80){_0x2a2d22(_0x4e3d80);});};AGIVertices['prototype'][_0xfb1e('0x16')]=function(_0x1cc3c2,_0x5554c6){this[_0xfb1e('0xe')][_0xfb1e('0x17')](_0x1cc3c2)['then'](function(_0xd7df62){_0x5554c6(null,_0xd7df62?_0xd7df62[_0xfb1e('0x11')]:![]);})['catch'](function(_0x18b65c){_0x5554c6(_0x18b65c);});};AGIVertices['prototype'][_0xfb1e('0x18')]=function(_0xda2a12,_0x584cbf){this[_0xfb1e('0xe')]['getSquareOdbcById'](_0xda2a12)[_0xfb1e('0x15')](function(_0x2d1029){_0x584cbf(null,_0x2d1029?_0x2d1029['dsn']:![]);})[_0xfb1e('0x12')](function(_0x68a761){_0x584cbf(_0x68a761);});};AGIVertices[_0xfb1e('0xf')][_0xfb1e('0x19')]=function(_0x4304ac,_0x5bf6fd){this['rpc'][_0xfb1e('0x1a')](_0x4304ac)[_0xfb1e('0x15')](function(_0x511e71){_0x5bf6fd(null,_0x511e71?_0x511e71[_0xfb1e('0x11')]:![]);})[_0xfb1e('0x12')](function(_0x169da0){_0x5bf6fd(_0x169da0);});};AGIVertices[_0xfb1e('0xf')][_0xfb1e('0x1b')]=function(_0x533d88,_0xfa35f8){this['rpc']['getTrunkById'](_0x533d88)[_0xfb1e('0x15')](function(_0x42266b){_0xfa35f8(null,_0x42266b?_0x42266b[_0xfb1e('0x11')]:![]);})[_0xfb1e('0x12')](function(_0xe23d12){_0xfa35f8(_0xe23d12);});};AGIVertices[_0xfb1e('0xf')][_0xfb1e('0x1c')]=function(_0xd41279,_0xa79258){var _0x1bfc76=this;this['rpc'][_0xfb1e('0x1d')](_0xd41279)['then'](function(_0x12fc28){_0xa79258(null,_0x12fc28?_0x1bfc76[_0xfb1e('0x1e')](_0x12fc28[_0xfb1e('0x1f')]):![]);})[_0xfb1e('0x12')](function(_0x389650){_0xa79258(_0x389650);});};AGIVertices['prototype']['getMailAccount']=function(_0x50769c,_0x16787b){this['rpc']['getMailAccountById'](_0x50769c)[_0xfb1e('0x15')](function(_0x32892d){_0x16787b(null,_0x32892d?_0x32892d:![]);})[_0xfb1e('0x12')](function(_0x350316){_0x16787b(_0x350316);});};AGIVertices[_0xfb1e('0xf')][_0xfb1e('0x20')]=function(_0x535f99,_0x498b60,_0x286eb5){this[_0xfb1e('0x21')][_0xfb1e('0x20')](_0x535f99,_0x498b60)[_0xfb1e('0x15')](function(){_0x286eb5(null);})['catch'](function(_0x3f93e3){_0x286eb5(_0x3f93e3);});};AGIVertices[_0xfb1e('0xf')][_0xfb1e('0x22')]=function(_0x3c19ad,_0xe20319){this[_0xfb1e('0xe')]['getIntervalById'](_0x3c19ad)[_0xfb1e('0x15')](function(_0x2102eb){if(_0x2102eb){if(_0x2102eb[_0xfb1e('0x23')]){_0xe20319(null,[_0x2102eb[_0xfb1e('0x24')]]);}else{_0xe20319(null,_[_0xfb1e('0x25')](_0x2102eb['Intervals'],_0xfb1e('0x24')));}}else{_0xe20319(null,![]);}})[_0xfb1e('0x12')](function(_0x405029){_0xe20319(_0x405029);});};AGIVertices[_0xfb1e('0xf')][_0xfb1e('0x1e')]=function(_0x4210a0){return util[_0xfb1e('0x26')](_0xfb1e('0x27'),FILES_PATH,_0x4210a0);};AGIVertices['prototype'][_0xfb1e('0x28')]=function(_0xca3bc4,_0x15ebc1,_0x3626b6){odbc[_0xfb1e('0x29')](_0xca3bc4,function(_0x19cfb7){if(_0x19cfb7){logger[_0xfb1e('0x2a')](_0xfb1e('0x2b'),_0x19cfb7);_0x3626b6(_0x19cfb7);}else{logger['info']('ODBC\x20connection\x20successfully');odbc[_0xfb1e('0x2c')](_0x15ebc1,function(_0x3d543c,_0x3f4b8b){if(_0x3d543c){logger[_0xfb1e('0x2d')](_0xfb1e('0x2e'),_0x15ebc1);_0x3626b6(_0x3d543c);}else{logger['info'](_0xfb1e('0x2f'),_0x15ebc1);odbc[_0xfb1e('0x30')](function(_0x547731){if(_0x547731){logger[_0xfb1e('0x2a')](_0xfb1e('0x31'),_0x547731);}_0x3626b6(null,_0x3f4b8b);});}});}});};AGIVertices[_0xfb1e('0xf')][_0xfb1e('0x32')]=function(_0x220068,_0x52966b){this[_0xfb1e('0xe')][_0xfb1e('0x33')](_0x220068)['then'](function(_0x2341cf){_0x52966b(null,_0x2341cf?_0x2341cf:![]);})[_0xfb1e('0x12')](function(_0x4d4253){_0x52966b(_0x4d4253);});};AGIVertices[_0xfb1e('0xf')][_0xfb1e('0x34')]=function(_0x3091f6,_0x4f9dcb){this[_0xfb1e('0xe')][_0xfb1e('0x34')](_0x3091f6)[_0xfb1e('0x15')](function(_0x179d33){_0x4f9dcb(null,_0x179d33);})['catch'](function(_0xa5ef6d){_0x4f9dcb(_0xa5ef6d);});};AGIVertices['prototype'][_0xfb1e('0x35')]=function(_0x5764c3,_0x57ce1c,_0x4eb234){this['rpc'][_0xfb1e('0x35')]({'uniqueid':this[_0xfb1e('0xd')]['uniqueid'],'node':_0x5764c3['label'],'application':_0x5764c3[_0xfb1e('0x36')],'data':_0x57ce1c||null,'project_name':this[_0xfb1e('0xd')][_0xfb1e('0x37')],'callerid':this[_0xfb1e('0xd')]['callerid']})['then'](function(_0x5de782){if(_0x4eb234){_0x4eb234(null,_0x5de782);}})['catch'](function(_0x49ef20){if(_0x4eb234){_0x4eb234(_0x49ef20);}});};AGIVertices[_0xfb1e('0xf')]['createSquareRecording']=function(_0x1ddbdd,_0x57d4a8,_0x6846cd,_0x1aaad4){this[_0xfb1e('0xe')][_0xfb1e('0x38')]({'uniqueid':this[_0xfb1e('0xd')][_0xfb1e('0x39')],'callerid':this[_0xfb1e('0xd')][_0xfb1e('0x3a')],'calleridname':this[_0xfb1e('0xd')]['calleridname'],'context':this[_0xfb1e('0xd')][_0xfb1e('0x3b')],'extension':this[_0xfb1e('0xd')][_0xfb1e('0x3c')],'priority':this[_0xfb1e('0xd')]['priority'],'accountcode':this['channel'][_0xfb1e('0x3d')],'dnid':this[_0xfb1e('0xd')][_0xfb1e('0x3e')],'projectName':this[_0xfb1e('0xd')][_0xfb1e('0x37')],'saveName':_0x57d4a8,'filename':_0x1ddbdd[_0xfb1e('0x3f')]||_0x57d4a8,'savePath':_0x6846cd})[_0xfb1e('0x15')](function(_0x2f846b){_0x1aaad4(null,_0x2f846b);})['catch'](function(_0x37d4c2){_0x1aaad4(_0x37d4c2);});};AGIVertices[_0xfb1e('0xf')][_0xfb1e('0x40')]=function(_0x5a747a,_0x41640b,_0x368fd4){this[_0xfb1e('0xe')][_0xfb1e('0x40')]({'uniqueid':this['channel'][_0xfb1e('0x39')],'body':_0x5a747a,'direction':_0x41640b})['then'](function(_0x14336a){if(_0x368fd4){_0x368fd4(null,_0x14336a);}})[_0xfb1e('0x12')](function(_0x4610f1){if(_0x368fd4){_0x368fd4(_0x4610f1);}});};AGIVertices[_0xfb1e('0xf')][_0xfb1e('0x41')]=function(_0x3d54f1,_0x22bcff){this[_0xfb1e('0xe')][_0xfb1e('0x41')]({'firstName':_[_0xfb1e('0x42')](_0x3d54f1['name'])||_[_0xfb1e('0x43')](_0x3d54f1[_0xfb1e('0x11')])?'callback_'+Math[_0xfb1e('0x44')]():_0x3d54f1[_0xfb1e('0x11')],'lastName':_[_0xfb1e('0x42')](_0x3d54f1[_0xfb1e('0x45')])||_[_0xfb1e('0x43')](_0x3d54f1[_0xfb1e('0x45')])?null:_0x3d54f1[_0xfb1e('0x45')],'phone':_0x3d54f1[_0xfb1e('0x46')],'ListId':_0x3d54f1['list_id'],'scheduledat':_0x3d54f1[_0xfb1e('0x47')],'callbackUniqueid':this[_0xfb1e('0xd')]['uniqueid'],'tags':'callback','description':_0xfb1e('0x48')+_0x3d54f1[_0xfb1e('0x47')]['toString'](),'priority':_0x3d54f1['callback_priority']})[_0xfb1e('0x15')](function(_0xbafbad){_0x22bcff(null,_0xbafbad);})['catch'](function(_0x86c03b){_0x22bcff(_0x86c03b);});};AGIVertices['prototype'][_0xfb1e('0x49')]=function(_0x18fcf5,_0x53bad3){this[_0xfb1e('0xe')][_0xfb1e('0x4a')](_0x18fcf5)[_0xfb1e('0x15')](function(_0x14b905){_0x53bad3(null,_0x14b905?_0x14b905[_0xfb1e('0x11')]:![]);})[_0xfb1e('0x12')](function(_0x18f564){_0x53bad3(_0x18f564);});};AGIVertices[_0xfb1e('0xf')][_0xfb1e('0x4b')]=function(_0x13a031,_0x24e498,_0x1c6ce5){var _0xbe8d94={'role':_0xfb1e('0x4c')};_0xbe8d94[_0x13a031]=this['channel'][_0xfb1e('0x3a')];this[_0xfb1e('0xe')][_0xfb1e('0x4b')](_0xbe8d94,_0x24e498,this[_0xfb1e('0xd')][_0xfb1e('0x39')])[_0xfb1e('0x15')](function(_0x29a1e6){_0x1c6ce5(null,_[_0xfb1e('0x43')](_0x29a1e6)?![]:!![]);})['catch'](function(_0x57d9fd){logger['error'](_0x57d9fd);_0x1c6ce5(null,![]);});};AGIVertices[_0xfb1e('0xf')][_0xfb1e('0x4d')]=function(_0x3185d3,_0x245202){var _0x1e5403={'role':_0xfb1e('0x4c')};_0x1e5403[_0x3185d3]=this[_0xfb1e('0xd')][_0xfb1e('0x3a')];this[_0xfb1e('0xe')][_0xfb1e('0x4d')](_0x1e5403)[_0xfb1e('0x15')](function(_0x1263ba){_0x245202(null,_[_0xfb1e('0x43')](_0x1263ba)?![]:!![]);})[_0xfb1e('0x12')](function(_0x2674f7){logger[_0xfb1e('0x2a')](_0x2674f7);_0x245202(null,![]);});};AGIVertices[_0xfb1e('0xf')]['agentLogout']=function(_0x4c0afc,_0x49465a){var _0x858f17={'role':_0xfb1e('0x4c')};_0x858f17[_0x4c0afc]=this['channel']['callerid'];this[_0xfb1e('0xe')][_0xfb1e('0x4e')](_0x858f17)[_0xfb1e('0x15')](function(_0x418c34){_0x49465a(null,_[_0xfb1e('0x43')](_0x418c34)?![]:!![]);})['catch'](function(_0xf9b209){logger['error'](_0xf9b209);_0x49465a(null,![]);});};AGIVertices[_0xfb1e('0xf')]['agentLogin']=function(_0x3f1fa4,_0x4e8f79){var _0x3c21e8={'role':_0xfb1e('0x4c')};_0x3c21e8[_0x3f1fa4]=this[_0xfb1e('0xd')][_0xfb1e('0x3a')];var _0x54940a=_0x3f1fa4!='internal'?util[_0xfb1e('0x26')]('%s/%s@from-sip/n',_0xfb1e('0x4f'),this['channel'][_0xfb1e('0x3a')]):undefined;this[_0xfb1e('0xe')][_0xfb1e('0x50')](_0x3c21e8,_0x54940a)[_0xfb1e('0x15')](function(_0x44637b){_0x4e8f79(null,_['isNil'](_0x44637b)?![]:!![]);})[_0xfb1e('0x12')](function(_0x134d64){logger['error'](_0x134d64);_0x4e8f79(null,![]);});};AGIVertices[_0xfb1e('0xf')][_0xfb1e('0x51')]=function(_0x148c1,_0x52774a){sh[_0xfb1e('0x52')](_[_0xfb1e('0x53')](_0x148c1),function(_0x2d807d,_0x50f1a8){var _0x2bae82=_0x50f1a8[_0xfb1e('0x54')](/(\r\n|\n|\r)/gm,'');_0x52774a(null,_0x2bae82);});};AGIVertices[_0xfb1e('0xf')][_0xfb1e('0x55')]=function(_0x5832e1,_0x4bd9f7){scripts[_0xfb1e('0x55')](_0x5832e1[_0xfb1e('0x56')],_0x5832e1['google_cloud_tts_text_type']||_0xfb1e('0x57'),_0x5832e1[_0xfb1e('0x57')],_0x5832e1[_0xfb1e('0x58')]||_0xfb1e('0x59'),_0x5832e1['ssmlGender']||_0xfb1e('0x5a'),_0x5832e1['audioEncoding']||_0xfb1e('0x5b'))[_0xfb1e('0x15')](function(_0x5f2780){_0x4bd9f7(null,_0x5f2780);})['catch'](function(_0x41c3ff){_0x4bd9f7(_0x41c3ff);});};AGIVertices['prototype'][_0xfb1e('0x5c')]=function(_0x22e5d5,_0x21d0cd){scripts[_0xfb1e('0x5c')](_0x22e5d5[_0xfb1e('0x57')],_0x22e5d5['google_tts_language']||'en',0x1)[_0xfb1e('0x15')](function(_0x280787){_0x21d0cd(null,_0x280787);})[_0xfb1e('0x12')](function(_0x1f523f){_0x21d0cd(_0x1f523f);});};AGIVertices['prototype'][_0xfb1e('0x5d')]=function(_0x33228f,_0x27b9fb){var _0x3c6425={'uri':_0x33228f['url'],'method':_0x33228f[_0xfb1e('0x5e')],'json':!![],'resolveWithFullResponse':!![],'timeout':typeof parseInt(_0x33228f[_0xfb1e('0x5f')])===_0xfb1e('0x60')&&parseInt(_0x33228f[_0xfb1e('0x5f')])>=0x1?parseInt(_0x33228f[_0xfb1e('0x5f')])*0x3e8:0x5*0x3e8};if(_[_0xfb1e('0x61')]([_0xfb1e('0x62'),'PUT'],_0x3c6425[_0xfb1e('0x5e')][_0xfb1e('0x63')]())){try{_0x3c6425[_0xfb1e('0x64')]=_0x33228f['rawBody']?JSON[_0xfb1e('0x65')](_0x33228f[_0xfb1e('0x66')]):{};}catch(_0x4f34f9){logger[_0xfb1e('0x2a')]('An\x20incorrect\x20formatted\x20json\x20body\x20has\x20been\x20passed\x20to\x20the\x20function',_0x4f34f9);}}try{_0x3c6425['headers']=_0x33228f[_0xfb1e('0x67')]?JSON['parse'](_0x33228f['rawHeaders']):{};}catch(_0x39bb3f){logger[_0xfb1e('0x2a')](_0xfb1e('0x68'),_0x39bb3f);}if(_0x33228f['computedVariables']){try{var _0x467569=require(_0x33228f[_0xfb1e('0x69')])[_0xfb1e('0x6a')](this,_0x3c6425);_0x3c6425[_0xfb1e('0x6b')]=Mustache[_0xfb1e('0x6c')](_0x33228f[_0xfb1e('0x6d')],_0x467569,{},['$$','$$']);if(_0x3c6425['headers']){_0x3c6425[_0xfb1e('0x6e')]=JSON[_0xfb1e('0x65')](Mustache['render'](JSON[_0xfb1e('0x6f')](_0x3c6425['headers']),_0x467569,{},['$$','$$']));}if(_0x3c6425['body']){_0x3c6425[_0xfb1e('0x64')]=JSON['parse'](Mustache['render'](JSON[_0xfb1e('0x6f')](_0x3c6425[_0xfb1e('0x64')]),_0x467569,{},['$$','$$']));}}catch(_0x49f71c){logger['error']('An\x20incorrect\x20formatted\x20json\x20has\x20been\x20passed\x20to\x20the\x20function',_0x49f71c);}}rp(_0x3c6425)[_0xfb1e('0x15')](function(_0x4cfe25){var _0x381c95={'statusCode':_0x4cfe25[_0xfb1e('0x70')]||0xc8,'statusMessage':_0x4cfe25[_0xfb1e('0x71')]||'OK','headers':_0x4cfe25[_0xfb1e('0x6e')]||{},'body':_0x4cfe25[_0xfb1e('0x64')]||{}};_0x27b9fb(null,_0x381c95);})[_0xfb1e('0x12')](function(_0x544186){var _0x519cf1={'statusCode':_0x544186[_0xfb1e('0x70')]||0x1f4,'statusMessage':_0x544186[_0xfb1e('0x72')]||_0xfb1e('0x73'),'headers':_0x544186[_0xfb1e('0x74')][_0xfb1e('0x6e')]||{},'body':_0x544186[_0xfb1e('0x74')][_0xfb1e('0x64')]||{}};_0x27b9fb(null,_0x519cf1);});};AGIVertices[_0xfb1e('0xf')]['googleDialogflow']=function(_0xd1ad33,_0x28475c){scripts[_0xfb1e('0x75')](this[_0xfb1e('0xd')][_0xfb1e('0x39')],_0xd1ad33[_0xfb1e('0x76')],_0xd1ad33['text'],_0xd1ad33[_0xfb1e('0x77')]||'en')['then'](function(_0x5cffc2){_0x28475c(null,_0x5cffc2);})['catch'](function(_0x290399){_0x28475c(_0x290399);});};AGIVertices[_0xfb1e('0xf')]['sestekNDA']=function(_0x294ee9,_0x9095bc){scripts['sestekNDA'](this[_0xfb1e('0xd')],_0x294ee9)['then'](function(_0x1eaf4a){_0x9095bc(null,_0x1eaf4a);})[_0xfb1e('0x12')](function(_0x44429e){_0x9095bc(_0x44429e);});};AGIVertices[_0xfb1e('0xf')][_0xfb1e('0x78')]=function(_0x268f60,_0x4b80d7){scripts[_0xfb1e('0x78')](_0x268f60[_0xfb1e('0x76')],_0x268f60[_0xfb1e('0x57')],_0x268f60[_0xfb1e('0x79')]||_0xfb1e('0x59'),_0x268f60[_0xfb1e('0x7a')])[_0xfb1e('0x15')](function(_0x3670dc){_0x4b80d7(null,_0x3670dc);})[_0xfb1e('0x12')](function(_0x3fc333){_0x4b80d7(_0x3fc333);});};AGIVertices['prototype'][_0xfb1e('0x7b')]=function(_0x213f14,_0x457ad4,_0x5a226d){scripts[_0xfb1e('0x7b')](_0x457ad4,_0x213f14[_0xfb1e('0x76')],_0x213f14['ispeech_asr_language']||_0xfb1e('0x59'),this[_0xfb1e('0x7c')](_0x213f14[_0xfb1e('0x7d')])?_0x213f14[_0xfb1e('0x7d')]:undefined)['then'](function(_0x5875fe){_0x5a226d(null,_0x5875fe);})[_0xfb1e('0x12')](function(_0x188daf){_0x5a226d(_0x188daf);});};AGIVertices[_0xfb1e('0xf')]['awsPolly']=function(_0x247c76,_0x31aa26){scripts['awsPolly'](_0x247c76['aws_access_key_id'],_0x247c76[_0xfb1e('0x7e')],_0x247c76['aws_polly_region'],_0x247c76['aws_polly_voice']||_0xfb1e('0x7f'),_0x247c76[_0xfb1e('0x57')],_0x247c76[_0xfb1e('0x80')]||_0xfb1e('0x57'))[_0xfb1e('0x15')](function(_0x10b4e5){_0x31aa26(null,_0x10b4e5);})[_0xfb1e('0x12')](function(_0x59641c){_0x31aa26(_0x59641c);});};AGIVertices[_0xfb1e('0xf')][_0xfb1e('0x81')]=function(_0xf6f3e4,_0x149e6f){scripts[_0xfb1e('0x81')](this[_0xfb1e('0xd')]['uniqueid'],_0xf6f3e4[_0xfb1e('0x82')],_0xf6f3e4[_0xfb1e('0x7e')],_0xf6f3e4[_0xfb1e('0x83')],_0xf6f3e4[_0xfb1e('0x57')],_0xf6f3e4[_0xfb1e('0x84')])[_0xfb1e('0x15')](function(_0x5efdf2){_0x149e6f(null,_0x5efdf2);})[_0xfb1e('0x12')](function(_0x136cb7){_0x149e6f(_0x136cb7);});};AGIVertices[_0xfb1e('0xf')][_0xfb1e('0x85')]=function(_0x280391,_0x2eba90,_0x1ad00e){scripts[_0xfb1e('0x85')](_0x2eba90,_0x280391[_0xfb1e('0x76')],_0x280391['google_asr_language']||_0xfb1e('0x59'))[_0xfb1e('0x15')](function(_0x132b62){_0x1ad00e(null,_0x132b62);})[_0xfb1e('0x12')](function(_0x524063){_0x1ad00e(_0x524063);});};AGIVertices[_0xfb1e('0xf')][_0xfb1e('0x86')]=function(_0x1bf448,_0x442608,_0x1192e4){scripts[_0xfb1e('0x86')](_0x442608,_0x1bf448[_0xfb1e('0x87')],_0x1bf448[_0xfb1e('0x88')],_0x1bf448[_0xfb1e('0x6b')])[_0xfb1e('0x15')](function(_0x4463db){_0x1192e4(null,_0x4463db);})[_0xfb1e('0x12')](function(_0x236e79){_0x1192e4(_0x236e79);});};AGIVertices[_0xfb1e('0xf')]['clear']=function(_0x58b906){var _0x30aa55=_[_0xfb1e('0x61')](verticesWithRetry,_0x58b906[_0xfb1e('0x36')])?_0x58b906:_[_0xfb1e('0x89')](_0x58b906);for(var _0x34b0d1 in _0x30aa55){if(_0x30aa55[_0xfb1e('0x8a')](_0x34b0d1)){if(_0x30aa55[_0x34b0d1]&&_[_0xfb1e('0x8b')](_0x30aa55[_0x34b0d1])){if(_[_0xfb1e('0x61')](recursiveMapAttributes,_0x34b0d1)){_0x30aa55[_0x34b0d1]=this[_0xfb1e('0x8c')](_0x30aa55[_0x34b0d1]);}else{_0x30aa55[_0x34b0d1]=this[_0xfb1e('0x8d')](_0x30aa55[_0x34b0d1]);}}}}return _0x30aa55;};AGIVertices[_0xfb1e('0xf')][_0xfb1e('0x8e')]=function(_0x3f68f2){for(var _0x1e5ec4 in _0x3f68f2){if(_0x3f68f2[_0xfb1e('0x8a')](_0x1e5ec4)){if(_['isPlainObject'](_0x3f68f2[_0x1e5ec4])){this[_0xfb1e('0x8e')](_0x3f68f2[_0x1e5ec4]);}else if(_[_0xfb1e('0x8f')](_0x3f68f2[_0x1e5ec4])){for(var _0x4b63c2=0x0;_0x4b63c2<_0x3f68f2[_0x1e5ec4][_0xfb1e('0x90')];_0x4b63c2++){this['recursiveNodeIndex'](_0x3f68f2[_0x1e5ec4][_0x4b63c2]);}}else if(_[_0xfb1e('0x8b')](_0x3f68f2[_0x1e5ec4])){_0x3f68f2[_0x1e5ec4]=this[_0xfb1e('0x8d')](_0x3f68f2[_0x1e5ec4]);}}}};AGIVertices[_0xfb1e('0xf')]['saveRestApiResult']=function(_0x9a4da1,_0x3f30fd){for(var _0x2b3405 in _0x9a4da1){if(_0x9a4da1[_0xfb1e('0x8a')](_0x2b3405)){if(_['isPlainObject'](_0x9a4da1[_0x2b3405])){if(!_[_0xfb1e('0x42')](_0x9a4da1[_0x2b3405])){this['saveRestApiResult'](_0x9a4da1[_0x2b3405],util[_0xfb1e('0x26')](_0xfb1e('0x91'),_0x3f30fd,_0x2b3405));}}else if(_[_0xfb1e('0x8f')](_0x9a4da1[_0x2b3405])){for(var _0x4cb155=0x0;_0x4cb155<_0x9a4da1[_0x2b3405][_0xfb1e('0x90')];_0x4cb155++){this[_0xfb1e('0x92')](_0x9a4da1[_0x2b3405][_0x4cb155],util[_0xfb1e('0x26')](_0xfb1e('0x91'),_0x3f30fd,_0x2b3405+'['+_0x4cb155+']'));}}else{if(!_[_0xfb1e('0x43')](_0x9a4da1[_0x2b3405])){this[_0xfb1e('0xd')][_0xfb1e('0x93')](util[_0xfb1e('0x26')](_0xfb1e('0x91'),_0x3f30fd,_0x2b3405),_0x9a4da1[_0x2b3405]);}}}}};AGIVertices[_0xfb1e('0xf')]['replaceObjectAllVariables']=function(_0x10eaca){try{var _0x33e4dd=JSON[_0xfb1e('0x65')](_0x10eaca);this[_0xfb1e('0x8e')](_0x33e4dd);return JSON[_0xfb1e('0x6f')](_0x33e4dd);}catch(_0x5278a7){return this[_0xfb1e('0x8d')](_0x10eaca);}};AGIVertices[_0xfb1e('0xf')][_0xfb1e('0x8d')]=function(_0x524308){var _0x52101f=_0x524308['split']('{');for(var _0x5d2320=0x1;_0x5d2320<_0x52101f['length'];_0x5d2320+=0x1){var _0x5e4543=_0x52101f[_0x5d2320]['split']('}');if(_0x5e4543[_0xfb1e('0x90')]>0x1){_0x524308=_0x524308[_0xfb1e('0x94')]('{'+_0x5e4543[0x0]+'}',this[_0xfb1e('0xd')][_0xfb1e('0x10')](_0x5e4543[0x0])[_0xfb1e('0x95')]||_0x5e4543[0x0]);}}if(_0x52101f[_0xfb1e('0x90')]===0x1){return _0x524308[_0xfb1e('0x96')]();}return this[_0xfb1e('0x8d')](_0x524308);};AGIVertices[_0xfb1e('0xf')][_0xfb1e('0x97')]=function(_0x1811b9,_0x5332fe){var _0x4486a8=this[_0xfb1e('0xd')][_0xfb1e('0x10')](_0x1811b9);if(_0x4486a8[_0xfb1e('0x98')]===-0x1){return _0x4486a8;}logger['info'](util['format'](_0xfb1e('0x99'),_0x5332fe,_0x4486a8[_0xfb1e('0x95')]));return this[_0xfb1e('0xd')][_0xfb1e('0x93')](_0x5332fe,_0x4486a8['extra']);};AGIVertices['prototype']['isConfigured']=function(_0x19bbf4){return _0x19bbf4&&_0x19bbf4!=='0'&&_0x19bbf4!=='-1'&&_0x19bbf4!=='';};AGIVertices['prototype'][_0xfb1e('0x9a')]=function(_0x1b00ed){this[_0xfb1e('0x35')][_0xfb1e('0x6a')](this,_0x1b00ed,'-');_0x1b00ed[_0xfb1e('0x9b')]=_0x1b00ed[_0xfb1e('0x9a')];return{'code':0xc8,'result':'-'};};AGIVertices[_0xfb1e('0xf')][_0xfb1e('0x9c')]=function(_0xd343c7){logger[_0xfb1e('0x2d')](util[_0xfb1e('0x26')]('Enter\x20in\x20MRCPSynth\x20(%s)\x20block',_0xd343c7['label']));if(!this[_0xfb1e('0x7c')](_0xd343c7['text'])){return this[_0xfb1e('0xd')][_0xfb1e('0x9d')](_0xfb1e('0x9e'));}var _0x23b068='\x22'+_0xd343c7['text']+'\x22';if(this['isConfigured'](_0xd343c7[_0xfb1e('0x74')])){_0x23b068+=','+_0xd343c7['options'];}var _0x158cd6=this[_0xfb1e('0xd')][_0xfb1e('0x52')]('MRCPSynth',_0x23b068);if(_0x158cd6[_0xfb1e('0x98')]===-0x1){return _0x158cd6;}return this[_0xfb1e('0xd')][_0xfb1e('0x9d')](util[_0xfb1e('0x26')]('Executed\x20command\x20MRCPSynth\x20%s',_0x23b068));};AGIVertices[_0xfb1e('0xf')]['mrcprecog']=function(_0xf2f97d){logger['info'](util['format'](_0xfb1e('0x9f'),_0xf2f97d[_0xfb1e('0xa0')]));if(!this[_0xfb1e('0x7c')](_0xf2f97d['grammar'])){return this[_0xfb1e('0xd')][_0xfb1e('0x9d')]('no\x20grammar\x20configured');}var _0x30e27d=_0xf2f97d[_0xfb1e('0xa1')];if(this[_0xfb1e('0x7c')](_0xf2f97d[_0xfb1e('0x74')])){_0x30e27d+=','+_0xf2f97d[_0xfb1e('0x74')];}var _0x4fc102=this['channel']['exec'](_0xfb1e('0xa2'),_0x30e27d);if(_0x4fc102[_0xfb1e('0x98')]===-0x1){return _0x4fc102;}var _0x296b0b=this[_0xfb1e('0x97')](_0xfb1e('0xa3'),_0xfb1e('0xa4'));if(_0x296b0b[_0xfb1e('0x98')]===-0x1){return _0x296b0b;}var _0xc240f9=this['getAndSetVariable'](_0xfb1e('0xa5'),'MRCP_RECOG_TRANSCRIPT');if(_0xc240f9['result']===-0x1){return _0xc240f9;}var _0x21e589=this['getAndSetVariable']('RECOG_INSTANCE()',_0xfb1e('0xa6'));if(_0x21e589[_0xfb1e('0x98')]===-0x1){return _0x21e589;}return this[_0xfb1e('0xd')][_0xfb1e('0x9d')](util['format'](_0xfb1e('0xa7'),_0x30e27d));};AGIVertices[_0xfb1e('0xf')][_0xfb1e('0x6')]=function(_0x557014){logger[_0xfb1e('0x2d')](util[_0xfb1e('0x26')](_0xfb1e('0xa8'),_0x557014[_0xfb1e('0xa0')]));return this['channel'][_0xfb1e('0x6')]([_0x557014[_0xfb1e('0xa9')],_0x557014['args']]);};AGIVertices[_0xfb1e('0xf')]['answer']=function(_0x3d743c){logger[_0xfb1e('0x2d')](util['format'](_0xfb1e('0xaa'),_0x3d743c['label']));if(this[_0xfb1e('0x7c')](_0x3d743c[_0xfb1e('0x5f')])){logger['info'](util[_0xfb1e('0x26')]('Wait\x20%s\x20seconds\x20before\x20answer',_0x3d743c[_0xfb1e('0x5f')]));var _0x25526a=this[_0xfb1e('0xd')][_0xfb1e('0xab')](_0x3d743c[_0xfb1e('0x5f')]);if(_0x25526a[_0xfb1e('0x98')]===-0x1){return _0x25526a;}}return this[_0xfb1e('0xd')][_0xfb1e('0xac')]();};AGIVertices[_0xfb1e('0xf')][_0xfb1e('0xad')]=function(_0x4abf93){logger['info'](util[_0xfb1e('0x26')](_0xfb1e('0xae'),_0x4abf93[_0xfb1e('0xa0')]));if(!this[_0xfb1e('0x7c')](_0x4abf93[_0xfb1e('0xaf')])){return this[_0xfb1e('0xd')][_0xfb1e('0x2a')](_0x4abf93,_0xfb1e('0xb0'));}_0x4abf93['scheduledAt']=moment();if(this['isConfigured'](_0x4abf93[_0xfb1e('0xb1')])){_0x4abf93[_0xfb1e('0x47')]=moment()['add'](_0x4abf93[_0xfb1e('0xb1')],'minutes');}if(!this[_0xfb1e('0x7c')](_0x4abf93[_0xfb1e('0xb2')])){_0x4abf93[_0xfb1e('0xb2')]=0x2;}this[_0xfb1e('0x41')]['sync'](this,_0x4abf93);return this['channel'][_0xfb1e('0x9d')](util[_0xfb1e('0x26')](_0xfb1e('0xb3'),_0x4abf93[_0xfb1e('0x46')],_0x4abf93[_0xfb1e('0xaf')],_0x4abf93[_0xfb1e('0x47')]));};AGIVertices[_0xfb1e('0xf')][_0xfb1e('0xb4')]=function(_0x3ef04a){logger[_0xfb1e('0x2d')](util[_0xfb1e('0x26')](_0xfb1e('0xb5'),_0x3ef04a[_0xfb1e('0xa0')]));var _0x4f6b05=this['channel'][_0xfb1e('0x52')](_0x3ef04a[_0xfb1e('0xb6')],_0x3ef04a[_0xfb1e('0x74')]);if(_0x4f6b05[_0xfb1e('0x98')]===-0x1){return _0x4f6b05;}return this[_0xfb1e('0xd')][_0xfb1e('0x9d')](util[_0xfb1e('0x26')](_0xfb1e('0xb7'),_0x3ef04a[_0xfb1e('0xb6')],_0x3ef04a['options']));};AGIVertices[_0xfb1e('0xf')]['lumenvoxtts']=function(_0x344258){logger[_0xfb1e('0x2d')](util['format'](_0xfb1e('0xb8'),_0x344258[_0xfb1e('0xa0')]));if(!this[_0xfb1e('0x7c')](_0x344258[_0xfb1e('0x57')])){return this[_0xfb1e('0xd')][_0xfb1e('0x9d')](_0xfb1e('0x9e'));}var _0xa0b995='\x22'+_0x344258[_0xfb1e('0x57')]+'\x22';if(this[_0xfb1e('0x7c')](_0x344258[_0xfb1e('0x74')])){_0xa0b995+=','+_0x344258[_0xfb1e('0x74')];}var _0x1e2c9b=this[_0xfb1e('0xd')][_0xfb1e('0x52')]('MRCPSynth',_0xa0b995);if(_0x1e2c9b[_0xfb1e('0x98')]===-0x1){return _0x1e2c9b;}return this[_0xfb1e('0xd')]['noop'](util[_0xfb1e('0x26')]('Executed\x20command\x20MRCPSynth\x20%s',_0xa0b995));};AGIVertices[_0xfb1e('0xf')]['sestektts']=function(_0x150a41){logger[_0xfb1e('0x2d')](util[_0xfb1e('0x26')](_0xfb1e('0xb9'),_0x150a41[_0xfb1e('0xa0')]));if(!this['isConfigured'](_0x150a41[_0xfb1e('0x57')])){return this['channel']['noop'](_0xfb1e('0x9e'));}var _0x4c9ab7='\x22'+_0x150a41[_0xfb1e('0x57')]+'\x22';if(this['isConfigured'](_0x150a41['options'])){_0x4c9ab7+=','+_0x150a41[_0xfb1e('0x74')];}var _0x335bc3=this[_0xfb1e('0xd')][_0xfb1e('0x52')](_0xfb1e('0xba'),_0x4c9ab7);if(_0x335bc3[_0xfb1e('0x98')]===-0x1){return _0x335bc3;}return this[_0xfb1e('0xd')][_0xfb1e('0x9d')](util[_0xfb1e('0x26')](_0xfb1e('0xbb'),_0x4c9ab7));};AGIVertices[_0xfb1e('0xf')][_0xfb1e('0xbc')]=function(_0x2e1311){logger[_0xfb1e('0x2d')](util['format'](_0xfb1e('0xbd'),_0x2e1311[_0xfb1e('0xa0')]));if(!this[_0xfb1e('0x7c')](_0x2e1311[_0xfb1e('0xa1')])){return this[_0xfb1e('0xd')][_0xfb1e('0x9d')](_0xfb1e('0xbe'));}var _0x31b1a1=_0x2e1311['grammar'];if(this[_0xfb1e('0x7c')](_0x2e1311[_0xfb1e('0x74')])){_0x31b1a1+=','+_0x2e1311['options'];}var _0xd535fc=this[_0xfb1e('0xd')][_0xfb1e('0x52')](_0xfb1e('0xa2'),_0x31b1a1);if(_0xd535fc['result']===-0x1){return _0xd535fc;}var _0x52c4dd=this[_0xfb1e('0x97')](_0xfb1e('0xa3'),_0xfb1e('0xbf'));if(_0x52c4dd['result']===-0x1){return _0x52c4dd;}var _0x164933=this[_0xfb1e('0x97')]('RECOG_INPUT()','LUMENVOX_ASR_TRANSCRIPT');if(_0x164933[_0xfb1e('0x98')]===-0x1){return _0x164933;}var _0x205809=this['getAndSetVariable'](_0xfb1e('0xc0'),'LUMENVOX_ASR_INSTANCE');if(_0x205809['result']===-0x1){return _0x205809;}return this[_0xfb1e('0xd')][_0xfb1e('0x9d')](util[_0xfb1e('0x26')](_0xfb1e('0xa7'),_0x31b1a1));};AGIVertices[_0xfb1e('0xf')][_0xfb1e('0xc1')]=function(_0x2d89c7){logger[_0xfb1e('0x2d')](util[_0xfb1e('0x26')]('Enter\x20in\x20SESTEKASR\x20(%s)\x20block',_0x2d89c7[_0xfb1e('0xa0')]));if(!this[_0xfb1e('0x7c')](_0x2d89c7[_0xfb1e('0xa1')])){return this['channel'][_0xfb1e('0x9d')](_0xfb1e('0xbe'));}var _0x5298ed=_0x2d89c7['grammar'];if(this[_0xfb1e('0x7c')](_0x2d89c7[_0xfb1e('0x74')])){_0x5298ed+=','+_0x2d89c7[_0xfb1e('0x74')];}var _0x19689b=this[_0xfb1e('0xd')][_0xfb1e('0x52')](_0xfb1e('0xa2'),_0x5298ed);if(_0x19689b[_0xfb1e('0x98')]===-0x1){return _0x19689b;}var _0xda87e=this[_0xfb1e('0x97')](_0xfb1e('0xa3'),_0xfb1e('0xc2'));if(_0xda87e[_0xfb1e('0x98')]===-0x1){return _0xda87e;}var _0x187489=this[_0xfb1e('0x97')](_0xfb1e('0xa5'),_0xfb1e('0xc3'));if(_0x187489[_0xfb1e('0x98')]===-0x1){return _0x187489;}var _0x201ca4=this['getAndSetVariable'](_0xfb1e('0xc0'),'SESTEK_ASR_INSTANCE');if(_0x201ca4[_0xfb1e('0x98')]===-0x1){return _0x201ca4;}return this[_0xfb1e('0xd')][_0xfb1e('0x9d')](util[_0xfb1e('0x26')](_0xfb1e('0xa7'),_0x5298ed));};AGIVertices[_0xfb1e('0xf')][_0xfb1e('0xc4')]=function(_0x242bed){logger[_0xfb1e('0x2d')](util[_0xfb1e('0x26')](_0xfb1e('0xc5'),_0x242bed[_0xfb1e('0xa0')]));if(!this['isConfigured'](_0x242bed[_0xfb1e('0xc6')])){return this[_0xfb1e('0xd')][_0xfb1e('0x2a')](_0x242bed,'no\x20database\x20selected');}var _0x1e4d66=this[_0xfb1e('0x18')][_0xfb1e('0x6a')](this,_0x242bed[_0xfb1e('0xc6')]);if(!_0x1e4d66){return this['channel'][_0xfb1e('0x2a')](_0x242bed,_0xfb1e('0xc7'));}if(!this[_0xfb1e('0x7c')](_0x242bed[_0xfb1e('0x2c')])){return this[_0xfb1e('0xd')][_0xfb1e('0x2a')](_0x242bed,'no\x20query\x20configured');}var _0x45d9c5=_0x242bed['query'][_0xfb1e('0x54')](/(\r\n|\n|\r)/gm,'\x20');this['channel'][_0xfb1e('0x9d')](util[_0xfb1e('0x26')](_0xfb1e('0xc8'),_0x45d9c5));var _0x52df21=this[_0xfb1e('0x28')][_0xfb1e('0x6a')](this,_0x1e4d66,_0x45d9c5);this[_0xfb1e('0x35')][_0xfb1e('0x6a')](this,_0x242bed,_0x45d9c5);if(!this['isConfigured'](_0x242bed[_0xfb1e('0xc9')])){return this[_0xfb1e('0xd')][_0xfb1e('0x9d')](_0xfb1e('0xca'));}var _0x73ebdd=this[_0xfb1e('0x10')][_0xfb1e('0x6a')](this,_0x242bed[_0xfb1e('0xc9')]);if(!_0x73ebdd){return this[_0xfb1e('0xd')][_0xfb1e('0x2a')](_0x242bed,_0xfb1e('0xcb'));}var _0x2c864d=this;_0x52df21[_0xfb1e('0xcc')](function(_0x59e371,_0x4e2bfa){Object[_0xfb1e('0xcd')](_0x59e371)['forEach'](function(_0x369e86){_0x2c864d[_0xfb1e('0xd')][_0xfb1e('0x93')](util[_0xfb1e('0x26')](_0xfb1e('0xce'),_0x73ebdd,_0x4e2bfa,_0x369e86),_0x59e371[_0x369e86]);});});this[_0xfb1e('0xd')][_0xfb1e('0x93')](util[_0xfb1e('0x26')](_0xfb1e('0xcf'),_0x73ebdd),_0x52df21[_0xfb1e('0x90')]);return this[_0xfb1e('0xd')]['noop'](util[_0xfb1e('0x26')](_0xfb1e('0xd0'),_0x73ebdd));};AGIVertices[_0xfb1e('0xf')][_0xfb1e('0xd1')]=function(_0x4c353d){logger[_0xfb1e('0xd2')](util[_0xfb1e('0x26')](_0xfb1e('0xd3'),_0x4c353d[_0xfb1e('0xa0')]));if(!this[_0xfb1e('0x7c')](_0x4c353d[_0xfb1e('0xd4')])){return this[_0xfb1e('0xd')][_0xfb1e('0x2a')](_0x4c353d,_0xfb1e('0xd5'));}var _0x587a11=this[_0xfb1e('0x19')][_0xfb1e('0x6a')](this,_0x4c353d['sip_id']);if(!_0x587a11){return this['channel'][_0xfb1e('0x2a')](_0x4c353d,_0xfb1e('0xd6'));}var _0x13bedc=this[_0xfb1e('0xd')][_0xfb1e('0x52')](_0xfb1e('0xd7'),[util['format'](_0xfb1e('0xd8'),_0x587a11),_0x4c353d[_0xfb1e('0x5f')],_0x4c353d['opts'],_0x4c353d[_0xfb1e('0x6d')]]);if(_0x13bedc['result']===-0x1){return _0x13bedc;}return this[_0xfb1e('0xd')][_0xfb1e('0x9d')](util[_0xfb1e('0x26')]('Executed\x20command\x20%s','DIAL'));};AGIVertices[_0xfb1e('0xf')][_0xfb1e('0xd9')]=function(_0x2e54f3){logger[_0xfb1e('0x2d')](util[_0xfb1e('0x26')](_0xfb1e('0xda'),_0x2e54f3['label']));if(!this['isConfigured'](_0x2e54f3[_0xfb1e('0x76')])){return this['channel']['noop'](_0xfb1e('0xdb'));}if(!this['isConfigured'](_0x2e54f3['text'])){return this['channel'][_0xfb1e('0x9d')](_0xfb1e('0x9e'));}this[_0xfb1e('0xd')][_0xfb1e('0xdc')]=!![];this[_0xfb1e('0x35')](_0x2e54f3);this[_0xfb1e('0x40')](_0x2e54f3['text'],'in');this[_0xfb1e('0xd')][_0xfb1e('0x9d')](util[_0xfb1e('0x26')]('Trying\x20Dialogflow:\x20%s',_0x2e54f3[_0xfb1e('0x57')]));var _0x5df8cf=this[_0xfb1e('0x75')][_0xfb1e('0x6a')](this,_0x2e54f3);if(_0x5df8cf){for(var _0x2e7946 in _0x5df8cf){if(_0x5df8cf[_0xfb1e('0x8a')](_0x2e7946)){this[_0xfb1e('0xd')]['setVariable'](util[_0xfb1e('0x26')](_0xfb1e('0xdd'),_0x2e7946[_0xfb1e('0x63')]()),_0x5df8cf[_0x2e7946]);}}this['createSquareMessage'](_0x5df8cf[_0xfb1e('0xde')],_0xfb1e('0xdf'));return this[_0xfb1e('0xd')]['noop'](util[_0xfb1e('0x26')](_0xfb1e('0xe0'),_0x5df8cf[_0xfb1e('0xde')]));}return this['channel']['error'](_0x2e54f3,_0xfb1e('0xe1'));};AGIVertices[_0xfb1e('0xf')][_0xfb1e('0xe2')]=function(_0x28c40e){logger[_0xfb1e('0x2d')](util[_0xfb1e('0x26')](_0xfb1e('0xe3'),_0x28c40e[_0xfb1e('0xa0')]));if(!this[_0xfb1e('0x7c')](_0x28c40e[_0xfb1e('0xe4')])){return this[_0xfb1e('0xd')]['noop']('no\x20ndauth\x20url\x20configured');}if(!this[_0xfb1e('0x7c')](_0x28c40e[_0xfb1e('0xe5')])){return this[_0xfb1e('0xd')][_0xfb1e('0x9d')](_0xfb1e('0xe6'));}if(!this[_0xfb1e('0x7c')](_0x28c40e[_0xfb1e('0xe7')])){return this['channel'][_0xfb1e('0x9d')](_0xfb1e('0xe8'));}if(!this[_0xfb1e('0x7c')](_0x28c40e[_0xfb1e('0xe9')])){return this[_0xfb1e('0xd')]['noop'](_0xfb1e('0x9e'));}this[_0xfb1e('0xd')][_0xfb1e('0xdc')]=!![];this[_0xfb1e('0x35')](_0x28c40e);this[_0xfb1e('0x40')](_0x28c40e[_0xfb1e('0x57')],'in');this['channel'][_0xfb1e('0x9d')](util[_0xfb1e('0x26')]('Trying\x20SestekNDA:\x20%s',_0x28c40e[_0xfb1e('0x57')]));var _0x3c129a=this[_0xfb1e('0xea')][_0xfb1e('0x6a')](this,_0x28c40e);if(_0x3c129a){for(var _0x2a1faf in _0x3c129a){if(_0x3c129a[_0xfb1e('0x8a')](_0x2a1faf)){this['channel'][_0xfb1e('0x93')](util[_0xfb1e('0x26')]('SESTEK_NDA_%s',_0x2a1faf[_0xfb1e('0x63')]()),_0x3c129a[_0x2a1faf]);}}this[_0xfb1e('0x40')](_0x3c129a['speech'],'out');if(_0x3c129a[_0xfb1e('0xeb')]){this['channel'][_0xfb1e('0x9d')](util[_0xfb1e('0x26')]('Sestek\x20NDA\x20%s\x20file\x20created',_0x3c129a[_0xfb1e('0xeb')]));var _0x2d34ac=this[_0xfb1e('0xd')][_0xfb1e('0xec')](_0x3c129a[_0xfb1e('0xeb')]);try{fs[_0xfb1e('0xed')](_0x3c129a[_0xfb1e('0xeb')]+_0xfb1e('0xee'));}catch(_0x366d71){logger[_0xfb1e('0x2a')](_0x366d71);}return _0x2d34ac;}else{return this['channel'][_0xfb1e('0x9d')](util[_0xfb1e('0x26')]('SestekNDA\x20Result\x20%s',_0x3c129a[_0xfb1e('0xde')]));}}return this[_0xfb1e('0xd')][_0xfb1e('0x2a')](_0x28c40e,_0xfb1e('0xef'));};AGIVertices[_0xfb1e('0xf')][_0xfb1e('0xf0')]=function(_0x8c4fe5){logger['info'](util[_0xfb1e('0x26')](_0xfb1e('0xf1'),_0x8c4fe5['label']));return this[_0xfb1e('0xd')]['noop'](_0xfb1e('0xf0'));};AGIVertices['prototype'][_0xfb1e('0xf2')]=function(_0x1b3b84){logger[_0xfb1e('0x2d')](util[_0xfb1e('0x26')](_0xfb1e('0xf3'),_0x1b3b84[_0xfb1e('0xa0')]));var _0x53322f='';if(_0x1b3b84['trunk_id']){if(!this[_0xfb1e('0x7c')](_0x1b3b84[_0xfb1e('0xf4')])){return this[_0xfb1e('0xd')]['error'](_0x1b3b84,_0xfb1e('0xf5'));}else{var _0x59a678=parseInt(_0x1b3b84[_0xfb1e('0xf4')],0xa);if(isNaN(_0x59a678)){_0x53322f=_0x1b3b84[_0xfb1e('0xf4')];}else{_0x53322f=this[_0xfb1e('0x1b')][_0xfb1e('0x6a')](this,_0x1b3b84[_0xfb1e('0xf4')]);if(!_0x53322f){return this['channel']['error'](_0x1b3b84,'no\x20trunk\x20found');}}}}else if(_0x1b3b84['trunk_name']){_0x53322f=_0x1b3b84[_0xfb1e('0xf6')];}else{return this[_0xfb1e('0xd')][_0xfb1e('0x2a')](_0x1b3b84,'no\x20trunk\x20selected');}var _0x218508=this[_0xfb1e('0xd')]['exec'](_0xfb1e('0xd7'),[util[_0xfb1e('0x26')](_0xfb1e('0xf7'),_0x53322f,_0x1b3b84[_0xfb1e('0x46')]),_0x1b3b84[_0xfb1e('0x5f')],_0x1b3b84[_0xfb1e('0xf8')],_0x1b3b84[_0xfb1e('0x6d')]]);if(_0x218508['result']===-0x1){return _0x218508;}return this[_0xfb1e('0xd')][_0xfb1e('0x9d')](util[_0xfb1e('0x26')](_0xfb1e('0xf9'),_0xfb1e('0xd7')));};AGIVertices[_0xfb1e('0xf')][_0xfb1e('0xfa')]=function(_0x4993a9){logger['info'](util[_0xfb1e('0x26')](_0xfb1e('0xfb'),_0x4993a9[_0xfb1e('0xa0')]));return this[_0xfb1e('0xd')][_0xfb1e('0x9d')](_0xfb1e('0xfa'));};AGIVertices['prototype'][_0xfb1e('0xb')]=function(_0x5c42f4){logger['info'](util[_0xfb1e('0x26')]('Enter\x20in\x20GETDIGITS\x20(%s)\x20block',_0x5c42f4[_0xfb1e('0xa0')]));if(_0x5c42f4[_0xfb1e('0x9b')]===0x0){return this['maxRetry'](_0x5c42f4);}_0x5c42f4['retry']-=0x1;if(!this[_0xfb1e('0x7c')](_0x5c42f4[_0xfb1e('0xfc')])){return this[_0xfb1e('0xd')]['error'](_0x5c42f4,'no\x20file\x20audio\x20selected');}var _0x28a5c7=this[_0xfb1e('0x1c')]['sync'](this,_0x5c42f4[_0xfb1e('0xfc')]);if(!_0x28a5c7){return this['channel'][_0xfb1e('0x2a')](_0x5c42f4,'no\x20file\x20audio\x20found');}if(!this[_0xfb1e('0x7c')](_0x5c42f4['variable_id'])){return this[_0xfb1e('0xd')]['error'](_0xfb1e('0xca'));}var _0x3873f1=this['channel']['getData'](_0x28a5c7,_0x5c42f4[_0xfb1e('0xfd')],_0x5c42f4['maxdigit']);var _0x1b3f9f=_0x3873f1[_0xfb1e('0x98')]?_0x3873f1[_0xfb1e('0x98')][_0xfb1e('0x96')]():'';logger[_0xfb1e('0x2d')]('test',JSON['stringify'](_0x3873f1));if(_0x3873f1[_0xfb1e('0x98')]===-0x1){this[_0xfb1e('0x35')][_0xfb1e('0x6a')](this,_0x5c42f4,_0x1b3f9f);return _0x3873f1;}else if(_0x3873f1[_0xfb1e('0x95')]===_0xfb1e('0x5f')){_0x3873f1['result']=_0x1b3f9f[_0xfb1e('0x90')]>=parseInt(_0x5c42f4[_0xfb1e('0xfe')])?'x':'i';}else{_0x3873f1[_0xfb1e('0x98')]=_0x1b3f9f['length']>=parseInt(_0x5c42f4[_0xfb1e('0xfe')])&&_0x1b3f9f['length']<=parseInt(_0x5c42f4[_0xfb1e('0xff')])?'x':'i';}var _0x4e37a5=this[_0xfb1e('0x10')][_0xfb1e('0x6a')](this,_0x5c42f4['variable_id']);if(!_0x4e37a5){return this[_0xfb1e('0xd')][_0xfb1e('0x2a')](_0x5c42f4,_0xfb1e('0xcb'));}this[_0xfb1e('0xd')][_0xfb1e('0x93')](_0x4e37a5,_0x1b3f9f);if(this[_0xfb1e('0x7c')](_0x5c42f4[_0xfb1e('0x100')])){var _0x3d7f1c=parseInt(_0x5c42f4['hiddendigitsnum'],0xa);var _0x5cc7d5=rs[_0xfb1e('0x101')]({'charset':'*','length':_0x3d7f1c});var _0x5b6b80=_0x1b3f9f[_0xfb1e('0x90')];if(_0x5b6b80>0x0){if(_0x5b6b80>_0x3d7f1c){this[_0xfb1e('0x35')][_0xfb1e('0x6a')](this,_0x5c42f4,_0x5c42f4[_0xfb1e('0x102')]===_0xfb1e('0x103')?_0x5cc7d5+_0x1b3f9f[_0xfb1e('0x104')](_0x3d7f1c):_0x1b3f9f[_0xfb1e('0x104')](0x0,_0x5b6b80-_0x3d7f1c)+_0x5cc7d5);}else{this[_0xfb1e('0x35')][_0xfb1e('0x6a')](this,_0x5c42f4,rs[_0xfb1e('0x101')]({'charset':'*','length':_0x5b6b80}));}}else{this[_0xfb1e('0x35')]['sync'](this,_0x5c42f4,'');}}else{this[_0xfb1e('0x35')][_0xfb1e('0x6a')](this,_0x5c42f4,_0x1b3f9f);}return _0x3873f1;};AGIVertices[_0xfb1e('0xf')]['getsecretdigits']=function(_0x51456a){logger[_0xfb1e('0x2d')](util[_0xfb1e('0x26')](_0xfb1e('0x105'),_0x51456a[_0xfb1e('0xa0')]));return this[_0xfb1e('0xb')](_0x51456a);};AGIVertices[_0xfb1e('0xf')][_0xfb1e('0x106')]=function(_0x1aabd7){logger[_0xfb1e('0x2d')](util[_0xfb1e('0x26')](_0xfb1e('0x107'),_0x1aabd7['label']));this['createSquareDetailsReport'][_0xfb1e('0x6a')](this,_0x1aabd7,_0x1aabd7[_0xfb1e('0x108')]);return this[_0xfb1e('0xd')]['noop'](util[_0xfb1e('0x26')](_0xfb1e('0x109'),_0x1aabd7['goalname']));};AGIVertices['prototype']['awspolly']=function(_0x400d0b){logger[_0xfb1e('0x2d')](util[_0xfb1e('0x26')]('[AGI]\x20Enter\x20in\x20AWSPOLLY\x20(%s)\x20block',_0x400d0b['label']));if(!this[_0xfb1e('0x7c')](_0x400d0b[_0xfb1e('0x82')])||!this[_0xfb1e('0x7c')](_0x400d0b[_0xfb1e('0x7e')])){return this[_0xfb1e('0xd')][_0xfb1e('0x9d')](_0xfb1e('0x10a'));}if(!this[_0xfb1e('0x7c')](_0x400d0b['text'])){return this[_0xfb1e('0xd')]['noop']('no\x20text\x20configured');}this[_0xfb1e('0xd')][_0xfb1e('0x9d')](util[_0xfb1e('0x26')](_0xfb1e('0x10b'),_0x400d0b[_0xfb1e('0x57')]));var _0x21ccf8=this[_0xfb1e('0x10c')][_0xfb1e('0x6a')](this,_0x400d0b);if(_0x21ccf8){this[_0xfb1e('0xd')]['noop'](util[_0xfb1e('0x26')](_0xfb1e('0x10d'),_0x21ccf8));var _0x3f1c08=this[_0xfb1e('0xd')][_0xfb1e('0xec')](_0x21ccf8);try{fs[_0xfb1e('0xed')](_0x21ccf8+_0xfb1e('0xee'));}catch(_0x1a5984){logger[_0xfb1e('0x2a')](_0x1a5984);}return _0x3f1c08;}return this[_0xfb1e('0xd')]['error'](_0x400d0b,_0xfb1e('0x10e'));};AGIVertices[_0xfb1e('0xf')][_0xfb1e('0x10f')]=function(_0x28aaf4){logger[_0xfb1e('0x2d')](util['format'](_0xfb1e('0x110'),_0x28aaf4[_0xfb1e('0xa0')]));if(!this[_0xfb1e('0x7c')](_0x28aaf4[_0xfb1e('0x82')])||!this[_0xfb1e('0x7c')](_0x28aaf4['aws_secret_access_key'])){return this[_0xfb1e('0xd')][_0xfb1e('0x9d')](_0xfb1e('0x10a'));}if(!this['isConfigured'](_0x28aaf4['aws_bot_name'])){return this['channel'][_0xfb1e('0x9d')](_0xfb1e('0x111'));}if(!this['isConfigured'](_0x28aaf4[_0xfb1e('0x57')])){return this[_0xfb1e('0xd')][_0xfb1e('0x9d')](_0xfb1e('0x9e'));}this['channel'][_0xfb1e('0xdc')]=!![];this[_0xfb1e('0x35')](_0x28aaf4);this[_0xfb1e('0x40')](_0x28aaf4[_0xfb1e('0x57')],'in');this[_0xfb1e('0xd')]['noop'](util[_0xfb1e('0x26')](_0xfb1e('0x112'),_0x28aaf4[_0xfb1e('0x57')]));var _0x5c03a1=this['awsLex'][_0xfb1e('0x6a')](this,_0x28aaf4);if(_0x5c03a1){for(var _0x25eba9 in _0x5c03a1){if(_0x5c03a1['hasOwnProperty'](_0x25eba9)&&_[_0xfb1e('0x8b')](_0x5c03a1[_0x25eba9])){this[_0xfb1e('0xd')]['setVariable'](util['format'](_0xfb1e('0x113'),_0x25eba9['toUpperCase']()),_0x5c03a1[_0x25eba9]);}}if(_[_0xfb1e('0x43')](_0x5c03a1[_0xfb1e('0x72')])){return this[_0xfb1e('0xd')][_0xfb1e('0x9d')](_0xfb1e('0x114'));}else{this[_0xfb1e('0x40')](_0x5c03a1[_0xfb1e('0x72')],'out');return this[_0xfb1e('0xd')][_0xfb1e('0x9d')](util[_0xfb1e('0x26')]('Amazon\x20Lex\x20Result\x20%s',_0x5c03a1[_0xfb1e('0x72')]));}}return this[_0xfb1e('0xd')][_0xfb1e('0x2a')](_0x28aaf4,_0xfb1e('0x115'));};AGIVertices[_0xfb1e('0xf')]['googleasr']=function(_0x3c902b){logger['info'](util[_0xfb1e('0x26')](_0xfb1e('0x116'),_0x3c902b[_0xfb1e('0xa0')],_0x3c902b[_0xfb1e('0x5f')]));if(!this['isConfigured'](_0x3c902b[_0xfb1e('0x76')])){return this[_0xfb1e('0xd')][_0xfb1e('0x9d')](_0xfb1e('0xdb'));}var _0x38f9cf=_0xfb1e('0x117');var _0x4b173d=util['format'](_0xfb1e('0x118'),FILES_PATH,rs[_0xfb1e('0x101')](0x4));var _0x1cb430=util[_0xfb1e('0x26')](_0xfb1e('0x91'),_0x4b173d,_0x38f9cf);var _0x3e3aa5=!![];if(_0x3c902b['beep']==='NOBEEP'){_0x3e3aa5=![];}var _0x4caeab=this['channel'][_0xfb1e('0x119')](_0x4b173d,_0x38f9cf,_0x3c902b[_0xfb1e('0x11a')],_0x3c902b[_0xfb1e('0x5f')],undefined,_0x3e3aa5);if(_0x4caeab[_0xfb1e('0x98')]!==-0x1){this[_0xfb1e('0xd')][_0xfb1e('0x9d')](util[_0xfb1e('0x26')](_0xfb1e('0x11b'),_0x1cb430));var _0x361abc=this[_0xfb1e('0x85')][_0xfb1e('0x6a')](this,_0x3c902b,_0x1cb430);if(_0x361abc){for(var _0x5cc6d0 in _0x361abc){if(_0x361abc[_0xfb1e('0x8a')](_0x5cc6d0)){this['channel'][_0xfb1e('0x93')](util['format'](_0xfb1e('0x11c'),_0x5cc6d0[_0xfb1e('0x63')]()),_0x361abc[_0x5cc6d0]);}}return this[_0xfb1e('0xd')]['noop'](util[_0xfb1e('0x26')](_0xfb1e('0x11d'),JSON[_0xfb1e('0x6f')](_0x361abc)));}}return _0x4caeab;};AGIVertices[_0xfb1e('0xf')][_0xfb1e('0x11e')]=function(_0x4fae73){logger[_0xfb1e('0x2d')](util['format'](_0xfb1e('0x11f'),_0x4fae73[_0xfb1e('0xa0')]));if(!this['isConfigured'](_0x4fae73[_0xfb1e('0x87')])){return this[_0xfb1e('0xd')][_0xfb1e('0x9d')](_0xfb1e('0x120'));}if(!this[_0xfb1e('0x7c')](_0x4fae73['appsecret'])){return this['channel'][_0xfb1e('0x9d')](_0xfb1e('0x121'));}var _0x336c3b=_0xfb1e('0x117');var _0x713a5e=util[_0xfb1e('0x26')](_0xfb1e('0x118'),FILES_PATH,rs[_0xfb1e('0x101')](0x4));var _0x53b0e1=util[_0xfb1e('0x26')](_0xfb1e('0x91'),_0x713a5e,_0x336c3b);var _0x4fa796=!![];if(_0x4fae73[_0xfb1e('0x122')]==='NOBEEP'){_0x4fa796=![];}var _0x34a1c4=this[_0xfb1e('0xd')]['recordFile'](_0x713a5e,_0x336c3b,_0x4fae73[_0xfb1e('0x11a')],_0x4fae73[_0xfb1e('0x5f')],undefined,_0x4fa796);if(_0x34a1c4['result']!==-0x1){this[_0xfb1e('0xd')][_0xfb1e('0x9d')](util[_0xfb1e('0x26')](_0xfb1e('0x123'),_0x53b0e1));var _0x3e6c37=this['tildeASR']['sync'](this,_0x4fae73,_0x53b0e1);if(_0x3e6c37){for(var _0x247695 in _0x3e6c37){if(_0x3e6c37[_0xfb1e('0x8a')](_0x247695)){this['channel'][_0xfb1e('0x93')](util['format'](_0xfb1e('0x124'),_0x247695[_0xfb1e('0x63')]()),_0x3e6c37[_0x247695]);}}return this[_0xfb1e('0xd')]['noop'](util['format'](_0xfb1e('0x125'),JSON[_0xfb1e('0x6f')](_0x3e6c37)));}}return _0x34a1c4;};AGIVertices[_0xfb1e('0xf')][_0xfb1e('0x126')]=function(_0x2bca32){logger['info'](util[_0xfb1e('0x26')]('Enter\x20in\x20GOTO\x20(%s)\x20block',_0x2bca32['label']));return this[_0xfb1e('0xd')][_0xfb1e('0x127')](_0x2bca32[_0xfb1e('0x3b')],_0x2bca32[_0xfb1e('0x3c')],_0x2bca32['priority']);};AGIVertices[_0xfb1e('0xf')]['gotoif']=function(_0x5e9c10){logger[_0xfb1e('0x2d')](util[_0xfb1e('0x26')]('Enter\x20in\x20GOTOIF\x20(%s)\x20block',_0x5e9c10['label']));if(!this[_0xfb1e('0x7c')](_0x5e9c10[_0xfb1e('0x128')])){return this[_0xfb1e('0xd')][_0xfb1e('0x2a')](_0x5e9c10,_0xfb1e('0x129'));}try{var _0x21ac84=eval(_0x5e9c10['condition'])?_0xfb1e('0x12a'):'false';this[_0xfb1e('0xd')][_0xfb1e('0x9d')](util[_0xfb1e('0x26')](_0xfb1e('0x12b'),_0x5e9c10[_0xfb1e('0x128')],_0x21ac84));return{'code':0xc8,'result':_0x21ac84};}catch(_0x4d1682){return{'code':0xc8,'result':_0xfb1e('0x12c')};}};AGIVertices[_0xfb1e('0xf')][_0xfb1e('0x12d')]=function(_0x3c0ef0){logger[_0xfb1e('0x2d')](util[_0xfb1e('0x26')](_0xfb1e('0x12e'),_0x3c0ef0[_0xfb1e('0xa0')]));if(!this['isConfigured'](_0x3c0ef0[_0xfb1e('0x12f')])){return this[_0xfb1e('0xd')]['error'](_0x3c0ef0,_0xfb1e('0x130'));}var _0x40132f=this[_0xfb1e('0x22')]['sync'](this,_0x3c0ef0[_0xfb1e('0x12f')]);if(!_0x40132f){return this['channel'][_0xfb1e('0x2a')](_0x3c0ef0,_0xfb1e('0x131'));}for(var _0x678745=0x0;_0x678745<_0x40132f[_0xfb1e('0x90')];_0x678745+=0x1){var _0x2c3c0f=this[_0xfb1e('0xd')][_0xfb1e('0x10')](util[_0xfb1e('0x26')](_0xfb1e('0x132'),_0x40132f[_0x678745]));if(_0x2c3c0f[_0xfb1e('0x98')]===-0x1){return _0x2c3c0f;}logger[_0xfb1e('0x2d')](util[_0xfb1e('0x26')](_0xfb1e('0x133'),_0x40132f[_0x678745],_0x2c3c0f['extra']));if(_0x2c3c0f[_0xfb1e('0x95')]==='true'){logger[_0xfb1e('0x2d')](util[_0xfb1e('0x26')](_0xfb1e('0x133'),_0x40132f[_0x678745],_0xfb1e('0x12a')));this[_0xfb1e('0xd')][_0xfb1e('0x9d')](util[_0xfb1e('0x26')](_0xfb1e('0x133'),_0x40132f[_0x678745],'true'));return{'code':0xc8,'result':'true'};}else{logger['info'](util[_0xfb1e('0x26')](_0xfb1e('0x133'),_0x40132f[_0x678745],_0xfb1e('0x12c')));this[_0xfb1e('0xd')][_0xfb1e('0x9d')](util['format'](_0xfb1e('0x133'),_0x40132f[_0x678745],_0xfb1e('0x12c')));}}return{'code':0xc8,'result':_0xfb1e('0x12c')};};AGIVertices[_0xfb1e('0xf')][_0xfb1e('0x134')]=function(_0x4b29ae){logger[_0xfb1e('0x2d')](util['format'](_0xfb1e('0x135'),_0x4b29ae['label']));return this[_0xfb1e('0xd')][_0xfb1e('0x134')]();};AGIVertices[_0xfb1e('0xf')]['ispeechasr']=function(_0x47c3f6){logger[_0xfb1e('0x2d')](util[_0xfb1e('0x26')](_0xfb1e('0x136'),_0x47c3f6['label']));if(!this[_0xfb1e('0x7c')](_0x47c3f6[_0xfb1e('0x76')])){return this[_0xfb1e('0xd')][_0xfb1e('0x9d')](_0xfb1e('0xdb'));}var _0x5ba341=_0xfb1e('0x117');var _0x39ed28=util[_0xfb1e('0x26')]('%s/recordings/%s',FILES_PATH,rs[_0xfb1e('0x101')](0x4));var _0x423539=util['format'](_0xfb1e('0x91'),_0x39ed28,_0x5ba341);var _0x520dc6=!![];if(_0x47c3f6[_0xfb1e('0x122')]===_0xfb1e('0x137')){_0x520dc6=![];}var _0x57feba=this['channel'][_0xfb1e('0x119')](_0x39ed28,_0x5ba341,_0x47c3f6[_0xfb1e('0x11a')],_0x47c3f6['timeout'],undefined,_0x520dc6);if(_0x57feba[_0xfb1e('0x98')]!==-0x1){this[_0xfb1e('0xd')][_0xfb1e('0x9d')](util[_0xfb1e('0x26')](_0xfb1e('0x138'),_0x423539));var _0x1e19fd=this[_0xfb1e('0x7b')]['sync'](this,_0x47c3f6,_0x423539);if(_0x1e19fd){for(var _0x37d402 in _0x1e19fd){if(_0x1e19fd[_0xfb1e('0x8a')](_0x37d402)){this['channel'][_0xfb1e('0x93')](util[_0xfb1e('0x26')](_0xfb1e('0x139'),_0x37d402['toUpperCase']()),_0x1e19fd[_0x37d402]);}}return this[_0xfb1e('0xd')][_0xfb1e('0x9d')](util[_0xfb1e('0x26')](_0xfb1e('0x13a'),JSON[_0xfb1e('0x6f')](_0x1e19fd)));}}return _0x57feba;};AGIVertices['prototype']['ispeechtts']=function(_0x6181f5){logger[_0xfb1e('0x2d')](util[_0xfb1e('0x26')]('Enter\x20in\x20ISPEECHTTS\x20(%s)\x20block',_0x6181f5['label']));if(!this[_0xfb1e('0x7c')](_0x6181f5[_0xfb1e('0x76')])){return this[_0xfb1e('0xd')][_0xfb1e('0x9d')]('no\x20key\x20configured');}if(!this['isConfigured'](_0x6181f5['text'])){return this[_0xfb1e('0xd')]['noop'](_0xfb1e('0x9e'));}this[_0xfb1e('0xd')][_0xfb1e('0x9d')](util[_0xfb1e('0x26')]('Trying\x20ispeech\x20TTS\x20%s',_0x6181f5['text']));var _0x448156=this[_0xfb1e('0x78')]['sync'](this,_0x6181f5);if(_0x448156){this[_0xfb1e('0xd')][_0xfb1e('0x9d')](util[_0xfb1e('0x26')](_0xfb1e('0x138'),_0x448156));var _0x3d5138=this[_0xfb1e('0xd')][_0xfb1e('0xec')](_0x448156,_0x6181f5[_0xfb1e('0x11a')]);try{fs['unlink'](_0x448156+_0xfb1e('0xee'));}catch(_0x5e764b){logger['error'](_0x5e764b);}return _0x3d5138;}return this[_0xfb1e('0xd')]['error'](_0x6181f5,_0xfb1e('0x13b'));};AGIVertices[_0xfb1e('0xf')]['login']=function(_0x4fafb1){logger['info'](util['format'](_0xfb1e('0x13c'),_0x4fafb1[_0xfb1e('0xa0')]));if(!this[_0xfb1e('0x7c')](_0x4fafb1[_0xfb1e('0x13d')])){return this['channel'][_0xfb1e('0x2a')](_0x4fafb1,_0xfb1e('0x13e'));}logger[_0xfb1e('0x2d')](util[_0xfb1e('0x26')]('FIND\x20AGENT\x20%s\x20BY\x20%s',this[_0xfb1e('0xd')][_0xfb1e('0x3a')],_0x4fafb1[_0xfb1e('0x13d')]));var _0x5b6c97=this[_0xfb1e('0x50')][_0xfb1e('0x6a')](this,_0x4fafb1[_0xfb1e('0x13d')]);if(_0x5b6c97){logger['info'](util[_0xfb1e('0x26')]('AGENT\x20%s\x20FOUND\x20BY',this[_0xfb1e('0xd')][_0xfb1e('0x3a')],_0x4fafb1[_0xfb1e('0x13d')]));this[_0xfb1e('0xd')][_0xfb1e('0x9d')](util[_0xfb1e('0x26')](_0xfb1e('0x13f'),this[_0xfb1e('0xd')][_0xfb1e('0x3a')],_0x4fafb1['findBy']));return{'code':0xc8,'result':_0xfb1e('0x140')};}else{logger['info'](util[_0xfb1e('0x26')](_0xfb1e('0x141'),this[_0xfb1e('0xd')][_0xfb1e('0x3a')],_0x4fafb1['findBy']));this[_0xfb1e('0xd')][_0xfb1e('0x9d')](util[_0xfb1e('0x26')](_0xfb1e('0x141'),this['channel'][_0xfb1e('0x3a')],_0x4fafb1[_0xfb1e('0x13d')]));return{'code':0xc8,'result':_0xfb1e('0x142')};}};AGIVertices[_0xfb1e('0xf')]['logout']=function(_0x31e17a){logger[_0xfb1e('0x2d')](util[_0xfb1e('0x26')]('Enter\x20in\x20LOGOUT\x20(%s)\x20block',_0x31e17a['label']));if(!this[_0xfb1e('0x7c')](_0x31e17a['findBy'])){return this[_0xfb1e('0xd')]['error'](_0x31e17a,_0xfb1e('0x13e'));}logger['info'](util['format'](_0xfb1e('0x143'),this[_0xfb1e('0xd')]['callerid'],_0x31e17a['findBy']));var _0x2554cf=this[_0xfb1e('0x4e')]['sync'](this,_0x31e17a[_0xfb1e('0x13d')]);if(_0x2554cf){logger[_0xfb1e('0x2d')](util[_0xfb1e('0x26')](_0xfb1e('0x13f'),this[_0xfb1e('0xd')][_0xfb1e('0x3a')],_0x31e17a[_0xfb1e('0x13d')]));this[_0xfb1e('0xd')][_0xfb1e('0x9d')](util[_0xfb1e('0x26')](_0xfb1e('0x13f'),this['channel']['callerid'],_0x31e17a[_0xfb1e('0x13d')]));return{'code':0xc8,'result':_0xfb1e('0x140')};}else{logger[_0xfb1e('0x2d')](util['format']('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this[_0xfb1e('0xd')][_0xfb1e('0x3a')],_0x31e17a[_0xfb1e('0x13d')]));this[_0xfb1e('0xd')][_0xfb1e('0x9d')](util['format'](_0xfb1e('0x141'),this[_0xfb1e('0xd')][_0xfb1e('0x3a')],_0x31e17a['findBy']));return{'code':0xc8,'result':_0xfb1e('0x142')};}};AGIVertices[_0xfb1e('0xf')][_0xfb1e('0x144')]=function(_0x1686cc){logger[_0xfb1e('0x2d')](util[_0xfb1e('0x26')]('Enter\x20in\x20MATH\x20(%s)\x20block',_0x1686cc['label']));if(!this['isConfigured'](_0x1686cc['operation'])){return this['channel'][_0xfb1e('0x2a')](_0x1686cc,_0xfb1e('0x145'));}this[_0xfb1e('0xd')]['noop'](util[_0xfb1e('0x26')](_0xfb1e('0x146'),_0x1686cc[_0xfb1e('0x147')]));var _0x15c23a=eval(_0x1686cc['operation']);if(!this[_0xfb1e('0x7c')](_0x1686cc['variable_id'])){return this[_0xfb1e('0xd')]['noop'](_0xfb1e('0xca'));}var _0x30d4c0=this[_0xfb1e('0x10')][_0xfb1e('0x6a')](this,_0x1686cc[_0xfb1e('0xc9')]);if(!_0x30d4c0){return this[_0xfb1e('0xd')][_0xfb1e('0x2a')](_0x1686cc,'no\x20variable\x20found');}if(_['isArray'](_0x15c23a)){var _0x510490=this;_0x15c23a[_0xfb1e('0xcc')](function(_0x4cea41,_0x1b2275){_0x510490[_0xfb1e('0xd')][_0xfb1e('0x93')](util[_0xfb1e('0x26')](_0xfb1e('0x148'),_0x30d4c0,_0x1b2275),_0x4cea41);});return this[_0xfb1e('0xd')][_0xfb1e('0x9d')](util[_0xfb1e('0x26')](_0xfb1e('0x149'),_0x30d4c0));}else{return this[_0xfb1e('0xd')][_0xfb1e('0x93')](_0x30d4c0,_0x15c23a);}};AGIVertices[_0xfb1e('0xf')]['menu']=function(_0xd9af65){logger[_0xfb1e('0x2d')](util['format'](_0xfb1e('0x14a'),_0xd9af65[_0xfb1e('0xa0')]));if(_0xd9af65[_0xfb1e('0x9b')]===0x0){return this['maxRetry'](_0xd9af65);}_0xd9af65[_0xfb1e('0x9b')]-=0x1;if(!this['isConfigured'](_0xd9af65['file_id'])){return this['channel'][_0xfb1e('0x2a')](_0xd9af65,_0xfb1e('0x14b'));}var _0x1ad92f=this[_0xfb1e('0x1c')][_0xfb1e('0x6a')](this,_0xd9af65[_0xfb1e('0xfc')]);if(!_0x1ad92f){return this['channel'][_0xfb1e('0x2a')](_0xd9af65,_0xfb1e('0x14c'));}var _0x1cbf20=this[_0xfb1e('0xd')][_0xfb1e('0x14d')](_0x1ad92f,_0xd9af65[_0xfb1e('0xfd')],_0xd9af65[_0xfb1e('0x14e')]);var _0x115d6c=_0x1cbf20[_0xfb1e('0x98')];if(_0x1cbf20[_0xfb1e('0x98')]===-0x1){this[_0xfb1e('0x35')][_0xfb1e('0x6a')](this,_0xd9af65,'-1');return _0x1cbf20;}else if(_0x1cbf20[_0xfb1e('0x95')]===_0xfb1e('0x5f')){_0x1cbf20[_0xfb1e('0x98')]=_0x1cbf20[_0xfb1e('0x98')][_0xfb1e('0x90')]>0x0?_0x1cbf20[_0xfb1e('0x98')]:'t';}else if(_[_0xfb1e('0x42')](_0x1cbf20[_0xfb1e('0x98')])){_0x1cbf20[_0xfb1e('0x98')]='#';_0x115d6c='#';}if(!this['isConfigured'](_0xd9af65[_0xfb1e('0xc9')])){this[_0xfb1e('0xd')][_0xfb1e('0x9d')](_0xfb1e('0xca'));}else{var _0x302393=this[_0xfb1e('0x10')][_0xfb1e('0x6a')](this,_0xd9af65[_0xfb1e('0xc9')]);if(!_0x302393){return this[_0xfb1e('0xd')][_0xfb1e('0x2a')](_0xd9af65,_0xfb1e('0xcb'));}this[_0xfb1e('0xd')][_0xfb1e('0x93')](_0x302393,_0x115d6c);}this[_0xfb1e('0x35')][_0xfb1e('0x6a')](this,_0xd9af65,_0x115d6c);return _0x1cbf20;};AGIVertices[_0xfb1e('0xf')][_0xfb1e('0x9d')]=function(_0x2422ef){logger[_0xfb1e('0x2d')](util['format'](_0xfb1e('0x14f'),_0x2422ef[_0xfb1e('0xa0')]));return this['channel'][_0xfb1e('0x9d')](_0x2422ef[_0xfb1e('0x150')]||_0x2422ef['label']);};AGIVertices[_0xfb1e('0xf')][_0xfb1e('0x151')]=function(_0x473c87){logger[_0xfb1e('0x2d')](util[_0xfb1e('0x26')](_0xfb1e('0x152'),_0x473c87[_0xfb1e('0xa0')]));if(!this[_0xfb1e('0x7c')](_0x473c87['findBy'])){return this[_0xfb1e('0xd')][_0xfb1e('0x2a')](_0x473c87,'no\x20find\x20by\x20configured');}logger[_0xfb1e('0x2d')](util[_0xfb1e('0x26')](_0xfb1e('0x143'),this[_0xfb1e('0xd')][_0xfb1e('0x3a')],_0x473c87[_0xfb1e('0x13d')]));var _0x3f182f=this[_0xfb1e('0x49')][_0xfb1e('0x6a')](this,_0x473c87['pause_id']);var _0x1bd589=this[_0xfb1e('0x4b')][_0xfb1e('0x6a')](this,_0x473c87['findBy'],_0x3f182f);if(_0x1bd589){logger['info'](util[_0xfb1e('0x26')](_0xfb1e('0x13f'),this[_0xfb1e('0xd')]['callerid'],_0x473c87['findBy']));this[_0xfb1e('0xd')][_0xfb1e('0x9d')](util[_0xfb1e('0x26')]('AGENT\x20%s\x20FOUND\x20BY',this[_0xfb1e('0xd')]['callerid'],_0x473c87['findBy']));return{'code':0xc8,'result':_0xfb1e('0x140')};}else{logger[_0xfb1e('0x2d')](util['format']('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this[_0xfb1e('0xd')]['callerid'],_0x473c87[_0xfb1e('0x13d')]));this[_0xfb1e('0xd')][_0xfb1e('0x9d')](util[_0xfb1e('0x26')]('AGENT\x20%s\x20FOUND\x20BY',this[_0xfb1e('0xd')][_0xfb1e('0x3a')],_0x473c87[_0xfb1e('0x13d')]));return{'code':0xc8,'result':_0xfb1e('0x142')};}};AGIVertices[_0xfb1e('0xf')][_0xfb1e('0x153')]=function(_0x245381){logger[_0xfb1e('0x2d')](util['format'](_0xfb1e('0x154'),_0x245381[_0xfb1e('0xa0')]));if(!this[_0xfb1e('0x7c')](_0x245381[_0xfb1e('0xfc')])){return this['channel']['error'](_0x245381,_0xfb1e('0x14b'));}var _0x514a32=this[_0xfb1e('0x1c')][_0xfb1e('0x6a')](this,_0x245381[_0xfb1e('0xfc')]);if(!_0x514a32){return this[_0xfb1e('0xd')]['error'](_0x245381,_0xfb1e('0x14c'));}var _0x1fbf21=this[_0xfb1e('0xd')][_0xfb1e('0x52')](_0xfb1e('0x155'),[_0x514a32,_0x245381['opts']]);if(_0x1fbf21[_0xfb1e('0x98')]===-0x1){return _0x1fbf21;}return this['channel'][_0xfb1e('0x9d')](util[_0xfb1e('0x26')](_0xfb1e('0xb7'),_0xfb1e('0x155'),_0x514a32));};AGIVertices[_0xfb1e('0xf')][_0xfb1e('0x156')]=function(_0x1a4123){logger[_0xfb1e('0x2d')](util['format']('Enter\x20in\x20QUEUE\x20(%s)\x20block',_0x1a4123[_0xfb1e('0xa0')]));if(!this[_0xfb1e('0x7c')](_0x1a4123[_0xfb1e('0x157')])){return this[_0xfb1e('0xd')][_0xfb1e('0x2a')](_0x1a4123,_0xfb1e('0x158'));}var _0x3855ce='';var _0x295eab=parseInt(_0x1a4123['queue_id'],0xa);if(isNaN(_0x295eab)){_0x3855ce=_0x1a4123[_0xfb1e('0x157')];}else{_0x3855ce=this['getVoiceQueue'][_0xfb1e('0x6a')](this,_0x1a4123[_0xfb1e('0x157')]);if(!_0x3855ce){return this[_0xfb1e('0xd')][_0xfb1e('0x2a')](_0x1a4123,_0xfb1e('0x159'));}}var _0xa0041='';if(this[_0xfb1e('0x7c')](_0x1a4123[_0xfb1e('0xfc')])){var _0x4b9908=this[_0xfb1e('0x1c')]['sync'](this,_0x1a4123[_0xfb1e('0xfc')]);if(_0x4b9908){_0xa0041=_0x4b9908;}}this[_0xfb1e('0x35')][_0xfb1e('0x6a')](this,_0x1a4123,_0x3855ce);if(_0x1a4123[_0xfb1e('0xf8')][_0xfb1e('0x15a')]('x')<0x0){_0x1a4123[_0xfb1e('0xf8')]+='x';}if(_0x1a4123['opts'][_0xfb1e('0x15a')]('X')<0x0){_0x1a4123[_0xfb1e('0xf8')]+='X';}this['channel'][_0xfb1e('0x93')](_0xfb1e('0x15b'),_0x3855ce?_0x3855ce[_0xfb1e('0x15c')]():'');var _0x14d583=this[_0xfb1e('0xd')][_0xfb1e('0x52')](_0xfb1e('0x15d'),[_0x3855ce,_0x1a4123['opts'],_0x1a4123['url'],_0xa0041,_0x1a4123[_0xfb1e('0x5f')],_0x1a4123[_0xfb1e('0x6')],_0x1a4123[_0xfb1e('0x15e')],_0x1a4123[_0xfb1e('0x15f')],'',_0x1a4123['position']]);if(_0x14d583[_0xfb1e('0x98')]===-0x1){return _0x14d583;}return this[_0xfb1e('0xd')][_0xfb1e('0x9d')](util[_0xfb1e('0x26')]('Executed\x20command\x20%s\x20%s',_0xfb1e('0x15d'),_0x3855ce));};AGIVertices[_0xfb1e('0xf')][_0xfb1e('0x160')]=function(_0xdafc8c){logger[_0xfb1e('0x2d')](util[_0xfb1e('0x26')]('Enter\x20in\x20RECORD\x20(%s)\x20block',_0xdafc8c['label']));var _0x1fc873=_0xdafc8c[_0xfb1e('0x161')]||'wav';var _0x1c5480=util[_0xfb1e('0x26')](_0xfb1e('0x162'),this[_0xfb1e('0xd')][_0xfb1e('0x39')],rs[_0xfb1e('0x101')](0x5));var _0x3077b7=util['format'](_0xfb1e('0x163'),FILES_PATH,_0x1c5480,_0x1fc873);var _0x180dc0=util['format'](_0xfb1e('0x118'),FILES_PATH,_0x1c5480);this[_0xfb1e('0x38')][_0xfb1e('0x6a')](this,_0xdafc8c,_0x1c5480,_0x3077b7);this[_0xfb1e('0xd')]['setVariable'](_0xfb1e('0x164'),_0x1c5480);logger[_0xfb1e('0x2d')](_0xfb1e('0x165'),_0x180dc0,_0x1fc873,_0xdafc8c['escape_digits'],_0xdafc8c[_0xfb1e('0x5f')]);return this['channel'][_0xfb1e('0x119')](_0x180dc0,_0x1fc873,_0xdafc8c[_0xfb1e('0x166')],_0xdafc8c['timeout'],undefined,!![]);};AGIVertices[_0xfb1e('0xf')][_0xfb1e('0x167')]=function(_0xe229f4){logger[_0xfb1e('0x2d')](util['format'](_0xfb1e('0x168'),_0xe229f4[_0xfb1e('0xa0')]));if(!this[_0xfb1e('0x7c')](_0xe229f4['url'])){return this[_0xfb1e('0xd')][_0xfb1e('0x9d')](_0xfb1e('0x169'));}var _0x3b4055=this[_0xfb1e('0x5d')][_0xfb1e('0x6a')](this,_0xe229f4);logger[_0xfb1e('0x2d')](util[_0xfb1e('0x26')](_0xfb1e('0x16a'),util[_0xfb1e('0x16b')](_0x3b4055,{'showHidden':![],'depth':null})));if(!this[_0xfb1e('0x7c')](_0xe229f4[_0xfb1e('0xc9')])){return this[_0xfb1e('0xd')][_0xfb1e('0x9d')](_0xfb1e('0x16c'));}var _0x532bfc=this[_0xfb1e('0x10')][_0xfb1e('0x6a')](this,_0xe229f4[_0xfb1e('0xc9')]);if(!_0x532bfc){return this[_0xfb1e('0xd')][_0xfb1e('0x2a')](_0xe229f4,'no\x20variable\x20found');}this['channel'][_0xfb1e('0x93')](util[_0xfb1e('0x26')]('%s_STATUS_CODE',_0x532bfc),_0x3b4055[_0xfb1e('0x70')]?_0x3b4055[_0xfb1e('0x70')]:_0xfb1e('0x16d'));this[_0xfb1e('0xd')][_0xfb1e('0x93')](util[_0xfb1e('0x26')](_0xfb1e('0x16e'),_0x532bfc),_0x3b4055['statusMessage']?_0x3b4055[_0xfb1e('0x71')]:'OK');if(_0x3b4055[_0xfb1e('0x64')]){try{this['saveRestApiResult'](_0x3b4055[_0xfb1e('0x64')],_0x532bfc);}catch(_0x460c46){logger[_0xfb1e('0x2a')](util[_0xfb1e('0x26')](_0xfb1e('0x16f'),_0x532bfc));}}return this[_0xfb1e('0xd')][_0xfb1e('0x9d')](util[_0xfb1e('0x26')]('variable\x20%s\x20set',_0x532bfc));};AGIVertices[_0xfb1e('0xf')][_0xfb1e('0x170')]=function(_0x114645){logger[_0xfb1e('0x2d')](util[_0xfb1e('0x26')]('Enter\x20in\x20SAYDIGITS\x20(%s)\x20block',_0x114645[_0xfb1e('0xa0')]));return this['channel']['sayDigits'](_0x114645['digits'][_0xfb1e('0x54')](/\s+/g,''),_0x114645['escape_digits']);};AGIVertices[_0xfb1e('0xf')]['saynumber']=function(_0x578d42){logger[_0xfb1e('0x2d')](util[_0xfb1e('0x26')](_0xfb1e('0x171'),_0x578d42[_0xfb1e('0xa0')]));return this[_0xfb1e('0xd')][_0xfb1e('0x172')](_0x578d42['number']['replace'](/\s+/g,''),_0x578d42[_0xfb1e('0x166')]);};AGIVertices[_0xfb1e('0xf')][_0xfb1e('0x173')]=function(_0x15a1d3){logger[_0xfb1e('0x2d')](util[_0xfb1e('0x26')](_0xfb1e('0x174'),_0x15a1d3[_0xfb1e('0xa0')]));return this['channel'][_0xfb1e('0x175')](_0x15a1d3[_0xfb1e('0x57')],_0x15a1d3[_0xfb1e('0x166')]);};AGIVertices[_0xfb1e('0xf')][_0xfb1e('0x176')]=function(_0x2414f8){logger[_0xfb1e('0x2d')](util[_0xfb1e('0x26')]('Enter\x20in\x20SENDMAIL\x20(%s)\x20block',_0x2414f8['label']));if(!this[_0xfb1e('0x7c')](_0x2414f8[_0xfb1e('0x177')])){return this[_0xfb1e('0xd')][_0xfb1e('0x9d')](_0xfb1e('0x178'));}var _0xf2c146=this['getMailAccount'][_0xfb1e('0x6a')](this,_0x2414f8[_0xfb1e('0x177')]);if(!_0xf2c146||!_0xf2c146[_0xfb1e('0x179')]){return this[_0xfb1e('0xd')][_0xfb1e('0x2a')](_0x2414f8,_0xfb1e('0x17a'));}var _0x2bf761={'from':util[_0xfb1e('0x26')]('\x22%s\x22\x20<%s>',_0xf2c146[_0xfb1e('0x11')],_0xf2c146[_0xfb1e('0x17b')]||_0xf2c146[_0xfb1e('0x179')][_0xfb1e('0x17c')]),'to':_0x2414f8['to']||'','cc':_0x2414f8['cc']||'','bcc':_0x2414f8[_0xfb1e('0x17d')]||'','subject':_0x2414f8['subject'],'html':_0x2414f8[_0xfb1e('0x57')],'text':_0x2414f8[_0xfb1e('0x57')]};var _0x53ed5f={'tls':{'rejectUnauthorized':![]}};if(_0xf2c146[_0xfb1e('0x179')][_0xfb1e('0x17e')]){_0x53ed5f[_0xfb1e('0x17e')]=_0xf2c146['Smtp']['service'];}else{_0x53ed5f[_0xfb1e('0x17f')]=_0xf2c146[_0xfb1e('0x179')][_0xfb1e('0x17f')];_0x53ed5f[_0xfb1e('0x180')]=_0xf2c146[_0xfb1e('0x179')]['port'];_0x53ed5f[_0xfb1e('0x181')]=_0xf2c146[_0xfb1e('0x179')][_0xfb1e('0x181')];}if(_0xf2c146[_0xfb1e('0x179')]['authentication']){_0x53ed5f['auth']={'user':_0xf2c146[_0xfb1e('0x179')]['user'],'pass':_0xf2c146['Smtp']['pass']};}if(this[_0xfb1e('0x7c')](_0x2414f8[_0xfb1e('0x182')])){}logger[_0xfb1e('0xd2')](_0xfb1e('0x183'),JSON[_0xfb1e('0x6f')](_0x2bf761));this[_0xfb1e('0x35')][_0xfb1e('0x6a')](this,_0x2414f8,_0x2414f8[_0xfb1e('0x177')]);this[_0xfb1e('0xd')][_0xfb1e('0x9d')](util[_0xfb1e('0x26')]('Trying\x20SendMail\x20with\x20account\x20%s',_0xf2c146[_0xfb1e('0x11')]));this['sendMailMessage']['sync'](this,_0x53ed5f,_0x2bf761);return this[_0xfb1e('0xd')][_0xfb1e('0x9d')](_0xfb1e('0x184'));};AGIVertices[_0xfb1e('0xf')]['sendFax']=function(_0x5a8fe){logger[_0xfb1e('0x2d')](util['format'](_0xfb1e('0x185'),_0x5a8fe[_0xfb1e('0xa0')]));return this[_0xfb1e('0xd')]['noop']('SENDFAX\x20block\x20not\x20implemented');};AGIVertices[_0xfb1e('0xf')][_0xfb1e('0x186')]=function(_0x5a9f20){logger[_0xfb1e('0x2d')](util[_0xfb1e('0x26')]('Enter\x20in\x20SENDSMS\x20(%s)\x20block',_0x5a9f20['label']));if(!this[_0xfb1e('0x7c')](_0x5a9f20[_0xfb1e('0x187')])){return this['channel'][_0xfb1e('0x9d')](_0xfb1e('0x188'));}var _0x56a1f4=this[_0xfb1e('0x32')][_0xfb1e('0x6a')](this,_0x5a9f20['sms_account_id']);if(!_0x56a1f4){return this['channel'][_0xfb1e('0x2a')](_0x5a9f20,_0xfb1e('0x189'));}var _0x7796d8={'body':_0x5a9f20['sms_text'],'phone':_0x5a9f20['to']||'','SmsAccountId':_0x56a1f4['id']};logger[_0xfb1e('0xd2')](_0xfb1e('0x18a'),JSON[_0xfb1e('0x6f')](_0x7796d8));this[_0xfb1e('0x35')][_0xfb1e('0x6a')](this,_0x5a9f20,_0x5a9f20[_0xfb1e('0x187')]);this[_0xfb1e('0xd')][_0xfb1e('0x9d')](util[_0xfb1e('0x26')](_0xfb1e('0x18b'),_0x56a1f4['name']));this[_0xfb1e('0x34')][_0xfb1e('0x6a')](this,_0x7796d8);return this[_0xfb1e('0xd')][_0xfb1e('0x9d')](_0xfb1e('0x18c'));};AGIVertices[_0xfb1e('0xf')][_0xfb1e('0x18d')]=function(_0x26dc02){logger[_0xfb1e('0x2d')](util['format']('Enter\x20in\x20SET\x20(%s)\x20block',_0x26dc02['label']));if(!this[_0xfb1e('0x7c')](_0x26dc02['variable_id'])){return this[_0xfb1e('0xd')][_0xfb1e('0x2a')](_0x26dc02,'no\x20variable\x20selected');}var _0x254664=this[_0xfb1e('0x10')][_0xfb1e('0x6a')](this,_0x26dc02[_0xfb1e('0xc9')]);if(!_0x254664){return this[_0xfb1e('0xd')]['error'](_0x26dc02,_0xfb1e('0xcb'));}return this['channel'][_0xfb1e('0x93')](_0x254664,_0x26dc02['variable_value']);};AGIVertices['prototype']['start']=function(_0x46c76c){logger[_0xfb1e('0x2d')](util[_0xfb1e('0x26')](_0xfb1e('0x18e'),_0x46c76c['label']));this['channel']['noop'](_0xfb1e('0x18f'));if(_0x46c76c[_0xfb1e('0xac')]===_0xfb1e('0x190')){this[_0xfb1e('0xd')]['noop']('Answer');return this[_0xfb1e('0xd')]['answer']();}return this[_0xfb1e('0xd')][_0xfb1e('0x9d')](_0xfb1e('0x191'));};AGIVertices[_0xfb1e('0xf')][_0xfb1e('0x192')]=function(_0x2f992c){logger[_0xfb1e('0x2d')](util[_0xfb1e('0x26')](_0xfb1e('0x193'),_0x2f992c[_0xfb1e('0xa0')]));if(!this['isConfigured'](_0x2f992c[_0xfb1e('0x194')])){return this['channel'][_0xfb1e('0x2a')](_0x2f992c,_0xfb1e('0x195'));}var _0x41a872=this['getSquareProject'][_0xfb1e('0x6a')](this,_0x2f992c[_0xfb1e('0x194')]);if(!this[_0xfb1e('0x7c')](_0x41a872)){return this[_0xfb1e('0xd')][_0xfb1e('0x2a')](_0x2f992c,util[_0xfb1e('0x26')]('no\x20subproject\x20found\x20with\x20id\x20%d',_0x2f992c[_0xfb1e('0x194')]));}if(_0x41a872===this[_0xfb1e('0xd')][_0xfb1e('0x37')]){return this[_0xfb1e('0xd')][_0xfb1e('0x2a')](_0x2f992c,'project\x20in\x20subproject\x20must\x20be\x20different\x20from\x20the\x20called\x20project');}this[_0xfb1e('0x35')][_0xfb1e('0x6a')](this,_0x2f992c,_0x41a872);var _0x3bafec=this[_0xfb1e('0xd')]['exec']('AGI',util[_0xfb1e('0x26')]('agi://%s/square,\x22%s\x22,\x22%s\x22',config[_0xfb1e('0x6')]['host']||_0xfb1e('0x196'),_0x41a872,this['channel'][_0xfb1e('0x37')]));if(_0x3bafec[_0xfb1e('0x98')]===-0x1){return _0x3bafec;}return this[_0xfb1e('0xd')][_0xfb1e('0x9d')](util['format'](_0xfb1e('0xb7'),_0xfb1e('0x197'),_0x41a872));};AGIVertices['prototype'][_0xfb1e('0x198')]=function(_0x378284){logger[_0xfb1e('0x2d')](util[_0xfb1e('0x26')](_0xfb1e('0x199'),_0x378284['label']));var _0x29a81a=this['shellCommand'][_0xfb1e('0x6a')](this,_0x378284['command']);this[_0xfb1e('0x35')]['sync'](this,_0x378284,_0x378284[_0xfb1e('0xa9')]);if(this[_0xfb1e('0x7c')](_0x378284[_0xfb1e('0xc9')])){var _0x2c5612=this[_0xfb1e('0x10')][_0xfb1e('0x6a')](this,_0x378284[_0xfb1e('0xc9')]);if(_0x2c5612){this[_0xfb1e('0xd')][_0xfb1e('0x93')](_0x2c5612,_0x29a81a);return this[_0xfb1e('0xd')]['noop'](util[_0xfb1e('0x26')](_0xfb1e('0x19a'),_0x378284[_0xfb1e('0xa9')],_0x2c5612));}}return this[_0xfb1e('0xd')]['noop'](util[_0xfb1e('0x26')](_0xfb1e('0x19b'),_0x378284[_0xfb1e('0xa9')]));};AGIVertices[_0xfb1e('0xf')][_0xfb1e('0x19c')]=function(_0x5b88ee){logger[_0xfb1e('0x2d')](util[_0xfb1e('0x26')]('Enter\x20in\x20Google\x20Cloud\x20TTS\x20(%s)\x20block',_0x5b88ee[_0xfb1e('0xa0')]));_0x5b88ee[_0xfb1e('0x57')]=_0x5b88ee[_0xfb1e('0x57')][_0xfb1e('0x54')](/(\r\n|\n|\r)/gm,'\x20');if(!this[_0xfb1e('0x7c')](_0x5b88ee[_0xfb1e('0x56')])){return this[_0xfb1e('0xd')][_0xfb1e('0x9d')](_0xfb1e('0x19d'));}if(!this[_0xfb1e('0x7c')](_0x5b88ee[_0xfb1e('0x57')])){return this[_0xfb1e('0xd')][_0xfb1e('0x9d')](_0xfb1e('0x9e'));}this['channel'][_0xfb1e('0x9d')](util[_0xfb1e('0x26')](_0xfb1e('0x19e'),_0x5b88ee['text']));var _0x190d71=this[_0xfb1e('0x55')][_0xfb1e('0x6a')](this,_0x5b88ee);if(_0x190d71){this[_0xfb1e('0xd')][_0xfb1e('0x9d')](util[_0xfb1e('0x26')]('Google\x20Cloud\x20TTS\x20%s\x20file\x20created',_0x190d71));var _0x2d9397=this[_0xfb1e('0xd')][_0xfb1e('0xec')](_0x190d71);try{fs[_0xfb1e('0xed')](_0x190d71+'.wav');}catch(_0x25f59e){logger[_0xfb1e('0x2a')](_0x25f59e);}return _0x2d9397;}return this['channel'][_0xfb1e('0x2a')](_0x5b88ee,_0xfb1e('0x19f'));};AGIVertices[_0xfb1e('0xf')]['tts']=function(_0x5a3261){logger['info'](util[_0xfb1e('0x26')](_0xfb1e('0x1a0'),_0x5a3261['label']));_0x5a3261['text']=_0x5a3261['text'][_0xfb1e('0x54')](/(\r\n|\n|\r)/gm,'\x20');if(!this[_0xfb1e('0x7c')](_0x5a3261[_0xfb1e('0x57')])){return this[_0xfb1e('0xd')][_0xfb1e('0x9d')](_0xfb1e('0x9e'));}this[_0xfb1e('0xd')][_0xfb1e('0x9d')](util[_0xfb1e('0x26')](_0xfb1e('0x1a1'),_0x5a3261[_0xfb1e('0x57')]));var _0x431dcd=this['googleTTS']['sync'](this,_0x5a3261);if(_0x431dcd){this[_0xfb1e('0xd')][_0xfb1e('0x9d')](util[_0xfb1e('0x26')]('Google\x20TTS\x20%s\x20file\x20created',_0x431dcd));var _0x483b95=this[_0xfb1e('0xd')][_0xfb1e('0xec')](_0x431dcd);try{fs[_0xfb1e('0xed')](_0x431dcd+_0xfb1e('0xee'));}catch(_0x3ab80c){logger['error'](_0x3ab80c);}return _0x483b95;}return this['channel'][_0xfb1e('0x2a')](_0x5a3261,_0xfb1e('0x1a2'));};AGIVertices['prototype'][_0xfb1e('0x1a3')]=function(_0x87f768){logger[_0xfb1e('0x2d')](util['format'](_0xfb1e('0x1a4'),_0x87f768[_0xfb1e('0xa0')]));if(!this['isConfigured'](_0x87f768[_0xfb1e('0x13d')])){return this['channel']['error'](_0x87f768,'no\x20find\x20by\x20configured');}logger['info'](util['format'](_0xfb1e('0x143'),this[_0xfb1e('0xd')][_0xfb1e('0x3a')],_0x87f768[_0xfb1e('0x13d')]));var _0x461d95=this[_0xfb1e('0x4d')]['sync'](this,_0x87f768[_0xfb1e('0x13d')]);if(_0x461d95){logger[_0xfb1e('0x2d')](util[_0xfb1e('0x26')](_0xfb1e('0x13f'),this['channel'][_0xfb1e('0x3a')],_0x87f768['findBy']));this[_0xfb1e('0xd')][_0xfb1e('0x9d')](util['format'](_0xfb1e('0x13f'),this['channel']['callerid'],_0x87f768['findBy']));return{'code':0xc8,'result':_0xfb1e('0x140')};}else{logger['info'](util[_0xfb1e('0x26')](_0xfb1e('0x141'),this[_0xfb1e('0xd')]['callerid'],_0x87f768[_0xfb1e('0x13d')]));this[_0xfb1e('0xd')][_0xfb1e('0x9d')](util[_0xfb1e('0x26')](_0xfb1e('0x141'),this[_0xfb1e('0xd')][_0xfb1e('0x3a')],_0x87f768['findBy']));return{'code':0xc8,'result':'failure'};}};AGIVertices[_0xfb1e('0xf')][_0xfb1e('0x1a5')]=function(_0x117b66){logger[_0xfb1e('0x2d')](util[_0xfb1e('0x26')](_0xfb1e('0x1a6'),_0x117b66[_0xfb1e('0xa0')]));var _0x57a55a=this[_0xfb1e('0xd')][_0xfb1e('0x52')](_0xfb1e('0x1a7'),[_0x117b66[_0xfb1e('0x1a8')],_0x117b66['options']]);if(_0x57a55a[_0xfb1e('0x98')]===-0x1){return _0x57a55a;}return this[_0xfb1e('0xd')][_0xfb1e('0x9d')](util[_0xfb1e('0x26')](_0xfb1e('0xb7'),_0xfb1e('0x1a7'),_0x117b66['mailbox']));};AGIVertices['prototype'][_0xfb1e('0x1a9')]=function(_0x78d68){logger[_0xfb1e('0x2d')](util[_0xfb1e('0x26')](_0xfb1e('0x1aa'),_0x78d68['label']));if(!this['isConfigured'](_0x78d68[_0xfb1e('0xc9')])){return this[_0xfb1e('0xd')][_0xfb1e('0x2a')](_0x78d68,_0xfb1e('0x1ab'));}var _0x2ff07a=this[_0xfb1e('0x10')][_0xfb1e('0x6a')](this,_0x78d68[_0xfb1e('0xc9')]);if(!_0x2ff07a){return this[_0xfb1e('0xd')][_0xfb1e('0x2a')](_0x78d68,'no\x20variable\x20found');}var _0x81769f=this[_0xfb1e('0xd')][_0xfb1e('0x10')](_0x2ff07a);return{'code':0xc8,'result':_0x81769f[_0xfb1e('0x95')]?_0x81769f[_0xfb1e('0x95')]:'-'};};String[_0xfb1e('0xf')][_0xfb1e('0x94')]=function(_0x520335,_0x42a70e){return this[_0xfb1e('0x1ac')](_0x520335)[_0xfb1e('0x1ad')](_0x42a70e);};module[_0xfb1e('0x1ae')]=AGIVertices;
\ No newline at end of file
+var _0x44c7=['ispeechasr','Enter\x20in\x20ISPEECHASR\x20(%s)\x20block','recordFile','ispeech\x20%s\x20file\x20created','ISPEECH_ASR_%s','IspeechASR\x20Result\x20%s','ispeechtts','Enter\x20in\x20ISPEECHTTS\x20(%s)\x20block','Trying\x20ispeech\x20TTS\x20%s','streamFile','unlink','ispeech\x20TTS\x20is\x20unreachable','login','findBy','no\x20find\x20by\x20configured','FIND\x20AGENT\x20%s\x20BY\x20%s','AGENT\x20%s\x20FOUND\x20BY','success','AGENT\x20%s\x20NOT\x20FOUND\x20BY','failure','logout','Enter\x20in\x20LOGOUT\x20(%s)\x20block','Enter\x20in\x20MATH\x20(%s)\x20block','operation','no\x20operation\x20configured','math\x20%s','%s[%s]','variable\x20%s[key]\x20set','Enter\x20in\x20MENU\x20(%s)\x20block','getSound','getData','Enter\x20in\x20NOOP\x20(%s)\x20block','output','pause','playback','Enter\x20in\x20PLAYBACK\x20(%s)\x20block','PLAYBACK','queue','Enter\x20in\x20QUEUE\x20(%s)\x20block','queue_id','no\x20queue\x20selected','no\x20queue\x20found','indexOf','XMCS-QUEUE','toLowerCase','QUEUE','macro','position','record','Enter\x20in\x20RECORD\x20(%s)\x20block','recordingFormat','%s_%s','RECORDING_SAVENAME','Recording\x20%s\x20%s\x20%s\x20%s','escape_digits','Enter\x20in\x20RESTAPI\x20(%s)\x20block','inspect','no\x20variable\x20selected\x20for\x20the\x20response','%s_STATUS_CODE','200','%s_STATUS_MESSAGE','Unable\x20to\x20set\x20result\x20in\x20variable\x20%s','variable\x20%s\x20set','saydigits','Enter\x20in\x20SAYDIGITS\x20(%s)\x20block','sayDigits','digits','sayNumber','sayphonetic','sendMail','Enter\x20in\x20SENDMAIL\x20(%s)\x20block','account_id','Smtp','no\x20mail\x20account\x20found','\x22%s\x22\x20<%s>','email','bcc','service','host','port','secure','authentication','auth','user','pass','template_id','debug','sendMail\x20message','Trying\x20SendMail\x20with\x20account\x20%s','Mail\x20message\x20added\x20to\x20outgoing\x20process','sendFax','Enter\x20in\x20SENDFAX\x20(%s)\x20block','sendSMS','Enter\x20in\x20SENDSMS\x20(%s)\x20block','sms_account_id','no\x20sms\x20account\x20found','sms_text','sendSMS\x20message','Trying\x20SendSMS\x20with\x20account\x20%s','Sms\x20message\x20added\x20to\x20outgoing\x20process','set','Enter\x20in\x20SET\x20(%s)\x20block','no\x20variable\x20selected','variable_value','Enter\x20in\x20START\x20(%s)\x20block','START\x20CALLY\x20SQUARE','yes','Answer','Skipped\x20Answer','subproject','Enter\x20in\x20SUBPROJECT\x20(%s)\x20block','project_id','no\x20subproject\x20selected','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','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','apiKey','no\x20apiKey\x20configured','Trying\x20Google\x20Cloud\x20TTS\x20%s','Google\x20Cloud\x20TTS\x20is\x20unreachable','tts','Trying\x20Google\x20TTS\x20%s','googleTTS','Google\x20TTS\x20%s\x20file\x20created','unpause','Enter\x20in\x20UNPAUSE\x20(%s)\x20block','VOICEMAIL','Enter\x20in\x20SWITCH\x20(%s)\x20block','join','exports','lodash','odbc','randomstring','moment','request-promise','../../config/logger','agi','../../config/environment','./scripts','/var/opt/motion2/server/files','rawHeaders','rawBody','menu','getdigits','getsecretdigits','channel','rpc','getVariableById','then','name','catch','prototype','getVoiceQueue','getVoiceQueueById','getSquareProject','getSquareProjectById','getSquareOdbc','getSquareOdbcById','dsn','getUserById','getTrunk','getSoundById','getSoundPath','save_name','getMailAccount','getMailAccountById','sendMailMessage','mailRpc','getIntervals','getIntervalById','IntervalId','interval','%s/sounds/converted/%s','getQueryOdbc','open','error','Error\x20getting\x20ODBC\x20connection\x20%s','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','label','arg_1','callerid','createSquareRecording','uniqueid','extension','priority','accountcode','dnid','file','createSquareMessage','createCmContact','random','lastName','isNil','phone','list_id','scheduledAt','Callback\x20scheduled\x20at\x20','toString','callback_priority','getPause','getPauseById','agentPause','agent','agentUnpause','agentLogout','internal','format','%s/%s@from-sip/n','LOCAL','agentLogin','shellCommand','exec','trim','replace','googleCloudTTS','text','languageCode','ssmlGender','MALE','audioEncoding','MP3','google_tts_language','restAPI','timeout','number','POST','PUT','method','toUpperCase','body','parse','An\x20incorrect\x20formatted\x20json\x20body\x20has\x20been\x20passed\x20to\x20the\x20function','computedVariables','sync','uri','render','url','headers','stringify','statusCode','statusMessage','500\x20-\x20Internal\x20Server\x20Error','options','googleDialogflow','key','sestekNDA','ispeechTTS','ispeech_tts_language','en-US','speed','ispeechASR','ispeech_asr_language','isConfigured','model','awsPolly','aws_access_key_id','aws_secret_access_key','aws_polly_region','aws_polly_voice','Amy','aws_text_type','awsLex','aws_lex_region','aws_bot_name','googleASR','google_asr_language','appid','appsecret','clear','includes','agicommand','clone','isString','replaceObjectAllVariables','replaceAllVariables','hasOwnProperty','isPlainObject','recursiveNodeIndex','isArray','length','saveRestApiResult','isEmpty','%s.%s','setVariable','split','replaceAll','getVariable','extra','getAndSetVariable','The\x20\x22%s\x22\x20variable\x20value\x20is:\x20%s','retry','maxRetry','mrcpsynth','Enter\x20in\x20MRCPSynth\x20(%s)\x20block','noop','no\x20text\x20configured','MRCPSynth','result','Executed\x20command\x20MRCPSynth\x20%s','mrcprecog','Enter\x20in\x20MRCPRecog\x20(%s)\x20block','grammar','no\x20grammar\x20configured','MRCPRecog','RECOG_CONFIDENCE()','MRCP_RECOG_CONFIDENCE','RECOG_INSTANCE()','MRCP_RECOG_INSTANCE','Executed\x20command\x20MRCPRecog\x20%s','Enter\x20in\x20AGI\x20(%s)\x20block','command','args','answer','Enter\x20in\x20ANSWER\x20(%s)\x20block','Wait\x20%s\x20seconds\x20before\x20answer','wait','Enter\x20in\x20CALLBACK\x20(%s)\x20block','no\x20list\x20selected','add','minutes','custom_app','Enter\x20in\x20CUSTOM\x20APP\x20(%s)\x20block','application','Executed\x20command\x20%s\x20%s','lumenvoxtts','Enter\x20in\x20LUMENVOXTTS\x20(%s)\x20block','sestektts','Enter\x20in\x20SESTEKTTS\x20(%s)\x20block','Enter\x20in\x20LUMENVOXASR\x20(%s)\x20block','RECOG_INPUT()','sestekasr','Enter\x20in\x20SESTEKASR\x20(%s)\x20block','SESTEK_ASR_CONFIDENCE','SESTEK_ASR_TRANSCRIPT','SESTEK_ASR_INSTANCE','database','no\x20database\x20selected','odbc_id','no\x20odbc\x20database\x20found','query','query:\x20%s','variable_id','no\x20variable\x20selected\x20for\x20the\x20result','no\x20variable\x20found','forEach','keys','%s[%s][%s]','%s_ROWS_COUNT','dial','Enter\x20in\x20DIAL\x20(%s)\x20block','sip_id','no\x20user\x20selected','getUser','no\x20user\x20found','DIAL','SIP/%s','Executed\x20command\x20%s','dialogflow','Enter\x20in\x20DIALOGFLOW\x20(%s)\x20block','no\x20key\x20configured','bot','Trying\x20Dialogflow:\x20%s','DIALOGFLOW_%s','speech','out','Dialogflow\x20Result\x20%s','Dialogflow\x20is\x20unreachable','sesteknda','Enter\x20in\x20SESTEKNDA\x20(%s)\x20block','ndauth_url','no\x20ndauth\x20url\x20configured','no\x20username\x20configured','password','no\x20password\x20configured','Trying\x20SestekNDA:\x20%s','SESTEK_NDA_%s','audiofile','Sestek\x20NDA\x20%s\x20file\x20created','.wav','SestekNDA\x20Result\x20%s','Enter\x20in\x20END\x20(%s)\x20block','end','ext_dial','Enter\x20in\x20EXTERNAL\x20DIAL\x20(%s)\x20block','no\x20trunk\x20selected','trunk_id','no\x20trunk\x20found','opts','finally','Enter\x20in\x20FINALLY\x20(%s)\x20block','file_id','no\x20file\x20audio\x20selected','no\x20file\x20audio\x20found','response','maxdigit','mindigit','hiddendigitsnum','generate','hiddendigitspos','substr','Enter\x20in\x20GOAL\x20(%s)\x20block','goalname','GOAL\x20%s','awspolly','[AGI]\x20Enter\x20in\x20AWSPOLLY\x20(%s)\x20block','no\x20valid\x20credentials\x20configured','aws\x20Polly\x20is\x20unreachable','Enter\x20in\x20Amazon\x20Lex\x20(%s)\x20block','no\x20bot\x20name\x20configured','Trying\x20Amazon\x20Lex:\x20%s','AWS_LEX_%s','message','Amazon\x20Lex\x20ready\x20for\x20fulfillment','Amazon\x20Lex\x20is\x20unreachable','Enter\x20in\x20GOOGLEASR\x20(%s)\x20block\x20%s','wav','%s/recordings/%s','beep','NOBEEP','intKey','google\x20%s\x20file\x20created','GOOGLE_ASR_%s','GoogleASR\x20Result\x20%s','Enter\x20in\x20TILDEASR\x20(%s)\x20block','no\x20appsecret\x20configured','tilde\x20%s\x20file\x20created','tildeASR','gotoc','continueAt','gotoif','Enter\x20in\x20GOTOIF\x20(%s)\x20block','condition','no\x20condition\x20configured','false','gotoiftime','interval_id','no\x20interval\x20configured','true','IFTIME\x20%s\x20%s','hangup','Enter\x20in\x20HANGUP\x20(%s)\x20block'];(function(_0x1226ca,_0x51cbff){var _0x394adf=function(_0x30f382){while(--_0x30f382){_0x1226ca['push'](_0x1226ca['shift']());}};_0x394adf(++_0x51cbff);}(_0x44c7,0x89));var _0x744c=function(_0x4b78a4,_0x4c1927){_0x4b78a4=_0x4b78a4-0x0;var _0x4bab8b=_0x44c7[_0x4b78a4];return _0x4bab8b;};'use strict';var fs=require('fs');var path=require('path');var util=require('util');var _=require(_0x744c('0x0'));var sh=require('shelljs');var odbc=require(_0x744c('0x1'))();var rs=require(_0x744c('0x2'));var moment=require(_0x744c('0x3'));var Mustache=require('mustache');var rp=require(_0x744c('0x4'));var logger=require(_0x744c('0x5'))(_0x744c('0x6'));var config=require(_0x744c('0x7'));var scripts=require(_0x744c('0x8'));var FILES_PATH=_0x744c('0x9');var recursiveMapAttributes=[_0x744c('0xa'),_0x744c('0xb')];var verticesWithRetry=[_0x744c('0xc'),_0x744c('0xd'),_0x744c('0xe')];var AGIVertices=function(_0x6425c2,_0x35ba48,_0x5020e0){this[_0x744c('0xf')]=_0x6425c2;this['rpc']=_0x35ba48;this['mailRpc']=_0x5020e0;};AGIVertices['prototype']['getVariable']=function(_0x115150,_0x13a8da){this[_0x744c('0x10')][_0x744c('0x11')](_0x115150)[_0x744c('0x12')](function(_0x1deef1){_0x13a8da(null,_0x1deef1?_0x1deef1[_0x744c('0x13')]:![]);})[_0x744c('0x14')](function(_0x529c1d){_0x13a8da(_0x529c1d);});};AGIVertices[_0x744c('0x15')][_0x744c('0x16')]=function(_0x2e7b84,_0x3a3ba0){this[_0x744c('0x10')][_0x744c('0x17')](_0x2e7b84)[_0x744c('0x12')](function(_0x6d1330){_0x3a3ba0(null,_0x6d1330?_0x6d1330[_0x744c('0x13')]:![]);})[_0x744c('0x14')](function(_0x56fe70){_0x3a3ba0(_0x56fe70);});};AGIVertices[_0x744c('0x15')][_0x744c('0x18')]=function(_0x5cc35c,_0x9aa27c){this[_0x744c('0x10')][_0x744c('0x19')](_0x5cc35c)[_0x744c('0x12')](function(_0x5e66d1){_0x9aa27c(null,_0x5e66d1?_0x5e66d1[_0x744c('0x13')]:![]);})[_0x744c('0x14')](function(_0x32c497){_0x9aa27c(_0x32c497);});};AGIVertices[_0x744c('0x15')][_0x744c('0x1a')]=function(_0x3345fb,_0x279b3f){this['rpc'][_0x744c('0x1b')](_0x3345fb)[_0x744c('0x12')](function(_0x15e728){_0x279b3f(null,_0x15e728?_0x15e728[_0x744c('0x1c')]:![]);})[_0x744c('0x14')](function(_0x2144cc){_0x279b3f(_0x2144cc);});};AGIVertices[_0x744c('0x15')]['getUser']=function(_0x26d1fd,_0x279b6b){this[_0x744c('0x10')][_0x744c('0x1d')](_0x26d1fd)[_0x744c('0x12')](function(_0x3c7daf){_0x279b6b(null,_0x3c7daf?_0x3c7daf['name']:![]);})[_0x744c('0x14')](function(_0x6d4682){_0x279b6b(_0x6d4682);});};AGIVertices[_0x744c('0x15')][_0x744c('0x1e')]=function(_0x57923f,_0x4ea6c8){this[_0x744c('0x10')]['getTrunkById'](_0x57923f)[_0x744c('0x12')](function(_0x3b23b5){_0x4ea6c8(null,_0x3b23b5?_0x3b23b5[_0x744c('0x13')]:![]);})[_0x744c('0x14')](function(_0x37f445){_0x4ea6c8(_0x37f445);});};AGIVertices['prototype']['getSound']=function(_0x5107eb,_0x5e3764){var _0x574d30=this;this['rpc'][_0x744c('0x1f')](_0x5107eb)['then'](function(_0x4200dc){_0x5e3764(null,_0x4200dc?_0x574d30[_0x744c('0x20')](_0x4200dc[_0x744c('0x21')]):![]);})[_0x744c('0x14')](function(_0x5e0c41){_0x5e3764(_0x5e0c41);});};AGIVertices['prototype'][_0x744c('0x22')]=function(_0x289b19,_0x52cefe){this[_0x744c('0x10')][_0x744c('0x23')](_0x289b19)[_0x744c('0x12')](function(_0x1ab95f){_0x52cefe(null,_0x1ab95f?_0x1ab95f:![]);})[_0x744c('0x14')](function(_0x2dd7ab){_0x52cefe(_0x2dd7ab);});};AGIVertices[_0x744c('0x15')][_0x744c('0x24')]=function(_0x3965fa,_0x215a2a,_0x4fd012){this[_0x744c('0x25')]['sendMailMessage'](_0x3965fa,_0x215a2a)[_0x744c('0x12')](function(){_0x4fd012(null);})[_0x744c('0x14')](function(_0x199924){_0x4fd012(_0x199924);});};AGIVertices[_0x744c('0x15')][_0x744c('0x26')]=function(_0x494e15,_0x4f64ec){this[_0x744c('0x10')][_0x744c('0x27')](_0x494e15)[_0x744c('0x12')](function(_0x529345){if(_0x529345){if(_0x529345[_0x744c('0x28')]){_0x4f64ec(null,[_0x529345[_0x744c('0x29')]]);}else{_0x4f64ec(null,_['map'](_0x529345['Intervals'],'interval'));}}else{_0x4f64ec(null,![]);}})[_0x744c('0x14')](function(_0x15c823){_0x4f64ec(_0x15c823);});};AGIVertices[_0x744c('0x15')][_0x744c('0x20')]=function(_0x44426d){return util['format'](_0x744c('0x2a'),FILES_PATH,_0x44426d);};AGIVertices[_0x744c('0x15')][_0x744c('0x2b')]=function(_0x3b4fae,_0x3c00f4,_0x43c070){odbc[_0x744c('0x2c')](_0x3b4fae,function(_0x2db25c){if(_0x2db25c){logger[_0x744c('0x2d')](_0x744c('0x2e'),_0x2db25c);_0x43c070(_0x2db25c);}else{logger[_0x744c('0x2f')](_0x744c('0x30'));odbc['query'](_0x3c00f4,function(_0x46ab4b,_0x22308f){if(_0x46ab4b){logger[_0x744c('0x2f')](_0x744c('0x31'),_0x3c00f4);_0x43c070(_0x46ab4b);}else{logger[_0x744c('0x2f')](_0x744c('0x32'),_0x3c00f4);odbc[_0x744c('0x33')](function(_0x1eaaea){if(_0x1eaaea){logger['error'](_0x744c('0x34'),_0x1eaaea);}_0x43c070(null,_0x22308f);});}});}});};AGIVertices[_0x744c('0x15')][_0x744c('0x35')]=function(_0x5efcae,_0x1be7da){this[_0x744c('0x10')][_0x744c('0x36')](_0x5efcae)[_0x744c('0x12')](function(_0x38a7e0){_0x1be7da(null,_0x38a7e0?_0x38a7e0:![]);})[_0x744c('0x14')](function(_0x5f45c7){_0x1be7da(_0x5f45c7);});};AGIVertices[_0x744c('0x15')][_0x744c('0x37')]=function(_0xb8b98c,_0x9c634){this[_0x744c('0x10')][_0x744c('0x37')](_0xb8b98c)['then'](function(_0x48f1c4){_0x9c634(null,_0x48f1c4);})[_0x744c('0x14')](function(_0x3d03c9){_0x9c634(_0x3d03c9);});};AGIVertices[_0x744c('0x15')][_0x744c('0x38')]=function(_0x4e1717,_0x25be01,_0xbb3b85){this['rpc']['createSquareDetailsReport']({'uniqueid':this[_0x744c('0xf')]['uniqueid'],'node':_0x4e1717[_0x744c('0x39')],'application':_0x4e1717['agicommand'],'data':_0x25be01||null,'project_name':this['channel'][_0x744c('0x3a')],'callerid':this[_0x744c('0xf')][_0x744c('0x3b')]})[_0x744c('0x12')](function(_0x418924){if(_0xbb3b85){_0xbb3b85(null,_0x418924);}})[_0x744c('0x14')](function(_0x25307e){if(_0xbb3b85){_0xbb3b85(_0x25307e);}});};AGIVertices[_0x744c('0x15')][_0x744c('0x3c')]=function(_0x4e6c31,_0x32e300,_0x5a922f,_0x3093d6){this[_0x744c('0x10')][_0x744c('0x3c')]({'uniqueid':this['channel'][_0x744c('0x3d')],'callerid':this['channel'][_0x744c('0x3b')],'calleridname':this['channel']['calleridname'],'context':this[_0x744c('0xf')]['context'],'extension':this[_0x744c('0xf')][_0x744c('0x3e')],'priority':this[_0x744c('0xf')][_0x744c('0x3f')],'accountcode':this[_0x744c('0xf')][_0x744c('0x40')],'dnid':this[_0x744c('0xf')][_0x744c('0x41')],'projectName':this['channel']['arg_1'],'saveName':_0x32e300,'filename':_0x4e6c31[_0x744c('0x42')]||_0x32e300,'savePath':_0x5a922f})[_0x744c('0x12')](function(_0x12d209){_0x3093d6(null,_0x12d209);})[_0x744c('0x14')](function(_0x6b6d9f){_0x3093d6(_0x6b6d9f);});};AGIVertices['prototype'][_0x744c('0x43')]=function(_0x24c914,_0x27eb98,_0x4cc963){this[_0x744c('0x10')][_0x744c('0x43')]({'uniqueid':this[_0x744c('0xf')]['uniqueid'],'body':_0x24c914,'direction':_0x27eb98})[_0x744c('0x12')](function(_0xd5fc85){if(_0x4cc963){_0x4cc963(null,_0xd5fc85);}})[_0x744c('0x14')](function(_0x550894){if(_0x4cc963){_0x4cc963(_0x550894);}});};AGIVertices[_0x744c('0x15')][_0x744c('0x44')]=function(_0x46969e,_0x39b4a5){this[_0x744c('0x10')][_0x744c('0x44')]({'firstName':_['isEmpty'](_0x46969e['name'])||_['isNil'](_0x46969e[_0x744c('0x13')])?'callback_'+Math[_0x744c('0x45')]():_0x46969e['name'],'lastName':_['isEmpty'](_0x46969e[_0x744c('0x46')])||_[_0x744c('0x47')](_0x46969e[_0x744c('0x46')])?null:_0x46969e[_0x744c('0x46')],'phone':_0x46969e[_0x744c('0x48')],'ListId':_0x46969e[_0x744c('0x49')],'scheduledat':_0x46969e[_0x744c('0x4a')],'callbackUniqueid':this[_0x744c('0xf')][_0x744c('0x3d')],'tags':'callback','description':_0x744c('0x4b')+_0x46969e[_0x744c('0x4a')][_0x744c('0x4c')](),'priority':_0x46969e[_0x744c('0x4d')]})['then'](function(_0x41bd18){_0x39b4a5(null,_0x41bd18);})[_0x744c('0x14')](function(_0x2109de){_0x39b4a5(_0x2109de);});};AGIVertices['prototype'][_0x744c('0x4e')]=function(_0x49fdb6,_0x57249b){this['rpc'][_0x744c('0x4f')](_0x49fdb6)[_0x744c('0x12')](function(_0x1594ea){_0x57249b(null,_0x1594ea?_0x1594ea[_0x744c('0x13')]:![]);})[_0x744c('0x14')](function(_0x26bfd9){_0x57249b(_0x26bfd9);});};AGIVertices['prototype'][_0x744c('0x50')]=function(_0x5be019,_0x3f094e,_0x2f7632){var _0x8b5b97={'role':_0x744c('0x51')};_0x8b5b97[_0x5be019]=this['channel'][_0x744c('0x3b')];this[_0x744c('0x10')][_0x744c('0x50')](_0x8b5b97,_0x3f094e,this[_0x744c('0xf')][_0x744c('0x3d')])['then'](function(_0x23f72c){_0x2f7632(null,_[_0x744c('0x47')](_0x23f72c)?![]:!![]);})[_0x744c('0x14')](function(_0x3e6341){logger[_0x744c('0x2d')](_0x3e6341);_0x2f7632(null,![]);});};AGIVertices[_0x744c('0x15')]['agentUnpause']=function(_0x1e10fa,_0xfdf1ab){var _0x53a665={'role':_0x744c('0x51')};_0x53a665[_0x1e10fa]=this[_0x744c('0xf')][_0x744c('0x3b')];this[_0x744c('0x10')][_0x744c('0x52')](_0x53a665)[_0x744c('0x12')](function(_0x7ecaed){_0xfdf1ab(null,_[_0x744c('0x47')](_0x7ecaed)?![]:!![]);})['catch'](function(_0x5149c8){logger['error'](_0x5149c8);_0xfdf1ab(null,![]);});};AGIVertices[_0x744c('0x15')][_0x744c('0x53')]=function(_0x4fb38b,_0x4032c6){var _0x1c41d9={'role':'agent'};_0x1c41d9[_0x4fb38b]=this['channel']['callerid'];this[_0x744c('0x10')]['agentLogout'](_0x1c41d9)[_0x744c('0x12')](function(_0x34937f){_0x4032c6(null,_['isNil'](_0x34937f)?![]:!![]);})[_0x744c('0x14')](function(_0x383479){logger[_0x744c('0x2d')](_0x383479);_0x4032c6(null,![]);});};AGIVertices[_0x744c('0x15')]['agentLogin']=function(_0x2e10a9,_0x4dd7af){var _0x176a6f={'role':_0x744c('0x51')};_0x176a6f[_0x2e10a9]=this[_0x744c('0xf')][_0x744c('0x3b')];var _0x5c3f93=_0x2e10a9!=_0x744c('0x54')?util[_0x744c('0x55')](_0x744c('0x56'),_0x744c('0x57'),this[_0x744c('0xf')][_0x744c('0x3b')]):undefined;this['rpc'][_0x744c('0x58')](_0x176a6f,_0x5c3f93)['then'](function(_0x2e6582){_0x4dd7af(null,_[_0x744c('0x47')](_0x2e6582)?![]:!![]);})['catch'](function(_0x31d7f8){logger[_0x744c('0x2d')](_0x31d7f8);_0x4dd7af(null,![]);});};AGIVertices[_0x744c('0x15')][_0x744c('0x59')]=function(_0x545d6a,_0x459cf4){sh[_0x744c('0x5a')](_[_0x744c('0x5b')](_0x545d6a),function(_0x56e85b,_0x20cdbb){var _0x2203ea=_0x20cdbb[_0x744c('0x5c')](/(\r\n|\n|\r)/gm,'');_0x459cf4(null,_0x2203ea);});};AGIVertices[_0x744c('0x15')]['googleCloudTTS']=function(_0x3b226c,_0x558382){scripts[_0x744c('0x5d')](_0x3b226c['apiKey'],_0x3b226c['google_cloud_tts_text_type']||'text',_0x3b226c[_0x744c('0x5e')],_0x3b226c[_0x744c('0x5f')]||'en-US',_0x3b226c[_0x744c('0x60')]||_0x744c('0x61'),_0x3b226c[_0x744c('0x62')]||_0x744c('0x63'))['then'](function(_0x14f16e){_0x558382(null,_0x14f16e);})[_0x744c('0x14')](function(_0x3e5641){_0x558382(_0x3e5641);});};AGIVertices[_0x744c('0x15')]['googleTTS']=function(_0x189d81,_0x3edd9f){scripts['googleTTS'](_0x189d81[_0x744c('0x5e')],_0x189d81[_0x744c('0x64')]||'en',0x1)['then'](function(_0x4bf2e9){_0x3edd9f(null,_0x4bf2e9);})[_0x744c('0x14')](function(_0x1ec213){_0x3edd9f(_0x1ec213);});};AGIVertices[_0x744c('0x15')][_0x744c('0x65')]=function(_0x3d78c0,_0x1dc6e4){var _0x3acd01={'uri':_0x3d78c0['url'],'method':_0x3d78c0['method'],'json':!![],'resolveWithFullResponse':!![],'timeout':typeof parseInt(_0x3d78c0[_0x744c('0x66')])===_0x744c('0x67')&&parseInt(_0x3d78c0[_0x744c('0x66')])>=0x1?parseInt(_0x3d78c0[_0x744c('0x66')])*0x3e8:0x5*0x3e8};if(_['includes']([_0x744c('0x68'),_0x744c('0x69')],_0x3acd01[_0x744c('0x6a')][_0x744c('0x6b')]())){try{_0x3acd01[_0x744c('0x6c')]=_0x3d78c0[_0x744c('0xb')]?JSON[_0x744c('0x6d')](_0x3d78c0[_0x744c('0xb')]):{};}catch(_0x1f8cef){logger['error'](_0x744c('0x6e'),_0x1f8cef);}}try{_0x3acd01['headers']=_0x3d78c0['rawHeaders']?JSON[_0x744c('0x6d')](_0x3d78c0[_0x744c('0xa')]):{};}catch(_0x338c68){logger[_0x744c('0x2d')]('An\x20incorrect\x20formatted\x20json\x20headers\x20has\x20been\x20passed\x20to\x20the\x20function',_0x338c68);}if(_0x3d78c0[_0x744c('0x6f')]){try{var _0x1438b1=require(_0x3d78c0[_0x744c('0x6f')])[_0x744c('0x70')](this,_0x3acd01);_0x3acd01[_0x744c('0x71')]=Mustache[_0x744c('0x72')](_0x3d78c0[_0x744c('0x73')],_0x1438b1,{},['$$','$$']);if(_0x3acd01[_0x744c('0x74')]){_0x3acd01[_0x744c('0x74')]=JSON[_0x744c('0x6d')](Mustache[_0x744c('0x72')](JSON[_0x744c('0x75')](_0x3acd01[_0x744c('0x74')]),_0x1438b1,{},['$$','$$']));}if(_0x3acd01[_0x744c('0x6c')]){_0x3acd01['body']=JSON[_0x744c('0x6d')](Mustache[_0x744c('0x72')](JSON[_0x744c('0x75')](_0x3acd01[_0x744c('0x6c')]),_0x1438b1,{},['$$','$$']));}}catch(_0x525308){logger[_0x744c('0x2d')]('An\x20incorrect\x20formatted\x20json\x20has\x20been\x20passed\x20to\x20the\x20function',_0x525308);}}rp(_0x3acd01)[_0x744c('0x12')](function(_0x179cc2){var _0x2a0417={'statusCode':_0x179cc2[_0x744c('0x76')]||0xc8,'statusMessage':_0x179cc2[_0x744c('0x77')]||'OK','headers':_0x179cc2[_0x744c('0x74')]||{},'body':_0x179cc2['body']||{}};_0x1dc6e4(null,_0x2a0417);})[_0x744c('0x14')](function(_0x298a0d){var _0x41b5b7={'statusCode':_0x298a0d['statusCode']||0x1f4,'statusMessage':_0x298a0d['message']||_0x744c('0x78'),'headers':_0x298a0d[_0x744c('0x79')][_0x744c('0x74')]||{},'body':_0x298a0d[_0x744c('0x79')]['body']||{}};_0x1dc6e4(null,_0x41b5b7);});};AGIVertices[_0x744c('0x15')][_0x744c('0x7a')]=function(_0x51fc22,_0x54aa05){scripts[_0x744c('0x7a')](this[_0x744c('0xf')][_0x744c('0x3d')],_0x51fc22[_0x744c('0x7b')],_0x51fc22[_0x744c('0x5e')],_0x51fc22['dialogflow_language']||'en')[_0x744c('0x12')](function(_0x396ecb){_0x54aa05(null,_0x396ecb);})[_0x744c('0x14')](function(_0x43200f){_0x54aa05(_0x43200f);});};AGIVertices['prototype'][_0x744c('0x7c')]=function(_0x59e018,_0x339715){scripts['sestekNDA'](this[_0x744c('0xf')],_0x59e018)['then'](function(_0x5ddddf){_0x339715(null,_0x5ddddf);})[_0x744c('0x14')](function(_0x4f413c){_0x339715(_0x4f413c);});};AGIVertices[_0x744c('0x15')]['ispeechTTS']=function(_0x152d98,_0x28b461){scripts[_0x744c('0x7d')](_0x152d98[_0x744c('0x7b')],_0x152d98[_0x744c('0x5e')],_0x152d98[_0x744c('0x7e')]||_0x744c('0x7f'),_0x152d98[_0x744c('0x80')])['then'](function(_0x5a87a6){_0x28b461(null,_0x5a87a6);})[_0x744c('0x14')](function(_0x5b0890){_0x28b461(_0x5b0890);});};AGIVertices[_0x744c('0x15')][_0x744c('0x81')]=function(_0x394734,_0x1c2ea2,_0x3574c7){scripts[_0x744c('0x81')](_0x1c2ea2,_0x394734['key'],_0x394734[_0x744c('0x82')]||_0x744c('0x7f'),this[_0x744c('0x83')](_0x394734[_0x744c('0x84')])?_0x394734['model']:undefined)[_0x744c('0x12')](function(_0xda201f){_0x3574c7(null,_0xda201f);})[_0x744c('0x14')](function(_0x40a046){_0x3574c7(_0x40a046);});};AGIVertices['prototype'][_0x744c('0x85')]=function(_0x335657,_0x87dd91){scripts[_0x744c('0x85')](_0x335657[_0x744c('0x86')],_0x335657[_0x744c('0x87')],_0x335657[_0x744c('0x88')],_0x335657[_0x744c('0x89')]||_0x744c('0x8a'),_0x335657[_0x744c('0x5e')],_0x335657[_0x744c('0x8b')]||_0x744c('0x5e'))['then'](function(_0x116af6){_0x87dd91(null,_0x116af6);})[_0x744c('0x14')](function(_0x2e1f84){_0x87dd91(_0x2e1f84);});};AGIVertices[_0x744c('0x15')][_0x744c('0x8c')]=function(_0x9671ec,_0x2c8d84){scripts[_0x744c('0x8c')](this['channel'][_0x744c('0x3d')],_0x9671ec[_0x744c('0x86')],_0x9671ec[_0x744c('0x87')],_0x9671ec[_0x744c('0x8d')],_0x9671ec[_0x744c('0x5e')],_0x9671ec[_0x744c('0x8e')])[_0x744c('0x12')](function(_0x175c8f){_0x2c8d84(null,_0x175c8f);})[_0x744c('0x14')](function(_0x468a96){_0x2c8d84(_0x468a96);});};AGIVertices[_0x744c('0x15')][_0x744c('0x8f')]=function(_0x257866,_0x3679a1,_0x1f8f46){scripts[_0x744c('0x8f')](_0x3679a1,_0x257866['key'],_0x257866[_0x744c('0x90')]||_0x744c('0x7f'))[_0x744c('0x12')](function(_0x3feea7){_0x1f8f46(null,_0x3feea7);})[_0x744c('0x14')](function(_0x4240aa){_0x1f8f46(_0x4240aa);});};AGIVertices[_0x744c('0x15')]['tildeASR']=function(_0x5369da,_0x5c64a4,_0x22a606){scripts['tildeASR'](_0x5c64a4,_0x5369da[_0x744c('0x91')],_0x5369da[_0x744c('0x92')],_0x5369da['uri'])['then'](function(_0x155886){_0x22a606(null,_0x155886);})[_0x744c('0x14')](function(_0x5da5dd){_0x22a606(_0x5da5dd);});};AGIVertices[_0x744c('0x15')][_0x744c('0x93')]=function(_0x3d248e){var _0x1abbb1=_[_0x744c('0x94')](verticesWithRetry,_0x3d248e[_0x744c('0x95')])?_0x3d248e:_[_0x744c('0x96')](_0x3d248e);for(var _0x17623d in _0x1abbb1){if(_0x1abbb1['hasOwnProperty'](_0x17623d)){if(_0x1abbb1[_0x17623d]&&_[_0x744c('0x97')](_0x1abbb1[_0x17623d])){if(_[_0x744c('0x94')](recursiveMapAttributes,_0x17623d)){_0x1abbb1[_0x17623d]=this[_0x744c('0x98')](_0x1abbb1[_0x17623d]);}else{_0x1abbb1[_0x17623d]=this[_0x744c('0x99')](_0x1abbb1[_0x17623d]);}}}}return _0x1abbb1;};AGIVertices[_0x744c('0x15')]['recursiveNodeIndex']=function(_0x532e2e){for(var _0x4687f4 in _0x532e2e){if(_0x532e2e[_0x744c('0x9a')](_0x4687f4)){if(_[_0x744c('0x9b')](_0x532e2e[_0x4687f4])){this[_0x744c('0x9c')](_0x532e2e[_0x4687f4]);}else if(_[_0x744c('0x9d')](_0x532e2e[_0x4687f4])){for(var _0x1d35e3=0x0;_0x1d35e3<_0x532e2e[_0x4687f4][_0x744c('0x9e')];_0x1d35e3++){this[_0x744c('0x9c')](_0x532e2e[_0x4687f4][_0x1d35e3]);}}else if(_['isString'](_0x532e2e[_0x4687f4])){_0x532e2e[_0x4687f4]=this[_0x744c('0x99')](_0x532e2e[_0x4687f4]);}}}};AGIVertices[_0x744c('0x15')][_0x744c('0x9f')]=function(_0x26ad87,_0x56bb4b){for(var _0x40c2d4 in _0x26ad87){if(_0x26ad87[_0x744c('0x9a')](_0x40c2d4)){if(_[_0x744c('0x9b')](_0x26ad87[_0x40c2d4])){if(!_[_0x744c('0xa0')](_0x26ad87[_0x40c2d4])){this[_0x744c('0x9f')](_0x26ad87[_0x40c2d4],util[_0x744c('0x55')](_0x744c('0xa1'),_0x56bb4b,_0x40c2d4));}}else if(_[_0x744c('0x9d')](_0x26ad87[_0x40c2d4])){for(var _0xa49de8=0x0;_0xa49de8<_0x26ad87[_0x40c2d4]['length'];_0xa49de8++){this[_0x744c('0x9f')](_0x26ad87[_0x40c2d4][_0xa49de8],util[_0x744c('0x55')](_0x744c('0xa1'),_0x56bb4b,_0x40c2d4+'['+_0xa49de8+']'));}}else{if(!_['isNil'](_0x26ad87[_0x40c2d4])){this['channel'][_0x744c('0xa2')](util[_0x744c('0x55')](_0x744c('0xa1'),_0x56bb4b,_0x40c2d4),_0x26ad87[_0x40c2d4]);}}}}};AGIVertices[_0x744c('0x15')][_0x744c('0x98')]=function(_0x2862ae){try{var _0xe29109=JSON['parse'](_0x2862ae);this[_0x744c('0x9c')](_0xe29109);return JSON[_0x744c('0x75')](_0xe29109);}catch(_0x76f4d9){return this[_0x744c('0x99')](_0x2862ae);}};AGIVertices['prototype'][_0x744c('0x99')]=function(_0xa0620d){var _0x457bda=_0xa0620d['split']('{');for(var _0x2c8b44=0x1;_0x2c8b44<_0x457bda[_0x744c('0x9e')];_0x2c8b44+=0x1){var _0x5aea5a=_0x457bda[_0x2c8b44][_0x744c('0xa3')]('}');if(_0x5aea5a[_0x744c('0x9e')]>0x1){_0xa0620d=_0xa0620d[_0x744c('0xa4')]('{'+_0x5aea5a[0x0]+'}',this[_0x744c('0xf')][_0x744c('0xa5')](_0x5aea5a[0x0])[_0x744c('0xa6')]||_0x5aea5a[0x0]);}}if(_0x457bda[_0x744c('0x9e')]===0x1){return _0xa0620d[_0x744c('0x4c')]();}return this['replaceAllVariables'](_0xa0620d);};AGIVertices[_0x744c('0x15')][_0x744c('0xa7')]=function(_0x54f67c,_0x1b3fd1){var _0x369265=this[_0x744c('0xf')][_0x744c('0xa5')](_0x54f67c);if(_0x369265['result']===-0x1){return _0x369265;}logger[_0x744c('0x2f')](util[_0x744c('0x55')](_0x744c('0xa8'),_0x1b3fd1,_0x369265[_0x744c('0xa6')]));return this['channel'][_0x744c('0xa2')](_0x1b3fd1,_0x369265[_0x744c('0xa6')]);};AGIVertices[_0x744c('0x15')][_0x744c('0x83')]=function(_0x663fe7){return _0x663fe7&&_0x663fe7!=='0'&&_0x663fe7!=='-1'&&_0x663fe7!=='';};AGIVertices[_0x744c('0x15')]['maxRetry']=function(_0x2f0ddb){this[_0x744c('0x38')][_0x744c('0x70')](this,_0x2f0ddb,'-');_0x2f0ddb[_0x744c('0xa9')]=_0x2f0ddb[_0x744c('0xaa')];return{'code':0xc8,'result':'-'};};AGIVertices['prototype'][_0x744c('0xab')]=function(_0x18c66b){logger[_0x744c('0x2f')](util[_0x744c('0x55')](_0x744c('0xac'),_0x18c66b[_0x744c('0x39')]));if(!this[_0x744c('0x83')](_0x18c66b[_0x744c('0x5e')])){return this[_0x744c('0xf')][_0x744c('0xad')](_0x744c('0xae'));}var _0x5ef53d='\x22'+_0x18c66b[_0x744c('0x5e')]+'\x22';if(this['isConfigured'](_0x18c66b[_0x744c('0x79')])){_0x5ef53d+=','+_0x18c66b['options'];}var _0x278e8b=this[_0x744c('0xf')]['exec'](_0x744c('0xaf'),_0x5ef53d);if(_0x278e8b[_0x744c('0xb0')]===-0x1){return _0x278e8b;}return this[_0x744c('0xf')]['noop'](util[_0x744c('0x55')](_0x744c('0xb1'),_0x5ef53d));};AGIVertices['prototype'][_0x744c('0xb2')]=function(_0x52f058){logger[_0x744c('0x2f')](util[_0x744c('0x55')](_0x744c('0xb3'),_0x52f058[_0x744c('0x39')]));if(!this[_0x744c('0x83')](_0x52f058[_0x744c('0xb4')])){return this[_0x744c('0xf')][_0x744c('0xad')](_0x744c('0xb5'));}var _0x1b303e=_0x52f058['grammar'];if(this[_0x744c('0x83')](_0x52f058[_0x744c('0x79')])){_0x1b303e+=','+_0x52f058[_0x744c('0x79')];}var _0x4097ae=this[_0x744c('0xf')][_0x744c('0x5a')](_0x744c('0xb6'),_0x1b303e);if(_0x4097ae[_0x744c('0xb0')]===-0x1){return _0x4097ae;}var _0x396d2f=this['getAndSetVariable'](_0x744c('0xb7'),_0x744c('0xb8'));if(_0x396d2f[_0x744c('0xb0')]===-0x1){return _0x396d2f;}var _0x3adebe=this[_0x744c('0xa7')]('RECOG_INPUT()','MRCP_RECOG_TRANSCRIPT');if(_0x3adebe['result']===-0x1){return _0x3adebe;}var _0x2178b6=this[_0x744c('0xa7')](_0x744c('0xb9'),_0x744c('0xba'));if(_0x2178b6[_0x744c('0xb0')]===-0x1){return _0x2178b6;}return this[_0x744c('0xf')][_0x744c('0xad')](util[_0x744c('0x55')](_0x744c('0xbb'),_0x1b303e));};AGIVertices[_0x744c('0x15')][_0x744c('0x6')]=function(_0x5a6230){logger[_0x744c('0x2f')](util['format'](_0x744c('0xbc'),_0x5a6230[_0x744c('0x39')]));return this[_0x744c('0xf')][_0x744c('0x6')]([_0x5a6230[_0x744c('0xbd')],_0x5a6230[_0x744c('0xbe')]]);};AGIVertices[_0x744c('0x15')][_0x744c('0xbf')]=function(_0x4e5d97){logger[_0x744c('0x2f')](util[_0x744c('0x55')](_0x744c('0xc0'),_0x4e5d97[_0x744c('0x39')]));if(this['isConfigured'](_0x4e5d97[_0x744c('0x66')])){logger[_0x744c('0x2f')](util[_0x744c('0x55')](_0x744c('0xc1'),_0x4e5d97[_0x744c('0x66')]));var _0x4e50da=this[_0x744c('0xf')][_0x744c('0xc2')](_0x4e5d97['timeout']);if(_0x4e50da[_0x744c('0xb0')]===-0x1){return _0x4e50da;}}return this[_0x744c('0xf')][_0x744c('0xbf')]();};AGIVertices[_0x744c('0x15')]['callback']=function(_0x4c3d12){logger[_0x744c('0x2f')](util[_0x744c('0x55')](_0x744c('0xc3'),_0x4c3d12[_0x744c('0x39')]));if(!this[_0x744c('0x83')](_0x4c3d12[_0x744c('0x49')])){return this[_0x744c('0xf')][_0x744c('0x2d')](_0x4c3d12,_0x744c('0xc4'));}_0x4c3d12[_0x744c('0x4a')]=moment();if(this[_0x744c('0x83')](_0x4c3d12['delay'])){_0x4c3d12[_0x744c('0x4a')]=moment()[_0x744c('0xc5')](_0x4c3d12['delay'],_0x744c('0xc6'));}if(!this[_0x744c('0x83')](_0x4c3d12['callback_priority'])){_0x4c3d12[_0x744c('0x4d')]=0x2;}this['createCmContact'][_0x744c('0x70')](this,_0x4c3d12);return this[_0x744c('0xf')][_0x744c('0xad')](util[_0x744c('0x55')]('CALLBACK\x20added\x20phone:\x20%s\x20on\x20list:\x20%s\x20at\x20%s',_0x4c3d12[_0x744c('0x48')],_0x4c3d12[_0x744c('0x49')],_0x4c3d12[_0x744c('0x4a')]));};AGIVertices[_0x744c('0x15')][_0x744c('0xc7')]=function(_0x472ca4){logger['info'](util['format'](_0x744c('0xc8'),_0x472ca4[_0x744c('0x39')]));var _0x110542=this[_0x744c('0xf')][_0x744c('0x5a')](_0x472ca4[_0x744c('0xc9')],_0x472ca4['options']);if(_0x110542['result']===-0x1){return _0x110542;}return this[_0x744c('0xf')][_0x744c('0xad')](util[_0x744c('0x55')](_0x744c('0xca'),_0x472ca4[_0x744c('0xc9')],_0x472ca4[_0x744c('0x79')]));};AGIVertices[_0x744c('0x15')][_0x744c('0xcb')]=function(_0x36dd0b){logger[_0x744c('0x2f')](util[_0x744c('0x55')](_0x744c('0xcc'),_0x36dd0b['label']));if(!this['isConfigured'](_0x36dd0b[_0x744c('0x5e')])){return this[_0x744c('0xf')]['noop'](_0x744c('0xae'));}var _0x424ee4='\x22'+_0x36dd0b[_0x744c('0x5e')]+'\x22';if(this[_0x744c('0x83')](_0x36dd0b[_0x744c('0x79')])){_0x424ee4+=','+_0x36dd0b[_0x744c('0x79')];}var _0x5561a0=this[_0x744c('0xf')][_0x744c('0x5a')](_0x744c('0xaf'),_0x424ee4);if(_0x5561a0['result']===-0x1){return _0x5561a0;}return this[_0x744c('0xf')][_0x744c('0xad')](util[_0x744c('0x55')](_0x744c('0xb1'),_0x424ee4));};AGIVertices[_0x744c('0x15')][_0x744c('0xcd')]=function(_0x3d2f39){logger['info'](util['format'](_0x744c('0xce'),_0x3d2f39[_0x744c('0x39')]));if(!this[_0x744c('0x83')](_0x3d2f39[_0x744c('0x5e')])){return this[_0x744c('0xf')]['noop'](_0x744c('0xae'));}var _0x5af951='\x22'+_0x3d2f39[_0x744c('0x5e')]+'\x22';if(this[_0x744c('0x83')](_0x3d2f39['options'])){_0x5af951+=','+_0x3d2f39['options'];}var _0x9215f3=this[_0x744c('0xf')][_0x744c('0x5a')](_0x744c('0xaf'),_0x5af951);if(_0x9215f3['result']===-0x1){return _0x9215f3;}return this['channel'][_0x744c('0xad')](util[_0x744c('0x55')]('Executed\x20command\x20MRCPSynth\x20%s',_0x5af951));};AGIVertices['prototype']['lumenvoxasr']=function(_0x2cfc6a){logger[_0x744c('0x2f')](util[_0x744c('0x55')](_0x744c('0xcf'),_0x2cfc6a[_0x744c('0x39')]));if(!this[_0x744c('0x83')](_0x2cfc6a['grammar'])){return this['channel']['noop']('no\x20grammar\x20configured');}var _0x1147ed=_0x2cfc6a[_0x744c('0xb4')];if(this[_0x744c('0x83')](_0x2cfc6a['options'])){_0x1147ed+=','+_0x2cfc6a[_0x744c('0x79')];}var _0x4e1e5d=this['channel'][_0x744c('0x5a')]('MRCPRecog',_0x1147ed);if(_0x4e1e5d[_0x744c('0xb0')]===-0x1){return _0x4e1e5d;}var _0x4e0056=this[_0x744c('0xa7')]('RECOG_CONFIDENCE()','LUMENVOX_ASR_CONFIDENCE');if(_0x4e0056['result']===-0x1){return _0x4e0056;}var _0x441935=this[_0x744c('0xa7')](_0x744c('0xd0'),'LUMENVOX_ASR_TRANSCRIPT');if(_0x441935[_0x744c('0xb0')]===-0x1){return _0x441935;}var _0xc175f=this[_0x744c('0xa7')](_0x744c('0xb9'),'LUMENVOX_ASR_INSTANCE');if(_0xc175f[_0x744c('0xb0')]===-0x1){return _0xc175f;}return this[_0x744c('0xf')][_0x744c('0xad')](util[_0x744c('0x55')]('Executed\x20command\x20MRCPRecog\x20%s',_0x1147ed));};AGIVertices[_0x744c('0x15')][_0x744c('0xd1')]=function(_0x465156){logger[_0x744c('0x2f')](util[_0x744c('0x55')](_0x744c('0xd2'),_0x465156[_0x744c('0x39')]));if(!this['isConfigured'](_0x465156[_0x744c('0xb4')])){return this[_0x744c('0xf')][_0x744c('0xad')](_0x744c('0xb5'));}var _0x1510fd=_0x465156['grammar'];if(this['isConfigured'](_0x465156[_0x744c('0x79')])){_0x1510fd+=','+_0x465156['options'];}var _0x318e36=this['channel'][_0x744c('0x5a')](_0x744c('0xb6'),_0x1510fd);if(_0x318e36[_0x744c('0xb0')]===-0x1){return _0x318e36;}var _0x4499aa=this['getAndSetVariable'](_0x744c('0xb7'),_0x744c('0xd3'));if(_0x4499aa['result']===-0x1){return _0x4499aa;}var _0x5265ac=this[_0x744c('0xa7')]('RECOG_INPUT()',_0x744c('0xd4'));if(_0x5265ac[_0x744c('0xb0')]===-0x1){return _0x5265ac;}var _0x16040c=this[_0x744c('0xa7')](_0x744c('0xb9'),_0x744c('0xd5'));if(_0x16040c['result']===-0x1){return _0x16040c;}return this[_0x744c('0xf')][_0x744c('0xad')](util[_0x744c('0x55')](_0x744c('0xbb'),_0x1510fd));};AGIVertices[_0x744c('0x15')][_0x744c('0xd6')]=function(_0x568ed5){logger[_0x744c('0x2f')](util['format']('Enter\x20in\x20DATABASE\x20(%s)\x20block',_0x568ed5[_0x744c('0x39')]));if(!this['isConfigured'](_0x568ed5['odbc_id'])){return this[_0x744c('0xf')]['error'](_0x568ed5,_0x744c('0xd7'));}var _0x24c94b=this['getSquareOdbc']['sync'](this,_0x568ed5[_0x744c('0xd8')]);if(!_0x24c94b){return this['channel'][_0x744c('0x2d')](_0x568ed5,_0x744c('0xd9'));}if(!this[_0x744c('0x83')](_0x568ed5['query'])){return this[_0x744c('0xf')]['error'](_0x568ed5,'no\x20query\x20configured');}var _0x33f759=_0x568ed5[_0x744c('0xda')][_0x744c('0x5c')](/(\r\n|\n|\r)/gm,'\x20');this[_0x744c('0xf')]['noop'](util[_0x744c('0x55')](_0x744c('0xdb'),_0x33f759));var _0xdf1142=this[_0x744c('0x2b')][_0x744c('0x70')](this,_0x24c94b,_0x33f759);this[_0x744c('0x38')][_0x744c('0x70')](this,_0x568ed5,_0x33f759);if(!this[_0x744c('0x83')](_0x568ed5[_0x744c('0xdc')])){return this[_0x744c('0xf')][_0x744c('0xad')](_0x744c('0xdd'));}var _0xb8c527=this['getVariable'][_0x744c('0x70')](this,_0x568ed5['variable_id']);if(!_0xb8c527){return this[_0x744c('0xf')][_0x744c('0x2d')](_0x568ed5,_0x744c('0xde'));}var _0xba8459=this;_0xdf1142[_0x744c('0xdf')](function(_0x5b7658,_0x276dcd){Object[_0x744c('0xe0')](_0x5b7658)['forEach'](function(_0x2859b4){_0xba8459[_0x744c('0xf')][_0x744c('0xa2')](util[_0x744c('0x55')](_0x744c('0xe1'),_0xb8c527,_0x276dcd,_0x2859b4),_0x5b7658[_0x2859b4]);});});this['channel']['setVariable'](util['format'](_0x744c('0xe2'),_0xb8c527),_0xdf1142[_0x744c('0x9e')]);return this[_0x744c('0xf')]['noop'](util[_0x744c('0x55')]('variable\x20%s\x20set',_0xb8c527));};AGIVertices['prototype'][_0x744c('0xe3')]=function(_0x5bef42){logger['debug'](util[_0x744c('0x55')](_0x744c('0xe4'),_0x5bef42[_0x744c('0x39')]));if(!this[_0x744c('0x83')](_0x5bef42[_0x744c('0xe5')])){return this[_0x744c('0xf')][_0x744c('0x2d')](_0x5bef42,_0x744c('0xe6'));}var _0xf43931=this[_0x744c('0xe7')][_0x744c('0x70')](this,_0x5bef42[_0x744c('0xe5')]);if(!_0xf43931){return this[_0x744c('0xf')][_0x744c('0x2d')](_0x5bef42,_0x744c('0xe8'));}var _0x171917=this[_0x744c('0xf')][_0x744c('0x5a')](_0x744c('0xe9'),[util[_0x744c('0x55')](_0x744c('0xea'),_0xf43931),_0x5bef42[_0x744c('0x66')],_0x5bef42['opts'],_0x5bef42['url']]);if(_0x171917['result']===-0x1){return _0x171917;}return this['channel'][_0x744c('0xad')](util[_0x744c('0x55')](_0x744c('0xeb'),_0x744c('0xe9')));};AGIVertices[_0x744c('0x15')][_0x744c('0xec')]=function(_0x7201a){logger[_0x744c('0x2f')](util[_0x744c('0x55')](_0x744c('0xed'),_0x7201a[_0x744c('0x39')]));if(!this[_0x744c('0x83')](_0x7201a[_0x744c('0x7b')])){return this[_0x744c('0xf')][_0x744c('0xad')](_0x744c('0xee'));}if(!this[_0x744c('0x83')](_0x7201a[_0x744c('0x5e')])){return this[_0x744c('0xf')][_0x744c('0xad')](_0x744c('0xae'));}this[_0x744c('0xf')][_0x744c('0xef')]=!![];this[_0x744c('0x38')](_0x7201a);this[_0x744c('0x43')](_0x7201a['text'],'in');this[_0x744c('0xf')]['noop'](util[_0x744c('0x55')](_0x744c('0xf0'),_0x7201a[_0x744c('0x5e')]));var _0x2d9cd6=this[_0x744c('0x7a')][_0x744c('0x70')](this,_0x7201a);if(_0x2d9cd6){for(var _0x26e589 in _0x2d9cd6){if(_0x2d9cd6['hasOwnProperty'](_0x26e589)){this['channel'][_0x744c('0xa2')](util['format'](_0x744c('0xf1'),_0x26e589[_0x744c('0x6b')]()),_0x2d9cd6[_0x26e589]);}}this['createSquareMessage'](_0x2d9cd6[_0x744c('0xf2')],_0x744c('0xf3'));return this['channel']['noop'](util[_0x744c('0x55')](_0x744c('0xf4'),_0x2d9cd6[_0x744c('0xf2')]));}return this[_0x744c('0xf')][_0x744c('0x2d')](_0x7201a,_0x744c('0xf5'));};AGIVertices['prototype'][_0x744c('0xf6')]=function(_0x2c4509){logger['info'](util[_0x744c('0x55')](_0x744c('0xf7'),_0x2c4509['label']));if(!this[_0x744c('0x83')](_0x2c4509[_0x744c('0xf8')])){return this[_0x744c('0xf')][_0x744c('0xad')](_0x744c('0xf9'));}if(!this['isConfigured'](_0x2c4509['username'])){return this['channel'][_0x744c('0xad')](_0x744c('0xfa'));}if(!this[_0x744c('0x83')](_0x2c4509[_0x744c('0xfb')])){return this[_0x744c('0xf')][_0x744c('0xad')](_0x744c('0xfc'));}if(!this[_0x744c('0x83')](_0x2c4509['ndassistant_url'])){return this[_0x744c('0xf')][_0x744c('0xad')](_0x744c('0xae'));}this['channel'][_0x744c('0xef')]=!![];this[_0x744c('0x38')](_0x2c4509);this[_0x744c('0x43')](_0x2c4509[_0x744c('0x5e')],'in');this['channel'][_0x744c('0xad')](util[_0x744c('0x55')](_0x744c('0xfd'),_0x2c4509[_0x744c('0x5e')]));var _0x6f9e91=this[_0x744c('0x7c')][_0x744c('0x70')](this,_0x2c4509);if(_0x6f9e91){for(var _0x1648e4 in _0x6f9e91){if(_0x6f9e91['hasOwnProperty'](_0x1648e4)){this['channel'][_0x744c('0xa2')](util[_0x744c('0x55')](_0x744c('0xfe'),_0x1648e4['toUpperCase']()),_0x6f9e91[_0x1648e4]);}}this[_0x744c('0x43')](_0x6f9e91['speech'],_0x744c('0xf3'));if(_0x6f9e91[_0x744c('0xff')]){this[_0x744c('0xf')]['noop'](util['format'](_0x744c('0x100'),_0x6f9e91[_0x744c('0xff')]));var _0x10119f=this[_0x744c('0xf')]['streamFile'](_0x6f9e91[_0x744c('0xff')]);try{fs['unlink'](_0x6f9e91[_0x744c('0xff')]+_0x744c('0x101'));}catch(_0x4fbec2){logger['error'](_0x4fbec2);}return _0x10119f;}else{return this[_0x744c('0xf')][_0x744c('0xad')](util[_0x744c('0x55')](_0x744c('0x102'),_0x6f9e91[_0x744c('0xf2')]));}}return this[_0x744c('0xf')][_0x744c('0x2d')](_0x2c4509,'SestekNDA\x20is\x20unreachable');};AGIVertices['prototype']['end']=function(_0x325dc2){logger[_0x744c('0x2f')](util[_0x744c('0x55')](_0x744c('0x103'),_0x325dc2['label']));return this[_0x744c('0xf')][_0x744c('0xad')](_0x744c('0x104'));};AGIVertices['prototype'][_0x744c('0x105')]=function(_0xae722a){logger[_0x744c('0x2f')](util[_0x744c('0x55')](_0x744c('0x106'),_0xae722a['label']));var _0x31e251='';if(_0xae722a['trunk_id']){if(!this[_0x744c('0x83')](_0xae722a['trunk_id'])){return this['channel'][_0x744c('0x2d')](_0xae722a,_0x744c('0x107'));}else{var _0x53d223=parseInt(_0xae722a[_0x744c('0x108')],0xa);if(isNaN(_0x53d223)){_0x31e251=_0xae722a['trunk_id'];}else{_0x31e251=this[_0x744c('0x1e')][_0x744c('0x70')](this,_0xae722a['trunk_id']);if(!_0x31e251){return this['channel'][_0x744c('0x2d')](_0xae722a,_0x744c('0x109'));}}}}else if(_0xae722a['trunk_name']){_0x31e251=_0xae722a['trunk_name'];}else{return this['channel'][_0x744c('0x2d')](_0xae722a,_0x744c('0x107'));}var _0x5de471=this['channel'][_0x744c('0x5a')](_0x744c('0xe9'),[util[_0x744c('0x55')]('SIP/%s/%s',_0x31e251,_0xae722a[_0x744c('0x48')]),_0xae722a[_0x744c('0x66')],_0xae722a[_0x744c('0x10a')],_0xae722a[_0x744c('0x73')]]);if(_0x5de471['result']===-0x1){return _0x5de471;}return this[_0x744c('0xf')][_0x744c('0xad')](util[_0x744c('0x55')](_0x744c('0xeb'),_0x744c('0xe9')));};AGIVertices[_0x744c('0x15')][_0x744c('0x10b')]=function(_0x4b2e23){logger[_0x744c('0x2f')](util[_0x744c('0x55')](_0x744c('0x10c'),_0x4b2e23['label']));return this[_0x744c('0xf')]['noop']('finally');};AGIVertices[_0x744c('0x15')]['getdigits']=function(_0x8e5e5){logger[_0x744c('0x2f')](util[_0x744c('0x55')]('Enter\x20in\x20GETDIGITS\x20(%s)\x20block',_0x8e5e5['label']));if(_0x8e5e5['retry']===0x0){return this[_0x744c('0xaa')](_0x8e5e5);}_0x8e5e5['retry']-=0x1;if(!this[_0x744c('0x83')](_0x8e5e5[_0x744c('0x10d')])){return this['channel'][_0x744c('0x2d')](_0x8e5e5,_0x744c('0x10e'));}var _0x54d764=this['getSound'][_0x744c('0x70')](this,_0x8e5e5['file_id']);if(!_0x54d764){return this[_0x744c('0xf')][_0x744c('0x2d')](_0x8e5e5,_0x744c('0x10f'));}if(!this[_0x744c('0x83')](_0x8e5e5[_0x744c('0xdc')])){return this['channel'][_0x744c('0x2d')](_0x744c('0xdd'));}var _0x1cf283=this[_0x744c('0xf')]['getData'](_0x54d764,_0x8e5e5[_0x744c('0x110')],_0x8e5e5[_0x744c('0x111')]);var _0x3ffa46=_0x1cf283['result']?_0x1cf283[_0x744c('0xb0')]['toString']():'';logger['info']('test',JSON['stringify'](_0x1cf283));if(_0x1cf283[_0x744c('0xb0')]===-0x1){this[_0x744c('0x38')]['sync'](this,_0x8e5e5,_0x3ffa46);return _0x1cf283;}else if(_0x1cf283[_0x744c('0xa6')]==='timeout'){_0x1cf283[_0x744c('0xb0')]=_0x3ffa46['length']>=parseInt(_0x8e5e5['mindigit'])?'x':'i';}else{_0x1cf283[_0x744c('0xb0')]=_0x3ffa46[_0x744c('0x9e')]>=parseInt(_0x8e5e5[_0x744c('0x112')])&&_0x3ffa46[_0x744c('0x9e')]<=parseInt(_0x8e5e5['maxdigit'])?'x':'i';}var _0x186740=this[_0x744c('0xa5')][_0x744c('0x70')](this,_0x8e5e5[_0x744c('0xdc')]);if(!_0x186740){return this[_0x744c('0xf')][_0x744c('0x2d')](_0x8e5e5,_0x744c('0xde'));}this[_0x744c('0xf')][_0x744c('0xa2')](_0x186740,_0x3ffa46);if(this['isConfigured'](_0x8e5e5['hiddendigitsnum'])){var _0x101ad8=parseInt(_0x8e5e5[_0x744c('0x113')],0xa);var _0xed1e9b=rs[_0x744c('0x114')]({'charset':'*','length':_0x101ad8});var _0x4c1520=_0x3ffa46[_0x744c('0x9e')];if(_0x4c1520>0x0){if(_0x4c1520>_0x101ad8){this['createSquareDetailsReport'][_0x744c('0x70')](this,_0x8e5e5,_0x8e5e5[_0x744c('0x115')]==='first'?_0xed1e9b+_0x3ffa46[_0x744c('0x116')](_0x101ad8):_0x3ffa46['substr'](0x0,_0x4c1520-_0x101ad8)+_0xed1e9b);}else{this[_0x744c('0x38')]['sync'](this,_0x8e5e5,rs[_0x744c('0x114')]({'charset':'*','length':_0x4c1520}));}}else{this['createSquareDetailsReport'][_0x744c('0x70')](this,_0x8e5e5,'');}}else{this[_0x744c('0x38')][_0x744c('0x70')](this,_0x8e5e5,_0x3ffa46);}return _0x1cf283;};AGIVertices[_0x744c('0x15')][_0x744c('0xe')]=function(_0x5651e6){logger['info'](util[_0x744c('0x55')]('Enter\x20in\x20GETSECRETDIGITS\x20(%s)\x20block',_0x5651e6['label']));return this[_0x744c('0xd')](_0x5651e6);};AGIVertices[_0x744c('0x15')]['goal']=function(_0x568000){logger[_0x744c('0x2f')](util[_0x744c('0x55')](_0x744c('0x117'),_0x568000[_0x744c('0x39')]));this[_0x744c('0x38')][_0x744c('0x70')](this,_0x568000,_0x568000[_0x744c('0x118')]);return this['channel']['noop'](util[_0x744c('0x55')](_0x744c('0x119'),_0x568000[_0x744c('0x118')]));};AGIVertices[_0x744c('0x15')][_0x744c('0x11a')]=function(_0x467be2){logger[_0x744c('0x2f')](util[_0x744c('0x55')](_0x744c('0x11b'),_0x467be2[_0x744c('0x39')]));if(!this[_0x744c('0x83')](_0x467be2['aws_access_key_id'])||!this[_0x744c('0x83')](_0x467be2[_0x744c('0x87')])){return this[_0x744c('0xf')]['noop'](_0x744c('0x11c'));}if(!this[_0x744c('0x83')](_0x467be2['text'])){return this['channel'][_0x744c('0xad')](_0x744c('0xae'));}this['channel'][_0x744c('0xad')](util[_0x744c('0x55')]('Trying\x20aws\x20Polly\x20%s',_0x467be2[_0x744c('0x5e')]));var _0x5209d6=this[_0x744c('0x85')][_0x744c('0x70')](this,_0x467be2);if(_0x5209d6){this[_0x744c('0xf')][_0x744c('0xad')](util[_0x744c('0x55')]('aws\x20Polly\x20%s\x20file\x20created',_0x5209d6));var _0x575106=this[_0x744c('0xf')]['streamFile'](_0x5209d6);try{fs['unlink'](_0x5209d6+_0x744c('0x101'));}catch(_0x35be01){logger[_0x744c('0x2d')](_0x35be01);}return _0x575106;}return this[_0x744c('0xf')]['error'](_0x467be2,_0x744c('0x11d'));};AGIVertices[_0x744c('0x15')]['awslex']=function(_0x5ae432){logger['info'](util[_0x744c('0x55')](_0x744c('0x11e'),_0x5ae432[_0x744c('0x39')]));if(!this[_0x744c('0x83')](_0x5ae432['aws_access_key_id'])||!this[_0x744c('0x83')](_0x5ae432[_0x744c('0x87')])){return this[_0x744c('0xf')][_0x744c('0xad')](_0x744c('0x11c'));}if(!this[_0x744c('0x83')](_0x5ae432[_0x744c('0x8e')])){return this['channel'][_0x744c('0xad')](_0x744c('0x11f'));}if(!this[_0x744c('0x83')](_0x5ae432[_0x744c('0x5e')])){return this['channel']['noop'](_0x744c('0xae'));}this['channel']['bot']=!![];this['createSquareDetailsReport'](_0x5ae432);this[_0x744c('0x43')](_0x5ae432[_0x744c('0x5e')],'in');this[_0x744c('0xf')][_0x744c('0xad')](util['format'](_0x744c('0x120'),_0x5ae432[_0x744c('0x5e')]));var _0x2bfaaf=this[_0x744c('0x8c')]['sync'](this,_0x5ae432);if(_0x2bfaaf){for(var _0x16b265 in _0x2bfaaf){if(_0x2bfaaf[_0x744c('0x9a')](_0x16b265)&&_[_0x744c('0x97')](_0x2bfaaf[_0x16b265])){this[_0x744c('0xf')][_0x744c('0xa2')](util[_0x744c('0x55')](_0x744c('0x121'),_0x16b265[_0x744c('0x6b')]()),_0x2bfaaf[_0x16b265]);}}if(_[_0x744c('0x47')](_0x2bfaaf[_0x744c('0x122')])){return this['channel'][_0x744c('0xad')](_0x744c('0x123'));}else{this['createSquareMessage'](_0x2bfaaf['message'],_0x744c('0xf3'));return this[_0x744c('0xf')][_0x744c('0xad')](util[_0x744c('0x55')]('Amazon\x20Lex\x20Result\x20%s',_0x2bfaaf[_0x744c('0x122')]));}}return this[_0x744c('0xf')][_0x744c('0x2d')](_0x5ae432,_0x744c('0x124'));};AGIVertices[_0x744c('0x15')]['googleasr']=function(_0x46cc19){logger[_0x744c('0x2f')](util['format'](_0x744c('0x125'),_0x46cc19[_0x744c('0x39')],_0x46cc19[_0x744c('0x66')]));if(!this[_0x744c('0x83')](_0x46cc19[_0x744c('0x7b')])){return this[_0x744c('0xf')][_0x744c('0xad')](_0x744c('0xee'));}var _0x1a8649=_0x744c('0x126');var _0x1fdac3=util['format'](_0x744c('0x127'),FILES_PATH,rs['generate'](0x4));var _0xb350cd=util['format'](_0x744c('0xa1'),_0x1fdac3,_0x1a8649);var _0x3c5c7f=!![];if(_0x46cc19[_0x744c('0x128')]===_0x744c('0x129')){_0x3c5c7f=![];}var _0xcdc14c=this[_0x744c('0xf')]['recordFile'](_0x1fdac3,_0x1a8649,_0x46cc19[_0x744c('0x12a')],_0x46cc19[_0x744c('0x66')],undefined,_0x3c5c7f);if(_0xcdc14c['result']!==-0x1){this['channel']['noop'](util['format'](_0x744c('0x12b'),_0xb350cd));var _0x4e45ad=this[_0x744c('0x8f')][_0x744c('0x70')](this,_0x46cc19,_0xb350cd);if(_0x4e45ad){for(var _0x51a9ce in _0x4e45ad){if(_0x4e45ad[_0x744c('0x9a')](_0x51a9ce)){this[_0x744c('0xf')][_0x744c('0xa2')](util[_0x744c('0x55')](_0x744c('0x12c'),_0x51a9ce[_0x744c('0x6b')]()),_0x4e45ad[_0x51a9ce]);}}return this['channel'][_0x744c('0xad')](util[_0x744c('0x55')](_0x744c('0x12d'),JSON[_0x744c('0x75')](_0x4e45ad)));}}return _0xcdc14c;};AGIVertices['prototype']['tildeasr']=function(_0x5dd3ea){logger[_0x744c('0x2f')](util[_0x744c('0x55')](_0x744c('0x12e'),_0x5dd3ea[_0x744c('0x39')]));if(!this[_0x744c('0x83')](_0x5dd3ea[_0x744c('0x91')])){return this[_0x744c('0xf')][_0x744c('0xad')]('no\x20appid\x20configured');}if(!this[_0x744c('0x83')](_0x5dd3ea['appsecret'])){return this[_0x744c('0xf')][_0x744c('0xad')](_0x744c('0x12f'));}var _0x4bc29b=_0x744c('0x126');var _0x27e0a6=util[_0x744c('0x55')](_0x744c('0x127'),FILES_PATH,rs[_0x744c('0x114')](0x4));var _0x1622e9=util['format'](_0x744c('0xa1'),_0x27e0a6,_0x4bc29b);var _0x3c27f3=!![];if(_0x5dd3ea[_0x744c('0x128')]===_0x744c('0x129')){_0x3c27f3=![];}var _0x59b684=this[_0x744c('0xf')]['recordFile'](_0x27e0a6,_0x4bc29b,_0x5dd3ea[_0x744c('0x12a')],_0x5dd3ea[_0x744c('0x66')],undefined,_0x3c27f3);if(_0x59b684[_0x744c('0xb0')]!==-0x1){this['channel'][_0x744c('0xad')](util[_0x744c('0x55')](_0x744c('0x130'),_0x1622e9));var _0x136115=this[_0x744c('0x131')]['sync'](this,_0x5dd3ea,_0x1622e9);if(_0x136115){for(var _0x2f2b9f in _0x136115){if(_0x136115['hasOwnProperty'](_0x2f2b9f)){this[_0x744c('0xf')][_0x744c('0xa2')](util[_0x744c('0x55')]('TILDE_ASR_%s',_0x2f2b9f['toUpperCase']()),_0x136115[_0x2f2b9f]);}}return this['channel'][_0x744c('0xad')](util[_0x744c('0x55')]('TildeASR\x20Result\x20%s',JSON[_0x744c('0x75')](_0x136115)));}}return _0x59b684;};AGIVertices[_0x744c('0x15')][_0x744c('0x132')]=function(_0x3f8e47){logger['info'](util['format']('Enter\x20in\x20GOTO\x20(%s)\x20block',_0x3f8e47[_0x744c('0x39')]));return this[_0x744c('0xf')][_0x744c('0x133')](_0x3f8e47['context'],_0x3f8e47[_0x744c('0x3e')],_0x3f8e47[_0x744c('0x3f')]);};AGIVertices[_0x744c('0x15')][_0x744c('0x134')]=function(_0x2ce6a9){logger[_0x744c('0x2f')](util[_0x744c('0x55')](_0x744c('0x135'),_0x2ce6a9[_0x744c('0x39')]));if(!this[_0x744c('0x83')](_0x2ce6a9[_0x744c('0x136')])){return this[_0x744c('0xf')]['error'](_0x2ce6a9,_0x744c('0x137'));}try{var _0x4755c7=eval(_0x2ce6a9[_0x744c('0x136')])?'true':_0x744c('0x138');this[_0x744c('0xf')]['noop'](util[_0x744c('0x55')]('EVAL\x20CONDITION\x20%s\x20%s',_0x2ce6a9['condition'],_0x4755c7));return{'code':0xc8,'result':_0x4755c7};}catch(_0x58f4ff){return{'code':0xc8,'result':_0x744c('0x138')};}};AGIVertices[_0x744c('0x15')][_0x744c('0x139')]=function(_0x50abc7){logger[_0x744c('0x2f')](util[_0x744c('0x55')]('Enter\x20in\x20GOTOIFTIME\x20(%s)\x20block',_0x50abc7[_0x744c('0x39')]));if(!this['isConfigured'](_0x50abc7[_0x744c('0x13a')])){return this['channel']['error'](_0x50abc7,_0x744c('0x13b'));}var _0x593d68=this[_0x744c('0x26')][_0x744c('0x70')](this,_0x50abc7[_0x744c('0x13a')]);if(!_0x593d68){return this['channel']['error'](_0x50abc7,'no\x20intervals\x20found');}for(var _0x22474b=0x0;_0x22474b<_0x593d68[_0x744c('0x9e')];_0x22474b+=0x1){var _0x5e80fb=this['channel']['getVariable'](util[_0x744c('0x55')]('IFTIME(%s?true:false)',_0x593d68[_0x22474b]));if(_0x5e80fb[_0x744c('0xb0')]===-0x1){return _0x5e80fb;}logger[_0x744c('0x2f')](util[_0x744c('0x55')]('IFTIME\x20%s\x20%s',_0x593d68[_0x22474b],_0x5e80fb[_0x744c('0xa6')]));if(_0x5e80fb[_0x744c('0xa6')]===_0x744c('0x13c')){logger['info'](util[_0x744c('0x55')](_0x744c('0x13d'),_0x593d68[_0x22474b],'true'));this[_0x744c('0xf')]['noop'](util[_0x744c('0x55')](_0x744c('0x13d'),_0x593d68[_0x22474b],_0x744c('0x13c')));return{'code':0xc8,'result':_0x744c('0x13c')};}else{logger['info'](util[_0x744c('0x55')](_0x744c('0x13d'),_0x593d68[_0x22474b],_0x744c('0x138')));this[_0x744c('0xf')]['noop'](util['format']('IFTIME\x20%s\x20%s',_0x593d68[_0x22474b],_0x744c('0x138')));}}return{'code':0xc8,'result':_0x744c('0x138')};};AGIVertices[_0x744c('0x15')][_0x744c('0x13e')]=function(_0x1a36f9){logger[_0x744c('0x2f')](util['format'](_0x744c('0x13f'),_0x1a36f9[_0x744c('0x39')]));return this[_0x744c('0xf')][_0x744c('0x13e')]();};AGIVertices[_0x744c('0x15')][_0x744c('0x140')]=function(_0x1786b8){logger[_0x744c('0x2f')](util['format'](_0x744c('0x141'),_0x1786b8[_0x744c('0x39')]));if(!this[_0x744c('0x83')](_0x1786b8[_0x744c('0x7b')])){return this[_0x744c('0xf')][_0x744c('0xad')](_0x744c('0xee'));}var _0x205d58=_0x744c('0x126');var _0x4cabbf=util['format']('%s/recordings/%s',FILES_PATH,rs[_0x744c('0x114')](0x4));var _0x44c4ca=util['format'](_0x744c('0xa1'),_0x4cabbf,_0x205d58);var _0x3f0b7d=!![];if(_0x1786b8[_0x744c('0x128')]===_0x744c('0x129')){_0x3f0b7d=![];}var _0x584a96=this[_0x744c('0xf')][_0x744c('0x142')](_0x4cabbf,_0x205d58,_0x1786b8['intKey'],_0x1786b8[_0x744c('0x66')],undefined,_0x3f0b7d);if(_0x584a96[_0x744c('0xb0')]!==-0x1){this[_0x744c('0xf')][_0x744c('0xad')](util[_0x744c('0x55')](_0x744c('0x143'),_0x44c4ca));var _0xfbc374=this[_0x744c('0x81')][_0x744c('0x70')](this,_0x1786b8,_0x44c4ca);if(_0xfbc374){for(var _0x222a9e in _0xfbc374){if(_0xfbc374[_0x744c('0x9a')](_0x222a9e)){this[_0x744c('0xf')][_0x744c('0xa2')](util[_0x744c('0x55')](_0x744c('0x144'),_0x222a9e[_0x744c('0x6b')]()),_0xfbc374[_0x222a9e]);}}return this[_0x744c('0xf')][_0x744c('0xad')](util['format'](_0x744c('0x145'),JSON[_0x744c('0x75')](_0xfbc374)));}}return _0x584a96;};AGIVertices[_0x744c('0x15')][_0x744c('0x146')]=function(_0x4ef0b3){logger[_0x744c('0x2f')](util[_0x744c('0x55')](_0x744c('0x147'),_0x4ef0b3[_0x744c('0x39')]));if(!this['isConfigured'](_0x4ef0b3[_0x744c('0x7b')])){return this[_0x744c('0xf')][_0x744c('0xad')](_0x744c('0xee'));}if(!this[_0x744c('0x83')](_0x4ef0b3[_0x744c('0x5e')])){return this[_0x744c('0xf')]['noop'](_0x744c('0xae'));}this[_0x744c('0xf')][_0x744c('0xad')](util[_0x744c('0x55')](_0x744c('0x148'),_0x4ef0b3[_0x744c('0x5e')]));var _0x12cc2e=this[_0x744c('0x7d')][_0x744c('0x70')](this,_0x4ef0b3);if(_0x12cc2e){this['channel'][_0x744c('0xad')](util[_0x744c('0x55')](_0x744c('0x143'),_0x12cc2e));var _0x1a0428=this['channel'][_0x744c('0x149')](_0x12cc2e,_0x4ef0b3['intKey']);try{fs[_0x744c('0x14a')](_0x12cc2e+_0x744c('0x101'));}catch(_0x2b789e){logger['error'](_0x2b789e);}return _0x1a0428;}return this['channel'][_0x744c('0x2d')](_0x4ef0b3,_0x744c('0x14b'));};AGIVertices['prototype'][_0x744c('0x14c')]=function(_0x186e9b){logger['info'](util['format']('Enter\x20in\x20LOGIN\x20(%s)\x20block',_0x186e9b[_0x744c('0x39')]));if(!this[_0x744c('0x83')](_0x186e9b[_0x744c('0x14d')])){return this[_0x744c('0xf')][_0x744c('0x2d')](_0x186e9b,_0x744c('0x14e'));}logger[_0x744c('0x2f')](util[_0x744c('0x55')](_0x744c('0x14f'),this[_0x744c('0xf')]['callerid'],_0x186e9b[_0x744c('0x14d')]));var _0x4aef70=this['agentLogin'][_0x744c('0x70')](this,_0x186e9b[_0x744c('0x14d')]);if(_0x4aef70){logger[_0x744c('0x2f')](util[_0x744c('0x55')]('AGENT\x20%s\x20FOUND\x20BY',this[_0x744c('0xf')][_0x744c('0x3b')],_0x186e9b[_0x744c('0x14d')]));this[_0x744c('0xf')]['noop'](util[_0x744c('0x55')](_0x744c('0x150'),this[_0x744c('0xf')][_0x744c('0x3b')],_0x186e9b[_0x744c('0x14d')]));return{'code':0xc8,'result':_0x744c('0x151')};}else{logger['info'](util[_0x744c('0x55')](_0x744c('0x152'),this[_0x744c('0xf')][_0x744c('0x3b')],_0x186e9b[_0x744c('0x14d')]));this[_0x744c('0xf')][_0x744c('0xad')](util[_0x744c('0x55')](_0x744c('0x152'),this[_0x744c('0xf')]['callerid'],_0x186e9b['findBy']));return{'code':0xc8,'result':_0x744c('0x153')};}};AGIVertices[_0x744c('0x15')][_0x744c('0x154')]=function(_0x2f54ef){logger['info'](util[_0x744c('0x55')](_0x744c('0x155'),_0x2f54ef[_0x744c('0x39')]));if(!this[_0x744c('0x83')](_0x2f54ef[_0x744c('0x14d')])){return this[_0x744c('0xf')][_0x744c('0x2d')](_0x2f54ef,'no\x20find\x20by\x20configured');}logger[_0x744c('0x2f')](util[_0x744c('0x55')](_0x744c('0x14f'),this[_0x744c('0xf')][_0x744c('0x3b')],_0x2f54ef[_0x744c('0x14d')]));var _0x204bf9=this[_0x744c('0x53')][_0x744c('0x70')](this,_0x2f54ef[_0x744c('0x14d')]);if(_0x204bf9){logger[_0x744c('0x2f')](util[_0x744c('0x55')](_0x744c('0x150'),this['channel']['callerid'],_0x2f54ef[_0x744c('0x14d')]));this[_0x744c('0xf')][_0x744c('0xad')](util[_0x744c('0x55')](_0x744c('0x150'),this[_0x744c('0xf')]['callerid'],_0x2f54ef[_0x744c('0x14d')]));return{'code':0xc8,'result':_0x744c('0x151')};}else{logger[_0x744c('0x2f')](util[_0x744c('0x55')](_0x744c('0x152'),this[_0x744c('0xf')]['callerid'],_0x2f54ef[_0x744c('0x14d')]));this[_0x744c('0xf')][_0x744c('0xad')](util[_0x744c('0x55')](_0x744c('0x152'),this['channel']['callerid'],_0x2f54ef[_0x744c('0x14d')]));return{'code':0xc8,'result':_0x744c('0x153')};}};AGIVertices[_0x744c('0x15')]['math']=function(_0x3bd1d3){logger[_0x744c('0x2f')](util[_0x744c('0x55')](_0x744c('0x156'),_0x3bd1d3[_0x744c('0x39')]));if(!this[_0x744c('0x83')](_0x3bd1d3[_0x744c('0x157')])){return this[_0x744c('0xf')][_0x744c('0x2d')](_0x3bd1d3,_0x744c('0x158'));}this[_0x744c('0xf')]['noop'](util[_0x744c('0x55')](_0x744c('0x159'),_0x3bd1d3['operation']));var _0x992b66=eval(_0x3bd1d3[_0x744c('0x157')]);if(!this[_0x744c('0x83')](_0x3bd1d3[_0x744c('0xdc')])){return this[_0x744c('0xf')][_0x744c('0xad')](_0x744c('0xdd'));}var _0x3cb023=this['getVariable']['sync'](this,_0x3bd1d3[_0x744c('0xdc')]);if(!_0x3cb023){return this[_0x744c('0xf')][_0x744c('0x2d')](_0x3bd1d3,_0x744c('0xde'));}if(_['isArray'](_0x992b66)){var _0x1f2e62=this;_0x992b66[_0x744c('0xdf')](function(_0x5e05ad,_0x191111){_0x1f2e62[_0x744c('0xf')]['setVariable'](util['format'](_0x744c('0x15a'),_0x3cb023,_0x191111),_0x5e05ad);});return this[_0x744c('0xf')][_0x744c('0xad')](util['format'](_0x744c('0x15b'),_0x3cb023));}else{return this[_0x744c('0xf')][_0x744c('0xa2')](_0x3cb023,_0x992b66);}};AGIVertices['prototype'][_0x744c('0xc')]=function(_0x3852e1){logger['info'](util['format'](_0x744c('0x15c'),_0x3852e1[_0x744c('0x39')]));if(_0x3852e1['retry']===0x0){return this[_0x744c('0xaa')](_0x3852e1);}_0x3852e1[_0x744c('0xa9')]-=0x1;if(!this['isConfigured'](_0x3852e1[_0x744c('0x10d')])){return this[_0x744c('0xf')]['error'](_0x3852e1,'no\x20file\x20audio\x20selected');}var _0x1cfe31=this[_0x744c('0x15d')][_0x744c('0x70')](this,_0x3852e1[_0x744c('0x10d')]);if(!_0x1cfe31){return this['channel'][_0x744c('0x2d')](_0x3852e1,_0x744c('0x10f'));}var _0x4959a3=this[_0x744c('0xf')][_0x744c('0x15e')](_0x1cfe31,_0x3852e1['response'],_0x3852e1['digit']);var _0x34f1cb=_0x4959a3[_0x744c('0xb0')];if(_0x4959a3[_0x744c('0xb0')]===-0x1){this[_0x744c('0x38')]['sync'](this,_0x3852e1,'-1');return _0x4959a3;}else if(_0x4959a3[_0x744c('0xa6')]===_0x744c('0x66')){_0x4959a3[_0x744c('0xb0')]=_0x4959a3[_0x744c('0xb0')][_0x744c('0x9e')]>0x0?_0x4959a3['result']:'t';}else if(_[_0x744c('0xa0')](_0x4959a3['result'])){_0x4959a3[_0x744c('0xb0')]='#';_0x34f1cb='#';}if(!this['isConfigured'](_0x3852e1['variable_id'])){this['channel'][_0x744c('0xad')](_0x744c('0xdd'));}else{var _0x249070=this[_0x744c('0xa5')]['sync'](this,_0x3852e1[_0x744c('0xdc')]);if(!_0x249070){return this[_0x744c('0xf')][_0x744c('0x2d')](_0x3852e1,_0x744c('0xde'));}this['channel'][_0x744c('0xa2')](_0x249070,_0x34f1cb);}this[_0x744c('0x38')][_0x744c('0x70')](this,_0x3852e1,_0x34f1cb);return _0x4959a3;};AGIVertices[_0x744c('0x15')][_0x744c('0xad')]=function(_0x6a38ff){logger['info'](util['format'](_0x744c('0x15f'),_0x6a38ff['label']));return this[_0x744c('0xf')][_0x744c('0xad')](_0x6a38ff[_0x744c('0x160')]||_0x6a38ff['label']);};AGIVertices[_0x744c('0x15')][_0x744c('0x161')]=function(_0x21dbe4){logger[_0x744c('0x2f')](util[_0x744c('0x55')]('Enter\x20in\x20PAUSE\x20(%s)\x20block',_0x21dbe4[_0x744c('0x39')]));if(!this[_0x744c('0x83')](_0x21dbe4['findBy'])){return this['channel'][_0x744c('0x2d')](_0x21dbe4,'no\x20find\x20by\x20configured');}logger['info'](util[_0x744c('0x55')](_0x744c('0x14f'),this[_0x744c('0xf')][_0x744c('0x3b')],_0x21dbe4[_0x744c('0x14d')]));var _0x5ef041=this[_0x744c('0x4e')][_0x744c('0x70')](this,_0x21dbe4['pause_id']);var _0x4c2c11=this[_0x744c('0x50')][_0x744c('0x70')](this,_0x21dbe4[_0x744c('0x14d')],_0x5ef041);if(_0x4c2c11){logger[_0x744c('0x2f')](util[_0x744c('0x55')](_0x744c('0x150'),this[_0x744c('0xf')]['callerid'],_0x21dbe4[_0x744c('0x14d')]));this[_0x744c('0xf')]['noop'](util['format']('AGENT\x20%s\x20FOUND\x20BY',this[_0x744c('0xf')][_0x744c('0x3b')],_0x21dbe4['findBy']));return{'code':0xc8,'result':_0x744c('0x151')};}else{logger[_0x744c('0x2f')](util['format'](_0x744c('0x152'),this[_0x744c('0xf')][_0x744c('0x3b')],_0x21dbe4[_0x744c('0x14d')]));this[_0x744c('0xf')][_0x744c('0xad')](util[_0x744c('0x55')](_0x744c('0x150'),this[_0x744c('0xf')][_0x744c('0x3b')],_0x21dbe4[_0x744c('0x14d')]));return{'code':0xc8,'result':'failure'};}};AGIVertices[_0x744c('0x15')][_0x744c('0x162')]=function(_0x194c76){logger[_0x744c('0x2f')](util[_0x744c('0x55')](_0x744c('0x163'),_0x194c76[_0x744c('0x39')]));if(!this[_0x744c('0x83')](_0x194c76[_0x744c('0x10d')])){return this['channel'][_0x744c('0x2d')](_0x194c76,_0x744c('0x10e'));}var _0x3ac944=this[_0x744c('0x15d')]['sync'](this,_0x194c76[_0x744c('0x10d')]);if(!_0x3ac944){return this['channel'][_0x744c('0x2d')](_0x194c76,_0x744c('0x10f'));}var _0x339a1c=this[_0x744c('0xf')][_0x744c('0x5a')]('PLAYBACK',[_0x3ac944,_0x194c76[_0x744c('0x10a')]]);if(_0x339a1c[_0x744c('0xb0')]===-0x1){return _0x339a1c;}return this['channel']['noop'](util[_0x744c('0x55')](_0x744c('0xca'),_0x744c('0x164'),_0x3ac944));};AGIVertices[_0x744c('0x15')][_0x744c('0x165')]=function(_0x3a2f6c){logger[_0x744c('0x2f')](util[_0x744c('0x55')](_0x744c('0x166'),_0x3a2f6c['label']));if(!this[_0x744c('0x83')](_0x3a2f6c[_0x744c('0x167')])){return this[_0x744c('0xf')][_0x744c('0x2d')](_0x3a2f6c,_0x744c('0x168'));}var _0x4ca6a6='';var _0x1a8139=parseInt(_0x3a2f6c[_0x744c('0x167')],0xa);if(isNaN(_0x1a8139)){_0x4ca6a6=_0x3a2f6c[_0x744c('0x167')];}else{_0x4ca6a6=this['getVoiceQueue'][_0x744c('0x70')](this,_0x3a2f6c[_0x744c('0x167')]);if(!_0x4ca6a6){return this['channel'][_0x744c('0x2d')](_0x3a2f6c,_0x744c('0x169'));}}var _0x16df77='';if(this[_0x744c('0x83')](_0x3a2f6c[_0x744c('0x10d')])){var _0x4fafe6=this[_0x744c('0x15d')]['sync'](this,_0x3a2f6c[_0x744c('0x10d')]);if(_0x4fafe6){_0x16df77=_0x4fafe6;}}this[_0x744c('0x38')][_0x744c('0x70')](this,_0x3a2f6c,_0x4ca6a6);if(_0x3a2f6c[_0x744c('0x10a')][_0x744c('0x16a')]('x')<0x0){_0x3a2f6c['opts']+='x';}if(_0x3a2f6c[_0x744c('0x10a')][_0x744c('0x16a')]('X')<0x0){_0x3a2f6c[_0x744c('0x10a')]+='X';}this[_0x744c('0xf')][_0x744c('0xa2')](_0x744c('0x16b'),_0x4ca6a6?_0x4ca6a6[_0x744c('0x16c')]():'');var _0x12f28a=this[_0x744c('0xf')][_0x744c('0x5a')](_0x744c('0x16d'),[_0x4ca6a6,_0x3a2f6c[_0x744c('0x10a')],_0x3a2f6c['url'],_0x16df77,_0x3a2f6c[_0x744c('0x66')],_0x3a2f6c[_0x744c('0x6')],_0x3a2f6c[_0x744c('0x16e')],_0x3a2f6c['gosub'],'',_0x3a2f6c[_0x744c('0x16f')]]);if(_0x12f28a[_0x744c('0xb0')]===-0x1){return _0x12f28a;}return this[_0x744c('0xf')][_0x744c('0xad')](util[_0x744c('0x55')](_0x744c('0xca'),'QUEUE',_0x4ca6a6));};AGIVertices[_0x744c('0x15')][_0x744c('0x170')]=function(_0x44ec16){logger['info'](util[_0x744c('0x55')](_0x744c('0x171'),_0x44ec16[_0x744c('0x39')]));var _0x1c52c5=_0x44ec16[_0x744c('0x172')]||'wav';var _0x23e949=util[_0x744c('0x55')](_0x744c('0x173'),this[_0x744c('0xf')][_0x744c('0x3d')],rs[_0x744c('0x114')](0x5));var _0x574aa5=util['format']('%s/recordings/%s.%s',FILES_PATH,_0x23e949,_0x1c52c5);var _0x1d9108=util[_0x744c('0x55')]('%s/recordings/%s',FILES_PATH,_0x23e949);this[_0x744c('0x3c')][_0x744c('0x70')](this,_0x44ec16,_0x23e949,_0x574aa5);this[_0x744c('0xf')][_0x744c('0xa2')](_0x744c('0x174'),_0x23e949);logger[_0x744c('0x2f')](_0x744c('0x175'),_0x1d9108,_0x1c52c5,_0x44ec16[_0x744c('0x176')],_0x44ec16[_0x744c('0x66')]);return this[_0x744c('0xf')][_0x744c('0x142')](_0x1d9108,_0x1c52c5,_0x44ec16[_0x744c('0x176')],_0x44ec16[_0x744c('0x66')],undefined,!![]);};AGIVertices['prototype']['restapi']=function(_0x52f62d){logger['info'](util[_0x744c('0x55')](_0x744c('0x177'),_0x52f62d['label']));if(!this[_0x744c('0x83')](_0x52f62d['url'])){return this['channel'][_0x744c('0xad')]('no\x20url\x20configured');}var _0x56a430=this['restAPI'][_0x744c('0x70')](this,_0x52f62d);logger[_0x744c('0x2f')](util[_0x744c('0x55')]('Response:',util[_0x744c('0x178')](_0x56a430,{'showHidden':![],'depth':null})));if(!this[_0x744c('0x83')](_0x52f62d[_0x744c('0xdc')])){return this[_0x744c('0xf')][_0x744c('0xad')](_0x744c('0x179'));}var _0x41d018=this[_0x744c('0xa5')][_0x744c('0x70')](this,_0x52f62d[_0x744c('0xdc')]);if(!_0x41d018){return this['channel']['error'](_0x52f62d,_0x744c('0xde'));}this['channel'][_0x744c('0xa2')](util[_0x744c('0x55')](_0x744c('0x17a'),_0x41d018),_0x56a430[_0x744c('0x76')]?_0x56a430[_0x744c('0x76')]:_0x744c('0x17b'));this[_0x744c('0xf')][_0x744c('0xa2')](util[_0x744c('0x55')](_0x744c('0x17c'),_0x41d018),_0x56a430[_0x744c('0x77')]?_0x56a430[_0x744c('0x77')]:'OK');if(_0x56a430[_0x744c('0x6c')]){try{this[_0x744c('0x9f')](_0x56a430[_0x744c('0x6c')],_0x41d018);}catch(_0xb5991c){logger[_0x744c('0x2d')](util[_0x744c('0x55')](_0x744c('0x17d'),_0x41d018));}}return this[_0x744c('0xf')]['noop'](util[_0x744c('0x55')](_0x744c('0x17e'),_0x41d018));};AGIVertices[_0x744c('0x15')][_0x744c('0x17f')]=function(_0x4ce233){logger[_0x744c('0x2f')](util[_0x744c('0x55')](_0x744c('0x180'),_0x4ce233[_0x744c('0x39')]));return this['channel'][_0x744c('0x181')](_0x4ce233[_0x744c('0x182')][_0x744c('0x5c')](/\s+/g,''),_0x4ce233[_0x744c('0x176')]);};AGIVertices[_0x744c('0x15')]['saynumber']=function(_0x4b208c){logger[_0x744c('0x2f')](util['format']('Enter\x20in\x20SAYNUMBER\x20(%s)\x20block',_0x4b208c['label']));return this[_0x744c('0xf')][_0x744c('0x183')](_0x4b208c[_0x744c('0x67')][_0x744c('0x5c')](/\s+/g,''),_0x4b208c['escape_digits']);};AGIVertices['prototype'][_0x744c('0x184')]=function(_0x500b54){logger[_0x744c('0x2f')](util[_0x744c('0x55')]('Enter\x20in\x20SAYPHONETIC\x20(%s)\x20block',_0x500b54[_0x744c('0x39')]));return this[_0x744c('0xf')]['sayPhonetic'](_0x500b54[_0x744c('0x5e')],_0x500b54[_0x744c('0x176')]);};AGIVertices[_0x744c('0x15')][_0x744c('0x185')]=function(_0x19d823){logger[_0x744c('0x2f')](util['format'](_0x744c('0x186'),_0x19d823[_0x744c('0x39')]));if(!this[_0x744c('0x83')](_0x19d823[_0x744c('0x187')])){return this['channel'][_0x744c('0xad')]('no\x20mail\x20account\x20configured');}var _0x1163d6=this[_0x744c('0x22')][_0x744c('0x70')](this,_0x19d823[_0x744c('0x187')]);if(!_0x1163d6||!_0x1163d6[_0x744c('0x188')]){return this[_0x744c('0xf')][_0x744c('0x2d')](_0x19d823,_0x744c('0x189'));}var _0x3d226c={'from':util['format'](_0x744c('0x18a'),_0x1163d6[_0x744c('0x13')],_0x1163d6[_0x744c('0x18b')]||_0x1163d6['Smtp']['user']),'to':_0x19d823['to']||'','cc':_0x19d823['cc']||'','bcc':_0x19d823[_0x744c('0x18c')]||'','subject':_0x19d823['subject'],'html':_0x19d823[_0x744c('0x5e')],'text':_0x19d823['text']};var _0x3d94e4={'tls':{'rejectUnauthorized':![]}};if(_0x1163d6['Smtp']['service']){_0x3d94e4[_0x744c('0x18d')]=_0x1163d6[_0x744c('0x188')][_0x744c('0x18d')];}else{_0x3d94e4[_0x744c('0x18e')]=_0x1163d6[_0x744c('0x188')][_0x744c('0x18e')];_0x3d94e4[_0x744c('0x18f')]=_0x1163d6[_0x744c('0x188')]['port'];_0x3d94e4[_0x744c('0x190')]=_0x1163d6[_0x744c('0x188')][_0x744c('0x190')];}if(_0x1163d6['Smtp'][_0x744c('0x191')]){_0x3d94e4[_0x744c('0x192')]={'user':_0x1163d6[_0x744c('0x188')][_0x744c('0x193')],'pass':_0x1163d6[_0x744c('0x188')][_0x744c('0x194')]};}if(this['isConfigured'](_0x19d823[_0x744c('0x195')])){}logger[_0x744c('0x196')](_0x744c('0x197'),JSON[_0x744c('0x75')](_0x3d226c));this['createSquareDetailsReport']['sync'](this,_0x19d823,_0x19d823['account_id']);this[_0x744c('0xf')][_0x744c('0xad')](util[_0x744c('0x55')](_0x744c('0x198'),_0x1163d6['name']));this[_0x744c('0x24')][_0x744c('0x70')](this,_0x3d94e4,_0x3d226c);return this[_0x744c('0xf')][_0x744c('0xad')](_0x744c('0x199'));};AGIVertices[_0x744c('0x15')][_0x744c('0x19a')]=function(_0x247e73){logger[_0x744c('0x2f')](util[_0x744c('0x55')](_0x744c('0x19b'),_0x247e73[_0x744c('0x39')]));return this[_0x744c('0xf')][_0x744c('0xad')]('SENDFAX\x20block\x20not\x20implemented');};AGIVertices[_0x744c('0x15')][_0x744c('0x19c')]=function(_0x53eadb){logger[_0x744c('0x2f')](util['format'](_0x744c('0x19d'),_0x53eadb[_0x744c('0x39')]));if(!this['isConfigured'](_0x53eadb[_0x744c('0x19e')])){return this[_0x744c('0xf')]['noop']('no\x20sms\x20account\x20configured');}var _0x7e66dd=this['getSmsAccount']['sync'](this,_0x53eadb[_0x744c('0x19e')]);if(!_0x7e66dd){return this['channel']['error'](_0x53eadb,_0x744c('0x19f'));}var _0x18377e={'body':_0x53eadb[_0x744c('0x1a0')],'phone':_0x53eadb['to']||'','SmsAccountId':_0x7e66dd['id']};logger[_0x744c('0x196')](_0x744c('0x1a1'),JSON[_0x744c('0x75')](_0x18377e));this[_0x744c('0x38')][_0x744c('0x70')](this,_0x53eadb,_0x53eadb[_0x744c('0x19e')]);this[_0x744c('0xf')][_0x744c('0xad')](util[_0x744c('0x55')](_0x744c('0x1a2'),_0x7e66dd[_0x744c('0x13')]));this[_0x744c('0x37')][_0x744c('0x70')](this,_0x18377e);return this[_0x744c('0xf')][_0x744c('0xad')](_0x744c('0x1a3'));};AGIVertices[_0x744c('0x15')][_0x744c('0x1a4')]=function(_0x46bf12){logger[_0x744c('0x2f')](util['format'](_0x744c('0x1a5'),_0x46bf12[_0x744c('0x39')]));if(!this[_0x744c('0x83')](_0x46bf12[_0x744c('0xdc')])){return this[_0x744c('0xf')]['error'](_0x46bf12,_0x744c('0x1a6'));}var _0x1dc6c5=this[_0x744c('0xa5')][_0x744c('0x70')](this,_0x46bf12[_0x744c('0xdc')]);if(!_0x1dc6c5){return this[_0x744c('0xf')][_0x744c('0x2d')](_0x46bf12,'no\x20variable\x20found');}return this[_0x744c('0xf')]['setVariable'](_0x1dc6c5,_0x46bf12[_0x744c('0x1a7')]);};AGIVertices['prototype']['start']=function(_0x55b386){logger[_0x744c('0x2f')](util[_0x744c('0x55')](_0x744c('0x1a8'),_0x55b386['label']));this[_0x744c('0xf')][_0x744c('0xad')](_0x744c('0x1a9'));if(_0x55b386[_0x744c('0xbf')]===_0x744c('0x1aa')){this[_0x744c('0xf')][_0x744c('0xad')](_0x744c('0x1ab'));return this[_0x744c('0xf')][_0x744c('0xbf')]();}return this[_0x744c('0xf')][_0x744c('0xad')](_0x744c('0x1ac'));};AGIVertices[_0x744c('0x15')][_0x744c('0x1ad')]=function(_0x1c55c5){logger[_0x744c('0x2f')](util['format'](_0x744c('0x1ae'),_0x1c55c5[_0x744c('0x39')]));if(!this['isConfigured'](_0x1c55c5[_0x744c('0x1af')])){return this['channel']['error'](_0x1c55c5,_0x744c('0x1b0'));}var _0x4ef7ec=this['getSquareProject'][_0x744c('0x70')](this,_0x1c55c5['project_id']);if(!this[_0x744c('0x83')](_0x4ef7ec)){return this[_0x744c('0xf')]['error'](_0x1c55c5,util['format'](_0x744c('0x1b1'),_0x1c55c5[_0x744c('0x1af')]));}if(_0x4ef7ec===this[_0x744c('0xf')][_0x744c('0x3a')]){return this['channel'][_0x744c('0x2d')](_0x1c55c5,_0x744c('0x1b2'));}this['createSquareDetailsReport']['sync'](this,_0x1c55c5,_0x4ef7ec);var _0x2fc0d2=this[_0x744c('0xf')]['exec'](_0x744c('0x1b3'),util[_0x744c('0x55')](_0x744c('0x1b4'),config[_0x744c('0x6')]['host']||_0x744c('0x1b5'),_0x4ef7ec,this[_0x744c('0xf')][_0x744c('0x3a')]));if(_0x2fc0d2['result']===-0x1){return _0x2fc0d2;}return this[_0x744c('0xf')][_0x744c('0xad')](util[_0x744c('0x55')](_0x744c('0xca'),_0x744c('0x1b3'),_0x4ef7ec));};AGIVertices[_0x744c('0x15')][_0x744c('0x1b6')]=function(_0x38247c){logger[_0x744c('0x2f')](util[_0x744c('0x55')](_0x744c('0x1b7'),_0x38247c[_0x744c('0x39')]));var _0x280e71=this[_0x744c('0x59')][_0x744c('0x70')](this,_0x38247c[_0x744c('0xbd')]);this['createSquareDetailsReport']['sync'](this,_0x38247c,_0x38247c[_0x744c('0xbd')]);if(this['isConfigured'](_0x38247c[_0x744c('0xdc')])){var _0x2fd581=this['getVariable'][_0x744c('0x70')](this,_0x38247c['variable_id']);if(_0x2fd581){this[_0x744c('0xf')][_0x744c('0xa2')](_0x2fd581,_0x280e71);return this[_0x744c('0xf')][_0x744c('0xad')](util['format'](_0x744c('0x1b8'),_0x38247c[_0x744c('0xbd')],_0x2fd581));}}return this[_0x744c('0xf')][_0x744c('0xad')](util[_0x744c('0x55')](_0x744c('0x1b9'),_0x38247c[_0x744c('0xbd')]));};AGIVertices[_0x744c('0x15')][_0x744c('0x1ba')]=function(_0x1c982e){logger['info'](util[_0x744c('0x55')]('Enter\x20in\x20Google\x20Cloud\x20TTS\x20(%s)\x20block',_0x1c982e['label']));_0x1c982e['text']=_0x1c982e['text'][_0x744c('0x5c')](/(\r\n|\n|\r)/gm,'\x20');if(!this[_0x744c('0x83')](_0x1c982e[_0x744c('0x1bb')])){return this[_0x744c('0xf')][_0x744c('0xad')](_0x744c('0x1bc'));}if(!this[_0x744c('0x83')](_0x1c982e[_0x744c('0x5e')])){return this[_0x744c('0xf')][_0x744c('0xad')]('no\x20text\x20configured');}this[_0x744c('0xf')][_0x744c('0xad')](util[_0x744c('0x55')](_0x744c('0x1bd'),_0x1c982e['text']));var _0x14fddb=this['googleCloudTTS'][_0x744c('0x70')](this,_0x1c982e);if(_0x14fddb){this[_0x744c('0xf')][_0x744c('0xad')](util[_0x744c('0x55')]('Google\x20Cloud\x20TTS\x20%s\x20file\x20created',_0x14fddb));var _0x486c35=this[_0x744c('0xf')][_0x744c('0x149')](_0x14fddb);try{fs['unlink'](_0x14fddb+_0x744c('0x101'));}catch(_0x540f06){logger['error'](_0x540f06);}return _0x486c35;}return this[_0x744c('0xf')][_0x744c('0x2d')](_0x1c982e,_0x744c('0x1be'));};AGIVertices['prototype'][_0x744c('0x1bf')]=function(_0x35d042){logger[_0x744c('0x2f')](util[_0x744c('0x55')]('Enter\x20in\x20GOOGLETTS\x20(%s)\x20block',_0x35d042['label']));_0x35d042[_0x744c('0x5e')]=_0x35d042[_0x744c('0x5e')]['replace'](/(\r\n|\n|\r)/gm,'\x20');if(!this[_0x744c('0x83')](_0x35d042[_0x744c('0x5e')])){return this[_0x744c('0xf')][_0x744c('0xad')]('no\x20text\x20configured');}this[_0x744c('0xf')]['noop'](util[_0x744c('0x55')](_0x744c('0x1c0'),_0x35d042['text']));var _0x3bcea8=this[_0x744c('0x1c1')][_0x744c('0x70')](this,_0x35d042);if(_0x3bcea8){this[_0x744c('0xf')][_0x744c('0xad')](util[_0x744c('0x55')](_0x744c('0x1c2'),_0x3bcea8));var _0x53a6c6=this[_0x744c('0xf')][_0x744c('0x149')](_0x3bcea8);try{fs['unlink'](_0x3bcea8+_0x744c('0x101'));}catch(_0x2fac1a){logger[_0x744c('0x2d')](_0x2fac1a);}return _0x53a6c6;}return this[_0x744c('0xf')][_0x744c('0x2d')](_0x35d042,'Google\x20TTS\x20is\x20unreachable');};AGIVertices[_0x744c('0x15')][_0x744c('0x1c3')]=function(_0xab54a0){logger['info'](util[_0x744c('0x55')](_0x744c('0x1c4'),_0xab54a0['label']));if(!this[_0x744c('0x83')](_0xab54a0[_0x744c('0x14d')])){return this['channel']['error'](_0xab54a0,'no\x20find\x20by\x20configured');}logger[_0x744c('0x2f')](util[_0x744c('0x55')](_0x744c('0x14f'),this[_0x744c('0xf')][_0x744c('0x3b')],_0xab54a0[_0x744c('0x14d')]));var _0x43b55f=this[_0x744c('0x52')][_0x744c('0x70')](this,_0xab54a0[_0x744c('0x14d')]);if(_0x43b55f){logger[_0x744c('0x2f')](util[_0x744c('0x55')](_0x744c('0x150'),this[_0x744c('0xf')][_0x744c('0x3b')],_0xab54a0[_0x744c('0x14d')]));this[_0x744c('0xf')][_0x744c('0xad')](util['format']('AGENT\x20%s\x20FOUND\x20BY',this[_0x744c('0xf')]['callerid'],_0xab54a0[_0x744c('0x14d')]));return{'code':0xc8,'result':_0x744c('0x151')};}else{logger['info'](util[_0x744c('0x55')](_0x744c('0x152'),this[_0x744c('0xf')][_0x744c('0x3b')],_0xab54a0[_0x744c('0x14d')]));this[_0x744c('0xf')][_0x744c('0xad')](util[_0x744c('0x55')](_0x744c('0x152'),this[_0x744c('0xf')][_0x744c('0x3b')],_0xab54a0[_0x744c('0x14d')]));return{'code':0xc8,'result':_0x744c('0x153')};}};AGIVertices[_0x744c('0x15')]['voicemail']=function(_0x185721){logger['info'](util['format']('Enter\x20in\x20VOICEMAIL\x20(%s)\x20block',_0x185721[_0x744c('0x39')]));var _0x216490=this[_0x744c('0xf')]['exec'](_0x744c('0x1c5'),[_0x185721['mailbox'],_0x185721[_0x744c('0x79')]]);if(_0x216490[_0x744c('0xb0')]===-0x1){return _0x216490;}return this[_0x744c('0xf')][_0x744c('0xad')](util['format'](_0x744c('0xca'),_0x744c('0x1c5'),_0x185721['mailbox']));};AGIVertices['prototype']['vswitch']=function(_0x2449d9){logger[_0x744c('0x2f')](util['format'](_0x744c('0x1c6'),_0x2449d9[_0x744c('0x39')]));if(!this['isConfigured'](_0x2449d9[_0x744c('0xdc')])){return this[_0x744c('0xf')][_0x744c('0x2d')](_0x2449d9,_0x744c('0x1a6'));}var _0x1e94f4=this[_0x744c('0xa5')][_0x744c('0x70')](this,_0x2449d9[_0x744c('0xdc')]);if(!_0x1e94f4){return this[_0x744c('0xf')][_0x744c('0x2d')](_0x2449d9,_0x744c('0xde'));}var _0x4fe1e3=this['channel'][_0x744c('0xa5')](_0x1e94f4);return{'code':0xc8,'result':_0x4fe1e3[_0x744c('0xa6')]?_0x4fe1e3[_0x744c('0xa6')]:'-'};};String[_0x744c('0x15')][_0x744c('0xa4')]=function(_0x28d92a,_0x5a725d){return this['split'](_0x28d92a)[_0x744c('0x1c7')](_0x5a725d);};module[_0x744c('0x1c8')]=AGIVertices;
\ No newline at end of file