Built motion from commit 27e0a5d.|1.0.8
[motion.git] / server / api / chat_message / chat_message.controller.js
index e78c61b..7fa2f8a 100644 (file)
@@ -1 +1 @@
-var _0x18c1=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x6D\x64\x35","\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","\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"];_0x18c1[0];var _=require(_0x18c1[1]);var md5=require(_0x18c1[2]);var User=require(_0x18c1[4])[_0x18c1[3]];var ChatRoom=require(_0x18c1[4])[_0x18c1[5]];var ChatMessage=require(_0x18c1[4])[_0x18c1[6]];var ChatVisitor=require(_0x18c1[4])[_0x18c1[7]];exports[_0x18c1[8]]=function(_0xe37bx7,_0xe37bx8){ChatMessage[_0x18c1[13]]()[_0x18c1[12]](function(_0xe37bxa){return _0xe37bx8[_0x18c1[11]](200)[_0x18c1[10]](_0xe37bxa)})[_0x18c1[9]](function(_0xe37bx9){return handleError(_0xe37bx8,_0xe37bx9)})};exports[_0x18c1[14]]=function(_0xe37bx7,_0xe37bx8){ChatMessage[_0x18c1[18]](_0xe37bx7[_0x18c1[17]][_0x18c1[16]])[_0x18c1[12]](function(_0xe37bxb){if(!_0xe37bxb){return _0xe37bx8[_0x18c1[15]](404)};return _0xe37bx8[_0x18c1[10]](_0xe37bxb)})[_0x18c1[9]](function(_0xe37bx9){return handleError(_0xe37bx8,_0xe37bx9)})};exports[_0x18c1[19]]=function(_0xe37bx7,_0xe37bx8,_0xe37bxc){ChatMessage[_0x18c1[19]](_[_0x18c1[22]](_0xe37bx7[_0x18c1[20]],{UserId:_0xe37bx7[_0x18c1[21]][_0x18c1[16]]}))[_0x18c1[12]](function(_0xe37bxb){return _0xe37bx8[_0x18c1[11]](201)[_0x18c1[10]](_0xe37bxb)})[_0x18c1[9]](function(_0xe37bx9){return handleError(_0xe37bx8,_0xe37bx9)})};exports[_0x18c1[23]]=function(_0xe37bx7,_0xe37bx8){if(_0xe37bx7[_0x18c1[20]][_0x18c1[16]]){delete _0xe37bx7[_0x18c1[20]][_0x18c1[16]]};return ChatMessage[_0x18c1[18]](_0xe37bx7[_0x18c1[17]][_0x18c1[16]])[_0x18c1[12]](function(_0xe37bxb){if(!_0xe37bxb){return _0xe37bx8[_0x18c1[15]](404)};var _0xe37bxd=_[_0x18c1[22]](_0xe37bxb,_0xe37bx7[_0x18c1[20]]);return _0xe37bxd[_0x18c1[24]]()})[_0x18c1[12]](function(_0xe37bxb){return _0xe37bx8[_0x18c1[11]](200)[_0x18c1[10]](_0xe37bxb)})[_0x18c1[9]](function(_0xe37bx9){return handleError(_0xe37bx8,_0xe37bx9)})};exports[_0x18c1[25]]=function(_0xe37bx7,_0xe37bx8){ChatMessage[_0x18c1[18]](_0xe37bx7[_0x18c1[17]][_0x18c1[16]])[_0x18c1[12]](function(_0xe37bxb){if(!_0xe37bxb){return _0xe37bx8[_0x18c1[15]](404)};_0xe37bxb[_0x18c1[25]]()[_0x18c1[12]](function(){return _0xe37bx8[_0x18c1[15]](204)})[_0x18c1[9]](function(_0xe37bx9){return handleError(_0xe37bx8,_0xe37bx9)})})[_0x18c1[9]](function(_0xe37bx9){return handleError(_0xe37bx8,_0xe37bx9)})};function handleError(_0xe37bx8,_0xe37bx9){return _0xe37bx8[_0x18c1[11]](500)[_0x18c1[10]](_0xe37bx9)}
\ No newline at end of file
+var _0x2681=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x6D\x64\x35","\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"];_0x2681[0];var _=require(_0x2681[1]);var md5=require(_0x2681[2]);var User=require(_0x2681[4])[_0x2681[3]];var ChatRoom=require(_0x2681[4])[_0x2681[5]];var ChatMessage=require(_0x2681[4])[_0x2681[6]];var ChatVisitor=require(_0x2681[4])[_0x2681[7]];exports[_0x2681[8]]= function(_0x1331x7,_0x1331x8){return ChatMessage[_0x2681[13]]()[_0x2681[12]](function(_0x1331xa){return _0x1331x8[_0x2681[11]](200)[_0x2681[10]](_0x1331xa)})[_0x2681[9]](function(_0x1331x9){return handleError(_0x1331x8,_0x1331x9)})};exports[_0x2681[14]]= function(_0x1331x7,_0x1331x8){return ChatMessage[_0x2681[14]]()[_0x2681[12]](function(_0x1331xb){return _0x1331x8[_0x2681[11]](200)[_0x2681[10]](_0x1331xb)})[_0x2681[9]](function(_0x1331x9){return handleError(_0x1331x8,_0x1331x9)})};exports[_0x2681[15]]= function(_0x1331x7,_0x1331x8){return ChatMessage[_0x2681[19]](_0x1331x7[_0x2681[18]][_0x2681[17]])[_0x2681[12]](function(_0x1331xc){if(!_0x1331xc){return _0x1331x8[_0x2681[16]](404)};return _0x1331x8[_0x2681[10]](_0x1331xc)})[_0x2681[9]](function(_0x1331x9){return handleError(_0x1331x8,_0x1331x9)})};exports[_0x2681[20]]= function(_0x1331x7,_0x1331x8,_0x1331xd){return ChatMessage[_0x2681[20]](_[_0x2681[23]](_0x1331x7[_0x2681[21]],{UserId:_0x1331x7[_0x2681[22]][_0x2681[17]]}))[_0x2681[12]](function(_0x1331xc){return _0x1331x8[_0x2681[11]](201)[_0x2681[10]](_0x1331xc)})[_0x2681[9]](function(_0x1331x9){return handleError(_0x1331x8,_0x1331x9)})};exports[_0x2681[24]]= function(_0x1331x7,_0x1331x8){if(_0x1331x7[_0x2681[21]][_0x2681[17]]){delete _0x1331x7[_0x2681[21]][_0x2681[17]]};return ChatMessage[_0x2681[19]](_0x1331x7[_0x2681[18]][_0x2681[17]])[_0x2681[12]](function(_0x1331xc){if(!_0x1331xc){return _0x1331x8[_0x2681[16]](404)};var _0x1331xe=_[_0x2681[23]](_0x1331xc,_0x1331x7[_0x2681[21]]);return _0x1331xe[_0x2681[25]]()})[_0x2681[12]](function(_0x1331xc){return _0x1331x8[_0x2681[11]](200)[_0x2681[10]](_0x1331xc)})[_0x2681[9]](function(_0x1331x9){return handleError(_0x1331x8,_0x1331x9)})};exports[_0x2681[26]]= function(_0x1331x7,_0x1331x8){return ChatMessage[_0x2681[19]](_0x1331x7[_0x2681[18]][_0x2681[17]])[_0x2681[12]](function(_0x1331xc){if(!_0x1331xc){return _0x1331x8[_0x2681[16]](404)};return _0x1331xc[_0x2681[26]]()})[_0x2681[12]](function(){return _0x1331x8[_0x2681[16]](204)})[_0x2681[9]](function(_0x1331x9){return handleError(_0x1331x8,_0x1331x9)})};function handleError(_0x1331x8,_0x1331x9){return _0x1331x8[_0x2681[11]](500)[_0x2681[10]](_0x1331x9)}
\ No newline at end of file