Built motion from commit 97153652.|2.6.26
[motion2.git] / server / api / setting / index.js
index 655068f..08c8925 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xfa1b=['logo','extname','originalname','post','single','file','addLogo','root','logologin','preferred','addPreferred','favicon','addFavicon','update','exports','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./setting.controller','get','isAuthenticated','/now','/:id','/:id/logo','getLogo','/:id/logo_login','/:id/gdpr','gdpr','/:id/preferred','getPreferred','/:id/favicon','getFavicon','diskStorage','join','server/files/images/logos/','format','%s%s'];(function(_0x321bb2,_0x202794){var _0x9c12ed=function(_0x263dd3){while(--_0x263dd3){_0x321bb2['push'](_0x321bb2['shift']());}};_0x9c12ed(++_0x202794);}(_0xfa1b,0x1bd));var _0xbfa1=function(_0x2f470f,_0x132ae8){_0x2f470f=_0x2f470f-0x0;var _0xe996b=_0xfa1b[_0x2f470f];return _0xe996b;};'use strict';var multer=require(_0xbfa1('0x0'));var util=require(_0xbfa1('0x1'));var path=require(_0xbfa1('0x2'));var timeout=require(_0xbfa1('0x3'));var express=require(_0xbfa1('0x4'));var router=express[_0xbfa1('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0xbfa1('0x6'));var interaction=require(_0xbfa1('0x7'));var config=require(_0xbfa1('0x8'));var controller=require(_0xbfa1('0x9'));router[_0xbfa1('0xa')]('/',auth[_0xbfa1('0xb')](),controller['index']);router[_0xbfa1('0xa')](_0xbfa1('0xc'),controller['getDate']);router[_0xbfa1('0xa')](_0xbfa1('0xd'),controller['show']);router[_0xbfa1('0xa')](_0xbfa1('0xe'),controller[_0xbfa1('0xf')]);router[_0xbfa1('0xa')](_0xbfa1('0x10'),controller['getLogoLogin']);router[_0xbfa1('0xa')](_0xbfa1('0x11'),controller[_0xbfa1('0x12')]);router[_0xbfa1('0xa')](_0xbfa1('0x13'),controller[_0xbfa1('0x14')]);router[_0xbfa1('0xa')](_0xbfa1('0x15'),controller[_0xbfa1('0x16')]);var upload=multer({'storage':multer[_0xbfa1('0x17')]({'destination':function(_0x1cc1da,_0x4a08d6,_0x5d3219){_0x5d3219(null,path[_0xbfa1('0x18')](config['root'],_0xbfa1('0x19')));},'filename':function(_0x1a43bd,_0x29ecba,_0x46ef6e){_0x46ef6e(null,util[_0xbfa1('0x1a')](_0xbfa1('0x1b'),_0xbfa1('0x1c'),path[_0xbfa1('0x1d')](_0x29ecba[_0xbfa1('0x1e')])));}})});router[_0xbfa1('0x1f')](_0xbfa1('0xe'),upload[_0xbfa1('0x20')](_0xbfa1('0x21')),controller[_0xbfa1('0x22')]);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0x1040b7,_0x2ed041,_0x4d1fa0){_0x4d1fa0(null,path[_0xbfa1('0x18')](config[_0xbfa1('0x23')],_0xbfa1('0x19')));},'filename':function(_0x5a0622,_0x5e8847,_0x4e11ed){_0x4e11ed(null,util[_0xbfa1('0x1a')](_0xbfa1('0x1b'),_0xbfa1('0x24'),path['extname'](_0x5e8847[_0xbfa1('0x1e')])));}})});router[_0xbfa1('0x1f')](_0xbfa1('0x10'),upload['single'](_0xbfa1('0x21')),controller['addLogoLogin']);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0x2c40a9,_0x1ff58a,_0x217cc0){_0x217cc0(null,path[_0xbfa1('0x18')](config[_0xbfa1('0x23')],_0xbfa1('0x19')));},'filename':function(_0x49991f,_0x17c4e0,_0xfd117){_0xfd117(null,util[_0xbfa1('0x1a')]('%s%s',_0xbfa1('0x25'),path['extname'](_0x17c4e0[_0xbfa1('0x1e')])));}})});router[_0xbfa1('0x1f')]('/:id/preferred',upload['single'](_0xbfa1('0x21')),controller[_0xbfa1('0x26')]);var upload=multer({'storage':multer[_0xbfa1('0x17')]({'destination':function(_0x53ab06,_0x2e782d,_0x6f37a2){_0x6f37a2(null,path[_0xbfa1('0x18')](config[_0xbfa1('0x23')],_0xbfa1('0x19')));},'filename':function(_0x30ba87,_0x67cab2,_0x1434b1){_0x1434b1(null,util['format'](_0xbfa1('0x1b'),_0xbfa1('0x27'),path[_0xbfa1('0x1d')](_0x67cab2[_0xbfa1('0x1e')])));}})});router[_0xbfa1('0x1f')]('/:id/favicon',upload[_0xbfa1('0x20')](_0xbfa1('0x21')),controller[_0xbfa1('0x28')]);router['put']('/:id',auth[_0xbfa1('0xb')](),controller[_0xbfa1('0x29')]);module[_0xbfa1('0x2a')]=router;
\ No newline at end of file
+var _0x0ac1=['/:id/logo_login','getLogoLogin','/:id/gdpr','gdpr','/:id/preferred','getPreferred','/:id/favicon','diskStorage','format','%s%s','extname','originalname','single','file','addLogo','join','server/files/images/logos/','logologin','post','addLogoLogin','root','preferred','favicon','addFavicon','/:id','update','exports','multer','util','path','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./setting.controller','get','isAuthenticated','getDate','show','/:id/logo'];(function(_0x515df7,_0x27dfba){var _0x26b275=function(_0x542723){while(--_0x542723){_0x515df7['push'](_0x515df7['shift']());}};_0x26b275(++_0x27dfba);}(_0x0ac1,0x1b5));var _0x10ac=function(_0x2c55a8,_0x486225){_0x2c55a8=_0x2c55a8-0x0;var _0x224e2a=_0x0ac1[_0x2c55a8];return _0x224e2a;};'use strict';var multer=require(_0x10ac('0x0'));var util=require(_0x10ac('0x1'));var path=require(_0x10ac('0x2'));var timeout=require('connect-timeout');var express=require(_0x10ac('0x3'));var router=express['Router']();var fs_extra=require(_0x10ac('0x4'));var auth=require(_0x10ac('0x5'));var interaction=require(_0x10ac('0x6'));var config=require(_0x10ac('0x7'));var controller=require(_0x10ac('0x8'));router[_0x10ac('0x9')]('/',auth[_0x10ac('0xa')](),controller['index']);router['get']('/now',controller[_0x10ac('0xb')]);router[_0x10ac('0x9')]('/:id',controller[_0x10ac('0xc')]);router[_0x10ac('0x9')](_0x10ac('0xd'),controller['getLogo']);router[_0x10ac('0x9')](_0x10ac('0xe'),controller[_0x10ac('0xf')]);router[_0x10ac('0x9')](_0x10ac('0x10'),controller[_0x10ac('0x11')]);router[_0x10ac('0x9')](_0x10ac('0x12'),controller[_0x10ac('0x13')]);router[_0x10ac('0x9')](_0x10ac('0x14'),controller['getFavicon']);var upload=multer({'storage':multer[_0x10ac('0x15')]({'destination':function(_0x335bb9,_0x56a73f,_0x2ed5eb){_0x2ed5eb(null,path['join'](config['root'],'server/files/images/logos/'));},'filename':function(_0x1ed8b9,_0x3cabf9,_0x34eeda){_0x34eeda(null,util[_0x10ac('0x16')](_0x10ac('0x17'),'logo',path[_0x10ac('0x18')](_0x3cabf9[_0x10ac('0x19')])));}})});router['post'](_0x10ac('0xd'),upload[_0x10ac('0x1a')](_0x10ac('0x1b')),controller[_0x10ac('0x1c')]);var upload=multer({'storage':multer[_0x10ac('0x15')]({'destination':function(_0x331a4d,_0xeaf709,_0x242c0f){_0x242c0f(null,path[_0x10ac('0x1d')](config['root'],_0x10ac('0x1e')));},'filename':function(_0x23584a,_0x367667,_0x1cbba7){_0x1cbba7(null,util['format'](_0x10ac('0x17'),_0x10ac('0x1f'),path[_0x10ac('0x18')](_0x367667[_0x10ac('0x19')])));}})});router[_0x10ac('0x20')](_0x10ac('0xe'),upload[_0x10ac('0x1a')](_0x10ac('0x1b')),controller[_0x10ac('0x21')]);var upload=multer({'storage':multer[_0x10ac('0x15')]({'destination':function(_0x3b711a,_0x91c369,_0x55d943){_0x55d943(null,path[_0x10ac('0x1d')](config[_0x10ac('0x22')],_0x10ac('0x1e')));},'filename':function(_0x4c56ef,_0x2ba2c8,_0x1f6137){_0x1f6137(null,util['format'](_0x10ac('0x17'),_0x10ac('0x23'),path['extname'](_0x2ba2c8[_0x10ac('0x19')])));}})});router['post'](_0x10ac('0x12'),upload[_0x10ac('0x1a')]('file'),controller['addPreferred']);var upload=multer({'storage':multer[_0x10ac('0x15')]({'destination':function(_0x360173,_0x1c6af9,_0x5ad64b){_0x5ad64b(null,path[_0x10ac('0x1d')](config[_0x10ac('0x22')],_0x10ac('0x1e')));},'filename':function(_0x4ef857,_0x4bb114,_0x5f0dc8){_0x5f0dc8(null,util['format'](_0x10ac('0x17'),_0x10ac('0x24'),path[_0x10ac('0x18')](_0x4bb114[_0x10ac('0x19')])));}})});router[_0x10ac('0x20')](_0x10ac('0x14'),upload[_0x10ac('0x1a')](_0x10ac('0x1b')),controller[_0x10ac('0x25')]);router['put'](_0x10ac('0x26'),auth['isAuthenticated'](),controller[_0x10ac('0x27')]);module[_0x10ac('0x28')]=router;
\ No newline at end of file