Built motion from commit d5e4af8c.|2.6.23
[motion2.git] / server / api / setting / index.js
index 655068f..9fcd418 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xfa1b=['logo','extname','originalname','post','single','file','addLogo','root','logologin','preferred','addPreferred','favicon','addFavicon','update','exports','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./setting.controller','get','isAuthenticated','/now','/:id','/:id/logo','getLogo','/:id/logo_login','/:id/gdpr','gdpr','/:id/preferred','getPreferred','/:id/favicon','getFavicon','diskStorage','join','server/files/images/logos/','format','%s%s'];(function(_0x321bb2,_0x202794){var _0x9c12ed=function(_0x263dd3){while(--_0x263dd3){_0x321bb2['push'](_0x321bb2['shift']());}};_0x9c12ed(++_0x202794);}(_0xfa1b,0x1bd));var _0xbfa1=function(_0x2f470f,_0x132ae8){_0x2f470f=_0x2f470f-0x0;var _0xe996b=_0xfa1b[_0x2f470f];return _0xe996b;};'use strict';var multer=require(_0xbfa1('0x0'));var util=require(_0xbfa1('0x1'));var path=require(_0xbfa1('0x2'));var timeout=require(_0xbfa1('0x3'));var express=require(_0xbfa1('0x4'));var router=express[_0xbfa1('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0xbfa1('0x6'));var interaction=require(_0xbfa1('0x7'));var config=require(_0xbfa1('0x8'));var controller=require(_0xbfa1('0x9'));router[_0xbfa1('0xa')]('/',auth[_0xbfa1('0xb')](),controller['index']);router[_0xbfa1('0xa')](_0xbfa1('0xc'),controller['getDate']);router[_0xbfa1('0xa')](_0xbfa1('0xd'),controller['show']);router[_0xbfa1('0xa')](_0xbfa1('0xe'),controller[_0xbfa1('0xf')]);router[_0xbfa1('0xa')](_0xbfa1('0x10'),controller['getLogoLogin']);router[_0xbfa1('0xa')](_0xbfa1('0x11'),controller[_0xbfa1('0x12')]);router[_0xbfa1('0xa')](_0xbfa1('0x13'),controller[_0xbfa1('0x14')]);router[_0xbfa1('0xa')](_0xbfa1('0x15'),controller[_0xbfa1('0x16')]);var upload=multer({'storage':multer[_0xbfa1('0x17')]({'destination':function(_0x1cc1da,_0x4a08d6,_0x5d3219){_0x5d3219(null,path[_0xbfa1('0x18')](config['root'],_0xbfa1('0x19')));},'filename':function(_0x1a43bd,_0x29ecba,_0x46ef6e){_0x46ef6e(null,util[_0xbfa1('0x1a')](_0xbfa1('0x1b'),_0xbfa1('0x1c'),path[_0xbfa1('0x1d')](_0x29ecba[_0xbfa1('0x1e')])));}})});router[_0xbfa1('0x1f')](_0xbfa1('0xe'),upload[_0xbfa1('0x20')](_0xbfa1('0x21')),controller[_0xbfa1('0x22')]);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0x1040b7,_0x2ed041,_0x4d1fa0){_0x4d1fa0(null,path[_0xbfa1('0x18')](config[_0xbfa1('0x23')],_0xbfa1('0x19')));},'filename':function(_0x5a0622,_0x5e8847,_0x4e11ed){_0x4e11ed(null,util[_0xbfa1('0x1a')](_0xbfa1('0x1b'),_0xbfa1('0x24'),path['extname'](_0x5e8847[_0xbfa1('0x1e')])));}})});router[_0xbfa1('0x1f')](_0xbfa1('0x10'),upload['single'](_0xbfa1('0x21')),controller['addLogoLogin']);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0x2c40a9,_0x1ff58a,_0x217cc0){_0x217cc0(null,path[_0xbfa1('0x18')](config[_0xbfa1('0x23')],_0xbfa1('0x19')));},'filename':function(_0x49991f,_0x17c4e0,_0xfd117){_0xfd117(null,util[_0xbfa1('0x1a')]('%s%s',_0xbfa1('0x25'),path['extname'](_0x17c4e0[_0xbfa1('0x1e')])));}})});router[_0xbfa1('0x1f')]('/:id/preferred',upload['single'](_0xbfa1('0x21')),controller[_0xbfa1('0x26')]);var upload=multer({'storage':multer[_0xbfa1('0x17')]({'destination':function(_0x53ab06,_0x2e782d,_0x6f37a2){_0x6f37a2(null,path[_0xbfa1('0x18')](config[_0xbfa1('0x23')],_0xbfa1('0x19')));},'filename':function(_0x30ba87,_0x67cab2,_0x1434b1){_0x1434b1(null,util['format'](_0xbfa1('0x1b'),_0xbfa1('0x27'),path[_0xbfa1('0x1d')](_0x67cab2[_0xbfa1('0x1e')])));}})});router[_0xbfa1('0x1f')]('/:id/favicon',upload[_0xbfa1('0x20')](_0xbfa1('0x21')),controller[_0xbfa1('0x28')]);router['put']('/:id',auth[_0xbfa1('0xb')](),controller[_0xbfa1('0x29')]);module[_0xbfa1('0x2a')]=router;
\ No newline at end of file
+var _0x0084=['/:id/preferred','favicon','addFavicon','put','isAuthenticated','update','multer','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./setting.controller','get','index','/now','getDate','/:id','show','/:id/logo','getLogo','/:id/logo_login','/:id/gdpr','gdpr','getPreferred','/:id/favicon','getFavicon','diskStorage','join','root','server/files/images/logos/','format','%s%s','logo','originalname','post','file','extname','single','preferred'];(function(_0x5f6a8a,_0x45f474){var _0x2cce4d=function(_0x590b80){while(--_0x590b80){_0x5f6a8a['push'](_0x5f6a8a['shift']());}};_0x2cce4d(++_0x45f474);}(_0x0084,0x7e));var _0x4008=function(_0x4ce1b9,_0x397a4b){_0x4ce1b9=_0x4ce1b9-0x0;var _0x2bb15d=_0x0084[_0x4ce1b9];return _0x2bb15d;};'use strict';var multer=require(_0x4008('0x0'));var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require(_0x4008('0x1'));var router=express[_0x4008('0x2')]();var fs_extra=require(_0x4008('0x3'));var auth=require(_0x4008('0x4'));var interaction=require(_0x4008('0x5'));var config=require('../../config/environment');var controller=require(_0x4008('0x6'));router[_0x4008('0x7')]('/',auth['isAuthenticated'](),controller[_0x4008('0x8')]);router[_0x4008('0x7')](_0x4008('0x9'),controller[_0x4008('0xa')]);router[_0x4008('0x7')](_0x4008('0xb'),controller[_0x4008('0xc')]);router[_0x4008('0x7')](_0x4008('0xd'),controller[_0x4008('0xe')]);router[_0x4008('0x7')](_0x4008('0xf'),controller['getLogoLogin']);router[_0x4008('0x7')](_0x4008('0x10'),controller[_0x4008('0x11')]);router['get']('/:id/preferred',controller[_0x4008('0x12')]);router['get'](_0x4008('0x13'),controller[_0x4008('0x14')]);var upload=multer({'storage':multer[_0x4008('0x15')]({'destination':function(_0x3027ea,_0x342358,_0x2f9c20){_0x2f9c20(null,path[_0x4008('0x16')](config[_0x4008('0x17')],_0x4008('0x18')));},'filename':function(_0x2514ca,_0xba8191,_0x11cff3){_0x11cff3(null,util[_0x4008('0x19')](_0x4008('0x1a'),_0x4008('0x1b'),path['extname'](_0xba8191[_0x4008('0x1c')])));}})});router[_0x4008('0x1d')]('/:id/logo',upload['single'](_0x4008('0x1e')),controller['addLogo']);var upload=multer({'storage':multer[_0x4008('0x15')]({'destination':function(_0x103959,_0x3f3d46,_0xb9c607){_0xb9c607(null,path[_0x4008('0x16')](config[_0x4008('0x17')],_0x4008('0x18')));},'filename':function(_0x4f72be,_0x1f269c,_0x543a3a){_0x543a3a(null,util[_0x4008('0x19')]('%s%s','logologin',path[_0x4008('0x1f')](_0x1f269c[_0x4008('0x1c')])));}})});router[_0x4008('0x1d')]('/:id/logo_login',upload[_0x4008('0x20')]('file'),controller['addLogoLogin']);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0x7c7a09,_0x4da743,_0x401174){_0x401174(null,path[_0x4008('0x16')](config[_0x4008('0x17')],_0x4008('0x18')));},'filename':function(_0x2f3b7b,_0x590433,_0x332de8){_0x332de8(null,util['format'](_0x4008('0x1a'),_0x4008('0x21'),path[_0x4008('0x1f')](_0x590433[_0x4008('0x1c')])));}})});router['post'](_0x4008('0x22'),upload[_0x4008('0x20')](_0x4008('0x1e')),controller['addPreferred']);var upload=multer({'storage':multer[_0x4008('0x15')]({'destination':function(_0x413e49,_0xe70e91,_0x2ea706){_0x2ea706(null,path[_0x4008('0x16')](config[_0x4008('0x17')],_0x4008('0x18')));},'filename':function(_0x512894,_0xab2ea9,_0x384853){_0x384853(null,util[_0x4008('0x19')](_0x4008('0x1a'),_0x4008('0x23'),path[_0x4008('0x1f')](_0xab2ea9[_0x4008('0x1c')])));}})});router[_0x4008('0x1d')]('/:id/favicon',upload['single'](_0x4008('0x1e')),controller[_0x4008('0x24')]);router[_0x4008('0x25')]('/:id',auth[_0x4008('0x26')](),controller[_0x4008('0x27')]);module['exports']=router;
\ No newline at end of file