Built motion from commit 5ae821c.|0.0.127
[motion.git] / server / api / user_has_chat_room / user_has_chat_room.socket.js
index e72887c..a4cf57b 100644 (file)
@@ -1 +1 @@
-var _0xa412=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x55\x73\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x43\x68\x61\x74\x52\x6F\x6F\x6D","\x43\x68\x61\x74\x56\x69\x73\x69\x74\x6F\x72","\x55\x73\x65\x72\x48\x61\x73\x43\x68\x61\x74\x52\x6F\x6F\x6D","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\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","\x43\x68\x61\x74\x4D\x65\x73\x73\x61\x67\x65\x73","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x5F\x63\x68\x61\x74\x52\x6F\x6F\x6D","\x6C\x6F\x67","\x69\x64","\x70\x6C\x75\x63\x6B","\x75\x73\x65\x72\x49\x64","\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x63\x68\x61\x74\x5F\x72\x6F\x6F\x6D\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x66\x6F\x72\x45\x61\x63\x68","\x74\x68\x65\x6E","\x65\x6D\x61\x69\x6C","\x66\x75\x6C\x6C\x6E\x61\x6D\x65","\x6E\x61\x6D\x65","\x66\x69\x6E\x64\x42\x79\x49\x64","\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x63\x68\x61\x74\x5F\x72\x6F\x6F\x6D\x3A\x72\x65\x6D\x6F\x76\x65"];_0xa412[0];var _=require(_0xa412[1]);var User=require(_0xa412[3])[_0xa412[2]];var ChatRoom=require(_0xa412[3])[_0xa412[4]];var ChatVisitor=require(_0xa412[3])[_0xa412[5]];var UserHasChatRoom=require(_0xa412[3])[_0xa412[6]];exports[_0xa412[7]]=function(_0x9bccx6){UserHasChatRoom[_0xa412[8]](function(_0x9bccx7){onSave(_0x9bccx6,_0x9bccx7)});UserHasChatRoom[_0xa412[9]](function(_0x9bccx7){onRemove(_0x9bccx6,_0x9bccx7)});};function onSave(_0x9bccx6,_0x9bccx7){var _0x9bccx9;return ChatRoom[_0xa412[26]](_0x9bccx7.ChatRoomId,{include:[{model:ChatVisitor,attributes:[_0xa412[16],_0xa412[23],_0xa412[24]]},{model:User,attributes:[_0xa412[16],_0xa412[23],_0xa412[25],_0xa412[24]]}]})[_0xa412[22]](function(_0x9bccxb){_0x9bccx9=_0x9bccxb;_0x9bccx9[_0xa412[13]][_0xa412[12]]=[];console[_0xa412[15]](_0xa412[14],_0x9bccx9);var _0x9bccxc=_[_0xa412[17]](_0x9bccx9.Users,_0xa412[16]);_0x9bccxc[_0xa412[21]](function(_0x9bccxd){if(_0x9bccx6[_0xa412[18]]==_0x9bccxd){_0x9bccx6[_0xa412[20]](_0xa412[19],_0x9bccx9[_0xa412[13]])}});return ;})[_0xa412[11]](function(_0x9bccxa){console[_0xa412[10]](_0x9bccxa)});}function onRemove(_0x9bccx6,_0x9bccx7){_0x9bccx6[_0xa412[20]](_0xa412[27],_0x9bccx7)}
\ No newline at end of file
+var _0x5870=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x2E\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x63\x68\x61\x74\x5F\x72\x6F\x6F\x6D\x2E\x65\x76\x65\x6E\x74\x73","\x43\x68\x61\x74\x52\x6F\x6F\x6D","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x55\x73\x65\x72","\x73\x61\x76\x65","\x72\x65\x6D\x6F\x76\x65","\x72\x65\x67\x69\x73\x74\x65\x72","\x6C\x65\x6E\x67\x74\x68","\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x63\x68\x61\x74\x5F\x72\x6F\x6F\x6D\x3A","\x6F\x6E","\x64\x69\x73\x63\x6F\x6E\x6E\x65\x63\x74","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x75\x73\x65\x72\x49\x64","\x69\x64","\x65\x6D\x69\x74","\x66\x6F\x72\x45\x61\x63\x68","\x55\x73\x65\x72\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x42\x79\x49\x64","\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x63\x68\x61\x74\x5F\x72\x6F\x6F\x6D\x3A\x73\x61\x76\x65","\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x63\x68\x61\x74\x5F\x72\x6F\x6F\x6D\x3A\x72\x65\x6D\x6F\x76\x65","\x72\x65\x6D\x6F\x76\x65\x4C\x69\x73\x74\x65\x6E\x65\x72"];_0x5870[0];const UserHasChatRoomEvents=require(_0x5870[1]);const ChatRoom=require(_0x5870[3])[_0x5870[2]];const User=require(_0x5870[3])[_0x5870[4]];var events=[_0x5870[5],_0x5870[6]];exports[_0x5870[7]]= function(_0x7e6bx5){for(var _0x7e6bx6=0,_0x7e6bx7=events[_0x5870[8]];_0x7e6bx6< _0x7e6bx7;_0x7e6bx6++){var _0x7e6bx8=events[_0x7e6bx6];var _0x7e6bx9=createListener(_0x5870[9]+ _0x7e6bx8,_0x7e6bx5);UserHasChatRoomEvents[_0x5870[10]](_0x7e6bx8,_0x7e6bx9);_0x7e6bx5[_0x5870[10]](_0x5870[11],removeListener(_0x7e6bx8,_0x7e6bx9))}};function createListener(_0x7e6bx8,_0x7e6bx5){return function(_0x7e6bxb){switch(_0x7e6bx8){case _0x5870[21]:return ChatRoom[_0x5870[20]](_0x7e6bxb.ChatRoomId,{include:[{model:User,attributes:[_0x5870[15]]}]})[_0x5870[19]](function(_0x7e6bxd){_0x7e6bxd[_0x5870[18]][_0x5870[17]](function(_0x7e6bxe){if(_0x7e6bx5[_0x5870[14]]== _0x7e6bxe[_0x5870[15]]){_0x7e6bx5[_0x5870[16]](_0x7e6bx8,_0x7e6bxb)}})})[_0x5870[13]](function(_0x7e6bxc){console[_0x5870[12]](_0x7e6bxc)});case _0x5870[22]:_0x7e6bx5[_0x5870[16]](_0x7e6bx8,_0x7e6bxb);break;default:}}}function removeListener(_0x7e6bx8,_0x7e6bx9){return function(){UserHasChatRoomEvents[_0x5870[23]](_0x7e6bx8,_0x7e6bx9)}}
\ No newline at end of file