Built motion from commit 85328c08.|2.5.50
[motion2.git] / server / api / sound / index.js
index e6bd064..ef0d2e0 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xff20=['server/files/sounds/original/','originalname','replace','%s-%s%s','post','file','create','put','update','delete','/:id','exports','multer','util','path','connect-timeout','express','../../components/auth/service','../../config/environment','./sound.controller','get','isAuthenticated','index','show','/:id/download','download','diskStorage','join','root'];(function(_0x2bf850,_0x1082af){var _0x5bc9a4=function(_0x330b67){while(--_0x330b67){_0x2bf850['push'](_0x2bf850['shift']());}};_0x5bc9a4(++_0x1082af);}(_0xff20,0x9d));var _0x0ff2=function(_0x4b1c61,_0x33adfd){_0x4b1c61=_0x4b1c61-0x0;var _0x54a1ad=_0xff20[_0x4b1c61];return _0x54a1ad;};'use strict';var multer=require(_0x0ff2('0x0'));var util=require(_0x0ff2('0x1'));var path=require(_0x0ff2('0x2'));var timeout=require(_0x0ff2('0x3'));var express=require(_0x0ff2('0x4'));var router=express['Router']();var auth=require(_0x0ff2('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x0ff2('0x6'));var controller=require(_0x0ff2('0x7'));router[_0x0ff2('0x8')]('/',auth[_0x0ff2('0x9')](),controller[_0x0ff2('0xa')]);router['get']('/:id',auth[_0x0ff2('0x9')](),controller[_0x0ff2('0xb')]);router[_0x0ff2('0x8')](_0x0ff2('0xc'),auth['isAuthenticated'](),controller[_0x0ff2('0xd')]);var upload=multer({'storage':multer[_0x0ff2('0xe')]({'destination':function(_0x3463d2,_0x285997,_0x1bdb29){_0x1bdb29(null,path[_0x0ff2('0xf')](config[_0x0ff2('0x10')],_0x0ff2('0x11')));},'filename':function(_0x3f15ba,_0x11e832,_0x9f13b4){_0x11e832[_0x0ff2('0x12')]=_0x11e832[_0x0ff2('0x12')][_0x0ff2('0x13')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-');_0x9f13b4(null,util['format'](_0x0ff2('0x14'),path['basename'](_0x11e832[_0x0ff2('0x12')],path['extname'](_0x11e832[_0x0ff2('0x12')])),Date['now'](),path['extname'](_0x11e832[_0x0ff2('0x12')])));}})});router[_0x0ff2('0x15')]('/',upload['single'](_0x0ff2('0x16')),controller[_0x0ff2('0x17')]);router[_0x0ff2('0x18')]('/:id',auth[_0x0ff2('0x9')](),controller[_0x0ff2('0x19')]);router[_0x0ff2('0x1a')](_0x0ff2('0x1b'),auth[_0x0ff2('0x9')](),controller[_0x0ff2('0x1a')]);module[_0x0ff2('0x1c')]=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