Built motion from commit 8356fca3.|2.6.19
[motion2.git] / server / services / agi / vertices.js
index 3b148c0..c5d0252 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xf8b2=['body','parse','An\x20incorrect\x20formatted\x20json\x20body\x20has\x20been\x20passed\x20to\x20the\x20function','headers','An\x20incorrect\x20formatted\x20json\x20headers\x20has\x20been\x20passed\x20to\x20the\x20function','computedVariables','uri','render','stringify','An\x20incorrect\x20formatted\x20json\x20has\x20been\x20passed\x20to\x20the\x20function','statusCode','statusMessage','500\x20-\x20Internal\x20Server\x20Error','options','googleDialogflow','key','dialogflow_language','googleDialogflowV2','dialogflowV2_project_id','private_key','dialogflowV2_language','sestekNDA','ispeechTTS','ispeech_tts_language','en-US','speed','ispeechASR','ispeech_asr_language','isConfigured','model','awsPolly','aws_polly_region','awsLex','aws_access_key_id','aws_secret_access_key','aws_bot_name','googleASR','tildeASR','appid','clear','clone','hasOwnProperty','isString','replaceObjectAllVariables','recursiveNodeIndex','isArray','saveRestApiResult','isPlainObject','%s.%s','setVariable','replaceAllVariables','length','split','replaceAll','result','The\x20\x22%s\x22\x20variable\x20value\x20is:\x20%s','extra','maxRetry','mrcpsynth','Enter\x20in\x20MRCPSynth\x20(%s)\x20block','no\x20text\x20configured','MRCPSynth','noop','Executed\x20command\x20MRCPSynth\x20%s','Enter\x20in\x20MRCPRecog\x20(%s)\x20block','grammar','MRCPRecog','getAndSetVariable','RECOG_CONFIDENCE()','MRCP_RECOG_CONFIDENCE','RECOG_INPUT()','MRCP_RECOG_TRANSCRIPT','RECOG_INSTANCE()','MRCP_RECOG_INSTANCE','Executed\x20command\x20MRCPRecog\x20%s','agi','Enter\x20in\x20AGI\x20(%s)\x20block','command','answer','wait','Enter\x20in\x20CALLBACK\x20(%s)\x20block','no\x20list\x20selected','add','delay','minutes','sync','CALLBACK\x20added\x20phone:\x20%s\x20on\x20list:\x20%s\x20at\x20%s','Enter\x20in\x20CUSTOM\x20APP\x20(%s)\x20block','application','Executed\x20command\x20%s\x20%s','lumenvoxtts','Enter\x20in\x20LUMENVOXTTS\x20(%s)\x20block','sestektts','Enter\x20in\x20SESTEKTTS\x20(%s)\x20block','Enter\x20in\x20LUMENVOXASR\x20(%s)\x20block','no\x20grammar\x20configured','LUMENVOX_ASR_CONFIDENCE','LUMENVOX_ASR_TRANSCRIPT','LUMENVOX_ASR_INSTANCE','sestekasr','SESTEK_ASR_CONFIDENCE','SESTEK_ASR_TRANSCRIPT','SESTEK_ASR_INSTANCE','Enter\x20in\x20DATABASE\x20(%s)\x20block','no\x20database\x20selected','odbc_id','no\x20odbc\x20database\x20found','no\x20query\x20configured','query:\x20%s','getQueryOdbc','variable_id','no\x20variable\x20selected\x20for\x20the\x20result','no\x20variable\x20found','forEach','keys','%s[%s][%s]','%s_ROWS_COUNT','dial','debug','Enter\x20in\x20DIAL\x20(%s)\x20block','sip_id','no\x20user\x20selected','no\x20user\x20found','DIAL','SIP/%s','opts','Executed\x20command\x20%s','dialogflow','Enter\x20in\x20DIALOGFLOW\x20(%s)\x20block','bot','Trying\x20Dialogflow:\x20%s','DIALOGFLOW_%s','speech','Dialogflow\x20Result\x20%s','Dialogflow\x20is\x20unreachable','dialogflowV2','Enter\x20in\x20DIALOGFLOW\x20V2\x20(%s)\x20block','client_email','no\x20client_email\x20configured','no\x20private_key\x20configured','no\x20anguage\x20configured','providerResponse','out','DialogflowV2\x20Result\x20%s','DialogflowV2\x20is\x20unreachable','Enter\x20in\x20SESTEKNDA\x20(%s)\x20block','ndauth_url','username','no\x20username\x20configured','password','no\x20password\x20configured','ndassistant_url','Trying\x20SestekNDA:\x20%s','SESTEK_NDA_%s','audiofile','unlink','SestekNDA\x20is\x20unreachable','end','trunk_id','no\x20trunk\x20found','trunk_name','no\x20trunk\x20selected','SIP/%s/%s','finally','Enter\x20in\x20FINALLY\x20(%s)\x20block','retry','file_id','no\x20file\x20audio\x20selected','getData','response','maxdigit','test','mindigit','hiddendigitsnum','generate','hiddendigitspos','first','substr','Enter\x20in\x20GETSECRETDIGITS\x20(%s)\x20block','Enter\x20in\x20GOAL\x20(%s)\x20block','GOAL\x20%s','goalname','awspolly','[AGI]\x20Enter\x20in\x20AWSPOLLY\x20(%s)\x20block','.wav','awslex','Enter\x20in\x20Amazon\x20Lex\x20(%s)\x20block','Trying\x20Amazon\x20Lex:\x20%s','AWS_LEX_%s','message','Amazon\x20Lex\x20ready\x20for\x20fulfillment','amazonlex','Amazon\x20Lex\x20is\x20unreachable','Enter\x20in\x20GOOGLEASR\x20(%s)\x20block\x20%s','no\x20key\x20configured','wav','%s/recordings/%s','beep','recordFile','intKey','GoogleASR\x20Result\x20%s','tildeasr','Enter\x20in\x20TILDEASR\x20(%s)\x20block','no\x20appid\x20configured','no\x20appsecret\x20configured','TILDE_ASR_%s','TildeASR\x20Result\x20%s','Enter\x20in\x20GOTO\x20(%s)\x20block','continueAt','gotoif','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','IFTIME(%s?true:false)','IFTIME\x20%s\x20%s','hangup','Enter\x20in\x20HANGUP\x20(%s)\x20block','ispeechasr','Enter\x20in\x20ISPEECHASR\x20(%s)\x20block','ispeech\x20%s\x20file\x20created','ISPEECH_ASR_%s','IspeechASR\x20Result\x20%s','ispeechtts','Enter\x20in\x20ISPEECHTTS\x20(%s)\x20block','Trying\x20ispeech\x20TTS\x20%s','streamFile','ispeech\x20TTS\x20is\x20unreachable','Enter\x20in\x20LOGIN\x20(%s)\x20block','FIND\x20AGENT\x20%s\x20BY\x20%s','findBy','AGENT\x20%s\x20FOUND\x20BY','success','AGENT\x20%s\x20NOT\x20FOUND\x20BY','logout','Enter\x20in\x20LOGOUT\x20(%s)\x20block','failure','Enter\x20in\x20MATH\x20(%s)\x20block','no\x20operation\x20configured','math\x20%s','operation','%s[%s]','Enter\x20in\x20MENU\x20(%s)\x20block','getSound','no\x20file\x20audio\x20found','output','pause','Enter\x20in\x20PAUSE\x20(%s)\x20block','no\x20find\x20by\x20configured','getPause','pause_id','playback','Enter\x20in\x20PLAYBACK\x20(%s)\x20block','PLAYBACK','queue','Enter\x20in\x20QUEUE\x20(%s)\x20block','queue_id','getVoiceQueue','no\x20queue\x20found','indexOf','XMCS-QUEUE','gosub','position','QUEUE','record','%s/recordings/%s.%s','createSquareRecording','RECORDING_SAVENAME','escape_digits','restapi','Enter\x20in\x20RESTAPI\x20(%s)\x20block','no\x20url\x20configured','Response:','no\x20variable\x20selected\x20for\x20the\x20response','%s_STATUS_CODE','200','Unable\x20to\x20set\x20result\x20in\x20variable\x20%s','variable\x20%s\x20set','Enter\x20in\x20SAYDIGITS\x20(%s)\x20block','sayDigits','digits','Enter\x20in\x20SAYNUMBER\x20(%s)\x20block','sayphonetic','sayPhonetic','sendMail','account_id','no\x20mail\x20account\x20configured','no\x20mail\x20account\x20found','email','user','subject','template_id','sendMail\x20message','Trying\x20SendMail\x20with\x20account\x20%s','smtpOptions','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','sms_text','Trying\x20SendSMS\x20with\x20account\x20%s','set','Enter\x20in\x20SET\x20(%s)\x20block','no\x20variable\x20selected','Enter\x20in\x20START\x20(%s)\x20block','START\x20CALLY\x20SQUARE','XMCS-UNIQUEID','Skipped\x20Answer','Enter\x20in\x20SUBPROJECT\x20(%s)\x20block','project_id','no\x20subproject\x20selected','no\x20subproject\x20found\x20with\x20id\x20%d','AGI','host','127.0.0.1','system','sh\x20command:\x20%s\x20result\x20on\x20variable:\x20%s','sh\x20command:\x20%s\x20result\x20no\x20stored','google_cloud_tts','Enter\x20in\x20Google\x20Cloud\x20TTS\x20(%s)\x20block','apiKey','no\x20apiKey\x20configured','Trying\x20Google\x20Cloud\x20TTS\x20%s','Google\x20Cloud\x20TTS\x20%s\x20file\x20created','Google\x20Cloud\x20TTS\x20is\x20unreachable','Enter\x20in\x20GOOGLETTS\x20(%s)\x20block','Trying\x20Google\x20TTS\x20%s','Google\x20TTS\x20%s\x20file\x20created','Google\x20TTS\x20is\x20unreachable','unpause','Enter\x20in\x20UNPAUSE\x20(%s)\x20block','voicemail','Enter\x20in\x20VOICEMAIL\x20(%s)\x20block','VOICEMAIL','mailbox','vswitch','Enter\x20in\x20SWITCH\x20(%s)\x20block','join','exports','util','lodash','shelljs','odbc','randomstring','moment','mustache','request-promise','../../config/environment','./scripts','/var/opt/motion2/server/files','rawHeaders','rawBody','menu','getdigits','getsecretdigits','channel','rpc','prototype','getVariable','getVariableById','then','name','catch','getVoiceQueueById','getSquareProject','getSquareProjectById','getSquareOdbc','getSquareOdbcById','dsn','getUser','getUserById','getTrunk','getTrunkById','getSoundById','save_name','getMailAccount','getMailAccountById','sendMailMessage','mailRpc','getIntervals','getIntervalById','IntervalId','Intervals','interval','getSoundPath','format','%s/sounds/converted/%s','open','error','Error\x20getting\x20ODBC\x20connection\x20%s','info','query','Error\x20executing\x20query\x20%s','close','Error\x20closing\x20connection\x20to\x20odbc\x20%s','getSmsAccountById','createSmsMessage','createSquareDetailsReport','uniqueid','label','agicommand','arg_1','callerid','calleridname','context','extension','priority','accountcode','dnid','file','createSquareMessage','createCmContact','isEmpty','isNil','callback_','random','lastName','phone','list_id','callback','scheduledAt','toString','callback_priority','getPauseById','agentPause','agent','agentUnpause','agentLogout','agentLogin','internal','LOCAL','shellCommand','exec','trim','replace','googleCloudTTS','google_cloud_tts_text_type','text','languageCode','audioEncoding','MP3','googleTTS','google_tts_language','url','method','number','timeout','includes','POST','PUT','toUpperCase'];(function(_0x495470,_0x53e1b7){var _0x51c30a=function(_0x5ebae5){while(--_0x5ebae5){_0x495470['push'](_0x495470['shift']());}};_0x51c30a(++_0x53e1b7);}(_0xf8b2,0x15e));var _0x2f8b=function(_0x331dd8,_0x15e211){_0x331dd8=_0x331dd8-0x0;var _0x56408f=_0xf8b2[_0x331dd8];return _0x56408f;};'use strict';var fs=require('fs');var util=require(_0x2f8b('0x0'));var _=require(_0x2f8b('0x1'));var sh=require(_0x2f8b('0x2'));var odbc=require(_0x2f8b('0x3'))();var rs=require(_0x2f8b('0x4'));var moment=require(_0x2f8b('0x5'));var Mustache=require(_0x2f8b('0x6'));var rp=require(_0x2f8b('0x7'));var logger=require('../../config/logger')('agi');var config=require(_0x2f8b('0x8'));var scripts=require(_0x2f8b('0x9'));var FILES_PATH=_0x2f8b('0xa');var recursiveMapAttributes=[_0x2f8b('0xb'),_0x2f8b('0xc')];var verticesWithRetry=[_0x2f8b('0xd'),_0x2f8b('0xe'),_0x2f8b('0xf')];var AGIVertices=function(_0x366bac,_0x5ca31b,_0xdb9718){this[_0x2f8b('0x10')]=_0x366bac;this[_0x2f8b('0x11')]=_0x5ca31b;this['mailRpc']=_0xdb9718;};AGIVertices[_0x2f8b('0x12')][_0x2f8b('0x13')]=function(_0x13a059,_0x4b43e1){this['rpc'][_0x2f8b('0x14')](_0x13a059)[_0x2f8b('0x15')](function(_0x1e1cce){_0x4b43e1(null,_0x1e1cce?_0x1e1cce[_0x2f8b('0x16')]:![]);})[_0x2f8b('0x17')](function(_0x4cb1e0){_0x4b43e1(_0x4cb1e0);});};AGIVertices[_0x2f8b('0x12')]['getVoiceQueue']=function(_0x40c097,_0x5e9eb1){this[_0x2f8b('0x11')][_0x2f8b('0x18')](_0x40c097)[_0x2f8b('0x15')](function(_0x19d5b3){_0x5e9eb1(null,_0x19d5b3?_0x19d5b3[_0x2f8b('0x16')]:![]);})[_0x2f8b('0x17')](function(_0x532fe4){_0x5e9eb1(_0x532fe4);});};AGIVertices[_0x2f8b('0x12')][_0x2f8b('0x19')]=function(_0x2daba9,_0xcc7e2c){this[_0x2f8b('0x11')][_0x2f8b('0x1a')](_0x2daba9)[_0x2f8b('0x15')](function(_0x1fe74a){_0xcc7e2c(null,_0x1fe74a?_0x1fe74a[_0x2f8b('0x16')]:![]);})['catch'](function(_0x23dd63){_0xcc7e2c(_0x23dd63);});};AGIVertices[_0x2f8b('0x12')][_0x2f8b('0x1b')]=function(_0x4b94d1,_0xdc8171){this['rpc'][_0x2f8b('0x1c')](_0x4b94d1)[_0x2f8b('0x15')](function(_0x1da005){_0xdc8171(null,_0x1da005?_0x1da005[_0x2f8b('0x1d')]:![]);})[_0x2f8b('0x17')](function(_0x5efe6e){_0xdc8171(_0x5efe6e);});};AGIVertices[_0x2f8b('0x12')][_0x2f8b('0x1e')]=function(_0x124881,_0x17b251){this[_0x2f8b('0x11')][_0x2f8b('0x1f')](_0x124881)[_0x2f8b('0x15')](function(_0x5cb36a){_0x17b251(null,_0x5cb36a?_0x5cb36a[_0x2f8b('0x16')]:![]);})[_0x2f8b('0x17')](function(_0x3560c4){_0x17b251(_0x3560c4);});};AGIVertices[_0x2f8b('0x12')][_0x2f8b('0x20')]=function(_0x52edde,_0x3681b4){this[_0x2f8b('0x11')][_0x2f8b('0x21')](_0x52edde)[_0x2f8b('0x15')](function(_0x183e51){_0x3681b4(null,_0x183e51?_0x183e51[_0x2f8b('0x16')]:![]);})[_0x2f8b('0x17')](function(_0x347f5a){_0x3681b4(_0x347f5a);});};AGIVertices[_0x2f8b('0x12')]['getSound']=function(_0x1578c2,_0x4a8bce){var _0x44e667=this;this[_0x2f8b('0x11')][_0x2f8b('0x22')](_0x1578c2)[_0x2f8b('0x15')](function(_0x72b23b){_0x4a8bce(null,_0x72b23b?_0x44e667['getSoundPath'](_0x72b23b[_0x2f8b('0x23')]):![]);})['catch'](function(_0x5207a8){_0x4a8bce(_0x5207a8);});};AGIVertices[_0x2f8b('0x12')][_0x2f8b('0x24')]=function(_0x4aff54,_0x163dd8){this[_0x2f8b('0x11')][_0x2f8b('0x25')](_0x4aff54)[_0x2f8b('0x15')](function(_0x1fe3d0){_0x163dd8(null,_0x1fe3d0?_0x1fe3d0:![]);})[_0x2f8b('0x17')](function(_0x5b2879){_0x163dd8(_0x5b2879);});};AGIVertices[_0x2f8b('0x12')][_0x2f8b('0x26')]=function(_0x296eac,_0x3279dc,_0x1f886f){this[_0x2f8b('0x27')][_0x2f8b('0x26')](_0x296eac,_0x3279dc)['then'](function(){_0x1f886f(null);})[_0x2f8b('0x17')](function(_0x5593b0){_0x1f886f(_0x5593b0);});};AGIVertices[_0x2f8b('0x12')][_0x2f8b('0x28')]=function(_0x43dc46,_0x103b81){this[_0x2f8b('0x11')][_0x2f8b('0x29')](_0x43dc46)[_0x2f8b('0x15')](function(_0x2e9786){if(_0x2e9786){if(_0x2e9786[_0x2f8b('0x2a')]){_0x103b81(null,[_0x2e9786['interval']]);}else{_0x103b81(null,_['map'](_0x2e9786[_0x2f8b('0x2b')],_0x2f8b('0x2c')));}}else{_0x103b81(null,![]);}})[_0x2f8b('0x17')](function(_0x3f7f9c){_0x103b81(_0x3f7f9c);});};AGIVertices['prototype'][_0x2f8b('0x2d')]=function(_0x96534f){return util[_0x2f8b('0x2e')](_0x2f8b('0x2f'),FILES_PATH,_0x96534f);};AGIVertices[_0x2f8b('0x12')]['getQueryOdbc']=function(_0x56c05c,_0x179952,_0x25c805){odbc[_0x2f8b('0x30')](_0x56c05c,function(_0x410c15){if(_0x410c15){logger[_0x2f8b('0x31')](_0x2f8b('0x32'),_0x410c15);_0x25c805(_0x410c15);}else{logger[_0x2f8b('0x33')]('ODBC\x20connection\x20successfully');odbc[_0x2f8b('0x34')](_0x179952,function(_0x9aebcb,_0x4d814d){if(_0x9aebcb){logger[_0x2f8b('0x33')](_0x2f8b('0x35'),_0x179952);_0x25c805(_0x9aebcb);}else{logger[_0x2f8b('0x33')]('Query\x20executed\x20correctly\x20%s',_0x179952);odbc[_0x2f8b('0x36')](function(_0x27f30e){if(_0x27f30e){logger['error'](_0x2f8b('0x37'),_0x27f30e);}_0x25c805(null,_0x4d814d);});}});}});};AGIVertices[_0x2f8b('0x12')]['getSmsAccount']=function(_0x92b37a,_0x57576e){this[_0x2f8b('0x11')][_0x2f8b('0x38')](_0x92b37a)['then'](function(_0x9030da){_0x57576e(null,_0x9030da?_0x9030da:![]);})[_0x2f8b('0x17')](function(_0x20c642){_0x57576e(_0x20c642);});};AGIVertices['prototype'][_0x2f8b('0x39')]=function(_0x4c7d61,_0xb7c7c9){this[_0x2f8b('0x11')][_0x2f8b('0x39')](_0x4c7d61)[_0x2f8b('0x15')](function(_0x2ceda8){_0xb7c7c9(null,_0x2ceda8);})[_0x2f8b('0x17')](function(_0x1e0de5){_0xb7c7c9(_0x1e0de5);});};AGIVertices[_0x2f8b('0x12')][_0x2f8b('0x3a')]=function(_0x40577c,_0x45c92c,_0xb8658e){this[_0x2f8b('0x11')][_0x2f8b('0x3a')]({'uniqueid':this[_0x2f8b('0x10')][_0x2f8b('0x3b')],'node':_0x40577c[_0x2f8b('0x3c')],'application':_0x40577c[_0x2f8b('0x3d')],'data':_0x45c92c||null,'project_name':this[_0x2f8b('0x10')][_0x2f8b('0x3e')],'callerid':this[_0x2f8b('0x10')][_0x2f8b('0x3f')]})[_0x2f8b('0x15')](function(_0xca42ff){if(_0xb8658e){_0xb8658e(null,_0xca42ff);}})[_0x2f8b('0x17')](function(_0x564b81){if(_0xb8658e){_0xb8658e(_0x564b81);}});};AGIVertices['prototype']['createSquareRecording']=function(_0x33a468,_0x4d126a,_0x2d0196,_0x13ffa0){this[_0x2f8b('0x11')]['createSquareRecording']({'uniqueid':this[_0x2f8b('0x10')]['uniqueid'],'callerid':this[_0x2f8b('0x10')]['callerid'],'calleridname':this[_0x2f8b('0x10')][_0x2f8b('0x40')],'context':this['channel'][_0x2f8b('0x41')],'extension':this[_0x2f8b('0x10')][_0x2f8b('0x42')],'priority':this[_0x2f8b('0x10')][_0x2f8b('0x43')],'accountcode':this[_0x2f8b('0x10')][_0x2f8b('0x44')],'dnid':this[_0x2f8b('0x10')][_0x2f8b('0x45')],'projectName':this['channel'][_0x2f8b('0x3e')],'saveName':_0x4d126a,'filename':_0x33a468[_0x2f8b('0x46')]||_0x4d126a,'savePath':_0x2d0196})[_0x2f8b('0x15')](function(_0x1bb257){_0x13ffa0(null,_0x1bb257);})[_0x2f8b('0x17')](function(_0x487c81){_0x13ffa0(_0x487c81);});};AGIVertices[_0x2f8b('0x12')][_0x2f8b('0x47')]=function(_0x45cf87,_0x53cde8,_0x12be3c,_0x4fa8d1,_0x26dfb1){this[_0x2f8b('0x11')][_0x2f8b('0x47')]({'uniqueid':this[_0x2f8b('0x10')][_0x2f8b('0x3b')],'body':_0x45cf87,'direction':_0x53cde8,'providerName':_0x12be3c,'providerResponse':_0x4fa8d1})['then'](function(_0x4c89c7){if(_0x26dfb1){_0x26dfb1(null,_0x4c89c7);}})['catch'](function(_0x33a416){if(_0x26dfb1){_0x26dfb1(_0x33a416);}});};AGIVertices[_0x2f8b('0x12')][_0x2f8b('0x48')]=function(_0x128a1f,_0x49e047){this['rpc'][_0x2f8b('0x48')]({'firstName':_[_0x2f8b('0x49')](_0x128a1f[_0x2f8b('0x16')])||_[_0x2f8b('0x4a')](_0x128a1f['name'])?_0x2f8b('0x4b')+Math[_0x2f8b('0x4c')]():_0x128a1f['name'],'lastName':_[_0x2f8b('0x49')](_0x128a1f['lastName'])||_[_0x2f8b('0x4a')](_0x128a1f['lastName'])?null:_0x128a1f[_0x2f8b('0x4d')],'phone':_0x128a1f[_0x2f8b('0x4e')],'ListId':_0x128a1f[_0x2f8b('0x4f')],'scheduledat':_0x128a1f['scheduledAt'],'callbackUniqueid':this[_0x2f8b('0x10')]['uniqueid'],'tags':_0x2f8b('0x50'),'description':'Callback\x20scheduled\x20at\x20'+_0x128a1f[_0x2f8b('0x51')][_0x2f8b('0x52')](),'priority':_0x128a1f[_0x2f8b('0x53')]})[_0x2f8b('0x15')](function(_0xcdde65){_0x49e047(null,_0xcdde65);})[_0x2f8b('0x17')](function(_0x40457b){_0x49e047(_0x40457b);});};AGIVertices[_0x2f8b('0x12')]['getPause']=function(_0xc31f84,_0x2151d5){this[_0x2f8b('0x11')][_0x2f8b('0x54')](_0xc31f84)[_0x2f8b('0x15')](function(_0xdd8791){_0x2151d5(null,_0xdd8791?_0xdd8791[_0x2f8b('0x16')]:![]);})[_0x2f8b('0x17')](function(_0x2da9ba){_0x2151d5(_0x2da9ba);});};AGIVertices[_0x2f8b('0x12')][_0x2f8b('0x55')]=function(_0x337e53,_0x5698fa,_0x324fa2){var _0x52abb8={'role':_0x2f8b('0x56')};_0x52abb8[_0x337e53]=this[_0x2f8b('0x10')][_0x2f8b('0x3f')];this[_0x2f8b('0x11')][_0x2f8b('0x55')](_0x52abb8,_0x5698fa,this['channel'][_0x2f8b('0x3b')])[_0x2f8b('0x15')](function(_0x1facad){_0x324fa2(null,_[_0x2f8b('0x4a')](_0x1facad)?![]:!![]);})['catch'](function(_0x5dc9c6){logger[_0x2f8b('0x31')](_0x5dc9c6);_0x324fa2(null,![]);});};AGIVertices[_0x2f8b('0x12')][_0x2f8b('0x57')]=function(_0x34870f,_0x5441ea){var _0x19dc5f={'role':_0x2f8b('0x56')};_0x19dc5f[_0x34870f]=this['channel']['callerid'];this['rpc'][_0x2f8b('0x57')](_0x19dc5f)['then'](function(_0xd7d136){_0x5441ea(null,_[_0x2f8b('0x4a')](_0xd7d136)?![]:!![]);})[_0x2f8b('0x17')](function(_0x311658){logger[_0x2f8b('0x31')](_0x311658);_0x5441ea(null,![]);});};AGIVertices[_0x2f8b('0x12')][_0x2f8b('0x58')]=function(_0x16e36e,_0x526785){var _0x49a2ca={'role':_0x2f8b('0x56')};_0x49a2ca[_0x16e36e]=this[_0x2f8b('0x10')][_0x2f8b('0x3f')];this[_0x2f8b('0x11')][_0x2f8b('0x58')](_0x49a2ca)[_0x2f8b('0x15')](function(_0x189025){_0x526785(null,_[_0x2f8b('0x4a')](_0x189025)?![]:!![]);})[_0x2f8b('0x17')](function(_0x32cae9){logger['error'](_0x32cae9);_0x526785(null,![]);});};AGIVertices[_0x2f8b('0x12')][_0x2f8b('0x59')]=function(_0x3552ee,_0x158322){var _0x19bde5={'role':'agent'};_0x19bde5[_0x3552ee]=this[_0x2f8b('0x10')][_0x2f8b('0x3f')];var _0x4d68c0=_0x3552ee!=_0x2f8b('0x5a')?util['format']('%s/%s@from-sip/n',_0x2f8b('0x5b'),this[_0x2f8b('0x10')][_0x2f8b('0x3f')]):undefined;this['rpc'][_0x2f8b('0x59')](_0x19bde5,_0x4d68c0)['then'](function(_0x351301){_0x158322(null,_[_0x2f8b('0x4a')](_0x351301)?![]:!![]);})[_0x2f8b('0x17')](function(_0x4df27d){logger[_0x2f8b('0x31')](_0x4df27d);_0x158322(null,![]);});};AGIVertices['prototype'][_0x2f8b('0x5c')]=function(_0xe8f67b,_0x506a62){sh[_0x2f8b('0x5d')](_[_0x2f8b('0x5e')](_0xe8f67b),function(_0x796d75,_0x5e3f87){var _0x55e699=_0x5e3f87[_0x2f8b('0x5f')](/(\r\n|\n|\r)/gm,'');_0x506a62(null,_0x55e699);});};AGIVertices[_0x2f8b('0x12')][_0x2f8b('0x60')]=function(_0x53f254,_0x1966fb){scripts[_0x2f8b('0x60')](_0x53f254['apiKey'],_0x53f254[_0x2f8b('0x61')]||'text',_0x53f254[_0x2f8b('0x62')],_0x53f254[_0x2f8b('0x63')]||'en-US',_0x53f254['ssmlGender']||'MALE',_0x53f254[_0x2f8b('0x64')]||_0x2f8b('0x65'))['then'](function(_0x52f8dd){_0x1966fb(null,_0x52f8dd);})['catch'](function(_0x57d6f3){_0x1966fb(_0x57d6f3);});};AGIVertices['prototype']['googleTTS']=function(_0x450163,_0xd34319){scripts[_0x2f8b('0x66')](_0x450163[_0x2f8b('0x62')],_0x450163[_0x2f8b('0x67')]||'en',0x1)['then'](function(_0x497e11){_0xd34319(null,_0x497e11);})[_0x2f8b('0x17')](function(_0x2cdc96){_0xd34319(_0x2cdc96);});};AGIVertices[_0x2f8b('0x12')]['restAPI']=function(_0x5ae32e,_0x55254b){var _0x4358e0={'uri':_0x5ae32e[_0x2f8b('0x68')],'method':_0x5ae32e[_0x2f8b('0x69')],'json':!![],'resolveWithFullResponse':!![],'strictSSL':![],'timeout':typeof parseInt(_0x5ae32e['timeout'])===_0x2f8b('0x6a')&&parseInt(_0x5ae32e[_0x2f8b('0x6b')])>=0x1?parseInt(_0x5ae32e[_0x2f8b('0x6b')])*0x3e8:0x5*0x3e8};if(_[_0x2f8b('0x6c')]([_0x2f8b('0x6d'),_0x2f8b('0x6e')],_0x4358e0['method'][_0x2f8b('0x6f')]())){try{_0x4358e0[_0x2f8b('0x70')]=_0x5ae32e['rawBody']?JSON[_0x2f8b('0x71')](_0x5ae32e[_0x2f8b('0xc')]):{};}catch(_0x2d3d69){logger[_0x2f8b('0x31')](_0x2f8b('0x72'),_0x2d3d69);}}try{_0x4358e0[_0x2f8b('0x73')]=_0x5ae32e[_0x2f8b('0xb')]?JSON[_0x2f8b('0x71')](_0x5ae32e['rawHeaders']):{};}catch(_0x1f0b41){logger['error'](_0x2f8b('0x74'),_0x1f0b41);}if(_0x5ae32e[_0x2f8b('0x75')]){try{var _0x5dc95e=require(_0x5ae32e[_0x2f8b('0x75')])['sync'](this,_0x4358e0);_0x4358e0[_0x2f8b('0x76')]=Mustache[_0x2f8b('0x77')](_0x5ae32e[_0x2f8b('0x68')],_0x5dc95e,{},['$$','$$']);if(_0x4358e0[_0x2f8b('0x73')]){_0x4358e0['headers']=JSON[_0x2f8b('0x71')](Mustache['render'](JSON['stringify'](_0x4358e0[_0x2f8b('0x73')]),_0x5dc95e,{},['$$','$$']));}if(_0x4358e0[_0x2f8b('0x70')]){_0x4358e0[_0x2f8b('0x70')]=JSON[_0x2f8b('0x71')](Mustache[_0x2f8b('0x77')](JSON[_0x2f8b('0x78')](_0x4358e0[_0x2f8b('0x70')]),_0x5dc95e,{},['$$','$$']));}}catch(_0x1be1f5){logger['error'](_0x2f8b('0x79'),_0x1be1f5);}}rp(_0x4358e0)[_0x2f8b('0x15')](function(_0x43a7ad){var _0x45b128={'statusCode':_0x43a7ad[_0x2f8b('0x7a')]||0xc8,'statusMessage':_0x43a7ad[_0x2f8b('0x7b')]||'OK','headers':_0x43a7ad[_0x2f8b('0x73')]||{},'body':_0x43a7ad['body']||{}};_0x55254b(null,_0x45b128);})[_0x2f8b('0x17')](function(_0x4e20df){var _0x467beb={'statusCode':_0x4e20df[_0x2f8b('0x7a')]||0x1f4,'statusMessage':_0x4e20df['message']||_0x2f8b('0x7c'),'headers':_0x4e20df[_0x2f8b('0x7d')][_0x2f8b('0x73')]||{},'body':_0x4e20df[_0x2f8b('0x7d')][_0x2f8b('0x70')]||{}};_0x55254b(null,_0x467beb);});};AGIVertices[_0x2f8b('0x12')]['googleDialogflow']=function(_0x1ba4d2,_0x55dcc1){scripts[_0x2f8b('0x7e')](this['channel']['uniqueid'],_0x1ba4d2[_0x2f8b('0x7f')],_0x1ba4d2[_0x2f8b('0x62')],_0x1ba4d2[_0x2f8b('0x80')]||'en')[_0x2f8b('0x15')](function(_0xee1eb8){_0x55dcc1(null,_0xee1eb8);})[_0x2f8b('0x17')](function(_0x3281f2){_0x55dcc1(_0x3281f2);});};AGIVertices[_0x2f8b('0x12')][_0x2f8b('0x81')]=function(_0x2deff8,_0x405dd9){scripts[_0x2f8b('0x81')](this[_0x2f8b('0x10')][_0x2f8b('0x3b')],_0x2deff8[_0x2f8b('0x82')],_0x2deff8['client_email'],_0x2deff8[_0x2f8b('0x83')],_0x2deff8['text'],_0x2deff8[_0x2f8b('0x84')]||'en')['then'](function(_0x2cacf8){_0x405dd9(null,_0x2cacf8);})[_0x2f8b('0x17')](function(_0x4eb5af){_0x405dd9(_0x4eb5af);});};AGIVertices[_0x2f8b('0x12')][_0x2f8b('0x85')]=function(_0x34fe96,_0x42aebc){scripts[_0x2f8b('0x85')](this[_0x2f8b('0x10')],_0x34fe96)[_0x2f8b('0x15')](function(_0x3403c3){_0x42aebc(null,_0x3403c3);})[_0x2f8b('0x17')](function(_0x43735d){_0x42aebc(_0x43735d);});};AGIVertices[_0x2f8b('0x12')]['ispeechTTS']=function(_0x137985,_0x3fa544){scripts[_0x2f8b('0x86')](_0x137985['key'],_0x137985[_0x2f8b('0x62')],_0x137985[_0x2f8b('0x87')]||_0x2f8b('0x88'),_0x137985[_0x2f8b('0x89')])[_0x2f8b('0x15')](function(_0x480dbf){_0x3fa544(null,_0x480dbf);})[_0x2f8b('0x17')](function(_0x1f5bd4){_0x3fa544(_0x1f5bd4);});};AGIVertices['prototype']['ispeechASR']=function(_0x5e08fc,_0x2e103c,_0x2c688a){scripts[_0x2f8b('0x8a')](_0x2e103c,_0x5e08fc[_0x2f8b('0x7f')],_0x5e08fc[_0x2f8b('0x8b')]||_0x2f8b('0x88'),this[_0x2f8b('0x8c')](_0x5e08fc[_0x2f8b('0x8d')])?_0x5e08fc[_0x2f8b('0x8d')]:undefined)[_0x2f8b('0x15')](function(_0x366662){_0x2c688a(null,_0x366662);})[_0x2f8b('0x17')](function(_0x466f20){_0x2c688a(_0x466f20);});};AGIVertices[_0x2f8b('0x12')][_0x2f8b('0x8e')]=function(_0xc79a7d,_0x4a5147){scripts[_0x2f8b('0x8e')](_0xc79a7d['aws_access_key_id'],_0xc79a7d['aws_secret_access_key'],_0xc79a7d[_0x2f8b('0x8f')],_0xc79a7d['aws_polly_voice']||'Amy',_0xc79a7d['text'],_0xc79a7d['aws_text_type']||'text')['then'](function(_0x498c7e){_0x4a5147(null,_0x498c7e);})[_0x2f8b('0x17')](function(_0x36362f){_0x4a5147(_0x36362f);});};AGIVertices[_0x2f8b('0x12')][_0x2f8b('0x90')]=function(_0x217b07,_0x181e00){scripts['awsLex'](this['channel'][_0x2f8b('0x3b')],_0x217b07[_0x2f8b('0x91')],_0x217b07[_0x2f8b('0x92')],_0x217b07['aws_lex_region'],_0x217b07[_0x2f8b('0x62')],_0x217b07[_0x2f8b('0x93')])[_0x2f8b('0x15')](function(_0x56854a){_0x181e00(null,_0x56854a);})['catch'](function(_0x417320){_0x181e00(_0x417320);});};AGIVertices[_0x2f8b('0x12')][_0x2f8b('0x94')]=function(_0x52ef71,_0x1fa35a,_0x5cd828){scripts['googleASR'](_0x1fa35a,_0x52ef71[_0x2f8b('0x7f')],_0x52ef71['google_asr_language']||'en-US')[_0x2f8b('0x15')](function(_0x845d40){_0x5cd828(null,_0x845d40);})['catch'](function(_0x4eb6a7){_0x5cd828(_0x4eb6a7);});};AGIVertices[_0x2f8b('0x12')][_0x2f8b('0x95')]=function(_0x3278f9,_0x43f156,_0x2b0e98){scripts[_0x2f8b('0x95')](_0x43f156,_0x3278f9[_0x2f8b('0x96')],_0x3278f9['appsecret'],_0x3278f9[_0x2f8b('0x76')])[_0x2f8b('0x15')](function(_0x11f101){_0x2b0e98(null,_0x11f101);})[_0x2f8b('0x17')](function(_0x4b4eb7){_0x2b0e98(_0x4b4eb7);});};AGIVertices[_0x2f8b('0x12')][_0x2f8b('0x97')]=function(_0x43874c){var _0x286774=_['includes'](verticesWithRetry,_0x43874c['agicommand'])?_0x43874c:_[_0x2f8b('0x98')](_0x43874c);for(var _0x113b8e in _0x286774){if(_0x286774[_0x2f8b('0x99')](_0x113b8e)){if(_0x286774[_0x113b8e]&&_[_0x2f8b('0x9a')](_0x286774[_0x113b8e])){if(_[_0x2f8b('0x6c')](recursiveMapAttributes,_0x113b8e)){_0x286774[_0x113b8e]=this[_0x2f8b('0x9b')](_0x286774[_0x113b8e]);}else{_0x286774[_0x113b8e]=this['replaceAllVariables'](_0x286774[_0x113b8e]);}}}}return _0x286774;};AGIVertices[_0x2f8b('0x12')][_0x2f8b('0x9c')]=function(_0x61816b){for(var _0x4ad3b0 in _0x61816b){if(_0x61816b['hasOwnProperty'](_0x4ad3b0)){if(_['isPlainObject'](_0x61816b[_0x4ad3b0])){this[_0x2f8b('0x9c')](_0x61816b[_0x4ad3b0]);}else if(_[_0x2f8b('0x9d')](_0x61816b[_0x4ad3b0])){for(var _0x1927e1=0x0;_0x1927e1<_0x61816b[_0x4ad3b0]['length'];_0x1927e1++){this[_0x2f8b('0x9c')](_0x61816b[_0x4ad3b0][_0x1927e1]);}}else if(_[_0x2f8b('0x9a')](_0x61816b[_0x4ad3b0])){_0x61816b[_0x4ad3b0]=this['replaceAllVariables'](_0x61816b[_0x4ad3b0]);}}}};AGIVertices[_0x2f8b('0x12')][_0x2f8b('0x9e')]=function(_0x14e366,_0xc8bd5){for(var _0xed3685 in _0x14e366){if(_0x14e366[_0x2f8b('0x99')](_0xed3685)){if(_[_0x2f8b('0x9f')](_0x14e366[_0xed3685])){if(!_[_0x2f8b('0x49')](_0x14e366[_0xed3685])){this[_0x2f8b('0x9e')](_0x14e366[_0xed3685],util[_0x2f8b('0x2e')](_0x2f8b('0xa0'),_0xc8bd5,_0xed3685));}}else if(_[_0x2f8b('0x9d')](_0x14e366[_0xed3685])){for(var _0x5256ba=0x0;_0x5256ba<_0x14e366[_0xed3685]['length'];_0x5256ba++){this[_0x2f8b('0x9e')](_0x14e366[_0xed3685][_0x5256ba],util[_0x2f8b('0x2e')](_0x2f8b('0xa0'),_0xc8bd5,_0xed3685+'['+_0x5256ba+']'));}}else{if(!_['isNil'](_0x14e366[_0xed3685])){this['channel'][_0x2f8b('0xa1')](util['format']('%s.%s',_0xc8bd5,_0xed3685),_0x14e366[_0xed3685]);}}}}};AGIVertices[_0x2f8b('0x12')]['replaceObjectAllVariables']=function(_0x9053de){try{var _0x183011=JSON[_0x2f8b('0x71')](_0x9053de);this[_0x2f8b('0x9c')](_0x183011);return JSON[_0x2f8b('0x78')](_0x183011);}catch(_0x1c77ae){return this['replaceAllVariables'](_0x9053de);}};AGIVertices[_0x2f8b('0x12')][_0x2f8b('0xa2')]=function(_0x3a3aab){var _0x57228d=_0x3a3aab['split']('{');for(var _0x3cd0b9=0x1;_0x3cd0b9<_0x57228d[_0x2f8b('0xa3')];_0x3cd0b9+=0x1){var _0x336804=_0x57228d[_0x3cd0b9][_0x2f8b('0xa4')]('}');if(_0x336804[_0x2f8b('0xa3')]>0x1){_0x3a3aab=_0x3a3aab[_0x2f8b('0xa5')]('{'+_0x336804[0x0]+'}',this[_0x2f8b('0x10')]['getVariable'](_0x336804[0x0])['extra']||_0x336804[0x0]);}}if(_0x57228d[_0x2f8b('0xa3')]===0x1){return _0x3a3aab[_0x2f8b('0x52')]();}return this[_0x2f8b('0xa2')](_0x3a3aab);};AGIVertices[_0x2f8b('0x12')]['getAndSetVariable']=function(_0x23d8e1,_0x216042){var _0x26c981=this[_0x2f8b('0x10')][_0x2f8b('0x13')](_0x23d8e1);if(_0x26c981[_0x2f8b('0xa6')]===-0x1){return _0x26c981;}logger[_0x2f8b('0x33')](util[_0x2f8b('0x2e')](_0x2f8b('0xa7'),_0x216042,_0x26c981['extra']));return this[_0x2f8b('0x10')][_0x2f8b('0xa1')](_0x216042,_0x26c981[_0x2f8b('0xa8')]);};AGIVertices[_0x2f8b('0x12')]['isConfigured']=function(_0x50a435){return _0x50a435&&_0x50a435!=='0'&&_0x50a435!=='-1'&&_0x50a435!=='';};AGIVertices['prototype'][_0x2f8b('0xa9')]=function(_0x1f5c76){this['createSquareDetailsReport']['sync'](this,_0x1f5c76,'-');_0x1f5c76['retry']=_0x1f5c76[_0x2f8b('0xa9')];return{'code':0xc8,'result':'-'};};AGIVertices[_0x2f8b('0x12')][_0x2f8b('0xaa')]=function(_0x57444c){logger[_0x2f8b('0x33')](util['format'](_0x2f8b('0xab'),_0x57444c[_0x2f8b('0x3c')]));if(!this[_0x2f8b('0x8c')](_0x57444c[_0x2f8b('0x62')])){return this['channel']['noop'](_0x2f8b('0xac'));}var _0x202500='\x22'+_0x57444c[_0x2f8b('0x62')]+'\x22';if(this[_0x2f8b('0x8c')](_0x57444c[_0x2f8b('0x7d')])){_0x202500+=','+_0x57444c[_0x2f8b('0x7d')];}var _0x352ff1=this[_0x2f8b('0x10')][_0x2f8b('0x5d')](_0x2f8b('0xad'),_0x202500);if(_0x352ff1['result']===-0x1){return _0x352ff1;}return this[_0x2f8b('0x10')][_0x2f8b('0xae')](util[_0x2f8b('0x2e')](_0x2f8b('0xaf'),_0x202500));};AGIVertices[_0x2f8b('0x12')]['mrcprecog']=function(_0x27c905){logger[_0x2f8b('0x33')](util[_0x2f8b('0x2e')](_0x2f8b('0xb0'),_0x27c905[_0x2f8b('0x3c')]));if(!this['isConfigured'](_0x27c905['grammar'])){return this[_0x2f8b('0x10')][_0x2f8b('0xae')]('no\x20grammar\x20configured');}var _0x152a94=_0x27c905[_0x2f8b('0xb1')];if(this[_0x2f8b('0x8c')](_0x27c905['options'])){_0x152a94+=','+_0x27c905['options'];}var _0x3706be=this[_0x2f8b('0x10')][_0x2f8b('0x5d')](_0x2f8b('0xb2'),_0x152a94);if(_0x3706be[_0x2f8b('0xa6')]===-0x1){return _0x3706be;}var _0x5ccf8d=this[_0x2f8b('0xb3')](_0x2f8b('0xb4'),_0x2f8b('0xb5'));if(_0x5ccf8d[_0x2f8b('0xa6')]===-0x1){return _0x5ccf8d;}var _0x1d0ec9=this[_0x2f8b('0xb3')](_0x2f8b('0xb6'),_0x2f8b('0xb7'));if(_0x1d0ec9[_0x2f8b('0xa6')]===-0x1){return _0x1d0ec9;}var _0x432715=this[_0x2f8b('0xb3')](_0x2f8b('0xb8'),_0x2f8b('0xb9'));if(_0x432715[_0x2f8b('0xa6')]===-0x1){return _0x432715;}return this[_0x2f8b('0x10')][_0x2f8b('0xae')](util[_0x2f8b('0x2e')](_0x2f8b('0xba'),_0x152a94));};AGIVertices[_0x2f8b('0x12')][_0x2f8b('0xbb')]=function(_0x3e8709){logger[_0x2f8b('0x33')](util['format'](_0x2f8b('0xbc'),_0x3e8709['label']));return this['channel'][_0x2f8b('0xbb')]([_0x3e8709[_0x2f8b('0xbd')],_0x3e8709['args']]);};AGIVertices['prototype'][_0x2f8b('0xbe')]=function(_0xcc0d6a){logger[_0x2f8b('0x33')](util[_0x2f8b('0x2e')]('Enter\x20in\x20ANSWER\x20(%s)\x20block',_0xcc0d6a[_0x2f8b('0x3c')]));if(this[_0x2f8b('0x8c')](_0xcc0d6a[_0x2f8b('0x6b')])){logger[_0x2f8b('0x33')](util[_0x2f8b('0x2e')]('Wait\x20%s\x20seconds\x20before\x20answer',_0xcc0d6a[_0x2f8b('0x6b')]));var _0x51e561=this[_0x2f8b('0x10')][_0x2f8b('0xbf')](_0xcc0d6a['timeout']);if(_0x51e561[_0x2f8b('0xa6')]===-0x1){return _0x51e561;}}return this[_0x2f8b('0x10')][_0x2f8b('0xbe')]();};AGIVertices[_0x2f8b('0x12')]['callback']=function(_0x2cea1d){logger[_0x2f8b('0x33')](util[_0x2f8b('0x2e')](_0x2f8b('0xc0'),_0x2cea1d[_0x2f8b('0x3c')]));if(!this[_0x2f8b('0x8c')](_0x2cea1d[_0x2f8b('0x4f')])){return this[_0x2f8b('0x10')][_0x2f8b('0x31')](_0x2cea1d,_0x2f8b('0xc1'));}_0x2cea1d[_0x2f8b('0x51')]=moment();if(this['isConfigured'](_0x2cea1d['delay'])){_0x2cea1d[_0x2f8b('0x51')]=moment()[_0x2f8b('0xc2')](_0x2cea1d[_0x2f8b('0xc3')],_0x2f8b('0xc4'));}if(!this['isConfigured'](_0x2cea1d[_0x2f8b('0x53')])){_0x2cea1d[_0x2f8b('0x53')]=0x2;}this['createCmContact'][_0x2f8b('0xc5')](this,_0x2cea1d);return this[_0x2f8b('0x10')]['noop'](util[_0x2f8b('0x2e')](_0x2f8b('0xc6'),_0x2cea1d[_0x2f8b('0x4e')],_0x2cea1d[_0x2f8b('0x4f')],_0x2cea1d[_0x2f8b('0x51')]));};AGIVertices[_0x2f8b('0x12')]['custom_app']=function(_0x25b64e){logger['info'](util[_0x2f8b('0x2e')](_0x2f8b('0xc7'),_0x25b64e[_0x2f8b('0x3c')]));var _0x2bf139=this[_0x2f8b('0x10')][_0x2f8b('0x5d')](_0x25b64e[_0x2f8b('0xc8')],_0x25b64e[_0x2f8b('0x7d')]);if(_0x2bf139[_0x2f8b('0xa6')]===-0x1){return _0x2bf139;}return this[_0x2f8b('0x10')]['noop'](util[_0x2f8b('0x2e')](_0x2f8b('0xc9'),_0x25b64e[_0x2f8b('0xc8')],_0x25b64e[_0x2f8b('0x7d')]));};AGIVertices['prototype'][_0x2f8b('0xca')]=function(_0x23a545){logger[_0x2f8b('0x33')](util[_0x2f8b('0x2e')](_0x2f8b('0xcb'),_0x23a545['label']));if(!this['isConfigured'](_0x23a545[_0x2f8b('0x62')])){return this[_0x2f8b('0x10')][_0x2f8b('0xae')](_0x2f8b('0xac'));}var _0xfb15ad='\x22'+_0x23a545[_0x2f8b('0x62')]+'\x22';if(this[_0x2f8b('0x8c')](_0x23a545['options'])){_0xfb15ad+=','+_0x23a545[_0x2f8b('0x7d')];}var _0xefaf29=this[_0x2f8b('0x10')][_0x2f8b('0x5d')](_0x2f8b('0xad'),_0xfb15ad);if(_0xefaf29[_0x2f8b('0xa6')]===-0x1){return _0xefaf29;}return this[_0x2f8b('0x10')][_0x2f8b('0xae')](util['format'](_0x2f8b('0xaf'),_0xfb15ad));};AGIVertices[_0x2f8b('0x12')][_0x2f8b('0xcc')]=function(_0x2de5ba){logger[_0x2f8b('0x33')](util[_0x2f8b('0x2e')](_0x2f8b('0xcd'),_0x2de5ba[_0x2f8b('0x3c')]));if(!this[_0x2f8b('0x8c')](_0x2de5ba[_0x2f8b('0x62')])){return this[_0x2f8b('0x10')][_0x2f8b('0xae')](_0x2f8b('0xac'));}var _0x1ccf5a='\x22'+_0x2de5ba['text']+'\x22';if(this[_0x2f8b('0x8c')](_0x2de5ba[_0x2f8b('0x7d')])){_0x1ccf5a+=','+_0x2de5ba[_0x2f8b('0x7d')];}var _0x572540=this[_0x2f8b('0x10')][_0x2f8b('0x5d')](_0x2f8b('0xad'),_0x1ccf5a);if(_0x572540[_0x2f8b('0xa6')]===-0x1){return _0x572540;}return this[_0x2f8b('0x10')][_0x2f8b('0xae')](util[_0x2f8b('0x2e')]('Executed\x20command\x20MRCPSynth\x20%s',_0x1ccf5a));};AGIVertices[_0x2f8b('0x12')]['lumenvoxasr']=function(_0x734356){logger[_0x2f8b('0x33')](util[_0x2f8b('0x2e')](_0x2f8b('0xce'),_0x734356[_0x2f8b('0x3c')]));if(!this[_0x2f8b('0x8c')](_0x734356['grammar'])){return this[_0x2f8b('0x10')][_0x2f8b('0xae')](_0x2f8b('0xcf'));}var _0x4e7f42=_0x734356[_0x2f8b('0xb1')];if(this[_0x2f8b('0x8c')](_0x734356[_0x2f8b('0x7d')])){_0x4e7f42+=','+_0x734356[_0x2f8b('0x7d')];}var _0x5c4ba4=this[_0x2f8b('0x10')][_0x2f8b('0x5d')](_0x2f8b('0xb2'),_0x4e7f42);if(_0x5c4ba4['result']===-0x1){return _0x5c4ba4;}var _0x3c2ca1=this[_0x2f8b('0xb3')](_0x2f8b('0xb4'),_0x2f8b('0xd0'));if(_0x3c2ca1[_0x2f8b('0xa6')]===-0x1){return _0x3c2ca1;}var _0x2834a8=this['getAndSetVariable'](_0x2f8b('0xb6'),_0x2f8b('0xd1'));if(_0x2834a8[_0x2f8b('0xa6')]===-0x1){return _0x2834a8;}var _0x3db002=this[_0x2f8b('0xb3')]('RECOG_INSTANCE()',_0x2f8b('0xd2'));if(_0x3db002['result']===-0x1){return _0x3db002;}return this[_0x2f8b('0x10')][_0x2f8b('0xae')](util[_0x2f8b('0x2e')](_0x2f8b('0xba'),_0x4e7f42));};AGIVertices[_0x2f8b('0x12')][_0x2f8b('0xd3')]=function(_0x592fe2){logger[_0x2f8b('0x33')](util[_0x2f8b('0x2e')]('Enter\x20in\x20SESTEKASR\x20(%s)\x20block',_0x592fe2[_0x2f8b('0x3c')]));if(!this[_0x2f8b('0x8c')](_0x592fe2['grammar'])){return this[_0x2f8b('0x10')][_0x2f8b('0xae')](_0x2f8b('0xcf'));}var _0x1be33b=_0x592fe2[_0x2f8b('0xb1')];if(this[_0x2f8b('0x8c')](_0x592fe2[_0x2f8b('0x7d')])){_0x1be33b+=','+_0x592fe2[_0x2f8b('0x7d')];}var _0x3f6db0=this[_0x2f8b('0x10')][_0x2f8b('0x5d')](_0x2f8b('0xb2'),_0x1be33b);if(_0x3f6db0[_0x2f8b('0xa6')]===-0x1){return _0x3f6db0;}var _0x157458=this['getAndSetVariable']('RECOG_CONFIDENCE()',_0x2f8b('0xd4'));if(_0x157458[_0x2f8b('0xa6')]===-0x1){return _0x157458;}var _0x56a895=this[_0x2f8b('0xb3')](_0x2f8b('0xb6'),_0x2f8b('0xd5'));if(_0x56a895[_0x2f8b('0xa6')]===-0x1){return _0x56a895;}var _0x421279=this['getAndSetVariable'](_0x2f8b('0xb8'),_0x2f8b('0xd6'));if(_0x421279[_0x2f8b('0xa6')]===-0x1){return _0x421279;}return this[_0x2f8b('0x10')][_0x2f8b('0xae')](util[_0x2f8b('0x2e')](_0x2f8b('0xba'),_0x1be33b));};AGIVertices[_0x2f8b('0x12')]['database']=function(_0xd0e0b3){logger[_0x2f8b('0x33')](util[_0x2f8b('0x2e')](_0x2f8b('0xd7'),_0xd0e0b3[_0x2f8b('0x3c')]));if(!this[_0x2f8b('0x8c')](_0xd0e0b3['odbc_id'])){return this[_0x2f8b('0x10')]['error'](_0xd0e0b3,_0x2f8b('0xd8'));}var _0x36466c=this[_0x2f8b('0x1b')][_0x2f8b('0xc5')](this,_0xd0e0b3[_0x2f8b('0xd9')]);if(!_0x36466c){return this[_0x2f8b('0x10')][_0x2f8b('0x31')](_0xd0e0b3,_0x2f8b('0xda'));}if(!this[_0x2f8b('0x8c')](_0xd0e0b3[_0x2f8b('0x34')])){return this['channel']['error'](_0xd0e0b3,_0x2f8b('0xdb'));}var _0x1753e6=_0xd0e0b3['query'][_0x2f8b('0x5f')](/(\r\n|\n|\r)/gm,'\x20');this[_0x2f8b('0x10')][_0x2f8b('0xae')](util['format'](_0x2f8b('0xdc'),_0x1753e6));var _0x4ee21c=this[_0x2f8b('0xdd')][_0x2f8b('0xc5')](this,_0x36466c,_0x1753e6);this[_0x2f8b('0x3a')][_0x2f8b('0xc5')](this,_0xd0e0b3,_0x1753e6);if(!this['isConfigured'](_0xd0e0b3[_0x2f8b('0xde')])){return this[_0x2f8b('0x10')][_0x2f8b('0xae')](_0x2f8b('0xdf'));}var _0x14f964=this[_0x2f8b('0x13')][_0x2f8b('0xc5')](this,_0xd0e0b3[_0x2f8b('0xde')]);if(!_0x14f964){return this[_0x2f8b('0x10')][_0x2f8b('0x31')](_0xd0e0b3,_0x2f8b('0xe0'));}var _0x2ff883=this;_0x4ee21c[_0x2f8b('0xe1')](function(_0x44371d,_0x2330b1){Object[_0x2f8b('0xe2')](_0x44371d)['forEach'](function(_0x1be9ef){_0x2ff883[_0x2f8b('0x10')][_0x2f8b('0xa1')](util['format'](_0x2f8b('0xe3'),_0x14f964,_0x2330b1,_0x1be9ef),_0x44371d[_0x1be9ef]);});});this[_0x2f8b('0x10')][_0x2f8b('0xa1')](util['format'](_0x2f8b('0xe4'),_0x14f964),_0x4ee21c[_0x2f8b('0xa3')]);return this[_0x2f8b('0x10')][_0x2f8b('0xae')](util['format']('variable\x20%s\x20set',_0x14f964));};AGIVertices['prototype'][_0x2f8b('0xe5')]=function(_0x4fe2e1){logger[_0x2f8b('0xe6')](util[_0x2f8b('0x2e')](_0x2f8b('0xe7'),_0x4fe2e1[_0x2f8b('0x3c')]));if(!this[_0x2f8b('0x8c')](_0x4fe2e1[_0x2f8b('0xe8')])){return this[_0x2f8b('0x10')][_0x2f8b('0x31')](_0x4fe2e1,_0x2f8b('0xe9'));}var _0x401df9=this[_0x2f8b('0x1e')]['sync'](this,_0x4fe2e1[_0x2f8b('0xe8')]);if(!_0x401df9){return this[_0x2f8b('0x10')]['error'](_0x4fe2e1,_0x2f8b('0xea'));}var _0x4cb745=this[_0x2f8b('0x10')][_0x2f8b('0x5d')](_0x2f8b('0xeb'),[util[_0x2f8b('0x2e')](_0x2f8b('0xec'),_0x401df9),_0x4fe2e1[_0x2f8b('0x6b')],_0x4fe2e1[_0x2f8b('0xed')],_0x4fe2e1[_0x2f8b('0x68')]]);if(_0x4cb745[_0x2f8b('0xa6')]===-0x1){return _0x4cb745;}return this[_0x2f8b('0x10')][_0x2f8b('0xae')](util['format'](_0x2f8b('0xee'),_0x2f8b('0xeb')));};AGIVertices[_0x2f8b('0x12')][_0x2f8b('0xef')]=function(_0x47b0ca){logger[_0x2f8b('0x33')](util[_0x2f8b('0x2e')](_0x2f8b('0xf0'),_0x47b0ca[_0x2f8b('0x3c')]));if(!this[_0x2f8b('0x8c')](_0x47b0ca['key'])){return this[_0x2f8b('0x10')][_0x2f8b('0xae')]('no\x20key\x20configured');}if(!this[_0x2f8b('0x8c')](_0x47b0ca['text'])){return this[_0x2f8b('0x10')][_0x2f8b('0xae')](_0x2f8b('0xac'));}this[_0x2f8b('0x10')][_0x2f8b('0xf1')]=!![];this[_0x2f8b('0x3a')](_0x47b0ca);this[_0x2f8b('0x47')](_0x47b0ca['text'],'in','','');this[_0x2f8b('0x10')][_0x2f8b('0xae')](util[_0x2f8b('0x2e')](_0x2f8b('0xf2'),_0x47b0ca['text']));var _0x44a6e3=this[_0x2f8b('0x7e')][_0x2f8b('0xc5')](this,_0x47b0ca);if(_0x44a6e3){for(var _0x24cc9f in _0x44a6e3){if(_0x44a6e3[_0x2f8b('0x99')](_0x24cc9f)){this[_0x2f8b('0x10')][_0x2f8b('0xa1')](util[_0x2f8b('0x2e')](_0x2f8b('0xf3'),_0x24cc9f[_0x2f8b('0x6f')]()),_0x44a6e3[_0x24cc9f]);}}this[_0x2f8b('0x47')](_0x44a6e3[_0x2f8b('0xf4')],'out',_0x2f8b('0xef'),'');return this[_0x2f8b('0x10')][_0x2f8b('0xae')](util[_0x2f8b('0x2e')](_0x2f8b('0xf5'),_0x44a6e3[_0x2f8b('0xf4')]));}return this[_0x2f8b('0x10')][_0x2f8b('0x31')](_0x47b0ca,_0x2f8b('0xf6'));};AGIVertices[_0x2f8b('0x12')][_0x2f8b('0xf7')]=function(_0x5070e1){logger['info'](util[_0x2f8b('0x2e')](_0x2f8b('0xf8'),_0x5070e1[_0x2f8b('0x3c')]));if(!this[_0x2f8b('0x8c')](_0x5070e1['dialogflowV2_project_id'])){return this[_0x2f8b('0x10')][_0x2f8b('0xae')]('no\x20project_id\x20configured');}if(!this[_0x2f8b('0x8c')](_0x5070e1[_0x2f8b('0xf9')])){return this[_0x2f8b('0x10')][_0x2f8b('0xae')](_0x2f8b('0xfa'));}if(!this[_0x2f8b('0x8c')](_0x5070e1[_0x2f8b('0x83')])){return this[_0x2f8b('0x10')][_0x2f8b('0xae')](_0x2f8b('0xfb'));}if(!this[_0x2f8b('0x8c')](_0x5070e1[_0x2f8b('0x84')])){return this[_0x2f8b('0x10')][_0x2f8b('0xae')](_0x2f8b('0xfc'));}if(!this[_0x2f8b('0x8c')](_0x5070e1['text'])){return this[_0x2f8b('0x10')][_0x2f8b('0xae')](_0x2f8b('0xac'));}this[_0x2f8b('0x10')][_0x2f8b('0xf1')]=!![];this[_0x2f8b('0x3a')](_0x5070e1);this[_0x2f8b('0x47')](_0x5070e1[_0x2f8b('0x62')],'in','','');this['channel'][_0x2f8b('0xae')](util['format']('Trying\x20DialogflowV2:\x20%s',_0x5070e1['text']));var _0x2ba16a=this[_0x2f8b('0x81')][_0x2f8b('0xc5')](this,_0x5070e1);if(_0x2ba16a){for(var _0x3bb01e in _0x2ba16a){if(_0x2ba16a['hasOwnProperty'](_0x3bb01e)){if(_0x3bb01e!==_0x2f8b('0xfd')){this[_0x2f8b('0x10')][_0x2f8b('0xa1')](util[_0x2f8b('0x2e')](_0x2f8b('0xf3'),_0x3bb01e['toUpperCase']()),_0x2ba16a[_0x3bb01e]);}}}this['createSquareMessage'](_0x2ba16a['speech'],_0x2f8b('0xfe'),_0x2f8b('0xf7'),_0x2ba16a[_0x2f8b('0xfd')]);return this[_0x2f8b('0x10')][_0x2f8b('0xae')](util[_0x2f8b('0x2e')](_0x2f8b('0xff'),_0x2ba16a[_0x2f8b('0xf4')]));}return this[_0x2f8b('0x10')][_0x2f8b('0x31')](_0x5070e1,_0x2f8b('0x100'));};AGIVertices['prototype']['sesteknda']=function(_0x340d42){logger[_0x2f8b('0x33')](util[_0x2f8b('0x2e')](_0x2f8b('0x101'),_0x340d42['label']));if(!this[_0x2f8b('0x8c')](_0x340d42[_0x2f8b('0x102')])){return this[_0x2f8b('0x10')][_0x2f8b('0xae')]('no\x20ndauth\x20url\x20configured');}if(!this[_0x2f8b('0x8c')](_0x340d42[_0x2f8b('0x103')])){return this['channel'][_0x2f8b('0xae')](_0x2f8b('0x104'));}if(!this[_0x2f8b('0x8c')](_0x340d42[_0x2f8b('0x105')])){return this[_0x2f8b('0x10')][_0x2f8b('0xae')](_0x2f8b('0x106'));}if(!this['isConfigured'](_0x340d42[_0x2f8b('0x107')])){return this[_0x2f8b('0x10')][_0x2f8b('0xae')]('no\x20text\x20configured');}this[_0x2f8b('0x10')][_0x2f8b('0xf1')]=!![];this[_0x2f8b('0x3a')](_0x340d42);this[_0x2f8b('0x47')](_0x340d42[_0x2f8b('0x62')],'in','','');this[_0x2f8b('0x10')][_0x2f8b('0xae')](util[_0x2f8b('0x2e')](_0x2f8b('0x108'),_0x340d42['text']));var _0x382743=this[_0x2f8b('0x85')][_0x2f8b('0xc5')](this,_0x340d42);if(_0x382743){for(var _0x198e33 in _0x382743){if(_0x382743[_0x2f8b('0x99')](_0x198e33)){this[_0x2f8b('0x10')][_0x2f8b('0xa1')](util[_0x2f8b('0x2e')](_0x2f8b('0x109'),_0x198e33[_0x2f8b('0x6f')]()),_0x382743[_0x198e33]);}}this[_0x2f8b('0x47')](_0x382743[_0x2f8b('0xf4')],_0x2f8b('0xfe'),'sesteknda','');if(_0x382743[_0x2f8b('0x10a')]){this[_0x2f8b('0x10')][_0x2f8b('0xae')](util['format']('Sestek\x20NDA\x20%s\x20file\x20created',_0x382743['audiofile']));var _0x4f0f85=this[_0x2f8b('0x10')]['streamFile'](_0x382743[_0x2f8b('0x10a')]);try{fs[_0x2f8b('0x10b')](_0x382743[_0x2f8b('0x10a')]+'.wav');}catch(_0x3476a0){logger['error'](_0x3476a0);}return _0x4f0f85;}else{return this[_0x2f8b('0x10')]['noop'](util[_0x2f8b('0x2e')]('SestekNDA\x20Result\x20%s',_0x382743['speech']));}}return this[_0x2f8b('0x10')][_0x2f8b('0x31')](_0x340d42,_0x2f8b('0x10c'));};AGIVertices[_0x2f8b('0x12')]['end']=function(_0x5d8ae1){logger[_0x2f8b('0x33')](util[_0x2f8b('0x2e')]('Enter\x20in\x20END\x20(%s)\x20block',_0x5d8ae1['label']));return this[_0x2f8b('0x10')]['noop'](_0x2f8b('0x10d'));};AGIVertices[_0x2f8b('0x12')]['ext_dial']=function(_0x25c516){logger[_0x2f8b('0x33')](util[_0x2f8b('0x2e')]('Enter\x20in\x20EXTERNAL\x20DIAL\x20(%s)\x20block',_0x25c516[_0x2f8b('0x3c')]));var _0x273558='';if(_0x25c516[_0x2f8b('0x10e')]){if(!this[_0x2f8b('0x8c')](_0x25c516[_0x2f8b('0x10e')])){return this['channel'][_0x2f8b('0x31')](_0x25c516,'no\x20trunk\x20selected');}else{var _0x2bac4e=parseInt(_0x25c516['trunk_id'],0xa);if(isNaN(_0x2bac4e)){_0x273558=_0x25c516[_0x2f8b('0x10e')];}else{_0x273558=this[_0x2f8b('0x20')][_0x2f8b('0xc5')](this,_0x25c516[_0x2f8b('0x10e')]);if(!_0x273558){return this[_0x2f8b('0x10')][_0x2f8b('0x31')](_0x25c516,_0x2f8b('0x10f'));}}}}else if(_0x25c516[_0x2f8b('0x110')]){_0x273558=_0x25c516[_0x2f8b('0x110')];}else{return this[_0x2f8b('0x10')][_0x2f8b('0x31')](_0x25c516,_0x2f8b('0x111'));}var _0x32c8dd=this[_0x2f8b('0x10')][_0x2f8b('0x5d')]('DIAL',[util['format'](_0x2f8b('0x112'),_0x273558,_0x25c516[_0x2f8b('0x4e')]),_0x25c516[_0x2f8b('0x6b')],_0x25c516[_0x2f8b('0xed')],_0x25c516[_0x2f8b('0x68')]]);if(_0x32c8dd[_0x2f8b('0xa6')]===-0x1){return _0x32c8dd;}return this[_0x2f8b('0x10')]['noop'](util[_0x2f8b('0x2e')]('Executed\x20command\x20%s',_0x2f8b('0xeb')));};AGIVertices[_0x2f8b('0x12')][_0x2f8b('0x113')]=function(_0xed605c){logger['info'](util[_0x2f8b('0x2e')](_0x2f8b('0x114'),_0xed605c['label']));return this[_0x2f8b('0x10')]['noop'](_0x2f8b('0x113'));};AGIVertices[_0x2f8b('0x12')][_0x2f8b('0xe')]=function(_0x529272){logger[_0x2f8b('0x33')](util['format']('Enter\x20in\x20GETDIGITS\x20(%s)\x20block',_0x529272[_0x2f8b('0x3c')]));if(_0x529272['retry']===0x0){return this['maxRetry'](_0x529272);}_0x529272[_0x2f8b('0x115')]-=0x1;if(!this[_0x2f8b('0x8c')](_0x529272[_0x2f8b('0x116')])){return this['channel']['error'](_0x529272,_0x2f8b('0x117'));}var _0x5d2b23=this['getSound'][_0x2f8b('0xc5')](this,_0x529272['file_id']);if(!_0x5d2b23){return this[_0x2f8b('0x10')]['error'](_0x529272,'no\x20file\x20audio\x20found');}if(!this['isConfigured'](_0x529272[_0x2f8b('0xde')])){return this['channel'][_0x2f8b('0x31')](_0x2f8b('0xdf'));}var _0x267bbc=this[_0x2f8b('0x10')][_0x2f8b('0x118')](_0x5d2b23,_0x529272[_0x2f8b('0x119')],_0x529272[_0x2f8b('0x11a')]);var _0x2e4597=_0x267bbc[_0x2f8b('0xa6')]?_0x267bbc[_0x2f8b('0xa6')][_0x2f8b('0x52')]():'';logger[_0x2f8b('0x33')](_0x2f8b('0x11b'),JSON['stringify'](_0x267bbc));if(_0x267bbc[_0x2f8b('0xa6')]===-0x1){this[_0x2f8b('0x3a')][_0x2f8b('0xc5')](this,_0x529272,_0x2e4597);return _0x267bbc;}else if(_0x267bbc[_0x2f8b('0xa8')]==='timeout'){_0x267bbc['result']=_0x2e4597[_0x2f8b('0xa3')]>=parseInt(_0x529272[_0x2f8b('0x11c')])?'x':'i';}else{_0x267bbc[_0x2f8b('0xa6')]=_0x2e4597[_0x2f8b('0xa3')]>=parseInt(_0x529272[_0x2f8b('0x11c')])&&_0x2e4597['length']<=parseInt(_0x529272[_0x2f8b('0x11a')])?'x':'i';}var _0x1728b3=this[_0x2f8b('0x13')][_0x2f8b('0xc5')](this,_0x529272[_0x2f8b('0xde')]);if(!_0x1728b3){return this[_0x2f8b('0x10')][_0x2f8b('0x31')](_0x529272,_0x2f8b('0xe0'));}this[_0x2f8b('0x10')]['setVariable'](_0x1728b3,_0x2e4597);if(this[_0x2f8b('0x8c')](_0x529272[_0x2f8b('0x11d')])){var _0x5b67a0=parseInt(_0x529272['hiddendigitsnum'],0xa);var _0x49cdec=rs[_0x2f8b('0x11e')]({'charset':'*','length':_0x5b67a0});var _0x4b7e99=_0x2e4597[_0x2f8b('0xa3')];if(_0x4b7e99>0x0){if(_0x4b7e99>_0x5b67a0){this[_0x2f8b('0x3a')][_0x2f8b('0xc5')](this,_0x529272,_0x529272[_0x2f8b('0x11f')]===_0x2f8b('0x120')?_0x49cdec+_0x2e4597['substr'](_0x5b67a0):_0x2e4597[_0x2f8b('0x121')](0x0,_0x4b7e99-_0x5b67a0)+_0x49cdec);}else{this[_0x2f8b('0x3a')][_0x2f8b('0xc5')](this,_0x529272,rs[_0x2f8b('0x11e')]({'charset':'*','length':_0x4b7e99}));}}else{this['createSquareDetailsReport'][_0x2f8b('0xc5')](this,_0x529272,'');}}else{this[_0x2f8b('0x3a')][_0x2f8b('0xc5')](this,_0x529272,_0x2e4597);}return _0x267bbc;};AGIVertices[_0x2f8b('0x12')]['getsecretdigits']=function(_0x140bfe){logger['info'](util[_0x2f8b('0x2e')](_0x2f8b('0x122'),_0x140bfe['label']));return this['getdigits'](_0x140bfe);};AGIVertices[_0x2f8b('0x12')]['goal']=function(_0x3021f6){logger[_0x2f8b('0x33')](util[_0x2f8b('0x2e')](_0x2f8b('0x123'),_0x3021f6[_0x2f8b('0x3c')]));this[_0x2f8b('0x3a')][_0x2f8b('0xc5')](this,_0x3021f6,_0x3021f6['goalname']);return this[_0x2f8b('0x10')][_0x2f8b('0xae')](util[_0x2f8b('0x2e')](_0x2f8b('0x124'),_0x3021f6[_0x2f8b('0x125')]));};AGIVertices[_0x2f8b('0x12')][_0x2f8b('0x126')]=function(_0x307339){logger[_0x2f8b('0x33')](util[_0x2f8b('0x2e')](_0x2f8b('0x127'),_0x307339[_0x2f8b('0x3c')]));if(!this['isConfigured'](_0x307339[_0x2f8b('0x91')])||!this[_0x2f8b('0x8c')](_0x307339[_0x2f8b('0x92')])){return this[_0x2f8b('0x10')]['noop']('no\x20valid\x20credentials\x20configured');}if(!this[_0x2f8b('0x8c')](_0x307339['text'])){return this['channel'][_0x2f8b('0xae')]('no\x20text\x20configured');}this[_0x2f8b('0x10')]['noop'](util[_0x2f8b('0x2e')]('Trying\x20aws\x20Polly\x20%s',_0x307339[_0x2f8b('0x62')]));var _0x26a958=this[_0x2f8b('0x8e')][_0x2f8b('0xc5')](this,_0x307339);if(_0x26a958){this[_0x2f8b('0x10')]['noop'](util[_0x2f8b('0x2e')]('aws\x20Polly\x20%s\x20file\x20created',_0x26a958));var _0x5f823c=this[_0x2f8b('0x10')]['streamFile'](_0x26a958);try{fs[_0x2f8b('0x10b')](_0x26a958+_0x2f8b('0x128'));}catch(_0x11f81b){logger['error'](_0x11f81b);}return _0x5f823c;}return this[_0x2f8b('0x10')][_0x2f8b('0x31')](_0x307339,'aws\x20Polly\x20is\x20unreachable');};AGIVertices[_0x2f8b('0x12')][_0x2f8b('0x129')]=function(_0x993cdb){logger[_0x2f8b('0x33')](util[_0x2f8b('0x2e')](_0x2f8b('0x12a'),_0x993cdb['label']));if(!this[_0x2f8b('0x8c')](_0x993cdb[_0x2f8b('0x91')])||!this[_0x2f8b('0x8c')](_0x993cdb[_0x2f8b('0x92')])){return this[_0x2f8b('0x10')][_0x2f8b('0xae')]('no\x20valid\x20credentials\x20configured');}if(!this['isConfigured'](_0x993cdb[_0x2f8b('0x93')])){return this[_0x2f8b('0x10')][_0x2f8b('0xae')]('no\x20bot\x20name\x20configured');}if(!this[_0x2f8b('0x8c')](_0x993cdb[_0x2f8b('0x62')])){return this[_0x2f8b('0x10')][_0x2f8b('0xae')]('no\x20text\x20configured');}this[_0x2f8b('0x10')]['bot']=!![];this['createSquareDetailsReport'](_0x993cdb);this[_0x2f8b('0x47')](_0x993cdb[_0x2f8b('0x62')],'in','','');this[_0x2f8b('0x10')]['noop'](util['format'](_0x2f8b('0x12b'),_0x993cdb[_0x2f8b('0x62')]));var _0xbe94b1=this[_0x2f8b('0x90')]['sync'](this,_0x993cdb);if(_0xbe94b1){for(var _0x4a611e in _0xbe94b1){if(_0xbe94b1[_0x2f8b('0x99')](_0x4a611e)&&_[_0x2f8b('0x9a')](_0xbe94b1[_0x4a611e])){this['channel'][_0x2f8b('0xa1')](util['format'](_0x2f8b('0x12c'),_0x4a611e[_0x2f8b('0x6f')]()),_0xbe94b1[_0x4a611e]);}}if(_[_0x2f8b('0x4a')](_0xbe94b1[_0x2f8b('0x12d')])){return this['channel'][_0x2f8b('0xae')](_0x2f8b('0x12e'));}else{this[_0x2f8b('0x47')](_0xbe94b1[_0x2f8b('0x12d')],_0x2f8b('0xfe'),_0x2f8b('0x12f'),'');return this[_0x2f8b('0x10')]['noop'](util[_0x2f8b('0x2e')]('Amazon\x20Lex\x20Result\x20%s',_0xbe94b1[_0x2f8b('0x12d')]));}}return this[_0x2f8b('0x10')][_0x2f8b('0x31')](_0x993cdb,_0x2f8b('0x130'));};AGIVertices['prototype']['googleasr']=function(_0x255899){logger[_0x2f8b('0x33')](util[_0x2f8b('0x2e')](_0x2f8b('0x131'),_0x255899['label'],_0x255899['timeout']));if(!this[_0x2f8b('0x8c')](_0x255899[_0x2f8b('0x7f')])){return this[_0x2f8b('0x10')][_0x2f8b('0xae')](_0x2f8b('0x132'));}var _0x458e20=_0x2f8b('0x133');var _0x1b5573=util[_0x2f8b('0x2e')](_0x2f8b('0x134'),FILES_PATH,rs[_0x2f8b('0x11e')](0x4));var _0x187966=util['format'](_0x2f8b('0xa0'),_0x1b5573,_0x458e20);var _0x2715ae=!![];if(_0x255899[_0x2f8b('0x135')]==='NOBEEP'){_0x2715ae=![];}var _0x36da16=this[_0x2f8b('0x10')][_0x2f8b('0x136')](_0x1b5573,_0x458e20,_0x255899[_0x2f8b('0x137')],_0x255899[_0x2f8b('0x6b')],undefined,_0x2715ae);if(_0x36da16['result']!==-0x1){this[_0x2f8b('0x10')]['noop'](util['format']('google\x20%s\x20file\x20created',_0x187966));var _0x12c903=this[_0x2f8b('0x94')][_0x2f8b('0xc5')](this,_0x255899,_0x187966);if(_0x12c903){for(var _0x3bc73a in _0x12c903){if(_0x12c903[_0x2f8b('0x99')](_0x3bc73a)){this[_0x2f8b('0x10')][_0x2f8b('0xa1')](util[_0x2f8b('0x2e')]('GOOGLE_ASR_%s',_0x3bc73a[_0x2f8b('0x6f')]()),_0x12c903[_0x3bc73a]);}}return this[_0x2f8b('0x10')][_0x2f8b('0xae')](util['format'](_0x2f8b('0x138'),JSON['stringify'](_0x12c903)));}}return _0x36da16;};AGIVertices['prototype'][_0x2f8b('0x139')]=function(_0x37e283){logger[_0x2f8b('0x33')](util[_0x2f8b('0x2e')](_0x2f8b('0x13a'),_0x37e283[_0x2f8b('0x3c')]));if(!this['isConfigured'](_0x37e283[_0x2f8b('0x96')])){return this[_0x2f8b('0x10')][_0x2f8b('0xae')](_0x2f8b('0x13b'));}if(!this[_0x2f8b('0x8c')](_0x37e283['appsecret'])){return this[_0x2f8b('0x10')][_0x2f8b('0xae')](_0x2f8b('0x13c'));}var _0x40bfb3=_0x2f8b('0x133');var _0x2b65ec=util['format'](_0x2f8b('0x134'),FILES_PATH,rs[_0x2f8b('0x11e')](0x4));var _0x297676=util[_0x2f8b('0x2e')](_0x2f8b('0xa0'),_0x2b65ec,_0x40bfb3);var _0x5a65aa=!![];if(_0x37e283[_0x2f8b('0x135')]==='NOBEEP'){_0x5a65aa=![];}var _0xd18ed2=this[_0x2f8b('0x10')][_0x2f8b('0x136')](_0x2b65ec,_0x40bfb3,_0x37e283[_0x2f8b('0x137')],_0x37e283['timeout'],undefined,_0x5a65aa);if(_0xd18ed2['result']!==-0x1){this[_0x2f8b('0x10')][_0x2f8b('0xae')](util['format']('tilde\x20%s\x20file\x20created',_0x297676));var _0x379671=this[_0x2f8b('0x95')][_0x2f8b('0xc5')](this,_0x37e283,_0x297676);if(_0x379671){for(var _0x4766bd in _0x379671){if(_0x379671['hasOwnProperty'](_0x4766bd)){this[_0x2f8b('0x10')]['setVariable'](util[_0x2f8b('0x2e')](_0x2f8b('0x13d'),_0x4766bd[_0x2f8b('0x6f')]()),_0x379671[_0x4766bd]);}}return this[_0x2f8b('0x10')][_0x2f8b('0xae')](util['format'](_0x2f8b('0x13e'),JSON[_0x2f8b('0x78')](_0x379671)));}}return _0xd18ed2;};AGIVertices['prototype']['gotoc']=function(_0x41206d){logger[_0x2f8b('0x33')](util[_0x2f8b('0x2e')](_0x2f8b('0x13f'),_0x41206d[_0x2f8b('0x3c')]));return this['channel'][_0x2f8b('0x140')](_0x41206d[_0x2f8b('0x41')],_0x41206d['extension'],_0x41206d[_0x2f8b('0x43')]);};AGIVertices[_0x2f8b('0x12')][_0x2f8b('0x141')]=function(_0x4a5181){logger['info'](util['format'](_0x2f8b('0x142'),_0x4a5181[_0x2f8b('0x3c')]));if(!this['isConfigured'](_0x4a5181['condition'])){return this['channel'][_0x2f8b('0x31')](_0x4a5181,_0x2f8b('0x143'));}try{var _0x2b062c=eval(_0x4a5181[_0x2f8b('0x144')])?_0x2f8b('0x145'):_0x2f8b('0x146');this[_0x2f8b('0x10')][_0x2f8b('0xae')](util[_0x2f8b('0x2e')](_0x2f8b('0x147'),_0x4a5181[_0x2f8b('0x144')],_0x2b062c));return{'code':0xc8,'result':_0x2b062c};}catch(_0x302a44){return{'code':0xc8,'result':_0x2f8b('0x146')};}};AGIVertices[_0x2f8b('0x12')][_0x2f8b('0x148')]=function(_0xb378bf){logger['info'](util[_0x2f8b('0x2e')](_0x2f8b('0x149'),_0xb378bf[_0x2f8b('0x3c')]));if(!this[_0x2f8b('0x8c')](_0xb378bf[_0x2f8b('0x14a')])){return this[_0x2f8b('0x10')]['error'](_0xb378bf,_0x2f8b('0x14b'));}var _0x5f04ce=this['getIntervals'][_0x2f8b('0xc5')](this,_0xb378bf['interval_id']);if(!_0x5f04ce){return this['channel']['error'](_0xb378bf,'no\x20intervals\x20found');}for(var _0x48936c=0x0;_0x48936c<_0x5f04ce['length'];_0x48936c+=0x1){var _0x482c87=this[_0x2f8b('0x10')][_0x2f8b('0x13')](util[_0x2f8b('0x2e')](_0x2f8b('0x14c'),_0x5f04ce[_0x48936c]));if(_0x482c87[_0x2f8b('0xa6')]===-0x1){return _0x482c87;}logger['info'](util[_0x2f8b('0x2e')]('IFTIME\x20%s\x20%s',_0x5f04ce[_0x48936c],_0x482c87[_0x2f8b('0xa8')]));if(_0x482c87[_0x2f8b('0xa8')]===_0x2f8b('0x145')){logger[_0x2f8b('0x33')](util[_0x2f8b('0x2e')]('IFTIME\x20%s\x20%s',_0x5f04ce[_0x48936c],_0x2f8b('0x145')));this[_0x2f8b('0x10')][_0x2f8b('0xae')](util[_0x2f8b('0x2e')](_0x2f8b('0x14d'),_0x5f04ce[_0x48936c],_0x2f8b('0x145')));return{'code':0xc8,'result':_0x2f8b('0x145')};}else{logger[_0x2f8b('0x33')](util[_0x2f8b('0x2e')](_0x2f8b('0x14d'),_0x5f04ce[_0x48936c],_0x2f8b('0x146')));this[_0x2f8b('0x10')][_0x2f8b('0xae')](util[_0x2f8b('0x2e')]('IFTIME\x20%s\x20%s',_0x5f04ce[_0x48936c],_0x2f8b('0x146')));}}return{'code':0xc8,'result':'false'};};AGIVertices[_0x2f8b('0x12')][_0x2f8b('0x14e')]=function(_0x22616b){logger[_0x2f8b('0x33')](util[_0x2f8b('0x2e')](_0x2f8b('0x14f'),_0x22616b[_0x2f8b('0x3c')]));return this[_0x2f8b('0x10')][_0x2f8b('0x14e')]();};AGIVertices[_0x2f8b('0x12')][_0x2f8b('0x150')]=function(_0x445f61){logger['info'](util[_0x2f8b('0x2e')](_0x2f8b('0x151'),_0x445f61[_0x2f8b('0x3c')]));if(!this['isConfigured'](_0x445f61[_0x2f8b('0x7f')])){return this[_0x2f8b('0x10')][_0x2f8b('0xae')]('no\x20key\x20configured');}var _0x3e04c6=_0x2f8b('0x133');var _0xc598d9=util[_0x2f8b('0x2e')](_0x2f8b('0x134'),FILES_PATH,rs[_0x2f8b('0x11e')](0x4));var _0x179f5b=util['format'](_0x2f8b('0xa0'),_0xc598d9,_0x3e04c6);var _0x324144=!![];if(_0x445f61[_0x2f8b('0x135')]==='NOBEEP'){_0x324144=![];}var _0x4c752f=this[_0x2f8b('0x10')][_0x2f8b('0x136')](_0xc598d9,_0x3e04c6,_0x445f61['intKey'],_0x445f61[_0x2f8b('0x6b')],undefined,_0x324144);if(_0x4c752f['result']!==-0x1){this[_0x2f8b('0x10')]['noop'](util[_0x2f8b('0x2e')](_0x2f8b('0x152'),_0x179f5b));var _0x1d90a4=this[_0x2f8b('0x8a')][_0x2f8b('0xc5')](this,_0x445f61,_0x179f5b);if(_0x1d90a4){for(var _0x286786 in _0x1d90a4){if(_0x1d90a4[_0x2f8b('0x99')](_0x286786)){this['channel'][_0x2f8b('0xa1')](util[_0x2f8b('0x2e')](_0x2f8b('0x153'),_0x286786[_0x2f8b('0x6f')]()),_0x1d90a4[_0x286786]);}}return this[_0x2f8b('0x10')][_0x2f8b('0xae')](util[_0x2f8b('0x2e')](_0x2f8b('0x154'),JSON[_0x2f8b('0x78')](_0x1d90a4)));}}return _0x4c752f;};AGIVertices['prototype'][_0x2f8b('0x155')]=function(_0x1546c9){logger[_0x2f8b('0x33')](util[_0x2f8b('0x2e')](_0x2f8b('0x156'),_0x1546c9[_0x2f8b('0x3c')]));if(!this['isConfigured'](_0x1546c9[_0x2f8b('0x7f')])){return this[_0x2f8b('0x10')]['noop'](_0x2f8b('0x132'));}if(!this[_0x2f8b('0x8c')](_0x1546c9['text'])){return this[_0x2f8b('0x10')][_0x2f8b('0xae')](_0x2f8b('0xac'));}this[_0x2f8b('0x10')]['noop'](util[_0x2f8b('0x2e')](_0x2f8b('0x157'),_0x1546c9[_0x2f8b('0x62')]));var _0x25e927=this[_0x2f8b('0x86')]['sync'](this,_0x1546c9);if(_0x25e927){this[_0x2f8b('0x10')]['noop'](util[_0x2f8b('0x2e')](_0x2f8b('0x152'),_0x25e927));var _0x9d5a53=this[_0x2f8b('0x10')][_0x2f8b('0x158')](_0x25e927,_0x1546c9[_0x2f8b('0x137')]);try{fs['unlink'](_0x25e927+_0x2f8b('0x128'));}catch(_0x5c2af6){logger[_0x2f8b('0x31')](_0x5c2af6);}return _0x9d5a53;}return this[_0x2f8b('0x10')][_0x2f8b('0x31')](_0x1546c9,_0x2f8b('0x159'));};AGIVertices['prototype']['login']=function(_0x4ebcff){logger[_0x2f8b('0x33')](util[_0x2f8b('0x2e')](_0x2f8b('0x15a'),_0x4ebcff[_0x2f8b('0x3c')]));if(!this[_0x2f8b('0x8c')](_0x4ebcff['findBy'])){return this[_0x2f8b('0x10')][_0x2f8b('0x31')](_0x4ebcff,'no\x20find\x20by\x20configured');}logger['info'](util[_0x2f8b('0x2e')](_0x2f8b('0x15b'),this[_0x2f8b('0x10')][_0x2f8b('0x3f')],_0x4ebcff[_0x2f8b('0x15c')]));var _0x3929c6=this[_0x2f8b('0x59')]['sync'](this,_0x4ebcff[_0x2f8b('0x15c')]);if(_0x3929c6){logger['info'](util[_0x2f8b('0x2e')]('AGENT\x20%s\x20FOUND\x20BY',this['channel'][_0x2f8b('0x3f')],_0x4ebcff[_0x2f8b('0x15c')]));this[_0x2f8b('0x10')][_0x2f8b('0xae')](util['format'](_0x2f8b('0x15d'),this[_0x2f8b('0x10')][_0x2f8b('0x3f')],_0x4ebcff['findBy']));return{'code':0xc8,'result':_0x2f8b('0x15e')};}else{logger['info'](util[_0x2f8b('0x2e')](_0x2f8b('0x15f'),this[_0x2f8b('0x10')]['callerid'],_0x4ebcff[_0x2f8b('0x15c')]));this[_0x2f8b('0x10')][_0x2f8b('0xae')](util[_0x2f8b('0x2e')](_0x2f8b('0x15f'),this['channel'][_0x2f8b('0x3f')],_0x4ebcff['findBy']));return{'code':0xc8,'result':'failure'};}};AGIVertices[_0x2f8b('0x12')][_0x2f8b('0x160')]=function(_0x52e697){logger[_0x2f8b('0x33')](util[_0x2f8b('0x2e')](_0x2f8b('0x161'),_0x52e697[_0x2f8b('0x3c')]));if(!this['isConfigured'](_0x52e697[_0x2f8b('0x15c')])){return this[_0x2f8b('0x10')]['error'](_0x52e697,'no\x20find\x20by\x20configured');}logger['info'](util[_0x2f8b('0x2e')](_0x2f8b('0x15b'),this[_0x2f8b('0x10')][_0x2f8b('0x3f')],_0x52e697[_0x2f8b('0x15c')]));var _0x536238=this['agentLogout'][_0x2f8b('0xc5')](this,_0x52e697[_0x2f8b('0x15c')]);if(_0x536238){logger[_0x2f8b('0x33')](util['format'](_0x2f8b('0x15d'),this[_0x2f8b('0x10')]['callerid'],_0x52e697[_0x2f8b('0x15c')]));this[_0x2f8b('0x10')][_0x2f8b('0xae')](util[_0x2f8b('0x2e')](_0x2f8b('0x15d'),this['channel']['callerid'],_0x52e697[_0x2f8b('0x15c')]));return{'code':0xc8,'result':'success'};}else{logger[_0x2f8b('0x33')](util[_0x2f8b('0x2e')](_0x2f8b('0x15f'),this[_0x2f8b('0x10')][_0x2f8b('0x3f')],_0x52e697['findBy']));this[_0x2f8b('0x10')]['noop'](util[_0x2f8b('0x2e')]('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this[_0x2f8b('0x10')][_0x2f8b('0x3f')],_0x52e697['findBy']));return{'code':0xc8,'result':_0x2f8b('0x162')};}};AGIVertices[_0x2f8b('0x12')]['math']=function(_0x554515){logger[_0x2f8b('0x33')](util['format'](_0x2f8b('0x163'),_0x554515[_0x2f8b('0x3c')]));if(!this[_0x2f8b('0x8c')](_0x554515['operation'])){return this[_0x2f8b('0x10')]['error'](_0x554515,_0x2f8b('0x164'));}this[_0x2f8b('0x10')][_0x2f8b('0xae')](util[_0x2f8b('0x2e')](_0x2f8b('0x165'),_0x554515['operation']));var _0x35c156=eval(_0x554515[_0x2f8b('0x166')]);if(!this[_0x2f8b('0x8c')](_0x554515[_0x2f8b('0xde')])){return this[_0x2f8b('0x10')][_0x2f8b('0xae')](_0x2f8b('0xdf'));}var _0x4ed1ed=this[_0x2f8b('0x13')][_0x2f8b('0xc5')](this,_0x554515[_0x2f8b('0xde')]);if(!_0x4ed1ed){return this[_0x2f8b('0x10')][_0x2f8b('0x31')](_0x554515,'no\x20variable\x20found');}if(_[_0x2f8b('0x9d')](_0x35c156)){var _0x16bf8c=this;_0x35c156[_0x2f8b('0xe1')](function(_0x4900e2,_0x50ef30){_0x16bf8c[_0x2f8b('0x10')][_0x2f8b('0xa1')](util['format'](_0x2f8b('0x167'),_0x4ed1ed,_0x50ef30),_0x4900e2);});return this[_0x2f8b('0x10')][_0x2f8b('0xae')](util['format']('variable\x20%s[key]\x20set',_0x4ed1ed));}else{return this[_0x2f8b('0x10')]['setVariable'](_0x4ed1ed,_0x35c156);}};AGIVertices[_0x2f8b('0x12')][_0x2f8b('0xd')]=function(_0x51197f){logger[_0x2f8b('0x33')](util[_0x2f8b('0x2e')](_0x2f8b('0x168'),_0x51197f['label']));if(_0x51197f[_0x2f8b('0x115')]===0x0){return this[_0x2f8b('0xa9')](_0x51197f);}_0x51197f['retry']-=0x1;if(!this[_0x2f8b('0x8c')](_0x51197f[_0x2f8b('0x116')])){return this[_0x2f8b('0x10')][_0x2f8b('0x31')](_0x51197f,_0x2f8b('0x117'));}var _0x154ec3=this[_0x2f8b('0x169')][_0x2f8b('0xc5')](this,_0x51197f[_0x2f8b('0x116')]);if(!_0x154ec3){return this[_0x2f8b('0x10')][_0x2f8b('0x31')](_0x51197f,_0x2f8b('0x16a'));}var _0x16c41e=this['channel'][_0x2f8b('0x118')](_0x154ec3,_0x51197f[_0x2f8b('0x119')],_0x51197f['digit']);var _0x34317e=_0x16c41e[_0x2f8b('0xa6')];if(_0x16c41e[_0x2f8b('0xa6')]===-0x1){this['createSquareDetailsReport'][_0x2f8b('0xc5')](this,_0x51197f,'-1');return _0x16c41e;}else if(_0x16c41e['extra']===_0x2f8b('0x6b')){_0x16c41e[_0x2f8b('0xa6')]=_0x16c41e[_0x2f8b('0xa6')][_0x2f8b('0xa3')]>0x0?_0x16c41e[_0x2f8b('0xa6')]:'t';}else if(_[_0x2f8b('0x49')](_0x16c41e[_0x2f8b('0xa6')])){_0x16c41e[_0x2f8b('0xa6')]='#';_0x34317e='#';}if(!this['isConfigured'](_0x51197f[_0x2f8b('0xde')])){this[_0x2f8b('0x10')][_0x2f8b('0xae')](_0x2f8b('0xdf'));}else{var _0x2a2c80=this[_0x2f8b('0x13')]['sync'](this,_0x51197f[_0x2f8b('0xde')]);if(!_0x2a2c80){return this[_0x2f8b('0x10')]['error'](_0x51197f,'no\x20variable\x20found');}this['channel'][_0x2f8b('0xa1')](_0x2a2c80,_0x34317e);}this[_0x2f8b('0x3a')][_0x2f8b('0xc5')](this,_0x51197f,_0x34317e);return _0x16c41e;};AGIVertices[_0x2f8b('0x12')][_0x2f8b('0xae')]=function(_0x2e1edb){logger[_0x2f8b('0x33')](util[_0x2f8b('0x2e')]('Enter\x20in\x20NOOP\x20(%s)\x20block',_0x2e1edb[_0x2f8b('0x3c')]));return this[_0x2f8b('0x10')][_0x2f8b('0xae')](_0x2e1edb[_0x2f8b('0x16b')]||_0x2e1edb[_0x2f8b('0x3c')]);};AGIVertices[_0x2f8b('0x12')][_0x2f8b('0x16c')]=function(_0x3196e0){logger['info'](util[_0x2f8b('0x2e')](_0x2f8b('0x16d'),_0x3196e0[_0x2f8b('0x3c')]));if(!this[_0x2f8b('0x8c')](_0x3196e0[_0x2f8b('0x15c')])){return this[_0x2f8b('0x10')][_0x2f8b('0x31')](_0x3196e0,_0x2f8b('0x16e'));}logger[_0x2f8b('0x33')](util['format'](_0x2f8b('0x15b'),this['channel'][_0x2f8b('0x3f')],_0x3196e0[_0x2f8b('0x15c')]));var _0x163bc9=this[_0x2f8b('0x16f')][_0x2f8b('0xc5')](this,_0x3196e0[_0x2f8b('0x170')]);var _0x5b93f7=this['agentPause'][_0x2f8b('0xc5')](this,_0x3196e0[_0x2f8b('0x15c')],_0x163bc9);if(_0x5b93f7){logger[_0x2f8b('0x33')](util['format']('AGENT\x20%s\x20FOUND\x20BY',this[_0x2f8b('0x10')][_0x2f8b('0x3f')],_0x3196e0[_0x2f8b('0x15c')]));this[_0x2f8b('0x10')][_0x2f8b('0xae')](util[_0x2f8b('0x2e')]('AGENT\x20%s\x20FOUND\x20BY',this[_0x2f8b('0x10')][_0x2f8b('0x3f')],_0x3196e0[_0x2f8b('0x15c')]));return{'code':0xc8,'result':'success'};}else{logger[_0x2f8b('0x33')](util['format'](_0x2f8b('0x15f'),this[_0x2f8b('0x10')][_0x2f8b('0x3f')],_0x3196e0[_0x2f8b('0x15c')]));this['channel']['noop'](util[_0x2f8b('0x2e')](_0x2f8b('0x15d'),this['channel'][_0x2f8b('0x3f')],_0x3196e0['findBy']));return{'code':0xc8,'result':_0x2f8b('0x162')};}};AGIVertices[_0x2f8b('0x12')][_0x2f8b('0x171')]=function(_0x3f1556){logger[_0x2f8b('0x33')](util[_0x2f8b('0x2e')](_0x2f8b('0x172'),_0x3f1556['label']));if(!this['isConfigured'](_0x3f1556[_0x2f8b('0x116')])){return this[_0x2f8b('0x10')]['error'](_0x3f1556,'no\x20file\x20audio\x20selected');}var _0x561a55=this[_0x2f8b('0x169')][_0x2f8b('0xc5')](this,_0x3f1556[_0x2f8b('0x116')]);if(!_0x561a55){return this[_0x2f8b('0x10')][_0x2f8b('0x31')](_0x3f1556,_0x2f8b('0x16a'));}var _0x250e25=this[_0x2f8b('0x10')]['exec'](_0x2f8b('0x173'),[_0x561a55,_0x3f1556['opts']]);if(_0x250e25[_0x2f8b('0xa6')]===-0x1){return _0x250e25;}return this[_0x2f8b('0x10')][_0x2f8b('0xae')](util[_0x2f8b('0x2e')](_0x2f8b('0xc9'),_0x2f8b('0x173'),_0x561a55));};AGIVertices[_0x2f8b('0x12')][_0x2f8b('0x174')]=function(_0x28c4c0){logger[_0x2f8b('0x33')](util[_0x2f8b('0x2e')](_0x2f8b('0x175'),_0x28c4c0[_0x2f8b('0x3c')]));if(!this[_0x2f8b('0x8c')](_0x28c4c0[_0x2f8b('0x176')])){return this['channel']['error'](_0x28c4c0,'no\x20queue\x20selected');}var _0x43776b='';var _0x1c0bdf=parseInt(_0x28c4c0[_0x2f8b('0x176')],0xa);if(isNaN(_0x1c0bdf)){_0x43776b=_0x28c4c0[_0x2f8b('0x176')];}else{_0x43776b=this[_0x2f8b('0x177')][_0x2f8b('0xc5')](this,_0x28c4c0[_0x2f8b('0x176')]);if(!_0x43776b){return this[_0x2f8b('0x10')]['error'](_0x28c4c0,_0x2f8b('0x178'));}}var _0x377264='';if(this['isConfigured'](_0x28c4c0[_0x2f8b('0x116')])){var _0x503f66=this['getSound'][_0x2f8b('0xc5')](this,_0x28c4c0['file_id']);if(_0x503f66){_0x377264=_0x503f66;}}this['createSquareDetailsReport']['sync'](this,_0x28c4c0,_0x43776b);if(_0x28c4c0[_0x2f8b('0xed')]['indexOf']('x')<0x0){_0x28c4c0[_0x2f8b('0xed')]+='x';}if(_0x28c4c0['opts'][_0x2f8b('0x179')]('X')<0x0){_0x28c4c0[_0x2f8b('0xed')]+='X';}this[_0x2f8b('0x10')]['setVariable'](_0x2f8b('0x17a'),_0x43776b?_0x43776b['toLowerCase']():'');var _0x524073=this[_0x2f8b('0x10')][_0x2f8b('0x5d')]('QUEUE',[_0x43776b,_0x28c4c0['opts'],_0x28c4c0[_0x2f8b('0x68')],_0x377264,_0x28c4c0[_0x2f8b('0x6b')],_0x28c4c0[_0x2f8b('0xbb')],_0x28c4c0['macro'],_0x28c4c0[_0x2f8b('0x17b')],'',_0x28c4c0[_0x2f8b('0x17c')]]);if(_0x524073[_0x2f8b('0xa6')]===-0x1){return _0x524073;}return this[_0x2f8b('0x10')][_0x2f8b('0xae')](util[_0x2f8b('0x2e')](_0x2f8b('0xc9'),_0x2f8b('0x17d'),_0x43776b));};AGIVertices[_0x2f8b('0x12')][_0x2f8b('0x17e')]=function(_0x225334){logger[_0x2f8b('0x33')](util[_0x2f8b('0x2e')]('Enter\x20in\x20RECORD\x20(%s)\x20block',_0x225334[_0x2f8b('0x3c')]));var _0xf58755=_0x225334['recordingFormat']||_0x2f8b('0x133');var _0x3f2bf7=util[_0x2f8b('0x2e')]('%s_%s',this[_0x2f8b('0x10')][_0x2f8b('0x3b')],rs[_0x2f8b('0x11e')](0x5));var _0x89ff70=util[_0x2f8b('0x2e')](_0x2f8b('0x17f'),FILES_PATH,_0x3f2bf7,_0xf58755);var _0x17ce9e=util[_0x2f8b('0x2e')]('%s/recordings/%s',FILES_PATH,_0x3f2bf7);this[_0x2f8b('0x180')][_0x2f8b('0xc5')](this,_0x225334,_0x3f2bf7,_0x89ff70);this[_0x2f8b('0x10')][_0x2f8b('0xa1')](_0x2f8b('0x181'),_0x3f2bf7);logger[_0x2f8b('0x33')]('Recording\x20%s\x20%s\x20%s\x20%s',_0x17ce9e,_0xf58755,_0x225334[_0x2f8b('0x182')],_0x225334[_0x2f8b('0x6b')]);return this[_0x2f8b('0x10')][_0x2f8b('0x136')](_0x17ce9e,_0xf58755,_0x225334[_0x2f8b('0x182')],_0x225334[_0x2f8b('0x6b')],undefined,!![]);};AGIVertices[_0x2f8b('0x12')][_0x2f8b('0x183')]=function(_0x416f75){logger[_0x2f8b('0x33')](util[_0x2f8b('0x2e')](_0x2f8b('0x184'),_0x416f75[_0x2f8b('0x3c')]));if(!this[_0x2f8b('0x8c')](_0x416f75[_0x2f8b('0x68')])){return this[_0x2f8b('0x10')][_0x2f8b('0xae')](_0x2f8b('0x185'));}var _0x35e470=this['restAPI'][_0x2f8b('0xc5')](this,_0x416f75);logger[_0x2f8b('0x33')](util[_0x2f8b('0x2e')](_0x2f8b('0x186'),util['inspect'](_0x35e470,{'showHidden':![],'depth':null})));if(!this[_0x2f8b('0x8c')](_0x416f75[_0x2f8b('0xde')])){return this[_0x2f8b('0x10')][_0x2f8b('0xae')](_0x2f8b('0x187'));}var _0x1ae667=this[_0x2f8b('0x13')][_0x2f8b('0xc5')](this,_0x416f75['variable_id']);if(!_0x1ae667){return this[_0x2f8b('0x10')][_0x2f8b('0x31')](_0x416f75,_0x2f8b('0xe0'));}this[_0x2f8b('0x10')][_0x2f8b('0xa1')](util['format'](_0x2f8b('0x188'),_0x1ae667),_0x35e470[_0x2f8b('0x7a')]?_0x35e470[_0x2f8b('0x7a')]:_0x2f8b('0x189'));this[_0x2f8b('0x10')][_0x2f8b('0xa1')](util[_0x2f8b('0x2e')]('%s_STATUS_MESSAGE',_0x1ae667),_0x35e470[_0x2f8b('0x7b')]?_0x35e470[_0x2f8b('0x7b')]:'OK');if(_0x35e470[_0x2f8b('0x70')]){try{this['saveRestApiResult'](_0x35e470[_0x2f8b('0x70')],_0x1ae667);}catch(_0x21ed1e){logger[_0x2f8b('0x31')](util['format'](_0x2f8b('0x18a'),_0x1ae667));}}return this[_0x2f8b('0x10')][_0x2f8b('0xae')](util[_0x2f8b('0x2e')](_0x2f8b('0x18b'),_0x1ae667));};AGIVertices[_0x2f8b('0x12')]['saydigits']=function(_0x1112a6){logger[_0x2f8b('0x33')](util[_0x2f8b('0x2e')](_0x2f8b('0x18c'),_0x1112a6['label']));return this['channel'][_0x2f8b('0x18d')](_0x1112a6[_0x2f8b('0x18e')][_0x2f8b('0x5f')](/\s+/g,''),_0x1112a6[_0x2f8b('0x182')]);};AGIVertices['prototype']['saynumber']=function(_0x66a5bd){logger['info'](util[_0x2f8b('0x2e')](_0x2f8b('0x18f'),_0x66a5bd[_0x2f8b('0x3c')]));return this[_0x2f8b('0x10')]['sayNumber'](_0x66a5bd[_0x2f8b('0x6a')][_0x2f8b('0x5f')](/\s+/g,''),_0x66a5bd[_0x2f8b('0x182')]);};AGIVertices['prototype'][_0x2f8b('0x190')]=function(_0x1607c){logger[_0x2f8b('0x33')](util['format']('Enter\x20in\x20SAYPHONETIC\x20(%s)\x20block',_0x1607c[_0x2f8b('0x3c')]));return this[_0x2f8b('0x10')][_0x2f8b('0x191')](_0x1607c[_0x2f8b('0x62')],_0x1607c[_0x2f8b('0x182')]);};AGIVertices[_0x2f8b('0x12')][_0x2f8b('0x192')]=function(_0x35f4cb){logger['info'](util[_0x2f8b('0x2e')]('Enter\x20in\x20SENDMAIL\x20(%s)\x20block',_0x35f4cb[_0x2f8b('0x3c')]));if(!this[_0x2f8b('0x8c')](_0x35f4cb[_0x2f8b('0x193')])){return this[_0x2f8b('0x10')][_0x2f8b('0xae')](_0x2f8b('0x194'));}var _0x59a56f=this[_0x2f8b('0x24')][_0x2f8b('0xc5')](this,_0x35f4cb[_0x2f8b('0x193')]);if(!_0x59a56f||!_0x59a56f['Smtp']){return this[_0x2f8b('0x10')][_0x2f8b('0x31')](_0x35f4cb,_0x2f8b('0x195'));}var _0x515006={'from':util[_0x2f8b('0x2e')]('\x22%s\x22\x20<%s>',_0x59a56f['name'],_0x59a56f[_0x2f8b('0x196')]||_0x59a56f['Smtp'][_0x2f8b('0x197')]),'to':_0x35f4cb['to']||'','cc':_0x35f4cb['cc']||'','bcc':_0x35f4cb['bcc']||'','subject':_0x35f4cb[_0x2f8b('0x198')],'html':_0x35f4cb[_0x2f8b('0x62')],'text':_0x35f4cb[_0x2f8b('0x62')]};if(this[_0x2f8b('0x8c')](_0x35f4cb[_0x2f8b('0x199')])){}logger[_0x2f8b('0xe6')](_0x2f8b('0x19a'),JSON[_0x2f8b('0x78')](_0x515006));this[_0x2f8b('0x3a')][_0x2f8b('0xc5')](this,_0x35f4cb,_0x35f4cb['account_id']);this['channel'][_0x2f8b('0xae')](util[_0x2f8b('0x2e')](_0x2f8b('0x19b'),_0x59a56f['name']));this['sendMailMessage'][_0x2f8b('0xc5')](this,_0x59a56f[_0x2f8b('0x19c')],_0x515006);return this['channel'][_0x2f8b('0xae')]('Mail\x20message\x20added\x20to\x20outgoing\x20process');};AGIVertices[_0x2f8b('0x12')][_0x2f8b('0x19d')]=function(_0x4f32c3){logger[_0x2f8b('0x33')](util[_0x2f8b('0x2e')](_0x2f8b('0x19e'),_0x4f32c3[_0x2f8b('0x3c')]));return this[_0x2f8b('0x10')][_0x2f8b('0xae')](_0x2f8b('0x19f'));};AGIVertices['prototype'][_0x2f8b('0x1a0')]=function(_0x26f719){logger[_0x2f8b('0x33')](util[_0x2f8b('0x2e')](_0x2f8b('0x1a1'),_0x26f719[_0x2f8b('0x3c')]));if(!this['isConfigured'](_0x26f719[_0x2f8b('0x1a2')])){return this[_0x2f8b('0x10')]['noop'](_0x2f8b('0x1a3'));}var _0x30d7fb=this[_0x2f8b('0x1a4')][_0x2f8b('0xc5')](this,_0x26f719[_0x2f8b('0x1a2')]);if(!_0x30d7fb){return this['channel'][_0x2f8b('0x31')](_0x26f719,_0x2f8b('0x1a5'));}var _0x5a93c3={'body':_0x26f719[_0x2f8b('0x1a6')],'phone':_0x26f719['to']||'','SmsAccountId':_0x30d7fb['id']};logger[_0x2f8b('0xe6')]('sendSMS\x20message',JSON[_0x2f8b('0x78')](_0x5a93c3));this['createSquareDetailsReport'][_0x2f8b('0xc5')](this,_0x26f719,_0x26f719[_0x2f8b('0x1a2')]);this['channel'][_0x2f8b('0xae')](util[_0x2f8b('0x2e')](_0x2f8b('0x1a7'),_0x30d7fb[_0x2f8b('0x16')]));this[_0x2f8b('0x39')][_0x2f8b('0xc5')](this,_0x5a93c3);return this['channel'][_0x2f8b('0xae')]('Sms\x20message\x20added\x20to\x20outgoing\x20process');};AGIVertices[_0x2f8b('0x12')][_0x2f8b('0x1a8')]=function(_0x538c57){logger['info'](util[_0x2f8b('0x2e')](_0x2f8b('0x1a9'),_0x538c57[_0x2f8b('0x3c')]));if(!this['isConfigured'](_0x538c57[_0x2f8b('0xde')])){return this['channel'][_0x2f8b('0x31')](_0x538c57,_0x2f8b('0x1aa'));}var _0x17ab65=this[_0x2f8b('0x13')][_0x2f8b('0xc5')](this,_0x538c57[_0x2f8b('0xde')]);if(!_0x17ab65){return this[_0x2f8b('0x10')][_0x2f8b('0x31')](_0x538c57,_0x2f8b('0xe0'));}return this['channel']['setVariable'](_0x17ab65,_0x538c57['variable_value']);};AGIVertices[_0x2f8b('0x12')]['start']=function(_0x570c33){logger['info'](util[_0x2f8b('0x2e')](_0x2f8b('0x1ab'),_0x570c33[_0x2f8b('0x3c')]));this[_0x2f8b('0x10')][_0x2f8b('0xae')](_0x2f8b('0x1ac'));var _0x4727ce=this[_0x2f8b('0x10')][_0x2f8b('0x13')](_0x2f8b('0x1ad'));if(!_[_0x2f8b('0x49')](_0x4727ce[_0x2f8b('0xa8')])){this[_0x2f8b('0x10')][_0x2f8b('0x3b')]=_0x4727ce['extra'];}if(_0x570c33[_0x2f8b('0xbe')]==='yes'){this['channel'][_0x2f8b('0xae')]('Answer');return this[_0x2f8b('0x10')][_0x2f8b('0xbe')]();}return this['channel'][_0x2f8b('0xae')](_0x2f8b('0x1ae'));};AGIVertices[_0x2f8b('0x12')]['subproject']=function(_0x28008b){logger[_0x2f8b('0x33')](util[_0x2f8b('0x2e')](_0x2f8b('0x1af'),_0x28008b[_0x2f8b('0x3c')]));if(!this[_0x2f8b('0x8c')](_0x28008b[_0x2f8b('0x1b0')])){return this[_0x2f8b('0x10')][_0x2f8b('0x31')](_0x28008b,_0x2f8b('0x1b1'));}var _0x4e3f62=this[_0x2f8b('0x19')][_0x2f8b('0xc5')](this,_0x28008b[_0x2f8b('0x1b0')]);if(!this[_0x2f8b('0x8c')](_0x4e3f62)){return this[_0x2f8b('0x10')][_0x2f8b('0x31')](_0x28008b,util[_0x2f8b('0x2e')](_0x2f8b('0x1b2'),_0x28008b['project_id']));}if(_0x4e3f62===this[_0x2f8b('0x10')][_0x2f8b('0x3e')]){return this[_0x2f8b('0x10')][_0x2f8b('0x31')](_0x28008b,'project\x20in\x20subproject\x20must\x20be\x20different\x20from\x20the\x20called\x20project');}this[_0x2f8b('0x3a')][_0x2f8b('0xc5')](this,_0x28008b,_0x4e3f62);var _0x5a198a=this[_0x2f8b('0x10')][_0x2f8b('0x5d')](_0x2f8b('0x1b3'),util[_0x2f8b('0x2e')]('agi://%s/square,\x22%s\x22,\x22%s\x22',config[_0x2f8b('0xbb')][_0x2f8b('0x1b4')]||_0x2f8b('0x1b5'),_0x4e3f62,this[_0x2f8b('0x10')][_0x2f8b('0x3e')]));if(_0x5a198a[_0x2f8b('0xa6')]===-0x1){return _0x5a198a;}return this[_0x2f8b('0x10')][_0x2f8b('0xae')](util[_0x2f8b('0x2e')]('Executed\x20command\x20%s\x20%s','AGI',_0x4e3f62));};AGIVertices[_0x2f8b('0x12')][_0x2f8b('0x1b6')]=function(_0x413e7c){logger['info'](util['format']('Enter\x20in\x20SYSTEM\x20(%s)\x20block',_0x413e7c['label']));var _0x33c6a9=this[_0x2f8b('0x5c')]['sync'](this,_0x413e7c[_0x2f8b('0xbd')]);this[_0x2f8b('0x3a')]['sync'](this,_0x413e7c,_0x413e7c[_0x2f8b('0xbd')]);if(this[_0x2f8b('0x8c')](_0x413e7c[_0x2f8b('0xde')])){var _0x299228=this[_0x2f8b('0x13')][_0x2f8b('0xc5')](this,_0x413e7c[_0x2f8b('0xde')]);if(_0x299228){this[_0x2f8b('0x10')][_0x2f8b('0xa1')](_0x299228,_0x33c6a9);return this[_0x2f8b('0x10')][_0x2f8b('0xae')](util[_0x2f8b('0x2e')](_0x2f8b('0x1b7'),_0x413e7c[_0x2f8b('0xbd')],_0x299228));}}return this[_0x2f8b('0x10')][_0x2f8b('0xae')](util['format'](_0x2f8b('0x1b8'),_0x413e7c[_0x2f8b('0xbd')]));};AGIVertices['prototype'][_0x2f8b('0x1b9')]=function(_0x2cb8e7){logger['info'](util[_0x2f8b('0x2e')](_0x2f8b('0x1ba'),_0x2cb8e7[_0x2f8b('0x3c')]));_0x2cb8e7['text']=_0x2cb8e7[_0x2f8b('0x62')]['replace'](/(\r\n|\n|\r)/gm,'\x20');if(!this[_0x2f8b('0x8c')](_0x2cb8e7[_0x2f8b('0x1bb')])){return this[_0x2f8b('0x10')][_0x2f8b('0xae')](_0x2f8b('0x1bc'));}if(!this[_0x2f8b('0x8c')](_0x2cb8e7[_0x2f8b('0x62')])){return this['channel'][_0x2f8b('0xae')](_0x2f8b('0xac'));}this[_0x2f8b('0x10')]['noop'](util[_0x2f8b('0x2e')](_0x2f8b('0x1bd'),_0x2cb8e7[_0x2f8b('0x62')]));var _0x5b19ec=this[_0x2f8b('0x60')]['sync'](this,_0x2cb8e7);if(_0x5b19ec){this[_0x2f8b('0x10')]['noop'](util[_0x2f8b('0x2e')](_0x2f8b('0x1be'),_0x5b19ec));var _0x333362=this[_0x2f8b('0x10')][_0x2f8b('0x158')](_0x5b19ec);try{fs[_0x2f8b('0x10b')](_0x5b19ec+_0x2f8b('0x128'));}catch(_0x471263){logger[_0x2f8b('0x31')](_0x471263);}return _0x333362;}return this[_0x2f8b('0x10')][_0x2f8b('0x31')](_0x2cb8e7,_0x2f8b('0x1bf'));};AGIVertices['prototype']['tts']=function(_0x21bb79){logger[_0x2f8b('0x33')](util[_0x2f8b('0x2e')](_0x2f8b('0x1c0'),_0x21bb79[_0x2f8b('0x3c')]));_0x21bb79['text']=_0x21bb79[_0x2f8b('0x62')][_0x2f8b('0x5f')](/(\r\n|\n|\r)/gm,'\x20');if(!this[_0x2f8b('0x8c')](_0x21bb79[_0x2f8b('0x62')])){return this['channel'][_0x2f8b('0xae')](_0x2f8b('0xac'));}this[_0x2f8b('0x10')][_0x2f8b('0xae')](util['format'](_0x2f8b('0x1c1'),_0x21bb79[_0x2f8b('0x62')]));var _0x49bcfd=this[_0x2f8b('0x66')][_0x2f8b('0xc5')](this,_0x21bb79);if(_0x49bcfd){this[_0x2f8b('0x10')][_0x2f8b('0xae')](util[_0x2f8b('0x2e')](_0x2f8b('0x1c2'),_0x49bcfd));var _0x119c54=this[_0x2f8b('0x10')][_0x2f8b('0x158')](_0x49bcfd);try{fs['unlink'](_0x49bcfd+'.wav');}catch(_0x477641){logger['error'](_0x477641);}return _0x119c54;}return this[_0x2f8b('0x10')]['error'](_0x21bb79,_0x2f8b('0x1c3'));};AGIVertices['prototype'][_0x2f8b('0x1c4')]=function(_0x38f9a6){logger[_0x2f8b('0x33')](util['format'](_0x2f8b('0x1c5'),_0x38f9a6['label']));if(!this[_0x2f8b('0x8c')](_0x38f9a6[_0x2f8b('0x15c')])){return this[_0x2f8b('0x10')][_0x2f8b('0x31')](_0x38f9a6,'no\x20find\x20by\x20configured');}logger['info'](util['format'](_0x2f8b('0x15b'),this[_0x2f8b('0x10')][_0x2f8b('0x3f')],_0x38f9a6[_0x2f8b('0x15c')]));var _0x15b05e=this['agentUnpause'][_0x2f8b('0xc5')](this,_0x38f9a6[_0x2f8b('0x15c')]);if(_0x15b05e){logger[_0x2f8b('0x33')](util[_0x2f8b('0x2e')](_0x2f8b('0x15d'),this[_0x2f8b('0x10')][_0x2f8b('0x3f')],_0x38f9a6[_0x2f8b('0x15c')]));this['channel'][_0x2f8b('0xae')](util[_0x2f8b('0x2e')](_0x2f8b('0x15d'),this[_0x2f8b('0x10')][_0x2f8b('0x3f')],_0x38f9a6['findBy']));return{'code':0xc8,'result':_0x2f8b('0x15e')};}else{logger['info'](util[_0x2f8b('0x2e')](_0x2f8b('0x15f'),this[_0x2f8b('0x10')][_0x2f8b('0x3f')],_0x38f9a6[_0x2f8b('0x15c')]));this['channel'][_0x2f8b('0xae')](util[_0x2f8b('0x2e')]('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this[_0x2f8b('0x10')][_0x2f8b('0x3f')],_0x38f9a6[_0x2f8b('0x15c')]));return{'code':0xc8,'result':'failure'};}};AGIVertices[_0x2f8b('0x12')][_0x2f8b('0x1c6')]=function(_0x53fd7d){logger[_0x2f8b('0x33')](util[_0x2f8b('0x2e')](_0x2f8b('0x1c7'),_0x53fd7d[_0x2f8b('0x3c')]));var _0x13df72=this[_0x2f8b('0x10')]['exec'](_0x2f8b('0x1c8'),[_0x53fd7d[_0x2f8b('0x1c9')],_0x53fd7d[_0x2f8b('0x7d')]]);if(_0x13df72[_0x2f8b('0xa6')]===-0x1){return _0x13df72;}return this[_0x2f8b('0x10')]['noop'](util[_0x2f8b('0x2e')](_0x2f8b('0xc9'),'VOICEMAIL',_0x53fd7d[_0x2f8b('0x1c9')]));};AGIVertices[_0x2f8b('0x12')][_0x2f8b('0x1ca')]=function(_0x5dcc8d){logger[_0x2f8b('0x33')](util['format'](_0x2f8b('0x1cb'),_0x5dcc8d[_0x2f8b('0x3c')]));if(!this[_0x2f8b('0x8c')](_0x5dcc8d[_0x2f8b('0xde')])){return this['channel'][_0x2f8b('0x31')](_0x5dcc8d,_0x2f8b('0x1aa'));}var _0x90395b=this['getVariable']['sync'](this,_0x5dcc8d['variable_id']);if(!_0x90395b){return this['channel'][_0x2f8b('0x31')](_0x5dcc8d,_0x2f8b('0xe0'));}var _0x38ee1c=this[_0x2f8b('0x10')][_0x2f8b('0x13')](_0x90395b);return{'code':0xc8,'result':_0x38ee1c[_0x2f8b('0xa8')]?_0x38ee1c['extra']:'-'};};String[_0x2f8b('0x12')][_0x2f8b('0xa5')]=function(_0x4457f0,_0x120fd7){return this['split'](_0x4457f0)[_0x2f8b('0x1cc')](_0x120fd7);};module[_0x2f8b('0x1cd')]=AGIVertices;
\ No newline at end of file
+var _0x99c9=['google_asr_language','tildeASR','appid','appsecret','clone','hasOwnProperty','isString','replaceObjectAllVariables','isPlainObject','recursiveNodeIndex','isArray','replaceAllVariables','saveRestApiResult','%s.%s','length','setVariable','split','replaceAll','extra','getAndSetVariable','getVariable','result','The\x20\x22%s\x22\x20variable\x20value\x20is:\x20%s','sync','retry','maxRetry','mrcpsynth','Enter\x20in\x20MRCPSynth\x20(%s)\x20block','noop','no\x20text\x20configured','exec','MRCPSynth','mrcprecog','Enter\x20in\x20MRCPRecog\x20(%s)\x20block','grammar','MRCPRecog','RECOG_CONFIDENCE()','MRCP_RECOG_CONFIDENCE','RECOG_INPUT()','RECOG_INSTANCE()','MRCP_RECOG_INSTANCE','Executed\x20command\x20MRCPRecog\x20%s','Enter\x20in\x20AGI\x20(%s)\x20block','command','answer','Enter\x20in\x20ANSWER\x20(%s)\x20block','wait','Enter\x20in\x20CALLBACK\x20(%s)\x20block','delay','minutes','CALLBACK\x20added\x20phone:\x20%s\x20on\x20list:\x20%s\x20at\x20%s','custom_app','Enter\x20in\x20CUSTOM\x20APP\x20(%s)\x20block','application','Executed\x20command\x20%s\x20%s','lumenvoxtts','Enter\x20in\x20LUMENVOXTTS\x20(%s)\x20block','sestektts','Enter\x20in\x20SESTEKTTS\x20(%s)\x20block','Executed\x20command\x20MRCPSynth\x20%s','lumenvoxasr','LUMENVOX_ASR_CONFIDENCE','LUMENVOX_ASR_TRANSCRIPT','LUMENVOX_ASR_INSTANCE','sestekasr','Enter\x20in\x20SESTEKASR\x20(%s)\x20block','SESTEK_ASR_CONFIDENCE','SESTEK_ASR_INSTANCE','database','no\x20database\x20selected','no\x20odbc\x20database\x20found','no\x20query\x20configured','getQueryOdbc','variable_id','no\x20variable\x20selected\x20for\x20the\x20result','no\x20variable\x20found','forEach','keys','%s[%s][%s]','%s_ROWS_COUNT','variable\x20%s\x20set','dial','debug','Enter\x20in\x20DIAL\x20(%s)\x20block','sip_id','no\x20user\x20selected','DIAL','SIP/%s','opts','Executed\x20command\x20%s','Enter\x20in\x20DIALOGFLOW\x20(%s)\x20block','no\x20key\x20configured','bot','Trying\x20Dialogflow:\x20%s','DIALOGFLOW_%s','speech','Dialogflow\x20Result\x20%s','dialogflowV2','Enter\x20in\x20DIALOGFLOW\x20V2\x20(%s)\x20block','no\x20project_id\x20configured','private_key','no\x20private_key\x20configured','no\x20anguage\x20configured','Trying\x20DialogflowV2:\x20%s','providerResponse','out','DialogflowV2\x20is\x20unreachable','sesteknda','no\x20ndauth\x20url\x20configured','no\x20username\x20configured','no\x20password\x20configured','ndassistant_url','Trying\x20SestekNDA:\x20%s','SESTEK_NDA_%s','audiofile','unlink','SestekNDA\x20Result\x20%s','SestekNDA\x20is\x20unreachable','end','Enter\x20in\x20END\x20(%s)\x20block','ext_dial','Enter\x20in\x20EXTERNAL\x20DIAL\x20(%s)\x20block','trunk_id','getTrunk','no\x20trunk\x20found','trunk_name','no\x20trunk\x20selected','SIP/%s/%s','finally','Enter\x20in\x20FINALLY\x20(%s)\x20block','file_id','no\x20file\x20audio\x20selected','getSound','no\x20file\x20audio\x20found','getData','response','maxdigit','test','mindigit','hiddendigitsnum','generate','hiddendigitspos','first','substr','Enter\x20in\x20GETSECRETDIGITS\x20(%s)\x20block','goal','Enter\x20in\x20GOAL\x20(%s)\x20block','GOAL\x20%s','goalname','awspolly','[AGI]\x20Enter\x20in\x20AWSPOLLY\x20(%s)\x20block','no\x20valid\x20credentials\x20configured','Trying\x20aws\x20Polly\x20%s','aws\x20Polly\x20%s\x20file\x20created','streamFile','.wav','aws\x20Polly\x20is\x20unreachable','awslex','Enter\x20in\x20Amazon\x20Lex\x20(%s)\x20block','no\x20bot\x20name\x20configured','Trying\x20Amazon\x20Lex:\x20%s','AWS_LEX_%s','Amazon\x20Lex\x20Result\x20%s','googleasr','Enter\x20in\x20GOOGLEASR\x20(%s)\x20block\x20%s','wav','%s/recordings/%s','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','tilde\x20%s\x20file\x20created','TILDE_ASR_%s','TildeASR\x20Result\x20%s','gotoc','continueAt','gotoif','Enter\x20in\x20GOTOIF\x20(%s)\x20block','true','false','condition','gotoiftime','Enter\x20in\x20GOTOIFTIME\x20(%s)\x20block','interval_id','no\x20interval\x20configured','no\x20intervals\x20found','IFTIME\x20%s\x20%s','hangup','Enter\x20in\x20HANGUP\x20(%s)\x20block','Enter\x20in\x20ISPEECHASR\x20(%s)\x20block','beep','ispeech\x20%s\x20file\x20created','IspeechASR\x20Result\x20%s','Enter\x20in\x20ISPEECHTTS\x20(%s)\x20block','Trying\x20ispeech\x20TTS\x20%s','login','Enter\x20in\x20LOGIN\x20(%s)\x20block','findBy','no\x20find\x20by\x20configured','FIND\x20AGENT\x20%s\x20BY\x20%s','AGENT\x20%s\x20FOUND\x20BY','success','AGENT\x20%s\x20NOT\x20FOUND\x20BY','logout','Enter\x20in\x20LOGOUT\x20(%s)\x20block','failure','math','Enter\x20in\x20MATH\x20(%s)\x20block','operation','math\x20%s','%s[%s]','variable\x20%s[key]\x20set','Enter\x20in\x20MENU\x20(%s)\x20block','digit','Enter\x20in\x20NOOP\x20(%s)\x20block','pause','Enter\x20in\x20PAUSE\x20(%s)\x20block','pause_id','playback','Enter\x20in\x20PLAYBACK\x20(%s)\x20block','PLAYBACK','queue','Enter\x20in\x20QUEUE\x20(%s)\x20block','no\x20queue\x20selected','queue_id','no\x20queue\x20found','toLowerCase','QUEUE','macro','gosub','record','Enter\x20in\x20RECORD\x20(%s)\x20block','%s_%s','%s/recordings/%s.%s','RECORDING_SAVENAME','Recording\x20%s\x20%s\x20%s\x20%s','restapi','Enter\x20in\x20RESTAPI\x20(%s)\x20block','no\x20url\x20configured','restAPI','Response:','inspect','no\x20variable\x20selected\x20for\x20the\x20response','%s_STATUS_CODE','200','%s_STATUS_MESSAGE','Unable\x20to\x20set\x20result\x20in\x20variable\x20%s','Enter\x20in\x20SAYDIGITS\x20(%s)\x20block','sayDigits','digits','escape_digits','saynumber','Enter\x20in\x20SAYNUMBER\x20(%s)\x20block','sayNumber','sayphonetic','Enter\x20in\x20SAYPHONETIC\x20(%s)\x20block','sayPhonetic','sendMail','account_id','no\x20mail\x20account\x20configured','Smtp','\x22%s\x22\x20<%s>','email','user','subject','sendMail\x20message','Trying\x20SendMail\x20with\x20account\x20%s','sendFax','Enter\x20in\x20SENDFAX\x20(%s)\x20block','SENDFAX\x20block\x20not\x20implemented','Enter\x20in\x20SENDSMS\x20(%s)\x20block','sms_account_id','no\x20sms\x20account\x20found','sms_text','sendSMS\x20message','Sms\x20message\x20added\x20to\x20outgoing\x20process','Enter\x20in\x20SET\x20(%s)\x20block','no\x20variable\x20selected','start','Enter\x20in\x20START\x20(%s)\x20block','START\x20CALLY\x20SQUARE','XMCS-UNIQUEID','yes','Answer','subproject','Enter\x20in\x20SUBPROJECT\x20(%s)\x20block','project_id','no\x20subproject\x20selected','project\x20in\x20subproject\x20must\x20be\x20different\x20from\x20the\x20called\x20project','AGI','host','sh\x20command:\x20%s\x20result\x20on\x20variable:\x20%s','sh\x20command:\x20%s\x20result\x20no\x20stored','google_cloud_tts','Enter\x20in\x20Google\x20Cloud\x20TTS\x20(%s)\x20block','no\x20apiKey\x20configured','Trying\x20Google\x20Cloud\x20TTS\x20%s','Google\x20Cloud\x20TTS\x20%s\x20file\x20created','Google\x20Cloud\x20TTS\x20is\x20unreachable','Trying\x20Google\x20TTS\x20%s','Google\x20TTS\x20%s\x20file\x20created','Google\x20TTS\x20is\x20unreachable','unpause','Enter\x20in\x20VOICEMAIL\x20(%s)\x20block','VOICEMAIL','mailbox','vswitch','Enter\x20in\x20SWITCH\x20(%s)\x20block','join','exports','util','lodash','shelljs','odbc','randomstring','moment','mustache','../../config/logger','agi','../../config/environment','./scripts','/var/opt/motion2/server/files','rawHeaders','rawBody','menu','getdigits','getsecretdigits','channel','mailRpc','prototype','rpc','getVariableById','then','name','catch','getVoiceQueue','getVoiceQueueById','getSquareProject','getSquareProjectById','getSquareOdbc','getSquareOdbcById','dsn','getUser','getUserById','getTrunkById','getSoundPath','save_name','getMailAccount','sendMailMessage','getIntervals','IntervalId','interval','map','Intervals','format','open','error','Error\x20getting\x20ODBC\x20connection\x20%s','query','Error\x20executing\x20query\x20%s','info','Query\x20executed\x20correctly\x20%s','close','Error\x20closing\x20connection\x20to\x20odbc\x20%s','getSmsAccount','getSmsAccountById','createSmsMessage','createSquareDetailsReport','uniqueid','label','agicommand','arg_1','callerid','createSquareRecording','calleridname','context','extension','priority','dnid','file','createSquareMessage','createCmContact','isNil','callback_','random','isEmpty','lastName','list_id','scheduledAt','callback','toString','callback_priority','getPause','agentPause','agent','agentUnpause','agentLogout','agentLogin','internal','LOCAL','shellCommand','trim','replace','googleCloudTTS','apiKey','google_cloud_tts_text_type','text','languageCode','en-US','ssmlGender','MALE','audioEncoding','MP3','googleTTS','url','timeout','number','includes','POST','PUT','method','toUpperCase','body','An\x20incorrect\x20formatted\x20json\x20body\x20has\x20been\x20passed\x20to\x20the\x20function','headers','computedVariables','uri','parse','render','stringify','An\x20incorrect\x20formatted\x20json\x20has\x20been\x20passed\x20to\x20the\x20function','statusCode','statusMessage','message','options','googleDialogflow','key','dialogflow_language','googleDialogflowV2','client_email','dialogflowV2_language','sestekNDA','ispeechTTS','ispeech_tts_language','speed','ispeechASR','ispeech_asr_language','isConfigured','model','awsPolly','aws_access_key_id','aws_secret_access_key','aws_polly_region','aws_text_type','awsLex','aws_bot_name','googleASR'];(function(_0x3bf83f,_0x181cac){var _0x22c4a9=function(_0xb3ff0d){while(--_0xb3ff0d){_0x3bf83f['push'](_0x3bf83f['shift']());}};_0x22c4a9(++_0x181cac);}(_0x99c9,0x13c));var _0x999c=function(_0x413feb,_0x10477f){_0x413feb=_0x413feb-0x0;var _0x40ee88=_0x99c9[_0x413feb];return _0x40ee88;};'use strict';var fs=require('fs');var util=require(_0x999c('0x0'));var _=require(_0x999c('0x1'));var sh=require(_0x999c('0x2'));var odbc=require(_0x999c('0x3'))();var rs=require(_0x999c('0x4'));var moment=require(_0x999c('0x5'));var Mustache=require(_0x999c('0x6'));var rp=require('request-promise');var logger=require(_0x999c('0x7'))(_0x999c('0x8'));var config=require(_0x999c('0x9'));var scripts=require(_0x999c('0xa'));var FILES_PATH=_0x999c('0xb');var recursiveMapAttributes=[_0x999c('0xc'),_0x999c('0xd')];var verticesWithRetry=[_0x999c('0xe'),_0x999c('0xf'),_0x999c('0x10')];var AGIVertices=function(_0x329252,_0x3c58ba,_0x32984f){this[_0x999c('0x11')]=_0x329252;this['rpc']=_0x3c58ba;this[_0x999c('0x12')]=_0x32984f;};AGIVertices[_0x999c('0x13')]['getVariable']=function(_0x5b5436,_0x140c4b){this[_0x999c('0x14')][_0x999c('0x15')](_0x5b5436)[_0x999c('0x16')](function(_0xc334b2){_0x140c4b(null,_0xc334b2?_0xc334b2[_0x999c('0x17')]:![]);})[_0x999c('0x18')](function(_0x2e5f7e){_0x140c4b(_0x2e5f7e);});};AGIVertices[_0x999c('0x13')][_0x999c('0x19')]=function(_0x85f4a0,_0x4c3209){this[_0x999c('0x14')][_0x999c('0x1a')](_0x85f4a0)['then'](function(_0x54a2fa){_0x4c3209(null,_0x54a2fa?_0x54a2fa['name']:![]);})[_0x999c('0x18')](function(_0xb3e981){_0x4c3209(_0xb3e981);});};AGIVertices[_0x999c('0x13')][_0x999c('0x1b')]=function(_0x2a6667,_0x5d5d12){this[_0x999c('0x14')][_0x999c('0x1c')](_0x2a6667)[_0x999c('0x16')](function(_0xc05363){_0x5d5d12(null,_0xc05363?_0xc05363[_0x999c('0x17')]:![]);})['catch'](function(_0x1b327f){_0x5d5d12(_0x1b327f);});};AGIVertices[_0x999c('0x13')][_0x999c('0x1d')]=function(_0xd63ef8,_0x32c66c){this['rpc'][_0x999c('0x1e')](_0xd63ef8)[_0x999c('0x16')](function(_0x26abbb){_0x32c66c(null,_0x26abbb?_0x26abbb[_0x999c('0x1f')]:![]);})[_0x999c('0x18')](function(_0x1219d6){_0x32c66c(_0x1219d6);});};AGIVertices['prototype'][_0x999c('0x20')]=function(_0x200392,_0x24f637){this[_0x999c('0x14')][_0x999c('0x21')](_0x200392)[_0x999c('0x16')](function(_0x12d8f3){_0x24f637(null,_0x12d8f3?_0x12d8f3[_0x999c('0x17')]:![]);})[_0x999c('0x18')](function(_0x281720){_0x24f637(_0x281720);});};AGIVertices[_0x999c('0x13')]['getTrunk']=function(_0x448682,_0x1862ee){this[_0x999c('0x14')][_0x999c('0x22')](_0x448682)[_0x999c('0x16')](function(_0x15d102){_0x1862ee(null,_0x15d102?_0x15d102['name']:![]);})[_0x999c('0x18')](function(_0x43293f){_0x1862ee(_0x43293f);});};AGIVertices[_0x999c('0x13')]['getSound']=function(_0x1abac6,_0x4413c5){var _0x53953d=this;this[_0x999c('0x14')]['getSoundById'](_0x1abac6)['then'](function(_0xedf57d){_0x4413c5(null,_0xedf57d?_0x53953d[_0x999c('0x23')](_0xedf57d[_0x999c('0x24')]):![]);})[_0x999c('0x18')](function(_0x3737e9){_0x4413c5(_0x3737e9);});};AGIVertices[_0x999c('0x13')][_0x999c('0x25')]=function(_0x76dc32,_0x352c25){this[_0x999c('0x14')]['getMailAccountById'](_0x76dc32)[_0x999c('0x16')](function(_0x192976){_0x352c25(null,_0x192976?_0x192976:![]);})[_0x999c('0x18')](function(_0x361501){_0x352c25(_0x361501);});};AGIVertices[_0x999c('0x13')][_0x999c('0x26')]=function(_0x4427b4,_0x362735,_0x538221){this['mailRpc'][_0x999c('0x26')](_0x4427b4,_0x362735)[_0x999c('0x16')](function(){_0x538221(null);})[_0x999c('0x18')](function(_0x3872b7){_0x538221(_0x3872b7);});};AGIVertices['prototype'][_0x999c('0x27')]=function(_0xe28e45,_0x46815d){this[_0x999c('0x14')]['getIntervalById'](_0xe28e45)['then'](function(_0x21d6df){if(_0x21d6df){if(_0x21d6df[_0x999c('0x28')]){_0x46815d(null,[_0x21d6df[_0x999c('0x29')]]);}else{_0x46815d(null,_[_0x999c('0x2a')](_0x21d6df[_0x999c('0x2b')],_0x999c('0x29')));}}else{_0x46815d(null,![]);}})[_0x999c('0x18')](function(_0x4d5060){_0x46815d(_0x4d5060);});};AGIVertices['prototype']['getSoundPath']=function(_0x604646){return util[_0x999c('0x2c')]('%s/sounds/converted/%s',FILES_PATH,_0x604646);};AGIVertices['prototype']['getQueryOdbc']=function(_0x3d5534,_0x10fcf3,_0x15dc10){odbc[_0x999c('0x2d')](_0x3d5534,function(_0x5b5b2a){if(_0x5b5b2a){logger[_0x999c('0x2e')](_0x999c('0x2f'),_0x5b5b2a);_0x15dc10(_0x5b5b2a);}else{logger['info']('ODBC\x20connection\x20successfully');odbc[_0x999c('0x30')](_0x10fcf3,function(_0x5ac869,_0x2878f5){if(_0x5ac869){logger['info'](_0x999c('0x31'),_0x10fcf3);_0x15dc10(_0x5ac869);}else{logger[_0x999c('0x32')](_0x999c('0x33'),_0x10fcf3);odbc[_0x999c('0x34')](function(_0x59029b){if(_0x59029b){logger['error'](_0x999c('0x35'),_0x59029b);}_0x15dc10(null,_0x2878f5);});}});}});};AGIVertices[_0x999c('0x13')][_0x999c('0x36')]=function(_0xf26ba3,_0x5e21b6){this[_0x999c('0x14')][_0x999c('0x37')](_0xf26ba3)[_0x999c('0x16')](function(_0x5fa1de){_0x5e21b6(null,_0x5fa1de?_0x5fa1de:![]);})['catch'](function(_0x192e50){_0x5e21b6(_0x192e50);});};AGIVertices['prototype'][_0x999c('0x38')]=function(_0x1513b2,_0x4829ab){this[_0x999c('0x14')][_0x999c('0x38')](_0x1513b2)[_0x999c('0x16')](function(_0x224251){_0x4829ab(null,_0x224251);})[_0x999c('0x18')](function(_0x2de6c7){_0x4829ab(_0x2de6c7);});};AGIVertices[_0x999c('0x13')][_0x999c('0x39')]=function(_0x4ef478,_0x563e11,_0x499095){this['rpc'][_0x999c('0x39')]({'uniqueid':this[_0x999c('0x11')][_0x999c('0x3a')],'node':_0x4ef478[_0x999c('0x3b')],'application':_0x4ef478[_0x999c('0x3c')],'data':_0x563e11||null,'project_name':this['channel'][_0x999c('0x3d')],'callerid':this[_0x999c('0x11')][_0x999c('0x3e')]})[_0x999c('0x16')](function(_0x9d708e){if(_0x499095){_0x499095(null,_0x9d708e);}})['catch'](function(_0x40fca1){if(_0x499095){_0x499095(_0x40fca1);}});};AGIVertices[_0x999c('0x13')][_0x999c('0x3f')]=function(_0x30e226,_0x28b9de,_0x3edb17,_0x3bfffb){this[_0x999c('0x14')][_0x999c('0x3f')]({'uniqueid':this['channel']['uniqueid'],'callerid':this[_0x999c('0x11')][_0x999c('0x3e')],'calleridname':this[_0x999c('0x11')][_0x999c('0x40')],'context':this[_0x999c('0x11')][_0x999c('0x41')],'extension':this[_0x999c('0x11')][_0x999c('0x42')],'priority':this[_0x999c('0x11')][_0x999c('0x43')],'accountcode':this[_0x999c('0x11')]['accountcode'],'dnid':this[_0x999c('0x11')][_0x999c('0x44')],'projectName':this[_0x999c('0x11')][_0x999c('0x3d')],'saveName':_0x28b9de,'filename':_0x30e226[_0x999c('0x45')]||_0x28b9de,'savePath':_0x3edb17})[_0x999c('0x16')](function(_0x11f3bf){_0x3bfffb(null,_0x11f3bf);})[_0x999c('0x18')](function(_0x55eb16){_0x3bfffb(_0x55eb16);});};AGIVertices[_0x999c('0x13')][_0x999c('0x46')]=function(_0x39a0bb,_0x20500c,_0x331d5d,_0x2db35a,_0x12eb3d){this['rpc']['createSquareMessage']({'uniqueid':this[_0x999c('0x11')][_0x999c('0x3a')],'body':_0x39a0bb,'direction':_0x20500c,'providerName':_0x331d5d,'providerResponse':_0x2db35a})[_0x999c('0x16')](function(_0x30aeec){if(_0x12eb3d){_0x12eb3d(null,_0x30aeec);}})[_0x999c('0x18')](function(_0x57327c){if(_0x12eb3d){_0x12eb3d(_0x57327c);}});};AGIVertices[_0x999c('0x13')][_0x999c('0x47')]=function(_0x38b75a,_0x11cc72){this['rpc'][_0x999c('0x47')]({'firstName':_['isEmpty'](_0x38b75a[_0x999c('0x17')])||_[_0x999c('0x48')](_0x38b75a[_0x999c('0x17')])?_0x999c('0x49')+Math[_0x999c('0x4a')]():_0x38b75a[_0x999c('0x17')],'lastName':_[_0x999c('0x4b')](_0x38b75a['lastName'])||_[_0x999c('0x48')](_0x38b75a[_0x999c('0x4c')])?null:_0x38b75a[_0x999c('0x4c')],'phone':_0x38b75a['phone'],'ListId':_0x38b75a[_0x999c('0x4d')],'scheduledat':_0x38b75a[_0x999c('0x4e')],'callbackUniqueid':this[_0x999c('0x11')]['uniqueid'],'tags':_0x999c('0x4f'),'description':'Callback\x20scheduled\x20at\x20'+_0x38b75a[_0x999c('0x4e')][_0x999c('0x50')](),'priority':_0x38b75a[_0x999c('0x51')]})[_0x999c('0x16')](function(_0x565fdb){_0x11cc72(null,_0x565fdb);})[_0x999c('0x18')](function(_0x5420bd){_0x11cc72(_0x5420bd);});};AGIVertices['prototype'][_0x999c('0x52')]=function(_0x117502,_0x5410ec){this[_0x999c('0x14')]['getPauseById'](_0x117502)[_0x999c('0x16')](function(_0xe89a71){_0x5410ec(null,_0xe89a71?_0xe89a71['name']:![]);})[_0x999c('0x18')](function(_0x1fd7c6){_0x5410ec(_0x1fd7c6);});};AGIVertices[_0x999c('0x13')][_0x999c('0x53')]=function(_0x237524,_0x2da455,_0xfb30cc){var _0x3fce90={'role':_0x999c('0x54')};_0x3fce90[_0x237524]=this['channel'][_0x999c('0x3e')];this[_0x999c('0x14')][_0x999c('0x53')](_0x3fce90,_0x2da455,this[_0x999c('0x11')][_0x999c('0x3a')])[_0x999c('0x16')](function(_0x536494){_0xfb30cc(null,_['isNil'](_0x536494)?![]:!![]);})['catch'](function(_0x4a6b73){logger[_0x999c('0x2e')](_0x4a6b73);_0xfb30cc(null,![]);});};AGIVertices[_0x999c('0x13')][_0x999c('0x55')]=function(_0x4d4236,_0x3569e8){var _0x5a2033={'role':_0x999c('0x54')};_0x5a2033[_0x4d4236]=this['channel'][_0x999c('0x3e')];this[_0x999c('0x14')][_0x999c('0x55')](_0x5a2033)[_0x999c('0x16')](function(_0x1988ef){_0x3569e8(null,_['isNil'](_0x1988ef)?![]:!![]);})[_0x999c('0x18')](function(_0x2e2976){logger[_0x999c('0x2e')](_0x2e2976);_0x3569e8(null,![]);});};AGIVertices[_0x999c('0x13')][_0x999c('0x56')]=function(_0x24fdcf,_0x1907f4){var _0x4d4c33={'role':_0x999c('0x54')};_0x4d4c33[_0x24fdcf]=this[_0x999c('0x11')][_0x999c('0x3e')];this[_0x999c('0x14')][_0x999c('0x56')](_0x4d4c33)[_0x999c('0x16')](function(_0x3a9a0d){_0x1907f4(null,_['isNil'](_0x3a9a0d)?![]:!![]);})[_0x999c('0x18')](function(_0xd2d105){logger['error'](_0xd2d105);_0x1907f4(null,![]);});};AGIVertices['prototype'][_0x999c('0x57')]=function(_0x141a60,_0x3c233c){var _0x5e57d0={'role':_0x999c('0x54')};_0x5e57d0[_0x141a60]=this[_0x999c('0x11')][_0x999c('0x3e')];var _0x251b3f=_0x141a60!=_0x999c('0x58')?util[_0x999c('0x2c')]('%s/%s@from-sip/n',_0x999c('0x59'),this['channel'][_0x999c('0x3e')]):undefined;this[_0x999c('0x14')][_0x999c('0x57')](_0x5e57d0,_0x251b3f)[_0x999c('0x16')](function(_0x1e034e){_0x3c233c(null,_[_0x999c('0x48')](_0x1e034e)?![]:!![]);})[_0x999c('0x18')](function(_0x39aa48){logger[_0x999c('0x2e')](_0x39aa48);_0x3c233c(null,![]);});};AGIVertices[_0x999c('0x13')][_0x999c('0x5a')]=function(_0x3905f1,_0xb1178c){sh['exec'](_[_0x999c('0x5b')](_0x3905f1),function(_0x1c9a78,_0x55ce3a){var _0x1066c8=_0x55ce3a[_0x999c('0x5c')](/(\r\n|\n|\r)/gm,'');_0xb1178c(null,_0x1066c8);});};AGIVertices[_0x999c('0x13')]['googleCloudTTS']=function(_0x2e0a60,_0xd83bc6){scripts[_0x999c('0x5d')](_0x2e0a60[_0x999c('0x5e')],_0x2e0a60[_0x999c('0x5f')]||'text',_0x2e0a60[_0x999c('0x60')],_0x2e0a60[_0x999c('0x61')]||_0x999c('0x62'),_0x2e0a60[_0x999c('0x63')]||_0x999c('0x64'),_0x2e0a60[_0x999c('0x65')]||_0x999c('0x66'))[_0x999c('0x16')](function(_0x4f99ad){_0xd83bc6(null,_0x4f99ad);})[_0x999c('0x18')](function(_0x3b6ce6){_0xd83bc6(_0x3b6ce6);});};AGIVertices['prototype']['googleTTS']=function(_0x2ac0be,_0x1c8e89){scripts[_0x999c('0x67')](_0x2ac0be[_0x999c('0x60')],_0x2ac0be['google_tts_language']||'en',0x1)[_0x999c('0x16')](function(_0x38c05f){_0x1c8e89(null,_0x38c05f);})[_0x999c('0x18')](function(_0x480e91){_0x1c8e89(_0x480e91);});};AGIVertices[_0x999c('0x13')]['restAPI']=function(_0x2c1b7d,_0x90eb9a){var _0x5d3c9f={'uri':_0x2c1b7d[_0x999c('0x68')],'method':_0x2c1b7d['method'],'json':!![],'resolveWithFullResponse':!![],'strictSSL':![],'timeout':typeof parseInt(_0x2c1b7d[_0x999c('0x69')])===_0x999c('0x6a')&&parseInt(_0x2c1b7d[_0x999c('0x69')])>=0x1?parseInt(_0x2c1b7d[_0x999c('0x69')])*0x3e8:0x5*0x3e8};if(_[_0x999c('0x6b')]([_0x999c('0x6c'),_0x999c('0x6d')],_0x5d3c9f[_0x999c('0x6e')][_0x999c('0x6f')]())){try{_0x5d3c9f[_0x999c('0x70')]=_0x2c1b7d[_0x999c('0xd')]?JSON['parse'](_0x2c1b7d[_0x999c('0xd')]):{};}catch(_0x22b391){logger[_0x999c('0x2e')](_0x999c('0x71'),_0x22b391);}}try{_0x5d3c9f[_0x999c('0x72')]=_0x2c1b7d[_0x999c('0xc')]?JSON['parse'](_0x2c1b7d['rawHeaders']):{};}catch(_0x21dbbc){logger[_0x999c('0x2e')]('An\x20incorrect\x20formatted\x20json\x20headers\x20has\x20been\x20passed\x20to\x20the\x20function',_0x21dbbc);}if(_0x2c1b7d[_0x999c('0x73')]){try{var _0x2714f9=require(_0x2c1b7d[_0x999c('0x73')])['sync'](this,_0x5d3c9f);_0x5d3c9f[_0x999c('0x74')]=Mustache['render'](_0x2c1b7d[_0x999c('0x68')],_0x2714f9,{},['$$','$$']);if(_0x5d3c9f[_0x999c('0x72')]){_0x5d3c9f[_0x999c('0x72')]=JSON[_0x999c('0x75')](Mustache[_0x999c('0x76')](JSON[_0x999c('0x77')](_0x5d3c9f[_0x999c('0x72')]),_0x2714f9,{},['$$','$$']));}if(_0x5d3c9f[_0x999c('0x70')]){_0x5d3c9f['body']=JSON['parse'](Mustache['render'](JSON[_0x999c('0x77')](_0x5d3c9f[_0x999c('0x70')]),_0x2714f9,{},['$$','$$']));}}catch(_0x179493){logger[_0x999c('0x2e')](_0x999c('0x78'),_0x179493);}}rp(_0x5d3c9f)[_0x999c('0x16')](function(_0x462bea){var _0x482164={'statusCode':_0x462bea[_0x999c('0x79')]||0xc8,'statusMessage':_0x462bea[_0x999c('0x7a')]||'OK','headers':_0x462bea[_0x999c('0x72')]||{},'body':_0x462bea[_0x999c('0x70')]||{}};_0x90eb9a(null,_0x482164);})[_0x999c('0x18')](function(_0x5493fb){var _0x2bfb6e={'statusCode':_0x5493fb['statusCode']||0x1f4,'statusMessage':_0x5493fb[_0x999c('0x7b')]||'500\x20-\x20Internal\x20Server\x20Error','headers':_0x5493fb['options']['headers']||{},'body':_0x5493fb[_0x999c('0x7c')]['body']||{}};_0x90eb9a(null,_0x2bfb6e);});};AGIVertices[_0x999c('0x13')][_0x999c('0x7d')]=function(_0xebac9f,_0x57c1c6){scripts[_0x999c('0x7d')](this[_0x999c('0x11')][_0x999c('0x3a')],_0xebac9f[_0x999c('0x7e')],_0xebac9f[_0x999c('0x60')],_0xebac9f[_0x999c('0x7f')]||'en')[_0x999c('0x16')](function(_0x20676c){_0x57c1c6(null,_0x20676c);})[_0x999c('0x18')](function(_0xf38234){_0x57c1c6(_0xf38234);});};AGIVertices['prototype'][_0x999c('0x80')]=function(_0x353d2b,_0x59d43e){scripts[_0x999c('0x80')](this['channel'][_0x999c('0x3a')],_0x353d2b['dialogflowV2_project_id'],_0x353d2b[_0x999c('0x81')],_0x353d2b['private_key'],_0x353d2b[_0x999c('0x60')],_0x353d2b[_0x999c('0x82')]||'en')[_0x999c('0x16')](function(_0x599283){_0x59d43e(null,_0x599283);})[_0x999c('0x18')](function(_0x119a3a){_0x59d43e(_0x119a3a);});};AGIVertices[_0x999c('0x13')][_0x999c('0x83')]=function(_0x5c958a,_0x3ceb51){scripts[_0x999c('0x83')](this['channel'],_0x5c958a)['then'](function(_0x5e4ea8){_0x3ceb51(null,_0x5e4ea8);})['catch'](function(_0x498567){_0x3ceb51(_0x498567);});};AGIVertices[_0x999c('0x13')][_0x999c('0x84')]=function(_0x38765b,_0x192fa4){scripts[_0x999c('0x84')](_0x38765b[_0x999c('0x7e')],_0x38765b['text'],_0x38765b[_0x999c('0x85')]||'en-US',_0x38765b[_0x999c('0x86')])[_0x999c('0x16')](function(_0x41b2a7){_0x192fa4(null,_0x41b2a7);})[_0x999c('0x18')](function(_0x59ac21){_0x192fa4(_0x59ac21);});};AGIVertices[_0x999c('0x13')]['ispeechASR']=function(_0x5e2064,_0x36ff56,_0xdadb6f){scripts[_0x999c('0x87')](_0x36ff56,_0x5e2064[_0x999c('0x7e')],_0x5e2064[_0x999c('0x88')]||_0x999c('0x62'),this[_0x999c('0x89')](_0x5e2064[_0x999c('0x8a')])?_0x5e2064[_0x999c('0x8a')]:undefined)['then'](function(_0x5490f4){_0xdadb6f(null,_0x5490f4);})[_0x999c('0x18')](function(_0x53809e){_0xdadb6f(_0x53809e);});};AGIVertices[_0x999c('0x13')][_0x999c('0x8b')]=function(_0x1d27d6,_0x566fab){scripts[_0x999c('0x8b')](_0x1d27d6[_0x999c('0x8c')],_0x1d27d6[_0x999c('0x8d')],_0x1d27d6[_0x999c('0x8e')],_0x1d27d6['aws_polly_voice']||'Amy',_0x1d27d6['text'],_0x1d27d6[_0x999c('0x8f')]||_0x999c('0x60'))[_0x999c('0x16')](function(_0x22afef){_0x566fab(null,_0x22afef);})[_0x999c('0x18')](function(_0x123a8f){_0x566fab(_0x123a8f);});};AGIVertices[_0x999c('0x13')][_0x999c('0x90')]=function(_0x30f80f,_0x532ce4){scripts[_0x999c('0x90')](this[_0x999c('0x11')]['uniqueid'],_0x30f80f[_0x999c('0x8c')],_0x30f80f[_0x999c('0x8d')],_0x30f80f['aws_lex_region'],_0x30f80f[_0x999c('0x60')],_0x30f80f[_0x999c('0x91')])['then'](function(_0xe1b93e){_0x532ce4(null,_0xe1b93e);})[_0x999c('0x18')](function(_0x1e1ee4){_0x532ce4(_0x1e1ee4);});};AGIVertices[_0x999c('0x13')][_0x999c('0x92')]=function(_0x3a23b6,_0x31d350,_0x5852f3){scripts['googleASR'](_0x31d350,_0x3a23b6[_0x999c('0x7e')],_0x3a23b6[_0x999c('0x93')]||_0x999c('0x62'))[_0x999c('0x16')](function(_0x1a72f1){_0x5852f3(null,_0x1a72f1);})['catch'](function(_0x5bce18){_0x5852f3(_0x5bce18);});};AGIVertices[_0x999c('0x13')][_0x999c('0x94')]=function(_0x505039,_0x352c27,_0x5127ae){scripts[_0x999c('0x94')](_0x352c27,_0x505039[_0x999c('0x95')],_0x505039[_0x999c('0x96')],_0x505039[_0x999c('0x74')])['then'](function(_0x4bcdc7){_0x5127ae(null,_0x4bcdc7);})[_0x999c('0x18')](function(_0x487912){_0x5127ae(_0x487912);});};AGIVertices[_0x999c('0x13')]['clear']=function(_0x42121d){var _0x591266=_['includes'](verticesWithRetry,_0x42121d['agicommand'])?_0x42121d:_[_0x999c('0x97')](_0x42121d);for(var _0x3031ee in _0x591266){if(_0x591266[_0x999c('0x98')](_0x3031ee)){if(_0x591266[_0x3031ee]&&_[_0x999c('0x99')](_0x591266[_0x3031ee])){if(_[_0x999c('0x6b')](recursiveMapAttributes,_0x3031ee)){_0x591266[_0x3031ee]=this[_0x999c('0x9a')](_0x591266[_0x3031ee]);}else{_0x591266[_0x3031ee]=this['replaceAllVariables'](_0x591266[_0x3031ee]);}}}}return _0x591266;};AGIVertices[_0x999c('0x13')]['recursiveNodeIndex']=function(_0x2605f2){for(var _0x3051e8 in _0x2605f2){if(_0x2605f2['hasOwnProperty'](_0x3051e8)){if(_[_0x999c('0x9b')](_0x2605f2[_0x3051e8])){this[_0x999c('0x9c')](_0x2605f2[_0x3051e8]);}else if(_[_0x999c('0x9d')](_0x2605f2[_0x3051e8])){for(var _0x1f68dd=0x0;_0x1f68dd<_0x2605f2[_0x3051e8]['length'];_0x1f68dd++){this['recursiveNodeIndex'](_0x2605f2[_0x3051e8][_0x1f68dd]);}}else if(_[_0x999c('0x99')](_0x2605f2[_0x3051e8])){_0x2605f2[_0x3051e8]=this[_0x999c('0x9e')](_0x2605f2[_0x3051e8]);}}}};AGIVertices[_0x999c('0x13')][_0x999c('0x9f')]=function(_0x172181,_0x9f5a0a){for(var _0x4821ff in _0x172181){if(_0x172181[_0x999c('0x98')](_0x4821ff)){if(_['isPlainObject'](_0x172181[_0x4821ff])){if(!_[_0x999c('0x4b')](_0x172181[_0x4821ff])){this[_0x999c('0x9f')](_0x172181[_0x4821ff],util[_0x999c('0x2c')](_0x999c('0xa0'),_0x9f5a0a,_0x4821ff));}}else if(_[_0x999c('0x9d')](_0x172181[_0x4821ff])){for(var _0xaefb8a=0x0;_0xaefb8a<_0x172181[_0x4821ff][_0x999c('0xa1')];_0xaefb8a++){this[_0x999c('0x9f')](_0x172181[_0x4821ff][_0xaefb8a],util['format'](_0x999c('0xa0'),_0x9f5a0a,_0x4821ff+'['+_0xaefb8a+']'));}}else{if(!_[_0x999c('0x48')](_0x172181[_0x4821ff])){this[_0x999c('0x11')][_0x999c('0xa2')](util[_0x999c('0x2c')](_0x999c('0xa0'),_0x9f5a0a,_0x4821ff),_0x172181[_0x4821ff]);}}}}};AGIVertices[_0x999c('0x13')][_0x999c('0x9a')]=function(_0x49fbef){try{var _0xa77743=JSON[_0x999c('0x75')](_0x49fbef);this['recursiveNodeIndex'](_0xa77743);return JSON[_0x999c('0x77')](_0xa77743);}catch(_0x32520d){return this[_0x999c('0x9e')](_0x49fbef);}};AGIVertices['prototype'][_0x999c('0x9e')]=function(_0x3286f9){var _0x5c30e7=_0x3286f9[_0x999c('0xa3')]('{');for(var _0x47a5d3=0x1;_0x47a5d3<_0x5c30e7['length'];_0x47a5d3+=0x1){var _0x5e5adc=_0x5c30e7[_0x47a5d3][_0x999c('0xa3')]('}');if(_0x5e5adc[_0x999c('0xa1')]>0x1){_0x3286f9=_0x3286f9[_0x999c('0xa4')]('{'+_0x5e5adc[0x0]+'}',this[_0x999c('0x11')]['getVariable'](_0x5e5adc[0x0])[_0x999c('0xa5')]||_0x5e5adc[0x0]);}}if(_0x5c30e7['length']===0x1){return _0x3286f9[_0x999c('0x50')]();}return this[_0x999c('0x9e')](_0x3286f9);};AGIVertices[_0x999c('0x13')][_0x999c('0xa6')]=function(_0x73f91,_0x3e12fc){var _0x2cc2c6=this['channel'][_0x999c('0xa7')](_0x73f91);if(_0x2cc2c6[_0x999c('0xa8')]===-0x1){return _0x2cc2c6;}logger[_0x999c('0x32')](util[_0x999c('0x2c')](_0x999c('0xa9'),_0x3e12fc,_0x2cc2c6[_0x999c('0xa5')]));return this[_0x999c('0x11')][_0x999c('0xa2')](_0x3e12fc,_0x2cc2c6[_0x999c('0xa5')]);};AGIVertices['prototype']['isConfigured']=function(_0x1b8cd2){return _0x1b8cd2&&_0x1b8cd2!=='0'&&_0x1b8cd2!=='-1'&&_0x1b8cd2!=='';};AGIVertices['prototype']['maxRetry']=function(_0x183e6c){this[_0x999c('0x39')][_0x999c('0xaa')](this,_0x183e6c,'-');_0x183e6c[_0x999c('0xab')]=_0x183e6c[_0x999c('0xac')];return{'code':0xc8,'result':'-'};};AGIVertices[_0x999c('0x13')][_0x999c('0xad')]=function(_0x1a0316){logger[_0x999c('0x32')](util['format'](_0x999c('0xae'),_0x1a0316['label']));if(!this[_0x999c('0x89')](_0x1a0316[_0x999c('0x60')])){return this[_0x999c('0x11')][_0x999c('0xaf')](_0x999c('0xb0'));}var _0x10306c='\x22'+_0x1a0316[_0x999c('0x60')]+'\x22';if(this[_0x999c('0x89')](_0x1a0316[_0x999c('0x7c')])){_0x10306c+=','+_0x1a0316[_0x999c('0x7c')];}var _0x12cce3=this[_0x999c('0x11')][_0x999c('0xb1')](_0x999c('0xb2'),_0x10306c);if(_0x12cce3[_0x999c('0xa8')]===-0x1){return _0x12cce3;}return this[_0x999c('0x11')][_0x999c('0xaf')](util[_0x999c('0x2c')]('Executed\x20command\x20MRCPSynth\x20%s',_0x10306c));};AGIVertices[_0x999c('0x13')][_0x999c('0xb3')]=function(_0x5035f5){logger[_0x999c('0x32')](util['format'](_0x999c('0xb4'),_0x5035f5[_0x999c('0x3b')]));if(!this[_0x999c('0x89')](_0x5035f5[_0x999c('0xb5')])){return this[_0x999c('0x11')][_0x999c('0xaf')]('no\x20grammar\x20configured');}var _0x5ab1db=_0x5035f5[_0x999c('0xb5')];if(this[_0x999c('0x89')](_0x5035f5['options'])){_0x5ab1db+=','+_0x5035f5['options'];}var _0x14dfe2=this[_0x999c('0x11')]['exec'](_0x999c('0xb6'),_0x5ab1db);if(_0x14dfe2[_0x999c('0xa8')]===-0x1){return _0x14dfe2;}var _0x328b02=this[_0x999c('0xa6')](_0x999c('0xb7'),_0x999c('0xb8'));if(_0x328b02[_0x999c('0xa8')]===-0x1){return _0x328b02;}var _0x3d2c9c=this[_0x999c('0xa6')](_0x999c('0xb9'),'MRCP_RECOG_TRANSCRIPT');if(_0x3d2c9c['result']===-0x1){return _0x3d2c9c;}var _0x101cab=this[_0x999c('0xa6')](_0x999c('0xba'),_0x999c('0xbb'));if(_0x101cab[_0x999c('0xa8')]===-0x1){return _0x101cab;}return this[_0x999c('0x11')][_0x999c('0xaf')](util[_0x999c('0x2c')](_0x999c('0xbc'),_0x5ab1db));};AGIVertices[_0x999c('0x13')][_0x999c('0x8')]=function(_0x6a8c16){logger[_0x999c('0x32')](util[_0x999c('0x2c')](_0x999c('0xbd'),_0x6a8c16[_0x999c('0x3b')]));return this[_0x999c('0x11')]['agi']([_0x6a8c16[_0x999c('0xbe')],_0x6a8c16['args']]);};AGIVertices[_0x999c('0x13')][_0x999c('0xbf')]=function(_0x5457a8){logger[_0x999c('0x32')](util['format'](_0x999c('0xc0'),_0x5457a8[_0x999c('0x3b')]));if(this[_0x999c('0x89')](_0x5457a8['timeout'])){logger['info'](util[_0x999c('0x2c')]('Wait\x20%s\x20seconds\x20before\x20answer',_0x5457a8['timeout']));var _0x3fdba4=this['channel'][_0x999c('0xc1')](_0x5457a8['timeout']);if(_0x3fdba4[_0x999c('0xa8')]===-0x1){return _0x3fdba4;}}return this['channel']['answer']();};AGIVertices[_0x999c('0x13')][_0x999c('0x4f')]=function(_0x19c379){logger[_0x999c('0x32')](util['format'](_0x999c('0xc2'),_0x19c379['label']));if(!this[_0x999c('0x89')](_0x19c379['list_id'])){return this[_0x999c('0x11')][_0x999c('0x2e')](_0x19c379,'no\x20list\x20selected');}_0x19c379[_0x999c('0x4e')]=moment();if(this[_0x999c('0x89')](_0x19c379['delay'])){_0x19c379['scheduledAt']=moment()['add'](_0x19c379[_0x999c('0xc3')],_0x999c('0xc4'));}if(!this[_0x999c('0x89')](_0x19c379['callback_priority'])){_0x19c379[_0x999c('0x51')]=0x2;}this[_0x999c('0x47')][_0x999c('0xaa')](this,_0x19c379);return this[_0x999c('0x11')][_0x999c('0xaf')](util[_0x999c('0x2c')](_0x999c('0xc5'),_0x19c379['phone'],_0x19c379[_0x999c('0x4d')],_0x19c379['scheduledAt']));};AGIVertices['prototype'][_0x999c('0xc6')]=function(_0xcd7120){logger[_0x999c('0x32')](util['format'](_0x999c('0xc7'),_0xcd7120[_0x999c('0x3b')]));var _0x4714c6=this[_0x999c('0x11')][_0x999c('0xb1')](_0xcd7120[_0x999c('0xc8')],_0xcd7120[_0x999c('0x7c')]);if(_0x4714c6[_0x999c('0xa8')]===-0x1){return _0x4714c6;}return this[_0x999c('0x11')][_0x999c('0xaf')](util[_0x999c('0x2c')](_0x999c('0xc9'),_0xcd7120[_0x999c('0xc8')],_0xcd7120[_0x999c('0x7c')]));};AGIVertices['prototype'][_0x999c('0xca')]=function(_0x4855b3){logger[_0x999c('0x32')](util[_0x999c('0x2c')](_0x999c('0xcb'),_0x4855b3[_0x999c('0x3b')]));if(!this[_0x999c('0x89')](_0x4855b3[_0x999c('0x60')])){return this[_0x999c('0x11')][_0x999c('0xaf')](_0x999c('0xb0'));}var _0x397459='\x22'+_0x4855b3['text']+'\x22';if(this[_0x999c('0x89')](_0x4855b3['options'])){_0x397459+=','+_0x4855b3[_0x999c('0x7c')];}var _0xdbfafa=this['channel'][_0x999c('0xb1')](_0x999c('0xb2'),_0x397459);if(_0xdbfafa[_0x999c('0xa8')]===-0x1){return _0xdbfafa;}return this[_0x999c('0x11')][_0x999c('0xaf')](util[_0x999c('0x2c')]('Executed\x20command\x20MRCPSynth\x20%s',_0x397459));};AGIVertices['prototype'][_0x999c('0xcc')]=function(_0x2bdb8b){logger[_0x999c('0x32')](util[_0x999c('0x2c')](_0x999c('0xcd'),_0x2bdb8b[_0x999c('0x3b')]));if(!this[_0x999c('0x89')](_0x2bdb8b['text'])){return this[_0x999c('0x11')][_0x999c('0xaf')](_0x999c('0xb0'));}var _0x16c7ea='\x22'+_0x2bdb8b['text']+'\x22';if(this[_0x999c('0x89')](_0x2bdb8b[_0x999c('0x7c')])){_0x16c7ea+=','+_0x2bdb8b[_0x999c('0x7c')];}var _0x388bc9=this[_0x999c('0x11')]['exec'](_0x999c('0xb2'),_0x16c7ea);if(_0x388bc9['result']===-0x1){return _0x388bc9;}return this['channel'][_0x999c('0xaf')](util[_0x999c('0x2c')](_0x999c('0xce'),_0x16c7ea));};AGIVertices[_0x999c('0x13')][_0x999c('0xcf')]=function(_0x209bdf){logger['info'](util['format']('Enter\x20in\x20LUMENVOXASR\x20(%s)\x20block',_0x209bdf['label']));if(!this[_0x999c('0x89')](_0x209bdf[_0x999c('0xb5')])){return this['channel']['noop']('no\x20grammar\x20configured');}var _0x2541ab=_0x209bdf[_0x999c('0xb5')];if(this['isConfigured'](_0x209bdf[_0x999c('0x7c')])){_0x2541ab+=','+_0x209bdf[_0x999c('0x7c')];}var _0x3492e1=this[_0x999c('0x11')]['exec'](_0x999c('0xb6'),_0x2541ab);if(_0x3492e1['result']===-0x1){return _0x3492e1;}var _0x4d738b=this[_0x999c('0xa6')](_0x999c('0xb7'),_0x999c('0xd0'));if(_0x4d738b[_0x999c('0xa8')]===-0x1){return _0x4d738b;}var _0x18de3a=this[_0x999c('0xa6')](_0x999c('0xb9'),_0x999c('0xd1'));if(_0x18de3a['result']===-0x1){return _0x18de3a;}var _0x3b0c37=this[_0x999c('0xa6')]('RECOG_INSTANCE()',_0x999c('0xd2'));if(_0x3b0c37[_0x999c('0xa8')]===-0x1){return _0x3b0c37;}return this[_0x999c('0x11')][_0x999c('0xaf')](util[_0x999c('0x2c')](_0x999c('0xbc'),_0x2541ab));};AGIVertices[_0x999c('0x13')][_0x999c('0xd3')]=function(_0x55797f){logger[_0x999c('0x32')](util[_0x999c('0x2c')](_0x999c('0xd4'),_0x55797f[_0x999c('0x3b')]));if(!this[_0x999c('0x89')](_0x55797f['grammar'])){return this['channel'][_0x999c('0xaf')]('no\x20grammar\x20configured');}var _0x11be94=_0x55797f[_0x999c('0xb5')];if(this['isConfigured'](_0x55797f[_0x999c('0x7c')])){_0x11be94+=','+_0x55797f[_0x999c('0x7c')];}var _0x2054ea=this[_0x999c('0x11')][_0x999c('0xb1')](_0x999c('0xb6'),_0x11be94);if(_0x2054ea[_0x999c('0xa8')]===-0x1){return _0x2054ea;}var _0x47e529=this[_0x999c('0xa6')]('RECOG_CONFIDENCE()',_0x999c('0xd5'));if(_0x47e529['result']===-0x1){return _0x47e529;}var _0x158ad6=this[_0x999c('0xa6')](_0x999c('0xb9'),'SESTEK_ASR_TRANSCRIPT');if(_0x158ad6['result']===-0x1){return _0x158ad6;}var _0x343835=this[_0x999c('0xa6')](_0x999c('0xba'),_0x999c('0xd6'));if(_0x343835[_0x999c('0xa8')]===-0x1){return _0x343835;}return this[_0x999c('0x11')]['noop'](util[_0x999c('0x2c')](_0x999c('0xbc'),_0x11be94));};AGIVertices['prototype'][_0x999c('0xd7')]=function(_0x478000){logger[_0x999c('0x32')](util[_0x999c('0x2c')]('Enter\x20in\x20DATABASE\x20(%s)\x20block',_0x478000[_0x999c('0x3b')]));if(!this['isConfigured'](_0x478000['odbc_id'])){return this['channel'][_0x999c('0x2e')](_0x478000,_0x999c('0xd8'));}var _0x5d56da=this['getSquareOdbc']['sync'](this,_0x478000['odbc_id']);if(!_0x5d56da){return this['channel'][_0x999c('0x2e')](_0x478000,_0x999c('0xd9'));}if(!this['isConfigured'](_0x478000[_0x999c('0x30')])){return this[_0x999c('0x11')][_0x999c('0x2e')](_0x478000,_0x999c('0xda'));}var _0x2ba1e3=_0x478000[_0x999c('0x30')][_0x999c('0x5c')](/(\r\n|\n|\r)/gm,'\x20');this['channel'][_0x999c('0xaf')](util['format']('query:\x20%s',_0x2ba1e3));var _0x251819=this[_0x999c('0xdb')][_0x999c('0xaa')](this,_0x5d56da,_0x2ba1e3);this[_0x999c('0x39')][_0x999c('0xaa')](this,_0x478000,_0x2ba1e3);if(!this[_0x999c('0x89')](_0x478000[_0x999c('0xdc')])){return this[_0x999c('0x11')][_0x999c('0xaf')](_0x999c('0xdd'));}var _0xd2bb81=this[_0x999c('0xa7')][_0x999c('0xaa')](this,_0x478000['variable_id']);if(!_0xd2bb81){return this[_0x999c('0x11')][_0x999c('0x2e')](_0x478000,_0x999c('0xde'));}var _0x946492=this;_0x251819[_0x999c('0xdf')](function(_0x2e04c3,_0x175f22){Object[_0x999c('0xe0')](_0x2e04c3)['forEach'](function(_0x1298e1){_0x946492['channel'][_0x999c('0xa2')](util[_0x999c('0x2c')](_0x999c('0xe1'),_0xd2bb81,_0x175f22,_0x1298e1),_0x2e04c3[_0x1298e1]);});});this['channel'][_0x999c('0xa2')](util['format'](_0x999c('0xe2'),_0xd2bb81),_0x251819[_0x999c('0xa1')]);return this['channel']['noop'](util[_0x999c('0x2c')](_0x999c('0xe3'),_0xd2bb81));};AGIVertices[_0x999c('0x13')][_0x999c('0xe4')]=function(_0x44fb81){logger[_0x999c('0xe5')](util[_0x999c('0x2c')](_0x999c('0xe6'),_0x44fb81[_0x999c('0x3b')]));if(!this[_0x999c('0x89')](_0x44fb81[_0x999c('0xe7')])){return this['channel']['error'](_0x44fb81,_0x999c('0xe8'));}var _0x21652b=this['getUser'][_0x999c('0xaa')](this,_0x44fb81[_0x999c('0xe7')]);if(!_0x21652b){return this[_0x999c('0x11')][_0x999c('0x2e')](_0x44fb81,'no\x20user\x20found');}var _0x218e7d=this[_0x999c('0x11')]['exec'](_0x999c('0xe9'),[util[_0x999c('0x2c')](_0x999c('0xea'),_0x21652b),_0x44fb81['timeout'],_0x44fb81[_0x999c('0xeb')],_0x44fb81[_0x999c('0x68')]]);if(_0x218e7d['result']===-0x1){return _0x218e7d;}return this['channel'][_0x999c('0xaf')](util[_0x999c('0x2c')](_0x999c('0xec'),'DIAL'));};AGIVertices['prototype']['dialogflow']=function(_0x40d747){logger[_0x999c('0x32')](util[_0x999c('0x2c')](_0x999c('0xed'),_0x40d747[_0x999c('0x3b')]));if(!this[_0x999c('0x89')](_0x40d747[_0x999c('0x7e')])){return this[_0x999c('0x11')]['noop'](_0x999c('0xee'));}if(!this[_0x999c('0x89')](_0x40d747[_0x999c('0x60')])){return this[_0x999c('0x11')][_0x999c('0xaf')](_0x999c('0xb0'));}this[_0x999c('0x11')][_0x999c('0xef')]=!![];this[_0x999c('0x39')](_0x40d747);this['createSquareMessage'](_0x40d747[_0x999c('0x60')],'in','','');this[_0x999c('0x11')]['noop'](util['format'](_0x999c('0xf0'),_0x40d747['text']));var _0x18bb3b=this[_0x999c('0x7d')][_0x999c('0xaa')](this,_0x40d747);if(_0x18bb3b){for(var _0x2a13c3 in _0x18bb3b){if(_0x18bb3b[_0x999c('0x98')](_0x2a13c3)){this[_0x999c('0x11')][_0x999c('0xa2')](util[_0x999c('0x2c')](_0x999c('0xf1'),_0x2a13c3[_0x999c('0x6f')]()),_0x18bb3b[_0x2a13c3]);}}this[_0x999c('0x46')](_0x18bb3b[_0x999c('0xf2')],'out','dialogflow','');return this[_0x999c('0x11')][_0x999c('0xaf')](util[_0x999c('0x2c')](_0x999c('0xf3'),_0x18bb3b[_0x999c('0xf2')]));}return this[_0x999c('0x11')]['error'](_0x40d747,'Dialogflow\x20is\x20unreachable');};AGIVertices[_0x999c('0x13')][_0x999c('0xf4')]=function(_0x8b0662){logger[_0x999c('0x32')](util[_0x999c('0x2c')](_0x999c('0xf5'),_0x8b0662[_0x999c('0x3b')]));if(!this[_0x999c('0x89')](_0x8b0662['dialogflowV2_project_id'])){return this[_0x999c('0x11')][_0x999c('0xaf')](_0x999c('0xf6'));}if(!this[_0x999c('0x89')](_0x8b0662[_0x999c('0x81')])){return this[_0x999c('0x11')][_0x999c('0xaf')]('no\x20client_email\x20configured');}if(!this[_0x999c('0x89')](_0x8b0662[_0x999c('0xf7')])){return this['channel'][_0x999c('0xaf')](_0x999c('0xf8'));}if(!this[_0x999c('0x89')](_0x8b0662[_0x999c('0x82')])){return this['channel'][_0x999c('0xaf')](_0x999c('0xf9'));}if(!this[_0x999c('0x89')](_0x8b0662[_0x999c('0x60')])){return this[_0x999c('0x11')][_0x999c('0xaf')]('no\x20text\x20configured');}this[_0x999c('0x11')][_0x999c('0xef')]=!![];this[_0x999c('0x39')](_0x8b0662);this[_0x999c('0x46')](_0x8b0662[_0x999c('0x60')],'in','','');this[_0x999c('0x11')][_0x999c('0xaf')](util[_0x999c('0x2c')](_0x999c('0xfa'),_0x8b0662[_0x999c('0x60')]));var _0x3477ee=this[_0x999c('0x80')][_0x999c('0xaa')](this,_0x8b0662);if(_0x3477ee){for(var _0x1dbe76 in _0x3477ee){if(_0x3477ee['hasOwnProperty'](_0x1dbe76)){if(_0x1dbe76!==_0x999c('0xfb')){this['channel'][_0x999c('0xa2')](util[_0x999c('0x2c')](_0x999c('0xf1'),_0x1dbe76[_0x999c('0x6f')]()),_0x3477ee[_0x1dbe76]);}}}this['createSquareMessage'](_0x3477ee[_0x999c('0xf2')],_0x999c('0xfc'),_0x999c('0xf4'),_0x3477ee['providerResponse']);return this[_0x999c('0x11')][_0x999c('0xaf')](util[_0x999c('0x2c')]('DialogflowV2\x20Result\x20%s',_0x3477ee['speech']));}return this[_0x999c('0x11')][_0x999c('0x2e')](_0x8b0662,_0x999c('0xfd'));};AGIVertices[_0x999c('0x13')][_0x999c('0xfe')]=function(_0x3d622a){logger[_0x999c('0x32')](util[_0x999c('0x2c')]('Enter\x20in\x20SESTEKNDA\x20(%s)\x20block',_0x3d622a[_0x999c('0x3b')]));if(!this[_0x999c('0x89')](_0x3d622a['ndauth_url'])){return this[_0x999c('0x11')][_0x999c('0xaf')](_0x999c('0xff'));}if(!this[_0x999c('0x89')](_0x3d622a['username'])){return this[_0x999c('0x11')][_0x999c('0xaf')](_0x999c('0x100'));}if(!this['isConfigured'](_0x3d622a['password'])){return this[_0x999c('0x11')][_0x999c('0xaf')](_0x999c('0x101'));}if(!this[_0x999c('0x89')](_0x3d622a[_0x999c('0x102')])){return this[_0x999c('0x11')][_0x999c('0xaf')](_0x999c('0xb0'));}this[_0x999c('0x11')][_0x999c('0xef')]=!![];this['createSquareDetailsReport'](_0x3d622a);this[_0x999c('0x46')](_0x3d622a[_0x999c('0x60')],'in','','');this['channel'][_0x999c('0xaf')](util['format'](_0x999c('0x103'),_0x3d622a[_0x999c('0x60')]));var _0x23ea9e=this[_0x999c('0x83')][_0x999c('0xaa')](this,_0x3d622a);if(_0x23ea9e){for(var _0x43481a in _0x23ea9e){if(_0x23ea9e[_0x999c('0x98')](_0x43481a)){this[_0x999c('0x11')]['setVariable'](util[_0x999c('0x2c')](_0x999c('0x104'),_0x43481a[_0x999c('0x6f')]()),_0x23ea9e[_0x43481a]);}}this['createSquareMessage'](_0x23ea9e[_0x999c('0xf2')],_0x999c('0xfc'),_0x999c('0xfe'),'');if(_0x23ea9e['audiofile']){this[_0x999c('0x11')]['noop'](util['format']('Sestek\x20NDA\x20%s\x20file\x20created',_0x23ea9e[_0x999c('0x105')]));var _0x3788d6=this['channel']['streamFile'](_0x23ea9e['audiofile']);try{fs[_0x999c('0x106')](_0x23ea9e['audiofile']+'.wav');}catch(_0x3274df){logger[_0x999c('0x2e')](_0x3274df);}return _0x3788d6;}else{return this[_0x999c('0x11')][_0x999c('0xaf')](util[_0x999c('0x2c')](_0x999c('0x107'),_0x23ea9e[_0x999c('0xf2')]));}}return this['channel'][_0x999c('0x2e')](_0x3d622a,_0x999c('0x108'));};AGIVertices[_0x999c('0x13')][_0x999c('0x109')]=function(_0x392b34){logger['info'](util[_0x999c('0x2c')](_0x999c('0x10a'),_0x392b34[_0x999c('0x3b')]));return this[_0x999c('0x11')]['noop']('end');};AGIVertices[_0x999c('0x13')][_0x999c('0x10b')]=function(_0x5bf09c){logger['info'](util[_0x999c('0x2c')](_0x999c('0x10c'),_0x5bf09c[_0x999c('0x3b')]));var _0x6fed01='';if(_0x5bf09c['trunk_id']){if(!this[_0x999c('0x89')](_0x5bf09c['trunk_id'])){return this[_0x999c('0x11')][_0x999c('0x2e')](_0x5bf09c,'no\x20trunk\x20selected');}else{var _0x506ee9=parseInt(_0x5bf09c['trunk_id'],0xa);if(isNaN(_0x506ee9)){_0x6fed01=_0x5bf09c[_0x999c('0x10d')];}else{_0x6fed01=this[_0x999c('0x10e')][_0x999c('0xaa')](this,_0x5bf09c[_0x999c('0x10d')]);if(!_0x6fed01){return this['channel'][_0x999c('0x2e')](_0x5bf09c,_0x999c('0x10f'));}}}}else if(_0x5bf09c['trunk_name']){_0x6fed01=_0x5bf09c[_0x999c('0x110')];}else{return this[_0x999c('0x11')]['error'](_0x5bf09c,_0x999c('0x111'));}var _0xc24259=this[_0x999c('0x11')][_0x999c('0xb1')](_0x999c('0xe9'),[util[_0x999c('0x2c')](_0x999c('0x112'),_0x6fed01,_0x5bf09c['phone']),_0x5bf09c['timeout'],_0x5bf09c[_0x999c('0xeb')],_0x5bf09c[_0x999c('0x68')]]);if(_0xc24259['result']===-0x1){return _0xc24259;}return this[_0x999c('0x11')]['noop'](util[_0x999c('0x2c')](_0x999c('0xec'),_0x999c('0xe9')));};AGIVertices[_0x999c('0x13')][_0x999c('0x113')]=function(_0x1bdefa){logger[_0x999c('0x32')](util[_0x999c('0x2c')](_0x999c('0x114'),_0x1bdefa['label']));return this['channel'][_0x999c('0xaf')](_0x999c('0x113'));};AGIVertices[_0x999c('0x13')][_0x999c('0xf')]=function(_0x102815){logger[_0x999c('0x32')](util['format']('Enter\x20in\x20GETDIGITS\x20(%s)\x20block',_0x102815[_0x999c('0x3b')]));if(_0x102815['retry']===0x0){return this[_0x999c('0xac')](_0x102815);}_0x102815[_0x999c('0xab')]-=0x1;if(!this[_0x999c('0x89')](_0x102815[_0x999c('0x115')])){return this['channel']['error'](_0x102815,_0x999c('0x116'));}var _0x22c70f=this[_0x999c('0x117')]['sync'](this,_0x102815[_0x999c('0x115')]);if(!_0x22c70f){return this['channel'][_0x999c('0x2e')](_0x102815,_0x999c('0x118'));}if(!this['isConfigured'](_0x102815['variable_id'])){return this[_0x999c('0x11')][_0x999c('0x2e')]('no\x20variable\x20selected\x20for\x20the\x20result');}var _0x29d9c6=this[_0x999c('0x11')][_0x999c('0x119')](_0x22c70f,_0x102815[_0x999c('0x11a')],_0x102815[_0x999c('0x11b')]);var _0x3fdf8a=_0x29d9c6['result']?_0x29d9c6['result'][_0x999c('0x50')]():'';logger['info'](_0x999c('0x11c'),JSON[_0x999c('0x77')](_0x29d9c6));if(_0x29d9c6[_0x999c('0xa8')]===-0x1){this[_0x999c('0x39')][_0x999c('0xaa')](this,_0x102815,_0x3fdf8a);return _0x29d9c6;}else if(_0x29d9c6[_0x999c('0xa5')]===_0x999c('0x69')){_0x29d9c6[_0x999c('0xa8')]=_0x3fdf8a['length']>=parseInt(_0x102815[_0x999c('0x11d')])?'x':'i';}else{_0x29d9c6['result']=_0x3fdf8a['length']>=parseInt(_0x102815[_0x999c('0x11d')])&&_0x3fdf8a[_0x999c('0xa1')]<=parseInt(_0x102815[_0x999c('0x11b')])?'x':'i';}var _0x26b57b=this[_0x999c('0xa7')][_0x999c('0xaa')](this,_0x102815[_0x999c('0xdc')]);if(!_0x26b57b){return this[_0x999c('0x11')][_0x999c('0x2e')](_0x102815,_0x999c('0xde'));}this[_0x999c('0x11')][_0x999c('0xa2')](_0x26b57b,_0x3fdf8a);if(this[_0x999c('0x89')](_0x102815['hiddendigitsnum'])){var _0x4ddb18=parseInt(_0x102815[_0x999c('0x11e')],0xa);var _0x2859d2=rs[_0x999c('0x11f')]({'charset':'*','length':_0x4ddb18});var _0x172766=_0x3fdf8a[_0x999c('0xa1')];if(_0x172766>0x0){if(_0x172766>_0x4ddb18){this[_0x999c('0x39')][_0x999c('0xaa')](this,_0x102815,_0x102815[_0x999c('0x120')]===_0x999c('0x121')?_0x2859d2+_0x3fdf8a[_0x999c('0x122')](_0x4ddb18):_0x3fdf8a[_0x999c('0x122')](0x0,_0x172766-_0x4ddb18)+_0x2859d2);}else{this[_0x999c('0x39')][_0x999c('0xaa')](this,_0x102815,rs['generate']({'charset':'*','length':_0x172766}));}}else{this['createSquareDetailsReport']['sync'](this,_0x102815,'');}}else{this[_0x999c('0x39')][_0x999c('0xaa')](this,_0x102815,_0x3fdf8a);}return _0x29d9c6;};AGIVertices['prototype'][_0x999c('0x10')]=function(_0x26cd3f){logger[_0x999c('0x32')](util[_0x999c('0x2c')](_0x999c('0x123'),_0x26cd3f[_0x999c('0x3b')]));return this[_0x999c('0xf')](_0x26cd3f);};AGIVertices[_0x999c('0x13')][_0x999c('0x124')]=function(_0x5b95d4){logger[_0x999c('0x32')](util[_0x999c('0x2c')](_0x999c('0x125'),_0x5b95d4[_0x999c('0x3b')]));this[_0x999c('0x39')]['sync'](this,_0x5b95d4,_0x5b95d4['goalname']);return this[_0x999c('0x11')]['noop'](util['format'](_0x999c('0x126'),_0x5b95d4[_0x999c('0x127')]));};AGIVertices['prototype'][_0x999c('0x128')]=function(_0x452ae4){logger['info'](util[_0x999c('0x2c')](_0x999c('0x129'),_0x452ae4[_0x999c('0x3b')]));if(!this[_0x999c('0x89')](_0x452ae4[_0x999c('0x8c')])||!this[_0x999c('0x89')](_0x452ae4[_0x999c('0x8d')])){return this[_0x999c('0x11')]['noop'](_0x999c('0x12a'));}if(!this['isConfigured'](_0x452ae4[_0x999c('0x60')])){return this['channel'][_0x999c('0xaf')]('no\x20text\x20configured');}this['channel']['noop'](util[_0x999c('0x2c')](_0x999c('0x12b'),_0x452ae4[_0x999c('0x60')]));var _0x46ba24=this[_0x999c('0x8b')][_0x999c('0xaa')](this,_0x452ae4);if(_0x46ba24){this[_0x999c('0x11')][_0x999c('0xaf')](util[_0x999c('0x2c')](_0x999c('0x12c'),_0x46ba24));var _0xe17572=this[_0x999c('0x11')][_0x999c('0x12d')](_0x46ba24);try{fs[_0x999c('0x106')](_0x46ba24+_0x999c('0x12e'));}catch(_0x8c0153){logger[_0x999c('0x2e')](_0x8c0153);}return _0xe17572;}return this['channel'][_0x999c('0x2e')](_0x452ae4,_0x999c('0x12f'));};AGIVertices[_0x999c('0x13')][_0x999c('0x130')]=function(_0xf67038){logger[_0x999c('0x32')](util[_0x999c('0x2c')](_0x999c('0x131'),_0xf67038['label']));if(!this[_0x999c('0x89')](_0xf67038[_0x999c('0x8c')])||!this[_0x999c('0x89')](_0xf67038[_0x999c('0x8d')])){return this[_0x999c('0x11')][_0x999c('0xaf')](_0x999c('0x12a'));}if(!this[_0x999c('0x89')](_0xf67038[_0x999c('0x91')])){return this[_0x999c('0x11')]['noop'](_0x999c('0x132'));}if(!this['isConfigured'](_0xf67038[_0x999c('0x60')])){return this[_0x999c('0x11')][_0x999c('0xaf')](_0x999c('0xb0'));}this[_0x999c('0x11')][_0x999c('0xef')]=!![];this[_0x999c('0x39')](_0xf67038);this[_0x999c('0x46')](_0xf67038[_0x999c('0x60')],'in','','');this['channel']['noop'](util[_0x999c('0x2c')](_0x999c('0x133'),_0xf67038[_0x999c('0x60')]));var _0x285222=this[_0x999c('0x90')][_0x999c('0xaa')](this,_0xf67038);if(_0x285222){for(var _0x19c26e in _0x285222){if(_0x285222[_0x999c('0x98')](_0x19c26e)&&_[_0x999c('0x99')](_0x285222[_0x19c26e])){this[_0x999c('0x11')][_0x999c('0xa2')](util[_0x999c('0x2c')](_0x999c('0x134'),_0x19c26e[_0x999c('0x6f')]()),_0x285222[_0x19c26e]);}}if(_[_0x999c('0x48')](_0x285222[_0x999c('0x7b')])){return this[_0x999c('0x11')][_0x999c('0xaf')]('Amazon\x20Lex\x20ready\x20for\x20fulfillment');}else{this['createSquareMessage'](_0x285222[_0x999c('0x7b')],_0x999c('0xfc'),'amazonlex','');return this[_0x999c('0x11')]['noop'](util['format'](_0x999c('0x135'),_0x285222[_0x999c('0x7b')]));}}return this[_0x999c('0x11')]['error'](_0xf67038,'Amazon\x20Lex\x20is\x20unreachable');};AGIVertices[_0x999c('0x13')][_0x999c('0x136')]=function(_0x331057){logger[_0x999c('0x32')](util[_0x999c('0x2c')](_0x999c('0x137'),_0x331057['label'],_0x331057['timeout']));if(!this[_0x999c('0x89')](_0x331057[_0x999c('0x7e')])){return this['channel'][_0x999c('0xaf')](_0x999c('0xee'));}var _0x45bdcd=_0x999c('0x138');var _0x57222b=util[_0x999c('0x2c')](_0x999c('0x139'),FILES_PATH,rs[_0x999c('0x11f')](0x4));var _0x212dee=util[_0x999c('0x2c')](_0x999c('0xa0'),_0x57222b,_0x45bdcd);var _0x585f91=!![];if(_0x331057['beep']===_0x999c('0x13a')){_0x585f91=![];}var _0x48a090=this[_0x999c('0x11')][_0x999c('0x13b')](_0x57222b,_0x45bdcd,_0x331057[_0x999c('0x13c')],_0x331057[_0x999c('0x69')],undefined,_0x585f91);if(_0x48a090[_0x999c('0xa8')]!==-0x1){this[_0x999c('0x11')][_0x999c('0xaf')](util[_0x999c('0x2c')](_0x999c('0x13d'),_0x212dee));var _0x54eee0=this[_0x999c('0x92')][_0x999c('0xaa')](this,_0x331057,_0x212dee);if(_0x54eee0){for(var _0x2d523e in _0x54eee0){if(_0x54eee0[_0x999c('0x98')](_0x2d523e)){this['channel'][_0x999c('0xa2')](util[_0x999c('0x2c')](_0x999c('0x13e'),_0x2d523e['toUpperCase']()),_0x54eee0[_0x2d523e]);}}return this[_0x999c('0x11')][_0x999c('0xaf')](util[_0x999c('0x2c')](_0x999c('0x13f'),JSON[_0x999c('0x77')](_0x54eee0)));}}return _0x48a090;};AGIVertices['prototype'][_0x999c('0x140')]=function(_0x41c534){logger[_0x999c('0x32')](util[_0x999c('0x2c')](_0x999c('0x141'),_0x41c534['label']));if(!this[_0x999c('0x89')](_0x41c534[_0x999c('0x95')])){return this['channel'][_0x999c('0xaf')](_0x999c('0x142'));}if(!this['isConfigured'](_0x41c534['appsecret'])){return this[_0x999c('0x11')]['noop'](_0x999c('0x143'));}var _0xcd56ee=_0x999c('0x138');var _0x15aabb=util['format']('%s/recordings/%s',FILES_PATH,rs[_0x999c('0x11f')](0x4));var _0x549161=util[_0x999c('0x2c')](_0x999c('0xa0'),_0x15aabb,_0xcd56ee);var _0x26888e=!![];if(_0x41c534['beep']===_0x999c('0x13a')){_0x26888e=![];}var _0x130614=this[_0x999c('0x11')]['recordFile'](_0x15aabb,_0xcd56ee,_0x41c534[_0x999c('0x13c')],_0x41c534['timeout'],undefined,_0x26888e);if(_0x130614[_0x999c('0xa8')]!==-0x1){this[_0x999c('0x11')][_0x999c('0xaf')](util['format'](_0x999c('0x144'),_0x549161));var _0x2c7542=this[_0x999c('0x94')][_0x999c('0xaa')](this,_0x41c534,_0x549161);if(_0x2c7542){for(var _0x1cb9ac in _0x2c7542){if(_0x2c7542[_0x999c('0x98')](_0x1cb9ac)){this[_0x999c('0x11')][_0x999c('0xa2')](util[_0x999c('0x2c')](_0x999c('0x145'),_0x1cb9ac[_0x999c('0x6f')]()),_0x2c7542[_0x1cb9ac]);}}return this[_0x999c('0x11')][_0x999c('0xaf')](util['format'](_0x999c('0x146'),JSON[_0x999c('0x77')](_0x2c7542)));}}return _0x130614;};AGIVertices[_0x999c('0x13')][_0x999c('0x147')]=function(_0x544e1e){logger[_0x999c('0x32')](util['format']('Enter\x20in\x20GOTO\x20(%s)\x20block',_0x544e1e[_0x999c('0x3b')]));return this[_0x999c('0x11')][_0x999c('0x148')](_0x544e1e[_0x999c('0x41')],_0x544e1e[_0x999c('0x42')],_0x544e1e[_0x999c('0x43')]);};AGIVertices[_0x999c('0x13')][_0x999c('0x149')]=function(_0x312b4a){logger[_0x999c('0x32')](util[_0x999c('0x2c')](_0x999c('0x14a'),_0x312b4a[_0x999c('0x3b')]));if(!this[_0x999c('0x89')](_0x312b4a['condition'])){return this[_0x999c('0x11')]['error'](_0x312b4a,'no\x20condition\x20configured');}try{var _0x3b1e51=eval(_0x312b4a['condition'])?_0x999c('0x14b'):_0x999c('0x14c');this[_0x999c('0x11')][_0x999c('0xaf')](util['format']('EVAL\x20CONDITION\x20%s\x20%s',_0x312b4a[_0x999c('0x14d')],_0x3b1e51));return{'code':0xc8,'result':_0x3b1e51};}catch(_0x28c944){return{'code':0xc8,'result':_0x999c('0x14c')};}};AGIVertices[_0x999c('0x13')][_0x999c('0x14e')]=function(_0x266c10){logger['info'](util[_0x999c('0x2c')](_0x999c('0x14f'),_0x266c10[_0x999c('0x3b')]));if(!this[_0x999c('0x89')](_0x266c10[_0x999c('0x150')])){return this[_0x999c('0x11')]['error'](_0x266c10,_0x999c('0x151'));}var _0x50540a=this[_0x999c('0x27')]['sync'](this,_0x266c10['interval_id']);if(!_0x50540a){return this[_0x999c('0x11')][_0x999c('0x2e')](_0x266c10,_0x999c('0x152'));}for(var _0x3400a9=0x0;_0x3400a9<_0x50540a[_0x999c('0xa1')];_0x3400a9+=0x1){var _0x3c2b33=this[_0x999c('0x11')][_0x999c('0xa7')](util[_0x999c('0x2c')]('IFTIME(%s?true:false)',_0x50540a[_0x3400a9]));if(_0x3c2b33[_0x999c('0xa8')]===-0x1){return _0x3c2b33;}logger['info'](util[_0x999c('0x2c')](_0x999c('0x153'),_0x50540a[_0x3400a9],_0x3c2b33['extra']));if(_0x3c2b33[_0x999c('0xa5')]===_0x999c('0x14b')){logger['info'](util[_0x999c('0x2c')](_0x999c('0x153'),_0x50540a[_0x3400a9],_0x999c('0x14b')));this[_0x999c('0x11')][_0x999c('0xaf')](util[_0x999c('0x2c')](_0x999c('0x153'),_0x50540a[_0x3400a9],'true'));return{'code':0xc8,'result':_0x999c('0x14b')};}else{logger[_0x999c('0x32')](util[_0x999c('0x2c')]('IFTIME\x20%s\x20%s',_0x50540a[_0x3400a9],_0x999c('0x14c')));this['channel'][_0x999c('0xaf')](util[_0x999c('0x2c')](_0x999c('0x153'),_0x50540a[_0x3400a9],'false'));}}return{'code':0xc8,'result':_0x999c('0x14c')};};AGIVertices[_0x999c('0x13')][_0x999c('0x154')]=function(_0x28404c){logger[_0x999c('0x32')](util[_0x999c('0x2c')](_0x999c('0x155'),_0x28404c[_0x999c('0x3b')]));return this[_0x999c('0x11')][_0x999c('0x154')]();};AGIVertices[_0x999c('0x13')]['ispeechasr']=function(_0x334749){logger[_0x999c('0x32')](util[_0x999c('0x2c')](_0x999c('0x156'),_0x334749[_0x999c('0x3b')]));if(!this['isConfigured'](_0x334749[_0x999c('0x7e')])){return this[_0x999c('0x11')][_0x999c('0xaf')]('no\x20key\x20configured');}var _0x4964ad=_0x999c('0x138');var _0xe82c1a=util['format'](_0x999c('0x139'),FILES_PATH,rs[_0x999c('0x11f')](0x4));var _0x512b41=util[_0x999c('0x2c')](_0x999c('0xa0'),_0xe82c1a,_0x4964ad);var _0x982e0b=!![];if(_0x334749[_0x999c('0x157')]===_0x999c('0x13a')){_0x982e0b=![];}var _0x577985=this[_0x999c('0x11')]['recordFile'](_0xe82c1a,_0x4964ad,_0x334749[_0x999c('0x13c')],_0x334749[_0x999c('0x69')],undefined,_0x982e0b);if(_0x577985[_0x999c('0xa8')]!==-0x1){this[_0x999c('0x11')]['noop'](util[_0x999c('0x2c')](_0x999c('0x158'),_0x512b41));var _0x28758e=this['ispeechASR'][_0x999c('0xaa')](this,_0x334749,_0x512b41);if(_0x28758e){for(var _0x564753 in _0x28758e){if(_0x28758e[_0x999c('0x98')](_0x564753)){this[_0x999c('0x11')][_0x999c('0xa2')](util[_0x999c('0x2c')]('ISPEECH_ASR_%s',_0x564753['toUpperCase']()),_0x28758e[_0x564753]);}}return this[_0x999c('0x11')][_0x999c('0xaf')](util[_0x999c('0x2c')](_0x999c('0x159'),JSON[_0x999c('0x77')](_0x28758e)));}}return _0x577985;};AGIVertices[_0x999c('0x13')]['ispeechtts']=function(_0x22657){logger[_0x999c('0x32')](util[_0x999c('0x2c')](_0x999c('0x15a'),_0x22657['label']));if(!this[_0x999c('0x89')](_0x22657['key'])){return this[_0x999c('0x11')][_0x999c('0xaf')](_0x999c('0xee'));}if(!this['isConfigured'](_0x22657[_0x999c('0x60')])){return this[_0x999c('0x11')]['noop'](_0x999c('0xb0'));}this[_0x999c('0x11')]['noop'](util[_0x999c('0x2c')](_0x999c('0x15b'),_0x22657['text']));var _0x5c1242=this['ispeechTTS'][_0x999c('0xaa')](this,_0x22657);if(_0x5c1242){this[_0x999c('0x11')][_0x999c('0xaf')](util['format'](_0x999c('0x158'),_0x5c1242));var _0x3e2781=this[_0x999c('0x11')]['streamFile'](_0x5c1242,_0x22657[_0x999c('0x13c')]);try{fs[_0x999c('0x106')](_0x5c1242+_0x999c('0x12e'));}catch(_0x2fa34c){logger['error'](_0x2fa34c);}return _0x3e2781;}return this[_0x999c('0x11')]['error'](_0x22657,'ispeech\x20TTS\x20is\x20unreachable');};AGIVertices[_0x999c('0x13')][_0x999c('0x15c')]=function(_0x4adff5){logger[_0x999c('0x32')](util[_0x999c('0x2c')](_0x999c('0x15d'),_0x4adff5[_0x999c('0x3b')]));if(!this[_0x999c('0x89')](_0x4adff5[_0x999c('0x15e')])){return this['channel'][_0x999c('0x2e')](_0x4adff5,_0x999c('0x15f'));}logger[_0x999c('0x32')](util['format'](_0x999c('0x160'),this[_0x999c('0x11')][_0x999c('0x3e')],_0x4adff5[_0x999c('0x15e')]));var _0x351c77=this['agentLogin'][_0x999c('0xaa')](this,_0x4adff5[_0x999c('0x15e')]);if(_0x351c77){logger[_0x999c('0x32')](util[_0x999c('0x2c')](_0x999c('0x161'),this[_0x999c('0x11')][_0x999c('0x3e')],_0x4adff5[_0x999c('0x15e')]));this[_0x999c('0x11')][_0x999c('0xaf')](util[_0x999c('0x2c')]('AGENT\x20%s\x20FOUND\x20BY',this[_0x999c('0x11')][_0x999c('0x3e')],_0x4adff5[_0x999c('0x15e')]));return{'code':0xc8,'result':_0x999c('0x162')};}else{logger[_0x999c('0x32')](util[_0x999c('0x2c')](_0x999c('0x163'),this[_0x999c('0x11')][_0x999c('0x3e')],_0x4adff5[_0x999c('0x15e')]));this['channel'][_0x999c('0xaf')](util[_0x999c('0x2c')](_0x999c('0x163'),this[_0x999c('0x11')][_0x999c('0x3e')],_0x4adff5[_0x999c('0x15e')]));return{'code':0xc8,'result':'failure'};}};AGIVertices['prototype'][_0x999c('0x164')]=function(_0x46b0b6){logger[_0x999c('0x32')](util[_0x999c('0x2c')](_0x999c('0x165'),_0x46b0b6[_0x999c('0x3b')]));if(!this[_0x999c('0x89')](_0x46b0b6[_0x999c('0x15e')])){return this[_0x999c('0x11')]['error'](_0x46b0b6,_0x999c('0x15f'));}logger['info'](util['format'](_0x999c('0x160'),this[_0x999c('0x11')][_0x999c('0x3e')],_0x46b0b6[_0x999c('0x15e')]));var _0x3f353a=this[_0x999c('0x56')][_0x999c('0xaa')](this,_0x46b0b6[_0x999c('0x15e')]);if(_0x3f353a){logger[_0x999c('0x32')](util[_0x999c('0x2c')](_0x999c('0x161'),this[_0x999c('0x11')]['callerid'],_0x46b0b6['findBy']));this[_0x999c('0x11')][_0x999c('0xaf')](util[_0x999c('0x2c')]('AGENT\x20%s\x20FOUND\x20BY',this[_0x999c('0x11')][_0x999c('0x3e')],_0x46b0b6[_0x999c('0x15e')]));return{'code':0xc8,'result':_0x999c('0x162')};}else{logger[_0x999c('0x32')](util[_0x999c('0x2c')]('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this[_0x999c('0x11')][_0x999c('0x3e')],_0x46b0b6['findBy']));this[_0x999c('0x11')]['noop'](util[_0x999c('0x2c')](_0x999c('0x163'),this[_0x999c('0x11')][_0x999c('0x3e')],_0x46b0b6[_0x999c('0x15e')]));return{'code':0xc8,'result':_0x999c('0x166')};}};AGIVertices['prototype'][_0x999c('0x167')]=function(_0x3c10ff){logger[_0x999c('0x32')](util[_0x999c('0x2c')](_0x999c('0x168'),_0x3c10ff['label']));if(!this['isConfigured'](_0x3c10ff[_0x999c('0x169')])){return this[_0x999c('0x11')][_0x999c('0x2e')](_0x3c10ff,'no\x20operation\x20configured');}this['channel'][_0x999c('0xaf')](util[_0x999c('0x2c')](_0x999c('0x16a'),_0x3c10ff['operation']));var _0x50dba8=eval(_0x3c10ff[_0x999c('0x169')]);if(!this['isConfigured'](_0x3c10ff[_0x999c('0xdc')])){return this['channel'][_0x999c('0xaf')](_0x999c('0xdd'));}var _0x249e27=this[_0x999c('0xa7')][_0x999c('0xaa')](this,_0x3c10ff[_0x999c('0xdc')]);if(!_0x249e27){return this[_0x999c('0x11')][_0x999c('0x2e')](_0x3c10ff,_0x999c('0xde'));}if(_[_0x999c('0x9d')](_0x50dba8)){var _0x580e2e=this;_0x50dba8['forEach'](function(_0x1d0db7,_0x26d854){_0x580e2e[_0x999c('0x11')][_0x999c('0xa2')](util[_0x999c('0x2c')](_0x999c('0x16b'),_0x249e27,_0x26d854),_0x1d0db7);});return this[_0x999c('0x11')]['noop'](util[_0x999c('0x2c')](_0x999c('0x16c'),_0x249e27));}else{return this[_0x999c('0x11')]['setVariable'](_0x249e27,_0x50dba8);}};AGIVertices['prototype'][_0x999c('0xe')]=function(_0x2cf44d){logger[_0x999c('0x32')](util[_0x999c('0x2c')](_0x999c('0x16d'),_0x2cf44d[_0x999c('0x3b')]));if(_0x2cf44d[_0x999c('0xab')]===0x0){return this['maxRetry'](_0x2cf44d);}_0x2cf44d[_0x999c('0xab')]-=0x1;if(!this[_0x999c('0x89')](_0x2cf44d['file_id'])){return this[_0x999c('0x11')][_0x999c('0x2e')](_0x2cf44d,_0x999c('0x116'));}var _0x3c5ca7=this[_0x999c('0x117')][_0x999c('0xaa')](this,_0x2cf44d[_0x999c('0x115')]);if(!_0x3c5ca7){return this[_0x999c('0x11')]['error'](_0x2cf44d,_0x999c('0x118'));}var _0x51e31d=this['channel'][_0x999c('0x119')](_0x3c5ca7,_0x2cf44d[_0x999c('0x11a')],_0x2cf44d[_0x999c('0x16e')]);var _0x2f7e4a=_0x51e31d[_0x999c('0xa8')];if(_0x51e31d['result']===-0x1){this['createSquareDetailsReport'][_0x999c('0xaa')](this,_0x2cf44d,'-1');return _0x51e31d;}else if(_0x51e31d[_0x999c('0xa5')]===_0x999c('0x69')){_0x51e31d[_0x999c('0xa8')]=_0x51e31d['result'][_0x999c('0xa1')]>0x0?_0x51e31d[_0x999c('0xa8')]:'t';}else if(_[_0x999c('0x4b')](_0x51e31d[_0x999c('0xa8')])){_0x51e31d[_0x999c('0xa8')]='#';_0x2f7e4a='#';}if(!this[_0x999c('0x89')](_0x2cf44d[_0x999c('0xdc')])){this[_0x999c('0x11')][_0x999c('0xaf')](_0x999c('0xdd'));}else{var _0x34d861=this[_0x999c('0xa7')][_0x999c('0xaa')](this,_0x2cf44d[_0x999c('0xdc')]);if(!_0x34d861){return this['channel']['error'](_0x2cf44d,_0x999c('0xde'));}this[_0x999c('0x11')]['setVariable'](_0x34d861,_0x2f7e4a);}this[_0x999c('0x39')]['sync'](this,_0x2cf44d,_0x2f7e4a);return _0x51e31d;};AGIVertices['prototype'][_0x999c('0xaf')]=function(_0x1a5a09){logger['info'](util['format'](_0x999c('0x16f'),_0x1a5a09[_0x999c('0x3b')]));return this[_0x999c('0x11')][_0x999c('0xaf')](_0x1a5a09['output']||_0x1a5a09['label']);};AGIVertices[_0x999c('0x13')][_0x999c('0x170')]=function(_0x1b17c4){logger[_0x999c('0x32')](util[_0x999c('0x2c')](_0x999c('0x171'),_0x1b17c4[_0x999c('0x3b')]));if(!this[_0x999c('0x89')](_0x1b17c4['findBy'])){return this[_0x999c('0x11')][_0x999c('0x2e')](_0x1b17c4,_0x999c('0x15f'));}logger[_0x999c('0x32')](util[_0x999c('0x2c')](_0x999c('0x160'),this[_0x999c('0x11')]['callerid'],_0x1b17c4[_0x999c('0x15e')]));var _0x243102=this[_0x999c('0x52')][_0x999c('0xaa')](this,_0x1b17c4[_0x999c('0x172')]);var _0x48c61c=this['agentPause'][_0x999c('0xaa')](this,_0x1b17c4[_0x999c('0x15e')],_0x243102);if(_0x48c61c){logger['info'](util['format']('AGENT\x20%s\x20FOUND\x20BY',this[_0x999c('0x11')][_0x999c('0x3e')],_0x1b17c4[_0x999c('0x15e')]));this[_0x999c('0x11')]['noop'](util['format'](_0x999c('0x161'),this['channel'][_0x999c('0x3e')],_0x1b17c4[_0x999c('0x15e')]));return{'code':0xc8,'result':_0x999c('0x162')};}else{logger['info'](util['format'](_0x999c('0x163'),this['channel'][_0x999c('0x3e')],_0x1b17c4[_0x999c('0x15e')]));this[_0x999c('0x11')]['noop'](util[_0x999c('0x2c')]('AGENT\x20%s\x20FOUND\x20BY',this[_0x999c('0x11')][_0x999c('0x3e')],_0x1b17c4[_0x999c('0x15e')]));return{'code':0xc8,'result':_0x999c('0x166')};}};AGIVertices[_0x999c('0x13')][_0x999c('0x173')]=function(_0x56dad0){logger[_0x999c('0x32')](util[_0x999c('0x2c')](_0x999c('0x174'),_0x56dad0[_0x999c('0x3b')]));if(!this['isConfigured'](_0x56dad0[_0x999c('0x115')])){return this[_0x999c('0x11')]['error'](_0x56dad0,_0x999c('0x116'));}var _0x61d278=this[_0x999c('0x117')][_0x999c('0xaa')](this,_0x56dad0[_0x999c('0x115')]);if(!_0x61d278){return this['channel']['error'](_0x56dad0,_0x999c('0x118'));}var _0x1784f8=this[_0x999c('0x11')]['exec'](_0x999c('0x175'),[_0x61d278,_0x56dad0[_0x999c('0xeb')]]);if(_0x1784f8[_0x999c('0xa8')]===-0x1){return _0x1784f8;}return this[_0x999c('0x11')][_0x999c('0xaf')](util[_0x999c('0x2c')]('Executed\x20command\x20%s\x20%s',_0x999c('0x175'),_0x61d278));};AGIVertices[_0x999c('0x13')][_0x999c('0x176')]=function(_0x34d590){logger[_0x999c('0x32')](util['format'](_0x999c('0x177'),_0x34d590[_0x999c('0x3b')]));if(!this[_0x999c('0x89')](_0x34d590['queue_id'])){return this[_0x999c('0x11')][_0x999c('0x2e')](_0x34d590,_0x999c('0x178'));}var _0xd62ace='';var _0x56ebc7=parseInt(_0x34d590[_0x999c('0x179')],0xa);if(isNaN(_0x56ebc7)){_0xd62ace=_0x34d590[_0x999c('0x179')];}else{_0xd62ace=this[_0x999c('0x19')]['sync'](this,_0x34d590[_0x999c('0x179')]);if(!_0xd62ace){return this[_0x999c('0x11')][_0x999c('0x2e')](_0x34d590,_0x999c('0x17a'));}}var _0x5159c8='';if(this[_0x999c('0x89')](_0x34d590['file_id'])){var _0xb53ab1=this['getSound'][_0x999c('0xaa')](this,_0x34d590[_0x999c('0x115')]);if(_0xb53ab1){_0x5159c8=_0xb53ab1;}}this[_0x999c('0x39')][_0x999c('0xaa')](this,_0x34d590,_0xd62ace);if(_0x34d590[_0x999c('0xeb')]['indexOf']('x')<0x0){_0x34d590['opts']+='x';}if(_0x34d590[_0x999c('0xeb')]['indexOf']('X')<0x0){_0x34d590[_0x999c('0xeb')]+='X';}this['channel']['setVariable']('XMCS-QUEUE',_0xd62ace?_0xd62ace[_0x999c('0x17b')]():'');var _0x52c0ad=this[_0x999c('0x11')][_0x999c('0xb1')](_0x999c('0x17c'),[_0xd62ace,_0x34d590[_0x999c('0xeb')],_0x34d590[_0x999c('0x68')],_0x5159c8,_0x34d590[_0x999c('0x69')],_0x34d590[_0x999c('0x8')],_0x34d590[_0x999c('0x17d')],_0x34d590[_0x999c('0x17e')],'',_0x34d590['position']]);if(_0x52c0ad[_0x999c('0xa8')]===-0x1){return _0x52c0ad;}return this['channel'][_0x999c('0xaf')](util[_0x999c('0x2c')](_0x999c('0xc9'),_0x999c('0x17c'),_0xd62ace));};AGIVertices[_0x999c('0x13')][_0x999c('0x17f')]=function(_0x44a84a){logger[_0x999c('0x32')](util[_0x999c('0x2c')](_0x999c('0x180'),_0x44a84a[_0x999c('0x3b')]));var _0x23d66e=_0x44a84a['recordingFormat']||_0x999c('0x138');var _0x1286b9=util[_0x999c('0x2c')](_0x999c('0x181'),this[_0x999c('0x11')][_0x999c('0x3a')],rs[_0x999c('0x11f')](0x5));var _0x3c5773=util[_0x999c('0x2c')](_0x999c('0x182'),FILES_PATH,_0x1286b9,_0x23d66e);var _0x3648a4=util['format'](_0x999c('0x139'),FILES_PATH,_0x1286b9);this[_0x999c('0x3f')][_0x999c('0xaa')](this,_0x44a84a,_0x1286b9,_0x3c5773);this[_0x999c('0x11')][_0x999c('0xa2')](_0x999c('0x183'),_0x1286b9);logger[_0x999c('0x32')](_0x999c('0x184'),_0x3648a4,_0x23d66e,_0x44a84a['escape_digits'],_0x44a84a['timeout']);return this[_0x999c('0x11')][_0x999c('0x13b')](_0x3648a4,_0x23d66e,_0x44a84a['escape_digits'],_0x44a84a['timeout'],undefined,!![]);};AGIVertices[_0x999c('0x13')][_0x999c('0x185')]=function(_0x3e388f){logger[_0x999c('0x32')](util[_0x999c('0x2c')](_0x999c('0x186'),_0x3e388f[_0x999c('0x3b')]));if(!this[_0x999c('0x89')](_0x3e388f[_0x999c('0x68')])){return this[_0x999c('0x11')][_0x999c('0xaf')](_0x999c('0x187'));}var _0x5e49ff=this[_0x999c('0x188')][_0x999c('0xaa')](this,_0x3e388f);logger[_0x999c('0x32')](util[_0x999c('0x2c')](_0x999c('0x189'),util[_0x999c('0x18a')](_0x5e49ff,{'showHidden':![],'depth':null})));if(!this[_0x999c('0x89')](_0x3e388f['variable_id'])){return this[_0x999c('0x11')][_0x999c('0xaf')](_0x999c('0x18b'));}var _0x172017=this[_0x999c('0xa7')][_0x999c('0xaa')](this,_0x3e388f[_0x999c('0xdc')]);if(!_0x172017){return this[_0x999c('0x11')][_0x999c('0x2e')](_0x3e388f,_0x999c('0xde'));}this[_0x999c('0x11')][_0x999c('0xa2')](util[_0x999c('0x2c')](_0x999c('0x18c'),_0x172017),_0x5e49ff[_0x999c('0x79')]?_0x5e49ff[_0x999c('0x79')]:_0x999c('0x18d'));this[_0x999c('0x11')]['setVariable'](util[_0x999c('0x2c')](_0x999c('0x18e'),_0x172017),_0x5e49ff[_0x999c('0x7a')]?_0x5e49ff[_0x999c('0x7a')]:'OK');if(_0x5e49ff['body']){try{this[_0x999c('0x9f')](_0x5e49ff[_0x999c('0x70')],_0x172017);}catch(_0x95500b){logger[_0x999c('0x2e')](util[_0x999c('0x2c')](_0x999c('0x18f'),_0x172017));}}return this[_0x999c('0x11')]['noop'](util[_0x999c('0x2c')](_0x999c('0xe3'),_0x172017));};AGIVertices[_0x999c('0x13')]['saydigits']=function(_0x3309f9){logger[_0x999c('0x32')](util[_0x999c('0x2c')](_0x999c('0x190'),_0x3309f9[_0x999c('0x3b')]));return this[_0x999c('0x11')][_0x999c('0x191')](_0x3309f9[_0x999c('0x192')][_0x999c('0x5c')](/\s+/g,''),_0x3309f9[_0x999c('0x193')]);};AGIVertices[_0x999c('0x13')][_0x999c('0x194')]=function(_0x439345){logger[_0x999c('0x32')](util[_0x999c('0x2c')](_0x999c('0x195'),_0x439345['label']));return this[_0x999c('0x11')][_0x999c('0x196')](_0x439345[_0x999c('0x6a')][_0x999c('0x5c')](/\s+/g,''),_0x439345[_0x999c('0x193')]);};AGIVertices[_0x999c('0x13')][_0x999c('0x197')]=function(_0x1cb4dc){logger['info'](util[_0x999c('0x2c')](_0x999c('0x198'),_0x1cb4dc[_0x999c('0x3b')]));return this[_0x999c('0x11')][_0x999c('0x199')](_0x1cb4dc[_0x999c('0x60')],_0x1cb4dc[_0x999c('0x193')]);};AGIVertices[_0x999c('0x13')][_0x999c('0x19a')]=function(_0x4081c0){logger[_0x999c('0x32')](util['format']('Enter\x20in\x20SENDMAIL\x20(%s)\x20block',_0x4081c0[_0x999c('0x3b')]));if(!this['isConfigured'](_0x4081c0[_0x999c('0x19b')])){return this[_0x999c('0x11')][_0x999c('0xaf')](_0x999c('0x19c'));}var _0x43225a=this[_0x999c('0x25')][_0x999c('0xaa')](this,_0x4081c0[_0x999c('0x19b')]);if(!_0x43225a||!_0x43225a[_0x999c('0x19d')]){return this[_0x999c('0x11')]['error'](_0x4081c0,'no\x20mail\x20account\x20found');}var _0x2ceb53={'from':util[_0x999c('0x2c')](_0x999c('0x19e'),_0x43225a[_0x999c('0x17')],_0x43225a[_0x999c('0x19f')]||_0x43225a['Smtp'][_0x999c('0x1a0')]),'to':_0x4081c0['to']||'','cc':_0x4081c0['cc']||'','bcc':_0x4081c0['bcc']||'','subject':_0x4081c0[_0x999c('0x1a1')],'html':_0x4081c0[_0x999c('0x60')],'text':_0x4081c0[_0x999c('0x60')]};if(this[_0x999c('0x89')](_0x4081c0['template_id'])){}logger[_0x999c('0xe5')](_0x999c('0x1a2'),JSON[_0x999c('0x77')](_0x2ceb53));this['createSquareDetailsReport'][_0x999c('0xaa')](this,_0x4081c0,_0x4081c0[_0x999c('0x19b')]);this[_0x999c('0x11')]['noop'](util[_0x999c('0x2c')](_0x999c('0x1a3'),_0x43225a[_0x999c('0x17')]));this[_0x999c('0x26')][_0x999c('0xaa')](this,_0x43225a['smtpOptions'],_0x2ceb53);return this[_0x999c('0x11')][_0x999c('0xaf')]('Mail\x20message\x20added\x20to\x20outgoing\x20process');};AGIVertices[_0x999c('0x13')][_0x999c('0x1a4')]=function(_0xedf544){logger[_0x999c('0x32')](util[_0x999c('0x2c')](_0x999c('0x1a5'),_0xedf544['label']));return this['channel'][_0x999c('0xaf')](_0x999c('0x1a6'));};AGIVertices[_0x999c('0x13')]['sendSMS']=function(_0x5f0d48){logger[_0x999c('0x32')](util['format'](_0x999c('0x1a7'),_0x5f0d48[_0x999c('0x3b')]));if(!this['isConfigured'](_0x5f0d48[_0x999c('0x1a8')])){return this['channel'][_0x999c('0xaf')]('no\x20sms\x20account\x20configured');}var _0x573dea=this['getSmsAccount']['sync'](this,_0x5f0d48['sms_account_id']);if(!_0x573dea){return this['channel']['error'](_0x5f0d48,_0x999c('0x1a9'));}var _0xb094bf={'body':_0x5f0d48[_0x999c('0x1aa')],'phone':_0x5f0d48['to']||'','SmsAccountId':_0x573dea['id']};logger['debug'](_0x999c('0x1ab'),JSON['stringify'](_0xb094bf));this[_0x999c('0x39')]['sync'](this,_0x5f0d48,_0x5f0d48['sms_account_id']);this['channel']['noop'](util[_0x999c('0x2c')]('Trying\x20SendSMS\x20with\x20account\x20%s',_0x573dea[_0x999c('0x17')]));this[_0x999c('0x38')][_0x999c('0xaa')](this,_0xb094bf);return this[_0x999c('0x11')][_0x999c('0xaf')](_0x999c('0x1ac'));};AGIVertices[_0x999c('0x13')]['set']=function(_0x25086e){logger['info'](util[_0x999c('0x2c')](_0x999c('0x1ad'),_0x25086e[_0x999c('0x3b')]));if(!this[_0x999c('0x89')](_0x25086e[_0x999c('0xdc')])){return this[_0x999c('0x11')][_0x999c('0x2e')](_0x25086e,_0x999c('0x1ae'));}var _0x1aa957=this['getVariable'][_0x999c('0xaa')](this,_0x25086e[_0x999c('0xdc')]);if(!_0x1aa957){return this[_0x999c('0x11')]['error'](_0x25086e,_0x999c('0xde'));}return this[_0x999c('0x11')][_0x999c('0xa2')](_0x1aa957,_0x25086e['variable_value']);};AGIVertices[_0x999c('0x13')][_0x999c('0x1af')]=function(_0x31dbc4){logger[_0x999c('0x32')](util[_0x999c('0x2c')](_0x999c('0x1b0'),_0x31dbc4['label']));this['channel'][_0x999c('0xaf')](_0x999c('0x1b1'));var _0x37d49b=this[_0x999c('0x11')][_0x999c('0xa7')](_0x999c('0x1b2'));if(!_[_0x999c('0x4b')](_0x37d49b[_0x999c('0xa5')])){this[_0x999c('0x11')][_0x999c('0x3a')]=_0x37d49b[_0x999c('0xa5')];}if(_0x31dbc4[_0x999c('0xbf')]===_0x999c('0x1b3')){this[_0x999c('0x11')][_0x999c('0xaf')](_0x999c('0x1b4'));return this['channel'][_0x999c('0xbf')]();}return this[_0x999c('0x11')][_0x999c('0xaf')]('Skipped\x20Answer');};AGIVertices[_0x999c('0x13')][_0x999c('0x1b5')]=function(_0xc55237){logger[_0x999c('0x32')](util[_0x999c('0x2c')](_0x999c('0x1b6'),_0xc55237[_0x999c('0x3b')]));if(!this[_0x999c('0x89')](_0xc55237[_0x999c('0x1b7')])){return this['channel']['error'](_0xc55237,_0x999c('0x1b8'));}var _0x4f52f9=this['getSquareProject'][_0x999c('0xaa')](this,_0xc55237[_0x999c('0x1b7')]);if(!this['isConfigured'](_0x4f52f9)){return this[_0x999c('0x11')][_0x999c('0x2e')](_0xc55237,util['format']('no\x20subproject\x20found\x20with\x20id\x20%d',_0xc55237[_0x999c('0x1b7')]));}if(_0x4f52f9===this[_0x999c('0x11')]['arg_1']){return this['channel'][_0x999c('0x2e')](_0xc55237,_0x999c('0x1b9'));}this[_0x999c('0x39')][_0x999c('0xaa')](this,_0xc55237,_0x4f52f9);var _0x38f992=this[_0x999c('0x11')]['exec'](_0x999c('0x1ba'),util[_0x999c('0x2c')]('agi://%s/square,\x22%s\x22,\x22%s\x22',config[_0x999c('0x8')][_0x999c('0x1bb')]||'127.0.0.1',_0x4f52f9,this[_0x999c('0x11')]['arg_1']));if(_0x38f992[_0x999c('0xa8')]===-0x1){return _0x38f992;}return this['channel'][_0x999c('0xaf')](util['format'](_0x999c('0xc9'),_0x999c('0x1ba'),_0x4f52f9));};AGIVertices[_0x999c('0x13')]['system']=function(_0xa4b49b){logger[_0x999c('0x32')](util[_0x999c('0x2c')]('Enter\x20in\x20SYSTEM\x20(%s)\x20block',_0xa4b49b['label']));var _0x4f96e5=this[_0x999c('0x5a')][_0x999c('0xaa')](this,_0xa4b49b[_0x999c('0xbe')]);this[_0x999c('0x39')][_0x999c('0xaa')](this,_0xa4b49b,_0xa4b49b[_0x999c('0xbe')]);if(this['isConfigured'](_0xa4b49b['variable_id'])){var _0x2b6f06=this[_0x999c('0xa7')][_0x999c('0xaa')](this,_0xa4b49b['variable_id']);if(_0x2b6f06){this[_0x999c('0x11')]['setVariable'](_0x2b6f06,_0x4f96e5);return this[_0x999c('0x11')][_0x999c('0xaf')](util[_0x999c('0x2c')](_0x999c('0x1bc'),_0xa4b49b[_0x999c('0xbe')],_0x2b6f06));}}return this[_0x999c('0x11')][_0x999c('0xaf')](util['format'](_0x999c('0x1bd'),_0xa4b49b[_0x999c('0xbe')]));};AGIVertices[_0x999c('0x13')][_0x999c('0x1be')]=function(_0x4a3f5d){logger['info'](util[_0x999c('0x2c')](_0x999c('0x1bf'),_0x4a3f5d[_0x999c('0x3b')]));_0x4a3f5d[_0x999c('0x60')]=_0x4a3f5d[_0x999c('0x60')]['replace'](/(\r\n|\n|\r)/gm,'\x20');if(!this['isConfigured'](_0x4a3f5d[_0x999c('0x5e')])){return this[_0x999c('0x11')][_0x999c('0xaf')](_0x999c('0x1c0'));}if(!this[_0x999c('0x89')](_0x4a3f5d['text'])){return this[_0x999c('0x11')][_0x999c('0xaf')](_0x999c('0xb0'));}this['channel']['noop'](util[_0x999c('0x2c')](_0x999c('0x1c1'),_0x4a3f5d['text']));var _0x1d953e=this['googleCloudTTS'][_0x999c('0xaa')](this,_0x4a3f5d);if(_0x1d953e){this[_0x999c('0x11')][_0x999c('0xaf')](util[_0x999c('0x2c')](_0x999c('0x1c2'),_0x1d953e));var _0x275ffa=this[_0x999c('0x11')][_0x999c('0x12d')](_0x1d953e);try{fs['unlink'](_0x1d953e+_0x999c('0x12e'));}catch(_0x258147){logger[_0x999c('0x2e')](_0x258147);}return _0x275ffa;}return this['channel'][_0x999c('0x2e')](_0x4a3f5d,_0x999c('0x1c3'));};AGIVertices[_0x999c('0x13')]['tts']=function(_0x4fe562){logger[_0x999c('0x32')](util['format']('Enter\x20in\x20GOOGLETTS\x20(%s)\x20block',_0x4fe562['label']));_0x4fe562['text']=_0x4fe562['text']['replace'](/(\r\n|\n|\r)/gm,'\x20');if(!this[_0x999c('0x89')](_0x4fe562['text'])){return this[_0x999c('0x11')][_0x999c('0xaf')](_0x999c('0xb0'));}this['channel'][_0x999c('0xaf')](util[_0x999c('0x2c')](_0x999c('0x1c4'),_0x4fe562[_0x999c('0x60')]));var _0x456af8=this[_0x999c('0x67')][_0x999c('0xaa')](this,_0x4fe562);if(_0x456af8){this[_0x999c('0x11')]['noop'](util['format'](_0x999c('0x1c5'),_0x456af8));var _0xdeef9b=this[_0x999c('0x11')][_0x999c('0x12d')](_0x456af8);try{fs[_0x999c('0x106')](_0x456af8+_0x999c('0x12e'));}catch(_0x20e56e){logger[_0x999c('0x2e')](_0x20e56e);}return _0xdeef9b;}return this['channel'][_0x999c('0x2e')](_0x4fe562,_0x999c('0x1c6'));};AGIVertices[_0x999c('0x13')][_0x999c('0x1c7')]=function(_0x1567b8){logger[_0x999c('0x32')](util[_0x999c('0x2c')]('Enter\x20in\x20UNPAUSE\x20(%s)\x20block',_0x1567b8[_0x999c('0x3b')]));if(!this[_0x999c('0x89')](_0x1567b8[_0x999c('0x15e')])){return this['channel'][_0x999c('0x2e')](_0x1567b8,'no\x20find\x20by\x20configured');}logger[_0x999c('0x32')](util[_0x999c('0x2c')](_0x999c('0x160'),this['channel'][_0x999c('0x3e')],_0x1567b8[_0x999c('0x15e')]));var _0x11c683=this[_0x999c('0x55')]['sync'](this,_0x1567b8[_0x999c('0x15e')]);if(_0x11c683){logger[_0x999c('0x32')](util[_0x999c('0x2c')](_0x999c('0x161'),this[_0x999c('0x11')][_0x999c('0x3e')],_0x1567b8[_0x999c('0x15e')]));this[_0x999c('0x11')]['noop'](util[_0x999c('0x2c')](_0x999c('0x161'),this['channel']['callerid'],_0x1567b8['findBy']));return{'code':0xc8,'result':_0x999c('0x162')};}else{logger[_0x999c('0x32')](util[_0x999c('0x2c')]('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this['channel'][_0x999c('0x3e')],_0x1567b8[_0x999c('0x15e')]));this[_0x999c('0x11')][_0x999c('0xaf')](util[_0x999c('0x2c')]('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this[_0x999c('0x11')]['callerid'],_0x1567b8[_0x999c('0x15e')]));return{'code':0xc8,'result':_0x999c('0x166')};}};AGIVertices[_0x999c('0x13')]['voicemail']=function(_0x36ca62){logger[_0x999c('0x32')](util[_0x999c('0x2c')](_0x999c('0x1c8'),_0x36ca62['label']));var _0x1dc7a4=this[_0x999c('0x11')][_0x999c('0xb1')](_0x999c('0x1c9'),[_0x36ca62[_0x999c('0x1ca')],_0x36ca62['options']]);if(_0x1dc7a4[_0x999c('0xa8')]===-0x1){return _0x1dc7a4;}return this[_0x999c('0x11')]['noop'](util['format'](_0x999c('0xc9'),_0x999c('0x1c9'),_0x36ca62[_0x999c('0x1ca')]));};AGIVertices[_0x999c('0x13')][_0x999c('0x1cb')]=function(_0x342fb2){logger[_0x999c('0x32')](util[_0x999c('0x2c')](_0x999c('0x1cc'),_0x342fb2['label']));if(!this[_0x999c('0x89')](_0x342fb2[_0x999c('0xdc')])){return this['channel'][_0x999c('0x2e')](_0x342fb2,_0x999c('0x1ae'));}var _0x1b1c51=this[_0x999c('0xa7')]['sync'](this,_0x342fb2['variable_id']);if(!_0x1b1c51){return this['channel'][_0x999c('0x2e')](_0x342fb2,_0x999c('0xde'));}var _0x1215ac=this[_0x999c('0x11')][_0x999c('0xa7')](_0x1b1c51);return{'code':0xc8,'result':_0x1215ac[_0x999c('0xa5')]?_0x1215ac['extra']:'-'};};String[_0x999c('0x13')]['replaceAll']=function(_0xa5faf8,_0x25d1a2){return this[_0x999c('0xa3')](_0xa5faf8)[_0x999c('0x1cd')](_0x25d1a2);};module[_0x999c('0x1ce')]=AGIVertices;
\ No newline at end of file