Built motion from commit 994c64e1.|2.6.1
[motion2.git] / server / api / setting / index.js
index 4937883..5648661 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xdba7=['express','Router','fs-extra','../../components/auth/service','../../config/environment','get','isAuthenticated','index','/now','getDate','show','/:id/logo','getLogo','/:id/logo_login','/:id/gdpr','gdpr','/:id/preferred','/:id/favicon','diskStorage','join','root','server/files/images/logos/','format','%s%s','logo','post','addLogo','logologin','originalname','single','file','addLogoLogin','preferred','extname','addPreferred','favicon','addFavicon','put','/:id','update','multer','util'];(function(_0x1cbdc2,_0x3d75ac){var _0x2cf660=function(_0xc96507){while(--_0xc96507){_0x1cbdc2['push'](_0x1cbdc2['shift']());}};_0x2cf660(++_0x3d75ac);}(_0xdba7,0xd0));var _0x7dba=function(_0x2c1f43,_0xf96e7b){_0x2c1f43=_0x2c1f43-0x0;var _0x49b48c=_0xdba7[_0x2c1f43];return _0x49b48c;};'use strict';var multer=require(_0x7dba('0x0'));var util=require(_0x7dba('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x7dba('0x2'));var router=express[_0x7dba('0x3')]();var fs_extra=require(_0x7dba('0x4'));var auth=require(_0x7dba('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x7dba('0x6'));var controller=require('./setting.controller');router[_0x7dba('0x7')]('/',auth[_0x7dba('0x8')](),controller[_0x7dba('0x9')]);router[_0x7dba('0x7')](_0x7dba('0xa'),controller[_0x7dba('0xb')]);router[_0x7dba('0x7')]('/:id',controller[_0x7dba('0xc')]);router[_0x7dba('0x7')](_0x7dba('0xd'),controller[_0x7dba('0xe')]);router[_0x7dba('0x7')](_0x7dba('0xf'),controller['getLogoLogin']);router[_0x7dba('0x7')](_0x7dba('0x10'),controller[_0x7dba('0x11')]);router['get'](_0x7dba('0x12'),controller['getPreferred']);router[_0x7dba('0x7')](_0x7dba('0x13'),controller['getFavicon']);var upload=multer({'storage':multer[_0x7dba('0x14')]({'destination':function(_0x477b67,_0x413700,_0x355f02){_0x355f02(null,path[_0x7dba('0x15')](config[_0x7dba('0x16')],_0x7dba('0x17')));},'filename':function(_0x293836,_0x33c8ca,_0xa9c94a){_0xa9c94a(null,util[_0x7dba('0x18')](_0x7dba('0x19'),_0x7dba('0x1a'),path['extname'](_0x33c8ca['originalname'])));}})});router[_0x7dba('0x1b')](_0x7dba('0xd'),upload['single']('file'),controller[_0x7dba('0x1c')]);var upload=multer({'storage':multer[_0x7dba('0x14')]({'destination':function(_0x37f060,_0x1c5ff5,_0x4ea1af){_0x4ea1af(null,path[_0x7dba('0x15')](config[_0x7dba('0x16')],'server/files/images/logos/'));},'filename':function(_0x521b25,_0x57d8ad,_0x238d19){_0x238d19(null,util['format'](_0x7dba('0x19'),_0x7dba('0x1d'),path['extname'](_0x57d8ad[_0x7dba('0x1e')])));}})});router['post']('/:id/logo_login',upload[_0x7dba('0x1f')](_0x7dba('0x20')),controller[_0x7dba('0x21')]);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0x415e0a,_0x44b0bb,_0x576a7a){_0x576a7a(null,path[_0x7dba('0x15')](config[_0x7dba('0x16')],_0x7dba('0x17')));},'filename':function(_0x396a91,_0x5db4f2,_0x21aab0){_0x21aab0(null,util['format'](_0x7dba('0x19'),_0x7dba('0x22'),path[_0x7dba('0x23')](_0x5db4f2[_0x7dba('0x1e')])));}})});router[_0x7dba('0x1b')](_0x7dba('0x12'),upload[_0x7dba('0x1f')](_0x7dba('0x20')),controller[_0x7dba('0x24')]);var upload=multer({'storage':multer[_0x7dba('0x14')]({'destination':function(_0x41d6fe,_0x4f91d6,_0x498dab){_0x498dab(null,path[_0x7dba('0x15')](config[_0x7dba('0x16')],'server/files/images/logos/'));},'filename':function(_0x8dafff,_0x124a01,_0x478b35){_0x478b35(null,util[_0x7dba('0x18')](_0x7dba('0x19'),_0x7dba('0x25'),path['extname'](_0x124a01['originalname'])));}})});router[_0x7dba('0x1b')](_0x7dba('0x13'),upload[_0x7dba('0x1f')](_0x7dba('0x20')),controller[_0x7dba('0x26')]);router[_0x7dba('0x27')](_0x7dba('0x28'),auth[_0x7dba('0x8')](),controller[_0x7dba('0x29')]);module['exports']=router;
\ No newline at end of file
+var _0xf43e=['post','addLogo','root','server/files/images/logos/','%s%s','logologin','extname','originalname','single','file','addLogoLogin','diskStorage','format','favicon','addFavicon','put','update','exports','path','connect-timeout','express','Router','../../components/interaction/service','./setting.controller','get','isAuthenticated','index','/now','getDate','/:id','show','/:id/logo','getLogo','/:id/logo_login','getLogoLogin','/:id/gdpr','gdpr','/:id/preferred','/:id/favicon','getFavicon','join','logo'];(function(_0x320ab4,_0x286d8f){var _0x1ce8bf=function(_0x21fe72){while(--_0x21fe72){_0x320ab4['push'](_0x320ab4['shift']());}};_0x1ce8bf(++_0x286d8f);}(_0xf43e,0x66));var _0xef43=function(_0x45a9e0,_0x3ca21c){_0x45a9e0=_0x45a9e0-0x0;var _0x4cff92=_0xf43e[_0x45a9e0];return _0x4cff92;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xef43('0x0'));var timeout=require(_0xef43('0x1'));var express=require(_0xef43('0x2'));var router=express[_0xef43('0x3')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0xef43('0x4'));var config=require('../../config/environment');var controller=require(_0xef43('0x5'));router[_0xef43('0x6')]('/',auth[_0xef43('0x7')](),controller[_0xef43('0x8')]);router[_0xef43('0x6')](_0xef43('0x9'),controller[_0xef43('0xa')]);router[_0xef43('0x6')](_0xef43('0xb'),controller[_0xef43('0xc')]);router[_0xef43('0x6')](_0xef43('0xd'),controller[_0xef43('0xe')]);router['get'](_0xef43('0xf'),controller[_0xef43('0x10')]);router[_0xef43('0x6')](_0xef43('0x11'),controller[_0xef43('0x12')]);router[_0xef43('0x6')](_0xef43('0x13'),controller['getPreferred']);router[_0xef43('0x6')](_0xef43('0x14'),controller[_0xef43('0x15')]);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0x3a5cf7,_0x37f961,_0x4c9021){_0x4c9021(null,path[_0xef43('0x16')](config['root'],'server/files/images/logos/'));},'filename':function(_0x5c7f62,_0x158922,_0x357859){_0x357859(null,util['format']('%s%s',_0xef43('0x17'),path['extname'](_0x158922['originalname'])));}})});router[_0xef43('0x18')](_0xef43('0xd'),upload['single']('file'),controller[_0xef43('0x19')]);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0x1f9cfb,_0x84600c,_0x4a72ae){_0x4a72ae(null,path['join'](config[_0xef43('0x1a')],_0xef43('0x1b')));},'filename':function(_0x3d342b,_0x334b98,_0x279eef){_0x279eef(null,util['format'](_0xef43('0x1c'),_0xef43('0x1d'),path[_0xef43('0x1e')](_0x334b98[_0xef43('0x1f')])));}})});router['post'](_0xef43('0xf'),upload[_0xef43('0x20')](_0xef43('0x21')),controller[_0xef43('0x22')]);var upload=multer({'storage':multer[_0xef43('0x23')]({'destination':function(_0x5c8e53,_0x597752,_0x11feae){_0x11feae(null,path[_0xef43('0x16')](config[_0xef43('0x1a')],'server/files/images/logos/'));},'filename':function(_0x4db88d,_0x176fff,_0x34fbae){_0x34fbae(null,util[_0xef43('0x24')]('%s%s','preferred',path[_0xef43('0x1e')](_0x176fff[_0xef43('0x1f')])));}})});router[_0xef43('0x18')](_0xef43('0x13'),upload[_0xef43('0x20')](_0xef43('0x21')),controller['addPreferred']);var upload=multer({'storage':multer[_0xef43('0x23')]({'destination':function(_0x238ea6,_0x5de2bd,_0x1e1417){_0x1e1417(null,path[_0xef43('0x16')](config[_0xef43('0x1a')],_0xef43('0x1b')));},'filename':function(_0x12ecc6,_0x54c839,_0x5a9f0d){_0x5a9f0d(null,util[_0xef43('0x24')]('%s%s',_0xef43('0x25'),path[_0xef43('0x1e')](_0x54c839[_0xef43('0x1f')])));}})});router[_0xef43('0x18')](_0xef43('0x14'),upload[_0xef43('0x20')](_0xef43('0x21')),controller[_0xef43('0x26')]);router[_0xef43('0x27')]('/:id',auth[_0xef43('0x7')](),controller[_0xef43('0x28')]);module[_0xef43('0x29')]=router;
\ No newline at end of file