Built motion from commit 4d2cf597c.|1.0.26
[motion.git] / server / api / report_mail_session / report_mail_session.socket.js
index e624140..ea28e22 100644 (file)
@@ -1 +1 @@
-var _0x4043=["\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"];_0x4043[0];const ReportMailSessionEvents=require(_0x4043[1]);const User=require(_0x4043[3])[_0x4043[2]];const Util=require(_0x4043[4]);const _=require(_0x4043[5]);const Promise=require(_0x4043[6]);var events=[_0x4043[7],_0x4043[8]];exports[_0x4043[9]]= function(_0x20f4x7){for(var _0x20f4x8=0,_0x20f4x9=events[_0x4043[10]];_0x20f4x8< _0x20f4x9;_0x20f4x8++){var _0x20f4xa=events[_0x20f4x8];var _0x20f4xb=createListener(_0x4043[11]+ _0x20f4xa,_0x20f4x7);ReportMailSessionEvents[_0x4043[12]](_0x20f4xa,_0x20f4xb);_0x20f4x7[_0x4043[12]](_0x4043[13],removeListener(_0x20f4xa,_0x20f4xb))}};function createListener(_0x20f4xa,_0x20f4x7){return function(_0x20f4xd){switch(_0x20f4xa){case _0x4043[25]:return Promise[_0x4043[24]]([])[_0x4043[23]](getMailQueues(_0x20f4x7))[_0x4043[23]](function(_0x20f4xf){if(_0x20f4x7[_0x4043[17]]=== _0x4043[18]|| _[_0x4043[20]](_0x20f4xf[_0x4043[19]],_0x20f4xd[_0x4043[19]])|| _[_0x4043[20]](_0x20f4xf[_0x4043[21]],_0x20f4xd[_0x4043[21]])){_0x20f4x7[_0x4043[22]](_0x20f4xa,_0x20f4xd)}})[_0x4043[16]](function(_0x20f4xe){console[_0x4043[15]](_0x4043[14],_0x20f4xe)});case _0x4043[26]:_0x20f4x7[_0x4043[22]](_0x20f4xa,_0x20f4xd);break;default:}}}function removeListener(_0x20f4xa,_0x20f4xb){return function(){ReportMailSessionEvents[_0x4043[27]](_0x20f4xa,_0x20f4xb)}}function getMailQueues(_0x20f4x12){return function(){switch(_0x20f4x12[_0x4043[17]]){case _0x4043[36]:return User[_0x4043[35]](_0x20f4x12[_0x4043[34]],{attributes:[_0x4043[28]]})[_0x4043[23]](Util[_0x4043[33]]({},{attributes:[_0x4043[28]],include:[{raw:true,model:User,attributes:[_0x4043[28]]}]}))[_0x4043[23]](function(_0x20f4x13){var _0x20f4x14=[];_0x20f4x13[_0x4043[32]][_0x4043[31]](function(_0x20f4x15){_0x20f4x14= _[_0x4043[30]](_0x20f4x14,_[_0x4043[29]](_0x20f4x15.Users,_0x4043[28]))});return {queue:_[_0x4043[29]](_0x20f4x13[_0x4043[32]],_0x4043[28]),memberid:_0x20f4x14}});case _0x4043[38]:return User[_0x4043[35]](_0x20f4x12[_0x4043[34]],{attributes:[_0x4043[28]]})[_0x4043[23]](function(_0x20f4x16){return _0x20f4x16[_0x4043[37]]({attributes:[_0x4043[28]]})})[_0x4043[23]](function(_0x20f4x13){return {queue:_[_0x4043[29]](_0x20f4x13,_0x4043[28]),memberid:_0x20f4x12[_0x4043[34]]}});default:return {}}}}
\ No newline at end of file
+var _0xbee0=["\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"];_0xbee0[0];const ReportMailSessionEvents=require(_0xbee0[1]);const User=require(_0xbee0[3])[_0xbee0[2]];const Util=require(_0xbee0[4]);const _=require(_0xbee0[5]);const Promise=require(_0xbee0[6]);var events=[_0xbee0[7],_0xbee0[8]];exports[_0xbee0[9]]= function(_0x51cfx7){for(var _0x51cfx8=0,_0x51cfx9=events[_0xbee0[10]];_0x51cfx8< _0x51cfx9;_0x51cfx8++){var _0x51cfxa=events[_0x51cfx8];var _0x51cfxb=createListener(_0xbee0[11]+ _0x51cfxa,_0x51cfx7);ReportMailSessionEvents[_0xbee0[12]](_0x51cfxa,_0x51cfxb);_0x51cfx7[_0xbee0[12]](_0xbee0[13],removeListener(_0x51cfxa,_0x51cfxb))}};function createListener(_0x51cfxa,_0x51cfx7){return function(_0x51cfxd){switch(_0x51cfxa){case _0xbee0[25]:return Promise[_0xbee0[24]]([])[_0xbee0[23]](getMailQueues(_0x51cfx7))[_0xbee0[23]](function(_0x51cfxf){if(_0x51cfx7[_0xbee0[17]]=== _0xbee0[18]|| _[_0xbee0[20]](_0x51cfxf[_0xbee0[19]],_0x51cfxd[_0xbee0[19]])|| _[_0xbee0[20]](_0x51cfxf[_0xbee0[21]],_0x51cfxd[_0xbee0[21]])){_0x51cfx7[_0xbee0[22]](_0x51cfxa,_0x51cfxd)}})[_0xbee0[16]](function(_0x51cfxe){console[_0xbee0[15]](_0xbee0[14],_0x51cfxe)});case _0xbee0[26]:_0x51cfx7[_0xbee0[22]](_0x51cfxa,_0x51cfxd);break;default:}}}function removeListener(_0x51cfxa,_0x51cfxb){return function(){ReportMailSessionEvents[_0xbee0[27]](_0x51cfxa,_0x51cfxb)}}function getMailQueues(_0x51cfx12){return function(){switch(_0x51cfx12[_0xbee0[17]]){case _0xbee0[36]:return User[_0xbee0[35]](_0x51cfx12[_0xbee0[34]],{attributes:[_0xbee0[28]]})[_0xbee0[23]](Util[_0xbee0[33]]({},{attributes:[_0xbee0[28]],include:[{raw:true,model:User,attributes:[_0xbee0[28]]}]}))[_0xbee0[23]](function(_0x51cfx13){var _0x51cfx14=[];_0x51cfx13[_0xbee0[32]][_0xbee0[31]](function(_0x51cfx15){_0x51cfx14= _[_0xbee0[30]](_0x51cfx14,_[_0xbee0[29]](_0x51cfx15.Users,_0xbee0[28]))});return {queue:_[_0xbee0[29]](_0x51cfx13[_0xbee0[32]],_0xbee0[28]),memberid:_0x51cfx14}});case _0xbee0[38]:return User[_0xbee0[35]](_0x51cfx12[_0xbee0[34]],{attributes:[_0xbee0[28]]})[_0xbee0[23]](function(_0x51cfx16){return _0x51cfx16[_0xbee0[37]]({attributes:[_0xbee0[28]]})})[_0xbee0[23]](function(_0x51cfx13){return {queue:_[_0xbee0[29]](_0x51cfx13,_0xbee0[28]),memberid:_0x51cfx12[_0xbee0[34]]}});default:return {}}}}
\ No newline at end of file