Built motion from commit 85328c08.|2.5.50
[motion2.git] / server / api / sound / index.js
index 2368f07..ef0d2e0 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xcc16=['download','diskStorage','join','root','server/files/sounds/original/','originalname','replace','format','%s-%s%s','now','extname','post','file','create','put','update','delete','exports','multer','util','path','connect-timeout','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./sound.controller','get','index','/:id','isAuthenticated','show','/:id/download'];(function(_0x37f50e,_0x13e43a){var _0x4af190=function(_0x5bbff8){while(--_0x5bbff8){_0x37f50e['push'](_0x37f50e['shift']());}};_0x4af190(++_0x13e43a);}(_0xcc16,0x1ee));var _0x6cc1=function(_0x3a2e4b,_0x1fc1f7){_0x3a2e4b=_0x3a2e4b-0x0;var _0x3697d9=_0xcc16[_0x3a2e4b];return _0x3697d9;};'use strict';var multer=require(_0x6cc1('0x0'));var util=require(_0x6cc1('0x1'));var path=require(_0x6cc1('0x2'));var timeout=require(_0x6cc1('0x3'));var express=require(_0x6cc1('0x4'));var router=express['Router']();var fs_extra=require(_0x6cc1('0x5'));var auth=require(_0x6cc1('0x6'));var interaction=require(_0x6cc1('0x7'));var config=require(_0x6cc1('0x8'));var controller=require(_0x6cc1('0x9'));router[_0x6cc1('0xa')]('/',auth['isAuthenticated'](),controller[_0x6cc1('0xb')]);router[_0x6cc1('0xa')](_0x6cc1('0xc'),auth[_0x6cc1('0xd')](),controller[_0x6cc1('0xe')]);router[_0x6cc1('0xa')](_0x6cc1('0xf'),auth[_0x6cc1('0xd')](),controller[_0x6cc1('0x10')]);var upload=multer({'storage':multer[_0x6cc1('0x11')]({'destination':function(_0x2d6ab4,_0x4f05ea,_0xe852bf){_0xe852bf(null,path[_0x6cc1('0x12')](config[_0x6cc1('0x13')],_0x6cc1('0x14')));},'filename':function(_0x12be22,_0x5a339b,_0x1667c2){_0x5a339b['originalname']=_0x5a339b[_0x6cc1('0x15')][_0x6cc1('0x16')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-');_0x1667c2(null,util[_0x6cc1('0x17')](_0x6cc1('0x18'),path['basename'](_0x5a339b['originalname'],path['extname'](_0x5a339b[_0x6cc1('0x15')])),Date[_0x6cc1('0x19')](),path[_0x6cc1('0x1a')](_0x5a339b[_0x6cc1('0x15')])));}})});router[_0x6cc1('0x1b')]('/',upload['single'](_0x6cc1('0x1c')),controller[_0x6cc1('0x1d')]);router[_0x6cc1('0x1e')](_0x6cc1('0xc'),auth[_0x6cc1('0xd')](),controller[_0x6cc1('0x1f')]);router[_0x6cc1('0x20')](_0x6cc1('0xc'),auth['isAuthenticated'](),controller[_0x6cc1('0x20')]);module[_0x6cc1('0x21')]=router;
\ No newline at end of file
+var _0xf1cd=['fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./sound.controller','get','isAuthenticated','index','/:id','/:id/download','download','diskStorage','server/files/sounds/original/','originalname','replace','format','%s-%s%s','basename','extname','now','post','single','file','create','put','update','delete','exports','multer','util','connect-timeout','Router'];(function(_0x1c5cd2,_0x277ceb){var _0x895e35=function(_0x4b4307){while(--_0x4b4307){_0x1c5cd2['push'](_0x1c5cd2['shift']());}};_0x895e35(++_0x277ceb);}(_0xf1cd,0xdc));var _0xdf1c=function(_0x1d3f4e,_0x1b7cbb){_0x1d3f4e=_0x1d3f4e-0x0;var _0x36105b=_0xf1cd[_0x1d3f4e];return _0x36105b;};'use strict';var multer=require(_0xdf1c('0x0'));var util=require(_0xdf1c('0x1'));var path=require('path');var timeout=require(_0xdf1c('0x2'));var express=require('express');var router=express[_0xdf1c('0x3')]();var fs_extra=require(_0xdf1c('0x4'));var auth=require(_0xdf1c('0x5'));var interaction=require(_0xdf1c('0x6'));var config=require(_0xdf1c('0x7'));var controller=require(_0xdf1c('0x8'));router[_0xdf1c('0x9')]('/',auth[_0xdf1c('0xa')](),controller[_0xdf1c('0xb')]);router[_0xdf1c('0x9')](_0xdf1c('0xc'),auth[_0xdf1c('0xa')](),controller['show']);router['get'](_0xdf1c('0xd'),auth[_0xdf1c('0xa')](),controller[_0xdf1c('0xe')]);var upload=multer({'storage':multer[_0xdf1c('0xf')]({'destination':function(_0x24b696,_0xb31119,_0x3f6475){_0x3f6475(null,path['join'](config['root'],_0xdf1c('0x10')));},'filename':function(_0x41d5fd,_0x35bedc,_0x1078b8){_0x35bedc[_0xdf1c('0x11')]=_0x35bedc[_0xdf1c('0x11')][_0xdf1c('0x12')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-');_0x1078b8(null,util[_0xdf1c('0x13')](_0xdf1c('0x14'),path[_0xdf1c('0x15')](_0x35bedc[_0xdf1c('0x11')],path[_0xdf1c('0x16')](_0x35bedc[_0xdf1c('0x11')])),Date[_0xdf1c('0x17')](),path[_0xdf1c('0x16')](_0x35bedc['originalname'])));}})});router[_0xdf1c('0x18')]('/',upload[_0xdf1c('0x19')](_0xdf1c('0x1a')),controller[_0xdf1c('0x1b')]);router[_0xdf1c('0x1c')]('/:id',auth[_0xdf1c('0xa')](),controller[_0xdf1c('0x1d')]);router[_0xdf1c('0x1e')](_0xdf1c('0xc'),auth[_0xdf1c('0xa')](),controller[_0xdf1c('0x1e')]);module[_0xdf1c('0x1f')]=router;
\ No newline at end of file