1 var _0x1297=["\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","\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"];_0x1297[0];var _=require(_0x1297[1]);var md5=require(_0x1297[2]);var User=require(_0x1297[4])[_0x1297[3]];var ChatRoom=require(_0x1297[4])[_0x1297[5]];var ChatMessage=require(_0x1297[4])[_0x1297[6]];var ChatVisitor=require(_0x1297[4])[_0x1297[7]];exports[_0x1297[8]]=function(_0x7653x7,_0x7653x8){return ChatMessage[_0x1297[13]]()[_0x1297[12]](function(_0x7653xa){return _0x7653x8[_0x1297[11]](200)[_0x1297[10]](_0x7653xa)})[_0x1297[9]](function(_0x7653x9){return handleError(_0x7653x8,_0x7653x9)})};exports[_0x1297[14]]=function(_0x7653x7,_0x7653x8){return ChatMessage[_0x1297[18]](_0x7653x7[_0x1297[17]][_0x1297[16]])[_0x1297[12]](function(_0x7653xb){if(!_0x7653xb){return _0x7653x8[_0x1297[15]](404)};return _0x7653x8[_0x1297[10]](_0x7653xb)})[_0x1297[9]](function(_0x7653x9){return handleError(_0x7653x8,_0x7653x9)})};exports[_0x1297[19]]=function(_0x7653x7,_0x7653x8,_0x7653xc){return ChatMessage[_0x1297[19]](_[_0x1297[22]](_0x7653x7[_0x1297[20]],{UserId:_0x7653x7[_0x1297[21]][_0x1297[16]]}))[_0x1297[12]](function(_0x7653xb){return _0x7653x8[_0x1297[11]](201)[_0x1297[10]](_0x7653xb)})[_0x1297[9]](function(_0x7653x9){return handleError(_0x7653x8,_0x7653x9)})};exports[_0x1297[23]]=function(_0x7653x7,_0x7653x8){if(_0x7653x7[_0x1297[20]][_0x1297[16]]){delete _0x7653x7[_0x1297[20]][_0x1297[16]]};return ChatMessage[_0x1297[18]](_0x7653x7[_0x1297[17]][_0x1297[16]])[_0x1297[12]](function(_0x7653xb){if(!_0x7653xb){return _0x7653x8[_0x1297[15]](404)};var _0x7653xd=_[_0x1297[22]](_0x7653xb,_0x7653x7[_0x1297[20]]);return _0x7653xd[_0x1297[24]]()})[_0x1297[12]](function(_0x7653xb){return _0x7653x8[_0x1297[11]](200)[_0x1297[10]](_0x7653xb)})[_0x1297[9]](function(_0x7653x9){return handleError(_0x7653x8,_0x7653x9)})};exports[_0x1297[25]]=function(_0x7653x7,_0x7653x8){return ChatMessage[_0x1297[18]](_0x7653x7[_0x1297[17]][_0x1297[16]])[_0x1297[12]](function(_0x7653xb){if(!_0x7653xb){return _0x7653x8[_0x1297[15]](404)};return _0x7653xb[_0x1297[25]]()})[_0x1297[12]](function(){return _0x7653x8[_0x1297[15]](204)})[_0x1297[9]](function(_0x7653x9){return handleError(_0x7653x8,_0x7653x9)})};function handleError(_0x7653x8,_0x7653x9){return _0x7653x8[_0x1297[11]](500)[_0x1297[10]](_0x7653x9)}