Built motion from commit (unavailable).|2.4.4
[motion2.git] / server / api / setting / index.js
index 66234fa..c18f592 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xffb5=['Router','../../components/auth/service','../../config/environment','./setting.controller','get','isAuthenticated','/:id','show','/:id/logo','getLogo','/:id/logo_login','/:id/gdpr','gdpr','/:id/preferred','diskStorage','join','root','logo','single','file','%s%s','logologin','originalname','post','server/files/images/logos/','format','preferred','extname','addPreferred','put','update','exports','multer','util','path','connect-timeout','express'];(function(_0x59e821,_0x86c723){var _0x5333f6=function(_0x5dc2c9){while(--_0x5dc2c9){_0x59e821['push'](_0x59e821['shift']());}};_0x5333f6(++_0x86c723);}(_0xffb5,0xb4));var _0x5ffb=function(_0x319577,_0x474e6c){_0x319577=_0x319577-0x0;var _0x23df0a=_0xffb5[_0x319577];return _0x23df0a;};'use strict';var multer=require(_0x5ffb('0x0'));var util=require(_0x5ffb('0x1'));var path=require(_0x5ffb('0x2'));var timeout=require(_0x5ffb('0x3'));var express=require(_0x5ffb('0x4'));var router=express[_0x5ffb('0x5')]();var auth=require(_0x5ffb('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0x5ffb('0x7'));var controller=require(_0x5ffb('0x8'));router[_0x5ffb('0x9')]('/',auth[_0x5ffb('0xa')](),controller['index']);router[_0x5ffb('0x9')](_0x5ffb('0xb'),controller[_0x5ffb('0xc')]);router[_0x5ffb('0x9')](_0x5ffb('0xd'),controller[_0x5ffb('0xe')]);router[_0x5ffb('0x9')](_0x5ffb('0xf'),controller['getLogoLogin']);router[_0x5ffb('0x9')](_0x5ffb('0x10'),controller[_0x5ffb('0x11')]);router[_0x5ffb('0x9')](_0x5ffb('0x12'),controller['getPreferred']);var upload=multer({'storage':multer[_0x5ffb('0x13')]({'destination':function(_0x2fc387,_0xcc8844,_0x597f04){_0x597f04(null,path[_0x5ffb('0x14')](config[_0x5ffb('0x15')],'server/files/images/logos/'));},'filename':function(_0x3dd2f5,_0x5397a8,_0x2082c6){_0x2082c6(null,util['format']('%s%s',_0x5ffb('0x16'),path['extname'](_0x5397a8['originalname'])));}})});router['post']('/:id/logo',upload[_0x5ffb('0x17')](_0x5ffb('0x18')),controller['addLogo']);var upload=multer({'storage':multer[_0x5ffb('0x13')]({'destination':function(_0x56070c,_0x2c73cf,_0x1c020){_0x1c020(null,path[_0x5ffb('0x14')](config[_0x5ffb('0x15')],'server/files/images/logos/'));},'filename':function(_0x25addc,_0xb26f0,_0x7efa16){_0x7efa16(null,util['format'](_0x5ffb('0x19'),_0x5ffb('0x1a'),path['extname'](_0xb26f0[_0x5ffb('0x1b')])));}})});router[_0x5ffb('0x1c')](_0x5ffb('0xf'),upload[_0x5ffb('0x17')](_0x5ffb('0x18')),controller['addLogoLogin']);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0x1b9910,_0x334f8b,_0x368017){_0x368017(null,path[_0x5ffb('0x14')](config[_0x5ffb('0x15')],_0x5ffb('0x1d')));},'filename':function(_0x276cb6,_0x4fda81,_0x2dd4e0){_0x2dd4e0(null,util[_0x5ffb('0x1e')](_0x5ffb('0x19'),_0x5ffb('0x1f'),path[_0x5ffb('0x20')](_0x4fda81[_0x5ffb('0x1b')])));}})});router[_0x5ffb('0x1c')]('/:id/preferred',upload[_0x5ffb('0x17')](_0x5ffb('0x18')),controller[_0x5ffb('0x21')]);router[_0x5ffb('0x22')](_0x5ffb('0xb'),auth[_0x5ffb('0xa')](),controller[_0x5ffb('0x23')]);module[_0x5ffb('0x24')]=router;
\ No newline at end of file
+var _0x75f5=['index','get','/:id','show','/:id/logo','getLogo','/:id/logo_login','getLogoLogin','/:id/gdpr','gdpr','/:id/preferred','getPreferred','diskStorage','join','root','server/files/images/logos/','format','%s%s','logo','extname','post','single','logologin','originalname','addLogoLogin','preferred','file','put','multer','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./setting.controller','isAuthenticated'];(function(_0x42def0,_0x4e7776){var _0x4f49a5=function(_0x5c64d7){while(--_0x5c64d7){_0x42def0['push'](_0x42def0['shift']());}};_0x4f49a5(++_0x4e7776);}(_0x75f5,0x18e));var _0x575f=function(_0x3c4f93,_0x24be5c){_0x3c4f93=_0x3c4f93-0x0;var _0x56d097=_0x75f5[_0x3c4f93];return _0x56d097;};'use strict';var multer=require(_0x575f('0x0'));var util=require('util');var path=require(_0x575f('0x1'));var timeout=require(_0x575f('0x2'));var express=require('express');var router=express[_0x575f('0x3')]();var auth=require(_0x575f('0x4'));var interaction=require(_0x575f('0x5'));var config=require(_0x575f('0x6'));var controller=require(_0x575f('0x7'));router['get']('/',auth[_0x575f('0x8')](),controller[_0x575f('0x9')]);router[_0x575f('0xa')](_0x575f('0xb'),controller[_0x575f('0xc')]);router['get'](_0x575f('0xd'),controller[_0x575f('0xe')]);router['get'](_0x575f('0xf'),controller[_0x575f('0x10')]);router[_0x575f('0xa')](_0x575f('0x11'),controller[_0x575f('0x12')]);router[_0x575f('0xa')](_0x575f('0x13'),controller[_0x575f('0x14')]);var upload=multer({'storage':multer[_0x575f('0x15')]({'destination':function(_0x43a3fd,_0x41ff64,_0x14cb16){_0x14cb16(null,path[_0x575f('0x16')](config[_0x575f('0x17')],_0x575f('0x18')));},'filename':function(_0x17b984,_0x1f6b01,_0x40f5d5){_0x40f5d5(null,util[_0x575f('0x19')](_0x575f('0x1a'),_0x575f('0x1b'),path[_0x575f('0x1c')](_0x1f6b01['originalname'])));}})});router[_0x575f('0x1d')](_0x575f('0xd'),upload[_0x575f('0x1e')]('file'),controller['addLogo']);var upload=multer({'storage':multer[_0x575f('0x15')]({'destination':function(_0x25f077,_0x461204,_0x1ff008){_0x1ff008(null,path['join'](config['root'],_0x575f('0x18')));},'filename':function(_0x55ff13,_0x20962b,_0x3b4786){_0x3b4786(null,util[_0x575f('0x19')](_0x575f('0x1a'),_0x575f('0x1f'),path['extname'](_0x20962b[_0x575f('0x20')])));}})});router[_0x575f('0x1d')]('/:id/logo_login',upload[_0x575f('0x1e')]('file'),controller[_0x575f('0x21')]);var upload=multer({'storage':multer[_0x575f('0x15')]({'destination':function(_0x2035a5,_0x2fd965,_0x4fd0ef){_0x4fd0ef(null,path[_0x575f('0x16')](config[_0x575f('0x17')],_0x575f('0x18')));},'filename':function(_0x3ff64e,_0x20e9cc,_0x4422ed){_0x4422ed(null,util['format'](_0x575f('0x1a'),_0x575f('0x22'),path['extname'](_0x20e9cc['originalname'])));}})});router['post'](_0x575f('0x13'),upload[_0x575f('0x1e')](_0x575f('0x23')),controller['addPreferred']);router[_0x575f('0x24')](_0x575f('0xb'),auth[_0x575f('0x8')](),controller['update']);module['exports']=router;
\ No newline at end of file