Built motion from commit 88adb3b.|0.0.75
[motion.git] / server / api / report_chat_room / report_chat_room.controller.js
1 var _0x5498=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x75\x74\x69\x6C","\x52\x65\x70\x6F\x72\x74\x43\x68\x61\x74\x52\x6F\x6F\x6D","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x52\x65\x70\x6F\x72\x74\x43\x68\x61\x74\x52\x6F\x6F\x6D\x48\x69\x73\x74\x6F\x72\x79","\x68\x69\x73\x74\x6F\x72\x79","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x6A\x73\x6F\x6E","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x65\x6E\x64","\x74\x68\x65\x6E","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x64\x65\x73\x74\x72\x6F\x79","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x71\x75\x65\x72\x79","\x67\x65\x74\x51\x75\x65\x72\x79","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\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\x70\x64\x61\x74\x65","\x64\x65\x73\x63\x72\x69\x62\x65"];_0x5498[0];var _=require(_0x5498[1]);var Util=require(_0x5498[2]);var ReportChatRoom=require(_0x5498[4])[_0x5498[3]];var ReportChatRoomHistory=require(_0x5498[4])[_0x5498[6]][_0x5498[5]];function handleError(_0xfb06x6,_0xfb06x7){_0xfb06x7=_0xfb06x7||500;return function(_0xfb06x8){_0xfb06x6[_0x5498[8]](_0xfb06x7)[_0x5498[7]](_0xfb06x8)}}function responseWithResult(_0xfb06x6,_0xfb06x7){_0xfb06x7=_0xfb06x7||200;return function(_0xfb06xa){if(_0xfb06xa){_0xfb06x6[_0x5498[8]](_0xfb06x7)[_0x5498[9]](_0xfb06xa)}}}function responseWithoutResult(_0xfb06x6,_0xfb06x7){_0xfb06x7=_0xfb06x7||204;return function(){_0xfb06x6[_0x5498[10]](_0xfb06x7)}}function handleEntityNotFound(_0xfb06x6){return function(_0xfb06xa){if(!_0xfb06xa){_0xfb06x6[_0x5498[8]](404)[_0x5498[11]]();return null};return _0xfb06xa}}function saveUpdates(_0xfb06xe){return function(_0xfb06xa){return _0xfb06xa[_0x5498[13]](_0xfb06xe)[_0x5498[12]](function(_0xfb06xf){return _0xfb06xf})}}function removeEntity(_0xfb06x6){return function(_0xfb06xa){if(_0xfb06xa){return _0xfb06xa[_0x5498[14]]()[_0x5498[12]](function(){_0xfb06x6[_0x5498[8]](204)[_0x5498[11]]()})}}}exports[_0x5498[15]]=function(_0xfb06x11,_0xfb06x6){return ReportChatRoom[_0x5498[19]](Util[_0x5498[18]](_0xfb06x11[_0x5498[17]]))[_0x5498[12]](responseWithResult(_0xfb06x6))[_0x5498[16]](handleError(_0xfb06x6))};exports[_0x5498[20]]=function(_0xfb06x11,_0xfb06x6){return ReportChatRoom[_0x5498[23]](_0xfb06x11[_0x5498[22]][_0x5498[21]])[_0x5498[12]](handleEntityNotFound(_0xfb06x6))[_0x5498[12]](responseWithResult(_0xfb06x6))[_0x5498[16]](handleError(_0xfb06x6))};exports[_0x5498[24]]=function(_0xfb06x11,_0xfb06x6){return ReportChatRoom[_0x5498[24]](_0xfb06x11[_0x5498[25]])[_0x5498[12]](responseWithResult(_0xfb06x6,201))[_0x5498[16]](handleError(_0xfb06x6))};exports[_0x5498[26]]=function(_0xfb06x11,_0xfb06x6){if(_0xfb06x11[_0x5498[25]][_0x5498[21]]){delete _0xfb06x11[_0x5498[25]][_0x5498[21]]};return ReportChatRoom[_0x5498[23]](_0xfb06x11[_0x5498[22]][_0x5498[21]])[_0x5498[12]](handleEntityNotFound(_0xfb06x6))[_0x5498[12]](saveUpdates(_0xfb06x11[_0x5498[25]]))[_0x5498[12]](responseWithResult(_0xfb06x6))[_0x5498[16]](handleError(_0xfb06x6))};exports[_0x5498[14]]=function(_0xfb06x11,_0xfb06x6){return ReportChatRoom[_0x5498[23]](_0xfb06x11[_0x5498[22]][_0x5498[21]])[_0x5498[12]](handleEntityNotFound(_0xfb06x6))[_0x5498[12]](removeEntity(_0xfb06x6))[_0x5498[16]](handleError(_0xfb06x6))};exports[_0x5498[27]]=function(_0xfb06x11,_0xfb06x6){return ReportChatRoomHistory[_0x5498[27]]()[_0x5498[12]](responseWithResult(_0xfb06x6))[_0x5498[16]](handleError(_0xfb06x6))}