Built motion from commit 092f8824.|2.5.49
[motion2.git] / server / api / setting / index.js
index 3843074..c41ae45 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xc49c=['file','logologin','extname','addLogoLogin','server/files/images/logos/','addPreferred','favicon','addFavicon','put','/:id','update','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./setting.controller','get','isAuthenticated','index','/now','getDate','show','/:id/logo','getLogo','/:id/logo_login','getLogoLogin','/:id/gdpr','/:id/preferred','getPreferred','/:id/favicon','getFavicon','diskStorage','join','root','format','%s%s','logo','originalname','post','single'];(function(_0x27c1ab,_0x3734be){var _0x5087a3=function(_0x471a6a){while(--_0x471a6a){_0x27c1ab['push'](_0x27c1ab['shift']());}};_0x5087a3(++_0x3734be);}(_0xc49c,0x1d7));var _0xcc49=function(_0x2abbb5,_0x2e560c){_0x2abbb5=_0x2abbb5-0x0;var _0x269f75=_0xc49c[_0x2abbb5];return _0x269f75;};'use strict';var multer=require(_0xcc49('0x0'));var util=require(_0xcc49('0x1'));var path=require(_0xcc49('0x2'));var timeout=require(_0xcc49('0x3'));var express=require(_0xcc49('0x4'));var router=express[_0xcc49('0x5')]();var fs_extra=require(_0xcc49('0x6'));var auth=require(_0xcc49('0x7'));var interaction=require(_0xcc49('0x8'));var config=require(_0xcc49('0x9'));var controller=require(_0xcc49('0xa'));router[_0xcc49('0xb')]('/',auth[_0xcc49('0xc')](),controller[_0xcc49('0xd')]);router[_0xcc49('0xb')](_0xcc49('0xe'),controller[_0xcc49('0xf')]);router[_0xcc49('0xb')]('/:id',controller[_0xcc49('0x10')]);router[_0xcc49('0xb')](_0xcc49('0x11'),controller[_0xcc49('0x12')]);router[_0xcc49('0xb')](_0xcc49('0x13'),controller[_0xcc49('0x14')]);router[_0xcc49('0xb')](_0xcc49('0x15'),controller['gdpr']);router['get'](_0xcc49('0x16'),controller[_0xcc49('0x17')]);router[_0xcc49('0xb')](_0xcc49('0x18'),controller[_0xcc49('0x19')]);var upload=multer({'storage':multer[_0xcc49('0x1a')]({'destination':function(_0x1e99fa,_0x20ba4d,_0x10f830){_0x10f830(null,path[_0xcc49('0x1b')](config[_0xcc49('0x1c')],'server/files/images/logos/'));},'filename':function(_0x30ec31,_0x1b6e24,_0x391369){_0x391369(null,util[_0xcc49('0x1d')](_0xcc49('0x1e'),_0xcc49('0x1f'),path['extname'](_0x1b6e24[_0xcc49('0x20')])));}})});router[_0xcc49('0x21')](_0xcc49('0x11'),upload[_0xcc49('0x22')](_0xcc49('0x23')),controller['addLogo']);var upload=multer({'storage':multer[_0xcc49('0x1a')]({'destination':function(_0x4f94c4,_0x23b5bc,_0x42dee0){_0x42dee0(null,path[_0xcc49('0x1b')](config['root'],'server/files/images/logos/'));},'filename':function(_0x5cb2b6,_0x84dcab,_0x20189d){_0x20189d(null,util[_0xcc49('0x1d')]('%s%s',_0xcc49('0x24'),path[_0xcc49('0x25')](_0x84dcab[_0xcc49('0x20')])));}})});router[_0xcc49('0x21')](_0xcc49('0x13'),upload[_0xcc49('0x22')](_0xcc49('0x23')),controller[_0xcc49('0x26')]);var upload=multer({'storage':multer[_0xcc49('0x1a')]({'destination':function(_0x45df0e,_0x116da5,_0xbc8996){_0xbc8996(null,path[_0xcc49('0x1b')](config[_0xcc49('0x1c')],_0xcc49('0x27')));},'filename':function(_0x29f2e7,_0x298c78,_0x110019){_0x110019(null,util['format']('%s%s','preferred',path[_0xcc49('0x25')](_0x298c78[_0xcc49('0x20')])));}})});router[_0xcc49('0x21')](_0xcc49('0x16'),upload[_0xcc49('0x22')](_0xcc49('0x23')),controller[_0xcc49('0x28')]);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0x56d754,_0x2d0c57,_0x10c600){_0x10c600(null,path['join'](config['root'],'server/files/images/logos/'));},'filename':function(_0x26b7ad,_0x29d4f3,_0x3d72fe){_0x3d72fe(null,util[_0xcc49('0x1d')](_0xcc49('0x1e'),_0xcc49('0x29'),path[_0xcc49('0x25')](_0x29d4f3['originalname'])));}})});router[_0xcc49('0x21')](_0xcc49('0x18'),upload[_0xcc49('0x22')](_0xcc49('0x23')),controller[_0xcc49('0x2a')]);router[_0xcc49('0x2b')](_0xcc49('0x2c'),auth[_0xcc49('0xc')](),controller[_0xcc49('0x2d')]);module['exports']=router;
\ No newline at end of file
+var _0x44ff=['join','root','server/files/images/logos/','format','logo','extname','originalname','post','single','file','addLogo','%s%s','logologin','preferred','addPreferred','favicon','/:id/favicon','isAuthenticated','update','multer','util','path','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./setting.controller','get','/now','getDate','/:id','show','/:id/logo','getLogo','/:id/logo_login','getLogoLogin','/:id/preferred','getFavicon','diskStorage'];(function(_0x2e4809,_0x365e2a){var _0x4e9161=function(_0x19d951){while(--_0x19d951){_0x2e4809['push'](_0x2e4809['shift']());}};_0x4e9161(++_0x365e2a);}(_0x44ff,0xb3));var _0xf44f=function(_0x1ba32d,_0x40fc84){_0x1ba32d=_0x1ba32d-0x0;var _0x2fb7f7=_0x44ff[_0x1ba32d];return _0x2fb7f7;};'use strict';var multer=require(_0xf44f('0x0'));var util=require(_0xf44f('0x1'));var path=require(_0xf44f('0x2'));var timeout=require('connect-timeout');var express=require(_0xf44f('0x3'));var router=express['Router']();var fs_extra=require(_0xf44f('0x4'));var auth=require(_0xf44f('0x5'));var interaction=require(_0xf44f('0x6'));var config=require(_0xf44f('0x7'));var controller=require(_0xf44f('0x8'));router[_0xf44f('0x9')]('/',auth['isAuthenticated'](),controller['index']);router[_0xf44f('0x9')](_0xf44f('0xa'),controller[_0xf44f('0xb')]);router[_0xf44f('0x9')](_0xf44f('0xc'),controller[_0xf44f('0xd')]);router['get'](_0xf44f('0xe'),controller[_0xf44f('0xf')]);router['get'](_0xf44f('0x10'),controller[_0xf44f('0x11')]);router[_0xf44f('0x9')]('/:id/gdpr',controller['gdpr']);router[_0xf44f('0x9')](_0xf44f('0x12'),controller['getPreferred']);router[_0xf44f('0x9')]('/:id/favicon',controller[_0xf44f('0x13')]);var upload=multer({'storage':multer[_0xf44f('0x14')]({'destination':function(_0x544bb1,_0x53e2b9,_0x4a080e){_0x4a080e(null,path[_0xf44f('0x15')](config[_0xf44f('0x16')],_0xf44f('0x17')));},'filename':function(_0x41b23d,_0x110216,_0xc654cf){_0xc654cf(null,util[_0xf44f('0x18')]('%s%s',_0xf44f('0x19'),path[_0xf44f('0x1a')](_0x110216[_0xf44f('0x1b')])));}})});router[_0xf44f('0x1c')](_0xf44f('0xe'),upload[_0xf44f('0x1d')](_0xf44f('0x1e')),controller[_0xf44f('0x1f')]);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0x1acbe9,_0x4d87fb,_0xec01f1){_0xec01f1(null,path['join'](config[_0xf44f('0x16')],'server/files/images/logos/'));},'filename':function(_0x262677,_0x5089ec,_0x3b6263){_0x3b6263(null,util[_0xf44f('0x18')](_0xf44f('0x20'),_0xf44f('0x21'),path[_0xf44f('0x1a')](_0x5089ec[_0xf44f('0x1b')])));}})});router['post']('/:id/logo_login',upload['single'](_0xf44f('0x1e')),controller['addLogoLogin']);var upload=multer({'storage':multer[_0xf44f('0x14')]({'destination':function(_0x400dc0,_0x206b80,_0x12e7ab){_0x12e7ab(null,path[_0xf44f('0x15')](config[_0xf44f('0x16')],_0xf44f('0x17')));},'filename':function(_0xb4fd85,_0x537fc9,_0x2a0a7e){_0x2a0a7e(null,util[_0xf44f('0x18')](_0xf44f('0x20'),_0xf44f('0x22'),path[_0xf44f('0x1a')](_0x537fc9['originalname'])));}})});router[_0xf44f('0x1c')](_0xf44f('0x12'),upload[_0xf44f('0x1d')](_0xf44f('0x1e')),controller[_0xf44f('0x23')]);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0x55ac2d,_0x393e06,_0x10e6f9){_0x10e6f9(null,path[_0xf44f('0x15')](config[_0xf44f('0x16')],_0xf44f('0x17')));},'filename':function(_0x49cc94,_0x194ce8,_0x4ff57b){_0x4ff57b(null,util[_0xf44f('0x18')](_0xf44f('0x20'),_0xf44f('0x24'),path['extname'](_0x194ce8[_0xf44f('0x1b')])));}})});router[_0xf44f('0x1c')](_0xf44f('0x25'),upload[_0xf44f('0x1d')](_0xf44f('0x1e')),controller['addFavicon']);router['put'](_0xf44f('0xc'),auth[_0xf44f('0x26')](),controller[_0xf44f('0x27')]);module['exports']=router;
\ No newline at end of file