Built motion from commit b0a9a629.|2.6.33
[motion2.git] / server / api / setting / index.js
index 732fd72..15dcb48 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x30fa=['get','isAuthenticated','index','/now','getDate','/:id','show','/:id/logo','getLogo','gdpr','/:id/preferred','getPreferred','/:id/favicon','diskStorage','join','root','server/files/images/logos/','format','%s%s','logo','originalname','post','addLogo','logologin','/:id/logo_login','single','file','addLogoLogin','extname','addPreferred','favicon','addFavicon','put','update','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','./setting.controller'];(function(_0x264b87,_0x805e4b){var _0x3eafc9=function(_0x4d6a43){while(--_0x4d6a43){_0x264b87['push'](_0x264b87['shift']());}};_0x3eafc9(++_0x805e4b);}(_0x30fa,0xa3));var _0xa30f=function(_0xa464c9,_0x7c86d8){_0xa464c9=_0xa464c9-0x0;var _0x3d73c4=_0x30fa[_0xa464c9];return _0x3d73c4;};'use strict';var multer=require(_0xa30f('0x0'));var util=require(_0xa30f('0x1'));var path=require(_0xa30f('0x2'));var timeout=require(_0xa30f('0x3'));var express=require(_0xa30f('0x4'));var router=express[_0xa30f('0x5')]();var auth=require(_0xa30f('0x6'));var interaction=require(_0xa30f('0x7'));var config=require('../../config/environment');var controller=require(_0xa30f('0x8'));router[_0xa30f('0x9')]('/',auth[_0xa30f('0xa')](),controller[_0xa30f('0xb')]);router[_0xa30f('0x9')](_0xa30f('0xc'),controller[_0xa30f('0xd')]);router['get'](_0xa30f('0xe'),controller[_0xa30f('0xf')]);router[_0xa30f('0x9')](_0xa30f('0x10'),controller[_0xa30f('0x11')]);router[_0xa30f('0x9')]('/:id/logo_login',controller['getLogoLogin']);router[_0xa30f('0x9')]('/:id/gdpr',controller[_0xa30f('0x12')]);router[_0xa30f('0x9')](_0xa30f('0x13'),controller[_0xa30f('0x14')]);router['get'](_0xa30f('0x15'),controller['getFavicon']);var upload=multer({'storage':multer[_0xa30f('0x16')]({'destination':function(_0x1cea90,_0x18f3be,_0x4eb8fc){_0x4eb8fc(null,path[_0xa30f('0x17')](config[_0xa30f('0x18')],_0xa30f('0x19')));},'filename':function(_0x3beb43,_0x3e8e3b,_0x20db41){_0x20db41(null,util[_0xa30f('0x1a')](_0xa30f('0x1b'),_0xa30f('0x1c'),path['extname'](_0x3e8e3b[_0xa30f('0x1d')])));}})});router[_0xa30f('0x1e')]('/:id/logo',upload['single']('file'),controller[_0xa30f('0x1f')]);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0x40ff44,_0x56e268,_0x5037c3){_0x5037c3(null,path[_0xa30f('0x17')](config[_0xa30f('0x18')],_0xa30f('0x19')));},'filename':function(_0x65cc9b,_0x37d5d3,_0x20759d){_0x20759d(null,util[_0xa30f('0x1a')](_0xa30f('0x1b'),_0xa30f('0x20'),path['extname'](_0x37d5d3[_0xa30f('0x1d')])));}})});router[_0xa30f('0x1e')](_0xa30f('0x21'),upload[_0xa30f('0x22')](_0xa30f('0x23')),controller[_0xa30f('0x24')]);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0x45ba7a,_0x44192c,_0x3d8f10){_0x3d8f10(null,path[_0xa30f('0x17')](config['root'],_0xa30f('0x19')));},'filename':function(_0x231f31,_0x2b89e9,_0x282cde){_0x282cde(null,util[_0xa30f('0x1a')](_0xa30f('0x1b'),'preferred',path[_0xa30f('0x25')](_0x2b89e9[_0xa30f('0x1d')])));}})});router[_0xa30f('0x1e')](_0xa30f('0x13'),upload['single'](_0xa30f('0x23')),controller[_0xa30f('0x26')]);var upload=multer({'storage':multer[_0xa30f('0x16')]({'destination':function(_0x14bc0d,_0x42c2e0,_0x1ee53b){_0x1ee53b(null,path[_0xa30f('0x17')](config[_0xa30f('0x18')],_0xa30f('0x19')));},'filename':function(_0x338ba5,_0x1d47ff,_0x5e112f){_0x5e112f(null,util[_0xa30f('0x1a')](_0xa30f('0x1b'),_0xa30f('0x27'),path[_0xa30f('0x25')](_0x1d47ff[_0xa30f('0x1d')])));}})});router[_0xa30f('0x1e')]('/:id/favicon',upload[_0xa30f('0x22')](_0xa30f('0x23')),controller[_0xa30f('0x28')]);router[_0xa30f('0x29')](_0xa30f('0xe'),auth[_0xa30f('0xa')](),controller[_0xa30f('0x2a')]);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