Built motion from commit (unavailable).|2.4.4
[motion2.git] / server / api / plugin / index.js
index 12dbcca..e2bc37a 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xeeca=['../../components/auth/service','../../config/environment','get','index','webhookGet','/:id','isAuthenticated','show','/:id/download','download','join','root','originalname','replace','format','%s-%s%s','basename','now','extname','post','single','file','webhookPost','update','delete','exports','util','path','express','Router'];(function(_0x412e54,_0x3ba81e){var _0x1f3b0a=function(_0x27084b){while(--_0x27084b){_0x412e54['push'](_0x412e54['shift']());}};_0x1f3b0a(++_0x3ba81e);}(_0xeeca,0x146));var _0xaeec=function(_0x101e7b,_0x4ef05b){_0x101e7b=_0x101e7b-0x0;var _0x4995c0=_0xeeca[_0x101e7b];return _0x4995c0;};'use strict';var multer=require('multer');var util=require(_0xaeec('0x0'));var path=require(_0xaeec('0x1'));var timeout=require('connect-timeout');var express=require(_0xaeec('0x2'));var router=express[_0xaeec('0x3')]();var auth=require(_0xaeec('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0xaeec('0x5'));var controller=require('./plugin.controller');router[_0xaeec('0x6')]('/',auth['isAuthenticated'](),controller[_0xaeec('0x7')]);router[_0xaeec('0x6')]('/webhook',controller[_0xaeec('0x8')]);router[_0xaeec('0x6')](_0xaeec('0x9'),auth[_0xaeec('0xa')](),controller[_0xaeec('0xb')]);router[_0xaeec('0x6')](_0xaeec('0xc'),auth[_0xaeec('0xa')](),controller[_0xaeec('0xd')]);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0x520a16,_0x21fbe6,_0x4b7e8d){_0x4b7e8d(null,path[_0xaeec('0xe')](config[_0xaeec('0xf')],'server/files/plugins'));},'filename':function(_0x467142,_0x2ede53,_0x456c62){_0x2ede53['originalname']=_0x2ede53[_0xaeec('0x10')][_0xaeec('0x11')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-');_0x456c62(null,util[_0xaeec('0x12')](_0xaeec('0x13'),path[_0xaeec('0x14')](_0x2ede53[_0xaeec('0x10')],path['extname'](_0x2ede53[_0xaeec('0x10')])),Date[_0xaeec('0x15')](),path[_0xaeec('0x16')](_0x2ede53[_0xaeec('0x10')])));}})});router[_0xaeec('0x17')]('/',upload[_0xaeec('0x18')](_0xaeec('0x19')),controller['upload']);router['post']('/webhook',controller[_0xaeec('0x1a')]);router['put']('/:id',auth[_0xaeec('0xa')](),controller[_0xaeec('0x1b')]);router[_0xaeec('0x1c')](_0xaeec('0x9'),auth[_0xaeec('0xa')](),controller[_0xaeec('0x1c')]);module[_0xaeec('0x1d')]=router;
\ No newline at end of file
+var _0x5b35=['/webhook','/:id','show','/:id/download','diskStorage','join','root','server/files/plugins','originalname','replace','format','%s-%s%s','basename','extname','now','post','file','upload','webhookPost','put','delete','exports','multer','util','Router','../../components/auth/service','../../components/interaction/service','./plugin.controller','isAuthenticated','index','get'];(function(_0x26222d,_0x1d2de1){var _0x16bf9f=function(_0x43892a){while(--_0x43892a){_0x26222d['push'](_0x26222d['shift']());}};_0x16bf9f(++_0x1d2de1);}(_0x5b35,0x10e));var _0x55b3=function(_0x122ef9,_0x451d2a){_0x122ef9=_0x122ef9-0x0;var _0x42fba0=_0x5b35[_0x122ef9];return _0x42fba0;};'use strict';var multer=require(_0x55b3('0x0'));var util=require(_0x55b3('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express[_0x55b3('0x2')]();var auth=require(_0x55b3('0x3'));var interaction=require(_0x55b3('0x4'));var config=require('../../config/environment');var controller=require(_0x55b3('0x5'));router['get']('/',auth[_0x55b3('0x6')](),controller[_0x55b3('0x7')]);router[_0x55b3('0x8')](_0x55b3('0x9'),controller['webhookGet']);router[_0x55b3('0x8')](_0x55b3('0xa'),auth[_0x55b3('0x6')](),controller[_0x55b3('0xb')]);router[_0x55b3('0x8')](_0x55b3('0xc'),auth[_0x55b3('0x6')](),controller['download']);var upload=multer({'storage':multer[_0x55b3('0xd')]({'destination':function(_0x58de53,_0xcd4fde,_0x2110da){_0x2110da(null,path[_0x55b3('0xe')](config[_0x55b3('0xf')],_0x55b3('0x10')));},'filename':function(_0x1a4eed,_0x3acc16,_0x4c565b){_0x3acc16['originalname']=_0x3acc16[_0x55b3('0x11')][_0x55b3('0x12')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-');_0x4c565b(null,util[_0x55b3('0x13')](_0x55b3('0x14'),path[_0x55b3('0x15')](_0x3acc16[_0x55b3('0x11')],path[_0x55b3('0x16')](_0x3acc16['originalname'])),Date[_0x55b3('0x17')](),path[_0x55b3('0x16')](_0x3acc16['originalname'])));}})});router[_0x55b3('0x18')]('/',upload['single'](_0x55b3('0x19')),controller[_0x55b3('0x1a')]);router[_0x55b3('0x18')](_0x55b3('0x9'),controller[_0x55b3('0x1b')]);router[_0x55b3('0x1c')](_0x55b3('0xa'),auth[_0x55b3('0x6')](),controller['update']);router[_0x55b3('0x1d')](_0x55b3('0xa'),auth['isAuthenticated'](),controller[_0x55b3('0x1d')]);module[_0x55b3('0x1e')]=router;
\ No newline at end of file