Built motion from commit b0a9a629.|2.6.33
[motion2.git] / server / api / setting / index.js
index 41dd6a6..15dcb48 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x707f=['util','path','connect-timeout','express','Router','fs-extra','../../components/interaction/service','../../config/environment','./setting.controller','isAuthenticated','get','/now','getDate','/:id','show','/:id/logo','/:id/logo_login','getLogoLogin','/:id/gdpr','gdpr','getPreferred','/:id/favicon','getFavicon','diskStorage','join','root','server/files/images/logos/','logo','single','file','addLogo','format','%s%s','extname','originalname','post','addLogoLogin','preferred','/:id/preferred','addPreferred','favicon','addFavicon','put','update','multer'];(function(_0x4009f1,_0x42cbaa){var _0x47c39d=function(_0x5c4d37){while(--_0x5c4d37){_0x4009f1['push'](_0x4009f1['shift']());}};_0x47c39d(++_0x42cbaa);}(_0x707f,0x10d));var _0xf707=function(_0x2d9b5d,_0xe2245){_0x2d9b5d=_0x2d9b5d-0x0;var _0x493f6e=_0x707f[_0x2d9b5d];return _0x493f6e;};'use strict';var multer=require(_0xf707('0x0'));var util=require(_0xf707('0x1'));var path=require(_0xf707('0x2'));var timeout=require(_0xf707('0x3'));var express=require(_0xf707('0x4'));var router=express[_0xf707('0x5')]();var fs_extra=require(_0xf707('0x6'));var auth=require('../../components/auth/service');var interaction=require(_0xf707('0x7'));var config=require(_0xf707('0x8'));var controller=require(_0xf707('0x9'));router['get']('/',auth[_0xf707('0xa')](),controller['index']);router[_0xf707('0xb')](_0xf707('0xc'),controller[_0xf707('0xd')]);router[_0xf707('0xb')](_0xf707('0xe'),controller[_0xf707('0xf')]);router[_0xf707('0xb')](_0xf707('0x10'),controller['getLogo']);router[_0xf707('0xb')](_0xf707('0x11'),controller[_0xf707('0x12')]);router[_0xf707('0xb')](_0xf707('0x13'),controller[_0xf707('0x14')]);router[_0xf707('0xb')]('/:id/preferred',controller[_0xf707('0x15')]);router[_0xf707('0xb')](_0xf707('0x16'),controller[_0xf707('0x17')]);var upload=multer({'storage':multer[_0xf707('0x18')]({'destination':function(_0x1e4d4e,_0x54b3e3,_0x5aabf7){_0x5aabf7(null,path[_0xf707('0x19')](config[_0xf707('0x1a')],_0xf707('0x1b')));},'filename':function(_0x3c4ae1,_0x5dba54,_0xec1643){_0xec1643(null,util['format']('%s%s',_0xf707('0x1c'),path['extname'](_0x5dba54['originalname'])));}})});router['post'](_0xf707('0x10'),upload[_0xf707('0x1d')](_0xf707('0x1e')),controller[_0xf707('0x1f')]);var upload=multer({'storage':multer[_0xf707('0x18')]({'destination':function(_0x230156,_0x42b10a,_0x9da620){_0x9da620(null,path[_0xf707('0x19')](config[_0xf707('0x1a')],_0xf707('0x1b')));},'filename':function(_0x26f9a0,_0x27ad39,_0x12b101){_0x12b101(null,util[_0xf707('0x20')](_0xf707('0x21'),'logologin',path[_0xf707('0x22')](_0x27ad39[_0xf707('0x23')])));}})});router[_0xf707('0x24')]('/:id/logo_login',upload['single'](_0xf707('0x1e')),controller[_0xf707('0x25')]);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0xb9033,_0x268e16,_0x3acd5d){_0x3acd5d(null,path[_0xf707('0x19')](config[_0xf707('0x1a')],'server/files/images/logos/'));},'filename':function(_0x2ec8e3,_0x157712,_0x4e4d37){_0x4e4d37(null,util['format']('%s%s',_0xf707('0x26'),path[_0xf707('0x22')](_0x157712[_0xf707('0x23')])));}})});router['post'](_0xf707('0x27'),upload['single'](_0xf707('0x1e')),controller[_0xf707('0x28')]);var upload=multer({'storage':multer[_0xf707('0x18')]({'destination':function(_0x70db99,_0x35d74f,_0x1cdce5){_0x1cdce5(null,path[_0xf707('0x19')](config['root'],'server/files/images/logos/'));},'filename':function(_0x5aea1e,_0x3e930a,_0x26456c){_0x26456c(null,util[_0xf707('0x20')](_0xf707('0x21'),_0xf707('0x29'),path[_0xf707('0x22')](_0x3e930a['originalname'])));}})});router[_0xf707('0x24')](_0xf707('0x16'),upload[_0xf707('0x1d')](_0xf707('0x1e')),controller[_0xf707('0x2a')]);router[_0xf707('0x2b')](_0xf707('0xe'),auth[_0xf707('0xa')](),controller[_0xf707('0x2c')]);module['exports']=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