Built motion from commit 27af9f03b.|1.0.28
[motion.git] / server / api / metric / metric.socket.js
index 39fd379..d4f6a58 100644 (file)
@@ -1 +1 @@
-var _0xfce5=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x2E\x2F\x6D\x65\x74\x72\x69\x63\x2E\x65\x76\x65\x6E\x74\x73","\x52\x65\x70\x6F\x72\x74\x46\x69\x65\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x73\x61\x76\x65","\x72\x65\x6D\x6F\x76\x65","\x72\x65\x67\x69\x73\x74\x65\x72","\x6C\x65\x6E\x67\x74\x68","\x6D\x65\x74\x72\x69\x63\x3A","\x6F\x6E","\x64\x69\x73\x63\x6F\x6E\x6E\x65\x63\x74","\x65\x6D\x69\x74","\x6D\x65\x74\x72\x69\x63\x3A\x73\x61\x76\x65","\x6D\x65\x74\x72\x69\x63\x3A\x75\x70\x64\x61\x74\x65","\x6D\x65\x74\x72\x69\x63\x3A\x72\x65\x6D\x6F\x76\x65","\x72\x65\x6D\x6F\x76\x65\x4C\x69\x73\x74\x65\x6E\x65\x72","\x6C\x6F\x67","\x63\x61\x74\x63\x68","\x6D\x65\x74\x72\x69\x63","\x69\x64","\x75\x70\x64\x61\x74\x65"];_0xfce5[0];const MetricEvents=require(_0xfce5[1]);const ReportField=require(_0xfce5[3])[_0xfce5[2]];var events=[_0xfce5[4],_0xfce5[5]];exports[_0xfce5[6]]= function(_0xae72x4){for(var _0xae72x5=0,_0xae72x6=events[_0xfce5[7]];_0xae72x5< _0xae72x6;_0xae72x5++){var _0xae72x7=events[_0xae72x5];var _0xae72x8=createListener(_0xfce5[8]+ _0xae72x7,_0xae72x4);MetricEvents[_0xfce5[9]](_0xae72x7,_0xae72x8);_0xae72x4[_0xfce5[9]](_0xfce5[10],removeListener(_0xae72x7,_0xae72x8))}};function createListener(_0xae72x7,_0xae72x4){return function(_0xae72xa){switch(_0xae72x7){case _0xfce5[12]:_0xae72x4[_0xfce5[11]](_0xae72x7,_0xae72xa);break;case _0xfce5[13]:updateFields(_0xae72xa);break;case _0xfce5[14]:_0xae72x4[_0xfce5[11]](_0xae72x7,_0xae72xa);break;default:}}}function removeListener(_0xae72x7,_0xae72x8){return function(){MetricEvents[_0xfce5[15]](_0xae72x7,_0xae72x8)}}function updateFields(_0xae72xa){return ReportField[_0xfce5[20]]({field:_0xae72xa[_0xfce5[18]]},{where:{MetricId:_0xae72xa[_0xfce5[19]]}})[_0xfce5[17]](function(_0xae72xd){console[_0xfce5[16]](_0xae72xd)})}
\ No newline at end of file
+var _0x55b1=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x2E\x2F\x6D\x65\x74\x72\x69\x63\x2E\x65\x76\x65\x6E\x74\x73","\x52\x65\x70\x6F\x72\x74\x46\x69\x65\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x73\x61\x76\x65","\x72\x65\x6D\x6F\x76\x65","\x72\x65\x67\x69\x73\x74\x65\x72","\x6C\x65\x6E\x67\x74\x68","\x6D\x65\x74\x72\x69\x63\x3A","\x6F\x6E","\x64\x69\x73\x63\x6F\x6E\x6E\x65\x63\x74","\x65\x6D\x69\x74","\x6D\x65\x74\x72\x69\x63\x3A\x73\x61\x76\x65","\x6D\x65\x74\x72\x69\x63\x3A\x75\x70\x64\x61\x74\x65","\x6D\x65\x74\x72\x69\x63\x3A\x72\x65\x6D\x6F\x76\x65","\x72\x65\x6D\x6F\x76\x65\x4C\x69\x73\x74\x65\x6E\x65\x72","\x6C\x6F\x67","\x63\x61\x74\x63\x68","\x6D\x65\x74\x72\x69\x63","\x69\x64","\x75\x70\x64\x61\x74\x65"];_0x55b1[0];const MetricEvents=require(_0x55b1[1]);const ReportField=require(_0x55b1[3])[_0x55b1[2]];var events=[_0x55b1[4],_0x55b1[5]];exports[_0x55b1[6]]= function(_0xfddfx4){for(var _0xfddfx5=0,_0xfddfx6=events[_0x55b1[7]];_0xfddfx5< _0xfddfx6;_0xfddfx5++){var _0xfddfx7=events[_0xfddfx5];var _0xfddfx8=createListener(_0x55b1[8]+ _0xfddfx7,_0xfddfx4);MetricEvents[_0x55b1[9]](_0xfddfx7,_0xfddfx8);_0xfddfx4[_0x55b1[9]](_0x55b1[10],removeListener(_0xfddfx7,_0xfddfx8))}};function createListener(_0xfddfx7,_0xfddfx4){return function(_0xfddfxa){switch(_0xfddfx7){case _0x55b1[12]:_0xfddfx4[_0x55b1[11]](_0xfddfx7,_0xfddfxa);break;case _0x55b1[13]:updateFields(_0xfddfxa);break;case _0x55b1[14]:_0xfddfx4[_0x55b1[11]](_0xfddfx7,_0xfddfxa);break;default:}}}function removeListener(_0xfddfx7,_0xfddfx8){return function(){MetricEvents[_0x55b1[15]](_0xfddfx7,_0xfddfx8)}}function updateFields(_0xfddfxa){return ReportField[_0x55b1[20]]({field:_0xfddfxa[_0x55b1[18]]},{where:{MetricId:_0xfddfxa[_0x55b1[19]]}})[_0x55b1[17]](function(_0xfddfxd){console[_0x55b1[16]](_0xfddfxd)})}
\ No newline at end of file