Built motion from commit (unavailable).|2.3.1
[motion2.git] / server / api / setting / index.js
index 6b33a03..012f246 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xb956=['addLogo','addLogoLogin','server/files/images/logos/','/:id/preferred','addPreferred','put','update','exports','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./setting.controller','get','isAuthenticated','index','/:id','show','/:id/logo','/:id/logo_login','getLogoLogin','/:id/gdpr','getPreferred','diskStorage','join','root','format','%s%s','logo','extname','originalname','post','single','file'];(function(_0x1a20cb,_0x381685){var _0x112903=function(_0x55111f){while(--_0x55111f){_0x1a20cb['push'](_0x1a20cb['shift']());}};_0x112903(++_0x381685);}(_0xb956,0x7a));var _0x6b95=function(_0x1fbdd1,_0x17323f){_0x1fbdd1=_0x1fbdd1-0x0;var _0x3319a2=_0xb956[_0x1fbdd1];return _0x3319a2;};'use strict';var multer=require('multer');var util=require(_0x6b95('0x0'));var path=require(_0x6b95('0x1'));var timeout=require(_0x6b95('0x2'));var express=require(_0x6b95('0x3'));var router=express[_0x6b95('0x4')]();var auth=require(_0x6b95('0x5'));var interaction=require(_0x6b95('0x6'));var config=require(_0x6b95('0x7'));var controller=require(_0x6b95('0x8'));router[_0x6b95('0x9')]('/',auth[_0x6b95('0xa')](),controller[_0x6b95('0xb')]);router[_0x6b95('0x9')](_0x6b95('0xc'),controller[_0x6b95('0xd')]);router[_0x6b95('0x9')](_0x6b95('0xe'),controller['getLogo']);router[_0x6b95('0x9')](_0x6b95('0xf'),controller[_0x6b95('0x10')]);router[_0x6b95('0x9')](_0x6b95('0x11'),controller['gdpr']);router[_0x6b95('0x9')]('/:id/preferred',controller[_0x6b95('0x12')]);var upload=multer({'storage':multer[_0x6b95('0x13')]({'destination':function(_0x4029c5,_0x452b37,_0x23a009){_0x23a009(null,path[_0x6b95('0x14')](config[_0x6b95('0x15')],'server/files/images/logos/'));},'filename':function(_0x33a215,_0xb87bf5,_0x37b6ff){_0x37b6ff(null,util[_0x6b95('0x16')](_0x6b95('0x17'),_0x6b95('0x18'),path[_0x6b95('0x19')](_0xb87bf5[_0x6b95('0x1a')])));}})});router[_0x6b95('0x1b')](_0x6b95('0xe'),upload[_0x6b95('0x1c')](_0x6b95('0x1d')),controller[_0x6b95('0x1e')]);var upload=multer({'storage':multer[_0x6b95('0x13')]({'destination':function(_0x4a2e63,_0x3aedbb,_0x334471){_0x334471(null,path['join'](config['root'],'server/files/images/logos/'));},'filename':function(_0x5de04a,_0x53ee28,_0x3a0c6c){_0x3a0c6c(null,util[_0x6b95('0x16')](_0x6b95('0x17'),'logologin',path['extname'](_0x53ee28[_0x6b95('0x1a')])));}})});router['post']('/:id/logo_login',upload[_0x6b95('0x1c')](_0x6b95('0x1d')),controller[_0x6b95('0x1f')]);var upload=multer({'storage':multer[_0x6b95('0x13')]({'destination':function(_0x56d744,_0x4f36a2,_0x502c9f){_0x502c9f(null,path[_0x6b95('0x14')](config[_0x6b95('0x15')],_0x6b95('0x20')));},'filename':function(_0x484d60,_0x550745,_0x3a0af4){_0x3a0af4(null,util[_0x6b95('0x16')](_0x6b95('0x17'),'preferred',path[_0x6b95('0x19')](_0x550745['originalname'])));}})});router['post'](_0x6b95('0x21'),upload[_0x6b95('0x1c')](_0x6b95('0x1d')),controller[_0x6b95('0x22')]);router[_0x6b95('0x23')]('/:id',auth[_0x6b95('0xa')](),controller[_0x6b95('0x24')]);module[_0x6b95('0x25')]=router;
\ No newline at end of file
+var _0x034b=['extname','originalname','post','/:id/logo','single','file','addLogo','server/files/images/logos/','%s%s','logologin','addLogoLogin','preferred','put','/:id','update','exports','multer','path','express','../../components/auth/service','../../components/interaction/service','../../config/environment','./setting.controller','get','isAuthenticated','index','show','/:id/logo_login','getLogoLogin','/:id/gdpr','/:id/preferred','diskStorage','join','root','format'];(function(_0x2264a5,_0x42a516){var _0x49f28b=function(_0x42c967){while(--_0x42c967){_0x2264a5['push'](_0x2264a5['shift']());}};_0x49f28b(++_0x42a516);}(_0x034b,0x191));var _0xb034=function(_0xa464c9,_0x7c86d8){_0xa464c9=_0xa464c9-0x0;var _0x3d73c4=_0x034b[_0xa464c9];return _0x3d73c4;};'use strict';var multer=require(_0xb034('0x0'));var util=require('util');var path=require(_0xb034('0x1'));var timeout=require('connect-timeout');var express=require(_0xb034('0x2'));var router=express['Router']();var auth=require(_0xb034('0x3'));var interaction=require(_0xb034('0x4'));var config=require(_0xb034('0x5'));var controller=require(_0xb034('0x6'));router[_0xb034('0x7')]('/',auth[_0xb034('0x8')](),controller[_0xb034('0x9')]);router[_0xb034('0x7')]('/:id',controller[_0xb034('0xa')]);router[_0xb034('0x7')]('/:id/logo',controller['getLogo']);router[_0xb034('0x7')](_0xb034('0xb'),controller[_0xb034('0xc')]);router[_0xb034('0x7')](_0xb034('0xd'),controller['gdpr']);router[_0xb034('0x7')](_0xb034('0xe'),controller['getPreferred']);var upload=multer({'storage':multer[_0xb034('0xf')]({'destination':function(_0x17ad4b,_0x367973,_0x4eb74d){_0x4eb74d(null,path[_0xb034('0x10')](config[_0xb034('0x11')],'server/files/images/logos/'));},'filename':function(_0x2ffe76,_0x4d57e6,_0x215f0d){_0x215f0d(null,util[_0xb034('0x12')]('%s%s','logo',path[_0xb034('0x13')](_0x4d57e6[_0xb034('0x14')])));}})});router[_0xb034('0x15')](_0xb034('0x16'),upload[_0xb034('0x17')](_0xb034('0x18')),controller[_0xb034('0x19')]);var upload=multer({'storage':multer[_0xb034('0xf')]({'destination':function(_0x22178b,_0x5b8254,_0x2b82de){_0x2b82de(null,path[_0xb034('0x10')](config['root'],_0xb034('0x1a')));},'filename':function(_0x13017e,_0x1347f8,_0x457f25){_0x457f25(null,util[_0xb034('0x12')](_0xb034('0x1b'),_0xb034('0x1c'),path[_0xb034('0x13')](_0x1347f8['originalname'])));}})});router[_0xb034('0x15')]('/:id/logo_login',upload[_0xb034('0x17')]('file'),controller[_0xb034('0x1d')]);var upload=multer({'storage':multer[_0xb034('0xf')]({'destination':function(_0x780718,_0x4cd737,_0x279d73){_0x279d73(null,path[_0xb034('0x10')](config[_0xb034('0x11')],'server/files/images/logos/'));},'filename':function(_0x544002,_0x5010b2,_0x5fc35){_0x5fc35(null,util[_0xb034('0x12')](_0xb034('0x1b'),_0xb034('0x1e'),path[_0xb034('0x13')](_0x5010b2[_0xb034('0x14')])));}})});router[_0xb034('0x15')]('/:id/preferred',upload[_0xb034('0x17')]('file'),controller['addPreferred']);router[_0xb034('0x1f')](_0xb034('0x20'),auth[_0xb034('0x8')](),controller[_0xb034('0x21')]);module[_0xb034('0x22')]=router;
\ No newline at end of file