Built motion from commit 1333b3551.|1.0.38
[motion.git] / server / app.js
index e26bb70..6557292 100644 (file)
@@ -1 +1 @@
-var _0xd79e=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x4E\x4F\x44\x45\x5F\x45\x4E\x56","\x65\x6E\x76","\x64\x65\x76\x65\x6C\x6F\x70\x6D\x65\x6E\x74","\x4E\x4F\x44\x45\x5F\x54\x4C\x53\x5F\x52\x45\x4A\x45\x43\x54\x5F\x55\x4E\x41\x55\x54\x48\x4F\x52\x49\x5A\x45\x44","\x6D\x6F\x74\x69\x6F\x6E","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\x75\x6E\x63\x61\x75\x67\x68\x74\x45\x78\x63\x65\x70\x74\x69\x6F\x6E","\x6F\x62\x6A\x65\x63\x74","\x6D\x65\x73\x73\x61\x67\x65","\x0A\x45\x78\x70\x72\x65\x73\x73\x20\x45\x72\x72\x6F\x72\x20\x4D\x65\x73\x73\x61\x67\x65\x3A\x20","\x65\x72\x72\x6F\x72","\x73\x74\x61\x63\x6B","\x0A\x45\x78\x70\x72\x65\x73\x73\x20\x45\x72\x72\x6F\x72\x20\x53\x74\x61\x63\x6B\x74\x72\x61\x63\x65\x3A","\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D","\x45\x78\x70\x72\x65\x73\x73\x20\x64\x75\x6D\x70\x45\x72\x72\x6F\x72\x20\x3A\x3A\x20\x61\x72\x67\x75\x6D\x65\x6E\x74\x20\x69\x73\x20\x6E\x6F\x74\x20\x61\x6E\x20\x6F\x62\x6A\x65\x63\x74","\x6F\x6E","\x68\x74\x74\x70","\x43\x72\x6F\x6E\x4A\x6F\x62","\x63\x72\x6F\x6E","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x73\x6F\x63\x6B\x65\x74\x2E\x69\x6F","\x73\x6F\x63\x6B\x65\x74\x2E\x69\x6F\x2D\x72\x65\x64\x69\x73","\x6D\x6F\x6D\x65\x6E\x74","\x6A\x73\x74\x7A","\x64\x65\x74\x65\x72\x6D\x69\x6E\x65","\x63\x72\x65\x61\x74\x65\x53\x65\x72\x76\x65\x72","\x70\x6F\x72\x74","\x69\x70","\x45\x78\x70\x72\x65\x73\x73\x20\x73\x65\x72\x76\x65\x72\x20\x6C\x69\x73\x74\x65\x6E\x69\x6E\x67\x20\x6F\x6E\x20\x25\x64\x2C\x20\x69\x6E\x20\x25\x73\x20\x6D\x6F\x64\x65","\x67\x65\x74","\x64\x65\x62\x75\x67","\x6C\x69\x73\x74\x65\x6E","\x70\x72\x6F\x64\x75\x63\x74\x69\x6F\x6E","\x2F\x73\x6F\x63\x6B\x65\x74\x2E\x69\x6F\x2D\x63\x6C\x69\x65\x6E\x74","\x72\x65\x64\x69\x73\x50\x77\x64","\x63\x72\x65\x61\x74\x65\x43\x6C\x69\x65\x6E\x74","\x72\x65\x64\x69\x73","\x61\x64\x61\x70\x74\x65\x72","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x78\x70\x72\x65\x73\x73","\x54\x69\x6D\x65\x7A\x6F\x6E\x65\x20\x73\x65\x74\x3A","\x6E\x61\x6D\x65","\x5A","\x66\x6F\x72\x6D\x61\x74","\x63\x61\x74\x63\x68","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x68\x69\x73\x74\x6F\x72\x79\x2F\x68\x69\x73\x74\x6F\x72\x79","\x74\x68\x65\x6E","\x73\x79\x6E\x63","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65\x5F\x72\x65\x61\x64\x4F\x6E\x6C\x79","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x73\x6F\x63\x6B\x65\x74\x69\x6F","\x2E\x2F\x72\x6F\x75\x74\x65\x73","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x73\x2F\x6D\x61\x69\x6C","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x73\x2F\x66\x61\x78","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x73\x2F\x63\x68\x61\x74","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x73\x63\x68\x65\x64\x75\x6C\x65\x72","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x69\x6D\x61\x70","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x73\x6D\x74\x70","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x73\x6D\x73","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x63\x68\x61\x74","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x74\x6F\x6F\x6C\x73","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x61\x67\x69","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6C\x69\x63\x65\x6E\x73\x65","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x64\x61\x73\x68\x62\x6F\x61\x72\x64","\x73\x65\x65\x64\x44\x42","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x73\x65\x65\x64","\x73\x65\x65\x64\x50\x44\x42","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x73\x65\x65\x64\x70","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x61\x6D\x69","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x72\x70\x63","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0xd79e[0];process[_0xd79e[2]][_0xd79e[1]]= process[_0xd79e[2]][_0xd79e[1]]|| _0xd79e[3];process[_0xd79e[2]][_0xd79e[4]]= 0;var logger=require(_0xd79e[6])(_0xd79e[5]);process[_0xd79e[16]](_0xd79e[7],function(_0xa6d4x2){if( typeof _0xa6d4x2=== _0xd79e[8]){if(_0xa6d4x2[_0xd79e[9]]){logger[_0xd79e[11]](_0xd79e[10],_0xa6d4x2[_0xd79e[9]])};if(_0xa6d4x2[_0xd79e[12]]){logger[_0xd79e[11]](_0xd79e[13]);logger[_0xd79e[11]](_0xd79e[14]);logger[_0xd79e[11]](_0xa6d4x2[_0xd79e[12]])}}else {logger[_0xd79e[11]](_0xd79e[15])}});var http=require(_0xd79e[17]);var cronjob=require(_0xd79e[19])[_0xd79e[18]];var express=require(_0xd79e[20]);var config=require(_0xd79e[21]);var models=require(_0xd79e[22]);var sio=require(_0xd79e[23]);var sio_redis=require(_0xd79e[24]);var moment=require(_0xd79e[25]);var jstz=require(_0xd79e[26]);var timezone=jstz[_0xd79e[27]]();var app=express();var server=http[_0xd79e[28]](app);server[_0xd79e[34]](config[_0xd79e[29]],config[_0xd79e[30]],function(){logger[_0xd79e[33]](_0xd79e[31],config[_0xd79e[29]],app[_0xd79e[32]](_0xd79e[2]))});var io=sio(server,{serveClient:(config[_0xd79e[2]]=== _0xd79e[35])?false:true,path:_0xd79e[36]});if(config[_0xd79e[37]]){var redis=require(_0xd79e[39])[_0xd79e[38]];var pub=redis(6379,config[_0xd79e[30]],{password:config[_0xd79e[37]]});var sub=redis(6379,config[_0xd79e[30]],{return_buffers:true,password:config[_0xd79e[37]]});io[_0xd79e[40]](sio_redis({pubClient:pub,subClient:sub}))}else {io[_0xd79e[40]](sio_redis({host:config[_0xd79e[30]],port:6379}))};require(_0xd79e[41])(app);logger[_0xd79e[33]](_0xd79e[42],timezone[_0xd79e[43]]()|| moment()[_0xd79e[45]](_0xd79e[44]));var ami;models[_0xd79e[72]][_0xd79e[49]]()[_0xd79e[48]](function(){if(config[_0xd79e[66]]){require(_0xd79e[67])};if(config[_0xd79e[68]]){require(_0xd79e[69])};ami= require(_0xd79e[70])();return require(_0xd79e[71])()})[_0xd79e[48]](function(){var _0xa6d4x14=require(_0xd79e[51])(io);require(_0xd79e[52])(app,ami,_0xa6d4x14);require(_0xd79e[53])();require(_0xd79e[54])();require(_0xd79e[55])();require(_0xd79e[56])();require(_0xd79e[57])(ami);require(_0xd79e[58])();require(_0xd79e[59])(ami);require(_0xd79e[60])(ami);require(_0xd79e[61])(ami);require(_0xd79e[62])();require(_0xd79e[63])(ami);require(_0xd79e[64])();require(_0xd79e[65])()})[_0xd79e[48]](function(){return models[_0xd79e[50]][_0xd79e[49]]()})[_0xd79e[48]](function(){require(_0xd79e[47])(cronjob,ami)})[_0xd79e[46]](function(_0xa6d4x2){console[_0xd79e[11]](_0xa6d4x2)});exports= module[_0xd79e[73]]= app
\ No newline at end of file
+var _0xce14=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x4E\x4F\x44\x45\x5F\x45\x4E\x56","\x65\x6E\x76","\x64\x65\x76\x65\x6C\x6F\x70\x6D\x65\x6E\x74","\x4E\x4F\x44\x45\x5F\x54\x4C\x53\x5F\x52\x45\x4A\x45\x43\x54\x5F\x55\x4E\x41\x55\x54\x48\x4F\x52\x49\x5A\x45\x44","\x6D\x6F\x74\x69\x6F\x6E","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\x75\x6E\x63\x61\x75\x67\x68\x74\x45\x78\x63\x65\x70\x74\x69\x6F\x6E","\x6F\x62\x6A\x65\x63\x74","\x6D\x65\x73\x73\x61\x67\x65","\x0A\x45\x78\x70\x72\x65\x73\x73\x20\x45\x72\x72\x6F\x72\x20\x4D\x65\x73\x73\x61\x67\x65\x3A\x20","\x65\x72\x72\x6F\x72","\x73\x74\x61\x63\x6B","\x0A\x45\x78\x70\x72\x65\x73\x73\x20\x45\x72\x72\x6F\x72\x20\x53\x74\x61\x63\x6B\x74\x72\x61\x63\x65\x3A","\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D","\x45\x78\x70\x72\x65\x73\x73\x20\x64\x75\x6D\x70\x45\x72\x72\x6F\x72\x20\x3A\x3A\x20\x61\x72\x67\x75\x6D\x65\x6E\x74\x20\x69\x73\x20\x6E\x6F\x74\x20\x61\x6E\x20\x6F\x62\x6A\x65\x63\x74","\x6F\x6E","\x68\x74\x74\x70","\x43\x72\x6F\x6E\x4A\x6F\x62","\x63\x72\x6F\x6E","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x73\x6F\x63\x6B\x65\x74\x2E\x69\x6F","\x73\x6F\x63\x6B\x65\x74\x2E\x69\x6F\x2D\x72\x65\x64\x69\x73","\x6D\x6F\x6D\x65\x6E\x74","\x6A\x73\x74\x7A","\x64\x65\x74\x65\x72\x6D\x69\x6E\x65","\x63\x72\x65\x61\x74\x65\x53\x65\x72\x76\x65\x72","\x70\x6F\x72\x74","\x69\x70","\x45\x78\x70\x72\x65\x73\x73\x20\x73\x65\x72\x76\x65\x72\x20\x6C\x69\x73\x74\x65\x6E\x69\x6E\x67\x20\x6F\x6E\x20\x25\x64\x2C\x20\x69\x6E\x20\x25\x73\x20\x6D\x6F\x64\x65","\x67\x65\x74","\x64\x65\x62\x75\x67","\x6C\x69\x73\x74\x65\x6E","\x70\x72\x6F\x64\x75\x63\x74\x69\x6F\x6E","\x2F\x73\x6F\x63\x6B\x65\x74\x2E\x69\x6F\x2D\x63\x6C\x69\x65\x6E\x74","\x72\x65\x64\x69\x73\x50\x77\x64","\x63\x72\x65\x61\x74\x65\x43\x6C\x69\x65\x6E\x74","\x72\x65\x64\x69\x73","\x61\x64\x61\x70\x74\x65\x72","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x78\x70\x72\x65\x73\x73","\x54\x69\x6D\x65\x7A\x6F\x6E\x65\x20\x73\x65\x74\x3A","\x6E\x61\x6D\x65","\x5A","\x66\x6F\x72\x6D\x61\x74","\x63\x61\x74\x63\x68","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x68\x69\x73\x74\x6F\x72\x79\x2F\x68\x69\x73\x74\x6F\x72\x79","\x74\x68\x65\x6E","\x73\x79\x6E\x63","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65\x5F\x72\x65\x61\x64\x4F\x6E\x6C\x79","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x73\x6F\x63\x6B\x65\x74\x69\x6F","\x2E\x2F\x72\x6F\x75\x74\x65\x73","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x73\x2F\x6D\x61\x69\x6C","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x73\x2F\x66\x61\x78","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x73\x2F\x63\x68\x61\x74","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x73\x63\x68\x65\x64\x75\x6C\x65\x72","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x69\x6D\x61\x70","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x73\x6D\x74\x70","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x73\x6D\x73","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x63\x68\x61\x74","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x74\x6F\x6F\x6C\x73","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x61\x67\x69","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6C\x69\x63\x65\x6E\x73\x65","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x64\x61\x73\x68\x62\x6F\x61\x72\x64","\x73\x65\x65\x64\x44\x42","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x73\x65\x65\x64","\x73\x65\x65\x64\x50\x44\x42","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x73\x65\x65\x64\x70","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x61\x6D\x69","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x72\x70\x63","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0xce14[0];process[_0xce14[2]][_0xce14[1]]= process[_0xce14[2]][_0xce14[1]]|| _0xce14[3];process[_0xce14[2]][_0xce14[4]]= 0;var logger=require(_0xce14[6])(_0xce14[5]);process[_0xce14[16]](_0xce14[7],function(_0xe2aex2){if( typeof _0xe2aex2=== _0xce14[8]){if(_0xe2aex2[_0xce14[9]]){logger[_0xce14[11]](_0xce14[10],_0xe2aex2[_0xce14[9]])};if(_0xe2aex2[_0xce14[12]]){logger[_0xce14[11]](_0xce14[13]);logger[_0xce14[11]](_0xce14[14]);logger[_0xce14[11]](_0xe2aex2[_0xce14[12]])}}else {logger[_0xce14[11]](_0xce14[15])}});var http=require(_0xce14[17]);var cronjob=require(_0xce14[19])[_0xce14[18]];var express=require(_0xce14[20]);var config=require(_0xce14[21]);var models=require(_0xce14[22]);var sio=require(_0xce14[23]);var sio_redis=require(_0xce14[24]);var moment=require(_0xce14[25]);var jstz=require(_0xce14[26]);var timezone=jstz[_0xce14[27]]();var app=express();var server=http[_0xce14[28]](app);server[_0xce14[34]](config[_0xce14[29]],config[_0xce14[30]],function(){logger[_0xce14[33]](_0xce14[31],config[_0xce14[29]],app[_0xce14[32]](_0xce14[2]))});var io=sio(server,{serveClient:(config[_0xce14[2]]=== _0xce14[35])?false:true,path:_0xce14[36]});if(config[_0xce14[37]]){var redis=require(_0xce14[39])[_0xce14[38]];var pub=redis(6379,config[_0xce14[30]],{password:config[_0xce14[37]]});var sub=redis(6379,config[_0xce14[30]],{return_buffers:true,password:config[_0xce14[37]]});io[_0xce14[40]](sio_redis({pubClient:pub,subClient:sub}))}else {io[_0xce14[40]](sio_redis({host:config[_0xce14[30]],port:6379}))};require(_0xce14[41])(app);logger[_0xce14[33]](_0xce14[42],timezone[_0xce14[43]]()|| moment()[_0xce14[45]](_0xce14[44]));var ami;models[_0xce14[72]][_0xce14[49]]()[_0xce14[48]](function(){if(config[_0xce14[66]]){require(_0xce14[67])};if(config[_0xce14[68]]){require(_0xce14[69])};ami= require(_0xce14[70])();return require(_0xce14[71])()})[_0xce14[48]](function(){var _0xe2aex14=require(_0xce14[51])(io);require(_0xce14[52])(app,ami,_0xe2aex14);require(_0xce14[53])();require(_0xce14[54])();require(_0xce14[55])();require(_0xce14[56])();require(_0xce14[57])(ami);require(_0xce14[58])();require(_0xce14[59])(ami);require(_0xce14[60])(ami);require(_0xce14[61])(ami);require(_0xce14[62])();require(_0xce14[63])(ami);require(_0xce14[64])();require(_0xce14[65])()})[_0xce14[48]](function(){return models[_0xce14[50]][_0xce14[49]]()})[_0xce14[48]](function(){require(_0xce14[47])(cronjob,ami)})[_0xce14[46]](function(_0xe2aex2){console[_0xce14[11]](_0xe2aex2)});exports= module[_0xce14[73]]= app
\ No newline at end of file