Built motion from commit 994c64e1.|2.6.1
[motion2.git] / server / api / setting / index.js
index 5634f70..5648661 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 _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