Built motion from commit 5b01f56.|0.0.106
[motion.git] / server / api / report_chat_room / report_chat_room.controller.js
index bf1483a..1e5e332 100644 (file)
@@ -1 +1 @@
-var _0x7270=["\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"];_0x7270[0];var _=require(_0x7270[1]);var Util=require(_0x7270[2]);var ReportChatRoom=require(_0x7270[4])[_0x7270[3]];var ReportChatRoomHistory=require(_0x7270[4])[_0x7270[6]][_0x7270[5]];var User=require(_0x7270[4])[_0x7270[7]];var ChatQueue=require(_0x7270[4])[_0x7270[8]];function handleError(_0xf3c3x8,_0xf3c3x9){_0xf3c3x9=_0xf3c3x9||500;return function(_0xf3c3xa){console[_0x7270[9]](_0xf3c3xa);_0xf3c3x8[_0x7270[11]](_0xf3c3x9)[_0x7270[10]](_0xf3c3xa)}}function responseWithResult(_0xf3c3x8,_0xf3c3x9){_0xf3c3x9=_0xf3c3x9||200;return function(_0xf3c3xc){if(_0xf3c3xc){_0xf3c3x8[_0x7270[11]](_0xf3c3x9)[_0x7270[12]](_0xf3c3xc)}}}function responseWithoutResult(_0xf3c3x8,_0xf3c3x9){_0xf3c3x9=_0xf3c3x9||204;return function(){_0xf3c3x8[_0x7270[13]](_0xf3c3x9)}}function handleEntityNotFound(_0xf3c3x8){return function(_0xf3c3xc){if(!_0xf3c3xc){_0xf3c3x8[_0x7270[11]](404)[_0x7270[14]]();return null};return _0xf3c3xc}}function saveUpdates(_0xf3c3x10){return function(_0xf3c3xc){return _0xf3c3xc[_0x7270[16]](_0xf3c3x10)[_0x7270[15]](function(_0xf3c3x11){return _0xf3c3x11})}}function removeEntity(_0xf3c3x8){return function(_0xf3c3xc){if(_0xf3c3xc){return _0xf3c3xc[_0x7270[17]]()[_0x7270[15]](function(){_0xf3c3x8[_0x7270[11]](204)[_0x7270[14]]()})}}}function getChatQueues(_0xf3c3x14){return function(){switch(_0xf3c3x14[_0x7270[26]]){case _0x7270[25]:return User[_0x7270[24]](_0xf3c3x14[_0x7270[18]],{attributes:[_0x7270[18]]})[_0x7270[15]](Util[_0x7270[23]]({},{attributes:[_0x7270[18]],include:[{raw:true,model:User,attributes:[_0x7270[18]]}]}))[_0x7270[15]](function(_0xf3c3x15){var _0xf3c3x16=[];_0xf3c3x15[_0x7270[22]][_0x7270[21]](function(_0xf3c3x17){_0xf3c3x16=_[_0x7270[20]](_0xf3c3x16,_[_0x7270[19]](_0xf3c3x17.Users,_0x7270[18]))});return {where:{$or:{queueid:_[_0x7270[19]](_0xf3c3x15[_0x7270[22]],_0x7270[18]),memberid:_0xf3c3x16}}}});default:return {}}}}exports[_0x7270[27]]=function(_0xf3c3x18,_0xf3c3x8){return Promise[_0x7270[32]]([])[_0x7270[15]](getChatQueues(_0xf3c3x18[_0x7270[25]]))[_0x7270[15]](function(_0xf3c3x1a){return ReportChatRoom[_0x7270[31]](_[_0x7270[30]]({where:{status:_0x7270[29]}},_0xf3c3x1a))})[_0x7270[15]](function(_0xf3c3x19){return _0xf3c3x8[_0x7270[11]](200)[_0x7270[10]]({value:_0xf3c3x19})})[_0x7270[28]](handleError(_0xf3c3x8))};exports[_0x7270[33]]=function(_0xf3c3x18,_0xf3c3x8){return Promise[_0x7270[32]]([])[_0x7270[15]](getChatQueues(_0xf3c3x18[_0x7270[25]]))[_0x7270[15]](function(_0xf3c3x1a){return ReportChatRoom[_0x7270[31]](_[_0x7270[30]]({where:{status:_0x7270[34]}},_0xf3c3x1a))})[_0x7270[15]](function(_0xf3c3x19){return _0xf3c3x8[_0x7270[11]](200)[_0x7270[10]]({value:_0xf3c3x19})})[_0x7270[28]](handleError(_0xf3c3x8))};exports[_0x7270[35]]=function(_0xf3c3x18,_0xf3c3x8){return Promise[_0x7270[32]]([])[_0x7270[15]](getChatQueues(_0xf3c3x18[_0x7270[25]]))[_0x7270[15]](function(_0xf3c3x1a){return ReportChatRoom[_0x7270[31]](_[_0x7270[30]]({where:{status:_0x7270[36]}},_0xf3c3x1a))})[_0x7270[15]](function(_0xf3c3x19){return _0xf3c3x8[_0x7270[11]](200)[_0x7270[10]]({value:_0xf3c3x19})})[_0x7270[28]](handleError(_0xf3c3x8))};exports[_0x7270[37]]=function(_0xf3c3x18,_0xf3c3x8){return Promise[_0x7270[32]]([])[_0x7270[15]](getChatQueues(_0xf3c3x18[_0x7270[25]]))[_0x7270[15]](function(_0xf3c3x1a){return ReportChatRoom[_0x7270[31]](_[_0x7270[30]]({where:{status:_0x7270[38]}},_0xf3c3x1a))})[_0x7270[15]](function(_0xf3c3x19){return _0xf3c3x8[_0x7270[11]](200)[_0x7270[10]]({value:_0xf3c3x19})})[_0x7270[28]](handleError(_0xf3c3x8))};exports[_0x7270[39]]=function(_0xf3c3x18,_0xf3c3x8){return Promise[_0x7270[32]]([])[_0x7270[15]](getChatQueues(_0xf3c3x18[_0x7270[25]]))[_0x7270[15]](function(_0xf3c3x1a){return ReportChatRoom[_0x7270[31]](_[_0x7270[30]]({where:{status:_0x7270[40]}},_0xf3c3x1a))})[_0x7270[15]](function(_0xf3c3x19){return _0xf3c3x8[_0x7270[11]](200)[_0x7270[10]]({value:_0xf3c3x19})})[_0x7270[28]](handleError(_0xf3c3x8))};exports[_0x7270[41]]=function(_0xf3c3x18,_0xf3c3x8,_0xf3c3x1b){return ReportChatRoom[_0x7270[44]](Util[_0x7270[43]](_0xf3c3x18[_0x7270[42]]))[_0x7270[15]](function(_0xf3c3x1c){return _0xf3c3x8[_0x7270[11]](200)[_0x7270[10]](_0xf3c3x1c)})[_0x7270[28]](handleError(_0xf3c3x8))};exports[_0x7270[45]]=function(_0xf3c3x18,_0xf3c3x8){return ReportChatRoomHistory[_0x7270[45]]()[_0x7270[15]](responseWithResult(_0xf3c3x8))[_0x7270[28]](handleError(_0xf3c3x8))}
\ No newline at end of file
+var _0x4731=["\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"];_0x4731[0];var _=require(_0x4731[1]);var Util=require(_0x4731[2]);var ReportChatRoom=require(_0x4731[4])[_0x4731[3]];var ReportChatRoomHistory=require(_0x4731[4])[_0x4731[6]][_0x4731[5]];var User=require(_0x4731[4])[_0x4731[7]];var ChatQueue=require(_0x4731[4])[_0x4731[8]];function handleError(_0x25fex8,_0x25fex9){_0x25fex9=_0x25fex9||500;return function(_0x25fexa){console[_0x4731[9]](_0x25fexa);_0x25fex8[_0x4731[11]](_0x25fex9)[_0x4731[10]](_0x25fexa)}}function responseWithResult(_0x25fex8,_0x25fex9){_0x25fex9=_0x25fex9||200;return function(_0x25fexc){if(_0x25fexc){_0x25fex8[_0x4731[11]](_0x25fex9)[_0x4731[12]](_0x25fexc)}}}function responseWithoutResult(_0x25fex8,_0x25fex9){_0x25fex9=_0x25fex9||204;return function(){_0x25fex8[_0x4731[13]](_0x25fex9)}}function handleEntityNotFound(_0x25fex8){return function(_0x25fexc){if(!_0x25fexc){_0x25fex8[_0x4731[11]](404)[_0x4731[14]]();return null};return _0x25fexc}}function saveUpdates(_0x25fex10){return function(_0x25fexc){return _0x25fexc[_0x4731[16]](_0x25fex10)[_0x4731[15]](function(_0x25fex11){return _0x25fex11})}}function removeEntity(_0x25fex8){return function(_0x25fexc){if(_0x25fexc){return _0x25fexc[_0x4731[17]]()[_0x4731[15]](function(){_0x25fex8[_0x4731[11]](204)[_0x4731[14]]()})}}}function getChatQueues(_0x25fex14){return function(){switch(_0x25fex14[_0x4731[26]]){case _0x4731[25]:return User[_0x4731[24]](_0x25fex14[_0x4731[18]],{attributes:[_0x4731[18]]})[_0x4731[15]](Util[_0x4731[23]]({},{attributes:[_0x4731[18]],include:[{raw:true,model:User,attributes:[_0x4731[18]]}]}))[_0x4731[15]](function(_0x25fex15){var _0x25fex16=[];_0x25fex15[_0x4731[22]][_0x4731[21]](function(_0x25fex17){_0x25fex16=_[_0x4731[20]](_0x25fex16,_[_0x4731[19]](_0x25fex17.Users,_0x4731[18]))});return {where:{$or:{queueid:_[_0x4731[19]](_0x25fex15[_0x4731[22]],_0x4731[18]),memberid:_0x25fex16}}}});default:return {}}}}exports[_0x4731[27]]=function(_0x25fex18,_0x25fex8){return Promise[_0x4731[32]]([])[_0x4731[15]](getChatQueues(_0x25fex18[_0x4731[25]]))[_0x4731[15]](function(_0x25fex1a){return ReportChatRoom[_0x4731[31]](_[_0x4731[30]]({where:{status:_0x4731[29]}},_0x25fex1a))})[_0x4731[15]](function(_0x25fex19){return _0x25fex8[_0x4731[11]](200)[_0x4731[10]]({value:_0x25fex19})})[_0x4731[28]](handleError(_0x25fex8))};exports[_0x4731[33]]=function(_0x25fex18,_0x25fex8){return Promise[_0x4731[32]]([])[_0x4731[15]](getChatQueues(_0x25fex18[_0x4731[25]]))[_0x4731[15]](function(_0x25fex1a){return ReportChatRoom[_0x4731[31]](_[_0x4731[30]]({where:{status:_0x4731[34]}},_0x25fex1a))})[_0x4731[15]](function(_0x25fex19){return _0x25fex8[_0x4731[11]](200)[_0x4731[10]]({value:_0x25fex19})})[_0x4731[28]](handleError(_0x25fex8))};exports[_0x4731[35]]=function(_0x25fex18,_0x25fex8){return Promise[_0x4731[32]]([])[_0x4731[15]](getChatQueues(_0x25fex18[_0x4731[25]]))[_0x4731[15]](function(_0x25fex1a){return ReportChatRoom[_0x4731[31]](_[_0x4731[30]]({where:{status:_0x4731[36]}},_0x25fex1a))})[_0x4731[15]](function(_0x25fex19){return _0x25fex8[_0x4731[11]](200)[_0x4731[10]]({value:_0x25fex19})})[_0x4731[28]](handleError(_0x25fex8))};exports[_0x4731[37]]=function(_0x25fex18,_0x25fex8){return Promise[_0x4731[32]]([])[_0x4731[15]](getChatQueues(_0x25fex18[_0x4731[25]]))[_0x4731[15]](function(_0x25fex1a){return ReportChatRoom[_0x4731[31]](_[_0x4731[30]]({where:{status:_0x4731[38]}},_0x25fex1a))})[_0x4731[15]](function(_0x25fex19){return _0x25fex8[_0x4731[11]](200)[_0x4731[10]]({value:_0x25fex19})})[_0x4731[28]](handleError(_0x25fex8))};exports[_0x4731[39]]=function(_0x25fex18,_0x25fex8){return Promise[_0x4731[32]]([])[_0x4731[15]](getChatQueues(_0x25fex18[_0x4731[25]]))[_0x4731[15]](function(_0x25fex1a){return ReportChatRoom[_0x4731[31]](_[_0x4731[30]]({where:{status:_0x4731[40]}},_0x25fex1a))})[_0x4731[15]](function(_0x25fex19){return _0x25fex8[_0x4731[11]](200)[_0x4731[10]]({value:_0x25fex19})})[_0x4731[28]](handleError(_0x25fex8))};exports[_0x4731[41]]=function(_0x25fex18,_0x25fex8,_0x25fex1b){return ReportChatRoom[_0x4731[44]](Util[_0x4731[43]](_0x25fex18[_0x4731[42]]))[_0x4731[15]](function(_0x25fex1c){return _0x25fex8[_0x4731[11]](200)[_0x4731[10]](_0x25fex1c)})[_0x4731[28]](handleError(_0x25fex8))};exports[_0x4731[45]]=function(_0x25fex18,_0x25fex8){return ReportChatRoomHistory[_0x4731[45]]()[_0x4731[15]](responseWithResult(_0x25fex8))[_0x4731[28]](handleError(_0x25fex8))}
\ No newline at end of file