Built motion from commit 8d1370ff4.|1.0.34
[motion.git] / server / api / chat_message / chat_message.controller.js
index b970ca3..7f5761f 100644 (file)
@@ -1 +1 @@
-var _0x8a8a=["\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"];_0x8a8a[0];var _=require(_0x8a8a[1]);var md5=require(_0x8a8a[2]);var logger=require(_0x8a8a[4])(_0x8a8a[3]);var User=require(_0x8a8a[6])[_0x8a8a[5]];var ChatRoom=require(_0x8a8a[6])[_0x8a8a[7]];var ChatMessage=require(_0x8a8a[6])[_0x8a8a[8]];var ChatVisitor=require(_0x8a8a[6])[_0x8a8a[9]];exports[_0x8a8a[10]]= function(_0xc0fcx8,_0xc0fcx9){return ChatMessage[_0x8a8a[15]]()[_0x8a8a[14]](function(_0xc0fcxb){return _0xc0fcx9[_0x8a8a[13]](200)[_0x8a8a[12]](_0xc0fcxb)})[_0x8a8a[11]](function(_0xc0fcxa){return handleError(_0xc0fcx9,_0xc0fcxa)})};exports[_0x8a8a[16]]= function(_0xc0fcx8,_0xc0fcx9){return ChatMessage[_0x8a8a[16]]()[_0x8a8a[14]](function(_0xc0fcxc){return _0xc0fcx9[_0x8a8a[13]](200)[_0x8a8a[12]](_0xc0fcxc)})[_0x8a8a[11]](function(_0xc0fcxa){return handleError(_0xc0fcx9,_0xc0fcxa)})};exports[_0x8a8a[17]]= function(_0xc0fcx8,_0xc0fcx9){return ChatMessage[_0x8a8a[21]](_0xc0fcx8[_0x8a8a[20]][_0x8a8a[19]])[_0x8a8a[14]](function(_0xc0fcxd){if(!_0xc0fcxd){return _0xc0fcx9[_0x8a8a[18]](404)};return _0xc0fcx9[_0x8a8a[12]](_0xc0fcxd)})[_0x8a8a[11]](function(_0xc0fcxa){return handleError(_0xc0fcx9,_0xc0fcxa)})};exports[_0x8a8a[22]]= function(_0xc0fcx8,_0xc0fcx9,_0xc0fcxe){return ChatMessage[_0x8a8a[22]](_[_0x8a8a[25]](_0xc0fcx8[_0x8a8a[23]],{UserId:_0xc0fcx8[_0x8a8a[24]][_0x8a8a[19]]}))[_0x8a8a[14]](function(_0xc0fcxd){return _0xc0fcx9[_0x8a8a[13]](201)[_0x8a8a[12]](_0xc0fcxd)})[_0x8a8a[11]](function(_0xc0fcxa){return handleError(_0xc0fcx9,_0xc0fcxa)})};exports[_0x8a8a[26]]= function(_0xc0fcx8,_0xc0fcx9){if(_0xc0fcx8[_0x8a8a[23]][_0x8a8a[19]]){delete _0xc0fcx8[_0x8a8a[23]][_0x8a8a[19]]};return ChatMessage[_0x8a8a[21]](_0xc0fcx8[_0x8a8a[20]][_0x8a8a[19]])[_0x8a8a[14]](function(_0xc0fcxd){if(!_0xc0fcxd){return _0xc0fcx9[_0x8a8a[18]](404)};var _0xc0fcxf=_[_0x8a8a[25]](_0xc0fcxd,_0xc0fcx8[_0x8a8a[23]]);return _0xc0fcxf[_0x8a8a[27]]()})[_0x8a8a[14]](function(_0xc0fcxd){return _0xc0fcx9[_0x8a8a[13]](200)[_0x8a8a[12]](_0xc0fcxd)})[_0x8a8a[11]](function(_0xc0fcxa){return handleError(_0xc0fcx9,_0xc0fcxa)})};exports[_0x8a8a[28]]= function(_0xc0fcx8,_0xc0fcx9){return ChatMessage[_0x8a8a[21]](_0xc0fcx8[_0x8a8a[20]][_0x8a8a[19]])[_0x8a8a[14]](function(_0xc0fcxd){if(!_0xc0fcxd){return _0xc0fcx9[_0x8a8a[18]](404)};return _0xc0fcxd[_0x8a8a[28]]()})[_0x8a8a[14]](function(){return _0xc0fcx9[_0x8a8a[18]](204)})[_0x8a8a[11]](function(_0xc0fcxa){return handleError(_0xc0fcx9,_0xc0fcxa)})};function handleError(_0xc0fcx9,_0xc0fcxa){logger[_0x8a8a[30]](_0xc0fcxa[_0x8a8a[29]]);return _0xc0fcx9[_0x8a8a[13]](500)[_0x8a8a[12]](_0xc0fcxa)}
\ No newline at end of file
+var _0x24c3=["\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"];_0x24c3[0];var _=require(_0x24c3[1]);var md5=require(_0x24c3[2]);var logger=require(_0x24c3[4])(_0x24c3[3]);var User=require(_0x24c3[6])[_0x24c3[5]];var ChatRoom=require(_0x24c3[6])[_0x24c3[7]];var ChatMessage=require(_0x24c3[6])[_0x24c3[8]];var ChatVisitor=require(_0x24c3[6])[_0x24c3[9]];exports[_0x24c3[10]]= function(_0x98f1x8,_0x98f1x9){return ChatMessage[_0x24c3[15]]()[_0x24c3[14]](function(_0x98f1xb){return _0x98f1x9[_0x24c3[13]](200)[_0x24c3[12]](_0x98f1xb)})[_0x24c3[11]](function(_0x98f1xa){return handleError(_0x98f1x9,_0x98f1xa)})};exports[_0x24c3[16]]= function(_0x98f1x8,_0x98f1x9){return ChatMessage[_0x24c3[16]]()[_0x24c3[14]](function(_0x98f1xc){return _0x98f1x9[_0x24c3[13]](200)[_0x24c3[12]](_0x98f1xc)})[_0x24c3[11]](function(_0x98f1xa){return handleError(_0x98f1x9,_0x98f1xa)})};exports[_0x24c3[17]]= function(_0x98f1x8,_0x98f1x9){return ChatMessage[_0x24c3[21]](_0x98f1x8[_0x24c3[20]][_0x24c3[19]])[_0x24c3[14]](function(_0x98f1xd){if(!_0x98f1xd){return _0x98f1x9[_0x24c3[18]](404)};return _0x98f1x9[_0x24c3[12]](_0x98f1xd)})[_0x24c3[11]](function(_0x98f1xa){return handleError(_0x98f1x9,_0x98f1xa)})};exports[_0x24c3[22]]= function(_0x98f1x8,_0x98f1x9,_0x98f1xe){return ChatMessage[_0x24c3[22]](_[_0x24c3[25]](_0x98f1x8[_0x24c3[23]],{UserId:_0x98f1x8[_0x24c3[24]][_0x24c3[19]]}))[_0x24c3[14]](function(_0x98f1xd){return _0x98f1x9[_0x24c3[13]](201)[_0x24c3[12]](_0x98f1xd)})[_0x24c3[11]](function(_0x98f1xa){return handleError(_0x98f1x9,_0x98f1xa)})};exports[_0x24c3[26]]= function(_0x98f1x8,_0x98f1x9){if(_0x98f1x8[_0x24c3[23]][_0x24c3[19]]){delete _0x98f1x8[_0x24c3[23]][_0x24c3[19]]};return ChatMessage[_0x24c3[21]](_0x98f1x8[_0x24c3[20]][_0x24c3[19]])[_0x24c3[14]](function(_0x98f1xd){if(!_0x98f1xd){return _0x98f1x9[_0x24c3[18]](404)};var _0x98f1xf=_[_0x24c3[25]](_0x98f1xd,_0x98f1x8[_0x24c3[23]]);return _0x98f1xf[_0x24c3[27]]()})[_0x24c3[14]](function(_0x98f1xd){return _0x98f1x9[_0x24c3[13]](200)[_0x24c3[12]](_0x98f1xd)})[_0x24c3[11]](function(_0x98f1xa){return handleError(_0x98f1x9,_0x98f1xa)})};exports[_0x24c3[28]]= function(_0x98f1x8,_0x98f1x9){return ChatMessage[_0x24c3[21]](_0x98f1x8[_0x24c3[20]][_0x24c3[19]])[_0x24c3[14]](function(_0x98f1xd){if(!_0x98f1xd){return _0x98f1x9[_0x24c3[18]](404)};return _0x98f1xd[_0x24c3[28]]()})[_0x24c3[14]](function(){return _0x98f1x9[_0x24c3[18]](204)})[_0x24c3[11]](function(_0x98f1xa){return handleError(_0x98f1x9,_0x98f1xa)})};function handleError(_0x98f1x9,_0x98f1xa){logger[_0x24c3[30]](_0x98f1xa[_0x24c3[29]]);return _0x98f1x9[_0x24c3[13]](500)[_0x24c3[12]](_0x98f1xa)}
\ No newline at end of file