Built motion from commit eddce310.|2.6.12
[motion2.git] / server / api / setting / index.js
index 0a257d7..360d34b 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x2e74=['index','/now','/:id','show','/:id/logo','getLogo','/:id/logo_login','getLogoLogin','/:id/gdpr','gdpr','getPreferred','/:id/favicon','getFavicon','root','server/files/images/logos/','format','%s%s','logo','extname','post','file','diskStorage','join','logologin','originalname','single','addLogoLogin','preferred','/:id/preferred','addPreferred','favicon','addFavicon','put','update','exports','multer','connect-timeout','express','Router','../../components/auth/service','../../config/environment','./setting.controller','get'];(function(_0x56ba92,_0xb3c986){var _0x8fe94d=function(_0x23b21c){while(--_0x23b21c){_0x56ba92['push'](_0x56ba92['shift']());}};_0x8fe94d(++_0xb3c986);}(_0x2e74,0x17b));var _0x42e7=function(_0x28f32c,_0x4cc342){_0x28f32c=_0x28f32c-0x0;var _0x355402=_0x2e74[_0x28f32c];return _0x355402;};'use strict';var multer=require(_0x42e7('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x42e7('0x1'));var express=require(_0x42e7('0x2'));var router=express[_0x42e7('0x3')]();var auth=require(_0x42e7('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x42e7('0x5'));var controller=require(_0x42e7('0x6'));router[_0x42e7('0x7')]('/',auth['isAuthenticated'](),controller[_0x42e7('0x8')]);router[_0x42e7('0x7')](_0x42e7('0x9'),controller['getDate']);router['get'](_0x42e7('0xa'),controller[_0x42e7('0xb')]);router[_0x42e7('0x7')](_0x42e7('0xc'),controller[_0x42e7('0xd')]);router['get'](_0x42e7('0xe'),controller[_0x42e7('0xf')]);router[_0x42e7('0x7')](_0x42e7('0x10'),controller[_0x42e7('0x11')]);router[_0x42e7('0x7')]('/:id/preferred',controller[_0x42e7('0x12')]);router[_0x42e7('0x7')](_0x42e7('0x13'),controller[_0x42e7('0x14')]);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0x44db32,_0x3474ad,_0xa53955){_0xa53955(null,path['join'](config[_0x42e7('0x15')],_0x42e7('0x16')));},'filename':function(_0x4537f8,_0x1fb747,_0xce9b31){_0xce9b31(null,util[_0x42e7('0x17')](_0x42e7('0x18'),_0x42e7('0x19'),path[_0x42e7('0x1a')](_0x1fb747['originalname'])));}})});router[_0x42e7('0x1b')]('/:id/logo',upload['single'](_0x42e7('0x1c')),controller['addLogo']);var upload=multer({'storage':multer[_0x42e7('0x1d')]({'destination':function(_0x505b2a,_0x1ecef7,_0x3fcc79){_0x3fcc79(null,path[_0x42e7('0x1e')](config['root'],'server/files/images/logos/'));},'filename':function(_0x342374,_0x28a2fa,_0x2064a3){_0x2064a3(null,util[_0x42e7('0x17')](_0x42e7('0x18'),_0x42e7('0x1f'),path['extname'](_0x28a2fa[_0x42e7('0x20')])));}})});router[_0x42e7('0x1b')](_0x42e7('0xe'),upload[_0x42e7('0x21')]('file'),controller[_0x42e7('0x22')]);var upload=multer({'storage':multer[_0x42e7('0x1d')]({'destination':function(_0xa767dc,_0x5ef1b0,_0x31dba7){_0x31dba7(null,path['join'](config[_0x42e7('0x15')],_0x42e7('0x16')));},'filename':function(_0x273494,_0x331c97,_0x1432c1){_0x1432c1(null,util[_0x42e7('0x17')](_0x42e7('0x18'),_0x42e7('0x23'),path[_0x42e7('0x1a')](_0x331c97[_0x42e7('0x20')])));}})});router[_0x42e7('0x1b')](_0x42e7('0x24'),upload[_0x42e7('0x21')](_0x42e7('0x1c')),controller[_0x42e7('0x25')]);var upload=multer({'storage':multer[_0x42e7('0x1d')]({'destination':function(_0x218876,_0x1359d0,_0x4f4e0c){_0x4f4e0c(null,path['join'](config[_0x42e7('0x15')],_0x42e7('0x16')));},'filename':function(_0x30b9e0,_0x1e2eed,_0x44e41d){_0x44e41d(null,util[_0x42e7('0x17')](_0x42e7('0x18'),_0x42e7('0x26'),path[_0x42e7('0x1a')](_0x1e2eed[_0x42e7('0x20')])));}})});router[_0x42e7('0x1b')]('/:id/favicon',upload[_0x42e7('0x21')](_0x42e7('0x1c')),controller[_0x42e7('0x27')]);router[_0x42e7('0x28')](_0x42e7('0xa'),auth['isAuthenticated'](),controller[_0x42e7('0x29')]);module[_0x42e7('0x2a')]=router;
\ No newline at end of file
+var _0x1a08=['getPreferred','diskStorage','join','root','server/files/images/logos/','format','%s%s','logo','extname','post','single','file','addLogo','logologin','originalname','/:id/logo_login','addLogoLogin','preferred','favicon','/:id/favicon','addFavicon','/:id','update','exports','util','path','connect-timeout','fs-extra','../../components/interaction/service','../../config/environment','./setting.controller','get','isAuthenticated','index','/now','getDate','show','/:id/logo','getLogo','getLogoLogin','/:id/gdpr','gdpr','/:id/preferred'];(function(_0x597834,_0x159bb6){var _0x12da6c=function(_0x161c38){while(--_0x161c38){_0x597834['push'](_0x597834['shift']());}};_0x12da6c(++_0x159bb6);}(_0x1a08,0x6e));var _0x81a0=function(_0x5af59e,_0x3771c1){_0x5af59e=_0x5af59e-0x0;var _0x4240df=_0x1a08[_0x5af59e];return _0x4240df;};'use strict';var multer=require('multer');var util=require(_0x81a0('0x0'));var path=require(_0x81a0('0x1'));var timeout=require(_0x81a0('0x2'));var express=require('express');var router=express['Router']();var fs_extra=require(_0x81a0('0x3'));var auth=require('../../components/auth/service');var interaction=require(_0x81a0('0x4'));var config=require(_0x81a0('0x5'));var controller=require(_0x81a0('0x6'));router[_0x81a0('0x7')]('/',auth[_0x81a0('0x8')](),controller[_0x81a0('0x9')]);router[_0x81a0('0x7')](_0x81a0('0xa'),controller[_0x81a0('0xb')]);router[_0x81a0('0x7')]('/:id',controller[_0x81a0('0xc')]);router['get'](_0x81a0('0xd'),controller[_0x81a0('0xe')]);router[_0x81a0('0x7')]('/:id/logo_login',controller[_0x81a0('0xf')]);router[_0x81a0('0x7')](_0x81a0('0x10'),controller[_0x81a0('0x11')]);router[_0x81a0('0x7')](_0x81a0('0x12'),controller[_0x81a0('0x13')]);router[_0x81a0('0x7')]('/:id/favicon',controller['getFavicon']);var upload=multer({'storage':multer[_0x81a0('0x14')]({'destination':function(_0x21cdef,_0x2e53bf,_0x56c2a2){_0x56c2a2(null,path[_0x81a0('0x15')](config[_0x81a0('0x16')],_0x81a0('0x17')));},'filename':function(_0x358dd0,_0x51398a,_0x4db3c8){_0x4db3c8(null,util[_0x81a0('0x18')](_0x81a0('0x19'),_0x81a0('0x1a'),path[_0x81a0('0x1b')](_0x51398a['originalname'])));}})});router[_0x81a0('0x1c')](_0x81a0('0xd'),upload[_0x81a0('0x1d')](_0x81a0('0x1e')),controller[_0x81a0('0x1f')]);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0x517c4e,_0xe2ad98,_0x8e5403){_0x8e5403(null,path['join'](config[_0x81a0('0x16')],_0x81a0('0x17')));},'filename':function(_0x2339b9,_0xf3e120,_0x49612a){_0x49612a(null,util[_0x81a0('0x18')](_0x81a0('0x19'),_0x81a0('0x20'),path[_0x81a0('0x1b')](_0xf3e120[_0x81a0('0x21')])));}})});router[_0x81a0('0x1c')](_0x81a0('0x22'),upload[_0x81a0('0x1d')](_0x81a0('0x1e')),controller[_0x81a0('0x23')]);var upload=multer({'storage':multer[_0x81a0('0x14')]({'destination':function(_0x6ca0d1,_0x2320a8,_0x51fbf7){_0x51fbf7(null,path['join'](config[_0x81a0('0x16')],_0x81a0('0x17')));},'filename':function(_0xb0178d,_0x3a7c7c,_0x2b4c7a){_0x2b4c7a(null,util[_0x81a0('0x18')](_0x81a0('0x19'),_0x81a0('0x24'),path[_0x81a0('0x1b')](_0x3a7c7c[_0x81a0('0x21')])));}})});router[_0x81a0('0x1c')](_0x81a0('0x12'),upload[_0x81a0('0x1d')](_0x81a0('0x1e')),controller['addPreferred']);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0x151c41,_0x445dba,_0x4b191b){_0x4b191b(null,path[_0x81a0('0x15')](config[_0x81a0('0x16')],_0x81a0('0x17')));},'filename':function(_0x1a6aed,_0x26dddc,_0x47ef39){_0x47ef39(null,util[_0x81a0('0x18')]('%s%s',_0x81a0('0x25'),path[_0x81a0('0x1b')](_0x26dddc[_0x81a0('0x21')])));}})});router[_0x81a0('0x1c')](_0x81a0('0x26'),upload[_0x81a0('0x1d')](_0x81a0('0x1e')),controller[_0x81a0('0x27')]);router['put'](_0x81a0('0x28'),auth[_0x81a0('0x8')](),controller[_0x81a0('0x29')]);module[_0x81a0('0x2a')]=router;
\ No newline at end of file