Built motion from commit 25580385.|2.6.2
[motion2.git] / server / api / setting / index.js
index 7cd49b2..52ad28c 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x7d2a=['single','addFavicon','put','update','exports','multer','util','path','connect-timeout','express','Router','../../components/interaction/service','./setting.controller','isAuthenticated','index','get','/:id','show','/:id/logo','getLogo','getLogoLogin','/:id/gdpr','/:id/preferred','getPreferred','/:id/favicon','server/files/images/logos/','format','%s%s','logo','extname','originalname','post','diskStorage','join','root','logologin','/:id/logo_login'];(function(_0x2b9cf5,_0x2a7804){var _0xd0cf15=function(_0x92a896){while(--_0x92a896){_0x2b9cf5['push'](_0x2b9cf5['shift']());}};_0xd0cf15(++_0x2a7804);}(_0x7d2a,0xe3));var _0xa7d2=function(_0x58af9e,_0x4aac5b){_0x58af9e=_0x58af9e-0x0;var _0x1f7eb5=_0x7d2a[_0x58af9e];return _0x1f7eb5;};'use strict';var multer=require(_0xa7d2('0x0'));var util=require(_0xa7d2('0x1'));var path=require(_0xa7d2('0x2'));var timeout=require(_0xa7d2('0x3'));var express=require(_0xa7d2('0x4'));var router=express[_0xa7d2('0x5')]();var auth=require('../../components/auth/service');var interaction=require(_0xa7d2('0x6'));var config=require('../../config/environment');var controller=require(_0xa7d2('0x7'));router['get']('/',auth[_0xa7d2('0x8')](),controller[_0xa7d2('0x9')]);router[_0xa7d2('0xa')](_0xa7d2('0xb'),controller[_0xa7d2('0xc')]);router[_0xa7d2('0xa')](_0xa7d2('0xd'),controller[_0xa7d2('0xe')]);router[_0xa7d2('0xa')]('/:id/logo_login',controller[_0xa7d2('0xf')]);router[_0xa7d2('0xa')](_0xa7d2('0x10'),controller['gdpr']);router[_0xa7d2('0xa')](_0xa7d2('0x11'),controller[_0xa7d2('0x12')]);router[_0xa7d2('0xa')](_0xa7d2('0x13'),controller['getFavicon']);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0x32b8a0,_0x48390a,_0x532190){_0x532190(null,path['join'](config['root'],_0xa7d2('0x14')));},'filename':function(_0x2144e3,_0x2e7f51,_0x3f29b3){_0x3f29b3(null,util[_0xa7d2('0x15')](_0xa7d2('0x16'),_0xa7d2('0x17'),path[_0xa7d2('0x18')](_0x2e7f51[_0xa7d2('0x19')])));}})});router[_0xa7d2('0x1a')](_0xa7d2('0xd'),upload['single']('file'),controller['addLogo']);var upload=multer({'storage':multer[_0xa7d2('0x1b')]({'destination':function(_0x339033,_0x3ab0f9,_0x4415d4){_0x4415d4(null,path[_0xa7d2('0x1c')](config[_0xa7d2('0x1d')],_0xa7d2('0x14')));},'filename':function(_0x15d847,_0x220b1f,_0x1e0198){_0x1e0198(null,util[_0xa7d2('0x15')](_0xa7d2('0x16'),_0xa7d2('0x1e'),path[_0xa7d2('0x18')](_0x220b1f['originalname'])));}})});router[_0xa7d2('0x1a')](_0xa7d2('0x1f'),upload[_0xa7d2('0x20')]('file'),controller['addLogoLogin']);var upload=multer({'storage':multer[_0xa7d2('0x1b')]({'destination':function(_0x3005df,_0x1a0a49,_0x8e6ace){_0x8e6ace(null,path[_0xa7d2('0x1c')](config[_0xa7d2('0x1d')],_0xa7d2('0x14')));},'filename':function(_0x19b3ec,_0x557583,_0x4dcefe){_0x4dcefe(null,util[_0xa7d2('0x15')](_0xa7d2('0x16'),'preferred',path[_0xa7d2('0x18')](_0x557583[_0xa7d2('0x19')])));}})});router[_0xa7d2('0x1a')](_0xa7d2('0x11'),upload[_0xa7d2('0x20')]('file'),controller['addPreferred']);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0xa03455,_0x3aaa77,_0xa79654){_0xa79654(null,path[_0xa7d2('0x1c')](config[_0xa7d2('0x1d')],_0xa7d2('0x14')));},'filename':function(_0x23227a,_0x5b8154,_0x5529e6){_0x5529e6(null,util[_0xa7d2('0x15')]('%s%s','favicon',path[_0xa7d2('0x18')](_0x5b8154[_0xa7d2('0x19')])));}})});router[_0xa7d2('0x1a')](_0xa7d2('0x13'),upload[_0xa7d2('0x20')]('file'),controller[_0xa7d2('0x21')]);router[_0xa7d2('0x22')](_0xa7d2('0xb'),auth[_0xa7d2('0x8')](),controller[_0xa7d2('0x23')]);module[_0xa7d2('0x24')]=router;
\ No newline at end of file
+var _0x8601=['addPreferred','favicon','addFavicon','put','isAuthenticated','update','exports','multer','util','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../config/environment','get','/now','getDate','/:id','show','/:id/logo','getLogo','/:id/logo_login','getLogoLogin','/:id/gdpr','getPreferred','/:id/favicon','getFavicon','diskStorage','join','root','server/files/images/logos/','logo','post','single','file','addLogo','format','originalname','%s%s','preferred','extname','/:id/preferred'];(function(_0x54cc74,_0x11c04e){var _0x4e6f56=function(_0x325ac0){while(--_0x325ac0){_0x54cc74['push'](_0x54cc74['shift']());}};_0x4e6f56(++_0x11c04e);}(_0x8601,0x15f));var _0x1860=function(_0x19e35c,_0x29cd1e){_0x19e35c=_0x19e35c-0x0;var _0x3e1fe8=_0x8601[_0x19e35c];return _0x3e1fe8;};'use strict';var multer=require(_0x1860('0x0'));var util=require(_0x1860('0x1'));var path=require(_0x1860('0x2'));var timeout=require(_0x1860('0x3'));var express=require('express');var router=express[_0x1860('0x4')]();var fs_extra=require(_0x1860('0x5'));var auth=require(_0x1860('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0x1860('0x7'));var controller=require('./setting.controller');router[_0x1860('0x8')]('/',auth['isAuthenticated'](),controller['index']);router[_0x1860('0x8')](_0x1860('0x9'),controller[_0x1860('0xa')]);router[_0x1860('0x8')](_0x1860('0xb'),controller[_0x1860('0xc')]);router[_0x1860('0x8')](_0x1860('0xd'),controller[_0x1860('0xe')]);router[_0x1860('0x8')](_0x1860('0xf'),controller[_0x1860('0x10')]);router[_0x1860('0x8')](_0x1860('0x11'),controller['gdpr']);router[_0x1860('0x8')]('/:id/preferred',controller[_0x1860('0x12')]);router[_0x1860('0x8')](_0x1860('0x13'),controller[_0x1860('0x14')]);var upload=multer({'storage':multer[_0x1860('0x15')]({'destination':function(_0x9da3ca,_0x2dd5f4,_0x589315){_0x589315(null,path[_0x1860('0x16')](config[_0x1860('0x17')],_0x1860('0x18')));},'filename':function(_0x41920b,_0xd3c97d,_0x2fb245){_0x2fb245(null,util['format']('%s%s',_0x1860('0x19'),path['extname'](_0xd3c97d['originalname'])));}})});router[_0x1860('0x1a')](_0x1860('0xd'),upload[_0x1860('0x1b')](_0x1860('0x1c')),controller[_0x1860('0x1d')]);var upload=multer({'storage':multer[_0x1860('0x15')]({'destination':function(_0x34f730,_0x21bdf3,_0x3fee18){_0x3fee18(null,path[_0x1860('0x16')](config[_0x1860('0x17')],'server/files/images/logos/'));},'filename':function(_0x39217a,_0x1a6246,_0x1b4740){_0x1b4740(null,util[_0x1860('0x1e')]('%s%s','logologin',path['extname'](_0x1a6246[_0x1860('0x1f')])));}})});router['post'](_0x1860('0xf'),upload[_0x1860('0x1b')]('file'),controller['addLogoLogin']);var upload=multer({'storage':multer[_0x1860('0x15')]({'destination':function(_0x341967,_0x30d2d3,_0x3b5a7f){_0x3b5a7f(null,path[_0x1860('0x16')](config['root'],_0x1860('0x18')));},'filename':function(_0x4670ea,_0x4b0cb2,_0xd67ab5){_0xd67ab5(null,util[_0x1860('0x1e')](_0x1860('0x20'),_0x1860('0x21'),path[_0x1860('0x22')](_0x4b0cb2[_0x1860('0x1f')])));}})});router[_0x1860('0x1a')](_0x1860('0x23'),upload['single'](_0x1860('0x1c')),controller[_0x1860('0x24')]);var upload=multer({'storage':multer[_0x1860('0x15')]({'destination':function(_0x1cc420,_0x4e2ead,_0x3591e0){_0x3591e0(null,path[_0x1860('0x16')](config[_0x1860('0x17')],_0x1860('0x18')));},'filename':function(_0x5a7418,_0x23b281,_0x3cd9f2){_0x3cd9f2(null,util[_0x1860('0x1e')](_0x1860('0x20'),_0x1860('0x25'),path['extname'](_0x23b281[_0x1860('0x1f')])));}})});router['post'](_0x1860('0x13'),upload[_0x1860('0x1b')](_0x1860('0x1c')),controller[_0x1860('0x26')]);router[_0x1860('0x27')](_0x1860('0xb'),auth[_0x1860('0x28')](),controller[_0x1860('0x29')]);module[_0x1860('0x2a')]=router;
\ No newline at end of file