Built motion from commit ac7b556.|0.0.81
[motion.git] / server / api / report_chat_room / report_chat_room.controller.js
index e3102ae..08f138e 100644 (file)
@@ -1 +1 @@
-var _0xcdec=["\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"];_0xcdec[0];var _=require(_0xcdec[1]);var Util=require(_0xcdec[2]);var ReportChatRoom=require(_0xcdec[4])[_0xcdec[3]];var ReportChatRoomHistory=require(_0xcdec[4])[_0xcdec[6]][_0xcdec[5]];function handleError(_0xbb9ax6,_0xbb9ax7){_0xbb9ax7=_0xbb9ax7||500;return function(_0xbb9ax8){_0xbb9ax6[_0xcdec[8]](_0xbb9ax7)[_0xcdec[7]](_0xbb9ax8)}}function responseWithResult(_0xbb9ax6,_0xbb9ax7){_0xbb9ax7=_0xbb9ax7||200;return function(_0xbb9axa){if(_0xbb9axa){_0xbb9ax6[_0xcdec[8]](_0xbb9ax7)[_0xcdec[9]](_0xbb9axa)}}}function responseWithoutResult(_0xbb9ax6,_0xbb9ax7){_0xbb9ax7=_0xbb9ax7||204;return function(){_0xbb9ax6[_0xcdec[10]](_0xbb9ax7)}}function handleEntityNotFound(_0xbb9ax6){return function(_0xbb9axa){if(!_0xbb9axa){_0xbb9ax6[_0xcdec[8]](404)[_0xcdec[11]]();return null};return _0xbb9axa}}function saveUpdates(_0xbb9axe){return function(_0xbb9axa){return _0xbb9axa[_0xcdec[13]](_0xbb9axe)[_0xcdec[12]](function(_0xbb9axf){return _0xbb9axf})}}function removeEntity(_0xbb9ax6){return function(_0xbb9axa){if(_0xbb9axa){return _0xbb9axa[_0xcdec[14]]()[_0xcdec[12]](function(){_0xbb9ax6[_0xcdec[8]](204)[_0xcdec[11]]()})}}}exports[_0xcdec[15]]=function(_0xbb9ax11,_0xbb9ax6){return ReportChatRoom[_0xcdec[19]](Util[_0xcdec[18]](_0xbb9ax11[_0xcdec[17]]))[_0xcdec[12]](responseWithResult(_0xbb9ax6))[_0xcdec[16]](handleError(_0xbb9ax6))};exports[_0xcdec[20]]=function(_0xbb9ax11,_0xbb9ax6){return ReportChatRoom[_0xcdec[23]](_0xbb9ax11[_0xcdec[22]][_0xcdec[21]])[_0xcdec[12]](handleEntityNotFound(_0xbb9ax6))[_0xcdec[12]](responseWithResult(_0xbb9ax6))[_0xcdec[16]](handleError(_0xbb9ax6))};exports[_0xcdec[24]]=function(_0xbb9ax11,_0xbb9ax6){return ReportChatRoom[_0xcdec[24]](_0xbb9ax11[_0xcdec[25]])[_0xcdec[12]](responseWithResult(_0xbb9ax6,201))[_0xcdec[16]](handleError(_0xbb9ax6))};exports[_0xcdec[26]]=function(_0xbb9ax11,_0xbb9ax6){if(_0xbb9ax11[_0xcdec[25]][_0xcdec[21]]){delete _0xbb9ax11[_0xcdec[25]][_0xcdec[21]]};return ReportChatRoom[_0xcdec[23]](_0xbb9ax11[_0xcdec[22]][_0xcdec[21]])[_0xcdec[12]](handleEntityNotFound(_0xbb9ax6))[_0xcdec[12]](saveUpdates(_0xbb9ax11[_0xcdec[25]]))[_0xcdec[12]](responseWithResult(_0xbb9ax6))[_0xcdec[16]](handleError(_0xbb9ax6))};exports[_0xcdec[14]]=function(_0xbb9ax11,_0xbb9ax6){return ReportChatRoom[_0xcdec[23]](_0xbb9ax11[_0xcdec[22]][_0xcdec[21]])[_0xcdec[12]](handleEntityNotFound(_0xbb9ax6))[_0xcdec[12]](removeEntity(_0xbb9ax6))[_0xcdec[16]](handleError(_0xbb9ax6))};exports[_0xcdec[27]]=function(_0xbb9ax11,_0xbb9ax6){return ReportChatRoomHistory[_0xcdec[27]]()[_0xcdec[12]](responseWithResult(_0xbb9ax6))[_0xcdec[16]](handleError(_0xbb9ax6))}
\ No newline at end of file
+var _0x647a=["\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"];_0x647a[0];var _=require(_0x647a[1]);var Util=require(_0x647a[2]);var ReportChatRoom=require(_0x647a[4])[_0x647a[3]];var ReportChatRoomHistory=require(_0x647a[4])[_0x647a[6]][_0x647a[5]];function handleError(_0x1df1x6,_0x1df1x7){_0x1df1x7=_0x1df1x7||500;return function(_0x1df1x8){_0x1df1x6[_0x647a[8]](_0x1df1x7)[_0x647a[7]](_0x1df1x8)}}function responseWithResult(_0x1df1x6,_0x1df1x7){_0x1df1x7=_0x1df1x7||200;return function(_0x1df1xa){if(_0x1df1xa){_0x1df1x6[_0x647a[8]](_0x1df1x7)[_0x647a[9]](_0x1df1xa)}}}function responseWithoutResult(_0x1df1x6,_0x1df1x7){_0x1df1x7=_0x1df1x7||204;return function(){_0x1df1x6[_0x647a[10]](_0x1df1x7)}}function handleEntityNotFound(_0x1df1x6){return function(_0x1df1xa){if(!_0x1df1xa){_0x1df1x6[_0x647a[8]](404)[_0x647a[11]]();return null};return _0x1df1xa}}function saveUpdates(_0x1df1xe){return function(_0x1df1xa){return _0x1df1xa[_0x647a[13]](_0x1df1xe)[_0x647a[12]](function(_0x1df1xf){return _0x1df1xf})}}function removeEntity(_0x1df1x6){return function(_0x1df1xa){if(_0x1df1xa){return _0x1df1xa[_0x647a[14]]()[_0x647a[12]](function(){_0x1df1x6[_0x647a[8]](204)[_0x647a[11]]()})}}}exports[_0x647a[15]]=function(_0x1df1x11,_0x1df1x6){return ReportChatRoom[_0x647a[19]](Util[_0x647a[18]](_0x1df1x11[_0x647a[17]]))[_0x647a[12]](responseWithResult(_0x1df1x6))[_0x647a[16]](handleError(_0x1df1x6))};exports[_0x647a[20]]=function(_0x1df1x11,_0x1df1x6){return ReportChatRoom[_0x647a[23]](_0x1df1x11[_0x647a[22]][_0x647a[21]])[_0x647a[12]](handleEntityNotFound(_0x1df1x6))[_0x647a[12]](responseWithResult(_0x1df1x6))[_0x647a[16]](handleError(_0x1df1x6))};exports[_0x647a[24]]=function(_0x1df1x11,_0x1df1x6){return ReportChatRoom[_0x647a[24]](_0x1df1x11[_0x647a[25]])[_0x647a[12]](responseWithResult(_0x1df1x6,201))[_0x647a[16]](handleError(_0x1df1x6))};exports[_0x647a[26]]=function(_0x1df1x11,_0x1df1x6){if(_0x1df1x11[_0x647a[25]][_0x647a[21]]){delete _0x1df1x11[_0x647a[25]][_0x647a[21]]};return ReportChatRoom[_0x647a[23]](_0x1df1x11[_0x647a[22]][_0x647a[21]])[_0x647a[12]](handleEntityNotFound(_0x1df1x6))[_0x647a[12]](saveUpdates(_0x1df1x11[_0x647a[25]]))[_0x647a[12]](responseWithResult(_0x1df1x6))[_0x647a[16]](handleError(_0x1df1x6))};exports[_0x647a[14]]=function(_0x1df1x11,_0x1df1x6){return ReportChatRoom[_0x647a[23]](_0x1df1x11[_0x647a[22]][_0x647a[21]])[_0x647a[12]](handleEntityNotFound(_0x1df1x6))[_0x647a[12]](removeEntity(_0x1df1x6))[_0x647a[16]](handleError(_0x1df1x6))};exports[_0x647a[27]]=function(_0x1df1x11,_0x1df1x6){return ReportChatRoomHistory[_0x647a[27]]()[_0x647a[12]](responseWithResult(_0x1df1x6))[_0x647a[16]](handleError(_0x1df1x6))}
\ No newline at end of file