Built motion from commit (unavailable).|2.5.29
[motion2.git] / server / api / setting / index.js
index 97021c5..da13438 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x93a4=['/:id/logo_login','addLogoLogin','preferred','originalname','post','addPreferred','format','favicon','addFavicon','put','exports','multer','path','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','./setting.controller','get','isAuthenticated','index','/now','getDate','/:id','/:id/logo','getLogoLogin','gdpr','/:id/preferred','getPreferred','/:id/favicon','diskStorage','join','root','server/files/images/logos/','%s%s','logo','extname','single','file','addLogo','logologin'];(function(_0x24eda0,_0x498d8f){var _0x428f02=function(_0x503a97){while(--_0x503a97){_0x24eda0['push'](_0x24eda0['shift']());}};_0x428f02(++_0x498d8f);}(_0x93a4,0x1af));var _0x493a=function(_0x3b6a0d,_0x1bb010){_0x3b6a0d=_0x3b6a0d-0x0;var _0x31506a=_0x93a4[_0x3b6a0d];return _0x31506a;};'use strict';var multer=require(_0x493a('0x0'));var util=require('util');var path=require(_0x493a('0x1'));var timeout=require(_0x493a('0x2'));var express=require(_0x493a('0x3'));var router=express[_0x493a('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0x493a('0x5'));var config=require(_0x493a('0x6'));var controller=require(_0x493a('0x7'));router[_0x493a('0x8')]('/',auth[_0x493a('0x9')](),controller[_0x493a('0xa')]);router[_0x493a('0x8')](_0x493a('0xb'),controller[_0x493a('0xc')]);router[_0x493a('0x8')](_0x493a('0xd'),controller['show']);router[_0x493a('0x8')](_0x493a('0xe'),controller['getLogo']);router[_0x493a('0x8')]('/:id/logo_login',controller[_0x493a('0xf')]);router[_0x493a('0x8')]('/:id/gdpr',controller[_0x493a('0x10')]);router['get'](_0x493a('0x11'),controller[_0x493a('0x12')]);router['get'](_0x493a('0x13'),controller['getFavicon']);var upload=multer({'storage':multer[_0x493a('0x14')]({'destination':function(_0x12446a,_0x4d854f,_0x4fecab){_0x4fecab(null,path[_0x493a('0x15')](config[_0x493a('0x16')],_0x493a('0x17')));},'filename':function(_0x1c14dc,_0x374732,_0x5f0460){_0x5f0460(null,util['format'](_0x493a('0x18'),_0x493a('0x19'),path[_0x493a('0x1a')](_0x374732['originalname'])));}})});router['post'](_0x493a('0xe'),upload[_0x493a('0x1b')](_0x493a('0x1c')),controller[_0x493a('0x1d')]);var upload=multer({'storage':multer[_0x493a('0x14')]({'destination':function(_0x585874,_0x3549c6,_0x35a847){_0x35a847(null,path['join'](config['root'],_0x493a('0x17')));},'filename':function(_0x2f04b1,_0x4f4d10,_0x56f84a){_0x56f84a(null,util['format'](_0x493a('0x18'),_0x493a('0x1e'),path[_0x493a('0x1a')](_0x4f4d10['originalname'])));}})});router['post'](_0x493a('0x1f'),upload[_0x493a('0x1b')]('file'),controller[_0x493a('0x20')]);var upload=multer({'storage':multer[_0x493a('0x14')]({'destination':function(_0x36c4ef,_0x41b811,_0x5b02ed){_0x5b02ed(null,path[_0x493a('0x15')](config[_0x493a('0x16')],_0x493a('0x17')));},'filename':function(_0x3966f8,_0x2b0b8c,_0x45283b){_0x45283b(null,util['format'](_0x493a('0x18'),_0x493a('0x21'),path[_0x493a('0x1a')](_0x2b0b8c[_0x493a('0x22')])));}})});router[_0x493a('0x23')](_0x493a('0x11'),upload[_0x493a('0x1b')](_0x493a('0x1c')),controller[_0x493a('0x24')]);var upload=multer({'storage':multer[_0x493a('0x14')]({'destination':function(_0x207942,_0x5e06cb,_0x5f4531){_0x5f4531(null,path[_0x493a('0x15')](config[_0x493a('0x16')],'server/files/images/logos/'));},'filename':function(_0x38f1f2,_0x134425,_0x487853){_0x487853(null,util[_0x493a('0x25')](_0x493a('0x18'),_0x493a('0x26'),path[_0x493a('0x1a')](_0x134425[_0x493a('0x22')])));}})});router[_0x493a('0x23')](_0x493a('0x13'),upload[_0x493a('0x1b')](_0x493a('0x1c')),controller[_0x493a('0x27')]);router[_0x493a('0x28')](_0x493a('0xd'),auth[_0x493a('0x9')](),controller['update']);module[_0x493a('0x29')]=router;
\ No newline at end of file
+var _0xa9e0=['addFavicon','put','isAuthenticated','update','multer','util','path','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./setting.controller','get','index','/now','/:id','/:id/logo','getLogo','/:id/logo_login','getLogoLogin','getPreferred','/:id/favicon','getFavicon','diskStorage','join','root','server/files/images/logos/','format','logo','originalname','post','single','addLogo','logologin','extname','file','addLogoLogin','preferred','addPreferred','%s%s','favicon'];(function(_0x56d663,_0x46e4aa){var _0x3d2281=function(_0x3c261a){while(--_0x3c261a){_0x56d663['push'](_0x56d663['shift']());}};_0x3d2281(++_0x46e4aa);}(_0xa9e0,0x123));var _0x0a9e=function(_0x102e37,_0x14a181){_0x102e37=_0x102e37-0x0;var _0x35a07c=_0xa9e0[_0x102e37];return _0x35a07c;};'use strict';var multer=require(_0x0a9e('0x0'));var util=require(_0x0a9e('0x1'));var path=require(_0x0a9e('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x0a9e('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x0a9e('0x4'));var interaction=require(_0x0a9e('0x5'));var config=require(_0x0a9e('0x6'));var controller=require(_0x0a9e('0x7'));router[_0x0a9e('0x8')]('/',auth['isAuthenticated'](),controller[_0x0a9e('0x9')]);router[_0x0a9e('0x8')](_0x0a9e('0xa'),controller['getDate']);router['get'](_0x0a9e('0xb'),controller['show']);router['get'](_0x0a9e('0xc'),controller[_0x0a9e('0xd')]);router[_0x0a9e('0x8')](_0x0a9e('0xe'),controller[_0x0a9e('0xf')]);router[_0x0a9e('0x8')]('/:id/gdpr',controller['gdpr']);router['get']('/:id/preferred',controller[_0x0a9e('0x10')]);router[_0x0a9e('0x8')](_0x0a9e('0x11'),controller[_0x0a9e('0x12')]);var upload=multer({'storage':multer[_0x0a9e('0x13')]({'destination':function(_0x69aeb7,_0x5db4b0,_0x4283ce){_0x4283ce(null,path[_0x0a9e('0x14')](config[_0x0a9e('0x15')],_0x0a9e('0x16')));},'filename':function(_0x44dcfd,_0x4d5611,_0x52a03d){_0x52a03d(null,util[_0x0a9e('0x17')]('%s%s',_0x0a9e('0x18'),path['extname'](_0x4d5611[_0x0a9e('0x19')])));}})});router[_0x0a9e('0x1a')]('/:id/logo',upload[_0x0a9e('0x1b')]('file'),controller[_0x0a9e('0x1c')]);var upload=multer({'storage':multer[_0x0a9e('0x13')]({'destination':function(_0x106033,_0x205fd6,_0x31b1ca){_0x31b1ca(null,path[_0x0a9e('0x14')](config[_0x0a9e('0x15')],_0x0a9e('0x16')));},'filename':function(_0x1314ae,_0x112016,_0x1c696a){_0x1c696a(null,util[_0x0a9e('0x17')]('%s%s',_0x0a9e('0x1d'),path[_0x0a9e('0x1e')](_0x112016['originalname'])));}})});router[_0x0a9e('0x1a')]('/:id/logo_login',upload['single'](_0x0a9e('0x1f')),controller[_0x0a9e('0x20')]);var upload=multer({'storage':multer[_0x0a9e('0x13')]({'destination':function(_0x30bae6,_0x4abc77,_0xfb6e48){_0xfb6e48(null,path[_0x0a9e('0x14')](config[_0x0a9e('0x15')],_0x0a9e('0x16')));},'filename':function(_0x370d86,_0x42ac8f,_0x16b1ca){_0x16b1ca(null,util['format']('%s%s',_0x0a9e('0x21'),path[_0x0a9e('0x1e')](_0x42ac8f[_0x0a9e('0x19')])));}})});router[_0x0a9e('0x1a')]('/:id/preferred',upload[_0x0a9e('0x1b')]('file'),controller[_0x0a9e('0x22')]);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0x1dc186,_0x34dc65,_0x25fba9){_0x25fba9(null,path[_0x0a9e('0x14')](config[_0x0a9e('0x15')],_0x0a9e('0x16')));},'filename':function(_0x11c3b6,_0x14de77,_0x5a101a){_0x5a101a(null,util[_0x0a9e('0x17')](_0x0a9e('0x23'),_0x0a9e('0x24'),path[_0x0a9e('0x1e')](_0x14de77['originalname'])));}})});router[_0x0a9e('0x1a')](_0x0a9e('0x11'),upload[_0x0a9e('0x1b')](_0x0a9e('0x1f')),controller[_0x0a9e('0x25')]);router[_0x0a9e('0x26')](_0x0a9e('0xb'),auth[_0x0a9e('0x27')](),controller[_0x0a9e('0x28')]);module['exports']=router;
\ No newline at end of file