Built motion from commit 922399a61.|1.0.26
[motion.git] / server / api / chat_message / chat_message.controller.js
index 6bbc718..f9d6890 100644 (file)
@@ -1 +1 @@
-var _0xb8a2=["\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"];_0xb8a2[0];var _=require(_0xb8a2[1]);var md5=require(_0xb8a2[2]);var logger=require(_0xb8a2[4])(_0xb8a2[3]);var User=require(_0xb8a2[6])[_0xb8a2[5]];var ChatRoom=require(_0xb8a2[6])[_0xb8a2[7]];var ChatMessage=require(_0xb8a2[6])[_0xb8a2[8]];var ChatVisitor=require(_0xb8a2[6])[_0xb8a2[9]];exports[_0xb8a2[10]]= function(_0x452cx8,_0x452cx9){return ChatMessage[_0xb8a2[15]]()[_0xb8a2[14]](function(_0x452cxb){return _0x452cx9[_0xb8a2[13]](200)[_0xb8a2[12]](_0x452cxb)})[_0xb8a2[11]](function(_0x452cxa){return handleError(_0x452cx9,_0x452cxa)})};exports[_0xb8a2[16]]= function(_0x452cx8,_0x452cx9){return ChatMessage[_0xb8a2[16]]()[_0xb8a2[14]](function(_0x452cxc){return _0x452cx9[_0xb8a2[13]](200)[_0xb8a2[12]](_0x452cxc)})[_0xb8a2[11]](function(_0x452cxa){return handleError(_0x452cx9,_0x452cxa)})};exports[_0xb8a2[17]]= function(_0x452cx8,_0x452cx9){return ChatMessage[_0xb8a2[21]](_0x452cx8[_0xb8a2[20]][_0xb8a2[19]])[_0xb8a2[14]](function(_0x452cxd){if(!_0x452cxd){return _0x452cx9[_0xb8a2[18]](404)};return _0x452cx9[_0xb8a2[12]](_0x452cxd)})[_0xb8a2[11]](function(_0x452cxa){return handleError(_0x452cx9,_0x452cxa)})};exports[_0xb8a2[22]]= function(_0x452cx8,_0x452cx9,_0x452cxe){return ChatMessage[_0xb8a2[22]](_[_0xb8a2[25]](_0x452cx8[_0xb8a2[23]],{UserId:_0x452cx8[_0xb8a2[24]][_0xb8a2[19]]}))[_0xb8a2[14]](function(_0x452cxd){return _0x452cx9[_0xb8a2[13]](201)[_0xb8a2[12]](_0x452cxd)})[_0xb8a2[11]](function(_0x452cxa){return handleError(_0x452cx9,_0x452cxa)})};exports[_0xb8a2[26]]= function(_0x452cx8,_0x452cx9){if(_0x452cx8[_0xb8a2[23]][_0xb8a2[19]]){delete _0x452cx8[_0xb8a2[23]][_0xb8a2[19]]};return ChatMessage[_0xb8a2[21]](_0x452cx8[_0xb8a2[20]][_0xb8a2[19]])[_0xb8a2[14]](function(_0x452cxd){if(!_0x452cxd){return _0x452cx9[_0xb8a2[18]](404)};var _0x452cxf=_[_0xb8a2[25]](_0x452cxd,_0x452cx8[_0xb8a2[23]]);return _0x452cxf[_0xb8a2[27]]()})[_0xb8a2[14]](function(_0x452cxd){return _0x452cx9[_0xb8a2[13]](200)[_0xb8a2[12]](_0x452cxd)})[_0xb8a2[11]](function(_0x452cxa){return handleError(_0x452cx9,_0x452cxa)})};exports[_0xb8a2[28]]= function(_0x452cx8,_0x452cx9){return ChatMessage[_0xb8a2[21]](_0x452cx8[_0xb8a2[20]][_0xb8a2[19]])[_0xb8a2[14]](function(_0x452cxd){if(!_0x452cxd){return _0x452cx9[_0xb8a2[18]](404)};return _0x452cxd[_0xb8a2[28]]()})[_0xb8a2[14]](function(){return _0x452cx9[_0xb8a2[18]](204)})[_0xb8a2[11]](function(_0x452cxa){return handleError(_0x452cx9,_0x452cxa)})};function handleError(_0x452cx9,_0x452cxa){logger[_0xb8a2[30]](_0x452cxa[_0xb8a2[29]]);return _0x452cx9[_0xb8a2[13]](500)[_0xb8a2[12]](_0x452cxa)}
\ No newline at end of file
+var _0x21a4=["\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"];_0x21a4[0];var _=require(_0x21a4[1]);var md5=require(_0x21a4[2]);var logger=require(_0x21a4[4])(_0x21a4[3]);var User=require(_0x21a4[6])[_0x21a4[5]];var ChatRoom=require(_0x21a4[6])[_0x21a4[7]];var ChatMessage=require(_0x21a4[6])[_0x21a4[8]];var ChatVisitor=require(_0x21a4[6])[_0x21a4[9]];exports[_0x21a4[10]]= function(_0xf556x8,_0xf556x9){return ChatMessage[_0x21a4[15]]()[_0x21a4[14]](function(_0xf556xb){return _0xf556x9[_0x21a4[13]](200)[_0x21a4[12]](_0xf556xb)})[_0x21a4[11]](function(_0xf556xa){return handleError(_0xf556x9,_0xf556xa)})};exports[_0x21a4[16]]= function(_0xf556x8,_0xf556x9){return ChatMessage[_0x21a4[16]]()[_0x21a4[14]](function(_0xf556xc){return _0xf556x9[_0x21a4[13]](200)[_0x21a4[12]](_0xf556xc)})[_0x21a4[11]](function(_0xf556xa){return handleError(_0xf556x9,_0xf556xa)})};exports[_0x21a4[17]]= function(_0xf556x8,_0xf556x9){return ChatMessage[_0x21a4[21]](_0xf556x8[_0x21a4[20]][_0x21a4[19]])[_0x21a4[14]](function(_0xf556xd){if(!_0xf556xd){return _0xf556x9[_0x21a4[18]](404)};return _0xf556x9[_0x21a4[12]](_0xf556xd)})[_0x21a4[11]](function(_0xf556xa){return handleError(_0xf556x9,_0xf556xa)})};exports[_0x21a4[22]]= function(_0xf556x8,_0xf556x9,_0xf556xe){return ChatMessage[_0x21a4[22]](_[_0x21a4[25]](_0xf556x8[_0x21a4[23]],{UserId:_0xf556x8[_0x21a4[24]][_0x21a4[19]]}))[_0x21a4[14]](function(_0xf556xd){return _0xf556x9[_0x21a4[13]](201)[_0x21a4[12]](_0xf556xd)})[_0x21a4[11]](function(_0xf556xa){return handleError(_0xf556x9,_0xf556xa)})};exports[_0x21a4[26]]= function(_0xf556x8,_0xf556x9){if(_0xf556x8[_0x21a4[23]][_0x21a4[19]]){delete _0xf556x8[_0x21a4[23]][_0x21a4[19]]};return ChatMessage[_0x21a4[21]](_0xf556x8[_0x21a4[20]][_0x21a4[19]])[_0x21a4[14]](function(_0xf556xd){if(!_0xf556xd){return _0xf556x9[_0x21a4[18]](404)};var _0xf556xf=_[_0x21a4[25]](_0xf556xd,_0xf556x8[_0x21a4[23]]);return _0xf556xf[_0x21a4[27]]()})[_0x21a4[14]](function(_0xf556xd){return _0xf556x9[_0x21a4[13]](200)[_0x21a4[12]](_0xf556xd)})[_0x21a4[11]](function(_0xf556xa){return handleError(_0xf556x9,_0xf556xa)})};exports[_0x21a4[28]]= function(_0xf556x8,_0xf556x9){return ChatMessage[_0x21a4[21]](_0xf556x8[_0x21a4[20]][_0x21a4[19]])[_0x21a4[14]](function(_0xf556xd){if(!_0xf556xd){return _0xf556x9[_0x21a4[18]](404)};return _0xf556xd[_0x21a4[28]]()})[_0x21a4[14]](function(){return _0xf556x9[_0x21a4[18]](204)})[_0x21a4[11]](function(_0xf556xa){return handleError(_0xf556x9,_0xf556xa)})};function handleError(_0xf556x9,_0xf556xa){logger[_0x21a4[30]](_0xf556xa[_0x21a4[29]]);return _0xf556x9[_0x21a4[13]](500)[_0x21a4[12]](_0xf556xa)}
\ No newline at end of file