Built motion from commit 6fa6f14.|1.0.18
[motion.git] / server / api / chat_message / chat_message.socket.js
index 9ab9508..9436b7d 100644 (file)
@@ -1 +1 @@
-var _0xff3c=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x43\x68\x61\x74\x4D\x65\x73\x73\x61\x67\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x6C\x6F\x64\x61\x73\x68","\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","\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","\x63\x68\x61\x74\x5F\x6D\x65\x73\x73\x61\x67\x65\x3A\x73\x61\x76\x65","\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","\x43\x68\x61\x74\x4D\x65\x73\x73\x61\x67\x65\x3A\x72\x65\x6D\x6F\x76\x65"];_0xff3c[0];var ChatMessage=require(_0xff3c[2])[_0xff3c[1]];var _=require(_0xff3c[3]);exports[_0xff3c[4]]=function(_0xe5e2x3){ChatMessage[_0xff3c[5]](function(_0xe5e2x4){onSave(_0xe5e2x3,_0xe5e2x4)});ChatMessage[_0xff3c[6]](function(_0xe5e2x4){onSave(_0xe5e2x3,_0xe5e2x4)});ChatMessage[_0xff3c[7]](function(_0xe5e2x4){onRemove(_0xe5e2x3,_0xe5e2x4)})};function onSave(_0xe5e2x3,_0xe5e2x4,_0xe5e2x6){return _0xe5e2x4[_0xff3c[29]]()[_0xff3c[28]](function(_0xe5e2xc){return [_0xe5e2xc[_0xff3c[26]]({attributes:[_0xff3c[13],_0xff3c[20],_0xff3c[21],_0xff3c[22],_0xff3c[23],_0xff3c[24],_0xff3c[25]],raw:true}),_0xe5e2xc[_0xff3c[27]]({attributes:[_0xff3c[13],_0xff3c[21],_0xff3c[22]],raw:true})]})[_0xff3c[19]](function(_0xe5e2x8,_0xe5e2x9){var _0xe5e2xa=_[_0xff3c[11]](_0xe5e2x8,{id:_0xe5e2x4[_0xff3c[10]]});_0xe5e2x8[_0xff3c[18]](function(_0xe5e2xb){if(_0xe5e2x3[_0xff3c[12]]==_0xe5e2xb[_0xff3c[13]]&&(_0xe5e2xa||_0xe5e2x9)){_0xe5e2x3[_0xff3c[17]](_0xff3c[14],_[_0xff3c[16]](_0xe5e2x4[_0xff3c[15]],{User:_0xe5e2xa,ChatVisitor:_0xe5e2xa?null:_0xe5e2x9}))}})})[_0xff3c[9]](function(_0xe5e2x7){console[_0xff3c[8]](_0xe5e2x7)})}function onRemove(_0xe5e2x3,_0xe5e2x4,_0xe5e2x6){_0xe5e2x3[_0xff3c[17]](_0xff3c[30],_0xe5e2x4)}
\ No newline at end of file
+var _0x32c6=["\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"];_0x32c6[0];const _=require(_0x32c6[1]);const ChatMessage=require(_0x32c6[3])[_0x32c6[2]];const ChatMessageEvents=require(_0x32c6[4]);var events=[_0x32c6[5],_0x32c6[6]];exports[_0x32c6[7]]= function(_0x4583x5){for(var _0x4583x6=0,_0x4583x7=events[_0x32c6[8]];_0x4583x6< _0x4583x7;_0x4583x6++){var _0x4583x8=events[_0x4583x6];var _0x4583x9=createListener(_0x32c6[9]+ _0x4583x8,_0x4583x5);ChatMessageEvents[_0x32c6[10]](_0x4583x8,_0x4583x9);_0x4583x5[_0x32c6[10]](_0x32c6[11],removeListener(_0x4583x8,_0x4583x9))}};function createListener(_0x4583x8,_0x4583x5){return function(_0x4583xb){return _0x4583xb[_0x32c6[32]]()[_0x32c6[31]](function(_0x4583x11){return [_0x4583x11[_0x32c6[29]]({attributes:[_0x32c6[17],_0x32c6[23],_0x32c6[24],_0x32c6[25],_0x32c6[26],_0x32c6[27],_0x32c6[28]],raw:true}),_0x4583x11[_0x32c6[30]]({attributes:[_0x32c6[17],_0x32c6[24],_0x32c6[25]],raw:true})]})[_0x32c6[22]](function(_0x4583xd,_0x4583xe){var _0x4583xf=_[_0x32c6[15]](_0x4583xd,{id:_0x4583xb[_0x32c6[14]]});_0x4583xd[_0x32c6[21]](function(_0x4583x10){if(_0x4583x5[_0x32c6[16]]== _0x4583x10[_0x32c6[17]]&& (_0x4583xf|| _0x4583xe)){_0x4583x5[_0x32c6[20]](_0x4583x8,_[_0x32c6[19]](_0x4583xb[_0x32c6[18]],{User:_0x4583xf,ChatVisitor:_0x4583xf?null:_0x4583xe}))}})})[_0x32c6[13]](function(_0x4583xc){console[_0x32c6[12]](_0x4583xc)})}}function removeListener(_0x4583x8,_0x4583x9){return function(){ChatMessageEvents[_0x32c6[33]](_0x4583x8,_0x4583x9)}}
\ No newline at end of file