Built motion from commit da617fac.|2.6.6
[motion2.git] / server / api / setting / index.js
index 1d67fe2..ee1d5e7 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xf33b=['getLogoLogin','/:id/gdpr','gdpr','/:id/preferred','getPreferred','/:id/favicon','getFavicon','diskStorage','join','root','server/files/images/logos/','%s%s','extname','originalname','post','single','file','addLogo','format','logologin','addLogoLogin','preferred','addPreferred','addFavicon','put','update','multer','util','path','connect-timeout','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./setting.controller','get','isAuthenticated','/now','/:id','show','/:id/logo','getLogo','/:id/logo_login'];(function(_0x5b8b97,_0x6b4dfa){var _0x1fdf84=function(_0x2ced4c){while(--_0x2ced4c){_0x5b8b97['push'](_0x5b8b97['shift']());}};_0x1fdf84(++_0x6b4dfa);}(_0xf33b,0x1a6));var _0xbf33=function(_0x30cd7e,_0x4db10a){_0x30cd7e=_0x30cd7e-0x0;var _0x462a02=_0xf33b[_0x30cd7e];return _0x462a02;};'use strict';var multer=require(_0xbf33('0x0'));var util=require(_0xbf33('0x1'));var path=require(_0xbf33('0x2'));var timeout=require(_0xbf33('0x3'));var express=require(_0xbf33('0x4'));var router=express['Router']();var fs_extra=require(_0xbf33('0x5'));var auth=require(_0xbf33('0x6'));var interaction=require(_0xbf33('0x7'));var config=require(_0xbf33('0x8'));var controller=require(_0xbf33('0x9'));router[_0xbf33('0xa')]('/',auth[_0xbf33('0xb')](),controller['index']);router[_0xbf33('0xa')](_0xbf33('0xc'),controller['getDate']);router[_0xbf33('0xa')](_0xbf33('0xd'),controller[_0xbf33('0xe')]);router[_0xbf33('0xa')](_0xbf33('0xf'),controller[_0xbf33('0x10')]);router[_0xbf33('0xa')](_0xbf33('0x11'),controller[_0xbf33('0x12')]);router[_0xbf33('0xa')](_0xbf33('0x13'),controller[_0xbf33('0x14')]);router[_0xbf33('0xa')](_0xbf33('0x15'),controller[_0xbf33('0x16')]);router['get'](_0xbf33('0x17'),controller[_0xbf33('0x18')]);var upload=multer({'storage':multer[_0xbf33('0x19')]({'destination':function(_0x2d8f50,_0x2365c7,_0x502f49){_0x502f49(null,path[_0xbf33('0x1a')](config[_0xbf33('0x1b')],_0xbf33('0x1c')));},'filename':function(_0x4ba179,_0x5aa2e1,_0x51e82b){_0x51e82b(null,util['format'](_0xbf33('0x1d'),'logo',path[_0xbf33('0x1e')](_0x5aa2e1[_0xbf33('0x1f')])));}})});router[_0xbf33('0x20')]('/:id/logo',upload[_0xbf33('0x21')](_0xbf33('0x22')),controller[_0xbf33('0x23')]);var upload=multer({'storage':multer[_0xbf33('0x19')]({'destination':function(_0x4e1c14,_0x374640,_0x2d34e1){_0x2d34e1(null,path[_0xbf33('0x1a')](config[_0xbf33('0x1b')],_0xbf33('0x1c')));},'filename':function(_0x1f707d,_0x25d8bb,_0x3dadbe){_0x3dadbe(null,util[_0xbf33('0x24')]('%s%s',_0xbf33('0x25'),path[_0xbf33('0x1e')](_0x25d8bb['originalname'])));}})});router[_0xbf33('0x20')](_0xbf33('0x11'),upload['single'](_0xbf33('0x22')),controller[_0xbf33('0x26')]);var upload=multer({'storage':multer[_0xbf33('0x19')]({'destination':function(_0x1249d5,_0x4cca73,_0x202119){_0x202119(null,path[_0xbf33('0x1a')](config['root'],_0xbf33('0x1c')));},'filename':function(_0x4e1759,_0x3f4296,_0x26cdeb){_0x26cdeb(null,util[_0xbf33('0x24')]('%s%s',_0xbf33('0x27'),path[_0xbf33('0x1e')](_0x3f4296[_0xbf33('0x1f')])));}})});router[_0xbf33('0x20')](_0xbf33('0x15'),upload[_0xbf33('0x21')](_0xbf33('0x22')),controller[_0xbf33('0x28')]);var upload=multer({'storage':multer[_0xbf33('0x19')]({'destination':function(_0x2990a3,_0x4c8cf1,_0x1bd117){_0x1bd117(null,path[_0xbf33('0x1a')](config[_0xbf33('0x1b')],_0xbf33('0x1c')));},'filename':function(_0x1236c4,_0xf1de98,_0x1d5e70){_0x1d5e70(null,util[_0xbf33('0x24')](_0xbf33('0x1d'),'favicon',path[_0xbf33('0x1e')](_0xf1de98[_0xbf33('0x1f')])));}})});router[_0xbf33('0x20')](_0xbf33('0x17'),upload[_0xbf33('0x21')]('file'),controller[_0xbf33('0x29')]);router[_0xbf33('0x2a')]('/:id',auth[_0xbf33('0xb')](),controller[_0xbf33('0x2b')]);module['exports']=router;
\ No newline at end of file
+var _0xd22c=['fs-extra','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/now','getDate','/:id','show','getLogo','/:id/logo_login','getLogoLogin','/:id/gdpr','gdpr','/:id/preferred','/:id/favicon','getFavicon','diskStorage','join','root','server/files/images/logos/','format','%s%s','originalname','post','/:id/logo','single','file','addLogo','logologin','extname','addLogoLogin','preferred','favicon','addFavicon','exports','util','path','connect-timeout','express'];(function(_0x2070da,_0x45e586){var _0x4f9fe1=function(_0x5b6f2a){while(--_0x5b6f2a){_0x2070da['push'](_0x2070da['shift']());}};_0x4f9fe1(++_0x45e586);}(_0xd22c,0xf2));var _0xcd22=function(_0x568ec8,_0x1e0f23){_0x568ec8=_0x568ec8-0x0;var _0x52b2be=_0xd22c[_0x568ec8];return _0x52b2be;};'use strict';var multer=require('multer');var util=require(_0xcd22('0x0'));var path=require(_0xcd22('0x1'));var timeout=require(_0xcd22('0x2'));var express=require(_0xcd22('0x3'));var router=express['Router']();var fs_extra=require(_0xcd22('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0xcd22('0x5'));var config=require(_0xcd22('0x6'));var controller=require('./setting.controller');router[_0xcd22('0x7')]('/',auth[_0xcd22('0x8')](),controller[_0xcd22('0x9')]);router[_0xcd22('0x7')](_0xcd22('0xa'),controller[_0xcd22('0xb')]);router[_0xcd22('0x7')](_0xcd22('0xc'),controller[_0xcd22('0xd')]);router[_0xcd22('0x7')]('/:id/logo',controller[_0xcd22('0xe')]);router['get'](_0xcd22('0xf'),controller[_0xcd22('0x10')]);router[_0xcd22('0x7')](_0xcd22('0x11'),controller[_0xcd22('0x12')]);router['get'](_0xcd22('0x13'),controller['getPreferred']);router[_0xcd22('0x7')](_0xcd22('0x14'),controller[_0xcd22('0x15')]);var upload=multer({'storage':multer[_0xcd22('0x16')]({'destination':function(_0x3c33be,_0x321038,_0x80b83d){_0x80b83d(null,path[_0xcd22('0x17')](config[_0xcd22('0x18')],_0xcd22('0x19')));},'filename':function(_0x396d44,_0x42675d,_0x14a789){_0x14a789(null,util[_0xcd22('0x1a')](_0xcd22('0x1b'),'logo',path['extname'](_0x42675d[_0xcd22('0x1c')])));}})});router[_0xcd22('0x1d')](_0xcd22('0x1e'),upload[_0xcd22('0x1f')](_0xcd22('0x20')),controller[_0xcd22('0x21')]);var upload=multer({'storage':multer[_0xcd22('0x16')]({'destination':function(_0x6a9fee,_0x297633,_0x1478ed){_0x1478ed(null,path['join'](config[_0xcd22('0x18')],_0xcd22('0x19')));},'filename':function(_0x12a815,_0xa1fd43,_0xfa7a46){_0xfa7a46(null,util['format'](_0xcd22('0x1b'),_0xcd22('0x22'),path[_0xcd22('0x23')](_0xa1fd43[_0xcd22('0x1c')])));}})});router[_0xcd22('0x1d')]('/:id/logo_login',upload['single'](_0xcd22('0x20')),controller[_0xcd22('0x24')]);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0x122de2,_0x35d946,_0x50289a){_0x50289a(null,path[_0xcd22('0x17')](config[_0xcd22('0x18')],_0xcd22('0x19')));},'filename':function(_0x497d3f,_0x441d4c,_0x7e331b){_0x7e331b(null,util[_0xcd22('0x1a')](_0xcd22('0x1b'),_0xcd22('0x25'),path[_0xcd22('0x23')](_0x441d4c['originalname'])));}})});router[_0xcd22('0x1d')](_0xcd22('0x13'),upload[_0xcd22('0x1f')](_0xcd22('0x20')),controller['addPreferred']);var upload=multer({'storage':multer[_0xcd22('0x16')]({'destination':function(_0x4de677,_0x47324b,_0x53f72b){_0x53f72b(null,path['join'](config[_0xcd22('0x18')],_0xcd22('0x19')));},'filename':function(_0x48f2cc,_0x39460f,_0x4d6be3){_0x4d6be3(null,util[_0xcd22('0x1a')]('%s%s',_0xcd22('0x26'),path[_0xcd22('0x23')](_0x39460f[_0xcd22('0x1c')])));}})});router[_0xcd22('0x1d')]('/:id/favicon',upload[_0xcd22('0x1f')](_0xcd22('0x20')),controller[_0xcd22('0x27')]);router['put'](_0xcd22('0xc'),auth[_0xcd22('0x8')](),controller['update']);module[_0xcd22('0x28')]=router;
\ No newline at end of file