Built motion from commit 624f16adc.|1.0.34
[motion.git] / server / api / report_mail_session / report_mail_session.socket.js
index 44c4afa..b6f80b0 100644 (file)
@@ -1 +1 @@
-var _0x853c=["\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"];_0x853c[0];const ReportMailSessionEvents=require(_0x853c[1]);const User=require(_0x853c[3])[_0x853c[2]];const Util=require(_0x853c[4]);const _=require(_0x853c[5]);const Promise=require(_0x853c[6]);var events=[_0x853c[7],_0x853c[8]];exports[_0x853c[9]]= function(_0x229cx7){for(var _0x229cx8=0,_0x229cx9=events[_0x853c[10]];_0x229cx8< _0x229cx9;_0x229cx8++){var _0x229cxa=events[_0x229cx8];var _0x229cxb=createListener(_0x853c[11]+ _0x229cxa,_0x229cx7);ReportMailSessionEvents[_0x853c[12]](_0x229cxa,_0x229cxb);_0x229cx7[_0x853c[12]](_0x853c[13],removeListener(_0x229cxa,_0x229cxb))}};function createListener(_0x229cxa,_0x229cx7){return function(_0x229cxd){switch(_0x229cxa){case _0x853c[25]:return Promise[_0x853c[24]]([])[_0x853c[23]](getMailQueues(_0x229cx7))[_0x853c[23]](function(_0x229cxf){if(_0x229cx7[_0x853c[17]]=== _0x853c[18]|| _[_0x853c[20]](_0x229cxf[_0x853c[19]],_0x229cxd[_0x853c[19]])|| _[_0x853c[20]](_0x229cxf[_0x853c[21]],_0x229cxd[_0x853c[21]])){_0x229cx7[_0x853c[22]](_0x229cxa,_0x229cxd)}})[_0x853c[16]](function(_0x229cxe){console[_0x853c[15]](_0x853c[14],_0x229cxe)});case _0x853c[26]:_0x229cx7[_0x853c[22]](_0x229cxa,_0x229cxd);break;default:}}}function removeListener(_0x229cxa,_0x229cxb){return function(){ReportMailSessionEvents[_0x853c[27]](_0x229cxa,_0x229cxb)}}function getMailQueues(_0x229cx12){return function(){switch(_0x229cx12[_0x853c[17]]){case _0x853c[36]:return User[_0x853c[35]](_0x229cx12[_0x853c[34]],{attributes:[_0x853c[28]]})[_0x853c[23]](Util[_0x853c[33]]({},{attributes:[_0x853c[28]],include:[{raw:true,model:User,attributes:[_0x853c[28]]}]}))[_0x853c[23]](function(_0x229cx13){var _0x229cx14=[];_0x229cx13[_0x853c[32]][_0x853c[31]](function(_0x229cx15){_0x229cx14= _[_0x853c[30]](_0x229cx14,_[_0x853c[29]](_0x229cx15.Users,_0x853c[28]))});return {queue:_[_0x853c[29]](_0x229cx13[_0x853c[32]],_0x853c[28]),memberid:_0x229cx14}});case _0x853c[38]:return User[_0x853c[35]](_0x229cx12[_0x853c[34]],{attributes:[_0x853c[28]]})[_0x853c[23]](function(_0x229cx16){return _0x229cx16[_0x853c[37]]({attributes:[_0x853c[28]]})})[_0x853c[23]](function(_0x229cx13){return {queue:_[_0x853c[29]](_0x229cx13,_0x853c[28]),memberid:_0x229cx12[_0x853c[34]]}});default:return {}}}}
\ No newline at end of file
+var _0x9eb1=["\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"];_0x9eb1[0];const ReportMailSessionEvents=require(_0x9eb1[1]);const User=require(_0x9eb1[3])[_0x9eb1[2]];const Util=require(_0x9eb1[4]);const _=require(_0x9eb1[5]);const Promise=require(_0x9eb1[6]);var events=[_0x9eb1[7],_0x9eb1[8]];exports[_0x9eb1[9]]= function(_0x4f7bx7){for(var _0x4f7bx8=0,_0x4f7bx9=events[_0x9eb1[10]];_0x4f7bx8< _0x4f7bx9;_0x4f7bx8++){var _0x4f7bxa=events[_0x4f7bx8];var _0x4f7bxb=createListener(_0x9eb1[11]+ _0x4f7bxa,_0x4f7bx7);ReportMailSessionEvents[_0x9eb1[12]](_0x4f7bxa,_0x4f7bxb);_0x4f7bx7[_0x9eb1[12]](_0x9eb1[13],removeListener(_0x4f7bxa,_0x4f7bxb))}};function createListener(_0x4f7bxa,_0x4f7bx7){return function(_0x4f7bxd){switch(_0x4f7bxa){case _0x9eb1[25]:return Promise[_0x9eb1[24]]([])[_0x9eb1[23]](getMailQueues(_0x4f7bx7))[_0x9eb1[23]](function(_0x4f7bxf){if(_0x4f7bx7[_0x9eb1[17]]=== _0x9eb1[18]|| _[_0x9eb1[20]](_0x4f7bxf[_0x9eb1[19]],_0x4f7bxd[_0x9eb1[19]])|| _[_0x9eb1[20]](_0x4f7bxf[_0x9eb1[21]],_0x4f7bxd[_0x9eb1[21]])){_0x4f7bx7[_0x9eb1[22]](_0x4f7bxa,_0x4f7bxd)}})[_0x9eb1[16]](function(_0x4f7bxe){console[_0x9eb1[15]](_0x9eb1[14],_0x4f7bxe)});case _0x9eb1[26]:_0x4f7bx7[_0x9eb1[22]](_0x4f7bxa,_0x4f7bxd);break;default:}}}function removeListener(_0x4f7bxa,_0x4f7bxb){return function(){ReportMailSessionEvents[_0x9eb1[27]](_0x4f7bxa,_0x4f7bxb)}}function getMailQueues(_0x4f7bx12){return function(){switch(_0x4f7bx12[_0x9eb1[17]]){case _0x9eb1[36]:return User[_0x9eb1[35]](_0x4f7bx12[_0x9eb1[34]],{attributes:[_0x9eb1[28]]})[_0x9eb1[23]](Util[_0x9eb1[33]]({},{attributes:[_0x9eb1[28]],include:[{raw:true,model:User,attributes:[_0x9eb1[28]]}]}))[_0x9eb1[23]](function(_0x4f7bx13){var _0x4f7bx14=[];_0x4f7bx13[_0x9eb1[32]][_0x9eb1[31]](function(_0x4f7bx15){_0x4f7bx14= _[_0x9eb1[30]](_0x4f7bx14,_[_0x9eb1[29]](_0x4f7bx15.Users,_0x9eb1[28]))});return {queue:_[_0x9eb1[29]](_0x4f7bx13[_0x9eb1[32]],_0x9eb1[28]),memberid:_0x4f7bx14}});case _0x9eb1[38]:return User[_0x9eb1[35]](_0x4f7bx12[_0x9eb1[34]],{attributes:[_0x9eb1[28]]})[_0x9eb1[23]](function(_0x4f7bx16){return _0x4f7bx16[_0x9eb1[37]]({attributes:[_0x9eb1[28]]})})[_0x9eb1[23]](function(_0x4f7bx13){return {queue:_[_0x9eb1[29]](_0x4f7bx13,_0x9eb1[28]),memberid:_0x4f7bx12[_0x9eb1[34]]}});default:return {}}}}
\ No newline at end of file