Built motion from commit 00bf23f6.|2.6.16
[motion2.git] / server / api / plugin / index.js
index 42055b7..f23e9ec 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x54ef=['show','/:id/download','download','diskStorage','join','root','originalname','replace','format','basename','extname','post','upload','webhookPost','put','/:id','update','delete','multer','util','path','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./plugin.controller','index','get','/webhook','isAuthenticated'];(function(_0x3a99f4,_0x2a81c1){var _0xea0b42=function(_0x41f533){while(--_0x41f533){_0x3a99f4['push'](_0x3a99f4['shift']());}};_0xea0b42(++_0x2a81c1);}(_0x54ef,0x112));var _0xf54e=function(_0x1f706a,_0x3a2cb0){_0x1f706a=_0x1f706a-0x0;var _0x17bd3f=_0x54ef[_0x1f706a];return _0x17bd3f;};'use strict';var multer=require(_0xf54e('0x0'));var util=require(_0xf54e('0x1'));var path=require(_0xf54e('0x2'));var timeout=require('connect-timeout');var express=require(_0xf54e('0x3'));var router=express[_0xf54e('0x4')]();var fs_extra=require(_0xf54e('0x5'));var auth=require(_0xf54e('0x6'));var interaction=require(_0xf54e('0x7'));var config=require(_0xf54e('0x8'));var controller=require(_0xf54e('0x9'));router['get']('/',auth['isAuthenticated'](),controller[_0xf54e('0xa')]);router[_0xf54e('0xb')](_0xf54e('0xc'),controller['webhookGet']);router[_0xf54e('0xb')]('/:id',auth[_0xf54e('0xd')](),controller[_0xf54e('0xe')]);router['get'](_0xf54e('0xf'),auth[_0xf54e('0xd')](),controller[_0xf54e('0x10')]);var upload=multer({'storage':multer[_0xf54e('0x11')]({'destination':function(_0x5f232a,_0x558502,_0xc939ab){_0xc939ab(null,path[_0xf54e('0x12')](config[_0xf54e('0x13')],'server/files/plugins'));},'filename':function(_0x358c88,_0x4b0ee1,_0x4bd828){_0x4b0ee1[_0xf54e('0x14')]=_0x4b0ee1[_0xf54e('0x14')][_0xf54e('0x15')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-');_0x4bd828(null,util[_0xf54e('0x16')]('%s-%s%s',path[_0xf54e('0x17')](_0x4b0ee1[_0xf54e('0x14')],path[_0xf54e('0x18')](_0x4b0ee1[_0xf54e('0x14')])),Date['now'](),path[_0xf54e('0x18')](_0x4b0ee1[_0xf54e('0x14')])));}})});router[_0xf54e('0x19')]('/',upload['single']('file'),controller[_0xf54e('0x1a')]);router[_0xf54e('0x19')](_0xf54e('0xc'),controller[_0xf54e('0x1b')]);router[_0xf54e('0x1c')](_0xf54e('0x1d'),auth[_0xf54e('0xd')](),controller[_0xf54e('0x1e')]);router[_0xf54e('0x1f')](_0xf54e('0x1d'),auth[_0xf54e('0xd')](),controller['delete']);module['exports']=router;
\ No newline at end of file
+var _0x6f0d=['delete','util','path','connect-timeout','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./plugin.controller','isAuthenticated','get','/webhook','webhookGet','show','/:id/download','download','join','server/files/plugins','originalname','replace','format','%s-%s%s','extname','now','post','single','file','upload','webhookPost','put','/:id','update'];(function(_0x2e913b,_0x4b7071){var _0x173899=function(_0x2a7d22){while(--_0x2a7d22){_0x2e913b['push'](_0x2e913b['shift']());}};_0x173899(++_0x4b7071);}(_0x6f0d,0x16c));var _0xd6f0=function(_0x20bcc1,_0x626294){_0x20bcc1=_0x20bcc1-0x0;var _0xe46137=_0x6f0d[_0x20bcc1];return _0xe46137;};'use strict';var multer=require('multer');var util=require(_0xd6f0('0x0'));var path=require(_0xd6f0('0x1'));var timeout=require(_0xd6f0('0x2'));var express=require(_0xd6f0('0x3'));var router=express['Router']();var fs_extra=require(_0xd6f0('0x4'));var auth=require(_0xd6f0('0x5'));var interaction=require(_0xd6f0('0x6'));var config=require(_0xd6f0('0x7'));var controller=require(_0xd6f0('0x8'));router['get']('/',auth[_0xd6f0('0x9')](),controller['index']);router[_0xd6f0('0xa')](_0xd6f0('0xb'),controller[_0xd6f0('0xc')]);router[_0xd6f0('0xa')]('/:id',auth['isAuthenticated'](),controller[_0xd6f0('0xd')]);router[_0xd6f0('0xa')](_0xd6f0('0xe'),auth[_0xd6f0('0x9')](),controller[_0xd6f0('0xf')]);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0x136eee,_0xee144c,_0x329f69){_0x329f69(null,path[_0xd6f0('0x10')](config['root'],_0xd6f0('0x11')));},'filename':function(_0x2f0459,_0x306aad,_0x45973d){_0x306aad[_0xd6f0('0x12')]=_0x306aad[_0xd6f0('0x12')][_0xd6f0('0x13')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-');_0x45973d(null,util[_0xd6f0('0x14')](_0xd6f0('0x15'),path['basename'](_0x306aad[_0xd6f0('0x12')],path[_0xd6f0('0x16')](_0x306aad['originalname'])),Date[_0xd6f0('0x17')](),path['extname'](_0x306aad[_0xd6f0('0x12')])));}})});router[_0xd6f0('0x18')]('/',upload[_0xd6f0('0x19')](_0xd6f0('0x1a')),controller[_0xd6f0('0x1b')]);router[_0xd6f0('0x18')](_0xd6f0('0xb'),controller[_0xd6f0('0x1c')]);router[_0xd6f0('0x1d')](_0xd6f0('0x1e'),auth[_0xd6f0('0x9')](),controller[_0xd6f0('0x1f')]);router[_0xd6f0('0x20')](_0xd6f0('0x1e'),auth[_0xd6f0('0x9')](),controller[_0xd6f0('0x20')]);module['exports']=router;
\ No newline at end of file