Built motion from commit 922399a61.|1.0.26
[motion.git] / server / api / report_mail_session / report_mail_session.socket.js
index fdea3b9..01f5ebe 100644 (file)
@@ -1 +1 @@
-var _0xde9f=["\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"];_0xde9f[0];const ReportMailSessionEvents=require(_0xde9f[1]);const User=require(_0xde9f[3])[_0xde9f[2]];const Util=require(_0xde9f[4]);const _=require(_0xde9f[5]);const Promise=require(_0xde9f[6]);var events=[_0xde9f[7],_0xde9f[8]];exports[_0xde9f[9]]= function(_0xdb76x7){for(var _0xdb76x8=0,_0xdb76x9=events[_0xde9f[10]];_0xdb76x8< _0xdb76x9;_0xdb76x8++){var _0xdb76xa=events[_0xdb76x8];var _0xdb76xb=createListener(_0xde9f[11]+ _0xdb76xa,_0xdb76x7);ReportMailSessionEvents[_0xde9f[12]](_0xdb76xa,_0xdb76xb);_0xdb76x7[_0xde9f[12]](_0xde9f[13],removeListener(_0xdb76xa,_0xdb76xb))}};function createListener(_0xdb76xa,_0xdb76x7){return function(_0xdb76xd){switch(_0xdb76xa){case _0xde9f[25]:return Promise[_0xde9f[24]]([])[_0xde9f[23]](getMailQueues(_0xdb76x7))[_0xde9f[23]](function(_0xdb76xf){if(_0xdb76x7[_0xde9f[17]]=== _0xde9f[18]|| _[_0xde9f[20]](_0xdb76xf[_0xde9f[19]],_0xdb76xd[_0xde9f[19]])|| _[_0xde9f[20]](_0xdb76xf[_0xde9f[21]],_0xdb76xd[_0xde9f[21]])){_0xdb76x7[_0xde9f[22]](_0xdb76xa,_0xdb76xd)}})[_0xde9f[16]](function(_0xdb76xe){console[_0xde9f[15]](_0xde9f[14],_0xdb76xe)});case _0xde9f[26]:_0xdb76x7[_0xde9f[22]](_0xdb76xa,_0xdb76xd);break;default:}}}function removeListener(_0xdb76xa,_0xdb76xb){return function(){ReportMailSessionEvents[_0xde9f[27]](_0xdb76xa,_0xdb76xb)}}function getMailQueues(_0xdb76x12){return function(){switch(_0xdb76x12[_0xde9f[17]]){case _0xde9f[36]:return User[_0xde9f[35]](_0xdb76x12[_0xde9f[34]],{attributes:[_0xde9f[28]]})[_0xde9f[23]](Util[_0xde9f[33]]({},{attributes:[_0xde9f[28]],include:[{raw:true,model:User,attributes:[_0xde9f[28]]}]}))[_0xde9f[23]](function(_0xdb76x13){var _0xdb76x14=[];_0xdb76x13[_0xde9f[32]][_0xde9f[31]](function(_0xdb76x15){_0xdb76x14= _[_0xde9f[30]](_0xdb76x14,_[_0xde9f[29]](_0xdb76x15.Users,_0xde9f[28]))});return {queue:_[_0xde9f[29]](_0xdb76x13[_0xde9f[32]],_0xde9f[28]),memberid:_0xdb76x14}});case _0xde9f[38]:return User[_0xde9f[35]](_0xdb76x12[_0xde9f[34]],{attributes:[_0xde9f[28]]})[_0xde9f[23]](function(_0xdb76x16){return _0xdb76x16[_0xde9f[37]]({attributes:[_0xde9f[28]]})})[_0xde9f[23]](function(_0xdb76x13){return {queue:_[_0xde9f[29]](_0xdb76x13,_0xde9f[28]),memberid:_0xdb76x12[_0xde9f[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