Built motion from commit (unavailable).|2.4.4
[motion2.git] / server / api / plugin / index.js
index 60ec640..d8c791f 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x34ba=['single','file','upload','webhookPost','put','delete','/:id','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./plugin.controller','get','isAuthenticated','index','/webhook','webhookGet','diskStorage','root','server/files/plugins','originalname','replace','format','%s-%s%s','basename','extname','post'];(function(_0xa464c9,_0x7c86d8){var _0x3d73c4=function(_0x5c2056){while(--_0x5c2056){_0xa464c9['push'](_0xa464c9['shift']());}};_0x3d73c4(++_0x7c86d8);}(_0x34ba,0xa2));var _0xa34b=function(_0x28863a,_0x2d34c2){_0x28863a=_0x28863a-0x0;var _0x3d020f=_0x34ba[_0x28863a];return _0x3d020f;};'use strict';var multer=require('multer');var util=require(_0xa34b('0x0'));var path=require(_0xa34b('0x1'));var timeout=require(_0xa34b('0x2'));var express=require(_0xa34b('0x3'));var router=express[_0xa34b('0x4')]();var auth=require(_0xa34b('0x5'));var interaction=require(_0xa34b('0x6'));var config=require(_0xa34b('0x7'));var controller=require(_0xa34b('0x8'));router[_0xa34b('0x9')]('/',auth[_0xa34b('0xa')](),controller[_0xa34b('0xb')]);router[_0xa34b('0x9')](_0xa34b('0xc'),controller[_0xa34b('0xd')]);router[_0xa34b('0x9')]('/:id',auth[_0xa34b('0xa')](),controller['show']);router[_0xa34b('0x9')]('/:id/download',auth[_0xa34b('0xa')](),controller['download']);var upload=multer({'storage':multer[_0xa34b('0xe')]({'destination':function(_0x2c3dee,_0x4c21c9,_0x1d4f44){_0x1d4f44(null,path['join'](config[_0xa34b('0xf')],_0xa34b('0x10')));},'filename':function(_0x940f6a,_0x3237b2,_0x232cb7){_0x3237b2['originalname']=_0x3237b2[_0xa34b('0x11')][_0xa34b('0x12')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-');_0x232cb7(null,util[_0xa34b('0x13')](_0xa34b('0x14'),path[_0xa34b('0x15')](_0x3237b2[_0xa34b('0x11')],path['extname'](_0x3237b2['originalname'])),Date['now'](),path[_0xa34b('0x16')](_0x3237b2[_0xa34b('0x11')])));}})});router[_0xa34b('0x17')]('/',upload[_0xa34b('0x18')](_0xa34b('0x19')),controller[_0xa34b('0x1a')]);router['post'](_0xa34b('0xc'),controller[_0xa34b('0x1b')]);router[_0xa34b('0x1c')]('/:id',auth['isAuthenticated'](),controller['update']);router[_0xa34b('0x1d')](_0xa34b('0x1e'),auth[_0xa34b('0xa')](),controller['delete']);module['exports']=router;
\ No newline at end of file
+var _0x6b3e=['/webhook','webhookGet','isAuthenticated','show','/:id/download','download','diskStorage','join','root','server/files/plugins','originalname','replace','format','%s-%s%s','basename','extname','single','file','upload','/:id','update','delete','exports','path','connect-timeout','express','Router','../../config/environment','./plugin.controller','get','index'];(function(_0xa9054d,_0x3cc1bf){var _0x3aae53=function(_0x54254b){while(--_0x54254b){_0xa9054d['push'](_0xa9054d['shift']());}};_0x3aae53(++_0x3cc1bf);}(_0x6b3e,0x1c9));var _0xe6b3=function(_0x55491f,_0x3aea90){_0x55491f=_0x55491f-0x0;var _0x4bc1fb=_0x6b3e[_0x55491f];return _0x4bc1fb;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xe6b3('0x0'));var timeout=require(_0xe6b3('0x1'));var express=require(_0xe6b3('0x2'));var router=express[_0xe6b3('0x3')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xe6b3('0x4'));var controller=require(_0xe6b3('0x5'));router[_0xe6b3('0x6')]('/',auth['isAuthenticated'](),controller[_0xe6b3('0x7')]);router['get'](_0xe6b3('0x8'),controller[_0xe6b3('0x9')]);router[_0xe6b3('0x6')]('/:id',auth[_0xe6b3('0xa')](),controller[_0xe6b3('0xb')]);router[_0xe6b3('0x6')](_0xe6b3('0xc'),auth[_0xe6b3('0xa')](),controller[_0xe6b3('0xd')]);var upload=multer({'storage':multer[_0xe6b3('0xe')]({'destination':function(_0x2a571c,_0x352dc3,_0x3c93bf){_0x3c93bf(null,path[_0xe6b3('0xf')](config[_0xe6b3('0x10')],_0xe6b3('0x11')));},'filename':function(_0x4be828,_0x5bd84c,_0x2008e3){_0x5bd84c[_0xe6b3('0x12')]=_0x5bd84c[_0xe6b3('0x12')][_0xe6b3('0x13')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-');_0x2008e3(null,util[_0xe6b3('0x14')](_0xe6b3('0x15'),path[_0xe6b3('0x16')](_0x5bd84c[_0xe6b3('0x12')],path['extname'](_0x5bd84c[_0xe6b3('0x12')])),Date['now'](),path[_0xe6b3('0x17')](_0x5bd84c[_0xe6b3('0x12')])));}})});router['post']('/',upload[_0xe6b3('0x18')](_0xe6b3('0x19')),controller[_0xe6b3('0x1a')]);router['post'](_0xe6b3('0x8'),controller['webhookPost']);router['put'](_0xe6b3('0x1b'),auth[_0xe6b3('0xa')](),controller[_0xe6b3('0x1c')]);router[_0xe6b3('0x1d')]('/:id',auth[_0xe6b3('0xa')](),controller[_0xe6b3('0x1d')]);module[_0xe6b3('0x1e')]=router;
\ No newline at end of file