Built motion from commit 00bf23f6.|2.6.16
[motion2.git] / server / api / plugin / index.js
index d9d6868..f23e9ec 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x4ebe=['util','path','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./plugin.controller','get','isAuthenticated','index','webhookGet','/:id','show','download','root','server/files/plugins','originalname','replace','%s-%s%s','now','post','single','file','upload','webhookPost','delete','exports','multer'];(function(_0x397b72,_0x2b533c){var _0x1c47be=function(_0x456708){while(--_0x456708){_0x397b72['push'](_0x397b72['shift']());}};_0x1c47be(++_0x2b533c);}(_0x4ebe,0x16b));var _0xe4eb=function(_0x3ad54e,_0x557792){_0x3ad54e=_0x3ad54e-0x0;var _0x3ff471=_0x4ebe[_0x3ad54e];return _0x3ff471;};'use strict';var multer=require(_0xe4eb('0x0'));var util=require(_0xe4eb('0x1'));var path=require(_0xe4eb('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0xe4eb('0x3')]();var auth=require(_0xe4eb('0x4'));var interaction=require(_0xe4eb('0x5'));var config=require(_0xe4eb('0x6'));var controller=require(_0xe4eb('0x7'));router[_0xe4eb('0x8')]('/',auth[_0xe4eb('0x9')](),controller[_0xe4eb('0xa')]);router[_0xe4eb('0x8')]('/webhook',controller[_0xe4eb('0xb')]);router[_0xe4eb('0x8')](_0xe4eb('0xc'),auth[_0xe4eb('0x9')](),controller[_0xe4eb('0xd')]);router[_0xe4eb('0x8')]('/:id/download',auth[_0xe4eb('0x9')](),controller[_0xe4eb('0xe')]);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0x54875a,_0x1de6f3,_0x43fff4){_0x43fff4(null,path['join'](config[_0xe4eb('0xf')],_0xe4eb('0x10')));},'filename':function(_0x59605f,_0x2504b3,_0x21acb3){_0x2504b3['originalname']=_0x2504b3[_0xe4eb('0x11')][_0xe4eb('0x12')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-');_0x21acb3(null,util['format'](_0xe4eb('0x13'),path['basename'](_0x2504b3[_0xe4eb('0x11')],path['extname'](_0x2504b3['originalname'])),Date[_0xe4eb('0x14')](),path['extname'](_0x2504b3['originalname'])));}})});router[_0xe4eb('0x15')]('/',upload[_0xe4eb('0x16')](_0xe4eb('0x17')),controller[_0xe4eb('0x18')]);router['post']('/webhook',controller[_0xe4eb('0x19')]);router['put']('/:id',auth['isAuthenticated'](),controller['update']);router[_0xe4eb('0x1a')](_0xe4eb('0xc'),auth[_0xe4eb('0x9')](),controller[_0xe4eb('0x1a')]);module[_0xe4eb('0x1b')]=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