de3ca4f8fa901825f205a480cd993bbe397b0e48
[motion2.git] / server / services / agi / vertices.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
13 // * The SOFTWARE PRODUCT is protected by copyright laws and international *
14 // * copyright treaties, as well as other intellectual property laws and   *
15 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x307e=['audiofile','unlink','SestekNDA\x20Result\x20%s','end','Enter\x20in\x20END\x20(%s)\x20block','ext_dial','Enter\x20in\x20EXTERNAL\x20DIAL\x20(%s)\x20block','trunk_id','no\x20trunk\x20selected','SIP/%s/%s','finally','Enter\x20in\x20FINALLY\x20(%s)\x20block','Enter\x20in\x20GETDIGITS\x20(%s)\x20block','no\x20file\x20audio\x20selected','file_id','no\x20file\x20audio\x20found','getData','response','maxdigit','test','mindigit','hiddendigitsnum','generate','first','substr','goal','goalname','GOAL\x20%s','awspolly','Trying\x20aws\x20Polly\x20%s','aws\x20Polly\x20%s\x20file\x20created','streamFile','aws\x20Polly\x20is\x20unreachable','awslex','aws_access_key_id','no\x20valid\x20credentials\x20configured','no\x20bot\x20name\x20configured','Trying\x20Amazon\x20Lex:\x20%s','AWS_LEX_%s','Amazon\x20Lex\x20ready\x20for\x20fulfillment','Amazon\x20Lex\x20Result\x20%s','Amazon\x20Lex\x20is\x20unreachable','no\x20key\x20configured','%s/recordings/%s','beep','recordFile','google\x20%s\x20file\x20created','GOOGLE_ASR_%s','GoogleASR\x20Result\x20%s','tildeasr','Enter\x20in\x20TILDEASR\x20(%s)\x20block','no\x20appsecret\x20configured','wav','NOBEEP','tilde\x20%s\x20file\x20created','TILDE_ASR_%s','TildeASR\x20Result\x20%s','gotoc','extension','gotoif','Enter\x20in\x20GOTOIF\x20(%s)\x20block','condition','no\x20condition\x20configured','true','false','EVAL\x20CONDITION\x20%s\x20%s','gotoiftime','Enter\x20in\x20GOTOIFTIME\x20(%s)\x20block','interval_id','no\x20interval\x20configured','no\x20intervals\x20found','IFTIME(%s?true:false)','IFTIME\x20%s\x20%s','hangup','Enter\x20in\x20HANGUP\x20(%s)\x20block','ispeechasr','Enter\x20in\x20ISPEECHASR\x20(%s)\x20block','intKey','ispeech\x20%s\x20file\x20created','ispeechtts','Enter\x20in\x20ISPEECHTTS\x20(%s)\x20block','.wav','ispeech\x20TTS\x20is\x20unreachable','login','Enter\x20in\x20LOGIN\x20(%s)\x20block','no\x20find\x20by\x20configured','FIND\x20AGENT\x20%s\x20BY\x20%s','findBy','AGENT\x20%s\x20FOUND\x20BY','success','AGENT\x20%s\x20NOT\x20FOUND\x20BY','failure','logout','Enter\x20in\x20LOGOUT\x20(%s)\x20block','math','Enter\x20in\x20MATH\x20(%s)\x20block','operation','no\x20operation\x20configured','variable\x20%s[key]\x20set','Enter\x20in\x20MENU\x20(%s)\x20block','digit','output','pause','Enter\x20in\x20PAUSE\x20(%s)\x20block','pause_id','PLAYBACK','Enter\x20in\x20QUEUE\x20(%s)\x20block','queue_id','no\x20queue\x20selected','no\x20queue\x20found','indexOf','XMCS-QUEUE','toLowerCase','QUEUE','macro','gosub','position','record','recordingFormat','%s_%s','%s/recordings/%s.%s','RECORDING_SAVENAME','Recording\x20%s\x20%s\x20%s\x20%s','escape_digits','restapi','inspect','%s_STATUS_CODE','%s_STATUS_MESSAGE','Unable\x20to\x20set\x20result\x20in\x20variable\x20%s','saydigits','Enter\x20in\x20SAYDIGITS\x20(%s)\x20block','sayDigits','digits','saynumber','Enter\x20in\x20SAYNUMBER\x20(%s)\x20block','sayNumber','sayphonetic','Enter\x20in\x20SAYPHONETIC\x20(%s)\x20block','sayPhonetic','sendMail','Enter\x20in\x20SENDMAIL\x20(%s)\x20block','account_id','getMailAccount','Smtp','email','user','bcc','service','host','port','secure','pass','sendMail\x20message','Trying\x20SendMail\x20with\x20account\x20%s','Mail\x20message\x20added\x20to\x20outgoing\x20process','sendFax','Enter\x20in\x20SENDFAX\x20(%s)\x20block','SENDFAX\x20block\x20not\x20implemented','Enter\x20in\x20SENDSMS\x20(%s)\x20block','sms_account_id','no\x20sms\x20account\x20configured','sendSMS\x20message','Trying\x20SendSMS\x20with\x20account\x20%s','createSmsMessage','set','Enter\x20in\x20SET\x20(%s)\x20block','no\x20variable\x20selected','variable_value','start','START\x20CALLY\x20SQUARE','yes','Answer','Skipped\x20Answer','subproject','Enter\x20in\x20SUBPROJECT\x20(%s)\x20block','project_id','no\x20subproject\x20found\x20with\x20id\x20%d','AGI','agi://%s/square,\x22%s\x22,\x22%s\x22','127.0.0.1','system','shellCommand','command','sh\x20command:\x20%s\x20result\x20on\x20variable:\x20%s','sh\x20command:\x20%s\x20result\x20no\x20stored','google_cloud_tts','no\x20apiKey\x20configured','Trying\x20Google\x20Cloud\x20TTS\x20%s','Google\x20Cloud\x20TTS\x20%s\x20file\x20created','Google\x20Cloud\x20TTS\x20is\x20unreachable','tts','Enter\x20in\x20GOOGLETTS\x20(%s)\x20block','Trying\x20Google\x20TTS\x20%s','Google\x20TTS\x20is\x20unreachable','unpause','voicemail','Enter\x20in\x20VOICEMAIL\x20(%s)\x20block','VOICEMAIL','mailbox','join','exports','path','util','lodash','shelljs','odbc','moment','mustache','../../config/logger','../../config/environment','./scripts','/var/opt/motion2/server/files','rawBody','menu','getdigits','getsecretdigits','channel','rpc','mailRpc','prototype','getVariable','getVariableById','then','name','catch','getVoiceQueue','getVoiceQueueById','getSquareProject','getSquareOdbc','getSquareOdbcById','dsn','getUser','getUserById','getTrunk','getTrunkById','getSound','getSoundById','getSoundPath','save_name','sendMailMessage','getIntervals','getIntervalById','IntervalId','interval','map','Intervals','format','%s/sounds/converted/%s','getQueryOdbc','Error\x20getting\x20ODBC\x20connection\x20%s','info','ODBC\x20connection\x20successfully','query','Query\x20executed\x20correctly\x20%s','error','Error\x20closing\x20connection\x20to\x20odbc\x20%s','getSmsAccount','getSmsAccountById','createSquareDetailsReport','uniqueid','label','agicommand','arg_1','callerid','createSquareRecording','calleridname','context','priority','accountcode','dnid','file','createSquareMessage','createCmContact','log','in\x20createcmcontact','has','dialTimezone','isEmpty','isNil','callback_','random','lastName','phone','list_id','scheduledAt','callback','Callback\x20scheduled\x20at\x20','toString','callback_priority','getPauseById','agentPause','agentUnpause','agent','agentLogout','agentLogin','%s/%s@from-sip/n','trim','replace','googleCloudTTS','apiKey','google_cloud_tts_text_type','text','languageCode','en-US','ssmlGender','MALE','audioEncoding','MP3','googleTTS','google_tts_language','restAPI','url','method','number','timeout','includes','POST','PUT','toUpperCase','body','parse','An\x20incorrect\x20formatted\x20json\x20body\x20has\x20been\x20passed\x20to\x20the\x20function','headers','rawHeaders','An\x20incorrect\x20formatted\x20json\x20headers\x20has\x20been\x20passed\x20to\x20the\x20function','sync','render','stringify','An\x20incorrect\x20formatted\x20json\x20has\x20been\x20passed\x20to\x20the\x20function','statusCode','statusMessage','message','500\x20-\x20Internal\x20Server\x20Error','options','googleDialogflow','key','dialogflow_language','sestekNDA','ispeechTTS','speed','ispeechASR','ispeech_asr_language','isConfigured','model','awsPolly','aws_polly_region','aws_polly_voice','Amy','aws_text_type','awsLex','aws_secret_access_key','aws_lex_region','aws_bot_name','googleASR','google_asr_language','tildeASR','appid','appsecret','clear','clone','hasOwnProperty','isString','replaceObjectAllVariables','replaceAllVariables','isPlainObject','recursiveNodeIndex','isArray','length','saveRestApiResult','%s.%s','setVariable','replaceall\x20init','split','nextbracket','replaceAll','extra','replaceall\x20end','result','The\x20\x22%s\x22\x20variable\x20value\x20is:\x20%s','maxRetry','retry','mrcpsynth','Enter\x20in\x20MRCPSynth\x20(%s)\x20block','exec','MRCPSynth','noop','Executed\x20command\x20MRCPSynth\x20%s','mrcprecog','Enter\x20in\x20MRCPRecog\x20(%s)\x20block','grammar','MRCPRecog','getAndSetVariable','RECOG_CONFIDENCE()','MRCP_RECOG_CONFIDENCE','RECOG_INPUT()','MRCP_RECOG_TRANSCRIPT','RECOG_INSTANCE()','MRCP_RECOG_INSTANCE','agi','Enter\x20in\x20AGI\x20(%s)\x20block','args','Enter\x20in\x20ANSWER\x20(%s)\x20block','Wait\x20%s\x20seconds\x20before\x20answer','answer','enter\x20in\x20callbackblock','Enter\x20in\x20CALLBACK\x20(%s)\x20block','delay','add','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','sestektts','no\x20text\x20configured','lumenvoxasr','Enter\x20in\x20LUMENVOXASR\x20(%s)\x20block','no\x20grammar\x20configured','LUMENVOX_ASR_CONFIDENCE','LUMENVOX_ASR_TRANSCRIPT','LUMENVOX_ASR_INSTANCE','Executed\x20command\x20MRCPRecog\x20%s','sestekasr','SESTEK_ASR_CONFIDENCE','SESTEK_ASR_INSTANCE','database','Enter\x20in\x20DATABASE\x20(%s)\x20block','odbc_id','no\x20database\x20selected','no\x20odbc\x20database\x20found','no\x20query\x20configured','query:\x20%s','variable_id','no\x20variable\x20selected\x20for\x20the\x20result','no\x20variable\x20found','keys','forEach','%s[%s][%s]','%s_ROWS_COUNT','variable\x20%s\x20set','dial','debug','Enter\x20in\x20DIAL\x20(%s)\x20block','sip_id','no\x20user\x20selected','DIAL','opts','Executed\x20command\x20%s','dialogflow','bot','Trying\x20Dialogflow:\x20%s','DIALOGFLOW_%s','speech','out','Dialogflow\x20is\x20unreachable','sesteknda','Enter\x20in\x20SESTEKNDA\x20(%s)\x20block','ndauth_url','username','password','Trying\x20SestekNDA:\x20%s','SESTEK_NDA_%s'];(function(_0x32d655,_0x252a9c){var _0x4110e0=function(_0x58943c){while(--_0x58943c){_0x32d655['push'](_0x32d655['shift']());}};_0x4110e0(++_0x252a9c);}(_0x307e,0xc9));var _0xe307=function(_0x33c88c,_0x4b1843){_0x33c88c=_0x33c88c-0x0;var _0xb64f89=_0x307e[_0x33c88c];return _0xb64f89;};'use strict';var fs=require('fs');var path=require(_0xe307('0x0'));var util=require(_0xe307('0x1'));var _=require(_0xe307('0x2'));var sh=require(_0xe307('0x3'));var odbc=require(_0xe307('0x4'))();var rs=require('randomstring');var moment=require(_0xe307('0x5'));var Mustache=require(_0xe307('0x6'));var rp=require('request-promise');var logger=require(_0xe307('0x7'))('agi');var config=require(_0xe307('0x8'));var scripts=require(_0xe307('0x9'));var FILES_PATH=_0xe307('0xa');var recursiveMapAttributes=['rawHeaders',_0xe307('0xb')];var verticesWithRetry=[_0xe307('0xc'),_0xe307('0xd'),_0xe307('0xe')];var AGIVertices=function(_0x304363,_0x2097b1,_0x26d257){this[_0xe307('0xf')]=_0x304363;this[_0xe307('0x10')]=_0x2097b1;this[_0xe307('0x11')]=_0x26d257;};AGIVertices[_0xe307('0x12')][_0xe307('0x13')]=function(_0x2d8f3d,_0x3b67c5){this[_0xe307('0x10')][_0xe307('0x14')](_0x2d8f3d)[_0xe307('0x15')](function(_0x3455f7){_0x3b67c5(null,_0x3455f7?_0x3455f7[_0xe307('0x16')]:![]);})[_0xe307('0x17')](function(_0x51b237){_0x3b67c5(_0x51b237);});};AGIVertices[_0xe307('0x12')][_0xe307('0x18')]=function(_0x4e04a7,_0x3faac5){this[_0xe307('0x10')][_0xe307('0x19')](_0x4e04a7)[_0xe307('0x15')](function(_0x23b5b8){_0x3faac5(null,_0x23b5b8?_0x23b5b8[_0xe307('0x16')]:![]);})[_0xe307('0x17')](function(_0x58f715){_0x3faac5(_0x58f715);});};AGIVertices[_0xe307('0x12')][_0xe307('0x1a')]=function(_0x46f63a,_0x2a48e9){this[_0xe307('0x10')]['getSquareProjectById'](_0x46f63a)['then'](function(_0xbc07f){_0x2a48e9(null,_0xbc07f?_0xbc07f['name']:![]);})[_0xe307('0x17')](function(_0x3b2e66){_0x2a48e9(_0x3b2e66);});};AGIVertices[_0xe307('0x12')][_0xe307('0x1b')]=function(_0x40e290,_0x7778c6){this[_0xe307('0x10')][_0xe307('0x1c')](_0x40e290)[_0xe307('0x15')](function(_0x155208){_0x7778c6(null,_0x155208?_0x155208[_0xe307('0x1d')]:![]);})[_0xe307('0x17')](function(_0x394bde){_0x7778c6(_0x394bde);});};AGIVertices[_0xe307('0x12')][_0xe307('0x1e')]=function(_0x48ab0e,_0x269e06){this[_0xe307('0x10')][_0xe307('0x1f')](_0x48ab0e)[_0xe307('0x15')](function(_0x4fdf45){_0x269e06(null,_0x4fdf45?_0x4fdf45[_0xe307('0x16')]:![]);})[_0xe307('0x17')](function(_0x9c9503){_0x269e06(_0x9c9503);});};AGIVertices[_0xe307('0x12')][_0xe307('0x20')]=function(_0x51c015,_0x47b2d4){this[_0xe307('0x10')][_0xe307('0x21')](_0x51c015)[_0xe307('0x15')](function(_0x188f14){_0x47b2d4(null,_0x188f14?_0x188f14[_0xe307('0x16')]:![]);})[_0xe307('0x17')](function(_0x2651ec){_0x47b2d4(_0x2651ec);});};AGIVertices[_0xe307('0x12')][_0xe307('0x22')]=function(_0x47b075,_0x6b9643){var _0x1590bd=this;this['rpc'][_0xe307('0x23')](_0x47b075)['then'](function(_0x51586d){_0x6b9643(null,_0x51586d?_0x1590bd[_0xe307('0x24')](_0x51586d[_0xe307('0x25')]):![]);})[_0xe307('0x17')](function(_0x5758a4){_0x6b9643(_0x5758a4);});};AGIVertices[_0xe307('0x12')]['getMailAccount']=function(_0x3fa6e5,_0x4b17ce){this['rpc']['getMailAccountById'](_0x3fa6e5)['then'](function(_0xcb39ca){_0x4b17ce(null,_0xcb39ca?_0xcb39ca:![]);})[_0xe307('0x17')](function(_0x51c759){_0x4b17ce(_0x51c759);});};AGIVertices[_0xe307('0x12')][_0xe307('0x26')]=function(_0x2c0d66,_0x3c85ef,_0x4b8490){this[_0xe307('0x11')]['sendMailMessage'](_0x2c0d66,_0x3c85ef)['then'](function(){_0x4b8490(null);})[_0xe307('0x17')](function(_0x1649a4){_0x4b8490(_0x1649a4);});};AGIVertices[_0xe307('0x12')][_0xe307('0x27')]=function(_0x504d0b,_0x17b834){this['rpc'][_0xe307('0x28')](_0x504d0b)[_0xe307('0x15')](function(_0x5d6290){if(_0x5d6290){if(_0x5d6290[_0xe307('0x29')]){_0x17b834(null,[_0x5d6290[_0xe307('0x2a')]]);}else{_0x17b834(null,_[_0xe307('0x2b')](_0x5d6290[_0xe307('0x2c')],'interval'));}}else{_0x17b834(null,![]);}})['catch'](function(_0xe0da0a){_0x17b834(_0xe0da0a);});};AGIVertices[_0xe307('0x12')]['getSoundPath']=function(_0x293cd2){return util[_0xe307('0x2d')](_0xe307('0x2e'),FILES_PATH,_0x293cd2);};AGIVertices['prototype'][_0xe307('0x2f')]=function(_0x29b3b9,_0x4e7f46,_0x541110){odbc['open'](_0x29b3b9,function(_0x300ce0){if(_0x300ce0){logger['error'](_0xe307('0x30'),_0x300ce0);_0x541110(_0x300ce0);}else{logger[_0xe307('0x31')](_0xe307('0x32'));odbc[_0xe307('0x33')](_0x4e7f46,function(_0x5b2d91,_0x600b40){if(_0x5b2d91){logger[_0xe307('0x31')]('Error\x20executing\x20query\x20%s',_0x4e7f46);_0x541110(_0x5b2d91);}else{logger['info'](_0xe307('0x34'),_0x4e7f46);odbc['close'](function(_0x59f9e7){if(_0x59f9e7){logger[_0xe307('0x35')](_0xe307('0x36'),_0x59f9e7);}_0x541110(null,_0x600b40);});}});}});};AGIVertices[_0xe307('0x12')][_0xe307('0x37')]=function(_0x36c192,_0x55ee39){this['rpc'][_0xe307('0x38')](_0x36c192)[_0xe307('0x15')](function(_0x28aa4b){_0x55ee39(null,_0x28aa4b?_0x28aa4b:![]);})['catch'](function(_0x366e8c){_0x55ee39(_0x366e8c);});};AGIVertices[_0xe307('0x12')]['createSmsMessage']=function(_0x2c06c5,_0x4ea326){this[_0xe307('0x10')]['createSmsMessage'](_0x2c06c5)['then'](function(_0x128d30){_0x4ea326(null,_0x128d30);})['catch'](function(_0xc8468e){_0x4ea326(_0xc8468e);});};AGIVertices[_0xe307('0x12')][_0xe307('0x39')]=function(_0xc81c05,_0x2073bd,_0x187373){this[_0xe307('0x10')][_0xe307('0x39')]({'uniqueid':this['channel'][_0xe307('0x3a')],'node':_0xc81c05[_0xe307('0x3b')],'application':_0xc81c05[_0xe307('0x3c')],'data':_0x2073bd||null,'project_name':this[_0xe307('0xf')][_0xe307('0x3d')],'callerid':this[_0xe307('0xf')][_0xe307('0x3e')]})[_0xe307('0x15')](function(_0x197e6a){if(_0x187373){_0x187373(null,_0x197e6a);}})['catch'](function(_0x601cdb){if(_0x187373){_0x187373(_0x601cdb);}});};AGIVertices[_0xe307('0x12')][_0xe307('0x3f')]=function(_0x3757b4,_0x3453b1,_0x1c082a,_0x16393e){this['rpc'][_0xe307('0x3f')]({'uniqueid':this['channel'][_0xe307('0x3a')],'callerid':this[_0xe307('0xf')]['callerid'],'calleridname':this['channel'][_0xe307('0x40')],'context':this[_0xe307('0xf')][_0xe307('0x41')],'extension':this[_0xe307('0xf')]['extension'],'priority':this[_0xe307('0xf')][_0xe307('0x42')],'accountcode':this[_0xe307('0xf')][_0xe307('0x43')],'dnid':this[_0xe307('0xf')][_0xe307('0x44')],'projectName':this['channel'][_0xe307('0x3d')],'saveName':_0x3453b1,'filename':_0x3757b4[_0xe307('0x45')]||_0x3453b1,'savePath':_0x1c082a})[_0xe307('0x15')](function(_0x199086){_0x16393e(null,_0x199086);})[_0xe307('0x17')](function(_0x18884d){_0x16393e(_0x18884d);});};AGIVertices[_0xe307('0x12')][_0xe307('0x46')]=function(_0x143b7e,_0x439e92,_0x5d9c34){this[_0xe307('0x10')]['createSquareMessage']({'uniqueid':this[_0xe307('0xf')][_0xe307('0x3a')],'body':_0x143b7e,'direction':_0x439e92})[_0xe307('0x15')](function(_0x3d7e3c){if(_0x5d9c34){_0x5d9c34(null,_0x3d7e3c);}})[_0xe307('0x17')](function(_0x369ca5){if(_0x5d9c34){_0x5d9c34(_0x369ca5);}});};AGIVertices['prototype'][_0xe307('0x47')]=function(_0x58cc00,_0x283535){console[_0xe307('0x48')](_0xe307('0x49'),_0x58cc00);console['log']('in\x20createcmcontact\x20callback',_0x283535);var _0x3d0271=0x0;if(_[_0xe307('0x4a')](_0x58cc00,_0xe307('0x4b'))){var _0x379ecd=_0x58cc00['dialTimezone'];if(_0x58cc00[_0xe307('0x4b')]=='CALLERID(dialTimezone)'){}}this[_0xe307('0x10')][_0xe307('0x47')]({'firstName':_[_0xe307('0x4c')](_0x58cc00['name'])||_[_0xe307('0x4d')](_0x58cc00[_0xe307('0x16')])?_0xe307('0x4e')+Math[_0xe307('0x4f')]():_0x58cc00['name'],'lastName':_[_0xe307('0x4c')](_0x58cc00[_0xe307('0x50')])||_[_0xe307('0x4d')](_0x58cc00[_0xe307('0x50')])?null:_0x58cc00['lastName'],'phone':_0x58cc00[_0xe307('0x51')],'ListId':_0x58cc00[_0xe307('0x52')],'scheduledat':_0x58cc00[_0xe307('0x53')],'callbackUniqueid':this[_0xe307('0xf')]['uniqueid'],'tags':_0xe307('0x54'),'description':_0xe307('0x55')+_0x58cc00[_0xe307('0x53')][_0xe307('0x56')](),'priority':_0x58cc00[_0xe307('0x57')]})['then'](function(_0x32a251){_0x283535(null,_0x32a251);})['catch'](function(_0x27339c){_0x283535(_0x27339c);});};AGIVertices[_0xe307('0x12')]['getPause']=function(_0x2de7a4,_0xb7ae0c){this[_0xe307('0x10')][_0xe307('0x58')](_0x2de7a4)[_0xe307('0x15')](function(_0x44afe5){_0xb7ae0c(null,_0x44afe5?_0x44afe5[_0xe307('0x16')]:![]);})[_0xe307('0x17')](function(_0x43aa79){_0xb7ae0c(_0x43aa79);});};AGIVertices[_0xe307('0x12')][_0xe307('0x59')]=function(_0x53313c,_0x3c4db8,_0x5de0c1){var _0x2fe049={'role':'agent'};_0x2fe049[_0x53313c]=this['channel'][_0xe307('0x3e')];this[_0xe307('0x10')][_0xe307('0x59')](_0x2fe049,_0x3c4db8,this['channel'][_0xe307('0x3a')])[_0xe307('0x15')](function(_0x2b13f8){_0x5de0c1(null,_[_0xe307('0x4d')](_0x2b13f8)?![]:!![]);})['catch'](function(_0x509f6f){logger[_0xe307('0x35')](_0x509f6f);_0x5de0c1(null,![]);});};AGIVertices[_0xe307('0x12')][_0xe307('0x5a')]=function(_0x42f6c6,_0x3d0df8){var _0x2ccb25={'role':_0xe307('0x5b')};_0x2ccb25[_0x42f6c6]=this[_0xe307('0xf')][_0xe307('0x3e')];this[_0xe307('0x10')][_0xe307('0x5a')](_0x2ccb25)[_0xe307('0x15')](function(_0x4d2c97){_0x3d0df8(null,_[_0xe307('0x4d')](_0x4d2c97)?![]:!![]);})[_0xe307('0x17')](function(_0x4e12a8){logger[_0xe307('0x35')](_0x4e12a8);_0x3d0df8(null,![]);});};AGIVertices[_0xe307('0x12')][_0xe307('0x5c')]=function(_0x5686bb,_0x7824ac){var _0x305bf8={'role':_0xe307('0x5b')};_0x305bf8[_0x5686bb]=this['channel']['callerid'];this[_0xe307('0x10')][_0xe307('0x5c')](_0x305bf8)[_0xe307('0x15')](function(_0x3e3aa6){_0x7824ac(null,_[_0xe307('0x4d')](_0x3e3aa6)?![]:!![]);})['catch'](function(_0x7de49e){logger[_0xe307('0x35')](_0x7de49e);_0x7824ac(null,![]);});};AGIVertices[_0xe307('0x12')][_0xe307('0x5d')]=function(_0x24109c,_0x3ba0fa){var _0x1b5bbe={'role':_0xe307('0x5b')};_0x1b5bbe[_0x24109c]=this['channel'][_0xe307('0x3e')];var _0x4147d8=_0x24109c!='internal'?util[_0xe307('0x2d')](_0xe307('0x5e'),'LOCAL',this['channel'][_0xe307('0x3e')]):undefined;this[_0xe307('0x10')][_0xe307('0x5d')](_0x1b5bbe,_0x4147d8)[_0xe307('0x15')](function(_0x20228e){_0x3ba0fa(null,_[_0xe307('0x4d')](_0x20228e)?![]:!![]);})['catch'](function(_0x56cf0a){logger[_0xe307('0x35')](_0x56cf0a);_0x3ba0fa(null,![]);});};AGIVertices[_0xe307('0x12')]['shellCommand']=function(_0x3eed89,_0xc1eaf4){sh['exec'](_[_0xe307('0x5f')](_0x3eed89),function(_0x100394,_0x231256){var _0x2e5c89=_0x231256[_0xe307('0x60')](/(\r\n|\n|\r)/gm,'');_0xc1eaf4(null,_0x2e5c89);});};AGIVertices[_0xe307('0x12')]['googleCloudTTS']=function(_0x4c5476,_0x414b3e){scripts[_0xe307('0x61')](_0x4c5476[_0xe307('0x62')],_0x4c5476[_0xe307('0x63')]||'text',_0x4c5476[_0xe307('0x64')],_0x4c5476[_0xe307('0x65')]||_0xe307('0x66'),_0x4c5476[_0xe307('0x67')]||_0xe307('0x68'),_0x4c5476[_0xe307('0x69')]||_0xe307('0x6a'))['then'](function(_0x4f2b6f){_0x414b3e(null,_0x4f2b6f);})['catch'](function(_0x9e1395){_0x414b3e(_0x9e1395);});};AGIVertices[_0xe307('0x12')][_0xe307('0x6b')]=function(_0x2c5b5b,_0x45d1a4){scripts[_0xe307('0x6b')](_0x2c5b5b[_0xe307('0x64')],_0x2c5b5b[_0xe307('0x6c')]||'en',0x1)[_0xe307('0x15')](function(_0x505d90){_0x45d1a4(null,_0x505d90);})[_0xe307('0x17')](function(_0x27316a){_0x45d1a4(_0x27316a);});};AGIVertices[_0xe307('0x12')][_0xe307('0x6d')]=function(_0x228c74,_0x5dab85){var _0x3163f6={'uri':_0x228c74[_0xe307('0x6e')],'method':_0x228c74[_0xe307('0x6f')],'json':!![],'resolveWithFullResponse':!![],'timeout':typeof parseInt(_0x228c74['timeout'])===_0xe307('0x70')&&parseInt(_0x228c74[_0xe307('0x71')])>=0x1?parseInt(_0x228c74['timeout'])*0x3e8:0x5*0x3e8};if(_[_0xe307('0x72')]([_0xe307('0x73'),_0xe307('0x74')],_0x3163f6['method'][_0xe307('0x75')]())){try{_0x3163f6[_0xe307('0x76')]=_0x228c74['rawBody']?JSON[_0xe307('0x77')](_0x228c74['rawBody']):{};}catch(_0x4501d5){logger[_0xe307('0x35')](_0xe307('0x78'),_0x4501d5);}}try{_0x3163f6[_0xe307('0x79')]=_0x228c74[_0xe307('0x7a')]?JSON[_0xe307('0x77')](_0x228c74[_0xe307('0x7a')]):{};}catch(_0x2cbc2a){logger[_0xe307('0x35')](_0xe307('0x7b'),_0x2cbc2a);}if(_0x228c74['computedVariables']){try{var _0x36b7f1=require(_0x228c74['computedVariables'])[_0xe307('0x7c')](this,_0x3163f6);_0x3163f6['uri']=Mustache[_0xe307('0x7d')](_0x228c74['url'],_0x36b7f1,{},['$$','$$']);if(_0x3163f6[_0xe307('0x79')]){_0x3163f6[_0xe307('0x79')]=JSON['parse'](Mustache[_0xe307('0x7d')](JSON[_0xe307('0x7e')](_0x3163f6[_0xe307('0x79')]),_0x36b7f1,{},['$$','$$']));}if(_0x3163f6[_0xe307('0x76')]){_0x3163f6['body']=JSON[_0xe307('0x77')](Mustache[_0xe307('0x7d')](JSON[_0xe307('0x7e')](_0x3163f6[_0xe307('0x76')]),_0x36b7f1,{},['$$','$$']));}}catch(_0x218db4){logger[_0xe307('0x35')](_0xe307('0x7f'),_0x218db4);}}rp(_0x3163f6)[_0xe307('0x15')](function(_0x4545a9){var _0x1cd514={'statusCode':_0x4545a9[_0xe307('0x80')]||0xc8,'statusMessage':_0x4545a9[_0xe307('0x81')]||'OK','headers':_0x4545a9[_0xe307('0x79')]||{},'body':_0x4545a9['body']||{}};_0x5dab85(null,_0x1cd514);})[_0xe307('0x17')](function(_0x5acdf8){var _0x39915a={'statusCode':_0x5acdf8[_0xe307('0x80')]||0x1f4,'statusMessage':_0x5acdf8[_0xe307('0x82')]||_0xe307('0x83'),'headers':_0x5acdf8['options']['headers']||{},'body':_0x5acdf8[_0xe307('0x84')][_0xe307('0x76')]||{}};_0x5dab85(null,_0x39915a);});};AGIVertices['prototype'][_0xe307('0x85')]=function(_0x4f6071,_0x377727){scripts[_0xe307('0x85')](this['channel'][_0xe307('0x3a')],_0x4f6071[_0xe307('0x86')],_0x4f6071['text'],_0x4f6071[_0xe307('0x87')]||'en')[_0xe307('0x15')](function(_0xca9547){_0x377727(null,_0xca9547);})[_0xe307('0x17')](function(_0x3296cc){_0x377727(_0x3296cc);});};AGIVertices['prototype'][_0xe307('0x88')]=function(_0x111336,_0x29c9ce){scripts[_0xe307('0x88')](this[_0xe307('0xf')],_0x111336)[_0xe307('0x15')](function(_0x34af49){_0x29c9ce(null,_0x34af49);})[_0xe307('0x17')](function(_0x31f0a2){_0x29c9ce(_0x31f0a2);});};AGIVertices[_0xe307('0x12')][_0xe307('0x89')]=function(_0xd96ba4,_0x393267){scripts[_0xe307('0x89')](_0xd96ba4['key'],_0xd96ba4[_0xe307('0x64')],_0xd96ba4['ispeech_tts_language']||_0xe307('0x66'),_0xd96ba4[_0xe307('0x8a')])[_0xe307('0x15')](function(_0x56a218){_0x393267(null,_0x56a218);})['catch'](function(_0x256484){_0x393267(_0x256484);});};AGIVertices[_0xe307('0x12')][_0xe307('0x8b')]=function(_0x1791f6,_0x3e9a12,_0x4572cb){scripts['ispeechASR'](_0x3e9a12,_0x1791f6[_0xe307('0x86')],_0x1791f6[_0xe307('0x8c')]||'en-US',this[_0xe307('0x8d')](_0x1791f6[_0xe307('0x8e')])?_0x1791f6[_0xe307('0x8e')]:undefined)['then'](function(_0x4db7f9){_0x4572cb(null,_0x4db7f9);})[_0xe307('0x17')](function(_0x578bb6){_0x4572cb(_0x578bb6);});};AGIVertices['prototype'][_0xe307('0x8f')]=function(_0x14567d,_0x485283){scripts[_0xe307('0x8f')](_0x14567d['aws_access_key_id'],_0x14567d['aws_secret_access_key'],_0x14567d[_0xe307('0x90')],_0x14567d[_0xe307('0x91')]||_0xe307('0x92'),_0x14567d[_0xe307('0x64')],_0x14567d[_0xe307('0x93')]||_0xe307('0x64'))[_0xe307('0x15')](function(_0x13e8a5){_0x485283(null,_0x13e8a5);})[_0xe307('0x17')](function(_0xf1fb40){_0x485283(_0xf1fb40);});};AGIVertices['prototype'][_0xe307('0x94')]=function(_0x1b047f,_0x16e611){scripts['awsLex'](this[_0xe307('0xf')][_0xe307('0x3a')],_0x1b047f['aws_access_key_id'],_0x1b047f[_0xe307('0x95')],_0x1b047f[_0xe307('0x96')],_0x1b047f[_0xe307('0x64')],_0x1b047f[_0xe307('0x97')])[_0xe307('0x15')](function(_0x30535d){_0x16e611(null,_0x30535d);})[_0xe307('0x17')](function(_0x396cac){_0x16e611(_0x396cac);});};AGIVertices[_0xe307('0x12')]['googleASR']=function(_0x56867b,_0x4ef67b,_0x277762){scripts[_0xe307('0x98')](_0x4ef67b,_0x56867b[_0xe307('0x86')],_0x56867b[_0xe307('0x99')]||_0xe307('0x66'))[_0xe307('0x15')](function(_0x3f2f5d){_0x277762(null,_0x3f2f5d);})['catch'](function(_0xe57ea5){_0x277762(_0xe57ea5);});};AGIVertices['prototype']['tildeASR']=function(_0x338846,_0x136368,_0x5c8d26){scripts[_0xe307('0x9a')](_0x136368,_0x338846[_0xe307('0x9b')],_0x338846[_0xe307('0x9c')],_0x338846['uri'])[_0xe307('0x15')](function(_0xd7f0cb){_0x5c8d26(null,_0xd7f0cb);})['catch'](function(_0xb59b13){_0x5c8d26(_0xb59b13);});};AGIVertices[_0xe307('0x12')][_0xe307('0x9d')]=function(_0x321aec){var _0x398856=_['includes'](verticesWithRetry,_0x321aec[_0xe307('0x3c')])?_0x321aec:_[_0xe307('0x9e')](_0x321aec);for(var _0x5eedbd in _0x398856){if(_0x398856[_0xe307('0x9f')](_0x5eedbd)){if(_0x398856[_0x5eedbd]&&_[_0xe307('0xa0')](_0x398856[_0x5eedbd])){if(_[_0xe307('0x72')](recursiveMapAttributes,_0x5eedbd)){_0x398856[_0x5eedbd]=this[_0xe307('0xa1')](_0x398856[_0x5eedbd]);}else{_0x398856[_0x5eedbd]=this[_0xe307('0xa2')](_0x398856[_0x5eedbd]);}}}}return _0x398856;};AGIVertices[_0xe307('0x12')]['recursiveNodeIndex']=function(_0x3c52e4){for(var _0x32000e in _0x3c52e4){if(_0x3c52e4[_0xe307('0x9f')](_0x32000e)){if(_[_0xe307('0xa3')](_0x3c52e4[_0x32000e])){this[_0xe307('0xa4')](_0x3c52e4[_0x32000e]);}else if(_[_0xe307('0xa5')](_0x3c52e4[_0x32000e])){for(var _0x17305c=0x0;_0x17305c<_0x3c52e4[_0x32000e][_0xe307('0xa6')];_0x17305c++){this[_0xe307('0xa4')](_0x3c52e4[_0x32000e][_0x17305c]);}}else if(_[_0xe307('0xa0')](_0x3c52e4[_0x32000e])){_0x3c52e4[_0x32000e]=this['replaceAllVariables'](_0x3c52e4[_0x32000e]);}}}};AGIVertices['prototype'][_0xe307('0xa7')]=function(_0x4b8459,_0x563ba9){for(var _0x40c74b in _0x4b8459){if(_0x4b8459[_0xe307('0x9f')](_0x40c74b)){if(_['isPlainObject'](_0x4b8459[_0x40c74b])){if(!_['isEmpty'](_0x4b8459[_0x40c74b])){this[_0xe307('0xa7')](_0x4b8459[_0x40c74b],util['format'](_0xe307('0xa8'),_0x563ba9,_0x40c74b));}}else if(_['isArray'](_0x4b8459[_0x40c74b])){for(var _0x2476b7=0x0;_0x2476b7<_0x4b8459[_0x40c74b][_0xe307('0xa6')];_0x2476b7++){this['saveRestApiResult'](_0x4b8459[_0x40c74b][_0x2476b7],util[_0xe307('0x2d')](_0xe307('0xa8'),_0x563ba9,_0x40c74b+'['+_0x2476b7+']'));}}else{if(!_[_0xe307('0x4d')](_0x4b8459[_0x40c74b])){this[_0xe307('0xf')][_0xe307('0xa9')](util['format']('%s.%s',_0x563ba9,_0x40c74b),_0x4b8459[_0x40c74b]);}}}}};AGIVertices[_0xe307('0x12')]['replaceObjectAllVariables']=function(_0x2b8708){try{var _0xd68d25=JSON[_0xe307('0x77')](_0x2b8708);this[_0xe307('0xa4')](_0xd68d25);return JSON['stringify'](_0xd68d25);}catch(_0x34e266){return this[_0xe307('0xa2')](_0x2b8708);}};AGIVertices[_0xe307('0x12')][_0xe307('0xa2')]=function(_0x3bbcc7){console[_0xe307('0x48')](_0xe307('0xaa'),_0x3bbcc7);var _0x514ca2=_0x3bbcc7[_0xe307('0xab')]('{');for(var _0x4f8718=0x1;_0x4f8718<_0x514ca2[_0xe307('0xa6')];_0x4f8718+=0x1){var _0x1b62e7=_0x514ca2[_0x4f8718][_0xe307('0xab')]('}');console[_0xe307('0x48')](_0xe307('0xac'),_0x1b62e7);if(_0x1b62e7['length']>0x1){_0x3bbcc7=_0x3bbcc7[_0xe307('0xad')]('{'+_0x1b62e7[0x0]+'}',this['channel'][_0xe307('0x13')](_0x1b62e7[0x0])[_0xe307('0xae')]||_0x1b62e7[0x0]);}}if(_0x514ca2[_0xe307('0xa6')]===0x1){return _0x3bbcc7['toString']();}console[_0xe307('0x48')](_0xe307('0xaf'),_0x3bbcc7);return this['replaceAllVariables'](_0x3bbcc7);};AGIVertices[_0xe307('0x12')]['getAndSetVariable']=function(_0x5cdc1a,_0x23919d){var _0x382b70=this['channel'][_0xe307('0x13')](_0x5cdc1a);if(_0x382b70[_0xe307('0xb0')]===-0x1){return _0x382b70;}logger['info'](util[_0xe307('0x2d')](_0xe307('0xb1'),_0x23919d,_0x382b70[_0xe307('0xae')]));return this[_0xe307('0xf')][_0xe307('0xa9')](_0x23919d,_0x382b70[_0xe307('0xae')]);};AGIVertices[_0xe307('0x12')][_0xe307('0x8d')]=function(_0x1a3053){return _0x1a3053&&_0x1a3053!=='0'&&_0x1a3053!=='-1'&&_0x1a3053!=='';};AGIVertices[_0xe307('0x12')][_0xe307('0xb2')]=function(_0x25eca9){this[_0xe307('0x39')]['sync'](this,_0x25eca9,'-');_0x25eca9[_0xe307('0xb3')]=_0x25eca9['maxRetry'];return{'code':0xc8,'result':'-'};};AGIVertices[_0xe307('0x12')][_0xe307('0xb4')]=function(_0x14e3b3){logger['info'](util[_0xe307('0x2d')](_0xe307('0xb5'),_0x14e3b3[_0xe307('0x3b')]));if(!this['isConfigured'](_0x14e3b3[_0xe307('0x64')])){return this[_0xe307('0xf')]['noop']('no\x20text\x20configured');}var _0x3c4ebe='\x22'+_0x14e3b3[_0xe307('0x64')]+'\x22';if(this[_0xe307('0x8d')](_0x14e3b3['options'])){_0x3c4ebe+=','+_0x14e3b3[_0xe307('0x84')];}var _0x407adc=this[_0xe307('0xf')][_0xe307('0xb6')](_0xe307('0xb7'),_0x3c4ebe);if(_0x407adc[_0xe307('0xb0')]===-0x1){return _0x407adc;}return this[_0xe307('0xf')][_0xe307('0xb8')](util['format'](_0xe307('0xb9'),_0x3c4ebe));};AGIVertices[_0xe307('0x12')][_0xe307('0xba')]=function(_0x2df2e0){logger['info'](util[_0xe307('0x2d')](_0xe307('0xbb'),_0x2df2e0[_0xe307('0x3b')]));if(!this[_0xe307('0x8d')](_0x2df2e0['grammar'])){return this[_0xe307('0xf')]['noop']('no\x20grammar\x20configured');}var _0x7bc4b4=_0x2df2e0[_0xe307('0xbc')];if(this['isConfigured'](_0x2df2e0['options'])){_0x7bc4b4+=','+_0x2df2e0[_0xe307('0x84')];}var _0x2c7db5=this[_0xe307('0xf')][_0xe307('0xb6')](_0xe307('0xbd'),_0x7bc4b4);if(_0x2c7db5['result']===-0x1){return _0x2c7db5;}var _0x5b61b9=this[_0xe307('0xbe')](_0xe307('0xbf'),_0xe307('0xc0'));if(_0x5b61b9[_0xe307('0xb0')]===-0x1){return _0x5b61b9;}var _0x3a3424=this[_0xe307('0xbe')](_0xe307('0xc1'),_0xe307('0xc2'));if(_0x3a3424[_0xe307('0xb0')]===-0x1){return _0x3a3424;}var _0x260686=this['getAndSetVariable'](_0xe307('0xc3'),_0xe307('0xc4'));if(_0x260686[_0xe307('0xb0')]===-0x1){return _0x260686;}return this['channel']['noop'](util[_0xe307('0x2d')]('Executed\x20command\x20MRCPRecog\x20%s',_0x7bc4b4));};AGIVertices['prototype'][_0xe307('0xc5')]=function(_0x2e0915){logger['info'](util[_0xe307('0x2d')](_0xe307('0xc6'),_0x2e0915[_0xe307('0x3b')]));return this[_0xe307('0xf')][_0xe307('0xc5')]([_0x2e0915['command'],_0x2e0915[_0xe307('0xc7')]]);};AGIVertices[_0xe307('0x12')]['answer']=function(_0x322f9c){logger['info'](util[_0xe307('0x2d')](_0xe307('0xc8'),_0x322f9c[_0xe307('0x3b')]));if(this[_0xe307('0x8d')](_0x322f9c[_0xe307('0x71')])){logger[_0xe307('0x31')](util[_0xe307('0x2d')](_0xe307('0xc9'),_0x322f9c[_0xe307('0x71')]));var _0x14e353=this[_0xe307('0xf')]['wait'](_0x322f9c[_0xe307('0x71')]);if(_0x14e353['result']===-0x1){return _0x14e353;}}return this[_0xe307('0xf')][_0xe307('0xca')]();};AGIVertices[_0xe307('0x12')][_0xe307('0x54')]=function(_0x4a5b19){console[_0xe307('0x48')](_0xe307('0xcb'),_0x4a5b19);logger['info'](util[_0xe307('0x2d')](_0xe307('0xcc'),_0x4a5b19[_0xe307('0x3b')]));if(!this['isConfigured'](_0x4a5b19['list_id'])){return this[_0xe307('0xf')][_0xe307('0x35')](_0x4a5b19,'no\x20list\x20selected');}_0x4a5b19['scheduledAt']=moment();if(this['isConfigured'](_0x4a5b19[_0xe307('0xcd')])){_0x4a5b19['scheduledAt']=moment()[_0xe307('0xce')](_0x4a5b19[_0xe307('0xcd')],_0xe307('0xcf'));}if(!this[_0xe307('0x8d')](_0x4a5b19['callback_priority'])){_0x4a5b19['callback_priority']=0x2;}console[_0xe307('0x48')]('before\x20createcmcontact',_0x4a5b19);this['createCmContact']['sync'](this,_0x4a5b19);return this[_0xe307('0xf')][_0xe307('0xb8')](util[_0xe307('0x2d')](_0xe307('0xd0'),_0x4a5b19[_0xe307('0x51')],_0x4a5b19[_0xe307('0x52')],_0x4a5b19['scheduledAt']));};AGIVertices[_0xe307('0x12')][_0xe307('0xd1')]=function(_0x2bcab1){logger[_0xe307('0x31')](util['format'](_0xe307('0xd2'),_0x2bcab1['label']));var _0x1fa2ca=this[_0xe307('0xf')][_0xe307('0xb6')](_0x2bcab1[_0xe307('0xd3')],_0x2bcab1[_0xe307('0x84')]);if(_0x1fa2ca[_0xe307('0xb0')]===-0x1){return _0x1fa2ca;}return this['channel']['noop'](util['format'](_0xe307('0xd4'),_0x2bcab1[_0xe307('0xd3')],_0x2bcab1['options']));};AGIVertices[_0xe307('0x12')]['lumenvoxtts']=function(_0x4e8d83){logger['info'](util[_0xe307('0x2d')]('Enter\x20in\x20LUMENVOXTTS\x20(%s)\x20block',_0x4e8d83[_0xe307('0x3b')]));if(!this[_0xe307('0x8d')](_0x4e8d83['text'])){return this[_0xe307('0xf')][_0xe307('0xb8')]('no\x20text\x20configured');}var _0x13cc38='\x22'+_0x4e8d83['text']+'\x22';if(this[_0xe307('0x8d')](_0x4e8d83[_0xe307('0x84')])){_0x13cc38+=','+_0x4e8d83['options'];}var _0x59182d=this['channel']['exec']('MRCPSynth',_0x13cc38);if(_0x59182d[_0xe307('0xb0')]===-0x1){return _0x59182d;}return this[_0xe307('0xf')][_0xe307('0xb8')](util['format'](_0xe307('0xb9'),_0x13cc38));};AGIVertices[_0xe307('0x12')][_0xe307('0xd5')]=function(_0x26336b){logger[_0xe307('0x31')](util[_0xe307('0x2d')]('Enter\x20in\x20SESTEKTTS\x20(%s)\x20block',_0x26336b[_0xe307('0x3b')]));if(!this['isConfigured'](_0x26336b['text'])){return this[_0xe307('0xf')]['noop'](_0xe307('0xd6'));}var _0x43e81e='\x22'+_0x26336b[_0xe307('0x64')]+'\x22';if(this[_0xe307('0x8d')](_0x26336b[_0xe307('0x84')])){_0x43e81e+=','+_0x26336b[_0xe307('0x84')];}var _0x3b0c4f=this[_0xe307('0xf')][_0xe307('0xb6')]('MRCPSynth',_0x43e81e);if(_0x3b0c4f[_0xe307('0xb0')]===-0x1){return _0x3b0c4f;}return this[_0xe307('0xf')][_0xe307('0xb8')](util[_0xe307('0x2d')]('Executed\x20command\x20MRCPSynth\x20%s',_0x43e81e));};AGIVertices[_0xe307('0x12')][_0xe307('0xd7')]=function(_0x1a842f){logger[_0xe307('0x31')](util['format'](_0xe307('0xd8'),_0x1a842f[_0xe307('0x3b')]));if(!this[_0xe307('0x8d')](_0x1a842f[_0xe307('0xbc')])){return this['channel'][_0xe307('0xb8')](_0xe307('0xd9'));}var _0x20715e=_0x1a842f[_0xe307('0xbc')];if(this[_0xe307('0x8d')](_0x1a842f[_0xe307('0x84')])){_0x20715e+=','+_0x1a842f[_0xe307('0x84')];}var _0xf7c03=this[_0xe307('0xf')][_0xe307('0xb6')](_0xe307('0xbd'),_0x20715e);if(_0xf7c03['result']===-0x1){return _0xf7c03;}var _0x41da39=this[_0xe307('0xbe')]('RECOG_CONFIDENCE()',_0xe307('0xda'));if(_0x41da39[_0xe307('0xb0')]===-0x1){return _0x41da39;}var _0x4d41c5=this[_0xe307('0xbe')](_0xe307('0xc1'),_0xe307('0xdb'));if(_0x4d41c5[_0xe307('0xb0')]===-0x1){return _0x4d41c5;}var _0x5dba2b=this[_0xe307('0xbe')](_0xe307('0xc3'),_0xe307('0xdc'));if(_0x5dba2b['result']===-0x1){return _0x5dba2b;}return this[_0xe307('0xf')][_0xe307('0xb8')](util[_0xe307('0x2d')](_0xe307('0xdd'),_0x20715e));};AGIVertices[_0xe307('0x12')][_0xe307('0xde')]=function(_0x4b1712){logger[_0xe307('0x31')](util[_0xe307('0x2d')]('Enter\x20in\x20SESTEKASR\x20(%s)\x20block',_0x4b1712[_0xe307('0x3b')]));if(!this[_0xe307('0x8d')](_0x4b1712['grammar'])){return this[_0xe307('0xf')][_0xe307('0xb8')](_0xe307('0xd9'));}var _0xa905e8=_0x4b1712[_0xe307('0xbc')];if(this[_0xe307('0x8d')](_0x4b1712[_0xe307('0x84')])){_0xa905e8+=','+_0x4b1712[_0xe307('0x84')];}var _0x2e2f12=this[_0xe307('0xf')][_0xe307('0xb6')](_0xe307('0xbd'),_0xa905e8);if(_0x2e2f12[_0xe307('0xb0')]===-0x1){return _0x2e2f12;}var _0x5a4463=this[_0xe307('0xbe')](_0xe307('0xbf'),_0xe307('0xdf'));if(_0x5a4463[_0xe307('0xb0')]===-0x1){return _0x5a4463;}var _0x541e64=this['getAndSetVariable'](_0xe307('0xc1'),'SESTEK_ASR_TRANSCRIPT');if(_0x541e64[_0xe307('0xb0')]===-0x1){return _0x541e64;}var _0x78bffe=this['getAndSetVariable'](_0xe307('0xc3'),_0xe307('0xe0'));if(_0x78bffe[_0xe307('0xb0')]===-0x1){return _0x78bffe;}return this[_0xe307('0xf')][_0xe307('0xb8')](util[_0xe307('0x2d')]('Executed\x20command\x20MRCPRecog\x20%s',_0xa905e8));};AGIVertices[_0xe307('0x12')][_0xe307('0xe1')]=function(_0x2796d7){logger['info'](util[_0xe307('0x2d')](_0xe307('0xe2'),_0x2796d7[_0xe307('0x3b')]));if(!this[_0xe307('0x8d')](_0x2796d7[_0xe307('0xe3')])){return this['channel'][_0xe307('0x35')](_0x2796d7,_0xe307('0xe4'));}var _0x18c2ae=this[_0xe307('0x1b')][_0xe307('0x7c')](this,_0x2796d7[_0xe307('0xe3')]);if(!_0x18c2ae){return this['channel']['error'](_0x2796d7,_0xe307('0xe5'));}if(!this[_0xe307('0x8d')](_0x2796d7[_0xe307('0x33')])){return this[_0xe307('0xf')]['error'](_0x2796d7,_0xe307('0xe6'));}var _0x5ac29c=_0x2796d7[_0xe307('0x33')][_0xe307('0x60')](/(\r\n|\n|\r)/gm,'\x20');this[_0xe307('0xf')][_0xe307('0xb8')](util['format'](_0xe307('0xe7'),_0x5ac29c));var _0x34d5e7=this[_0xe307('0x2f')][_0xe307('0x7c')](this,_0x18c2ae,_0x5ac29c);this[_0xe307('0x39')]['sync'](this,_0x2796d7,_0x5ac29c);if(!this[_0xe307('0x8d')](_0x2796d7[_0xe307('0xe8')])){return this[_0xe307('0xf')][_0xe307('0xb8')](_0xe307('0xe9'));}var _0x1aa830=this[_0xe307('0x13')][_0xe307('0x7c')](this,_0x2796d7[_0xe307('0xe8')]);if(!_0x1aa830){return this['channel']['error'](_0x2796d7,_0xe307('0xea'));}var _0x508f7b=this;_0x34d5e7['forEach'](function(_0xd27bac,_0x2f9451){Object[_0xe307('0xeb')](_0xd27bac)[_0xe307('0xec')](function(_0x160787){_0x508f7b[_0xe307('0xf')][_0xe307('0xa9')](util[_0xe307('0x2d')](_0xe307('0xed'),_0x1aa830,_0x2f9451,_0x160787),_0xd27bac[_0x160787]);});});this['channel']['setVariable'](util[_0xe307('0x2d')](_0xe307('0xee'),_0x1aa830),_0x34d5e7[_0xe307('0xa6')]);return this['channel'][_0xe307('0xb8')](util[_0xe307('0x2d')](_0xe307('0xef'),_0x1aa830));};AGIVertices[_0xe307('0x12')][_0xe307('0xf0')]=function(_0x2087fd){logger[_0xe307('0xf1')](util[_0xe307('0x2d')](_0xe307('0xf2'),_0x2087fd[_0xe307('0x3b')]));if(!this[_0xe307('0x8d')](_0x2087fd[_0xe307('0xf3')])){return this[_0xe307('0xf')][_0xe307('0x35')](_0x2087fd,_0xe307('0xf4'));}var _0x58184d=this[_0xe307('0x1e')][_0xe307('0x7c')](this,_0x2087fd[_0xe307('0xf3')]);if(!_0x58184d){return this[_0xe307('0xf')]['error'](_0x2087fd,'no\x20user\x20found');}var _0x3a8217=this[_0xe307('0xf')][_0xe307('0xb6')](_0xe307('0xf5'),[util[_0xe307('0x2d')]('SIP/%s',_0x58184d),_0x2087fd[_0xe307('0x71')],_0x2087fd[_0xe307('0xf6')],_0x2087fd[_0xe307('0x6e')]]);if(_0x3a8217[_0xe307('0xb0')]===-0x1){return _0x3a8217;}return this[_0xe307('0xf')][_0xe307('0xb8')](util[_0xe307('0x2d')](_0xe307('0xf7'),_0xe307('0xf5')));};AGIVertices[_0xe307('0x12')][_0xe307('0xf8')]=function(_0x19a0f3){logger[_0xe307('0x31')](util[_0xe307('0x2d')]('Enter\x20in\x20DIALOGFLOW\x20(%s)\x20block',_0x19a0f3[_0xe307('0x3b')]));if(!this[_0xe307('0x8d')](_0x19a0f3[_0xe307('0x86')])){return this[_0xe307('0xf')][_0xe307('0xb8')]('no\x20key\x20configured');}if(!this['isConfigured'](_0x19a0f3[_0xe307('0x64')])){return this[_0xe307('0xf')][_0xe307('0xb8')](_0xe307('0xd6'));}this[_0xe307('0xf')][_0xe307('0xf9')]=!![];this[_0xe307('0x39')](_0x19a0f3);this[_0xe307('0x46')](_0x19a0f3[_0xe307('0x64')],'in');this[_0xe307('0xf')][_0xe307('0xb8')](util['format'](_0xe307('0xfa'),_0x19a0f3[_0xe307('0x64')]));var _0x237afe=this['googleDialogflow'][_0xe307('0x7c')](this,_0x19a0f3);if(_0x237afe){for(var _0x10fdd2 in _0x237afe){if(_0x237afe[_0xe307('0x9f')](_0x10fdd2)){this[_0xe307('0xf')]['setVariable'](util['format'](_0xe307('0xfb'),_0x10fdd2[_0xe307('0x75')]()),_0x237afe[_0x10fdd2]);}}this['createSquareMessage'](_0x237afe[_0xe307('0xfc')],_0xe307('0xfd'));return this[_0xe307('0xf')][_0xe307('0xb8')](util[_0xe307('0x2d')]('Dialogflow\x20Result\x20%s',_0x237afe[_0xe307('0xfc')]));}return this[_0xe307('0xf')][_0xe307('0x35')](_0x19a0f3,_0xe307('0xfe'));};AGIVertices[_0xe307('0x12')][_0xe307('0xff')]=function(_0x2c39cf){logger[_0xe307('0x31')](util['format'](_0xe307('0x100'),_0x2c39cf[_0xe307('0x3b')]));if(!this[_0xe307('0x8d')](_0x2c39cf[_0xe307('0x101')])){return this[_0xe307('0xf')][_0xe307('0xb8')]('no\x20ndauth\x20url\x20configured');}if(!this[_0xe307('0x8d')](_0x2c39cf[_0xe307('0x102')])){return this['channel'][_0xe307('0xb8')]('no\x20username\x20configured');}if(!this[_0xe307('0x8d')](_0x2c39cf[_0xe307('0x103')])){return this[_0xe307('0xf')][_0xe307('0xb8')]('no\x20password\x20configured');}if(!this[_0xe307('0x8d')](_0x2c39cf['ndassistant_url'])){return this[_0xe307('0xf')][_0xe307('0xb8')](_0xe307('0xd6'));}this[_0xe307('0xf')]['bot']=!![];this[_0xe307('0x39')](_0x2c39cf);this[_0xe307('0x46')](_0x2c39cf[_0xe307('0x64')],'in');this['channel']['noop'](util['format'](_0xe307('0x104'),_0x2c39cf[_0xe307('0x64')]));var _0x52219d=this[_0xe307('0x88')][_0xe307('0x7c')](this,_0x2c39cf);if(_0x52219d){for(var _0x4c86a7 in _0x52219d){if(_0x52219d[_0xe307('0x9f')](_0x4c86a7)){this[_0xe307('0xf')][_0xe307('0xa9')](util['format'](_0xe307('0x105'),_0x4c86a7[_0xe307('0x75')]()),_0x52219d[_0x4c86a7]);}}this[_0xe307('0x46')](_0x52219d[_0xe307('0xfc')],'out');if(_0x52219d[_0xe307('0x106')]){this[_0xe307('0xf')][_0xe307('0xb8')](util[_0xe307('0x2d')]('Sestek\x20NDA\x20%s\x20file\x20created',_0x52219d[_0xe307('0x106')]));var _0x53bbf7=this[_0xe307('0xf')]['streamFile'](_0x52219d['audiofile']);try{fs[_0xe307('0x107')](_0x52219d['audiofile']+'.wav');}catch(_0x57a0bb){logger[_0xe307('0x35')](_0x57a0bb);}return _0x53bbf7;}else{return this[_0xe307('0xf')][_0xe307('0xb8')](util[_0xe307('0x2d')](_0xe307('0x108'),_0x52219d['speech']));}}return this['channel'][_0xe307('0x35')](_0x2c39cf,'SestekNDA\x20is\x20unreachable');};AGIVertices['prototype'][_0xe307('0x109')]=function(_0x2bee1e){logger[_0xe307('0x31')](util[_0xe307('0x2d')](_0xe307('0x10a'),_0x2bee1e['label']));return this[_0xe307('0xf')][_0xe307('0xb8')](_0xe307('0x109'));};AGIVertices['prototype'][_0xe307('0x10b')]=function(_0x134e58){logger[_0xe307('0x31')](util[_0xe307('0x2d')](_0xe307('0x10c'),_0x134e58[_0xe307('0x3b')]));var _0x3385b0='';if(_0x134e58[_0xe307('0x10d')]){if(!this[_0xe307('0x8d')](_0x134e58[_0xe307('0x10d')])){return this['channel'][_0xe307('0x35')](_0x134e58,'no\x20trunk\x20selected');}else{var _0x25e7e4=parseInt(_0x134e58[_0xe307('0x10d')],0xa);if(isNaN(_0x25e7e4)){_0x3385b0=_0x134e58[_0xe307('0x10d')];}else{_0x3385b0=this[_0xe307('0x20')]['sync'](this,_0x134e58['trunk_id']);if(!_0x3385b0){return this[_0xe307('0xf')][_0xe307('0x35')](_0x134e58,'no\x20trunk\x20found');}}}}else if(_0x134e58['trunk_name']){_0x3385b0=_0x134e58['trunk_name'];}else{return this[_0xe307('0xf')][_0xe307('0x35')](_0x134e58,_0xe307('0x10e'));}var _0x465ae7=this[_0xe307('0xf')][_0xe307('0xb6')](_0xe307('0xf5'),[util[_0xe307('0x2d')](_0xe307('0x10f'),_0x3385b0,_0x134e58[_0xe307('0x51')]),_0x134e58[_0xe307('0x71')],_0x134e58[_0xe307('0xf6')],_0x134e58[_0xe307('0x6e')]]);if(_0x465ae7['result']===-0x1){return _0x465ae7;}return this[_0xe307('0xf')][_0xe307('0xb8')](util[_0xe307('0x2d')]('Executed\x20command\x20%s','DIAL'));};AGIVertices[_0xe307('0x12')][_0xe307('0x110')]=function(_0x341078){logger[_0xe307('0x31')](util[_0xe307('0x2d')](_0xe307('0x111'),_0x341078[_0xe307('0x3b')]));return this['channel'][_0xe307('0xb8')](_0xe307('0x110'));};AGIVertices['prototype'][_0xe307('0xd')]=function(_0x40f205){logger['info'](util['format'](_0xe307('0x112'),_0x40f205['label']));if(_0x40f205['retry']===0x0){return this[_0xe307('0xb2')](_0x40f205);}_0x40f205[_0xe307('0xb3')]-=0x1;if(!this[_0xe307('0x8d')](_0x40f205['file_id'])){return this[_0xe307('0xf')][_0xe307('0x35')](_0x40f205,_0xe307('0x113'));}var _0x1fbc07=this[_0xe307('0x22')][_0xe307('0x7c')](this,_0x40f205[_0xe307('0x114')]);if(!_0x1fbc07){return this[_0xe307('0xf')][_0xe307('0x35')](_0x40f205,_0xe307('0x115'));}if(!this[_0xe307('0x8d')](_0x40f205[_0xe307('0xe8')])){return this[_0xe307('0xf')][_0xe307('0x35')](_0xe307('0xe9'));}var _0x5aaa8f=this[_0xe307('0xf')][_0xe307('0x116')](_0x1fbc07,_0x40f205[_0xe307('0x117')],_0x40f205[_0xe307('0x118')]);var _0x1d54e4=_0x5aaa8f[_0xe307('0xb0')]?_0x5aaa8f[_0xe307('0xb0')][_0xe307('0x56')]():'';logger[_0xe307('0x31')](_0xe307('0x119'),JSON[_0xe307('0x7e')](_0x5aaa8f));if(_0x5aaa8f[_0xe307('0xb0')]===-0x1){this[_0xe307('0x39')][_0xe307('0x7c')](this,_0x40f205,_0x1d54e4);return _0x5aaa8f;}else if(_0x5aaa8f['extra']===_0xe307('0x71')){_0x5aaa8f[_0xe307('0xb0')]=_0x1d54e4['length']>=parseInt(_0x40f205[_0xe307('0x11a')])?'x':'i';}else{_0x5aaa8f[_0xe307('0xb0')]=_0x1d54e4['length']>=parseInt(_0x40f205['mindigit'])&&_0x1d54e4['length']<=parseInt(_0x40f205[_0xe307('0x118')])?'x':'i';}var _0x5de084=this[_0xe307('0x13')]['sync'](this,_0x40f205[_0xe307('0xe8')]);if(!_0x5de084){return this['channel']['error'](_0x40f205,_0xe307('0xea'));}this[_0xe307('0xf')]['setVariable'](_0x5de084,_0x1d54e4);if(this[_0xe307('0x8d')](_0x40f205[_0xe307('0x11b')])){var _0x105b37=parseInt(_0x40f205[_0xe307('0x11b')],0xa);var _0x5cca46=rs[_0xe307('0x11c')]({'charset':'*','length':_0x105b37});var _0x2afe9a=_0x1d54e4[_0xe307('0xa6')];if(_0x2afe9a>0x0){if(_0x2afe9a>_0x105b37){this['createSquareDetailsReport'][_0xe307('0x7c')](this,_0x40f205,_0x40f205['hiddendigitspos']===_0xe307('0x11d')?_0x5cca46+_0x1d54e4[_0xe307('0x11e')](_0x105b37):_0x1d54e4[_0xe307('0x11e')](0x0,_0x2afe9a-_0x105b37)+_0x5cca46);}else{this[_0xe307('0x39')][_0xe307('0x7c')](this,_0x40f205,rs['generate']({'charset':'*','length':_0x2afe9a}));}}else{this[_0xe307('0x39')]['sync'](this,_0x40f205,'');}}else{this['createSquareDetailsReport'][_0xe307('0x7c')](this,_0x40f205,_0x1d54e4);}return _0x5aaa8f;};AGIVertices['prototype']['getsecretdigits']=function(_0x44d1e5){logger['info'](util[_0xe307('0x2d')]('Enter\x20in\x20GETSECRETDIGITS\x20(%s)\x20block',_0x44d1e5[_0xe307('0x3b')]));return this[_0xe307('0xd')](_0x44d1e5);};AGIVertices[_0xe307('0x12')][_0xe307('0x11f')]=function(_0x1ac8a8){logger[_0xe307('0x31')](util[_0xe307('0x2d')]('Enter\x20in\x20GOAL\x20(%s)\x20block',_0x1ac8a8['label']));this['createSquareDetailsReport'][_0xe307('0x7c')](this,_0x1ac8a8,_0x1ac8a8[_0xe307('0x120')]);return this[_0xe307('0xf')][_0xe307('0xb8')](util['format'](_0xe307('0x121'),_0x1ac8a8[_0xe307('0x120')]));};AGIVertices[_0xe307('0x12')][_0xe307('0x122')]=function(_0x4bd1a5){logger[_0xe307('0x31')](util[_0xe307('0x2d')]('[AGI]\x20Enter\x20in\x20AWSPOLLY\x20(%s)\x20block',_0x4bd1a5['label']));if(!this[_0xe307('0x8d')](_0x4bd1a5['aws_access_key_id'])||!this[_0xe307('0x8d')](_0x4bd1a5[_0xe307('0x95')])){return this[_0xe307('0xf')][_0xe307('0xb8')]('no\x20valid\x20credentials\x20configured');}if(!this[_0xe307('0x8d')](_0x4bd1a5[_0xe307('0x64')])){return this[_0xe307('0xf')][_0xe307('0xb8')](_0xe307('0xd6'));}this[_0xe307('0xf')][_0xe307('0xb8')](util[_0xe307('0x2d')](_0xe307('0x123'),_0x4bd1a5[_0xe307('0x64')]));var _0x1fcdd2=this[_0xe307('0x8f')][_0xe307('0x7c')](this,_0x4bd1a5);if(_0x1fcdd2){this[_0xe307('0xf')]['noop'](util['format'](_0xe307('0x124'),_0x1fcdd2));var _0x539efe=this['channel'][_0xe307('0x125')](_0x1fcdd2);try{fs[_0xe307('0x107')](_0x1fcdd2+'.wav');}catch(_0x349275){logger[_0xe307('0x35')](_0x349275);}return _0x539efe;}return this[_0xe307('0xf')][_0xe307('0x35')](_0x4bd1a5,_0xe307('0x126'));};AGIVertices[_0xe307('0x12')][_0xe307('0x127')]=function(_0x3881f6){logger[_0xe307('0x31')](util[_0xe307('0x2d')]('Enter\x20in\x20Amazon\x20Lex\x20(%s)\x20block',_0x3881f6['label']));if(!this['isConfigured'](_0x3881f6[_0xe307('0x128')])||!this[_0xe307('0x8d')](_0x3881f6[_0xe307('0x95')])){return this[_0xe307('0xf')][_0xe307('0xb8')](_0xe307('0x129'));}if(!this[_0xe307('0x8d')](_0x3881f6[_0xe307('0x97')])){return this['channel'][_0xe307('0xb8')](_0xe307('0x12a'));}if(!this['isConfigured'](_0x3881f6[_0xe307('0x64')])){return this[_0xe307('0xf')]['noop'](_0xe307('0xd6'));}this['channel']['bot']=!![];this['createSquareDetailsReport'](_0x3881f6);this[_0xe307('0x46')](_0x3881f6['text'],'in');this[_0xe307('0xf')][_0xe307('0xb8')](util[_0xe307('0x2d')](_0xe307('0x12b'),_0x3881f6['text']));var _0x199ed1=this[_0xe307('0x94')]['sync'](this,_0x3881f6);if(_0x199ed1){for(var _0xdf1189 in _0x199ed1){if(_0x199ed1['hasOwnProperty'](_0xdf1189)&&_[_0xe307('0xa0')](_0x199ed1[_0xdf1189])){this[_0xe307('0xf')][_0xe307('0xa9')](util[_0xe307('0x2d')](_0xe307('0x12c'),_0xdf1189['toUpperCase']()),_0x199ed1[_0xdf1189]);}}if(_['isNil'](_0x199ed1['message'])){return this[_0xe307('0xf')][_0xe307('0xb8')](_0xe307('0x12d'));}else{this[_0xe307('0x46')](_0x199ed1[_0xe307('0x82')],_0xe307('0xfd'));return this['channel'][_0xe307('0xb8')](util[_0xe307('0x2d')](_0xe307('0x12e'),_0x199ed1[_0xe307('0x82')]));}}return this[_0xe307('0xf')][_0xe307('0x35')](_0x3881f6,_0xe307('0x12f'));};AGIVertices[_0xe307('0x12')]['googleasr']=function(_0x17b5a9){logger[_0xe307('0x31')](util[_0xe307('0x2d')]('Enter\x20in\x20GOOGLEASR\x20(%s)\x20block\x20%s',_0x17b5a9[_0xe307('0x3b')],_0x17b5a9[_0xe307('0x71')]));if(!this[_0xe307('0x8d')](_0x17b5a9[_0xe307('0x86')])){return this[_0xe307('0xf')][_0xe307('0xb8')](_0xe307('0x130'));}var _0x5e4dfc='wav';var _0x5a3c72=util[_0xe307('0x2d')](_0xe307('0x131'),FILES_PATH,rs[_0xe307('0x11c')](0x4));var _0x3da439=util[_0xe307('0x2d')](_0xe307('0xa8'),_0x5a3c72,_0x5e4dfc);var _0x45ae68=!![];if(_0x17b5a9[_0xe307('0x132')]==='NOBEEP'){_0x45ae68=![];}var _0x1e0917=this[_0xe307('0xf')][_0xe307('0x133')](_0x5a3c72,_0x5e4dfc,_0x17b5a9['intKey'],_0x17b5a9[_0xe307('0x71')],undefined,_0x45ae68);if(_0x1e0917[_0xe307('0xb0')]!==-0x1){this[_0xe307('0xf')]['noop'](util[_0xe307('0x2d')](_0xe307('0x134'),_0x3da439));var _0x2f9070=this[_0xe307('0x98')][_0xe307('0x7c')](this,_0x17b5a9,_0x3da439);if(_0x2f9070){for(var _0x1c10d6 in _0x2f9070){if(_0x2f9070[_0xe307('0x9f')](_0x1c10d6)){this[_0xe307('0xf')][_0xe307('0xa9')](util[_0xe307('0x2d')](_0xe307('0x135'),_0x1c10d6['toUpperCase']()),_0x2f9070[_0x1c10d6]);}}return this[_0xe307('0xf')][_0xe307('0xb8')](util[_0xe307('0x2d')](_0xe307('0x136'),JSON['stringify'](_0x2f9070)));}}return _0x1e0917;};AGIVertices[_0xe307('0x12')][_0xe307('0x137')]=function(_0x388031){logger[_0xe307('0x31')](util[_0xe307('0x2d')](_0xe307('0x138'),_0x388031[_0xe307('0x3b')]));if(!this[_0xe307('0x8d')](_0x388031[_0xe307('0x9b')])){return this[_0xe307('0xf')]['noop']('no\x20appid\x20configured');}if(!this['isConfigured'](_0x388031['appsecret'])){return this['channel'][_0xe307('0xb8')](_0xe307('0x139'));}var _0x213490=_0xe307('0x13a');var _0x4c36f7=util[_0xe307('0x2d')](_0xe307('0x131'),FILES_PATH,rs[_0xe307('0x11c')](0x4));var _0x13f150=util[_0xe307('0x2d')](_0xe307('0xa8'),_0x4c36f7,_0x213490);var _0x205513=!![];if(_0x388031[_0xe307('0x132')]===_0xe307('0x13b')){_0x205513=![];}var _0x114a28=this['channel'][_0xe307('0x133')](_0x4c36f7,_0x213490,_0x388031['intKey'],_0x388031['timeout'],undefined,_0x205513);if(_0x114a28[_0xe307('0xb0')]!==-0x1){this[_0xe307('0xf')][_0xe307('0xb8')](util[_0xe307('0x2d')](_0xe307('0x13c'),_0x13f150));var _0x4eff16=this[_0xe307('0x9a')][_0xe307('0x7c')](this,_0x388031,_0x13f150);if(_0x4eff16){for(var _0x50af23 in _0x4eff16){if(_0x4eff16[_0xe307('0x9f')](_0x50af23)){this[_0xe307('0xf')][_0xe307('0xa9')](util[_0xe307('0x2d')](_0xe307('0x13d'),_0x50af23['toUpperCase']()),_0x4eff16[_0x50af23]);}}return this[_0xe307('0xf')][_0xe307('0xb8')](util['format'](_0xe307('0x13e'),JSON['stringify'](_0x4eff16)));}}return _0x114a28;};AGIVertices[_0xe307('0x12')][_0xe307('0x13f')]=function(_0x17b3f2){logger['info'](util[_0xe307('0x2d')]('Enter\x20in\x20GOTO\x20(%s)\x20block',_0x17b3f2[_0xe307('0x3b')]));return this['channel']['continueAt'](_0x17b3f2['context'],_0x17b3f2[_0xe307('0x140')],_0x17b3f2[_0xe307('0x42')]);};AGIVertices[_0xe307('0x12')][_0xe307('0x141')]=function(_0x2d552b){logger[_0xe307('0x31')](util[_0xe307('0x2d')](_0xe307('0x142'),_0x2d552b['label']));if(!this[_0xe307('0x8d')](_0x2d552b[_0xe307('0x143')])){return this['channel']['error'](_0x2d552b,_0xe307('0x144'));}try{var _0xc1391f=eval(_0x2d552b[_0xe307('0x143')])?_0xe307('0x145'):_0xe307('0x146');this['channel'][_0xe307('0xb8')](util['format'](_0xe307('0x147'),_0x2d552b[_0xe307('0x143')],_0xc1391f));return{'code':0xc8,'result':_0xc1391f};}catch(_0x1d4536){return{'code':0xc8,'result':'false'};}};AGIVertices[_0xe307('0x12')][_0xe307('0x148')]=function(_0x3cd8c6){logger[_0xe307('0x31')](util['format'](_0xe307('0x149'),_0x3cd8c6['label']));if(!this['isConfigured'](_0x3cd8c6[_0xe307('0x14a')])){return this[_0xe307('0xf')][_0xe307('0x35')](_0x3cd8c6,_0xe307('0x14b'));}var _0x2ac3ed=this['getIntervals'][_0xe307('0x7c')](this,_0x3cd8c6['interval_id']);if(!_0x2ac3ed){return this[_0xe307('0xf')]['error'](_0x3cd8c6,_0xe307('0x14c'));}for(var _0x1e89ba=0x0;_0x1e89ba<_0x2ac3ed[_0xe307('0xa6')];_0x1e89ba+=0x1){var _0x4214ba=this['channel'][_0xe307('0x13')](util[_0xe307('0x2d')](_0xe307('0x14d'),_0x2ac3ed[_0x1e89ba]));if(_0x4214ba[_0xe307('0xb0')]===-0x1){return _0x4214ba;}logger[_0xe307('0x31')](util[_0xe307('0x2d')](_0xe307('0x14e'),_0x2ac3ed[_0x1e89ba],_0x4214ba[_0xe307('0xae')]));if(_0x4214ba[_0xe307('0xae')]===_0xe307('0x145')){logger[_0xe307('0x31')](util[_0xe307('0x2d')]('IFTIME\x20%s\x20%s',_0x2ac3ed[_0x1e89ba],_0xe307('0x145')));this['channel'][_0xe307('0xb8')](util[_0xe307('0x2d')](_0xe307('0x14e'),_0x2ac3ed[_0x1e89ba],_0xe307('0x145')));return{'code':0xc8,'result':'true'};}else{logger[_0xe307('0x31')](util[_0xe307('0x2d')](_0xe307('0x14e'),_0x2ac3ed[_0x1e89ba],_0xe307('0x146')));this[_0xe307('0xf')]['noop'](util['format'](_0xe307('0x14e'),_0x2ac3ed[_0x1e89ba],_0xe307('0x146')));}}return{'code':0xc8,'result':_0xe307('0x146')};};AGIVertices[_0xe307('0x12')][_0xe307('0x14f')]=function(_0x504b33){logger[_0xe307('0x31')](util[_0xe307('0x2d')](_0xe307('0x150'),_0x504b33[_0xe307('0x3b')]));return this[_0xe307('0xf')][_0xe307('0x14f')]();};AGIVertices['prototype'][_0xe307('0x151')]=function(_0x34f35b){logger[_0xe307('0x31')](util['format'](_0xe307('0x152'),_0x34f35b[_0xe307('0x3b')]));if(!this[_0xe307('0x8d')](_0x34f35b['key'])){return this[_0xe307('0xf')][_0xe307('0xb8')](_0xe307('0x130'));}var _0x410f54=_0xe307('0x13a');var _0x24fed3=util['format']('%s/recordings/%s',FILES_PATH,rs['generate'](0x4));var _0x542f45=util[_0xe307('0x2d')](_0xe307('0xa8'),_0x24fed3,_0x410f54);var _0x3b3c21=!![];if(_0x34f35b[_0xe307('0x132')]===_0xe307('0x13b')){_0x3b3c21=![];}var _0x5f39d9=this[_0xe307('0xf')][_0xe307('0x133')](_0x24fed3,_0x410f54,_0x34f35b[_0xe307('0x153')],_0x34f35b['timeout'],undefined,_0x3b3c21);if(_0x5f39d9[_0xe307('0xb0')]!==-0x1){this[_0xe307('0xf')][_0xe307('0xb8')](util[_0xe307('0x2d')](_0xe307('0x154'),_0x542f45));var _0x516569=this[_0xe307('0x8b')][_0xe307('0x7c')](this,_0x34f35b,_0x542f45);if(_0x516569){for(var _0x2da321 in _0x516569){if(_0x516569['hasOwnProperty'](_0x2da321)){this['channel'][_0xe307('0xa9')](util[_0xe307('0x2d')]('ISPEECH_ASR_%s',_0x2da321[_0xe307('0x75')]()),_0x516569[_0x2da321]);}}return this[_0xe307('0xf')][_0xe307('0xb8')](util[_0xe307('0x2d')]('IspeechASR\x20Result\x20%s',JSON[_0xe307('0x7e')](_0x516569)));}}return _0x5f39d9;};AGIVertices[_0xe307('0x12')][_0xe307('0x155')]=function(_0x11a373){logger[_0xe307('0x31')](util[_0xe307('0x2d')](_0xe307('0x156'),_0x11a373[_0xe307('0x3b')]));if(!this[_0xe307('0x8d')](_0x11a373[_0xe307('0x86')])){return this[_0xe307('0xf')][_0xe307('0xb8')]('no\x20key\x20configured');}if(!this[_0xe307('0x8d')](_0x11a373['text'])){return this['channel']['noop'](_0xe307('0xd6'));}this[_0xe307('0xf')][_0xe307('0xb8')](util['format']('Trying\x20ispeech\x20TTS\x20%s',_0x11a373[_0xe307('0x64')]));var _0x47b012=this[_0xe307('0x89')][_0xe307('0x7c')](this,_0x11a373);if(_0x47b012){this['channel'][_0xe307('0xb8')](util[_0xe307('0x2d')]('ispeech\x20%s\x20file\x20created',_0x47b012));var _0x5d47b5=this['channel']['streamFile'](_0x47b012,_0x11a373[_0xe307('0x153')]);try{fs[_0xe307('0x107')](_0x47b012+_0xe307('0x157'));}catch(_0x57d0c4){logger[_0xe307('0x35')](_0x57d0c4);}return _0x5d47b5;}return this[_0xe307('0xf')]['error'](_0x11a373,_0xe307('0x158'));};AGIVertices[_0xe307('0x12')][_0xe307('0x159')]=function(_0x81db2f){logger[_0xe307('0x31')](util[_0xe307('0x2d')](_0xe307('0x15a'),_0x81db2f[_0xe307('0x3b')]));if(!this['isConfigured'](_0x81db2f['findBy'])){return this[_0xe307('0xf')][_0xe307('0x35')](_0x81db2f,_0xe307('0x15b'));}logger[_0xe307('0x31')](util[_0xe307('0x2d')](_0xe307('0x15c'),this[_0xe307('0xf')]['callerid'],_0x81db2f['findBy']));var _0x7ba9a1=this[_0xe307('0x5d')][_0xe307('0x7c')](this,_0x81db2f[_0xe307('0x15d')]);if(_0x7ba9a1){logger[_0xe307('0x31')](util[_0xe307('0x2d')](_0xe307('0x15e'),this[_0xe307('0xf')][_0xe307('0x3e')],_0x81db2f[_0xe307('0x15d')]));this['channel']['noop'](util[_0xe307('0x2d')](_0xe307('0x15e'),this['channel'][_0xe307('0x3e')],_0x81db2f['findBy']));return{'code':0xc8,'result':_0xe307('0x15f')};}else{logger[_0xe307('0x31')](util['format']('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this[_0xe307('0xf')]['callerid'],_0x81db2f[_0xe307('0x15d')]));this['channel'][_0xe307('0xb8')](util['format'](_0xe307('0x160'),this[_0xe307('0xf')][_0xe307('0x3e')],_0x81db2f[_0xe307('0x15d')]));return{'code':0xc8,'result':_0xe307('0x161')};}};AGIVertices[_0xe307('0x12')][_0xe307('0x162')]=function(_0x16d7c8){logger[_0xe307('0x31')](util[_0xe307('0x2d')](_0xe307('0x163'),_0x16d7c8[_0xe307('0x3b')]));if(!this[_0xe307('0x8d')](_0x16d7c8[_0xe307('0x15d')])){return this[_0xe307('0xf')]['error'](_0x16d7c8,'no\x20find\x20by\x20configured');}logger[_0xe307('0x31')](util[_0xe307('0x2d')](_0xe307('0x15c'),this[_0xe307('0xf')][_0xe307('0x3e')],_0x16d7c8[_0xe307('0x15d')]));var _0x1a25ab=this[_0xe307('0x5c')]['sync'](this,_0x16d7c8[_0xe307('0x15d')]);if(_0x1a25ab){logger[_0xe307('0x31')](util[_0xe307('0x2d')](_0xe307('0x15e'),this['channel'][_0xe307('0x3e')],_0x16d7c8[_0xe307('0x15d')]));this[_0xe307('0xf')][_0xe307('0xb8')](util[_0xe307('0x2d')](_0xe307('0x15e'),this['channel'][_0xe307('0x3e')],_0x16d7c8[_0xe307('0x15d')]));return{'code':0xc8,'result':'success'};}else{logger[_0xe307('0x31')](util[_0xe307('0x2d')](_0xe307('0x160'),this[_0xe307('0xf')][_0xe307('0x3e')],_0x16d7c8[_0xe307('0x15d')]));this['channel'][_0xe307('0xb8')](util[_0xe307('0x2d')](_0xe307('0x160'),this['channel'][_0xe307('0x3e')],_0x16d7c8['findBy']));return{'code':0xc8,'result':_0xe307('0x161')};}};AGIVertices['prototype'][_0xe307('0x164')]=function(_0x25fc77){logger[_0xe307('0x31')](util['format'](_0xe307('0x165'),_0x25fc77['label']));if(!this[_0xe307('0x8d')](_0x25fc77[_0xe307('0x166')])){return this[_0xe307('0xf')]['error'](_0x25fc77,_0xe307('0x167'));}this[_0xe307('0xf')][_0xe307('0xb8')](util[_0xe307('0x2d')]('math\x20%s',_0x25fc77[_0xe307('0x166')]));var _0x4e1803=eval(_0x25fc77[_0xe307('0x166')]);if(!this[_0xe307('0x8d')](_0x25fc77[_0xe307('0xe8')])){return this[_0xe307('0xf')][_0xe307('0xb8')](_0xe307('0xe9'));}var _0x169923=this['getVariable']['sync'](this,_0x25fc77[_0xe307('0xe8')]);if(!_0x169923){return this[_0xe307('0xf')][_0xe307('0x35')](_0x25fc77,_0xe307('0xea'));}if(_[_0xe307('0xa5')](_0x4e1803)){var _0x2c1e0c=this;_0x4e1803[_0xe307('0xec')](function(_0x428f5f,_0x5e40e6){_0x2c1e0c[_0xe307('0xf')]['setVariable'](util[_0xe307('0x2d')]('%s[%s]',_0x169923,_0x5e40e6),_0x428f5f);});return this[_0xe307('0xf')][_0xe307('0xb8')](util[_0xe307('0x2d')](_0xe307('0x168'),_0x169923));}else{return this[_0xe307('0xf')][_0xe307('0xa9')](_0x169923,_0x4e1803);}};AGIVertices[_0xe307('0x12')]['menu']=function(_0x559327){logger[_0xe307('0x31')](util[_0xe307('0x2d')](_0xe307('0x169'),_0x559327[_0xe307('0x3b')]));if(_0x559327[_0xe307('0xb3')]===0x0){return this[_0xe307('0xb2')](_0x559327);}_0x559327[_0xe307('0xb3')]-=0x1;if(!this[_0xe307('0x8d')](_0x559327[_0xe307('0x114')])){return this['channel'][_0xe307('0x35')](_0x559327,_0xe307('0x113'));}var _0x11b07b=this[_0xe307('0x22')][_0xe307('0x7c')](this,_0x559327[_0xe307('0x114')]);if(!_0x11b07b){return this[_0xe307('0xf')][_0xe307('0x35')](_0x559327,'no\x20file\x20audio\x20found');}var _0x13414b=this[_0xe307('0xf')][_0xe307('0x116')](_0x11b07b,_0x559327[_0xe307('0x117')],_0x559327[_0xe307('0x16a')]);var _0x49c132=_0x13414b[_0xe307('0xb0')];if(_0x13414b[_0xe307('0xb0')]===-0x1){this[_0xe307('0x39')][_0xe307('0x7c')](this,_0x559327,'-1');return _0x13414b;}else if(_0x13414b[_0xe307('0xae')]===_0xe307('0x71')){_0x13414b[_0xe307('0xb0')]=_0x13414b[_0xe307('0xb0')]['length']>0x0?_0x13414b[_0xe307('0xb0')]:'t';}else if(_[_0xe307('0x4c')](_0x13414b[_0xe307('0xb0')])){_0x13414b['result']='#';_0x49c132='#';}if(!this[_0xe307('0x8d')](_0x559327['variable_id'])){this[_0xe307('0xf')][_0xe307('0xb8')]('no\x20variable\x20selected\x20for\x20the\x20result');}else{var _0x133b66=this['getVariable']['sync'](this,_0x559327[_0xe307('0xe8')]);if(!_0x133b66){return this[_0xe307('0xf')]['error'](_0x559327,_0xe307('0xea'));}this[_0xe307('0xf')]['setVariable'](_0x133b66,_0x49c132);}this[_0xe307('0x39')][_0xe307('0x7c')](this,_0x559327,_0x49c132);return _0x13414b;};AGIVertices['prototype']['noop']=function(_0x46f269){logger[_0xe307('0x31')](util['format']('Enter\x20in\x20NOOP\x20(%s)\x20block',_0x46f269[_0xe307('0x3b')]));return this[_0xe307('0xf')][_0xe307('0xb8')](_0x46f269[_0xe307('0x16b')]||_0x46f269[_0xe307('0x3b')]);};AGIVertices[_0xe307('0x12')][_0xe307('0x16c')]=function(_0x9d6026){logger[_0xe307('0x31')](util[_0xe307('0x2d')](_0xe307('0x16d'),_0x9d6026[_0xe307('0x3b')]));if(!this[_0xe307('0x8d')](_0x9d6026[_0xe307('0x15d')])){return this[_0xe307('0xf')][_0xe307('0x35')](_0x9d6026,_0xe307('0x15b'));}logger[_0xe307('0x31')](util[_0xe307('0x2d')](_0xe307('0x15c'),this[_0xe307('0xf')][_0xe307('0x3e')],_0x9d6026[_0xe307('0x15d')]));var _0x296677=this['getPause'][_0xe307('0x7c')](this,_0x9d6026[_0xe307('0x16e')]);var _0x39c2f1=this[_0xe307('0x59')]['sync'](this,_0x9d6026[_0xe307('0x15d')],_0x296677);if(_0x39c2f1){logger[_0xe307('0x31')](util['format'](_0xe307('0x15e'),this['channel'][_0xe307('0x3e')],_0x9d6026[_0xe307('0x15d')]));this['channel']['noop'](util[_0xe307('0x2d')]('AGENT\x20%s\x20FOUND\x20BY',this[_0xe307('0xf')]['callerid'],_0x9d6026[_0xe307('0x15d')]));return{'code':0xc8,'result':_0xe307('0x15f')};}else{logger[_0xe307('0x31')](util['format']('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this['channel']['callerid'],_0x9d6026[_0xe307('0x15d')]));this[_0xe307('0xf')]['noop'](util[_0xe307('0x2d')]('AGENT\x20%s\x20FOUND\x20BY',this['channel']['callerid'],_0x9d6026['findBy']));return{'code':0xc8,'result':'failure'};}};AGIVertices['prototype']['playback']=function(_0x182daa){logger[_0xe307('0x31')](util['format']('Enter\x20in\x20PLAYBACK\x20(%s)\x20block',_0x182daa[_0xe307('0x3b')]));if(!this[_0xe307('0x8d')](_0x182daa[_0xe307('0x114')])){return this[_0xe307('0xf')]['error'](_0x182daa,_0xe307('0x113'));}var _0x54916e=this['getSound'][_0xe307('0x7c')](this,_0x182daa[_0xe307('0x114')]);if(!_0x54916e){return this[_0xe307('0xf')][_0xe307('0x35')](_0x182daa,_0xe307('0x115'));}var _0x4ace14=this['channel'][_0xe307('0xb6')](_0xe307('0x16f'),[_0x54916e,_0x182daa[_0xe307('0xf6')]]);if(_0x4ace14[_0xe307('0xb0')]===-0x1){return _0x4ace14;}return this[_0xe307('0xf')][_0xe307('0xb8')](util[_0xe307('0x2d')](_0xe307('0xd4'),_0xe307('0x16f'),_0x54916e));};AGIVertices[_0xe307('0x12')]['queue']=function(_0x4a0f05){logger[_0xe307('0x31')](util['format'](_0xe307('0x170'),_0x4a0f05[_0xe307('0x3b')]));if(!this[_0xe307('0x8d')](_0x4a0f05[_0xe307('0x171')])){return this['channel'][_0xe307('0x35')](_0x4a0f05,_0xe307('0x172'));}var _0x465cff='';var _0x4dc3d8=parseInt(_0x4a0f05[_0xe307('0x171')],0xa);if(isNaN(_0x4dc3d8)){_0x465cff=_0x4a0f05[_0xe307('0x171')];}else{_0x465cff=this[_0xe307('0x18')]['sync'](this,_0x4a0f05[_0xe307('0x171')]);if(!_0x465cff){return this[_0xe307('0xf')]['error'](_0x4a0f05,_0xe307('0x173'));}}var _0x12e056='';if(this['isConfigured'](_0x4a0f05[_0xe307('0x114')])){var _0x39a040=this[_0xe307('0x22')][_0xe307('0x7c')](this,_0x4a0f05[_0xe307('0x114')]);if(_0x39a040){_0x12e056=_0x39a040;}}this[_0xe307('0x39')]['sync'](this,_0x4a0f05,_0x465cff);if(_0x4a0f05['opts'][_0xe307('0x174')]('x')<0x0){_0x4a0f05[_0xe307('0xf6')]+='x';}if(_0x4a0f05[_0xe307('0xf6')][_0xe307('0x174')]('X')<0x0){_0x4a0f05[_0xe307('0xf6')]+='X';}this['channel'][_0xe307('0xa9')](_0xe307('0x175'),_0x465cff?_0x465cff[_0xe307('0x176')]():'');var _0x21ea9a=this[_0xe307('0xf')]['exec'](_0xe307('0x177'),[_0x465cff,_0x4a0f05[_0xe307('0xf6')],_0x4a0f05[_0xe307('0x6e')],_0x12e056,_0x4a0f05['timeout'],_0x4a0f05[_0xe307('0xc5')],_0x4a0f05[_0xe307('0x178')],_0x4a0f05[_0xe307('0x179')],'',_0x4a0f05[_0xe307('0x17a')]]);if(_0x21ea9a[_0xe307('0xb0')]===-0x1){return _0x21ea9a;}return this[_0xe307('0xf')][_0xe307('0xb8')](util[_0xe307('0x2d')]('Executed\x20command\x20%s\x20%s',_0xe307('0x177'),_0x465cff));};AGIVertices[_0xe307('0x12')][_0xe307('0x17b')]=function(_0x37083a){logger[_0xe307('0x31')](util['format']('Enter\x20in\x20RECORD\x20(%s)\x20block',_0x37083a[_0xe307('0x3b')]));var _0x4deb2a=_0x37083a[_0xe307('0x17c')]||'wav';var _0x267aaa=util['format'](_0xe307('0x17d'),this[_0xe307('0xf')][_0xe307('0x3a')],rs['generate'](0x5));var _0x3b7b37=util['format'](_0xe307('0x17e'),FILES_PATH,_0x267aaa,_0x4deb2a);var _0x3daa44=util[_0xe307('0x2d')]('%s/recordings/%s',FILES_PATH,_0x267aaa);this[_0xe307('0x3f')][_0xe307('0x7c')](this,_0x37083a,_0x267aaa,_0x3b7b37);this[_0xe307('0xf')][_0xe307('0xa9')](_0xe307('0x17f'),_0x267aaa);logger[_0xe307('0x31')](_0xe307('0x180'),_0x3daa44,_0x4deb2a,_0x37083a['escape_digits'],_0x37083a[_0xe307('0x71')]);return this[_0xe307('0xf')]['recordFile'](_0x3daa44,_0x4deb2a,_0x37083a[_0xe307('0x181')],_0x37083a[_0xe307('0x71')],undefined,!![]);};AGIVertices[_0xe307('0x12')][_0xe307('0x182')]=function(_0x2e80e2){logger['info'](util[_0xe307('0x2d')]('Enter\x20in\x20RESTAPI\x20(%s)\x20block',_0x2e80e2[_0xe307('0x3b')]));if(!this[_0xe307('0x8d')](_0x2e80e2[_0xe307('0x6e')])){return this[_0xe307('0xf')][_0xe307('0xb8')]('no\x20url\x20configured');}var _0x55437b=this[_0xe307('0x6d')]['sync'](this,_0x2e80e2);logger[_0xe307('0x31')](util[_0xe307('0x2d')]('Response:',util[_0xe307('0x183')](_0x55437b,{'showHidden':![],'depth':null})));if(!this[_0xe307('0x8d')](_0x2e80e2[_0xe307('0xe8')])){return this[_0xe307('0xf')][_0xe307('0xb8')]('no\x20variable\x20selected\x20for\x20the\x20response');}var _0x416a87=this[_0xe307('0x13')][_0xe307('0x7c')](this,_0x2e80e2[_0xe307('0xe8')]);if(!_0x416a87){return this['channel'][_0xe307('0x35')](_0x2e80e2,'no\x20variable\x20found');}this[_0xe307('0xf')][_0xe307('0xa9')](util[_0xe307('0x2d')](_0xe307('0x184'),_0x416a87),_0x55437b[_0xe307('0x80')]?_0x55437b[_0xe307('0x80')]:'200');this[_0xe307('0xf')][_0xe307('0xa9')](util[_0xe307('0x2d')](_0xe307('0x185'),_0x416a87),_0x55437b[_0xe307('0x81')]?_0x55437b[_0xe307('0x81')]:'OK');if(_0x55437b[_0xe307('0x76')]){try{this['saveRestApiResult'](_0x55437b[_0xe307('0x76')],_0x416a87);}catch(_0x2e851c){logger['error'](util['format'](_0xe307('0x186'),_0x416a87));}}return this[_0xe307('0xf')]['noop'](util[_0xe307('0x2d')](_0xe307('0xef'),_0x416a87));};AGIVertices[_0xe307('0x12')][_0xe307('0x187')]=function(_0x4234e0){logger[_0xe307('0x31')](util[_0xe307('0x2d')](_0xe307('0x188'),_0x4234e0['label']));return this[_0xe307('0xf')][_0xe307('0x189')](_0x4234e0[_0xe307('0x18a')][_0xe307('0x60')](/\s+/g,''),_0x4234e0['escape_digits']);};AGIVertices[_0xe307('0x12')][_0xe307('0x18b')]=function(_0x274798){logger[_0xe307('0x31')](util[_0xe307('0x2d')](_0xe307('0x18c'),_0x274798[_0xe307('0x3b')]));return this['channel'][_0xe307('0x18d')](_0x274798[_0xe307('0x70')][_0xe307('0x60')](/\s+/g,''),_0x274798[_0xe307('0x181')]);};AGIVertices[_0xe307('0x12')][_0xe307('0x18e')]=function(_0x2d0b83){logger['info'](util[_0xe307('0x2d')](_0xe307('0x18f'),_0x2d0b83[_0xe307('0x3b')]));return this[_0xe307('0xf')][_0xe307('0x190')](_0x2d0b83[_0xe307('0x64')],_0x2d0b83[_0xe307('0x181')]);};AGIVertices[_0xe307('0x12')][_0xe307('0x191')]=function(_0x17a712){logger[_0xe307('0x31')](util[_0xe307('0x2d')](_0xe307('0x192'),_0x17a712[_0xe307('0x3b')]));if(!this['isConfigured'](_0x17a712[_0xe307('0x193')])){return this[_0xe307('0xf')][_0xe307('0xb8')]('no\x20mail\x20account\x20configured');}var _0x176c06=this[_0xe307('0x194')][_0xe307('0x7c')](this,_0x17a712[_0xe307('0x193')]);if(!_0x176c06||!_0x176c06[_0xe307('0x195')]){return this['channel'][_0xe307('0x35')](_0x17a712,'no\x20mail\x20account\x20found');}var _0x23a8fe={'from':util[_0xe307('0x2d')]('\x22%s\x22\x20<%s>',_0x176c06[_0xe307('0x16')],_0x176c06[_0xe307('0x196')]||_0x176c06['Smtp'][_0xe307('0x197')]),'to':_0x17a712['to']||'','cc':_0x17a712['cc']||'','bcc':_0x17a712[_0xe307('0x198')]||'','subject':_0x17a712['subject'],'html':_0x17a712[_0xe307('0x64')],'text':_0x17a712[_0xe307('0x64')]};var _0x2d060d={'tls':{'rejectUnauthorized':![]}};if(_0x176c06[_0xe307('0x195')][_0xe307('0x199')]){_0x2d060d[_0xe307('0x199')]=_0x176c06['Smtp'][_0xe307('0x199')];}else{_0x2d060d[_0xe307('0x19a')]=_0x176c06[_0xe307('0x195')][_0xe307('0x19a')];_0x2d060d[_0xe307('0x19b')]=_0x176c06[_0xe307('0x195')][_0xe307('0x19b')];_0x2d060d[_0xe307('0x19c')]=_0x176c06['Smtp'][_0xe307('0x19c')];}if(_0x176c06[_0xe307('0x195')]['authentication']){_0x2d060d['auth']={'user':_0x176c06[_0xe307('0x195')]['user'],'pass':_0x176c06[_0xe307('0x195')][_0xe307('0x19d')]};}if(this[_0xe307('0x8d')](_0x17a712['template_id'])){}logger[_0xe307('0xf1')](_0xe307('0x19e'),JSON[_0xe307('0x7e')](_0x23a8fe));this[_0xe307('0x39')]['sync'](this,_0x17a712,_0x17a712[_0xe307('0x193')]);this[_0xe307('0xf')]['noop'](util[_0xe307('0x2d')](_0xe307('0x19f'),_0x176c06[_0xe307('0x16')]));this[_0xe307('0x26')][_0xe307('0x7c')](this,_0x2d060d,_0x23a8fe);return this[_0xe307('0xf')][_0xe307('0xb8')](_0xe307('0x1a0'));};AGIVertices[_0xe307('0x12')][_0xe307('0x1a1')]=function(_0x5f3158){logger[_0xe307('0x31')](util['format'](_0xe307('0x1a2'),_0x5f3158[_0xe307('0x3b')]));return this['channel']['noop'](_0xe307('0x1a3'));};AGIVertices[_0xe307('0x12')]['sendSMS']=function(_0x352fde){logger['info'](util[_0xe307('0x2d')](_0xe307('0x1a4'),_0x352fde[_0xe307('0x3b')]));if(!this['isConfigured'](_0x352fde[_0xe307('0x1a5')])){return this['channel'][_0xe307('0xb8')](_0xe307('0x1a6'));}var _0x7e0460=this[_0xe307('0x37')][_0xe307('0x7c')](this,_0x352fde['sms_account_id']);if(!_0x7e0460){return this[_0xe307('0xf')][_0xe307('0x35')](_0x352fde,'no\x20sms\x20account\x20found');}var _0x3d5584={'body':_0x352fde['sms_text'],'phone':_0x352fde['to']||'','SmsAccountId':_0x7e0460['id']};logger[_0xe307('0xf1')](_0xe307('0x1a7'),JSON[_0xe307('0x7e')](_0x3d5584));this[_0xe307('0x39')][_0xe307('0x7c')](this,_0x352fde,_0x352fde[_0xe307('0x1a5')]);this['channel'][_0xe307('0xb8')](util[_0xe307('0x2d')](_0xe307('0x1a8'),_0x7e0460[_0xe307('0x16')]));this[_0xe307('0x1a9')][_0xe307('0x7c')](this,_0x3d5584);return this[_0xe307('0xf')]['noop']('Sms\x20message\x20added\x20to\x20outgoing\x20process');};AGIVertices[_0xe307('0x12')][_0xe307('0x1aa')]=function(_0x508ad8){logger[_0xe307('0x31')](util[_0xe307('0x2d')](_0xe307('0x1ab'),_0x508ad8[_0xe307('0x3b')]));if(!this[_0xe307('0x8d')](_0x508ad8[_0xe307('0xe8')])){return this[_0xe307('0xf')][_0xe307('0x35')](_0x508ad8,_0xe307('0x1ac'));}var _0x1f2590=this[_0xe307('0x13')][_0xe307('0x7c')](this,_0x508ad8['variable_id']);if(!_0x1f2590){return this['channel'][_0xe307('0x35')](_0x508ad8,'no\x20variable\x20found');}return this[_0xe307('0xf')]['setVariable'](_0x1f2590,_0x508ad8[_0xe307('0x1ad')]);};AGIVertices[_0xe307('0x12')][_0xe307('0x1ae')]=function(_0x31a2d8){logger[_0xe307('0x31')](util[_0xe307('0x2d')]('Enter\x20in\x20START\x20(%s)\x20block',_0x31a2d8[_0xe307('0x3b')]));this['channel'][_0xe307('0xb8')](_0xe307('0x1af'));if(_0x31a2d8[_0xe307('0xca')]===_0xe307('0x1b0')){this[_0xe307('0xf')][_0xe307('0xb8')](_0xe307('0x1b1'));return this[_0xe307('0xf')][_0xe307('0xca')]();}return this['channel'][_0xe307('0xb8')](_0xe307('0x1b2'));};AGIVertices['prototype'][_0xe307('0x1b3')]=function(_0x666a97){logger[_0xe307('0x31')](util[_0xe307('0x2d')](_0xe307('0x1b4'),_0x666a97[_0xe307('0x3b')]));if(!this[_0xe307('0x8d')](_0x666a97[_0xe307('0x1b5')])){return this[_0xe307('0xf')]['error'](_0x666a97,'no\x20subproject\x20selected');}var _0x2b5365=this[_0xe307('0x1a')][_0xe307('0x7c')](this,_0x666a97[_0xe307('0x1b5')]);if(!this[_0xe307('0x8d')](_0x2b5365)){return this[_0xe307('0xf')][_0xe307('0x35')](_0x666a97,util[_0xe307('0x2d')](_0xe307('0x1b6'),_0x666a97[_0xe307('0x1b5')]));}if(_0x2b5365===this[_0xe307('0xf')]['arg_1']){return this[_0xe307('0xf')][_0xe307('0x35')](_0x666a97,'project\x20in\x20subproject\x20must\x20be\x20different\x20from\x20the\x20called\x20project');}this[_0xe307('0x39')][_0xe307('0x7c')](this,_0x666a97,_0x2b5365);var _0x418daf=this['channel'][_0xe307('0xb6')](_0xe307('0x1b7'),util[_0xe307('0x2d')](_0xe307('0x1b8'),config[_0xe307('0xc5')]['host']||_0xe307('0x1b9'),_0x2b5365,this['channel'][_0xe307('0x3d')]));if(_0x418daf[_0xe307('0xb0')]===-0x1){return _0x418daf;}return this[_0xe307('0xf')][_0xe307('0xb8')](util[_0xe307('0x2d')](_0xe307('0xd4'),'AGI',_0x2b5365));};AGIVertices[_0xe307('0x12')][_0xe307('0x1ba')]=function(_0x3844cc){logger[_0xe307('0x31')](util[_0xe307('0x2d')]('Enter\x20in\x20SYSTEM\x20(%s)\x20block',_0x3844cc['label']));var _0x1282ff=this[_0xe307('0x1bb')]['sync'](this,_0x3844cc[_0xe307('0x1bc')]);this[_0xe307('0x39')][_0xe307('0x7c')](this,_0x3844cc,_0x3844cc[_0xe307('0x1bc')]);if(this['isConfigured'](_0x3844cc[_0xe307('0xe8')])){var _0x42fae6=this[_0xe307('0x13')][_0xe307('0x7c')](this,_0x3844cc[_0xe307('0xe8')]);if(_0x42fae6){this[_0xe307('0xf')][_0xe307('0xa9')](_0x42fae6,_0x1282ff);return this[_0xe307('0xf')]['noop'](util[_0xe307('0x2d')](_0xe307('0x1bd'),_0x3844cc['command'],_0x42fae6));}}return this[_0xe307('0xf')][_0xe307('0xb8')](util[_0xe307('0x2d')](_0xe307('0x1be'),_0x3844cc[_0xe307('0x1bc')]));};AGIVertices[_0xe307('0x12')][_0xe307('0x1bf')]=function(_0x4cc2ba){logger['info'](util[_0xe307('0x2d')]('Enter\x20in\x20Google\x20Cloud\x20TTS\x20(%s)\x20block',_0x4cc2ba['label']));_0x4cc2ba[_0xe307('0x64')]=_0x4cc2ba[_0xe307('0x64')][_0xe307('0x60')](/(\r\n|\n|\r)/gm,'\x20');if(!this[_0xe307('0x8d')](_0x4cc2ba['apiKey'])){return this['channel']['noop'](_0xe307('0x1c0'));}if(!this[_0xe307('0x8d')](_0x4cc2ba[_0xe307('0x64')])){return this[_0xe307('0xf')][_0xe307('0xb8')](_0xe307('0xd6'));}this['channel'][_0xe307('0xb8')](util[_0xe307('0x2d')](_0xe307('0x1c1'),_0x4cc2ba['text']));var _0x30b4ab=this[_0xe307('0x61')][_0xe307('0x7c')](this,_0x4cc2ba);if(_0x30b4ab){this['channel']['noop'](util[_0xe307('0x2d')](_0xe307('0x1c2'),_0x30b4ab));var _0x112631=this[_0xe307('0xf')][_0xe307('0x125')](_0x30b4ab);try{fs[_0xe307('0x107')](_0x30b4ab+_0xe307('0x157'));}catch(_0x4cc721){logger[_0xe307('0x35')](_0x4cc721);}return _0x112631;}return this[_0xe307('0xf')][_0xe307('0x35')](_0x4cc2ba,_0xe307('0x1c3'));};AGIVertices[_0xe307('0x12')][_0xe307('0x1c4')]=function(_0x4d62af){logger[_0xe307('0x31')](util['format'](_0xe307('0x1c5'),_0x4d62af[_0xe307('0x3b')]));_0x4d62af[_0xe307('0x64')]=_0x4d62af[_0xe307('0x64')][_0xe307('0x60')](/(\r\n|\n|\r)/gm,'\x20');if(!this['isConfigured'](_0x4d62af[_0xe307('0x64')])){return this['channel'][_0xe307('0xb8')]('no\x20text\x20configured');}this[_0xe307('0xf')][_0xe307('0xb8')](util[_0xe307('0x2d')](_0xe307('0x1c6'),_0x4d62af[_0xe307('0x64')]));var _0xc484cf=this[_0xe307('0x6b')]['sync'](this,_0x4d62af);if(_0xc484cf){this[_0xe307('0xf')][_0xe307('0xb8')](util[_0xe307('0x2d')]('Google\x20TTS\x20%s\x20file\x20created',_0xc484cf));var _0x1c028d=this[_0xe307('0xf')]['streamFile'](_0xc484cf);try{fs[_0xe307('0x107')](_0xc484cf+'.wav');}catch(_0x371713){logger[_0xe307('0x35')](_0x371713);}return _0x1c028d;}return this[_0xe307('0xf')]['error'](_0x4d62af,_0xe307('0x1c7'));};AGIVertices[_0xe307('0x12')][_0xe307('0x1c8')]=function(_0xe070fe){logger[_0xe307('0x31')](util['format']('Enter\x20in\x20UNPAUSE\x20(%s)\x20block',_0xe070fe[_0xe307('0x3b')]));if(!this[_0xe307('0x8d')](_0xe070fe['findBy'])){return this['channel'][_0xe307('0x35')](_0xe070fe,_0xe307('0x15b'));}logger['info'](util[_0xe307('0x2d')](_0xe307('0x15c'),this['channel'][_0xe307('0x3e')],_0xe070fe['findBy']));var _0x11e73c=this[_0xe307('0x5a')][_0xe307('0x7c')](this,_0xe070fe['findBy']);if(_0x11e73c){logger[_0xe307('0x31')](util[_0xe307('0x2d')](_0xe307('0x15e'),this['channel'][_0xe307('0x3e')],_0xe070fe[_0xe307('0x15d')]));this[_0xe307('0xf')]['noop'](util[_0xe307('0x2d')]('AGENT\x20%s\x20FOUND\x20BY',this[_0xe307('0xf')][_0xe307('0x3e')],_0xe070fe[_0xe307('0x15d')]));return{'code':0xc8,'result':_0xe307('0x15f')};}else{logger[_0xe307('0x31')](util[_0xe307('0x2d')](_0xe307('0x160'),this[_0xe307('0xf')][_0xe307('0x3e')],_0xe070fe['findBy']));this[_0xe307('0xf')][_0xe307('0xb8')](util['format']('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this[_0xe307('0xf')][_0xe307('0x3e')],_0xe070fe[_0xe307('0x15d')]));return{'code':0xc8,'result':_0xe307('0x161')};}};AGIVertices[_0xe307('0x12')][_0xe307('0x1c9')]=function(_0x1efdd7){logger['info'](util[_0xe307('0x2d')](_0xe307('0x1ca'),_0x1efdd7[_0xe307('0x3b')]));var _0x1f3798=this['channel'][_0xe307('0xb6')]('VOICEMAIL',[_0x1efdd7['mailbox'],_0x1efdd7[_0xe307('0x84')]]);if(_0x1f3798['result']===-0x1){return _0x1f3798;}return this[_0xe307('0xf')][_0xe307('0xb8')](util['format']('Executed\x20command\x20%s\x20%s',_0xe307('0x1cb'),_0x1efdd7[_0xe307('0x1cc')]));};AGIVertices[_0xe307('0x12')]['vswitch']=function(_0x1950f6){logger['info'](util[_0xe307('0x2d')]('Enter\x20in\x20SWITCH\x20(%s)\x20block',_0x1950f6[_0xe307('0x3b')]));if(!this['isConfigured'](_0x1950f6[_0xe307('0xe8')])){return this['channel'][_0xe307('0x35')](_0x1950f6,_0xe307('0x1ac'));}var _0x2cd01b=this[_0xe307('0x13')][_0xe307('0x7c')](this,_0x1950f6[_0xe307('0xe8')]);if(!_0x2cd01b){return this['channel'][_0xe307('0x35')](_0x1950f6,'no\x20variable\x20found');}var _0x2aa128=this['channel'][_0xe307('0x13')](_0x2cd01b);return{'code':0xc8,'result':_0x2aa128[_0xe307('0xae')]?_0x2aa128[_0xe307('0xae')]:'-'};};String[_0xe307('0x12')][_0xe307('0xad')]=function(_0x4ef033,_0x2fe23e){return this[_0xe307('0xab')](_0x4ef033)[_0xe307('0x1cd')](_0x2fe23e);};module[_0xe307('0x1ce')]=AGIVertices;