Built motion from commit c8dd8619.|2.0.42
[motion2.git] / server / services / ami / model / agent.js
1 var _0x9c98=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x6D\x6F\x6D\x65\x6E\x74","\x6C\x6F\x63\x61\x6C\x68\x6F\x73\x74","\x73\x6F\x63\x6B\x65\x74\x2E\x69\x6F\x2D\x65\x6D\x69\x74\x74\x65\x72","\x69\x64","\x6E\x61\x6D\x65","","\x65\x6D\x61\x69\x6C","\x61\x63\x63\x6F\x75\x6E\x74\x63\x6F\x64\x65","\x66\x75\x6C\x6C\x6E\x61\x6D\x65","\x73\x74\x61\x74\x65","\x75\x6E\x6B\x6E\x6F\x77\x6E","\x73\x74\x61\x74\x65\x54\x69\x6D\x65","\x73\x74\x61\x74\x75\x73","\x61\x64\x64\x72\x65\x73\x73","\x6F\x6E\x6C\x69\x6E\x65","\x76\x6F\x69\x63\x65\x53\x74\x61\x74\x75\x73","\x76\x6F\x69\x63\x65\x53\x74\x61\x74\x75\x73\x54\x69\x6D\x65","\x76\x6F\x69\x63\x65\x53\x74\x61\x74\x75\x73\x43\x61\x6C\x6C\x65\x72\x49\x64\x4E\x75\x6D\x62\x65\x72","\x76\x6F\x69\x63\x65\x53\x74\x61\x74\x75\x73\x51\x75\x65\x75\x65","\x75\x70\x64\x61\x74\x65\x53\x74\x61\x74\x75\x73\x52\x65\x61\x6C\x74\x69\x6D\x65","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x74\x6F\x4C\x6F\x77\x65\x72\x43\x61\x73\x65","\x69\x64\x6C\x65","\x6E\x6F\x74\x5F\x69\x6E\x75\x73\x65","\x74\x61\x6C\x6B\x69\x6E\x67","\x69\x6E\x75\x73\x65","\x78","\x66\x6F\x72\x6D\x61\x74","\x74\x6F\x4E\x75\x6D\x62\x65\x72","\x75\x73\x65\x72\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x75\x73\x65\x72\x3A\x25\x73","\x74\x6F","\x65\x78\x70\x6F\x72\x74\x73"];_0x9c98[0];var _=require(_0x9c98[1]);var util=require(_0x9c98[2]);var moment=require(_0x9c98[3]);var io=require(_0x9c98[5])({host:_0x9c98[4],port:6379});function Agent(_0x16f7x6){this[_0x9c98[6]]= _0x16f7x6[_0x9c98[6]]|| 0;this[_0x9c98[7]]= _0x16f7x6[_0x9c98[7]]|| _0x9c98[8];this[_0x9c98[9]]= _0x16f7x6[_0x9c98[9]]|| _0x9c98[8];this[_0x9c98[10]]= _0x16f7x6[_0x9c98[10]]|| _0x9c98[8];this[_0x9c98[11]]= _0x16f7x6[_0x9c98[11]]|| _0x9c98[8];this[_0x9c98[12]]= _0x9c98[13];this[_0x9c98[14]]= 0;this[_0x9c98[15]]= _0x9c98[13];this[_0x9c98[16]]= _0x9c98[8];this[_0x9c98[17]]= _0x16f7x6[_0x9c98[17]]|| false;this[_0x9c98[18]]= _0x9c98[13];this[_0x9c98[19]]= 0;this[_0x9c98[20]]= _0x9c98[8];this[_0x9c98[21]]= _0x9c98[8]}Agent[_0x9c98[23]][_0x9c98[22]]= function(_0x16f7x7){var _0x16f7x8=_0x16f7x7[_0x9c98[12]][_0x9c98[24]]();switch(_0x16f7x8){case _0x9c98[26]:_0x16f7x8= _0x9c98[25];break;case _0x9c98[28]:_0x16f7x8= _0x9c98[27];break;default:_0x16f7x8= _0x16f7x8};if(this[_0x9c98[18]]!== _0x16f7x8){this[_0x9c98[19]]= _[_0x9c98[31]](moment()[_0x9c98[30]](_0x9c98[29]))};this[_0x9c98[18]]= _0x16f7x8;io[_0x9c98[35]](util[_0x9c98[30]](_0x9c98[34],this[_0x9c98[7]]))[_0x9c98[33]](_0x9c98[32],this)};module[_0x9c98[36]]= Agent