Built motion from commit dec9cf4.|0.0.134
[motion.git] / server / api / metric / metric.socket.js
index 0308de9..f43e03b 100644 (file)
@@ -1 +1 @@
-var _0xe36c=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x4D\x65\x74\x72\x69\x63","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x52\x65\x70\x6F\x72\x74\x46\x69\x65\x6C\x64","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x6D\x65\x74\x72\x69\x63\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x6D\x65\x74\x72\x69\x63\x3A\x72\x65\x6D\x6F\x76\x65","\x6C\x6F\x67","\x63\x61\x74\x63\x68","\x6D\x65\x74\x72\x69\x63","\x69\x64","\x75\x70\x64\x61\x74\x65"];_0xe36c[0];var Metric=require(_0xe36c[2])[_0xe36c[1]];var ReportField=require(_0xe36c[2])[_0xe36c[3]];exports[_0xe36c[4]]=function(_0x8d87x3){Metric[_0xe36c[5]](function(_0x8d87x4){onSave(_0x8d87x3,_0x8d87x4)});Metric[_0xe36c[6]](function(_0x8d87x4){updateFields(_0x8d87x4)});Metric[_0xe36c[7]](function(_0x8d87x4){onRemove(_0x8d87x3,_0x8d87x4)})};function onSave(_0x8d87x3,_0x8d87x4,_0x8d87x6){_0x8d87x3[_0xe36c[9]](_0xe36c[8],_0x8d87x4)}function onRemove(_0x8d87x3,_0x8d87x4,_0x8d87x6){_0x8d87x3[_0xe36c[9]](_0xe36c[10],_0x8d87x4)}function updateFields(_0x8d87x4){return ReportField[_0xe36c[15]]({field:_0x8d87x4[_0xe36c[13]]},{where:{MetricId:_0x8d87x4[_0xe36c[14]]}})[_0xe36c[12]](function(_0x8d87x9){console[_0xe36c[11]](_0x8d87x9)})}
\ No newline at end of file
+var _0x4ded=["\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"];_0x4ded[0];const MetricEvents=require(_0x4ded[1]);const ReportField=require(_0x4ded[3])[_0x4ded[2]];var events=[_0x4ded[4],_0x4ded[5]];exports[_0x4ded[6]]= function(_0xb836x4){for(var _0xb836x5=0,_0xb836x6=events[_0x4ded[7]];_0xb836x5< _0xb836x6;_0xb836x5++){var _0xb836x7=events[_0xb836x5];var _0xb836x8=createListener(_0x4ded[8]+ _0xb836x7,_0xb836x4);MetricEvents[_0x4ded[9]](_0xb836x7,_0xb836x8);_0xb836x4[_0x4ded[9]](_0x4ded[10],removeListener(_0xb836x7,_0xb836x8))}};function createListener(_0xb836x7,_0xb836x4){return function(_0xb836xa){switch(_0xb836x7){case _0x4ded[12]:_0xb836x4[_0x4ded[11]](_0xb836x7,_0xb836xa);break;case _0x4ded[13]:updateFields(_0xb836xa);break;case _0x4ded[14]:_0xb836x4[_0x4ded[11]](_0xb836x7,_0xb836xa);break;default:}}}function removeListener(_0xb836x7,_0xb836x8){return function(){MetricEvents[_0x4ded[15]](_0xb836x7,_0xb836x8)}}function updateFields(_0xb836xa){return ReportField[_0x4ded[20]]({field:_0xb836xa[_0x4ded[18]]},{where:{MetricId:_0xb836xa[_0x4ded[19]]}})[_0x4ded[17]](function(_0xb836xd){console[_0x4ded[16]](_0xb836xd)})}
\ No newline at end of file