Built motion from commit eddce310.|2.6.12
[motion2.git] / server / api / setting / index.js
index e030562..360d34b 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x58fe=['post','single','file','addLogoLogin','addPreferred','favicon','addFavicon','/:id','isAuthenticated','update','multer','util','path','connect-timeout','express','../../components/auth/service','../../components/interaction/service','get','index','/:id/logo_login','getLogoLogin','gdpr','/:id/preferred','getFavicon','diskStorage','join','root','format','%s%s','logo','extname','originalname','/:id/logo','server/files/images/logos/','logologin'];(function(_0x455d82,_0x1953c){var _0x19c5b2=function(_0x2ce3e2){while(--_0x2ce3e2){_0x455d82['push'](_0x455d82['shift']());}};_0x19c5b2(++_0x1953c);}(_0x58fe,0x145));var _0xe58f=function(_0x3dc538,_0x4f7702){_0x3dc538=_0x3dc538-0x0;var _0x72c2fd=_0x58fe[_0x3dc538];return _0x72c2fd;};'use strict';var multer=require(_0xe58f('0x0'));var util=require(_0xe58f('0x1'));var path=require(_0xe58f('0x2'));var timeout=require(_0xe58f('0x3'));var express=require(_0xe58f('0x4'));var router=express['Router']();var auth=require(_0xe58f('0x5'));var interaction=require(_0xe58f('0x6'));var config=require('../../config/environment');var controller=require('./setting.controller');router[_0xe58f('0x7')]('/',auth['isAuthenticated'](),controller[_0xe58f('0x8')]);router['get']('/:id',controller['show']);router[_0xe58f('0x7')]('/:id/logo',controller['getLogo']);router[_0xe58f('0x7')](_0xe58f('0x9'),controller[_0xe58f('0xa')]);router[_0xe58f('0x7')]('/:id/gdpr',controller[_0xe58f('0xb')]);router['get'](_0xe58f('0xc'),controller['getPreferred']);router[_0xe58f('0x7')]('/:id/favicon',controller[_0xe58f('0xd')]);var upload=multer({'storage':multer[_0xe58f('0xe')]({'destination':function(_0x392e22,_0x1ae84d,_0x45d6de){_0x45d6de(null,path[_0xe58f('0xf')](config[_0xe58f('0x10')],'server/files/images/logos/'));},'filename':function(_0x1c3feb,_0x29625f,_0x35879b){_0x35879b(null,util[_0xe58f('0x11')](_0xe58f('0x12'),_0xe58f('0x13'),path[_0xe58f('0x14')](_0x29625f[_0xe58f('0x15')])));}})});router['post'](_0xe58f('0x16'),upload['single']('file'),controller['addLogo']);var upload=multer({'storage':multer[_0xe58f('0xe')]({'destination':function(_0x612bfc,_0xe350f7,_0x18df69){_0x18df69(null,path[_0xe58f('0xf')](config[_0xe58f('0x10')],_0xe58f('0x17')));},'filename':function(_0x162080,_0x576728,_0x3ea330){_0x3ea330(null,util['format'](_0xe58f('0x12'),_0xe58f('0x18'),path[_0xe58f('0x14')](_0x576728[_0xe58f('0x15')])));}})});router[_0xe58f('0x19')]('/:id/logo_login',upload[_0xe58f('0x1a')](_0xe58f('0x1b')),controller[_0xe58f('0x1c')]);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0xc97d18,_0x1dc85e,_0x5ea298){_0x5ea298(null,path[_0xe58f('0xf')](config[_0xe58f('0x10')],_0xe58f('0x17')));},'filename':function(_0x3eb6ce,_0x519c2b,_0x1906ec){_0x1906ec(null,util[_0xe58f('0x11')](_0xe58f('0x12'),'preferred',path[_0xe58f('0x14')](_0x519c2b[_0xe58f('0x15')])));}})});router[_0xe58f('0x19')]('/:id/preferred',upload[_0xe58f('0x1a')](_0xe58f('0x1b')),controller[_0xe58f('0x1d')]);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0xad30f4,_0x6e6177,_0x5e9b72){_0x5e9b72(null,path['join'](config[_0xe58f('0x10')],_0xe58f('0x17')));},'filename':function(_0x460eea,_0x2c430e,_0x1aaf1d){_0x1aaf1d(null,util['format'](_0xe58f('0x12'),_0xe58f('0x1e'),path[_0xe58f('0x14')](_0x2c430e[_0xe58f('0x15')])));}})});router[_0xe58f('0x19')]('/:id/favicon',upload['single'](_0xe58f('0x1b')),controller[_0xe58f('0x1f')]);router['put'](_0xe58f('0x20'),auth[_0xe58f('0x21')](),controller[_0xe58f('0x22')]);module['exports']=router;
\ No newline at end of file
+var _0x1a08=['getPreferred','diskStorage','join','root','server/files/images/logos/','format','%s%s','logo','extname','post','single','file','addLogo','logologin','originalname','/:id/logo_login','addLogoLogin','preferred','favicon','/:id/favicon','addFavicon','/:id','update','exports','util','path','connect-timeout','fs-extra','../../components/interaction/service','../../config/environment','./setting.controller','get','isAuthenticated','index','/now','getDate','show','/:id/logo','getLogo','getLogoLogin','/:id/gdpr','gdpr','/:id/preferred'];(function(_0x597834,_0x159bb6){var _0x12da6c=function(_0x161c38){while(--_0x161c38){_0x597834['push'](_0x597834['shift']());}};_0x12da6c(++_0x159bb6);}(_0x1a08,0x6e));var _0x81a0=function(_0x5af59e,_0x3771c1){_0x5af59e=_0x5af59e-0x0;var _0x4240df=_0x1a08[_0x5af59e];return _0x4240df;};'use strict';var multer=require('multer');var util=require(_0x81a0('0x0'));var path=require(_0x81a0('0x1'));var timeout=require(_0x81a0('0x2'));var express=require('express');var router=express['Router']();var fs_extra=require(_0x81a0('0x3'));var auth=require('../../components/auth/service');var interaction=require(_0x81a0('0x4'));var config=require(_0x81a0('0x5'));var controller=require(_0x81a0('0x6'));router[_0x81a0('0x7')]('/',auth[_0x81a0('0x8')](),controller[_0x81a0('0x9')]);router[_0x81a0('0x7')](_0x81a0('0xa'),controller[_0x81a0('0xb')]);router[_0x81a0('0x7')]('/:id',controller[_0x81a0('0xc')]);router['get'](_0x81a0('0xd'),controller[_0x81a0('0xe')]);router[_0x81a0('0x7')]('/:id/logo_login',controller[_0x81a0('0xf')]);router[_0x81a0('0x7')](_0x81a0('0x10'),controller[_0x81a0('0x11')]);router[_0x81a0('0x7')](_0x81a0('0x12'),controller[_0x81a0('0x13')]);router[_0x81a0('0x7')]('/:id/favicon',controller['getFavicon']);var upload=multer({'storage':multer[_0x81a0('0x14')]({'destination':function(_0x21cdef,_0x2e53bf,_0x56c2a2){_0x56c2a2(null,path[_0x81a0('0x15')](config[_0x81a0('0x16')],_0x81a0('0x17')));},'filename':function(_0x358dd0,_0x51398a,_0x4db3c8){_0x4db3c8(null,util[_0x81a0('0x18')](_0x81a0('0x19'),_0x81a0('0x1a'),path[_0x81a0('0x1b')](_0x51398a['originalname'])));}})});router[_0x81a0('0x1c')](_0x81a0('0xd'),upload[_0x81a0('0x1d')](_0x81a0('0x1e')),controller[_0x81a0('0x1f')]);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0x517c4e,_0xe2ad98,_0x8e5403){_0x8e5403(null,path['join'](config[_0x81a0('0x16')],_0x81a0('0x17')));},'filename':function(_0x2339b9,_0xf3e120,_0x49612a){_0x49612a(null,util[_0x81a0('0x18')](_0x81a0('0x19'),_0x81a0('0x20'),path[_0x81a0('0x1b')](_0xf3e120[_0x81a0('0x21')])));}})});router[_0x81a0('0x1c')](_0x81a0('0x22'),upload[_0x81a0('0x1d')](_0x81a0('0x1e')),controller[_0x81a0('0x23')]);var upload=multer({'storage':multer[_0x81a0('0x14')]({'destination':function(_0x6ca0d1,_0x2320a8,_0x51fbf7){_0x51fbf7(null,path['join'](config[_0x81a0('0x16')],_0x81a0('0x17')));},'filename':function(_0xb0178d,_0x3a7c7c,_0x2b4c7a){_0x2b4c7a(null,util[_0x81a0('0x18')](_0x81a0('0x19'),_0x81a0('0x24'),path[_0x81a0('0x1b')](_0x3a7c7c[_0x81a0('0x21')])));}})});router[_0x81a0('0x1c')](_0x81a0('0x12'),upload[_0x81a0('0x1d')](_0x81a0('0x1e')),controller['addPreferred']);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0x151c41,_0x445dba,_0x4b191b){_0x4b191b(null,path[_0x81a0('0x15')](config[_0x81a0('0x16')],_0x81a0('0x17')));},'filename':function(_0x1a6aed,_0x26dddc,_0x47ef39){_0x47ef39(null,util[_0x81a0('0x18')]('%s%s',_0x81a0('0x25'),path[_0x81a0('0x1b')](_0x26dddc[_0x81a0('0x21')])));}})});router[_0x81a0('0x1c')](_0x81a0('0x26'),upload[_0x81a0('0x1d')](_0x81a0('0x1e')),controller[_0x81a0('0x27')]);router['put'](_0x81a0('0x28'),auth[_0x81a0('0x8')](),controller[_0x81a0('0x29')]);module[_0x81a0('0x2a')]=router;
\ No newline at end of file