Built motion from commit 129fb4d95212661e48f0db455e75d668addbaddf. Version 3.0.0...
[motion-next.git] / server / services / agi / scripts / index.js
index 57cd27f..cb7671c 100644 (file)
@@ -1 +1 @@
-const a1041_0x5791=['statusCode','agi','googleDialogflow','action','util','base64','message','get','boolValue','@google-cloud/dialogflow','nda','googleCloudTTS\x20path','sox','languageCode','endConversation','metadata','MP3','Data','google-tts-api','name','ssml','googleDialogflowV2','protocol','goggleTTS\x20path','%s?apikey=%s&action=convert&text=%s&voice=%s&speed=%s&format=mp3','queryResult','input','createWriteStream','statusMessage','request\x20to\x20','split','POST','.mp3','./sestek','results','https','randomstring','freeform=3','querystring','model=%s','from','uri','isFallbackIntent','../../../config/logger','lex','?key=','join','transcript','projectAgentSessionPath','resolve','diagnosticInfo','queryText','WHAT_EVER','fulfillment','https:','error','close','googleCloudTTS','intentDetectionConfidence','code','./aws','then','readFileSync','length','googleTTS','responseId','awsLex','asr','end','fields','sestekNDA','CustomActionData','chmodSync','AudioFromTts','status','channelData','audioConfig','polly','pathname','request-promise-native','textRequest','stringify','host','finish','toString','actionIncomplete','audiofile','info','confidence','audioContent','Tilde\x20ASR\x20transcription','start','.wav','url','./google','detectIntent','parse','[%s]\x20%s:%s','https://api.ispeech.org/api/rest','map','voice','intent','alternatives','777','data','resolvedQuery','unlink','finish\x20download\x20file','text','result','tmp','\x20failed,\x20status\x20code\x20=\x20','source','finish\x20to\x20convert','isFallback','wav','generate','tildeASR','download\x20error','displayName','format','path','text:synthesize','writeFileSync','catch','apiai-promise','./tilde','http'];(function(_0x1479ce,_0x5791d1){const _0x551c06=function(_0x5b31d1){while(--_0x5b31d1){_0x1479ce['push'](_0x1479ce['shift']());}};_0x551c06(++_0x5791d1);}(a1041_0x5791,0x177));const a1041_0x551c=function(_0x1479ce,_0x5791d1){_0x1479ce=_0x1479ce-0x0;let _0x551c06=a1041_0x5791[_0x1479ce];return _0x551c06;};const _0x5d5142=a1041_0x551c;'use strict';const fs=require('fs'),path=require(_0x5d5142('0x2')),http=require(_0x5d5142('0x8')),https=require(_0x5d5142('0x2c')),{URL}=require(_0x5d5142('0x66')),rs=require(_0x5d5142('0x2d')),sox=require(_0x5d5142('0x15')),rp=require(_0x5d5142('0x58')),util=require(_0x5d5142('0xd')),querystring=require(_0x5d5142('0x2f')),tts=require(_0x5d5142('0x1b')),apiai=require(_0x5d5142('0x6')),md5=require('md5'),google=require(_0x5d5142('0x67')),aws=require(_0x5d5142('0x45')),tilde=require(_0x5d5142('0x7')),sestek=require(_0x5d5142('0x2a')),dialogflow=require(_0x5d5142('0x12')),logger=require(_0x5d5142('0x34'))(_0x5d5142('0xa')),ISPEECH_API=_0x5d5142('0x6b');function downloadFile(_0x5b31d1,_0x440a76){return new Promise(function(_0x3df1c1,_0x5a6ee7){const _0x591f0b=a1041_0x551c,_0x2265ca=new URL(_0x5b31d1),_0x298c17=_0x2265ca[_0x591f0b('0x1f')]===_0x591f0b('0x3f')?https:http,_0x455028={'host':_0x2265ca[_0x591f0b('0x5b')],'path':_0x2265ca[_0x591f0b('0x57')],'headers':{'user-agent':_0x591f0b('0x3d')}};_0x298c17['get'](_0x455028,function(_0x2dfe00){const _0x28abbb=_0x591f0b;if(_0x2dfe00[_0x28abbb('0x9')]!==0xc8){logger['error'](_0x28abbb('0x26')+_0x5b31d1+_0x28abbb('0x78')+_0x2dfe00[_0x28abbb('0x9')]+'\x20('+_0x2dfe00['statusMessage']+')'),_0x5a6ee7(new Error(_0x28abbb('0x26')+_0x5b31d1+_0x28abbb('0x78')+_0x2dfe00['statusCode']+'\x20('+_0x2dfe00[_0x28abbb('0x25')]+')'));return;}const _0x2fb8b0=fs[_0x28abbb('0x24')](_0x440a76);_0x2fb8b0['on'](_0x28abbb('0x5c'),function(){const _0x1217a7=_0x28abbb;logger[_0x1217a7('0x60')](_0x1217a7('0x74')),_0x2fb8b0[_0x1217a7('0x41')](_0x3df1c1);}),_0x2fb8b0['on'](_0x28abbb('0x40'),function(_0x2f8f05){const _0x4c19eb=_0x28abbb;fs['unlink'](_0x440a76),logger['error'](_0x4c19eb('0x7f'),_0x2f8f05),_0x5a6ee7(_0x2f8f05);}),_0x2dfe00['pipe'](_0x2fb8b0);})['on'](_0x591f0b('0x40'),function(_0x31d402){logger['error'](_0x31d402),_0x5a6ee7(_0x31d402);})[_0x591f0b('0x4d')]();});}function uploadFile(_0x218bfb){return new Promise(function(_0x5cbf4c,_0x4736d0){const _0x2fd52e=a1041_0x551c,_0x1d1c8a=new URL(_0x218bfb),_0x217c6c=_0x1d1c8a[_0x2fd52e('0x1f')]==='https:'?https:http,_0x375dae={'host':_0x1d1c8a['host'],'path':_0x1d1c8a['pathname'],'headers':{'user-agent':_0x2fd52e('0x3d')}};_0x217c6c[_0x2fd52e('0x10')](_0x375dae,function(_0x44cfe3){const _0x138452=_0x2fd52e;if(_0x44cfe3[_0x138452('0x9')]!==0xc8){_0x4736d0(new Error(_0x138452('0x26')+_0x218bfb+_0x138452('0x78')+_0x44cfe3['statusCode']+'\x20('+_0x44cfe3[_0x138452('0x25')]+')'));return;}let _0x4058d4='';_0x44cfe3['on'](_0x138452('0x71'),function(_0x30d434){_0x4058d4+=_0x30d434;}),_0x44cfe3['on'](_0x138452('0x4d'),function(){_0x5cbf4c(_0x4058d4);});})['on'](_0x2fd52e('0x40'),function(_0x22ae3a){_0x4736d0(_0x22ae3a);})[_0x2fd52e('0x4d')]();});}function convertFile(_0x4917a9,_0x374a5b){return new Promise(function(_0x587e51,_0x42c314){const _0x57e917=a1041_0x551c,_0x229d28=sox['transcode'](_0x4917a9,_0x374a5b,{'sampleRate':0x1f40,'format':_0x57e917('0x7c'),'channelCount':0x1,'bitRate':0xc0*0x400,'compressionQuality':0x5});_0x229d28['on'](_0x57e917('0x40'),function(_0x1a4915){const _0x3f8534=_0x57e917;logger[_0x3f8534('0x40')]('error\x20convert',_0x1a4915),_0x42c314(_0x1a4915);}),_0x229d28['on'](_0x57e917('0x4d'),function(){const _0x53605a=_0x57e917;logger[_0x53605a('0x60')](_0x53605a('0x7a')),_0x587e51();}),_0x229d28[_0x57e917('0x64')]();});}function base64Decode(_0x940178,_0x5d7dcb){const _0x1c17e=_0x5d5142,_0x4f8982=path[_0x1c17e('0x3a')](__dirname,'tmp',rs['generate'](0x4)+'.wav');return fs[_0x1c17e('0x4')](_0x4f8982,_0x940178,_0x1c17e('0xe')),convertFile(_0x4f8982,_0x5d7dcb)['then'](function(){const _0x4ff63b=_0x1c17e;try{fs[_0x4ff63b('0x73')](_0x4f8982),fs[_0x4ff63b('0x51')](_0x5d7dcb,'777');}catch(_0x3e0a50){logger[_0x4ff63b('0x40')](_0x3e0a50);}return _0x5d7dcb[_0x4ff63b('0x27')]('.')[0x0];});}function base64Encode(_0x222213){const _0x1d32f1=_0x5d5142,_0x51cbfc=fs[_0x1d32f1('0x47')](_0x222213);return Buffer[_0x1d32f1('0x31')](_0x51cbfc)[_0x1d32f1('0x5d')](_0x1d32f1('0xe'));}exports[_0x5d5142('0x42')]=function(_0x137d9f,_0x55147b,_0x2c4fc7,_0x175ff4,_0x1c821a){const _0x5522e9=_0x5d5142;let _0x4ea6e7,_0x314413;const _0x15784a='https://texttospeech.googleapis.com/v1/',_0x1c50e2=_0x5522e9('0x36')+_0x137d9f,_0x45336e={};_0x55147b===_0x5522e9('0x1d')?_0x45336e['input']={'ssml':_0x2c4fc7}:_0x45336e[_0x5522e9('0x23')]={'text':_0x2c4fc7};_0x45336e[_0x5522e9('0x6d')]={'languageCode':_0x175ff4,'ssmlGender':_0x1c821a},_0x45336e[_0x5522e9('0x55')]={'audioEncoding':_0x5522e9('0x19'),'sampleRateHertz':0x1f40};const _0x22e75b={'url':_0x15784a+_0x5522e9('0x3')+_0x1c50e2,'method':_0x5522e9('0x28'),'json':!![],'body':_0x45336e};return rp(_0x22e75b)[_0x5522e9('0x46')](function(_0x239417){return new Promise(function(_0x57df30,_0x52757f){const _0x27b377=a1041_0x551c;_0x4ea6e7=path[_0x27b377('0x3a')](__dirname,_0x27b377('0x77'),rs[_0x27b377('0x7d')](0x4)+_0x27b377('0x29'));const _0x3657a4=Buffer[_0x27b377('0x31')](_0x239417[_0x27b377('0x62')],_0x27b377('0xe'));return fs['writeFile'](_0x4ea6e7,_0x3657a4,function(_0xb959a6){_0x52757f(_0xb959a6);},function(_0x2afc66){const _0x3e4158=_0x27b377;fs[_0x3e4158('0x51')](_0x4ea6e7,_0x3e4158('0x70')),_0x57df30(_0x2afc66);});});})[_0x5522e9('0x46')](function(){const _0x5cfc7e=_0x5522e9;return _0x314413=path[_0x5cfc7e('0x3a')](__dirname,'tmp',rs['generate'](0x4)+_0x5cfc7e('0x65')),convertFile(_0x4ea6e7,_0x314413);})['then'](function(){const _0x4bfa5a=_0x5522e9;try{fs[_0x4bfa5a('0x73')](_0x4ea6e7),fs[_0x4bfa5a('0x51')](_0x314413,'777');}catch(_0x177e2e){logger['error'](_0x177e2e);}return logger[_0x4bfa5a('0x60')](_0x4bfa5a('0x14'),_0x314413['split']('.')[0x0]),_0x314413[_0x4bfa5a('0x27')]('.')[0x0];});},exports[_0x5d5142('0x49')]=function(_0x53a34c,_0x22883d){const _0x65b90e=_0x5d5142;let _0x18aa98,_0x14c5f0;return tts(_0x53a34c,_0x22883d||'en',0x1)[_0x65b90e('0x46')](function(_0x4e1595){const _0x35f203=_0x65b90e;return logger[_0x35f203('0x60')](_0x4e1595),_0x18aa98=path[_0x35f203('0x3a')](__dirname,_0x35f203('0x77'),rs[_0x35f203('0x7d')](0x4)+_0x35f203('0x29')),downloadFile(_0x4e1595,_0x18aa98);})['then'](function(){const _0x165ebb=_0x65b90e;return _0x14c5f0=path[_0x165ebb('0x3a')](__dirname,_0x165ebb('0x77'),rs[_0x165ebb('0x7d')](0x4)+_0x165ebb('0x65')),convertFile(_0x18aa98,_0x14c5f0);})[_0x65b90e('0x46')](function(){const _0x16b1e5=_0x65b90e;try{fs[_0x16b1e5('0x73')](_0x18aa98),fs['chmodSync'](_0x14c5f0,_0x16b1e5('0x70'));}catch(_0x50264f){logger['error'](_0x50264f);}return logger[_0x16b1e5('0x60')](_0x16b1e5('0x20'),_0x14c5f0['split']('.')[0x0]),_0x14c5f0[_0x16b1e5('0x27')]('.')[0x0];});},exports['googleASR']=function(_0x4bf789,_0x9824b8,_0x5adad1){const _0x1ea6de=_0x5d5142;return google[_0x1ea6de('0x4c')](_0x4bf789,_0x9824b8,_0x5adad1)['then'](function(_0x4a68f7){const _0x12da87=_0x1ea6de;return logger[_0x12da87('0x60')](_0x4a68f7[_0x12da87('0x32')]),rp(_0x4a68f7);})[_0x1ea6de('0x46')](function(_0x42639f){const _0x1bb558=_0x1ea6de;let _0x4df0cf='',_0x2aedb4=0x0;try{fs[_0x1bb558('0x73')](_0x4bf789);}catch(_0x2c5531){logger[_0x1bb558('0x40')](_0x2c5531);}return _0x42639f&&_0x42639f[_0x1bb558('0x2b')]&&(_0x4df0cf=_0x42639f['results']['map'](function(_0x4baef7){const _0x132fe6=_0x1bb558;return _0x4baef7&&_0x4baef7[_0x132fe6('0x6f')][0x0]&&_0x4baef7['alternatives'][0x0]['transcript']?_0x4baef7[_0x132fe6('0x6f')][0x0][_0x132fe6('0x38')]:'';})['join']('\x0a'),_0x2aedb4=_0x42639f[_0x1bb558('0x2b')][_0x1bb558('0x6c')](function(_0x177f47){const _0x328309=_0x1bb558;return _0x177f47&&_0x177f47[_0x328309('0x6f')][0x0]&&_0x177f47['alternatives'][0x0][_0x328309('0x61')]?_0x177f47[_0x328309('0x6f')][0x0]['confidence']:0x0;})[_0x1bb558('0x37')]('\x0a')),logger[_0x1bb558('0x60')]('googleASR\x20transcription',_0x4df0cf),logger[_0x1bb558('0x60')]('googleASR\x20confidence',_0x2aedb4),{'transcript':_0x4df0cf,'confidence':_0x2aedb4};})[_0x1ea6de('0x5')](function(_0x4b50b5){const _0x11437d=_0x1ea6de;logger[_0x11437d('0x40')](_0x11437d('0x6a'),_0x4b50b5['statusCode'],_0x4b50b5['name'],_0x4b50b5[_0x11437d('0xf')]);});},exports[_0x5d5142('0xb')]=function(_0x29ad32,_0x3e04fc,_0x3499ed,_0x1327a1){const _0x3fbda0=_0x5d5142,_0x36b6d8=apiai(_0x3e04fc,{'language':_0x1327a1||'en'});return _0x36b6d8[_0x3fbda0('0x59')](_0x3499ed,{'sessionId':md5(_0x29ad32)})[_0x3fbda0('0x46')](function(_0x213871){const _0x5f422a=_0x3fbda0;return logger[_0x5f422a('0x60')](JSON[_0x5f422a('0x5a')](_0x213871)),{'source':_0x213871[_0x5f422a('0x76')][_0x5f422a('0x79')],'resolvedQuery':_0x213871['result'][_0x5f422a('0x72')],'action':_0x213871[_0x5f422a('0x76')][_0x5f422a('0xc')],'actionIncomplete':_0x213871['result'][_0x5f422a('0x5e')],'speech':_0x213871[_0x5f422a('0x76')][_0x5f422a('0x3e')]['speech'],'score':_0x213871['result']['score'],'statusCode':_0x213871[_0x5f422a('0x53')][_0x5f422a('0x44')],'endConversation':_0x213871[_0x5f422a('0x76')][_0x5f422a('0x18')][_0x5f422a('0x17')]||![],'isFallbackIntent':_0x213871[_0x5f422a('0x76')][_0x5f422a('0x18')][_0x5f422a('0x33')]};});},exports[_0x5d5142('0x1e')]=async function(_0x49a341,_0x511a20,_0x14ee6d,_0x54b509,_0x22549e,_0x588f67){const _0x2f534f=_0x5d5142,_0x33dac6=_0x54b509['replace'](/\\n/g,'\x0a'),_0x4e85df={'credentials':{'private_key':_0x33dac6,'client_email':_0x14ee6d}},_0x2e7046=new dialogflow['SessionsClient'](_0x4e85df),_0x31a962=_0x2e7046[_0x2f534f('0x39')](_0x511a20,md5(_0x49a341)),_0x538c0d={'session':_0x31a962,'queryInput':{'text':{'text':_0x22549e,'languageCode':_0x588f67}}};try{const _0x4ffba6=await _0x2e7046[_0x2f534f('0x68')](_0x538c0d);if(_0x4ffba6&&_0x4ffba6[_0x2f534f('0x48')]){logger[_0x2f534f('0x60')]('Dialogflow\x20V2\x20response:',JSON[_0x2f534f('0x5a')](_0x4ffba6));const _0x453b19=_0x4ffba6[0x0];let _0x16694f;return _0x453b19&&(_0x16694f={'action':_0x453b19['queryResult'][_0x2f534f('0xc')],'allRequiredParamsPresent':_0x453b19[_0x2f534f('0x22')]['allRequiredParamsPresent'],'endConversation':_0x453b19['queryResult'][_0x2f534f('0x3b')]&&_0x453b19[_0x2f534f('0x22')][_0x2f534f('0x3b')][_0x2f534f('0x4e')]?_0x453b19[_0x2f534f('0x22')]['diagnosticInfo'][_0x2f534f('0x4e')]['end_conversation'][_0x2f534f('0x11')]:![],'fulfillmentText':_0x453b19['queryResult']['fulfillmentText'],'intentName':_0x453b19[_0x2f534f('0x22')]['intent'][_0x2f534f('0x1c')],'intentDisplayName':_0x453b19['queryResult']['intent'][_0x2f534f('0x0')],'isFallbackIntent':_0x453b19[_0x2f534f('0x22')][_0x2f534f('0x6e')][_0x2f534f('0x7b')],'languageCode':_0x453b19[_0x2f534f('0x22')][_0x2f534f('0x16')],'queryText':_0x453b19['queryResult'][_0x2f534f('0x3c')],'responseId':_0x453b19[_0x2f534f('0x4a')],'score':_0x453b19[_0x2f534f('0x22')][_0x2f534f('0x43')],'speech':_0x453b19[_0x2f534f('0x22')]['fulfillmentText'],'providerResponse':JSON[_0x2f534f('0x5a')](_0x4ffba6)}),_0x16694f;}}catch(_0x2b64e9){logger[_0x2f534f('0x40')]('Dialogflow\x20V2\x20response\x20error:',_0x2b64e9);throw _0x2b64e9;}},exports[_0x5d5142('0x7e')]=function(_0x560399,_0x17157d,_0x59570f,_0x33590d){const _0x3e034c=_0x5d5142;return tilde[_0x3e034c('0x4c')](_0x560399,_0x17157d,_0x59570f,_0x33590d)[_0x3e034c('0x46')](function(_0x28a67c){const _0x4f8143=_0x3e034c;try{fs[_0x4f8143('0x73')](_0x560399);}catch(_0x854168){logger[_0x4f8143('0x40')](_0x854168);}return logger[_0x4f8143('0x60')](_0x4f8143('0x63'),_0x28a67c[_0x4f8143('0x38')]),logger[_0x4f8143('0x60')]('Tilde\x20ASR\x20confidence',_0x28a67c[_0x4f8143('0x61')]),_0x28a67c;});},exports['awsPolly']=function(_0x178eee,_0x2e2c6a,_0x24db0f,_0x561afd,_0x5862af,_0x4482c6){const _0x15467a=_0x5d5142,_0xc3938b=path[_0x15467a('0x3a')](__dirname,_0x15467a('0x77'),rs[_0x15467a('0x7d')](0x4)+_0x15467a('0x29'));let _0x53a9fc;return aws[_0x15467a('0x56')](_0x178eee,_0x2e2c6a,_0x24db0f,_0x561afd,_0x5862af,_0x4482c6,_0xc3938b)[_0x15467a('0x46')](function(){const _0x2fa519=_0x15467a;return _0x53a9fc=path[_0x2fa519('0x3a')](__dirname,_0x2fa519('0x77'),rs[_0x2fa519('0x7d')](0x4)+_0x2fa519('0x65')),convertFile(_0xc3938b,_0x53a9fc);})[_0x15467a('0x46')](function(){const _0x53cf44=_0x15467a;try{fs[_0x53cf44('0x73')](_0xc3938b),fs[_0x53cf44('0x51')](_0x53a9fc,_0x53cf44('0x70'));}catch(_0x4e8317){logger[_0x53cf44('0x40')](_0x4e8317);}return _0x53a9fc['split']('.')[0x0];});},exports[_0x5d5142('0x4b')]=function(_0x3af526,_0x6eb5fe,_0x247400,_0x19a381,_0x24fd4a,_0x1e22a6){const _0x416f88=_0x5d5142;return aws[_0x416f88('0x35')](_0x3af526,_0x6eb5fe,_0x247400,_0x19a381,_0x24fd4a,_0x1e22a6)[_0x416f88('0x46')](function(_0x178a85){const _0x120e40=_0x416f88;return logger[_0x120e40('0x60')](JSON[_0x120e40('0x5a')](_0x178a85)),_0x178a85;});},exports['ispeechTTS']=function(_0xc926f9,_0x2098de,_0x5a95fd,_0x505823){const _0x3f96a7=_0x5d5142,_0x5b471a=util['format'](_0x3f96a7('0x21'),ISPEECH_API,_0xc926f9,encodeURIComponent(_0x2098de),_0x5a95fd,_0x505823),_0x3b314c=path[_0x3f96a7('0x3a')](__dirname,_0x3f96a7('0x77'),rs['generate'](0x4)+_0x3f96a7('0x29'));let _0x22ec76;return downloadFile(_0x5b471a,_0x3b314c)[_0x3f96a7('0x46')](function(){const _0x431d7d=_0x3f96a7;return _0x22ec76=path[_0x431d7d('0x3a')](__dirname,_0x431d7d('0x77'),rs[_0x431d7d('0x7d')](0x4)+_0x431d7d('0x65')),convertFile(_0x3b314c,_0x22ec76);})['then'](function(){const _0x2e1f41=_0x3f96a7;try{fs[_0x2e1f41('0x73')](_0x3b314c),fs[_0x2e1f41('0x51')](_0x22ec76,_0x2e1f41('0x70'));}catch(_0x58e3be){logger[_0x2e1f41('0x40')](_0x58e3be);}return _0x22ec76[_0x2e1f41('0x27')]('.')[0x0];});},exports['ispeechASR']=function(_0x4c0907,_0x5eb550,_0x441484,_0x536e2e){const _0x44a0b4=_0x5d5142,_0x40bebf=util[_0x44a0b4('0x1')]('%s?apikey=%s&action=recognize&locale=%s&content-type=audio/x-wav&audio=%s&%s',ISPEECH_API,_0x5eb550,_0x441484,base64Encode(_0x4c0907),_0x536e2e?util[_0x44a0b4('0x1')](_0x44a0b4('0x30'),encodeURIComponent(_0x536e2e)):_0x44a0b4('0x2e'));return uploadFile(_0x40bebf)['then'](function(_0x38ea75){const _0x37a5ec=_0x44a0b4;return querystring[_0x37a5ec('0x69')](_0x38ea75);});},exports[_0x5d5142('0x4f')]=function(_0x342028,_0x27f663){const _0x227101=_0x5d5142;return sestek[_0x227101('0x13')](_0x342028,_0x27f663)['then'](function(_0x4d1dfa){const _0x241037=_0x227101;logger[_0x241037('0x60')](JSON[_0x241037('0x5a')](_0x4d1dfa));const _0x243396={'speech':_0x4d1dfa[_0x241037('0x75')],'action':_0x4d1dfa[_0x241037('0x54')]?_0x4d1dfa[_0x241037('0x54')]['CustomAction']:undefined,'actiondata':_0x4d1dfa[_0x241037('0x54')]?_0x4d1dfa[_0x241037('0x54')][_0x241037('0x50')]:undefined};if(_0x4d1dfa[_0x241037('0x54')]&&_0x4d1dfa[_0x241037('0x54')][_0x241037('0x52')])return base64Decode(_0x4d1dfa[_0x241037('0x54')][_0x241037('0x52')][_0x241037('0x1a')],path['resolve'](__dirname,'tmp',rs[_0x241037('0x7d')](0x4)+_0x241037('0x65')))[_0x241037('0x46')](function(_0x2eb934){const _0x275d5b=_0x241037;return _0x243396[_0x275d5b('0x5f')]=_0x2eb934,_0x243396;});return _0x243396;});},exports['dirName']=function(){return __dirname;};
\ No newline at end of file
+const a1205_0x2ab3=['confidence','queryResult','.wav','allRequiredParamsPresent','voice','AudioFromTts','googleDialogflow','toString','result','responseId','SessionsClient','./tilde','close','length','%s?apikey=%s&action=convert&text=%s&voice=%s&speed=%s&format=mp3','code','audioContent','text:synthesize','Tilde\x20ASR\x20transcription','info','audiofile','metadata','data','name','agi','join','polly','lex','catch','https:','format','CustomActionData','readFileSync','randomstring','awsPolly','actionIncomplete','./aws','error\x20convert','map','error','isFallbackIntent','google-tts-api','googleCloudTTS','777','uri','Data','then','dirName','stringify','writeFileSync','[%s]\x20%s:%s','transcript','.mp3','statusCode','split','base64','chmodSync','fulfillment','tmp','sestekNDA','googleCloudTTS\x20path','from','fields','googleASR','sox','\x20failed,\x20status\x20code\x20=\x20','createWriteStream','languageCode','@google-cloud/dialogflow','start','../../../config/logger','generate','alternatives','https','ispeechTTS','queryText','download\x20error','googleASR\x20transcription','fulfillmentText','end','querystring','status','channelData','diagnosticInfo','isFallback','finish\x20download\x20file','intentDetectionConfidence','source','message','https://texttospeech.googleapis.com/v1/','host','CustomAction','request\x20to\x20','https://api.ispeech.org/api/rest','finish','googleTTS','statusMessage','get','pipe','input','replace','unlink','path','displayName','WHAT_EVER','goggleTTS\x20path','ispeechASR','resolve','resolvedQuery','?key=','parse','awsLex','md5','util','Tilde\x20ASR\x20confidence','audioConfig','speech','asr','wav','writeFile','finish\x20to\x20convert','action','results','request-promise-native','http','googleASR\x20confidence','intent','tildeASR','end_conversation'];(function(_0x18d359,_0x49348e){const _0x2ab364=function(_0x59d54b){while(--_0x59d54b){_0x18d359['push'](_0x18d359['shift']());}};_0x2ab364(++_0x49348e);}(a1205_0x2ab3,0xc7));const a1205_0x59d5=function(_0x18d359,_0x49348e){_0x18d359=_0x18d359-0x1ae;let _0x2ab364=a1205_0x2ab3[_0x18d359];return _0x2ab364;};const a1205_0x5afe50=a1205_0x59d5;'use strict';const fs=require('fs'),path=require(a1205_0x5afe50(0x1ce)),http=require(a1205_0x5afe50(0x1e4)),https=require(a1205_0x5afe50(0x1b1)),{URL}=require('url'),rs=require(a1205_0x5afe50(0x20a)),sox=require(a1205_0x5afe50(0x229)),rp=require(a1205_0x5afe50(0x1e3)),util=require(a1205_0x5afe50(0x1d9)),querystring=require(a1205_0x5afe50(0x1b8)),tts=require(a1205_0x5afe50(0x212)),apiai=require('apiai-promise'),md5=require(a1205_0x5afe50(0x1d8)),google=require('./google'),aws=require(a1205_0x5afe50(0x20d)),tilde=require(a1205_0x5afe50(0x1f4)),sestek=require('./sestek'),dialogflow=require(a1205_0x5afe50(0x22d)),logger=require(a1205_0x5afe50(0x1ae))(a1205_0x5afe50(0x201)),ISPEECH_API=a1205_0x5afe50(0x1c5);function downloadFile(_0x29f9b9,_0x2df6c3){return new Promise(function(_0x2236e6,_0x1bc3cd){const _0x17c3a2=a1205_0x59d5,_0x5df672=new URL(_0x29f9b9),_0x26d1e6=_0x5df672['protocol']===_0x17c3a2(0x206)?https:http,_0x29f79e={'host':_0x5df672['host'],'path':_0x5df672['pathname'],'headers':{'user-agent':_0x17c3a2(0x1d0)}};_0x26d1e6[_0x17c3a2(0x1c9)](_0x29f79e,function(_0x3a5436){const _0x57aa2a=_0x17c3a2;if(_0x3a5436['statusCode']!==0xc8){logger['error'](_0x57aa2a(0x1c4)+_0x29f9b9+_0x57aa2a(0x22a)+_0x3a5436[_0x57aa2a(0x21e)]+'\x20('+_0x3a5436[_0x57aa2a(0x1c8)]+')'),_0x1bc3cd(new Error(_0x57aa2a(0x1c4)+_0x29f9b9+_0x57aa2a(0x22a)+_0x3a5436['statusCode']+'\x20('+_0x3a5436[_0x57aa2a(0x1c8)]+')'));return;}const _0x5be65b=fs[_0x57aa2a(0x22b)](_0x2df6c3);_0x5be65b['on'](_0x57aa2a(0x1c6),function(){const _0x51454d=_0x57aa2a;logger[_0x51454d(0x1fc)](_0x51454d(0x1bd)),_0x5be65b[_0x51454d(0x1f5)](_0x2236e6);}),_0x5be65b['on'](_0x57aa2a(0x210),function(_0x994e32){const _0xf2c9bf=_0x57aa2a;fs['unlink'](_0x2df6c3),logger['error'](_0xf2c9bf(0x1b4),_0x994e32),_0x1bc3cd(_0x994e32);}),_0x3a5436[_0x57aa2a(0x1ca)](_0x5be65b);})['on'](_0x17c3a2(0x210),function(_0x4291bf){logger['error'](_0x4291bf),_0x1bc3cd(_0x4291bf);})[_0x17c3a2(0x1b7)]();});}function uploadFile(_0x34d97e){return new Promise(function(_0x76ff3f,_0x4ca644){const _0xef7382=a1205_0x59d5,_0x5b0b91=new URL(_0x34d97e),_0x9e6347=_0x5b0b91['protocol']==='https:'?https:http,_0x479e48={'host':_0x5b0b91[_0xef7382(0x1c2)],'path':_0x5b0b91['pathname'],'headers':{'user-agent':_0xef7382(0x1d0)}};_0x9e6347[_0xef7382(0x1c9)](_0x479e48,function(_0x57d75c){const _0x4780a9=_0xef7382;if(_0x57d75c['statusCode']!==0xc8){_0x4ca644(new Error(_0x4780a9(0x1c4)+_0x34d97e+'\x20failed,\x20status\x20code\x20=\x20'+_0x57d75c['statusCode']+'\x20('+_0x57d75c[_0x4780a9(0x1c8)]+')'));return;}let _0x5655bd='';_0x57d75c['on'](_0x4780a9(0x1ff),function(_0x4e4de2){_0x5655bd+=_0x4e4de2;}),_0x57d75c['on'](_0x4780a9(0x1b7),function(){_0x76ff3f(_0x5655bd);});})['on'](_0xef7382(0x210),function(_0x215ee1){_0x4ca644(_0x215ee1);})['end']();});}function convertFile(_0x465686,_0x5f02dc){return new Promise(function(_0x3d0145,_0x576b3a){const _0x51bd10=a1205_0x59d5,_0x4992ab=sox['transcode'](_0x465686,_0x5f02dc,{'sampleRate':0x1f40,'format':_0x51bd10(0x1de),'channelCount':0x1,'bitRate':0xc0*0x400,'compressionQuality':0x5});_0x4992ab['on']('error',function(_0x533c1c){const _0x432960=_0x51bd10;logger[_0x432960(0x210)](_0x432960(0x20e),_0x533c1c),_0x576b3a(_0x533c1c);}),_0x4992ab['on']('end',function(){const _0x5425c2=_0x51bd10;logger[_0x5425c2(0x1fc)](_0x5425c2(0x1e0)),_0x3d0145();}),_0x4992ab[_0x51bd10(0x22e)]();});}function base64Decode(_0x1721aa,_0x3d8ecb){const _0x453a2b=a1205_0x5afe50,_0x3e77e4=path[_0x453a2b(0x1d3)](__dirname,'tmp',rs[_0x453a2b(0x1af)](0x4)+_0x453a2b(0x1eb));return fs[_0x453a2b(0x21a)](_0x3e77e4,_0x1721aa,_0x453a2b(0x220)),convertFile(_0x3e77e4,_0x3d8ecb)[_0x453a2b(0x217)](function(){const _0x2e762e=_0x453a2b;try{fs[_0x2e762e(0x1cd)](_0x3e77e4),fs[_0x2e762e(0x221)](_0x3d8ecb,_0x2e762e(0x214));}catch(_0x4fcba5){logger[_0x2e762e(0x210)](_0x4fcba5);}return _0x3d8ecb[_0x2e762e(0x21f)]('.')[0x0];});}function base64Encode(_0x5f1bb8){const _0x444a67=a1205_0x5afe50,_0x38cc46=fs[_0x444a67(0x209)](_0x5f1bb8);return Buffer['from'](_0x38cc46)[_0x444a67(0x1f0)](_0x444a67(0x220));}exports[a1205_0x5afe50(0x213)]=function(_0x4e1f18,_0x38a62d,_0x275bb5,_0x54e641,_0x33e8b6){const _0x4d7bd0=a1205_0x5afe50;let _0x502053,_0xd3858b;const _0x348723=_0x4d7bd0(0x1c1),_0x235e5d=_0x4d7bd0(0x1d5)+_0x4e1f18,_0x556379={};_0x38a62d==='ssml'?_0x556379['input']={'ssml':_0x275bb5}:_0x556379[_0x4d7bd0(0x1cb)]={'text':_0x275bb5};_0x556379[_0x4d7bd0(0x1ed)]={'languageCode':_0x54e641,'ssmlGender':_0x33e8b6},_0x556379[_0x4d7bd0(0x1db)]={'audioEncoding':'MP3','sampleRateHertz':0x1f40};const _0x16ebb9={'url':_0x348723+_0x4d7bd0(0x1fa)+_0x235e5d,'method':'POST','json':!![],'body':_0x556379};return rp(_0x16ebb9)['then'](function(_0x207aea){return new Promise(function(_0x531b05,_0x52e1d7){const _0x208e38=a1205_0x59d5;_0x502053=path[_0x208e38(0x1d3)](__dirname,_0x208e38(0x223),rs[_0x208e38(0x1af)](0x4)+_0x208e38(0x21d));const _0x4d7a9a=Buffer[_0x208e38(0x226)](_0x207aea[_0x208e38(0x1f9)],_0x208e38(0x220));return fs[_0x208e38(0x1df)](_0x502053,_0x4d7a9a,function(_0x530f73){_0x52e1d7(_0x530f73);},function(_0x332a3d){const _0x43d869=_0x208e38;fs[_0x43d869(0x221)](_0x502053,_0x43d869(0x214)),_0x531b05(_0x332a3d);});});})[_0x4d7bd0(0x217)](function(){return _0xd3858b=path['resolve'](__dirname,'tmp',rs['generate'](0x4)+'.wav'),convertFile(_0x502053,_0xd3858b);})[_0x4d7bd0(0x217)](function(){const _0x49a410=_0x4d7bd0;try{fs[_0x49a410(0x1cd)](_0x502053),fs[_0x49a410(0x221)](_0xd3858b,_0x49a410(0x214));}catch(_0x51def5){logger['error'](_0x51def5);}return logger['info'](_0x49a410(0x225),_0xd3858b[_0x49a410(0x21f)]('.')[0x0]),_0xd3858b['split']('.')[0x0];});},exports[a1205_0x5afe50(0x1c7)]=function(_0x3d2cba,_0xf1938){const _0x43d28a=a1205_0x5afe50;let _0x59e15c,_0x1fa92b;return tts(_0x3d2cba,_0xf1938||'en',0x1)[_0x43d28a(0x217)](function(_0x48ba85){const _0x2f3b3a=_0x43d28a;return logger[_0x2f3b3a(0x1fc)](_0x48ba85),_0x59e15c=path['resolve'](__dirname,_0x2f3b3a(0x223),rs[_0x2f3b3a(0x1af)](0x4)+_0x2f3b3a(0x21d)),downloadFile(_0x48ba85,_0x59e15c);})[_0x43d28a(0x217)](function(){const _0x56555a=_0x43d28a;return _0x1fa92b=path['resolve'](__dirname,'tmp',rs[_0x56555a(0x1af)](0x4)+_0x56555a(0x1eb)),convertFile(_0x59e15c,_0x1fa92b);})[_0x43d28a(0x217)](function(){const _0x328a90=_0x43d28a;try{fs[_0x328a90(0x1cd)](_0x59e15c),fs[_0x328a90(0x221)](_0x1fa92b,_0x328a90(0x214));}catch(_0x260166){logger[_0x328a90(0x210)](_0x260166);}return logger['info'](_0x328a90(0x1d1),_0x1fa92b[_0x328a90(0x21f)]('.')[0x0]),_0x1fa92b['split']('.')[0x0];});},exports[a1205_0x5afe50(0x228)]=function(_0x2ba5fc,_0x20bc17,_0x52f36b){const _0x2a1d15=a1205_0x5afe50;return google[_0x2a1d15(0x1dd)](_0x2ba5fc,_0x20bc17,_0x52f36b)[_0x2a1d15(0x217)](function(_0x5960db){const _0x35107a=_0x2a1d15;return logger['info'](_0x5960db[_0x35107a(0x215)]),rp(_0x5960db);})[_0x2a1d15(0x217)](function(_0x5abb31){const _0x208441=_0x2a1d15;let _0x106cec='',_0x35b0e5=0x0;try{fs[_0x208441(0x1cd)](_0x2ba5fc);}catch(_0x47aaf0){logger[_0x208441(0x210)](_0x47aaf0);}return _0x5abb31&&_0x5abb31[_0x208441(0x1e2)]&&(_0x106cec=_0x5abb31[_0x208441(0x1e2)]['map'](function(_0x2533d7){const _0x1f62f4=_0x208441;return _0x2533d7&&_0x2533d7[_0x1f62f4(0x1b0)][0x0]&&_0x2533d7[_0x1f62f4(0x1b0)][0x0][_0x1f62f4(0x21c)]?_0x2533d7[_0x1f62f4(0x1b0)][0x0][_0x1f62f4(0x21c)]:'';})[_0x208441(0x202)]('\x0a'),_0x35b0e5=_0x5abb31[_0x208441(0x1e2)][_0x208441(0x20f)](function(_0x24985d){const _0x483b52=_0x208441;return _0x24985d&&_0x24985d[_0x483b52(0x1b0)][0x0]&&_0x24985d[_0x483b52(0x1b0)][0x0][_0x483b52(0x1e9)]?_0x24985d[_0x483b52(0x1b0)][0x0][_0x483b52(0x1e9)]:0x0;})[_0x208441(0x202)]('\x0a')),logger[_0x208441(0x1fc)](_0x208441(0x1b5),_0x106cec),logger[_0x208441(0x1fc)](_0x208441(0x1e5),_0x35b0e5),{'transcript':_0x106cec,'confidence':_0x35b0e5};})[_0x2a1d15(0x205)](function(_0x568bfd){const _0x47ad74=_0x2a1d15;logger[_0x47ad74(0x210)](_0x47ad74(0x21b),_0x568bfd['statusCode'],_0x568bfd[_0x47ad74(0x200)],_0x568bfd[_0x47ad74(0x1c0)]);});},exports[a1205_0x5afe50(0x1ef)]=function(_0x18d6ee,_0x1d58cc,_0x1e1714,_0x2464f9){const _0x143ecc=a1205_0x5afe50,_0x5e59c2=apiai(_0x1d58cc,{'language':_0x2464f9||'en'});return _0x5e59c2['textRequest'](_0x1e1714,{'sessionId':md5(_0x18d6ee)})[_0x143ecc(0x217)](function(_0x395bb2){const _0x207905=_0x143ecc;return logger['info'](JSON[_0x207905(0x219)](_0x395bb2)),{'source':_0x395bb2[_0x207905(0x1f1)][_0x207905(0x1bf)],'resolvedQuery':_0x395bb2[_0x207905(0x1f1)][_0x207905(0x1d4)],'action':_0x395bb2['result']['action'],'actionIncomplete':_0x395bb2[_0x207905(0x1f1)][_0x207905(0x20c)],'speech':_0x395bb2[_0x207905(0x1f1)][_0x207905(0x222)][_0x207905(0x1dc)],'score':_0x395bb2['result']['score'],'statusCode':_0x395bb2[_0x207905(0x1b9)][_0x207905(0x1f8)],'endConversation':_0x395bb2['result'][_0x207905(0x1fe)]['endConversation']||![],'isFallbackIntent':_0x395bb2['result']['metadata'][_0x207905(0x211)]};});},exports['googleDialogflowV2']=async function(_0x5023ba,_0x5f4f75,_0x46c13c,_0xb81152,_0x4f24ac,_0x33334e){const _0x4ab64c=a1205_0x5afe50,_0x137ed8=_0xb81152[_0x4ab64c(0x1cc)](/\\n/g,'\x0a'),_0x2c73f7={'credentials':{'private_key':_0x137ed8,'client_email':_0x46c13c}},_0x59f63c=new dialogflow[(_0x4ab64c(0x1f3))](_0x2c73f7),_0xe2b98c=_0x59f63c['projectAgentSessionPath'](_0x5f4f75,md5(_0x5023ba)),_0x4388e8={'session':_0xe2b98c,'queryInput':{'text':{'text':_0x4f24ac,'languageCode':_0x33334e}}};try{const _0x437d1d=await _0x59f63c['detectIntent'](_0x4388e8);if(_0x437d1d&&_0x437d1d[_0x4ab64c(0x1f6)]){logger[_0x4ab64c(0x1fc)]('Dialogflow\x20V2\x20response:',JSON[_0x4ab64c(0x219)](_0x437d1d));const _0x9f1c69=_0x437d1d[0x0];let _0x5c7fb6;return _0x9f1c69&&(_0x5c7fb6={'action':_0x9f1c69[_0x4ab64c(0x1ea)][_0x4ab64c(0x1e1)],'allRequiredParamsPresent':_0x9f1c69[_0x4ab64c(0x1ea)][_0x4ab64c(0x1ec)],'endConversation':_0x9f1c69[_0x4ab64c(0x1ea)][_0x4ab64c(0x1bb)]&&_0x9f1c69[_0x4ab64c(0x1ea)][_0x4ab64c(0x1bb)]['fields']?_0x9f1c69[_0x4ab64c(0x1ea)][_0x4ab64c(0x1bb)][_0x4ab64c(0x227)][_0x4ab64c(0x1e8)]['boolValue']:![],'fulfillmentText':_0x9f1c69['queryResult']['fulfillmentText'],'intentName':_0x9f1c69[_0x4ab64c(0x1ea)][_0x4ab64c(0x1e6)][_0x4ab64c(0x200)],'intentDisplayName':_0x9f1c69['queryResult'][_0x4ab64c(0x1e6)][_0x4ab64c(0x1cf)],'isFallbackIntent':_0x9f1c69['queryResult'][_0x4ab64c(0x1e6)][_0x4ab64c(0x1bc)],'languageCode':_0x9f1c69['queryResult'][_0x4ab64c(0x22c)],'queryText':_0x9f1c69[_0x4ab64c(0x1ea)][_0x4ab64c(0x1b3)],'responseId':_0x9f1c69[_0x4ab64c(0x1f2)],'score':_0x9f1c69[_0x4ab64c(0x1ea)][_0x4ab64c(0x1be)],'speech':_0x9f1c69['queryResult'][_0x4ab64c(0x1b6)],'providerResponse':JSON['stringify'](_0x437d1d)}),_0x5c7fb6;}}catch(_0x3aeac7){logger[_0x4ab64c(0x210)]('Dialogflow\x20V2\x20response\x20error:',_0x3aeac7);throw _0x3aeac7;}},exports[a1205_0x5afe50(0x1e7)]=function(_0xe5746a,_0x49c20d,_0x1006e9,_0x54f16c){const _0x132939=a1205_0x5afe50;return tilde[_0x132939(0x1dd)](_0xe5746a,_0x49c20d,_0x1006e9,_0x54f16c)[_0x132939(0x217)](function(_0x6ee07a){const _0x29f078=_0x132939;try{fs[_0x29f078(0x1cd)](_0xe5746a);}catch(_0x26ccef){logger[_0x29f078(0x210)](_0x26ccef);}return logger[_0x29f078(0x1fc)](_0x29f078(0x1fb),_0x6ee07a[_0x29f078(0x21c)]),logger[_0x29f078(0x1fc)](_0x29f078(0x1da),_0x6ee07a[_0x29f078(0x1e9)]),_0x6ee07a;});},exports[a1205_0x5afe50(0x20b)]=function(_0x2c8e9e,_0x4cf1d7,_0x1af782,_0x4d506e,_0x30ad86,_0x820b4a){const _0x24056a=a1205_0x5afe50,_0x378512=path['resolve'](__dirname,_0x24056a(0x223),rs[_0x24056a(0x1af)](0x4)+'.mp3');let _0x5ea888;return aws[_0x24056a(0x203)](_0x2c8e9e,_0x4cf1d7,_0x1af782,_0x4d506e,_0x30ad86,_0x820b4a,_0x378512)[_0x24056a(0x217)](function(){const _0x119e44=_0x24056a;return _0x5ea888=path[_0x119e44(0x1d3)](__dirname,_0x119e44(0x223),rs[_0x119e44(0x1af)](0x4)+_0x119e44(0x1eb)),convertFile(_0x378512,_0x5ea888);})[_0x24056a(0x217)](function(){const _0x20c3d3=_0x24056a;try{fs[_0x20c3d3(0x1cd)](_0x378512),fs[_0x20c3d3(0x221)](_0x5ea888,_0x20c3d3(0x214));}catch(_0x1e4701){logger['error'](_0x1e4701);}return _0x5ea888[_0x20c3d3(0x21f)]('.')[0x0];});},exports[a1205_0x5afe50(0x1d7)]=function(_0x28d436,_0x3c6ccc,_0x2ba723,_0x1573a2,_0x1e18ea,_0x117a85){const _0x4f7006=a1205_0x5afe50;return aws[_0x4f7006(0x204)](_0x28d436,_0x3c6ccc,_0x2ba723,_0x1573a2,_0x1e18ea,_0x117a85)[_0x4f7006(0x217)](function(_0x5deb0e){const _0x163b85=_0x4f7006;return logger[_0x163b85(0x1fc)](JSON[_0x163b85(0x219)](_0x5deb0e)),_0x5deb0e;});},exports[a1205_0x5afe50(0x1b2)]=function(_0x290cdf,_0x4252f7,_0x213ba5,_0x568b3e){const _0x337ee0=a1205_0x5afe50,_0x1e92e1=util[_0x337ee0(0x207)](_0x337ee0(0x1f7),ISPEECH_API,_0x290cdf,encodeURIComponent(_0x4252f7),_0x213ba5,_0x568b3e),_0x4a66fc=path['resolve'](__dirname,'tmp',rs[_0x337ee0(0x1af)](0x4)+_0x337ee0(0x21d));let _0x6391b8;return downloadFile(_0x1e92e1,_0x4a66fc)[_0x337ee0(0x217)](function(){const _0x357c76=_0x337ee0;return _0x6391b8=path['resolve'](__dirname,'tmp',rs[_0x357c76(0x1af)](0x4)+'.wav'),convertFile(_0x4a66fc,_0x6391b8);})[_0x337ee0(0x217)](function(){const _0x1d1692=_0x337ee0;try{fs['unlink'](_0x4a66fc),fs[_0x1d1692(0x221)](_0x6391b8,'777');}catch(_0x482f88){logger['error'](_0x482f88);}return _0x6391b8['split']('.')[0x0];});},exports[a1205_0x5afe50(0x1d2)]=function(_0x355720,_0x25ff30,_0xd83ca2,_0x2d7010){const _0x45531a=a1205_0x5afe50,_0x5502e4=util[_0x45531a(0x207)]('%s?apikey=%s&action=recognize&locale=%s&content-type=audio/x-wav&audio=%s&%s',ISPEECH_API,_0x25ff30,_0xd83ca2,base64Encode(_0x355720),_0x2d7010?util['format']('model=%s',encodeURIComponent(_0x2d7010)):'freeform=3');return uploadFile(_0x5502e4)[_0x45531a(0x217)](function(_0x5e42fe){const _0x2672a4=_0x45531a;return querystring[_0x2672a4(0x1d6)](_0x5e42fe);});},exports[a1205_0x5afe50(0x224)]=function(_0x24ec4d,_0x5c3939){const _0x4fc969=a1205_0x5afe50;return sestek['nda'](_0x24ec4d,_0x5c3939)[_0x4fc969(0x217)](function(_0x1133da){const _0x1edc52=_0x4fc969;logger[_0x1edc52(0x1fc)](JSON[_0x1edc52(0x219)](_0x1133da));const _0x2fae3c={'speech':_0x1133da['text'],'action':_0x1133da[_0x1edc52(0x1ba)]?_0x1133da[_0x1edc52(0x1ba)][_0x1edc52(0x1c3)]:undefined,'actiondata':_0x1133da[_0x1edc52(0x1ba)]?_0x1133da['channelData'][_0x1edc52(0x208)]:undefined};if(_0x1133da[_0x1edc52(0x1ba)]&&_0x1133da['channelData'][_0x1edc52(0x1ee)])return base64Decode(_0x1133da[_0x1edc52(0x1ba)][_0x1edc52(0x1ee)][_0x1edc52(0x216)],path[_0x1edc52(0x1d3)](__dirname,_0x1edc52(0x223),rs[_0x1edc52(0x1af)](0x4)+_0x1edc52(0x1eb)))[_0x1edc52(0x217)](function(_0x361c3b){const _0x3adcdd=_0x1edc52;return _0x2fae3c[_0x3adcdd(0x1fd)]=_0x361c3b,_0x2fae3c;});return _0x2fae3c;});},exports[a1205_0x5afe50(0x218)]=function(){return __dirname;};
\ No newline at end of file