Built motion from commit d13e3c905.|1.0.24
[motion.git] / server / api / chat_message / chat_message.controller.js
index d1e63ba..e153e37 100644 (file)
@@ -1 +1 @@
-var _0xe3d9=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x6D\x64\x35","\x61\x70\x69","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\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\x4D\x65\x73\x73\x61\x67\x65","\x43\x68\x61\x74\x56\x69\x73\x69\x74\x6F\x72","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x64\x65\x73\x63\x72\x69\x62\x65","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x73\x65\x72","\x6D\x65\x72\x67\x65","\x75\x70\x64\x61\x74\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79","\x73\x74\x61\x63\x6B","\x65\x72\x72\x6F\x72"];_0xe3d9[0];var _=require(_0xe3d9[1]);var md5=require(_0xe3d9[2]);var logger=require(_0xe3d9[4])(_0xe3d9[3]);var User=require(_0xe3d9[6])[_0xe3d9[5]];var ChatRoom=require(_0xe3d9[6])[_0xe3d9[7]];var ChatMessage=require(_0xe3d9[6])[_0xe3d9[8]];var ChatVisitor=require(_0xe3d9[6])[_0xe3d9[9]];exports[_0xe3d9[10]]= function(_0x7e1ax8,_0x7e1ax9){return ChatMessage[_0xe3d9[15]]()[_0xe3d9[14]](function(_0x7e1axb){return _0x7e1ax9[_0xe3d9[13]](200)[_0xe3d9[12]](_0x7e1axb)})[_0xe3d9[11]](function(_0x7e1axa){return handleError(_0x7e1ax9,_0x7e1axa)})};exports[_0xe3d9[16]]= function(_0x7e1ax8,_0x7e1ax9){return ChatMessage[_0xe3d9[16]]()[_0xe3d9[14]](function(_0x7e1axc){return _0x7e1ax9[_0xe3d9[13]](200)[_0xe3d9[12]](_0x7e1axc)})[_0xe3d9[11]](function(_0x7e1axa){return handleError(_0x7e1ax9,_0x7e1axa)})};exports[_0xe3d9[17]]= function(_0x7e1ax8,_0x7e1ax9){return ChatMessage[_0xe3d9[21]](_0x7e1ax8[_0xe3d9[20]][_0xe3d9[19]])[_0xe3d9[14]](function(_0x7e1axd){if(!_0x7e1axd){return _0x7e1ax9[_0xe3d9[18]](404)};return _0x7e1ax9[_0xe3d9[12]](_0x7e1axd)})[_0xe3d9[11]](function(_0x7e1axa){return handleError(_0x7e1ax9,_0x7e1axa)})};exports[_0xe3d9[22]]= function(_0x7e1ax8,_0x7e1ax9,_0x7e1axe){return ChatMessage[_0xe3d9[22]](_[_0xe3d9[25]](_0x7e1ax8[_0xe3d9[23]],{UserId:_0x7e1ax8[_0xe3d9[24]][_0xe3d9[19]]}))[_0xe3d9[14]](function(_0x7e1axd){return _0x7e1ax9[_0xe3d9[13]](201)[_0xe3d9[12]](_0x7e1axd)})[_0xe3d9[11]](function(_0x7e1axa){return handleError(_0x7e1ax9,_0x7e1axa)})};exports[_0xe3d9[26]]= function(_0x7e1ax8,_0x7e1ax9){if(_0x7e1ax8[_0xe3d9[23]][_0xe3d9[19]]){delete _0x7e1ax8[_0xe3d9[23]][_0xe3d9[19]]};return ChatMessage[_0xe3d9[21]](_0x7e1ax8[_0xe3d9[20]][_0xe3d9[19]])[_0xe3d9[14]](function(_0x7e1axd){if(!_0x7e1axd){return _0x7e1ax9[_0xe3d9[18]](404)};var _0x7e1axf=_[_0xe3d9[25]](_0x7e1axd,_0x7e1ax8[_0xe3d9[23]]);return _0x7e1axf[_0xe3d9[27]]()})[_0xe3d9[14]](function(_0x7e1axd){return _0x7e1ax9[_0xe3d9[13]](200)[_0xe3d9[12]](_0x7e1axd)})[_0xe3d9[11]](function(_0x7e1axa){return handleError(_0x7e1ax9,_0x7e1axa)})};exports[_0xe3d9[28]]= function(_0x7e1ax8,_0x7e1ax9){return ChatMessage[_0xe3d9[21]](_0x7e1ax8[_0xe3d9[20]][_0xe3d9[19]])[_0xe3d9[14]](function(_0x7e1axd){if(!_0x7e1axd){return _0x7e1ax9[_0xe3d9[18]](404)};return _0x7e1axd[_0xe3d9[28]]()})[_0xe3d9[14]](function(){return _0x7e1ax9[_0xe3d9[18]](204)})[_0xe3d9[11]](function(_0x7e1axa){return handleError(_0x7e1ax9,_0x7e1axa)})};function handleError(_0x7e1ax9,_0x7e1axa){logger[_0xe3d9[30]](_0x7e1axa[_0xe3d9[29]]);return _0x7e1ax9[_0xe3d9[13]](500)[_0xe3d9[12]](_0x7e1axa)}
\ No newline at end of file
+var _0x5316=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x6D\x64\x35","\x61\x70\x69","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\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\x4D\x65\x73\x73\x61\x67\x65","\x43\x68\x61\x74\x56\x69\x73\x69\x74\x6F\x72","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x64\x65\x73\x63\x72\x69\x62\x65","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x73\x65\x72","\x6D\x65\x72\x67\x65","\x75\x70\x64\x61\x74\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79","\x73\x74\x61\x63\x6B","\x65\x72\x72\x6F\x72"];_0x5316[0];var _=require(_0x5316[1]);var md5=require(_0x5316[2]);var logger=require(_0x5316[4])(_0x5316[3]);var User=require(_0x5316[6])[_0x5316[5]];var ChatRoom=require(_0x5316[6])[_0x5316[7]];var ChatMessage=require(_0x5316[6])[_0x5316[8]];var ChatVisitor=require(_0x5316[6])[_0x5316[9]];exports[_0x5316[10]]= function(_0x6530x8,_0x6530x9){return ChatMessage[_0x5316[15]]()[_0x5316[14]](function(_0x6530xb){return _0x6530x9[_0x5316[13]](200)[_0x5316[12]](_0x6530xb)})[_0x5316[11]](function(_0x6530xa){return handleError(_0x6530x9,_0x6530xa)})};exports[_0x5316[16]]= function(_0x6530x8,_0x6530x9){return ChatMessage[_0x5316[16]]()[_0x5316[14]](function(_0x6530xc){return _0x6530x9[_0x5316[13]](200)[_0x5316[12]](_0x6530xc)})[_0x5316[11]](function(_0x6530xa){return handleError(_0x6530x9,_0x6530xa)})};exports[_0x5316[17]]= function(_0x6530x8,_0x6530x9){return ChatMessage[_0x5316[21]](_0x6530x8[_0x5316[20]][_0x5316[19]])[_0x5316[14]](function(_0x6530xd){if(!_0x6530xd){return _0x6530x9[_0x5316[18]](404)};return _0x6530x9[_0x5316[12]](_0x6530xd)})[_0x5316[11]](function(_0x6530xa){return handleError(_0x6530x9,_0x6530xa)})};exports[_0x5316[22]]= function(_0x6530x8,_0x6530x9,_0x6530xe){return ChatMessage[_0x5316[22]](_[_0x5316[25]](_0x6530x8[_0x5316[23]],{UserId:_0x6530x8[_0x5316[24]][_0x5316[19]]}))[_0x5316[14]](function(_0x6530xd){return _0x6530x9[_0x5316[13]](201)[_0x5316[12]](_0x6530xd)})[_0x5316[11]](function(_0x6530xa){return handleError(_0x6530x9,_0x6530xa)})};exports[_0x5316[26]]= function(_0x6530x8,_0x6530x9){if(_0x6530x8[_0x5316[23]][_0x5316[19]]){delete _0x6530x8[_0x5316[23]][_0x5316[19]]};return ChatMessage[_0x5316[21]](_0x6530x8[_0x5316[20]][_0x5316[19]])[_0x5316[14]](function(_0x6530xd){if(!_0x6530xd){return _0x6530x9[_0x5316[18]](404)};var _0x6530xf=_[_0x5316[25]](_0x6530xd,_0x6530x8[_0x5316[23]]);return _0x6530xf[_0x5316[27]]()})[_0x5316[14]](function(_0x6530xd){return _0x6530x9[_0x5316[13]](200)[_0x5316[12]](_0x6530xd)})[_0x5316[11]](function(_0x6530xa){return handleError(_0x6530x9,_0x6530xa)})};exports[_0x5316[28]]= function(_0x6530x8,_0x6530x9){return ChatMessage[_0x5316[21]](_0x6530x8[_0x5316[20]][_0x5316[19]])[_0x5316[14]](function(_0x6530xd){if(!_0x6530xd){return _0x6530x9[_0x5316[18]](404)};return _0x6530xd[_0x5316[28]]()})[_0x5316[14]](function(){return _0x6530x9[_0x5316[18]](204)})[_0x5316[11]](function(_0x6530xa){return handleError(_0x6530x9,_0x6530xa)})};function handleError(_0x6530x9,_0x6530xa){logger[_0x5316[30]](_0x6530xa[_0x5316[29]]);return _0x6530x9[_0x5316[13]](500)[_0x5316[12]](_0x6530xa)}
\ No newline at end of file