Built motion from commit 00bf23f6.|2.6.16
[motion2.git] / server / api / setting / index.js
index 5634f70..479c44a 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x40a8=['get','isAuthenticated','index','/now','getDate','/:id','/:id/logo','/:id/logo_login','getLogoLogin','/:id/gdpr','gdpr','/:id/preferred','getPreferred','/:id/favicon','diskStorage','server/files/images/logos/','format','%s%s','logo','extname','originalname','post','single','file','addLogo','join','logologin','addLogoLogin','preferred','addPreferred','root','favicon','addFavicon','update','multer','path','connect-timeout','express','../../components/auth/service','../../components/interaction/service','./setting.controller'];(function(_0xa464c9,_0x7c86d8){var _0x3d73c4=function(_0x5c2056){while(--_0x5c2056){_0xa464c9['push'](_0xa464c9['shift']());}};_0x3d73c4(++_0x7c86d8);}(_0x40a8,0x193));var _0x840a=function(_0x568496,_0x565afd){_0x568496=_0x568496-0x0;var _0x26c5c1=_0x40a8[_0x568496];return _0x26c5c1;};'use strict';var multer=require(_0x840a('0x0'));var util=require('util');var path=require(_0x840a('0x1'));var timeout=require(_0x840a('0x2'));var express=require(_0x840a('0x3'));var router=express['Router']();var auth=require(_0x840a('0x4'));var interaction=require(_0x840a('0x5'));var config=require('../../config/environment');var controller=require(_0x840a('0x6'));router[_0x840a('0x7')]('/',auth[_0x840a('0x8')](),controller[_0x840a('0x9')]);router[_0x840a('0x7')](_0x840a('0xa'),controller[_0x840a('0xb')]);router[_0x840a('0x7')](_0x840a('0xc'),controller['show']);router[_0x840a('0x7')](_0x840a('0xd'),controller['getLogo']);router['get'](_0x840a('0xe'),controller[_0x840a('0xf')]);router[_0x840a('0x7')](_0x840a('0x10'),controller[_0x840a('0x11')]);router['get'](_0x840a('0x12'),controller[_0x840a('0x13')]);router['get'](_0x840a('0x14'),controller['getFavicon']);var upload=multer({'storage':multer[_0x840a('0x15')]({'destination':function(_0x23a071,_0x3a22a0,_0x4203b6){_0x4203b6(null,path['join'](config['root'],_0x840a('0x16')));},'filename':function(_0x4f137e,_0x4b605b,_0xc9136c){_0xc9136c(null,util[_0x840a('0x17')](_0x840a('0x18'),_0x840a('0x19'),path[_0x840a('0x1a')](_0x4b605b[_0x840a('0x1b')])));}})});router[_0x840a('0x1c')](_0x840a('0xd'),upload[_0x840a('0x1d')](_0x840a('0x1e')),controller[_0x840a('0x1f')]);var upload=multer({'storage':multer[_0x840a('0x15')]({'destination':function(_0x96acc7,_0x4fe074,_0x569acf){_0x569acf(null,path[_0x840a('0x20')](config['root'],_0x840a('0x16')));},'filename':function(_0xe35784,_0xe501ab,_0x45ea64){_0x45ea64(null,util[_0x840a('0x17')](_0x840a('0x18'),_0x840a('0x21'),path[_0x840a('0x1a')](_0xe501ab[_0x840a('0x1b')])));}})});router['post']('/:id/logo_login',upload['single'](_0x840a('0x1e')),controller[_0x840a('0x22')]);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0xbb0fb0,_0x18c8d1,_0x23141d){_0x23141d(null,path[_0x840a('0x20')](config['root'],'server/files/images/logos/'));},'filename':function(_0x43aea6,_0x14e0b2,_0x247d6f){_0x247d6f(null,util['format'](_0x840a('0x18'),_0x840a('0x23'),path[_0x840a('0x1a')](_0x14e0b2[_0x840a('0x1b')])));}})});router[_0x840a('0x1c')](_0x840a('0x12'),upload[_0x840a('0x1d')](_0x840a('0x1e')),controller[_0x840a('0x24')]);var upload=multer({'storage':multer[_0x840a('0x15')]({'destination':function(_0x266924,_0x3d204d,_0x3b412d){_0x3b412d(null,path['join'](config[_0x840a('0x25')],_0x840a('0x16')));},'filename':function(_0x1f2484,_0x2c8693,_0x5be3f9){_0x5be3f9(null,util[_0x840a('0x17')](_0x840a('0x18'),_0x840a('0x26'),path['extname'](_0x2c8693['originalname'])));}})});router[_0x840a('0x1c')](_0x840a('0x14'),upload[_0x840a('0x1d')]('file'),controller[_0x840a('0x27')]);router['put'](_0x840a('0xc'),auth[_0x840a('0x8')](),controller[_0x840a('0x28')]);module['exports']=router;
\ No newline at end of file
+var _0xd9ce=['update','exports','multer','util','path','express','../../components/auth/service','../../components/interaction/service','../../config/environment','./setting.controller','isAuthenticated','get','/:id','show','/:id/logo','getLogo','/:id/logo_login','getLogoLogin','/:id/gdpr','getPreferred','/:id/favicon','getFavicon','diskStorage','join','root','server/files/images/logos/','format','%s%s','extname','originalname','post','single','file','logologin','addLogoLogin','/:id/preferred','addPreferred','favicon','addFavicon','put'];(function(_0x41e52b,_0x3376e9){var _0xc34ecf=function(_0x47ec73){while(--_0x47ec73){_0x41e52b['push'](_0x41e52b['shift']());}};_0xc34ecf(++_0x3376e9);}(_0xd9ce,0xca));var _0xed9c=function(_0x46ce14,_0x4f7796){_0x46ce14=_0x46ce14-0x0;var _0x1f15f0=_0xd9ce[_0x46ce14];return _0x1f15f0;};'use strict';var multer=require(_0xed9c('0x0'));var util=require(_0xed9c('0x1'));var path=require(_0xed9c('0x2'));var timeout=require('connect-timeout');var express=require(_0xed9c('0x3'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0xed9c('0x4'));var interaction=require(_0xed9c('0x5'));var config=require(_0xed9c('0x6'));var controller=require(_0xed9c('0x7'));router['get']('/',auth[_0xed9c('0x8')](),controller['index']);router[_0xed9c('0x9')]('/now',controller['getDate']);router[_0xed9c('0x9')](_0xed9c('0xa'),controller[_0xed9c('0xb')]);router['get'](_0xed9c('0xc'),controller[_0xed9c('0xd')]);router[_0xed9c('0x9')](_0xed9c('0xe'),controller[_0xed9c('0xf')]);router[_0xed9c('0x9')](_0xed9c('0x10'),controller['gdpr']);router[_0xed9c('0x9')]('/:id/preferred',controller[_0xed9c('0x11')]);router[_0xed9c('0x9')](_0xed9c('0x12'),controller[_0xed9c('0x13')]);var upload=multer({'storage':multer[_0xed9c('0x14')]({'destination':function(_0xd9f274,_0x3bf508,_0xc845c4){_0xc845c4(null,path[_0xed9c('0x15')](config[_0xed9c('0x16')],_0xed9c('0x17')));},'filename':function(_0x2d39ca,_0x3aa16b,_0x118e78){_0x118e78(null,util[_0xed9c('0x18')](_0xed9c('0x19'),'logo',path[_0xed9c('0x1a')](_0x3aa16b[_0xed9c('0x1b')])));}})});router[_0xed9c('0x1c')](_0xed9c('0xc'),upload[_0xed9c('0x1d')](_0xed9c('0x1e')),controller['addLogo']);var upload=multer({'storage':multer[_0xed9c('0x14')]({'destination':function(_0x40a314,_0xa76664,_0x356e9f){_0x356e9f(null,path[_0xed9c('0x15')](config[_0xed9c('0x16')],_0xed9c('0x17')));},'filename':function(_0x2d84aa,_0x23008c,_0x41a7a1){_0x41a7a1(null,util[_0xed9c('0x18')]('%s%s',_0xed9c('0x1f'),path[_0xed9c('0x1a')](_0x23008c[_0xed9c('0x1b')])));}})});router['post'](_0xed9c('0xe'),upload['single'](_0xed9c('0x1e')),controller[_0xed9c('0x20')]);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0x90784c,_0x4217ba,_0x2ffcfc){_0x2ffcfc(null,path[_0xed9c('0x15')](config[_0xed9c('0x16')],_0xed9c('0x17')));},'filename':function(_0x180184,_0x4a5d33,_0x3aaa18){_0x3aaa18(null,util[_0xed9c('0x18')](_0xed9c('0x19'),'preferred',path['extname'](_0x4a5d33[_0xed9c('0x1b')])));}})});router[_0xed9c('0x1c')](_0xed9c('0x21'),upload[_0xed9c('0x1d')]('file'),controller[_0xed9c('0x22')]);var upload=multer({'storage':multer[_0xed9c('0x14')]({'destination':function(_0x53a9f3,_0x3d1ef4,_0x2a124f){_0x2a124f(null,path[_0xed9c('0x15')](config[_0xed9c('0x16')],_0xed9c('0x17')));},'filename':function(_0x44304a,_0x14bd9f,_0x46bdec){_0x46bdec(null,util[_0xed9c('0x18')](_0xed9c('0x19'),_0xed9c('0x23'),path['extname'](_0x14bd9f[_0xed9c('0x1b')])));}})});router[_0xed9c('0x1c')](_0xed9c('0x12'),upload[_0xed9c('0x1d')](_0xed9c('0x1e')),controller[_0xed9c('0x24')]);router[_0xed9c('0x25')](_0xed9c('0xa'),auth['isAuthenticated'](),controller[_0xed9c('0x26')]);module[_0xed9c('0x27')]=router;
\ No newline at end of file