Built motion from commit 3c2ce842.|2.6.31
[motion2.git] / server / api / setting / index.js
index 3b756a6..fba1efc 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xd3c5=['../../components/interaction/service','../../config/environment','./setting.controller','get','isAuthenticated','index','/now','getDate','/:id','getLogo','/:id/logo_login','/:id/gdpr','/:id/preferred','getPreferred','/:id/favicon','getFavicon','format','logo','extname','originalname','/:id/logo','single','addLogo','diskStorage','server/files/images/logos/','%s%s','post','file','addLogoLogin','join','root','preferred','addPreferred','favicon','addFavicon','put','update','exports','multer','util','path','Router','../../components/auth/service'];(function(_0x567758,_0x533bba){var _0x1d0e7f=function(_0x1d9d06){while(--_0x1d9d06){_0x567758['push'](_0x567758['shift']());}};_0x1d0e7f(++_0x533bba);}(_0xd3c5,0x128));var _0x5d3c=function(_0x20a584,_0xe384a5){_0x20a584=_0x20a584-0x0;var _0x4b41a8=_0xd3c5[_0x20a584];return _0x4b41a8;};'use strict';var multer=require(_0x5d3c('0x0'));var util=require(_0x5d3c('0x1'));var path=require(_0x5d3c('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x5d3c('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x5d3c('0x4'));var interaction=require(_0x5d3c('0x5'));var config=require(_0x5d3c('0x6'));var controller=require(_0x5d3c('0x7'));router[_0x5d3c('0x8')]('/',auth[_0x5d3c('0x9')](),controller[_0x5d3c('0xa')]);router[_0x5d3c('0x8')](_0x5d3c('0xb'),controller[_0x5d3c('0xc')]);router[_0x5d3c('0x8')](_0x5d3c('0xd'),controller['show']);router[_0x5d3c('0x8')]('/:id/logo',controller[_0x5d3c('0xe')]);router['get'](_0x5d3c('0xf'),controller['getLogoLogin']);router['get'](_0x5d3c('0x10'),controller['gdpr']);router[_0x5d3c('0x8')](_0x5d3c('0x11'),controller[_0x5d3c('0x12')]);router['get'](_0x5d3c('0x13'),controller[_0x5d3c('0x14')]);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0x48add5,_0x3cceee,_0x3c4ba7){_0x3c4ba7(null,path['join'](config['root'],'server/files/images/logos/'));},'filename':function(_0x46593f,_0x4436ad,_0x31d5ce){_0x31d5ce(null,util[_0x5d3c('0x15')]('%s%s',_0x5d3c('0x16'),path[_0x5d3c('0x17')](_0x4436ad[_0x5d3c('0x18')])));}})});router['post'](_0x5d3c('0x19'),upload[_0x5d3c('0x1a')]('file'),controller[_0x5d3c('0x1b')]);var upload=multer({'storage':multer[_0x5d3c('0x1c')]({'destination':function(_0x376735,_0x10a502,_0x25c956){_0x25c956(null,path['join'](config['root'],_0x5d3c('0x1d')));},'filename':function(_0x238141,_0x378fa7,_0x63b752){_0x63b752(null,util['format'](_0x5d3c('0x1e'),'logologin',path[_0x5d3c('0x17')](_0x378fa7[_0x5d3c('0x18')])));}})});router[_0x5d3c('0x1f')]('/:id/logo_login',upload['single'](_0x5d3c('0x20')),controller[_0x5d3c('0x21')]);var upload=multer({'storage':multer[_0x5d3c('0x1c')]({'destination':function(_0x28e141,_0x1909aa,_0x551ea4){_0x551ea4(null,path[_0x5d3c('0x22')](config[_0x5d3c('0x23')],_0x5d3c('0x1d')));},'filename':function(_0x4d6dfc,_0x4668bd,_0x5cfa94){_0x5cfa94(null,util[_0x5d3c('0x15')](_0x5d3c('0x1e'),_0x5d3c('0x24'),path['extname'](_0x4668bd['originalname'])));}})});router['post'](_0x5d3c('0x11'),upload[_0x5d3c('0x1a')](_0x5d3c('0x20')),controller[_0x5d3c('0x25')]);var upload=multer({'storage':multer[_0x5d3c('0x1c')]({'destination':function(_0x1316a3,_0x55bcc9,_0x3a12b4){_0x3a12b4(null,path['join'](config[_0x5d3c('0x23')],'server/files/images/logos/'));},'filename':function(_0x5e7d76,_0x177d7a,_0x5cb9e9){_0x5cb9e9(null,util['format'](_0x5d3c('0x1e'),_0x5d3c('0x26'),path['extname'](_0x177d7a[_0x5d3c('0x18')])));}})});router['post']('/:id/favicon',upload[_0x5d3c('0x1a')](_0x5d3c('0x20')),controller[_0x5d3c('0x27')]);router[_0x5d3c('0x28')](_0x5d3c('0xd'),auth[_0x5d3c('0x9')](),controller[_0x5d3c('0x29')]);module[_0x5d3c('0x2a')]=router;
\ No newline at end of file
+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