Built motion from commit a61a4a20.|2.5.46
[motion2.git] / server / api / setting / index.js
index 5634f70..3843074 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x40a8=['get','isAuthenticated','index','/now','getDate','/:id','/:id/logo','/:id/logo_login','getLogoLogin','/:id/gdpr','gdpr','/:id/preferred','getPreferred','/:id/favicon','diskStorage','server/files/images/logos/','format','%s%s','logo','extname','originalname','post','single','file','addLogo','join','logologin','addLogoLogin','preferred','addPreferred','root','favicon','addFavicon','update','multer','path','connect-timeout','express','../../components/auth/service','../../components/interaction/service','./setting.controller'];(function(_0xa464c9,_0x7c86d8){var _0x3d73c4=function(_0x5c2056){while(--_0x5c2056){_0xa464c9['push'](_0xa464c9['shift']());}};_0x3d73c4(++_0x7c86d8);}(_0x40a8,0x193));var _0x840a=function(_0x568496,_0x565afd){_0x568496=_0x568496-0x0;var _0x26c5c1=_0x40a8[_0x568496];return _0x26c5c1;};'use strict';var multer=require(_0x840a('0x0'));var util=require('util');var path=require(_0x840a('0x1'));var timeout=require(_0x840a('0x2'));var express=require(_0x840a('0x3'));var router=express['Router']();var auth=require(_0x840a('0x4'));var interaction=require(_0x840a('0x5'));var config=require('../../config/environment');var controller=require(_0x840a('0x6'));router[_0x840a('0x7')]('/',auth[_0x840a('0x8')](),controller[_0x840a('0x9')]);router[_0x840a('0x7')](_0x840a('0xa'),controller[_0x840a('0xb')]);router[_0x840a('0x7')](_0x840a('0xc'),controller['show']);router[_0x840a('0x7')](_0x840a('0xd'),controller['getLogo']);router['get'](_0x840a('0xe'),controller[_0x840a('0xf')]);router[_0x840a('0x7')](_0x840a('0x10'),controller[_0x840a('0x11')]);router['get'](_0x840a('0x12'),controller[_0x840a('0x13')]);router['get'](_0x840a('0x14'),controller['getFavicon']);var upload=multer({'storage':multer[_0x840a('0x15')]({'destination':function(_0x23a071,_0x3a22a0,_0x4203b6){_0x4203b6(null,path['join'](config['root'],_0x840a('0x16')));},'filename':function(_0x4f137e,_0x4b605b,_0xc9136c){_0xc9136c(null,util[_0x840a('0x17')](_0x840a('0x18'),_0x840a('0x19'),path[_0x840a('0x1a')](_0x4b605b[_0x840a('0x1b')])));}})});router[_0x840a('0x1c')](_0x840a('0xd'),upload[_0x840a('0x1d')](_0x840a('0x1e')),controller[_0x840a('0x1f')]);var upload=multer({'storage':multer[_0x840a('0x15')]({'destination':function(_0x96acc7,_0x4fe074,_0x569acf){_0x569acf(null,path[_0x840a('0x20')](config['root'],_0x840a('0x16')));},'filename':function(_0xe35784,_0xe501ab,_0x45ea64){_0x45ea64(null,util[_0x840a('0x17')](_0x840a('0x18'),_0x840a('0x21'),path[_0x840a('0x1a')](_0xe501ab[_0x840a('0x1b')])));}})});router['post']('/:id/logo_login',upload['single'](_0x840a('0x1e')),controller[_0x840a('0x22')]);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0xbb0fb0,_0x18c8d1,_0x23141d){_0x23141d(null,path[_0x840a('0x20')](config['root'],'server/files/images/logos/'));},'filename':function(_0x43aea6,_0x14e0b2,_0x247d6f){_0x247d6f(null,util['format'](_0x840a('0x18'),_0x840a('0x23'),path[_0x840a('0x1a')](_0x14e0b2[_0x840a('0x1b')])));}})});router[_0x840a('0x1c')](_0x840a('0x12'),upload[_0x840a('0x1d')](_0x840a('0x1e')),controller[_0x840a('0x24')]);var upload=multer({'storage':multer[_0x840a('0x15')]({'destination':function(_0x266924,_0x3d204d,_0x3b412d){_0x3b412d(null,path['join'](config[_0x840a('0x25')],_0x840a('0x16')));},'filename':function(_0x1f2484,_0x2c8693,_0x5be3f9){_0x5be3f9(null,util[_0x840a('0x17')](_0x840a('0x18'),_0x840a('0x26'),path['extname'](_0x2c8693['originalname'])));}})});router[_0x840a('0x1c')](_0x840a('0x14'),upload[_0x840a('0x1d')]('file'),controller[_0x840a('0x27')]);router['put'](_0x840a('0xc'),auth[_0x840a('0x8')](),controller[_0x840a('0x28')]);module['exports']=router;
\ No newline at end of file
+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