cd06961e1d7a3868c084c6a179a7297befd7ab15
[motion.git] / server / app.js
1 var _0x5fae=["\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","\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\x4D\x65\x73\x73\x61\x67\x65\x3A\x20","\x6C\x6F\x67","\x73\x74\x61\x63\x6B","\x0A\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","\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","\x6F\x73","\x68\x74\x74\x70","\x75\x74\x69\x6C","\x63\x72\x79\x70\x74\x6F","\x43\x72\x6F\x6E\x4A\x6F\x62","\x63\x72\x6F\x6E","\x73\x68\x65\x6C\x6C\x6A\x73\x2F\x67\x6C\x6F\x62\x61\x6C","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x63\x72\x65\x61\x74\x65\x53\x65\x72\x76\x65\x72","\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","\x73\x6F\x63\x6B\x65\x74\x2E\x69\x6F","\x70\x6F\x72\x74","\x61\x73\x74\x65\x72\x69\x73\x6B","\x68\x6F\x73\x74","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x70\x61\x73\x73\x77\x6F\x72\x64","\x61\x73\x74\x65\x72\x69\x73\x6B\x2D\x6D\x61\x6E\x61\x67\x65\x72","\x6B\x65\x65\x70\x43\x6F\x6E\x6E\x65\x63\x74\x65\x64","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x72\x6F\x75\x74\x65\x73","\x65\x72\x72\x6F\x72","\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\x68\x69\x73\x74\x6F\x72\x79","\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\x73\x6F\x63\x6B\x65\x74\x69\x6F","\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\x74\x72\x69\x67\x67\x65\x72\x73","\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\x6D\x69","\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","\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","\x6C\x69\x73\x74\x65\x6E","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x5fae[0];process[_0x5fae[2]][_0x5fae[1]]= process[_0x5fae[2]][_0x5fae[1]]|| _0x5fae[3];process[_0x5fae[2]][_0x5fae[4]]= 0;process[_0x5fae[14]](_0x5fae[5],function(_0xd6c5x1){if( typeof _0xd6c5x1=== _0x5fae[6]){if(_0xd6c5x1[_0x5fae[7]]){console[_0x5fae[9]](_0x5fae[8]+ _0xd6c5x1[_0x5fae[7]])};if(_0xd6c5x1[_0x5fae[10]]){console[_0x5fae[9]](_0x5fae[11]);console[_0x5fae[9]](_0x5fae[12]);console[_0x5fae[9]](_0xd6c5x1[_0x5fae[10]])}}else {console[_0x5fae[9]](_0x5fae[13])}});var os=require(_0x5fae[15]);var http=require(_0x5fae[16]);var util=require(_0x5fae[17]);var crypto=require(_0x5fae[18]);var cronjob=require(_0x5fae[20])[_0x5fae[19]];var shelljs=require(_0x5fae[21]);var express=require(_0x5fae[22]);var models=require(_0x5fae[23]);var config=require(_0x5fae[24]);var app=express();var server=require(_0x5fae[16])[_0x5fae[25]](app);var io=require(_0x5fae[28])(server,{serveClient:(config[_0x5fae[2]]=== _0x5fae[26])?false:true,path:_0x5fae[27]});var ami=require(_0x5fae[34])(config[_0x5fae[30]][_0x5fae[29]],config[_0x5fae[30]][_0x5fae[31]],config[_0x5fae[30]][_0x5fae[32]],config[_0x5fae[30]][_0x5fae[33]],true);ami[_0x5fae[35]]();require(_0x5fae[36])(app);require(_0x5fae[37])(app,ami);models[_0x5fae[67]][_0x5fae[42]]()[_0x5fae[41]](function(){if(config[_0x5fae[44]]){require(_0x5fae[45])};if(config[_0x5fae[46]]){require(_0x5fae[47])};require(_0x5fae[48])(io);require(_0x5fae[49])();require(_0x5fae[50])();require(_0x5fae[51])();require(_0x5fae[52])(ami);require(_0x5fae[53])();require(_0x5fae[54])();require(_0x5fae[55])();require(_0x5fae[56])();require(_0x5fae[57])();require(_0x5fae[58])();require(_0x5fae[59])();require(_0x5fae[60])(ami);require(_0x5fae[61])();require(_0x5fae[62])();server[_0x5fae[66]](config[_0x5fae[29]],config[_0x5fae[63]],function(){console[_0x5fae[9]](_0x5fae[64],config[_0x5fae[29]],app[_0x5fae[65]](_0x5fae[2]))})})[_0x5fae[41]](function(){return models[_0x5fae[43]][_0x5fae[42]]()})[_0x5fae[41]](function(){require(_0x5fae[40])(cronjob)})[_0x5fae[39]](function(_0xd6c5x1){console[_0x5fae[38]](_0xd6c5x1)});exports= module[_0x5fae[68]]= app