Built motion from commit 0900f080.|2.5.45
[motion2.git] / server / api / setting / index.js
index 46254f4..85b4292 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x4ece=['favicon','addFavicon','put','exports','multer','path','connect-timeout','../../components/auth/service','../../components/interaction/service','../../config/environment','./setting.controller','index','/:id','show','get','/:id/logo','getLogo','/:id/logo_login','getLogoLogin','gdpr','/:id/preferred','getPreferred','/:id/favicon','getFavicon','diskStorage','join','format','%s%s','logo','extname','post','single','file','addLogo','root','preferred','originalname','addPreferred','server/files/images/logos/'];(function(_0x5a04ad,_0x4f5875){var _0x5f1bca=function(_0xd4d910){while(--_0xd4d910){_0x5a04ad['push'](_0x5a04ad['shift']());}};_0x5f1bca(++_0x4f5875);}(_0x4ece,0x1b1));var _0xe4ec=function(_0x299072,_0x10cf5f){_0x299072=_0x299072-0x0;var _0x4f0531=_0x4ece[_0x299072];return _0x4f0531;};'use strict';var multer=require(_0xe4ec('0x0'));var util=require('util');var path=require(_0xe4ec('0x1'));var timeout=require(_0xe4ec('0x2'));var express=require('express');var router=express['Router']();var auth=require(_0xe4ec('0x3'));var interaction=require(_0xe4ec('0x4'));var config=require(_0xe4ec('0x5'));var controller=require(_0xe4ec('0x6'));router['get']('/',auth['isAuthenticated'](),controller[_0xe4ec('0x7')]);router['get'](_0xe4ec('0x8'),controller[_0xe4ec('0x9')]);router[_0xe4ec('0xa')](_0xe4ec('0xb'),controller[_0xe4ec('0xc')]);router['get'](_0xe4ec('0xd'),controller[_0xe4ec('0xe')]);router[_0xe4ec('0xa')]('/:id/gdpr',controller[_0xe4ec('0xf')]);router[_0xe4ec('0xa')](_0xe4ec('0x10'),controller[_0xe4ec('0x11')]);router['get'](_0xe4ec('0x12'),controller[_0xe4ec('0x13')]);var upload=multer({'storage':multer[_0xe4ec('0x14')]({'destination':function(_0x3c328d,_0x1405b8,_0x349aba){_0x349aba(null,path[_0xe4ec('0x15')](config['root'],'server/files/images/logos/'));},'filename':function(_0x2ce818,_0x2ddb6e,_0x3ba179){_0x3ba179(null,util[_0xe4ec('0x16')](_0xe4ec('0x17'),_0xe4ec('0x18'),path[_0xe4ec('0x19')](_0x2ddb6e['originalname'])));}})});router[_0xe4ec('0x1a')](_0xe4ec('0xb'),upload[_0xe4ec('0x1b')](_0xe4ec('0x1c')),controller[_0xe4ec('0x1d')]);var upload=multer({'storage':multer[_0xe4ec('0x14')]({'destination':function(_0x22eac5,_0x5293a6,_0xf7e00a){_0xf7e00a(null,path[_0xe4ec('0x15')](config[_0xe4ec('0x1e')],'server/files/images/logos/'));},'filename':function(_0x5294da,_0x3c6e32,_0x3e104d){_0x3e104d(null,util[_0xe4ec('0x16')](_0xe4ec('0x17'),'logologin',path[_0xe4ec('0x19')](_0x3c6e32['originalname'])));}})});router['post']('/:id/logo_login',upload[_0xe4ec('0x1b')](_0xe4ec('0x1c')),controller['addLogoLogin']);var upload=multer({'storage':multer[_0xe4ec('0x14')]({'destination':function(_0x91c0c4,_0x114a7c,_0x4a2c25){_0x4a2c25(null,path[_0xe4ec('0x15')](config['root'],'server/files/images/logos/'));},'filename':function(_0x572914,_0x5dc517,_0x59817e){_0x59817e(null,util[_0xe4ec('0x16')](_0xe4ec('0x17'),_0xe4ec('0x1f'),path[_0xe4ec('0x19')](_0x5dc517[_0xe4ec('0x20')])));}})});router[_0xe4ec('0x1a')](_0xe4ec('0x10'),upload[_0xe4ec('0x1b')](_0xe4ec('0x1c')),controller[_0xe4ec('0x21')]);var upload=multer({'storage':multer[_0xe4ec('0x14')]({'destination':function(_0x325b52,_0x40b595,_0x5230e3){_0x5230e3(null,path[_0xe4ec('0x15')](config[_0xe4ec('0x1e')],_0xe4ec('0x22')));},'filename':function(_0x5a5f3d,_0xbfdcbc,_0x17352a){_0x17352a(null,util[_0xe4ec('0x16')](_0xe4ec('0x17'),_0xe4ec('0x23'),path['extname'](_0xbfdcbc[_0xe4ec('0x20')])));}})});router['post'](_0xe4ec('0x12'),upload[_0xe4ec('0x1b')](_0xe4ec('0x1c')),controller[_0xe4ec('0x24')]);router[_0xe4ec('0x25')](_0xe4ec('0x8'),auth['isAuthenticated'](),controller['update']);module[_0xe4ec('0x26')]=router;
\ No newline at end of file
+var _0x0cd7=['getDate','/:id','show','/:id/logo','getLogo','/:id/logo_login','gdpr','/:id/preferred','getPreferred','join','root','format','logo','extname','originalname','post','single','file','diskStorage','%s%s','logologin','addLogoLogin','preferred','addPreferred','server/files/images/logos/','favicon','/:id/favicon','update','exports','multer','util','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/now'];(function(_0x2c7618,_0x26be9c){var _0x5ce3f0=function(_0x1837b3){while(--_0x1837b3){_0x2c7618['push'](_0x2c7618['shift']());}};_0x5ce3f0(++_0x26be9c);}(_0x0cd7,0x9b));var _0x70cd=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0x0cd7[_0x14add3];return _0x4a174f;};'use strict';var multer=require(_0x70cd('0x0'));var util=require(_0x70cd('0x1'));var path=require(_0x70cd('0x2'));var timeout=require(_0x70cd('0x3'));var express=require('express');var router=express[_0x70cd('0x4')]();var fs_extra=require(_0x70cd('0x5'));var auth=require(_0x70cd('0x6'));var interaction=require(_0x70cd('0x7'));var config=require(_0x70cd('0x8'));var controller=require('./setting.controller');router[_0x70cd('0x9')]('/',auth[_0x70cd('0xa')](),controller[_0x70cd('0xb')]);router[_0x70cd('0x9')](_0x70cd('0xc'),controller[_0x70cd('0xd')]);router['get'](_0x70cd('0xe'),controller[_0x70cd('0xf')]);router[_0x70cd('0x9')](_0x70cd('0x10'),controller[_0x70cd('0x11')]);router['get'](_0x70cd('0x12'),controller['getLogoLogin']);router[_0x70cd('0x9')]('/:id/gdpr',controller[_0x70cd('0x13')]);router['get'](_0x70cd('0x14'),controller[_0x70cd('0x15')]);router[_0x70cd('0x9')]('/:id/favicon',controller['getFavicon']);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0x3f25f2,_0x578a31,_0x399ee3){_0x399ee3(null,path[_0x70cd('0x16')](config[_0x70cd('0x17')],'server/files/images/logos/'));},'filename':function(_0x3b120f,_0x1da009,_0x294ec5){_0x294ec5(null,util[_0x70cd('0x18')]('%s%s',_0x70cd('0x19'),path[_0x70cd('0x1a')](_0x1da009[_0x70cd('0x1b')])));}})});router[_0x70cd('0x1c')](_0x70cd('0x10'),upload[_0x70cd('0x1d')](_0x70cd('0x1e')),controller['addLogo']);var upload=multer({'storage':multer[_0x70cd('0x1f')]({'destination':function(_0x7da358,_0x51155b,_0x36b265){_0x36b265(null,path[_0x70cd('0x16')](config[_0x70cd('0x17')],'server/files/images/logos/'));},'filename':function(_0x4dac99,_0x569e3a,_0xc626f){_0xc626f(null,util[_0x70cd('0x18')](_0x70cd('0x20'),_0x70cd('0x21'),path['extname'](_0x569e3a[_0x70cd('0x1b')])));}})});router[_0x70cd('0x1c')](_0x70cd('0x12'),upload['single'](_0x70cd('0x1e')),controller[_0x70cd('0x22')]);var upload=multer({'storage':multer[_0x70cd('0x1f')]({'destination':function(_0x2a428f,_0x361e29,_0x4e66c8){_0x4e66c8(null,path['join'](config[_0x70cd('0x17')],'server/files/images/logos/'));},'filename':function(_0xc90274,_0x420c6c,_0x444846){_0x444846(null,util[_0x70cd('0x18')](_0x70cd('0x20'),_0x70cd('0x23'),path[_0x70cd('0x1a')](_0x420c6c[_0x70cd('0x1b')])));}})});router[_0x70cd('0x1c')]('/:id/preferred',upload['single']('file'),controller[_0x70cd('0x24')]);var upload=multer({'storage':multer[_0x70cd('0x1f')]({'destination':function(_0x350a31,_0x1682cf,_0x3fcfb7){_0x3fcfb7(null,path[_0x70cd('0x16')](config[_0x70cd('0x17')],_0x70cd('0x25')));},'filename':function(_0x5c9f0c,_0x1072e5,_0x4972b4){_0x4972b4(null,util[_0x70cd('0x18')]('%s%s',_0x70cd('0x26'),path['extname'](_0x1072e5['originalname'])));}})});router[_0x70cd('0x1c')](_0x70cd('0x27'),upload[_0x70cd('0x1d')](_0x70cd('0x1e')),controller['addFavicon']);router['put']('/:id',auth['isAuthenticated'](),controller[_0x70cd('0x28')]);module[_0x70cd('0x29')]=router;
\ No newline at end of file