Built motion from commit a5685af.|0.0.128
[motion.git] / server / api / chat_message / chat_message.socket.js
1 var _0x3d3d=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x43\x68\x61\x74\x4D\x65\x73\x73\x61\x67\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x2E\x2F\x63\x68\x61\x74\x5F\x6D\x65\x73\x73\x61\x67\x65\x2E\x65\x76\x65\x6E\x74\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","\x63\x68\x61\x74\x5F\x6D\x65\x73\x73\x61\x67\x65\x3A","\x6F\x6E","\x64\x69\x73\x63\x6F\x6E\x6E\x65\x63\x74","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x55\x73\x65\x72\x49\x64","\x66\x69\x6E\x64","\x75\x73\x65\x72\x49\x64","\x69\x64","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x6D\x65\x72\x67\x65","\x65\x6D\x69\x74","\x66\x6F\x72\x45\x61\x63\x68","\x73\x70\x72\x65\x61\x64","\x6E\x61\x6D\x65","\x66\x75\x6C\x6C\x6E\x61\x6D\x65","\x65\x6D\x61\x69\x6C","\x72\x6F\x6C\x65","\x69\x6E\x74\x65\x72\x6E\x61\x6C","\x75\x73\x65\x72\x70\x69\x63","\x67\x65\x74\x55\x73\x65\x72\x73","\x67\x65\x74\x43\x68\x61\x74\x56\x69\x73\x69\x74\x6F\x72","\x74\x68\x65\x6E","\x67\x65\x74\x43\x68\x61\x74\x52\x6F\x6F\x6D","\x72\x65\x6D\x6F\x76\x65\x4C\x69\x73\x74\x65\x6E\x65\x72"];_0x3d3d[0];const _=require(_0x3d3d[1]);const ChatMessage=require(_0x3d3d[3])[_0x3d3d[2]];const ChatMessageEvents=require(_0x3d3d[4]);var events=[_0x3d3d[5],_0x3d3d[6]];exports[_0x3d3d[7]]= function(_0x1e74x5){for(var _0x1e74x6=0,_0x1e74x7=events[_0x3d3d[8]];_0x1e74x6< _0x1e74x7;_0x1e74x6++){var _0x1e74x8=events[_0x1e74x6];var _0x1e74x9=createListener(_0x3d3d[9]+ _0x1e74x8,_0x1e74x5);ChatMessageEvents[_0x3d3d[10]](_0x1e74x8,_0x1e74x9);_0x1e74x5[_0x3d3d[10]](_0x3d3d[11],removeListener(_0x1e74x8,_0x1e74x9))}};function createListener(_0x1e74x8,_0x1e74x5){return function(_0x1e74xb){return _0x1e74xb[_0x3d3d[32]]()[_0x3d3d[31]](function(_0x1e74x11){return [_0x1e74x11[_0x3d3d[29]]({attributes:[_0x3d3d[17],_0x3d3d[23],_0x3d3d[24],_0x3d3d[25],_0x3d3d[26],_0x3d3d[27],_0x3d3d[28]],raw:true}),_0x1e74x11[_0x3d3d[30]]({attributes:[_0x3d3d[17],_0x3d3d[24],_0x3d3d[25]],raw:true})]})[_0x3d3d[22]](function(_0x1e74xd,_0x1e74xe){var _0x1e74xf=_[_0x3d3d[15]](_0x1e74xd,{id:_0x1e74xb[_0x3d3d[14]]});_0x1e74xd[_0x3d3d[21]](function(_0x1e74x10){if(_0x1e74x5[_0x3d3d[16]]== _0x1e74x10[_0x3d3d[17]]&& (_0x1e74xf|| _0x1e74xe)){_0x1e74x5[_0x3d3d[20]](_0x1e74x8,_[_0x3d3d[19]](_0x1e74xb[_0x3d3d[18]],{User:_0x1e74xf,ChatVisitor:_0x1e74xf?null:_0x1e74xe}))}})})[_0x3d3d[13]](function(_0x1e74xc){console[_0x3d3d[12]](_0x1e74xc)})}}function removeListener(_0x1e74x8,_0x1e74x9){return function(){ChatMessageEvents[_0x3d3d[33]](_0x1e74x8,_0x1e74x9)}}