Built motion from commit 450cc5d.|0.0.139
[motion.git] / server / api / report_chat_session / report_chat_session.controller.js
index 5ae65fe..1ca080d 100644 (file)
@@ -1 +1 @@
-var _0x4c02=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x52\x65\x70\x6F\x72\x74\x43\x68\x61\x74\x53\x65\x73\x73\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x55\x73\x65\x72","\x52\x65\x70\x6F\x72\x74\x43\x68\x61\x74\x53\x65\x73\x73\x69\x6F\x6E\x48\x69\x73\x74\x6F\x72\x79","\x68\x69\x73\x74\x6F\x72\x79","\x62\x6C\x75\x65\x62\x69\x72\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x75\x74\x69\x6C","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\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","\x69\x64","\x6D\x61\x70","\x75\x6E\x69\x6F\x6E","\x66\x6F\x72\x45\x61\x63\x68","\x72\x6F\x77\x73","\x67\x65\x74\x43\x68\x61\x74\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","\x67\x65\x74\x43\x68\x61\x74\x51\x75\x65\x75\x65\x73","\x61\x67\x65\x6E\x74","\x72\x6F\x6C\x65","\x77\x61\x69\x74\x69\x6E\x67\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x6C\x6F\x67","\x6D\x65\x72\x67\x65","\x66\x69\x6E\x64\x41\x6C\x6C","\x61\x6C\x6C","\x6F\x70\x65\x6E","\x63\x6F\x75\x6E\x74","\x77\x61\x69\x74\x69\x6E\x67","\x63\x6C\x6F\x73\x65\x64","\x74\x69\x6D\x65\x6F\x75\x74","\x61\x62\x61\x6E\x64\x6F\x6E\x65\x64"];_0x4c02[0];var _=require(_0x4c02[1]);var ReportChatSession=require(_0x4c02[3])[_0x4c02[2]];var User=require(_0x4c02[3])[_0x4c02[4]];var ReportChatSessionHistory=require(_0x4c02[3])[_0x4c02[6]][_0x4c02[5]];var Promise=require(_0x4c02[7]);var Util=require(_0x4c02[8]);exports[_0x4c02[9]]= function(_0xc20ex7,_0xc20ex8,_0xc20ex9){return ReportChatSession[_0x4c02[16]](Util[_0x4c02[15]](_0xc20ex7[_0x4c02[14]]))[_0x4c02[13]](function(_0xc20exb){_0xc20ex8[_0x4c02[12]](200)[_0x4c02[11]](_0xc20exb)})[_0x4c02[10]](function(_0xc20exa){return handleError(_0xc20ex8,_0xc20exa)})};exports[_0x4c02[17]]= function(_0xc20ex7,_0xc20ex8){return ReportChatSessionHistory[_0x4c02[17]]()[_0x4c02[13]](function(_0xc20exc){return _0xc20ex8[_0x4c02[12]](200)[_0x4c02[11]](_0xc20exc)})[_0x4c02[10]](function(_0xc20exa){return handleError(_0xc20ex8,_0xc20exa)})};function getChatQueues(_0xc20exe){return function(){switch(_0xc20exe[_0x4c02[28]]){case _0x4c02[25]:return User[_0x4c02[24]](_0xc20exe[_0x4c02[18]],{attributes:[_0x4c02[18]]})[_0x4c02[13]](Util[_0x4c02[23]]({},{attributes:[_0x4c02[18]],include:[{raw:true,model:User,attributes:[_0x4c02[18]]}]}))[_0x4c02[13]](function(_0xc20exf){var _0xc20ex10=[];_0xc20exf[_0x4c02[22]][_0x4c02[21]](function(_0xc20ex11){_0xc20ex10= _[_0x4c02[20]](_0xc20ex10,_[_0x4c02[19]](_0xc20ex11.Users,_0x4c02[18]))});return {$or:{queue:_[_0x4c02[19]](_0xc20exf[_0x4c02[22]],_0x4c02[18]),memberid:_0xc20ex10}}});case _0x4c02[27]:return User[_0x4c02[24]](_0xc20exe[_0x4c02[18]],{attributes:[_0x4c02[18]]})[_0x4c02[13]](function(_0xc20ex12){return _0xc20ex12[_0x4c02[26]]({attributes:[_0x4c02[18]]})})[_0x4c02[13]](function(_0xc20exf){return {$or:{queue:_[_0x4c02[19]](_0xc20exf,_0x4c02[18]),memberid:_0xc20exe[_0x4c02[18]]}}});default:return {}}}}exports[_0x4c02[29]]= function(_0xc20ex7,_0xc20ex8){return Promise[_0x4c02[33]]([])[_0x4c02[13]](getChatQueues(_0xc20ex7[_0x4c02[25]]))[_0x4c02[13]](function(_0xc20ex14){return ReportChatSession[_0x4c02[32]](Util[_0x4c02[15]](_0xc20ex7[_0x4c02[14]],_[_0x4c02[31]]({leaveAt:null},_0xc20ex14)))})[_0x4c02[13]](function(_0xc20ex13){return _0xc20ex8[_0x4c02[12]](200)[_0x4c02[11]]({rows:_0xc20ex13})})[_0x4c02[10]](function(_0xc20exa){console[_0x4c02[30]](_0xc20exa);return handleError(_0xc20ex8,_0xc20exa)})};exports[_0x4c02[34]]= function(_0xc20ex7,_0xc20ex8){return Promise[_0x4c02[33]]([])[_0x4c02[13]](getChatQueues(_0xc20ex7[_0x4c02[25]]))[_0x4c02[13]](function(_0xc20ex14){return ReportChatSession[_0x4c02[35]](Util[_0x4c02[15]](_0xc20ex7[_0x4c02[14]],_[_0x4c02[31]]({leaveAt:{$ne:null},complete:null,abandon:null,timeout:null},_0xc20ex14)))})[_0x4c02[13]](function(_0xc20ex13){return _0xc20ex8[_0x4c02[12]](200)[_0x4c02[11]]({value:_0xc20ex13})})[_0x4c02[10]](function(_0xc20exa){console[_0x4c02[30]](_0xc20exa);return handleError(_0xc20ex8,_0xc20exa)})};exports[_0x4c02[36]]= function(_0xc20ex7,_0xc20ex8){return Promise[_0x4c02[33]]([])[_0x4c02[13]](getChatQueues(_0xc20ex7[_0x4c02[25]]))[_0x4c02[13]](function(_0xc20ex14){return ReportChatSession[_0x4c02[35]](Util[_0x4c02[15]](_0xc20ex7[_0x4c02[14]],_[_0x4c02[31]]({leaveAt:null},_0xc20ex14)))})[_0x4c02[13]](function(_0xc20ex13){return _0xc20ex8[_0x4c02[12]](200)[_0x4c02[11]]({value:_0xc20ex13})})[_0x4c02[10]](function(_0xc20exa){console[_0x4c02[30]](_0xc20exa);return handleError(_0xc20ex8,_0xc20exa)})};exports[_0x4c02[37]]= function(_0xc20ex7,_0xc20ex8){return Promise[_0x4c02[33]]([])[_0x4c02[13]](getChatQueues(_0xc20ex7[_0x4c02[25]]))[_0x4c02[13]](function(_0xc20ex14){return ReportChatSession[_0x4c02[35]](Util[_0x4c02[15]](_0xc20ex7[_0x4c02[14]],_[_0x4c02[31]]({complete:true},_0xc20ex14)))})[_0x4c02[13]](function(_0xc20ex13){return _0xc20ex8[_0x4c02[12]](200)[_0x4c02[11]]({value:_0xc20ex13})})[_0x4c02[10]](function(_0xc20exa){console[_0x4c02[30]](_0xc20exa);return handleError(_0xc20ex8,_0xc20exa)})};exports[_0x4c02[38]]= function(_0xc20ex7,_0xc20ex8){return Promise[_0x4c02[33]]([])[_0x4c02[13]](getChatQueues(_0xc20ex7[_0x4c02[25]]))[_0x4c02[13]](function(_0xc20ex14){return ReportChatSession[_0x4c02[35]](Util[_0x4c02[15]](_0xc20ex7[_0x4c02[14]],_[_0x4c02[31]]({timeout:true},_0xc20ex14)))})[_0x4c02[13]](function(_0xc20ex13){return _0xc20ex8[_0x4c02[12]](200)[_0x4c02[11]]({value:_0xc20ex13})})[_0x4c02[10]](function(_0xc20exa){console[_0x4c02[30]](_0xc20exa);return handleError(_0xc20ex8,_0xc20exa)})};exports[_0x4c02[39]]= function(_0xc20ex7,_0xc20ex8){return Promise[_0x4c02[33]]([])[_0x4c02[13]](getChatQueues(_0xc20ex7[_0x4c02[25]]))[_0x4c02[13]](function(_0xc20ex14){return ReportChatSession[_0x4c02[35]](Util[_0x4c02[15]](_0xc20ex7[_0x4c02[14]],_[_0x4c02[31]]({abandon:true},_0xc20ex14)))})[_0x4c02[13]](function(_0xc20ex13){return _0xc20ex8[_0x4c02[12]](200)[_0x4c02[11]]({value:_0xc20ex13})})[_0x4c02[10]](function(_0xc20exa){console[_0x4c02[30]](_0xc20exa);return handleError(_0xc20ex8,_0xc20exa)})};function handleError(_0xc20ex8,_0xc20exa){return _0xc20ex8[_0x4c02[12]](500)[_0x4c02[11]](_0xc20exa)}
\ No newline at end of file
+var _0xf5eb=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x52\x65\x70\x6F\x72\x74\x43\x68\x61\x74\x53\x65\x73\x73\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x55\x73\x65\x72","\x52\x65\x70\x6F\x72\x74\x43\x68\x61\x74\x53\x65\x73\x73\x69\x6F\x6E\x48\x69\x73\x74\x6F\x72\x79","\x68\x69\x73\x74\x6F\x72\x79","\x62\x6C\x75\x65\x62\x69\x72\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x75\x74\x69\x6C","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\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","\x69\x64","\x6D\x61\x70","\x75\x6E\x69\x6F\x6E","\x66\x6F\x72\x45\x61\x63\x68","\x72\x6F\x77\x73","\x67\x65\x74\x43\x68\x61\x74\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","\x67\x65\x74\x43\x68\x61\x74\x51\x75\x65\x75\x65\x73","\x61\x67\x65\x6E\x74","\x72\x6F\x6C\x65","\x77\x61\x69\x74\x69\x6E\x67\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x6C\x6F\x67","\x6D\x65\x72\x67\x65","\x66\x69\x6E\x64\x41\x6C\x6C","\x61\x6C\x6C","\x6F\x70\x65\x6E","\x63\x6F\x75\x6E\x74","\x77\x61\x69\x74\x69\x6E\x67","\x63\x6C\x6F\x73\x65\x64","\x74\x69\x6D\x65\x6F\x75\x74","\x61\x62\x61\x6E\x64\x6F\x6E\x65\x64"];_0xf5eb[0];var _=require(_0xf5eb[1]);var ReportChatSession=require(_0xf5eb[3])[_0xf5eb[2]];var User=require(_0xf5eb[3])[_0xf5eb[4]];var ReportChatSessionHistory=require(_0xf5eb[3])[_0xf5eb[6]][_0xf5eb[5]];var Promise=require(_0xf5eb[7]);var Util=require(_0xf5eb[8]);exports[_0xf5eb[9]]= function(_0x774dx7,_0x774dx8,_0x774dx9){return ReportChatSession[_0xf5eb[16]](Util[_0xf5eb[15]](_0x774dx7[_0xf5eb[14]]))[_0xf5eb[13]](function(_0x774dxb){_0x774dx8[_0xf5eb[12]](200)[_0xf5eb[11]](_0x774dxb)})[_0xf5eb[10]](function(_0x774dxa){return handleError(_0x774dx8,_0x774dxa)})};exports[_0xf5eb[17]]= function(_0x774dx7,_0x774dx8){return ReportChatSessionHistory[_0xf5eb[17]]()[_0xf5eb[13]](function(_0x774dxc){return _0x774dx8[_0xf5eb[12]](200)[_0xf5eb[11]](_0x774dxc)})[_0xf5eb[10]](function(_0x774dxa){return handleError(_0x774dx8,_0x774dxa)})};function getChatQueues(_0x774dxe){return function(){switch(_0x774dxe[_0xf5eb[28]]){case _0xf5eb[25]:return User[_0xf5eb[24]](_0x774dxe[_0xf5eb[18]],{attributes:[_0xf5eb[18]]})[_0xf5eb[13]](Util[_0xf5eb[23]]({},{attributes:[_0xf5eb[18]],include:[{raw:true,model:User,attributes:[_0xf5eb[18]]}]}))[_0xf5eb[13]](function(_0x774dxf){var _0x774dx10=[];_0x774dxf[_0xf5eb[22]][_0xf5eb[21]](function(_0x774dx11){_0x774dx10= _[_0xf5eb[20]](_0x774dx10,_[_0xf5eb[19]](_0x774dx11.Users,_0xf5eb[18]))});return {$or:{queue:_[_0xf5eb[19]](_0x774dxf[_0xf5eb[22]],_0xf5eb[18]),memberid:_0x774dx10}}});case _0xf5eb[27]:return User[_0xf5eb[24]](_0x774dxe[_0xf5eb[18]],{attributes:[_0xf5eb[18]]})[_0xf5eb[13]](function(_0x774dx12){return _0x774dx12[_0xf5eb[26]]({attributes:[_0xf5eb[18]]})})[_0xf5eb[13]](function(_0x774dxf){return {$or:{queue:_[_0xf5eb[19]](_0x774dxf,_0xf5eb[18]),memberid:_0x774dxe[_0xf5eb[18]]}}});default:return {}}}}exports[_0xf5eb[29]]= function(_0x774dx7,_0x774dx8){return Promise[_0xf5eb[33]]([])[_0xf5eb[13]](getChatQueues(_0x774dx7[_0xf5eb[25]]))[_0xf5eb[13]](function(_0x774dx14){return ReportChatSession[_0xf5eb[32]](Util[_0xf5eb[15]](_0x774dx7[_0xf5eb[14]],_[_0xf5eb[31]]({leaveAt:null},_0x774dx14)))})[_0xf5eb[13]](function(_0x774dx13){return _0x774dx8[_0xf5eb[12]](200)[_0xf5eb[11]]({rows:_0x774dx13})})[_0xf5eb[10]](function(_0x774dxa){console[_0xf5eb[30]](_0x774dxa);return handleError(_0x774dx8,_0x774dxa)})};exports[_0xf5eb[34]]= function(_0x774dx7,_0x774dx8){return Promise[_0xf5eb[33]]([])[_0xf5eb[13]](getChatQueues(_0x774dx7[_0xf5eb[25]]))[_0xf5eb[13]](function(_0x774dx14){return ReportChatSession[_0xf5eb[35]](Util[_0xf5eb[15]](_0x774dx7[_0xf5eb[14]],_[_0xf5eb[31]]({leaveAt:{$ne:null},complete:null,abandon:null,timeout:null},_0x774dx14)))})[_0xf5eb[13]](function(_0x774dx13){return _0x774dx8[_0xf5eb[12]](200)[_0xf5eb[11]]({value:_0x774dx13})})[_0xf5eb[10]](function(_0x774dxa){console[_0xf5eb[30]](_0x774dxa);return handleError(_0x774dx8,_0x774dxa)})};exports[_0xf5eb[36]]= function(_0x774dx7,_0x774dx8){return Promise[_0xf5eb[33]]([])[_0xf5eb[13]](getChatQueues(_0x774dx7[_0xf5eb[25]]))[_0xf5eb[13]](function(_0x774dx14){return ReportChatSession[_0xf5eb[35]](Util[_0xf5eb[15]](_0x774dx7[_0xf5eb[14]],_[_0xf5eb[31]]({leaveAt:null},_0x774dx14)))})[_0xf5eb[13]](function(_0x774dx13){return _0x774dx8[_0xf5eb[12]](200)[_0xf5eb[11]]({value:_0x774dx13})})[_0xf5eb[10]](function(_0x774dxa){console[_0xf5eb[30]](_0x774dxa);return handleError(_0x774dx8,_0x774dxa)})};exports[_0xf5eb[37]]= function(_0x774dx7,_0x774dx8){return Promise[_0xf5eb[33]]([])[_0xf5eb[13]](getChatQueues(_0x774dx7[_0xf5eb[25]]))[_0xf5eb[13]](function(_0x774dx14){return ReportChatSession[_0xf5eb[35]](Util[_0xf5eb[15]](_0x774dx7[_0xf5eb[14]],_[_0xf5eb[31]]({complete:true},_0x774dx14)))})[_0xf5eb[13]](function(_0x774dx13){return _0x774dx8[_0xf5eb[12]](200)[_0xf5eb[11]]({value:_0x774dx13})})[_0xf5eb[10]](function(_0x774dxa){console[_0xf5eb[30]](_0x774dxa);return handleError(_0x774dx8,_0x774dxa)})};exports[_0xf5eb[38]]= function(_0x774dx7,_0x774dx8){return Promise[_0xf5eb[33]]([])[_0xf5eb[13]](getChatQueues(_0x774dx7[_0xf5eb[25]]))[_0xf5eb[13]](function(_0x774dx14){return ReportChatSession[_0xf5eb[35]](Util[_0xf5eb[15]](_0x774dx7[_0xf5eb[14]],_[_0xf5eb[31]]({timeout:true},_0x774dx14)))})[_0xf5eb[13]](function(_0x774dx13){return _0x774dx8[_0xf5eb[12]](200)[_0xf5eb[11]]({value:_0x774dx13})})[_0xf5eb[10]](function(_0x774dxa){console[_0xf5eb[30]](_0x774dxa);return handleError(_0x774dx8,_0x774dxa)})};exports[_0xf5eb[39]]= function(_0x774dx7,_0x774dx8){return Promise[_0xf5eb[33]]([])[_0xf5eb[13]](getChatQueues(_0x774dx7[_0xf5eb[25]]))[_0xf5eb[13]](function(_0x774dx14){return ReportChatSession[_0xf5eb[35]](Util[_0xf5eb[15]](_0x774dx7[_0xf5eb[14]],_[_0xf5eb[31]]({abandon:true},_0x774dx14)))})[_0xf5eb[13]](function(_0x774dx13){return _0x774dx8[_0xf5eb[12]](200)[_0xf5eb[11]]({value:_0x774dx13})})[_0xf5eb[10]](function(_0x774dxa){console[_0xf5eb[30]](_0x774dxa);return handleError(_0x774dx8,_0x774dxa)})};function handleError(_0x774dx8,_0x774dxa){return _0x774dx8[_0xf5eb[12]](500)[_0xf5eb[11]](_0x774dxa)}
\ No newline at end of file