Built motion from commit 94df3a359.|1.0.33
[motion.git] / server / api / chat_message / chat_message.controller.js
index 3627e22..839cd71 100644 (file)
@@ -1 +1 @@
-var _0x8a1d=["\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"];_0x8a1d[0];var _=require(_0x8a1d[1]);var md5=require(_0x8a1d[2]);var logger=require(_0x8a1d[4])(_0x8a1d[3]);var User=require(_0x8a1d[6])[_0x8a1d[5]];var ChatRoom=require(_0x8a1d[6])[_0x8a1d[7]];var ChatMessage=require(_0x8a1d[6])[_0x8a1d[8]];var ChatVisitor=require(_0x8a1d[6])[_0x8a1d[9]];exports[_0x8a1d[10]]= function(_0x4e7ex8,_0x4e7ex9){return ChatMessage[_0x8a1d[15]]()[_0x8a1d[14]](function(_0x4e7exb){return _0x4e7ex9[_0x8a1d[13]](200)[_0x8a1d[12]](_0x4e7exb)})[_0x8a1d[11]](function(_0x4e7exa){return handleError(_0x4e7ex9,_0x4e7exa)})};exports[_0x8a1d[16]]= function(_0x4e7ex8,_0x4e7ex9){return ChatMessage[_0x8a1d[16]]()[_0x8a1d[14]](function(_0x4e7exc){return _0x4e7ex9[_0x8a1d[13]](200)[_0x8a1d[12]](_0x4e7exc)})[_0x8a1d[11]](function(_0x4e7exa){return handleError(_0x4e7ex9,_0x4e7exa)})};exports[_0x8a1d[17]]= function(_0x4e7ex8,_0x4e7ex9){return ChatMessage[_0x8a1d[21]](_0x4e7ex8[_0x8a1d[20]][_0x8a1d[19]])[_0x8a1d[14]](function(_0x4e7exd){if(!_0x4e7exd){return _0x4e7ex9[_0x8a1d[18]](404)};return _0x4e7ex9[_0x8a1d[12]](_0x4e7exd)})[_0x8a1d[11]](function(_0x4e7exa){return handleError(_0x4e7ex9,_0x4e7exa)})};exports[_0x8a1d[22]]= function(_0x4e7ex8,_0x4e7ex9,_0x4e7exe){return ChatMessage[_0x8a1d[22]](_[_0x8a1d[25]](_0x4e7ex8[_0x8a1d[23]],{UserId:_0x4e7ex8[_0x8a1d[24]][_0x8a1d[19]]}))[_0x8a1d[14]](function(_0x4e7exd){return _0x4e7ex9[_0x8a1d[13]](201)[_0x8a1d[12]](_0x4e7exd)})[_0x8a1d[11]](function(_0x4e7exa){return handleError(_0x4e7ex9,_0x4e7exa)})};exports[_0x8a1d[26]]= function(_0x4e7ex8,_0x4e7ex9){if(_0x4e7ex8[_0x8a1d[23]][_0x8a1d[19]]){delete _0x4e7ex8[_0x8a1d[23]][_0x8a1d[19]]};return ChatMessage[_0x8a1d[21]](_0x4e7ex8[_0x8a1d[20]][_0x8a1d[19]])[_0x8a1d[14]](function(_0x4e7exd){if(!_0x4e7exd){return _0x4e7ex9[_0x8a1d[18]](404)};var _0x4e7exf=_[_0x8a1d[25]](_0x4e7exd,_0x4e7ex8[_0x8a1d[23]]);return _0x4e7exf[_0x8a1d[27]]()})[_0x8a1d[14]](function(_0x4e7exd){return _0x4e7ex9[_0x8a1d[13]](200)[_0x8a1d[12]](_0x4e7exd)})[_0x8a1d[11]](function(_0x4e7exa){return handleError(_0x4e7ex9,_0x4e7exa)})};exports[_0x8a1d[28]]= function(_0x4e7ex8,_0x4e7ex9){return ChatMessage[_0x8a1d[21]](_0x4e7ex8[_0x8a1d[20]][_0x8a1d[19]])[_0x8a1d[14]](function(_0x4e7exd){if(!_0x4e7exd){return _0x4e7ex9[_0x8a1d[18]](404)};return _0x4e7exd[_0x8a1d[28]]()})[_0x8a1d[14]](function(){return _0x4e7ex9[_0x8a1d[18]](204)})[_0x8a1d[11]](function(_0x4e7exa){return handleError(_0x4e7ex9,_0x4e7exa)})};function handleError(_0x4e7ex9,_0x4e7exa){logger[_0x8a1d[30]](_0x4e7exa[_0x8a1d[29]]);return _0x4e7ex9[_0x8a1d[13]](500)[_0x8a1d[12]](_0x4e7exa)}
\ No newline at end of file
+var _0x4a12=["\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"];_0x4a12[0];var _=require(_0x4a12[1]);var md5=require(_0x4a12[2]);var logger=require(_0x4a12[4])(_0x4a12[3]);var User=require(_0x4a12[6])[_0x4a12[5]];var ChatRoom=require(_0x4a12[6])[_0x4a12[7]];var ChatMessage=require(_0x4a12[6])[_0x4a12[8]];var ChatVisitor=require(_0x4a12[6])[_0x4a12[9]];exports[_0x4a12[10]]= function(_0x1bccx8,_0x1bccx9){return ChatMessage[_0x4a12[15]]()[_0x4a12[14]](function(_0x1bccxb){return _0x1bccx9[_0x4a12[13]](200)[_0x4a12[12]](_0x1bccxb)})[_0x4a12[11]](function(_0x1bccxa){return handleError(_0x1bccx9,_0x1bccxa)})};exports[_0x4a12[16]]= function(_0x1bccx8,_0x1bccx9){return ChatMessage[_0x4a12[16]]()[_0x4a12[14]](function(_0x1bccxc){return _0x1bccx9[_0x4a12[13]](200)[_0x4a12[12]](_0x1bccxc)})[_0x4a12[11]](function(_0x1bccxa){return handleError(_0x1bccx9,_0x1bccxa)})};exports[_0x4a12[17]]= function(_0x1bccx8,_0x1bccx9){return ChatMessage[_0x4a12[21]](_0x1bccx8[_0x4a12[20]][_0x4a12[19]])[_0x4a12[14]](function(_0x1bccxd){if(!_0x1bccxd){return _0x1bccx9[_0x4a12[18]](404)};return _0x1bccx9[_0x4a12[12]](_0x1bccxd)})[_0x4a12[11]](function(_0x1bccxa){return handleError(_0x1bccx9,_0x1bccxa)})};exports[_0x4a12[22]]= function(_0x1bccx8,_0x1bccx9,_0x1bccxe){return ChatMessage[_0x4a12[22]](_[_0x4a12[25]](_0x1bccx8[_0x4a12[23]],{UserId:_0x1bccx8[_0x4a12[24]][_0x4a12[19]]}))[_0x4a12[14]](function(_0x1bccxd){return _0x1bccx9[_0x4a12[13]](201)[_0x4a12[12]](_0x1bccxd)})[_0x4a12[11]](function(_0x1bccxa){return handleError(_0x1bccx9,_0x1bccxa)})};exports[_0x4a12[26]]= function(_0x1bccx8,_0x1bccx9){if(_0x1bccx8[_0x4a12[23]][_0x4a12[19]]){delete _0x1bccx8[_0x4a12[23]][_0x4a12[19]]};return ChatMessage[_0x4a12[21]](_0x1bccx8[_0x4a12[20]][_0x4a12[19]])[_0x4a12[14]](function(_0x1bccxd){if(!_0x1bccxd){return _0x1bccx9[_0x4a12[18]](404)};var _0x1bccxf=_[_0x4a12[25]](_0x1bccxd,_0x1bccx8[_0x4a12[23]]);return _0x1bccxf[_0x4a12[27]]()})[_0x4a12[14]](function(_0x1bccxd){return _0x1bccx9[_0x4a12[13]](200)[_0x4a12[12]](_0x1bccxd)})[_0x4a12[11]](function(_0x1bccxa){return handleError(_0x1bccx9,_0x1bccxa)})};exports[_0x4a12[28]]= function(_0x1bccx8,_0x1bccx9){return ChatMessage[_0x4a12[21]](_0x1bccx8[_0x4a12[20]][_0x4a12[19]])[_0x4a12[14]](function(_0x1bccxd){if(!_0x1bccxd){return _0x1bccx9[_0x4a12[18]](404)};return _0x1bccxd[_0x4a12[28]]()})[_0x4a12[14]](function(){return _0x1bccx9[_0x4a12[18]](204)})[_0x4a12[11]](function(_0x1bccxa){return handleError(_0x1bccx9,_0x1bccxa)})};function handleError(_0x1bccx9,_0x1bccxa){logger[_0x4a12[30]](_0x1bccxa[_0x4a12[29]]);return _0x1bccx9[_0x4a12[13]](500)[_0x4a12[12]](_0x1bccxa)}
\ No newline at end of file