Built motion from commit (unavailable).|2.5.14
[motion2.git] / server / api / sound / index.js
index 82d3780..16eaee1 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xc26f=['%s-%s%s','basename','extname','post','single','file','create','put','/:id','update','exports','multer','util','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./sound.controller','get','isAuthenticated','index','show','/:id/download','download','join','root','server/files/sounds/original/','originalname','replace'];(function(_0x271537,_0x8b7b3b){var _0x19dc22=function(_0x459bbf){while(--_0x459bbf){_0x271537['push'](_0x271537['shift']());}};_0x19dc22(++_0x8b7b3b);}(_0xc26f,0x87));var _0xfc26=function(_0x4b7895,_0x3c4f5d){_0x4b7895=_0x4b7895-0x0;var _0x264180=_0xc26f[_0x4b7895];return _0x264180;};'use strict';var multer=require(_0xfc26('0x0'));var util=require(_0xfc26('0x1'));var path=require('path');var timeout=require(_0xfc26('0x2'));var express=require(_0xfc26('0x3'));var router=express[_0xfc26('0x4')]();var auth=require(_0xfc26('0x5'));var interaction=require(_0xfc26('0x6'));var config=require(_0xfc26('0x7'));var controller=require(_0xfc26('0x8'));router[_0xfc26('0x9')]('/',auth[_0xfc26('0xa')](),controller[_0xfc26('0xb')]);router[_0xfc26('0x9')]('/:id',auth[_0xfc26('0xa')](),controller[_0xfc26('0xc')]);router[_0xfc26('0x9')](_0xfc26('0xd'),auth[_0xfc26('0xa')](),controller[_0xfc26('0xe')]);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0x5e557e,_0x28c12b,_0x3a5698){_0x3a5698(null,path[_0xfc26('0xf')](config[_0xfc26('0x10')],_0xfc26('0x11')));},'filename':function(_0x11b65e,_0x419a55,_0x580319){_0x419a55['originalname']=_0x419a55[_0xfc26('0x12')][_0xfc26('0x13')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-');_0x580319(null,util['format'](_0xfc26('0x14'),path[_0xfc26('0x15')](_0x419a55[_0xfc26('0x12')],path[_0xfc26('0x16')](_0x419a55[_0xfc26('0x12')])),Date['now'](),path[_0xfc26('0x16')](_0x419a55[_0xfc26('0x12')])));}})});router[_0xfc26('0x17')]('/',upload[_0xfc26('0x18')](_0xfc26('0x19')),controller[_0xfc26('0x1a')]);router[_0xfc26('0x1b')](_0xfc26('0x1c'),auth['isAuthenticated'](),controller[_0xfc26('0x1d')]);router['delete']('/:id',auth[_0xfc26('0xa')](),controller['delete']);module[_0xfc26('0x1e')]=router;
\ No newline at end of file
+var _0x4fea=['delete','exports','multer','util','path','express','Router','../../components/auth/service','../../components/interaction/service','./sound.controller','get','/:id','isAuthenticated','download','diskStorage','join','root','server/files/sounds/original/','originalname','replace','%s-%s%s','basename','extname','post','single','file','create','update'];(function(_0x563cde,_0x188b0d){var _0x3ecb4e=function(_0x3d5e66){while(--_0x3d5e66){_0x563cde['push'](_0x563cde['shift']());}};_0x3ecb4e(++_0x188b0d);}(_0x4fea,0x16e));var _0xa4fe=function(_0x26f783,_0x3b24a7){_0x26f783=_0x26f783-0x0;var _0x175066=_0x4fea[_0x26f783];return _0x175066;};'use strict';var multer=require(_0xa4fe('0x0'));var util=require(_0xa4fe('0x1'));var path=require(_0xa4fe('0x2'));var timeout=require('connect-timeout');var express=require(_0xa4fe('0x3'));var router=express[_0xa4fe('0x4')]();var auth=require(_0xa4fe('0x5'));var interaction=require(_0xa4fe('0x6'));var config=require('../../config/environment');var controller=require(_0xa4fe('0x7'));router[_0xa4fe('0x8')]('/',auth['isAuthenticated'](),controller['index']);router['get'](_0xa4fe('0x9'),auth[_0xa4fe('0xa')](),controller['show']);router[_0xa4fe('0x8')]('/:id/download',auth[_0xa4fe('0xa')](),controller[_0xa4fe('0xb')]);var upload=multer({'storage':multer[_0xa4fe('0xc')]({'destination':function(_0x566a84,_0x239cc2,_0x1b3c92){_0x1b3c92(null,path[_0xa4fe('0xd')](config[_0xa4fe('0xe')],_0xa4fe('0xf')));},'filename':function(_0x22b1d7,_0x3bb25a,_0xf3a0ae){_0x3bb25a[_0xa4fe('0x10')]=_0x3bb25a['originalname'][_0xa4fe('0x11')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-');_0xf3a0ae(null,util['format'](_0xa4fe('0x12'),path[_0xa4fe('0x13')](_0x3bb25a[_0xa4fe('0x10')],path[_0xa4fe('0x14')](_0x3bb25a[_0xa4fe('0x10')])),Date['now'](),path[_0xa4fe('0x14')](_0x3bb25a['originalname'])));}})});router[_0xa4fe('0x15')]('/',upload[_0xa4fe('0x16')](_0xa4fe('0x17')),controller[_0xa4fe('0x18')]);router['put'](_0xa4fe('0x9'),auth[_0xa4fe('0xa')](),controller[_0xa4fe('0x19')]);router[_0xa4fe('0x1a')](_0xa4fe('0x9'),auth[_0xa4fe('0xa')](),controller[_0xa4fe('0x1a')]);module[_0xa4fe('0x1b')]=router;
\ No newline at end of file