Built motion from commit 85328c08.|2.5.50
[motion2.git] / server / api / sound / index.js
index 5640c46..ef0d2e0 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x9ef0=['put','delete','exports','multer','util','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./sound.controller','get','/:id','isAuthenticated','show','download','diskStorage','join','server/files/sounds/original/','replace','format','%s-%s%s','basename','originalname','now','extname','post','single','file','create'];(function(_0x5a40ce,_0x20dad2){var _0xcb5a53=function(_0x2e264e){while(--_0x2e264e){_0x5a40ce['push'](_0x5a40ce['shift']());}};_0xcb5a53(++_0x20dad2);}(_0x9ef0,0x177));var _0x09ef=function(_0x11e6b3,_0x3f7374){_0x11e6b3=_0x11e6b3-0x0;var _0x2bb29d=_0x9ef0[_0x11e6b3];return _0x2bb29d;};'use strict';var multer=require(_0x09ef('0x0'));var util=require(_0x09ef('0x1'));var path=require('path');var timeout=require(_0x09ef('0x2'));var express=require(_0x09ef('0x3'));var router=express[_0x09ef('0x4')]();var auth=require(_0x09ef('0x5'));var interaction=require(_0x09ef('0x6'));var config=require(_0x09ef('0x7'));var controller=require(_0x09ef('0x8'));router['get']('/',auth['isAuthenticated'](),controller['index']);router[_0x09ef('0x9')](_0x09ef('0xa'),auth[_0x09ef('0xb')](),controller[_0x09ef('0xc')]);router[_0x09ef('0x9')]('/:id/download',auth[_0x09ef('0xb')](),controller[_0x09ef('0xd')]);var upload=multer({'storage':multer[_0x09ef('0xe')]({'destination':function(_0x19ad80,_0x18f18f,_0x31aa11){_0x31aa11(null,path[_0x09ef('0xf')](config['root'],_0x09ef('0x10')));},'filename':function(_0x16dd5f,_0x30e953,_0x57d5f6){_0x30e953['originalname']=_0x30e953['originalname'][_0x09ef('0x11')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-');_0x57d5f6(null,util[_0x09ef('0x12')](_0x09ef('0x13'),path[_0x09ef('0x14')](_0x30e953['originalname'],path['extname'](_0x30e953[_0x09ef('0x15')])),Date[_0x09ef('0x16')](),path[_0x09ef('0x17')](_0x30e953[_0x09ef('0x15')])));}})});router[_0x09ef('0x18')]('/',upload[_0x09ef('0x19')](_0x09ef('0x1a')),controller[_0x09ef('0x1b')]);router[_0x09ef('0x1c')](_0x09ef('0xa'),auth[_0x09ef('0xb')](),controller['update']);router[_0x09ef('0x1d')](_0x09ef('0xa'),auth['isAuthenticated'](),controller[_0x09ef('0x1d')]);module[_0x09ef('0x1e')]=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