Built motion from commit 8dae768.|0.0.121
[motion.git] / server / config / imap / imap.js
index 4a8a541..232d8de 100644 (file)
@@ -1 +1 @@
-var _0xa476=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x70\x61\x74\x68","\x2E\x2E\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x6D\x61\x69\x6C\x2D\x6C\x69\x73\x74\x65\x6E\x65\x72\x32","\x4D\x61\x69\x6C\x53\x65\x72\x76\x65\x72\x49\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x4D\x61\x69\x6C\x4D\x65\x73\x73\x61\x67\x65","\x4D\x61\x69\x6C\x52\x6F\x6F\x6D","\x43\x6F\x6E\x74\x61\x63\x74","\x43\x6F\x6E\x74\x61\x63\x74\x45\x6D\x61\x69\x6C","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x73\x74\x61\x74\x65","\x63\x68\x61\x6E\x67\x65\x64","\x73\x6F\x75\x72\x63\x65","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x75\x73\x65\x72","\x5F\x63\x6F\x6E\x66\x69\x67","\x69\x6D\x61\x70","\x4D\x41\x49\x4C\x20\x2D\x20\x41\x63\x63\x6F\x75\x6E\x74\x20","\x20\x49\x4D\x41\x50\x20\x55\x50\x44\x41\x54\x45\x44","\x6C\x6F\x67","\x73\x74\x6F\x70","\x20\x49\x4D\x41\x50\x20\x44\x45\x53\x54\x52\x4F\x59","\x70\x61\x73\x73\x77\x6F\x72\x64","\x68\x6F\x73\x74","\x70\x6F\x72\x74","\x73\x73\x6C","\x6D\x61\x69\x6C\x62\x6F\x78","\x66\x69\x6C\x74\x65\x72","\x72\x6F\x6F\x74","\x73\x65\x72\x76\x65\x72","\x66\x69\x6C\x65\x73","\x61\x74\x74\x61\x63\x68\x6D\x65\x6E\x74\x73","\x2F","\x6A\x6F\x69\x6E","\x73\x74\x61\x72\x74","\x73\x65\x72\x76\x65\x72\x3A\x63\x6F\x6E\x6E\x65\x63\x74\x65\x64","\x20\x49\x4D\x41\x50\x20\x43\x4F\x4E\x4E\x45\x43\x54\x45\x44","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x43\x4F\x4E\x4E\x45\x43\x54\x45\x44","\x75\x70\x64\x61\x74\x65","\x74\x68\x65\x6E","\x69\x64","\x66\x69\x6E\x64\x42\x79\x49\x64","\x6F\x6E","\x73\x65\x72\x76\x65\x72\x3A\x64\x69\x73\x63\x6F\x6E\x6E\x65\x63\x74\x65\x64","\x4D\x61\x69\x6C\x41\x63\x63\x6F\x75\x6E\x74\x49\x64","\x20\x49\x4D\x41\x50\x20\x44\x49\x53\x43\x4F\x4E\x4E\x45\x43\x54\x45\x44","\x44\x49\x53\x43\x4F\x4E\x4E\x45\x43\x54\x45\x44","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x20\x49\x4D\x41\x50\x20\x45\x52\x52\x4F\x52","\x45\x52\x52\x4F\x52","\x6D\x61\x69\x6C","\x6D\x65\x73\x73\x61\x67\x65\x49\x64","\x73\x75\x62\x6A\x65\x63\x74","\x3B","\x66\x72\x6F\x6D","\x61\x64\x64\x72\x65\x73\x73","\x6D\x61\x70","\x74\x6F","\x63\x63","\x62\x63\x63","\x52\x45\x43\x45\x49\x56\x45\x44","\x68\x74\x6D\x6C","\x74\x65\x78\x74","\x63\x72\x65\x61\x74\x65","\x66\x69\x6E\x64\x4F\x72\x43\x72\x65\x61\x74\x65","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x69\x6E\x52\x65\x70\x6C\x79\x54\x6F","\x6D\x73\x67","\x73\x65\x74\x42\x63\x63","\x73\x65\x74\x43\x63","\x73\x65\x74\x54\x6F","\x73\x65\x74\x46\x72\x6F\x6D","\x61\x6C\x6C","\x73\x70\x72\x65\x61\x64","\x67\x65\x74\x4D\x61\x69\x6C\x52\x6F\x6F\x6D","\x66\x69\x6E\x64\x4F\x6E\x65","\x66\x69\x6E\x64\x4F\x72\x43\x72\x72\x65\x64\x69\x65\x61\x74\x65","\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E","\x61\x74\x74\x61\x63\x68\x6D\x65\x6E\x74","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x65\x78\x70\x6F\x72\x74\x73"];_0xa476[0];var _=require(_0xa476[1]);var path=require(_0xa476[2]);var config=require(_0xa476[3]);var ImapListener=require(_0xa476[4]);var MailServerIn=require(_0xa476[6])[_0xa476[5]];var MailMessage=require(_0xa476[6])[_0xa476[7]];var MailRoom=require(_0xa476[6])[_0xa476[8]];var Contact=require(_0xa476[6])[_0xa476[9]];var ContactEmail=require(_0xa476[6])[_0xa476[10]];var sequelize=require(_0xa476[6])[_0xa476[11]];function Imap(_0x5f49xc){var _0x5f49xd;function _0x5f49xe(_0x5f49xc){if(!_0x5f49xc[_0xa476[13]](_0xa476[12])&&!_0x5f49xc[_0xa476[13]](_0xa476[14])&&_0x5f49xc[_0xa476[15]]===_0x5f49xd[_0xa476[18]][_0xa476[17]][_0xa476[16]]){console[_0xa476[21]](_0xa476[19]+_0x5f49xc[_0xa476[15]]+_0xa476[20]);_0x5f49xd[_0xa476[22]]();_0x5f49x10(_0x5f49xc);}}function _0x5f49xf(_0x5f49xc){if(_0x5f49xc[_0xa476[15]]===_0x5f49xd[_0xa476[18]][_0xa476[17]][_0xa476[16]]){console[_0xa476[21]](_0xa476[19]+_0x5f49xc[_0xa476[15]]+_0xa476[23]);_0x5f49xd[_0xa476[22]]();_0x5f49xd=null;}}function _0x5f49x10(_0x5f49xc){if(_0x5f49xd){_0x5f49xd[_0xa476[22]](_0x5f49xc);_0x5f49xd=null;};_0x5f49xd= new ImapListener({username:_0x5f49xc[_0xa476[15]],password:_0x5f49xc[_0xa476[24]],host:_0x5f49xc[_0xa476[25]],port:_0x5f49xc[_0xa476[26]],tls:_0x5f49xc[_0xa476[27]],tlsOptions:{rejectUnauthorized:false},mailbox:_0x5f49xc[_0xa476[28]],searchFilter:[_0x5f49xc[_0xa476[29]]],markSeen:true,fetchUnreadOnStart:true,mailParserOptions:{streamAttachments:false},attachments:true,attachmentOptions:{directory:path[_0xa476[35]](config[_0xa476[30]],_0xa476[31],_0xa476[32],_0xa476[33],_0xa476[34])}});_0x5f49xd[_0xa476[36]]();_0x5f49xd[_0xa476[46]](_0xa476[37],function(){console[_0xa476[21]](_0xa476[19]+_0x5f49xc[_0xa476[15]]+_0xa476[38]);return MailServerIn[_0xa476[45]](_0x5f49xc[_0xa476[44]])[_0xa476[43]](function(_0x5f49x12){return _0x5f49x12[_0xa476[42]]({state:_0xa476[41]})})[_0xa476[40]](function(_0x5f49x11){console[_0xa476[39]](_0x5f49x11)});});_0x5f49xd[_0xa476[46]](_0xa476[47],function(){console[_0xa476[21]](_0xa476[19]+_0x5f49xc[_0xa476[48]]+_0xa476[49]);return MailServerIn[_0xa476[45]](_0x5f49xc[_0xa476[44]])[_0xa476[43]](function(_0x5f49x12){_0x5f49x12[_0xa476[51]]({state:_0xa476[50]})})[_0xa476[40]](function(_0x5f49x11){console[_0xa476[39]](_0x5f49x11)});});_0x5f49xd[_0xa476[46]](_0xa476[39],function(_0x5f49x11){console[_0xa476[21]](_0xa476[19]+_0x5f49xc[_0xa476[48]]+_0xa476[52],_0x5f49x11);return MailServerIn[_0xa476[45]](_0x5f49xc[_0xa476[44]])[_0xa476[43]](function(_0x5f49x12){_0x5f49x12[_0xa476[51]]({state:_0xa476[53],source:_0x5f49x11[_0xa476[14]]})})[_0xa476[40]](function(_0x5f49x11){console[_0xa476[39]](_0x5f49x11)});});_0x5f49xd[_0xa476[46]](_0xa476[54],function(_0x5f49x13,_0x5f49x14,_0x5f49x15){var _0x5f49x16;var _0x5f49x17;var _0x5f49x18,_0x5f49x19,_0x5f49x1a,_0x5f49x1b;function _0x5f49x1c(_0x5f49x1d){_0x5f49x16=_0x5f49x1d;return MailMessage[_0xa476[67]]({messageId:_0x5f49x13[_0xa476[55]],subject:_0x5f49x13[_0xa476[56]],from:_[_0xa476[60]](_0x5f49x13[_0xa476[58]],_0xa476[59])[_0xa476[35]](_0xa476[57]),to:_0x5f49x13[_0xa476[61]]?_[_0xa476[60]](_0x5f49x13[_0xa476[61]],_0xa476[59])[_0xa476[35]](_0xa476[57]):null,cc:_0x5f49x13[_0xa476[62]]?_[_0xa476[60]](_0x5f49x13[_0xa476[62]],_0xa476[59])[_0xa476[35]](_0xa476[57]):null,bcc:_0x5f49x13[_0xa476[62]]?_[_0xa476[60]](_0x5f49x13[_0xa476[63]],_0xa476[59])[_0xa476[35]](_0xa476[57]):null,status:_0xa476[64],html:_0x5f49x13[_0xa476[65]]||null,text:_0x5f49x13[_0xa476[66]]||null,MailAttachments:_0x5f49x13[_0xa476[33]]||[],MailRoomId:_0x5f49x1d[_0xa476[44]]});}function _0x5f49x1e(_0x5f49x1f){_0x5f49x17=_0x5f49x1f;return ContactEmail[_0xa476[68]]({where:{email:_0x5f49x17[_0xa476[58]]},defaults:{email:_0x5f49x17[_0xa476[58]]}});}function _0x5f49x20(_0x5f49x21,_0x5f49x22){var _0x5f49x23=[];var _0x5f49x24=_0x5f49x17[_0xa476[61]]?_[_0xa476[60]](_0x5f49x13[_0xa476[61]],_0xa476[59]):[];_0x5f49x18=_0x5f49x21;_0x5f49x24[_0xa476[70]](function(_0x5f49x25){_0x5f49x23[_0xa476[69]](ContactEmail[_0xa476[68]]({where:{email:_0x5f49x25},defaults:{email:_0x5f49x25}}))});return _0x5f49x23;}function _0x5f49x26(_0x5f49x27){var _0x5f49x23=[];var _0x5f49x28=_0x5f49x17[_0xa476[62]]?_[_0xa476[60]](_0x5f49x13[_0xa476[62]],_0xa476[59]):[];_0x5f49x19=_[_0xa476[60]](_0x5f49x27,function(_0x5f49x29){return _0x5f49x29[0]});_0x5f49x28[_0xa476[70]](function(_0x5f49x25){_0x5f49x23[_0xa476[69]](ContactEmail[_0xa476[68]]({where:{email:_0x5f49x25},defaults:{email:_0x5f49x25}}))});return _0x5f49x23;}function _0x5f49x2a(_0x5f49x2b){var _0x5f49x23=[];var _0x5f49x2c=_0x5f49x17[_0xa476[63]]?_[_0xa476[60]](_0x5f49x13[_0xa476[63]],_0xa476[59]):[];_0x5f49x1a=_[_0xa476[60]](_0x5f49x2b,function(_0x5f49x29){return _0x5f49x29[0]});_0x5f49x2c[_0xa476[70]](function(_0x5f49x25){_0x5f49x23[_0xa476[69]](ContactEmail[_0xa476[68]]({where:{email:_0x5f49x25},defaults:{email:_0x5f49x25}}))});return _0x5f49x23;}function _0x5f49x2d(_0x5f49x2e){_0x5f49x1b=_[_0xa476[60]](_0x5f49x2e,function(_0x5f49x29){return _0x5f49x29[0]});return ;}return sequelize[_0xa476[82]](function(_0x5f49x30){if(_0x5f49x13[_0xa476[71]]){console[_0xa476[21]](_0xa476[72],_0x5f49x13);return MailMessage[_0xa476[80]]({where:{messageId:_0x5f49x13[_0xa476[71]][0]},include:[{all:true}]})[_0xa476[43]](function(_0x5f49x31){return _0x5f49x31[_0xa476[79]]()})[_0xa476[43]](function(_0x5f49x1d){_0x5f49x16=_0x5f49x1d;return MailMessage[_0xa476[67]]({messageId:_0x5f49x13[_0xa476[55]],subject:_0x5f49x13[_0xa476[56]],from:_[_0xa476[60]](_0x5f49x13[_0xa476[58]],_0xa476[59])[_0xa476[35]](_0xa476[57]),to:_0x5f49x13[_0xa476[61]]?_[_0xa476[60]](_0x5f49x13[_0xa476[61]],_0xa476[59])[_0xa476[35]](_0xa476[57]):null,cc:_0x5f49x13[_0xa476[62]]?_[_0xa476[60]](_0x5f49x13[_0xa476[62]],_0xa476[59])[_0xa476[35]](_0xa476[57]):null,bcc:_0x5f49x13[_0xa476[62]]?_[_0xa476[60]](_0x5f49x13[_0xa476[63]],_0xa476[59])[_0xa476[35]](_0xa476[57]):null,status:_0xa476[64],html:_0x5f49x13[_0xa476[65]]||null,text:_0x5f49x13[_0xa476[66]]||null,MailAttachments:_0x5f49x13[_0xa476[33]]||[],MailRoomId:_0x5f49x1d[_0xa476[44]]},{include:[{all:true}],transaction:_0x5f49x30});})[_0xa476[43]](function(_0x5f49x1f){_0x5f49x17=_0x5f49x1f;return ContactEmail[_0xa476[68]]({where:{email:_0x5f49x17[_0xa476[58]]},defaults:{email:_0x5f49x17[_0xa476[58]]},transaction:_0x5f49x30});})[_0xa476[78]](function(_0x5f49x21,_0x5f49x22){var _0x5f49x23=[];var _0x5f49x24=_0x5f49x17[_0xa476[61]]?_[_0xa476[60]](_0x5f49x13[_0xa476[61]],_0xa476[59]):[];_0x5f49x18=_0x5f49x21;_0x5f49x24[_0xa476[70]](function(_0x5f49x25){_0x5f49x23[_0xa476[69]](ContactEmail[_0xa476[68]]({where:{email:_0x5f49x25},defaults:{email:_0x5f49x25},transaction:_0x5f49x30}))});return _0x5f49x23;})[_0xa476[77]]()[_0xa476[43]](function(_0x5f49x27){var _0x5f49x23=[];var _0x5f49x28=_0x5f49x17[_0xa476[62]]?_[_0xa476[60]](_0x5f49x13[_0xa476[62]],_0xa476[59]):[];_0x5f49x19=_[_0xa476[60]](_0x5f49x27,function(_0x5f49x29){return _0x5f49x29[0]});_0x5f49x28[_0xa476[70]](function(_0x5f49x25){_0x5f49x23[_0xa476[69]](ContactEmail[_0xa476[68]]({where:{email:_0x5f49x25},defaults:{email:_0x5f49x25},transaction:_0x5f49x30}))});return _0x5f49x23;})[_0xa476[77]]()[_0xa476[43]](function(_0x5f49x2b){var _0x5f49x23=[];var _0x5f49x2c=_0x5f49x17[_0xa476[63]]?_[_0xa476[60]](_0x5f49x13[_0xa476[63]],_0xa476[59]):[];_0x5f49x1a=_[_0xa476[60]](_0x5f49x2b,function(_0x5f49x29){return _0x5f49x29[0]});_0x5f49x2c[_0xa476[70]](function(_0x5f49x25){_0x5f49x23[_0xa476[69]](ContactEmail[_0xa476[68]]({where:{email:_0x5f49x25},defaults:{email:_0x5f49x25},transaction:_0x5f49x30}))});return _0x5f49x23;})[_0xa476[77]]()[_0xa476[43]](function(_0x5f49x2e){_0x5f49x1b=_[_0xa476[60]](_0x5f49x2e,function(_0x5f49x29){return _0x5f49x29[0]});return ;})[_0xa476[43]](function(){return _0x5f49x17[_0xa476[76]](_0x5f49x18,{transaction:_0x5f49x30})})[_0xa476[43]](function(){return _0x5f49x17[_0xa476[75]](_0x5f49x19,{transaction:_0x5f49x30})})[_0xa476[43]](function(){return _0x5f49x17[_0xa476[74]](_0x5f49x1a,{transaction:_0x5f49x30})})[_0xa476[43]](function(){return _0x5f49x17[_0xa476[73]](_0x5f49x1b,{transaction:_0x5f49x30})});}else {return MailRoom[_0xa476[67]]({roomId:_0x5f49x13[_0xa476[55]],subject:_0x5f49x13[_0xa476[56]],from:_[_0xa476[60]](_0x5f49x13[_0xa476[58]],_0xa476[59])[_0xa476[35]](_0xa476[57]),MailAccountId:_0x5f49xc[_0xa476[48]]},{transaction:_0x5f49x30})[_0xa476[43]](function(_0x5f49x1d){_0x5f49x16=_0x5f49x1d;return MailMessage[_0xa476[67]]({messageId:_0x5f49x13[_0xa476[55]],subject:_0x5f49x13[_0xa476[56]],from:_[_0xa476[60]](_0x5f49x13[_0xa476[58]],_0xa476[59])[_0xa476[35]](_0xa476[57]),to:_0x5f49x13[_0xa476[61]]?_[_0xa476[60]](_0x5f49x13[_0xa476[61]],_0xa476[59])[_0xa476[35]](_0xa476[57]):null,cc:_0x5f49x13[_0xa476[62]]?_[_0xa476[60]](_0x5f49x13[_0xa476[62]],_0xa476[59])[_0xa476[35]](_0xa476[57]):null,bcc:_0x5f49x13[_0xa476[62]]?_[_0xa476[60]](_0x5f49x13[_0xa476[63]],_0xa476[59])[_0xa476[35]](_0xa476[57]):null,status:_0xa476[64],html:_0x5f49x13[_0xa476[65]]||null,text:_0x5f49x13[_0xa476[66]]||null,MailAttachments:_0x5f49x13[_0xa476[33]]||[],MailRoomId:_0x5f49x1d[_0xa476[44]]},{include:[{all:true}],transaction:_0x5f49x30});})[_0xa476[43]](function(_0x5f49x1f){_0x5f49x17=_0x5f49x1f;return ContactEmail[_0xa476[68]]({where:{email:_0x5f49x17[_0xa476[58]]},defaults:{email:_0x5f49x17[_0xa476[58]]},transaction:_0x5f49x30});})[_0xa476[78]](function(_0x5f49x21,_0x5f49x22){var _0x5f49x23=[];var _0x5f49x24=_0x5f49x17[_0xa476[61]]?_[_0xa476[60]](_0x5f49x13[_0xa476[61]],_0xa476[59]):[];_0x5f49x18=_0x5f49x21;_0x5f49x24[_0xa476[70]](function(_0x5f49x25){_0x5f49x23[_0xa476[69]](ContactEmail[_0xa476[68]]({where:{email:_0x5f49x25},defaults:{email:_0x5f49x25},transaction:_0x5f49x30}))});return _0x5f49x23;})[_0xa476[77]]()[_0xa476[43]](function(_0x5f49x27){var _0x5f49x23=[];var _0x5f49x28=_0x5f49x17[_0xa476[62]]?_[_0xa476[60]](_0x5f49x13[_0xa476[62]],_0xa476[59]):[];_0x5f49x19=_[_0xa476[60]](_0x5f49x27,function(_0x5f49x29){return _0x5f49x29[0]});_0x5f49x28[_0xa476[70]](function(_0x5f49x25){_0x5f49x23[_0xa476[69]](ContactEmail[_0xa476[81]]({where:{email:_0x5f49x25},defaults:{email:_0x5f49x25},transaction:_0x5f49x30}))});return _0x5f49x23;})[_0xa476[77]]()[_0xa476[43]](function(_0x5f49x2b){var _0x5f49x23=[];var _0x5f49x2c=_0x5f49x17[_0xa476[63]]?_[_0xa476[60]](_0x5f49x13[_0xa476[63]],_0xa476[59]):[];_0x5f49x1a=_[_0xa476[60]](_0x5f49x2b,function(_0x5f49x29){return _0x5f49x29[0]});_0x5f49x2c[_0xa476[70]](function(_0x5f49x25){_0x5f49x23[_0xa476[69]](ContactEmail[_0xa476[68]]({where:{email:_0x5f49x25},defaults:{email:_0x5f49x25},transaction:_0x5f49x30}))});return _0x5f49x23;})[_0xa476[77]]()[_0xa476[43]](function(_0x5f49x2e){_0x5f49x1b=_[_0xa476[60]](_0x5f49x2e,function(_0x5f49x29){return _0x5f49x29[0]});return ;})[_0xa476[43]](function(){return _0x5f49x17[_0xa476[76]](_0x5f49x18,{transaction:_0x5f49x30})})[_0xa476[43]](function(){return _0x5f49x17[_0xa476[75]](_0x5f49x19,{transaction:_0x5f49x30})})[_0xa476[43]](function(){return _0x5f49x17[_0xa476[74]](_0x5f49x1a,{transaction:_0x5f49x30})})[_0xa476[43]](function(){return _0x5f49x17[_0xa476[73]](_0x5f49x1b,{transaction:_0x5f49x30})})}})[_0xa476[43]](function(_0x5f49x2f){console[_0xa476[21]](_0x5f49x2f)})[_0xa476[40]](function(_0x5f49x11){console[_0xa476[39]](_0x5f49x11)});});_0x5f49xd[_0xa476[46]](_0xa476[83],function(_0x5f49x32){console[_0xa476[21]](_0x5f49x32[_0xa476[2]])});}_0x5f49x10(_0x5f49xc);MailServerIn[_0xa476[84]](function(_0x5f49xc){_0x5f49x10(_0x5f49xc)});MailServerIn[_0xa476[85]](function(_0x5f49xc){_0x5f49xe(_0x5f49xc)});MailServerIn[_0xa476[86]](function(_0x5f49xc){_0x5f49xf(_0x5f49xc)});}module[_0xa476[87]]=Imap;
\ No newline at end of file
+var _0xe7b0=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x75\x74\x69\x6C","\x70\x61\x74\x68","\x6C\x6F\x64\x61\x73\x68","\x62\x6C\x75\x65\x62\x69\x72\x64","\x6D\x61\x69\x6C\x2D\x6C\x69\x73\x74\x65\x6E\x65\x72\x32","\x77\x72\x69\x74\x65\x46\x69\x6C\x65","\x66\x73","\x70\x72\x6F\x6D\x69\x73\x69\x66\x79","\x2E\x2E\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x4D\x61\x69\x6C\x53\x65\x72\x76\x65\x72\x49\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x4D\x61\x69\x6C\x52\x6F\x6F\x6D","\x4D\x61\x69\x6C\x4D\x65\x73\x73\x61\x67\x65","\x4D\x61\x69\x6C\x41\x63\x63\x6F\x75\x6E\x74","\x4D\x61\x69\x6C\x41\x74\x74\x61\x63\x68\x6D\x65\x6E\x74","\x65\x72\x72\x6F\x72","\x6F\x6E","\x63\x6C\x6F\x73\x65","\x49\x4D\x41\x50\x20\x53\x45\x52\x56\x45\x52\x20\x25\x73\x20\x45\x58\x49\x54\x45\x44\x20\x57\x49\x54\x48\x20\x43\x4F\x44\x45\x20\x25\x73\x2C\x20\x50\x52\x4F\x43\x45\x53\x53\x20\x49\x44\x3A\x20\x25\x73\x20","\x61\x72\x67\x76","\x70\x69\x64","\x66\x6F\x72\x6D\x61\x74","\x6C\x6F\x67","\x49\x4D\x41\x50\x20\x53\x45\x52\x56\x45\x52\x20\x25\x73\x20\x53\x54\x41\x52\x54\x49\x4E\x47\x2C\x20\x50\x52\x4F\x43\x45\x53\x53\x20\x49\x44\x3A\x20\x25\x73\x20","\x73\x74\x61\x74\x65","\x43\x4F\x4E\x4E\x45\x43\x54\x49\x4E\x47","\x73\x65\x6E\x64","\x6D\x61\x69\x6C","\x49\x4D\x41\x50\x20\x53\x45\x52\x56\x45\x52\x20\x25\x73\x20\x4E\x45\x57\x20\x4D\x53\x47\x20\x46\x52\x4F\x4D\x20\x25\x73\x20","\x3B","\x6A\x6F\x69\x6E","\x66\x72\x6F\x6D","\x61\x64\x64\x72\x65\x73\x73","\x6D\x61\x70","\x74\x79\x70\x65","\x6D\x73\x67","\x6D\x61\x69\x6C\x53\x65\x72\x76\x65\x72\x49\x6E\x49\x64","\x6D\x61\x69\x6C\x41\x63\x63\x6F\x75\x6E\x74\x49\x64","\x49\x4D\x41\x50\x20\x53\x45\x52\x56\x45\x52\x20\x25\x73\x20\x45\x52\x52\x52\x4F\x52\x2C\x20\x50\x52\x4F\x43\x45\x53\x53\x20\x49\x44\x3A\x20\x25\x73\x20","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x45\x52\x52\x4F\x52","\x73\x74\x72\x69\x6E\x67\x69\x66\x79","\x73\x65\x72\x76\x65\x72\x3A\x64\x69\x73\x63\x6F\x6E\x6E\x65\x63\x74\x65\x64","\x49\x4D\x41\x50\x20\x53\x45\x52\x56\x45\x52\x20\x25\x73\x20\x44\x49\x53\x43\x4F\x4E\x4E\x45\x43\x54\x45\x44\x2C\x20\x50\x52\x4F\x43\x45\x53\x53\x20\x49\x44\x3A\x20\x25\x73\x20","\x73\x74\x6F\x70","\x44\x49\x53\x43\x4F\x4E\x4E\x45\x43\x54\x45\x44","\x73\x65\x72\x76\x65\x72\x3A\x63\x6F\x6E\x6E\x65\x63\x74\x65\x64","\x49\x4D\x41\x50\x20\x53\x45\x52\x56\x45\x52\x20\x25\x73\x20\x43\x4F\x4E\x4E\x45\x43\x54\x45\x44\x2C\x20\x50\x52\x4F\x43\x45\x53\x53\x20\x49\x44\x3A\x20\x25\x73\x20","\x43\x4F\x4E\x4E\x45\x43\x54\x45\x44","\x70\x61\x73\x73\x77\x6F\x72\x64","\x68\x6F\x73\x74","\x70\x6F\x72\x74","\x73\x73\x6C","\x6D\x61\x69\x6C\x62\x6F\x78","\x66\x69\x6C\x74\x65\x72","\x63\x6F\x6E\x6E\x54\x69\x6D\x65\x6F\x75\x74","\x61\x75\x74\x68\x54\x69\x6D\x65\x6F\x75\x74","\x6B\x65\x65\x70\x61\x6C\x69\x76\x65","\x69\x64","\x4D\x61\x69\x6C\x41\x63\x63\x6F\x75\x6E\x74\x49\x64","\x73\x74\x61\x72\x74","\x63\x61\x74\x63\x68","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x42\x79\x49\x64"];_0xe7b0[0];var util=require(_0xe7b0[1]);var path=require(_0xe7b0[2]);var _=require(_0xe7b0[3]);var Promise=require(_0xe7b0[4]);var ImapListener=require(_0xe7b0[5]);var writeFile=Promise[_0xe7b0[8]](require(_0xe7b0[7])[_0xe7b0[6]]);var config=require(_0xe7b0[9]);var Server=require(_0xe7b0[11])[_0xe7b0[10]];var Room=require(_0xe7b0[11])[_0xe7b0[12]];var Message=require(_0xe7b0[11])[_0xe7b0[13]];var Account=require(_0xe7b0[11])[_0xe7b0[14]];var Attachment=require(_0xe7b0[11])[_0xe7b0[15]];var imap;var timeout;process[_0xe7b0[17]](_0xe7b0[18],function(_0x9d61x10){console[_0xe7b0[23]](util[_0xe7b0[22]](_0xe7b0[19],process[_0xe7b0[20]][3],_0x9d61x10,process[_0xe7b0[21]]))})[_0xe7b0[17]](_0xe7b0[16],function(_0x9d61xf){console[_0xe7b0[16]](_0x9d61xf)});console[_0xe7b0[23]](util[_0xe7b0[22]](_0xe7b0[24],process[_0xe7b0[20]][3],process[_0xe7b0[21]]));process[_0xe7b0[27]]({type:_0xe7b0[25],state:_0xe7b0[26]});function onSave(_0x9d61x12){imap=  new ImapListener({username:_0x9d61x12[_0xe7b0[40]],password:_0x9d61x12[_0xe7b0[50]],host:_0x9d61x12[_0xe7b0[51]],port:_0x9d61x12[_0xe7b0[52]],tls:_0x9d61x12[_0xe7b0[53]],tlsOptions:{rejectUnauthorized:false},mailbox:_0x9d61x12[_0xe7b0[54]],searchFilter:[_0x9d61x12[_0xe7b0[55]]],markSeen:true,fetchUnreadOnStart:true,connTimeout:_0x9d61x12[_0xe7b0[56]],authTimeout:_0x9d61x12[_0xe7b0[57]],keepalive:_0x9d61x12[_0xe7b0[58]]})[_0xe7b0[17]](_0xe7b0[47],function(){console[_0xe7b0[23]](util[_0xe7b0[22]](_0xe7b0[48],_0x9d61x12[_0xe7b0[40]],process[_0xe7b0[21]]));process[_0xe7b0[27]]({type:_0xe7b0[25],state:_0xe7b0[49]})})[_0xe7b0[17]](_0xe7b0[43],function(){console[_0xe7b0[23]](util[_0xe7b0[22]](_0xe7b0[44],_0x9d61x12[_0xe7b0[40]],process[_0xe7b0[21]]));imap[_0xe7b0[45]]();imap= null;process[_0xe7b0[27]]({type:_0xe7b0[25],state:_0xe7b0[46]})})[_0xe7b0[17]](_0xe7b0[16],function(_0x9d61xf){console[_0xe7b0[23]](util[_0xe7b0[22]](_0xe7b0[39],_0x9d61x12[_0xe7b0[40]],process[_0xe7b0[21]]));process[_0xe7b0[27]]({type:_0xe7b0[25],state:_0xe7b0[41],source:JSON[_0xe7b0[42]](_0x9d61xf)})})[_0xe7b0[17]](_0xe7b0[28],function(_0x9d61x13,_0x9d61x14,_0x9d61x15){console[_0xe7b0[23]](util[_0xe7b0[22]](_0xe7b0[29],process[_0xe7b0[20]][3],_[_0xe7b0[34]](_0x9d61x13[_0xe7b0[32]],_0xe7b0[33])[_0xe7b0[31]](_0xe7b0[30])));_0x9d61x13[_0xe7b0[35]]= _0xe7b0[36];_0x9d61x13[_0xe7b0[37]]= imap[_0xe7b0[37]];_0x9d61x13[_0xe7b0[38]]= imap[_0xe7b0[38]];process[_0xe7b0[27]](_0x9d61x13)});imap[_0xe7b0[37]]= _0x9d61x12[_0xe7b0[59]];imap[_0xe7b0[38]]= _0x9d61x12[_0xe7b0[60]];imap[_0xe7b0[61]]()}Server[_0xe7b0[64]](process[_0xe7b0[20]][2])[_0xe7b0[63]](function(_0x9d61x12){onSave(_0x9d61x12)})[_0xe7b0[62]](function(_0x9d61xf){console[_0xe7b0[16]](_0x9d61xf)})
\ No newline at end of file