Built motion from commit 27af9f03b.|1.0.28
[motion.git] / server / api / metric / metric.socket.js
index 89ac040..d4f6a58 100644 (file)
@@ -1 +1 @@
-var _0x5d15=["\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"];_0x5d15[0];const MetricEvents=require(_0x5d15[1]);const ReportField=require(_0x5d15[3])[_0x5d15[2]];var events=[_0x5d15[4],_0x5d15[5]];exports[_0x5d15[6]]= function(_0x3d9fx4){for(var _0x3d9fx5=0,_0x3d9fx6=events[_0x5d15[7]];_0x3d9fx5< _0x3d9fx6;_0x3d9fx5++){var _0x3d9fx7=events[_0x3d9fx5];var _0x3d9fx8=createListener(_0x5d15[8]+ _0x3d9fx7,_0x3d9fx4);MetricEvents[_0x5d15[9]](_0x3d9fx7,_0x3d9fx8);_0x3d9fx4[_0x5d15[9]](_0x5d15[10],removeListener(_0x3d9fx7,_0x3d9fx8))}};function createListener(_0x3d9fx7,_0x3d9fx4){return function(_0x3d9fxa){switch(_0x3d9fx7){case _0x5d15[12]:_0x3d9fx4[_0x5d15[11]](_0x3d9fx7,_0x3d9fxa);break;case _0x5d15[13]:updateFields(_0x3d9fxa);break;case _0x5d15[14]:_0x3d9fx4[_0x5d15[11]](_0x3d9fx7,_0x3d9fxa);break;default:}}}function removeListener(_0x3d9fx7,_0x3d9fx8){return function(){MetricEvents[_0x5d15[15]](_0x3d9fx7,_0x3d9fx8)}}function updateFields(_0x3d9fxa){return ReportField[_0x5d15[20]]({field:_0x3d9fxa[_0x5d15[18]]},{where:{MetricId:_0x3d9fxa[_0x5d15[19]]}})[_0x5d15[17]](function(_0x3d9fxd){console[_0x5d15[16]](_0x3d9fxd)})}
\ 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