Built motion from commit 092f8824.|2.5.49
[motion2.git] / server / api / setting / index.js
index 6cbcb7a..c41ae45 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xa6ba=['extname','originalname','post','file','addLogo','diskStorage','logologin','single','addLogoLogin','preferred','/:id/preferred','addPreferred','favicon','addFavicon','put','update','exports','multer','path','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./setting.controller','isAuthenticated','get','/:id','show','/:id/logo','getLogo','/:id/logo_login','getLogoLogin','/:id/gdpr','getPreferred','/:id/favicon','getFavicon','join','root','server/files/images/logos/','format','%s%s','logo'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0xa6ba,0x1bf));var _0xaa6b=function(_0x2b10c6,_0x185590){_0x2b10c6=_0x2b10c6-0x0;var _0x3789d2=_0xa6ba[_0x2b10c6];return _0x3789d2;};'use strict';var multer=require(_0xaa6b('0x0'));var util=require('util');var path=require(_0xaa6b('0x1'));var timeout=require('connect-timeout');var express=require(_0xaa6b('0x2'));var router=express['Router']();var fs_extra=require(_0xaa6b('0x3'));var auth=require(_0xaa6b('0x4'));var interaction=require(_0xaa6b('0x5'));var config=require(_0xaa6b('0x6'));var controller=require(_0xaa6b('0x7'));router['get']('/',auth[_0xaa6b('0x8')](),controller['index']);router[_0xaa6b('0x9')]('/now',controller['getDate']);router[_0xaa6b('0x9')](_0xaa6b('0xa'),controller[_0xaa6b('0xb')]);router[_0xaa6b('0x9')](_0xaa6b('0xc'),controller[_0xaa6b('0xd')]);router['get'](_0xaa6b('0xe'),controller[_0xaa6b('0xf')]);router[_0xaa6b('0x9')](_0xaa6b('0x10'),controller['gdpr']);router[_0xaa6b('0x9')]('/:id/preferred',controller[_0xaa6b('0x11')]);router['get'](_0xaa6b('0x12'),controller[_0xaa6b('0x13')]);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0x2d2a2b,_0x31e7f6,_0x50b0db){_0x50b0db(null,path[_0xaa6b('0x14')](config[_0xaa6b('0x15')],_0xaa6b('0x16')));},'filename':function(_0x2ca555,_0x2d1880,_0x44bfb5){_0x44bfb5(null,util[_0xaa6b('0x17')](_0xaa6b('0x18'),_0xaa6b('0x19'),path[_0xaa6b('0x1a')](_0x2d1880[_0xaa6b('0x1b')])));}})});router[_0xaa6b('0x1c')](_0xaa6b('0xc'),upload['single'](_0xaa6b('0x1d')),controller[_0xaa6b('0x1e')]);var upload=multer({'storage':multer[_0xaa6b('0x1f')]({'destination':function(_0x515490,_0x304b46,_0x4bfe0d){_0x4bfe0d(null,path['join'](config[_0xaa6b('0x15')],_0xaa6b('0x16')));},'filename':function(_0x2c4e4c,_0xfe5bec,_0x31acfb){_0x31acfb(null,util[_0xaa6b('0x17')](_0xaa6b('0x18'),_0xaa6b('0x20'),path[_0xaa6b('0x1a')](_0xfe5bec[_0xaa6b('0x1b')])));}})});router['post'](_0xaa6b('0xe'),upload[_0xaa6b('0x21')](_0xaa6b('0x1d')),controller[_0xaa6b('0x22')]);var upload=multer({'storage':multer[_0xaa6b('0x1f')]({'destination':function(_0x2c98af,_0x30a86d,_0x19693f){_0x19693f(null,path['join'](config['root'],_0xaa6b('0x16')));},'filename':function(_0x274106,_0x26ecdd,_0x3f3cbc){_0x3f3cbc(null,util['format'](_0xaa6b('0x18'),_0xaa6b('0x23'),path[_0xaa6b('0x1a')](_0x26ecdd[_0xaa6b('0x1b')])));}})});router[_0xaa6b('0x1c')](_0xaa6b('0x24'),upload['single'](_0xaa6b('0x1d')),controller[_0xaa6b('0x25')]);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0x3e9047,_0x5bd3d8,_0x25439b){_0x25439b(null,path[_0xaa6b('0x14')](config[_0xaa6b('0x15')],_0xaa6b('0x16')));},'filename':function(_0x51e73e,_0x2b3e84,_0x2c146b){_0x2c146b(null,util['format'](_0xaa6b('0x18'),_0xaa6b('0x26'),path[_0xaa6b('0x1a')](_0x2b3e84[_0xaa6b('0x1b')])));}})});router[_0xaa6b('0x1c')](_0xaa6b('0x12'),upload['single']('file'),controller[_0xaa6b('0x27')]);router[_0xaa6b('0x28')](_0xaa6b('0xa'),auth[_0xaa6b('0x8')](),controller[_0xaa6b('0x29')]);module[_0xaa6b('0x2a')]=router;
\ No newline at end of file
+var _0x44ff=['join','root','server/files/images/logos/','format','logo','extname','originalname','post','single','file','addLogo','%s%s','logologin','preferred','addPreferred','favicon','/:id/favicon','isAuthenticated','update','multer','util','path','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./setting.controller','get','/now','getDate','/:id','show','/:id/logo','getLogo','/:id/logo_login','getLogoLogin','/:id/preferred','getFavicon','diskStorage'];(function(_0x2e4809,_0x365e2a){var _0x4e9161=function(_0x19d951){while(--_0x19d951){_0x2e4809['push'](_0x2e4809['shift']());}};_0x4e9161(++_0x365e2a);}(_0x44ff,0xb3));var _0xf44f=function(_0x1ba32d,_0x40fc84){_0x1ba32d=_0x1ba32d-0x0;var _0x2fb7f7=_0x44ff[_0x1ba32d];return _0x2fb7f7;};'use strict';var multer=require(_0xf44f('0x0'));var util=require(_0xf44f('0x1'));var path=require(_0xf44f('0x2'));var timeout=require('connect-timeout');var express=require(_0xf44f('0x3'));var router=express['Router']();var fs_extra=require(_0xf44f('0x4'));var auth=require(_0xf44f('0x5'));var interaction=require(_0xf44f('0x6'));var config=require(_0xf44f('0x7'));var controller=require(_0xf44f('0x8'));router[_0xf44f('0x9')]('/',auth['isAuthenticated'](),controller['index']);router[_0xf44f('0x9')](_0xf44f('0xa'),controller[_0xf44f('0xb')]);router[_0xf44f('0x9')](_0xf44f('0xc'),controller[_0xf44f('0xd')]);router['get'](_0xf44f('0xe'),controller[_0xf44f('0xf')]);router['get'](_0xf44f('0x10'),controller[_0xf44f('0x11')]);router[_0xf44f('0x9')]('/:id/gdpr',controller['gdpr']);router[_0xf44f('0x9')](_0xf44f('0x12'),controller['getPreferred']);router[_0xf44f('0x9')]('/:id/favicon',controller[_0xf44f('0x13')]);var upload=multer({'storage':multer[_0xf44f('0x14')]({'destination':function(_0x544bb1,_0x53e2b9,_0x4a080e){_0x4a080e(null,path[_0xf44f('0x15')](config[_0xf44f('0x16')],_0xf44f('0x17')));},'filename':function(_0x41b23d,_0x110216,_0xc654cf){_0xc654cf(null,util[_0xf44f('0x18')]('%s%s',_0xf44f('0x19'),path[_0xf44f('0x1a')](_0x110216[_0xf44f('0x1b')])));}})});router[_0xf44f('0x1c')](_0xf44f('0xe'),upload[_0xf44f('0x1d')](_0xf44f('0x1e')),controller[_0xf44f('0x1f')]);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0x1acbe9,_0x4d87fb,_0xec01f1){_0xec01f1(null,path['join'](config[_0xf44f('0x16')],'server/files/images/logos/'));},'filename':function(_0x262677,_0x5089ec,_0x3b6263){_0x3b6263(null,util[_0xf44f('0x18')](_0xf44f('0x20'),_0xf44f('0x21'),path[_0xf44f('0x1a')](_0x5089ec[_0xf44f('0x1b')])));}})});router['post']('/:id/logo_login',upload['single'](_0xf44f('0x1e')),controller['addLogoLogin']);var upload=multer({'storage':multer[_0xf44f('0x14')]({'destination':function(_0x400dc0,_0x206b80,_0x12e7ab){_0x12e7ab(null,path[_0xf44f('0x15')](config[_0xf44f('0x16')],_0xf44f('0x17')));},'filename':function(_0xb4fd85,_0x537fc9,_0x2a0a7e){_0x2a0a7e(null,util[_0xf44f('0x18')](_0xf44f('0x20'),_0xf44f('0x22'),path[_0xf44f('0x1a')](_0x537fc9['originalname'])));}})});router[_0xf44f('0x1c')](_0xf44f('0x12'),upload[_0xf44f('0x1d')](_0xf44f('0x1e')),controller[_0xf44f('0x23')]);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0x55ac2d,_0x393e06,_0x10e6f9){_0x10e6f9(null,path[_0xf44f('0x15')](config[_0xf44f('0x16')],_0xf44f('0x17')));},'filename':function(_0x49cc94,_0x194ce8,_0x4ff57b){_0x4ff57b(null,util[_0xf44f('0x18')](_0xf44f('0x20'),_0xf44f('0x24'),path['extname'](_0x194ce8[_0xf44f('0x1b')])));}})});router[_0xf44f('0x1c')](_0xf44f('0x25'),upload[_0xf44f('0x1d')](_0xf44f('0x1e')),controller['addFavicon']);router['put'](_0xf44f('0xc'),auth[_0xf44f('0x26')](),controller[_0xf44f('0x27')]);module['exports']=router;
\ No newline at end of file