Built motion from commit 922399a61.|1.0.26
[motion.git] / server / api / report_mail_session / report_mail_session.socket.js
index e29571d..01f5ebe 100644 (file)
@@ -1 +1 @@
-var _0x3a28=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x2E\x2F\x72\x65\x70\x6F\x72\x74\x5F\x6D\x61\x69\x6C\x5F\x73\x65\x73\x73\x69\x6F\x6E\x2E\x65\x76\x65\x6E\x74\x73","\x55\x73\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x75\x74\x69\x6C","\x6C\x6F\x64\x61\x73\x68","\x62\x6C\x75\x65\x62\x69\x72\x64","\x73\x61\x76\x65","\x72\x65\x6D\x6F\x76\x65","\x72\x65\x67\x69\x73\x74\x65\x72","\x6C\x65\x6E\x67\x74\x68","\x72\x65\x70\x6F\x72\x74\x5F\x6D\x61\x69\x6C\x5F\x73\x65\x73\x73\x69\x6F\x6E\x3A","\x6F\x6E","\x64\x69\x73\x63\x6F\x6E\x6E\x65\x63\x74","\x45\x72\x72\x6F\x72\x20\x66\x69\x6C\x74\x65\x72\x69\x6E\x67\x20\x72\x65\x70\x6F\x72\x74\x20\x6D\x61\x69\x6C\x20\x73\x65\x73\x73\x69\x6F\x6E\x73\x20\x61\x66\x74\x65\x72\x20\x73\x61\x76\x65","\x6C\x6F\x67","\x63\x61\x74\x63\x68","\x72\x6F\x6C\x65","\x61\x64\x6D\x69\x6E","\x6D\x65\x6D\x62\x65\x72\x69\x64","\x69\x6E\x63\x6C\x75\x64\x65\x73","\x71\x75\x65\x75\x65","\x65\x6D\x69\x74","\x74\x68\x65\x6E","\x61\x6C\x6C","\x72\x65\x70\x6F\x72\x74\x5F\x6D\x61\x69\x6C\x5F\x73\x65\x73\x73\x69\x6F\x6E\x3A\x73\x61\x76\x65","\x72\x65\x70\x6F\x72\x74\x5F\x6D\x61\x69\x6C\x5F\x73\x65\x73\x73\x69\x6F\x6E\x3A\x72\x65\x6D\x6F\x76\x65","\x72\x65\x6D\x6F\x76\x65\x4C\x69\x73\x74\x65\x6E\x65\x72","\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","\x75\x73\x65\x72\x49\x64","\x66\x69\x6E\x64\x42\x79\x49\x64","\x75\x73\x65\x72","\x67\x65\x74\x4D\x61\x69\x6C\x51\x75\x65\x75\x65\x73","\x61\x67\x65\x6E\x74"];_0x3a28[0];const ReportMailSessionEvents=require(_0x3a28[1]);const User=require(_0x3a28[3])[_0x3a28[2]];const Util=require(_0x3a28[4]);const _=require(_0x3a28[5]);const Promise=require(_0x3a28[6]);var events=[_0x3a28[7],_0x3a28[8]];exports[_0x3a28[9]]= function(_0x847ax7){for(var _0x847ax8=0,_0x847ax9=events[_0x3a28[10]];_0x847ax8< _0x847ax9;_0x847ax8++){var _0x847axa=events[_0x847ax8];var _0x847axb=createListener(_0x3a28[11]+ _0x847axa,_0x847ax7);ReportMailSessionEvents[_0x3a28[12]](_0x847axa,_0x847axb);_0x847ax7[_0x3a28[12]](_0x3a28[13],removeListener(_0x847axa,_0x847axb))}};function createListener(_0x847axa,_0x847ax7){return function(_0x847axd){switch(_0x847axa){case _0x3a28[25]:return Promise[_0x3a28[24]]([])[_0x3a28[23]](getMailQueues(_0x847ax7))[_0x3a28[23]](function(_0x847axf){if(_0x847ax7[_0x3a28[17]]=== _0x3a28[18]|| _[_0x3a28[20]](_0x847axf[_0x3a28[19]],_0x847axd[_0x3a28[19]])|| _[_0x3a28[20]](_0x847axf[_0x3a28[21]],_0x847axd[_0x3a28[21]])){_0x847ax7[_0x3a28[22]](_0x847axa,_0x847axd)}})[_0x3a28[16]](function(_0x847axe){console[_0x3a28[15]](_0x3a28[14],_0x847axe)});case _0x3a28[26]:_0x847ax7[_0x3a28[22]](_0x847axa,_0x847axd);break;default:}}}function removeListener(_0x847axa,_0x847axb){return function(){ReportMailSessionEvents[_0x3a28[27]](_0x847axa,_0x847axb)}}function getMailQueues(_0x847ax12){return function(){switch(_0x847ax12[_0x3a28[17]]){case _0x3a28[36]:return User[_0x3a28[35]](_0x847ax12[_0x3a28[34]],{attributes:[_0x3a28[28]]})[_0x3a28[23]](Util[_0x3a28[33]]({},{attributes:[_0x3a28[28]],include:[{raw:true,model:User,attributes:[_0x3a28[28]]}]}))[_0x3a28[23]](function(_0x847ax13){var _0x847ax14=[];_0x847ax13[_0x3a28[32]][_0x3a28[31]](function(_0x847ax15){_0x847ax14= _[_0x3a28[30]](_0x847ax14,_[_0x3a28[29]](_0x847ax15.Users,_0x3a28[28]))});return {queue:_[_0x3a28[29]](_0x847ax13[_0x3a28[32]],_0x3a28[28]),memberid:_0x847ax14}});case _0x3a28[38]:return User[_0x3a28[35]](_0x847ax12[_0x3a28[34]],{attributes:[_0x3a28[28]]})[_0x3a28[23]](function(_0x847ax16){return _0x847ax16[_0x3a28[37]]({attributes:[_0x3a28[28]]})})[_0x3a28[23]](function(_0x847ax13){return {queue:_[_0x3a28[29]](_0x847ax13,_0x3a28[28]),memberid:_0x847ax12[_0x3a28[34]]}});default:return {}}}}
\ No newline at end of file
+var _0x9cfb=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x2E\x2F\x72\x65\x70\x6F\x72\x74\x5F\x6D\x61\x69\x6C\x5F\x73\x65\x73\x73\x69\x6F\x6E\x2E\x65\x76\x65\x6E\x74\x73","\x55\x73\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x75\x74\x69\x6C","\x6C\x6F\x64\x61\x73\x68","\x62\x6C\x75\x65\x62\x69\x72\x64","\x73\x61\x76\x65","\x72\x65\x6D\x6F\x76\x65","\x72\x65\x67\x69\x73\x74\x65\x72","\x6C\x65\x6E\x67\x74\x68","\x72\x65\x70\x6F\x72\x74\x5F\x6D\x61\x69\x6C\x5F\x73\x65\x73\x73\x69\x6F\x6E\x3A","\x6F\x6E","\x64\x69\x73\x63\x6F\x6E\x6E\x65\x63\x74","\x45\x72\x72\x6F\x72\x20\x66\x69\x6C\x74\x65\x72\x69\x6E\x67\x20\x72\x65\x70\x6F\x72\x74\x20\x6D\x61\x69\x6C\x20\x73\x65\x73\x73\x69\x6F\x6E\x73\x20\x61\x66\x74\x65\x72\x20\x73\x61\x76\x65","\x6C\x6F\x67","\x63\x61\x74\x63\x68","\x72\x6F\x6C\x65","\x61\x64\x6D\x69\x6E","\x6D\x65\x6D\x62\x65\x72\x69\x64","\x69\x6E\x63\x6C\x75\x64\x65\x73","\x71\x75\x65\x75\x65","\x65\x6D\x69\x74","\x74\x68\x65\x6E","\x61\x6C\x6C","\x72\x65\x70\x6F\x72\x74\x5F\x6D\x61\x69\x6C\x5F\x73\x65\x73\x73\x69\x6F\x6E\x3A\x73\x61\x76\x65","\x72\x65\x70\x6F\x72\x74\x5F\x6D\x61\x69\x6C\x5F\x73\x65\x73\x73\x69\x6F\x6E\x3A\x72\x65\x6D\x6F\x76\x65","\x72\x65\x6D\x6F\x76\x65\x4C\x69\x73\x74\x65\x6E\x65\x72","\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","\x75\x73\x65\x72\x49\x64","\x66\x69\x6E\x64\x42\x79\x49\x64","\x75\x73\x65\x72","\x67\x65\x74\x4D\x61\x69\x6C\x51\x75\x65\x75\x65\x73","\x61\x67\x65\x6E\x74"];_0x9cfb[0];const ReportMailSessionEvents=require(_0x9cfb[1]);const User=require(_0x9cfb[3])[_0x9cfb[2]];const Util=require(_0x9cfb[4]);const _=require(_0x9cfb[5]);const Promise=require(_0x9cfb[6]);var events=[_0x9cfb[7],_0x9cfb[8]];exports[_0x9cfb[9]]= function(_0xacd3x7){for(var _0xacd3x8=0,_0xacd3x9=events[_0x9cfb[10]];_0xacd3x8< _0xacd3x9;_0xacd3x8++){var _0xacd3xa=events[_0xacd3x8];var _0xacd3xb=createListener(_0x9cfb[11]+ _0xacd3xa,_0xacd3x7);ReportMailSessionEvents[_0x9cfb[12]](_0xacd3xa,_0xacd3xb);_0xacd3x7[_0x9cfb[12]](_0x9cfb[13],removeListener(_0xacd3xa,_0xacd3xb))}};function createListener(_0xacd3xa,_0xacd3x7){return function(_0xacd3xd){switch(_0xacd3xa){case _0x9cfb[25]:return Promise[_0x9cfb[24]]([])[_0x9cfb[23]](getMailQueues(_0xacd3x7))[_0x9cfb[23]](function(_0xacd3xf){if(_0xacd3x7[_0x9cfb[17]]=== _0x9cfb[18]|| _[_0x9cfb[20]](_0xacd3xf[_0x9cfb[19]],_0xacd3xd[_0x9cfb[19]])|| _[_0x9cfb[20]](_0xacd3xf[_0x9cfb[21]],_0xacd3xd[_0x9cfb[21]])){_0xacd3x7[_0x9cfb[22]](_0xacd3xa,_0xacd3xd)}})[_0x9cfb[16]](function(_0xacd3xe){console[_0x9cfb[15]](_0x9cfb[14],_0xacd3xe)});case _0x9cfb[26]:_0xacd3x7[_0x9cfb[22]](_0xacd3xa,_0xacd3xd);break;default:}}}function removeListener(_0xacd3xa,_0xacd3xb){return function(){ReportMailSessionEvents[_0x9cfb[27]](_0xacd3xa,_0xacd3xb)}}function getMailQueues(_0xacd3x12){return function(){switch(_0xacd3x12[_0x9cfb[17]]){case _0x9cfb[36]:return User[_0x9cfb[35]](_0xacd3x12[_0x9cfb[34]],{attributes:[_0x9cfb[28]]})[_0x9cfb[23]](Util[_0x9cfb[33]]({},{attributes:[_0x9cfb[28]],include:[{raw:true,model:User,attributes:[_0x9cfb[28]]}]}))[_0x9cfb[23]](function(_0xacd3x13){var _0xacd3x14=[];_0xacd3x13[_0x9cfb[32]][_0x9cfb[31]](function(_0xacd3x15){_0xacd3x14= _[_0x9cfb[30]](_0xacd3x14,_[_0x9cfb[29]](_0xacd3x15.Users,_0x9cfb[28]))});return {queue:_[_0x9cfb[29]](_0xacd3x13[_0x9cfb[32]],_0x9cfb[28]),memberid:_0xacd3x14}});case _0x9cfb[38]:return User[_0x9cfb[35]](_0xacd3x12[_0x9cfb[34]],{attributes:[_0x9cfb[28]]})[_0x9cfb[23]](function(_0xacd3x16){return _0xacd3x16[_0x9cfb[37]]({attributes:[_0x9cfb[28]]})})[_0x9cfb[23]](function(_0xacd3x13){return {queue:_[_0x9cfb[29]](_0xacd3x13,_0x9cfb[28]),memberid:_0xacd3x12[_0x9cfb[34]]}});default:return {}}}}
\ No newline at end of file