Built motion from commit 36b8e3b.|0.0.111
[motion.git] / server / api / report_chat_room / report_chat_room.controller.js
index c6288a3..e8f5b12 100644 (file)
@@ -1 +1 @@
-var _0x3f54=["\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","\x55\x73\x65\x72","\x43\x68\x61\x74\x51\x75\x65\x75\x65","\x6C\x6F\x67","\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\x64","\x6D\x61\x70","\x75\x6E\x69\x6F\x6E","\x66\x6F\x72\x45\x61\x63\x68","\x72\x6F\x77\x73","\x67\x65\x74\x4D\x61\x69\x6C\x51\x75\x65\x75\x65\x73\x49\x64\x42\x79\x55\x73\x65\x72","\x66\x69\x6E\x64\x42\x79\x49\x64","\x75\x73\x65\x72","\x72\x6F\x6C\x65","\x6F\x70\x65\x6E","\x63\x61\x74\x63\x68","\x4F\x50\x45\x4E","\x6D\x65\x72\x67\x65","\x63\x6F\x75\x6E\x74","\x61\x6C\x6C","\x63\x6C\x6F\x73\x65\x64","\x43\x4C\x4F\x53\x45\x44","\x6E\x65\x77","\x4E\x45\x57","\x75\x6E\x6D\x61\x6E\x61\x67\x65\x64","\x55\x4E\x4D\x41\x4E\x41\x47\x45\x44","\x61\x62\x61\x6E\x64\x6F\x6E\x65\x64","\x41\x42\x41\x4E\x44\x4F\x4E","\x69\x6E\x64\x65\x78","\x71\x75\x65\x72\x79","\x67\x65\x74\x51\x75\x65\x72\x79","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x64\x65\x73\x63\x72\x69\x62\x65"];_0x3f54[0];var _=require(_0x3f54[1]);var Util=require(_0x3f54[2]);var ReportChatRoom=require(_0x3f54[4])[_0x3f54[3]];var ReportChatRoomHistory=require(_0x3f54[4])[_0x3f54[6]][_0x3f54[5]];var User=require(_0x3f54[4])[_0x3f54[7]];var ChatQueue=require(_0x3f54[4])[_0x3f54[8]];function handleError(_0x2ec6x8,_0x2ec6x9){_0x2ec6x9=_0x2ec6x9||500;return function(_0x2ec6xa){console[_0x3f54[9]](_0x2ec6xa);_0x2ec6x8[_0x3f54[11]](_0x2ec6x9)[_0x3f54[10]](_0x2ec6xa)}}function responseWithResult(_0x2ec6x8,_0x2ec6x9){_0x2ec6x9=_0x2ec6x9||200;return function(_0x2ec6xc){if(_0x2ec6xc){_0x2ec6x8[_0x3f54[11]](_0x2ec6x9)[_0x3f54[12]](_0x2ec6xc)}}}function responseWithoutResult(_0x2ec6x8,_0x2ec6x9){_0x2ec6x9=_0x2ec6x9||204;return function(){_0x2ec6x8[_0x3f54[13]](_0x2ec6x9)}}function handleEntityNotFound(_0x2ec6x8){return function(_0x2ec6xc){if(!_0x2ec6xc){_0x2ec6x8[_0x3f54[11]](404)[_0x3f54[14]]();return null};return _0x2ec6xc}}function saveUpdates(_0x2ec6x10){return function(_0x2ec6xc){return _0x2ec6xc[_0x3f54[16]](_0x2ec6x10)[_0x3f54[15]](function(_0x2ec6x11){return _0x2ec6x11})}}function removeEntity(_0x2ec6x8){return function(_0x2ec6xc){if(_0x2ec6xc){return _0x2ec6xc[_0x3f54[17]]()[_0x3f54[15]](function(){_0x2ec6x8[_0x3f54[11]](204)[_0x3f54[14]]()})}}}function getChatQueues(_0x2ec6x14){return function(){switch(_0x2ec6x14[_0x3f54[26]]){case _0x3f54[25]:return User[_0x3f54[24]](_0x2ec6x14[_0x3f54[18]],{attributes:[_0x3f54[18]]})[_0x3f54[15]](Util[_0x3f54[23]]({},{attributes:[_0x3f54[18]],include:[{raw:true,model:User,attributes:[_0x3f54[18]]}]}))[_0x3f54[15]](function(_0x2ec6x15){var _0x2ec6x16=[];_0x2ec6x15[_0x3f54[22]][_0x3f54[21]](function(_0x2ec6x17){_0x2ec6x16=_[_0x3f54[20]](_0x2ec6x16,_[_0x3f54[19]](_0x2ec6x17.Users,_0x3f54[18]))});return {where:{$or:{queueid:_[_0x3f54[19]](_0x2ec6x15[_0x3f54[22]],_0x3f54[18]),memberid:_0x2ec6x16}}}});default:return {}}}}exports[_0x3f54[27]]=function(_0x2ec6x18,_0x2ec6x8){return Promise[_0x3f54[32]]([])[_0x3f54[15]](getChatQueues(_0x2ec6x18[_0x3f54[25]]))[_0x3f54[15]](function(_0x2ec6x1a){return ReportChatRoom[_0x3f54[31]](_[_0x3f54[30]]({where:{status:_0x3f54[29]}},_0x2ec6x1a))})[_0x3f54[15]](function(_0x2ec6x19){return _0x2ec6x8[_0x3f54[11]](200)[_0x3f54[10]]({value:_0x2ec6x19})})[_0x3f54[28]](handleError(_0x2ec6x8))};exports[_0x3f54[33]]=function(_0x2ec6x18,_0x2ec6x8){return Promise[_0x3f54[32]]([])[_0x3f54[15]](getChatQueues(_0x2ec6x18[_0x3f54[25]]))[_0x3f54[15]](function(_0x2ec6x1a){return ReportChatRoom[_0x3f54[31]](_[_0x3f54[30]]({where:{status:_0x3f54[34]}},_0x2ec6x1a))})[_0x3f54[15]](function(_0x2ec6x19){return _0x2ec6x8[_0x3f54[11]](200)[_0x3f54[10]]({value:_0x2ec6x19})})[_0x3f54[28]](handleError(_0x2ec6x8))};exports[_0x3f54[35]]=function(_0x2ec6x18,_0x2ec6x8){return Promise[_0x3f54[32]]([])[_0x3f54[15]](getChatQueues(_0x2ec6x18[_0x3f54[25]]))[_0x3f54[15]](function(_0x2ec6x1a){return ReportChatRoom[_0x3f54[31]](_[_0x3f54[30]]({where:{status:_0x3f54[36]}},_0x2ec6x1a))})[_0x3f54[15]](function(_0x2ec6x19){return _0x2ec6x8[_0x3f54[11]](200)[_0x3f54[10]]({value:_0x2ec6x19})})[_0x3f54[28]](handleError(_0x2ec6x8))};exports[_0x3f54[37]]=function(_0x2ec6x18,_0x2ec6x8){return Promise[_0x3f54[32]]([])[_0x3f54[15]](getChatQueues(_0x2ec6x18[_0x3f54[25]]))[_0x3f54[15]](function(_0x2ec6x1a){return ReportChatRoom[_0x3f54[31]](_[_0x3f54[30]]({where:{status:_0x3f54[38]}},_0x2ec6x1a))})[_0x3f54[15]](function(_0x2ec6x19){return _0x2ec6x8[_0x3f54[11]](200)[_0x3f54[10]]({value:_0x2ec6x19})})[_0x3f54[28]](handleError(_0x2ec6x8))};exports[_0x3f54[39]]=function(_0x2ec6x18,_0x2ec6x8){return Promise[_0x3f54[32]]([])[_0x3f54[15]](getChatQueues(_0x2ec6x18[_0x3f54[25]]))[_0x3f54[15]](function(_0x2ec6x1a){return ReportChatRoom[_0x3f54[31]](_[_0x3f54[30]]({where:{status:_0x3f54[40]}},_0x2ec6x1a))})[_0x3f54[15]](function(_0x2ec6x19){return _0x2ec6x8[_0x3f54[11]](200)[_0x3f54[10]]({value:_0x2ec6x19})})[_0x3f54[28]](handleError(_0x2ec6x8))};exports[_0x3f54[41]]=function(_0x2ec6x18,_0x2ec6x8,_0x2ec6x1b){return ReportChatRoom[_0x3f54[44]](Util[_0x3f54[43]](_0x2ec6x18[_0x3f54[42]]))[_0x3f54[15]](function(_0x2ec6x1c){return _0x2ec6x8[_0x3f54[11]](200)[_0x3f54[10]](_0x2ec6x1c)})[_0x3f54[28]](handleError(_0x2ec6x8))};exports[_0x3f54[45]]=function(_0x2ec6x18,_0x2ec6x8){return ReportChatRoomHistory[_0x3f54[45]]()[_0x3f54[15]](responseWithResult(_0x2ec6x8))[_0x3f54[28]](handleError(_0x2ec6x8))}
\ No newline at end of file
+var _0x3008=["\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","\x55\x73\x65\x72","\x43\x68\x61\x74\x51\x75\x65\x75\x65","\x6C\x6F\x67","\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\x64","\x6D\x61\x70","\x75\x6E\x69\x6F\x6E","\x66\x6F\x72\x45\x61\x63\x68","\x72\x6F\x77\x73","\x67\x65\x74\x4D\x61\x69\x6C\x51\x75\x65\x75\x65\x73\x49\x64\x42\x79\x55\x73\x65\x72","\x66\x69\x6E\x64\x42\x79\x49\x64","\x75\x73\x65\x72","\x72\x6F\x6C\x65","\x6F\x70\x65\x6E","\x63\x61\x74\x63\x68","\x4F\x50\x45\x4E","\x6D\x65\x72\x67\x65","\x63\x6F\x75\x6E\x74","\x61\x6C\x6C","\x63\x6C\x6F\x73\x65\x64","\x43\x4C\x4F\x53\x45\x44","\x6E\x65\x77","\x4E\x45\x57","\x75\x6E\x6D\x61\x6E\x61\x67\x65\x64","\x55\x4E\x4D\x41\x4E\x41\x47\x45\x44","\x61\x62\x61\x6E\x64\x6F\x6E\x65\x64","\x41\x42\x41\x4E\x44\x4F\x4E","\x69\x6E\x64\x65\x78","\x71\x75\x65\x72\x79","\x67\x65\x74\x51\x75\x65\x72\x79","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x64\x65\x73\x63\x72\x69\x62\x65"];_0x3008[0];var _=require(_0x3008[1]);var Util=require(_0x3008[2]);var ReportChatRoom=require(_0x3008[4])[_0x3008[3]];var ReportChatRoomHistory=require(_0x3008[4])[_0x3008[6]][_0x3008[5]];var User=require(_0x3008[4])[_0x3008[7]];var ChatQueue=require(_0x3008[4])[_0x3008[8]];function handleError(_0xbf40x8,_0xbf40x9){_0xbf40x9=_0xbf40x9||500;return function(_0xbf40xa){console[_0x3008[9]](_0xbf40xa);_0xbf40x8[_0x3008[11]](_0xbf40x9)[_0x3008[10]](_0xbf40xa)}}function responseWithResult(_0xbf40x8,_0xbf40x9){_0xbf40x9=_0xbf40x9||200;return function(_0xbf40xc){if(_0xbf40xc){_0xbf40x8[_0x3008[11]](_0xbf40x9)[_0x3008[12]](_0xbf40xc)}}}function responseWithoutResult(_0xbf40x8,_0xbf40x9){_0xbf40x9=_0xbf40x9||204;return function(){_0xbf40x8[_0x3008[13]](_0xbf40x9)}}function handleEntityNotFound(_0xbf40x8){return function(_0xbf40xc){if(!_0xbf40xc){_0xbf40x8[_0x3008[11]](404)[_0x3008[14]]();return null};return _0xbf40xc}}function saveUpdates(_0xbf40x10){return function(_0xbf40xc){return _0xbf40xc[_0x3008[16]](_0xbf40x10)[_0x3008[15]](function(_0xbf40x11){return _0xbf40x11})}}function removeEntity(_0xbf40x8){return function(_0xbf40xc){if(_0xbf40xc){return _0xbf40xc[_0x3008[17]]()[_0x3008[15]](function(){_0xbf40x8[_0x3008[11]](204)[_0x3008[14]]()})}}}function getChatQueues(_0xbf40x14){return function(){switch(_0xbf40x14[_0x3008[26]]){case _0x3008[25]:return User[_0x3008[24]](_0xbf40x14[_0x3008[18]],{attributes:[_0x3008[18]]})[_0x3008[15]](Util[_0x3008[23]]({},{attributes:[_0x3008[18]],include:[{raw:true,model:User,attributes:[_0x3008[18]]}]}))[_0x3008[15]](function(_0xbf40x15){var _0xbf40x16=[];_0xbf40x15[_0x3008[22]][_0x3008[21]](function(_0xbf40x17){_0xbf40x16=_[_0x3008[20]](_0xbf40x16,_[_0x3008[19]](_0xbf40x17.Users,_0x3008[18]))});return {where:{$or:{queueid:_[_0x3008[19]](_0xbf40x15[_0x3008[22]],_0x3008[18]),memberid:_0xbf40x16}}}});default:return {}}}}exports[_0x3008[27]]=function(_0xbf40x18,_0xbf40x8){return Promise[_0x3008[32]]([])[_0x3008[15]](getChatQueues(_0xbf40x18[_0x3008[25]]))[_0x3008[15]](function(_0xbf40x1a){return ReportChatRoom[_0x3008[31]](_[_0x3008[30]]({where:{status:_0x3008[29]}},_0xbf40x1a))})[_0x3008[15]](function(_0xbf40x19){return _0xbf40x8[_0x3008[11]](200)[_0x3008[10]]({value:_0xbf40x19})})[_0x3008[28]](handleError(_0xbf40x8))};exports[_0x3008[33]]=function(_0xbf40x18,_0xbf40x8){return Promise[_0x3008[32]]([])[_0x3008[15]](getChatQueues(_0xbf40x18[_0x3008[25]]))[_0x3008[15]](function(_0xbf40x1a){return ReportChatRoom[_0x3008[31]](_[_0x3008[30]]({where:{status:_0x3008[34]}},_0xbf40x1a))})[_0x3008[15]](function(_0xbf40x19){return _0xbf40x8[_0x3008[11]](200)[_0x3008[10]]({value:_0xbf40x19})})[_0x3008[28]](handleError(_0xbf40x8))};exports[_0x3008[35]]=function(_0xbf40x18,_0xbf40x8){return Promise[_0x3008[32]]([])[_0x3008[15]](getChatQueues(_0xbf40x18[_0x3008[25]]))[_0x3008[15]](function(_0xbf40x1a){return ReportChatRoom[_0x3008[31]](_[_0x3008[30]]({where:{status:_0x3008[36]}},_0xbf40x1a))})[_0x3008[15]](function(_0xbf40x19){return _0xbf40x8[_0x3008[11]](200)[_0x3008[10]]({value:_0xbf40x19})})[_0x3008[28]](handleError(_0xbf40x8))};exports[_0x3008[37]]=function(_0xbf40x18,_0xbf40x8){return Promise[_0x3008[32]]([])[_0x3008[15]](getChatQueues(_0xbf40x18[_0x3008[25]]))[_0x3008[15]](function(_0xbf40x1a){return ReportChatRoom[_0x3008[31]](_[_0x3008[30]]({where:{status:_0x3008[38]}},_0xbf40x1a))})[_0x3008[15]](function(_0xbf40x19){return _0xbf40x8[_0x3008[11]](200)[_0x3008[10]]({value:_0xbf40x19})})[_0x3008[28]](handleError(_0xbf40x8))};exports[_0x3008[39]]=function(_0xbf40x18,_0xbf40x8){return Promise[_0x3008[32]]([])[_0x3008[15]](getChatQueues(_0xbf40x18[_0x3008[25]]))[_0x3008[15]](function(_0xbf40x1a){return ReportChatRoom[_0x3008[31]](_[_0x3008[30]]({where:{status:_0x3008[40]}},_0xbf40x1a))})[_0x3008[15]](function(_0xbf40x19){return _0xbf40x8[_0x3008[11]](200)[_0x3008[10]]({value:_0xbf40x19})})[_0x3008[28]](handleError(_0xbf40x8))};exports[_0x3008[41]]=function(_0xbf40x18,_0xbf40x8,_0xbf40x1b){return ReportChatRoom[_0x3008[44]](Util[_0x3008[43]](_0xbf40x18[_0x3008[42]]))[_0x3008[15]](function(_0xbf40x1c){return _0xbf40x8[_0x3008[11]](200)[_0x3008[10]](_0xbf40x1c)})[_0x3008[28]](handleError(_0xbf40x8))};exports[_0x3008[45]]=function(_0xbf40x18,_0xbf40x8){return ReportChatRoomHistory[_0x3008[45]]()[_0x3008[15]](responseWithResult(_0xbf40x8))[_0x3008[28]](handleError(_0xbf40x8))}
\ No newline at end of file