Built motion from commit (unavailable).|2.5.6
[motion2.git] / server / services / agi / vertices.js
index 27d0702..d9b4f6d 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x01dd=['getSquareProjectById','getSquareOdbcById','dsn','getUserById','getTrunk','getTrunkById','getSound','save_name','getMailAccount','sendMailMessage','getIntervals','IntervalId','interval','map','Intervals','getSoundPath','format','%s/sounds/converted/%s','getQueryOdbc','open','error','Error\x20getting\x20ODBC\x20connection\x20%s','info','query','Error\x20executing\x20query\x20%s','Query\x20executed\x20correctly\x20%s','Error\x20closing\x20connection\x20to\x20odbc\x20%s','getSmsAccountById','createSquareDetailsReport','channel','uniqueid','agicommand','callerid','createSquareRecording','calleridname','context','extension','priority','accountcode','dnid','arg_1','file','createSquareMessage','createCmContact','callback_','isEmpty','lastName','isNil','phone','list_id','scheduledAt','callback','Callback\x20scheduled\x20at\x20','toString','getPause','getPauseById','agentPause','agent','agentUnpause','agentLogout','agentLogin','internal','%s/%s@from-sip/n','LOCAL','shellCommand','exec','replace','googleCloudTTS','apiKey','google_cloud_tts_text_type','text','languageCode','ssmlGender','MALE','audioEncoding','googleTTS','google_tts_language','restAPI','method','timeout','number','POST','PUT','body','parse','computedVariables','sync','uri','render','headers','stringify','An\x20incorrect\x20formatted\x20json\x20has\x20been\x20passed\x20to\x20the\x20function','statusCode','message','500\x20-\x20Internal\x20Server\x20Error','options','googleDialogflow','key','dialogflow_language','sestekNDA','ispeechTTS','ispeech_tts_language','speed','ispeechASR','ispeech_asr_language','en-US','isConfigured','model','awsPolly','aws_access_key_id','Amy','aws_text_type','awsLex','aws_bot_name','googleASR','google_asr_language','tildeASR','appid','clear','includes','clone','hasOwnProperty','isString','replaceObjectAllVariables','replaceAllVariables','recursiveNodeIndex','isPlainObject','length','isArray','saveRestApiResult','%s.%s','setVariable','split','extra','result','The\x20\x22%s\x22\x20variable\x20value\x20is:\x20%s','maxRetry','retry','mrcpsynth','Enter\x20in\x20MRCPSynth\x20(%s)\x20block','label','noop','no\x20text\x20configured','Executed\x20command\x20MRCPSynth\x20%s','mrcprecog','grammar','no\x20grammar\x20configured','MRCPRecog','getAndSetVariable','RECOG_CONFIDENCE()','MRCP_RECOG_CONFIDENCE','RECOG_INPUT()','MRCP_RECOG_TRANSCRIPT','RECOG_INSTANCE()','Executed\x20command\x20MRCPRecog\x20%s','Enter\x20in\x20AGI\x20(%s)\x20block','command','Wait\x20%s\x20seconds\x20before\x20answer','wait','answer','no\x20list\x20selected','delay','add','minutes','callback_priority','CALLBACK\x20added\x20phone:\x20%s\x20on\x20list:\x20%s\x20at\x20%s','custom_app','Enter\x20in\x20CUSTOM\x20APP\x20(%s)\x20block','Executed\x20command\x20%s\x20%s','application','lumenvoxtts','Enter\x20in\x20LUMENVOXTTS\x20(%s)\x20block','MRCPSynth','sestektts','Enter\x20in\x20SESTEKTTS\x20(%s)\x20block','LUMENVOX_ASR_CONFIDENCE','LUMENVOX_ASR_TRANSCRIPT','LUMENVOX_ASR_INSTANCE','sestekasr','Enter\x20in\x20SESTEKASR\x20(%s)\x20block','database','Enter\x20in\x20DATABASE\x20(%s)\x20block','odbc_id','no\x20database\x20selected','no\x20odbc\x20database\x20found','no\x20query\x20configured','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','debug','Enter\x20in\x20DIAL\x20(%s)\x20block','sip_id','no\x20user\x20selected','getUser','no\x20user\x20found','DIAL','SIP/%s','opts','url','dialogflow','no\x20key\x20configured','Trying\x20Dialogflow:\x20%s','DIALOGFLOW_%s','toUpperCase','out','speech','Dialogflow\x20is\x20unreachable','sesteknda','Enter\x20in\x20SESTEKNDA\x20(%s)\x20block','ndauth_url','no\x20username\x20configured','password','no\x20password\x20configured','bot','SESTEK_NDA_%s','audiofile','Sestek\x20NDA\x20%s\x20file\x20created','streamFile','unlink','.wav','SestekNDA\x20Result\x20%s','end','Enter\x20in\x20END\x20(%s)\x20block','Enter\x20in\x20EXTERNAL\x20DIAL\x20(%s)\x20block','trunk_id','no\x20trunk\x20found','trunk_name','SIP/%s/%s','Executed\x20command\x20%s','finally','Enter\x20in\x20FINALLY\x20(%s)\x20block','getdigits','Enter\x20in\x20GETDIGITS\x20(%s)\x20block','file_id','no\x20file\x20audio\x20found','getData','response','maxdigit','test','mindigit','hiddendigitsnum','generate','substr','getsecretdigits','goal','Enter\x20in\x20GOAL\x20(%s)\x20block','goalname','GOAL\x20%s','awspolly','no\x20valid\x20credentials\x20configured','Trying\x20aws\x20Polly\x20%s','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\x20Result\x20%s','Amazon\x20Lex\x20is\x20unreachable','googleasr','Enter\x20in\x20GOOGLEASR\x20(%s)\x20block\x20%s','wav','beep','recordFile','GoogleASR\x20Result\x20%s','tildeasr','no\x20appid\x20configured','appsecret','no\x20appsecret\x20configured','%s/recordings/%s','intKey','tilde\x20%s\x20file\x20created','TILDE_ASR_%s','TildeASR\x20Result\x20%s','gotoc','Enter\x20in\x20GOTO\x20(%s)\x20block','gotoif','Enter\x20in\x20GOTOIF\x20(%s)\x20block','condition','no\x20condition\x20configured','true','false','EVAL\x20CONDITION\x20%s\x20%s','gotoiftime','Enter\x20in\x20GOTOIFTIME\x20(%s)\x20block','interval_id','no\x20interval\x20configured','no\x20intervals\x20found','IFTIME(%s?true:false)','IFTIME\x20%s\x20%s','hangup','Enter\x20in\x20ISPEECHASR\x20(%s)\x20block','NOBEEP','ISPEECH_ASR_%s','IspeechASR\x20Result\x20%s','Enter\x20in\x20ISPEECHTTS\x20(%s)\x20block','Trying\x20ispeech\x20TTS\x20%s','ispeech\x20TTS\x20is\x20unreachable','login','Enter\x20in\x20LOGIN\x20(%s)\x20block','findBy','no\x20find\x20by\x20configured','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','math\x20%s','%s[%s]','variable\x20%s[key]\x20set','no\x20file\x20audio\x20selected','digit','Enter\x20in\x20NOOP\x20(%s)\x20block','output','pause','Enter\x20in\x20PAUSE\x20(%s)\x20block','playback','Enter\x20in\x20PLAYBACK\x20(%s)\x20block','PLAYBACK','queue','Enter\x20in\x20QUEUE\x20(%s)\x20block','queue_id','indexOf','XMCS-QUEUE','toLowerCase','QUEUE','macro','gosub','position','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','statusMessage','Unable\x20to\x20set\x20result\x20in\x20variable\x20%s','saydigits','Enter\x20in\x20SAYDIGITS\x20(%s)\x20block','Enter\x20in\x20SAYNUMBER\x20(%s)\x20block','sayNumber','sayphonetic','sayPhonetic','sendMail','Enter\x20in\x20SENDMAIL\x20(%s)\x20block','account_id','no\x20mail\x20account\x20configured','Smtp','no\x20mail\x20account\x20found','\x22%s\x22\x20<%s>','email','user','subject','service','host','port','secure','auth','pass','template_id','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\x20configured','getSmsAccount','sms_text','Trying\x20SendSMS\x20with\x20account\x20%s','createSmsMessage','Sms\x20message\x20added\x20to\x20outgoing\x20process','set','Enter\x20in\x20SET\x20(%s)\x20block','variable_value','start','Enter\x20in\x20START\x20(%s)\x20block','START\x20CALLY\x20SQUARE','yes','Skipped\x20Answer','subproject','project_id','no\x20subproject\x20selected','project\x20in\x20subproject\x20must\x20be\x20different\x20from\x20the\x20called\x20project','agi://%s/square,\x22%s\x22,\x22%s\x22','127.0.0.1','AGI','system','Enter\x20in\x20SYSTEM\x20(%s)\x20block','sh\x20command:\x20%s\x20result\x20on\x20variable:\x20%s','google_cloud_tts','no\x20apiKey\x20configured','Trying\x20Google\x20Cloud\x20TTS\x20%s','Google\x20Cloud\x20TTS\x20%s\x20file\x20created','Google\x20Cloud\x20TTS\x20is\x20unreachable','tts','Enter\x20in\x20GOOGLETTS\x20(%s)\x20block','Trying\x20Google\x20TTS\x20%s','Google\x20TTS\x20%s\x20file\x20created','unpause','Enter\x20in\x20UNPAUSE\x20(%s)\x20block','VOICEMAIL','mailbox','vswitch','Enter\x20in\x20SWITCH\x20(%s)\x20block','no\x20variable\x20selected','replaceAll','join','exports','path','util','lodash','shelljs','odbc','randomstring','moment','mustache','../../config/logger','agi','../../config/environment','./scripts','/var/opt/motion2/server/files','rawHeaders','rawBody','menu','rpc','mailRpc','prototype','getVariable','getVariableById','then','getVoiceQueue','getVoiceQueueById','name','catch'];(function(_0x20f08b,_0x646ea0){var _0x675062=function(_0x266c20){while(--_0x266c20){_0x20f08b['push'](_0x20f08b['shift']());}};_0x675062(++_0x646ea0);}(_0x01dd,0x1b0));var _0xd01d=function(_0x30cc1a,_0x162bbc){_0x30cc1a=_0x30cc1a-0x0;var _0xb3f18f=_0x01dd[_0x30cc1a];return _0xb3f18f;};'use strict';var fs=require('fs');var path=require(_0xd01d('0x0'));var util=require(_0xd01d('0x1'));var _=require(_0xd01d('0x2'));var sh=require(_0xd01d('0x3'));var odbc=require(_0xd01d('0x4'))();var rs=require(_0xd01d('0x5'));var moment=require(_0xd01d('0x6'));var Mustache=require(_0xd01d('0x7'));var rp=require('request-promise');var logger=require(_0xd01d('0x8'))(_0xd01d('0x9'));var config=require(_0xd01d('0xa'));var scripts=require(_0xd01d('0xb'));var FILES_PATH=_0xd01d('0xc');var recursiveMapAttributes=[_0xd01d('0xd'),_0xd01d('0xe')];var verticesWithRetry=[_0xd01d('0xf'),'getdigits','getsecretdigits'];var AGIVertices=function(_0x1bba1c,_0x22dca1,_0x51e489){this['channel']=_0x1bba1c;this[_0xd01d('0x10')]=_0x22dca1;this[_0xd01d('0x11')]=_0x51e489;};AGIVertices[_0xd01d('0x12')][_0xd01d('0x13')]=function(_0x2e8df9,_0x525b54){this[_0xd01d('0x10')][_0xd01d('0x14')](_0x2e8df9)[_0xd01d('0x15')](function(_0x235d6f){_0x525b54(null,_0x235d6f?_0x235d6f['name']:![]);})['catch'](function(_0x4fb3c2){_0x525b54(_0x4fb3c2);});};AGIVertices[_0xd01d('0x12')][_0xd01d('0x16')]=function(_0x4575b3,_0x3490d2){this[_0xd01d('0x10')][_0xd01d('0x17')](_0x4575b3)[_0xd01d('0x15')](function(_0x18027d){_0x3490d2(null,_0x18027d?_0x18027d[_0xd01d('0x18')]:![]);})[_0xd01d('0x19')](function(_0x34c642){_0x3490d2(_0x34c642);});};AGIVertices[_0xd01d('0x12')]['getSquareProject']=function(_0x444a95,_0x5bf805){this[_0xd01d('0x10')][_0xd01d('0x1a')](_0x444a95)[_0xd01d('0x15')](function(_0x16fcdc){_0x5bf805(null,_0x16fcdc?_0x16fcdc[_0xd01d('0x18')]:![]);})['catch'](function(_0x5af1f9){_0x5bf805(_0x5af1f9);});};AGIVertices['prototype']['getSquareOdbc']=function(_0x34511a,_0x3ce2c5){this['rpc'][_0xd01d('0x1b')](_0x34511a)[_0xd01d('0x15')](function(_0x1c99ed){_0x3ce2c5(null,_0x1c99ed?_0x1c99ed[_0xd01d('0x1c')]:![]);})[_0xd01d('0x19')](function(_0x51a02d){_0x3ce2c5(_0x51a02d);});};AGIVertices[_0xd01d('0x12')]['getUser']=function(_0x542439,_0x408c73){this['rpc'][_0xd01d('0x1d')](_0x542439)[_0xd01d('0x15')](function(_0x32793b){_0x408c73(null,_0x32793b?_0x32793b['name']:![]);})[_0xd01d('0x19')](function(_0x6a915f){_0x408c73(_0x6a915f);});};AGIVertices[_0xd01d('0x12')][_0xd01d('0x1e')]=function(_0x53d1d1,_0x43b2c6){this[_0xd01d('0x10')][_0xd01d('0x1f')](_0x53d1d1)[_0xd01d('0x15')](function(_0x1652de){_0x43b2c6(null,_0x1652de?_0x1652de[_0xd01d('0x18')]:![]);})[_0xd01d('0x19')](function(_0x3e3393){_0x43b2c6(_0x3e3393);});};AGIVertices[_0xd01d('0x12')][_0xd01d('0x20')]=function(_0x3393ac,_0x529011){var _0x61d854=this;this[_0xd01d('0x10')]['getSoundById'](_0x3393ac)[_0xd01d('0x15')](function(_0x12fbb3){_0x529011(null,_0x12fbb3?_0x61d854['getSoundPath'](_0x12fbb3[_0xd01d('0x21')]):![]);})[_0xd01d('0x19')](function(_0x393c5c){_0x529011(_0x393c5c);});};AGIVertices['prototype'][_0xd01d('0x22')]=function(_0x5c4e4a,_0x5632b1){this[_0xd01d('0x10')]['getMailAccountById'](_0x5c4e4a)[_0xd01d('0x15')](function(_0x128d0d){_0x5632b1(null,_0x128d0d?_0x128d0d:![]);})[_0xd01d('0x19')](function(_0x51f5a4){_0x5632b1(_0x51f5a4);});};AGIVertices[_0xd01d('0x12')][_0xd01d('0x23')]=function(_0x46bbaa,_0x20c425,_0x35b354){this[_0xd01d('0x11')][_0xd01d('0x23')](_0x46bbaa,_0x20c425)[_0xd01d('0x15')](function(){_0x35b354(null);})[_0xd01d('0x19')](function(_0x4e733f){_0x35b354(_0x4e733f);});};AGIVertices[_0xd01d('0x12')][_0xd01d('0x24')]=function(_0x468466,_0x3fdf22){this[_0xd01d('0x10')]['getIntervalById'](_0x468466)[_0xd01d('0x15')](function(_0x4c71e3){if(_0x4c71e3){if(_0x4c71e3[_0xd01d('0x25')]){_0x3fdf22(null,[_0x4c71e3[_0xd01d('0x26')]]);}else{_0x3fdf22(null,_[_0xd01d('0x27')](_0x4c71e3[_0xd01d('0x28')],_0xd01d('0x26')));}}else{_0x3fdf22(null,![]);}})[_0xd01d('0x19')](function(_0x5403e9){_0x3fdf22(_0x5403e9);});};AGIVertices[_0xd01d('0x12')][_0xd01d('0x29')]=function(_0x2cf5fd){return util[_0xd01d('0x2a')](_0xd01d('0x2b'),FILES_PATH,_0x2cf5fd);};AGIVertices['prototype'][_0xd01d('0x2c')]=function(_0x31478e,_0x1e5791,_0x1ff627){odbc[_0xd01d('0x2d')](_0x31478e,function(_0x338031){if(_0x338031){logger[_0xd01d('0x2e')](_0xd01d('0x2f'),_0x338031);_0x1ff627(_0x338031);}else{logger[_0xd01d('0x30')]('ODBC\x20connection\x20successfully');odbc[_0xd01d('0x31')](_0x1e5791,function(_0x26c603,_0x22f720){if(_0x26c603){logger[_0xd01d('0x30')](_0xd01d('0x32'),_0x1e5791);_0x1ff627(_0x26c603);}else{logger[_0xd01d('0x30')](_0xd01d('0x33'),_0x1e5791);odbc['close'](function(_0x33933b){if(_0x33933b){logger[_0xd01d('0x2e')](_0xd01d('0x34'),_0x33933b);}_0x1ff627(null,_0x22f720);});}});}});};AGIVertices['prototype']['getSmsAccount']=function(_0x4fd427,_0x2b7a9f){this[_0xd01d('0x10')][_0xd01d('0x35')](_0x4fd427)['then'](function(_0x551762){_0x2b7a9f(null,_0x551762?_0x551762:![]);})['catch'](function(_0x28a42a){_0x2b7a9f(_0x28a42a);});};AGIVertices[_0xd01d('0x12')]['createSmsMessage']=function(_0x35860e,_0x1f6c3f){this['rpc']['createSmsMessage'](_0x35860e)[_0xd01d('0x15')](function(_0x170f01){_0x1f6c3f(null,_0x170f01);})[_0xd01d('0x19')](function(_0x52ef28){_0x1f6c3f(_0x52ef28);});};AGIVertices['prototype'][_0xd01d('0x36')]=function(_0x4a92e9,_0x50ca11,_0x44e3e7){this['rpc'][_0xd01d('0x36')]({'uniqueid':this[_0xd01d('0x37')][_0xd01d('0x38')],'node':_0x4a92e9['label'],'application':_0x4a92e9[_0xd01d('0x39')],'data':_0x50ca11||null,'project_name':this[_0xd01d('0x37')]['arg_1'],'callerid':this[_0xd01d('0x37')][_0xd01d('0x3a')]})[_0xd01d('0x15')](function(_0x572668){if(_0x44e3e7){_0x44e3e7(null,_0x572668);}})[_0xd01d('0x19')](function(_0x594740){if(_0x44e3e7){_0x44e3e7(_0x594740);}});};AGIVertices[_0xd01d('0x12')]['createSquareRecording']=function(_0x5c8d78,_0x52dc10,_0x20a912,_0x20d009){this['rpc'][_0xd01d('0x3b')]({'uniqueid':this['channel'][_0xd01d('0x38')],'callerid':this[_0xd01d('0x37')][_0xd01d('0x3a')],'calleridname':this[_0xd01d('0x37')][_0xd01d('0x3c')],'context':this['channel'][_0xd01d('0x3d')],'extension':this['channel'][_0xd01d('0x3e')],'priority':this['channel'][_0xd01d('0x3f')],'accountcode':this[_0xd01d('0x37')][_0xd01d('0x40')],'dnid':this[_0xd01d('0x37')][_0xd01d('0x41')],'projectName':this[_0xd01d('0x37')][_0xd01d('0x42')],'saveName':_0x52dc10,'filename':_0x5c8d78[_0xd01d('0x43')]||_0x52dc10,'savePath':_0x20a912})['then'](function(_0x2d1bfd){_0x20d009(null,_0x2d1bfd);})[_0xd01d('0x19')](function(_0x533ed9){_0x20d009(_0x533ed9);});};AGIVertices[_0xd01d('0x12')]['createSquareMessage']=function(_0x305039,_0x50a64a,_0x322a12){this[_0xd01d('0x10')][_0xd01d('0x44')]({'uniqueid':this[_0xd01d('0x37')][_0xd01d('0x38')],'body':_0x305039,'direction':_0x50a64a})[_0xd01d('0x15')](function(_0x4afda5){if(_0x322a12){_0x322a12(null,_0x4afda5);}})[_0xd01d('0x19')](function(_0x51e10e){if(_0x322a12){_0x322a12(_0x51e10e);}});};AGIVertices['prototype'][_0xd01d('0x45')]=function(_0x2ecdc4,_0x362542){this[_0xd01d('0x10')][_0xd01d('0x45')]({'firstName':_['isEmpty'](_0x2ecdc4[_0xd01d('0x18')])||_['isNil'](_0x2ecdc4[_0xd01d('0x18')])?_0xd01d('0x46')+Math['random']():_0x2ecdc4[_0xd01d('0x18')],'lastName':_[_0xd01d('0x47')](_0x2ecdc4[_0xd01d('0x48')])||_[_0xd01d('0x49')](_0x2ecdc4['lastName'])?null:_0x2ecdc4[_0xd01d('0x48')],'phone':_0x2ecdc4[_0xd01d('0x4a')],'ListId':_0x2ecdc4[_0xd01d('0x4b')],'scheduledat':_0x2ecdc4[_0xd01d('0x4c')],'callbackUniqueid':this[_0xd01d('0x37')][_0xd01d('0x38')],'tags':_0xd01d('0x4d'),'description':_0xd01d('0x4e')+_0x2ecdc4[_0xd01d('0x4c')][_0xd01d('0x4f')](),'priority':_0x2ecdc4['callback_priority']})[_0xd01d('0x15')](function(_0x54642d){_0x362542(null,_0x54642d);})[_0xd01d('0x19')](function(_0x29c471){_0x362542(_0x29c471);});};AGIVertices[_0xd01d('0x12')][_0xd01d('0x50')]=function(_0x105df8,_0x1974ea){this['rpc'][_0xd01d('0x51')](_0x105df8)['then'](function(_0x11f2dd){_0x1974ea(null,_0x11f2dd?_0x11f2dd[_0xd01d('0x18')]:![]);})[_0xd01d('0x19')](function(_0x311146){_0x1974ea(_0x311146);});};AGIVertices[_0xd01d('0x12')][_0xd01d('0x52')]=function(_0x1211d1,_0x576994,_0x2929c5){var _0x40b91a={'role':_0xd01d('0x53')};_0x40b91a[_0x1211d1]=this[_0xd01d('0x37')][_0xd01d('0x3a')];this[_0xd01d('0x10')][_0xd01d('0x52')](_0x40b91a,_0x576994,this[_0xd01d('0x37')]['uniqueid'])[_0xd01d('0x15')](function(_0x3b907e){_0x2929c5(null,_[_0xd01d('0x49')](_0x3b907e)?![]:!![]);})['catch'](function(_0x145c65){logger[_0xd01d('0x2e')](_0x145c65);_0x2929c5(null,![]);});};AGIVertices[_0xd01d('0x12')]['agentUnpause']=function(_0x354688,_0x56ec9d){var _0x53dcc9={'role':'agent'};_0x53dcc9[_0x354688]=this[_0xd01d('0x37')][_0xd01d('0x3a')];this['rpc'][_0xd01d('0x54')](_0x53dcc9)[_0xd01d('0x15')](function(_0x46702d){_0x56ec9d(null,_[_0xd01d('0x49')](_0x46702d)?![]:!![]);})[_0xd01d('0x19')](function(_0x5bb398){logger[_0xd01d('0x2e')](_0x5bb398);_0x56ec9d(null,![]);});};AGIVertices[_0xd01d('0x12')][_0xd01d('0x55')]=function(_0x58aa17,_0x44e746){var _0x23bb73={'role':_0xd01d('0x53')};_0x23bb73[_0x58aa17]=this[_0xd01d('0x37')]['callerid'];this[_0xd01d('0x10')]['agentLogout'](_0x23bb73)['then'](function(_0x139144){_0x44e746(null,_[_0xd01d('0x49')](_0x139144)?![]:!![]);})[_0xd01d('0x19')](function(_0x14b258){logger[_0xd01d('0x2e')](_0x14b258);_0x44e746(null,![]);});};AGIVertices[_0xd01d('0x12')][_0xd01d('0x56')]=function(_0x253648,_0x13bb5a){var _0x2012fc={'role':_0xd01d('0x53')};_0x2012fc[_0x253648]=this[_0xd01d('0x37')]['callerid'];var _0x1be627=_0x253648!=_0xd01d('0x57')?util[_0xd01d('0x2a')](_0xd01d('0x58'),_0xd01d('0x59'),this[_0xd01d('0x37')][_0xd01d('0x3a')]):undefined;this['rpc']['agentLogin'](_0x2012fc,_0x1be627)[_0xd01d('0x15')](function(_0x4c7f13){_0x13bb5a(null,_['isNil'](_0x4c7f13)?![]:!![]);})[_0xd01d('0x19')](function(_0x126cf2){logger[_0xd01d('0x2e')](_0x126cf2);_0x13bb5a(null,![]);});};AGIVertices[_0xd01d('0x12')][_0xd01d('0x5a')]=function(_0x52899e,_0x2a0074){sh[_0xd01d('0x5b')](_['trim'](_0x52899e),function(_0x12dd0c,_0x1acef0){var _0xe33552=_0x1acef0[_0xd01d('0x5c')](/(\r\n|\n|\r)/gm,'');_0x2a0074(null,_0xe33552);});};AGIVertices[_0xd01d('0x12')][_0xd01d('0x5d')]=function(_0x3ccbe3,_0x555846){scripts[_0xd01d('0x5d')](_0x3ccbe3[_0xd01d('0x5e')],_0x3ccbe3[_0xd01d('0x5f')]||'text',_0x3ccbe3[_0xd01d('0x60')],_0x3ccbe3[_0xd01d('0x61')]||'en-US',_0x3ccbe3[_0xd01d('0x62')]||_0xd01d('0x63'),_0x3ccbe3[_0xd01d('0x64')]||'MP3')['then'](function(_0x2ae725){_0x555846(null,_0x2ae725);})[_0xd01d('0x19')](function(_0x46a11d){_0x555846(_0x46a11d);});};AGIVertices[_0xd01d('0x12')][_0xd01d('0x65')]=function(_0x33eaec,_0x5a2649){scripts[_0xd01d('0x65')](_0x33eaec[_0xd01d('0x60')],_0x33eaec[_0xd01d('0x66')]||'en',0x1)[_0xd01d('0x15')](function(_0x494da2){_0x5a2649(null,_0x494da2);})['catch'](function(_0x5a1625){_0x5a2649(_0x5a1625);});};AGIVertices[_0xd01d('0x12')][_0xd01d('0x67')]=function(_0x466ed1,_0x58191){var _0x4fc0a9={'uri':_0x466ed1['url'],'method':_0x466ed1[_0xd01d('0x68')],'json':!![],'resolveWithFullResponse':!![],'timeout':typeof parseInt(_0x466ed1[_0xd01d('0x69')])===_0xd01d('0x6a')&&parseInt(_0x466ed1[_0xd01d('0x69')])>=0x1?parseInt(_0x466ed1[_0xd01d('0x69')])*0x3e8:0x5*0x3e8};if(_['includes']([_0xd01d('0x6b'),_0xd01d('0x6c')],_0x4fc0a9[_0xd01d('0x68')]['toUpperCase']())){try{_0x4fc0a9[_0xd01d('0x6d')]=_0x466ed1['rawBody']?JSON[_0xd01d('0x6e')](_0x466ed1[_0xd01d('0xe')]):{};}catch(_0x59b8e9){logger['error']('An\x20incorrect\x20formatted\x20json\x20body\x20has\x20been\x20passed\x20to\x20the\x20function',_0x59b8e9);}}try{_0x4fc0a9['headers']=_0x466ed1[_0xd01d('0xd')]?JSON[_0xd01d('0x6e')](_0x466ed1['rawHeaders']):{};}catch(_0x19d7da){logger[_0xd01d('0x2e')]('An\x20incorrect\x20formatted\x20json\x20headers\x20has\x20been\x20passed\x20to\x20the\x20function',_0x19d7da);}if(_0x466ed1[_0xd01d('0x6f')]){try{var _0x3fbbad=require(_0x466ed1['computedVariables'])[_0xd01d('0x70')](this,_0x4fc0a9);_0x4fc0a9[_0xd01d('0x71')]=Mustache[_0xd01d('0x72')](_0x466ed1['url'],_0x3fbbad,{},['$$','$$']);if(_0x4fc0a9[_0xd01d('0x73')]){_0x4fc0a9[_0xd01d('0x73')]=JSON[_0xd01d('0x6e')](Mustache[_0xd01d('0x72')](JSON[_0xd01d('0x74')](_0x4fc0a9[_0xd01d('0x73')]),_0x3fbbad,{},['$$','$$']));}if(_0x4fc0a9[_0xd01d('0x6d')]){_0x4fc0a9[_0xd01d('0x6d')]=JSON[_0xd01d('0x6e')](Mustache[_0xd01d('0x72')](JSON[_0xd01d('0x74')](_0x4fc0a9['body']),_0x3fbbad,{},['$$','$$']));}}catch(_0x5b6118){logger[_0xd01d('0x2e')](_0xd01d('0x75'),_0x5b6118);}}rp(_0x4fc0a9)[_0xd01d('0x15')](function(_0x3d0114){var _0x1835a4={'statusCode':_0x3d0114[_0xd01d('0x76')]||0xc8,'statusMessage':_0x3d0114['statusMessage']||'OK','headers':_0x3d0114[_0xd01d('0x73')]||{},'body':_0x3d0114['body']||{}};_0x58191(null,_0x1835a4);})[_0xd01d('0x19')](function(_0x5e4631){var _0x3f7118={'statusCode':_0x5e4631[_0xd01d('0x76')]||0x1f4,'statusMessage':_0x5e4631[_0xd01d('0x77')]||_0xd01d('0x78'),'headers':_0x5e4631[_0xd01d('0x79')][_0xd01d('0x73')]||{},'body':_0x5e4631[_0xd01d('0x79')]['body']||{}};_0x58191(null,_0x3f7118);});};AGIVertices[_0xd01d('0x12')][_0xd01d('0x7a')]=function(_0x51412e,_0x3096c8){scripts[_0xd01d('0x7a')](this[_0xd01d('0x37')][_0xd01d('0x38')],_0x51412e[_0xd01d('0x7b')],_0x51412e['text'],_0x51412e[_0xd01d('0x7c')]||'en')[_0xd01d('0x15')](function(_0x3ec402){_0x3096c8(null,_0x3ec402);})['catch'](function(_0x5873f5){_0x3096c8(_0x5873f5);});};AGIVertices['prototype'][_0xd01d('0x7d')]=function(_0x5daa11,_0x4a7a6e){scripts[_0xd01d('0x7d')](this[_0xd01d('0x37')],_0x5daa11)['then'](function(_0x4fae95){_0x4a7a6e(null,_0x4fae95);})[_0xd01d('0x19')](function(_0x5a8687){_0x4a7a6e(_0x5a8687);});};AGIVertices[_0xd01d('0x12')][_0xd01d('0x7e')]=function(_0x556714,_0x4ceb84){scripts[_0xd01d('0x7e')](_0x556714[_0xd01d('0x7b')],_0x556714[_0xd01d('0x60')],_0x556714[_0xd01d('0x7f')]||'en-US',_0x556714[_0xd01d('0x80')])[_0xd01d('0x15')](function(_0x2b8a85){_0x4ceb84(null,_0x2b8a85);})[_0xd01d('0x19')](function(_0xae591d){_0x4ceb84(_0xae591d);});};AGIVertices[_0xd01d('0x12')][_0xd01d('0x81')]=function(_0x23a0cf,_0x2cdbe8,_0x12c910){scripts[_0xd01d('0x81')](_0x2cdbe8,_0x23a0cf[_0xd01d('0x7b')],_0x23a0cf[_0xd01d('0x82')]||_0xd01d('0x83'),this[_0xd01d('0x84')](_0x23a0cf[_0xd01d('0x85')])?_0x23a0cf[_0xd01d('0x85')]:undefined)['then'](function(_0xb81540){_0x12c910(null,_0xb81540);})[_0xd01d('0x19')](function(_0x53bc17){_0x12c910(_0x53bc17);});};AGIVertices[_0xd01d('0x12')][_0xd01d('0x86')]=function(_0x36339d,_0x429824){scripts['awsPolly'](_0x36339d[_0xd01d('0x87')],_0x36339d['aws_secret_access_key'],_0x36339d['aws_polly_region'],_0x36339d['aws_polly_voice']||_0xd01d('0x88'),_0x36339d[_0xd01d('0x60')],_0x36339d[_0xd01d('0x89')]||_0xd01d('0x60'))['then'](function(_0x289e5a){_0x429824(null,_0x289e5a);})[_0xd01d('0x19')](function(_0x204fa1){_0x429824(_0x204fa1);});};AGIVertices['prototype'][_0xd01d('0x8a')]=function(_0x5b82d0,_0x23ad8d){scripts[_0xd01d('0x8a')](this[_0xd01d('0x37')][_0xd01d('0x38')],_0x5b82d0[_0xd01d('0x87')],_0x5b82d0['aws_secret_access_key'],_0x5b82d0['aws_lex_region'],_0x5b82d0['text'],_0x5b82d0[_0xd01d('0x8b')])[_0xd01d('0x15')](function(_0x115a8a){_0x23ad8d(null,_0x115a8a);})[_0xd01d('0x19')](function(_0x2ed2b2){_0x23ad8d(_0x2ed2b2);});};AGIVertices[_0xd01d('0x12')][_0xd01d('0x8c')]=function(_0x2e1fd4,_0x4b90eb,_0x2a07da){scripts['googleASR'](_0x4b90eb,_0x2e1fd4[_0xd01d('0x7b')],_0x2e1fd4[_0xd01d('0x8d')]||_0xd01d('0x83'))[_0xd01d('0x15')](function(_0x2af7a8){_0x2a07da(null,_0x2af7a8);})[_0xd01d('0x19')](function(_0x8862f9){_0x2a07da(_0x8862f9);});};AGIVertices[_0xd01d('0x12')][_0xd01d('0x8e')]=function(_0x500bf9,_0x581799,_0x2d997f){scripts[_0xd01d('0x8e')](_0x581799,_0x500bf9[_0xd01d('0x8f')],_0x500bf9['appsecret'],_0x500bf9[_0xd01d('0x71')])[_0xd01d('0x15')](function(_0x5df227){_0x2d997f(null,_0x5df227);})[_0xd01d('0x19')](function(_0x558ae5){_0x2d997f(_0x558ae5);});};AGIVertices['prototype'][_0xd01d('0x90')]=function(_0xe19840){var _0x38869d=_[_0xd01d('0x91')](verticesWithRetry,_0xe19840[_0xd01d('0x39')])?_0xe19840:_[_0xd01d('0x92')](_0xe19840);for(var _0xe92732 in _0x38869d){if(_0x38869d[_0xd01d('0x93')](_0xe92732)){if(_0x38869d[_0xe92732]&&_[_0xd01d('0x94')](_0x38869d[_0xe92732])){if(_[_0xd01d('0x91')](recursiveMapAttributes,_0xe92732)){_0x38869d[_0xe92732]=this[_0xd01d('0x95')](_0x38869d[_0xe92732]);}else{_0x38869d[_0xe92732]=this[_0xd01d('0x96')](_0x38869d[_0xe92732]);}}}}return _0x38869d;};AGIVertices[_0xd01d('0x12')][_0xd01d('0x97')]=function(_0x27ddc0){for(var _0x2de511 in _0x27ddc0){if(_0x27ddc0[_0xd01d('0x93')](_0x2de511)){if(_[_0xd01d('0x98')](_0x27ddc0[_0x2de511])){this[_0xd01d('0x97')](_0x27ddc0[_0x2de511]);}else if(_['isArray'](_0x27ddc0[_0x2de511])){for(var _0x163959=0x0;_0x163959<_0x27ddc0[_0x2de511][_0xd01d('0x99')];_0x163959++){this[_0xd01d('0x97')](_0x27ddc0[_0x2de511][_0x163959]);}}else if(_[_0xd01d('0x94')](_0x27ddc0[_0x2de511])){_0x27ddc0[_0x2de511]=this[_0xd01d('0x96')](_0x27ddc0[_0x2de511]);}}}};AGIVertices['prototype']['saveRestApiResult']=function(_0x12094f,_0x3d3a6a){for(var _0x2a5301 in _0x12094f){if(_0x12094f['hasOwnProperty'](_0x2a5301)){if(_[_0xd01d('0x98')](_0x12094f[_0x2a5301])){if(!_[_0xd01d('0x47')](_0x12094f[_0x2a5301])){this['saveRestApiResult'](_0x12094f[_0x2a5301],util[_0xd01d('0x2a')]('%s.%s',_0x3d3a6a,_0x2a5301));}}else if(_[_0xd01d('0x9a')](_0x12094f[_0x2a5301])){for(var _0x17dc9b=0x0;_0x17dc9b<_0x12094f[_0x2a5301][_0xd01d('0x99')];_0x17dc9b++){this[_0xd01d('0x9b')](_0x12094f[_0x2a5301][_0x17dc9b],util[_0xd01d('0x2a')](_0xd01d('0x9c'),_0x3d3a6a,_0x2a5301+'['+_0x17dc9b+']'));}}else{if(!_[_0xd01d('0x49')](_0x12094f[_0x2a5301])){this['channel'][_0xd01d('0x9d')](util[_0xd01d('0x2a')]('%s.%s',_0x3d3a6a,_0x2a5301),_0x12094f[_0x2a5301]);}}}}};AGIVertices['prototype'][_0xd01d('0x95')]=function(_0x2d6f7a){try{var _0x2f9b8d=JSON[_0xd01d('0x6e')](_0x2d6f7a);this[_0xd01d('0x97')](_0x2f9b8d);return JSON['stringify'](_0x2f9b8d);}catch(_0x15018a){return this[_0xd01d('0x96')](_0x2d6f7a);}};AGIVertices[_0xd01d('0x12')][_0xd01d('0x96')]=function(_0x2cc409){var _0x544110=_0x2cc409[_0xd01d('0x9e')]('{');for(var _0x5f14d6=0x1;_0x5f14d6<_0x544110[_0xd01d('0x99')];_0x5f14d6+=0x1){var _0x2caa7f=_0x544110[_0x5f14d6][_0xd01d('0x9e')]('}');if(_0x2caa7f['length']>0x1){_0x2cc409=_0x2cc409['replaceAll']('{'+_0x2caa7f[0x0]+'}',this[_0xd01d('0x37')][_0xd01d('0x13')](_0x2caa7f[0x0])[_0xd01d('0x9f')]||_0x2caa7f[0x0]);}}if(_0x544110[_0xd01d('0x99')]===0x1){return _0x2cc409['toString']();}return this[_0xd01d('0x96')](_0x2cc409);};AGIVertices[_0xd01d('0x12')]['getAndSetVariable']=function(_0x19aa9c,_0x3d2964){var _0x3ed355=this['channel'][_0xd01d('0x13')](_0x19aa9c);if(_0x3ed355[_0xd01d('0xa0')]===-0x1){return _0x3ed355;}logger[_0xd01d('0x30')](util[_0xd01d('0x2a')](_0xd01d('0xa1'),_0x3d2964,_0x3ed355[_0xd01d('0x9f')]));return this[_0xd01d('0x37')][_0xd01d('0x9d')](_0x3d2964,_0x3ed355[_0xd01d('0x9f')]);};AGIVertices[_0xd01d('0x12')][_0xd01d('0x84')]=function(_0x24f973){return _0x24f973&&_0x24f973!=='0'&&_0x24f973!=='-1'&&_0x24f973!=='';};AGIVertices[_0xd01d('0x12')][_0xd01d('0xa2')]=function(_0x363905){this[_0xd01d('0x36')][_0xd01d('0x70')](this,_0x363905,'-');_0x363905[_0xd01d('0xa3')]=_0x363905[_0xd01d('0xa2')];return{'code':0xc8,'result':'-'};};AGIVertices[_0xd01d('0x12')][_0xd01d('0xa4')]=function(_0x2351e7){logger[_0xd01d('0x30')](util['format'](_0xd01d('0xa5'),_0x2351e7[_0xd01d('0xa6')]));if(!this[_0xd01d('0x84')](_0x2351e7['text'])){return this[_0xd01d('0x37')][_0xd01d('0xa7')](_0xd01d('0xa8'));}var _0x4e876b='\x22'+_0x2351e7[_0xd01d('0x60')]+'\x22';if(this[_0xd01d('0x84')](_0x2351e7[_0xd01d('0x79')])){_0x4e876b+=','+_0x2351e7[_0xd01d('0x79')];}var _0x21a0c3=this[_0xd01d('0x37')][_0xd01d('0x5b')]('MRCPSynth',_0x4e876b);if(_0x21a0c3['result']===-0x1){return _0x21a0c3;}return this[_0xd01d('0x37')][_0xd01d('0xa7')](util[_0xd01d('0x2a')](_0xd01d('0xa9'),_0x4e876b));};AGIVertices['prototype'][_0xd01d('0xaa')]=function(_0x2f91ed){logger['info'](util[_0xd01d('0x2a')]('Enter\x20in\x20MRCPRecog\x20(%s)\x20block',_0x2f91ed['label']));if(!this[_0xd01d('0x84')](_0x2f91ed[_0xd01d('0xab')])){return this[_0xd01d('0x37')][_0xd01d('0xa7')](_0xd01d('0xac'));}var _0x32723b=_0x2f91ed['grammar'];if(this[_0xd01d('0x84')](_0x2f91ed[_0xd01d('0x79')])){_0x32723b+=','+_0x2f91ed[_0xd01d('0x79')];}var _0x59c2f8=this['channel'][_0xd01d('0x5b')](_0xd01d('0xad'),_0x32723b);if(_0x59c2f8[_0xd01d('0xa0')]===-0x1){return _0x59c2f8;}var _0x1a6dcd=this[_0xd01d('0xae')](_0xd01d('0xaf'),_0xd01d('0xb0'));if(_0x1a6dcd['result']===-0x1){return _0x1a6dcd;}var _0x5e5499=this[_0xd01d('0xae')](_0xd01d('0xb1'),_0xd01d('0xb2'));if(_0x5e5499['result']===-0x1){return _0x5e5499;}var _0xdde0ee=this['getAndSetVariable'](_0xd01d('0xb3'),'MRCP_RECOG_INSTANCE');if(_0xdde0ee['result']===-0x1){return _0xdde0ee;}return this[_0xd01d('0x37')]['noop'](util['format'](_0xd01d('0xb4'),_0x32723b));};AGIVertices[_0xd01d('0x12')][_0xd01d('0x9')]=function(_0xda8d7e){logger[_0xd01d('0x30')](util[_0xd01d('0x2a')](_0xd01d('0xb5'),_0xda8d7e[_0xd01d('0xa6')]));return this[_0xd01d('0x37')][_0xd01d('0x9')]([_0xda8d7e[_0xd01d('0xb6')],_0xda8d7e['args']]);};AGIVertices[_0xd01d('0x12')]['answer']=function(_0x13cec7){logger['info'](util['format']('Enter\x20in\x20ANSWER\x20(%s)\x20block',_0x13cec7['label']));if(this[_0xd01d('0x84')](_0x13cec7[_0xd01d('0x69')])){logger['info'](util[_0xd01d('0x2a')](_0xd01d('0xb7'),_0x13cec7[_0xd01d('0x69')]));var _0x4ac26=this[_0xd01d('0x37')][_0xd01d('0xb8')](_0x13cec7['timeout']);if(_0x4ac26[_0xd01d('0xa0')]===-0x1){return _0x4ac26;}}return this[_0xd01d('0x37')][_0xd01d('0xb9')]();};AGIVertices['prototype'][_0xd01d('0x4d')]=function(_0x516bab){logger[_0xd01d('0x30')](util['format']('Enter\x20in\x20CALLBACK\x20(%s)\x20block',_0x516bab[_0xd01d('0xa6')]));if(!this['isConfigured'](_0x516bab[_0xd01d('0x4b')])){return this[_0xd01d('0x37')][_0xd01d('0x2e')](_0x516bab,_0xd01d('0xba'));}_0x516bab['scheduledAt']=moment();if(this[_0xd01d('0x84')](_0x516bab[_0xd01d('0xbb')])){_0x516bab[_0xd01d('0x4c')]=moment()[_0xd01d('0xbc')](_0x516bab[_0xd01d('0xbb')],_0xd01d('0xbd'));}if(!this['isConfigured'](_0x516bab[_0xd01d('0xbe')])){_0x516bab['callback_priority']=0x2;}this[_0xd01d('0x45')][_0xd01d('0x70')](this,_0x516bab);return this[_0xd01d('0x37')][_0xd01d('0xa7')](util[_0xd01d('0x2a')](_0xd01d('0xbf'),_0x516bab['phone'],_0x516bab[_0xd01d('0x4b')],_0x516bab[_0xd01d('0x4c')]));};AGIVertices[_0xd01d('0x12')][_0xd01d('0xc0')]=function(_0x97caf8){logger[_0xd01d('0x30')](util[_0xd01d('0x2a')](_0xd01d('0xc1'),_0x97caf8[_0xd01d('0xa6')]));var _0x3921b6=this[_0xd01d('0x37')][_0xd01d('0x5b')](_0x97caf8['application'],_0x97caf8[_0xd01d('0x79')]);if(_0x3921b6['result']===-0x1){return _0x3921b6;}return this[_0xd01d('0x37')][_0xd01d('0xa7')](util[_0xd01d('0x2a')](_0xd01d('0xc2'),_0x97caf8[_0xd01d('0xc3')],_0x97caf8['options']));};AGIVertices['prototype'][_0xd01d('0xc4')]=function(_0x20796e){logger[_0xd01d('0x30')](util[_0xd01d('0x2a')](_0xd01d('0xc5'),_0x20796e[_0xd01d('0xa6')]));if(!this[_0xd01d('0x84')](_0x20796e['text'])){return this[_0xd01d('0x37')][_0xd01d('0xa7')](_0xd01d('0xa8'));}var _0x4d15bf='\x22'+_0x20796e['text']+'\x22';if(this['isConfigured'](_0x20796e[_0xd01d('0x79')])){_0x4d15bf+=','+_0x20796e['options'];}var _0xc1f143=this['channel'][_0xd01d('0x5b')](_0xd01d('0xc6'),_0x4d15bf);if(_0xc1f143['result']===-0x1){return _0xc1f143;}return this[_0xd01d('0x37')][_0xd01d('0xa7')](util['format'](_0xd01d('0xa9'),_0x4d15bf));};AGIVertices[_0xd01d('0x12')][_0xd01d('0xc7')]=function(_0x16ec3f){logger[_0xd01d('0x30')](util[_0xd01d('0x2a')](_0xd01d('0xc8'),_0x16ec3f[_0xd01d('0xa6')]));if(!this[_0xd01d('0x84')](_0x16ec3f['text'])){return this[_0xd01d('0x37')]['noop'](_0xd01d('0xa8'));}var _0x5d244e='\x22'+_0x16ec3f[_0xd01d('0x60')]+'\x22';if(this[_0xd01d('0x84')](_0x16ec3f[_0xd01d('0x79')])){_0x5d244e+=','+_0x16ec3f['options'];}var _0x573139=this['channel']['exec'](_0xd01d('0xc6'),_0x5d244e);if(_0x573139[_0xd01d('0xa0')]===-0x1){return _0x573139;}return this[_0xd01d('0x37')][_0xd01d('0xa7')](util[_0xd01d('0x2a')]('Executed\x20command\x20MRCPSynth\x20%s',_0x5d244e));};AGIVertices['prototype']['lumenvoxasr']=function(_0x59a8fc){logger[_0xd01d('0x30')](util[_0xd01d('0x2a')]('Enter\x20in\x20LUMENVOXASR\x20(%s)\x20block',_0x59a8fc['label']));if(!this['isConfigured'](_0x59a8fc[_0xd01d('0xab')])){return this[_0xd01d('0x37')]['noop']('no\x20grammar\x20configured');}var _0x5e6976=_0x59a8fc[_0xd01d('0xab')];if(this['isConfigured'](_0x59a8fc[_0xd01d('0x79')])){_0x5e6976+=','+_0x59a8fc[_0xd01d('0x79')];}var _0x301454=this['channel'][_0xd01d('0x5b')]('MRCPRecog',_0x5e6976);if(_0x301454[_0xd01d('0xa0')]===-0x1){return _0x301454;}var _0x4cec2e=this[_0xd01d('0xae')](_0xd01d('0xaf'),_0xd01d('0xc9'));if(_0x4cec2e[_0xd01d('0xa0')]===-0x1){return _0x4cec2e;}var _0x8ec026=this[_0xd01d('0xae')]('RECOG_INPUT()',_0xd01d('0xca'));if(_0x8ec026['result']===-0x1){return _0x8ec026;}var _0x25c852=this[_0xd01d('0xae')]('RECOG_INSTANCE()',_0xd01d('0xcb'));if(_0x25c852['result']===-0x1){return _0x25c852;}return this[_0xd01d('0x37')]['noop'](util[_0xd01d('0x2a')](_0xd01d('0xb4'),_0x5e6976));};AGIVertices[_0xd01d('0x12')][_0xd01d('0xcc')]=function(_0x96dce1){logger[_0xd01d('0x30')](util[_0xd01d('0x2a')](_0xd01d('0xcd'),_0x96dce1[_0xd01d('0xa6')]));if(!this['isConfigured'](_0x96dce1[_0xd01d('0xab')])){return this[_0xd01d('0x37')][_0xd01d('0xa7')](_0xd01d('0xac'));}var _0x506004=_0x96dce1[_0xd01d('0xab')];if(this[_0xd01d('0x84')](_0x96dce1[_0xd01d('0x79')])){_0x506004+=','+_0x96dce1['options'];}var _0x92d75b=this['channel']['exec']('MRCPRecog',_0x506004);if(_0x92d75b[_0xd01d('0xa0')]===-0x1){return _0x92d75b;}var _0x53485c=this[_0xd01d('0xae')]('RECOG_CONFIDENCE()','SESTEK_ASR_CONFIDENCE');if(_0x53485c[_0xd01d('0xa0')]===-0x1){return _0x53485c;}var _0x2fc7b7=this[_0xd01d('0xae')](_0xd01d('0xb1'),'SESTEK_ASR_TRANSCRIPT');if(_0x2fc7b7[_0xd01d('0xa0')]===-0x1){return _0x2fc7b7;}var _0x4f048c=this[_0xd01d('0xae')](_0xd01d('0xb3'),'SESTEK_ASR_INSTANCE');if(_0x4f048c[_0xd01d('0xa0')]===-0x1){return _0x4f048c;}return this[_0xd01d('0x37')][_0xd01d('0xa7')](util[_0xd01d('0x2a')]('Executed\x20command\x20MRCPRecog\x20%s',_0x506004));};AGIVertices['prototype'][_0xd01d('0xce')]=function(_0x75afb5){logger[_0xd01d('0x30')](util[_0xd01d('0x2a')](_0xd01d('0xcf'),_0x75afb5[_0xd01d('0xa6')]));if(!this[_0xd01d('0x84')](_0x75afb5[_0xd01d('0xd0')])){return this[_0xd01d('0x37')][_0xd01d('0x2e')](_0x75afb5,_0xd01d('0xd1'));}var _0x444f8d=this['getSquareOdbc'][_0xd01d('0x70')](this,_0x75afb5[_0xd01d('0xd0')]);if(!_0x444f8d){return this[_0xd01d('0x37')]['error'](_0x75afb5,_0xd01d('0xd2'));}if(!this[_0xd01d('0x84')](_0x75afb5[_0xd01d('0x31')])){return this[_0xd01d('0x37')][_0xd01d('0x2e')](_0x75afb5,_0xd01d('0xd3'));}var _0x58613a=_0x75afb5[_0xd01d('0x31')]['replace'](/(\r\n|\n|\r)/gm,'\x20');this['channel'][_0xd01d('0xa7')](util[_0xd01d('0x2a')](_0xd01d('0xd4'),_0x58613a));var _0x4c7b95=this[_0xd01d('0x2c')][_0xd01d('0x70')](this,_0x444f8d,_0x58613a);this[_0xd01d('0x36')][_0xd01d('0x70')](this,_0x75afb5,_0x58613a);if(!this[_0xd01d('0x84')](_0x75afb5[_0xd01d('0xd5')])){return this[_0xd01d('0x37')][_0xd01d('0xa7')](_0xd01d('0xd6'));}var _0x3b4785=this[_0xd01d('0x13')][_0xd01d('0x70')](this,_0x75afb5[_0xd01d('0xd5')]);if(!_0x3b4785){return this[_0xd01d('0x37')][_0xd01d('0x2e')](_0x75afb5,_0xd01d('0xd7'));}var _0x150f31=this;_0x4c7b95[_0xd01d('0xd8')](function(_0x3bab6f,_0x5b5a2f){Object[_0xd01d('0xd9')](_0x3bab6f)[_0xd01d('0xd8')](function(_0x18a4b5){_0x150f31[_0xd01d('0x37')]['setVariable'](util['format'](_0xd01d('0xda'),_0x3b4785,_0x5b5a2f,_0x18a4b5),_0x3bab6f[_0x18a4b5]);});});this['channel'][_0xd01d('0x9d')](util[_0xd01d('0x2a')](_0xd01d('0xdb'),_0x3b4785),_0x4c7b95['length']);return this[_0xd01d('0x37')][_0xd01d('0xa7')](util[_0xd01d('0x2a')](_0xd01d('0xdc'),_0x3b4785));};AGIVertices['prototype']['dial']=function(_0x175b15){logger[_0xd01d('0xdd')](util[_0xd01d('0x2a')](_0xd01d('0xde'),_0x175b15[_0xd01d('0xa6')]));if(!this[_0xd01d('0x84')](_0x175b15[_0xd01d('0xdf')])){return this[_0xd01d('0x37')][_0xd01d('0x2e')](_0x175b15,_0xd01d('0xe0'));}var _0x1349a4=this[_0xd01d('0xe1')][_0xd01d('0x70')](this,_0x175b15[_0xd01d('0xdf')]);if(!_0x1349a4){return this['channel'][_0xd01d('0x2e')](_0x175b15,_0xd01d('0xe2'));}var _0x560bc0=this[_0xd01d('0x37')][_0xd01d('0x5b')](_0xd01d('0xe3'),[util[_0xd01d('0x2a')](_0xd01d('0xe4'),_0x1349a4),_0x175b15[_0xd01d('0x69')],_0x175b15[_0xd01d('0xe5')],_0x175b15[_0xd01d('0xe6')]]);if(_0x560bc0[_0xd01d('0xa0')]===-0x1){return _0x560bc0;}return this[_0xd01d('0x37')][_0xd01d('0xa7')](util['format']('Executed\x20command\x20%s','DIAL'));};AGIVertices['prototype'][_0xd01d('0xe7')]=function(_0xed3dcd){logger[_0xd01d('0x30')](util[_0xd01d('0x2a')]('Enter\x20in\x20DIALOGFLOW\x20(%s)\x20block',_0xed3dcd[_0xd01d('0xa6')]));if(!this[_0xd01d('0x84')](_0xed3dcd['key'])){return this['channel']['noop'](_0xd01d('0xe8'));}if(!this[_0xd01d('0x84')](_0xed3dcd['text'])){return this[_0xd01d('0x37')]['noop'](_0xd01d('0xa8'));}this[_0xd01d('0x37')]['bot']=!![];this[_0xd01d('0x36')](_0xed3dcd);this[_0xd01d('0x44')](_0xed3dcd['text'],'in');this[_0xd01d('0x37')][_0xd01d('0xa7')](util[_0xd01d('0x2a')](_0xd01d('0xe9'),_0xed3dcd['text']));var _0x2abbb0=this[_0xd01d('0x7a')][_0xd01d('0x70')](this,_0xed3dcd);if(_0x2abbb0){for(var _0x423a00 in _0x2abbb0){if(_0x2abbb0[_0xd01d('0x93')](_0x423a00)){this[_0xd01d('0x37')][_0xd01d('0x9d')](util['format'](_0xd01d('0xea'),_0x423a00[_0xd01d('0xeb')]()),_0x2abbb0[_0x423a00]);}}this[_0xd01d('0x44')](_0x2abbb0['speech'],_0xd01d('0xec'));return this['channel'][_0xd01d('0xa7')](util[_0xd01d('0x2a')]('Dialogflow\x20Result\x20%s',_0x2abbb0[_0xd01d('0xed')]));}return this[_0xd01d('0x37')][_0xd01d('0x2e')](_0xed3dcd,_0xd01d('0xee'));};AGIVertices[_0xd01d('0x12')][_0xd01d('0xef')]=function(_0x2c2960){logger['info'](util['format'](_0xd01d('0xf0'),_0x2c2960[_0xd01d('0xa6')]));if(!this[_0xd01d('0x84')](_0x2c2960[_0xd01d('0xf1')])){return this[_0xd01d('0x37')][_0xd01d('0xa7')]('no\x20ndauth\x20url\x20configured');}if(!this[_0xd01d('0x84')](_0x2c2960['username'])){return this['channel'][_0xd01d('0xa7')](_0xd01d('0xf2'));}if(!this[_0xd01d('0x84')](_0x2c2960[_0xd01d('0xf3')])){return this[_0xd01d('0x37')][_0xd01d('0xa7')](_0xd01d('0xf4'));}if(!this[_0xd01d('0x84')](_0x2c2960['ndassistant_url'])){return this[_0xd01d('0x37')][_0xd01d('0xa7')](_0xd01d('0xa8'));}this[_0xd01d('0x37')][_0xd01d('0xf5')]=!![];this[_0xd01d('0x36')](_0x2c2960);this[_0xd01d('0x44')](_0x2c2960[_0xd01d('0x60')],'in');this[_0xd01d('0x37')][_0xd01d('0xa7')](util[_0xd01d('0x2a')]('Trying\x20SestekNDA:\x20%s',_0x2c2960[_0xd01d('0x60')]));var _0x5aeba9=this[_0xd01d('0x7d')]['sync'](this,_0x2c2960);if(_0x5aeba9){for(var _0x18dc40 in _0x5aeba9){if(_0x5aeba9['hasOwnProperty'](_0x18dc40)){this[_0xd01d('0x37')][_0xd01d('0x9d')](util[_0xd01d('0x2a')](_0xd01d('0xf6'),_0x18dc40['toUpperCase']()),_0x5aeba9[_0x18dc40]);}}this[_0xd01d('0x44')](_0x5aeba9[_0xd01d('0xed')],_0xd01d('0xec'));if(_0x5aeba9[_0xd01d('0xf7')]){this[_0xd01d('0x37')][_0xd01d('0xa7')](util[_0xd01d('0x2a')](_0xd01d('0xf8'),_0x5aeba9[_0xd01d('0xf7')]));var _0x4fc1b4=this[_0xd01d('0x37')][_0xd01d('0xf9')](_0x5aeba9[_0xd01d('0xf7')]);try{fs[_0xd01d('0xfa')](_0x5aeba9['audiofile']+_0xd01d('0xfb'));}catch(_0x4ce5eb){logger[_0xd01d('0x2e')](_0x4ce5eb);}return _0x4fc1b4;}else{return this[_0xd01d('0x37')]['noop'](util[_0xd01d('0x2a')](_0xd01d('0xfc'),_0x5aeba9[_0xd01d('0xed')]));}}return this[_0xd01d('0x37')][_0xd01d('0x2e')](_0x2c2960,'SestekNDA\x20is\x20unreachable');};AGIVertices['prototype'][_0xd01d('0xfd')]=function(_0x50b8e3){logger[_0xd01d('0x30')](util[_0xd01d('0x2a')](_0xd01d('0xfe'),_0x50b8e3[_0xd01d('0xa6')]));return this[_0xd01d('0x37')][_0xd01d('0xa7')](_0xd01d('0xfd'));};AGIVertices[_0xd01d('0x12')]['ext_dial']=function(_0x38945d){logger[_0xd01d('0x30')](util[_0xd01d('0x2a')](_0xd01d('0xff'),_0x38945d[_0xd01d('0xa6')]));var _0x469736='';if(_0x38945d[_0xd01d('0x100')]){if(!this[_0xd01d('0x84')](_0x38945d[_0xd01d('0x100')])){return this[_0xd01d('0x37')]['error'](_0x38945d,'no\x20trunk\x20selected');}else{var _0x309afc=parseInt(_0x38945d[_0xd01d('0x100')],0xa);if(isNaN(_0x309afc)){_0x469736=_0x38945d['trunk_id'];}else{_0x469736=this[_0xd01d('0x1e')][_0xd01d('0x70')](this,_0x38945d[_0xd01d('0x100')]);if(!_0x469736){return this['channel'][_0xd01d('0x2e')](_0x38945d,_0xd01d('0x101'));}}}}else if(_0x38945d[_0xd01d('0x102')]){_0x469736=_0x38945d[_0xd01d('0x102')];}else{return this[_0xd01d('0x37')]['error'](_0x38945d,'no\x20trunk\x20selected');}var _0x78060a=this[_0xd01d('0x37')]['exec'](_0xd01d('0xe3'),[util[_0xd01d('0x2a')](_0xd01d('0x103'),_0x469736,_0x38945d[_0xd01d('0x4a')]),_0x38945d['timeout'],_0x38945d[_0xd01d('0xe5')],_0x38945d['url']]);if(_0x78060a['result']===-0x1){return _0x78060a;}return this[_0xd01d('0x37')][_0xd01d('0xa7')](util[_0xd01d('0x2a')](_0xd01d('0x104'),_0xd01d('0xe3')));};AGIVertices[_0xd01d('0x12')][_0xd01d('0x105')]=function(_0x182986){logger[_0xd01d('0x30')](util[_0xd01d('0x2a')](_0xd01d('0x106'),_0x182986[_0xd01d('0xa6')]));return this[_0xd01d('0x37')][_0xd01d('0xa7')](_0xd01d('0x105'));};AGIVertices['prototype'][_0xd01d('0x107')]=function(_0x41a870){logger['info'](util[_0xd01d('0x2a')](_0xd01d('0x108'),_0x41a870[_0xd01d('0xa6')]));if(_0x41a870['retry']===0x0){return this['maxRetry'](_0x41a870);}_0x41a870[_0xd01d('0xa3')]-=0x1;if(!this[_0xd01d('0x84')](_0x41a870[_0xd01d('0x109')])){return this['channel'][_0xd01d('0x2e')](_0x41a870,'no\x20file\x20audio\x20selected');}var _0x448cd6=this[_0xd01d('0x20')][_0xd01d('0x70')](this,_0x41a870[_0xd01d('0x109')]);if(!_0x448cd6){return this[_0xd01d('0x37')]['error'](_0x41a870,_0xd01d('0x10a'));}if(!this[_0xd01d('0x84')](_0x41a870[_0xd01d('0xd5')])){return this[_0xd01d('0x37')][_0xd01d('0x2e')]('no\x20variable\x20selected\x20for\x20the\x20result');}var _0x2a682a=this[_0xd01d('0x37')][_0xd01d('0x10b')](_0x448cd6,_0x41a870[_0xd01d('0x10c')],_0x41a870[_0xd01d('0x10d')]);var _0x45cd2c=_0x2a682a[_0xd01d('0xa0')]?_0x2a682a[_0xd01d('0xa0')][_0xd01d('0x4f')]():'';logger[_0xd01d('0x30')](_0xd01d('0x10e'),JSON[_0xd01d('0x74')](_0x2a682a));if(_0x2a682a['result']===-0x1){this[_0xd01d('0x36')][_0xd01d('0x70')](this,_0x41a870,_0x45cd2c);return _0x2a682a;}else if(_0x2a682a['extra']===_0xd01d('0x69')){_0x2a682a[_0xd01d('0xa0')]=_0x45cd2c['length']>=parseInt(_0x41a870[_0xd01d('0x10f')])?'x':'i';}else{_0x2a682a[_0xd01d('0xa0')]=_0x45cd2c[_0xd01d('0x99')]>=parseInt(_0x41a870['mindigit'])&&_0x45cd2c[_0xd01d('0x99')]<=parseInt(_0x41a870[_0xd01d('0x10d')])?'x':'i';}var _0x5ef5ab=this[_0xd01d('0x13')][_0xd01d('0x70')](this,_0x41a870['variable_id']);if(!_0x5ef5ab){return this[_0xd01d('0x37')][_0xd01d('0x2e')](_0x41a870,_0xd01d('0xd7'));}this['channel'][_0xd01d('0x9d')](_0x5ef5ab,_0x45cd2c);if(this[_0xd01d('0x84')](_0x41a870[_0xd01d('0x110')])){var _0x17da0c=parseInt(_0x41a870[_0xd01d('0x110')],0xa);var _0x2919ae=rs[_0xd01d('0x111')]({'charset':'*','length':_0x17da0c});var _0xa2c06d=_0x45cd2c[_0xd01d('0x99')];if(_0xa2c06d>0x0){if(_0xa2c06d>_0x17da0c){this['createSquareDetailsReport']['sync'](this,_0x41a870,_0x41a870['hiddendigitspos']==='first'?_0x2919ae+_0x45cd2c[_0xd01d('0x112')](_0x17da0c):_0x45cd2c['substr'](0x0,_0xa2c06d-_0x17da0c)+_0x2919ae);}else{this[_0xd01d('0x36')][_0xd01d('0x70')](this,_0x41a870,rs['generate']({'charset':'*','length':_0xa2c06d}));}}else{this[_0xd01d('0x36')][_0xd01d('0x70')](this,_0x41a870,'');}}else{this[_0xd01d('0x36')][_0xd01d('0x70')](this,_0x41a870,_0x45cd2c);}return _0x2a682a;};AGIVertices[_0xd01d('0x12')][_0xd01d('0x113')]=function(_0x13853e){logger[_0xd01d('0x30')](util[_0xd01d('0x2a')]('Enter\x20in\x20GETSECRETDIGITS\x20(%s)\x20block',_0x13853e[_0xd01d('0xa6')]));return this['getdigits'](_0x13853e);};AGIVertices[_0xd01d('0x12')][_0xd01d('0x114')]=function(_0x17eafc){logger[_0xd01d('0x30')](util['format'](_0xd01d('0x115'),_0x17eafc['label']));this['createSquareDetailsReport']['sync'](this,_0x17eafc,_0x17eafc[_0xd01d('0x116')]);return this[_0xd01d('0x37')][_0xd01d('0xa7')](util[_0xd01d('0x2a')](_0xd01d('0x117'),_0x17eafc[_0xd01d('0x116')]));};AGIVertices[_0xd01d('0x12')][_0xd01d('0x118')]=function(_0x365dba){logger['info'](util[_0xd01d('0x2a')]('[AGI]\x20Enter\x20in\x20AWSPOLLY\x20(%s)\x20block',_0x365dba[_0xd01d('0xa6')]));if(!this[_0xd01d('0x84')](_0x365dba[_0xd01d('0x87')])||!this[_0xd01d('0x84')](_0x365dba['aws_secret_access_key'])){return this[_0xd01d('0x37')]['noop'](_0xd01d('0x119'));}if(!this[_0xd01d('0x84')](_0x365dba['text'])){return this[_0xd01d('0x37')]['noop'](_0xd01d('0xa8'));}this[_0xd01d('0x37')]['noop'](util[_0xd01d('0x2a')](_0xd01d('0x11a'),_0x365dba[_0xd01d('0x60')]));var _0x4ed6f4=this[_0xd01d('0x86')][_0xd01d('0x70')](this,_0x365dba);if(_0x4ed6f4){this['channel'][_0xd01d('0xa7')](util[_0xd01d('0x2a')](_0xd01d('0x11b'),_0x4ed6f4));var _0x7b5482=this[_0xd01d('0x37')][_0xd01d('0xf9')](_0x4ed6f4);try{fs['unlink'](_0x4ed6f4+_0xd01d('0xfb'));}catch(_0x293317){logger[_0xd01d('0x2e')](_0x293317);}return _0x7b5482;}return this['channel'][_0xd01d('0x2e')](_0x365dba,_0xd01d('0x11c'));};AGIVertices[_0xd01d('0x12')][_0xd01d('0x11d')]=function(_0x4ca33d){logger[_0xd01d('0x30')](util['format'](_0xd01d('0x11e'),_0x4ca33d[_0xd01d('0xa6')]));if(!this[_0xd01d('0x84')](_0x4ca33d['aws_access_key_id'])||!this[_0xd01d('0x84')](_0x4ca33d['aws_secret_access_key'])){return this[_0xd01d('0x37')]['noop'](_0xd01d('0x119'));}if(!this['isConfigured'](_0x4ca33d[_0xd01d('0x8b')])){return this[_0xd01d('0x37')][_0xd01d('0xa7')](_0xd01d('0x11f'));}if(!this[_0xd01d('0x84')](_0x4ca33d['text'])){return this[_0xd01d('0x37')]['noop']('no\x20text\x20configured');}this['channel']['bot']=!![];this[_0xd01d('0x36')](_0x4ca33d);this[_0xd01d('0x44')](_0x4ca33d[_0xd01d('0x60')],'in');this[_0xd01d('0x37')][_0xd01d('0xa7')](util[_0xd01d('0x2a')](_0xd01d('0x120'),_0x4ca33d[_0xd01d('0x60')]));var _0x275574=this[_0xd01d('0x8a')][_0xd01d('0x70')](this,_0x4ca33d);if(_0x275574){for(var _0x1fc8d6 in _0x275574){if(_0x275574[_0xd01d('0x93')](_0x1fc8d6)&&_[_0xd01d('0x94')](_0x275574[_0x1fc8d6])){this[_0xd01d('0x37')][_0xd01d('0x9d')](util[_0xd01d('0x2a')](_0xd01d('0x121'),_0x1fc8d6[_0xd01d('0xeb')]()),_0x275574[_0x1fc8d6]);}}if(_[_0xd01d('0x49')](_0x275574['message'])){return this[_0xd01d('0x37')][_0xd01d('0xa7')](_0xd01d('0x122'));}else{this['createSquareMessage'](_0x275574[_0xd01d('0x77')],_0xd01d('0xec'));return this[_0xd01d('0x37')][_0xd01d('0xa7')](util[_0xd01d('0x2a')](_0xd01d('0x123'),_0x275574[_0xd01d('0x77')]));}}return this[_0xd01d('0x37')][_0xd01d('0x2e')](_0x4ca33d,_0xd01d('0x124'));};AGIVertices['prototype'][_0xd01d('0x125')]=function(_0xbd0850){logger['info'](util[_0xd01d('0x2a')](_0xd01d('0x126'),_0xbd0850[_0xd01d('0xa6')],_0xbd0850[_0xd01d('0x69')]));if(!this[_0xd01d('0x84')](_0xbd0850['key'])){return this['channel']['noop'](_0xd01d('0xe8'));}var _0x50c1d0=_0xd01d('0x127');var _0x3a432d=util['format']('%s/recordings/%s',FILES_PATH,rs[_0xd01d('0x111')](0x4));var _0x501696=util[_0xd01d('0x2a')]('%s.%s',_0x3a432d,_0x50c1d0);var _0x3ff6df=!![];if(_0xbd0850[_0xd01d('0x128')]==='NOBEEP'){_0x3ff6df=![];}var _0x211391=this[_0xd01d('0x37')][_0xd01d('0x129')](_0x3a432d,_0x50c1d0,_0xbd0850['intKey'],_0xbd0850[_0xd01d('0x69')],undefined,_0x3ff6df);if(_0x211391['result']!==-0x1){this[_0xd01d('0x37')]['noop'](util['format']('google\x20%s\x20file\x20created',_0x501696));var _0x18a5c4=this[_0xd01d('0x8c')][_0xd01d('0x70')](this,_0xbd0850,_0x501696);if(_0x18a5c4){for(var _0x161d3a in _0x18a5c4){if(_0x18a5c4[_0xd01d('0x93')](_0x161d3a)){this[_0xd01d('0x37')][_0xd01d('0x9d')](util[_0xd01d('0x2a')]('GOOGLE_ASR_%s',_0x161d3a[_0xd01d('0xeb')]()),_0x18a5c4[_0x161d3a]);}}return this[_0xd01d('0x37')][_0xd01d('0xa7')](util[_0xd01d('0x2a')](_0xd01d('0x12a'),JSON['stringify'](_0x18a5c4)));}}return _0x211391;};AGIVertices['prototype'][_0xd01d('0x12b')]=function(_0x2bfede){logger['info'](util[_0xd01d('0x2a')]('Enter\x20in\x20TILDEASR\x20(%s)\x20block',_0x2bfede[_0xd01d('0xa6')]));if(!this[_0xd01d('0x84')](_0x2bfede['appid'])){return this[_0xd01d('0x37')][_0xd01d('0xa7')](_0xd01d('0x12c'));}if(!this['isConfigured'](_0x2bfede[_0xd01d('0x12d')])){return this[_0xd01d('0x37')]['noop'](_0xd01d('0x12e'));}var _0x38567c='wav';var _0x191b57=util['format'](_0xd01d('0x12f'),FILES_PATH,rs[_0xd01d('0x111')](0x4));var _0x1f2636=util[_0xd01d('0x2a')](_0xd01d('0x9c'),_0x191b57,_0x38567c);var _0xcd9230=!![];if(_0x2bfede['beep']==='NOBEEP'){_0xcd9230=![];}var _0x344340=this[_0xd01d('0x37')][_0xd01d('0x129')](_0x191b57,_0x38567c,_0x2bfede[_0xd01d('0x130')],_0x2bfede['timeout'],undefined,_0xcd9230);if(_0x344340[_0xd01d('0xa0')]!==-0x1){this[_0xd01d('0x37')][_0xd01d('0xa7')](util[_0xd01d('0x2a')](_0xd01d('0x131'),_0x1f2636));var _0x14935b=this['tildeASR']['sync'](this,_0x2bfede,_0x1f2636);if(_0x14935b){for(var _0x47d674 in _0x14935b){if(_0x14935b[_0xd01d('0x93')](_0x47d674)){this[_0xd01d('0x37')]['setVariable'](util[_0xd01d('0x2a')](_0xd01d('0x132'),_0x47d674[_0xd01d('0xeb')]()),_0x14935b[_0x47d674]);}}return this[_0xd01d('0x37')][_0xd01d('0xa7')](util[_0xd01d('0x2a')](_0xd01d('0x133'),JSON[_0xd01d('0x74')](_0x14935b)));}}return _0x344340;};AGIVertices[_0xd01d('0x12')][_0xd01d('0x134')]=function(_0x27e326){logger[_0xd01d('0x30')](util['format'](_0xd01d('0x135'),_0x27e326[_0xd01d('0xa6')]));return this['channel']['continueAt'](_0x27e326[_0xd01d('0x3d')],_0x27e326[_0xd01d('0x3e')],_0x27e326[_0xd01d('0x3f')]);};AGIVertices[_0xd01d('0x12')][_0xd01d('0x136')]=function(_0x42369f){logger[_0xd01d('0x30')](util['format'](_0xd01d('0x137'),_0x42369f[_0xd01d('0xa6')]));if(!this[_0xd01d('0x84')](_0x42369f[_0xd01d('0x138')])){return this[_0xd01d('0x37')][_0xd01d('0x2e')](_0x42369f,_0xd01d('0x139'));}try{var _0x126e05=eval(_0x42369f['condition'])?_0xd01d('0x13a'):_0xd01d('0x13b');this['channel'][_0xd01d('0xa7')](util[_0xd01d('0x2a')](_0xd01d('0x13c'),_0x42369f[_0xd01d('0x138')],_0x126e05));return{'code':0xc8,'result':_0x126e05};}catch(_0x2eb508){return{'code':0xc8,'result':_0xd01d('0x13b')};}};AGIVertices[_0xd01d('0x12')][_0xd01d('0x13d')]=function(_0xe4a18d){logger[_0xd01d('0x30')](util[_0xd01d('0x2a')](_0xd01d('0x13e'),_0xe4a18d[_0xd01d('0xa6')]));if(!this[_0xd01d('0x84')](_0xe4a18d[_0xd01d('0x13f')])){return this[_0xd01d('0x37')]['error'](_0xe4a18d,_0xd01d('0x140'));}var _0x32a534=this[_0xd01d('0x24')][_0xd01d('0x70')](this,_0xe4a18d[_0xd01d('0x13f')]);if(!_0x32a534){return this['channel'][_0xd01d('0x2e')](_0xe4a18d,_0xd01d('0x141'));}for(var _0x53578a=0x0;_0x53578a<_0x32a534['length'];_0x53578a+=0x1){var _0x5ca950=this[_0xd01d('0x37')][_0xd01d('0x13')](util[_0xd01d('0x2a')](_0xd01d('0x142'),_0x32a534[_0x53578a]));if(_0x5ca950['result']===-0x1){return _0x5ca950;}logger[_0xd01d('0x30')](util[_0xd01d('0x2a')](_0xd01d('0x143'),_0x32a534[_0x53578a],_0x5ca950['extra']));if(_0x5ca950[_0xd01d('0x9f')]===_0xd01d('0x13a')){logger[_0xd01d('0x30')](util['format']('IFTIME\x20%s\x20%s',_0x32a534[_0x53578a],_0xd01d('0x13a')));this[_0xd01d('0x37')][_0xd01d('0xa7')](util[_0xd01d('0x2a')](_0xd01d('0x143'),_0x32a534[_0x53578a],_0xd01d('0x13a')));return{'code':0xc8,'result':'true'};}else{logger[_0xd01d('0x30')](util['format'](_0xd01d('0x143'),_0x32a534[_0x53578a],_0xd01d('0x13b')));this[_0xd01d('0x37')][_0xd01d('0xa7')](util[_0xd01d('0x2a')](_0xd01d('0x143'),_0x32a534[_0x53578a],_0xd01d('0x13b')));}}return{'code':0xc8,'result':'false'};};AGIVertices['prototype'][_0xd01d('0x144')]=function(_0x3df6ac){logger[_0xd01d('0x30')](util[_0xd01d('0x2a')]('Enter\x20in\x20HANGUP\x20(%s)\x20block',_0x3df6ac[_0xd01d('0xa6')]));return this[_0xd01d('0x37')][_0xd01d('0x144')]();};AGIVertices[_0xd01d('0x12')]['ispeechasr']=function(_0x560c32){logger[_0xd01d('0x30')](util[_0xd01d('0x2a')](_0xd01d('0x145'),_0x560c32[_0xd01d('0xa6')]));if(!this[_0xd01d('0x84')](_0x560c32['key'])){return this[_0xd01d('0x37')][_0xd01d('0xa7')]('no\x20key\x20configured');}var _0x4e424f=_0xd01d('0x127');var _0x1ea69f=util[_0xd01d('0x2a')](_0xd01d('0x12f'),FILES_PATH,rs[_0xd01d('0x111')](0x4));var _0x1a3324=util[_0xd01d('0x2a')](_0xd01d('0x9c'),_0x1ea69f,_0x4e424f);var _0x512eaf=!![];if(_0x560c32[_0xd01d('0x128')]===_0xd01d('0x146')){_0x512eaf=![];}var _0x2eca31=this[_0xd01d('0x37')][_0xd01d('0x129')](_0x1ea69f,_0x4e424f,_0x560c32[_0xd01d('0x130')],_0x560c32[_0xd01d('0x69')],undefined,_0x512eaf);if(_0x2eca31['result']!==-0x1){this[_0xd01d('0x37')][_0xd01d('0xa7')](util[_0xd01d('0x2a')]('ispeech\x20%s\x20file\x20created',_0x1a3324));var _0x3bb072=this[_0xd01d('0x81')]['sync'](this,_0x560c32,_0x1a3324);if(_0x3bb072){for(var _0x34cd5e in _0x3bb072){if(_0x3bb072['hasOwnProperty'](_0x34cd5e)){this[_0xd01d('0x37')][_0xd01d('0x9d')](util[_0xd01d('0x2a')](_0xd01d('0x147'),_0x34cd5e['toUpperCase']()),_0x3bb072[_0x34cd5e]);}}return this[_0xd01d('0x37')][_0xd01d('0xa7')](util[_0xd01d('0x2a')](_0xd01d('0x148'),JSON[_0xd01d('0x74')](_0x3bb072)));}}return _0x2eca31;};AGIVertices['prototype']['ispeechtts']=function(_0x17a403){logger[_0xd01d('0x30')](util['format'](_0xd01d('0x149'),_0x17a403[_0xd01d('0xa6')]));if(!this[_0xd01d('0x84')](_0x17a403['key'])){return this['channel'][_0xd01d('0xa7')]('no\x20key\x20configured');}if(!this['isConfigured'](_0x17a403[_0xd01d('0x60')])){return this['channel']['noop']('no\x20text\x20configured');}this[_0xd01d('0x37')]['noop'](util[_0xd01d('0x2a')](_0xd01d('0x14a'),_0x17a403['text']));var _0x3adab5=this[_0xd01d('0x7e')][_0xd01d('0x70')](this,_0x17a403);if(_0x3adab5){this[_0xd01d('0x37')][_0xd01d('0xa7')](util[_0xd01d('0x2a')]('ispeech\x20%s\x20file\x20created',_0x3adab5));var _0x3bf002=this[_0xd01d('0x37')][_0xd01d('0xf9')](_0x3adab5,_0x17a403[_0xd01d('0x130')]);try{fs[_0xd01d('0xfa')](_0x3adab5+_0xd01d('0xfb'));}catch(_0x34f087){logger[_0xd01d('0x2e')](_0x34f087);}return _0x3bf002;}return this['channel']['error'](_0x17a403,_0xd01d('0x14b'));};AGIVertices['prototype'][_0xd01d('0x14c')]=function(_0x2682b9){logger['info'](util[_0xd01d('0x2a')](_0xd01d('0x14d'),_0x2682b9[_0xd01d('0xa6')]));if(!this[_0xd01d('0x84')](_0x2682b9[_0xd01d('0x14e')])){return this['channel'][_0xd01d('0x2e')](_0x2682b9,_0xd01d('0x14f'));}logger['info'](util[_0xd01d('0x2a')](_0xd01d('0x150'),this[_0xd01d('0x37')][_0xd01d('0x3a')],_0x2682b9[_0xd01d('0x14e')]));var _0x282c39=this['agentLogin'][_0xd01d('0x70')](this,_0x2682b9[_0xd01d('0x14e')]);if(_0x282c39){logger[_0xd01d('0x30')](util[_0xd01d('0x2a')](_0xd01d('0x151'),this['channel']['callerid'],_0x2682b9[_0xd01d('0x14e')]));this[_0xd01d('0x37')][_0xd01d('0xa7')](util[_0xd01d('0x2a')]('AGENT\x20%s\x20FOUND\x20BY',this[_0xd01d('0x37')][_0xd01d('0x3a')],_0x2682b9[_0xd01d('0x14e')]));return{'code':0xc8,'result':_0xd01d('0x152')};}else{logger['info'](util[_0xd01d('0x2a')](_0xd01d('0x153'),this['channel'][_0xd01d('0x3a')],_0x2682b9[_0xd01d('0x14e')]));this['channel'][_0xd01d('0xa7')](util['format'](_0xd01d('0x153'),this[_0xd01d('0x37')]['callerid'],_0x2682b9[_0xd01d('0x14e')]));return{'code':0xc8,'result':_0xd01d('0x154')};}};AGIVertices[_0xd01d('0x12')][_0xd01d('0x155')]=function(_0x1bc3fe){logger[_0xd01d('0x30')](util[_0xd01d('0x2a')](_0xd01d('0x156'),_0x1bc3fe[_0xd01d('0xa6')]));if(!this['isConfigured'](_0x1bc3fe['findBy'])){return this[_0xd01d('0x37')][_0xd01d('0x2e')](_0x1bc3fe,_0xd01d('0x14f'));}logger[_0xd01d('0x30')](util[_0xd01d('0x2a')](_0xd01d('0x150'),this[_0xd01d('0x37')][_0xd01d('0x3a')],_0x1bc3fe[_0xd01d('0x14e')]));var _0x59bf7f=this['agentLogout'][_0xd01d('0x70')](this,_0x1bc3fe[_0xd01d('0x14e')]);if(_0x59bf7f){logger['info'](util[_0xd01d('0x2a')](_0xd01d('0x151'),this[_0xd01d('0x37')][_0xd01d('0x3a')],_0x1bc3fe[_0xd01d('0x14e')]));this['channel'][_0xd01d('0xa7')](util[_0xd01d('0x2a')](_0xd01d('0x151'),this[_0xd01d('0x37')][_0xd01d('0x3a')],_0x1bc3fe[_0xd01d('0x14e')]));return{'code':0xc8,'result':_0xd01d('0x152')};}else{logger[_0xd01d('0x30')](util['format'](_0xd01d('0x153'),this[_0xd01d('0x37')]['callerid'],_0x1bc3fe[_0xd01d('0x14e')]));this[_0xd01d('0x37')][_0xd01d('0xa7')](util[_0xd01d('0x2a')](_0xd01d('0x153'),this[_0xd01d('0x37')][_0xd01d('0x3a')],_0x1bc3fe[_0xd01d('0x14e')]));return{'code':0xc8,'result':_0xd01d('0x154')};}};AGIVertices[_0xd01d('0x12')]['math']=function(_0x7dfbb6){logger[_0xd01d('0x30')](util[_0xd01d('0x2a')](_0xd01d('0x157'),_0x7dfbb6[_0xd01d('0xa6')]));if(!this[_0xd01d('0x84')](_0x7dfbb6[_0xd01d('0x158')])){return this[_0xd01d('0x37')][_0xd01d('0x2e')](_0x7dfbb6,'no\x20operation\x20configured');}this['channel']['noop'](util['format'](_0xd01d('0x159'),_0x7dfbb6[_0xd01d('0x158')]));var _0x209d04=eval(_0x7dfbb6['operation']);if(!this[_0xd01d('0x84')](_0x7dfbb6[_0xd01d('0xd5')])){return this[_0xd01d('0x37')]['noop']('no\x20variable\x20selected\x20for\x20the\x20result');}var _0x3bf298=this[_0xd01d('0x13')]['sync'](this,_0x7dfbb6[_0xd01d('0xd5')]);if(!_0x3bf298){return this['channel'][_0xd01d('0x2e')](_0x7dfbb6,_0xd01d('0xd7'));}if(_['isArray'](_0x209d04)){var _0x4f4150=this;_0x209d04['forEach'](function(_0x302dc7,_0x2c5c37){_0x4f4150['channel'][_0xd01d('0x9d')](util[_0xd01d('0x2a')](_0xd01d('0x15a'),_0x3bf298,_0x2c5c37),_0x302dc7);});return this[_0xd01d('0x37')][_0xd01d('0xa7')](util[_0xd01d('0x2a')](_0xd01d('0x15b'),_0x3bf298));}else{return this[_0xd01d('0x37')]['setVariable'](_0x3bf298,_0x209d04);}};AGIVertices[_0xd01d('0x12')][_0xd01d('0xf')]=function(_0x5d83b6){logger[_0xd01d('0x30')](util[_0xd01d('0x2a')]('Enter\x20in\x20MENU\x20(%s)\x20block',_0x5d83b6[_0xd01d('0xa6')]));if(_0x5d83b6[_0xd01d('0xa3')]===0x0){return this['maxRetry'](_0x5d83b6);}_0x5d83b6[_0xd01d('0xa3')]-=0x1;if(!this['isConfigured'](_0x5d83b6[_0xd01d('0x109')])){return this[_0xd01d('0x37')]['error'](_0x5d83b6,_0xd01d('0x15c'));}var _0x162255=this[_0xd01d('0x20')][_0xd01d('0x70')](this,_0x5d83b6[_0xd01d('0x109')]);if(!_0x162255){return this[_0xd01d('0x37')][_0xd01d('0x2e')](_0x5d83b6,_0xd01d('0x10a'));}var _0x51e9c7=this[_0xd01d('0x37')][_0xd01d('0x10b')](_0x162255,_0x5d83b6['response'],_0x5d83b6[_0xd01d('0x15d')]);var _0x4fb6f0=_0x51e9c7[_0xd01d('0xa0')];if(_0x51e9c7[_0xd01d('0xa0')]===-0x1){this['createSquareDetailsReport'][_0xd01d('0x70')](this,_0x5d83b6,'-1');return _0x51e9c7;}else if(_0x51e9c7[_0xd01d('0x9f')]===_0xd01d('0x69')){_0x51e9c7[_0xd01d('0xa0')]=_0x51e9c7[_0xd01d('0xa0')]['length']>0x0?_0x51e9c7[_0xd01d('0xa0')]:'t';}else if(_[_0xd01d('0x47')](_0x51e9c7[_0xd01d('0xa0')])){_0x51e9c7[_0xd01d('0xa0')]='#';_0x4fb6f0='#';}if(!this['isConfigured'](_0x5d83b6['variable_id'])){this['channel'][_0xd01d('0xa7')](_0xd01d('0xd6'));}else{var _0x5421bf=this['getVariable'][_0xd01d('0x70')](this,_0x5d83b6[_0xd01d('0xd5')]);if(!_0x5421bf){return this['channel'][_0xd01d('0x2e')](_0x5d83b6,_0xd01d('0xd7'));}this[_0xd01d('0x37')]['setVariable'](_0x5421bf,_0x4fb6f0);}this[_0xd01d('0x36')][_0xd01d('0x70')](this,_0x5d83b6,_0x4fb6f0);return _0x51e9c7;};AGIVertices[_0xd01d('0x12')]['noop']=function(_0x25f826){logger[_0xd01d('0x30')](util[_0xd01d('0x2a')](_0xd01d('0x15e'),_0x25f826[_0xd01d('0xa6')]));return this['channel'][_0xd01d('0xa7')](_0x25f826[_0xd01d('0x15f')]||_0x25f826[_0xd01d('0xa6')]);};AGIVertices[_0xd01d('0x12')][_0xd01d('0x160')]=function(_0x5a5890){logger[_0xd01d('0x30')](util['format'](_0xd01d('0x161'),_0x5a5890['label']));if(!this['isConfigured'](_0x5a5890['findBy'])){return this['channel'][_0xd01d('0x2e')](_0x5a5890,_0xd01d('0x14f'));}logger[_0xd01d('0x30')](util[_0xd01d('0x2a')](_0xd01d('0x150'),this[_0xd01d('0x37')][_0xd01d('0x3a')],_0x5a5890[_0xd01d('0x14e')]));var _0x27efe6=this[_0xd01d('0x50')]['sync'](this,_0x5a5890['pause_id']);var _0x4f5c58=this[_0xd01d('0x52')][_0xd01d('0x70')](this,_0x5a5890['findBy'],_0x27efe6);if(_0x4f5c58){logger['info'](util[_0xd01d('0x2a')](_0xd01d('0x151'),this[_0xd01d('0x37')][_0xd01d('0x3a')],_0x5a5890[_0xd01d('0x14e')]));this[_0xd01d('0x37')][_0xd01d('0xa7')](util['format'](_0xd01d('0x151'),this[_0xd01d('0x37')][_0xd01d('0x3a')],_0x5a5890[_0xd01d('0x14e')]));return{'code':0xc8,'result':'success'};}else{logger[_0xd01d('0x30')](util['format'](_0xd01d('0x153'),this[_0xd01d('0x37')][_0xd01d('0x3a')],_0x5a5890['findBy']));this['channel'][_0xd01d('0xa7')](util[_0xd01d('0x2a')]('AGENT\x20%s\x20FOUND\x20BY',this[_0xd01d('0x37')][_0xd01d('0x3a')],_0x5a5890[_0xd01d('0x14e')]));return{'code':0xc8,'result':_0xd01d('0x154')};}};AGIVertices[_0xd01d('0x12')][_0xd01d('0x162')]=function(_0x5bd327){logger[_0xd01d('0x30')](util[_0xd01d('0x2a')](_0xd01d('0x163'),_0x5bd327[_0xd01d('0xa6')]));if(!this[_0xd01d('0x84')](_0x5bd327[_0xd01d('0x109')])){return this[_0xd01d('0x37')][_0xd01d('0x2e')](_0x5bd327,_0xd01d('0x15c'));}var _0x14f7ff=this['getSound']['sync'](this,_0x5bd327[_0xd01d('0x109')]);if(!_0x14f7ff){return this[_0xd01d('0x37')]['error'](_0x5bd327,'no\x20file\x20audio\x20found');}var _0xc0a2e0=this[_0xd01d('0x37')][_0xd01d('0x5b')](_0xd01d('0x164'),[_0x14f7ff,_0x5bd327[_0xd01d('0xe5')]]);if(_0xc0a2e0['result']===-0x1){return _0xc0a2e0;}return this[_0xd01d('0x37')][_0xd01d('0xa7')](util[_0xd01d('0x2a')](_0xd01d('0xc2'),_0xd01d('0x164'),_0x14f7ff));};AGIVertices[_0xd01d('0x12')][_0xd01d('0x165')]=function(_0x40cc29){logger[_0xd01d('0x30')](util[_0xd01d('0x2a')](_0xd01d('0x166'),_0x40cc29[_0xd01d('0xa6')]));if(!this[_0xd01d('0x84')](_0x40cc29[_0xd01d('0x167')])){return this[_0xd01d('0x37')][_0xd01d('0x2e')](_0x40cc29,'no\x20queue\x20selected');}var _0x721fdb='';var _0x51c3a3=parseInt(_0x40cc29[_0xd01d('0x167')],0xa);if(isNaN(_0x51c3a3)){_0x721fdb=_0x40cc29[_0xd01d('0x167')];}else{_0x721fdb=this[_0xd01d('0x16')][_0xd01d('0x70')](this,_0x40cc29[_0xd01d('0x167')]);if(!_0x721fdb){return this[_0xd01d('0x37')][_0xd01d('0x2e')](_0x40cc29,'no\x20queue\x20found');}}var _0x5863c2='';if(this[_0xd01d('0x84')](_0x40cc29[_0xd01d('0x109')])){var _0x232924=this['getSound'][_0xd01d('0x70')](this,_0x40cc29[_0xd01d('0x109')]);if(_0x232924){_0x5863c2=_0x232924;}}this[_0xd01d('0x36')][_0xd01d('0x70')](this,_0x40cc29,_0x721fdb);if(_0x40cc29['opts'][_0xd01d('0x168')]('x')<0x0){_0x40cc29[_0xd01d('0xe5')]+='x';}if(_0x40cc29[_0xd01d('0xe5')]['indexOf']('X')<0x0){_0x40cc29['opts']+='X';}this[_0xd01d('0x37')]['setVariable'](_0xd01d('0x169'),_0x721fdb?_0x721fdb[_0xd01d('0x16a')]():'');var _0x3dd60b=this[_0xd01d('0x37')][_0xd01d('0x5b')](_0xd01d('0x16b'),[_0x721fdb,_0x40cc29[_0xd01d('0xe5')],_0x40cc29[_0xd01d('0xe6')],_0x5863c2,_0x40cc29[_0xd01d('0x69')],_0x40cc29[_0xd01d('0x9')],_0x40cc29[_0xd01d('0x16c')],_0x40cc29[_0xd01d('0x16d')],'',_0x40cc29[_0xd01d('0x16e')]]);if(_0x3dd60b['result']===-0x1){return _0x3dd60b;}return this[_0xd01d('0x37')][_0xd01d('0xa7')](util[_0xd01d('0x2a')]('Executed\x20command\x20%s\x20%s','QUEUE',_0x721fdb));};AGIVertices[_0xd01d('0x12')][_0xd01d('0x16f')]=function(_0x2d9bd2){logger[_0xd01d('0x30')](util['format']('Enter\x20in\x20RECORD\x20(%s)\x20block',_0x2d9bd2['label']));var _0x211af6=_0x2d9bd2[_0xd01d('0x170')]||_0xd01d('0x127');var _0x24516a=util['format'](_0xd01d('0x171'),this[_0xd01d('0x37')][_0xd01d('0x38')],rs[_0xd01d('0x111')](0x5));var _0xa50271=util['format'](_0xd01d('0x172'),FILES_PATH,_0x24516a,_0x211af6);var _0x1f5b27=util[_0xd01d('0x2a')](_0xd01d('0x12f'),FILES_PATH,_0x24516a);this[_0xd01d('0x3b')][_0xd01d('0x70')](this,_0x2d9bd2,_0x24516a,_0xa50271);this[_0xd01d('0x37')][_0xd01d('0x9d')](_0xd01d('0x173'),_0x24516a);logger[_0xd01d('0x30')](_0xd01d('0x174'),_0x1f5b27,_0x211af6,_0x2d9bd2['escape_digits'],_0x2d9bd2['timeout']);return this[_0xd01d('0x37')][_0xd01d('0x129')](_0x1f5b27,_0x211af6,_0x2d9bd2[_0xd01d('0x175')],_0x2d9bd2[_0xd01d('0x69')],undefined,!![]);};AGIVertices['prototype'][_0xd01d('0x176')]=function(_0x18894f){logger[_0xd01d('0x30')](util['format'](_0xd01d('0x177'),_0x18894f[_0xd01d('0xa6')]));if(!this['isConfigured'](_0x18894f[_0xd01d('0xe6')])){return this[_0xd01d('0x37')][_0xd01d('0xa7')](_0xd01d('0x178'));}var _0x25bbd2=this['restAPI'][_0xd01d('0x70')](this,_0x18894f);logger['info'](util[_0xd01d('0x2a')](_0xd01d('0x179'),util[_0xd01d('0x17a')](_0x25bbd2,{'showHidden':![],'depth':null})));if(!this[_0xd01d('0x84')](_0x18894f[_0xd01d('0xd5')])){return this[_0xd01d('0x37')][_0xd01d('0xa7')](_0xd01d('0x17b'));}var _0x19a829=this['getVariable'][_0xd01d('0x70')](this,_0x18894f[_0xd01d('0xd5')]);if(!_0x19a829){return this[_0xd01d('0x37')][_0xd01d('0x2e')](_0x18894f,_0xd01d('0xd7'));}this[_0xd01d('0x37')][_0xd01d('0x9d')](util[_0xd01d('0x2a')]('%s_STATUS_CODE',_0x19a829),_0x25bbd2[_0xd01d('0x76')]?_0x25bbd2[_0xd01d('0x76')]:_0xd01d('0x17c'));this[_0xd01d('0x37')][_0xd01d('0x9d')](util[_0xd01d('0x2a')](_0xd01d('0x17d'),_0x19a829),_0x25bbd2[_0xd01d('0x17e')]?_0x25bbd2['statusMessage']:'OK');if(_0x25bbd2['body']){try{this[_0xd01d('0x9b')](_0x25bbd2[_0xd01d('0x6d')],_0x19a829);}catch(_0x160368){logger[_0xd01d('0x2e')](util[_0xd01d('0x2a')](_0xd01d('0x17f'),_0x19a829));}}return this[_0xd01d('0x37')][_0xd01d('0xa7')](util[_0xd01d('0x2a')](_0xd01d('0xdc'),_0x19a829));};AGIVertices[_0xd01d('0x12')][_0xd01d('0x180')]=function(_0x1f9fb0){logger[_0xd01d('0x30')](util['format'](_0xd01d('0x181'),_0x1f9fb0[_0xd01d('0xa6')]));return this[_0xd01d('0x37')]['sayDigits'](_0x1f9fb0['digits'][_0xd01d('0x5c')](/\s+/g,''),_0x1f9fb0[_0xd01d('0x175')]);};AGIVertices[_0xd01d('0x12')]['saynumber']=function(_0x3c7e14){logger[_0xd01d('0x30')](util[_0xd01d('0x2a')](_0xd01d('0x182'),_0x3c7e14[_0xd01d('0xa6')]));return this[_0xd01d('0x37')][_0xd01d('0x183')](_0x3c7e14['number']['replace'](/\s+/g,''),_0x3c7e14[_0xd01d('0x175')]);};AGIVertices['prototype'][_0xd01d('0x184')]=function(_0x340f13){logger['info'](util['format']('Enter\x20in\x20SAYPHONETIC\x20(%s)\x20block',_0x340f13[_0xd01d('0xa6')]));return this[_0xd01d('0x37')][_0xd01d('0x185')](_0x340f13['text'],_0x340f13['escape_digits']);};AGIVertices[_0xd01d('0x12')][_0xd01d('0x186')]=function(_0x255105){logger['info'](util[_0xd01d('0x2a')](_0xd01d('0x187'),_0x255105[_0xd01d('0xa6')]));if(!this[_0xd01d('0x84')](_0x255105[_0xd01d('0x188')])){return this[_0xd01d('0x37')][_0xd01d('0xa7')](_0xd01d('0x189'));}var _0x29d4c1=this[_0xd01d('0x22')]['sync'](this,_0x255105[_0xd01d('0x188')]);if(!_0x29d4c1||!_0x29d4c1[_0xd01d('0x18a')]){return this[_0xd01d('0x37')][_0xd01d('0x2e')](_0x255105,_0xd01d('0x18b'));}var _0x3ad270={'from':util[_0xd01d('0x2a')](_0xd01d('0x18c'),_0x29d4c1[_0xd01d('0x18')],_0x29d4c1[_0xd01d('0x18d')]||_0x29d4c1[_0xd01d('0x18a')][_0xd01d('0x18e')]),'to':_0x255105['to']||'','cc':_0x255105['cc']||'','bcc':_0x255105['bcc']||'','subject':_0x255105[_0xd01d('0x18f')],'html':_0x255105['text'],'text':_0x255105[_0xd01d('0x60')]};var _0x4c2889={'tls':{'rejectUnauthorized':![]}};if(_0x29d4c1[_0xd01d('0x18a')][_0xd01d('0x190')]){_0x4c2889[_0xd01d('0x190')]=_0x29d4c1[_0xd01d('0x18a')]['service'];}else{_0x4c2889[_0xd01d('0x191')]=_0x29d4c1[_0xd01d('0x18a')][_0xd01d('0x191')];_0x4c2889[_0xd01d('0x192')]=_0x29d4c1[_0xd01d('0x18a')][_0xd01d('0x192')];_0x4c2889[_0xd01d('0x193')]=_0x29d4c1[_0xd01d('0x18a')][_0xd01d('0x193')];}if(_0x29d4c1['Smtp']['authentication']){_0x4c2889[_0xd01d('0x194')]={'user':_0x29d4c1['Smtp'][_0xd01d('0x18e')],'pass':_0x29d4c1[_0xd01d('0x18a')][_0xd01d('0x195')]};}if(this[_0xd01d('0x84')](_0x255105[_0xd01d('0x196')])){}logger[_0xd01d('0xdd')](_0xd01d('0x197'),JSON[_0xd01d('0x74')](_0x3ad270));this[_0xd01d('0x36')][_0xd01d('0x70')](this,_0x255105,_0x255105[_0xd01d('0x188')]);this['channel'][_0xd01d('0xa7')](util[_0xd01d('0x2a')](_0xd01d('0x198'),_0x29d4c1[_0xd01d('0x18')]));this[_0xd01d('0x23')][_0xd01d('0x70')](this,_0x4c2889,_0x3ad270);return this[_0xd01d('0x37')]['noop'](_0xd01d('0x199'));};AGIVertices[_0xd01d('0x12')][_0xd01d('0x19a')]=function(_0x14d68e){logger['info'](util[_0xd01d('0x2a')](_0xd01d('0x19b'),_0x14d68e[_0xd01d('0xa6')]));return this['channel'][_0xd01d('0xa7')]('SENDFAX\x20block\x20not\x20implemented');};AGIVertices['prototype'][_0xd01d('0x19c')]=function(_0x3eafeb){logger[_0xd01d('0x30')](util[_0xd01d('0x2a')](_0xd01d('0x19d'),_0x3eafeb[_0xd01d('0xa6')]));if(!this[_0xd01d('0x84')](_0x3eafeb[_0xd01d('0x19e')])){return this[_0xd01d('0x37')][_0xd01d('0xa7')](_0xd01d('0x19f'));}var _0x4ce819=this[_0xd01d('0x1a0')]['sync'](this,_0x3eafeb[_0xd01d('0x19e')]);if(!_0x4ce819){return this[_0xd01d('0x37')][_0xd01d('0x2e')](_0x3eafeb,'no\x20sms\x20account\x20found');}var _0x58a98a={'body':_0x3eafeb[_0xd01d('0x1a1')],'phone':_0x3eafeb['to']||'','SmsAccountId':_0x4ce819['id']};logger[_0xd01d('0xdd')]('sendSMS\x20message',JSON[_0xd01d('0x74')](_0x58a98a));this[_0xd01d('0x36')][_0xd01d('0x70')](this,_0x3eafeb,_0x3eafeb[_0xd01d('0x19e')]);this['channel'][_0xd01d('0xa7')](util['format'](_0xd01d('0x1a2'),_0x4ce819['name']));this[_0xd01d('0x1a3')]['sync'](this,_0x58a98a);return this['channel']['noop'](_0xd01d('0x1a4'));};AGIVertices[_0xd01d('0x12')][_0xd01d('0x1a5')]=function(_0x1f340d){logger[_0xd01d('0x30')](util[_0xd01d('0x2a')](_0xd01d('0x1a6'),_0x1f340d[_0xd01d('0xa6')]));if(!this[_0xd01d('0x84')](_0x1f340d[_0xd01d('0xd5')])){return this['channel'][_0xd01d('0x2e')](_0x1f340d,'no\x20variable\x20selected');}var _0x41675a=this[_0xd01d('0x13')][_0xd01d('0x70')](this,_0x1f340d[_0xd01d('0xd5')]);if(!_0x41675a){return this[_0xd01d('0x37')]['error'](_0x1f340d,_0xd01d('0xd7'));}return this[_0xd01d('0x37')][_0xd01d('0x9d')](_0x41675a,_0x1f340d[_0xd01d('0x1a7')]);};AGIVertices[_0xd01d('0x12')][_0xd01d('0x1a8')]=function(_0x48752c){logger[_0xd01d('0x30')](util['format'](_0xd01d('0x1a9'),_0x48752c[_0xd01d('0xa6')]));this['channel'][_0xd01d('0xa7')](_0xd01d('0x1aa'));if(_0x48752c[_0xd01d('0xb9')]===_0xd01d('0x1ab')){this['channel'][_0xd01d('0xa7')]('Answer');return this[_0xd01d('0x37')]['answer']();}return this[_0xd01d('0x37')]['noop'](_0xd01d('0x1ac'));};AGIVertices[_0xd01d('0x12')][_0xd01d('0x1ad')]=function(_0x4b0912){logger[_0xd01d('0x30')](util[_0xd01d('0x2a')]('Enter\x20in\x20SUBPROJECT\x20(%s)\x20block',_0x4b0912[_0xd01d('0xa6')]));if(!this[_0xd01d('0x84')](_0x4b0912[_0xd01d('0x1ae')])){return this[_0xd01d('0x37')][_0xd01d('0x2e')](_0x4b0912,_0xd01d('0x1af'));}var _0x218c6c=this['getSquareProject'][_0xd01d('0x70')](this,_0x4b0912[_0xd01d('0x1ae')]);if(!this[_0xd01d('0x84')](_0x218c6c)){return this[_0xd01d('0x37')][_0xd01d('0x2e')](_0x4b0912,util['format']('no\x20subproject\x20found\x20with\x20id\x20%d',_0x4b0912[_0xd01d('0x1ae')]));}if(_0x218c6c===this[_0xd01d('0x37')][_0xd01d('0x42')]){return this['channel'][_0xd01d('0x2e')](_0x4b0912,_0xd01d('0x1b0'));}this[_0xd01d('0x36')][_0xd01d('0x70')](this,_0x4b0912,_0x218c6c);var _0x26b718=this[_0xd01d('0x37')][_0xd01d('0x5b')]('AGI',util['format'](_0xd01d('0x1b1'),config[_0xd01d('0x9')]['host']||_0xd01d('0x1b2'),_0x218c6c,this[_0xd01d('0x37')][_0xd01d('0x42')]));if(_0x26b718[_0xd01d('0xa0')]===-0x1){return _0x26b718;}return this['channel'][_0xd01d('0xa7')](util[_0xd01d('0x2a')](_0xd01d('0xc2'),_0xd01d('0x1b3'),_0x218c6c));};AGIVertices[_0xd01d('0x12')][_0xd01d('0x1b4')]=function(_0x237f99){logger[_0xd01d('0x30')](util['format'](_0xd01d('0x1b5'),_0x237f99[_0xd01d('0xa6')]));var _0x5c1763=this['shellCommand'][_0xd01d('0x70')](this,_0x237f99[_0xd01d('0xb6')]);this[_0xd01d('0x36')][_0xd01d('0x70')](this,_0x237f99,_0x237f99[_0xd01d('0xb6')]);if(this[_0xd01d('0x84')](_0x237f99[_0xd01d('0xd5')])){var _0x1d5941=this['getVariable'][_0xd01d('0x70')](this,_0x237f99['variable_id']);if(_0x1d5941){this[_0xd01d('0x37')]['setVariable'](_0x1d5941,_0x5c1763);return this[_0xd01d('0x37')][_0xd01d('0xa7')](util[_0xd01d('0x2a')](_0xd01d('0x1b6'),_0x237f99[_0xd01d('0xb6')],_0x1d5941));}}return this[_0xd01d('0x37')][_0xd01d('0xa7')](util['format']('sh\x20command:\x20%s\x20result\x20no\x20stored',_0x237f99[_0xd01d('0xb6')]));};AGIVertices[_0xd01d('0x12')][_0xd01d('0x1b7')]=function(_0x11c2c0){logger['info'](util[_0xd01d('0x2a')]('Enter\x20in\x20Google\x20Cloud\x20TTS\x20(%s)\x20block',_0x11c2c0[_0xd01d('0xa6')]));_0x11c2c0[_0xd01d('0x60')]=_0x11c2c0[_0xd01d('0x60')][_0xd01d('0x5c')](/(\r\n|\n|\r)/gm,'\x20');if(!this[_0xd01d('0x84')](_0x11c2c0[_0xd01d('0x5e')])){return this[_0xd01d('0x37')]['noop'](_0xd01d('0x1b8'));}if(!this[_0xd01d('0x84')](_0x11c2c0[_0xd01d('0x60')])){return this['channel'][_0xd01d('0xa7')](_0xd01d('0xa8'));}this['channel'][_0xd01d('0xa7')](util['format'](_0xd01d('0x1b9'),_0x11c2c0[_0xd01d('0x60')]));var _0x4387fb=this['googleCloudTTS'][_0xd01d('0x70')](this,_0x11c2c0);if(_0x4387fb){this[_0xd01d('0x37')][_0xd01d('0xa7')](util[_0xd01d('0x2a')](_0xd01d('0x1ba'),_0x4387fb));var _0x2f905e=this[_0xd01d('0x37')]['streamFile'](_0x4387fb);try{fs[_0xd01d('0xfa')](_0x4387fb+_0xd01d('0xfb'));}catch(_0x198d1d){logger['error'](_0x198d1d);}return _0x2f905e;}return this['channel'][_0xd01d('0x2e')](_0x11c2c0,_0xd01d('0x1bb'));};AGIVertices[_0xd01d('0x12')][_0xd01d('0x1bc')]=function(_0x115ce0){logger[_0xd01d('0x30')](util['format'](_0xd01d('0x1bd'),_0x115ce0[_0xd01d('0xa6')]));_0x115ce0[_0xd01d('0x60')]=_0x115ce0[_0xd01d('0x60')][_0xd01d('0x5c')](/(\r\n|\n|\r)/gm,'\x20');if(!this['isConfigured'](_0x115ce0[_0xd01d('0x60')])){return this[_0xd01d('0x37')]['noop'](_0xd01d('0xa8'));}this['channel'][_0xd01d('0xa7')](util['format'](_0xd01d('0x1be'),_0x115ce0['text']));var _0x3d8585=this[_0xd01d('0x65')][_0xd01d('0x70')](this,_0x115ce0);if(_0x3d8585){this[_0xd01d('0x37')][_0xd01d('0xa7')](util[_0xd01d('0x2a')](_0xd01d('0x1bf'),_0x3d8585));var _0x3096ee=this[_0xd01d('0x37')][_0xd01d('0xf9')](_0x3d8585);try{fs[_0xd01d('0xfa')](_0x3d8585+_0xd01d('0xfb'));}catch(_0x20ded6){logger['error'](_0x20ded6);}return _0x3096ee;}return this[_0xd01d('0x37')][_0xd01d('0x2e')](_0x115ce0,'Google\x20TTS\x20is\x20unreachable');};AGIVertices[_0xd01d('0x12')][_0xd01d('0x1c0')]=function(_0x7756b){logger[_0xd01d('0x30')](util[_0xd01d('0x2a')](_0xd01d('0x1c1'),_0x7756b[_0xd01d('0xa6')]));if(!this[_0xd01d('0x84')](_0x7756b['findBy'])){return this[_0xd01d('0x37')][_0xd01d('0x2e')](_0x7756b,_0xd01d('0x14f'));}logger['info'](util[_0xd01d('0x2a')](_0xd01d('0x150'),this['channel'][_0xd01d('0x3a')],_0x7756b[_0xd01d('0x14e')]));var _0x210bd5=this[_0xd01d('0x54')][_0xd01d('0x70')](this,_0x7756b[_0xd01d('0x14e')]);if(_0x210bd5){logger[_0xd01d('0x30')](util['format'](_0xd01d('0x151'),this['channel']['callerid'],_0x7756b['findBy']));this[_0xd01d('0x37')][_0xd01d('0xa7')](util[_0xd01d('0x2a')](_0xd01d('0x151'),this[_0xd01d('0x37')][_0xd01d('0x3a')],_0x7756b[_0xd01d('0x14e')]));return{'code':0xc8,'result':'success'};}else{logger[_0xd01d('0x30')](util['format'](_0xd01d('0x153'),this[_0xd01d('0x37')][_0xd01d('0x3a')],_0x7756b['findBy']));this[_0xd01d('0x37')][_0xd01d('0xa7')](util[_0xd01d('0x2a')](_0xd01d('0x153'),this[_0xd01d('0x37')][_0xd01d('0x3a')],_0x7756b['findBy']));return{'code':0xc8,'result':_0xd01d('0x154')};}};AGIVertices[_0xd01d('0x12')]['voicemail']=function(_0x5c1477){logger['info'](util[_0xd01d('0x2a')]('Enter\x20in\x20VOICEMAIL\x20(%s)\x20block',_0x5c1477['label']));var _0x320b14=this[_0xd01d('0x37')][_0xd01d('0x5b')](_0xd01d('0x1c2'),[_0x5c1477[_0xd01d('0x1c3')],_0x5c1477['options']]);if(_0x320b14[_0xd01d('0xa0')]===-0x1){return _0x320b14;}return this[_0xd01d('0x37')]['noop'](util[_0xd01d('0x2a')](_0xd01d('0xc2'),_0xd01d('0x1c2'),_0x5c1477['mailbox']));};AGIVertices[_0xd01d('0x12')][_0xd01d('0x1c4')]=function(_0x496d49){logger[_0xd01d('0x30')](util['format'](_0xd01d('0x1c5'),_0x496d49[_0xd01d('0xa6')]));if(!this[_0xd01d('0x84')](_0x496d49[_0xd01d('0xd5')])){return this['channel'][_0xd01d('0x2e')](_0x496d49,_0xd01d('0x1c6'));}var _0xb627b7=this[_0xd01d('0x13')]['sync'](this,_0x496d49[_0xd01d('0xd5')]);if(!_0xb627b7){return this[_0xd01d('0x37')][_0xd01d('0x2e')](_0x496d49,_0xd01d('0xd7'));}var _0x4a938d=this[_0xd01d('0x37')]['getVariable'](_0xb627b7);return{'code':0xc8,'result':_0x4a938d[_0xd01d('0x9f')]?_0x4a938d['extra']:'-'};};String[_0xd01d('0x12')][_0xd01d('0x1c7')]=function(_0x475f3f,_0x26c2fa){return this[_0xd01d('0x9e')](_0x475f3f)[_0xd01d('0x1c8')](_0x26c2fa);};module[_0xd01d('0x1c9')]=AGIVertices;
\ No newline at end of file
+var _0xfc6d=['Enter\x20in\x20SENDFAX\x20(%s)\x20block','SENDFAX\x20block\x20not\x20implemented','Enter\x20in\x20SENDSMS\x20(%s)\x20block','sms_account_id','no\x20sms\x20account\x20configured','sms_text','sendSMS\x20message','Trying\x20SendSMS\x20with\x20account\x20%s','set','Enter\x20in\x20SET\x20(%s)\x20block','no\x20variable\x20selected','variable_value','start','Enter\x20in\x20START\x20(%s)\x20block','START\x20CALLY\x20SQUARE','yes','Skipped\x20Answer','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','Enter\x20in\x20Google\x20Cloud\x20TTS\x20(%s)\x20block','no\x20apiKey\x20configured','Trying\x20Google\x20Cloud\x20TTS\x20%s','unlink','Google\x20Cloud\x20TTS\x20is\x20unreachable','tts','Trying\x20Google\x20TTS\x20%s','Google\x20TTS\x20%s\x20file\x20created','Google\x20TTS\x20is\x20unreachable','unpause','Enter\x20in\x20UNPAUSE\x20(%s)\x20block','voicemail','Enter\x20in\x20VOICEMAIL\x20(%s)\x20block','VOICEMAIL','mailbox','Enter\x20in\x20SWITCH\x20(%s)\x20block','exports','path','util','lodash','shelljs','moment','request-promise','../../config/logger','../../config/environment','/var/opt/motion2/server/files','rawHeaders','rawBody','menu','getdigits','getsecretdigits','channel','rpc','mailRpc','prototype','getVariable','getVariableById','then','catch','getVoiceQueue','getVoiceQueueById','name','getSquareProject','getSquareProjectById','getUser','getUserById','getTrunkById','getSoundById','getSoundPath','getMailAccount','sendMailMessage','getIntervals','IntervalId','interval','map','Intervals','format','%s/sounds/converted/%s','getQueryOdbc','open','error','info','ODBC\x20connection\x20successfully','query','Query\x20executed\x20correctly\x20%s','Error\x20closing\x20connection\x20to\x20odbc\x20%s','getSmsAccount','createSmsMessage','createSquareDetailsReport','uniqueid','label','agicommand','createSquareRecording','callerid','calleridname','extension','priority','accountcode','arg_1','file','createSquareMessage','createCmContact','isEmpty','isNil','callback_','random','lastName','phone','list_id','scheduledAt','Callback\x20scheduled\x20at\x20','toString','callback_priority','agentPause','agent','agentUnpause','agentLogout','agentLogin','internal','%s/%s@from-sip/n','LOCAL','exec','trim','replace','googleCloudTTS','google_cloud_tts_text_type','text','ssmlGender','MALE','audioEncoding','MP3','googleTTS','restAPI','url','method','timeout','number','POST','PUT','parse','An\x20incorrect\x20formatted\x20json\x20body\x20has\x20been\x20passed\x20to\x20the\x20function','computedVariables','sync','uri','render','headers','stringify','body','An\x20incorrect\x20formatted\x20json\x20has\x20been\x20passed\x20to\x20the\x20function','statusCode','statusMessage','message','500\x20-\x20Internal\x20Server\x20Error','googleDialogflow','key','dialogflow_language','sestekNDA','ispeechTTS','ispeech_tts_language','en-US','speed','ispeechASR','isConfigured','model','awsPolly','Amy','aws_text_type','awsLex','aws_access_key_id','aws_secret_access_key','googleASR','tildeASR','includes','clone','hasOwnProperty','isString','replaceAllVariables','recursiveNodeIndex','isPlainObject','isArray','length','saveRestApiResult','%s.%s','setVariable','replaceObjectAllVariables','split','extra','result','maxRetry','retry','mrcpsynth','no\x20text\x20configured','options','MRCPSynth','noop','Executed\x20command\x20MRCPSynth\x20%s','mrcprecog','Enter\x20in\x20MRCPRecog\x20(%s)\x20block','grammar','MRCPRecog','RECOG_CONFIDENCE()','MRCP_RECOG_CONFIDENCE','getAndSetVariable','RECOG_INPUT()','RECOG_INSTANCE()','Executed\x20command\x20MRCPRecog\x20%s','Enter\x20in\x20AGI\x20(%s)\x20block','agi','command','args','answer','Enter\x20in\x20ANSWER\x20(%s)\x20block','Wait\x20%s\x20seconds\x20before\x20answer','wait','callback','Enter\x20in\x20CALLBACK\x20(%s)\x20block','no\x20list\x20selected','add','minutes','CALLBACK\x20added\x20phone:\x20%s\x20on\x20list:\x20%s\x20at\x20%s','custom_app','Executed\x20command\x20%s\x20%s','application','Enter\x20in\x20LUMENVOXTTS\x20(%s)\x20block','Enter\x20in\x20LUMENVOXASR\x20(%s)\x20block','LUMENVOX_ASR_CONFIDENCE','LUMENVOX_ASR_INSTANCE','Enter\x20in\x20SESTEKASR\x20(%s)\x20block','no\x20grammar\x20configured','SESTEK_ASR_CONFIDENCE','SESTEK_ASR_INSTANCE','database','Enter\x20in\x20DATABASE\x20(%s)\x20block','odbc_id','no\x20database\x20selected','no\x20odbc\x20database\x20found','no\x20query\x20configured','variable_id','no\x20variable\x20found','forEach','keys','%s[%s][%s]','variable\x20%s\x20set','dial','debug','Enter\x20in\x20DIAL\x20(%s)\x20block','sip_id','no\x20user\x20selected','opts','DIAL','dialogflow','Enter\x20in\x20DIALOGFLOW\x20(%s)\x20block','no\x20key\x20configured','bot','Trying\x20Dialogflow:\x20%s','DIALOGFLOW_%s','toUpperCase','speech','Dialogflow\x20Result\x20%s','sesteknda','ndauth_url','username','no\x20username\x20configured','password','no\x20password\x20configured','ndassistant_url','out','audiofile','streamFile','.wav','SestekNDA\x20is\x20unreachable','Enter\x20in\x20END\x20(%s)\x20block','end','ext_dial','Enter\x20in\x20EXTERNAL\x20DIAL\x20(%s)\x20block','trunk_id','getTrunk','trunk_name','no\x20trunk\x20selected','SIP/%s/%s','Executed\x20command\x20%s','finally','Enter\x20in\x20FINALLY\x20(%s)\x20block','Enter\x20in\x20GETDIGITS\x20(%s)\x20block','file_id','no\x20file\x20audio\x20selected','maxdigit','test','mindigit','hiddendigitsnum','generate','hiddendigitspos','first','substr','Enter\x20in\x20GETSECRETDIGITS\x20(%s)\x20block','goal','Enter\x20in\x20GOAL\x20(%s)\x20block','goalname','awspolly','no\x20valid\x20credentials\x20configured','Trying\x20aws\x20Polly\x20%s','aws\x20Polly\x20is\x20unreachable','awslex','Enter\x20in\x20Amazon\x20Lex\x20(%s)\x20block','aws_bot_name','Trying\x20Amazon\x20Lex:\x20%s','AWS_LEX_%s','googleasr','wav','%s/recordings/%s','beep','NOBEEP','google\x20%s\x20file\x20created','GOOGLE_ASR_%s','GoogleASR\x20Result\x20%s','Enter\x20in\x20TILDEASR\x20(%s)\x20block','appid','no\x20appid\x20configured','appsecret','no\x20appsecret\x20configured','recordFile','intKey','TILDE_ASR_%s','TildeASR\x20Result\x20%s','Enter\x20in\x20GOTO\x20(%s)\x20block','context','condition','no\x20condition\x20configured','true','false','EVAL\x20CONDITION\x20%s\x20%s','gotoiftime','Enter\x20in\x20GOTOIFTIME\x20(%s)\x20block','interval_id','no\x20interval\x20configured','no\x20intervals\x20found','IFTIME(%s?true:false)','IFTIME\x20%s\x20%s','hangup','Enter\x20in\x20HANGUP\x20(%s)\x20block','ispeechasr','Enter\x20in\x20ISPEECHASR\x20(%s)\x20block','ispeech\x20%s\x20file\x20created','ISPEECH_ASR_%s','IspeechASR\x20Result\x20%s','ispeechtts','ispeech\x20TTS\x20is\x20unreachable','login','Enter\x20in\x20LOGIN\x20(%s)\x20block','findBy','no\x20find\x20by\x20configured','FIND\x20AGENT\x20%s\x20BY\x20%s','AGENT\x20%s\x20FOUND\x20BY','AGENT\x20%s\x20NOT\x20FOUND\x20BY','failure','logout','Enter\x20in\x20LOGOUT\x20(%s)\x20block','math','Enter\x20in\x20MATH\x20(%s)\x20block','operation','math\x20%s','no\x20variable\x20selected\x20for\x20the\x20result','%s[%s]','variable\x20%s[key]\x20set','Enter\x20in\x20MENU\x20(%s)\x20block','getData','digit','Enter\x20in\x20NOOP\x20(%s)\x20block','output','pause','Enter\x20in\x20PAUSE\x20(%s)\x20block','getPause','success','playback','Enter\x20in\x20PLAYBACK\x20(%s)\x20block','getSound','PLAYBACK','queue','Enter\x20in\x20QUEUE\x20(%s)\x20block','queue_id','no\x20queue\x20found','XMCS-QUEUE','toLowerCase','macro','gosub','QUEUE','record','Enter\x20in\x20RECORD\x20(%s)\x20block','recordingFormat','%s_%s','%s/recordings/%s.%s','Recording\x20%s\x20%s\x20%s\x20%s','escape_digits','Enter\x20in\x20RESTAPI\x20(%s)\x20block','Response:','no\x20variable\x20selected\x20for\x20the\x20response','%s_STATUS_CODE','200','%s_STATUS_MESSAGE','Unable\x20to\x20set\x20result\x20in\x20variable\x20%s','saydigits','Enter\x20in\x20SAYDIGITS\x20(%s)\x20block','sayDigits','digits','saynumber','Enter\x20in\x20SAYNUMBER\x20(%s)\x20block','sayNumber','sayphonetic','Enter\x20in\x20SAYPHONETIC\x20(%s)\x20block','sayPhonetic','sendMail','Enter\x20in\x20SENDMAIL\x20(%s)\x20block','account_id','no\x20mail\x20account\x20configured','Smtp','\x22%s\x22\x20<%s>','email','user','subject','service','host','port','secure','authentication','auth','pass','template_id','sendMail\x20message','Trying\x20SendMail\x20with\x20account\x20%s','Mail\x20message\x20added\x20to\x20outgoing\x20process','sendFax'];(function(_0x3ff32e,_0x298304){var _0x5d3024=function(_0x2d00ea){while(--_0x2d00ea){_0x3ff32e['push'](_0x3ff32e['shift']());}};_0x5d3024(++_0x298304);}(_0xfc6d,0x1e6));var _0xdfc6=function(_0x2edb14,_0x53fba5){_0x2edb14=_0x2edb14-0x0;var _0x11d430=_0xfc6d[_0x2edb14];return _0x11d430;};'use strict';var fs=require('fs');var path=require(_0xdfc6('0x0'));var util=require(_0xdfc6('0x1'));var _=require(_0xdfc6('0x2'));var sh=require(_0xdfc6('0x3'));var odbc=require('odbc')();var rs=require('randomstring');var moment=require(_0xdfc6('0x4'));var Mustache=require('mustache');var rp=require(_0xdfc6('0x5'));var logger=require(_0xdfc6('0x6'))('agi');var config=require(_0xdfc6('0x7'));var scripts=require('./scripts');var FILES_PATH=_0xdfc6('0x8');var recursiveMapAttributes=[_0xdfc6('0x9'),_0xdfc6('0xa')];var verticesWithRetry=[_0xdfc6('0xb'),_0xdfc6('0xc'),_0xdfc6('0xd')];var AGIVertices=function(_0x192bc4,_0x1bfa47,_0x46c3bf){this[_0xdfc6('0xe')]=_0x192bc4;this[_0xdfc6('0xf')]=_0x1bfa47;this[_0xdfc6('0x10')]=_0x46c3bf;};AGIVertices[_0xdfc6('0x11')][_0xdfc6('0x12')]=function(_0x2151c8,_0x4c7a55){this[_0xdfc6('0xf')][_0xdfc6('0x13')](_0x2151c8)[_0xdfc6('0x14')](function(_0xc14171){_0x4c7a55(null,_0xc14171?_0xc14171['name']:![]);})[_0xdfc6('0x15')](function(_0x1d6533){_0x4c7a55(_0x1d6533);});};AGIVertices[_0xdfc6('0x11')][_0xdfc6('0x16')]=function(_0x2ca7a0,_0x213496){this[_0xdfc6('0xf')][_0xdfc6('0x17')](_0x2ca7a0)[_0xdfc6('0x14')](function(_0x1966a7){_0x213496(null,_0x1966a7?_0x1966a7[_0xdfc6('0x18')]:![]);})[_0xdfc6('0x15')](function(_0x5b9873){_0x213496(_0x5b9873);});};AGIVertices[_0xdfc6('0x11')][_0xdfc6('0x19')]=function(_0x36c72d,_0x7f2477){this[_0xdfc6('0xf')][_0xdfc6('0x1a')](_0x36c72d)[_0xdfc6('0x14')](function(_0x1762b5){_0x7f2477(null,_0x1762b5?_0x1762b5[_0xdfc6('0x18')]:![]);})[_0xdfc6('0x15')](function(_0x594cf0){_0x7f2477(_0x594cf0);});};AGIVertices[_0xdfc6('0x11')]['getSquareOdbc']=function(_0x111852,_0x171054){this[_0xdfc6('0xf')]['getSquareOdbcById'](_0x111852)[_0xdfc6('0x14')](function(_0x2a283d){_0x171054(null,_0x2a283d?_0x2a283d['dsn']:![]);})[_0xdfc6('0x15')](function(_0x21faba){_0x171054(_0x21faba);});};AGIVertices[_0xdfc6('0x11')][_0xdfc6('0x1b')]=function(_0x443992,_0x389bb6){this['rpc'][_0xdfc6('0x1c')](_0x443992)['then'](function(_0x233cc5){_0x389bb6(null,_0x233cc5?_0x233cc5[_0xdfc6('0x18')]:![]);})[_0xdfc6('0x15')](function(_0x231e6f){_0x389bb6(_0x231e6f);});};AGIVertices[_0xdfc6('0x11')]['getTrunk']=function(_0xb421c8,_0x38a877){this[_0xdfc6('0xf')][_0xdfc6('0x1d')](_0xb421c8)[_0xdfc6('0x14')](function(_0x4e1d8f){_0x38a877(null,_0x4e1d8f?_0x4e1d8f[_0xdfc6('0x18')]:![]);})['catch'](function(_0x5c1307){_0x38a877(_0x5c1307);});};AGIVertices[_0xdfc6('0x11')]['getSound']=function(_0x53ce6c,_0x7bc143){var _0x16372f=this;this['rpc'][_0xdfc6('0x1e')](_0x53ce6c)['then'](function(_0x1840ec){_0x7bc143(null,_0x1840ec?_0x16372f[_0xdfc6('0x1f')](_0x1840ec['save_name']):![]);})[_0xdfc6('0x15')](function(_0x48149e){_0x7bc143(_0x48149e);});};AGIVertices['prototype'][_0xdfc6('0x20')]=function(_0x4b3777,_0x26ced3){this[_0xdfc6('0xf')]['getMailAccountById'](_0x4b3777)[_0xdfc6('0x14')](function(_0x55badc){_0x26ced3(null,_0x55badc?_0x55badc:![]);})[_0xdfc6('0x15')](function(_0x47e63a){_0x26ced3(_0x47e63a);});};AGIVertices[_0xdfc6('0x11')][_0xdfc6('0x21')]=function(_0x2629b2,_0x18b674,_0x490fa1){this[_0xdfc6('0x10')][_0xdfc6('0x21')](_0x2629b2,_0x18b674)[_0xdfc6('0x14')](function(){_0x490fa1(null);})[_0xdfc6('0x15')](function(_0x10f50d){_0x490fa1(_0x10f50d);});};AGIVertices[_0xdfc6('0x11')][_0xdfc6('0x22')]=function(_0x2946ca,_0xa948ff){this['rpc']['getIntervalById'](_0x2946ca)[_0xdfc6('0x14')](function(_0x5dccca){if(_0x5dccca){if(_0x5dccca[_0xdfc6('0x23')]){_0xa948ff(null,[_0x5dccca[_0xdfc6('0x24')]]);}else{_0xa948ff(null,_[_0xdfc6('0x25')](_0x5dccca[_0xdfc6('0x26')],_0xdfc6('0x24')));}}else{_0xa948ff(null,![]);}})[_0xdfc6('0x15')](function(_0x14c30c){_0xa948ff(_0x14c30c);});};AGIVertices[_0xdfc6('0x11')][_0xdfc6('0x1f')]=function(_0x2f0de5){return util[_0xdfc6('0x27')](_0xdfc6('0x28'),FILES_PATH,_0x2f0de5);};AGIVertices[_0xdfc6('0x11')][_0xdfc6('0x29')]=function(_0x5f040c,_0x4f1ffa,_0x6c3e61){odbc[_0xdfc6('0x2a')](_0x5f040c,function(_0x26e0f){if(_0x26e0f){logger[_0xdfc6('0x2b')]('Error\x20getting\x20ODBC\x20connection\x20%s',_0x26e0f);_0x6c3e61(_0x26e0f);}else{logger[_0xdfc6('0x2c')](_0xdfc6('0x2d'));odbc[_0xdfc6('0x2e')](_0x4f1ffa,function(_0x27bde3,_0x531ebb){if(_0x27bde3){logger[_0xdfc6('0x2c')]('Error\x20executing\x20query\x20%s',_0x4f1ffa);_0x6c3e61(_0x27bde3);}else{logger[_0xdfc6('0x2c')](_0xdfc6('0x2f'),_0x4f1ffa);odbc['close'](function(_0x4d37d3){if(_0x4d37d3){logger[_0xdfc6('0x2b')](_0xdfc6('0x30'),_0x4d37d3);}_0x6c3e61(null,_0x531ebb);});}});}});};AGIVertices[_0xdfc6('0x11')][_0xdfc6('0x31')]=function(_0x246fe9,_0x54a790){this[_0xdfc6('0xf')]['getSmsAccountById'](_0x246fe9)[_0xdfc6('0x14')](function(_0x2dd3c8){_0x54a790(null,_0x2dd3c8?_0x2dd3c8:![]);})[_0xdfc6('0x15')](function(_0x5587ad){_0x54a790(_0x5587ad);});};AGIVertices[_0xdfc6('0x11')][_0xdfc6('0x32')]=function(_0x3fcce2,_0xf8d55b){this[_0xdfc6('0xf')][_0xdfc6('0x32')](_0x3fcce2)[_0xdfc6('0x14')](function(_0x27ea9e){_0xf8d55b(null,_0x27ea9e);})['catch'](function(_0x3d1c49){_0xf8d55b(_0x3d1c49);});};AGIVertices[_0xdfc6('0x11')][_0xdfc6('0x33')]=function(_0x25aa69,_0x5c749d,_0x23d2c5){this[_0xdfc6('0xf')][_0xdfc6('0x33')]({'uniqueid':this[_0xdfc6('0xe')][_0xdfc6('0x34')],'node':_0x25aa69[_0xdfc6('0x35')],'application':_0x25aa69[_0xdfc6('0x36')],'data':_0x5c749d||null,'project_name':this[_0xdfc6('0xe')]['arg_1'],'callerid':this[_0xdfc6('0xe')]['callerid']})['then'](function(_0xaafe14){if(_0x23d2c5){_0x23d2c5(null,_0xaafe14);}})[_0xdfc6('0x15')](function(_0x55cec1){if(_0x23d2c5){_0x23d2c5(_0x55cec1);}});};AGIVertices[_0xdfc6('0x11')][_0xdfc6('0x37')]=function(_0x30498b,_0x1aa1e4,_0x14841f,_0x52afba){this[_0xdfc6('0xf')]['createSquareRecording']({'uniqueid':this[_0xdfc6('0xe')][_0xdfc6('0x34')],'callerid':this['channel'][_0xdfc6('0x38')],'calleridname':this[_0xdfc6('0xe')][_0xdfc6('0x39')],'context':this[_0xdfc6('0xe')]['context'],'extension':this[_0xdfc6('0xe')][_0xdfc6('0x3a')],'priority':this[_0xdfc6('0xe')][_0xdfc6('0x3b')],'accountcode':this[_0xdfc6('0xe')][_0xdfc6('0x3c')],'dnid':this[_0xdfc6('0xe')]['dnid'],'projectName':this['channel'][_0xdfc6('0x3d')],'saveName':_0x1aa1e4,'filename':_0x30498b[_0xdfc6('0x3e')]||_0x1aa1e4,'savePath':_0x14841f})[_0xdfc6('0x14')](function(_0x5dc9a1){_0x52afba(null,_0x5dc9a1);})[_0xdfc6('0x15')](function(_0x20071d){_0x52afba(_0x20071d);});};AGIVertices[_0xdfc6('0x11')][_0xdfc6('0x3f')]=function(_0x3850d3,_0x37e021,_0x23fa6e){this['rpc'][_0xdfc6('0x3f')]({'uniqueid':this[_0xdfc6('0xe')][_0xdfc6('0x34')],'body':_0x3850d3,'direction':_0x37e021})[_0xdfc6('0x14')](function(_0x10132f){if(_0x23fa6e){_0x23fa6e(null,_0x10132f);}})[_0xdfc6('0x15')](function(_0x3d7e3a){if(_0x23fa6e){_0x23fa6e(_0x3d7e3a);}});};AGIVertices[_0xdfc6('0x11')][_0xdfc6('0x40')]=function(_0x5490ed,_0x34b25a){this[_0xdfc6('0xf')][_0xdfc6('0x40')]({'firstName':_[_0xdfc6('0x41')](_0x5490ed[_0xdfc6('0x18')])||_[_0xdfc6('0x42')](_0x5490ed[_0xdfc6('0x18')])?_0xdfc6('0x43')+Math[_0xdfc6('0x44')]():_0x5490ed[_0xdfc6('0x18')],'lastName':_[_0xdfc6('0x41')](_0x5490ed[_0xdfc6('0x45')])||_[_0xdfc6('0x42')](_0x5490ed[_0xdfc6('0x45')])?null:_0x5490ed[_0xdfc6('0x45')],'phone':_0x5490ed[_0xdfc6('0x46')],'ListId':_0x5490ed[_0xdfc6('0x47')],'scheduledat':_0x5490ed[_0xdfc6('0x48')],'callbackUniqueid':this[_0xdfc6('0xe')][_0xdfc6('0x34')],'tags':'callback','description':_0xdfc6('0x49')+_0x5490ed[_0xdfc6('0x48')][_0xdfc6('0x4a')](),'priority':_0x5490ed[_0xdfc6('0x4b')]})[_0xdfc6('0x14')](function(_0xe13066){_0x34b25a(null,_0xe13066);})[_0xdfc6('0x15')](function(_0x2b1d61){_0x34b25a(_0x2b1d61);});};AGIVertices[_0xdfc6('0x11')]['getPause']=function(_0x57477b,_0x32c789){this[_0xdfc6('0xf')]['getPauseById'](_0x57477b)[_0xdfc6('0x14')](function(_0x35ceca){_0x32c789(null,_0x35ceca?_0x35ceca['name']:![]);})['catch'](function(_0x5988bf){_0x32c789(_0x5988bf);});};AGIVertices['prototype'][_0xdfc6('0x4c')]=function(_0x1bf083,_0x2f6e90,_0x1db45c){var _0x1dbf8c={'role':_0xdfc6('0x4d')};_0x1dbf8c[_0x1bf083]=this[_0xdfc6('0xe')][_0xdfc6('0x38')];this[_0xdfc6('0xf')][_0xdfc6('0x4c')](_0x1dbf8c,_0x2f6e90,this[_0xdfc6('0xe')]['uniqueid'])['then'](function(_0x3d6e59){_0x1db45c(null,_['isNil'](_0x3d6e59)?![]:!![]);})['catch'](function(_0x206cea){logger['error'](_0x206cea);_0x1db45c(null,![]);});};AGIVertices[_0xdfc6('0x11')]['agentUnpause']=function(_0x5040e2,_0x3489bb){var _0x42c367={'role':_0xdfc6('0x4d')};_0x42c367[_0x5040e2]=this[_0xdfc6('0xe')][_0xdfc6('0x38')];this[_0xdfc6('0xf')][_0xdfc6('0x4e')](_0x42c367)[_0xdfc6('0x14')](function(_0x2b54ff){_0x3489bb(null,_[_0xdfc6('0x42')](_0x2b54ff)?![]:!![]);})[_0xdfc6('0x15')](function(_0x37e01a){logger[_0xdfc6('0x2b')](_0x37e01a);_0x3489bb(null,![]);});};AGIVertices[_0xdfc6('0x11')][_0xdfc6('0x4f')]=function(_0x3fbed2,_0x1a9507){var _0x130518={'role':_0xdfc6('0x4d')};_0x130518[_0x3fbed2]=this['channel'][_0xdfc6('0x38')];this[_0xdfc6('0xf')]['agentLogout'](_0x130518)[_0xdfc6('0x14')](function(_0x34f290){_0x1a9507(null,_['isNil'](_0x34f290)?![]:!![]);})[_0xdfc6('0x15')](function(_0x34cbd9){logger[_0xdfc6('0x2b')](_0x34cbd9);_0x1a9507(null,![]);});};AGIVertices[_0xdfc6('0x11')][_0xdfc6('0x50')]=function(_0x4c5e7e,_0x353b25){var _0x25b7f4={'role':_0xdfc6('0x4d')};_0x25b7f4[_0x4c5e7e]=this[_0xdfc6('0xe')]['callerid'];var _0x1d062c=_0x4c5e7e!=_0xdfc6('0x51')?util['format'](_0xdfc6('0x52'),_0xdfc6('0x53'),this[_0xdfc6('0xe')][_0xdfc6('0x38')]):undefined;this[_0xdfc6('0xf')][_0xdfc6('0x50')](_0x25b7f4,_0x1d062c)[_0xdfc6('0x14')](function(_0x1c1414){_0x353b25(null,_['isNil'](_0x1c1414)?![]:!![]);})[_0xdfc6('0x15')](function(_0x229a39){logger[_0xdfc6('0x2b')](_0x229a39);_0x353b25(null,![]);});};AGIVertices[_0xdfc6('0x11')]['shellCommand']=function(_0xa0b24c,_0xd63c3d){sh[_0xdfc6('0x54')](_[_0xdfc6('0x55')](_0xa0b24c),function(_0x47bdcb,_0x1dd509){var _0x1d0d57=_0x1dd509[_0xdfc6('0x56')](/(\r\n|\n|\r)/gm,'');_0xd63c3d(null,_0x1d0d57);});};AGIVertices['prototype']['googleCloudTTS']=function(_0x6e31f6,_0x5a090d){scripts[_0xdfc6('0x57')](_0x6e31f6['apiKey'],_0x6e31f6[_0xdfc6('0x58')]||_0xdfc6('0x59'),_0x6e31f6[_0xdfc6('0x59')],_0x6e31f6['languageCode']||'en-US',_0x6e31f6[_0xdfc6('0x5a')]||_0xdfc6('0x5b'),_0x6e31f6[_0xdfc6('0x5c')]||_0xdfc6('0x5d'))['then'](function(_0x314ac1){_0x5a090d(null,_0x314ac1);})['catch'](function(_0x139621){_0x5a090d(_0x139621);});};AGIVertices[_0xdfc6('0x11')][_0xdfc6('0x5e')]=function(_0x43c2b7,_0x188fa2){scripts['googleTTS'](_0x43c2b7['text'],_0x43c2b7['google_tts_language']||'en',0x1)[_0xdfc6('0x14')](function(_0x3fa95e){_0x188fa2(null,_0x3fa95e);})['catch'](function(_0x2d1906){_0x188fa2(_0x2d1906);});};AGIVertices[_0xdfc6('0x11')][_0xdfc6('0x5f')]=function(_0x6e61d0,_0x280815){var _0x393b7f={'uri':_0x6e61d0[_0xdfc6('0x60')],'method':_0x6e61d0[_0xdfc6('0x61')],'json':!![],'resolveWithFullResponse':!![],'timeout':typeof parseInt(_0x6e61d0[_0xdfc6('0x62')])===_0xdfc6('0x63')&&parseInt(_0x6e61d0[_0xdfc6('0x62')])>=0x1?parseInt(_0x6e61d0[_0xdfc6('0x62')])*0x3e8:0x5*0x3e8};if(_['includes']([_0xdfc6('0x64'),_0xdfc6('0x65')],_0x393b7f[_0xdfc6('0x61')]['toUpperCase']())){try{_0x393b7f['body']=_0x6e61d0['rawBody']?JSON[_0xdfc6('0x66')](_0x6e61d0['rawBody']):{};}catch(_0x209792){logger['error'](_0xdfc6('0x67'),_0x209792);}}try{_0x393b7f['headers']=_0x6e61d0[_0xdfc6('0x9')]?JSON['parse'](_0x6e61d0[_0xdfc6('0x9')]):{};}catch(_0x58f7a3){logger[_0xdfc6('0x2b')]('An\x20incorrect\x20formatted\x20json\x20headers\x20has\x20been\x20passed\x20to\x20the\x20function',_0x58f7a3);}if(_0x6e61d0[_0xdfc6('0x68')]){try{var _0x5708bb=require(_0x6e61d0[_0xdfc6('0x68')])[_0xdfc6('0x69')](this,_0x393b7f);_0x393b7f[_0xdfc6('0x6a')]=Mustache[_0xdfc6('0x6b')](_0x6e61d0['url'],_0x5708bb,{},['$$','$$']);if(_0x393b7f[_0xdfc6('0x6c')]){_0x393b7f['headers']=JSON[_0xdfc6('0x66')](Mustache[_0xdfc6('0x6b')](JSON[_0xdfc6('0x6d')](_0x393b7f[_0xdfc6('0x6c')]),_0x5708bb,{},['$$','$$']));}if(_0x393b7f[_0xdfc6('0x6e')]){_0x393b7f[_0xdfc6('0x6e')]=JSON[_0xdfc6('0x66')](Mustache[_0xdfc6('0x6b')](JSON[_0xdfc6('0x6d')](_0x393b7f['body']),_0x5708bb,{},['$$','$$']));}}catch(_0x4e244d){logger[_0xdfc6('0x2b')](_0xdfc6('0x6f'),_0x4e244d);}}rp(_0x393b7f)[_0xdfc6('0x14')](function(_0x28141f){var _0x47d9d5={'statusCode':_0x28141f[_0xdfc6('0x70')]||0xc8,'statusMessage':_0x28141f[_0xdfc6('0x71')]||'OK','headers':_0x28141f[_0xdfc6('0x6c')]||{},'body':_0x28141f[_0xdfc6('0x6e')]||{}};_0x280815(null,_0x47d9d5);})[_0xdfc6('0x15')](function(_0x430a93){var _0x15c6fa={'statusCode':_0x430a93[_0xdfc6('0x70')]||0x1f4,'statusMessage':_0x430a93[_0xdfc6('0x72')]||_0xdfc6('0x73'),'headers':_0x430a93['options'][_0xdfc6('0x6c')]||{},'body':_0x430a93['options']['body']||{}};_0x280815(null,_0x15c6fa);});};AGIVertices[_0xdfc6('0x11')][_0xdfc6('0x74')]=function(_0x3989cc,_0x1da19e){scripts[_0xdfc6('0x74')](this[_0xdfc6('0xe')][_0xdfc6('0x34')],_0x3989cc[_0xdfc6('0x75')],_0x3989cc[_0xdfc6('0x59')],_0x3989cc[_0xdfc6('0x76')]||'en')['then'](function(_0x47d4fa){_0x1da19e(null,_0x47d4fa);})[_0xdfc6('0x15')](function(_0x335404){_0x1da19e(_0x335404);});};AGIVertices[_0xdfc6('0x11')][_0xdfc6('0x77')]=function(_0x30bfe7,_0x3a016f){scripts[_0xdfc6('0x77')](this[_0xdfc6('0xe')],_0x30bfe7)[_0xdfc6('0x14')](function(_0x582619){_0x3a016f(null,_0x582619);})[_0xdfc6('0x15')](function(_0x1bf380){_0x3a016f(_0x1bf380);});};AGIVertices['prototype'][_0xdfc6('0x78')]=function(_0x56c974,_0x587c21){scripts[_0xdfc6('0x78')](_0x56c974['key'],_0x56c974[_0xdfc6('0x59')],_0x56c974[_0xdfc6('0x79')]||_0xdfc6('0x7a'),_0x56c974[_0xdfc6('0x7b')])[_0xdfc6('0x14')](function(_0x43d9f1){_0x587c21(null,_0x43d9f1);})['catch'](function(_0x1ffbfb){_0x587c21(_0x1ffbfb);});};AGIVertices[_0xdfc6('0x11')][_0xdfc6('0x7c')]=function(_0x558185,_0x38d0a9,_0x23ee39){scripts[_0xdfc6('0x7c')](_0x38d0a9,_0x558185[_0xdfc6('0x75')],_0x558185['ispeech_asr_language']||_0xdfc6('0x7a'),this[_0xdfc6('0x7d')](_0x558185[_0xdfc6('0x7e')])?_0x558185[_0xdfc6('0x7e')]:undefined)['then'](function(_0x5118c3){_0x23ee39(null,_0x5118c3);})[_0xdfc6('0x15')](function(_0x5c2aa8){_0x23ee39(_0x5c2aa8);});};AGIVertices[_0xdfc6('0x11')][_0xdfc6('0x7f')]=function(_0x527a27,_0x450bd4){scripts[_0xdfc6('0x7f')](_0x527a27['aws_access_key_id'],_0x527a27['aws_secret_access_key'],_0x527a27['aws_polly_region'],_0x527a27['aws_polly_voice']||_0xdfc6('0x80'),_0x527a27[_0xdfc6('0x59')],_0x527a27[_0xdfc6('0x81')]||'text')[_0xdfc6('0x14')](function(_0x4838b8){_0x450bd4(null,_0x4838b8);})[_0xdfc6('0x15')](function(_0x4ef938){_0x450bd4(_0x4ef938);});};AGIVertices[_0xdfc6('0x11')][_0xdfc6('0x82')]=function(_0x40352d,_0x2b8c7c){scripts[_0xdfc6('0x82')](this[_0xdfc6('0xe')][_0xdfc6('0x34')],_0x40352d[_0xdfc6('0x83')],_0x40352d[_0xdfc6('0x84')],_0x40352d['aws_lex_region'],_0x40352d[_0xdfc6('0x59')],_0x40352d['aws_bot_name'])['then'](function(_0x8550d6){_0x2b8c7c(null,_0x8550d6);})[_0xdfc6('0x15')](function(_0x33ddde){_0x2b8c7c(_0x33ddde);});};AGIVertices['prototype'][_0xdfc6('0x85')]=function(_0x3a8405,_0x2a6a04,_0x455ad1){scripts['googleASR'](_0x2a6a04,_0x3a8405['key'],_0x3a8405['google_asr_language']||_0xdfc6('0x7a'))[_0xdfc6('0x14')](function(_0x37ae3d){_0x455ad1(null,_0x37ae3d);})[_0xdfc6('0x15')](function(_0x4c46be){_0x455ad1(_0x4c46be);});};AGIVertices[_0xdfc6('0x11')][_0xdfc6('0x86')]=function(_0x59566d,_0x2061e7,_0x1cd865){scripts[_0xdfc6('0x86')](_0x2061e7,_0x59566d['appid'],_0x59566d['appsecret'],_0x59566d[_0xdfc6('0x6a')])['then'](function(_0x4be796){_0x1cd865(null,_0x4be796);})['catch'](function(_0x57ae71){_0x1cd865(_0x57ae71);});};AGIVertices['prototype']['clear']=function(_0x5c6997){var _0x1870bf=_[_0xdfc6('0x87')](verticesWithRetry,_0x5c6997[_0xdfc6('0x36')])?_0x5c6997:_[_0xdfc6('0x88')](_0x5c6997);for(var _0x386994 in _0x1870bf){if(_0x1870bf[_0xdfc6('0x89')](_0x386994)){if(_0x1870bf[_0x386994]&&_[_0xdfc6('0x8a')](_0x1870bf[_0x386994])){if(_[_0xdfc6('0x87')](recursiveMapAttributes,_0x386994)){_0x1870bf[_0x386994]=this['replaceObjectAllVariables'](_0x1870bf[_0x386994]);}else{_0x1870bf[_0x386994]=this[_0xdfc6('0x8b')](_0x1870bf[_0x386994]);}}}}return _0x1870bf;};AGIVertices[_0xdfc6('0x11')][_0xdfc6('0x8c')]=function(_0x4677ca){for(var _0x3dacc4 in _0x4677ca){if(_0x4677ca['hasOwnProperty'](_0x3dacc4)){if(_[_0xdfc6('0x8d')](_0x4677ca[_0x3dacc4])){this[_0xdfc6('0x8c')](_0x4677ca[_0x3dacc4]);}else if(_[_0xdfc6('0x8e')](_0x4677ca[_0x3dacc4])){for(var _0x1bb1fe=0x0;_0x1bb1fe<_0x4677ca[_0x3dacc4][_0xdfc6('0x8f')];_0x1bb1fe++){this[_0xdfc6('0x8c')](_0x4677ca[_0x3dacc4][_0x1bb1fe]);}}else if(_[_0xdfc6('0x8a')](_0x4677ca[_0x3dacc4])){_0x4677ca[_0x3dacc4]=this[_0xdfc6('0x8b')](_0x4677ca[_0x3dacc4]);}}}};AGIVertices[_0xdfc6('0x11')]['saveRestApiResult']=function(_0x3701f3,_0xd1819f){for(var _0x5560a8 in _0x3701f3){if(_0x3701f3[_0xdfc6('0x89')](_0x5560a8)){if(_[_0xdfc6('0x8d')](_0x3701f3[_0x5560a8])){if(!_[_0xdfc6('0x41')](_0x3701f3[_0x5560a8])){this[_0xdfc6('0x90')](_0x3701f3[_0x5560a8],util[_0xdfc6('0x27')](_0xdfc6('0x91'),_0xd1819f,_0x5560a8));}}else if(_[_0xdfc6('0x8e')](_0x3701f3[_0x5560a8])){for(var _0xe1dc4f=0x0;_0xe1dc4f<_0x3701f3[_0x5560a8][_0xdfc6('0x8f')];_0xe1dc4f++){this['saveRestApiResult'](_0x3701f3[_0x5560a8][_0xe1dc4f],util[_0xdfc6('0x27')](_0xdfc6('0x91'),_0xd1819f,_0x5560a8+'['+_0xe1dc4f+']'));}}else{if(!_['isNil'](_0x3701f3[_0x5560a8])){this[_0xdfc6('0xe')][_0xdfc6('0x92')](util[_0xdfc6('0x27')](_0xdfc6('0x91'),_0xd1819f,_0x5560a8),_0x3701f3[_0x5560a8]);}}}}};AGIVertices[_0xdfc6('0x11')][_0xdfc6('0x93')]=function(_0x11f1dc){try{var _0x45d47d=JSON[_0xdfc6('0x66')](_0x11f1dc);this[_0xdfc6('0x8c')](_0x45d47d);return JSON[_0xdfc6('0x6d')](_0x45d47d);}catch(_0x753123){return this[_0xdfc6('0x8b')](_0x11f1dc);}};AGIVertices['prototype'][_0xdfc6('0x8b')]=function(_0x1e7112){var _0x199905=_0x1e7112[_0xdfc6('0x94')]('{');for(var _0x203e16=0x1;_0x203e16<_0x199905['length'];_0x203e16+=0x1){var _0x2f8f9c=_0x199905[_0x203e16][_0xdfc6('0x94')]('}');if(_0x2f8f9c[_0xdfc6('0x8f')]>0x1){_0x1e7112=_0x1e7112['replaceAll']('{'+_0x2f8f9c[0x0]+'}',this[_0xdfc6('0xe')][_0xdfc6('0x12')](_0x2f8f9c[0x0])[_0xdfc6('0x95')]||_0x2f8f9c[0x0]);}}if(_0x199905[_0xdfc6('0x8f')]===0x1){return _0x1e7112[_0xdfc6('0x4a')]();}return this['replaceAllVariables'](_0x1e7112);};AGIVertices[_0xdfc6('0x11')]['getAndSetVariable']=function(_0x2e891f,_0x36dd01){var _0x2d1475=this[_0xdfc6('0xe')][_0xdfc6('0x12')](_0x2e891f);if(_0x2d1475[_0xdfc6('0x96')]===-0x1){return _0x2d1475;}logger[_0xdfc6('0x2c')](util[_0xdfc6('0x27')]('The\x20\x22%s\x22\x20variable\x20value\x20is:\x20%s',_0x36dd01,_0x2d1475[_0xdfc6('0x95')]));return this[_0xdfc6('0xe')][_0xdfc6('0x92')](_0x36dd01,_0x2d1475[_0xdfc6('0x95')]);};AGIVertices[_0xdfc6('0x11')][_0xdfc6('0x7d')]=function(_0x4b6a83){return _0x4b6a83&&_0x4b6a83!=='0'&&_0x4b6a83!=='-1'&&_0x4b6a83!=='';};AGIVertices['prototype'][_0xdfc6('0x97')]=function(_0x36bd32){this[_0xdfc6('0x33')]['sync'](this,_0x36bd32,'-');_0x36bd32[_0xdfc6('0x98')]=_0x36bd32[_0xdfc6('0x97')];return{'code':0xc8,'result':'-'};};AGIVertices[_0xdfc6('0x11')][_0xdfc6('0x99')]=function(_0x115dc3){logger['info'](util[_0xdfc6('0x27')]('Enter\x20in\x20MRCPSynth\x20(%s)\x20block',_0x115dc3['label']));if(!this[_0xdfc6('0x7d')](_0x115dc3['text'])){return this['channel']['noop'](_0xdfc6('0x9a'));}var _0xd6085e='\x22'+_0x115dc3[_0xdfc6('0x59')]+'\x22';if(this[_0xdfc6('0x7d')](_0x115dc3[_0xdfc6('0x9b')])){_0xd6085e+=','+_0x115dc3[_0xdfc6('0x9b')];}var _0x3ee1d0=this[_0xdfc6('0xe')][_0xdfc6('0x54')](_0xdfc6('0x9c'),_0xd6085e);if(_0x3ee1d0[_0xdfc6('0x96')]===-0x1){return _0x3ee1d0;}return this[_0xdfc6('0xe')][_0xdfc6('0x9d')](util[_0xdfc6('0x27')](_0xdfc6('0x9e'),_0xd6085e));};AGIVertices[_0xdfc6('0x11')][_0xdfc6('0x9f')]=function(_0xdc5089){logger[_0xdfc6('0x2c')](util[_0xdfc6('0x27')](_0xdfc6('0xa0'),_0xdc5089['label']));if(!this[_0xdfc6('0x7d')](_0xdc5089[_0xdfc6('0xa1')])){return this['channel'][_0xdfc6('0x9d')]('no\x20grammar\x20configured');}var _0x40d36d=_0xdc5089[_0xdfc6('0xa1')];if(this['isConfigured'](_0xdc5089[_0xdfc6('0x9b')])){_0x40d36d+=','+_0xdc5089[_0xdfc6('0x9b')];}var _0x340c09=this['channel'][_0xdfc6('0x54')](_0xdfc6('0xa2'),_0x40d36d);if(_0x340c09['result']===-0x1){return _0x340c09;}var _0x1adc31=this['getAndSetVariable'](_0xdfc6('0xa3'),_0xdfc6('0xa4'));if(_0x1adc31[_0xdfc6('0x96')]===-0x1){return _0x1adc31;}var _0x52399f=this[_0xdfc6('0xa5')](_0xdfc6('0xa6'),'MRCP_RECOG_TRANSCRIPT');if(_0x52399f[_0xdfc6('0x96')]===-0x1){return _0x52399f;}var _0x30c072=this[_0xdfc6('0xa5')](_0xdfc6('0xa7'),'MRCP_RECOG_INSTANCE');if(_0x30c072[_0xdfc6('0x96')]===-0x1){return _0x30c072;}return this[_0xdfc6('0xe')][_0xdfc6('0x9d')](util[_0xdfc6('0x27')](_0xdfc6('0xa8'),_0x40d36d));};AGIVertices[_0xdfc6('0x11')]['agi']=function(_0x3bae9c){logger[_0xdfc6('0x2c')](util[_0xdfc6('0x27')](_0xdfc6('0xa9'),_0x3bae9c['label']));return this[_0xdfc6('0xe')][_0xdfc6('0xaa')]([_0x3bae9c[_0xdfc6('0xab')],_0x3bae9c[_0xdfc6('0xac')]]);};AGIVertices['prototype'][_0xdfc6('0xad')]=function(_0x368cad){logger[_0xdfc6('0x2c')](util[_0xdfc6('0x27')](_0xdfc6('0xae'),_0x368cad['label']));if(this['isConfigured'](_0x368cad[_0xdfc6('0x62')])){logger[_0xdfc6('0x2c')](util[_0xdfc6('0x27')](_0xdfc6('0xaf'),_0x368cad[_0xdfc6('0x62')]));var _0xdcd3fb=this[_0xdfc6('0xe')][_0xdfc6('0xb0')](_0x368cad[_0xdfc6('0x62')]);if(_0xdcd3fb[_0xdfc6('0x96')]===-0x1){return _0xdcd3fb;}}return this[_0xdfc6('0xe')]['answer']();};AGIVertices[_0xdfc6('0x11')][_0xdfc6('0xb1')]=function(_0x5f45ee){logger[_0xdfc6('0x2c')](util['format'](_0xdfc6('0xb2'),_0x5f45ee[_0xdfc6('0x35')]));if(!this[_0xdfc6('0x7d')](_0x5f45ee[_0xdfc6('0x47')])){return this[_0xdfc6('0xe')]['error'](_0x5f45ee,_0xdfc6('0xb3'));}_0x5f45ee[_0xdfc6('0x48')]=moment();if(this['isConfigured'](_0x5f45ee['delay'])){_0x5f45ee[_0xdfc6('0x48')]=moment()[_0xdfc6('0xb4')](_0x5f45ee['delay'],_0xdfc6('0xb5'));}if(!this[_0xdfc6('0x7d')](_0x5f45ee['callback_priority'])){_0x5f45ee[_0xdfc6('0x4b')]=0x2;}this[_0xdfc6('0x40')][_0xdfc6('0x69')](this,_0x5f45ee);return this[_0xdfc6('0xe')][_0xdfc6('0x9d')](util[_0xdfc6('0x27')](_0xdfc6('0xb6'),_0x5f45ee[_0xdfc6('0x46')],_0x5f45ee['list_id'],_0x5f45ee['scheduledAt']));};AGIVertices[_0xdfc6('0x11')][_0xdfc6('0xb7')]=function(_0x5ae9e7){logger['info'](util[_0xdfc6('0x27')]('Enter\x20in\x20CUSTOM\x20APP\x20(%s)\x20block',_0x5ae9e7[_0xdfc6('0x35')]));var _0x248acc=this[_0xdfc6('0xe')][_0xdfc6('0x54')](_0x5ae9e7['application'],_0x5ae9e7[_0xdfc6('0x9b')]);if(_0x248acc[_0xdfc6('0x96')]===-0x1){return _0x248acc;}return this['channel']['noop'](util['format'](_0xdfc6('0xb8'),_0x5ae9e7[_0xdfc6('0xb9')],_0x5ae9e7[_0xdfc6('0x9b')]));};AGIVertices[_0xdfc6('0x11')]['lumenvoxtts']=function(_0x2e7040){logger[_0xdfc6('0x2c')](util[_0xdfc6('0x27')](_0xdfc6('0xba'),_0x2e7040[_0xdfc6('0x35')]));if(!this[_0xdfc6('0x7d')](_0x2e7040['text'])){return this[_0xdfc6('0xe')][_0xdfc6('0x9d')](_0xdfc6('0x9a'));}var _0x24fe1d='\x22'+_0x2e7040[_0xdfc6('0x59')]+'\x22';if(this[_0xdfc6('0x7d')](_0x2e7040[_0xdfc6('0x9b')])){_0x24fe1d+=','+_0x2e7040[_0xdfc6('0x9b')];}var _0x1a09b0=this[_0xdfc6('0xe')]['exec'](_0xdfc6('0x9c'),_0x24fe1d);if(_0x1a09b0[_0xdfc6('0x96')]===-0x1){return _0x1a09b0;}return this['channel']['noop'](util[_0xdfc6('0x27')](_0xdfc6('0x9e'),_0x24fe1d));};AGIVertices[_0xdfc6('0x11')]['sestektts']=function(_0x677d49){logger['info'](util[_0xdfc6('0x27')]('Enter\x20in\x20SESTEKTTS\x20(%s)\x20block',_0x677d49[_0xdfc6('0x35')]));if(!this[_0xdfc6('0x7d')](_0x677d49[_0xdfc6('0x59')])){return this[_0xdfc6('0xe')]['noop'](_0xdfc6('0x9a'));}var _0x53a708='\x22'+_0x677d49['text']+'\x22';if(this[_0xdfc6('0x7d')](_0x677d49['options'])){_0x53a708+=','+_0x677d49[_0xdfc6('0x9b')];}var _0x511e72=this[_0xdfc6('0xe')][_0xdfc6('0x54')]('MRCPSynth',_0x53a708);if(_0x511e72[_0xdfc6('0x96')]===-0x1){return _0x511e72;}return this[_0xdfc6('0xe')]['noop'](util[_0xdfc6('0x27')](_0xdfc6('0x9e'),_0x53a708));};AGIVertices['prototype']['lumenvoxasr']=function(_0x383abc){logger[_0xdfc6('0x2c')](util['format'](_0xdfc6('0xbb'),_0x383abc[_0xdfc6('0x35')]));if(!this[_0xdfc6('0x7d')](_0x383abc['grammar'])){return this[_0xdfc6('0xe')]['noop']('no\x20grammar\x20configured');}var _0x56e708=_0x383abc[_0xdfc6('0xa1')];if(this['isConfigured'](_0x383abc[_0xdfc6('0x9b')])){_0x56e708+=','+_0x383abc['options'];}var _0x15df08=this[_0xdfc6('0xe')][_0xdfc6('0x54')]('MRCPRecog',_0x56e708);if(_0x15df08[_0xdfc6('0x96')]===-0x1){return _0x15df08;}var _0x7b69d9=this[_0xdfc6('0xa5')](_0xdfc6('0xa3'),_0xdfc6('0xbc'));if(_0x7b69d9['result']===-0x1){return _0x7b69d9;}var _0x1080b2=this[_0xdfc6('0xa5')](_0xdfc6('0xa6'),'LUMENVOX_ASR_TRANSCRIPT');if(_0x1080b2['result']===-0x1){return _0x1080b2;}var _0x437dfe=this['getAndSetVariable'](_0xdfc6('0xa7'),_0xdfc6('0xbd'));if(_0x437dfe[_0xdfc6('0x96')]===-0x1){return _0x437dfe;}return this[_0xdfc6('0xe')]['noop'](util[_0xdfc6('0x27')](_0xdfc6('0xa8'),_0x56e708));};AGIVertices['prototype']['sestekasr']=function(_0x26f168){logger['info'](util[_0xdfc6('0x27')](_0xdfc6('0xbe'),_0x26f168[_0xdfc6('0x35')]));if(!this[_0xdfc6('0x7d')](_0x26f168[_0xdfc6('0xa1')])){return this[_0xdfc6('0xe')][_0xdfc6('0x9d')](_0xdfc6('0xbf'));}var _0x59eb55=_0x26f168[_0xdfc6('0xa1')];if(this[_0xdfc6('0x7d')](_0x26f168[_0xdfc6('0x9b')])){_0x59eb55+=','+_0x26f168[_0xdfc6('0x9b')];}var _0x28281a=this[_0xdfc6('0xe')][_0xdfc6('0x54')](_0xdfc6('0xa2'),_0x59eb55);if(_0x28281a[_0xdfc6('0x96')]===-0x1){return _0x28281a;}var _0x2e9cde=this[_0xdfc6('0xa5')](_0xdfc6('0xa3'),_0xdfc6('0xc0'));if(_0x2e9cde[_0xdfc6('0x96')]===-0x1){return _0x2e9cde;}var _0x448a9b=this[_0xdfc6('0xa5')](_0xdfc6('0xa6'),'SESTEK_ASR_TRANSCRIPT');if(_0x448a9b[_0xdfc6('0x96')]===-0x1){return _0x448a9b;}var _0x3ce9ad=this[_0xdfc6('0xa5')](_0xdfc6('0xa7'),_0xdfc6('0xc1'));if(_0x3ce9ad['result']===-0x1){return _0x3ce9ad;}return this[_0xdfc6('0xe')]['noop'](util['format']('Executed\x20command\x20MRCPRecog\x20%s',_0x59eb55));};AGIVertices[_0xdfc6('0x11')][_0xdfc6('0xc2')]=function(_0x3c4620){logger[_0xdfc6('0x2c')](util[_0xdfc6('0x27')](_0xdfc6('0xc3'),_0x3c4620[_0xdfc6('0x35')]));if(!this[_0xdfc6('0x7d')](_0x3c4620[_0xdfc6('0xc4')])){return this[_0xdfc6('0xe')][_0xdfc6('0x2b')](_0x3c4620,_0xdfc6('0xc5'));}var _0x102c28=this['getSquareOdbc'][_0xdfc6('0x69')](this,_0x3c4620['odbc_id']);if(!_0x102c28){return this[_0xdfc6('0xe')][_0xdfc6('0x2b')](_0x3c4620,_0xdfc6('0xc6'));}if(!this[_0xdfc6('0x7d')](_0x3c4620[_0xdfc6('0x2e')])){return this[_0xdfc6('0xe')]['error'](_0x3c4620,_0xdfc6('0xc7'));}var _0x4c8f55=_0x3c4620[_0xdfc6('0x2e')]['replace'](/(\r\n|\n|\r)/gm,'\x20');this[_0xdfc6('0xe')][_0xdfc6('0x9d')](util['format']('query:\x20%s',_0x4c8f55));var _0x42a965=this[_0xdfc6('0x29')]['sync'](this,_0x102c28,_0x4c8f55);this[_0xdfc6('0x33')][_0xdfc6('0x69')](this,_0x3c4620,_0x4c8f55);if(!this['isConfigured'](_0x3c4620['variable_id'])){return this[_0xdfc6('0xe')][_0xdfc6('0x9d')]('no\x20variable\x20selected\x20for\x20the\x20result');}var _0x59b59a=this[_0xdfc6('0x12')][_0xdfc6('0x69')](this,_0x3c4620[_0xdfc6('0xc8')]);if(!_0x59b59a){return this[_0xdfc6('0xe')][_0xdfc6('0x2b')](_0x3c4620,_0xdfc6('0xc9'));}var _0x23b7bc=this;_0x42a965[_0xdfc6('0xca')](function(_0x13af38,_0x1318b9){Object[_0xdfc6('0xcb')](_0x13af38)['forEach'](function(_0x4ea7ff){_0x23b7bc['channel'][_0xdfc6('0x92')](util[_0xdfc6('0x27')](_0xdfc6('0xcc'),_0x59b59a,_0x1318b9,_0x4ea7ff),_0x13af38[_0x4ea7ff]);});});this[_0xdfc6('0xe')][_0xdfc6('0x92')](util[_0xdfc6('0x27')]('%s_ROWS_COUNT',_0x59b59a),_0x42a965[_0xdfc6('0x8f')]);return this[_0xdfc6('0xe')][_0xdfc6('0x9d')](util[_0xdfc6('0x27')](_0xdfc6('0xcd'),_0x59b59a));};AGIVertices['prototype'][_0xdfc6('0xce')]=function(_0x11ee8d){logger[_0xdfc6('0xcf')](util[_0xdfc6('0x27')](_0xdfc6('0xd0'),_0x11ee8d['label']));if(!this[_0xdfc6('0x7d')](_0x11ee8d[_0xdfc6('0xd1')])){return this[_0xdfc6('0xe')][_0xdfc6('0x2b')](_0x11ee8d,_0xdfc6('0xd2'));}var _0x7afb52=this[_0xdfc6('0x1b')][_0xdfc6('0x69')](this,_0x11ee8d[_0xdfc6('0xd1')]);if(!_0x7afb52){return this[_0xdfc6('0xe')][_0xdfc6('0x2b')](_0x11ee8d,'no\x20user\x20found');}var _0x2f0a33=this[_0xdfc6('0xe')]['exec']('DIAL',[util[_0xdfc6('0x27')]('SIP/%s',_0x7afb52),_0x11ee8d[_0xdfc6('0x62')],_0x11ee8d[_0xdfc6('0xd3')],_0x11ee8d['url']]);if(_0x2f0a33[_0xdfc6('0x96')]===-0x1){return _0x2f0a33;}return this[_0xdfc6('0xe')][_0xdfc6('0x9d')](util['format']('Executed\x20command\x20%s',_0xdfc6('0xd4')));};AGIVertices[_0xdfc6('0x11')][_0xdfc6('0xd5')]=function(_0x3933a9){logger[_0xdfc6('0x2c')](util[_0xdfc6('0x27')](_0xdfc6('0xd6'),_0x3933a9['label']));if(!this['isConfigured'](_0x3933a9[_0xdfc6('0x75')])){return this[_0xdfc6('0xe')][_0xdfc6('0x9d')](_0xdfc6('0xd7'));}if(!this[_0xdfc6('0x7d')](_0x3933a9[_0xdfc6('0x59')])){return this[_0xdfc6('0xe')][_0xdfc6('0x9d')](_0xdfc6('0x9a'));}this[_0xdfc6('0xe')][_0xdfc6('0xd8')]=!![];this[_0xdfc6('0x33')](_0x3933a9);this[_0xdfc6('0x3f')](_0x3933a9[_0xdfc6('0x59')],'in');this[_0xdfc6('0xe')][_0xdfc6('0x9d')](util[_0xdfc6('0x27')](_0xdfc6('0xd9'),_0x3933a9[_0xdfc6('0x59')]));var _0x515848=this['googleDialogflow'][_0xdfc6('0x69')](this,_0x3933a9);if(_0x515848){for(var _0x75bb4b in _0x515848){if(_0x515848[_0xdfc6('0x89')](_0x75bb4b)){this[_0xdfc6('0xe')][_0xdfc6('0x92')](util[_0xdfc6('0x27')](_0xdfc6('0xda'),_0x75bb4b[_0xdfc6('0xdb')]()),_0x515848[_0x75bb4b]);}}this[_0xdfc6('0x3f')](_0x515848[_0xdfc6('0xdc')],'out');return this[_0xdfc6('0xe')][_0xdfc6('0x9d')](util[_0xdfc6('0x27')](_0xdfc6('0xdd'),_0x515848[_0xdfc6('0xdc')]));}return this[_0xdfc6('0xe')][_0xdfc6('0x2b')](_0x3933a9,'Dialogflow\x20is\x20unreachable');};AGIVertices[_0xdfc6('0x11')][_0xdfc6('0xde')]=function(_0x1b090d){logger[_0xdfc6('0x2c')](util[_0xdfc6('0x27')]('Enter\x20in\x20SESTEKNDA\x20(%s)\x20block',_0x1b090d[_0xdfc6('0x35')]));if(!this[_0xdfc6('0x7d')](_0x1b090d[_0xdfc6('0xdf')])){return this['channel'][_0xdfc6('0x9d')]('no\x20ndauth\x20url\x20configured');}if(!this[_0xdfc6('0x7d')](_0x1b090d[_0xdfc6('0xe0')])){return this[_0xdfc6('0xe')][_0xdfc6('0x9d')](_0xdfc6('0xe1'));}if(!this[_0xdfc6('0x7d')](_0x1b090d[_0xdfc6('0xe2')])){return this['channel'][_0xdfc6('0x9d')](_0xdfc6('0xe3'));}if(!this['isConfigured'](_0x1b090d[_0xdfc6('0xe4')])){return this[_0xdfc6('0xe')][_0xdfc6('0x9d')]('no\x20text\x20configured');}this['channel'][_0xdfc6('0xd8')]=!![];this[_0xdfc6('0x33')](_0x1b090d);this[_0xdfc6('0x3f')](_0x1b090d[_0xdfc6('0x59')],'in');this[_0xdfc6('0xe')][_0xdfc6('0x9d')](util['format']('Trying\x20SestekNDA:\x20%s',_0x1b090d[_0xdfc6('0x59')]));var _0xf81b0a=this[_0xdfc6('0x77')][_0xdfc6('0x69')](this,_0x1b090d);if(_0xf81b0a){for(var _0x302ef7 in _0xf81b0a){if(_0xf81b0a[_0xdfc6('0x89')](_0x302ef7)){this[_0xdfc6('0xe')][_0xdfc6('0x92')](util['format']('SESTEK_NDA_%s',_0x302ef7['toUpperCase']()),_0xf81b0a[_0x302ef7]);}}this[_0xdfc6('0x3f')](_0xf81b0a[_0xdfc6('0xdc')],_0xdfc6('0xe5'));if(_0xf81b0a[_0xdfc6('0xe6')]){this[_0xdfc6('0xe')][_0xdfc6('0x9d')](util[_0xdfc6('0x27')]('Sestek\x20NDA\x20%s\x20file\x20created',_0xf81b0a[_0xdfc6('0xe6')]));var _0x4c48c0=this[_0xdfc6('0xe')][_0xdfc6('0xe7')](_0xf81b0a[_0xdfc6('0xe6')]);try{fs['unlink'](_0xf81b0a['audiofile']+_0xdfc6('0xe8'));}catch(_0xa049bf){logger[_0xdfc6('0x2b')](_0xa049bf);}return _0x4c48c0;}else{return this[_0xdfc6('0xe')][_0xdfc6('0x9d')](util[_0xdfc6('0x27')]('SestekNDA\x20Result\x20%s',_0xf81b0a['speech']));}}return this[_0xdfc6('0xe')][_0xdfc6('0x2b')](_0x1b090d,_0xdfc6('0xe9'));};AGIVertices[_0xdfc6('0x11')]['end']=function(_0x3c6b06){logger[_0xdfc6('0x2c')](util['format'](_0xdfc6('0xea'),_0x3c6b06['label']));return this[_0xdfc6('0xe')][_0xdfc6('0x9d')](_0xdfc6('0xeb'));};AGIVertices[_0xdfc6('0x11')][_0xdfc6('0xec')]=function(_0x38f139){logger[_0xdfc6('0x2c')](util[_0xdfc6('0x27')](_0xdfc6('0xed'),_0x38f139[_0xdfc6('0x35')]));var _0x3eccce='';if(_0x38f139[_0xdfc6('0xee')]){if(!this['isConfigured'](_0x38f139[_0xdfc6('0xee')])){return this[_0xdfc6('0xe')][_0xdfc6('0x2b')](_0x38f139,'no\x20trunk\x20selected');}else{var _0x49f2b2=parseInt(_0x38f139['trunk_id'],0xa);if(isNaN(_0x49f2b2)){_0x3eccce=_0x38f139['trunk_id'];}else{_0x3eccce=this[_0xdfc6('0xef')][_0xdfc6('0x69')](this,_0x38f139[_0xdfc6('0xee')]);if(!_0x3eccce){return this[_0xdfc6('0xe')][_0xdfc6('0x2b')](_0x38f139,'no\x20trunk\x20found');}}}}else if(_0x38f139[_0xdfc6('0xf0')]){_0x3eccce=_0x38f139[_0xdfc6('0xf0')];}else{return this[_0xdfc6('0xe')][_0xdfc6('0x2b')](_0x38f139,_0xdfc6('0xf1'));}var _0x5b2eaa=this[_0xdfc6('0xe')]['exec']('DIAL',[util[_0xdfc6('0x27')](_0xdfc6('0xf2'),_0x3eccce,_0x38f139[_0xdfc6('0x46')]),_0x38f139[_0xdfc6('0x62')],_0x38f139[_0xdfc6('0xd3')],_0x38f139[_0xdfc6('0x60')]]);if(_0x5b2eaa[_0xdfc6('0x96')]===-0x1){return _0x5b2eaa;}return this[_0xdfc6('0xe')]['noop'](util[_0xdfc6('0x27')](_0xdfc6('0xf3'),_0xdfc6('0xd4')));};AGIVertices['prototype'][_0xdfc6('0xf4')]=function(_0x48ec27){logger[_0xdfc6('0x2c')](util['format'](_0xdfc6('0xf5'),_0x48ec27[_0xdfc6('0x35')]));return this['channel'][_0xdfc6('0x9d')]('finally');};AGIVertices['prototype'][_0xdfc6('0xc')]=function(_0x13072b){logger['info'](util[_0xdfc6('0x27')](_0xdfc6('0xf6'),_0x13072b[_0xdfc6('0x35')]));if(_0x13072b[_0xdfc6('0x98')]===0x0){return this['maxRetry'](_0x13072b);}_0x13072b['retry']-=0x1;if(!this[_0xdfc6('0x7d')](_0x13072b[_0xdfc6('0xf7')])){return this[_0xdfc6('0xe')]['error'](_0x13072b,_0xdfc6('0xf8'));}var _0x34dc56=this['getSound'][_0xdfc6('0x69')](this,_0x13072b[_0xdfc6('0xf7')]);if(!_0x34dc56){return this[_0xdfc6('0xe')][_0xdfc6('0x2b')](_0x13072b,'no\x20file\x20audio\x20found');}if(!this[_0xdfc6('0x7d')](_0x13072b[_0xdfc6('0xc8')])){return this[_0xdfc6('0xe')][_0xdfc6('0x2b')]('no\x20variable\x20selected\x20for\x20the\x20result');}var _0x24c658=this[_0xdfc6('0xe')]['getData'](_0x34dc56,_0x13072b['response'],_0x13072b[_0xdfc6('0xf9')]);var _0x3e0cc2=_0x24c658[_0xdfc6('0x96')]?_0x24c658['result'][_0xdfc6('0x4a')]():'';logger['info'](_0xdfc6('0xfa'),JSON[_0xdfc6('0x6d')](_0x24c658));if(_0x24c658[_0xdfc6('0x96')]===-0x1){this[_0xdfc6('0x33')][_0xdfc6('0x69')](this,_0x13072b,_0x3e0cc2);return _0x24c658;}else if(_0x24c658['extra']===_0xdfc6('0x62')){_0x24c658[_0xdfc6('0x96')]=_0x3e0cc2['length']>=parseInt(_0x13072b['mindigit'])?'x':'i';}else{_0x24c658[_0xdfc6('0x96')]=_0x3e0cc2['length']>=parseInt(_0x13072b[_0xdfc6('0xfb')])&&_0x3e0cc2[_0xdfc6('0x8f')]<=parseInt(_0x13072b[_0xdfc6('0xf9')])?'x':'i';}var _0x3cac25=this[_0xdfc6('0x12')]['sync'](this,_0x13072b[_0xdfc6('0xc8')]);if(!_0x3cac25){return this[_0xdfc6('0xe')][_0xdfc6('0x2b')](_0x13072b,_0xdfc6('0xc9'));}this[_0xdfc6('0xe')][_0xdfc6('0x92')](_0x3cac25,_0x3e0cc2);if(this[_0xdfc6('0x7d')](_0x13072b[_0xdfc6('0xfc')])){var _0x28fd07=parseInt(_0x13072b[_0xdfc6('0xfc')],0xa);var _0x305406=rs[_0xdfc6('0xfd')]({'charset':'*','length':_0x28fd07});var _0x43679f=_0x3e0cc2['length'];if(_0x43679f>0x0){if(_0x43679f>_0x28fd07){this['createSquareDetailsReport'][_0xdfc6('0x69')](this,_0x13072b,_0x13072b[_0xdfc6('0xfe')]===_0xdfc6('0xff')?_0x305406+_0x3e0cc2[_0xdfc6('0x100')](_0x28fd07):_0x3e0cc2['substr'](0x0,_0x43679f-_0x28fd07)+_0x305406);}else{this[_0xdfc6('0x33')][_0xdfc6('0x69')](this,_0x13072b,rs[_0xdfc6('0xfd')]({'charset':'*','length':_0x43679f}));}}else{this[_0xdfc6('0x33')][_0xdfc6('0x69')](this,_0x13072b,'');}}else{this[_0xdfc6('0x33')][_0xdfc6('0x69')](this,_0x13072b,_0x3e0cc2);}return _0x24c658;};AGIVertices[_0xdfc6('0x11')]['getsecretdigits']=function(_0x1f85c4){logger[_0xdfc6('0x2c')](util[_0xdfc6('0x27')](_0xdfc6('0x101'),_0x1f85c4[_0xdfc6('0x35')]));return this[_0xdfc6('0xc')](_0x1f85c4);};AGIVertices[_0xdfc6('0x11')][_0xdfc6('0x102')]=function(_0x38b712){logger[_0xdfc6('0x2c')](util[_0xdfc6('0x27')](_0xdfc6('0x103'),_0x38b712[_0xdfc6('0x35')]));this[_0xdfc6('0x33')][_0xdfc6('0x69')](this,_0x38b712,_0x38b712['goalname']);return this['channel'][_0xdfc6('0x9d')](util[_0xdfc6('0x27')]('GOAL\x20%s',_0x38b712[_0xdfc6('0x104')]));};AGIVertices[_0xdfc6('0x11')][_0xdfc6('0x105')]=function(_0x5815f7){logger['info'](util[_0xdfc6('0x27')]('[AGI]\x20Enter\x20in\x20AWSPOLLY\x20(%s)\x20block',_0x5815f7[_0xdfc6('0x35')]));if(!this[_0xdfc6('0x7d')](_0x5815f7[_0xdfc6('0x83')])||!this[_0xdfc6('0x7d')](_0x5815f7['aws_secret_access_key'])){return this[_0xdfc6('0xe')]['noop'](_0xdfc6('0x106'));}if(!this[_0xdfc6('0x7d')](_0x5815f7[_0xdfc6('0x59')])){return this[_0xdfc6('0xe')][_0xdfc6('0x9d')](_0xdfc6('0x9a'));}this[_0xdfc6('0xe')][_0xdfc6('0x9d')](util[_0xdfc6('0x27')](_0xdfc6('0x107'),_0x5815f7['text']));var _0x5b3f27=this['awsPolly'][_0xdfc6('0x69')](this,_0x5815f7);if(_0x5b3f27){this['channel'][_0xdfc6('0x9d')](util['format']('aws\x20Polly\x20%s\x20file\x20created',_0x5b3f27));var _0x163711=this['channel'][_0xdfc6('0xe7')](_0x5b3f27);try{fs['unlink'](_0x5b3f27+_0xdfc6('0xe8'));}catch(_0x4f51a9){logger[_0xdfc6('0x2b')](_0x4f51a9);}return _0x163711;}return this[_0xdfc6('0xe')][_0xdfc6('0x2b')](_0x5815f7,_0xdfc6('0x108'));};AGIVertices['prototype'][_0xdfc6('0x109')]=function(_0x5b721c){logger['info'](util[_0xdfc6('0x27')](_0xdfc6('0x10a'),_0x5b721c[_0xdfc6('0x35')]));if(!this[_0xdfc6('0x7d')](_0x5b721c['aws_access_key_id'])||!this[_0xdfc6('0x7d')](_0x5b721c[_0xdfc6('0x84')])){return this[_0xdfc6('0xe')]['noop'](_0xdfc6('0x106'));}if(!this[_0xdfc6('0x7d')](_0x5b721c[_0xdfc6('0x10b')])){return this[_0xdfc6('0xe')][_0xdfc6('0x9d')]('no\x20bot\x20name\x20configured');}if(!this['isConfigured'](_0x5b721c[_0xdfc6('0x59')])){return this[_0xdfc6('0xe')][_0xdfc6('0x9d')](_0xdfc6('0x9a'));}this[_0xdfc6('0xe')][_0xdfc6('0xd8')]=!![];this[_0xdfc6('0x33')](_0x5b721c);this[_0xdfc6('0x3f')](_0x5b721c['text'],'in');this[_0xdfc6('0xe')]['noop'](util[_0xdfc6('0x27')](_0xdfc6('0x10c'),_0x5b721c[_0xdfc6('0x59')]));var _0x368d86=this[_0xdfc6('0x82')]['sync'](this,_0x5b721c);if(_0x368d86){for(var _0x1e6c1c in _0x368d86){if(_0x368d86['hasOwnProperty'](_0x1e6c1c)&&_['isString'](_0x368d86[_0x1e6c1c])){this['channel'][_0xdfc6('0x92')](util['format'](_0xdfc6('0x10d'),_0x1e6c1c[_0xdfc6('0xdb')]()),_0x368d86[_0x1e6c1c]);}}if(_[_0xdfc6('0x42')](_0x368d86['message'])){return this[_0xdfc6('0xe')]['noop']('Amazon\x20Lex\x20ready\x20for\x20fulfillment');}else{this[_0xdfc6('0x3f')](_0x368d86[_0xdfc6('0x72')],_0xdfc6('0xe5'));return this[_0xdfc6('0xe')][_0xdfc6('0x9d')](util[_0xdfc6('0x27')]('Amazon\x20Lex\x20Result\x20%s',_0x368d86['message']));}}return this['channel'][_0xdfc6('0x2b')](_0x5b721c,'Amazon\x20Lex\x20is\x20unreachable');};AGIVertices[_0xdfc6('0x11')][_0xdfc6('0x10e')]=function(_0x47d316){logger[_0xdfc6('0x2c')](util[_0xdfc6('0x27')]('Enter\x20in\x20GOOGLEASR\x20(%s)\x20block\x20%s',_0x47d316[_0xdfc6('0x35')],_0x47d316['timeout']));if(!this[_0xdfc6('0x7d')](_0x47d316[_0xdfc6('0x75')])){return this[_0xdfc6('0xe')]['noop'](_0xdfc6('0xd7'));}var _0x4ee86a=_0xdfc6('0x10f');var _0x505ab3=util['format'](_0xdfc6('0x110'),FILES_PATH,rs['generate'](0x4));var _0x195b3e=util['format'](_0xdfc6('0x91'),_0x505ab3,_0x4ee86a);var _0x301b5e=!![];if(_0x47d316[_0xdfc6('0x111')]===_0xdfc6('0x112')){_0x301b5e=![];}var _0x56713d=this[_0xdfc6('0xe')]['recordFile'](_0x505ab3,_0x4ee86a,_0x47d316['intKey'],_0x47d316[_0xdfc6('0x62')],undefined,_0x301b5e);if(_0x56713d[_0xdfc6('0x96')]!==-0x1){this[_0xdfc6('0xe')]['noop'](util[_0xdfc6('0x27')](_0xdfc6('0x113'),_0x195b3e));var _0x254889=this[_0xdfc6('0x85')]['sync'](this,_0x47d316,_0x195b3e);if(_0x254889){for(var _0x32764d in _0x254889){if(_0x254889['hasOwnProperty'](_0x32764d)){this['channel'][_0xdfc6('0x92')](util['format'](_0xdfc6('0x114'),_0x32764d['toUpperCase']()),_0x254889[_0x32764d]);}}return this[_0xdfc6('0xe')][_0xdfc6('0x9d')](util['format'](_0xdfc6('0x115'),JSON[_0xdfc6('0x6d')](_0x254889)));}}return _0x56713d;};AGIVertices['prototype']['tildeasr']=function(_0x3edfdd){logger[_0xdfc6('0x2c')](util['format'](_0xdfc6('0x116'),_0x3edfdd[_0xdfc6('0x35')]));if(!this[_0xdfc6('0x7d')](_0x3edfdd[_0xdfc6('0x117')])){return this[_0xdfc6('0xe')][_0xdfc6('0x9d')](_0xdfc6('0x118'));}if(!this[_0xdfc6('0x7d')](_0x3edfdd[_0xdfc6('0x119')])){return this[_0xdfc6('0xe')][_0xdfc6('0x9d')](_0xdfc6('0x11a'));}var _0x2b07df='wav';var _0x5e8af8=util[_0xdfc6('0x27')]('%s/recordings/%s',FILES_PATH,rs[_0xdfc6('0xfd')](0x4));var _0x234b7b=util[_0xdfc6('0x27')](_0xdfc6('0x91'),_0x5e8af8,_0x2b07df);var _0x31876e=!![];if(_0x3edfdd['beep']===_0xdfc6('0x112')){_0x31876e=![];}var _0x403719=this['channel'][_0xdfc6('0x11b')](_0x5e8af8,_0x2b07df,_0x3edfdd[_0xdfc6('0x11c')],_0x3edfdd['timeout'],undefined,_0x31876e);if(_0x403719[_0xdfc6('0x96')]!==-0x1){this[_0xdfc6('0xe')][_0xdfc6('0x9d')](util[_0xdfc6('0x27')]('tilde\x20%s\x20file\x20created',_0x234b7b));var _0x4baa59=this[_0xdfc6('0x86')]['sync'](this,_0x3edfdd,_0x234b7b);if(_0x4baa59){for(var _0x3d7616 in _0x4baa59){if(_0x4baa59['hasOwnProperty'](_0x3d7616)){this[_0xdfc6('0xe')]['setVariable'](util[_0xdfc6('0x27')](_0xdfc6('0x11d'),_0x3d7616[_0xdfc6('0xdb')]()),_0x4baa59[_0x3d7616]);}}return this[_0xdfc6('0xe')][_0xdfc6('0x9d')](util['format'](_0xdfc6('0x11e'),JSON[_0xdfc6('0x6d')](_0x4baa59)));}}return _0x403719;};AGIVertices[_0xdfc6('0x11')]['gotoc']=function(_0x155cd4){logger[_0xdfc6('0x2c')](util[_0xdfc6('0x27')](_0xdfc6('0x11f'),_0x155cd4[_0xdfc6('0x35')]));return this[_0xdfc6('0xe')]['continueAt'](_0x155cd4[_0xdfc6('0x120')],_0x155cd4['extension'],_0x155cd4[_0xdfc6('0x3b')]);};AGIVertices[_0xdfc6('0x11')]['gotoif']=function(_0x23eed3){logger[_0xdfc6('0x2c')](util[_0xdfc6('0x27')]('Enter\x20in\x20GOTOIF\x20(%s)\x20block',_0x23eed3[_0xdfc6('0x35')]));if(!this[_0xdfc6('0x7d')](_0x23eed3[_0xdfc6('0x121')])){return this[_0xdfc6('0xe')][_0xdfc6('0x2b')](_0x23eed3,_0xdfc6('0x122'));}try{var _0x2cfd2d=eval(_0x23eed3['condition'])?_0xdfc6('0x123'):_0xdfc6('0x124');this[_0xdfc6('0xe')][_0xdfc6('0x9d')](util[_0xdfc6('0x27')](_0xdfc6('0x125'),_0x23eed3[_0xdfc6('0x121')],_0x2cfd2d));return{'code':0xc8,'result':_0x2cfd2d};}catch(_0x5da17e){return{'code':0xc8,'result':'false'};}};AGIVertices[_0xdfc6('0x11')][_0xdfc6('0x126')]=function(_0x1104c7){logger[_0xdfc6('0x2c')](util['format'](_0xdfc6('0x127'),_0x1104c7[_0xdfc6('0x35')]));if(!this[_0xdfc6('0x7d')](_0x1104c7[_0xdfc6('0x128')])){return this[_0xdfc6('0xe')]['error'](_0x1104c7,_0xdfc6('0x129'));}var _0x4ad8af=this[_0xdfc6('0x22')][_0xdfc6('0x69')](this,_0x1104c7[_0xdfc6('0x128')]);if(!_0x4ad8af){return this[_0xdfc6('0xe')][_0xdfc6('0x2b')](_0x1104c7,_0xdfc6('0x12a'));}for(var _0x1d5b6a=0x0;_0x1d5b6a<_0x4ad8af[_0xdfc6('0x8f')];_0x1d5b6a+=0x1){var _0x221a4b=this[_0xdfc6('0xe')][_0xdfc6('0x12')](util[_0xdfc6('0x27')](_0xdfc6('0x12b'),_0x4ad8af[_0x1d5b6a]));if(_0x221a4b[_0xdfc6('0x96')]===-0x1){return _0x221a4b;}logger[_0xdfc6('0x2c')](util[_0xdfc6('0x27')](_0xdfc6('0x12c'),_0x4ad8af[_0x1d5b6a],_0x221a4b['extra']));if(_0x221a4b[_0xdfc6('0x95')]===_0xdfc6('0x123')){logger[_0xdfc6('0x2c')](util[_0xdfc6('0x27')](_0xdfc6('0x12c'),_0x4ad8af[_0x1d5b6a],_0xdfc6('0x123')));this[_0xdfc6('0xe')][_0xdfc6('0x9d')](util[_0xdfc6('0x27')]('IFTIME\x20%s\x20%s',_0x4ad8af[_0x1d5b6a],_0xdfc6('0x123')));return{'code':0xc8,'result':'true'};}else{logger['info'](util[_0xdfc6('0x27')](_0xdfc6('0x12c'),_0x4ad8af[_0x1d5b6a],_0xdfc6('0x124')));this[_0xdfc6('0xe')][_0xdfc6('0x9d')](util['format'](_0xdfc6('0x12c'),_0x4ad8af[_0x1d5b6a],'false'));}}return{'code':0xc8,'result':_0xdfc6('0x124')};};AGIVertices[_0xdfc6('0x11')][_0xdfc6('0x12d')]=function(_0x5eca70){logger[_0xdfc6('0x2c')](util['format'](_0xdfc6('0x12e'),_0x5eca70[_0xdfc6('0x35')]));return this[_0xdfc6('0xe')][_0xdfc6('0x12d')]();};AGIVertices['prototype'][_0xdfc6('0x12f')]=function(_0x5c6ecd){logger['info'](util[_0xdfc6('0x27')](_0xdfc6('0x130'),_0x5c6ecd[_0xdfc6('0x35')]));if(!this[_0xdfc6('0x7d')](_0x5c6ecd[_0xdfc6('0x75')])){return this['channel']['noop'](_0xdfc6('0xd7'));}var _0x22edc6=_0xdfc6('0x10f');var _0x120c9f=util['format'](_0xdfc6('0x110'),FILES_PATH,rs[_0xdfc6('0xfd')](0x4));var _0x45ec61=util[_0xdfc6('0x27')](_0xdfc6('0x91'),_0x120c9f,_0x22edc6);var _0x5dd9f0=!![];if(_0x5c6ecd[_0xdfc6('0x111')]===_0xdfc6('0x112')){_0x5dd9f0=![];}var _0x55468f=this[_0xdfc6('0xe')][_0xdfc6('0x11b')](_0x120c9f,_0x22edc6,_0x5c6ecd[_0xdfc6('0x11c')],_0x5c6ecd[_0xdfc6('0x62')],undefined,_0x5dd9f0);if(_0x55468f[_0xdfc6('0x96')]!==-0x1){this[_0xdfc6('0xe')][_0xdfc6('0x9d')](util[_0xdfc6('0x27')](_0xdfc6('0x131'),_0x45ec61));var _0x802ff6=this[_0xdfc6('0x7c')][_0xdfc6('0x69')](this,_0x5c6ecd,_0x45ec61);if(_0x802ff6){for(var _0x436a44 in _0x802ff6){if(_0x802ff6['hasOwnProperty'](_0x436a44)){this[_0xdfc6('0xe')][_0xdfc6('0x92')](util[_0xdfc6('0x27')](_0xdfc6('0x132'),_0x436a44[_0xdfc6('0xdb')]()),_0x802ff6[_0x436a44]);}}return this[_0xdfc6('0xe')][_0xdfc6('0x9d')](util[_0xdfc6('0x27')](_0xdfc6('0x133'),JSON[_0xdfc6('0x6d')](_0x802ff6)));}}return _0x55468f;};AGIVertices[_0xdfc6('0x11')][_0xdfc6('0x134')]=function(_0x3ec44d){logger['info'](util['format']('Enter\x20in\x20ISPEECHTTS\x20(%s)\x20block',_0x3ec44d['label']));if(!this['isConfigured'](_0x3ec44d[_0xdfc6('0x75')])){return this['channel'][_0xdfc6('0x9d')](_0xdfc6('0xd7'));}if(!this[_0xdfc6('0x7d')](_0x3ec44d[_0xdfc6('0x59')])){return this[_0xdfc6('0xe')][_0xdfc6('0x9d')](_0xdfc6('0x9a'));}this[_0xdfc6('0xe')][_0xdfc6('0x9d')](util[_0xdfc6('0x27')]('Trying\x20ispeech\x20TTS\x20%s',_0x3ec44d[_0xdfc6('0x59')]));var _0x4bf767=this['ispeechTTS']['sync'](this,_0x3ec44d);if(_0x4bf767){this[_0xdfc6('0xe')]['noop'](util['format'](_0xdfc6('0x131'),_0x4bf767));var _0x5c2676=this[_0xdfc6('0xe')][_0xdfc6('0xe7')](_0x4bf767,_0x3ec44d[_0xdfc6('0x11c')]);try{fs['unlink'](_0x4bf767+_0xdfc6('0xe8'));}catch(_0x44783a){logger[_0xdfc6('0x2b')](_0x44783a);}return _0x5c2676;}return this[_0xdfc6('0xe')][_0xdfc6('0x2b')](_0x3ec44d,_0xdfc6('0x135'));};AGIVertices[_0xdfc6('0x11')][_0xdfc6('0x136')]=function(_0xfda5e4){logger[_0xdfc6('0x2c')](util[_0xdfc6('0x27')](_0xdfc6('0x137'),_0xfda5e4[_0xdfc6('0x35')]));if(!this[_0xdfc6('0x7d')](_0xfda5e4[_0xdfc6('0x138')])){return this['channel'][_0xdfc6('0x2b')](_0xfda5e4,_0xdfc6('0x139'));}logger[_0xdfc6('0x2c')](util[_0xdfc6('0x27')](_0xdfc6('0x13a'),this[_0xdfc6('0xe')]['callerid'],_0xfda5e4[_0xdfc6('0x138')]));var _0x6b62d5=this[_0xdfc6('0x50')][_0xdfc6('0x69')](this,_0xfda5e4['findBy']);if(_0x6b62d5){logger[_0xdfc6('0x2c')](util[_0xdfc6('0x27')](_0xdfc6('0x13b'),this['channel'][_0xdfc6('0x38')],_0xfda5e4[_0xdfc6('0x138')]));this[_0xdfc6('0xe')][_0xdfc6('0x9d')](util[_0xdfc6('0x27')](_0xdfc6('0x13b'),this[_0xdfc6('0xe')][_0xdfc6('0x38')],_0xfda5e4[_0xdfc6('0x138')]));return{'code':0xc8,'result':'success'};}else{logger[_0xdfc6('0x2c')](util['format']('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this[_0xdfc6('0xe')]['callerid'],_0xfda5e4['findBy']));this[_0xdfc6('0xe')][_0xdfc6('0x9d')](util[_0xdfc6('0x27')](_0xdfc6('0x13c'),this[_0xdfc6('0xe')][_0xdfc6('0x38')],_0xfda5e4[_0xdfc6('0x138')]));return{'code':0xc8,'result':_0xdfc6('0x13d')};}};AGIVertices[_0xdfc6('0x11')][_0xdfc6('0x13e')]=function(_0x3731b6){logger[_0xdfc6('0x2c')](util[_0xdfc6('0x27')](_0xdfc6('0x13f'),_0x3731b6[_0xdfc6('0x35')]));if(!this['isConfigured'](_0x3731b6[_0xdfc6('0x138')])){return this[_0xdfc6('0xe')][_0xdfc6('0x2b')](_0x3731b6,_0xdfc6('0x139'));}logger[_0xdfc6('0x2c')](util[_0xdfc6('0x27')]('FIND\x20AGENT\x20%s\x20BY\x20%s',this[_0xdfc6('0xe')]['callerid'],_0x3731b6[_0xdfc6('0x138')]));var _0x22a7bf=this[_0xdfc6('0x4f')][_0xdfc6('0x69')](this,_0x3731b6[_0xdfc6('0x138')]);if(_0x22a7bf){logger[_0xdfc6('0x2c')](util['format']('AGENT\x20%s\x20FOUND\x20BY',this['channel'][_0xdfc6('0x38')],_0x3731b6['findBy']));this[_0xdfc6('0xe')]['noop'](util['format'](_0xdfc6('0x13b'),this[_0xdfc6('0xe')][_0xdfc6('0x38')],_0x3731b6[_0xdfc6('0x138')]));return{'code':0xc8,'result':'success'};}else{logger[_0xdfc6('0x2c')](util[_0xdfc6('0x27')](_0xdfc6('0x13c'),this[_0xdfc6('0xe')][_0xdfc6('0x38')],_0x3731b6[_0xdfc6('0x138')]));this[_0xdfc6('0xe')][_0xdfc6('0x9d')](util[_0xdfc6('0x27')](_0xdfc6('0x13c'),this[_0xdfc6('0xe')][_0xdfc6('0x38')],_0x3731b6[_0xdfc6('0x138')]));return{'code':0xc8,'result':_0xdfc6('0x13d')};}};AGIVertices['prototype'][_0xdfc6('0x140')]=function(_0x29963e){logger[_0xdfc6('0x2c')](util['format'](_0xdfc6('0x141'),_0x29963e[_0xdfc6('0x35')]));if(!this['isConfigured'](_0x29963e[_0xdfc6('0x142')])){return this[_0xdfc6('0xe')][_0xdfc6('0x2b')](_0x29963e,'no\x20operation\x20configured');}this[_0xdfc6('0xe')][_0xdfc6('0x9d')](util['format'](_0xdfc6('0x143'),_0x29963e[_0xdfc6('0x142')]));var _0x1562fc=eval(_0x29963e['operation']);if(!this[_0xdfc6('0x7d')](_0x29963e[_0xdfc6('0xc8')])){return this[_0xdfc6('0xe')][_0xdfc6('0x9d')](_0xdfc6('0x144'));}var _0x1135a6=this[_0xdfc6('0x12')]['sync'](this,_0x29963e[_0xdfc6('0xc8')]);if(!_0x1135a6){return this[_0xdfc6('0xe')][_0xdfc6('0x2b')](_0x29963e,_0xdfc6('0xc9'));}if(_['isArray'](_0x1562fc)){var _0x48b940=this;_0x1562fc[_0xdfc6('0xca')](function(_0x4b68a6,_0x1e6081){_0x48b940[_0xdfc6('0xe')][_0xdfc6('0x92')](util['format'](_0xdfc6('0x145'),_0x1135a6,_0x1e6081),_0x4b68a6);});return this[_0xdfc6('0xe')][_0xdfc6('0x9d')](util[_0xdfc6('0x27')](_0xdfc6('0x146'),_0x1135a6));}else{return this[_0xdfc6('0xe')][_0xdfc6('0x92')](_0x1135a6,_0x1562fc);}};AGIVertices[_0xdfc6('0x11')][_0xdfc6('0xb')]=function(_0x10ea1a){logger[_0xdfc6('0x2c')](util['format'](_0xdfc6('0x147'),_0x10ea1a[_0xdfc6('0x35')]));if(_0x10ea1a[_0xdfc6('0x98')]===0x0){return this[_0xdfc6('0x97')](_0x10ea1a);}_0x10ea1a[_0xdfc6('0x98')]-=0x1;if(!this['isConfigured'](_0x10ea1a[_0xdfc6('0xf7')])){return this[_0xdfc6('0xe')][_0xdfc6('0x2b')](_0x10ea1a,_0xdfc6('0xf8'));}var _0x120787=this['getSound']['sync'](this,_0x10ea1a['file_id']);if(!_0x120787){return this['channel'][_0xdfc6('0x2b')](_0x10ea1a,'no\x20file\x20audio\x20found');}var _0x145302=this['channel'][_0xdfc6('0x148')](_0x120787,_0x10ea1a['response'],_0x10ea1a[_0xdfc6('0x149')]);var _0x28ead3=_0x145302['result'];if(_0x145302[_0xdfc6('0x96')]===-0x1){this[_0xdfc6('0x33')][_0xdfc6('0x69')](this,_0x10ea1a,'-1');return _0x145302;}else if(_0x145302[_0xdfc6('0x95')]===_0xdfc6('0x62')){_0x145302[_0xdfc6('0x96')]=_0x145302[_0xdfc6('0x96')][_0xdfc6('0x8f')]>0x0?_0x145302[_0xdfc6('0x96')]:'t';}else if(_[_0xdfc6('0x41')](_0x145302[_0xdfc6('0x96')])){_0x145302[_0xdfc6('0x96')]='#';_0x28ead3='#';}if(!this[_0xdfc6('0x7d')](_0x10ea1a['variable_id'])){this[_0xdfc6('0xe')][_0xdfc6('0x9d')](_0xdfc6('0x144'));}else{var _0x38f606=this[_0xdfc6('0x12')][_0xdfc6('0x69')](this,_0x10ea1a['variable_id']);if(!_0x38f606){return this[_0xdfc6('0xe')]['error'](_0x10ea1a,_0xdfc6('0xc9'));}this[_0xdfc6('0xe')][_0xdfc6('0x92')](_0x38f606,_0x28ead3);}this[_0xdfc6('0x33')][_0xdfc6('0x69')](this,_0x10ea1a,_0x28ead3);return _0x145302;};AGIVertices[_0xdfc6('0x11')][_0xdfc6('0x9d')]=function(_0x5427bf){logger[_0xdfc6('0x2c')](util[_0xdfc6('0x27')](_0xdfc6('0x14a'),_0x5427bf[_0xdfc6('0x35')]));return this['channel'][_0xdfc6('0x9d')](_0x5427bf[_0xdfc6('0x14b')]||_0x5427bf[_0xdfc6('0x35')]);};AGIVertices[_0xdfc6('0x11')][_0xdfc6('0x14c')]=function(_0x750436){logger[_0xdfc6('0x2c')](util[_0xdfc6('0x27')](_0xdfc6('0x14d'),_0x750436['label']));if(!this[_0xdfc6('0x7d')](_0x750436[_0xdfc6('0x138')])){return this['channel'][_0xdfc6('0x2b')](_0x750436,_0xdfc6('0x139'));}logger[_0xdfc6('0x2c')](util[_0xdfc6('0x27')]('FIND\x20AGENT\x20%s\x20BY\x20%s',this[_0xdfc6('0xe')]['callerid'],_0x750436[_0xdfc6('0x138')]));var _0x54015f=this[_0xdfc6('0x14e')][_0xdfc6('0x69')](this,_0x750436['pause_id']);var _0x4cd50a=this[_0xdfc6('0x4c')][_0xdfc6('0x69')](this,_0x750436[_0xdfc6('0x138')],_0x54015f);if(_0x4cd50a){logger[_0xdfc6('0x2c')](util[_0xdfc6('0x27')](_0xdfc6('0x13b'),this[_0xdfc6('0xe')][_0xdfc6('0x38')],_0x750436[_0xdfc6('0x138')]));this[_0xdfc6('0xe')][_0xdfc6('0x9d')](util[_0xdfc6('0x27')](_0xdfc6('0x13b'),this[_0xdfc6('0xe')][_0xdfc6('0x38')],_0x750436[_0xdfc6('0x138')]));return{'code':0xc8,'result':_0xdfc6('0x14f')};}else{logger[_0xdfc6('0x2c')](util['format']('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this[_0xdfc6('0xe')][_0xdfc6('0x38')],_0x750436[_0xdfc6('0x138')]));this['channel'][_0xdfc6('0x9d')](util[_0xdfc6('0x27')](_0xdfc6('0x13b'),this[_0xdfc6('0xe')][_0xdfc6('0x38')],_0x750436[_0xdfc6('0x138')]));return{'code':0xc8,'result':_0xdfc6('0x13d')};}};AGIVertices['prototype'][_0xdfc6('0x150')]=function(_0x114c1c){logger[_0xdfc6('0x2c')](util[_0xdfc6('0x27')](_0xdfc6('0x151'),_0x114c1c[_0xdfc6('0x35')]));if(!this[_0xdfc6('0x7d')](_0x114c1c[_0xdfc6('0xf7')])){return this[_0xdfc6('0xe')]['error'](_0x114c1c,_0xdfc6('0xf8'));}var _0x202eb7=this[_0xdfc6('0x152')][_0xdfc6('0x69')](this,_0x114c1c[_0xdfc6('0xf7')]);if(!_0x202eb7){return this['channel'][_0xdfc6('0x2b')](_0x114c1c,'no\x20file\x20audio\x20found');}var _0x15893d=this[_0xdfc6('0xe')][_0xdfc6('0x54')]('PLAYBACK',[_0x202eb7,_0x114c1c[_0xdfc6('0xd3')]]);if(_0x15893d[_0xdfc6('0x96')]===-0x1){return _0x15893d;}return this[_0xdfc6('0xe')]['noop'](util[_0xdfc6('0x27')](_0xdfc6('0xb8'),_0xdfc6('0x153'),_0x202eb7));};AGIVertices[_0xdfc6('0x11')][_0xdfc6('0x154')]=function(_0x292611){logger['info'](util[_0xdfc6('0x27')](_0xdfc6('0x155'),_0x292611[_0xdfc6('0x35')]));if(!this[_0xdfc6('0x7d')](_0x292611[_0xdfc6('0x156')])){return this['channel'][_0xdfc6('0x2b')](_0x292611,'no\x20queue\x20selected');}var _0x222f85='';var _0x2502b9=parseInt(_0x292611[_0xdfc6('0x156')],0xa);if(isNaN(_0x2502b9)){_0x222f85=_0x292611[_0xdfc6('0x156')];}else{_0x222f85=this[_0xdfc6('0x16')][_0xdfc6('0x69')](this,_0x292611['queue_id']);if(!_0x222f85){return this[_0xdfc6('0xe')][_0xdfc6('0x2b')](_0x292611,_0xdfc6('0x157'));}}var _0x779975='';if(this[_0xdfc6('0x7d')](_0x292611[_0xdfc6('0xf7')])){var _0x5499b2=this[_0xdfc6('0x152')]['sync'](this,_0x292611[_0xdfc6('0xf7')]);if(_0x5499b2){_0x779975=_0x5499b2;}}this[_0xdfc6('0x33')]['sync'](this,_0x292611,_0x222f85);if(_0x292611[_0xdfc6('0xd3')]['indexOf']('x')<0x0){_0x292611[_0xdfc6('0xd3')]+='x';}if(_0x292611[_0xdfc6('0xd3')]['indexOf']('X')<0x0){_0x292611['opts']+='X';}this['channel'][_0xdfc6('0x92')](_0xdfc6('0x158'),_0x222f85?_0x222f85[_0xdfc6('0x159')]():'');var _0x38ddb0=this[_0xdfc6('0xe')]['exec']('QUEUE',[_0x222f85,_0x292611[_0xdfc6('0xd3')],_0x292611[_0xdfc6('0x60')],_0x779975,_0x292611['timeout'],_0x292611['agi'],_0x292611[_0xdfc6('0x15a')],_0x292611[_0xdfc6('0x15b')],'',_0x292611['position']]);if(_0x38ddb0['result']===-0x1){return _0x38ddb0;}return this[_0xdfc6('0xe')][_0xdfc6('0x9d')](util[_0xdfc6('0x27')]('Executed\x20command\x20%s\x20%s',_0xdfc6('0x15c'),_0x222f85));};AGIVertices['prototype'][_0xdfc6('0x15d')]=function(_0x6e99f0){logger[_0xdfc6('0x2c')](util['format'](_0xdfc6('0x15e'),_0x6e99f0[_0xdfc6('0x35')]));var _0x1c5f07=_0x6e99f0[_0xdfc6('0x15f')]||_0xdfc6('0x10f');var _0x50bcde=util['format'](_0xdfc6('0x160'),this['channel'][_0xdfc6('0x34')],rs[_0xdfc6('0xfd')](0x5));var _0x3ebc42=util[_0xdfc6('0x27')](_0xdfc6('0x161'),FILES_PATH,_0x50bcde,_0x1c5f07);var _0x3dc9db=util[_0xdfc6('0x27')](_0xdfc6('0x110'),FILES_PATH,_0x50bcde);this[_0xdfc6('0x37')][_0xdfc6('0x69')](this,_0x6e99f0,_0x50bcde,_0x3ebc42);this[_0xdfc6('0xe')][_0xdfc6('0x92')]('RECORDING_SAVENAME',_0x50bcde);logger['info'](_0xdfc6('0x162'),_0x3dc9db,_0x1c5f07,_0x6e99f0[_0xdfc6('0x163')],_0x6e99f0['timeout']);return this[_0xdfc6('0xe')]['recordFile'](_0x3dc9db,_0x1c5f07,_0x6e99f0[_0xdfc6('0x163')],_0x6e99f0['timeout'],undefined,!![]);};AGIVertices[_0xdfc6('0x11')]['restapi']=function(_0x494fbb){logger[_0xdfc6('0x2c')](util[_0xdfc6('0x27')](_0xdfc6('0x164'),_0x494fbb[_0xdfc6('0x35')]));if(!this[_0xdfc6('0x7d')](_0x494fbb['url'])){return this[_0xdfc6('0xe')][_0xdfc6('0x9d')]('no\x20url\x20configured');}var _0x1e3a0a=this[_0xdfc6('0x5f')][_0xdfc6('0x69')](this,_0x494fbb);logger[_0xdfc6('0x2c')](util[_0xdfc6('0x27')](_0xdfc6('0x165'),util['inspect'](_0x1e3a0a,{'showHidden':![],'depth':null})));if(!this['isConfigured'](_0x494fbb['variable_id'])){return this[_0xdfc6('0xe')][_0xdfc6('0x9d')](_0xdfc6('0x166'));}var _0x3bcd3b=this['getVariable'][_0xdfc6('0x69')](this,_0x494fbb[_0xdfc6('0xc8')]);if(!_0x3bcd3b){return this['channel'][_0xdfc6('0x2b')](_0x494fbb,_0xdfc6('0xc9'));}this['channel'][_0xdfc6('0x92')](util[_0xdfc6('0x27')](_0xdfc6('0x167'),_0x3bcd3b),_0x1e3a0a[_0xdfc6('0x70')]?_0x1e3a0a[_0xdfc6('0x70')]:_0xdfc6('0x168'));this[_0xdfc6('0xe')][_0xdfc6('0x92')](util[_0xdfc6('0x27')](_0xdfc6('0x169'),_0x3bcd3b),_0x1e3a0a['statusMessage']?_0x1e3a0a[_0xdfc6('0x71')]:'OK');if(_0x1e3a0a[_0xdfc6('0x6e')]){try{this[_0xdfc6('0x90')](_0x1e3a0a[_0xdfc6('0x6e')],_0x3bcd3b);}catch(_0x29121c){logger[_0xdfc6('0x2b')](util[_0xdfc6('0x27')](_0xdfc6('0x16a'),_0x3bcd3b));}}return this[_0xdfc6('0xe')]['noop'](util[_0xdfc6('0x27')](_0xdfc6('0xcd'),_0x3bcd3b));};AGIVertices[_0xdfc6('0x11')][_0xdfc6('0x16b')]=function(_0x1db14b){logger[_0xdfc6('0x2c')](util['format'](_0xdfc6('0x16c'),_0x1db14b['label']));return this[_0xdfc6('0xe')][_0xdfc6('0x16d')](_0x1db14b[_0xdfc6('0x16e')][_0xdfc6('0x56')](/\s+/g,''),_0x1db14b[_0xdfc6('0x163')]);};AGIVertices[_0xdfc6('0x11')][_0xdfc6('0x16f')]=function(_0x188e05){logger[_0xdfc6('0x2c')](util[_0xdfc6('0x27')](_0xdfc6('0x170'),_0x188e05[_0xdfc6('0x35')]));return this[_0xdfc6('0xe')][_0xdfc6('0x171')](_0x188e05[_0xdfc6('0x63')][_0xdfc6('0x56')](/\s+/g,''),_0x188e05['escape_digits']);};AGIVertices['prototype'][_0xdfc6('0x172')]=function(_0x1c0e20){logger[_0xdfc6('0x2c')](util[_0xdfc6('0x27')](_0xdfc6('0x173'),_0x1c0e20[_0xdfc6('0x35')]));return this['channel'][_0xdfc6('0x174')](_0x1c0e20[_0xdfc6('0x59')],_0x1c0e20[_0xdfc6('0x163')]);};AGIVertices[_0xdfc6('0x11')][_0xdfc6('0x175')]=function(_0x50f561){logger['info'](util[_0xdfc6('0x27')](_0xdfc6('0x176'),_0x50f561[_0xdfc6('0x35')]));if(!this['isConfigured'](_0x50f561[_0xdfc6('0x177')])){return this[_0xdfc6('0xe')][_0xdfc6('0x9d')](_0xdfc6('0x178'));}var _0x41a876=this[_0xdfc6('0x20')]['sync'](this,_0x50f561['account_id']);if(!_0x41a876||!_0x41a876[_0xdfc6('0x179')]){return this[_0xdfc6('0xe')][_0xdfc6('0x2b')](_0x50f561,'no\x20mail\x20account\x20found');}var _0x2a35ab={'from':util[_0xdfc6('0x27')](_0xdfc6('0x17a'),_0x41a876['name'],_0x41a876[_0xdfc6('0x17b')]||_0x41a876[_0xdfc6('0x179')][_0xdfc6('0x17c')]),'to':_0x50f561['to']||'','cc':_0x50f561['cc']||'','bcc':_0x50f561['bcc']||'','subject':_0x50f561[_0xdfc6('0x17d')],'html':_0x50f561[_0xdfc6('0x59')],'text':_0x50f561['text']};var _0x346a72={'tls':{'rejectUnauthorized':![]}};if(_0x41a876[_0xdfc6('0x179')][_0xdfc6('0x17e')]){_0x346a72[_0xdfc6('0x17e')]=_0x41a876[_0xdfc6('0x179')][_0xdfc6('0x17e')];}else{_0x346a72[_0xdfc6('0x17f')]=_0x41a876[_0xdfc6('0x179')]['host'];_0x346a72['port']=_0x41a876[_0xdfc6('0x179')][_0xdfc6('0x180')];_0x346a72[_0xdfc6('0x181')]=_0x41a876[_0xdfc6('0x179')]['secure'];}if(_0x41a876[_0xdfc6('0x179')][_0xdfc6('0x182')]){_0x346a72[_0xdfc6('0x183')]={'user':_0x41a876[_0xdfc6('0x179')][_0xdfc6('0x17c')],'pass':_0x41a876[_0xdfc6('0x179')][_0xdfc6('0x184')]};}if(this['isConfigured'](_0x50f561[_0xdfc6('0x185')])){}logger[_0xdfc6('0xcf')](_0xdfc6('0x186'),JSON['stringify'](_0x2a35ab));this[_0xdfc6('0x33')][_0xdfc6('0x69')](this,_0x50f561,_0x50f561['account_id']);this[_0xdfc6('0xe')]['noop'](util[_0xdfc6('0x27')](_0xdfc6('0x187'),_0x41a876[_0xdfc6('0x18')]));this[_0xdfc6('0x21')][_0xdfc6('0x69')](this,_0x346a72,_0x2a35ab);return this['channel'][_0xdfc6('0x9d')](_0xdfc6('0x188'));};AGIVertices[_0xdfc6('0x11')][_0xdfc6('0x189')]=function(_0x11494b){logger[_0xdfc6('0x2c')](util[_0xdfc6('0x27')](_0xdfc6('0x18a'),_0x11494b['label']));return this[_0xdfc6('0xe')]['noop'](_0xdfc6('0x18b'));};AGIVertices['prototype']['sendSMS']=function(_0x2b8ae4){logger['info'](util[_0xdfc6('0x27')](_0xdfc6('0x18c'),_0x2b8ae4[_0xdfc6('0x35')]));if(!this['isConfigured'](_0x2b8ae4[_0xdfc6('0x18d')])){return this['channel'][_0xdfc6('0x9d')](_0xdfc6('0x18e'));}var _0x637b5f=this['getSmsAccount'][_0xdfc6('0x69')](this,_0x2b8ae4['sms_account_id']);if(!_0x637b5f){return this[_0xdfc6('0xe')]['error'](_0x2b8ae4,'no\x20sms\x20account\x20found');}var _0x5b0ffd={'body':_0x2b8ae4[_0xdfc6('0x18f')],'phone':_0x2b8ae4['to']||'','SmsAccountId':_0x637b5f['id']};logger[_0xdfc6('0xcf')](_0xdfc6('0x190'),JSON[_0xdfc6('0x6d')](_0x5b0ffd));this['createSquareDetailsReport'][_0xdfc6('0x69')](this,_0x2b8ae4,_0x2b8ae4['sms_account_id']);this[_0xdfc6('0xe')][_0xdfc6('0x9d')](util[_0xdfc6('0x27')](_0xdfc6('0x191'),_0x637b5f['name']));this['createSmsMessage'][_0xdfc6('0x69')](this,_0x5b0ffd);return this['channel'][_0xdfc6('0x9d')]('Sms\x20message\x20added\x20to\x20outgoing\x20process');};AGIVertices[_0xdfc6('0x11')][_0xdfc6('0x192')]=function(_0x212f33){logger['info'](util[_0xdfc6('0x27')](_0xdfc6('0x193'),_0x212f33[_0xdfc6('0x35')]));if(!this[_0xdfc6('0x7d')](_0x212f33[_0xdfc6('0xc8')])){return this[_0xdfc6('0xe')][_0xdfc6('0x2b')](_0x212f33,_0xdfc6('0x194'));}var _0x5d315b=this['getVariable'][_0xdfc6('0x69')](this,_0x212f33[_0xdfc6('0xc8')]);if(!_0x5d315b){return this[_0xdfc6('0xe')][_0xdfc6('0x2b')](_0x212f33,'no\x20variable\x20found');}return this['channel'][_0xdfc6('0x92')](_0x5d315b,_0x212f33[_0xdfc6('0x195')]);};AGIVertices[_0xdfc6('0x11')][_0xdfc6('0x196')]=function(_0x2868ea){logger[_0xdfc6('0x2c')](util[_0xdfc6('0x27')](_0xdfc6('0x197'),_0x2868ea['label']));this[_0xdfc6('0xe')][_0xdfc6('0x9d')](_0xdfc6('0x198'));if(_0x2868ea['answer']===_0xdfc6('0x199')){this[_0xdfc6('0xe')][_0xdfc6('0x9d')]('Answer');return this[_0xdfc6('0xe')][_0xdfc6('0xad')]();}return this['channel'][_0xdfc6('0x9d')](_0xdfc6('0x19a'));};AGIVertices[_0xdfc6('0x11')]['subproject']=function(_0x1b87c1){logger[_0xdfc6('0x2c')](util[_0xdfc6('0x27')]('Enter\x20in\x20SUBPROJECT\x20(%s)\x20block',_0x1b87c1[_0xdfc6('0x35')]));if(!this[_0xdfc6('0x7d')](_0x1b87c1[_0xdfc6('0x19b')])){return this['channel'][_0xdfc6('0x2b')](_0x1b87c1,_0xdfc6('0x19c'));}var _0x3e25eb=this[_0xdfc6('0x19')][_0xdfc6('0x69')](this,_0x1b87c1[_0xdfc6('0x19b')]);if(!this[_0xdfc6('0x7d')](_0x3e25eb)){return this[_0xdfc6('0xe')][_0xdfc6('0x2b')](_0x1b87c1,util['format'](_0xdfc6('0x19d'),_0x1b87c1[_0xdfc6('0x19b')]));}if(_0x3e25eb===this[_0xdfc6('0xe')][_0xdfc6('0x3d')]){return this[_0xdfc6('0xe')]['error'](_0x1b87c1,_0xdfc6('0x19e'));}this[_0xdfc6('0x33')][_0xdfc6('0x69')](this,_0x1b87c1,_0x3e25eb);var _0x13340d=this[_0xdfc6('0xe')][_0xdfc6('0x54')](_0xdfc6('0x19f'),util[_0xdfc6('0x27')](_0xdfc6('0x1a0'),config[_0xdfc6('0xaa')][_0xdfc6('0x17f')]||_0xdfc6('0x1a1'),_0x3e25eb,this[_0xdfc6('0xe')][_0xdfc6('0x3d')]));if(_0x13340d[_0xdfc6('0x96')]===-0x1){return _0x13340d;}return this[_0xdfc6('0xe')]['noop'](util[_0xdfc6('0x27')](_0xdfc6('0xb8'),_0xdfc6('0x19f'),_0x3e25eb));};AGIVertices['prototype'][_0xdfc6('0x1a2')]=function(_0x17806f){logger[_0xdfc6('0x2c')](util[_0xdfc6('0x27')](_0xdfc6('0x1a3'),_0x17806f[_0xdfc6('0x35')]));var _0x316520=this['shellCommand'][_0xdfc6('0x69')](this,_0x17806f[_0xdfc6('0xab')]);this[_0xdfc6('0x33')][_0xdfc6('0x69')](this,_0x17806f,_0x17806f[_0xdfc6('0xab')]);if(this[_0xdfc6('0x7d')](_0x17806f['variable_id'])){var _0x2f4251=this[_0xdfc6('0x12')][_0xdfc6('0x69')](this,_0x17806f[_0xdfc6('0xc8')]);if(_0x2f4251){this[_0xdfc6('0xe')][_0xdfc6('0x92')](_0x2f4251,_0x316520);return this['channel'][_0xdfc6('0x9d')](util['format'](_0xdfc6('0x1a4'),_0x17806f[_0xdfc6('0xab')],_0x2f4251));}}return this[_0xdfc6('0xe')][_0xdfc6('0x9d')](util['format'](_0xdfc6('0x1a5'),_0x17806f['command']));};AGIVertices[_0xdfc6('0x11')][_0xdfc6('0x1a6')]=function(_0x4a3cdc){logger[_0xdfc6('0x2c')](util[_0xdfc6('0x27')](_0xdfc6('0x1a7'),_0x4a3cdc[_0xdfc6('0x35')]));_0x4a3cdc[_0xdfc6('0x59')]=_0x4a3cdc['text'][_0xdfc6('0x56')](/(\r\n|\n|\r)/gm,'\x20');if(!this[_0xdfc6('0x7d')](_0x4a3cdc['apiKey'])){return this[_0xdfc6('0xe')][_0xdfc6('0x9d')](_0xdfc6('0x1a8'));}if(!this[_0xdfc6('0x7d')](_0x4a3cdc[_0xdfc6('0x59')])){return this[_0xdfc6('0xe')][_0xdfc6('0x9d')](_0xdfc6('0x9a'));}this['channel'][_0xdfc6('0x9d')](util[_0xdfc6('0x27')](_0xdfc6('0x1a9'),_0x4a3cdc['text']));var _0x5f27fa=this[_0xdfc6('0x57')][_0xdfc6('0x69')](this,_0x4a3cdc);if(_0x5f27fa){this[_0xdfc6('0xe')][_0xdfc6('0x9d')](util[_0xdfc6('0x27')]('Google\x20Cloud\x20TTS\x20%s\x20file\x20created',_0x5f27fa));var _0x2c8c0a=this[_0xdfc6('0xe')][_0xdfc6('0xe7')](_0x5f27fa);try{fs[_0xdfc6('0x1aa')](_0x5f27fa+_0xdfc6('0xe8'));}catch(_0x156851){logger[_0xdfc6('0x2b')](_0x156851);}return _0x2c8c0a;}return this['channel'][_0xdfc6('0x2b')](_0x4a3cdc,_0xdfc6('0x1ab'));};AGIVertices[_0xdfc6('0x11')][_0xdfc6('0x1ac')]=function(_0x57f5c5){logger[_0xdfc6('0x2c')](util[_0xdfc6('0x27')]('Enter\x20in\x20GOOGLETTS\x20(%s)\x20block',_0x57f5c5[_0xdfc6('0x35')]));_0x57f5c5['text']=_0x57f5c5[_0xdfc6('0x59')][_0xdfc6('0x56')](/(\r\n|\n|\r)/gm,'\x20');if(!this[_0xdfc6('0x7d')](_0x57f5c5[_0xdfc6('0x59')])){return this[_0xdfc6('0xe')][_0xdfc6('0x9d')](_0xdfc6('0x9a'));}this[_0xdfc6('0xe')][_0xdfc6('0x9d')](util[_0xdfc6('0x27')](_0xdfc6('0x1ad'),_0x57f5c5[_0xdfc6('0x59')]));var _0x3dd640=this[_0xdfc6('0x5e')][_0xdfc6('0x69')](this,_0x57f5c5);if(_0x3dd640){this['channel'][_0xdfc6('0x9d')](util['format'](_0xdfc6('0x1ae'),_0x3dd640));var _0x385e03=this['channel']['streamFile'](_0x3dd640);try{fs[_0xdfc6('0x1aa')](_0x3dd640+'.wav');}catch(_0x30d712){logger['error'](_0x30d712);}return _0x385e03;}return this['channel'][_0xdfc6('0x2b')](_0x57f5c5,_0xdfc6('0x1af'));};AGIVertices[_0xdfc6('0x11')][_0xdfc6('0x1b0')]=function(_0x243af6){logger[_0xdfc6('0x2c')](util[_0xdfc6('0x27')](_0xdfc6('0x1b1'),_0x243af6[_0xdfc6('0x35')]));if(!this[_0xdfc6('0x7d')](_0x243af6[_0xdfc6('0x138')])){return this[_0xdfc6('0xe')][_0xdfc6('0x2b')](_0x243af6,_0xdfc6('0x139'));}logger[_0xdfc6('0x2c')](util[_0xdfc6('0x27')](_0xdfc6('0x13a'),this['channel'][_0xdfc6('0x38')],_0x243af6[_0xdfc6('0x138')]));var _0x37562c=this[_0xdfc6('0x4e')][_0xdfc6('0x69')](this,_0x243af6[_0xdfc6('0x138')]);if(_0x37562c){logger['info'](util['format'](_0xdfc6('0x13b'),this['channel'][_0xdfc6('0x38')],_0x243af6[_0xdfc6('0x138')]));this[_0xdfc6('0xe')][_0xdfc6('0x9d')](util[_0xdfc6('0x27')](_0xdfc6('0x13b'),this[_0xdfc6('0xe')][_0xdfc6('0x38')],_0x243af6[_0xdfc6('0x138')]));return{'code':0xc8,'result':_0xdfc6('0x14f')};}else{logger[_0xdfc6('0x2c')](util[_0xdfc6('0x27')](_0xdfc6('0x13c'),this[_0xdfc6('0xe')][_0xdfc6('0x38')],_0x243af6[_0xdfc6('0x138')]));this['channel'][_0xdfc6('0x9d')](util[_0xdfc6('0x27')](_0xdfc6('0x13c'),this[_0xdfc6('0xe')][_0xdfc6('0x38')],_0x243af6['findBy']));return{'code':0xc8,'result':_0xdfc6('0x13d')};}};AGIVertices[_0xdfc6('0x11')][_0xdfc6('0x1b2')]=function(_0x2cdc2c){logger['info'](util[_0xdfc6('0x27')](_0xdfc6('0x1b3'),_0x2cdc2c['label']));var _0x22a098=this[_0xdfc6('0xe')][_0xdfc6('0x54')](_0xdfc6('0x1b4'),[_0x2cdc2c[_0xdfc6('0x1b5')],_0x2cdc2c['options']]);if(_0x22a098['result']===-0x1){return _0x22a098;}return this[_0xdfc6('0xe')][_0xdfc6('0x9d')](util[_0xdfc6('0x27')](_0xdfc6('0xb8'),_0xdfc6('0x1b4'),_0x2cdc2c['mailbox']));};AGIVertices[_0xdfc6('0x11')]['vswitch']=function(_0xe951a8){logger[_0xdfc6('0x2c')](util['format'](_0xdfc6('0x1b6'),_0xe951a8[_0xdfc6('0x35')]));if(!this[_0xdfc6('0x7d')](_0xe951a8['variable_id'])){return this[_0xdfc6('0xe')][_0xdfc6('0x2b')](_0xe951a8,_0xdfc6('0x194'));}var _0x1c9d3e=this[_0xdfc6('0x12')][_0xdfc6('0x69')](this,_0xe951a8[_0xdfc6('0xc8')]);if(!_0x1c9d3e){return this['channel'][_0xdfc6('0x2b')](_0xe951a8,'no\x20variable\x20found');}var _0x47d794=this[_0xdfc6('0xe')][_0xdfc6('0x12')](_0x1c9d3e);return{'code':0xc8,'result':_0x47d794[_0xdfc6('0x95')]?_0x47d794[_0xdfc6('0x95')]:'-'};};String[_0xdfc6('0x11')]['replaceAll']=function(_0x1ec8f4,_0x2063e2){return this[_0xdfc6('0x94')](_0x1ec8f4)['join'](_0x2063e2);};module[_0xdfc6('0x1b7')]=AGIVertices;
\ No newline at end of file