c08dae786227182f4a14cad8c4ea895b7c2eef86
[motion2.git] / server / services / agi / scripts / index.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 _0x91fb=['./sestek','./tilde','../../../config/logger','https://api.ispeech.org/api/rest','protocol','https:','host','get','statusCode','error','request\x20to\x20','statusMessage','\x20failed,\x20status\x20code\x20=\x20','createWriteStream','finish','info','finish\x20download\x20file','close','download\x20error','pipe','end','WHAT_EVER','transcode','wav','finish\x20to\x20convert','resolve','tmp','.wav','writeFileSync','base64','chmodSync','777','split','readFileSync','toString','googleCloudTTS','?key=','ssml','input','voice','audioConfig','MP3','text:synthesize','then','from','audioContent','writeFile','generate','unlink','googleCloudTTS\x20path','googleTTS','https://translate.google.com/_/TranslateWebserverUi/data/batchexecute','utf8','application/x-www-form-urlencoded','f.req=','stringify','jQ1olc','generic','parse\x20response\x20failed:\x0a','length','text\x20length\x20limit\x20reached','\x22\x20might\x20not\x20exist','.mp3','googleASR','asr','uri','results','map','alternatives','transcript','confidence','join','googleASR\x20transcription','googleASR\x20confidence','[%s]\x20%s:%s','name','googleDialogflow','textRequest','result','source','resolvedQuery','action','fulfillment','speech','score','status','code','metadata','isFallbackIntent','googleDialogflowV2','replace','SessionsClient','sessionPath','detectIntent','Dialogflow\x20V2\x20response:','allRequiredParamsPresent','queryResult','diagnosticInfo','fields','end_conversation','intent','displayName','isFallback','languageCode','responseId','intentDetectionConfidence','Tilde\x20ASR\x20transcription','Tilde\x20ASR\x20confidence','awsPolly','awsLex','ispeechTTS','format','%s?apikey=%s&action=convert&text=%s&voice=%s&speed=%s&format=mp3','ispeechASR','%s?apikey=%s&action=recognize&locale=%s&content-type=audio/x-wav&audio=%s&%s','freeform=3','sestekNDA','nda','text','channelData','AudioFromTts','Data','apiai-promise','dialogflow','http','md5','path','querystring','randomstring','sox','parse','util','./google'];(function(_0x5923ce,_0x2e903c){var _0x54b043=function(_0x325e68){while(--_0x325e68){_0x5923ce['push'](_0x5923ce['shift']());}};_0x54b043(++_0x2e903c);}(_0x91fb,0xff));var _0xb91f=function(_0x231b2e,_0x2a33f9){_0x231b2e=_0x231b2e-0x0;var _0x3feb2a=_0x91fb[_0x231b2e];return _0x3feb2a;};'use strict';var apiai=require(_0xb91f('0x0'));var BPromise=require('bluebird');var dialogflow=require(_0xb91f('0x1'));var fs=require('fs');var http=require(_0xb91f('0x2'));var https=require('https');var md5=require(_0xb91f('0x3'));var path=require(_0xb91f('0x4'));var querystring=require(_0xb91f('0x5'));var rp=require('request-promise');var rs=require(_0xb91f('0x6'));var sox=require(_0xb91f('0x7'));var tts=require('google-tts-api');var urlParse=require('url')[_0xb91f('0x8')];var util=require(_0xb91f('0x9'));var aws=require('./aws');var google=require(_0xb91f('0xa'));var sestek=require(_0xb91f('0xb'));var tilde=require(_0xb91f('0xc'));var logger=require(_0xb91f('0xd'))('agi');var ISPEECH_API=_0xb91f('0xe');function downloadFile(_0x4c8fd3,_0x275b25){return new BPromise(function(_0x2a9653,_0x40f8b9){var _0x20bf7a=urlParse(_0x4c8fd3);var _0x8c76e9=_0x20bf7a[_0xb91f('0xf')]===_0xb91f('0x10')?https:http;var _0x532f33={'host':_0x20bf7a[_0xb91f('0x11')],'path':_0x20bf7a[_0xb91f('0x4')],'headers':{'user-agent':'WHAT_EVER'}};_0x8c76e9[_0xb91f('0x12')](_0x532f33,function(_0x3e4ce8){if(_0x3e4ce8[_0xb91f('0x13')]!==0xc8){logger[_0xb91f('0x14')](_0xb91f('0x15')+_0x4c8fd3+'\x20failed,\x20status\x20code\x20=\x20'+_0x3e4ce8[_0xb91f('0x13')]+'\x20('+_0x3e4ce8[_0xb91f('0x16')]+')');_0x40f8b9(new Error(_0xb91f('0x15')+_0x4c8fd3+_0xb91f('0x17')+_0x3e4ce8[_0xb91f('0x13')]+'\x20('+_0x3e4ce8['statusMessage']+')'));return;}var _0x14d5e9=fs[_0xb91f('0x18')](_0x275b25);_0x14d5e9['on'](_0xb91f('0x19'),function(){logger[_0xb91f('0x1a')](_0xb91f('0x1b'));_0x14d5e9[_0xb91f('0x1c')](_0x2a9653);});_0x14d5e9['on'](_0xb91f('0x14'),function(_0x5f8c84){fs['unlink'](_0x275b25);logger[_0xb91f('0x14')](_0xb91f('0x1d'),_0x5f8c84);_0x40f8b9(_0x5f8c84);});_0x3e4ce8[_0xb91f('0x1e')](_0x14d5e9);})['on']('error',function(_0x3bf7c1){logger[_0xb91f('0x14')](_0x3bf7c1);_0x40f8b9(_0x3bf7c1);})[_0xb91f('0x1f')]();});}function uploadFile(_0x270ad0){return new BPromise(function(_0x2a0ee6,_0x5288ac){var _0x19a9d3=urlParse(_0x270ad0);var _0x4585af=_0x19a9d3[_0xb91f('0xf')]==='https:'?https:http;var _0x594ef8={'host':_0x19a9d3[_0xb91f('0x11')],'path':_0x19a9d3['path'],'headers':{'user-agent':_0xb91f('0x20')}};_0x4585af[_0xb91f('0x12')](_0x594ef8,function(_0xff589e){if(_0xff589e[_0xb91f('0x13')]!==0xc8){_0x5288ac(new Error(_0xb91f('0x15')+_0x270ad0+_0xb91f('0x17')+_0xff589e[_0xb91f('0x13')]+'\x20('+_0xff589e[_0xb91f('0x16')]+')'));return;}var _0x586a36='';_0xff589e['on']('data',function(_0x254de2){_0x586a36+=_0x254de2;});_0xff589e['on']('end',function(){_0x2a0ee6(_0x586a36);});})['on'](_0xb91f('0x14'),function(_0x578e23){_0x5288ac(_0x578e23);})[_0xb91f('0x1f')]();});}function convertFile(_0x2f53a5,_0x1f4d07){return new BPromise(function(_0x4bc332,_0x15e6a1){var _0x4ab583=sox[_0xb91f('0x21')](_0x2f53a5,_0x1f4d07,{'sampleRate':0x1f40,'format':_0xb91f('0x22'),'channelCount':0x1,'bitRate':0xc0*0x400,'compressionQuality':0x5});_0x4ab583['on']('error',function(_0xae0cf6){logger[_0xb91f('0x14')]('error\x20convert',_0xae0cf6);_0x15e6a1(_0xae0cf6);});_0x4ab583['on'](_0xb91f('0x1f'),function(){logger['info'](_0xb91f('0x23'));_0x4bc332();});_0x4ab583['start']();});}function base64Decode(_0x478586,_0xbfe3c1){var _0x424e7d=path[_0xb91f('0x24')](__dirname,_0xb91f('0x25'),rs['generate'](0x4)+_0xb91f('0x26'));fs[_0xb91f('0x27')](_0x424e7d,_0x478586,_0xb91f('0x28'));return convertFile(_0x424e7d,_0xbfe3c1)['then'](function(){try{fs['unlink'](_0x424e7d);fs[_0xb91f('0x29')](_0xbfe3c1,_0xb91f('0x2a'));}catch(_0x15ae87){logger[_0xb91f('0x14')](_0x15ae87);}return _0xbfe3c1[_0xb91f('0x2b')]('.')[0x0];});}function base64Encode(_0x507c27){var _0x5b741b=fs[_0xb91f('0x2c')](_0x507c27);return new Buffer(_0x5b741b)[_0xb91f('0x2d')](_0xb91f('0x28'));}exports[_0xb91f('0x2e')]=function(_0x3bef14,_0x2726c8,_0x145610,_0x1ce4e4,_0x2bb5b4,_0x21bab9){var _0x4f9889,_0x4764e0;var _0x185397='https://texttospeech.googleapis.com/v1/';var _0x291644=_0xb91f('0x2f')+_0x3bef14;var _0x50614b={};if(_0x2726c8===_0xb91f('0x30')){_0x50614b[_0xb91f('0x31')]={'ssml':_0x145610};}else{_0x50614b['input']={'text':_0x145610};};_0x50614b[_0xb91f('0x32')]={'languageCode':_0x1ce4e4,'ssmlGender':_0x2bb5b4};_0x50614b[_0xb91f('0x33')]={'audioEncoding':_0xb91f('0x34'),'sampleRateHertz':0x1f40};var _0x4d94e6={'url':_0x185397+_0xb91f('0x35')+_0x291644,'method':'POST','json':!![],'body':_0x50614b};return rp(_0x4d94e6)[_0xb91f('0x36')](function(_0x2ef78e){return new BPromise(function(_0x28fae3,_0x2eec85){_0x4f9889=path[_0xb91f('0x24')](__dirname,_0xb91f('0x25'),rs['generate'](0x4)+'.mp3');var _0x105e24=Buffer[_0xb91f('0x37')](_0x2ef78e[_0xb91f('0x38')],_0xb91f('0x28'));return fs[_0xb91f('0x39')](_0x4f9889,_0x105e24,function(_0x43a2f0){_0x2eec85(_0x43a2f0);},function(_0x1ea5b5){fs[_0xb91f('0x29')](_0x4f9889,_0xb91f('0x2a'));_0x28fae3(_0x1ea5b5);});});})['then'](function(_0xb76751){_0x4764e0=path[_0xb91f('0x24')](__dirname,_0xb91f('0x25'),rs[_0xb91f('0x3a')](0x4)+_0xb91f('0x26'));return convertFile(_0x4f9889,_0x4764e0);})[_0xb91f('0x36')](function(){try{fs[_0xb91f('0x3b')](_0x4f9889);fs[_0xb91f('0x29')](_0x4764e0,_0xb91f('0x2a'));}catch(_0x2c836f){logger[_0xb91f('0x14')](_0x2c836f);}logger[_0xb91f('0x1a')](_0xb91f('0x3c'),_0x4764e0[_0xb91f('0x2b')]('.')[0x0]);return _0x4764e0['split']('.')[0x0];});};exports[_0xb91f('0x3d')]=function(_0x437533,_0x2161e6){var _0x4cf7b2=_0xb91f('0x3e');var _0x2e6f8e,_0x4ec72a;var _0x58a88d;var _0x2d8fc2={'encoding':_0xb91f('0x3f'),'method':'POST','timeout':0x2710,'url':_0x4cf7b2,'headers':{'Content-Type':_0xb91f('0x40')},'body':_0xb91f('0x41')+encodeURIComponent(JSON[_0xb91f('0x42')]([[[_0xb91f('0x43'),JSON[_0xb91f('0x42')]([_0x437533,_0x2161e6||'en',![],'null']),null,_0xb91f('0x44')]]]))};return rp(_0x2d8fc2)[_0xb91f('0x36')](function(_0x47346e){try{_0x58a88d=eval(_0x47346e['slice'](0x5))[0x0][0x2];}catch(_0x9bbe88){throw new Error(_0xb91f('0x45')+_0x47346e['data']);}if(!_0x58a88d){if(_0x437533[_0xb91f('0x46')]>0xc8){throw new Error(_0xb91f('0x47'));}else{throw new Error('lang\x20\x22'+_0x2161e6+_0xb91f('0x48'));}}try{_0x58a88d=eval(_0x58a88d)[0x0];}catch(_0x15c341){throw new Error(_0xb91f('0x45')+res['data']);}const _0x21b225=_0x58a88d;_0x2e6f8e=path[_0xb91f('0x24')](__dirname,_0xb91f('0x25'),rs[_0xb91f('0x3a')](0x4)+_0xb91f('0x49'));fs['writeFileSync'](_0x2e6f8e,_0x58a88d,{'encoding':_0xb91f('0x28')});_0x4ec72a=path[_0xb91f('0x24')](__dirname,'tmp',rs[_0xb91f('0x3a')](0x4)+_0xb91f('0x26'));return convertFile(_0x2e6f8e,_0x4ec72a);})[_0xb91f('0x36')](function(){try{fs[_0xb91f('0x3b')](_0x2e6f8e);fs['chmodSync'](_0x4ec72a,_0xb91f('0x2a'));}catch(_0x3c6851){logger[_0xb91f('0x14')](_0x3c6851);}logger[_0xb91f('0x1a')]('goggleTTS\x20path',_0x4ec72a[_0xb91f('0x2b')]('.')[0x0]);return _0x4ec72a[_0xb91f('0x2b')]('.')[0x0];});};exports[_0xb91f('0x4a')]=function(_0xb3ef9,_0x4c43af,_0xddc6ca){return google[_0xb91f('0x4b')](_0xb3ef9,_0x4c43af,_0xddc6ca)['then'](function(_0x4b624b){logger['info'](_0x4b624b[_0xb91f('0x4c')]);return rp(_0x4b624b);})[_0xb91f('0x36')](function(_0x575222){var _0x3b7b59='';var _0x5da5fe=0x0;try{fs[_0xb91f('0x3b')](_0xb3ef9);}catch(_0x5745a9){logger[_0xb91f('0x14')](_0x5745a9);}if(_0x575222&&_0x575222[_0xb91f('0x4d')]){_0x3b7b59=_0x575222[_0xb91f('0x4d')][_0xb91f('0x4e')](function(_0x27bb72){return _0x27bb72&&_0x27bb72[_0xb91f('0x4f')][0x0]&&_0x27bb72[_0xb91f('0x4f')][0x0][_0xb91f('0x50')]?_0x27bb72[_0xb91f('0x4f')][0x0][_0xb91f('0x50')]:'';})['join']('\x0a');_0x5da5fe=_0x575222[_0xb91f('0x4d')][_0xb91f('0x4e')](function(_0x4bbd5b){return _0x4bbd5b&&_0x4bbd5b['alternatives'][0x0]&&_0x4bbd5b[_0xb91f('0x4f')][0x0]['confidence']?_0x4bbd5b[_0xb91f('0x4f')][0x0][_0xb91f('0x51')]:0x0;})[_0xb91f('0x52')]('\x0a');}logger['info'](_0xb91f('0x53'),_0x3b7b59);logger[_0xb91f('0x1a')](_0xb91f('0x54'),_0x5da5fe);return{'transcript':_0x3b7b59,'confidence':_0x5da5fe};})['catch'](function(_0x2f6aaa){logger[_0xb91f('0x14')](_0xb91f('0x55'),_0x2f6aaa[_0xb91f('0x13')],_0x2f6aaa[_0xb91f('0x56')],_0x2f6aaa['message']);});};exports[_0xb91f('0x57')]=function(_0x42c348,_0x405d5f,_0x55267a,_0x12e517){var _0x4905fc=apiai(_0x405d5f,{'language':_0x12e517||'en'});return _0x4905fc[_0xb91f('0x58')](_0x55267a,{'sessionId':md5(_0x42c348)})['then'](function(_0x2be4a1){logger[_0xb91f('0x1a')](JSON['stringify'](_0x2be4a1));return{'source':_0x2be4a1[_0xb91f('0x59')][_0xb91f('0x5a')],'resolvedQuery':_0x2be4a1[_0xb91f('0x59')][_0xb91f('0x5b')],'action':_0x2be4a1[_0xb91f('0x59')][_0xb91f('0x5c')],'actionIncomplete':_0x2be4a1[_0xb91f('0x59')]['actionIncomplete'],'speech':_0x2be4a1[_0xb91f('0x59')][_0xb91f('0x5d')][_0xb91f('0x5e')],'score':_0x2be4a1['result'][_0xb91f('0x5f')],'statusCode':_0x2be4a1[_0xb91f('0x60')][_0xb91f('0x61')],'endConversation':_0x2be4a1['result'][_0xb91f('0x62')]['endConversation']||![],'isFallbackIntent':_0x2be4a1[_0xb91f('0x59')][_0xb91f('0x62')][_0xb91f('0x63')]};});};exports[_0xb91f('0x64')]=function(_0x1e8687,_0x4461ab,_0x201360,_0x37a4b4,_0x1c1642,_0x21e051){var _0xdad5b6=_0x37a4b4[_0xb91f('0x65')](/\\n/g,'\x0a');var _0x38a0af={'credentials':{'private_key':_0xdad5b6,'client_email':_0x201360}};var _0x16b1c5=new dialogflow[(_0xb91f('0x66'))](_0x38a0af);var _0x3419d2=_0x16b1c5[_0xb91f('0x67')](_0x4461ab,md5(_0x1e8687));var _0x23717c={'session':_0x3419d2,'queryInput':{'text':{'text':_0x1c1642,'languageCode':_0x21e051}}};return _0x16b1c5[_0xb91f('0x68')](_0x23717c)[_0xb91f('0x36')](function(_0x4fe63f){if(_0x4fe63f&&_0x4fe63f[_0xb91f('0x46')]){logger['info'](_0xb91f('0x69'),JSON['stringify'](_0x4fe63f));var _0x2b66ff=_0x4fe63f[0x0];if(_0x2b66ff){var _0x21141c={'action':_0x2b66ff['queryResult']['action'],'allRequiredParamsPresent':_0x2b66ff['queryResult'][_0xb91f('0x6a')],'endConversation':_0x2b66ff[_0xb91f('0x6b')][_0xb91f('0x6c')]&&_0x2b66ff[_0xb91f('0x6b')][_0xb91f('0x6c')][_0xb91f('0x6d')]?_0x2b66ff[_0xb91f('0x6b')]['diagnosticInfo']['fields'][_0xb91f('0x6e')]['boolValue']:![],'fulfillmentText':_0x2b66ff[_0xb91f('0x6b')]['fulfillmentText'],'intentName':_0x2b66ff[_0xb91f('0x6b')][_0xb91f('0x6f')]['name'],'intentDisplayName':_0x2b66ff['queryResult'][_0xb91f('0x6f')][_0xb91f('0x70')],'isFallbackIntent':_0x2b66ff[_0xb91f('0x6b')][_0xb91f('0x6f')][_0xb91f('0x71')],'languageCode':_0x2b66ff[_0xb91f('0x6b')][_0xb91f('0x72')],'queryText':_0x2b66ff['queryResult']['queryText'],'responseId':_0x2b66ff[_0xb91f('0x73')],'score':_0x2b66ff[_0xb91f('0x6b')][_0xb91f('0x74')],'speech':_0x2b66ff[_0xb91f('0x6b')]['fulfillmentText'],'providerResponse':JSON[_0xb91f('0x42')](_0x4fe63f)};return _0x21141c;}}});};exports['tildeASR']=function(_0x22ba2c,_0x259944,_0x5ccafa,_0x103936){return tilde[_0xb91f('0x4b')](_0x22ba2c,_0x259944,_0x5ccafa,_0x103936)[_0xb91f('0x36')](function(_0x5b0f23){try{fs['unlink'](_0x22ba2c);}catch(_0xce5018){logger[_0xb91f('0x14')](_0xce5018);}logger[_0xb91f('0x1a')](_0xb91f('0x75'),_0x5b0f23[_0xb91f('0x50')]);logger[_0xb91f('0x1a')](_0xb91f('0x76'),_0x5b0f23[_0xb91f('0x51')]);return _0x5b0f23;});};exports[_0xb91f('0x77')]=function(_0x4d3431,_0xc68413,_0x237d7a,_0x3b05c6,_0x4bb706,_0x1a0a00){var _0x5ea7e8=path[_0xb91f('0x24')](__dirname,_0xb91f('0x25'),rs[_0xb91f('0x3a')](0x4)+_0xb91f('0x49'));var _0x2b922e;return aws['polly'](_0x4d3431,_0xc68413,_0x237d7a,_0x3b05c6,_0x4bb706,_0x1a0a00,_0x5ea7e8)[_0xb91f('0x36')](function(){_0x2b922e=path[_0xb91f('0x24')](__dirname,_0xb91f('0x25'),rs[_0xb91f('0x3a')](0x4)+_0xb91f('0x26'));return convertFile(_0x5ea7e8,_0x2b922e);})['then'](function(){try{fs[_0xb91f('0x3b')](_0x5ea7e8);fs[_0xb91f('0x29')](_0x2b922e,_0xb91f('0x2a'));}catch(_0x5e07ed){logger[_0xb91f('0x14')](_0x5e07ed);}return _0x2b922e[_0xb91f('0x2b')]('.')[0x0];});};exports[_0xb91f('0x78')]=function(_0x5315b8,_0x1f0844,_0x47205a,_0x2f4ea0,_0x4c98dd,_0x337293){return aws['lex'](_0x5315b8,_0x1f0844,_0x47205a,_0x2f4ea0,_0x4c98dd,_0x337293)['then'](function(_0x4bc342){logger['info'](JSON[_0xb91f('0x42')](_0x4bc342));return _0x4bc342;});};exports[_0xb91f('0x79')]=function(_0x3961db,_0x343b88,_0x2d2a2c,_0x33f905){var _0xd15a08=util[_0xb91f('0x7a')](_0xb91f('0x7b'),ISPEECH_API,_0x3961db,encodeURIComponent(_0x343b88),_0x2d2a2c,_0x33f905);var _0x36144e=path[_0xb91f('0x24')](__dirname,_0xb91f('0x25'),rs['generate'](0x4)+_0xb91f('0x49'));var _0x5abeac;return downloadFile(_0xd15a08,_0x36144e)['then'](function(){_0x5abeac=path['resolve'](__dirname,_0xb91f('0x25'),rs['generate'](0x4)+'.wav');return convertFile(_0x36144e,_0x5abeac);})[_0xb91f('0x36')](function(){try{fs[_0xb91f('0x3b')](_0x36144e);fs['chmodSync'](_0x5abeac,_0xb91f('0x2a'));}catch(_0x493b77){logger[_0xb91f('0x14')](_0x493b77);}return _0x5abeac[_0xb91f('0x2b')]('.')[0x0];});};exports[_0xb91f('0x7c')]=function(_0x3c4e92,_0x1b21d1,_0x11623f,_0x3a638e){var _0x35bca1=util[_0xb91f('0x7a')](_0xb91f('0x7d'),ISPEECH_API,_0x1b21d1,_0x11623f,base64Encode(_0x3c4e92),_0x3a638e?util[_0xb91f('0x7a')]('model=%s',encodeURIComponent(_0x3a638e)):_0xb91f('0x7e'));return uploadFile(_0x35bca1)['then'](function(_0xf6e134){return querystring[_0xb91f('0x8')](_0xf6e134);});};exports[_0xb91f('0x7f')]=function(_0x2a79ab,_0x59ab81){return sestek[_0xb91f('0x80')](_0x2a79ab,_0x59ab81)[_0xb91f('0x36')](function(_0x38ad96){logger[_0xb91f('0x1a')](JSON[_0xb91f('0x42')](_0x38ad96));var _0x17e56a={'speech':_0x38ad96[_0xb91f('0x81')],'action':_0x38ad96[_0xb91f('0x82')]?_0x38ad96[_0xb91f('0x82')]['CustomAction']:undefined,'actiondata':_0x38ad96[_0xb91f('0x82')]?_0x38ad96[_0xb91f('0x82')]['CustomActionData']:undefined};if(_0x38ad96[_0xb91f('0x82')]&&_0x38ad96[_0xb91f('0x82')]['AudioFromTts']){return base64Decode(_0x38ad96[_0xb91f('0x82')][_0xb91f('0x83')][_0xb91f('0x84')],path['resolve'](__dirname,'tmp',rs[_0xb91f('0x3a')](0x4)+_0xb91f('0x26')))['then'](function(_0x5bf84f){_0x17e56a['audiofile']=_0x5bf84f;return _0x17e56a;});}return _0x17e56a;});};exports['dirName']=function(){return __dirname;};