Built motion from commit 0ad9c269e.|1.0.31
[motion.git] / server / api / chat_message / chat_message.socket.js
index 6e4cecd..b960d68 100644 (file)
@@ -1 +1 @@
-var _0xd2bb=["\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"];_0xd2bb[0];const _=require(_0xd2bb[1]);const ChatMessage=require(_0xd2bb[3])[_0xd2bb[2]];const ChatMessageEvents=require(_0xd2bb[4]);var events=[_0xd2bb[5],_0xd2bb[6]];exports[_0xd2bb[7]]= function(_0xd8d8x5){for(var _0xd8d8x6=0,_0xd8d8x7=events[_0xd2bb[8]];_0xd8d8x6< _0xd8d8x7;_0xd8d8x6++){var _0xd8d8x8=events[_0xd8d8x6];var _0xd8d8x9=createListener(_0xd2bb[9]+ _0xd8d8x8,_0xd8d8x5);ChatMessageEvents[_0xd2bb[10]](_0xd8d8x8,_0xd8d8x9);_0xd8d8x5[_0xd2bb[10]](_0xd2bb[11],removeListener(_0xd8d8x8,_0xd8d8x9))}};function createListener(_0xd8d8x8,_0xd8d8x5){return function(_0xd8d8xb){return _0xd8d8xb[_0xd2bb[32]]()[_0xd2bb[31]](function(_0xd8d8x11){return [_0xd8d8x11[_0xd2bb[29]]({attributes:[_0xd2bb[17],_0xd2bb[23],_0xd2bb[24],_0xd2bb[25],_0xd2bb[26],_0xd2bb[27],_0xd2bb[28]],raw:true}),_0xd8d8x11[_0xd2bb[30]]({attributes:[_0xd2bb[17],_0xd2bb[24],_0xd2bb[25]],raw:true})]})[_0xd2bb[22]](function(_0xd8d8xd,_0xd8d8xe){var _0xd8d8xf=_[_0xd2bb[15]](_0xd8d8xd,{id:_0xd8d8xb[_0xd2bb[14]]});_0xd8d8xd[_0xd2bb[21]](function(_0xd8d8x10){if(_0xd8d8x5[_0xd2bb[16]]== _0xd8d8x10[_0xd2bb[17]]&& (_0xd8d8xf|| _0xd8d8xe)){_0xd8d8x5[_0xd2bb[20]](_0xd8d8x8,_[_0xd2bb[19]](_0xd8d8xb[_0xd2bb[18]],{User:_0xd8d8xf,ChatVisitor:_0xd8d8xf?null:_0xd8d8xe}))}})})[_0xd2bb[13]](function(_0xd8d8xc){console[_0xd2bb[12]](_0xd8d8xc)})}}function removeListener(_0xd8d8x8,_0xd8d8x9){return function(){ChatMessageEvents[_0xd2bb[33]](_0xd8d8x8,_0xd8d8x9)}}
\ No newline at end of file
+var _0x1fe2=["\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","\x55\x73\x65\x72","\x43\x68\x61\x74\x56\x69\x73\x69\x74\x6F\x72","\x43\x68\x61\x74\x52\x6F\x6F\x6D","\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\x73","\x55\x73\x65\x72\x49\x64","\x66\x69\x6E\x64","\x69\x64","\x6D\x61\x70","\x75\x73\x65\x72\x49\x64","\x74\x6F\x49\x6E\x74\x65\x67\x65\x72","\x69\x6E\x63\x6C\x75\x64\x65\x73","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x6D\x65\x72\x67\x65","\x65\x6D\x69\x74","\x69\x6E\x74\x65\x72\x6E\x61\x6C","\x65\x78\x74\x65\x72\x6E\x61\x6C","\x61\x64\x6D\x69\x6E","\x75\x73\x65\x72","\x72\x6F\x6C\x65","\x67\x72\x6F\x75\x70","\x43\x68\x61\x74\x20\x52\x6F\x6F\x6D\x20\x74\x79\x70\x65\x20\x6E\x6F\x74\x20\x72\x65\x63\x6F\x67\x6E\x69\x7A\x65\x64","\x74\x79\x70\x65","\x74\x68\x65\x6E","\x43\x68\x61\x74\x52\x6F\x6F\x6D\x49\x64","\x6E\x61\x6D\x65","\x66\x75\x6C\x6C\x6E\x61\x6D\x65","\x65\x6D\x61\x69\x6C","\x75\x73\x65\x72\x70\x69\x63","\x72\x65\x6D\x6F\x76\x65\x4C\x69\x73\x74\x65\x6E\x65\x72"];_0x1fe2[0];const _=require(_0x1fe2[1]);const ChatMessage=require(_0x1fe2[3])[_0x1fe2[2]];const User=require(_0x1fe2[3])[_0x1fe2[4]];const ChatVisitor=require(_0x1fe2[3])[_0x1fe2[5]];const ChatRoom=require(_0x1fe2[3])[_0x1fe2[6]];const ChatMessageEvents=require(_0x1fe2[7]);var events=[_0x1fe2[8],_0x1fe2[9]];exports[_0x1fe2[10]]= function(_0xca47x8){for(var _0xca47x9=0,_0xca47xa=events[_0x1fe2[11]];_0xca47x9< _0xca47xa;_0xca47x9++){var _0xca47xb=events[_0xca47x9];var _0xca47xc=createListener(_0x1fe2[12]+ _0xca47xb,_0xca47x8);ChatMessageEvents[_0x1fe2[13]](_0xca47xb,_0xca47xc);_0xca47x8[_0x1fe2[13]](_0x1fe2[14],removeListener(_0xca47xb,_0xca47xc))}};function createListener(_0xca47xb,_0xca47x8){return function(_0xca47xe){return ChatRoom[_0x1fe2[19]]({where:{id:_0xca47xe[_0x1fe2[37]]},include:[{model:User,attributes:[_0x1fe2[20],_0x1fe2[38],_0x1fe2[39],_0x1fe2[40],_0x1fe2[32],_0x1fe2[28],_0x1fe2[41]]},{model:ChatVisitor,attributes:[_0x1fe2[20],_0x1fe2[39],_0x1fe2[40]]}]})[_0x1fe2[36]](function(_0xca47x10){if(_0xca47x10){var _0xca47x11=_0xca47x10[_0x1fe2[17]];var _0xca47x12=_0xca47x10[_0x1fe2[5]];var _0xca47x13=_[_0x1fe2[19]](_0xca47x11,{id:_0xca47xe[_0x1fe2[18]]});var _0xca47x14=_[_0x1fe2[21]](_0xca47x11,_0x1fe2[20]);switch(_0xca47x10[_0x1fe2[35]]){case _0x1fe2[28]:if(_[_0x1fe2[24]](_0xca47x14,_[_0x1fe2[23]](_0xca47x8[_0x1fe2[22]]))&& (_0xca47x13|| _0xca47x12)){_0xca47x8[_0x1fe2[27]](_0xca47xb,_[_0x1fe2[26]](_0xca47xe[_0x1fe2[25]],{User:_0xca47x13,ChatVisitor:_0xca47x13?null:_0xca47x12,userids:_0xca47x14}))};break;case _0x1fe2[29]:;case _0x1fe2[33]:if((_[_0x1fe2[24]](_0xca47x14,_[_0x1fe2[23]](_0xca47x8[_0x1fe2[22]]))|| _[_0x1fe2[24]]([_0x1fe2[30],_0x1fe2[31]],_0xca47x8[_0x1fe2[32]]))&& (_0xca47x13|| _0xca47x12)){_0xca47x8[_0x1fe2[27]](_0xca47xb,_[_0x1fe2[26]](_0xca47xe[_0x1fe2[25]],{User:_0xca47x13,ChatVisitor:_0xca47x13?null:_0xca47x12,userids:_0xca47x14}))};break;default:console[_0x1fe2[15]](_0x1fe2[34],_0xca47x10[_0x1fe2[35]])}}})[_0x1fe2[16]](function(_0xca47xf){console[_0x1fe2[15]](_0xca47xf)})}}function removeListener(_0xca47xb,_0xca47xc){return function(){ChatMessageEvents[_0x1fe2[42]](_0xca47xb,_0xca47xc)}}
\ No newline at end of file