Built motion from commit bbcb218.|0.0.68
[motion.git] / server / models / metric.js
1 var _0x2807=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x4D\x65\x74\x72\x69\x63","\x53\x54\x52\x49\x4E\x47","\x54\x45\x58\x54","\x6D\x65\x74\x72\x69\x63\x73","\x52\x65\x70\x6F\x72\x74\x46\x69\x65\x6C\x64\x73","\x68\x61\x73\x4D\x61\x6E\x79","\x61\x74\x74\x72","\x6E\x61\x6D\x65","\x74\x61\x62\x6C\x65","\x6D\x65\x74\x72\x69\x63","\x61\x64\x64\x53\x63\x6F\x70\x65","\x64\x65\x66\x69\x6E\x65"];_0x2807[0];module[_0x2807[1]]=function(_0x284fx1,_0x284fx2){var _0x284fx3=_0x284fx1[_0x2807[13]](_0x2807[2],{name:{type:_0x284fx2[_0x2807[3]],unique:true,validate:{notEmpty:true}},table:_0x284fx2[_0x2807[3]],metric:_0x284fx2[_0x2807[4]],description:_0x284fx2[_0x2807[3]]},{tableName:_0x2807[5],associate:function(_0x284fx4){_0x284fx3[_0x2807[7]](_0x284fx4.ReportField,{as:_0x2807[6]});_0x284fx3[_0x2807[12]](_0x2807[8],{attributes:[_0x2807[9],_0x2807[10],_0x2807[11]]})}});return _0x284fx3}