Built motion from commit ab2cbc7.|0.0.98
[motion.git] / server / config / imap / imap.js
index bb19b6e..8067856 100644 (file)
@@ -1 +1 @@
-var _0x4002=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x62\x6C\x75\x65\x62\x69\x72\x64","\x77\x72\x69\x74\x65\x46\x69\x6C\x65","\x66\x73","\x70\x72\x6F\x6D\x69\x73\x69\x66\x79","\x70\x61\x74\x68","\x69\x6E\x73\x70\x65\x63\x74","\x75\x74\x69\x6C","\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\x41\x74\x74\x61\x63\x68\x6D\x65\x6E\x74","\x4D\x61\x69\x6C\x52\x6F\x6F\x6D","\x4D\x61\x69\x6C\x41\x63\x63\x6F\x75\x6E\x74","\x43\x6F\x6E\x74\x61\x63\x74","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x49\x6D\x61\x70\x20\x49\x6E\x69\x74\x69\x61\x6C\x69\x7A\x61\x74\x69\x6F\x6E\x2E\x2E\x2E","\x6C\x6F\x67","\x69\x6D\x61\x70","\x74\x69\x6D\x65\x6F\x75\x74","\x69\x6E\x69\x74","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x6F\x6E\x53\x61\x76\x65","\x69\x64","\x6D\x61\x69\x6C\x53\x65\x72\x76\x65\x72\x49\x6E\x49\x64","\x6F\x6E\x55\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x6F\x6E\x52\x65\x6D\x6F\x76\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x73\x74\x61\x74\x65","\x63\x68\x61\x6E\x67\x65\x64","\x73\x6F\x75\x72\x63\x65","\x4D\x41\x49\x4C\x20\x2D\x20\x41\x63\x63\x6F\x75\x6E\x74\x20","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x20\x49\x4D\x41\x50\x20\x55\x50\x44\x41\x54\x45\x44","\x20\x49\x4D\x41\x50\x20\x44\x45\x53\x54\x52\x4F\x59","\x73\x74\x6F\x70","\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","\x6D\x61\x69\x6C\x41\x63\x63\x6F\x75\x6E\x74\x49\x64","\x4D\x61\x69\x6C\x41\x63\x63\x6F\x75\x6E\x74\x49\x64","\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","\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","\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","\x20\x49\x4D\x41\x50\x20\x45\x52\x52\x4F\x52","\x45\x52\x52\x4F\x52","\x73\x74\x72\x69\x6E\x67\x69\x66\x79","\x6D\x61\x69\x6C","\x69\x6E\x52\x65\x70\x6C\x79\x54\x6F","\x61\x74\x74\x61\x63\x68\x6D\x65\x6E\x74\x73","\x6C\x65\x6E\x67\x74\x68","\x64\x6F\x77\x6E\x6C\x6F\x61\x64\x5F","\x72\x61\x6E\x64\x6F\x6D","\x63\x6F\x6E\x74\x65\x6E\x74","\x66\x69\x6C\x65\x4E\x61\x6D\x65","\x72\x6F\x6F\x74","\x73\x65\x72\x76\x65\x72","\x66\x69\x6C\x65\x73","\x2F","\x6A\x6F\x69\x6E","\x63\x6F\x6E\x74\x65\x6E\x74\x54\x79\x70\x65","\x63\x72\x65\x61\x74\x65","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x61\x6C\x6C","\x6D\x65\x73\x73\x61\x67\x65\x49\x64","\x52\x45\x43\x45\x49\x56\x45\x44","\x73\x75\x62\x6A\x65\x63\x74","\x66\x72\x6F\x6D","\x61\x64\x64\x72\x65\x73\x73","\x6D\x61\x70","\x74\x6F","\x63\x63","\x62\x63\x63","\x74\x65\x78\x74","\x67\x65\x74\x4D\x61\x69\x6C\x52\x6F\x6F\x6D","\x3B","\x6E\x61\x6D\x65","\x66\x69\x6E\x64\x4F\x6E\x65","\x4D\x61\x69\x6C\x4D\x65\x73\x73\x61\x67\x65\x73","\x73\x74\x61\x72\x74","\x65\x78\x70\x6F\x72\x74\x73"];_0x4002[0];var _=require(_0x4002[1]);var Promise=require(_0x4002[2]);var writeFile=Promise[_0x4002[5]](require(_0x4002[4])[_0x4002[3]]);var path=require(_0x4002[6]);var inspect=require(_0x4002[8])[_0x4002[7]];var config=require(_0x4002[9]);var ImapListener=require(_0x4002[10]);var MailServerIn=require(_0x4002[12])[_0x4002[11]];var MailMessage=require(_0x4002[12])[_0x4002[13]];var MailAttachment=require(_0x4002[12])[_0x4002[14]];var MailRoom=require(_0x4002[12])[_0x4002[15]];var MailAccount=require(_0x4002[12])[_0x4002[16]];var Contact=require(_0x4002[12])[_0x4002[17]];var sequelize=require(_0x4002[12])[_0x4002[18]];function Imap(){console[_0x4002[20]](_0x4002[19]);this[_0x4002[21]]=null;this[_0x4002[22]]=null}Imap[_0x4002[24]][_0x4002[23]]=function(_0x3c49x10){var _0x3c49x11=this;_0x3c49x11[_0x4002[25]](_0x3c49x10);MailServerIn[_0x4002[29]](function(_0x3c49x10){if(_0x3c49x11[_0x4002[21]]&&_0x3c49x10[_0x4002[26]]===_0x3c49x11[_0x4002[21]][_0x4002[27]]){_0x3c49x11[_0x4002[28]](_0x3c49x10)}});MailServerIn[_0x4002[31]](function(_0x3c49x10){if(_0x3c49x11[_0x4002[21]]&&_0x3c49x10[_0x4002[26]]===_0x3c49x11[_0x4002[21]][_0x4002[27]]){_0x3c49x11[_0x4002[30]](_0x3c49x10)}})};Imap[_0x4002[24]][_0x4002[25]]=function(_0x3c49x10){var _0x3c49x11=this;_0x3c49x11[_0x4002[22]]=setInterval(function(){if(!_0x3c49x11[_0x4002[21]]){onImapListener(_0x3c49x11,_0x3c49x10)}},10000)};Imap[_0x4002[24]][_0x4002[28]]=function(_0x3c49x10){if(!_0x3c49x10[_0x4002[33]](_0x4002[32])&&!_0x3c49x10[_0x4002[33]](_0x4002[34])){console[_0x4002[20]](_0x4002[35]+_0x3c49x10[_0x4002[36]]+_0x4002[37]);this[_0x4002[25]](_0x3c49x10)}};Imap[_0x4002[24]][_0x4002[30]]=function(_0x3c49x10){console[_0x4002[20]](_0x4002[35]+_0x3c49x10[_0x4002[36]]+_0x4002[38]);this[_0x4002[21]][_0x4002[39]]();this[_0x4002[21]]=null};function onImapListener(_0x3c49x11,_0x3c49x10){_0x3c49x11[_0x4002[21]]= new ImapListener({username:_0x3c49x10[_0x4002[36]],password:_0x3c49x10[_0x4002[40]],host:_0x3c49x10[_0x4002[41]],port:_0x3c49x10[_0x4002[42]],tls:_0x3c49x10[_0x4002[43]],tlsOptions:{rejectUnauthorized:false},mailbox:_0x3c49x10[_0x4002[44]],searchFilter:[_0x3c49x10[_0x4002[45]]],markSeen:true,fetchUnreadOnStart:true});_0x3c49x11[_0x4002[21]][_0x4002[27]]=_0x3c49x10[_0x4002[26]];_0x3c49x11[_0x4002[21]][_0x4002[46]]=_0x3c49x10[_0x4002[47]];_0x3c49x11[_0x4002[21]][_0x4002[56]](_0x4002[48],function(){console[_0x4002[20]](_0x4002[35]+_0x3c49x10[_0x4002[36]]+_0x4002[49]);return MailServerIn[_0x4002[55]](_0x3c49x10[_0x4002[26]])[_0x4002[54]](function(_0x3c49x14){return _0x3c49x14[_0x4002[53]]({state:_0x4002[52]})})[_0x4002[51]](function(_0x3c49x13){console[_0x4002[50]](_0x3c49x13)})});_0x3c49x11[_0x4002[21]][_0x4002[56]](_0x4002[57],function(){console[_0x4002[20]](_0x4002[35]+_0x3c49x10[_0x4002[47]]+_0x4002[58]);return MailServerIn[_0x4002[55]](_0x3c49x10[_0x4002[26]])[_0x4002[54]](function(_0x3c49x14){if(_0x3c49x14){return _0x3c49x14[_0x4002[53]]({state:_0x4002[59]})}})[_0x4002[51]](function(_0x3c49x13){console[_0x4002[50]](_0x3c49x13)})});_0x3c49x11[_0x4002[21]][_0x4002[56]](_0x4002[50],function(_0x3c49x13){_0x3c49x11[_0x4002[21]][_0x4002[39]]();_0x3c49x11[_0x4002[21]]=null;console[_0x4002[20]](_0x4002[35]+_0x3c49x10[_0x4002[47]]+_0x4002[60],_0x3c49x13);return MailServerIn[_0x4002[55]](_0x3c49x10[_0x4002[26]])[_0x4002[54]](function(_0x3c49x14){if(_0x3c49x14){return _0x3c49x14[_0x4002[53]]({state:_0x4002[61],source:JSON[_0x4002[62]](_0x3c49x13)})}})[_0x4002[51]](function(_0x3c49x13){console[_0x4002[50]](_0x3c49x13)})});_0x3c49x11[_0x4002[21]][_0x4002[56]](_0x4002[63],function(_0x3c49x15,_0x3c49x16,_0x3c49x17){var _0x3c49x18;var _0x3c49x19;var _0x3c49x1a,_0x3c49x1b,_0x3c49x1c,_0x3c49x1d;if(_0x3c49x15[_0x4002[64]]){return MailMessage[_0x4002[94]]({where:{messageId:_0x3c49x15[_0x4002[64]][0]}})[_0x4002[54]](function(_0x3c49x25){if(_0x3c49x25){return _0x3c49x25[_0x4002[91]]()}else {return MailAccount[_0x4002[55]](_0x3c49x11[_0x4002[21]][_0x4002[46]])[_0x4002[54]](function(_0x3c49x26){return MailRoom[_0x4002[77]]({roomId:_0x3c49x15[_0x4002[81]],subject:_0x3c49x15[_0x4002[83]],from:_[_0x4002[86]](_0x3c49x15[_0x4002[84]],_0x4002[85])[_0x4002[75]](_0x4002[92]),account:_0x3c49x26[_0x4002[93]],lastEvent:_0x4002[82],MailAccountId:_0x3c49x26[_0x4002[26]]})})}})[_0x4002[54]](function(_0x3c49x24){_0x3c49x18=_0x3c49x24;return MailMessage[_0x4002[77]]({messageId:_0x3c49x15[_0x4002[81]],status:_0x4002[82],subject:_0x3c49x15[_0x4002[83]],from:_[_0x4002[86]](_0x3c49x15[_0x4002[84]],_0x4002[85]),to:_0x3c49x15[_0x4002[87]]?_[_0x4002[86]](_0x3c49x15[_0x4002[87]],_0x4002[85]):[],cc:_0x3c49x15[_0x4002[88]]?_[_0x4002[86]](_0x3c49x15[_0x4002[88]],_0x4002[85]):[],bcc:_0x3c49x15[_0x4002[89]]?_[_0x4002[86]](_0x3c49x15[_0x4002[89]],_0x4002[85]):[],text:_0x3c49x15[_0x4002[90]]||null,MailRoomId:_0x3c49x18[_0x4002[26]]})})[_0x4002[54]](function(_0x3c49x1e){var _0x3c49x1f=[];var _0x3c49x20=_0x3c49x1e;if(_0x3c49x15[_0x4002[65]]&&_0x3c49x15[_0x4002[65]][_0x4002[66]]){_0x3c49x15[_0x4002[65]][_0x4002[79]](function(_0x3c49x21){var _0x3c49x22=_0x4002[67]+Math[_0x4002[68]](32);_0x3c49x1f[_0x4002[78]](MailAttachment[_0x4002[77]]({name:_0x3c49x21[_0x4002[70]],basename:_0x3c49x22,path:path[_0x4002[75]](config[_0x4002[71]],_0x4002[72],_0x4002[73],_0x4002[65],_0x4002[74],_0x3c49x22),type:_0x3c49x21[_0x4002[76]],size:_0x3c49x21[_0x4002[66]],MailMessageId:_0x3c49x20[_0x4002[26]]})[_0x4002[54]](function(_0x3c49x23){return writeFile(_0x3c49x23[_0x4002[6]],_0x3c49x21[_0x4002[69]])}))})};return Promise[_0x4002[80]](_0x3c49x1f)})[_0x4002[51]](function(_0x3c49x13){console[_0x4002[50]](_0x3c49x13)})}else {return MailAccount[_0x4002[55]](_0x3c49x11[_0x4002[21]][_0x4002[46]])[_0x4002[54]](function(_0x3c49x26){return MailRoom[_0x4002[77]]({roomId:_0x3c49x15[_0x4002[81]],subject:_0x3c49x15[_0x4002[83]],from:_[_0x4002[86]](_0x3c49x15[_0x4002[84]],_0x4002[85])[_0x4002[75]](_0x4002[92]),lastEvent:_0x4002[82],account:_0x3c49x26[_0x4002[93]],MailMessages:[{messageId:_0x3c49x15[_0x4002[81]],subject:_0x3c49x15[_0x4002[83]],from:_[_0x4002[86]](_0x3c49x15[_0x4002[84]],_0x4002[85]),to:_0x3c49x15[_0x4002[87]]?_[_0x4002[86]](_0x3c49x15[_0x4002[87]],_0x4002[85]):[],cc:_0x3c49x15[_0x4002[88]]?_[_0x4002[86]](_0x3c49x15[_0x4002[88]],_0x4002[85]):[],bcc:_0x3c49x15[_0x4002[89]]?_[_0x4002[86]](_0x3c49x15[_0x4002[89]],_0x4002[85]):[],status:_0x4002[82],text:_0x3c49x15[_0x4002[90]]||null}],MailAccountId:_0x3c49x10[_0x4002[47]]},{include:[{model:MailMessage}]})})[_0x4002[54]](function(_0x3c49x27){var _0x3c49x1f=[];var _0x3c49x28=_0x3c49x27;if(_0x3c49x15[_0x4002[65]]&&_0x3c49x15[_0x4002[65]][_0x4002[66]]){_0x3c49x15[_0x4002[65]][_0x4002[79]](function(_0x3c49x21){var _0x3c49x22=_0x4002[67]+Math[_0x4002[68]](32);_0x3c49x1f[_0x4002[78]](MailAttachment[_0x4002[77]]({name:_0x3c49x21[_0x4002[70]],basename:_0x3c49x22,path:path[_0x4002[75]](config[_0x4002[71]],_0x4002[72],_0x4002[73],_0x4002[65],_0x4002[74],_0x3c49x22),type:_0x3c49x21[_0x4002[76]],size:_0x3c49x21[_0x4002[66]],MailMessageId:_0x3c49x28[_0x4002[95]][0][_0x4002[26]]})[_0x4002[54]](function(_0x3c49x23){return writeFile(_0x3c49x23[_0x4002[6]],_0x3c49x21[_0x4002[69]])}))})};return Promise[_0x4002[80]](_0x3c49x1f)})[_0x4002[51]](function(_0x3c49x13){console[_0x4002[50]](_0x3c49x13)})}});_0x3c49x11[_0x4002[21]][_0x4002[96]]()}module[_0x4002[97]]=Imap
\ No newline at end of file
+var _0x80c6=["\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"];_0x80c6[0];var util=require(_0x80c6[1]);var path=require(_0x80c6[2]);var _=require(_0x80c6[3]);var Promise=require(_0x80c6[4]);var ImapListener=require(_0x80c6[5]);var writeFile=Promise[_0x80c6[8]](require(_0x80c6[7])[_0x80c6[6]]);var config=require(_0x80c6[9]);var Server=require(_0x80c6[11])[_0x80c6[10]];var Room=require(_0x80c6[11])[_0x80c6[12]];var Message=require(_0x80c6[11])[_0x80c6[13]];var Account=require(_0x80c6[11])[_0x80c6[14]];var Attachment=require(_0x80c6[11])[_0x80c6[15]];var imap;var timeout;process[_0x80c6[17]](_0x80c6[18],function(_0xf180x10){console[_0x80c6[23]](util[_0x80c6[22]](_0x80c6[19],process[_0x80c6[20]][3],_0xf180x10,process[_0x80c6[21]]))})[_0x80c6[17]](_0x80c6[16],function(_0xf180xf){console[_0x80c6[16]](_0xf180xf)});console[_0x80c6[23]](util[_0x80c6[22]](_0x80c6[24],process[_0x80c6[20]][3],process[_0x80c6[21]]));process[_0x80c6[27]]({type:_0x80c6[25],state:_0x80c6[26]});function onSave(_0xf180x12){imap= new ImapListener({username:_0xf180x12[_0x80c6[40]],password:_0xf180x12[_0x80c6[50]],host:_0xf180x12[_0x80c6[51]],port:_0xf180x12[_0x80c6[52]],tls:_0xf180x12[_0x80c6[53]],tlsOptions:{rejectUnauthorized:false},mailbox:_0xf180x12[_0x80c6[54]],searchFilter:[_0xf180x12[_0x80c6[55]]],markSeen:true,fetchUnreadOnStart:true,connTimeout:_0xf180x12[_0x80c6[56]],authTimeout:_0xf180x12[_0x80c6[57]],keepalive:_0xf180x12[_0x80c6[58]]})[_0x80c6[17]](_0x80c6[47],function(){console[_0x80c6[23]](util[_0x80c6[22]](_0x80c6[48],_0xf180x12[_0x80c6[40]],process[_0x80c6[21]]));process[_0x80c6[27]]({type:_0x80c6[25],state:_0x80c6[49]})})[_0x80c6[17]](_0x80c6[43],function(){console[_0x80c6[23]](util[_0x80c6[22]](_0x80c6[44],_0xf180x12[_0x80c6[40]],process[_0x80c6[21]]));imap[_0x80c6[45]]();imap=null;process[_0x80c6[27]]({type:_0x80c6[25],state:_0x80c6[46]})})[_0x80c6[17]](_0x80c6[16],function(_0xf180xf){console[_0x80c6[23]](util[_0x80c6[22]](_0x80c6[39],_0xf180x12[_0x80c6[40]],process[_0x80c6[21]]));process[_0x80c6[27]]({type:_0x80c6[25],state:_0x80c6[41],source:JSON[_0x80c6[42]](_0xf180xf)})})[_0x80c6[17]](_0x80c6[28],function(_0xf180x13,_0xf180x14,_0xf180x15){console[_0x80c6[23]](util[_0x80c6[22]](_0x80c6[29],process[_0x80c6[20]][3],_[_0x80c6[34]](_0xf180x13[_0x80c6[32]],_0x80c6[33])[_0x80c6[31]](_0x80c6[30])));_0xf180x13[_0x80c6[35]]=_0x80c6[36];_0xf180x13[_0x80c6[37]]=imap[_0x80c6[37]];_0xf180x13[_0x80c6[38]]=imap[_0x80c6[38]];process[_0x80c6[27]](_0xf180x13)});imap[_0x80c6[37]]=_0xf180x12[_0x80c6[59]];imap[_0x80c6[38]]=_0xf180x12[_0x80c6[60]];imap[_0x80c6[61]]()}Server[_0x80c6[64]](process[_0x80c6[20]][2])[_0x80c6[63]](function(_0xf180x12){onSave(_0xf180x12)})[_0x80c6[62]](function(_0xf180xf){console[_0x80c6[16]](_0xf180xf)})
\ No newline at end of file