Built motion from commit (unavailable).|2.3.98
[motion2.git] / server / services / agi / vertices.js
index 5881ee3..43931ed 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xdb3a=['Enter\x20in\x20LOGOUT\x20(%s)\x20block','no\x20find\x20by\x20configured','math','Enter\x20in\x20MATH\x20(%s)\x20block','operation','no\x20operation\x20configured','isArray','%s[%s]','variable\x20%s[key]\x20set','Enter\x20in\x20MENU\x20(%s)\x20block','Enter\x20in\x20NOOP\x20(%s)\x20block','output','pause','Enter\x20in\x20PAUSE\x20(%s)\x20block','pause_id','agentPause','playback','Enter\x20in\x20PLAYBACK\x20(%s)\x20block','PLAYBACK','queue_id','getVoiceQueue','indexOf','XMCS-QUEUE','toLowerCase','QUEUE','gosub','position','record','recordingFormat','%s_%s','%s/recordings/%s.%s','Recording\x20%s\x20%s\x20%s\x20%s','escape_digits','saydigits','Enter\x20in\x20SAYDIGITS\x20(%s)\x20block','sayDigits','digits','saynumber','Enter\x20in\x20SAYNUMBER\x20(%s)\x20block','sayNumber','sayphonetic','Enter\x20in\x20SAYPHONETIC\x20(%s)\x20block','sendMail','Enter\x20in\x20SENDMAIL\x20(%s)\x20block','no\x20mail\x20account\x20configured','Smtp','no\x20mail\x20account\x20found','\x22%s\x22\x20<%s>','user','bcc','subject','service','host','port','authentication','auth','pass','template_id','sendMail\x20message','account_id','Trying\x20SendMail\x20with\x20account\x20%s','Mail\x20message\x20added\x20to\x20outgoing\x20process','sendFax','Enter\x20in\x20SENDFAX\x20(%s)\x20block','SENDFAX\x20block\x20not\x20implemented','sendSMS','Enter\x20in\x20SENDSMS\x20(%s)\x20block','sms_account_id','no\x20sms\x20account\x20configured','getSmsAccount','no\x20sms\x20account\x20found','Trying\x20SendSMS\x20with\x20account\x20%s','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','Answer','Skipped\x20Answer','subproject','Enter\x20in\x20SUBPROJECT\x20(%s)\x20block','getSquareProject','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','system','Enter\x20in\x20SYSTEM\x20(%s)\x20block','sh\x20command:\x20%s\x20result\x20on\x20variable:\x20%s','sh\x20command:\x20%s\x20result\x20no\x20stored','tts','Enter\x20in\x20GOOGLETTS\x20(%s)\x20block','Google\x20TTS\x20%s\x20file\x20created','Google\x20TTS\x20is\x20unreachable','Enter\x20in\x20UNPAUSE\x20(%s)\x20block','voicemail','VOICEMAIL','mailbox','vswitch','Enter\x20in\x20SWITCH\x20(%s)\x20block','no\x20variable\x20selected','join','exports','path','util','odbc','randomstring','moment','mustache','agi','../../config/environment','./scripts','/var/opt/motion2/server/files','menu','getdigits','channel','rpc','mailRpc','prototype','getVariable','getVariableById','then','name','catch','getVoiceQueueById','getSquareProjectById','getSquareOdbc','getSquareOdbcById','dsn','getUserById','getTrunk','getSound','getMailAccount','getMailAccountById','sendMailMessage','getIntervals','getIntervalById','IntervalId','Intervals','interval','getSoundPath','%s/sounds/converted/%s','getQueryOdbc','open','Error\x20getting\x20ODBC\x20connection\x20%s','ODBC\x20connection\x20successfully','query','info','Error\x20executing\x20query\x20%s','Query\x20executed\x20correctly\x20%s','error','createSmsMessage','createSquareDetailsReport','uniqueid','label','arg_1','createSquareRecording','calleridname','context','priority','accountcode','dnid','file','createSquareMessage','createCmContact','isNil','random','isEmpty','lastName','phone','list_id','scheduledAt','callback','Callback\x20scheduled\x20at\x20','toString','callback_priority','getPause','getPauseById','agent','agentUnpause','callerid','agentLogout','agentLogin','internal','format','%s/%s@from-sip/n','shellCommand','exec','trim','googleTTS','text','google_tts_language','googleDialogflow','dialogflow_language','sestekNDA','ispeechTTS','ispeech_tts_language','speed','ispeechASR','key','ispeech_asr_language','en-US','model','awsPolly','aws_secret_access_key','Amy','aws_text_type','awsLex','aws_lex_region','aws_bot_name','googleASR','tildeASR','appsecret','uri','clear','includes','clone','isString','replaceAllVariables','split','length','replaceAll','extra','getAndSetVariable','result','The\x20\x22%s\x22\x20variable\x20value\x20is:\x20%s','isConfigured','maxRetry','sync','retry','Enter\x20in\x20AGI\x20(%s)\x20block','command','args','Enter\x20in\x20ANSWER\x20(%s)\x20block','timeout','wait','answer','Enter\x20in\x20CALLBACK\x20(%s)\x20block','no\x20list\x20selected','delay','minutes','CALLBACK\x20added\x20phone:\x20%s\x20on\x20list:\x20%s\x20at\x20%s','custom_app','Enter\x20in\x20CUSTOM\x20APP\x20(%s)\x20block','noop','Executed\x20command\x20%s\x20%s','options','lumenvoxtts','Enter\x20in\x20LUMENVOXTTS\x20(%s)\x20block','MRCPSynth','Enter\x20in\x20SESTEKTTS\x20(%s)\x20block','no\x20text\x20configured','Executed\x20command\x20MRCPSynth\x20%s','Enter\x20in\x20LUMENVOXASR\x20(%s)\x20block','grammar','no\x20grammar\x20configured','RECOG_CONFIDENCE()','LUMENVOX_ASR_CONFIDENCE','RECOG_INSTANCE()','LUMENVOX_ASR_INSTANCE','Executed\x20command\x20MRCPRecog\x20%s','sestekasr','Enter\x20in\x20SESTEKASR\x20(%s)\x20block','MRCPRecog','SESTEK_ASR_CONFIDENCE','RECOG_INPUT()','SESTEK_ASR_TRANSCRIPT','SESTEK_ASR_INSTANCE','Enter\x20in\x20DATABASE\x20(%s)\x20block','no\x20database\x20selected','odbc_id','no\x20odbc\x20database\x20found','replace','query:\x20%s','no\x20variable\x20selected\x20for\x20the\x20result','forEach','keys','setVariable','%s[%s][%s]','%s_ROWS_COUNT','variable\x20%s\x20set','dial','debug','Enter\x20in\x20DIAL\x20(%s)\x20block','no\x20user\x20selected','getUser','sip_id','no\x20user\x20found','DIAL','SIP/%s','opts','Executed\x20command\x20%s','dialogflow','no\x20key\x20configured','Trying\x20Dialogflow:\x20%s','hasOwnProperty','DIALOGFLOW_%s','toUpperCase','speech','Dialogflow\x20Result\x20%s','Dialogflow\x20is\x20unreachable','sesteknda','Enter\x20in\x20SESTEKNDA\x20(%s)\x20block','ndauth_url','no\x20ndauth\x20url\x20configured','username','no\x20username\x20configured','no\x20password\x20configured','Trying\x20SestekNDA:\x20%s','out','audiofile','Sestek\x20NDA\x20%s\x20file\x20created','streamFile','unlink','SestekNDA\x20Result\x20%s','end','Enter\x20in\x20END\x20(%s)\x20block','ext_dial','Enter\x20in\x20EXTERNAL\x20DIAL\x20(%s)\x20block','trunk_id','no\x20trunk\x20selected','no\x20trunk\x20found','trunk_name','SIP/%s/%s','url','finally','Enter\x20in\x20GETDIGITS\x20(%s)\x20block','no\x20file\x20audio\x20selected','file_id','no\x20file\x20audio\x20found','variable_id','getData','response','maxdigit','test','stringify','mindigit','no\x20variable\x20found','hiddendigitsnum','generate','hiddendigitspos','substr','getsecretdigits','Enter\x20in\x20GETSECRETDIGITS\x20(%s)\x20block','goal','Enter\x20in\x20GOAL\x20(%s)\x20block','goalname','no\x20valid\x20credentials\x20configured','Trying\x20aws\x20Polly\x20%s','aws\x20Polly\x20%s\x20file\x20created','.wav','aws\x20Polly\x20is\x20unreachable','awslex','Enter\x20in\x20Amazon\x20Lex\x20(%s)\x20block','aws_access_key_id','no\x20bot\x20name\x20configured','bot','Trying\x20Amazon\x20Lex:\x20%s','AWS_LEX_%s','message','Amazon\x20Lex\x20Result\x20%s','googleasr','Enter\x20in\x20GOOGLEASR\x20(%s)\x20block\x20%s','wav','%s/recordings/%s','%s.%s','beep','recordFile','intKey','google\x20%s\x20file\x20created','GOOGLE_ASR_%s','GoogleASR\x20Result\x20%s','tildeasr','Enter\x20in\x20TILDEASR\x20(%s)\x20block','appid','no\x20appid\x20configured','no\x20appsecret\x20configured','NOBEEP','tilde\x20%s\x20file\x20created','TILDE_ASR_%s','TildeASR\x20Result\x20%s','gotoc','Enter\x20in\x20GOTO\x20(%s)\x20block','extension','gotoif','Enter\x20in\x20GOTOIF\x20(%s)\x20block','false','EVAL\x20CONDITION\x20%s\x20%s','condition','gotoiftime','Enter\x20in\x20GOTOIFTIME\x20(%s)\x20block','no\x20interval\x20configured','IFTIME(%s?true:false)','IFTIME\x20%s\x20%s','true','hangup','Enter\x20in\x20HANGUP\x20(%s)\x20block','ISPEECH_ASR_%s','IspeechASR\x20Result\x20%s','ispeechtts','Enter\x20in\x20ISPEECHTTS\x20(%s)\x20block','Trying\x20ispeech\x20TTS\x20%s','ispeech\x20%s\x20file\x20created','login','Enter\x20in\x20LOGIN\x20(%s)\x20block','findBy','FIND\x20AGENT\x20%s\x20BY\x20%s','AGENT\x20%s\x20FOUND\x20BY','success','AGENT\x20%s\x20NOT\x20FOUND\x20BY','failure','logout'];(function(_0x5c3432,_0x46c2b2){var _0x2985cd=function(_0x4f24e6){while(--_0x4f24e6){_0x5c3432['push'](_0x5c3432['shift']());}};_0x2985cd(++_0x46c2b2);}(_0xdb3a,0x6a));var _0xadb3=function(_0x47410f,_0x53d9b2){_0x47410f=_0x47410f-0x0;var _0x272541=_0xdb3a[_0x47410f];return _0x272541;};'use strict';var fs=require('fs');var path=require(_0xadb3('0x0'));var util=require(_0xadb3('0x1'));var _=require('lodash');var sh=require('shelljs');var odbc=require(_0xadb3('0x2'))();var rs=require(_0xadb3('0x3'));var moment=require(_0xadb3('0x4'));var Mustache=require(_0xadb3('0x5'));var logger=require('../../config/logger')(_0xadb3('0x6'));var config=require(_0xadb3('0x7'));var scripts=require(_0xadb3('0x8'));var FILES_PATH=_0xadb3('0x9');var verticesWithRetry=[_0xadb3('0xa'),_0xadb3('0xb'),'getsecretdigits'];var AGIVertices=function(_0x39ad9e,_0x4a197c,_0x39fff6){this[_0xadb3('0xc')]=_0x39ad9e;this[_0xadb3('0xd')]=_0x4a197c;this[_0xadb3('0xe')]=_0x39fff6;};AGIVertices[_0xadb3('0xf')][_0xadb3('0x10')]=function(_0x1ef5d3,_0x4fd388){this[_0xadb3('0xd')][_0xadb3('0x11')](_0x1ef5d3)[_0xadb3('0x12')](function(_0x33cdb2){_0x4fd388(null,_0x33cdb2?_0x33cdb2[_0xadb3('0x13')]:![]);})[_0xadb3('0x14')](function(_0x5d4797){_0x4fd388(_0x5d4797);});};AGIVertices[_0xadb3('0xf')]['getVoiceQueue']=function(_0x4fc91b,_0xdcaebb){this[_0xadb3('0xd')][_0xadb3('0x15')](_0x4fc91b)[_0xadb3('0x12')](function(_0x5ebf81){_0xdcaebb(null,_0x5ebf81?_0x5ebf81[_0xadb3('0x13')]:![]);})[_0xadb3('0x14')](function(_0x52b5e9){_0xdcaebb(_0x52b5e9);});};AGIVertices[_0xadb3('0xf')]['getSquareProject']=function(_0x48424c,_0x47163c){this[_0xadb3('0xd')][_0xadb3('0x16')](_0x48424c)[_0xadb3('0x12')](function(_0x81d64c){_0x47163c(null,_0x81d64c?_0x81d64c[_0xadb3('0x13')]:![]);})[_0xadb3('0x14')](function(_0x319550){_0x47163c(_0x319550);});};AGIVertices[_0xadb3('0xf')][_0xadb3('0x17')]=function(_0x38ade6,_0x585885){this['rpc'][_0xadb3('0x18')](_0x38ade6)[_0xadb3('0x12')](function(_0x24fb87){_0x585885(null,_0x24fb87?_0x24fb87[_0xadb3('0x19')]:![]);})[_0xadb3('0x14')](function(_0x1c899b){_0x585885(_0x1c899b);});};AGIVertices['prototype']['getUser']=function(_0x378b95,_0xd51e7e){this[_0xadb3('0xd')][_0xadb3('0x1a')](_0x378b95)[_0xadb3('0x12')](function(_0xb7b93c){_0xd51e7e(null,_0xb7b93c?_0xb7b93c[_0xadb3('0x13')]:![]);})['catch'](function(_0x4c5a0c){_0xd51e7e(_0x4c5a0c);});};AGIVertices[_0xadb3('0xf')][_0xadb3('0x1b')]=function(_0x4a70fc,_0x2fc0aa){this[_0xadb3('0xd')]['getTrunkById'](_0x4a70fc)[_0xadb3('0x12')](function(_0x29949f){_0x2fc0aa(null,_0x29949f?_0x29949f[_0xadb3('0x13')]:![]);})[_0xadb3('0x14')](function(_0x22fa0c){_0x2fc0aa(_0x22fa0c);});};AGIVertices[_0xadb3('0xf')][_0xadb3('0x1c')]=function(_0x52530e,_0x40083e){var _0x357daf=this;this[_0xadb3('0xd')]['getSoundById'](_0x52530e)['then'](function(_0x5343d5){_0x40083e(null,_0x5343d5?_0x357daf['getSoundPath'](_0x5343d5['save_name']):![]);})[_0xadb3('0x14')](function(_0x124d0e){_0x40083e(_0x124d0e);});};AGIVertices[_0xadb3('0xf')][_0xadb3('0x1d')]=function(_0x291829,_0x38c362){this['rpc'][_0xadb3('0x1e')](_0x291829)[_0xadb3('0x12')](function(_0x46fa94){_0x38c362(null,_0x46fa94?_0x46fa94:![]);})[_0xadb3('0x14')](function(_0x2ae60d){_0x38c362(_0x2ae60d);});};AGIVertices[_0xadb3('0xf')][_0xadb3('0x1f')]=function(_0x1d270e,_0x284c3b,_0x326b35){this['mailRpc'][_0xadb3('0x1f')](_0x1d270e,_0x284c3b)['then'](function(){_0x326b35(null);})['catch'](function(_0x3b24ad){_0x326b35(_0x3b24ad);});};AGIVertices[_0xadb3('0xf')][_0xadb3('0x20')]=function(_0x13c657,_0xaf5f10){this[_0xadb3('0xd')][_0xadb3('0x21')](_0x13c657)['then'](function(_0x36519c){if(_0x36519c){if(_0x36519c[_0xadb3('0x22')]){_0xaf5f10(null,[_0x36519c['interval']]);}else{_0xaf5f10(null,_['map'](_0x36519c[_0xadb3('0x23')],_0xadb3('0x24')));}}else{_0xaf5f10(null,![]);}})['catch'](function(_0x3cf36e){_0xaf5f10(_0x3cf36e);});};AGIVertices[_0xadb3('0xf')][_0xadb3('0x25')]=function(_0x54bc1d){return util['format'](_0xadb3('0x26'),FILES_PATH,_0x54bc1d);};AGIVertices[_0xadb3('0xf')][_0xadb3('0x27')]=function(_0x3f6763,_0x636a0,_0x484dbc){odbc[_0xadb3('0x28')](_0x3f6763,function(_0x584dc0){if(_0x584dc0){logger['error'](_0xadb3('0x29'),_0x584dc0);_0x484dbc(_0x584dc0);}else{logger['info'](_0xadb3('0x2a'));odbc[_0xadb3('0x2b')](_0x636a0,function(_0xb8ff48,_0x24afe9){if(_0xb8ff48){logger[_0xadb3('0x2c')](_0xadb3('0x2d'),_0x636a0);_0x484dbc(_0xb8ff48);}else{logger[_0xadb3('0x2c')](_0xadb3('0x2e'),_0x636a0);odbc['close'](function(_0x59553c){if(_0x59553c){logger[_0xadb3('0x2f')]('Error\x20closing\x20connection\x20to\x20odbc\x20%s',_0x59553c);}_0x484dbc(null,_0x24afe9);});}});}});};AGIVertices['prototype']['getSmsAccount']=function(_0x172bbb,_0x467edb){this[_0xadb3('0xd')]['getSmsAccountById'](_0x172bbb)[_0xadb3('0x12')](function(_0x2c9a80){_0x467edb(null,_0x2c9a80?_0x2c9a80:![]);})[_0xadb3('0x14')](function(_0xbad4a){_0x467edb(_0xbad4a);});};AGIVertices[_0xadb3('0xf')][_0xadb3('0x30')]=function(_0x4689b4,_0xdbb8cb){this['rpc'][_0xadb3('0x30')](_0x4689b4)[_0xadb3('0x12')](function(_0x5d4381){_0xdbb8cb(null,_0x5d4381);})[_0xadb3('0x14')](function(_0x6330a2){_0xdbb8cb(_0x6330a2);});};AGIVertices[_0xadb3('0xf')][_0xadb3('0x31')]=function(_0x4dfec0,_0xed422e,_0x140492){this[_0xadb3('0xd')][_0xadb3('0x31')]({'uniqueid':this[_0xadb3('0xc')][_0xadb3('0x32')],'node':_0x4dfec0[_0xadb3('0x33')],'application':_0x4dfec0['agicommand'],'data':_0xed422e||null,'project_name':this[_0xadb3('0xc')][_0xadb3('0x34')],'callerid':this[_0xadb3('0xc')]['callerid']})['then'](function(_0x1ff7a7){if(_0x140492){_0x140492(null,_0x1ff7a7);}})[_0xadb3('0x14')](function(_0x2bc802){if(_0x140492){_0x140492(_0x2bc802);}});};AGIVertices[_0xadb3('0xf')][_0xadb3('0x35')]=function(_0x2ebbaa,_0x2023ef,_0x25b2d4,_0x40c26c){this['rpc'][_0xadb3('0x35')]({'uniqueid':this[_0xadb3('0xc')][_0xadb3('0x32')],'callerid':this[_0xadb3('0xc')]['callerid'],'calleridname':this[_0xadb3('0xc')][_0xadb3('0x36')],'context':this[_0xadb3('0xc')][_0xadb3('0x37')],'extension':this[_0xadb3('0xc')]['extension'],'priority':this['channel'][_0xadb3('0x38')],'accountcode':this['channel'][_0xadb3('0x39')],'dnid':this[_0xadb3('0xc')][_0xadb3('0x3a')],'projectName':this['channel'][_0xadb3('0x34')],'saveName':_0x2023ef,'filename':_0x2ebbaa[_0xadb3('0x3b')]||_0x2023ef,'savePath':_0x25b2d4})[_0xadb3('0x12')](function(_0x3993c7){_0x40c26c(null,_0x3993c7);})[_0xadb3('0x14')](function(_0x3bbc33){_0x40c26c(_0x3bbc33);});};AGIVertices[_0xadb3('0xf')][_0xadb3('0x3c')]=function(_0x243e69,_0x449c62,_0x6d2152){this['rpc']['createSquareMessage']({'uniqueid':this['channel']['uniqueid'],'body':_0x243e69,'direction':_0x449c62})[_0xadb3('0x12')](function(_0x37a7e9){if(_0x6d2152){_0x6d2152(null,_0x37a7e9);}})[_0xadb3('0x14')](function(_0x4513c5){if(_0x6d2152){_0x6d2152(_0x4513c5);}});};AGIVertices[_0xadb3('0xf')][_0xadb3('0x3d')]=function(_0x5a3cf1,_0x2d3119){this['rpc']['createCmContact']({'firstName':_['isEmpty'](_0x5a3cf1[_0xadb3('0x13')])||_[_0xadb3('0x3e')](_0x5a3cf1[_0xadb3('0x13')])?'callback_'+Math[_0xadb3('0x3f')]():_0x5a3cf1[_0xadb3('0x13')],'lastName':_[_0xadb3('0x40')](_0x5a3cf1[_0xadb3('0x41')])||_['isNil'](_0x5a3cf1[_0xadb3('0x41')])?null:_0x5a3cf1['lastName'],'phone':_0x5a3cf1[_0xadb3('0x42')],'ListId':_0x5a3cf1[_0xadb3('0x43')],'scheduledAt':_0x5a3cf1[_0xadb3('0x44')],'callbackUniqueid':this['channel']['uniqueid'],'tags':_0xadb3('0x45'),'description':_0xadb3('0x46')+_0x5a3cf1['scheduledAt'][_0xadb3('0x47')](),'priority':_0x5a3cf1[_0xadb3('0x48')]})[_0xadb3('0x12')](function(_0x3b4e02){_0x2d3119(null,_0x3b4e02);})['catch'](function(_0x4e7d80){_0x2d3119(_0x4e7d80);});};AGIVertices[_0xadb3('0xf')][_0xadb3('0x49')]=function(_0x2e32e3,_0x44853b){this[_0xadb3('0xd')][_0xadb3('0x4a')](_0x2e32e3)['then'](function(_0x549dd0){_0x44853b(null,_0x549dd0?_0x549dd0[_0xadb3('0x13')]:![]);})[_0xadb3('0x14')](function(_0x4d473d){_0x44853b(_0x4d473d);});};AGIVertices[_0xadb3('0xf')]['agentPause']=function(_0x243695,_0x21c758,_0xb5292a){var _0x489c67={'role':_0xadb3('0x4b')};_0x489c67[_0x243695]=this[_0xadb3('0xc')]['callerid'];this[_0xadb3('0xd')]['agentPause'](_0x489c67,_0x21c758,this['channel']['uniqueid'])['then'](function(_0x17da89){_0xb5292a(null,_['isNil'](_0x17da89)?![]:!![]);})[_0xadb3('0x14')](function(_0x6fab55){logger[_0xadb3('0x2f')](_0x6fab55);_0xb5292a(null,![]);});};AGIVertices[_0xadb3('0xf')][_0xadb3('0x4c')]=function(_0x3e6bd3,_0x532d8c){var _0x36644a={'role':_0xadb3('0x4b')};_0x36644a[_0x3e6bd3]=this[_0xadb3('0xc')][_0xadb3('0x4d')];this[_0xadb3('0xd')][_0xadb3('0x4c')](_0x36644a)[_0xadb3('0x12')](function(_0x18d253){_0x532d8c(null,_['isNil'](_0x18d253)?![]:!![]);})[_0xadb3('0x14')](function(_0x244a38){logger[_0xadb3('0x2f')](_0x244a38);_0x532d8c(null,![]);});};AGIVertices[_0xadb3('0xf')]['agentLogout']=function(_0x19736c,_0x886e4b){var _0x5287f7={'role':'agent'};_0x5287f7[_0x19736c]=this[_0xadb3('0xc')]['callerid'];this[_0xadb3('0xd')][_0xadb3('0x4e')](_0x5287f7)['then'](function(_0x3fd3f7){_0x886e4b(null,_[_0xadb3('0x3e')](_0x3fd3f7)?![]:!![]);})[_0xadb3('0x14')](function(_0x325024){logger[_0xadb3('0x2f')](_0x325024);_0x886e4b(null,![]);});};AGIVertices['prototype'][_0xadb3('0x4f')]=function(_0x3fdf9f,_0x407345){var _0x53c6a1={'role':'agent'};_0x53c6a1[_0x3fdf9f]=this[_0xadb3('0xc')][_0xadb3('0x4d')];var _0x1a4942=_0x3fdf9f!=_0xadb3('0x50')?util[_0xadb3('0x51')](_0xadb3('0x52'),'LOCAL',this[_0xadb3('0xc')]['callerid']):undefined;this['rpc'][_0xadb3('0x4f')](_0x53c6a1,_0x1a4942)[_0xadb3('0x12')](function(_0xed31ca){_0x407345(null,_[_0xadb3('0x3e')](_0xed31ca)?![]:!![]);})[_0xadb3('0x14')](function(_0x136d61){logger['error'](_0x136d61);_0x407345(null,![]);});};AGIVertices[_0xadb3('0xf')][_0xadb3('0x53')]=function(_0x1fd27e,_0x5cc594){sh[_0xadb3('0x54')](_[_0xadb3('0x55')](_0x1fd27e),function(_0x220718,_0x416289){var _0x24ef81=_0x416289['replace'](/(\r\n|\n|\r)/gm,'');_0x5cc594(null,_0x24ef81);});};AGIVertices[_0xadb3('0xf')][_0xadb3('0x56')]=function(_0x22f052,_0x4bd45f){scripts[_0xadb3('0x56')](_0x22f052[_0xadb3('0x57')],_0x22f052[_0xadb3('0x58')]||'en',0x1)[_0xadb3('0x12')](function(_0x161e80){_0x4bd45f(null,_0x161e80);})[_0xadb3('0x14')](function(_0x4b1e04){_0x4bd45f(_0x4b1e04);});};AGIVertices[_0xadb3('0xf')][_0xadb3('0x59')]=function(_0x4d3db5,_0x5a4618){scripts[_0xadb3('0x59')](this[_0xadb3('0xc')]['uniqueid'],_0x4d3db5['key'],_0x4d3db5[_0xadb3('0x57')],_0x4d3db5[_0xadb3('0x5a')]||'en')['then'](function(_0x34b9cd){_0x5a4618(null,_0x34b9cd);})['catch'](function(_0x229710){_0x5a4618(_0x229710);});};AGIVertices[_0xadb3('0xf')][_0xadb3('0x5b')]=function(_0x265861,_0xa4b986){scripts[_0xadb3('0x5b')](this[_0xadb3('0xc')],_0x265861)['then'](function(_0x404b38){_0xa4b986(null,_0x404b38);})[_0xadb3('0x14')](function(_0x149bc5){_0xa4b986(_0x149bc5);});};AGIVertices[_0xadb3('0xf')]['ispeechTTS']=function(_0x2fada2,_0x49993e){scripts[_0xadb3('0x5c')](_0x2fada2['key'],_0x2fada2[_0xadb3('0x57')],_0x2fada2[_0xadb3('0x5d')]||'en-US',_0x2fada2[_0xadb3('0x5e')])[_0xadb3('0x12')](function(_0x3a1b49){_0x49993e(null,_0x3a1b49);})[_0xadb3('0x14')](function(_0x118368){_0x49993e(_0x118368);});};AGIVertices[_0xadb3('0xf')]['ispeechASR']=function(_0x530eb8,_0x9ed8aa,_0x258f22){scripts[_0xadb3('0x5f')](_0x9ed8aa,_0x530eb8[_0xadb3('0x60')],_0x530eb8[_0xadb3('0x61')]||_0xadb3('0x62'),this['isConfigured'](_0x530eb8[_0xadb3('0x63')])?_0x530eb8[_0xadb3('0x63')]:undefined)[_0xadb3('0x12')](function(_0x59052f){_0x258f22(null,_0x59052f);})[_0xadb3('0x14')](function(_0x523b51){_0x258f22(_0x523b51);});};AGIVertices['prototype']['awsPolly']=function(_0x44eefc,_0x5d8687){scripts[_0xadb3('0x64')](_0x44eefc['aws_access_key_id'],_0x44eefc[_0xadb3('0x65')],_0x44eefc['aws_polly_region'],_0x44eefc['aws_polly_voice']||_0xadb3('0x66'),_0x44eefc['text'],_0x44eefc[_0xadb3('0x67')]||_0xadb3('0x57'))['then'](function(_0xd0fa1b){_0x5d8687(null,_0xd0fa1b);})[_0xadb3('0x14')](function(_0x103688){_0x5d8687(_0x103688);});};AGIVertices[_0xadb3('0xf')][_0xadb3('0x68')]=function(_0xd0fe5c,_0x31ecb0){scripts[_0xadb3('0x68')](this[_0xadb3('0xc')][_0xadb3('0x32')],_0xd0fe5c['aws_access_key_id'],_0xd0fe5c[_0xadb3('0x65')],_0xd0fe5c[_0xadb3('0x69')],_0xd0fe5c[_0xadb3('0x57')],_0xd0fe5c[_0xadb3('0x6a')])['then'](function(_0x2973b3){_0x31ecb0(null,_0x2973b3);})[_0xadb3('0x14')](function(_0xa265c0){_0x31ecb0(_0xa265c0);});};AGIVertices[_0xadb3('0xf')]['googleASR']=function(_0x3101bc,_0x3389ff,_0x176a29){scripts[_0xadb3('0x6b')](_0x3389ff,_0x3101bc[_0xadb3('0x60')],_0x3101bc['google_asr_language']||_0xadb3('0x62'))[_0xadb3('0x12')](function(_0x2e95bb){_0x176a29(null,_0x2e95bb);})[_0xadb3('0x14')](function(_0x541bcd){_0x176a29(_0x541bcd);});};AGIVertices[_0xadb3('0xf')]['tildeASR']=function(_0x54b8f3,_0x40e211,_0x3e982a){scripts[_0xadb3('0x6c')](_0x40e211,_0x54b8f3['appid'],_0x54b8f3[_0xadb3('0x6d')],_0x54b8f3[_0xadb3('0x6e')])['then'](function(_0x23a2aa){_0x3e982a(null,_0x23a2aa);})[_0xadb3('0x14')](function(_0x519b6c){_0x3e982a(_0x519b6c);});};AGIVertices[_0xadb3('0xf')][_0xadb3('0x6f')]=function(_0x35f504){var _0x18c09f=_[_0xadb3('0x70')](verticesWithRetry,_0x35f504['agicommand'])?_0x35f504:_[_0xadb3('0x71')](_0x35f504);for(var _0x3ec17c in _0x18c09f){if(_0x18c09f['hasOwnProperty'](_0x3ec17c)){if(_0x18c09f[_0x3ec17c]&&_[_0xadb3('0x72')](_0x18c09f[_0x3ec17c])){_0x18c09f[_0x3ec17c]=this[_0xadb3('0x73')](_0x18c09f[_0x3ec17c]);}}}return _0x18c09f;};AGIVertices[_0xadb3('0xf')][_0xadb3('0x73')]=function(_0x1560db){var _0x1d02f9=_0x1560db[_0xadb3('0x74')]('{');for(var _0x55bf03=0x1;_0x55bf03<_0x1d02f9[_0xadb3('0x75')];_0x55bf03+=0x1){var _0x2c6f3c=_0x1d02f9[_0x55bf03][_0xadb3('0x74')]('}');if(_0x2c6f3c[_0xadb3('0x75')]>0x1){_0x1560db=_0x1560db[_0xadb3('0x76')]('{'+_0x2c6f3c[0x0]+'}',this[_0xadb3('0xc')]['getVariable'](_0x2c6f3c[0x0])[_0xadb3('0x77')]||_0x2c6f3c[0x0]);}}if(_0x1d02f9['length']===0x1){return _0x1560db[_0xadb3('0x47')]();}return this['replaceAllVariables'](_0x1560db);};AGIVertices[_0xadb3('0xf')][_0xadb3('0x78')]=function(_0x4b7379,_0x428f03){var _0x3a10f6=this['channel'][_0xadb3('0x10')](_0x4b7379);if(_0x3a10f6[_0xadb3('0x79')]===-0x1){return _0x3a10f6;}logger[_0xadb3('0x2c')](util[_0xadb3('0x51')](_0xadb3('0x7a'),_0x428f03,_0x3a10f6[_0xadb3('0x77')]));return this[_0xadb3('0xc')]['setVariable'](_0x428f03,_0x3a10f6[_0xadb3('0x77')]);};AGIVertices[_0xadb3('0xf')][_0xadb3('0x7b')]=function(_0x3a1925){return _0x3a1925&&_0x3a1925!=='0'&&_0x3a1925!=='-1'&&_0x3a1925!=='';};AGIVertices[_0xadb3('0xf')][_0xadb3('0x7c')]=function(_0x48e590){this[_0xadb3('0x31')][_0xadb3('0x7d')](this,_0x48e590,'-');_0x48e590[_0xadb3('0x7e')]=_0x48e590[_0xadb3('0x7c')];return{'code':0xc8,'result':'-'};};AGIVertices['prototype'][_0xadb3('0x6')]=function(_0x362426){logger[_0xadb3('0x2c')](util['format'](_0xadb3('0x7f'),_0x362426[_0xadb3('0x33')]));return this[_0xadb3('0xc')][_0xadb3('0x6')]([_0x362426[_0xadb3('0x80')],_0x362426[_0xadb3('0x81')]]);};AGIVertices['prototype']['answer']=function(_0x2ed4d3){logger['info'](util[_0xadb3('0x51')](_0xadb3('0x82'),_0x2ed4d3[_0xadb3('0x33')]));if(this[_0xadb3('0x7b')](_0x2ed4d3[_0xadb3('0x83')])){logger[_0xadb3('0x2c')](util[_0xadb3('0x51')]('Wait\x20%s\x20seconds\x20before\x20answer',_0x2ed4d3[_0xadb3('0x83')]));var _0x36207c=this[_0xadb3('0xc')][_0xadb3('0x84')](_0x2ed4d3['timeout']);if(_0x36207c['result']===-0x1){return _0x36207c;}}return this[_0xadb3('0xc')][_0xadb3('0x85')]();};AGIVertices[_0xadb3('0xf')][_0xadb3('0x45')]=function(_0x18c4cf){logger[_0xadb3('0x2c')](util[_0xadb3('0x51')](_0xadb3('0x86'),_0x18c4cf[_0xadb3('0x33')]));if(!this[_0xadb3('0x7b')](_0x18c4cf[_0xadb3('0x43')])){return this['channel']['error'](_0x18c4cf,_0xadb3('0x87'));}_0x18c4cf[_0xadb3('0x44')]=moment();if(this[_0xadb3('0x7b')](_0x18c4cf[_0xadb3('0x88')])){_0x18c4cf[_0xadb3('0x44')]=moment()['add'](_0x18c4cf[_0xadb3('0x88')],_0xadb3('0x89'));}if(!this[_0xadb3('0x7b')](_0x18c4cf['callback_priority'])){_0x18c4cf[_0xadb3('0x48')]=0x2;}this[_0xadb3('0x3d')][_0xadb3('0x7d')](this,_0x18c4cf);return this[_0xadb3('0xc')]['noop'](util[_0xadb3('0x51')](_0xadb3('0x8a'),_0x18c4cf[_0xadb3('0x42')],_0x18c4cf[_0xadb3('0x43')],_0x18c4cf[_0xadb3('0x44')]));};AGIVertices[_0xadb3('0xf')][_0xadb3('0x8b')]=function(_0x2d5f35){logger[_0xadb3('0x2c')](util['format'](_0xadb3('0x8c'),_0x2d5f35[_0xadb3('0x33')]));var _0x3435b=this[_0xadb3('0xc')][_0xadb3('0x54')](_0x2d5f35['application'],_0x2d5f35['options']);if(_0x3435b['result']===-0x1){return _0x3435b;}return this[_0xadb3('0xc')][_0xadb3('0x8d')](util[_0xadb3('0x51')](_0xadb3('0x8e'),_0x2d5f35['application'],_0x2d5f35[_0xadb3('0x8f')]));};AGIVertices[_0xadb3('0xf')][_0xadb3('0x90')]=function(_0x3363ac){logger[_0xadb3('0x2c')](util[_0xadb3('0x51')](_0xadb3('0x91'),_0x3363ac[_0xadb3('0x33')]));if(!this[_0xadb3('0x7b')](_0x3363ac[_0xadb3('0x57')])){return this[_0xadb3('0xc')][_0xadb3('0x8d')]('no\x20text\x20configured');}var _0x5c6d34='\x22'+_0x3363ac[_0xadb3('0x57')]+'\x22';if(this[_0xadb3('0x7b')](_0x3363ac[_0xadb3('0x8f')])){_0x5c6d34+=','+_0x3363ac[_0xadb3('0x8f')];}var _0x310311=this[_0xadb3('0xc')][_0xadb3('0x54')](_0xadb3('0x92'),_0x5c6d34);if(_0x310311[_0xadb3('0x79')]===-0x1){return _0x310311;}return this[_0xadb3('0xc')][_0xadb3('0x8d')](util['format']('Executed\x20command\x20MRCPSynth\x20%s',_0x5c6d34));};AGIVertices[_0xadb3('0xf')]['sestektts']=function(_0x4a2b34){logger[_0xadb3('0x2c')](util['format'](_0xadb3('0x93'),_0x4a2b34[_0xadb3('0x33')]));if(!this[_0xadb3('0x7b')](_0x4a2b34[_0xadb3('0x57')])){return this[_0xadb3('0xc')][_0xadb3('0x8d')](_0xadb3('0x94'));}var _0x1c6bfd='\x22'+_0x4a2b34[_0xadb3('0x57')]+'\x22';if(this[_0xadb3('0x7b')](_0x4a2b34[_0xadb3('0x8f')])){_0x1c6bfd+=','+_0x4a2b34['options'];}var _0x198560=this[_0xadb3('0xc')][_0xadb3('0x54')](_0xadb3('0x92'),_0x1c6bfd);if(_0x198560[_0xadb3('0x79')]===-0x1){return _0x198560;}return this[_0xadb3('0xc')][_0xadb3('0x8d')](util[_0xadb3('0x51')](_0xadb3('0x95'),_0x1c6bfd));};AGIVertices[_0xadb3('0xf')]['lumenvoxasr']=function(_0x52f465){logger[_0xadb3('0x2c')](util[_0xadb3('0x51')](_0xadb3('0x96'),_0x52f465['label']));if(!this[_0xadb3('0x7b')](_0x52f465[_0xadb3('0x97')])){return this[_0xadb3('0xc')][_0xadb3('0x8d')](_0xadb3('0x98'));}var _0xc9a27a=_0x52f465['grammar'];if(this[_0xadb3('0x7b')](_0x52f465[_0xadb3('0x8f')])){_0xc9a27a+=','+_0x52f465[_0xadb3('0x8f')];}var _0x651875=this[_0xadb3('0xc')][_0xadb3('0x54')]('MRCPRecog',_0xc9a27a);if(_0x651875[_0xadb3('0x79')]===-0x1){return _0x651875;}var _0x3143c7=this[_0xadb3('0x78')](_0xadb3('0x99'),_0xadb3('0x9a'));if(_0x3143c7[_0xadb3('0x79')]===-0x1){return _0x3143c7;}var _0x4dce01=this[_0xadb3('0x78')]('RECOG_INPUT()','LUMENVOX_ASR_TRANSCRIPT');if(_0x4dce01[_0xadb3('0x79')]===-0x1){return _0x4dce01;}var _0xfc6f6e=this[_0xadb3('0x78')](_0xadb3('0x9b'),_0xadb3('0x9c'));if(_0xfc6f6e['result']===-0x1){return _0xfc6f6e;}return this[_0xadb3('0xc')]['noop'](util[_0xadb3('0x51')](_0xadb3('0x9d'),_0xc9a27a));};AGIVertices[_0xadb3('0xf')][_0xadb3('0x9e')]=function(_0x125b6a){logger[_0xadb3('0x2c')](util[_0xadb3('0x51')](_0xadb3('0x9f'),_0x125b6a[_0xadb3('0x33')]));if(!this['isConfigured'](_0x125b6a['grammar'])){return this['channel'][_0xadb3('0x8d')](_0xadb3('0x98'));}var _0x4c462a=_0x125b6a[_0xadb3('0x97')];if(this[_0xadb3('0x7b')](_0x125b6a[_0xadb3('0x8f')])){_0x4c462a+=','+_0x125b6a[_0xadb3('0x8f')];}var _0x3ecd04=this['channel'][_0xadb3('0x54')](_0xadb3('0xa0'),_0x4c462a);if(_0x3ecd04[_0xadb3('0x79')]===-0x1){return _0x3ecd04;}var _0xb36aa=this[_0xadb3('0x78')](_0xadb3('0x99'),_0xadb3('0xa1'));if(_0xb36aa[_0xadb3('0x79')]===-0x1){return _0xb36aa;}var _0x162736=this[_0xadb3('0x78')](_0xadb3('0xa2'),_0xadb3('0xa3'));if(_0x162736[_0xadb3('0x79')]===-0x1){return _0x162736;}var _0x1bebd6=this[_0xadb3('0x78')](_0xadb3('0x9b'),_0xadb3('0xa4'));if(_0x1bebd6[_0xadb3('0x79')]===-0x1){return _0x1bebd6;}return this[_0xadb3('0xc')]['noop'](util[_0xadb3('0x51')](_0xadb3('0x9d'),_0x4c462a));};AGIVertices[_0xadb3('0xf')]['database']=function(_0x3ad250){logger[_0xadb3('0x2c')](util[_0xadb3('0x51')](_0xadb3('0xa5'),_0x3ad250['label']));if(!this[_0xadb3('0x7b')](_0x3ad250['odbc_id'])){return this[_0xadb3('0xc')][_0xadb3('0x2f')](_0x3ad250,_0xadb3('0xa6'));}var _0x2061e4=this['getSquareOdbc'][_0xadb3('0x7d')](this,_0x3ad250[_0xadb3('0xa7')]);if(!_0x2061e4){return this['channel'][_0xadb3('0x2f')](_0x3ad250,_0xadb3('0xa8'));}if(!this[_0xadb3('0x7b')](_0x3ad250[_0xadb3('0x2b')])){return this[_0xadb3('0xc')][_0xadb3('0x2f')](_0x3ad250,'no\x20query\x20configured');}var _0x135156=_0x3ad250[_0xadb3('0x2b')][_0xadb3('0xa9')](/(\r\n|\n|\r)/gm,'\x20');this[_0xadb3('0xc')]['noop'](util[_0xadb3('0x51')](_0xadb3('0xaa'),_0x135156));var _0x38747f=this[_0xadb3('0x27')][_0xadb3('0x7d')](this,_0x2061e4,_0x135156);this[_0xadb3('0x31')][_0xadb3('0x7d')](this,_0x3ad250,_0x135156);if(!this[_0xadb3('0x7b')](_0x3ad250['variable_id'])){return this[_0xadb3('0xc')]['noop'](_0xadb3('0xab'));}var _0x175f33=this[_0xadb3('0x10')]['sync'](this,_0x3ad250['variable_id']);if(!_0x175f33){return this['channel'][_0xadb3('0x2f')](_0x3ad250,'no\x20variable\x20found');}var _0x12d991=this;_0x38747f[_0xadb3('0xac')](function(_0x451713,_0x2e620b){Object[_0xadb3('0xad')](_0x451713)[_0xadb3('0xac')](function(_0x1cef23){_0x12d991[_0xadb3('0xc')][_0xadb3('0xae')](util[_0xadb3('0x51')](_0xadb3('0xaf'),_0x175f33,_0x2e620b,_0x1cef23),_0x451713[_0x1cef23]);});});this[_0xadb3('0xc')]['setVariable'](util['format'](_0xadb3('0xb0'),_0x175f33),_0x38747f[_0xadb3('0x75')]);return this[_0xadb3('0xc')][_0xadb3('0x8d')](util[_0xadb3('0x51')](_0xadb3('0xb1'),_0x175f33));};AGIVertices[_0xadb3('0xf')][_0xadb3('0xb2')]=function(_0x38c147){logger[_0xadb3('0xb3')](util['format'](_0xadb3('0xb4'),_0x38c147[_0xadb3('0x33')]));if(!this[_0xadb3('0x7b')](_0x38c147['sip_id'])){return this[_0xadb3('0xc')][_0xadb3('0x2f')](_0x38c147,_0xadb3('0xb5'));}var _0x32154b=this[_0xadb3('0xb6')][_0xadb3('0x7d')](this,_0x38c147[_0xadb3('0xb7')]);if(!_0x32154b){return this['channel']['error'](_0x38c147,_0xadb3('0xb8'));}var _0x530e03=this[_0xadb3('0xc')][_0xadb3('0x54')](_0xadb3('0xb9'),[util[_0xadb3('0x51')](_0xadb3('0xba'),_0x32154b),_0x38c147['timeout'],_0x38c147[_0xadb3('0xbb')],_0x38c147['url']]);if(_0x530e03[_0xadb3('0x79')]===-0x1){return _0x530e03;}return this[_0xadb3('0xc')][_0xadb3('0x8d')](util[_0xadb3('0x51')](_0xadb3('0xbc'),_0xadb3('0xb9')));};AGIVertices['prototype'][_0xadb3('0xbd')]=function(_0x428d11){logger[_0xadb3('0x2c')](util[_0xadb3('0x51')]('Enter\x20in\x20DIALOGFLOW\x20(%s)\x20block',_0x428d11[_0xadb3('0x33')]));if(!this[_0xadb3('0x7b')](_0x428d11[_0xadb3('0x60')])){return this[_0xadb3('0xc')][_0xadb3('0x8d')](_0xadb3('0xbe'));}if(!this[_0xadb3('0x7b')](_0x428d11['text'])){return this[_0xadb3('0xc')][_0xadb3('0x8d')](_0xadb3('0x94'));}this[_0xadb3('0xc')]['bot']=!![];this[_0xadb3('0x31')](_0x428d11);this[_0xadb3('0x3c')](_0x428d11[_0xadb3('0x57')],'in');this[_0xadb3('0xc')]['noop'](util['format'](_0xadb3('0xbf'),_0x428d11[_0xadb3('0x57')]));var _0x2c551d=this[_0xadb3('0x59')][_0xadb3('0x7d')](this,_0x428d11);if(_0x2c551d){for(var _0x26bb5e in _0x2c551d){if(_0x2c551d[_0xadb3('0xc0')](_0x26bb5e)){this[_0xadb3('0xc')][_0xadb3('0xae')](util[_0xadb3('0x51')](_0xadb3('0xc1'),_0x26bb5e[_0xadb3('0xc2')]()),_0x2c551d[_0x26bb5e]);}}this[_0xadb3('0x3c')](_0x2c551d[_0xadb3('0xc3')],'out');return this['channel'][_0xadb3('0x8d')](util[_0xadb3('0x51')](_0xadb3('0xc4'),_0x2c551d[_0xadb3('0xc3')]));}return this[_0xadb3('0xc')][_0xadb3('0x2f')](_0x428d11,_0xadb3('0xc5'));};AGIVertices['prototype'][_0xadb3('0xc6')]=function(_0x4ed05f){logger[_0xadb3('0x2c')](util['format'](_0xadb3('0xc7'),_0x4ed05f[_0xadb3('0x33')]));if(!this[_0xadb3('0x7b')](_0x4ed05f[_0xadb3('0xc8')])){return this[_0xadb3('0xc')]['noop'](_0xadb3('0xc9'));}if(!this['isConfigured'](_0x4ed05f[_0xadb3('0xca')])){return this[_0xadb3('0xc')][_0xadb3('0x8d')](_0xadb3('0xcb'));}if(!this[_0xadb3('0x7b')](_0x4ed05f['password'])){return this[_0xadb3('0xc')][_0xadb3('0x8d')](_0xadb3('0xcc'));}if(!this[_0xadb3('0x7b')](_0x4ed05f['ndassistant_url'])){return this[_0xadb3('0xc')]['noop'](_0xadb3('0x94'));}this['channel']['bot']=!![];this[_0xadb3('0x31')](_0x4ed05f);this['createSquareMessage'](_0x4ed05f['text'],'in');this[_0xadb3('0xc')][_0xadb3('0x8d')](util[_0xadb3('0x51')](_0xadb3('0xcd'),_0x4ed05f['text']));var _0x5a74bc=this[_0xadb3('0x5b')][_0xadb3('0x7d')](this,_0x4ed05f);if(_0x5a74bc){for(var _0x4e2b5b in _0x5a74bc){if(_0x5a74bc['hasOwnProperty'](_0x4e2b5b)){this[_0xadb3('0xc')][_0xadb3('0xae')](util[_0xadb3('0x51')]('SESTEK_NDA_%s',_0x4e2b5b[_0xadb3('0xc2')]()),_0x5a74bc[_0x4e2b5b]);}}this[_0xadb3('0x3c')](_0x5a74bc[_0xadb3('0xc3')],_0xadb3('0xce'));if(_0x5a74bc[_0xadb3('0xcf')]){this[_0xadb3('0xc')][_0xadb3('0x8d')](util['format'](_0xadb3('0xd0'),_0x5a74bc['audiofile']));var _0x4de711=this['channel'][_0xadb3('0xd1')](_0x5a74bc[_0xadb3('0xcf')]);try{fs[_0xadb3('0xd2')](_0x5a74bc[_0xadb3('0xcf')]+'.wav');}catch(_0x4f6f36){logger['error'](_0x4f6f36);}return _0x4de711;}else{return this['channel']['noop'](util[_0xadb3('0x51')](_0xadb3('0xd3'),_0x5a74bc[_0xadb3('0xc3')]));}}return this['channel'][_0xadb3('0x2f')](_0x4ed05f,'SestekNDA\x20is\x20unreachable');};AGIVertices[_0xadb3('0xf')][_0xadb3('0xd4')]=function(_0xd8faf1){logger[_0xadb3('0x2c')](util[_0xadb3('0x51')](_0xadb3('0xd5'),_0xd8faf1['label']));return this[_0xadb3('0xc')][_0xadb3('0x8d')]('end');};AGIVertices[_0xadb3('0xf')][_0xadb3('0xd6')]=function(_0x259784){logger['info'](util[_0xadb3('0x51')](_0xadb3('0xd7'),_0x259784[_0xadb3('0x33')]));var _0x56c501='';if(_0x259784[_0xadb3('0xd8')]){if(!this[_0xadb3('0x7b')](_0x259784[_0xadb3('0xd8')])){return this[_0xadb3('0xc')]['error'](_0x259784,_0xadb3('0xd9'));}else{var _0x1a0585=parseInt(_0x259784['trunk_id'],0xa);if(isNaN(_0x1a0585)){_0x56c501=_0x259784[_0xadb3('0xd8')];}else{_0x56c501=this[_0xadb3('0x1b')][_0xadb3('0x7d')](this,_0x259784[_0xadb3('0xd8')]);if(!_0x56c501){return this[_0xadb3('0xc')][_0xadb3('0x2f')](_0x259784,_0xadb3('0xda'));}}}}else if(_0x259784[_0xadb3('0xdb')]){_0x56c501=_0x259784[_0xadb3('0xdb')];}else{return this[_0xadb3('0xc')]['error'](_0x259784,_0xadb3('0xd9'));}var _0x2e258c=this[_0xadb3('0xc')][_0xadb3('0x54')](_0xadb3('0xb9'),[util[_0xadb3('0x51')](_0xadb3('0xdc'),_0x56c501,_0x259784[_0xadb3('0x42')]),_0x259784[_0xadb3('0x83')],_0x259784[_0xadb3('0xbb')],_0x259784[_0xadb3('0xdd')]]);if(_0x2e258c[_0xadb3('0x79')]===-0x1){return _0x2e258c;}return this[_0xadb3('0xc')]['noop'](util['format'](_0xadb3('0xbc'),'DIAL'));};AGIVertices['prototype'][_0xadb3('0xde')]=function(_0xa09257){logger[_0xadb3('0x2c')](util[_0xadb3('0x51')]('Enter\x20in\x20FINALLY\x20(%s)\x20block',_0xa09257[_0xadb3('0x33')]));return this['channel'][_0xadb3('0x8d')](_0xadb3('0xde'));};AGIVertices[_0xadb3('0xf')][_0xadb3('0xb')]=function(_0x1d9466){logger['info'](util[_0xadb3('0x51')](_0xadb3('0xdf'),_0x1d9466[_0xadb3('0x33')]));if(_0x1d9466[_0xadb3('0x7e')]===0x0){return this[_0xadb3('0x7c')](_0x1d9466);}_0x1d9466[_0xadb3('0x7e')]-=0x1;if(!this[_0xadb3('0x7b')](_0x1d9466['file_id'])){return this[_0xadb3('0xc')][_0xadb3('0x2f')](_0x1d9466,_0xadb3('0xe0'));}var _0x210f8e=this['getSound'][_0xadb3('0x7d')](this,_0x1d9466[_0xadb3('0xe1')]);if(!_0x210f8e){return this[_0xadb3('0xc')]['error'](_0x1d9466,_0xadb3('0xe2'));}if(!this['isConfigured'](_0x1d9466[_0xadb3('0xe3')])){return this[_0xadb3('0xc')]['error']('no\x20variable\x20selected\x20for\x20the\x20result');}var _0x355ba9=this[_0xadb3('0xc')][_0xadb3('0xe4')](_0x210f8e,_0x1d9466[_0xadb3('0xe5')],_0x1d9466[_0xadb3('0xe6')]);var _0xb4672c=_0x355ba9[_0xadb3('0x79')]?_0x355ba9['result']['toString']():'';logger[_0xadb3('0x2c')](_0xadb3('0xe7'),JSON[_0xadb3('0xe8')](_0x355ba9));if(_0x355ba9[_0xadb3('0x79')]===-0x1){this[_0xadb3('0x31')]['sync'](this,_0x1d9466,_0xb4672c);return _0x355ba9;}else if(_0x355ba9[_0xadb3('0x77')]==='timeout'){_0x355ba9[_0xadb3('0x79')]=_0xb4672c[_0xadb3('0x75')]>=parseInt(_0x1d9466[_0xadb3('0xe9')])?'x':'i';}else{_0x355ba9[_0xadb3('0x79')]=_0xb4672c[_0xadb3('0x75')]>=parseInt(_0x1d9466['mindigit'])&&_0xb4672c[_0xadb3('0x75')]<=parseInt(_0x1d9466[_0xadb3('0xe6')])?'x':'i';}var _0xed2432=this[_0xadb3('0x10')]['sync'](this,_0x1d9466[_0xadb3('0xe3')]);if(!_0xed2432){return this[_0xadb3('0xc')][_0xadb3('0x2f')](_0x1d9466,_0xadb3('0xea'));}this[_0xadb3('0xc')][_0xadb3('0xae')](_0xed2432,_0xb4672c);if(this[_0xadb3('0x7b')](_0x1d9466[_0xadb3('0xeb')])){var _0x1be405=parseInt(_0x1d9466[_0xadb3('0xeb')],0xa);var _0x3c829b=rs[_0xadb3('0xec')]({'charset':'*','length':_0x1be405});var _0x387120=_0xb4672c[_0xadb3('0x75')];if(_0x387120>0x0){if(_0x387120>_0x1be405){this['createSquareDetailsReport'][_0xadb3('0x7d')](this,_0x1d9466,_0x1d9466[_0xadb3('0xed')]==='first'?_0x3c829b+_0xb4672c[_0xadb3('0xee')](_0x1be405):_0xb4672c[_0xadb3('0xee')](0x0,_0x387120-_0x1be405)+_0x3c829b);}else{this[_0xadb3('0x31')][_0xadb3('0x7d')](this,_0x1d9466,rs[_0xadb3('0xec')]({'charset':'*','length':_0x387120}));}}else{this[_0xadb3('0x31')]['sync'](this,_0x1d9466,'');}}else{this['createSquareDetailsReport'][_0xadb3('0x7d')](this,_0x1d9466,_0xb4672c);}return _0x355ba9;};AGIVertices[_0xadb3('0xf')][_0xadb3('0xef')]=function(_0x1c849b){logger[_0xadb3('0x2c')](util[_0xadb3('0x51')](_0xadb3('0xf0'),_0x1c849b[_0xadb3('0x33')]));return this['getdigits'](_0x1c849b);};AGIVertices[_0xadb3('0xf')][_0xadb3('0xf1')]=function(_0x28e2dc){logger['info'](util['format'](_0xadb3('0xf2'),_0x28e2dc[_0xadb3('0x33')]));this[_0xadb3('0x31')][_0xadb3('0x7d')](this,_0x28e2dc,_0x28e2dc[_0xadb3('0xf3')]);return this[_0xadb3('0xc')][_0xadb3('0x8d')](util[_0xadb3('0x51')]('GOAL\x20%s',_0x28e2dc['goalname']));};AGIVertices[_0xadb3('0xf')]['awspolly']=function(_0x38a0f0){logger[_0xadb3('0x2c')](util[_0xadb3('0x51')]('[AGI]\x20Enter\x20in\x20AWSPOLLY\x20(%s)\x20block',_0x38a0f0[_0xadb3('0x33')]));if(!this[_0xadb3('0x7b')](_0x38a0f0['aws_access_key_id'])||!this[_0xadb3('0x7b')](_0x38a0f0[_0xadb3('0x65')])){return this[_0xadb3('0xc')]['noop'](_0xadb3('0xf4'));}if(!this[_0xadb3('0x7b')](_0x38a0f0[_0xadb3('0x57')])){return this[_0xadb3('0xc')][_0xadb3('0x8d')](_0xadb3('0x94'));}this['channel'][_0xadb3('0x8d')](util['format'](_0xadb3('0xf5'),_0x38a0f0['text']));var _0x4bc17b=this[_0xadb3('0x64')]['sync'](this,_0x38a0f0);if(_0x4bc17b){this[_0xadb3('0xc')][_0xadb3('0x8d')](util[_0xadb3('0x51')](_0xadb3('0xf6'),_0x4bc17b));var _0x30c7bf=this[_0xadb3('0xc')][_0xadb3('0xd1')](_0x4bc17b);try{fs[_0xadb3('0xd2')](_0x4bc17b+_0xadb3('0xf7'));}catch(_0x36c24d){logger[_0xadb3('0x2f')](_0x36c24d);}return _0x30c7bf;}return this[_0xadb3('0xc')][_0xadb3('0x2f')](_0x38a0f0,_0xadb3('0xf8'));};AGIVertices[_0xadb3('0xf')][_0xadb3('0xf9')]=function(_0x1c3581){logger[_0xadb3('0x2c')](util[_0xadb3('0x51')](_0xadb3('0xfa'),_0x1c3581[_0xadb3('0x33')]));if(!this['isConfigured'](_0x1c3581[_0xadb3('0xfb')])||!this[_0xadb3('0x7b')](_0x1c3581[_0xadb3('0x65')])){return this[_0xadb3('0xc')]['noop'](_0xadb3('0xf4'));}if(!this[_0xadb3('0x7b')](_0x1c3581['aws_bot_name'])){return this[_0xadb3('0xc')][_0xadb3('0x8d')](_0xadb3('0xfc'));}if(!this[_0xadb3('0x7b')](_0x1c3581['text'])){return this['channel']['noop'](_0xadb3('0x94'));}this['channel'][_0xadb3('0xfd')]=!![];this[_0xadb3('0x31')](_0x1c3581);this[_0xadb3('0x3c')](_0x1c3581['text'],'in');this[_0xadb3('0xc')][_0xadb3('0x8d')](util[_0xadb3('0x51')](_0xadb3('0xfe'),_0x1c3581[_0xadb3('0x57')]));var _0x5b0587=this[_0xadb3('0x68')][_0xadb3('0x7d')](this,_0x1c3581);if(_0x5b0587){for(var _0x354bc1 in _0x5b0587){if(_0x5b0587[_0xadb3('0xc0')](_0x354bc1)&&_[_0xadb3('0x72')](_0x5b0587[_0x354bc1])){this[_0xadb3('0xc')][_0xadb3('0xae')](util['format'](_0xadb3('0xff'),_0x354bc1[_0xadb3('0xc2')]()),_0x5b0587[_0x354bc1]);}}if(_[_0xadb3('0x3e')](_0x5b0587[_0xadb3('0x100')])){return this['channel'][_0xadb3('0x8d')]('Amazon\x20Lex\x20ready\x20for\x20fulfillment');}else{this[_0xadb3('0x3c')](_0x5b0587[_0xadb3('0x100')],_0xadb3('0xce'));return this[_0xadb3('0xc')]['noop'](util['format'](_0xadb3('0x101'),_0x5b0587[_0xadb3('0x100')]));}}return this[_0xadb3('0xc')]['error'](_0x1c3581,'Amazon\x20Lex\x20is\x20unreachable');};AGIVertices[_0xadb3('0xf')][_0xadb3('0x102')]=function(_0x2f6519){logger[_0xadb3('0x2c')](util[_0xadb3('0x51')](_0xadb3('0x103'),_0x2f6519[_0xadb3('0x33')],_0x2f6519[_0xadb3('0x83')]));if(!this['isConfigured'](_0x2f6519[_0xadb3('0x60')])){return this[_0xadb3('0xc')][_0xadb3('0x8d')](_0xadb3('0xbe'));}var _0x316784=_0xadb3('0x104');var _0x2df81c=util[_0xadb3('0x51')](_0xadb3('0x105'),FILES_PATH,rs[_0xadb3('0xec')](0x4));var _0x500f0c=util[_0xadb3('0x51')](_0xadb3('0x106'),_0x2df81c,_0x316784);var _0x502b52=!![];if(_0x2f6519[_0xadb3('0x107')]==='NOBEEP'){_0x502b52=![];}var _0x2365e8=this['channel'][_0xadb3('0x108')](_0x2df81c,_0x316784,_0x2f6519[_0xadb3('0x109')],_0x2f6519['timeout'],undefined,_0x502b52);if(_0x2365e8['result']!==-0x1){this[_0xadb3('0xc')][_0xadb3('0x8d')](util[_0xadb3('0x51')](_0xadb3('0x10a'),_0x500f0c));var _0xd330ee=this[_0xadb3('0x6b')][_0xadb3('0x7d')](this,_0x2f6519,_0x500f0c);if(_0xd330ee){for(var _0x2b8e08 in _0xd330ee){if(_0xd330ee[_0xadb3('0xc0')](_0x2b8e08)){this[_0xadb3('0xc')][_0xadb3('0xae')](util[_0xadb3('0x51')](_0xadb3('0x10b'),_0x2b8e08[_0xadb3('0xc2')]()),_0xd330ee[_0x2b8e08]);}}return this['channel']['noop'](util[_0xadb3('0x51')](_0xadb3('0x10c'),JSON[_0xadb3('0xe8')](_0xd330ee)));}}return _0x2365e8;};AGIVertices[_0xadb3('0xf')][_0xadb3('0x10d')]=function(_0x1e1f11){logger[_0xadb3('0x2c')](util[_0xadb3('0x51')](_0xadb3('0x10e'),_0x1e1f11['label']));if(!this[_0xadb3('0x7b')](_0x1e1f11[_0xadb3('0x10f')])){return this['channel'][_0xadb3('0x8d')](_0xadb3('0x110'));}if(!this[_0xadb3('0x7b')](_0x1e1f11[_0xadb3('0x6d')])){return this[_0xadb3('0xc')][_0xadb3('0x8d')](_0xadb3('0x111'));}var _0x3f57bf='wav';var _0x2ad9b3=util['format']('%s/recordings/%s',FILES_PATH,rs[_0xadb3('0xec')](0x4));var _0x1dd7a0=util['format']('%s.%s',_0x2ad9b3,_0x3f57bf);var _0x3239e7=!![];if(_0x1e1f11[_0xadb3('0x107')]===_0xadb3('0x112')){_0x3239e7=![];}var _0x3c92a9=this[_0xadb3('0xc')]['recordFile'](_0x2ad9b3,_0x3f57bf,_0x1e1f11[_0xadb3('0x109')],_0x1e1f11['timeout'],undefined,_0x3239e7);if(_0x3c92a9[_0xadb3('0x79')]!==-0x1){this[_0xadb3('0xc')][_0xadb3('0x8d')](util[_0xadb3('0x51')](_0xadb3('0x113'),_0x1dd7a0));var _0x4dc7d6=this[_0xadb3('0x6c')][_0xadb3('0x7d')](this,_0x1e1f11,_0x1dd7a0);if(_0x4dc7d6){for(var _0x290896 in _0x4dc7d6){if(_0x4dc7d6['hasOwnProperty'](_0x290896)){this[_0xadb3('0xc')]['setVariable'](util['format'](_0xadb3('0x114'),_0x290896['toUpperCase']()),_0x4dc7d6[_0x290896]);}}return this[_0xadb3('0xc')][_0xadb3('0x8d')](util[_0xadb3('0x51')](_0xadb3('0x115'),JSON['stringify'](_0x4dc7d6)));}}return _0x3c92a9;};AGIVertices['prototype'][_0xadb3('0x116')]=function(_0x5e97a8){logger['info'](util[_0xadb3('0x51')](_0xadb3('0x117'),_0x5e97a8[_0xadb3('0x33')]));return this[_0xadb3('0xc')]['continueAt'](_0x5e97a8[_0xadb3('0x37')],_0x5e97a8[_0xadb3('0x118')],_0x5e97a8[_0xadb3('0x38')]);};AGIVertices[_0xadb3('0xf')][_0xadb3('0x119')]=function(_0x25486c){logger[_0xadb3('0x2c')](util['format'](_0xadb3('0x11a'),_0x25486c['label']));if(!this[_0xadb3('0x7b')](_0x25486c['condition'])){return this[_0xadb3('0xc')][_0xadb3('0x2f')](_0x25486c,'no\x20condition\x20configured');}try{var _0x240730=eval(_0x25486c['condition'])?'true':_0xadb3('0x11b');this[_0xadb3('0xc')][_0xadb3('0x8d')](util[_0xadb3('0x51')](_0xadb3('0x11c'),_0x25486c[_0xadb3('0x11d')],_0x240730));return{'code':0xc8,'result':_0x240730};}catch(_0x4d4cd2){return{'code':0xc8,'result':_0xadb3('0x11b')};}};AGIVertices[_0xadb3('0xf')][_0xadb3('0x11e')]=function(_0x26ba76){logger[_0xadb3('0x2c')](util[_0xadb3('0x51')](_0xadb3('0x11f'),_0x26ba76['label']));if(!this['isConfigured'](_0x26ba76['interval_id'])){return this[_0xadb3('0xc')][_0xadb3('0x2f')](_0x26ba76,_0xadb3('0x120'));}var _0x4d1956=this['getIntervals']['sync'](this,_0x26ba76['interval_id']);if(!_0x4d1956){return this['channel'][_0xadb3('0x2f')](_0x26ba76,'no\x20intervals\x20found');}for(var _0x463570=0x0;_0x463570<_0x4d1956[_0xadb3('0x75')];_0x463570+=0x1){var _0x3c66f1=this[_0xadb3('0xc')][_0xadb3('0x10')](util[_0xadb3('0x51')](_0xadb3('0x121'),_0x4d1956[_0x463570]));if(_0x3c66f1['result']===-0x1){return _0x3c66f1;}logger[_0xadb3('0x2c')](util[_0xadb3('0x51')](_0xadb3('0x122'),_0x4d1956[_0x463570],_0x3c66f1[_0xadb3('0x77')]));if(_0x3c66f1[_0xadb3('0x77')]===_0xadb3('0x123')){logger[_0xadb3('0x2c')](util['format'](_0xadb3('0x122'),_0x4d1956[_0x463570],_0xadb3('0x123')));this[_0xadb3('0xc')][_0xadb3('0x8d')](util['format'](_0xadb3('0x122'),_0x4d1956[_0x463570],_0xadb3('0x123')));return{'code':0xc8,'result':_0xadb3('0x123')};}else{logger[_0xadb3('0x2c')](util['format'](_0xadb3('0x122'),_0x4d1956[_0x463570],_0xadb3('0x11b')));this['channel'][_0xadb3('0x8d')](util['format'](_0xadb3('0x122'),_0x4d1956[_0x463570],_0xadb3('0x11b')));}}return{'code':0xc8,'result':_0xadb3('0x11b')};};AGIVertices[_0xadb3('0xf')][_0xadb3('0x124')]=function(_0x5b3a73){logger['info'](util[_0xadb3('0x51')](_0xadb3('0x125'),_0x5b3a73[_0xadb3('0x33')]));return this[_0xadb3('0xc')][_0xadb3('0x124')]();};AGIVertices[_0xadb3('0xf')]['ispeechasr']=function(_0x344631){logger[_0xadb3('0x2c')](util['format']('Enter\x20in\x20ISPEECHASR\x20(%s)\x20block',_0x344631[_0xadb3('0x33')]));if(!this[_0xadb3('0x7b')](_0x344631['key'])){return this['channel']['noop'](_0xadb3('0xbe'));}var _0x31e8bd=_0xadb3('0x104');var _0x42ce5a=util['format'](_0xadb3('0x105'),FILES_PATH,rs[_0xadb3('0xec')](0x4));var _0x5bf022=util[_0xadb3('0x51')]('%s.%s',_0x42ce5a,_0x31e8bd);var _0x4f32ce=!![];if(_0x344631[_0xadb3('0x107')]===_0xadb3('0x112')){_0x4f32ce=![];}var _0x57308b=this['channel'][_0xadb3('0x108')](_0x42ce5a,_0x31e8bd,_0x344631[_0xadb3('0x109')],_0x344631[_0xadb3('0x83')],undefined,_0x4f32ce);if(_0x57308b[_0xadb3('0x79')]!==-0x1){this['channel'][_0xadb3('0x8d')](util[_0xadb3('0x51')]('ispeech\x20%s\x20file\x20created',_0x5bf022));var _0x489b62=this[_0xadb3('0x5f')][_0xadb3('0x7d')](this,_0x344631,_0x5bf022);if(_0x489b62){for(var _0x2540c5 in _0x489b62){if(_0x489b62[_0xadb3('0xc0')](_0x2540c5)){this['channel'][_0xadb3('0xae')](util[_0xadb3('0x51')](_0xadb3('0x126'),_0x2540c5[_0xadb3('0xc2')]()),_0x489b62[_0x2540c5]);}}return this[_0xadb3('0xc')][_0xadb3('0x8d')](util[_0xadb3('0x51')](_0xadb3('0x127'),JSON[_0xadb3('0xe8')](_0x489b62)));}}return _0x57308b;};AGIVertices[_0xadb3('0xf')][_0xadb3('0x128')]=function(_0x1d3837){logger['info'](util[_0xadb3('0x51')](_0xadb3('0x129'),_0x1d3837[_0xadb3('0x33')]));if(!this[_0xadb3('0x7b')](_0x1d3837[_0xadb3('0x60')])){return this[_0xadb3('0xc')][_0xadb3('0x8d')](_0xadb3('0xbe'));}if(!this[_0xadb3('0x7b')](_0x1d3837[_0xadb3('0x57')])){return this[_0xadb3('0xc')]['noop'](_0xadb3('0x94'));}this[_0xadb3('0xc')][_0xadb3('0x8d')](util[_0xadb3('0x51')](_0xadb3('0x12a'),_0x1d3837[_0xadb3('0x57')]));var _0x4e04d7=this['ispeechTTS'][_0xadb3('0x7d')](this,_0x1d3837);if(_0x4e04d7){this[_0xadb3('0xc')][_0xadb3('0x8d')](util[_0xadb3('0x51')](_0xadb3('0x12b'),_0x4e04d7));var _0x280027=this[_0xadb3('0xc')][_0xadb3('0xd1')](_0x4e04d7,_0x1d3837['intKey']);try{fs[_0xadb3('0xd2')](_0x4e04d7+_0xadb3('0xf7'));}catch(_0x2bbe32){logger['error'](_0x2bbe32);}return _0x280027;}return this[_0xadb3('0xc')]['error'](_0x1d3837,'ispeech\x20TTS\x20is\x20unreachable');};AGIVertices[_0xadb3('0xf')][_0xadb3('0x12c')]=function(_0xb1a4fe){logger[_0xadb3('0x2c')](util['format'](_0xadb3('0x12d'),_0xb1a4fe[_0xadb3('0x33')]));if(!this['isConfigured'](_0xb1a4fe[_0xadb3('0x12e')])){return this[_0xadb3('0xc')][_0xadb3('0x2f')](_0xb1a4fe,'no\x20find\x20by\x20configured');}logger[_0xadb3('0x2c')](util[_0xadb3('0x51')](_0xadb3('0x12f'),this[_0xadb3('0xc')][_0xadb3('0x4d')],_0xb1a4fe['findBy']));var _0x4c9c0b=this[_0xadb3('0x4f')][_0xadb3('0x7d')](this,_0xb1a4fe[_0xadb3('0x12e')]);if(_0x4c9c0b){logger['info'](util['format'](_0xadb3('0x130'),this[_0xadb3('0xc')][_0xadb3('0x4d')],_0xb1a4fe[_0xadb3('0x12e')]));this[_0xadb3('0xc')][_0xadb3('0x8d')](util[_0xadb3('0x51')]('AGENT\x20%s\x20FOUND\x20BY',this[_0xadb3('0xc')][_0xadb3('0x4d')],_0xb1a4fe[_0xadb3('0x12e')]));return{'code':0xc8,'result':_0xadb3('0x131')};}else{logger[_0xadb3('0x2c')](util['format'](_0xadb3('0x132'),this['channel']['callerid'],_0xb1a4fe[_0xadb3('0x12e')]));this[_0xadb3('0xc')][_0xadb3('0x8d')](util['format'](_0xadb3('0x132'),this['channel'][_0xadb3('0x4d')],_0xb1a4fe[_0xadb3('0x12e')]));return{'code':0xc8,'result':_0xadb3('0x133')};}};AGIVertices[_0xadb3('0xf')][_0xadb3('0x134')]=function(_0x53ae9f){logger[_0xadb3('0x2c')](util[_0xadb3('0x51')](_0xadb3('0x135'),_0x53ae9f[_0xadb3('0x33')]));if(!this['isConfigured'](_0x53ae9f[_0xadb3('0x12e')])){return this[_0xadb3('0xc')]['error'](_0x53ae9f,_0xadb3('0x136'));}logger['info'](util[_0xadb3('0x51')](_0xadb3('0x12f'),this[_0xadb3('0xc')][_0xadb3('0x4d')],_0x53ae9f[_0xadb3('0x12e')]));var _0xeb6352=this['agentLogout'][_0xadb3('0x7d')](this,_0x53ae9f[_0xadb3('0x12e')]);if(_0xeb6352){logger[_0xadb3('0x2c')](util['format'](_0xadb3('0x130'),this[_0xadb3('0xc')][_0xadb3('0x4d')],_0x53ae9f[_0xadb3('0x12e')]));this['channel'][_0xadb3('0x8d')](util['format'](_0xadb3('0x130'),this[_0xadb3('0xc')]['callerid'],_0x53ae9f[_0xadb3('0x12e')]));return{'code':0xc8,'result':_0xadb3('0x131')};}else{logger['info'](util[_0xadb3('0x51')]('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this['channel'][_0xadb3('0x4d')],_0x53ae9f[_0xadb3('0x12e')]));this[_0xadb3('0xc')]['noop'](util['format'](_0xadb3('0x132'),this[_0xadb3('0xc')]['callerid'],_0x53ae9f['findBy']));return{'code':0xc8,'result':_0xadb3('0x133')};}};AGIVertices[_0xadb3('0xf')][_0xadb3('0x137')]=function(_0x103c4c){logger[_0xadb3('0x2c')](util[_0xadb3('0x51')](_0xadb3('0x138'),_0x103c4c[_0xadb3('0x33')]));if(!this['isConfigured'](_0x103c4c[_0xadb3('0x139')])){return this[_0xadb3('0xc')][_0xadb3('0x2f')](_0x103c4c,_0xadb3('0x13a'));}this['channel'][_0xadb3('0x8d')](util[_0xadb3('0x51')]('math\x20%s',_0x103c4c[_0xadb3('0x139')]));var _0x46be46=eval(_0x103c4c[_0xadb3('0x139')]);if(!this[_0xadb3('0x7b')](_0x103c4c['variable_id'])){return this[_0xadb3('0xc')]['noop']('no\x20variable\x20selected\x20for\x20the\x20result');}var _0x4c940f=this[_0xadb3('0x10')][_0xadb3('0x7d')](this,_0x103c4c[_0xadb3('0xe3')]);if(!_0x4c940f){return this[_0xadb3('0xc')][_0xadb3('0x2f')](_0x103c4c,'no\x20variable\x20found');}if(_[_0xadb3('0x13b')](_0x46be46)){var _0x1b4330=this;_0x46be46[_0xadb3('0xac')](function(_0x5599e2,_0x57589b){_0x1b4330[_0xadb3('0xc')][_0xadb3('0xae')](util['format'](_0xadb3('0x13c'),_0x4c940f,_0x57589b),_0x5599e2);});return this[_0xadb3('0xc')]['noop'](util[_0xadb3('0x51')](_0xadb3('0x13d'),_0x4c940f));}else{return this[_0xadb3('0xc')][_0xadb3('0xae')](_0x4c940f,_0x46be46);}};AGIVertices[_0xadb3('0xf')][_0xadb3('0xa')]=function(_0x8bd8c0){logger[_0xadb3('0x2c')](util[_0xadb3('0x51')](_0xadb3('0x13e'),_0x8bd8c0[_0xadb3('0x33')]));if(_0x8bd8c0[_0xadb3('0x7e')]===0x0){return this[_0xadb3('0x7c')](_0x8bd8c0);}_0x8bd8c0[_0xadb3('0x7e')]-=0x1;if(!this[_0xadb3('0x7b')](_0x8bd8c0['file_id'])){return this[_0xadb3('0xc')][_0xadb3('0x2f')](_0x8bd8c0,'no\x20file\x20audio\x20selected');}var _0x1488bd=this['getSound'][_0xadb3('0x7d')](this,_0x8bd8c0[_0xadb3('0xe1')]);if(!_0x1488bd){return this[_0xadb3('0xc')][_0xadb3('0x2f')](_0x8bd8c0,'no\x20file\x20audio\x20found');}var _0x4d261d=this[_0xadb3('0xc')][_0xadb3('0xe4')](_0x1488bd,_0x8bd8c0[_0xadb3('0xe5')],_0x8bd8c0['digit']);var _0x199d9e=_0x4d261d[_0xadb3('0x79')];if(_0x4d261d[_0xadb3('0x79')]===-0x1){this['createSquareDetailsReport'][_0xadb3('0x7d')](this,_0x8bd8c0,'-1');return _0x4d261d;}else if(_0x4d261d[_0xadb3('0x77')]==='timeout'){_0x4d261d[_0xadb3('0x79')]=_0x4d261d['result'][_0xadb3('0x75')]>0x0?_0x4d261d[_0xadb3('0x79')]:'t';}else if(_[_0xadb3('0x40')](_0x4d261d[_0xadb3('0x79')])){_0x4d261d['result']='#';_0x199d9e='#';}if(!this[_0xadb3('0x7b')](_0x8bd8c0[_0xadb3('0xe3')])){this[_0xadb3('0xc')][_0xadb3('0x8d')](_0xadb3('0xab'));}else{var _0x511a45=this[_0xadb3('0x10')][_0xadb3('0x7d')](this,_0x8bd8c0[_0xadb3('0xe3')]);if(!_0x511a45){return this['channel'][_0xadb3('0x2f')](_0x8bd8c0,_0xadb3('0xea'));}this[_0xadb3('0xc')][_0xadb3('0xae')](_0x511a45,_0x199d9e);}this[_0xadb3('0x31')]['sync'](this,_0x8bd8c0,_0x199d9e);return _0x4d261d;};AGIVertices[_0xadb3('0xf')][_0xadb3('0x8d')]=function(_0x563b30){logger[_0xadb3('0x2c')](util[_0xadb3('0x51')](_0xadb3('0x13f'),_0x563b30['label']));return this[_0xadb3('0xc')]['noop'](_0x563b30[_0xadb3('0x140')]||_0x563b30[_0xadb3('0x33')]);};AGIVertices[_0xadb3('0xf')][_0xadb3('0x141')]=function(_0x2587af){logger[_0xadb3('0x2c')](util[_0xadb3('0x51')](_0xadb3('0x142'),_0x2587af[_0xadb3('0x33')]));if(!this['isConfigured'](_0x2587af['findBy'])){return this[_0xadb3('0xc')]['error'](_0x2587af,_0xadb3('0x136'));}logger[_0xadb3('0x2c')](util[_0xadb3('0x51')](_0xadb3('0x12f'),this['channel'][_0xadb3('0x4d')],_0x2587af['findBy']));var _0x51557a=this['getPause'][_0xadb3('0x7d')](this,_0x2587af[_0xadb3('0x143')]);var _0x4eb24a=this[_0xadb3('0x144')]['sync'](this,_0x2587af[_0xadb3('0x12e')],_0x51557a);if(_0x4eb24a){logger['info'](util['format'](_0xadb3('0x130'),this[_0xadb3('0xc')][_0xadb3('0x4d')],_0x2587af[_0xadb3('0x12e')]));this[_0xadb3('0xc')][_0xadb3('0x8d')](util['format']('AGENT\x20%s\x20FOUND\x20BY',this[_0xadb3('0xc')][_0xadb3('0x4d')],_0x2587af[_0xadb3('0x12e')]));return{'code':0xc8,'result':_0xadb3('0x131')};}else{logger[_0xadb3('0x2c')](util[_0xadb3('0x51')](_0xadb3('0x132'),this[_0xadb3('0xc')][_0xadb3('0x4d')],_0x2587af[_0xadb3('0x12e')]));this[_0xadb3('0xc')][_0xadb3('0x8d')](util[_0xadb3('0x51')]('AGENT\x20%s\x20FOUND\x20BY',this['channel'][_0xadb3('0x4d')],_0x2587af[_0xadb3('0x12e')]));return{'code':0xc8,'result':'failure'};}};AGIVertices[_0xadb3('0xf')][_0xadb3('0x145')]=function(_0x4bcec2){logger[_0xadb3('0x2c')](util[_0xadb3('0x51')](_0xadb3('0x146'),_0x4bcec2[_0xadb3('0x33')]));if(!this[_0xadb3('0x7b')](_0x4bcec2[_0xadb3('0xe1')])){return this['channel'][_0xadb3('0x2f')](_0x4bcec2,'no\x20file\x20audio\x20selected');}var _0x5ba0c6=this[_0xadb3('0x1c')][_0xadb3('0x7d')](this,_0x4bcec2[_0xadb3('0xe1')]);if(!_0x5ba0c6){return this['channel']['error'](_0x4bcec2,'no\x20file\x20audio\x20found');}var _0x460a7b=this[_0xadb3('0xc')][_0xadb3('0x54')](_0xadb3('0x147'),[_0x5ba0c6,_0x4bcec2[_0xadb3('0xbb')]]);if(_0x460a7b[_0xadb3('0x79')]===-0x1){return _0x460a7b;}return this[_0xadb3('0xc')][_0xadb3('0x8d')](util[_0xadb3('0x51')](_0xadb3('0x8e'),'PLAYBACK',_0x5ba0c6));};AGIVertices[_0xadb3('0xf')]['queue']=function(_0x3d521d){logger[_0xadb3('0x2c')](util[_0xadb3('0x51')]('Enter\x20in\x20QUEUE\x20(%s)\x20block',_0x3d521d[_0xadb3('0x33')]));if(!this[_0xadb3('0x7b')](_0x3d521d[_0xadb3('0x148')])){return this[_0xadb3('0xc')][_0xadb3('0x2f')](_0x3d521d,'no\x20queue\x20selected');}var _0x563f28='';var _0x5094e9=parseInt(_0x3d521d[_0xadb3('0x148')],0xa);if(isNaN(_0x5094e9)){_0x563f28=_0x3d521d[_0xadb3('0x148')];}else{_0x563f28=this[_0xadb3('0x149')][_0xadb3('0x7d')](this,_0x3d521d[_0xadb3('0x148')]);if(!_0x563f28){return this[_0xadb3('0xc')]['error'](_0x3d521d,'no\x20queue\x20found');}}var _0xb49b8b='';if(this[_0xadb3('0x7b')](_0x3d521d[_0xadb3('0xe1')])){var _0x20a501=this[_0xadb3('0x1c')][_0xadb3('0x7d')](this,_0x3d521d[_0xadb3('0xe1')]);if(_0x20a501){_0xb49b8b=_0x20a501;}}this['createSquareDetailsReport'][_0xadb3('0x7d')](this,_0x3d521d,_0x563f28);if(_0x3d521d['opts'][_0xadb3('0x14a')]('x')<0x0){_0x3d521d['opts']+='x';}if(_0x3d521d['opts'][_0xadb3('0x14a')]('X')<0x0){_0x3d521d['opts']+='X';}this[_0xadb3('0xc')]['setVariable'](_0xadb3('0x14b'),_0x563f28?_0x563f28[_0xadb3('0x14c')]():'');var _0x4ec6a5=this[_0xadb3('0xc')][_0xadb3('0x54')](_0xadb3('0x14d'),[_0x563f28,_0x3d521d['opts'],_0x3d521d[_0xadb3('0xdd')],_0xb49b8b,_0x3d521d['timeout'],_0x3d521d['agi'],_0x3d521d['macro'],_0x3d521d[_0xadb3('0x14e')],'',_0x3d521d[_0xadb3('0x14f')]]);if(_0x4ec6a5[_0xadb3('0x79')]===-0x1){return _0x4ec6a5;}return this[_0xadb3('0xc')][_0xadb3('0x8d')](util[_0xadb3('0x51')]('Executed\x20command\x20%s\x20%s',_0xadb3('0x14d'),_0x563f28));};AGIVertices['prototype'][_0xadb3('0x150')]=function(_0x430b20){logger[_0xadb3('0x2c')](util[_0xadb3('0x51')]('Enter\x20in\x20RECORD\x20(%s)\x20block',_0x430b20['label']));var _0x21a591=_0x430b20[_0xadb3('0x151')]||_0xadb3('0x104');var _0x2dcbd8=util[_0xadb3('0x51')](_0xadb3('0x152'),this['channel']['uniqueid'],rs[_0xadb3('0xec')](0x5));var _0x4d33e1=util[_0xadb3('0x51')](_0xadb3('0x153'),FILES_PATH,_0x2dcbd8,_0x21a591);var _0xc7772f=util[_0xadb3('0x51')]('%s/recordings/%s',FILES_PATH,_0x2dcbd8);this[_0xadb3('0x35')][_0xadb3('0x7d')](this,_0x430b20,_0x2dcbd8,_0x4d33e1);this[_0xadb3('0xc')]['setVariable']('RECORDING_SAVENAME',_0x2dcbd8);logger['info'](_0xadb3('0x154'),_0xc7772f,_0x21a591,_0x430b20[_0xadb3('0x155')],_0x430b20[_0xadb3('0x83')]);return this[_0xadb3('0xc')][_0xadb3('0x108')](_0xc7772f,_0x21a591,_0x430b20[_0xadb3('0x155')],_0x430b20[_0xadb3('0x83')],undefined,!![]);};AGIVertices[_0xadb3('0xf')][_0xadb3('0x156')]=function(_0x36b13e){logger[_0xadb3('0x2c')](util['format'](_0xadb3('0x157'),_0x36b13e[_0xadb3('0x33')]));return this[_0xadb3('0xc')][_0xadb3('0x158')](_0x36b13e[_0xadb3('0x159')][_0xadb3('0xa9')](/\s+/g,''),_0x36b13e[_0xadb3('0x155')]);};AGIVertices['prototype'][_0xadb3('0x15a')]=function(_0xc87901){logger[_0xadb3('0x2c')](util[_0xadb3('0x51')](_0xadb3('0x15b'),_0xc87901['label']));return this[_0xadb3('0xc')][_0xadb3('0x15c')](_0xc87901['number'][_0xadb3('0xa9')](/\s+/g,''),_0xc87901[_0xadb3('0x155')]);};AGIVertices[_0xadb3('0xf')][_0xadb3('0x15d')]=function(_0x18d768){logger['info'](util[_0xadb3('0x51')](_0xadb3('0x15e'),_0x18d768[_0xadb3('0x33')]));return this[_0xadb3('0xc')]['sayPhonetic'](_0x18d768[_0xadb3('0x57')],_0x18d768[_0xadb3('0x155')]);};AGIVertices[_0xadb3('0xf')][_0xadb3('0x15f')]=function(_0x134531){logger[_0xadb3('0x2c')](util[_0xadb3('0x51')](_0xadb3('0x160'),_0x134531[_0xadb3('0x33')]));if(!this['isConfigured'](_0x134531['account_id'])){return this[_0xadb3('0xc')]['noop'](_0xadb3('0x161'));}var _0x576058=this[_0xadb3('0x1d')][_0xadb3('0x7d')](this,_0x134531['account_id']);if(!_0x576058||!_0x576058[_0xadb3('0x162')]){return this['channel'][_0xadb3('0x2f')](_0x134531,_0xadb3('0x163'));}var _0x593278={'from':util[_0xadb3('0x51')](_0xadb3('0x164'),_0x576058[_0xadb3('0x13')],_0x576058['email']||_0x576058[_0xadb3('0x162')][_0xadb3('0x165')]),'to':_0x134531['to']||'','cc':_0x134531['cc']||'','bcc':_0x134531[_0xadb3('0x166')]||'','subject':_0x134531[_0xadb3('0x167')],'html':_0x134531[_0xadb3('0x57')],'text':_0x134531[_0xadb3('0x57')]};var _0x181e3f={'tls':{'rejectUnauthorized':![]}};if(_0x576058[_0xadb3('0x162')][_0xadb3('0x168')]){_0x181e3f[_0xadb3('0x168')]=_0x576058[_0xadb3('0x162')][_0xadb3('0x168')];}else{_0x181e3f['host']=_0x576058[_0xadb3('0x162')][_0xadb3('0x169')];_0x181e3f[_0xadb3('0x16a')]=_0x576058[_0xadb3('0x162')][_0xadb3('0x16a')];_0x181e3f['secure']=_0x576058[_0xadb3('0x162')]['secure'];}if(_0x576058['Smtp'][_0xadb3('0x16b')]){_0x181e3f[_0xadb3('0x16c')]={'user':_0x576058[_0xadb3('0x162')][_0xadb3('0x165')],'pass':_0x576058[_0xadb3('0x162')][_0xadb3('0x16d')]};}if(this['isConfigured'](_0x134531[_0xadb3('0x16e')])){}logger[_0xadb3('0xb3')](_0xadb3('0x16f'),JSON[_0xadb3('0xe8')](_0x593278));this[_0xadb3('0x31')][_0xadb3('0x7d')](this,_0x134531,_0x134531[_0xadb3('0x170')]);this['channel'][_0xadb3('0x8d')](util[_0xadb3('0x51')](_0xadb3('0x171'),_0x576058[_0xadb3('0x13')]));this['sendMailMessage']['sync'](this,_0x181e3f,_0x593278);return this['channel'][_0xadb3('0x8d')](_0xadb3('0x172'));};AGIVertices[_0xadb3('0xf')][_0xadb3('0x173')]=function(_0x23c524){logger[_0xadb3('0x2c')](util[_0xadb3('0x51')](_0xadb3('0x174'),_0x23c524[_0xadb3('0x33')]));return this[_0xadb3('0xc')][_0xadb3('0x8d')](_0xadb3('0x175'));};AGIVertices[_0xadb3('0xf')][_0xadb3('0x176')]=function(_0x1559b9){logger['info'](util[_0xadb3('0x51')](_0xadb3('0x177'),_0x1559b9[_0xadb3('0x33')]));if(!this[_0xadb3('0x7b')](_0x1559b9[_0xadb3('0x178')])){return this[_0xadb3('0xc')][_0xadb3('0x8d')](_0xadb3('0x179'));}var _0x40a033=this[_0xadb3('0x17a')][_0xadb3('0x7d')](this,_0x1559b9['sms_account_id']);if(!_0x40a033){return this[_0xadb3('0xc')]['error'](_0x1559b9,_0xadb3('0x17b'));}var _0x5f2bd7={'body':_0x1559b9['sms_text'],'phone':_0x1559b9['to']||'','SmsAccountId':_0x40a033['id']};logger[_0xadb3('0xb3')]('sendSMS\x20message',JSON['stringify'](_0x5f2bd7));this['createSquareDetailsReport'][_0xadb3('0x7d')](this,_0x1559b9,_0x1559b9['sms_account_id']);this[_0xadb3('0xc')][_0xadb3('0x8d')](util['format'](_0xadb3('0x17c'),_0x40a033[_0xadb3('0x13')]));this[_0xadb3('0x30')][_0xadb3('0x7d')](this,_0x5f2bd7);return this[_0xadb3('0xc')]['noop'](_0xadb3('0x17d'));};AGIVertices['prototype'][_0xadb3('0x17e')]=function(_0x474dd6){logger['info'](util[_0xadb3('0x51')](_0xadb3('0x17f'),_0x474dd6[_0xadb3('0x33')]));if(!this['isConfigured'](_0x474dd6['variable_id'])){return this['channel'][_0xadb3('0x2f')](_0x474dd6,'no\x20variable\x20selected');}var _0x4dd6bc=this[_0xadb3('0x10')]['sync'](this,_0x474dd6[_0xadb3('0xe3')]);if(!_0x4dd6bc){return this['channel']['error'](_0x474dd6,_0xadb3('0xea'));}return this[_0xadb3('0xc')][_0xadb3('0xae')](_0x4dd6bc,_0x474dd6[_0xadb3('0x180')]);};AGIVertices[_0xadb3('0xf')][_0xadb3('0x181')]=function(_0x82e550){logger['info'](util[_0xadb3('0x51')](_0xadb3('0x182'),_0x82e550['label']));this[_0xadb3('0xc')]['noop'](_0xadb3('0x183'));if(_0x82e550[_0xadb3('0x85')]===_0xadb3('0x184')){this[_0xadb3('0xc')][_0xadb3('0x8d')](_0xadb3('0x185'));return this[_0xadb3('0xc')][_0xadb3('0x85')]();}return this[_0xadb3('0xc')]['noop'](_0xadb3('0x186'));};AGIVertices[_0xadb3('0xf')][_0xadb3('0x187')]=function(_0x28b57d){logger['info'](util[_0xadb3('0x51')](_0xadb3('0x188'),_0x28b57d[_0xadb3('0x33')]));if(!this[_0xadb3('0x7b')](_0x28b57d['project_id'])){return this[_0xadb3('0xc')][_0xadb3('0x2f')](_0x28b57d,'no\x20subproject\x20selected');}var _0x221a61=this[_0xadb3('0x189')]['sync'](this,_0x28b57d['project_id']);if(!this[_0xadb3('0x7b')](_0x221a61)){return this[_0xadb3('0xc')]['error'](_0x28b57d,util[_0xadb3('0x51')](_0xadb3('0x18a'),_0x28b57d['project_id']));}if(_0x221a61===this['channel'][_0xadb3('0x34')]){return this[_0xadb3('0xc')][_0xadb3('0x2f')](_0x28b57d,_0xadb3('0x18b'));}this[_0xadb3('0x31')][_0xadb3('0x7d')](this,_0x28b57d,_0x221a61);var _0x6d97d1=this[_0xadb3('0xc')][_0xadb3('0x54')](_0xadb3('0x18c'),util['format'](_0xadb3('0x18d'),config[_0xadb3('0x6')][_0xadb3('0x169')]||'127.0.0.1',_0x221a61,this['channel']['arg_1']));if(_0x6d97d1[_0xadb3('0x79')]===-0x1){return _0x6d97d1;}return this[_0xadb3('0xc')][_0xadb3('0x8d')](util[_0xadb3('0x51')](_0xadb3('0x8e'),_0xadb3('0x18c'),_0x221a61));};AGIVertices[_0xadb3('0xf')][_0xadb3('0x18e')]=function(_0x5dba4e){logger['info'](util[_0xadb3('0x51')](_0xadb3('0x18f'),_0x5dba4e[_0xadb3('0x33')]));var _0x3f39a5=this[_0xadb3('0x53')][_0xadb3('0x7d')](this,_0x5dba4e[_0xadb3('0x80')]);this[_0xadb3('0x31')]['sync'](this,_0x5dba4e,_0x5dba4e[_0xadb3('0x80')]);if(this[_0xadb3('0x7b')](_0x5dba4e[_0xadb3('0xe3')])){var _0x1d5cc6=this[_0xadb3('0x10')][_0xadb3('0x7d')](this,_0x5dba4e[_0xadb3('0xe3')]);if(_0x1d5cc6){this[_0xadb3('0xc')][_0xadb3('0xae')](_0x1d5cc6,_0x3f39a5);return this[_0xadb3('0xc')][_0xadb3('0x8d')](util['format'](_0xadb3('0x190'),_0x5dba4e[_0xadb3('0x80')],_0x1d5cc6));}}return this[_0xadb3('0xc')][_0xadb3('0x8d')](util['format'](_0xadb3('0x191'),_0x5dba4e[_0xadb3('0x80')]));};AGIVertices[_0xadb3('0xf')][_0xadb3('0x192')]=function(_0x425608){logger[_0xadb3('0x2c')](util['format'](_0xadb3('0x193'),_0x425608[_0xadb3('0x33')]));if(!this[_0xadb3('0x7b')](_0x425608['text'])){return this[_0xadb3('0xc')][_0xadb3('0x8d')]('no\x20text\x20configured');}this[_0xadb3('0xc')]['noop'](util[_0xadb3('0x51')]('Trying\x20Google\x20TTS\x20%s',_0x425608[_0xadb3('0x57')]));var _0x514616=this[_0xadb3('0x56')][_0xadb3('0x7d')](this,_0x425608);if(_0x514616){this[_0xadb3('0xc')]['noop'](util[_0xadb3('0x51')](_0xadb3('0x194'),_0x514616));var _0x57dd53=this[_0xadb3('0xc')][_0xadb3('0xd1')](_0x514616);try{fs[_0xadb3('0xd2')](_0x514616+'.wav');}catch(_0x57a50c){logger[_0xadb3('0x2f')](_0x57a50c);}return _0x57dd53;}return this[_0xadb3('0xc')][_0xadb3('0x2f')](_0x425608,_0xadb3('0x195'));};AGIVertices[_0xadb3('0xf')]['unpause']=function(_0x4ad856){logger[_0xadb3('0x2c')](util[_0xadb3('0x51')](_0xadb3('0x196'),_0x4ad856[_0xadb3('0x33')]));if(!this[_0xadb3('0x7b')](_0x4ad856[_0xadb3('0x12e')])){return this['channel'][_0xadb3('0x2f')](_0x4ad856,'no\x20find\x20by\x20configured');}logger['info'](util[_0xadb3('0x51')](_0xadb3('0x12f'),this[_0xadb3('0xc')][_0xadb3('0x4d')],_0x4ad856[_0xadb3('0x12e')]));var _0x33087f=this['agentUnpause']['sync'](this,_0x4ad856[_0xadb3('0x12e')]);if(_0x33087f){logger['info'](util['format'](_0xadb3('0x130'),this['channel'][_0xadb3('0x4d')],_0x4ad856[_0xadb3('0x12e')]));this[_0xadb3('0xc')][_0xadb3('0x8d')](util[_0xadb3('0x51')](_0xadb3('0x130'),this[_0xadb3('0xc')][_0xadb3('0x4d')],_0x4ad856[_0xadb3('0x12e')]));return{'code':0xc8,'result':_0xadb3('0x131')};}else{logger[_0xadb3('0x2c')](util[_0xadb3('0x51')](_0xadb3('0x132'),this[_0xadb3('0xc')][_0xadb3('0x4d')],_0x4ad856['findBy']));this[_0xadb3('0xc')][_0xadb3('0x8d')](util[_0xadb3('0x51')](_0xadb3('0x132'),this[_0xadb3('0xc')][_0xadb3('0x4d')],_0x4ad856[_0xadb3('0x12e')]));return{'code':0xc8,'result':_0xadb3('0x133')};}};AGIVertices[_0xadb3('0xf')][_0xadb3('0x197')]=function(_0x1d1e3c){logger[_0xadb3('0x2c')](util[_0xadb3('0x51')]('Enter\x20in\x20VOICEMAIL\x20(%s)\x20block',_0x1d1e3c[_0xadb3('0x33')]));var _0xc959a=this[_0xadb3('0xc')][_0xadb3('0x54')](_0xadb3('0x198'),[_0x1d1e3c[_0xadb3('0x199')],_0x1d1e3c[_0xadb3('0x8f')]]);if(_0xc959a['result']===-0x1){return _0xc959a;}return this[_0xadb3('0xc')][_0xadb3('0x8d')](util[_0xadb3('0x51')]('Executed\x20command\x20%s\x20%s',_0xadb3('0x198'),_0x1d1e3c[_0xadb3('0x199')]));};AGIVertices[_0xadb3('0xf')][_0xadb3('0x19a')]=function(_0x105969){logger[_0xadb3('0x2c')](util[_0xadb3('0x51')](_0xadb3('0x19b'),_0x105969[_0xadb3('0x33')]));if(!this['isConfigured'](_0x105969['variable_id'])){return this['channel'][_0xadb3('0x2f')](_0x105969,_0xadb3('0x19c'));}var _0x5ae0c8=this[_0xadb3('0x10')][_0xadb3('0x7d')](this,_0x105969['variable_id']);if(!_0x5ae0c8){return this[_0xadb3('0xc')][_0xadb3('0x2f')](_0x105969,'no\x20variable\x20found');}var _0x584460=this[_0xadb3('0xc')][_0xadb3('0x10')](_0x5ae0c8);return{'code':0xc8,'result':_0x584460[_0xadb3('0x77')]?_0x584460[_0xadb3('0x77')]:'-'};};String[_0xadb3('0xf')][_0xadb3('0x76')]=function(_0x5dd721,_0x56cd48){return this[_0xadb3('0x74')](_0x5dd721)[_0xadb3('0x19d')](_0x56cd48);};module[_0xadb3('0x19e')]=AGIVertices;
\ No newline at end of file
+var _0x9cea=['Executed\x20command\x20%s','dialogflow','Enter\x20in\x20DIALOGFLOW\x20(%s)\x20block','bot','Trying\x20Dialogflow:\x20%s','toUpperCase','speech','out','Dialogflow\x20Result\x20%s','Dialogflow\x20is\x20unreachable','ndauth_url','username','no\x20username\x20configured','password','ndassistant_url','Trying\x20SestekNDA:\x20%s','SESTEK_NDA_%s','audiofile','Sestek\x20NDA\x20%s\x20file\x20created','streamFile','unlink','.wav','end','Enter\x20in\x20END\x20(%s)\x20block','ext_dial','Enter\x20in\x20EXTERNAL\x20DIAL\x20(%s)\x20block','no\x20trunk\x20selected','trunk_id','getTrunk','trunk_name','finally','Enter\x20in\x20GETDIGITS\x20(%s)\x20block','file_id','no\x20file\x20audio\x20selected','no\x20file\x20audio\x20found','response','maxdigit','test','stringify','mindigit','hiddendigitsnum','generate','hiddendigitspos','first','substr','goalname','GOAL\x20%s','awspolly','aws\x20Polly\x20%s\x20file\x20created','aws\x20Polly\x20is\x20unreachable','awslex','no\x20valid\x20credentials\x20configured','Trying\x20Amazon\x20Lex:\x20%s','AWS_LEX_%s','message','Amazon\x20Lex\x20ready\x20for\x20fulfillment','Amazon\x20Lex\x20Result\x20%s','Amazon\x20Lex\x20is\x20unreachable','googleasr','no\x20key\x20configured','wav','%s/recordings/%s','beep','NOBEEP','recordFile','intKey','google\x20%s\x20file\x20created','GOOGLE_ASR_%s','GoogleASR\x20Result\x20%s','tildeasr','Enter\x20in\x20TILDEASR\x20(%s)\x20block','no\x20appid\x20configured','no\x20appsecret\x20configured','%s.%s','tilde\x20%s\x20file\x20created','TILDE_ASR_%s','TildeASR\x20Result\x20%s','gotoc','continueAt','extension','Enter\x20in\x20GOTOIF\x20(%s)\x20block','no\x20condition\x20configured','condition','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','ispeech\x20%s\x20file\x20created','IspeechASR\x20Result\x20%s','ispeechtts','Enter\x20in\x20ISPEECHTTS\x20(%s)\x20block','Trying\x20ispeech\x20TTS\x20%s','ispeech\x20TTS\x20is\x20unreachable','login','Enter\x20in\x20LOGIN\x20(%s)\x20block','FIND\x20AGENT\x20%s\x20BY\x20%s','AGENT\x20%s\x20FOUND\x20BY','findBy','AGENT\x20%s\x20NOT\x20FOUND\x20BY','failure','no\x20find\x20by\x20configured','success','Enter\x20in\x20MATH\x20(%s)\x20block','no\x20operation\x20configured','math\x20%s','operation','isArray','%s[%s]','menu','getSound','getData','digit','Enter\x20in\x20NOOP\x20(%s)\x20block','output','pause','Enter\x20in\x20PAUSE\x20(%s)\x20block','pause_id','Enter\x20in\x20PLAYBACK\x20(%s)\x20block','PLAYBACK','Executed\x20command\x20%s\x20%s','queue','Enter\x20in\x20QUEUE\x20(%s)\x20block','queue_id','indexOf','XMCS-QUEUE','toLowerCase','QUEUE','gosub','position','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','sayDigits','digits','saynumber','Enter\x20in\x20SAYNUMBER\x20(%s)\x20block','sayNumber','number','Enter\x20in\x20SAYPHONETIC\x20(%s)\x20block','sayPhonetic','sendMail','no\x20mail\x20account\x20configured','account_id','Smtp','no\x20mail\x20account\x20found','email','subject','service','host','port','secure','user','pass','debug','sendMail\x20message','Trying\x20SendMail\x20with\x20account\x20%s','Mail\x20message\x20added\x20to\x20outgoing\x20process','Enter\x20in\x20SENDFAX\x20(%s)\x20block','SENDFAX\x20block\x20not\x20implemented','sendSMS','Enter\x20in\x20SENDSMS\x20(%s)\x20block','no\x20sms\x20account\x20configured','getSmsAccount','sms_account_id','sms_text','Trying\x20SendSMS\x20with\x20account\x20%s','Enter\x20in\x20SET\x20(%s)\x20block','no\x20variable\x20selected','start','Enter\x20in\x20START\x20(%s)\x20block','START\x20CALLY\x20SQUARE','yes','Answer','subproject','Enter\x20in\x20SUBPROJECT\x20(%s)\x20block','no\x20subproject\x20selected','project_id','no\x20subproject\x20found\x20with\x20id\x20%d','project\x20in\x20subproject\x20must\x20be\x20different\x20from\x20the\x20called\x20project','AGI','agi://%s/square,\x22%s\x22,\x22%s\x22','127.0.0.1','system','Enter\x20in\x20SYSTEM\x20(%s)\x20block','sh\x20command:\x20%s\x20result\x20on\x20variable:\x20%s','tts','Enter\x20in\x20GOOGLETTS\x20(%s)\x20block','Trying\x20Google\x20TTS\x20%s','googleTTS','Google\x20TTS\x20%s\x20file\x20created','unpause','Enter\x20in\x20UNPAUSE\x20(%s)\x20block','voicemail','Enter\x20in\x20VOICEMAIL\x20(%s)\x20block','VOICEMAIL','exports','util','lodash','shelljs','odbc','moment','mustache','../../config/logger','./scripts','getsecretdigits','channel','rpc','mailRpc','getVariableById','catch','getVoiceQueue','getVoiceQueueById','name','getSquareProject','getSquareProjectById','then','getSquareOdbc','getSquareOdbcById','dsn','getUser','getUserById','prototype','getSoundById','save_name','getMailAccount','sendMailMessage','getIntervals','getIntervalById','map','Intervals','interval','getSoundPath','format','%s/sounds/converted/%s','getQueryOdbc','open','error','Error\x20getting\x20ODBC\x20connection\x20%s','info','ODBC\x20connection\x20successfully','Error\x20executing\x20query\x20%s','close','Error\x20closing\x20connection\x20to\x20odbc\x20%s','getSmsAccountById','createSmsMessage','createSquareDetailsReport','uniqueid','label','agicommand','callerid','createSquareRecording','calleridname','context','priority','accountcode','dnid','arg_1','file','createSquareMessage','createCmContact','isEmpty','isNil','callback_','random','lastName','phone','list_id','callback','toString','getPause','getPauseById','agent','agentPause','agentUnpause','agentLogout','agentLogin','%s/%s@from-sip/n','LOCAL','shellCommand','exec','trim','replace','text','googleDialogflow','key','dialogflow_language','sestekNDA','ispeechTTS','ispeech_tts_language','speed','ispeechASR','ispeech_asr_language','model','awsPolly','aws_access_key_id','aws_secret_access_key','aws_polly_region','aws_polly_voice','Amy','aws_text_type','awsLex','aws_lex_region','aws_bot_name','googleASR','google_asr_language','en-US','tildeASR','appid','appsecret','uri','includes','clone','hasOwnProperty','isString','replaceAllVariables','split','length','replaceAll','getVariable','extra','getAndSetVariable','result','The\x20\x22%s\x22\x20variable\x20value\x20is:\x20%s','setVariable','isConfigured','maxRetry','retry','Enter\x20in\x20AGI\x20(%s)\x20block','agi','command','args','answer','Enter\x20in\x20ANSWER\x20(%s)\x20block','timeout','Wait\x20%s\x20seconds\x20before\x20answer','wait','Enter\x20in\x20CALLBACK\x20(%s)\x20block','no\x20list\x20selected','scheduledAt','delay','add','minutes','callback_priority','sync','noop','CALLBACK\x20added\x20phone:\x20%s\x20on\x20list:\x20%s\x20at\x20%s','custom_app','application','options','Enter\x20in\x20LUMENVOXTTS\x20(%s)\x20block','no\x20text\x20configured','MRCPSynth','Executed\x20command\x20MRCPSynth\x20%s','sestektts','Enter\x20in\x20SESTEKTTS\x20(%s)\x20block','lumenvoxasr','Enter\x20in\x20LUMENVOXASR\x20(%s)\x20block','grammar','no\x20grammar\x20configured','RECOG_CONFIDENCE()','LUMENVOX_ASR_CONFIDENCE','RECOG_INPUT()','LUMENVOX_ASR_INSTANCE','Executed\x20command\x20MRCPRecog\x20%s','sestekasr','Enter\x20in\x20SESTEKASR\x20(%s)\x20block','MRCPRecog','SESTEK_ASR_CONFIDENCE','SESTEK_ASR_TRANSCRIPT','RECOG_INSTANCE()','SESTEK_ASR_INSTANCE','database','Enter\x20in\x20DATABASE\x20(%s)\x20block','odbc_id','query','variable_id','no\x20variable\x20selected\x20for\x20the\x20result','no\x20variable\x20found','keys','forEach','%s[%s][%s]','%s_ROWS_COUNT','variable\x20%s\x20set','dial','Enter\x20in\x20DIAL\x20(%s)\x20block','sip_id','no\x20user\x20selected','no\x20user\x20found','DIAL','SIP/%s','opts','url'];(function(_0xbbd673,_0x40a9d8){var _0x5a6a48=function(_0x4909c5){while(--_0x4909c5){_0xbbd673['push'](_0xbbd673['shift']());}};_0x5a6a48(++_0x40a9d8);}(_0x9cea,0xd1));var _0xa9ce=function(_0x3e5086,_0x48f4a2){_0x3e5086=_0x3e5086-0x0;var _0xfeb102=_0x9cea[_0x3e5086];return _0xfeb102;};'use strict';var fs=require('fs');var path=require('path');var util=require(_0xa9ce('0x0'));var _=require(_0xa9ce('0x1'));var sh=require(_0xa9ce('0x2'));var odbc=require(_0xa9ce('0x3'))();var rs=require('randomstring');var moment=require(_0xa9ce('0x4'));var Mustache=require(_0xa9ce('0x5'));var logger=require(_0xa9ce('0x6'))('agi');var config=require('../../config/environment');var scripts=require(_0xa9ce('0x7'));var FILES_PATH='/var/opt/motion2/server/files';var verticesWithRetry=['menu','getdigits',_0xa9ce('0x8')];var AGIVertices=function(_0x437250,_0x335a5d,_0x5a60aa){this[_0xa9ce('0x9')]=_0x437250;this[_0xa9ce('0xa')]=_0x335a5d;this[_0xa9ce('0xb')]=_0x5a60aa;};AGIVertices['prototype']['getVariable']=function(_0x144620,_0x165337){this[_0xa9ce('0xa')][_0xa9ce('0xc')](_0x144620)['then'](function(_0x1b7b7b){_0x165337(null,_0x1b7b7b?_0x1b7b7b['name']:![]);})[_0xa9ce('0xd')](function(_0x4021f6){_0x165337(_0x4021f6);});};AGIVertices['prototype'][_0xa9ce('0xe')]=function(_0x22b98e,_0x178dd9){this[_0xa9ce('0xa')][_0xa9ce('0xf')](_0x22b98e)['then'](function(_0x417378){_0x178dd9(null,_0x417378?_0x417378[_0xa9ce('0x10')]:![]);})[_0xa9ce('0xd')](function(_0x311338){_0x178dd9(_0x311338);});};AGIVertices['prototype'][_0xa9ce('0x11')]=function(_0x5eec1d,_0xa2f437){this[_0xa9ce('0xa')][_0xa9ce('0x12')](_0x5eec1d)[_0xa9ce('0x13')](function(_0x59c2d6){_0xa2f437(null,_0x59c2d6?_0x59c2d6['name']:![]);})[_0xa9ce('0xd')](function(_0x350369){_0xa2f437(_0x350369);});};AGIVertices['prototype'][_0xa9ce('0x14')]=function(_0x879e92,_0x596824){this[_0xa9ce('0xa')][_0xa9ce('0x15')](_0x879e92)['then'](function(_0x1d73d7){_0x596824(null,_0x1d73d7?_0x1d73d7[_0xa9ce('0x16')]:![]);})['catch'](function(_0x129d68){_0x596824(_0x129d68);});};AGIVertices['prototype'][_0xa9ce('0x17')]=function(_0x3db8ea,_0x583974){this[_0xa9ce('0xa')][_0xa9ce('0x18')](_0x3db8ea)[_0xa9ce('0x13')](function(_0x3e4058){_0x583974(null,_0x3e4058?_0x3e4058[_0xa9ce('0x10')]:![]);})[_0xa9ce('0xd')](function(_0x1ec3e7){_0x583974(_0x1ec3e7);});};AGIVertices[_0xa9ce('0x19')]['getTrunk']=function(_0x52abab,_0x5b04ae){this[_0xa9ce('0xa')]['getTrunkById'](_0x52abab)[_0xa9ce('0x13')](function(_0x2a4d62){_0x5b04ae(null,_0x2a4d62?_0x2a4d62[_0xa9ce('0x10')]:![]);})[_0xa9ce('0xd')](function(_0x3ab213){_0x5b04ae(_0x3ab213);});};AGIVertices['prototype']['getSound']=function(_0x5407f4,_0x4ae952){var _0x3310c0=this;this[_0xa9ce('0xa')][_0xa9ce('0x1a')](_0x5407f4)[_0xa9ce('0x13')](function(_0x2d3d9f){_0x4ae952(null,_0x2d3d9f?_0x3310c0['getSoundPath'](_0x2d3d9f[_0xa9ce('0x1b')]):![]);})[_0xa9ce('0xd')](function(_0x352214){_0x4ae952(_0x352214);});};AGIVertices['prototype'][_0xa9ce('0x1c')]=function(_0x3d5c72,_0x3e2f70){this[_0xa9ce('0xa')]['getMailAccountById'](_0x3d5c72)['then'](function(_0x9a30ff){_0x3e2f70(null,_0x9a30ff?_0x9a30ff:![]);})[_0xa9ce('0xd')](function(_0x4e8480){_0x3e2f70(_0x4e8480);});};AGIVertices['prototype'][_0xa9ce('0x1d')]=function(_0x15a7f5,_0x7fccfd,_0x4e83f8){this['mailRpc'][_0xa9ce('0x1d')](_0x15a7f5,_0x7fccfd)[_0xa9ce('0x13')](function(){_0x4e83f8(null);})[_0xa9ce('0xd')](function(_0x287e67){_0x4e83f8(_0x287e67);});};AGIVertices[_0xa9ce('0x19')][_0xa9ce('0x1e')]=function(_0x10738b,_0x249e1e){this[_0xa9ce('0xa')][_0xa9ce('0x1f')](_0x10738b)[_0xa9ce('0x13')](function(_0x39c1cf){if(_0x39c1cf){if(_0x39c1cf['IntervalId']){_0x249e1e(null,[_0x39c1cf['interval']]);}else{_0x249e1e(null,_[_0xa9ce('0x20')](_0x39c1cf[_0xa9ce('0x21')],_0xa9ce('0x22')));}}else{_0x249e1e(null,![]);}})[_0xa9ce('0xd')](function(_0xbdf673){_0x249e1e(_0xbdf673);});};AGIVertices['prototype'][_0xa9ce('0x23')]=function(_0x3406b8){return util[_0xa9ce('0x24')](_0xa9ce('0x25'),FILES_PATH,_0x3406b8);};AGIVertices[_0xa9ce('0x19')][_0xa9ce('0x26')]=function(_0xfd8045,_0x49e6be,_0x37bef2){odbc[_0xa9ce('0x27')](_0xfd8045,function(_0x19f00c){if(_0x19f00c){logger[_0xa9ce('0x28')](_0xa9ce('0x29'),_0x19f00c);_0x37bef2(_0x19f00c);}else{logger[_0xa9ce('0x2a')](_0xa9ce('0x2b'));odbc['query'](_0x49e6be,function(_0x31ed92,_0x280802){if(_0x31ed92){logger[_0xa9ce('0x2a')](_0xa9ce('0x2c'),_0x49e6be);_0x37bef2(_0x31ed92);}else{logger[_0xa9ce('0x2a')]('Query\x20executed\x20correctly\x20%s',_0x49e6be);odbc[_0xa9ce('0x2d')](function(_0x1686db){if(_0x1686db){logger[_0xa9ce('0x28')](_0xa9ce('0x2e'),_0x1686db);}_0x37bef2(null,_0x280802);});}});}});};AGIVertices['prototype']['getSmsAccount']=function(_0x156842,_0x4e9c79){this[_0xa9ce('0xa')][_0xa9ce('0x2f')](_0x156842)[_0xa9ce('0x13')](function(_0x12e254){_0x4e9c79(null,_0x12e254?_0x12e254:![]);})[_0xa9ce('0xd')](function(_0x4950ab){_0x4e9c79(_0x4950ab);});};AGIVertices[_0xa9ce('0x19')][_0xa9ce('0x30')]=function(_0x4a8bfa,_0x25beda){this['rpc'][_0xa9ce('0x30')](_0x4a8bfa)[_0xa9ce('0x13')](function(_0x4979e7){_0x25beda(null,_0x4979e7);})[_0xa9ce('0xd')](function(_0x442597){_0x25beda(_0x442597);});};AGIVertices['prototype'][_0xa9ce('0x31')]=function(_0x51319f,_0x965c02,_0x171132){this[_0xa9ce('0xa')][_0xa9ce('0x31')]({'uniqueid':this[_0xa9ce('0x9')][_0xa9ce('0x32')],'node':_0x51319f[_0xa9ce('0x33')],'application':_0x51319f[_0xa9ce('0x34')],'data':_0x965c02||null,'project_name':this['channel']['arg_1'],'callerid':this[_0xa9ce('0x9')][_0xa9ce('0x35')]})[_0xa9ce('0x13')](function(_0x3a6dc1){if(_0x171132){_0x171132(null,_0x3a6dc1);}})[_0xa9ce('0xd')](function(_0x59a424){if(_0x171132){_0x171132(_0x59a424);}});};AGIVertices[_0xa9ce('0x19')][_0xa9ce('0x36')]=function(_0x5c6917,_0x25b26e,_0x2f1277,_0x5386b5){this[_0xa9ce('0xa')]['createSquareRecording']({'uniqueid':this[_0xa9ce('0x9')][_0xa9ce('0x32')],'callerid':this[_0xa9ce('0x9')][_0xa9ce('0x35')],'calleridname':this[_0xa9ce('0x9')][_0xa9ce('0x37')],'context':this[_0xa9ce('0x9')][_0xa9ce('0x38')],'extension':this['channel']['extension'],'priority':this['channel'][_0xa9ce('0x39')],'accountcode':this[_0xa9ce('0x9')][_0xa9ce('0x3a')],'dnid':this['channel'][_0xa9ce('0x3b')],'projectName':this['channel'][_0xa9ce('0x3c')],'saveName':_0x25b26e,'filename':_0x5c6917[_0xa9ce('0x3d')]||_0x25b26e,'savePath':_0x2f1277})[_0xa9ce('0x13')](function(_0x3c716a){_0x5386b5(null,_0x3c716a);})['catch'](function(_0x26d493){_0x5386b5(_0x26d493);});};AGIVertices[_0xa9ce('0x19')]['createSquareMessage']=function(_0x5d8947,_0x151c9a,_0x2fb9cb){this[_0xa9ce('0xa')][_0xa9ce('0x3e')]({'uniqueid':this[_0xa9ce('0x9')][_0xa9ce('0x32')],'body':_0x5d8947,'direction':_0x151c9a})[_0xa9ce('0x13')](function(_0xd3fc24){if(_0x2fb9cb){_0x2fb9cb(null,_0xd3fc24);}})['catch'](function(_0x3fecf3){if(_0x2fb9cb){_0x2fb9cb(_0x3fecf3);}});};AGIVertices[_0xa9ce('0x19')][_0xa9ce('0x3f')]=function(_0x100b27,_0x5648ae){this[_0xa9ce('0xa')][_0xa9ce('0x3f')]({'firstName':_[_0xa9ce('0x40')](_0x100b27[_0xa9ce('0x10')])||_[_0xa9ce('0x41')](_0x100b27[_0xa9ce('0x10')])?_0xa9ce('0x42')+Math[_0xa9ce('0x43')]():_0x100b27[_0xa9ce('0x10')],'lastName':_[_0xa9ce('0x40')](_0x100b27[_0xa9ce('0x44')])||_[_0xa9ce('0x41')](_0x100b27[_0xa9ce('0x44')])?null:_0x100b27['lastName'],'phone':_0x100b27[_0xa9ce('0x45')],'ListId':_0x100b27[_0xa9ce('0x46')],'scheduledAt':_0x100b27['scheduledAt'],'callbackUniqueid':this[_0xa9ce('0x9')][_0xa9ce('0x32')],'tags':_0xa9ce('0x47'),'description':'Callback\x20scheduled\x20at\x20'+_0x100b27['scheduledAt'][_0xa9ce('0x48')](),'priority':_0x100b27['callback_priority']})[_0xa9ce('0x13')](function(_0x3b9da3){_0x5648ae(null,_0x3b9da3);})[_0xa9ce('0xd')](function(_0x58a77f){_0x5648ae(_0x58a77f);});};AGIVertices[_0xa9ce('0x19')][_0xa9ce('0x49')]=function(_0x3a3965,_0x1fc6cd){this[_0xa9ce('0xa')][_0xa9ce('0x4a')](_0x3a3965)[_0xa9ce('0x13')](function(_0x3883ec){_0x1fc6cd(null,_0x3883ec?_0x3883ec[_0xa9ce('0x10')]:![]);})[_0xa9ce('0xd')](function(_0x13e8fa){_0x1fc6cd(_0x13e8fa);});};AGIVertices[_0xa9ce('0x19')]['agentPause']=function(_0x42b2e8,_0x47233c,_0x1e4416){var _0x5f3658={'role':_0xa9ce('0x4b')};_0x5f3658[_0x42b2e8]=this[_0xa9ce('0x9')][_0xa9ce('0x35')];this[_0xa9ce('0xa')][_0xa9ce('0x4c')](_0x5f3658,_0x47233c,this[_0xa9ce('0x9')][_0xa9ce('0x32')])['then'](function(_0x91bf5f){_0x1e4416(null,_[_0xa9ce('0x41')](_0x91bf5f)?![]:!![]);})[_0xa9ce('0xd')](function(_0x5756e4){logger[_0xa9ce('0x28')](_0x5756e4);_0x1e4416(null,![]);});};AGIVertices[_0xa9ce('0x19')][_0xa9ce('0x4d')]=function(_0x6d95d8,_0x7bc74c){var _0x3f3929={'role':_0xa9ce('0x4b')};_0x3f3929[_0x6d95d8]=this[_0xa9ce('0x9')][_0xa9ce('0x35')];this[_0xa9ce('0xa')][_0xa9ce('0x4d')](_0x3f3929)['then'](function(_0x5916c9){_0x7bc74c(null,_['isNil'](_0x5916c9)?![]:!![]);})[_0xa9ce('0xd')](function(_0x400b24){logger[_0xa9ce('0x28')](_0x400b24);_0x7bc74c(null,![]);});};AGIVertices[_0xa9ce('0x19')][_0xa9ce('0x4e')]=function(_0x3348bc,_0x195603){var _0x15591={'role':_0xa9ce('0x4b')};_0x15591[_0x3348bc]=this[_0xa9ce('0x9')][_0xa9ce('0x35')];this[_0xa9ce('0xa')]['agentLogout'](_0x15591)[_0xa9ce('0x13')](function(_0x49beff){_0x195603(null,_[_0xa9ce('0x41')](_0x49beff)?![]:!![]);})[_0xa9ce('0xd')](function(_0x3ce66f){logger[_0xa9ce('0x28')](_0x3ce66f);_0x195603(null,![]);});};AGIVertices[_0xa9ce('0x19')][_0xa9ce('0x4f')]=function(_0x4af177,_0x15d9fa){var _0x508f48={'role':_0xa9ce('0x4b')};_0x508f48[_0x4af177]=this[_0xa9ce('0x9')][_0xa9ce('0x35')];var _0x35cf73=_0x4af177!='internal'?util[_0xa9ce('0x24')](_0xa9ce('0x50'),_0xa9ce('0x51'),this[_0xa9ce('0x9')][_0xa9ce('0x35')]):undefined;this[_0xa9ce('0xa')][_0xa9ce('0x4f')](_0x508f48,_0x35cf73)[_0xa9ce('0x13')](function(_0x2a24c6){_0x15d9fa(null,_[_0xa9ce('0x41')](_0x2a24c6)?![]:!![]);})[_0xa9ce('0xd')](function(_0x215f6a){logger[_0xa9ce('0x28')](_0x215f6a);_0x15d9fa(null,![]);});};AGIVertices['prototype'][_0xa9ce('0x52')]=function(_0x5b6b0e,_0x5236f6){sh[_0xa9ce('0x53')](_[_0xa9ce('0x54')](_0x5b6b0e),function(_0x71a7fd,_0x15e4d4){var _0x509d03=_0x15e4d4[_0xa9ce('0x55')](/(\r\n|\n|\r)/gm,'');_0x5236f6(null,_0x509d03);});};AGIVertices['prototype']['googleTTS']=function(_0x109ec0,_0x196f39){scripts['googleTTS'](_0x109ec0[_0xa9ce('0x56')],_0x109ec0['google_tts_language']||'en',0x1)[_0xa9ce('0x13')](function(_0x98f870){_0x196f39(null,_0x98f870);})[_0xa9ce('0xd')](function(_0x378f85){_0x196f39(_0x378f85);});};AGIVertices[_0xa9ce('0x19')]['googleDialogflow']=function(_0x187714,_0x3439b6){scripts[_0xa9ce('0x57')](this['channel'][_0xa9ce('0x32')],_0x187714[_0xa9ce('0x58')],_0x187714[_0xa9ce('0x56')],_0x187714[_0xa9ce('0x59')]||'en')[_0xa9ce('0x13')](function(_0x177e57){_0x3439b6(null,_0x177e57);})[_0xa9ce('0xd')](function(_0x5e0dfd){_0x3439b6(_0x5e0dfd);});};AGIVertices[_0xa9ce('0x19')][_0xa9ce('0x5a')]=function(_0xd44818,_0x1cd938){scripts[_0xa9ce('0x5a')](this[_0xa9ce('0x9')],_0xd44818)[_0xa9ce('0x13')](function(_0x3f7f43){_0x1cd938(null,_0x3f7f43);})[_0xa9ce('0xd')](function(_0x48e039){_0x1cd938(_0x48e039);});};AGIVertices[_0xa9ce('0x19')]['ispeechTTS']=function(_0x464e49,_0x876f3){scripts[_0xa9ce('0x5b')](_0x464e49[_0xa9ce('0x58')],_0x464e49[_0xa9ce('0x56')],_0x464e49[_0xa9ce('0x5c')]||'en-US',_0x464e49[_0xa9ce('0x5d')])['then'](function(_0x3b3e8e){_0x876f3(null,_0x3b3e8e);})[_0xa9ce('0xd')](function(_0x2e68bf){_0x876f3(_0x2e68bf);});};AGIVertices['prototype'][_0xa9ce('0x5e')]=function(_0x166882,_0x5a7b63,_0x42dabb){scripts[_0xa9ce('0x5e')](_0x5a7b63,_0x166882[_0xa9ce('0x58')],_0x166882[_0xa9ce('0x5f')]||'en-US',this['isConfigured'](_0x166882[_0xa9ce('0x60')])?_0x166882[_0xa9ce('0x60')]:undefined)[_0xa9ce('0x13')](function(_0x66a54c){_0x42dabb(null,_0x66a54c);})['catch'](function(_0xa96cdc){_0x42dabb(_0xa96cdc);});};AGIVertices['prototype'][_0xa9ce('0x61')]=function(_0x4c30cf,_0xf13f6f){scripts[_0xa9ce('0x61')](_0x4c30cf[_0xa9ce('0x62')],_0x4c30cf[_0xa9ce('0x63')],_0x4c30cf[_0xa9ce('0x64')],_0x4c30cf[_0xa9ce('0x65')]||_0xa9ce('0x66'),_0x4c30cf[_0xa9ce('0x56')],_0x4c30cf[_0xa9ce('0x67')]||'text')[_0xa9ce('0x13')](function(_0x458b86){_0xf13f6f(null,_0x458b86);})['catch'](function(_0x2b2c81){_0xf13f6f(_0x2b2c81);});};AGIVertices[_0xa9ce('0x19')]['awsLex']=function(_0x41471d,_0x479fb8){scripts[_0xa9ce('0x68')](this[_0xa9ce('0x9')][_0xa9ce('0x32')],_0x41471d[_0xa9ce('0x62')],_0x41471d[_0xa9ce('0x63')],_0x41471d[_0xa9ce('0x69')],_0x41471d[_0xa9ce('0x56')],_0x41471d[_0xa9ce('0x6a')])['then'](function(_0x378db5){_0x479fb8(null,_0x378db5);})[_0xa9ce('0xd')](function(_0x2f743e){_0x479fb8(_0x2f743e);});};AGIVertices['prototype']['googleASR']=function(_0x50d5fe,_0x18b2b6,_0x52bbc9){scripts[_0xa9ce('0x6b')](_0x18b2b6,_0x50d5fe[_0xa9ce('0x58')],_0x50d5fe[_0xa9ce('0x6c')]||_0xa9ce('0x6d'))[_0xa9ce('0x13')](function(_0x1735c5){_0x52bbc9(null,_0x1735c5);})[_0xa9ce('0xd')](function(_0x37bc85){_0x52bbc9(_0x37bc85);});};AGIVertices['prototype'][_0xa9ce('0x6e')]=function(_0x4b27b5,_0x3d1a8b,_0x1f2123){scripts[_0xa9ce('0x6e')](_0x3d1a8b,_0x4b27b5[_0xa9ce('0x6f')],_0x4b27b5[_0xa9ce('0x70')],_0x4b27b5[_0xa9ce('0x71')])[_0xa9ce('0x13')](function(_0x4d83c7){_0x1f2123(null,_0x4d83c7);})['catch'](function(_0x3122a5){_0x1f2123(_0x3122a5);});};AGIVertices[_0xa9ce('0x19')]['clear']=function(_0x265a2e){var _0x3d37c2=_[_0xa9ce('0x72')](verticesWithRetry,_0x265a2e[_0xa9ce('0x34')])?_0x265a2e:_[_0xa9ce('0x73')](_0x265a2e);for(var _0x5d5f1d in _0x3d37c2){if(_0x3d37c2[_0xa9ce('0x74')](_0x5d5f1d)){if(_0x3d37c2[_0x5d5f1d]&&_[_0xa9ce('0x75')](_0x3d37c2[_0x5d5f1d])){_0x3d37c2[_0x5d5f1d]=this[_0xa9ce('0x76')](_0x3d37c2[_0x5d5f1d]);}}}return _0x3d37c2;};AGIVertices['prototype'][_0xa9ce('0x76')]=function(_0x590ff2){var _0x2e9044=_0x590ff2[_0xa9ce('0x77')]('{');for(var _0x211f93=0x1;_0x211f93<_0x2e9044[_0xa9ce('0x78')];_0x211f93+=0x1){var _0x5e07d1=_0x2e9044[_0x211f93][_0xa9ce('0x77')]('}');if(_0x5e07d1[_0xa9ce('0x78')]>0x1){_0x590ff2=_0x590ff2[_0xa9ce('0x79')]('{'+_0x5e07d1[0x0]+'}',this[_0xa9ce('0x9')][_0xa9ce('0x7a')](_0x5e07d1[0x0])[_0xa9ce('0x7b')]||_0x5e07d1[0x0]);}}if(_0x2e9044[_0xa9ce('0x78')]===0x1){return _0x590ff2[_0xa9ce('0x48')]();}return this[_0xa9ce('0x76')](_0x590ff2);};AGIVertices[_0xa9ce('0x19')][_0xa9ce('0x7c')]=function(_0x47dc7b,_0x36405f){var _0x3d323f=this['channel'][_0xa9ce('0x7a')](_0x47dc7b);if(_0x3d323f[_0xa9ce('0x7d')]===-0x1){return _0x3d323f;}logger[_0xa9ce('0x2a')](util[_0xa9ce('0x24')](_0xa9ce('0x7e'),_0x36405f,_0x3d323f[_0xa9ce('0x7b')]));return this[_0xa9ce('0x9')][_0xa9ce('0x7f')](_0x36405f,_0x3d323f['extra']);};AGIVertices[_0xa9ce('0x19')][_0xa9ce('0x80')]=function(_0x4ad81e){return _0x4ad81e&&_0x4ad81e!=='0'&&_0x4ad81e!=='-1'&&_0x4ad81e!=='';};AGIVertices[_0xa9ce('0x19')][_0xa9ce('0x81')]=function(_0x5b40a1){this[_0xa9ce('0x31')]['sync'](this,_0x5b40a1,'-');_0x5b40a1[_0xa9ce('0x82')]=_0x5b40a1[_0xa9ce('0x81')];return{'code':0xc8,'result':'-'};};AGIVertices[_0xa9ce('0x19')]['agi']=function(_0x51c1b){logger[_0xa9ce('0x2a')](util[_0xa9ce('0x24')](_0xa9ce('0x83'),_0x51c1b[_0xa9ce('0x33')]));return this[_0xa9ce('0x9')][_0xa9ce('0x84')]([_0x51c1b[_0xa9ce('0x85')],_0x51c1b[_0xa9ce('0x86')]]);};AGIVertices[_0xa9ce('0x19')][_0xa9ce('0x87')]=function(_0x28a7a8){logger[_0xa9ce('0x2a')](util[_0xa9ce('0x24')](_0xa9ce('0x88'),_0x28a7a8[_0xa9ce('0x33')]));if(this[_0xa9ce('0x80')](_0x28a7a8[_0xa9ce('0x89')])){logger[_0xa9ce('0x2a')](util[_0xa9ce('0x24')](_0xa9ce('0x8a'),_0x28a7a8[_0xa9ce('0x89')]));var _0x303640=this[_0xa9ce('0x9')][_0xa9ce('0x8b')](_0x28a7a8[_0xa9ce('0x89')]);if(_0x303640[_0xa9ce('0x7d')]===-0x1){return _0x303640;}}return this[_0xa9ce('0x9')][_0xa9ce('0x87')]();};AGIVertices[_0xa9ce('0x19')][_0xa9ce('0x47')]=function(_0x593cf9){logger['info'](util[_0xa9ce('0x24')](_0xa9ce('0x8c'),_0x593cf9[_0xa9ce('0x33')]));if(!this[_0xa9ce('0x80')](_0x593cf9[_0xa9ce('0x46')])){return this[_0xa9ce('0x9')][_0xa9ce('0x28')](_0x593cf9,_0xa9ce('0x8d'));}_0x593cf9[_0xa9ce('0x8e')]=moment();if(this[_0xa9ce('0x80')](_0x593cf9[_0xa9ce('0x8f')])){_0x593cf9[_0xa9ce('0x8e')]=moment()[_0xa9ce('0x90')](_0x593cf9[_0xa9ce('0x8f')],_0xa9ce('0x91'));}if(!this[_0xa9ce('0x80')](_0x593cf9[_0xa9ce('0x92')])){_0x593cf9[_0xa9ce('0x92')]=0x2;}this['createCmContact'][_0xa9ce('0x93')](this,_0x593cf9);return this[_0xa9ce('0x9')][_0xa9ce('0x94')](util[_0xa9ce('0x24')](_0xa9ce('0x95'),_0x593cf9[_0xa9ce('0x45')],_0x593cf9[_0xa9ce('0x46')],_0x593cf9[_0xa9ce('0x8e')]));};AGIVertices[_0xa9ce('0x19')][_0xa9ce('0x96')]=function(_0x5dee1c){logger[_0xa9ce('0x2a')](util['format']('Enter\x20in\x20CUSTOM\x20APP\x20(%s)\x20block',_0x5dee1c['label']));var _0x41eb09=this[_0xa9ce('0x9')][_0xa9ce('0x53')](_0x5dee1c[_0xa9ce('0x97')],_0x5dee1c[_0xa9ce('0x98')]);if(_0x41eb09[_0xa9ce('0x7d')]===-0x1){return _0x41eb09;}return this['channel']['noop'](util[_0xa9ce('0x24')]('Executed\x20command\x20%s\x20%s',_0x5dee1c[_0xa9ce('0x97')],_0x5dee1c[_0xa9ce('0x98')]));};AGIVertices[_0xa9ce('0x19')]['lumenvoxtts']=function(_0x70b63){logger[_0xa9ce('0x2a')](util[_0xa9ce('0x24')](_0xa9ce('0x99'),_0x70b63[_0xa9ce('0x33')]));if(!this[_0xa9ce('0x80')](_0x70b63[_0xa9ce('0x56')])){return this[_0xa9ce('0x9')]['noop'](_0xa9ce('0x9a'));}var _0xaba9fa='\x22'+_0x70b63[_0xa9ce('0x56')]+'\x22';if(this['isConfigured'](_0x70b63[_0xa9ce('0x98')])){_0xaba9fa+=','+_0x70b63['options'];}var _0x41e4e6=this[_0xa9ce('0x9')]['exec'](_0xa9ce('0x9b'),_0xaba9fa);if(_0x41e4e6['result']===-0x1){return _0x41e4e6;}return this[_0xa9ce('0x9')][_0xa9ce('0x94')](util[_0xa9ce('0x24')](_0xa9ce('0x9c'),_0xaba9fa));};AGIVertices['prototype'][_0xa9ce('0x9d')]=function(_0x856504){logger[_0xa9ce('0x2a')](util[_0xa9ce('0x24')](_0xa9ce('0x9e'),_0x856504[_0xa9ce('0x33')]));if(!this[_0xa9ce('0x80')](_0x856504[_0xa9ce('0x56')])){return this[_0xa9ce('0x9')]['noop'](_0xa9ce('0x9a'));}var _0xa4ed2b='\x22'+_0x856504[_0xa9ce('0x56')]+'\x22';if(this[_0xa9ce('0x80')](_0x856504[_0xa9ce('0x98')])){_0xa4ed2b+=','+_0x856504[_0xa9ce('0x98')];}var _0x3ff4cd=this[_0xa9ce('0x9')][_0xa9ce('0x53')](_0xa9ce('0x9b'),_0xa4ed2b);if(_0x3ff4cd[_0xa9ce('0x7d')]===-0x1){return _0x3ff4cd;}return this[_0xa9ce('0x9')][_0xa9ce('0x94')](util['format'](_0xa9ce('0x9c'),_0xa4ed2b));};AGIVertices['prototype'][_0xa9ce('0x9f')]=function(_0x145204){logger[_0xa9ce('0x2a')](util[_0xa9ce('0x24')](_0xa9ce('0xa0'),_0x145204[_0xa9ce('0x33')]));if(!this['isConfigured'](_0x145204[_0xa9ce('0xa1')])){return this['channel'][_0xa9ce('0x94')](_0xa9ce('0xa2'));}var _0x18fba4=_0x145204['grammar'];if(this[_0xa9ce('0x80')](_0x145204['options'])){_0x18fba4+=','+_0x145204[_0xa9ce('0x98')];}var _0x1309b1=this[_0xa9ce('0x9')][_0xa9ce('0x53')]('MRCPRecog',_0x18fba4);if(_0x1309b1[_0xa9ce('0x7d')]===-0x1){return _0x1309b1;}var _0xae5c7d=this[_0xa9ce('0x7c')](_0xa9ce('0xa3'),_0xa9ce('0xa4'));if(_0xae5c7d[_0xa9ce('0x7d')]===-0x1){return _0xae5c7d;}var _0x58979d=this[_0xa9ce('0x7c')](_0xa9ce('0xa5'),'LUMENVOX_ASR_TRANSCRIPT');if(_0x58979d[_0xa9ce('0x7d')]===-0x1){return _0x58979d;}var _0x337916=this[_0xa9ce('0x7c')]('RECOG_INSTANCE()',_0xa9ce('0xa6'));if(_0x337916[_0xa9ce('0x7d')]===-0x1){return _0x337916;}return this[_0xa9ce('0x9')][_0xa9ce('0x94')](util[_0xa9ce('0x24')](_0xa9ce('0xa7'),_0x18fba4));};AGIVertices['prototype'][_0xa9ce('0xa8')]=function(_0x418b83){logger[_0xa9ce('0x2a')](util[_0xa9ce('0x24')](_0xa9ce('0xa9'),_0x418b83['label']));if(!this['isConfigured'](_0x418b83[_0xa9ce('0xa1')])){return this['channel']['noop'](_0xa9ce('0xa2'));}var _0x1677f5=_0x418b83['grammar'];if(this['isConfigured'](_0x418b83['options'])){_0x1677f5+=','+_0x418b83['options'];}var _0xc8cc36=this['channel'][_0xa9ce('0x53')](_0xa9ce('0xaa'),_0x1677f5);if(_0xc8cc36['result']===-0x1){return _0xc8cc36;}var _0x3babdd=this['getAndSetVariable'](_0xa9ce('0xa3'),_0xa9ce('0xab'));if(_0x3babdd[_0xa9ce('0x7d')]===-0x1){return _0x3babdd;}var _0x3221b3=this[_0xa9ce('0x7c')]('RECOG_INPUT()',_0xa9ce('0xac'));if(_0x3221b3[_0xa9ce('0x7d')]===-0x1){return _0x3221b3;}var _0x541bf8=this[_0xa9ce('0x7c')](_0xa9ce('0xad'),_0xa9ce('0xae'));if(_0x541bf8[_0xa9ce('0x7d')]===-0x1){return _0x541bf8;}return this[_0xa9ce('0x9')][_0xa9ce('0x94')](util[_0xa9ce('0x24')](_0xa9ce('0xa7'),_0x1677f5));};AGIVertices[_0xa9ce('0x19')][_0xa9ce('0xaf')]=function(_0x1e8385){logger[_0xa9ce('0x2a')](util['format'](_0xa9ce('0xb0'),_0x1e8385['label']));if(!this[_0xa9ce('0x80')](_0x1e8385[_0xa9ce('0xb1')])){return this[_0xa9ce('0x9')][_0xa9ce('0x28')](_0x1e8385,'no\x20database\x20selected');}var _0x481110=this['getSquareOdbc']['sync'](this,_0x1e8385['odbc_id']);if(!_0x481110){return this['channel'][_0xa9ce('0x28')](_0x1e8385,'no\x20odbc\x20database\x20found');}if(!this[_0xa9ce('0x80')](_0x1e8385[_0xa9ce('0xb2')])){return this[_0xa9ce('0x9')][_0xa9ce('0x28')](_0x1e8385,'no\x20query\x20configured');}var _0x1f0681=_0x1e8385[_0xa9ce('0xb2')][_0xa9ce('0x55')](/(\r\n|\n|\r)/gm,'\x20');this[_0xa9ce('0x9')][_0xa9ce('0x94')](util['format']('query:\x20%s',_0x1f0681));var _0x2e51c9=this['getQueryOdbc'][_0xa9ce('0x93')](this,_0x481110,_0x1f0681);this['createSquareDetailsReport']['sync'](this,_0x1e8385,_0x1f0681);if(!this['isConfigured'](_0x1e8385[_0xa9ce('0xb3')])){return this[_0xa9ce('0x9')][_0xa9ce('0x94')](_0xa9ce('0xb4'));}var _0x2cd09b=this[_0xa9ce('0x7a')][_0xa9ce('0x93')](this,_0x1e8385[_0xa9ce('0xb3')]);if(!_0x2cd09b){return this[_0xa9ce('0x9')][_0xa9ce('0x28')](_0x1e8385,_0xa9ce('0xb5'));}var _0x588a7e=this;_0x2e51c9['forEach'](function(_0x23d7ac,_0x88dc7){Object[_0xa9ce('0xb6')](_0x23d7ac)[_0xa9ce('0xb7')](function(_0x245062){_0x588a7e[_0xa9ce('0x9')][_0xa9ce('0x7f')](util['format'](_0xa9ce('0xb8'),_0x2cd09b,_0x88dc7,_0x245062),_0x23d7ac[_0x245062]);});});this[_0xa9ce('0x9')][_0xa9ce('0x7f')](util[_0xa9ce('0x24')](_0xa9ce('0xb9'),_0x2cd09b),_0x2e51c9[_0xa9ce('0x78')]);return this['channel'][_0xa9ce('0x94')](util['format'](_0xa9ce('0xba'),_0x2cd09b));};AGIVertices[_0xa9ce('0x19')][_0xa9ce('0xbb')]=function(_0x1015ba){logger['debug'](util[_0xa9ce('0x24')](_0xa9ce('0xbc'),_0x1015ba[_0xa9ce('0x33')]));if(!this[_0xa9ce('0x80')](_0x1015ba[_0xa9ce('0xbd')])){return this[_0xa9ce('0x9')]['error'](_0x1015ba,_0xa9ce('0xbe'));}var _0x5bf46b=this[_0xa9ce('0x17')][_0xa9ce('0x93')](this,_0x1015ba[_0xa9ce('0xbd')]);if(!_0x5bf46b){return this[_0xa9ce('0x9')][_0xa9ce('0x28')](_0x1015ba,_0xa9ce('0xbf'));}var _0x27963c=this[_0xa9ce('0x9')][_0xa9ce('0x53')](_0xa9ce('0xc0'),[util[_0xa9ce('0x24')](_0xa9ce('0xc1'),_0x5bf46b),_0x1015ba[_0xa9ce('0x89')],_0x1015ba[_0xa9ce('0xc2')],_0x1015ba[_0xa9ce('0xc3')]]);if(_0x27963c[_0xa9ce('0x7d')]===-0x1){return _0x27963c;}return this[_0xa9ce('0x9')][_0xa9ce('0x94')](util[_0xa9ce('0x24')](_0xa9ce('0xc4'),'DIAL'));};AGIVertices[_0xa9ce('0x19')][_0xa9ce('0xc5')]=function(_0x1f4fde){logger[_0xa9ce('0x2a')](util[_0xa9ce('0x24')](_0xa9ce('0xc6'),_0x1f4fde[_0xa9ce('0x33')]));if(!this[_0xa9ce('0x80')](_0x1f4fde[_0xa9ce('0x58')])){return this[_0xa9ce('0x9')]['noop']('no\x20key\x20configured');}if(!this['isConfigured'](_0x1f4fde[_0xa9ce('0x56')])){return this[_0xa9ce('0x9')][_0xa9ce('0x94')](_0xa9ce('0x9a'));}this[_0xa9ce('0x9')][_0xa9ce('0xc7')]=!![];this['createSquareDetailsReport'](_0x1f4fde);this[_0xa9ce('0x3e')](_0x1f4fde[_0xa9ce('0x56')],'in');this[_0xa9ce('0x9')][_0xa9ce('0x94')](util[_0xa9ce('0x24')](_0xa9ce('0xc8'),_0x1f4fde['text']));var _0x1d85fb=this['googleDialogflow']['sync'](this,_0x1f4fde);if(_0x1d85fb){for(var _0x13ee4a in _0x1d85fb){if(_0x1d85fb[_0xa9ce('0x74')](_0x13ee4a)){this[_0xa9ce('0x9')]['setVariable'](util[_0xa9ce('0x24')]('DIALOGFLOW_%s',_0x13ee4a[_0xa9ce('0xc9')]()),_0x1d85fb[_0x13ee4a]);}}this[_0xa9ce('0x3e')](_0x1d85fb[_0xa9ce('0xca')],_0xa9ce('0xcb'));return this[_0xa9ce('0x9')][_0xa9ce('0x94')](util[_0xa9ce('0x24')](_0xa9ce('0xcc'),_0x1d85fb['speech']));}return this[_0xa9ce('0x9')][_0xa9ce('0x28')](_0x1f4fde,_0xa9ce('0xcd'));};AGIVertices[_0xa9ce('0x19')]['sesteknda']=function(_0x503ded){logger[_0xa9ce('0x2a')](util[_0xa9ce('0x24')]('Enter\x20in\x20SESTEKNDA\x20(%s)\x20block',_0x503ded[_0xa9ce('0x33')]));if(!this[_0xa9ce('0x80')](_0x503ded[_0xa9ce('0xce')])){return this['channel'][_0xa9ce('0x94')]('no\x20ndauth\x20url\x20configured');}if(!this['isConfigured'](_0x503ded[_0xa9ce('0xcf')])){return this[_0xa9ce('0x9')][_0xa9ce('0x94')](_0xa9ce('0xd0'));}if(!this[_0xa9ce('0x80')](_0x503ded[_0xa9ce('0xd1')])){return this[_0xa9ce('0x9')][_0xa9ce('0x94')]('no\x20password\x20configured');}if(!this[_0xa9ce('0x80')](_0x503ded[_0xa9ce('0xd2')])){return this[_0xa9ce('0x9')][_0xa9ce('0x94')](_0xa9ce('0x9a'));}this['channel'][_0xa9ce('0xc7')]=!![];this['createSquareDetailsReport'](_0x503ded);this[_0xa9ce('0x3e')](_0x503ded[_0xa9ce('0x56')],'in');this[_0xa9ce('0x9')][_0xa9ce('0x94')](util[_0xa9ce('0x24')](_0xa9ce('0xd3'),_0x503ded[_0xa9ce('0x56')]));var _0x29b476=this[_0xa9ce('0x5a')][_0xa9ce('0x93')](this,_0x503ded);if(_0x29b476){for(var _0x161d34 in _0x29b476){if(_0x29b476[_0xa9ce('0x74')](_0x161d34)){this[_0xa9ce('0x9')][_0xa9ce('0x7f')](util['format'](_0xa9ce('0xd4'),_0x161d34[_0xa9ce('0xc9')]()),_0x29b476[_0x161d34]);}}this[_0xa9ce('0x3e')](_0x29b476['speech'],_0xa9ce('0xcb'));if(_0x29b476[_0xa9ce('0xd5')]){this[_0xa9ce('0x9')][_0xa9ce('0x94')](util[_0xa9ce('0x24')](_0xa9ce('0xd6'),_0x29b476[_0xa9ce('0xd5')]));var _0x334934=this[_0xa9ce('0x9')][_0xa9ce('0xd7')](_0x29b476[_0xa9ce('0xd5')]);try{fs[_0xa9ce('0xd8')](_0x29b476['audiofile']+_0xa9ce('0xd9'));}catch(_0x45e264){logger[_0xa9ce('0x28')](_0x45e264);}return _0x334934;}else{return this[_0xa9ce('0x9')][_0xa9ce('0x94')](util[_0xa9ce('0x24')]('SestekNDA\x20Result\x20%s',_0x29b476[_0xa9ce('0xca')]));}}return this['channel'][_0xa9ce('0x28')](_0x503ded,'SestekNDA\x20is\x20unreachable');};AGIVertices[_0xa9ce('0x19')][_0xa9ce('0xda')]=function(_0x39ecda){logger['info'](util[_0xa9ce('0x24')](_0xa9ce('0xdb'),_0x39ecda[_0xa9ce('0x33')]));return this[_0xa9ce('0x9')][_0xa9ce('0x94')]('end');};AGIVertices['prototype'][_0xa9ce('0xdc')]=function(_0x7bc146){logger[_0xa9ce('0x2a')](util[_0xa9ce('0x24')](_0xa9ce('0xdd'),_0x7bc146['label']));var _0x246b13='';if(_0x7bc146['trunk_id']){if(!this[_0xa9ce('0x80')](_0x7bc146['trunk_id'])){return this['channel'][_0xa9ce('0x28')](_0x7bc146,_0xa9ce('0xde'));}else{var _0x1c515f=parseInt(_0x7bc146['trunk_id'],0xa);if(isNaN(_0x1c515f)){_0x246b13=_0x7bc146[_0xa9ce('0xdf')];}else{_0x246b13=this[_0xa9ce('0xe0')][_0xa9ce('0x93')](this,_0x7bc146[_0xa9ce('0xdf')]);if(!_0x246b13){return this[_0xa9ce('0x9')][_0xa9ce('0x28')](_0x7bc146,'no\x20trunk\x20found');}}}}else if(_0x7bc146[_0xa9ce('0xe1')]){_0x246b13=_0x7bc146[_0xa9ce('0xe1')];}else{return this[_0xa9ce('0x9')][_0xa9ce('0x28')](_0x7bc146,'no\x20trunk\x20selected');}var _0xc1045e=this['channel'][_0xa9ce('0x53')](_0xa9ce('0xc0'),[util[_0xa9ce('0x24')]('SIP/%s/%s',_0x246b13,_0x7bc146['phone']),_0x7bc146['timeout'],_0x7bc146['opts'],_0x7bc146['url']]);if(_0xc1045e[_0xa9ce('0x7d')]===-0x1){return _0xc1045e;}return this[_0xa9ce('0x9')]['noop'](util['format'](_0xa9ce('0xc4'),'DIAL'));};AGIVertices[_0xa9ce('0x19')][_0xa9ce('0xe2')]=function(_0x254bf7){logger[_0xa9ce('0x2a')](util[_0xa9ce('0x24')]('Enter\x20in\x20FINALLY\x20(%s)\x20block',_0x254bf7[_0xa9ce('0x33')]));return this[_0xa9ce('0x9')][_0xa9ce('0x94')]('finally');};AGIVertices[_0xa9ce('0x19')]['getdigits']=function(_0x1078f0){logger[_0xa9ce('0x2a')](util[_0xa9ce('0x24')](_0xa9ce('0xe3'),_0x1078f0[_0xa9ce('0x33')]));if(_0x1078f0['retry']===0x0){return this[_0xa9ce('0x81')](_0x1078f0);}_0x1078f0[_0xa9ce('0x82')]-=0x1;if(!this[_0xa9ce('0x80')](_0x1078f0[_0xa9ce('0xe4')])){return this[_0xa9ce('0x9')][_0xa9ce('0x28')](_0x1078f0,_0xa9ce('0xe5'));}var _0x4a90f0=this['getSound']['sync'](this,_0x1078f0[_0xa9ce('0xe4')]);if(!_0x4a90f0){return this['channel'][_0xa9ce('0x28')](_0x1078f0,_0xa9ce('0xe6'));}if(!this[_0xa9ce('0x80')](_0x1078f0[_0xa9ce('0xb3')])){return this[_0xa9ce('0x9')]['error'](_0xa9ce('0xb4'));}var _0x31c503=this[_0xa9ce('0x9')]['getData'](_0x4a90f0,_0x1078f0[_0xa9ce('0xe7')],_0x1078f0[_0xa9ce('0xe8')]);var _0x55ee84=_0x31c503[_0xa9ce('0x7d')]?_0x31c503[_0xa9ce('0x7d')][_0xa9ce('0x48')]():'';logger[_0xa9ce('0x2a')](_0xa9ce('0xe9'),JSON[_0xa9ce('0xea')](_0x31c503));if(_0x31c503['result']===-0x1){this[_0xa9ce('0x31')][_0xa9ce('0x93')](this,_0x1078f0,_0x55ee84);return _0x31c503;}else if(_0x31c503[_0xa9ce('0x7b')]===_0xa9ce('0x89')){_0x31c503[_0xa9ce('0x7d')]=_0x55ee84['length']>=parseInt(_0x1078f0[_0xa9ce('0xeb')])?'x':'i';}else{_0x31c503['result']=_0x55ee84[_0xa9ce('0x78')]>=parseInt(_0x1078f0[_0xa9ce('0xeb')])&&_0x55ee84['length']<=parseInt(_0x1078f0[_0xa9ce('0xe8')])?'x':'i';}var _0x2ac9da=this['getVariable'][_0xa9ce('0x93')](this,_0x1078f0[_0xa9ce('0xb3')]);if(!_0x2ac9da){return this[_0xa9ce('0x9')][_0xa9ce('0x28')](_0x1078f0,'no\x20variable\x20found');}this[_0xa9ce('0x9')][_0xa9ce('0x7f')](_0x2ac9da,_0x55ee84);if(this[_0xa9ce('0x80')](_0x1078f0['hiddendigitsnum'])){var _0x280a75=parseInt(_0x1078f0[_0xa9ce('0xec')],0xa);var _0x47f492=rs[_0xa9ce('0xed')]({'charset':'*','length':_0x280a75});var _0x27fed7=_0x55ee84['length'];if(_0x27fed7>0x0){if(_0x27fed7>_0x280a75){this['createSquareDetailsReport'][_0xa9ce('0x93')](this,_0x1078f0,_0x1078f0[_0xa9ce('0xee')]===_0xa9ce('0xef')?_0x47f492+_0x55ee84[_0xa9ce('0xf0')](_0x280a75):_0x55ee84[_0xa9ce('0xf0')](0x0,_0x27fed7-_0x280a75)+_0x47f492);}else{this[_0xa9ce('0x31')][_0xa9ce('0x93')](this,_0x1078f0,rs[_0xa9ce('0xed')]({'charset':'*','length':_0x27fed7}));}}else{this[_0xa9ce('0x31')][_0xa9ce('0x93')](this,_0x1078f0,'');}}else{this[_0xa9ce('0x31')]['sync'](this,_0x1078f0,_0x55ee84);}return _0x31c503;};AGIVertices['prototype'][_0xa9ce('0x8')]=function(_0x63ffc0){logger[_0xa9ce('0x2a')](util[_0xa9ce('0x24')]('Enter\x20in\x20GETSECRETDIGITS\x20(%s)\x20block',_0x63ffc0[_0xa9ce('0x33')]));return this['getdigits'](_0x63ffc0);};AGIVertices['prototype']['goal']=function(_0x2eb6b0){logger[_0xa9ce('0x2a')](util[_0xa9ce('0x24')]('Enter\x20in\x20GOAL\x20(%s)\x20block',_0x2eb6b0[_0xa9ce('0x33')]));this['createSquareDetailsReport']['sync'](this,_0x2eb6b0,_0x2eb6b0[_0xa9ce('0xf1')]);return this[_0xa9ce('0x9')][_0xa9ce('0x94')](util[_0xa9ce('0x24')](_0xa9ce('0xf2'),_0x2eb6b0[_0xa9ce('0xf1')]));};AGIVertices[_0xa9ce('0x19')][_0xa9ce('0xf3')]=function(_0x3ebca1){logger[_0xa9ce('0x2a')](util[_0xa9ce('0x24')]('[AGI]\x20Enter\x20in\x20AWSPOLLY\x20(%s)\x20block',_0x3ebca1[_0xa9ce('0x33')]));if(!this[_0xa9ce('0x80')](_0x3ebca1['aws_access_key_id'])||!this['isConfigured'](_0x3ebca1[_0xa9ce('0x63')])){return this['channel'][_0xa9ce('0x94')]('no\x20valid\x20credentials\x20configured');}if(!this[_0xa9ce('0x80')](_0x3ebca1[_0xa9ce('0x56')])){return this['channel'][_0xa9ce('0x94')](_0xa9ce('0x9a'));}this[_0xa9ce('0x9')][_0xa9ce('0x94')](util[_0xa9ce('0x24')]('Trying\x20aws\x20Polly\x20%s',_0x3ebca1[_0xa9ce('0x56')]));var _0xaa7bb3=this[_0xa9ce('0x61')][_0xa9ce('0x93')](this,_0x3ebca1);if(_0xaa7bb3){this[_0xa9ce('0x9')][_0xa9ce('0x94')](util[_0xa9ce('0x24')](_0xa9ce('0xf4'),_0xaa7bb3));var _0x10c27a=this[_0xa9ce('0x9')]['streamFile'](_0xaa7bb3);try{fs[_0xa9ce('0xd8')](_0xaa7bb3+'.wav');}catch(_0x26f709){logger[_0xa9ce('0x28')](_0x26f709);}return _0x10c27a;}return this[_0xa9ce('0x9')][_0xa9ce('0x28')](_0x3ebca1,_0xa9ce('0xf5'));};AGIVertices[_0xa9ce('0x19')][_0xa9ce('0xf6')]=function(_0x1ae2f9){logger[_0xa9ce('0x2a')](util[_0xa9ce('0x24')]('Enter\x20in\x20Amazon\x20Lex\x20(%s)\x20block',_0x1ae2f9['label']));if(!this[_0xa9ce('0x80')](_0x1ae2f9[_0xa9ce('0x62')])||!this[_0xa9ce('0x80')](_0x1ae2f9[_0xa9ce('0x63')])){return this[_0xa9ce('0x9')][_0xa9ce('0x94')](_0xa9ce('0xf7'));}if(!this[_0xa9ce('0x80')](_0x1ae2f9[_0xa9ce('0x6a')])){return this['channel']['noop']('no\x20bot\x20name\x20configured');}if(!this[_0xa9ce('0x80')](_0x1ae2f9[_0xa9ce('0x56')])){return this[_0xa9ce('0x9')]['noop'](_0xa9ce('0x9a'));}this['channel'][_0xa9ce('0xc7')]=!![];this['createSquareDetailsReport'](_0x1ae2f9);this['createSquareMessage'](_0x1ae2f9[_0xa9ce('0x56')],'in');this[_0xa9ce('0x9')][_0xa9ce('0x94')](util['format'](_0xa9ce('0xf8'),_0x1ae2f9['text']));var _0x24e7b2=this[_0xa9ce('0x68')][_0xa9ce('0x93')](this,_0x1ae2f9);if(_0x24e7b2){for(var _0x187441 in _0x24e7b2){if(_0x24e7b2[_0xa9ce('0x74')](_0x187441)&&_[_0xa9ce('0x75')](_0x24e7b2[_0x187441])){this[_0xa9ce('0x9')][_0xa9ce('0x7f')](util[_0xa9ce('0x24')](_0xa9ce('0xf9'),_0x187441[_0xa9ce('0xc9')]()),_0x24e7b2[_0x187441]);}}if(_[_0xa9ce('0x41')](_0x24e7b2[_0xa9ce('0xfa')])){return this[_0xa9ce('0x9')][_0xa9ce('0x94')](_0xa9ce('0xfb'));}else{this[_0xa9ce('0x3e')](_0x24e7b2[_0xa9ce('0xfa')],'out');return this[_0xa9ce('0x9')]['noop'](util[_0xa9ce('0x24')](_0xa9ce('0xfc'),_0x24e7b2[_0xa9ce('0xfa')]));}}return this[_0xa9ce('0x9')][_0xa9ce('0x28')](_0x1ae2f9,_0xa9ce('0xfd'));};AGIVertices[_0xa9ce('0x19')][_0xa9ce('0xfe')]=function(_0x37bd2b){logger[_0xa9ce('0x2a')](util[_0xa9ce('0x24')]('Enter\x20in\x20GOOGLEASR\x20(%s)\x20block\x20%s',_0x37bd2b[_0xa9ce('0x33')],_0x37bd2b[_0xa9ce('0x89')]));if(!this[_0xa9ce('0x80')](_0x37bd2b[_0xa9ce('0x58')])){return this['channel']['noop'](_0xa9ce('0xff'));}var _0x2151e8=_0xa9ce('0x100');var _0x431c9f=util[_0xa9ce('0x24')](_0xa9ce('0x101'),FILES_PATH,rs[_0xa9ce('0xed')](0x4));var _0x56e226=util['format']('%s.%s',_0x431c9f,_0x2151e8);var _0xd77360=!![];if(_0x37bd2b[_0xa9ce('0x102')]===_0xa9ce('0x103')){_0xd77360=![];}var _0x3b6a1b=this[_0xa9ce('0x9')][_0xa9ce('0x104')](_0x431c9f,_0x2151e8,_0x37bd2b[_0xa9ce('0x105')],_0x37bd2b[_0xa9ce('0x89')],undefined,_0xd77360);if(_0x3b6a1b['result']!==-0x1){this[_0xa9ce('0x9')]['noop'](util[_0xa9ce('0x24')](_0xa9ce('0x106'),_0x56e226));var _0x41e6b=this[_0xa9ce('0x6b')][_0xa9ce('0x93')](this,_0x37bd2b,_0x56e226);if(_0x41e6b){for(var _0x549b17 in _0x41e6b){if(_0x41e6b[_0xa9ce('0x74')](_0x549b17)){this[_0xa9ce('0x9')][_0xa9ce('0x7f')](util[_0xa9ce('0x24')](_0xa9ce('0x107'),_0x549b17[_0xa9ce('0xc9')]()),_0x41e6b[_0x549b17]);}}return this['channel']['noop'](util[_0xa9ce('0x24')](_0xa9ce('0x108'),JSON[_0xa9ce('0xea')](_0x41e6b)));}}return _0x3b6a1b;};AGIVertices[_0xa9ce('0x19')][_0xa9ce('0x109')]=function(_0x4199df){logger['info'](util[_0xa9ce('0x24')](_0xa9ce('0x10a'),_0x4199df[_0xa9ce('0x33')]));if(!this['isConfigured'](_0x4199df[_0xa9ce('0x6f')])){return this[_0xa9ce('0x9')][_0xa9ce('0x94')](_0xa9ce('0x10b'));}if(!this[_0xa9ce('0x80')](_0x4199df['appsecret'])){return this[_0xa9ce('0x9')][_0xa9ce('0x94')](_0xa9ce('0x10c'));}var _0x2129f7=_0xa9ce('0x100');var _0x4dc9fd=util[_0xa9ce('0x24')](_0xa9ce('0x101'),FILES_PATH,rs[_0xa9ce('0xed')](0x4));var _0x1153cd=util['format'](_0xa9ce('0x10d'),_0x4dc9fd,_0x2129f7);var _0x6f287a=!![];if(_0x4199df[_0xa9ce('0x102')]==='NOBEEP'){_0x6f287a=![];}var _0x2009c6=this[_0xa9ce('0x9')][_0xa9ce('0x104')](_0x4dc9fd,_0x2129f7,_0x4199df[_0xa9ce('0x105')],_0x4199df[_0xa9ce('0x89')],undefined,_0x6f287a);if(_0x2009c6['result']!==-0x1){this['channel'][_0xa9ce('0x94')](util[_0xa9ce('0x24')](_0xa9ce('0x10e'),_0x1153cd));var _0xcccd39=this[_0xa9ce('0x6e')][_0xa9ce('0x93')](this,_0x4199df,_0x1153cd);if(_0xcccd39){for(var _0x1c42ed in _0xcccd39){if(_0xcccd39['hasOwnProperty'](_0x1c42ed)){this[_0xa9ce('0x9')][_0xa9ce('0x7f')](util[_0xa9ce('0x24')](_0xa9ce('0x10f'),_0x1c42ed[_0xa9ce('0xc9')]()),_0xcccd39[_0x1c42ed]);}}return this[_0xa9ce('0x9')][_0xa9ce('0x94')](util['format'](_0xa9ce('0x110'),JSON[_0xa9ce('0xea')](_0xcccd39)));}}return _0x2009c6;};AGIVertices[_0xa9ce('0x19')][_0xa9ce('0x111')]=function(_0x1967aa){logger[_0xa9ce('0x2a')](util[_0xa9ce('0x24')]('Enter\x20in\x20GOTO\x20(%s)\x20block',_0x1967aa['label']));return this[_0xa9ce('0x9')][_0xa9ce('0x112')](_0x1967aa[_0xa9ce('0x38')],_0x1967aa[_0xa9ce('0x113')],_0x1967aa['priority']);};AGIVertices[_0xa9ce('0x19')]['gotoif']=function(_0x127909){logger[_0xa9ce('0x2a')](util[_0xa9ce('0x24')](_0xa9ce('0x114'),_0x127909[_0xa9ce('0x33')]));if(!this[_0xa9ce('0x80')](_0x127909['condition'])){return this['channel'][_0xa9ce('0x28')](_0x127909,_0xa9ce('0x115'));}try{var _0x2c339e=eval(_0x127909[_0xa9ce('0x116')])?_0xa9ce('0x117'):_0xa9ce('0x118');this[_0xa9ce('0x9')][_0xa9ce('0x94')](util['format'](_0xa9ce('0x119'),_0x127909['condition'],_0x2c339e));return{'code':0xc8,'result':_0x2c339e};}catch(_0x43ab5e){return{'code':0xc8,'result':_0xa9ce('0x118')};}};AGIVertices[_0xa9ce('0x19')][_0xa9ce('0x11a')]=function(_0x225fc7){logger[_0xa9ce('0x2a')](util[_0xa9ce('0x24')](_0xa9ce('0x11b'),_0x225fc7[_0xa9ce('0x33')]));if(!this[_0xa9ce('0x80')](_0x225fc7[_0xa9ce('0x11c')])){return this[_0xa9ce('0x9')][_0xa9ce('0x28')](_0x225fc7,_0xa9ce('0x11d'));}var _0x3cddb8=this[_0xa9ce('0x1e')][_0xa9ce('0x93')](this,_0x225fc7['interval_id']);if(!_0x3cddb8){return this[_0xa9ce('0x9')][_0xa9ce('0x28')](_0x225fc7,_0xa9ce('0x11e'));}for(var _0x208aa8=0x0;_0x208aa8<_0x3cddb8['length'];_0x208aa8+=0x1){var _0x3ea87d=this[_0xa9ce('0x9')][_0xa9ce('0x7a')](util['format'](_0xa9ce('0x11f'),_0x3cddb8[_0x208aa8]));if(_0x3ea87d[_0xa9ce('0x7d')]===-0x1){return _0x3ea87d;}logger[_0xa9ce('0x2a')](util[_0xa9ce('0x24')]('IFTIME\x20%s\x20%s',_0x3cddb8[_0x208aa8],_0x3ea87d[_0xa9ce('0x7b')]));if(_0x3ea87d['extra']===_0xa9ce('0x117')){logger[_0xa9ce('0x2a')](util[_0xa9ce('0x24')]('IFTIME\x20%s\x20%s',_0x3cddb8[_0x208aa8],_0xa9ce('0x117')));this['channel'][_0xa9ce('0x94')](util[_0xa9ce('0x24')](_0xa9ce('0x120'),_0x3cddb8[_0x208aa8],_0xa9ce('0x117')));return{'code':0xc8,'result':_0xa9ce('0x117')};}else{logger[_0xa9ce('0x2a')](util[_0xa9ce('0x24')](_0xa9ce('0x120'),_0x3cddb8[_0x208aa8],_0xa9ce('0x118')));this[_0xa9ce('0x9')]['noop'](util[_0xa9ce('0x24')](_0xa9ce('0x120'),_0x3cddb8[_0x208aa8],_0xa9ce('0x118')));}}return{'code':0xc8,'result':_0xa9ce('0x118')};};AGIVertices[_0xa9ce('0x19')][_0xa9ce('0x121')]=function(_0x5b37cb){logger[_0xa9ce('0x2a')](util[_0xa9ce('0x24')](_0xa9ce('0x122'),_0x5b37cb[_0xa9ce('0x33')]));return this[_0xa9ce('0x9')]['hangup']();};AGIVertices[_0xa9ce('0x19')][_0xa9ce('0x123')]=function(_0x59afe8){logger[_0xa9ce('0x2a')](util[_0xa9ce('0x24')]('Enter\x20in\x20ISPEECHASR\x20(%s)\x20block',_0x59afe8[_0xa9ce('0x33')]));if(!this[_0xa9ce('0x80')](_0x59afe8[_0xa9ce('0x58')])){return this['channel'][_0xa9ce('0x94')](_0xa9ce('0xff'));}var _0x2a96c1=_0xa9ce('0x100');var _0x5d0d3b=util[_0xa9ce('0x24')]('%s/recordings/%s',FILES_PATH,rs[_0xa9ce('0xed')](0x4));var _0x250bd2=util[_0xa9ce('0x24')]('%s.%s',_0x5d0d3b,_0x2a96c1);var _0x4d86fa=!![];if(_0x59afe8[_0xa9ce('0x102')]===_0xa9ce('0x103')){_0x4d86fa=![];}var _0x34a6d8=this[_0xa9ce('0x9')][_0xa9ce('0x104')](_0x5d0d3b,_0x2a96c1,_0x59afe8[_0xa9ce('0x105')],_0x59afe8[_0xa9ce('0x89')],undefined,_0x4d86fa);if(_0x34a6d8[_0xa9ce('0x7d')]!==-0x1){this['channel']['noop'](util[_0xa9ce('0x24')](_0xa9ce('0x124'),_0x250bd2));var _0x28444c=this['ispeechASR'][_0xa9ce('0x93')](this,_0x59afe8,_0x250bd2);if(_0x28444c){for(var _0x5dd630 in _0x28444c){if(_0x28444c[_0xa9ce('0x74')](_0x5dd630)){this[_0xa9ce('0x9')]['setVariable'](util[_0xa9ce('0x24')]('ISPEECH_ASR_%s',_0x5dd630[_0xa9ce('0xc9')]()),_0x28444c[_0x5dd630]);}}return this[_0xa9ce('0x9')][_0xa9ce('0x94')](util[_0xa9ce('0x24')](_0xa9ce('0x125'),JSON[_0xa9ce('0xea')](_0x28444c)));}}return _0x34a6d8;};AGIVertices['prototype'][_0xa9ce('0x126')]=function(_0x1db19b){logger[_0xa9ce('0x2a')](util[_0xa9ce('0x24')](_0xa9ce('0x127'),_0x1db19b['label']));if(!this['isConfigured'](_0x1db19b['key'])){return this['channel'][_0xa9ce('0x94')]('no\x20key\x20configured');}if(!this['isConfigured'](_0x1db19b[_0xa9ce('0x56')])){return this[_0xa9ce('0x9')][_0xa9ce('0x94')](_0xa9ce('0x9a'));}this[_0xa9ce('0x9')]['noop'](util[_0xa9ce('0x24')](_0xa9ce('0x128'),_0x1db19b[_0xa9ce('0x56')]));var _0x4fedb4=this[_0xa9ce('0x5b')][_0xa9ce('0x93')](this,_0x1db19b);if(_0x4fedb4){this[_0xa9ce('0x9')][_0xa9ce('0x94')](util[_0xa9ce('0x24')](_0xa9ce('0x124'),_0x4fedb4));var _0x113442=this[_0xa9ce('0x9')]['streamFile'](_0x4fedb4,_0x1db19b['intKey']);try{fs[_0xa9ce('0xd8')](_0x4fedb4+_0xa9ce('0xd9'));}catch(_0x4bbbb4){logger[_0xa9ce('0x28')](_0x4bbbb4);}return _0x113442;}return this['channel']['error'](_0x1db19b,_0xa9ce('0x129'));};AGIVertices[_0xa9ce('0x19')][_0xa9ce('0x12a')]=function(_0x5c89f7){logger[_0xa9ce('0x2a')](util[_0xa9ce('0x24')](_0xa9ce('0x12b'),_0x5c89f7[_0xa9ce('0x33')]));if(!this[_0xa9ce('0x80')](_0x5c89f7['findBy'])){return this[_0xa9ce('0x9')]['error'](_0x5c89f7,'no\x20find\x20by\x20configured');}logger['info'](util[_0xa9ce('0x24')](_0xa9ce('0x12c'),this[_0xa9ce('0x9')][_0xa9ce('0x35')],_0x5c89f7['findBy']));var _0x556154=this['agentLogin'][_0xa9ce('0x93')](this,_0x5c89f7['findBy']);if(_0x556154){logger['info'](util['format'](_0xa9ce('0x12d'),this[_0xa9ce('0x9')]['callerid'],_0x5c89f7[_0xa9ce('0x12e')]));this['channel']['noop'](util[_0xa9ce('0x24')](_0xa9ce('0x12d'),this[_0xa9ce('0x9')][_0xa9ce('0x35')],_0x5c89f7[_0xa9ce('0x12e')]));return{'code':0xc8,'result':'success'};}else{logger['info'](util[_0xa9ce('0x24')](_0xa9ce('0x12f'),this[_0xa9ce('0x9')][_0xa9ce('0x35')],_0x5c89f7['findBy']));this[_0xa9ce('0x9')][_0xa9ce('0x94')](util[_0xa9ce('0x24')](_0xa9ce('0x12f'),this[_0xa9ce('0x9')][_0xa9ce('0x35')],_0x5c89f7[_0xa9ce('0x12e')]));return{'code':0xc8,'result':_0xa9ce('0x130')};}};AGIVertices[_0xa9ce('0x19')]['logout']=function(_0x3f81c8){logger[_0xa9ce('0x2a')](util[_0xa9ce('0x24')]('Enter\x20in\x20LOGOUT\x20(%s)\x20block',_0x3f81c8['label']));if(!this[_0xa9ce('0x80')](_0x3f81c8[_0xa9ce('0x12e')])){return this[_0xa9ce('0x9')]['error'](_0x3f81c8,_0xa9ce('0x131'));}logger[_0xa9ce('0x2a')](util[_0xa9ce('0x24')]('FIND\x20AGENT\x20%s\x20BY\x20%s',this[_0xa9ce('0x9')]['callerid'],_0x3f81c8[_0xa9ce('0x12e')]));var _0x424ebe=this['agentLogout'][_0xa9ce('0x93')](this,_0x3f81c8[_0xa9ce('0x12e')]);if(_0x424ebe){logger['info'](util[_0xa9ce('0x24')](_0xa9ce('0x12d'),this[_0xa9ce('0x9')][_0xa9ce('0x35')],_0x3f81c8[_0xa9ce('0x12e')]));this['channel'][_0xa9ce('0x94')](util[_0xa9ce('0x24')]('AGENT\x20%s\x20FOUND\x20BY',this[_0xa9ce('0x9')][_0xa9ce('0x35')],_0x3f81c8[_0xa9ce('0x12e')]));return{'code':0xc8,'result':_0xa9ce('0x132')};}else{logger[_0xa9ce('0x2a')](util[_0xa9ce('0x24')](_0xa9ce('0x12f'),this['channel'][_0xa9ce('0x35')],_0x3f81c8[_0xa9ce('0x12e')]));this[_0xa9ce('0x9')][_0xa9ce('0x94')](util[_0xa9ce('0x24')](_0xa9ce('0x12f'),this[_0xa9ce('0x9')]['callerid'],_0x3f81c8[_0xa9ce('0x12e')]));return{'code':0xc8,'result':'failure'};}};AGIVertices['prototype']['math']=function(_0x511eee){logger['info'](util[_0xa9ce('0x24')](_0xa9ce('0x133'),_0x511eee['label']));if(!this[_0xa9ce('0x80')](_0x511eee['operation'])){return this['channel']['error'](_0x511eee,_0xa9ce('0x134'));}this[_0xa9ce('0x9')][_0xa9ce('0x94')](util[_0xa9ce('0x24')](_0xa9ce('0x135'),_0x511eee['operation']));var _0x36d119=eval(_0x511eee[_0xa9ce('0x136')]);if(!this[_0xa9ce('0x80')](_0x511eee['variable_id'])){return this['channel']['noop'](_0xa9ce('0xb4'));}var _0x56fbbd=this[_0xa9ce('0x7a')][_0xa9ce('0x93')](this,_0x511eee[_0xa9ce('0xb3')]);if(!_0x56fbbd){return this[_0xa9ce('0x9')][_0xa9ce('0x28')](_0x511eee,_0xa9ce('0xb5'));}if(_[_0xa9ce('0x137')](_0x36d119)){var _0x4a861d=this;_0x36d119[_0xa9ce('0xb7')](function(_0x1d7b18,_0x1b4180){_0x4a861d[_0xa9ce('0x9')][_0xa9ce('0x7f')](util[_0xa9ce('0x24')](_0xa9ce('0x138'),_0x56fbbd,_0x1b4180),_0x1d7b18);});return this['channel'][_0xa9ce('0x94')](util['format']('variable\x20%s[key]\x20set',_0x56fbbd));}else{return this[_0xa9ce('0x9')]['setVariable'](_0x56fbbd,_0x36d119);}};AGIVertices[_0xa9ce('0x19')][_0xa9ce('0x139')]=function(_0x548190){logger[_0xa9ce('0x2a')](util[_0xa9ce('0x24')]('Enter\x20in\x20MENU\x20(%s)\x20block',_0x548190['label']));if(_0x548190[_0xa9ce('0x82')]===0x0){return this['maxRetry'](_0x548190);}_0x548190[_0xa9ce('0x82')]-=0x1;if(!this[_0xa9ce('0x80')](_0x548190[_0xa9ce('0xe4')])){return this[_0xa9ce('0x9')][_0xa9ce('0x28')](_0x548190,_0xa9ce('0xe5'));}var _0x372570=this[_0xa9ce('0x13a')][_0xa9ce('0x93')](this,_0x548190['file_id']);if(!_0x372570){return this[_0xa9ce('0x9')][_0xa9ce('0x28')](_0x548190,_0xa9ce('0xe6'));}var _0x4d714d=this[_0xa9ce('0x9')][_0xa9ce('0x13b')](_0x372570,_0x548190['response'],_0x548190[_0xa9ce('0x13c')]);var _0xb7c01a=_0x4d714d['result'];if(_0x4d714d[_0xa9ce('0x7d')]===-0x1){this[_0xa9ce('0x31')][_0xa9ce('0x93')](this,_0x548190,'-1');return _0x4d714d;}else if(_0x4d714d[_0xa9ce('0x7b')]===_0xa9ce('0x89')){_0x4d714d[_0xa9ce('0x7d')]=_0x4d714d[_0xa9ce('0x7d')]['length']>0x0?_0x4d714d[_0xa9ce('0x7d')]:'t';}else if(_[_0xa9ce('0x40')](_0x4d714d['result'])){_0x4d714d[_0xa9ce('0x7d')]='#';_0xb7c01a='#';}if(!this[_0xa9ce('0x80')](_0x548190[_0xa9ce('0xb3')])){this['channel'][_0xa9ce('0x94')](_0xa9ce('0xb4'));}else{var _0x3df80b=this['getVariable']['sync'](this,_0x548190[_0xa9ce('0xb3')]);if(!_0x3df80b){return this[_0xa9ce('0x9')][_0xa9ce('0x28')](_0x548190,_0xa9ce('0xb5'));}this[_0xa9ce('0x9')][_0xa9ce('0x7f')](_0x3df80b,_0xb7c01a);}this['createSquareDetailsReport'][_0xa9ce('0x93')](this,_0x548190,_0xb7c01a);return _0x4d714d;};AGIVertices[_0xa9ce('0x19')][_0xa9ce('0x94')]=function(_0x458cbb){logger['info'](util[_0xa9ce('0x24')](_0xa9ce('0x13d'),_0x458cbb['label']));return this['channel']['noop'](_0x458cbb[_0xa9ce('0x13e')]||_0x458cbb[_0xa9ce('0x33')]);};AGIVertices['prototype'][_0xa9ce('0x13f')]=function(_0x30ca88){logger['info'](util[_0xa9ce('0x24')](_0xa9ce('0x140'),_0x30ca88['label']));if(!this[_0xa9ce('0x80')](_0x30ca88[_0xa9ce('0x12e')])){return this['channel'][_0xa9ce('0x28')](_0x30ca88,_0xa9ce('0x131'));}logger[_0xa9ce('0x2a')](util[_0xa9ce('0x24')](_0xa9ce('0x12c'),this[_0xa9ce('0x9')][_0xa9ce('0x35')],_0x30ca88[_0xa9ce('0x12e')]));var _0x21eaf5=this[_0xa9ce('0x49')]['sync'](this,_0x30ca88[_0xa9ce('0x141')]);var _0x5580a8=this[_0xa9ce('0x4c')][_0xa9ce('0x93')](this,_0x30ca88['findBy'],_0x21eaf5);if(_0x5580a8){logger['info'](util[_0xa9ce('0x24')]('AGENT\x20%s\x20FOUND\x20BY',this[_0xa9ce('0x9')]['callerid'],_0x30ca88[_0xa9ce('0x12e')]));this['channel'][_0xa9ce('0x94')](util[_0xa9ce('0x24')](_0xa9ce('0x12d'),this[_0xa9ce('0x9')][_0xa9ce('0x35')],_0x30ca88[_0xa9ce('0x12e')]));return{'code':0xc8,'result':'success'};}else{logger['info'](util[_0xa9ce('0x24')](_0xa9ce('0x12f'),this[_0xa9ce('0x9')][_0xa9ce('0x35')],_0x30ca88['findBy']));this[_0xa9ce('0x9')]['noop'](util['format'](_0xa9ce('0x12d'),this[_0xa9ce('0x9')][_0xa9ce('0x35')],_0x30ca88[_0xa9ce('0x12e')]));return{'code':0xc8,'result':_0xa9ce('0x130')};}};AGIVertices[_0xa9ce('0x19')]['playback']=function(_0x21f504){logger[_0xa9ce('0x2a')](util[_0xa9ce('0x24')](_0xa9ce('0x142'),_0x21f504[_0xa9ce('0x33')]));if(!this[_0xa9ce('0x80')](_0x21f504[_0xa9ce('0xe4')])){return this[_0xa9ce('0x9')][_0xa9ce('0x28')](_0x21f504,'no\x20file\x20audio\x20selected');}var _0x45f540=this[_0xa9ce('0x13a')][_0xa9ce('0x93')](this,_0x21f504[_0xa9ce('0xe4')]);if(!_0x45f540){return this[_0xa9ce('0x9')][_0xa9ce('0x28')](_0x21f504,_0xa9ce('0xe6'));}var _0x51dd07=this[_0xa9ce('0x9')][_0xa9ce('0x53')](_0xa9ce('0x143'),[_0x45f540,_0x21f504['opts']]);if(_0x51dd07[_0xa9ce('0x7d')]===-0x1){return _0x51dd07;}return this[_0xa9ce('0x9')][_0xa9ce('0x94')](util[_0xa9ce('0x24')](_0xa9ce('0x144'),_0xa9ce('0x143'),_0x45f540));};AGIVertices[_0xa9ce('0x19')][_0xa9ce('0x145')]=function(_0x5b0adf){logger[_0xa9ce('0x2a')](util[_0xa9ce('0x24')](_0xa9ce('0x146'),_0x5b0adf['label']));if(!this[_0xa9ce('0x80')](_0x5b0adf[_0xa9ce('0x147')])){return this[_0xa9ce('0x9')][_0xa9ce('0x28')](_0x5b0adf,'no\x20queue\x20selected');}var _0x315ce7='';var _0xd47241=parseInt(_0x5b0adf['queue_id'],0xa);if(isNaN(_0xd47241)){_0x315ce7=_0x5b0adf[_0xa9ce('0x147')];}else{_0x315ce7=this['getVoiceQueue']['sync'](this,_0x5b0adf[_0xa9ce('0x147')]);if(!_0x315ce7){return this['channel'][_0xa9ce('0x28')](_0x5b0adf,'no\x20queue\x20found');}}var _0x308502='';if(this['isConfigured'](_0x5b0adf[_0xa9ce('0xe4')])){var _0x863cb6=this[_0xa9ce('0x13a')][_0xa9ce('0x93')](this,_0x5b0adf['file_id']);if(_0x863cb6){_0x308502=_0x863cb6;}}this['createSquareDetailsReport'][_0xa9ce('0x93')](this,_0x5b0adf,_0x315ce7);if(_0x5b0adf[_0xa9ce('0xc2')][_0xa9ce('0x148')]('x')<0x0){_0x5b0adf[_0xa9ce('0xc2')]+='x';}if(_0x5b0adf[_0xa9ce('0xc2')]['indexOf']('X')<0x0){_0x5b0adf['opts']+='X';}this[_0xa9ce('0x9')]['setVariable'](_0xa9ce('0x149'),_0x315ce7?_0x315ce7[_0xa9ce('0x14a')]():'');var _0x3209d4=this['channel']['exec'](_0xa9ce('0x14b'),[_0x315ce7,_0x5b0adf[_0xa9ce('0xc2')],_0x5b0adf[_0xa9ce('0xc3')],_0x308502,_0x5b0adf[_0xa9ce('0x89')],_0x5b0adf[_0xa9ce('0x84')],_0x5b0adf['macro'],_0x5b0adf[_0xa9ce('0x14c')],'',_0x5b0adf[_0xa9ce('0x14d')]]);if(_0x3209d4[_0xa9ce('0x7d')]===-0x1){return _0x3209d4;}return this[_0xa9ce('0x9')][_0xa9ce('0x94')](util[_0xa9ce('0x24')](_0xa9ce('0x144'),'QUEUE',_0x315ce7));};AGIVertices[_0xa9ce('0x19')][_0xa9ce('0x14e')]=function(_0x327b95){logger[_0xa9ce('0x2a')](util['format'](_0xa9ce('0x14f'),_0x327b95[_0xa9ce('0x33')]));var _0x2d5f75=_0x327b95[_0xa9ce('0x150')]||_0xa9ce('0x100');var _0xc87c89=util['format'](_0xa9ce('0x151'),this['channel'][_0xa9ce('0x32')],rs[_0xa9ce('0xed')](0x5));var _0x2896a3=util[_0xa9ce('0x24')](_0xa9ce('0x152'),FILES_PATH,_0xc87c89,_0x2d5f75);var _0x551445=util[_0xa9ce('0x24')](_0xa9ce('0x101'),FILES_PATH,_0xc87c89);this['createSquareRecording'][_0xa9ce('0x93')](this,_0x327b95,_0xc87c89,_0x2896a3);this[_0xa9ce('0x9')][_0xa9ce('0x7f')]('RECORDING_SAVENAME',_0xc87c89);logger[_0xa9ce('0x2a')](_0xa9ce('0x153'),_0x551445,_0x2d5f75,_0x327b95[_0xa9ce('0x154')],_0x327b95[_0xa9ce('0x89')]);return this[_0xa9ce('0x9')][_0xa9ce('0x104')](_0x551445,_0x2d5f75,_0x327b95[_0xa9ce('0x154')],_0x327b95['timeout'],undefined,!![]);};AGIVertices['prototype']['saydigits']=function(_0x96f163){logger[_0xa9ce('0x2a')](util[_0xa9ce('0x24')]('Enter\x20in\x20SAYDIGITS\x20(%s)\x20block',_0x96f163[_0xa9ce('0x33')]));return this[_0xa9ce('0x9')][_0xa9ce('0x155')](_0x96f163[_0xa9ce('0x156')][_0xa9ce('0x55')](/\s+/g,''),_0x96f163['escape_digits']);};AGIVertices[_0xa9ce('0x19')][_0xa9ce('0x157')]=function(_0x49a1b5){logger[_0xa9ce('0x2a')](util['format'](_0xa9ce('0x158'),_0x49a1b5[_0xa9ce('0x33')]));return this[_0xa9ce('0x9')][_0xa9ce('0x159')](_0x49a1b5[_0xa9ce('0x15a')][_0xa9ce('0x55')](/\s+/g,''),_0x49a1b5['escape_digits']);};AGIVertices['prototype']['sayphonetic']=function(_0x40eb82){logger[_0xa9ce('0x2a')](util['format'](_0xa9ce('0x15b'),_0x40eb82[_0xa9ce('0x33')]));return this[_0xa9ce('0x9')][_0xa9ce('0x15c')](_0x40eb82['text'],_0x40eb82[_0xa9ce('0x154')]);};AGIVertices['prototype'][_0xa9ce('0x15d')]=function(_0x5d2a58){logger[_0xa9ce('0x2a')](util['format']('Enter\x20in\x20SENDMAIL\x20(%s)\x20block',_0x5d2a58[_0xa9ce('0x33')]));if(!this[_0xa9ce('0x80')](_0x5d2a58['account_id'])){return this[_0xa9ce('0x9')][_0xa9ce('0x94')](_0xa9ce('0x15e'));}var _0x5445fe=this[_0xa9ce('0x1c')][_0xa9ce('0x93')](this,_0x5d2a58[_0xa9ce('0x15f')]);if(!_0x5445fe||!_0x5445fe[_0xa9ce('0x160')]){return this['channel'][_0xa9ce('0x28')](_0x5d2a58,_0xa9ce('0x161'));}var _0x3f5064={'from':util[_0xa9ce('0x24')]('\x22%s\x22\x20<%s>',_0x5445fe[_0xa9ce('0x10')],_0x5445fe[_0xa9ce('0x162')]||_0x5445fe['Smtp']['user']),'to':_0x5d2a58['to']||'','cc':_0x5d2a58['cc']||'','bcc':_0x5d2a58['bcc']||'','subject':_0x5d2a58[_0xa9ce('0x163')],'html':_0x5d2a58['text'],'text':_0x5d2a58[_0xa9ce('0x56')]};var _0x25b65c={'tls':{'rejectUnauthorized':![]}};if(_0x5445fe[_0xa9ce('0x160')]['service']){_0x25b65c[_0xa9ce('0x164')]=_0x5445fe['Smtp'][_0xa9ce('0x164')];}else{_0x25b65c[_0xa9ce('0x165')]=_0x5445fe[_0xa9ce('0x160')][_0xa9ce('0x165')];_0x25b65c[_0xa9ce('0x166')]=_0x5445fe['Smtp'][_0xa9ce('0x166')];_0x25b65c['secure']=_0x5445fe['Smtp'][_0xa9ce('0x167')];}if(_0x5445fe[_0xa9ce('0x160')]['authentication']){_0x25b65c['auth']={'user':_0x5445fe[_0xa9ce('0x160')][_0xa9ce('0x168')],'pass':_0x5445fe[_0xa9ce('0x160')][_0xa9ce('0x169')]};}if(this[_0xa9ce('0x80')](_0x5d2a58['template_id'])){}logger[_0xa9ce('0x16a')](_0xa9ce('0x16b'),JSON[_0xa9ce('0xea')](_0x3f5064));this['createSquareDetailsReport'][_0xa9ce('0x93')](this,_0x5d2a58,_0x5d2a58[_0xa9ce('0x15f')]);this[_0xa9ce('0x9')][_0xa9ce('0x94')](util[_0xa9ce('0x24')](_0xa9ce('0x16c'),_0x5445fe[_0xa9ce('0x10')]));this['sendMailMessage'][_0xa9ce('0x93')](this,_0x25b65c,_0x3f5064);return this[_0xa9ce('0x9')][_0xa9ce('0x94')](_0xa9ce('0x16d'));};AGIVertices[_0xa9ce('0x19')]['sendFax']=function(_0x4ce1d2){logger[_0xa9ce('0x2a')](util['format'](_0xa9ce('0x16e'),_0x4ce1d2[_0xa9ce('0x33')]));return this[_0xa9ce('0x9')][_0xa9ce('0x94')](_0xa9ce('0x16f'));};AGIVertices[_0xa9ce('0x19')][_0xa9ce('0x170')]=function(_0xdb2c8b){logger[_0xa9ce('0x2a')](util[_0xa9ce('0x24')](_0xa9ce('0x171'),_0xdb2c8b[_0xa9ce('0x33')]));if(!this[_0xa9ce('0x80')](_0xdb2c8b['sms_account_id'])){return this[_0xa9ce('0x9')][_0xa9ce('0x94')](_0xa9ce('0x172'));}var _0x184a22=this[_0xa9ce('0x173')][_0xa9ce('0x93')](this,_0xdb2c8b[_0xa9ce('0x174')]);if(!_0x184a22){return this[_0xa9ce('0x9')][_0xa9ce('0x28')](_0xdb2c8b,'no\x20sms\x20account\x20found');}var _0x3c02a3={'body':_0xdb2c8b[_0xa9ce('0x175')],'phone':_0xdb2c8b['to']||'','SmsAccountId':_0x184a22['id']};logger['debug']('sendSMS\x20message',JSON[_0xa9ce('0xea')](_0x3c02a3));this[_0xa9ce('0x31')][_0xa9ce('0x93')](this,_0xdb2c8b,_0xdb2c8b[_0xa9ce('0x174')]);this[_0xa9ce('0x9')]['noop'](util[_0xa9ce('0x24')](_0xa9ce('0x176'),_0x184a22[_0xa9ce('0x10')]));this[_0xa9ce('0x30')][_0xa9ce('0x93')](this,_0x3c02a3);return this['channel'][_0xa9ce('0x94')]('Sms\x20message\x20added\x20to\x20outgoing\x20process');};AGIVertices[_0xa9ce('0x19')]['set']=function(_0x1f1fca){logger[_0xa9ce('0x2a')](util['format'](_0xa9ce('0x177'),_0x1f1fca[_0xa9ce('0x33')]));if(!this[_0xa9ce('0x80')](_0x1f1fca['variable_id'])){return this['channel'][_0xa9ce('0x28')](_0x1f1fca,_0xa9ce('0x178'));}var _0x3d75b5=this['getVariable'][_0xa9ce('0x93')](this,_0x1f1fca[_0xa9ce('0xb3')]);if(!_0x3d75b5){return this['channel'][_0xa9ce('0x28')](_0x1f1fca,_0xa9ce('0xb5'));}return this[_0xa9ce('0x9')][_0xa9ce('0x7f')](_0x3d75b5,_0x1f1fca['variable_value']);};AGIVertices[_0xa9ce('0x19')][_0xa9ce('0x179')]=function(_0x486d9a){logger[_0xa9ce('0x2a')](util[_0xa9ce('0x24')](_0xa9ce('0x17a'),_0x486d9a[_0xa9ce('0x33')]));this[_0xa9ce('0x9')]['noop'](_0xa9ce('0x17b'));if(_0x486d9a[_0xa9ce('0x87')]===_0xa9ce('0x17c')){this[_0xa9ce('0x9')][_0xa9ce('0x94')](_0xa9ce('0x17d'));return this[_0xa9ce('0x9')][_0xa9ce('0x87')]();}return this[_0xa9ce('0x9')][_0xa9ce('0x94')]('Skipped\x20Answer');};AGIVertices[_0xa9ce('0x19')][_0xa9ce('0x17e')]=function(_0x384a97){logger[_0xa9ce('0x2a')](util['format'](_0xa9ce('0x17f'),_0x384a97['label']));if(!this['isConfigured'](_0x384a97['project_id'])){return this[_0xa9ce('0x9')][_0xa9ce('0x28')](_0x384a97,_0xa9ce('0x180'));}var _0x3db968=this[_0xa9ce('0x11')][_0xa9ce('0x93')](this,_0x384a97[_0xa9ce('0x181')]);if(!this[_0xa9ce('0x80')](_0x3db968)){return this[_0xa9ce('0x9')][_0xa9ce('0x28')](_0x384a97,util[_0xa9ce('0x24')](_0xa9ce('0x182'),_0x384a97[_0xa9ce('0x181')]));}if(_0x3db968===this[_0xa9ce('0x9')][_0xa9ce('0x3c')]){return this['channel'][_0xa9ce('0x28')](_0x384a97,_0xa9ce('0x183'));}this[_0xa9ce('0x31')]['sync'](this,_0x384a97,_0x3db968);var _0x2902f7=this[_0xa9ce('0x9')][_0xa9ce('0x53')](_0xa9ce('0x184'),util[_0xa9ce('0x24')](_0xa9ce('0x185'),config[_0xa9ce('0x84')][_0xa9ce('0x165')]||_0xa9ce('0x186'),_0x3db968,this['channel'][_0xa9ce('0x3c')]));if(_0x2902f7[_0xa9ce('0x7d')]===-0x1){return _0x2902f7;}return this[_0xa9ce('0x9')]['noop'](util[_0xa9ce('0x24')](_0xa9ce('0x144'),'AGI',_0x3db968));};AGIVertices[_0xa9ce('0x19')][_0xa9ce('0x187')]=function(_0x5e53f6){logger['info'](util[_0xa9ce('0x24')](_0xa9ce('0x188'),_0x5e53f6[_0xa9ce('0x33')]));var _0x50ed46=this[_0xa9ce('0x52')][_0xa9ce('0x93')](this,_0x5e53f6[_0xa9ce('0x85')]);this[_0xa9ce('0x31')][_0xa9ce('0x93')](this,_0x5e53f6,_0x5e53f6[_0xa9ce('0x85')]);if(this[_0xa9ce('0x80')](_0x5e53f6[_0xa9ce('0xb3')])){var _0x5e860f=this[_0xa9ce('0x7a')][_0xa9ce('0x93')](this,_0x5e53f6[_0xa9ce('0xb3')]);if(_0x5e860f){this['channel'][_0xa9ce('0x7f')](_0x5e860f,_0x50ed46);return this['channel'][_0xa9ce('0x94')](util['format'](_0xa9ce('0x189'),_0x5e53f6[_0xa9ce('0x85')],_0x5e860f));}}return this[_0xa9ce('0x9')]['noop'](util['format']('sh\x20command:\x20%s\x20result\x20no\x20stored',_0x5e53f6[_0xa9ce('0x85')]));};AGIVertices[_0xa9ce('0x19')][_0xa9ce('0x18a')]=function(_0x40da80){logger[_0xa9ce('0x2a')](util['format'](_0xa9ce('0x18b'),_0x40da80[_0xa9ce('0x33')]));if(!this[_0xa9ce('0x80')](_0x40da80['text'])){return this[_0xa9ce('0x9')]['noop'](_0xa9ce('0x9a'));}this[_0xa9ce('0x9')]['noop'](util[_0xa9ce('0x24')](_0xa9ce('0x18c'),_0x40da80[_0xa9ce('0x56')]));var _0x5c882c=this[_0xa9ce('0x18d')][_0xa9ce('0x93')](this,_0x40da80);if(_0x5c882c){this[_0xa9ce('0x9')]['noop'](util['format'](_0xa9ce('0x18e'),_0x5c882c));var _0x6a1c08=this['channel'][_0xa9ce('0xd7')](_0x5c882c);try{fs[_0xa9ce('0xd8')](_0x5c882c+'.wav');}catch(_0x3f9cf3){logger[_0xa9ce('0x28')](_0x3f9cf3);}return _0x6a1c08;}return this[_0xa9ce('0x9')]['error'](_0x40da80,'Google\x20TTS\x20is\x20unreachable');};AGIVertices[_0xa9ce('0x19')][_0xa9ce('0x18f')]=function(_0x15034f){logger[_0xa9ce('0x2a')](util[_0xa9ce('0x24')](_0xa9ce('0x190'),_0x15034f['label']));if(!this[_0xa9ce('0x80')](_0x15034f[_0xa9ce('0x12e')])){return this['channel'][_0xa9ce('0x28')](_0x15034f,'no\x20find\x20by\x20configured');}logger[_0xa9ce('0x2a')](util[_0xa9ce('0x24')](_0xa9ce('0x12c'),this[_0xa9ce('0x9')][_0xa9ce('0x35')],_0x15034f[_0xa9ce('0x12e')]));var _0xddb425=this[_0xa9ce('0x4d')][_0xa9ce('0x93')](this,_0x15034f['findBy']);if(_0xddb425){logger[_0xa9ce('0x2a')](util[_0xa9ce('0x24')](_0xa9ce('0x12d'),this[_0xa9ce('0x9')]['callerid'],_0x15034f[_0xa9ce('0x12e')]));this[_0xa9ce('0x9')]['noop'](util[_0xa9ce('0x24')](_0xa9ce('0x12d'),this[_0xa9ce('0x9')][_0xa9ce('0x35')],_0x15034f[_0xa9ce('0x12e')]));return{'code':0xc8,'result':'success'};}else{logger[_0xa9ce('0x2a')](util[_0xa9ce('0x24')](_0xa9ce('0x12f'),this[_0xa9ce('0x9')][_0xa9ce('0x35')],_0x15034f[_0xa9ce('0x12e')]));this[_0xa9ce('0x9')]['noop'](util[_0xa9ce('0x24')](_0xa9ce('0x12f'),this[_0xa9ce('0x9')][_0xa9ce('0x35')],_0x15034f['findBy']));return{'code':0xc8,'result':_0xa9ce('0x130')};}};AGIVertices[_0xa9ce('0x19')][_0xa9ce('0x191')]=function(_0x937ea5){logger['info'](util['format'](_0xa9ce('0x192'),_0x937ea5['label']));var _0x2bb2ed=this[_0xa9ce('0x9')][_0xa9ce('0x53')](_0xa9ce('0x193'),[_0x937ea5['mailbox'],_0x937ea5[_0xa9ce('0x98')]]);if(_0x2bb2ed[_0xa9ce('0x7d')]===-0x1){return _0x2bb2ed;}return this['channel'][_0xa9ce('0x94')](util[_0xa9ce('0x24')]('Executed\x20command\x20%s\x20%s',_0xa9ce('0x193'),_0x937ea5['mailbox']));};AGIVertices['prototype']['vswitch']=function(_0x36121b){logger[_0xa9ce('0x2a')](util[_0xa9ce('0x24')]('Enter\x20in\x20SWITCH\x20(%s)\x20block',_0x36121b['label']));if(!this[_0xa9ce('0x80')](_0x36121b[_0xa9ce('0xb3')])){return this[_0xa9ce('0x9')][_0xa9ce('0x28')](_0x36121b,_0xa9ce('0x178'));}var _0x1659e1=this[_0xa9ce('0x7a')][_0xa9ce('0x93')](this,_0x36121b[_0xa9ce('0xb3')]);if(!_0x1659e1){return this[_0xa9ce('0x9')][_0xa9ce('0x28')](_0x36121b,'no\x20variable\x20found');}var _0x44137d=this[_0xa9ce('0x9')][_0xa9ce('0x7a')](_0x1659e1);return{'code':0xc8,'result':_0x44137d['extra']?_0x44137d[_0xa9ce('0x7b')]:'-'};};String[_0xa9ce('0x19')]['replaceAll']=function(_0x33fa72,_0x501139){return this[_0xa9ce('0x77')](_0x33fa72)['join'](_0x501139);};module[_0xa9ce('0x194')]=AGIVertices;
\ No newline at end of file