Built motion from commit b0a9a629.|2.6.33
[motion2.git] / server / api / setting / index.js
index 655068f..15dcb48 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 _0xac73=['put','update','exports','util','path','express','../../components/auth/service','../../config/environment','./setting.controller','get','isAuthenticated','index','/now','getDate','/:id','/:id/logo','getLogoLogin','/:id/gdpr','/:id/favicon','getFavicon','diskStorage','server/files/images/logos/','format','%s%s','logo','extname','originalname','single','file','addLogo','join','root','logologin','post','preferred','/:id/preferred','addPreferred','favicon'];(function(_0x3af2fa,_0x50911f){var _0x2ded50=function(_0x3ce419){while(--_0x3ce419){_0x3af2fa['push'](_0x3af2fa['shift']());}};_0x2ded50(++_0x50911f);}(_0xac73,0xc1));var _0x3ac7=function(_0x4dff71,_0xf009f9){_0x4dff71=_0x4dff71-0x0;var _0x3dc83b=_0xac73[_0x4dff71];return _0x3dc83b;};'use strict';var multer=require('multer');var util=require(_0x3ac7('0x0'));var path=require(_0x3ac7('0x1'));var timeout=require('connect-timeout');var express=require(_0x3ac7('0x2'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0x3ac7('0x3'));var interaction=require('../../components/interaction/service');var config=require(_0x3ac7('0x4'));var controller=require(_0x3ac7('0x5'));router[_0x3ac7('0x6')]('/',auth[_0x3ac7('0x7')](),controller[_0x3ac7('0x8')]);router[_0x3ac7('0x6')](_0x3ac7('0x9'),controller[_0x3ac7('0xa')]);router['get'](_0x3ac7('0xb'),controller['show']);router[_0x3ac7('0x6')](_0x3ac7('0xc'),controller['getLogo']);router[_0x3ac7('0x6')]('/:id/logo_login',controller[_0x3ac7('0xd')]);router[_0x3ac7('0x6')](_0x3ac7('0xe'),controller['gdpr']);router[_0x3ac7('0x6')]('/:id/preferred',controller['getPreferred']);router['get'](_0x3ac7('0xf'),controller[_0x3ac7('0x10')]);var upload=multer({'storage':multer[_0x3ac7('0x11')]({'destination':function(_0x4342af,_0x342844,_0x5a5888){_0x5a5888(null,path['join'](config['root'],_0x3ac7('0x12')));},'filename':function(_0x29eab9,_0x188652,_0x5c132e){_0x5c132e(null,util[_0x3ac7('0x13')](_0x3ac7('0x14'),_0x3ac7('0x15'),path[_0x3ac7('0x16')](_0x188652[_0x3ac7('0x17')])));}})});router['post'](_0x3ac7('0xc'),upload[_0x3ac7('0x18')](_0x3ac7('0x19')),controller[_0x3ac7('0x1a')]);var upload=multer({'storage':multer[_0x3ac7('0x11')]({'destination':function(_0x5a1ba0,_0x27ffee,_0x4d9aa9){_0x4d9aa9(null,path[_0x3ac7('0x1b')](config[_0x3ac7('0x1c')],'server/files/images/logos/'));},'filename':function(_0x1d988b,_0x4a67f1,_0x184107){_0x184107(null,util[_0x3ac7('0x13')](_0x3ac7('0x14'),_0x3ac7('0x1d'),path[_0x3ac7('0x16')](_0x4a67f1[_0x3ac7('0x17')])));}})});router[_0x3ac7('0x1e')]('/:id/logo_login',upload['single']('file'),controller['addLogoLogin']);var upload=multer({'storage':multer[_0x3ac7('0x11')]({'destination':function(_0x217b91,_0x57733a,_0x346698){_0x346698(null,path[_0x3ac7('0x1b')](config[_0x3ac7('0x1c')],_0x3ac7('0x12')));},'filename':function(_0x48343b,_0x1aac28,_0x501b1b){_0x501b1b(null,util[_0x3ac7('0x13')](_0x3ac7('0x14'),_0x3ac7('0x1f'),path[_0x3ac7('0x16')](_0x1aac28[_0x3ac7('0x17')])));}})});router[_0x3ac7('0x1e')](_0x3ac7('0x20'),upload[_0x3ac7('0x18')](_0x3ac7('0x19')),controller[_0x3ac7('0x21')]);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0x36e2ca,_0x101752,_0x48c349){_0x48c349(null,path['join'](config[_0x3ac7('0x1c')],_0x3ac7('0x12')));},'filename':function(_0x331cc5,_0x4cfdb3,_0xfa83e8){_0xfa83e8(null,util[_0x3ac7('0x13')](_0x3ac7('0x14'),_0x3ac7('0x22'),path[_0x3ac7('0x16')](_0x4cfdb3['originalname'])));}})});router[_0x3ac7('0x1e')]('/:id/favicon',upload[_0x3ac7('0x18')](_0x3ac7('0x19')),controller['addFavicon']);router[_0x3ac7('0x23')](_0x3ac7('0xb'),auth['isAuthenticated'](),controller[_0x3ac7('0x24')]);module[_0x3ac7('0x25')]=router;
\ No newline at end of file