Built motion from commit ddca4d0d.|2.5.47
[motion2.git] / server / api / setting / index.js
index 3843074..029f937 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 _0x9f46=['/:id','isAuthenticated','multer','util','path','Router','fs-extra','../../config/environment','./setting.controller','get','index','/now','show','/:id/logo','getLogo','getLogoLogin','gdpr','/:id/preferred','getPreferred','/:id/favicon','getFavicon','diskStorage','join','root','server/files/images/logos/','logo','extname','originalname','single','file','addLogo','logologin','post','/:id/logo_login','addLogoLogin','format','%s%s','addPreferred','favicon','addFavicon','put'];(function(_0x204a42,_0x24f260){var _0x41fe83=function(_0x48b065){while(--_0x48b065){_0x204a42['push'](_0x204a42['shift']());}};_0x41fe83(++_0x24f260);}(_0x9f46,0xcf));var _0x69f4=function(_0x5168e3,_0x4b9c51){_0x5168e3=_0x5168e3-0x0;var _0x3112c3=_0x9f46[_0x5168e3];return _0x3112c3;};'use strict';var multer=require(_0x69f4('0x0'));var util=require(_0x69f4('0x1'));var path=require(_0x69f4('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x69f4('0x3')]();var fs_extra=require(_0x69f4('0x4'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x69f4('0x5'));var controller=require(_0x69f4('0x6'));router[_0x69f4('0x7')]('/',auth['isAuthenticated'](),controller[_0x69f4('0x8')]);router['get'](_0x69f4('0x9'),controller['getDate']);router[_0x69f4('0x7')]('/:id',controller[_0x69f4('0xa')]);router[_0x69f4('0x7')](_0x69f4('0xb'),controller[_0x69f4('0xc')]);router[_0x69f4('0x7')]('/:id/logo_login',controller[_0x69f4('0xd')]);router[_0x69f4('0x7')]('/:id/gdpr',controller[_0x69f4('0xe')]);router[_0x69f4('0x7')](_0x69f4('0xf'),controller[_0x69f4('0x10')]);router[_0x69f4('0x7')](_0x69f4('0x11'),controller[_0x69f4('0x12')]);var upload=multer({'storage':multer[_0x69f4('0x13')]({'destination':function(_0x100a3f,_0x18d32e,_0x3487b4){_0x3487b4(null,path[_0x69f4('0x14')](config[_0x69f4('0x15')],_0x69f4('0x16')));},'filename':function(_0x979929,_0x5a3e14,_0x5d8832){_0x5d8832(null,util['format']('%s%s',_0x69f4('0x17'),path[_0x69f4('0x18')](_0x5a3e14[_0x69f4('0x19')])));}})});router['post'](_0x69f4('0xb'),upload[_0x69f4('0x1a')](_0x69f4('0x1b')),controller[_0x69f4('0x1c')]);var upload=multer({'storage':multer[_0x69f4('0x13')]({'destination':function(_0x786c21,_0x598745,_0x17fbfa){_0x17fbfa(null,path[_0x69f4('0x14')](config[_0x69f4('0x15')],_0x69f4('0x16')));},'filename':function(_0x45e480,_0x10a7c3,_0x3eb5d3){_0x3eb5d3(null,util['format']('%s%s',_0x69f4('0x1d'),path['extname'](_0x10a7c3[_0x69f4('0x19')])));}})});router[_0x69f4('0x1e')](_0x69f4('0x1f'),upload[_0x69f4('0x1a')](_0x69f4('0x1b')),controller[_0x69f4('0x20')]);var upload=multer({'storage':multer[_0x69f4('0x13')]({'destination':function(_0x141d72,_0x4ed6dd,_0x5d1ccc){_0x5d1ccc(null,path[_0x69f4('0x14')](config[_0x69f4('0x15')],'server/files/images/logos/'));},'filename':function(_0x2a6ae0,_0x4add29,_0x8c2842){_0x8c2842(null,util[_0x69f4('0x21')](_0x69f4('0x22'),'preferred',path['extname'](_0x4add29['originalname'])));}})});router[_0x69f4('0x1e')](_0x69f4('0xf'),upload[_0x69f4('0x1a')](_0x69f4('0x1b')),controller[_0x69f4('0x23')]);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0x185e14,_0x49edf0,_0x5e80bb){_0x5e80bb(null,path[_0x69f4('0x14')](config[_0x69f4('0x15')],_0x69f4('0x16')));},'filename':function(_0x4a36b7,_0xf8b47e,_0x33c9c5){_0x33c9c5(null,util[_0x69f4('0x21')](_0x69f4('0x22'),_0x69f4('0x24'),path[_0x69f4('0x18')](_0xf8b47e[_0x69f4('0x19')])));}})});router[_0x69f4('0x1e')](_0x69f4('0x11'),upload[_0x69f4('0x1a')](_0x69f4('0x1b')),controller[_0x69f4('0x25')]);router[_0x69f4('0x26')](_0x69f4('0x27'),auth[_0x69f4('0x28')](),controller['update']);module['exports']=router;
\ No newline at end of file