Built motion from commit 6e01242c4.|1.0.20
[motion.git] / server / api / metric / metric.socket.js
index 665b32d..d286627 100644 (file)
@@ -1 +1 @@
-var _0x7040=["\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"];_0x7040[0];const MetricEvents=require(_0x7040[1]);const ReportField=require(_0x7040[3])[_0x7040[2]];var events=[_0x7040[4],_0x7040[5]];exports[_0x7040[6]]= function(_0xeda5x4){for(var _0xeda5x5=0,_0xeda5x6=events[_0x7040[7]];_0xeda5x5< _0xeda5x6;_0xeda5x5++){var _0xeda5x7=events[_0xeda5x5];var _0xeda5x8=createListener(_0x7040[8]+ _0xeda5x7,_0xeda5x4);MetricEvents[_0x7040[9]](_0xeda5x7,_0xeda5x8);_0xeda5x4[_0x7040[9]](_0x7040[10],removeListener(_0xeda5x7,_0xeda5x8))}};function createListener(_0xeda5x7,_0xeda5x4){return function(_0xeda5xa){switch(_0xeda5x7){case _0x7040[12]:_0xeda5x4[_0x7040[11]](_0xeda5x7,_0xeda5xa);break;case _0x7040[13]:updateFields(_0xeda5xa);break;case _0x7040[14]:_0xeda5x4[_0x7040[11]](_0xeda5x7,_0xeda5xa);break;default:}}}function removeListener(_0xeda5x7,_0xeda5x8){return function(){MetricEvents[_0x7040[15]](_0xeda5x7,_0xeda5x8)}}function updateFields(_0xeda5xa){return ReportField[_0x7040[20]]({field:_0xeda5xa[_0x7040[18]]},{where:{MetricId:_0xeda5xa[_0x7040[19]]}})[_0x7040[17]](function(_0xeda5xd){console[_0x7040[16]](_0xeda5xd)})}
\ No newline at end of file
+var _0x4d7c=["\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"];_0x4d7c[0];const MetricEvents=require(_0x4d7c[1]);const ReportField=require(_0x4d7c[3])[_0x4d7c[2]];var events=[_0x4d7c[4],_0x4d7c[5]];exports[_0x4d7c[6]]= function(_0xf387x4){for(var _0xf387x5=0,_0xf387x6=events[_0x4d7c[7]];_0xf387x5< _0xf387x6;_0xf387x5++){var _0xf387x7=events[_0xf387x5];var _0xf387x8=createListener(_0x4d7c[8]+ _0xf387x7,_0xf387x4);MetricEvents[_0x4d7c[9]](_0xf387x7,_0xf387x8);_0xf387x4[_0x4d7c[9]](_0x4d7c[10],removeListener(_0xf387x7,_0xf387x8))}};function createListener(_0xf387x7,_0xf387x4){return function(_0xf387xa){switch(_0xf387x7){case _0x4d7c[12]:_0xf387x4[_0x4d7c[11]](_0xf387x7,_0xf387xa);break;case _0x4d7c[13]:updateFields(_0xf387xa);break;case _0x4d7c[14]:_0xf387x4[_0x4d7c[11]](_0xf387x7,_0xf387xa);break;default:}}}function removeListener(_0xf387x7,_0xf387x8){return function(){MetricEvents[_0x4d7c[15]](_0xf387x7,_0xf387x8)}}function updateFields(_0xf387xa){return ReportField[_0x4d7c[20]]({field:_0xf387xa[_0x4d7c[18]]},{where:{MetricId:_0xf387xa[_0x4d7c[19]]}})[_0x4d7c[17]](function(_0xf387xd){console[_0x4d7c[16]](_0xf387xd)})}
\ No newline at end of file