Built motion from commit bfc7a72f7045b27461c9a5d1f71c1a658cfd0b8b. Version 3.0.0...
[motion-next.git] / server / api / plugin / index.js
index 9771105..f76190b 100644 (file)
@@ -1 +1 @@
-const a513_0x525e=['download','Router','../../config/environment','format','/webhook','single','express','%s-%s%s','isAuthenticated','put','delete','post','update','exports','/:id','file','get','webhookPost','webhookGet','extname','path','diskStorage','originalname','root','replace','upload','join','index','/:id/download'];(function(_0x4959e2,_0x525e9c){const _0x1fb6a2=function(_0x47806e){while(--_0x47806e){_0x4959e2['push'](_0x4959e2['shift']());}};_0x1fb6a2(++_0x525e9c);}(a513_0x525e,0x1dc));const a513_0x1fb6=function(_0x4959e2,_0x525e9c){_0x4959e2=_0x4959e2-0x0;let _0x1fb6a2=a513_0x525e[_0x4959e2];return _0x1fb6a2;};const _0xeeaf06=a513_0x1fb6;'use strict';const multer=require('multer'),util=require('util'),path=require(_0xeeaf06('0x8')),express=require(_0xeeaf06('0x17')),router=express[_0xeeaf06('0x12')](),auth=require('../../components/auth/service'),config=require(_0xeeaf06('0x13')),controller=require('./plugin.controller');router[_0xeeaf06('0x4')]('/',auth['isAuthenticated'](),controller[_0xeeaf06('0xf')]),router[_0xeeaf06('0x4')](_0xeeaf06('0x15'),controller[_0xeeaf06('0x6')]),router[_0xeeaf06('0x4')]('/:id',auth['isAuthenticated'](),controller['show']),router[_0xeeaf06('0x4')](_0xeeaf06('0x10'),auth['isAuthenticated'](),controller[_0xeeaf06('0x11')]);const upload=multer({'storage':multer[_0xeeaf06('0x9')]({'destination':function(_0x47806e,_0x2c33d4,_0x3f3648){const _0x305b1d=_0xeeaf06;_0x3f3648(null,path[_0x305b1d('0xe')](config[_0x305b1d('0xb')],'files/plugins'));},'filename':function(_0x4edc0b,_0xd902bd,_0x534792){const _0x8b11f3=_0xeeaf06;_0xd902bd[_0x8b11f3('0xa')]=_0xd902bd['originalname'][_0x8b11f3('0xc')](/[+@&/\\#,+()$~%'":*?<>{}\s\\|]/g,'-'),_0x534792(null,util[_0x8b11f3('0x14')](_0x8b11f3('0x18'),path['basename'](_0xd902bd[_0x8b11f3('0xa')],path[_0x8b11f3('0x7')](_0xd902bd[_0x8b11f3('0xa')])),Date['now'](),path['extname'](_0xd902bd[_0x8b11f3('0xa')])));}})});router[_0xeeaf06('0x1c')]('/',upload[_0xeeaf06('0x16')](_0xeeaf06('0x3')),controller[_0xeeaf06('0xd')]),router[_0xeeaf06('0x1c')](_0xeeaf06('0x15'),controller[_0xeeaf06('0x5')]),router[_0xeeaf06('0x1a')](_0xeeaf06('0x2'),auth[_0xeeaf06('0x19')](),controller[_0xeeaf06('0x0')]),router[_0xeeaf06('0x1b')](_0xeeaf06('0x2'),auth[_0xeeaf06('0x19')](),controller[_0xeeaf06('0x1b')]),module[_0xeeaf06('0x1')]=router;
\ No newline at end of file
+const a513_0x10d1=['./plugin.controller','webhookPost','extname','Router','express','get','root','format','files/plugins','put','webhookGet','post','/:id/download','file','/:id','/webhook','delete','multer','upload','../../config/environment','update','index','join','../../components/auth/service','originalname','diskStorage','isAuthenticated','exports','replace'];(function(_0x20bb51,_0x10d1d5){const _0x18cffd=function(_0x53bf3b){while(--_0x53bf3b){_0x20bb51['push'](_0x20bb51['shift']());}};_0x18cffd(++_0x10d1d5);}(a513_0x10d1,0x15c));const a513_0x18cf=function(_0x20bb51,_0x10d1d5){_0x20bb51=_0x20bb51-0x0;let _0x18cffd=a513_0x10d1[_0x20bb51];return _0x18cffd;};const _0xfb5361=a513_0x18cf;'use strict';const multer=require(_0xfb5361('0x11')),util=require('util'),path=require('path'),express=require(_0xfb5361('0x4')),router=express[_0xfb5361('0x3')](),auth=require(_0xfb5361('0x17')),config=require(_0xfb5361('0x13')),controller=require(_0xfb5361('0x0'));router[_0xfb5361('0x5')]('/',auth[_0xfb5361('0x1a')](),controller[_0xfb5361('0x15')]),router[_0xfb5361('0x5')]('/webhook',controller[_0xfb5361('0xa')]),router[_0xfb5361('0x5')]('/:id',auth[_0xfb5361('0x1a')](),controller['show']),router[_0xfb5361('0x5')](_0xfb5361('0xc'),auth['isAuthenticated'](),controller['download']);const upload=multer({'storage':multer[_0xfb5361('0x19')]({'destination':function(_0x53bf3b,_0x50f66d,_0xb08e21){const _0x1732e5=_0xfb5361;_0xb08e21(null,path[_0x1732e5('0x16')](config[_0x1732e5('0x6')],_0x1732e5('0x8')));},'filename':function(_0x3fdbf8,_0x5c47f2,_0xf2a440){const _0x13df49=_0xfb5361;_0x5c47f2[_0x13df49('0x18')]=_0x5c47f2[_0x13df49('0x18')][_0x13df49('0x1c')](/[+@&/\\#,+()$~%'":*?<>{}\s\\|]/g,'-'),_0xf2a440(null,util[_0x13df49('0x7')]('%s-%s%s',path['basename'](_0x5c47f2[_0x13df49('0x18')],path['extname'](_0x5c47f2[_0x13df49('0x18')])),Date['now'](),path[_0x13df49('0x2')](_0x5c47f2[_0x13df49('0x18')])));}})});router[_0xfb5361('0xb')]('/',upload['single'](_0xfb5361('0xd')),controller[_0xfb5361('0x12')]),router[_0xfb5361('0xb')](_0xfb5361('0xf'),controller[_0xfb5361('0x1')]),router[_0xfb5361('0x9')](_0xfb5361('0xe'),auth[_0xfb5361('0x1a')](),controller[_0xfb5361('0x14')]),router[_0xfb5361('0x10')](_0xfb5361('0xe'),auth[_0xfb5361('0x1a')](),controller['delete']),module[_0xfb5361('0x1b')]=router;
\ No newline at end of file