Built motion from commit 00bf23f6.|2.6.16
[motion2.git] / server / api / setting / index.js
index 6cbcb7a..479c44a 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 _0xd9ce=['update','exports','multer','util','path','express','../../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','diskStorage','join','root','server/files/images/logos/','format','%s%s','extname','originalname','post','single','file','logologin','addLogoLogin','/:id/preferred','addPreferred','favicon','addFavicon','put'];(function(_0x41e52b,_0x3376e9){var _0xc34ecf=function(_0x47ec73){while(--_0x47ec73){_0x41e52b['push'](_0x41e52b['shift']());}};_0xc34ecf(++_0x3376e9);}(_0xd9ce,0xca));var _0xed9c=function(_0x46ce14,_0x4f7796){_0x46ce14=_0x46ce14-0x0;var _0x1f15f0=_0xd9ce[_0x46ce14];return _0x1f15f0;};'use strict';var multer=require(_0xed9c('0x0'));var util=require(_0xed9c('0x1'));var path=require(_0xed9c('0x2'));var timeout=require('connect-timeout');var express=require(_0xed9c('0x3'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0xed9c('0x4'));var interaction=require(_0xed9c('0x5'));var config=require(_0xed9c('0x6'));var controller=require(_0xed9c('0x7'));router['get']('/',auth[_0xed9c('0x8')](),controller['index']);router[_0xed9c('0x9')]('/now',controller['getDate']);router[_0xed9c('0x9')](_0xed9c('0xa'),controller[_0xed9c('0xb')]);router['get'](_0xed9c('0xc'),controller[_0xed9c('0xd')]);router[_0xed9c('0x9')](_0xed9c('0xe'),controller[_0xed9c('0xf')]);router[_0xed9c('0x9')](_0xed9c('0x10'),controller['gdpr']);router[_0xed9c('0x9')]('/:id/preferred',controller[_0xed9c('0x11')]);router[_0xed9c('0x9')](_0xed9c('0x12'),controller[_0xed9c('0x13')]);var upload=multer({'storage':multer[_0xed9c('0x14')]({'destination':function(_0xd9f274,_0x3bf508,_0xc845c4){_0xc845c4(null,path[_0xed9c('0x15')](config[_0xed9c('0x16')],_0xed9c('0x17')));},'filename':function(_0x2d39ca,_0x3aa16b,_0x118e78){_0x118e78(null,util[_0xed9c('0x18')](_0xed9c('0x19'),'logo',path[_0xed9c('0x1a')](_0x3aa16b[_0xed9c('0x1b')])));}})});router[_0xed9c('0x1c')](_0xed9c('0xc'),upload[_0xed9c('0x1d')](_0xed9c('0x1e')),controller['addLogo']);var upload=multer({'storage':multer[_0xed9c('0x14')]({'destination':function(_0x40a314,_0xa76664,_0x356e9f){_0x356e9f(null,path[_0xed9c('0x15')](config[_0xed9c('0x16')],_0xed9c('0x17')));},'filename':function(_0x2d84aa,_0x23008c,_0x41a7a1){_0x41a7a1(null,util[_0xed9c('0x18')]('%s%s',_0xed9c('0x1f'),path[_0xed9c('0x1a')](_0x23008c[_0xed9c('0x1b')])));}})});router['post'](_0xed9c('0xe'),upload['single'](_0xed9c('0x1e')),controller[_0xed9c('0x20')]);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0x90784c,_0x4217ba,_0x2ffcfc){_0x2ffcfc(null,path[_0xed9c('0x15')](config[_0xed9c('0x16')],_0xed9c('0x17')));},'filename':function(_0x180184,_0x4a5d33,_0x3aaa18){_0x3aaa18(null,util[_0xed9c('0x18')](_0xed9c('0x19'),'preferred',path['extname'](_0x4a5d33[_0xed9c('0x1b')])));}})});router[_0xed9c('0x1c')](_0xed9c('0x21'),upload[_0xed9c('0x1d')]('file'),controller[_0xed9c('0x22')]);var upload=multer({'storage':multer[_0xed9c('0x14')]({'destination':function(_0x53a9f3,_0x3d1ef4,_0x2a124f){_0x2a124f(null,path[_0xed9c('0x15')](config[_0xed9c('0x16')],_0xed9c('0x17')));},'filename':function(_0x44304a,_0x14bd9f,_0x46bdec){_0x46bdec(null,util[_0xed9c('0x18')](_0xed9c('0x19'),_0xed9c('0x23'),path['extname'](_0x14bd9f[_0xed9c('0x1b')])));}})});router[_0xed9c('0x1c')](_0xed9c('0x12'),upload[_0xed9c('0x1d')](_0xed9c('0x1e')),controller[_0xed9c('0x24')]);router[_0xed9c('0x25')](_0xed9c('0xa'),auth['isAuthenticated'](),controller[_0xed9c('0x26')]);module[_0xed9c('0x27')]=router;
\ No newline at end of file