Built motion from commit 953226e6.|2.6.32
[motion2.git] / server / api / setting / index.js
index fba1efc..85fa95f 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x6ac5=['single','file','addLogo','logologin','addLogoLogin','preferred','addPreferred','favicon','addFavicon','put','isAuthenticated','exports','multer','util','connect-timeout','express','Router','fs-extra','../../config/environment','./setting.controller','get','/now','getDate','/:id','show','/:id/logo','getLogo','/:id/logo_login','gdpr','/:id/preferred','getPreferred','/:id/favicon','getFavicon','diskStorage','join','root','server/files/images/logos/','format','%s%s','logo','extname','originalname','post'];(function(_0x4baae2,_0x487ab6){var _0x1a2285=function(_0x1cea47){while(--_0x1cea47){_0x4baae2['push'](_0x4baae2['shift']());}};_0x1a2285(++_0x487ab6);}(_0x6ac5,0x8d));var _0x56ac=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x6ac5[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require(_0x56ac('0x0'));var util=require(_0x56ac('0x1'));var path=require('path');var timeout=require(_0x56ac('0x2'));var express=require(_0x56ac('0x3'));var router=express[_0x56ac('0x4')]();var fs_extra=require(_0x56ac('0x5'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x56ac('0x6'));var controller=require(_0x56ac('0x7'));router['get']('/',auth['isAuthenticated'](),controller['index']);router[_0x56ac('0x8')](_0x56ac('0x9'),controller[_0x56ac('0xa')]);router[_0x56ac('0x8')](_0x56ac('0xb'),controller[_0x56ac('0xc')]);router[_0x56ac('0x8')](_0x56ac('0xd'),controller[_0x56ac('0xe')]);router[_0x56ac('0x8')](_0x56ac('0xf'),controller['getLogoLogin']);router[_0x56ac('0x8')]('/:id/gdpr',controller[_0x56ac('0x10')]);router[_0x56ac('0x8')](_0x56ac('0x11'),controller[_0x56ac('0x12')]);router[_0x56ac('0x8')](_0x56ac('0x13'),controller[_0x56ac('0x14')]);var upload=multer({'storage':multer[_0x56ac('0x15')]({'destination':function(_0x1b3ccb,_0x54793c,_0x3211d3){_0x3211d3(null,path[_0x56ac('0x16')](config[_0x56ac('0x17')],_0x56ac('0x18')));},'filename':function(_0x39f3ca,_0x16bf2d,_0x231846){_0x231846(null,util[_0x56ac('0x19')](_0x56ac('0x1a'),_0x56ac('0x1b'),path[_0x56ac('0x1c')](_0x16bf2d[_0x56ac('0x1d')])));}})});router[_0x56ac('0x1e')](_0x56ac('0xd'),upload[_0x56ac('0x1f')](_0x56ac('0x20')),controller[_0x56ac('0x21')]);var upload=multer({'storage':multer[_0x56ac('0x15')]({'destination':function(_0x48e300,_0x21c54f,_0x16679d){_0x16679d(null,path['join'](config[_0x56ac('0x17')],_0x56ac('0x18')));},'filename':function(_0x433bd6,_0x42f065,_0x1fb29a){_0x1fb29a(null,util[_0x56ac('0x19')](_0x56ac('0x1a'),_0x56ac('0x22'),path[_0x56ac('0x1c')](_0x42f065[_0x56ac('0x1d')])));}})});router[_0x56ac('0x1e')](_0x56ac('0xf'),upload[_0x56ac('0x1f')](_0x56ac('0x20')),controller[_0x56ac('0x23')]);var upload=multer({'storage':multer[_0x56ac('0x15')]({'destination':function(_0x4e97d8,_0x31fe02,_0x10f065){_0x10f065(null,path[_0x56ac('0x16')](config[_0x56ac('0x17')],_0x56ac('0x18')));},'filename':function(_0xdc1044,_0x1fc588,_0x3d9f03){_0x3d9f03(null,util[_0x56ac('0x19')](_0x56ac('0x1a'),_0x56ac('0x24'),path[_0x56ac('0x1c')](_0x1fc588['originalname'])));}})});router[_0x56ac('0x1e')](_0x56ac('0x11'),upload['single'](_0x56ac('0x20')),controller[_0x56ac('0x25')]);var upload=multer({'storage':multer[_0x56ac('0x15')]({'destination':function(_0x5ae65c,_0x45efa5,_0x2888d9){_0x2888d9(null,path[_0x56ac('0x16')](config['root'],_0x56ac('0x18')));},'filename':function(_0x3c0b96,_0x3732d8,_0x25899c){_0x25899c(null,util[_0x56ac('0x19')](_0x56ac('0x1a'),_0x56ac('0x26'),path[_0x56ac('0x1c')](_0x3732d8[_0x56ac('0x1d')])));}})});router['post'](_0x56ac('0x13'),upload['single'](_0x56ac('0x20')),controller[_0x56ac('0x27')]);router[_0x56ac('0x28')](_0x56ac('0xb'),auth[_0x56ac('0x29')](),controller['update']);module[_0x56ac('0x2a')]=router;
\ No newline at end of file
+var _0x2a25=['util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../config/environment','./setting.controller','get','isAuthenticated','index','/now','getDate','/:id','show','/:id/logo','getLogo','getLogoLogin','/:id/gdpr','gdpr','/:id/preferred','getPreferred','getFavicon','diskStorage','join','root','format','%s%s','logo','extname','originalname','post','single','file','addLogo','server/files/images/logos/','logologin','addLogoLogin','preferred','favicon','/:id/favicon','addFavicon','put','update','multer'];(function(_0x3e8d6d,_0x1e6ab8){var _0x5506b1=function(_0x3d819f){while(--_0x3d819f){_0x3e8d6d['push'](_0x3e8d6d['shift']());}};_0x5506b1(++_0x1e6ab8);}(_0x2a25,0x89));var _0x52a2=function(_0x3bc2a0,_0x1ffe3f){_0x3bc2a0=_0x3bc2a0-0x0;var _0x494431=_0x2a25[_0x3bc2a0];return _0x494431;};'use strict';var multer=require(_0x52a2('0x0'));var util=require(_0x52a2('0x1'));var path=require(_0x52a2('0x2'));var timeout=require(_0x52a2('0x3'));var express=require(_0x52a2('0x4'));var router=express[_0x52a2('0x5')]();var fs_extra=require(_0x52a2('0x6'));var auth=require(_0x52a2('0x7'));var interaction=require('../../components/interaction/service');var config=require(_0x52a2('0x8'));var controller=require(_0x52a2('0x9'));router[_0x52a2('0xa')]('/',auth[_0x52a2('0xb')](),controller[_0x52a2('0xc')]);router['get'](_0x52a2('0xd'),controller[_0x52a2('0xe')]);router['get'](_0x52a2('0xf'),controller[_0x52a2('0x10')]);router['get'](_0x52a2('0x11'),controller[_0x52a2('0x12')]);router[_0x52a2('0xa')]('/:id/logo_login',controller[_0x52a2('0x13')]);router[_0x52a2('0xa')](_0x52a2('0x14'),controller[_0x52a2('0x15')]);router[_0x52a2('0xa')](_0x52a2('0x16'),controller[_0x52a2('0x17')]);router[_0x52a2('0xa')]('/:id/favicon',controller[_0x52a2('0x18')]);var upload=multer({'storage':multer[_0x52a2('0x19')]({'destination':function(_0x43fcf5,_0x203438,_0x48ac4a){_0x48ac4a(null,path[_0x52a2('0x1a')](config[_0x52a2('0x1b')],'server/files/images/logos/'));},'filename':function(_0x942743,_0xaa96a1,_0xdfd24){_0xdfd24(null,util[_0x52a2('0x1c')](_0x52a2('0x1d'),_0x52a2('0x1e'),path[_0x52a2('0x1f')](_0xaa96a1[_0x52a2('0x20')])));}})});router[_0x52a2('0x21')]('/:id/logo',upload[_0x52a2('0x22')](_0x52a2('0x23')),controller[_0x52a2('0x24')]);var upload=multer({'storage':multer[_0x52a2('0x19')]({'destination':function(_0x3e91c8,_0x1923dc,_0x2a326e){_0x2a326e(null,path[_0x52a2('0x1a')](config['root'],_0x52a2('0x25')));},'filename':function(_0x3d89d4,_0x5d0c0c,_0x1bb2b3){_0x1bb2b3(null,util[_0x52a2('0x1c')](_0x52a2('0x1d'),_0x52a2('0x26'),path[_0x52a2('0x1f')](_0x5d0c0c[_0x52a2('0x20')])));}})});router[_0x52a2('0x21')]('/:id/logo_login',upload[_0x52a2('0x22')](_0x52a2('0x23')),controller[_0x52a2('0x27')]);var upload=multer({'storage':multer[_0x52a2('0x19')]({'destination':function(_0x13e0f1,_0x38c2b5,_0x1e215b){_0x1e215b(null,path[_0x52a2('0x1a')](config['root'],_0x52a2('0x25')));},'filename':function(_0x30c4f5,_0x200157,_0x24cb72){_0x24cb72(null,util[_0x52a2('0x1c')](_0x52a2('0x1d'),_0x52a2('0x28'),path[_0x52a2('0x1f')](_0x200157[_0x52a2('0x20')])));}})});router['post'](_0x52a2('0x16'),upload['single']('file'),controller['addPreferred']);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0xfca048,_0x4a9f7d,_0x27fe4a){_0x27fe4a(null,path[_0x52a2('0x1a')](config['root'],_0x52a2('0x25')));},'filename':function(_0x25aa2e,_0x7e675e,_0x3c1d88){_0x3c1d88(null,util[_0x52a2('0x1c')](_0x52a2('0x1d'),_0x52a2('0x29'),path[_0x52a2('0x1f')](_0x7e675e[_0x52a2('0x20')])));}})});router[_0x52a2('0x21')](_0x52a2('0x2a'),upload['single'](_0x52a2('0x23')),controller[_0x52a2('0x2b')]);router[_0x52a2('0x2c')](_0x52a2('0xf'),auth['isAuthenticated'](),controller[_0x52a2('0x2d')]);module['exports']=router;
\ No newline at end of file