Built motion from commit dbc832960.|1.0.25
[motion.git] / server / api / chat_message / chat_message.controller.js
index 49bc049..06bbedd 100644 (file)
@@ -1 +1 @@
-var _0x6e01=["\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"];_0x6e01[0];var _=require(_0x6e01[1]);var md5=require(_0x6e01[2]);var logger=require(_0x6e01[4])(_0x6e01[3]);var User=require(_0x6e01[6])[_0x6e01[5]];var ChatRoom=require(_0x6e01[6])[_0x6e01[7]];var ChatMessage=require(_0x6e01[6])[_0x6e01[8]];var ChatVisitor=require(_0x6e01[6])[_0x6e01[9]];exports[_0x6e01[10]]= function(_0xa14dx8,_0xa14dx9){return ChatMessage[_0x6e01[15]]()[_0x6e01[14]](function(_0xa14dxb){return _0xa14dx9[_0x6e01[13]](200)[_0x6e01[12]](_0xa14dxb)})[_0x6e01[11]](function(_0xa14dxa){return handleError(_0xa14dx9,_0xa14dxa)})};exports[_0x6e01[16]]= function(_0xa14dx8,_0xa14dx9){return ChatMessage[_0x6e01[16]]()[_0x6e01[14]](function(_0xa14dxc){return _0xa14dx9[_0x6e01[13]](200)[_0x6e01[12]](_0xa14dxc)})[_0x6e01[11]](function(_0xa14dxa){return handleError(_0xa14dx9,_0xa14dxa)})};exports[_0x6e01[17]]= function(_0xa14dx8,_0xa14dx9){return ChatMessage[_0x6e01[21]](_0xa14dx8[_0x6e01[20]][_0x6e01[19]])[_0x6e01[14]](function(_0xa14dxd){if(!_0xa14dxd){return _0xa14dx9[_0x6e01[18]](404)};return _0xa14dx9[_0x6e01[12]](_0xa14dxd)})[_0x6e01[11]](function(_0xa14dxa){return handleError(_0xa14dx9,_0xa14dxa)})};exports[_0x6e01[22]]= function(_0xa14dx8,_0xa14dx9,_0xa14dxe){return ChatMessage[_0x6e01[22]](_[_0x6e01[25]](_0xa14dx8[_0x6e01[23]],{UserId:_0xa14dx8[_0x6e01[24]][_0x6e01[19]]}))[_0x6e01[14]](function(_0xa14dxd){return _0xa14dx9[_0x6e01[13]](201)[_0x6e01[12]](_0xa14dxd)})[_0x6e01[11]](function(_0xa14dxa){return handleError(_0xa14dx9,_0xa14dxa)})};exports[_0x6e01[26]]= function(_0xa14dx8,_0xa14dx9){if(_0xa14dx8[_0x6e01[23]][_0x6e01[19]]){delete _0xa14dx8[_0x6e01[23]][_0x6e01[19]]};return ChatMessage[_0x6e01[21]](_0xa14dx8[_0x6e01[20]][_0x6e01[19]])[_0x6e01[14]](function(_0xa14dxd){if(!_0xa14dxd){return _0xa14dx9[_0x6e01[18]](404)};var _0xa14dxf=_[_0x6e01[25]](_0xa14dxd,_0xa14dx8[_0x6e01[23]]);return _0xa14dxf[_0x6e01[27]]()})[_0x6e01[14]](function(_0xa14dxd){return _0xa14dx9[_0x6e01[13]](200)[_0x6e01[12]](_0xa14dxd)})[_0x6e01[11]](function(_0xa14dxa){return handleError(_0xa14dx9,_0xa14dxa)})};exports[_0x6e01[28]]= function(_0xa14dx8,_0xa14dx9){return ChatMessage[_0x6e01[21]](_0xa14dx8[_0x6e01[20]][_0x6e01[19]])[_0x6e01[14]](function(_0xa14dxd){if(!_0xa14dxd){return _0xa14dx9[_0x6e01[18]](404)};return _0xa14dxd[_0x6e01[28]]()})[_0x6e01[14]](function(){return _0xa14dx9[_0x6e01[18]](204)})[_0x6e01[11]](function(_0xa14dxa){return handleError(_0xa14dx9,_0xa14dxa)})};function handleError(_0xa14dx9,_0xa14dxa){logger[_0x6e01[30]](_0xa14dxa[_0x6e01[29]]);return _0xa14dx9[_0x6e01[13]](500)[_0x6e01[12]](_0xa14dxa)}
\ No newline at end of file
+var _0x318c=["\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"];_0x318c[0];var _=require(_0x318c[1]);var md5=require(_0x318c[2]);var logger=require(_0x318c[4])(_0x318c[3]);var User=require(_0x318c[6])[_0x318c[5]];var ChatRoom=require(_0x318c[6])[_0x318c[7]];var ChatMessage=require(_0x318c[6])[_0x318c[8]];var ChatVisitor=require(_0x318c[6])[_0x318c[9]];exports[_0x318c[10]]= function(_0x551fx8,_0x551fx9){return ChatMessage[_0x318c[15]]()[_0x318c[14]](function(_0x551fxb){return _0x551fx9[_0x318c[13]](200)[_0x318c[12]](_0x551fxb)})[_0x318c[11]](function(_0x551fxa){return handleError(_0x551fx9,_0x551fxa)})};exports[_0x318c[16]]= function(_0x551fx8,_0x551fx9){return ChatMessage[_0x318c[16]]()[_0x318c[14]](function(_0x551fxc){return _0x551fx9[_0x318c[13]](200)[_0x318c[12]](_0x551fxc)})[_0x318c[11]](function(_0x551fxa){return handleError(_0x551fx9,_0x551fxa)})};exports[_0x318c[17]]= function(_0x551fx8,_0x551fx9){return ChatMessage[_0x318c[21]](_0x551fx8[_0x318c[20]][_0x318c[19]])[_0x318c[14]](function(_0x551fxd){if(!_0x551fxd){return _0x551fx9[_0x318c[18]](404)};return _0x551fx9[_0x318c[12]](_0x551fxd)})[_0x318c[11]](function(_0x551fxa){return handleError(_0x551fx9,_0x551fxa)})};exports[_0x318c[22]]= function(_0x551fx8,_0x551fx9,_0x551fxe){return ChatMessage[_0x318c[22]](_[_0x318c[25]](_0x551fx8[_0x318c[23]],{UserId:_0x551fx8[_0x318c[24]][_0x318c[19]]}))[_0x318c[14]](function(_0x551fxd){return _0x551fx9[_0x318c[13]](201)[_0x318c[12]](_0x551fxd)})[_0x318c[11]](function(_0x551fxa){return handleError(_0x551fx9,_0x551fxa)})};exports[_0x318c[26]]= function(_0x551fx8,_0x551fx9){if(_0x551fx8[_0x318c[23]][_0x318c[19]]){delete _0x551fx8[_0x318c[23]][_0x318c[19]]};return ChatMessage[_0x318c[21]](_0x551fx8[_0x318c[20]][_0x318c[19]])[_0x318c[14]](function(_0x551fxd){if(!_0x551fxd){return _0x551fx9[_0x318c[18]](404)};var _0x551fxf=_[_0x318c[25]](_0x551fxd,_0x551fx8[_0x318c[23]]);return _0x551fxf[_0x318c[27]]()})[_0x318c[14]](function(_0x551fxd){return _0x551fx9[_0x318c[13]](200)[_0x318c[12]](_0x551fxd)})[_0x318c[11]](function(_0x551fxa){return handleError(_0x551fx9,_0x551fxa)})};exports[_0x318c[28]]= function(_0x551fx8,_0x551fx9){return ChatMessage[_0x318c[21]](_0x551fx8[_0x318c[20]][_0x318c[19]])[_0x318c[14]](function(_0x551fxd){if(!_0x551fxd){return _0x551fx9[_0x318c[18]](404)};return _0x551fxd[_0x318c[28]]()})[_0x318c[14]](function(){return _0x551fx9[_0x318c[18]](204)})[_0x318c[11]](function(_0x551fxa){return handleError(_0x551fx9,_0x551fxa)})};function handleError(_0x551fx9,_0x551fxa){logger[_0x318c[30]](_0x551fxa[_0x318c[29]]);return _0x551fx9[_0x318c[13]](500)[_0x318c[12]](_0x551fxa)}
\ No newline at end of file