Built motion from commit (unavailable).|2.5.22
[motion2.git] / server / api / setting / index.js
index 5634f70..4543cfb 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 _0xf8f1=['server/files/images/logos/','format','%s%s','extname','originalname','file','addLogo','diskStorage','logologin','post','addLogoLogin','/:id/preferred','single','update','exports','util','connect-timeout','Router','../../components/interaction/service','../../config/environment','get','index','/now','getDate','/:id','show','/:id/logo','getLogo','/:id/logo_login','getLogoLogin','gdpr','/:id/favicon','getFavicon','join','root'];(function(_0x185a67,_0x244aa7){var _0x95a3f4=function(_0x4f8e83){while(--_0x4f8e83){_0x185a67['push'](_0x185a67['shift']());}};_0x95a3f4(++_0x244aa7);}(_0xf8f1,0x16d));var _0x1f8f=function(_0x5ca5bc,_0x5b8a9d){_0x5ca5bc=_0x5ca5bc-0x0;var _0x26ca86=_0xf8f1[_0x5ca5bc];return _0x26ca86;};'use strict';var multer=require('multer');var util=require(_0x1f8f('0x0'));var path=require('path');var timeout=require(_0x1f8f('0x1'));var express=require('express');var router=express[_0x1f8f('0x2')]();var auth=require('../../components/auth/service');var interaction=require(_0x1f8f('0x3'));var config=require(_0x1f8f('0x4'));var controller=require('./setting.controller');router[_0x1f8f('0x5')]('/',auth['isAuthenticated'](),controller[_0x1f8f('0x6')]);router[_0x1f8f('0x5')](_0x1f8f('0x7'),controller[_0x1f8f('0x8')]);router[_0x1f8f('0x5')](_0x1f8f('0x9'),controller[_0x1f8f('0xa')]);router[_0x1f8f('0x5')](_0x1f8f('0xb'),controller[_0x1f8f('0xc')]);router[_0x1f8f('0x5')](_0x1f8f('0xd'),controller[_0x1f8f('0xe')]);router[_0x1f8f('0x5')]('/:id/gdpr',controller[_0x1f8f('0xf')]);router['get']('/:id/preferred',controller['getPreferred']);router[_0x1f8f('0x5')](_0x1f8f('0x10'),controller[_0x1f8f('0x11')]);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0xeff99e,_0xa918a5,_0x1ff701){_0x1ff701(null,path[_0x1f8f('0x12')](config[_0x1f8f('0x13')],_0x1f8f('0x14')));},'filename':function(_0x145824,_0x10bd79,_0x461f05){_0x461f05(null,util[_0x1f8f('0x15')](_0x1f8f('0x16'),'logo',path[_0x1f8f('0x17')](_0x10bd79[_0x1f8f('0x18')])));}})});router['post']('/:id/logo',upload['single'](_0x1f8f('0x19')),controller[_0x1f8f('0x1a')]);var upload=multer({'storage':multer[_0x1f8f('0x1b')]({'destination':function(_0xf886a9,_0x26ebc0,_0x5235a6){_0x5235a6(null,path[_0x1f8f('0x12')](config[_0x1f8f('0x13')],_0x1f8f('0x14')));},'filename':function(_0x388b49,_0x1c4e5f,_0x3d52e7){_0x3d52e7(null,util[_0x1f8f('0x15')](_0x1f8f('0x16'),_0x1f8f('0x1c'),path[_0x1f8f('0x17')](_0x1c4e5f[_0x1f8f('0x18')])));}})});router[_0x1f8f('0x1d')](_0x1f8f('0xd'),upload['single'](_0x1f8f('0x19')),controller[_0x1f8f('0x1e')]);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0x552e98,_0x3baa5a,_0x2ebf7a){_0x2ebf7a(null,path[_0x1f8f('0x12')](config[_0x1f8f('0x13')],_0x1f8f('0x14')));},'filename':function(_0x14ff87,_0x59dfff,_0x35af25){_0x35af25(null,util[_0x1f8f('0x15')]('%s%s','preferred',path['extname'](_0x59dfff[_0x1f8f('0x18')])));}})});router['post'](_0x1f8f('0x1f'),upload[_0x1f8f('0x20')]('file'),controller['addPreferred']);var upload=multer({'storage':multer[_0x1f8f('0x1b')]({'destination':function(_0x5d06db,_0x201726,_0x1f20b1){_0x1f20b1(null,path['join'](config['root'],_0x1f8f('0x14')));},'filename':function(_0x5ebf10,_0x98de32,_0x2f22bd){_0x2f22bd(null,util['format']('%s%s','favicon',path['extname'](_0x98de32[_0x1f8f('0x18')])));}})});router['post'](_0x1f8f('0x10'),upload[_0x1f8f('0x20')](_0x1f8f('0x19')),controller['addFavicon']);router['put'](_0x1f8f('0x9'),auth['isAuthenticated'](),controller[_0x1f8f('0x21')]);module[_0x1f8f('0x22')]=router;
\ No newline at end of file