Built motion from commit 1333b3551.|1.0.38
[motion.git] / server / config / imap / imap.js
index 24794df..892f9b7 100644 (file)
@@ -1 +1 @@
-var _0xdf20=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x75\x74\x69\x6C","\x6C\x6F\x64\x61\x73\x68","\x6D\x61\x69\x6C\x2D\x6C\x69\x73\x74\x65\x6E\x65\x72\x32","\x68\x74\x6D\x6C\x2D\x74\x6F\x2D\x74\x65\x78\x74","\x6D\x61\x69\x6C","\x2E\x2E\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\x2E\x2E\x2F\x72\x70\x63\x2F\x63\x6C\x69\x65\x6E\x74","\x65\x72\x72\x6F\x72","\x49\x4D\x41\x50\x20\x50\x52\x4F\x43\x45\x53\x53\x20\x25\x73\x20\x45\x52\x52\x4F\x52","\x61\x72\x67\x76","\x66\x6F\x72\x6D\x61\x74","\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","\x70\x69\x64","\x64\x65\x62\x75\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","\x69\x6E\x66\x6F","\x73\x74\x61\x74\x65","\x43\x4F\x4E\x4E\x45\x43\x54\x49\x4E\x47","\x73\x65\x6E\x64","\x67\x63","\x47\x61\x72\x62\x61\x67\x65\x20\x63\x6F\x6C\x6C\x65\x63\x74\x69\x6F\x6E\x20\x75\x6E\x61\x76\x61\x69\x6C\x61\x62\x6C\x65\x2E\x20\x20\x50\x61\x73\x73\x20\x2D\x2D\x65\x78\x70\x6F\x73\x65\x2D\x67\x63\x20","\x77\x68\x65\x6E\x20\x6C\x61\x75\x6E\x63\x68\x69\x6E\x67\x20\x6E\x6F\x64\x65\x20\x74\x6F\x20\x65\x6E\x61\x62\x6C\x65\x20\x66\x6F\x72\x63\x65\x64\x20\x67\x61\x72\x62\x61\x67\x65\x20\x63\x6F\x6C\x6C\x65\x63\x74\x69\x6F\x6E\x2E","\x77\x61\x72\x6E","\x73\x74\x6F\x70","\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\x65\x78\x74","\x68\x74\x6D\x6C","\x66\x72\x6F\x6D\x53\x74\x72\x69\x6E\x67","","\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\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","\x73\x74\x61\x63\x6B","\x45\x52\x52\x4F\x52","\x73\x74\x72\x69\x6E\x67\x69\x66\x79","\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","\x70\x6F\x6C\x6C\x69\x6E\x67\x54\x69\x6D\x65","\x63\x61\x74\x63\x68","\x74\x68\x65\x6E","\x73\x68\x6F\x77","\x4D\x61\x69\x6C\x53\x65\x72\x76\x65\x72\x49\x6E","\x72\x65\x71\x75\x65\x73\x74"];_0xdf20[0];var util=require(_0xdf20[1]);var _=require(_0xdf20[2]);var ImapListener=require(_0xdf20[3]);var htmlToText=require(_0xdf20[4]);var logger=require(_0xdf20[6])(_0xdf20[5]);var rpcClient=require(_0xdf20[7]);var imap;process[_0xdf20[12]](_0xdf20[13],function(_0xc441x9){logger[_0xdf20[16]](util[_0xdf20[11]](_0xdf20[14],process[_0xdf20[10]][3],_0xc441x9,process[_0xdf20[15]]))})[_0xdf20[12]](_0xdf20[8],function(_0xc441x8){logger[_0xdf20[8]](util[_0xdf20[11]](_0xdf20[9],process[_0xdf20[10]][3]),_0xc441x8)});logger[_0xdf20[18]](util[_0xdf20[11]](_0xdf20[17],process[_0xdf20[10]][3],process[_0xdf20[15]]));process[_0xdf20[21]]({type:_0xdf20[19],state:_0xdf20[20]});setInterval(function(){if(global[_0xdf20[22]]){global[_0xdf20[22]]()}else {logger[_0xdf20[25]](_0xdf20[23]+ _0xdf20[24])}},20000);function onSave(_0xc441xb){setInterval(function(){if(imap){imap[_0xdf20[26]]()};imap= null;imap=  new ImapListener({username:_0xc441xb[_0xdf20[42]],password:_0xc441xb[_0xdf20[49]],host:_0xc441xb[_0xdf20[50]],port:_0xc441xb[_0xdf20[51]],tls:_0xc441xb[_0xdf20[52]],tlsOptions:{rejectUnauthorized:false},mailbox:_0xc441xb[_0xdf20[53]],searchFilter:[_0xc441xb[_0xdf20[54]]],markSeen:true,fetchUnreadOnStart:true,connTimeout:_0xc441xb[_0xdf20[55]]* 1000,authTimeout:_0xc441xb[_0xdf20[56]]* 1000,keepalive:_0xc441xb[_0xdf20[57]]})[_0xdf20[12]](_0xdf20[46],function(){logger[_0xdf20[18]](util[_0xdf20[11]](_0xdf20[47],_0xc441xb[_0xdf20[42]],process[_0xdf20[15]]));process[_0xdf20[21]]({type:_0xdf20[19],state:_0xdf20[48]})})[_0xdf20[12]](_0xdf20[8],function(_0xc441x8){logger[_0xdf20[8]](util[_0xdf20[11]](_0xdf20[41],_0xc441xb[_0xdf20[42]],process[_0xdf20[15]]),_0xc441x8[_0xdf20[43]]);process[_0xdf20[21]]({type:_0xdf20[19],state:_0xdf20[44],source:JSON[_0xdf20[45]](_0xc441x8)})})[_0xdf20[12]](_0xdf20[5],function(_0xc441xc,_0xc441xd,_0xc441xe){logger[_0xdf20[18]](util[_0xdf20[11]](_0xdf20[27],process[_0xdf20[10]][3],_[_0xdf20[32]](_0xc441xc[_0xdf20[30]],_0xdf20[31])[_0xdf20[29]](_0xdf20[28])));_0xc441xc[_0xdf20[33]]= _0xc441xc[_0xdf20[34]]?htmlToText[_0xdf20[35]](_0xc441xc[_0xdf20[34]],{wordwrap:false}):(_0xc441xc[_0xdf20[33]]?_0xc441xc[_0xdf20[33]]:_0xdf20[36]);_0xc441xc[_0xdf20[37]]= _0xdf20[38];_0xc441xc[_0xdf20[39]]= imap[_0xdf20[39]];_0xc441xc[_0xdf20[40]]= imap[_0xdf20[40]];process[_0xdf20[21]](_0xc441xc)});imap[_0xdf20[39]]= _0xc441xb[_0xdf20[58]];imap[_0xdf20[40]]= _0xc441xb[_0xdf20[59]];imap[_0xdf20[60]]()},_0xc441xb[_0xdf20[61]]?(_0xc441xb[_0xdf20[61]]* 1000):30000)}rpcClient[_0xdf20[66]](_0xdf20[64],[_0xdf20[65],{where:{id:process[_0xdf20[10]][2]}}])[_0xdf20[63]](function(_0xc441xb){onSave(_0xc441xb)})[_0xdf20[62]](function(_0xc441x8){logger[_0xdf20[8]](_0xc441x8[_0xdf20[43]])})
\ No newline at end of file
+var _0x7c05=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x75\x74\x69\x6C","\x6C\x6F\x64\x61\x73\x68","\x6D\x61\x69\x6C\x2D\x6C\x69\x73\x74\x65\x6E\x65\x72\x32","\x68\x74\x6D\x6C\x2D\x74\x6F\x2D\x74\x65\x78\x74","\x6D\x61\x69\x6C","\x2E\x2E\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\x2E\x2E\x2F\x72\x70\x63\x2F\x63\x6C\x69\x65\x6E\x74","\x65\x72\x72\x6F\x72","\x49\x4D\x41\x50\x20\x50\x52\x4F\x43\x45\x53\x53\x20\x25\x73\x20\x45\x52\x52\x4F\x52","\x61\x72\x67\x76","\x66\x6F\x72\x6D\x61\x74","\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","\x70\x69\x64","\x64\x65\x62\x75\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","\x69\x6E\x66\x6F","\x73\x74\x61\x74\x65","\x43\x4F\x4E\x4E\x45\x43\x54\x49\x4E\x47","\x73\x65\x6E\x64","\x67\x63","\x47\x61\x72\x62\x61\x67\x65\x20\x63\x6F\x6C\x6C\x65\x63\x74\x69\x6F\x6E\x20\x75\x6E\x61\x76\x61\x69\x6C\x61\x62\x6C\x65\x2E\x20\x20\x50\x61\x73\x73\x20\x2D\x2D\x65\x78\x70\x6F\x73\x65\x2D\x67\x63\x20","\x77\x68\x65\x6E\x20\x6C\x61\x75\x6E\x63\x68\x69\x6E\x67\x20\x6E\x6F\x64\x65\x20\x74\x6F\x20\x65\x6E\x61\x62\x6C\x65\x20\x66\x6F\x72\x63\x65\x64\x20\x67\x61\x72\x62\x61\x67\x65\x20\x63\x6F\x6C\x6C\x65\x63\x74\x69\x6F\x6E\x2E","\x77\x61\x72\x6E","\x73\x74\x6F\x70","\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\x65\x78\x74","\x68\x74\x6D\x6C","\x66\x72\x6F\x6D\x53\x74\x72\x69\x6E\x67","","\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\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","\x73\x74\x61\x63\x6B","\x45\x52\x52\x4F\x52","\x73\x74\x72\x69\x6E\x67\x69\x66\x79","\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","\x70\x6F\x6C\x6C\x69\x6E\x67\x54\x69\x6D\x65","\x63\x61\x74\x63\x68","\x74\x68\x65\x6E","\x73\x68\x6F\x77","\x4D\x61\x69\x6C\x53\x65\x72\x76\x65\x72\x49\x6E","\x72\x65\x71\x75\x65\x73\x74"];_0x7c05[0];var util=require(_0x7c05[1]);var _=require(_0x7c05[2]);var ImapListener=require(_0x7c05[3]);var htmlToText=require(_0x7c05[4]);var logger=require(_0x7c05[6])(_0x7c05[5]);var rpcClient=require(_0x7c05[7]);var imap;process[_0x7c05[12]](_0x7c05[13],function(_0x3e0dx9){logger[_0x7c05[16]](util[_0x7c05[11]](_0x7c05[14],process[_0x7c05[10]][3],_0x3e0dx9,process[_0x7c05[15]]))})[_0x7c05[12]](_0x7c05[8],function(_0x3e0dx8){logger[_0x7c05[8]](util[_0x7c05[11]](_0x7c05[9],process[_0x7c05[10]][3]),_0x3e0dx8)});logger[_0x7c05[18]](util[_0x7c05[11]](_0x7c05[17],process[_0x7c05[10]][3],process[_0x7c05[15]]));process[_0x7c05[21]]({type:_0x7c05[19],state:_0x7c05[20]});setInterval(function(){if(global[_0x7c05[22]]){global[_0x7c05[22]]()}else {logger[_0x7c05[25]](_0x7c05[23]+ _0x7c05[24])}},20000);function onSave(_0x3e0dxb){setInterval(function(){if(imap){imap[_0x7c05[26]]()};imap= null;imap=  new ImapListener({username:_0x3e0dxb[_0x7c05[42]],password:_0x3e0dxb[_0x7c05[49]],host:_0x3e0dxb[_0x7c05[50]],port:_0x3e0dxb[_0x7c05[51]],tls:_0x3e0dxb[_0x7c05[52]],tlsOptions:{rejectUnauthorized:false},mailbox:_0x3e0dxb[_0x7c05[53]],searchFilter:[_0x3e0dxb[_0x7c05[54]]],markSeen:true,fetchUnreadOnStart:true,connTimeout:_0x3e0dxb[_0x7c05[55]]* 1000,authTimeout:_0x3e0dxb[_0x7c05[56]]* 1000,keepalive:_0x3e0dxb[_0x7c05[57]]})[_0x7c05[12]](_0x7c05[46],function(){logger[_0x7c05[18]](util[_0x7c05[11]](_0x7c05[47],_0x3e0dxb[_0x7c05[42]],process[_0x7c05[15]]));process[_0x7c05[21]]({type:_0x7c05[19],state:_0x7c05[48]})})[_0x7c05[12]](_0x7c05[8],function(_0x3e0dx8){logger[_0x7c05[8]](util[_0x7c05[11]](_0x7c05[41],_0x3e0dxb[_0x7c05[42]],process[_0x7c05[15]]),_0x3e0dx8[_0x7c05[43]]);process[_0x7c05[21]]({type:_0x7c05[19],state:_0x7c05[44],source:JSON[_0x7c05[45]](_0x3e0dx8)})})[_0x7c05[12]](_0x7c05[5],function(_0x3e0dxc,_0x3e0dxd,_0x3e0dxe){logger[_0x7c05[18]](util[_0x7c05[11]](_0x7c05[27],process[_0x7c05[10]][3],_[_0x7c05[32]](_0x3e0dxc[_0x7c05[30]],_0x7c05[31])[_0x7c05[29]](_0x7c05[28])));_0x3e0dxc[_0x7c05[33]]= _0x3e0dxc[_0x7c05[34]]?htmlToText[_0x7c05[35]](_0x3e0dxc[_0x7c05[34]],{wordwrap:false}):(_0x3e0dxc[_0x7c05[33]]?_0x3e0dxc[_0x7c05[33]]:_0x7c05[36]);_0x3e0dxc[_0x7c05[37]]= _0x7c05[38];_0x3e0dxc[_0x7c05[39]]= imap[_0x7c05[39]];_0x3e0dxc[_0x7c05[40]]= imap[_0x7c05[40]];process[_0x7c05[21]](_0x3e0dxc)});imap[_0x7c05[39]]= _0x3e0dxb[_0x7c05[58]];imap[_0x7c05[40]]= _0x3e0dxb[_0x7c05[59]];imap[_0x7c05[60]]()},_0x3e0dxb[_0x7c05[61]]?(_0x3e0dxb[_0x7c05[61]]* 1000):30000)}rpcClient[_0x7c05[66]](_0x7c05[64],[_0x7c05[65],{where:{id:process[_0x7c05[10]][2]}}])[_0x7c05[63]](function(_0x3e0dxb){onSave(_0x3e0dxb)})[_0x7c05[62]](function(_0x3e0dx8){logger[_0x7c05[8]](_0x3e0dx8[_0x7c05[43]])})
\ No newline at end of file