Built motion from commit (unavailable).|2.0.73
[motion2.git] / server / api / setting / index.js
index c795d5f..c98f829 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xe8b2=['update','multer','util','path','express','Router','../../components/auth/service','../../components/interaction/service','./setting.controller','get','show','/:id/logo','/:id/gdpr','gdpr','diskStorage','join','root','server/files/images/logos/','format','logo','originalname','post','single','file','addLogo','%s%s','logologin','extname','addLogoLogin','/:id','isAuthenticated'];(function(_0x128832,_0x480891){var _0x245228=function(_0x4e1641){while(--_0x4e1641){_0x128832['push'](_0x128832['shift']());}};_0x245228(++_0x480891);}(_0xe8b2,0x7d));var _0x2e8b=function(_0x5d8604,_0x135606){_0x5d8604=_0x5d8604-0x0;var _0x49e35a=_0xe8b2[_0x5d8604];return _0x49e35a;};'use strict';var multer=require(_0x2e8b('0x0'));var util=require(_0x2e8b('0x1'));var path=require(_0x2e8b('0x2'));var express=require(_0x2e8b('0x3'));var router=express[_0x2e8b('0x4')]();var auth=require(_0x2e8b('0x5'));var interaction=require(_0x2e8b('0x6'));var config=require('../../config/environment');var controller=require(_0x2e8b('0x7'));router[_0x2e8b('0x8')]('/',auth['isAuthenticated'](),controller['index']);router[_0x2e8b('0x8')]('/:id',controller[_0x2e8b('0x9')]);router[_0x2e8b('0x8')](_0x2e8b('0xa'),controller['getLogo']);router['get']('/:id/logo_login',controller['getLogoLogin']);router[_0x2e8b('0x8')](_0x2e8b('0xb'),controller[_0x2e8b('0xc')]);var upload=multer({'storage':multer[_0x2e8b('0xd')]({'destination':function(_0x48f050,_0x486ce2,_0x2c61f0){_0x2c61f0(null,path[_0x2e8b('0xe')](config[_0x2e8b('0xf')],_0x2e8b('0x10')));},'filename':function(_0x447a07,_0x599888,_0x5240ff){_0x5240ff(null,util[_0x2e8b('0x11')]('%s%s',_0x2e8b('0x12'),path['extname'](_0x599888[_0x2e8b('0x13')])));}})});router[_0x2e8b('0x14')](_0x2e8b('0xa'),upload[_0x2e8b('0x15')](_0x2e8b('0x16')),controller[_0x2e8b('0x17')]);var upload=multer({'storage':multer[_0x2e8b('0xd')]({'destination':function(_0x1230ae,_0x5b08cd,_0x59f523){_0x59f523(null,path[_0x2e8b('0xe')](config[_0x2e8b('0xf')],_0x2e8b('0x10')));},'filename':function(_0x89d3b1,_0x1c954e,_0x20a731){_0x20a731(null,util[_0x2e8b('0x11')](_0x2e8b('0x18'),_0x2e8b('0x19'),path[_0x2e8b('0x1a')](_0x1c954e[_0x2e8b('0x13')])));}})});router[_0x2e8b('0x14')]('/:id/logo_login',upload[_0x2e8b('0x15')]('file'),controller[_0x2e8b('0x1b')]);router['put'](_0x2e8b('0x1c'),auth[_0x2e8b('0x1d')](),controller[_0x2e8b('0x1e')]);module['exports']=router;
\ No newline at end of file
+var _0xf4a7=['logologin','/:id/logo_login','addLogoLogin','put','isAuthenticated','update','exports','util','path','express','Router','./setting.controller','get','index','/:id','show','/:id/logo','getLogo','getLogoLogin','/:id/gdpr','gdpr','diskStorage','join','root','server/files/images/logos/','format','%s%s','logo','extname','originalname','post','single','file','addLogo'];(function(_0x51b00d,_0xac4a95){var _0x725a96=function(_0x4c1dbb){while(--_0x4c1dbb){_0x51b00d['push'](_0x51b00d['shift']());}};_0x725a96(++_0xac4a95);}(_0xf4a7,0x117));var _0x7f4a=function(_0xfc0dc2,_0x52674d){_0xfc0dc2=_0xfc0dc2-0x0;var _0x50e15d=_0xf4a7[_0xfc0dc2];return _0x50e15d;};'use strict';var multer=require('multer');var util=require(_0x7f4a('0x0'));var path=require(_0x7f4a('0x1'));var express=require(_0x7f4a('0x2'));var router=express[_0x7f4a('0x3')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x7f4a('0x4'));router[_0x7f4a('0x5')]('/',auth['isAuthenticated'](),controller[_0x7f4a('0x6')]);router[_0x7f4a('0x5')](_0x7f4a('0x7'),controller[_0x7f4a('0x8')]);router['get'](_0x7f4a('0x9'),controller[_0x7f4a('0xa')]);router[_0x7f4a('0x5')]('/:id/logo_login',controller[_0x7f4a('0xb')]);router[_0x7f4a('0x5')](_0x7f4a('0xc'),controller[_0x7f4a('0xd')]);var upload=multer({'storage':multer[_0x7f4a('0xe')]({'destination':function(_0x33145a,_0x158a6a,_0x38215f){_0x38215f(null,path[_0x7f4a('0xf')](config[_0x7f4a('0x10')],_0x7f4a('0x11')));},'filename':function(_0x45689f,_0x36a59c,_0x2d7644){_0x2d7644(null,util[_0x7f4a('0x12')](_0x7f4a('0x13'),_0x7f4a('0x14'),path[_0x7f4a('0x15')](_0x36a59c[_0x7f4a('0x16')])));}})});router[_0x7f4a('0x17')](_0x7f4a('0x9'),upload[_0x7f4a('0x18')](_0x7f4a('0x19')),controller[_0x7f4a('0x1a')]);var upload=multer({'storage':multer[_0x7f4a('0xe')]({'destination':function(_0x29c0fd,_0x2daef7,_0x11e371){_0x11e371(null,path[_0x7f4a('0xf')](config[_0x7f4a('0x10')],_0x7f4a('0x11')));},'filename':function(_0xa28337,_0x374c48,_0x57ca87){_0x57ca87(null,util[_0x7f4a('0x12')]('%s%s',_0x7f4a('0x1b'),path[_0x7f4a('0x15')](_0x374c48[_0x7f4a('0x16')])));}})});router[_0x7f4a('0x17')](_0x7f4a('0x1c'),upload['single']('file'),controller[_0x7f4a('0x1d')]);router[_0x7f4a('0x1e')](_0x7f4a('0x7'),auth[_0x7f4a('0x1f')](),controller[_0x7f4a('0x20')]);module[_0x7f4a('0x21')]=router;
\ No newline at end of file