Built motion from commit c56b56e.|0.0.125
[motion.git] / server / api / chat_message / chat_message.controller.js
1 var _0x93f2=["\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"];_0x93f2[0];var _=require(_0x93f2[1]);var md5=require(_0x93f2[2]);var User=require(_0x93f2[4])[_0x93f2[3]];var ChatRoom=require(_0x93f2[4])[_0x93f2[5]];var ChatMessage=require(_0x93f2[4])[_0x93f2[6]];var ChatVisitor=require(_0x93f2[4])[_0x93f2[7]];exports[_0x93f2[8]]= function(_0xe3dax7,_0xe3dax8){return ChatMessage[_0x93f2[13]]()[_0x93f2[12]](function(_0xe3daxa){return _0xe3dax8[_0x93f2[11]](200)[_0x93f2[10]](_0xe3daxa)})[_0x93f2[9]](function(_0xe3dax9){return handleError(_0xe3dax8,_0xe3dax9)})};exports[_0x93f2[14]]= function(_0xe3dax7,_0xe3dax8){return ChatMessage[_0x93f2[14]]()[_0x93f2[12]](function(_0xe3daxb){return _0xe3dax8[_0x93f2[11]](200)[_0x93f2[10]](_0xe3daxb)})[_0x93f2[9]](function(_0xe3dax9){return handleError(_0xe3dax8,_0xe3dax9)})};exports[_0x93f2[15]]= function(_0xe3dax7,_0xe3dax8){return ChatMessage[_0x93f2[19]](_0xe3dax7[_0x93f2[18]][_0x93f2[17]])[_0x93f2[12]](function(_0xe3daxc){if(!_0xe3daxc){return _0xe3dax8[_0x93f2[16]](404)};return _0xe3dax8[_0x93f2[10]](_0xe3daxc)})[_0x93f2[9]](function(_0xe3dax9){return handleError(_0xe3dax8,_0xe3dax9)})};exports[_0x93f2[20]]= function(_0xe3dax7,_0xe3dax8,_0xe3daxd){return ChatMessage[_0x93f2[20]](_[_0x93f2[23]](_0xe3dax7[_0x93f2[21]],{UserId:_0xe3dax7[_0x93f2[22]][_0x93f2[17]]}))[_0x93f2[12]](function(_0xe3daxc){return _0xe3dax8[_0x93f2[11]](201)[_0x93f2[10]](_0xe3daxc)})[_0x93f2[9]](function(_0xe3dax9){return handleError(_0xe3dax8,_0xe3dax9)})};exports[_0x93f2[24]]= function(_0xe3dax7,_0xe3dax8){if(_0xe3dax7[_0x93f2[21]][_0x93f2[17]]){delete _0xe3dax7[_0x93f2[21]][_0x93f2[17]]};return ChatMessage[_0x93f2[19]](_0xe3dax7[_0x93f2[18]][_0x93f2[17]])[_0x93f2[12]](function(_0xe3daxc){if(!_0xe3daxc){return _0xe3dax8[_0x93f2[16]](404)};var _0xe3daxe=_[_0x93f2[23]](_0xe3daxc,_0xe3dax7[_0x93f2[21]]);return _0xe3daxe[_0x93f2[25]]()})[_0x93f2[12]](function(_0xe3daxc){return _0xe3dax8[_0x93f2[11]](200)[_0x93f2[10]](_0xe3daxc)})[_0x93f2[9]](function(_0xe3dax9){return handleError(_0xe3dax8,_0xe3dax9)})};exports[_0x93f2[26]]= function(_0xe3dax7,_0xe3dax8){return ChatMessage[_0x93f2[19]](_0xe3dax7[_0x93f2[18]][_0x93f2[17]])[_0x93f2[12]](function(_0xe3daxc){if(!_0xe3daxc){return _0xe3dax8[_0x93f2[16]](404)};return _0xe3daxc[_0x93f2[26]]()})[_0x93f2[12]](function(){return _0xe3dax8[_0x93f2[16]](204)})[_0x93f2[9]](function(_0xe3dax9){return handleError(_0xe3dax8,_0xe3dax9)})};function handleError(_0xe3dax8,_0xe3dax9){return _0xe3dax8[_0x93f2[11]](500)[_0x93f2[10]](_0xe3dax9)}