Built motion from commit (unavailable).|2.5.25
[motion2.git] / server / api / setting / index.js
index 5634f70..4b05417 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x40a8=['get','isAuthenticated','index','/now','getDate','/:id','/:id/logo','/:id/logo_login','getLogoLogin','/:id/gdpr','gdpr','/:id/preferred','getPreferred','/:id/favicon','diskStorage','server/files/images/logos/','format','%s%s','logo','extname','originalname','post','single','file','addLogo','join','logologin','addLogoLogin','preferred','addPreferred','root','favicon','addFavicon','update','multer','path','connect-timeout','express','../../components/auth/service','../../components/interaction/service','./setting.controller'];(function(_0xa464c9,_0x7c86d8){var _0x3d73c4=function(_0x5c2056){while(--_0x5c2056){_0xa464c9['push'](_0xa464c9['shift']());}};_0x3d73c4(++_0x7c86d8);}(_0x40a8,0x193));var _0x840a=function(_0x568496,_0x565afd){_0x568496=_0x568496-0x0;var _0x26c5c1=_0x40a8[_0x568496];return _0x26c5c1;};'use strict';var multer=require(_0x840a('0x0'));var util=require('util');var path=require(_0x840a('0x1'));var timeout=require(_0x840a('0x2'));var express=require(_0x840a('0x3'));var router=express['Router']();var auth=require(_0x840a('0x4'));var interaction=require(_0x840a('0x5'));var config=require('../../config/environment');var controller=require(_0x840a('0x6'));router[_0x840a('0x7')]('/',auth[_0x840a('0x8')](),controller[_0x840a('0x9')]);router[_0x840a('0x7')](_0x840a('0xa'),controller[_0x840a('0xb')]);router[_0x840a('0x7')](_0x840a('0xc'),controller['show']);router[_0x840a('0x7')](_0x840a('0xd'),controller['getLogo']);router['get'](_0x840a('0xe'),controller[_0x840a('0xf')]);router[_0x840a('0x7')](_0x840a('0x10'),controller[_0x840a('0x11')]);router['get'](_0x840a('0x12'),controller[_0x840a('0x13')]);router['get'](_0x840a('0x14'),controller['getFavicon']);var upload=multer({'storage':multer[_0x840a('0x15')]({'destination':function(_0x23a071,_0x3a22a0,_0x4203b6){_0x4203b6(null,path['join'](config['root'],_0x840a('0x16')));},'filename':function(_0x4f137e,_0x4b605b,_0xc9136c){_0xc9136c(null,util[_0x840a('0x17')](_0x840a('0x18'),_0x840a('0x19'),path[_0x840a('0x1a')](_0x4b605b[_0x840a('0x1b')])));}})});router[_0x840a('0x1c')](_0x840a('0xd'),upload[_0x840a('0x1d')](_0x840a('0x1e')),controller[_0x840a('0x1f')]);var upload=multer({'storage':multer[_0x840a('0x15')]({'destination':function(_0x96acc7,_0x4fe074,_0x569acf){_0x569acf(null,path[_0x840a('0x20')](config['root'],_0x840a('0x16')));},'filename':function(_0xe35784,_0xe501ab,_0x45ea64){_0x45ea64(null,util[_0x840a('0x17')](_0x840a('0x18'),_0x840a('0x21'),path[_0x840a('0x1a')](_0xe501ab[_0x840a('0x1b')])));}})});router['post']('/:id/logo_login',upload['single'](_0x840a('0x1e')),controller[_0x840a('0x22')]);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0xbb0fb0,_0x18c8d1,_0x23141d){_0x23141d(null,path[_0x840a('0x20')](config['root'],'server/files/images/logos/'));},'filename':function(_0x43aea6,_0x14e0b2,_0x247d6f){_0x247d6f(null,util['format'](_0x840a('0x18'),_0x840a('0x23'),path[_0x840a('0x1a')](_0x14e0b2[_0x840a('0x1b')])));}})});router[_0x840a('0x1c')](_0x840a('0x12'),upload[_0x840a('0x1d')](_0x840a('0x1e')),controller[_0x840a('0x24')]);var upload=multer({'storage':multer[_0x840a('0x15')]({'destination':function(_0x266924,_0x3d204d,_0x3b412d){_0x3b412d(null,path['join'](config[_0x840a('0x25')],_0x840a('0x16')));},'filename':function(_0x1f2484,_0x2c8693,_0x5be3f9){_0x5be3f9(null,util[_0x840a('0x17')](_0x840a('0x18'),_0x840a('0x26'),path['extname'](_0x2c8693['originalname'])));}})});router[_0x840a('0x1c')](_0x840a('0x14'),upload[_0x840a('0x1d')]('file'),controller[_0x840a('0x27')]);router['put'](_0x840a('0xc'),auth[_0x840a('0x8')](),controller[_0x840a('0x28')]);module['exports']=router;
\ No newline at end of file
+var _0xf555=['../../components/auth/service','../../config/environment','get','isAuthenticated','index','getDate','show','getLogo','/:id/logo_login','getLogoLogin','/:id/gdpr','gdpr','/:id/preferred','getPreferred','getFavicon','diskStorage','join','root','format','logo','extname','originalname','post','/:id/logo','single','file','addLogo','%s%s','logologin','addLogoLogin','server/files/images/logos/','preferred','addPreferred','favicon','/:id/favicon','put','/:id','update','exports','util','path','connect-timeout','express'];(function(_0xea6018,_0x4cf082){var _0x57b54d=function(_0x49099a){while(--_0x49099a){_0xea6018['push'](_0xea6018['shift']());}};_0x57b54d(++_0x4cf082);}(_0xf555,0xa8));var _0x5f55=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xf555[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require('multer');var util=require(_0x5f55('0x0'));var path=require(_0x5f55('0x1'));var timeout=require(_0x5f55('0x2'));var express=require(_0x5f55('0x3'));var router=express['Router']();var auth=require(_0x5f55('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x5f55('0x5'));var controller=require('./setting.controller');router[_0x5f55('0x6')]('/',auth[_0x5f55('0x7')](),controller[_0x5f55('0x8')]);router[_0x5f55('0x6')]('/now',controller[_0x5f55('0x9')]);router['get']('/:id',controller[_0x5f55('0xa')]);router[_0x5f55('0x6')]('/:id/logo',controller[_0x5f55('0xb')]);router[_0x5f55('0x6')](_0x5f55('0xc'),controller[_0x5f55('0xd')]);router['get'](_0x5f55('0xe'),controller[_0x5f55('0xf')]);router[_0x5f55('0x6')](_0x5f55('0x10'),controller[_0x5f55('0x11')]);router[_0x5f55('0x6')]('/:id/favicon',controller[_0x5f55('0x12')]);var upload=multer({'storage':multer[_0x5f55('0x13')]({'destination':function(_0x30a377,_0x5a1a7c,_0xc482ed){_0xc482ed(null,path[_0x5f55('0x14')](config[_0x5f55('0x15')],'server/files/images/logos/'));},'filename':function(_0x9b4915,_0x124636,_0x3925ff){_0x3925ff(null,util[_0x5f55('0x16')]('%s%s',_0x5f55('0x17'),path[_0x5f55('0x18')](_0x124636[_0x5f55('0x19')])));}})});router[_0x5f55('0x1a')](_0x5f55('0x1b'),upload[_0x5f55('0x1c')](_0x5f55('0x1d')),controller[_0x5f55('0x1e')]);var upload=multer({'storage':multer[_0x5f55('0x13')]({'destination':function(_0x41a422,_0x24d441,_0x13c74e){_0x13c74e(null,path['join'](config[_0x5f55('0x15')],'server/files/images/logos/'));},'filename':function(_0x4248f6,_0x5696af,_0x53a393){_0x53a393(null,util[_0x5f55('0x16')](_0x5f55('0x1f'),_0x5f55('0x20'),path[_0x5f55('0x18')](_0x5696af[_0x5f55('0x19')])));}})});router[_0x5f55('0x1a')](_0x5f55('0xc'),upload[_0x5f55('0x1c')](_0x5f55('0x1d')),controller[_0x5f55('0x21')]);var upload=multer({'storage':multer[_0x5f55('0x13')]({'destination':function(_0x573701,_0x50fb4b,_0x346900){_0x346900(null,path[_0x5f55('0x14')](config[_0x5f55('0x15')],_0x5f55('0x22')));},'filename':function(_0x2b878c,_0x197703,_0x332dc7){_0x332dc7(null,util[_0x5f55('0x16')](_0x5f55('0x1f'),_0x5f55('0x23'),path[_0x5f55('0x18')](_0x197703[_0x5f55('0x19')])));}})});router[_0x5f55('0x1a')](_0x5f55('0x10'),upload[_0x5f55('0x1c')](_0x5f55('0x1d')),controller[_0x5f55('0x24')]);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0xff97e9,_0x3ae3e2,_0x2bdc89){_0x2bdc89(null,path['join'](config[_0x5f55('0x15')],_0x5f55('0x22')));},'filename':function(_0x151459,_0xa6073c,_0x12e980){_0x12e980(null,util[_0x5f55('0x16')]('%s%s',_0x5f55('0x25'),path[_0x5f55('0x18')](_0xa6073c['originalname'])));}})});router['post'](_0x5f55('0x26'),upload['single'](_0x5f55('0x1d')),controller['addFavicon']);router[_0x5f55('0x27')](_0x5f55('0x28'),auth['isAuthenticated'](),controller[_0x5f55('0x29')]);module[_0x5f55('0x2a')]=router;
\ No newline at end of file