2ac5784cd19ef00932f355af0fad4fe418c2f6bb
[motion.git] / server / config / imap / index.js
1 var _0xc0eb=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x70\x61\x74\x68","\x63\x68\x69\x6C\x64\x5F\x70\x72\x6F\x63\x65\x73\x73","\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","\x4D\x61\x69\x6C\x52\x6F\x6F\x6D\x53\x74\x61\x74\x75\x73","\x4D\x61\x69\x6C\x41\x63\x63\x6F\x75\x6E\x74","\x43\x6F\x6E\x74\x61\x63\x74","\x43\x6F\x6D\x70\x61\x6E\x79","\x4D\x61\x69\x6C\x41\x74\x74\x61\x63\x68\x6D\x65\x6E\x74","\x52\x65\x70\x6F\x72\x74\x4D\x61\x69\x6C","\x52\x65\x70\x6F\x72\x74\x4D\x61\x69\x6C\x52\x6F\x6F\x6D","\x52\x65\x70\x6F\x72\x74\x4D\x61\x69\x6C\x53\x65\x73\x73\x69\x6F\x6E","\x62\x6C\x75\x65\x62\x69\x72\x64","\x6D\x6F\x6D\x65\x6E\x74","\x6F\x70\x65\x6E","\x66\x73","\x70\x72\x6F\x6D\x69\x73\x69\x66\x79","\x63\x6C\x6F\x73\x65","\x77\x72\x69\x74\x65","\x2E\x2E\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x2E\x2E\x2F\x72\x6F\x75\x74\x69\x6E\x67\x2F\x73\x63\x68\x65\x64\x75\x6C\x65\x72","\x69\x6E\x52\x65\x70\x6C\x79\x54\x6F","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x6D\x61\x69\x6C","\x25\x73\x2E\x25\x73","\x75\x6E\x69\x78","\x69\x64","\x66\x6F\x72\x6D\x61\x74","\x73\x75\x62\x6A\x65\x63\x74","\x6E\x61\x6D\x65","\x61\x64\x64\x72\x65\x73\x73","\x66\x72\x6F\x6D","\x63\x63","\x6D\x61\x70","\x69\x6E\x69\x74","\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","\x46\x69\x6C\x65","\x66\x69\x6C\x65\x4E\x61\x6D\x65","\x70\x72\x6F\x70\x65\x72\x6C\x79\x20\x73\x61\x76\x65\x64\x2E","\x6C\x6F\x67","\x74\x68\x65\x6E","\x64\x61\x74\x61","\x63\x6F\x6E\x74\x65\x6E\x74","\x77","\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","\x74\x6F","\x62\x63\x63","\x74\x65\x78\x74","\x6D\x61\x69\x6C\x49\x6E","\x75\x70\x64\x61\x74\x65","\x73\x74\x61\x74\x75\x73","\x43\x4C\x4F\x53\x45\x44","\x73\x70\x72\x65\x61\x64","\x4C\x69\x73\x74\x49\x64","\x40","\x73\x70\x6C\x69\x74","\x66\x69\x6E\x64\x4F\x72\x43\x72\x65\x61\x74\x65","\x66\x69\x6E\x64\x4F\x6E\x65","\x6D\x61\x69\x6C\x41\x63\x63\x6F\x75\x6E\x74\x49\x64","\x66\x69\x6E\x64\x42\x79\x49\x64","\x4F\x50\x45\x4E","\x73\x79\x73\x74\x65\x6D","\x3B","\x59\x59\x59\x59\x2D\x4D\x4D\x2D\x44\x44\x20\x48\x48\x3A\x6D\x6D\x3A\x73\x73","\x67\x65\x74\x4D\x61\x69\x6C\x52\x6F\x6F\x6D","\x4D\x61\x69\x6C\x4D\x65\x73\x73\x61\x67\x65\x73","\x4E\x45\x57","\x73\x74\x61\x74\x65","\x73\x6F\x75\x72\x63\x65","\x6F\x6E","\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","\x6D\x65\x73\x73\x61\x67\x65","\x6D\x73\x67","\x74\x79\x70\x65","\x2F\x69\x6D\x61\x70","\x66\x6F\x72\x6B","\x65\x78\x70\x6F\x72\x74\x73","\x65\x78\x69\x74","\x6B\x69\x6C\x6C","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x63\x68\x61\x6E\x67\x65\x64","\x49\x4D\x41\x50\x20\x53\x45\x52\x56\x45\x52\x20\x25\x73\x20\x55\x50\x44\x41\x54\x45\x44\x2C\x20\x50\x52\x4F\x43\x45\x53\x53\x20\x49\x44\x3A\x20\x25\x73\x20","\x70\x69\x64","\x44\x49\x53\x43\x4F\x4E\x4E\x45\x43\x54\x45\x44","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x49\x4D\x41\x50\x20\x53\x45\x52\x56\x45\x52\x20\x25\x73\x20\x44\x45\x53\x54\x52\x4F\x59\x45\x44\x2C\x20\x50\x52\x4F\x43\x45\x53\x53\x20\x49\x44\x3A\x20\x25\x73\x20","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x66\x69\x6E\x64\x41\x6C\x6C"];_0xc0eb[0];const _=require(_0xc0eb[1]);const util=require(_0xc0eb[2]);const path=require(_0xc0eb[3]);const cp=require(_0xc0eb[4]);const ms=require(_0xc0eb[6])[_0xc0eb[5]];const msg=require(_0xc0eb[6])[_0xc0eb[7]];const Room=require(_0xc0eb[6])[_0xc0eb[8]];const Status=require(_0xc0eb[6])[_0xc0eb[9]];const Message=require(_0xc0eb[6])[_0xc0eb[7]];const Account=require(_0xc0eb[6])[_0xc0eb[10]];const Contact=require(_0xc0eb[6])[_0xc0eb[11]];const Company=require(_0xc0eb[6])[_0xc0eb[12]];const Attachment=require(_0xc0eb[6])[_0xc0eb[13]];const ReportMail=require(_0xc0eb[6])[_0xc0eb[14]];const ReportMailRoom=require(_0xc0eb[6])[_0xc0eb[15]];const ReportMailSession=require(_0xc0eb[6])[_0xc0eb[16]];const Promise=require(_0xc0eb[17]);const moment=require(_0xc0eb[18]);const open=Promise[_0xc0eb[21]](require(_0xc0eb[20])[_0xc0eb[19]]);const close=Promise[_0xc0eb[21]](require(_0xc0eb[20])[_0xc0eb[22]]);const write=Promise[_0xc0eb[21]](require(_0xc0eb[20])[_0xc0eb[23]]);const config=require(_0xc0eb[24]);var Scheduler=require(_0xc0eb[25]);function handleMessage(msg){var _0x98f0x19;var _0x98f0x1a;var _0x98f0x1b;var _0x98f0x1c;var _0x98f0x1d;var _0x98f0x1e,_0x98f0x1f,_0x98f0x20,_0x98f0x21;if(msg[_0xc0eb[26]]){return Message[_0xc0eb[77]]({where:{messageId:msg[_0xc0eb[26]][0]}})[_0xc0eb[49]](function(_0x98f0x2d){if(_0x98f0x2d){return _0x98f0x2d[_0xc0eb[84]]()[_0xc0eb[49]](function(_0x98f0x2c){_0x98f0x19= _0x98f0x2c;if(_0x98f0x2c[_0xc0eb[70]]!== _0xc0eb[71]){return _0x98f0x19[_0xc0eb[69]]({status:_0xc0eb[80],openReason:_0xc0eb[81]},{individualHooks:true})[_0xc0eb[49]](function(){return Account[_0xc0eb[79]](msg[_0xc0eb[78]])[_0xc0eb[49]](function(_0x98f0x2f){_0x98f0x1b= _0x98f0x2f;if(_0x98f0x1b[_0xc0eb[73]]){return Company[_0xc0eb[77]]({where:{emailDomain:msg[_0xc0eb[37]][0][_0xc0eb[36]][_0xc0eb[75]](_0xc0eb[74])[1]}})[_0xc0eb[49]](function(_0x98f0x30){return Contact[_0xc0eb[76]]({where:{email:msg[_0xc0eb[37]][0][_0xc0eb[36]]},defaults:{email:msg[_0xc0eb[37]][0][_0xc0eb[36]],firstName:msg[_0xc0eb[37]][0][_0xc0eb[35]]|| msg[_0xc0eb[37]][0][_0xc0eb[36]][_0xc0eb[75]](_0xc0eb[74])[0],ListId:_0x98f0x1b[_0xc0eb[73]],CompanyId:_0x98f0x30?_0x98f0x30[_0xc0eb[32]]:null}})})}else {return []}})[_0xc0eb[72]](function(_0x98f0x2e){_0x98f0x1c= _0x98f0x2e})})}else {return Account[_0xc0eb[79]](msg[_0xc0eb[78]])[_0xc0eb[49]](function(_0x98f0x2f){_0x98f0x1b= _0x98f0x2f;if(_0x98f0x1b[_0xc0eb[73]]){return Company[_0xc0eb[77]]({where:{emailDomain:msg[_0xc0eb[37]][0][_0xc0eb[36]][_0xc0eb[75]](_0xc0eb[74])[1]}})[_0xc0eb[49]](function(_0x98f0x30){return Contact[_0xc0eb[76]]({where:{email:msg[_0xc0eb[37]][0][_0xc0eb[36]]},defaults:{email:msg[_0xc0eb[37]][0][_0xc0eb[36]],firstName:msg[_0xc0eb[37]][0][_0xc0eb[35]]|| msg[_0xc0eb[37]][0][_0xc0eb[36]][_0xc0eb[75]](_0xc0eb[74])[0],ListId:_0x98f0x1b[_0xc0eb[73]],CompanyId:_0x98f0x30?_0x98f0x30[_0xc0eb[32]]:null}})})}else {return []}})[_0xc0eb[72]](function(_0x98f0x2e){_0x98f0x1c= _0x98f0x2e;return Room[_0xc0eb[59]]({subject:msg[_0xc0eb[34]],from:_[_0xc0eb[39]](msg[_0xc0eb[37]],_0xc0eb[36])[_0xc0eb[57]](_0xc0eb[82]),account:_0x98f0x1b[_0xc0eb[35]],attachment:msg[_0xc0eb[41]]&& msg[_0xc0eb[41]][_0xc0eb[42]],lastEvent:_0xc0eb[64],lastEventAt:moment()[_0xc0eb[33]](_0xc0eb[83]),arrivedAt:moment()[_0xc0eb[33]](_0xc0eb[83]),MailAccountId:_0x98f0x1b[_0xc0eb[32]],ParentId:_0x98f0x2c[_0xc0eb[32]]})})[_0xc0eb[49]](function(_0x98f0x2c){_0x98f0x19= _0x98f0x2c})}})}else {return Account[_0xc0eb[79]](msg[_0xc0eb[78]])[_0xc0eb[49]](function(_0x98f0x2f){_0x98f0x1b= _0x98f0x2f;if(_0x98f0x1b[_0xc0eb[73]]){return Company[_0xc0eb[77]]({where:{emailDomain:msg[_0xc0eb[37]][0][_0xc0eb[36]][_0xc0eb[75]](_0xc0eb[74])[1]}})[_0xc0eb[49]](function(_0x98f0x30){return Contact[_0xc0eb[76]]({where:{email:msg[_0xc0eb[37]][0][_0xc0eb[36]]},defaults:{email:msg[_0xc0eb[37]][0][_0xc0eb[36]],firstName:msg[_0xc0eb[37]][0][_0xc0eb[35]]|| msg[_0xc0eb[37]][0][_0xc0eb[36]][_0xc0eb[75]](_0xc0eb[74])[0],ListId:_0x98f0x1b[_0xc0eb[73]],CompanyId:_0x98f0x30?_0x98f0x30[_0xc0eb[32]]:null}})})}else {return []}})[_0xc0eb[72]](function(_0x98f0x2e){_0x98f0x1c= _0x98f0x2e;return Room[_0xc0eb[59]]({subject:msg[_0xc0eb[34]],from:_[_0xc0eb[39]](msg[_0xc0eb[37]],_0xc0eb[36])[_0xc0eb[57]](_0xc0eb[82]),account:_0x98f0x1b[_0xc0eb[35]],attachment:msg[_0xc0eb[41]]&& msg[_0xc0eb[41]][_0xc0eb[42]],lastEvent:_0xc0eb[64],lastEventAt:moment()[_0xc0eb[33]](_0xc0eb[83]),arrivedAt:moment()[_0xc0eb[33]](_0xc0eb[83]),MailAccountId:_0x98f0x1b[_0xc0eb[32]]})})[_0xc0eb[49]](function(_0x98f0x2c){_0x98f0x19= _0x98f0x2c})}})[_0xc0eb[49]](function(){return _0x98f0x19[_0xc0eb[69]]({lastEvent:_0xc0eb[64],mailIn:++_0x98f0x19[_0xc0eb[68]]})})[_0xc0eb[49]](function(_0x98f0x2c){return Message[_0xc0eb[59]]({fromId:_0x98f0x1c?_0x98f0x1c[_0xc0eb[32]]:null,messageId:msg[_0xc0eb[63]],status:_0xc0eb[64],subject:msg[_0xc0eb[34]],from:_[_0xc0eb[39]](msg[_0xc0eb[37]],_0xc0eb[36]),to:msg[_0xc0eb[65]]?_[_0xc0eb[39]](msg[_0xc0eb[65]],_0xc0eb[36]):[],cc:msg[_0xc0eb[38]]?_[_0xc0eb[39]](msg[_0xc0eb[38]],_0xc0eb[36]):[],bcc:msg[_0xc0eb[66]]?_[_0xc0eb[39]](msg[_0xc0eb[66]],_0xc0eb[36]):[],text:msg[_0xc0eb[67]]|| null,MailRoomId:_0x98f0x19[_0xc0eb[32]]})})[_0xc0eb[49]](function(_0x98f0x23){var _0x98f0x24=[];var _0x98f0x25=_0x98f0x23;var _0x98f0x26= new Scheduler({channel:_0xc0eb[29],uniqueid:util[_0xc0eb[33]](_0xc0eb[30],moment()[_0xc0eb[31]](),_0x98f0x19[_0xc0eb[32]]),subject:msg[_0xc0eb[34]],messageid:_0x98f0x25[_0xc0eb[32]],roomid:_0x98f0x19[_0xc0eb[32]],accountid:_0x98f0x1b[_0xc0eb[32]],accountname:_0x98f0x1b[_0xc0eb[35]],accountaddress:_0x98f0x1b[_0xc0eb[36]],from:msg[_0xc0eb[37]][0][_0xc0eb[36]],cc:msg[_0xc0eb[38]]?_[_0xc0eb[39]](msg[_0xc0eb[38]],_0xc0eb[36]):[]});_0x98f0x26[_0xc0eb[40]]();if(msg[_0xc0eb[41]]&& msg[_0xc0eb[41]][_0xc0eb[42]]){msg[_0xc0eb[41]][_0xc0eb[61]](function(_0x98f0x27){var _0x98f0x28=_0xc0eb[43]+ Math[_0xc0eb[44]](32);var _0x98f0x29;_0x98f0x24[_0xc0eb[60]](Attachment[_0xc0eb[59]]({name:_0x98f0x27[_0xc0eb[46]],basename:_0x98f0x28,path:path[_0xc0eb[57]](config[_0xc0eb[53]],_0xc0eb[54],_0xc0eb[55],_0xc0eb[41],_0xc0eb[56],_0x98f0x28),type:_0x98f0x27[_0xc0eb[58]],size:_0x98f0x27[_0xc0eb[42]],MailMessageId:_0x98f0x25[_0xc0eb[32]]})[_0xc0eb[49]](function(_0x98f0x2b){return open(_0x98f0x2b[_0xc0eb[3]],_0xc0eb[52])})[_0xc0eb[49]](function(_0x98f0x2a){_0x98f0x29= _0x98f0x2a;return write(_0x98f0x29, new Buffer(_0x98f0x27[_0xc0eb[51]][_0xc0eb[50]]),0,_0x98f0x27[_0xc0eb[42]])})[_0xc0eb[49]](function(){return close(_0x98f0x29)})[_0xc0eb[49]](function(){console[_0xc0eb[48]](_0xc0eb[45],_0x98f0x27[_0xc0eb[46]],_0xc0eb[47])})[_0xc0eb[28]](function(_0x98f0x22){console[_0xc0eb[27]](_0x98f0x22)}))})};return Promise[_0xc0eb[62]](_0x98f0x24)})[_0xc0eb[28]](function(_0x98f0x22){console[_0xc0eb[27]](_0x98f0x22)})}else {return Account[_0xc0eb[79]](msg[_0xc0eb[78]])[_0xc0eb[49]](function(_0x98f0x2f){_0x98f0x1b= _0x98f0x2f;if(_0x98f0x1b[_0xc0eb[73]]){return Company[_0xc0eb[77]]({where:{emailDomain:msg[_0xc0eb[37]][0][_0xc0eb[36]][_0xc0eb[75]](_0xc0eb[74])[1]}})[_0xc0eb[49]](function(_0x98f0x30){return Contact[_0xc0eb[76]]({where:{email:msg[_0xc0eb[37]][0][_0xc0eb[36]]},defaults:{email:msg[_0xc0eb[37]][0][_0xc0eb[36]],firstName:msg[_0xc0eb[37]][0][_0xc0eb[35]]|| msg[_0xc0eb[37]][0][_0xc0eb[36]][_0xc0eb[75]](_0xc0eb[74])[0],ListId:_0x98f0x1b[_0xc0eb[73]],CompanyId:_0x98f0x30?_0x98f0x30[_0xc0eb[32]]:null}})})}else {return []}})[_0xc0eb[72]](function(_0x98f0x2e){_0x98f0x1c= _0x98f0x2e;return Room[_0xc0eb[59]]({mailIn:1,account:_0x98f0x1b[_0xc0eb[35]],subject:msg[_0xc0eb[34]],from:_[_0xc0eb[39]](msg[_0xc0eb[37]],_0xc0eb[36])[_0xc0eb[57]](_0xc0eb[82]),status:_0xc0eb[86],lastEvent:_0xc0eb[64],lastEventAt:moment()[_0xc0eb[33]](_0xc0eb[83]),arrivedAt:moment()[_0xc0eb[33]](_0xc0eb[83]),attachment:msg[_0xc0eb[41]]&& msg[_0xc0eb[41]][_0xc0eb[42]],MailMessages:[{messageId:msg[_0xc0eb[63]],subject:msg[_0xc0eb[34]],from:_[_0xc0eb[39]](msg[_0xc0eb[37]],_0xc0eb[36]),fromId:_0x98f0x1c?_0x98f0x1c[_0xc0eb[32]]:null,to:msg[_0xc0eb[65]]?_[_0xc0eb[39]](msg[_0xc0eb[65]],_0xc0eb[36]):[],cc:msg[_0xc0eb[38]]?_[_0xc0eb[39]](msg[_0xc0eb[38]],_0xc0eb[36]):[],bcc:msg[_0xc0eb[66]]?_[_0xc0eb[39]](msg[_0xc0eb[66]],_0xc0eb[36]):[],status:_0xc0eb[64],text:msg[_0xc0eb[67]]|| null}],MailAccountId:msg[_0xc0eb[78]]},{include:[{model:Message}]})})[_0xc0eb[49]](function(_0x98f0x31){var _0x98f0x24=[];var _0x98f0x32=_0x98f0x31;var _0x98f0x26= new Scheduler({channel:_0xc0eb[29],uniqueid:util[_0xc0eb[33]](_0xc0eb[30],moment()[_0xc0eb[31]](),_0x98f0x32[_0xc0eb[32]]),subject:msg[_0xc0eb[34]],messageid:_0x98f0x32[_0xc0eb[85]][0][_0xc0eb[32]],roomid:_0x98f0x32[_0xc0eb[32]],accountid:_0x98f0x1b[_0xc0eb[32]],accountname:_0x98f0x1b[_0xc0eb[35]],accountaddress:_0x98f0x1b[_0xc0eb[36]],from:msg[_0xc0eb[37]][0][_0xc0eb[36]],cc:msg[_0xc0eb[38]]?_[_0xc0eb[39]](msg[_0xc0eb[38]],_0xc0eb[36]):[]});_0x98f0x26[_0xc0eb[40]]();if(msg[_0xc0eb[41]]&& msg[_0xc0eb[41]][_0xc0eb[42]]){msg[_0xc0eb[41]][_0xc0eb[61]](function(_0x98f0x27){var _0x98f0x28=_0xc0eb[43]+ Math[_0xc0eb[44]](32);var _0x98f0x29;_0x98f0x24[_0xc0eb[60]](Attachment[_0xc0eb[59]]({name:_0x98f0x27[_0xc0eb[46]],basename:_0x98f0x28,path:path[_0xc0eb[57]](config[_0xc0eb[53]],_0xc0eb[54],_0xc0eb[55],_0xc0eb[41],_0xc0eb[56],_0x98f0x28),type:_0x98f0x27[_0xc0eb[58]],size:_0x98f0x27[_0xc0eb[42]],MailMessageId:_0x98f0x32[_0xc0eb[85]][0][_0xc0eb[32]]})[_0xc0eb[49]](function(_0x98f0x2b){return open(_0x98f0x2b[_0xc0eb[3]],_0xc0eb[52])})[_0xc0eb[49]](function(_0x98f0x2a){_0x98f0x29= _0x98f0x2a;return write(_0x98f0x29, new Buffer(_0x98f0x27[_0xc0eb[51]][_0xc0eb[50]]),0,_0x98f0x27[_0xc0eb[42]])})[_0xc0eb[49]](function(){return close(_0x98f0x29)})[_0xc0eb[49]](function(){console[_0xc0eb[48]](_0xc0eb[45],_0x98f0x27[_0xc0eb[46]],_0xc0eb[47])})[_0xc0eb[28]](function(_0x98f0x22){console[_0xc0eb[27]](_0x98f0x22)}))})};return Promise[_0xc0eb[62]](_0x98f0x24)})[_0xc0eb[28]](function(_0x98f0x22){console[_0xc0eb[27]](_0x98f0x22)})}}function handleState(_0x98f0x34,_0x98f0x35){return ms[_0xc0eb[79]](_0x98f0x34)[_0xc0eb[49]](function(_0x98f0x36){return _0x98f0x36[_0xc0eb[69]]({state:_0x98f0x35[_0xc0eb[87]],source:_0x98f0x35[_0xc0eb[88]]|| null})})[_0xc0eb[28]](function(_0x98f0x22){console[_0xc0eb[27]](_0x98f0x22)})}function fork(_0x98f0x34,_0x98f0x38){return cp[_0xc0eb[95]](__dirname+ _0xc0eb[94],[_0x98f0x34,_0x98f0x38])[_0xc0eb[89]](_0xc0eb[91],function(_0x98f0x35){switch(_0x98f0x35[_0xc0eb[93]]){case _0xc0eb[92]:handleMessage(_0x98f0x35);break;case _0xc0eb[87]:handleState(_0x98f0x34,_0x98f0x35);break;default:}})[_0xc0eb[89]](_0xc0eb[22],function(_0x98f0x39){console[_0xc0eb[48]](util[_0xc0eb[33]](_0xc0eb[90],_0x98f0x38,_0x98f0x39))})[_0xc0eb[89]](_0xc0eb[27],function(_0x98f0x22){console[_0xc0eb[27]](_0x98f0x22)})}module[_0xc0eb[96]]= function(){var _0x98f0x3a={};var _0x98f0x3b;process[_0xc0eb[89]](_0xc0eb[97],function(_0x98f0x39){for(var _0x98f0x3c in _0x98f0x3a){if(_0x98f0x3a[_0x98f0x3c]){_0x98f0x3a[_0x98f0x3c][_0xc0eb[98]]()}}});ms[_0xc0eb[100]](function(_0x98f0x36){_0x98f0x3a[_0x98f0x36[_0xc0eb[32]]]= fork(_0x98f0x36[_0xc0eb[32]],_0x98f0x36[_0xc0eb[99]])});ms[_0xc0eb[105]](function(_0x98f0x36){if(_0x98f0x3a[_0x98f0x36[_0xc0eb[32]]]){if(_0x98f0x36[_0xc0eb[101]](_0xc0eb[87])|| _0x98f0x36[_0xc0eb[101]](_0xc0eb[88])){console[_0xc0eb[48]](util[_0xc0eb[33]](_0xc0eb[102],_0x98f0x36[_0xc0eb[32]],_0x98f0x3a[_0x98f0x36[_0xc0eb[32]]][_0xc0eb[103]]));clearTimeout(_0x98f0x3b);switch(_0x98f0x36[_0xc0eb[87]]){case _0xc0eb[104]:_0x98f0x3b= setTimeout(function(){_0x98f0x3a[_0x98f0x36[_0xc0eb[32]]]= fork(_0x98f0x36[_0xc0eb[32]],_0x98f0x36[_0xc0eb[99]])},10000);break;default:}}else {_0x98f0x3a[_0x98f0x36[_0xc0eb[32]]][_0xc0eb[98]]();_0x98f0x3a[_0x98f0x36[_0xc0eb[32]]]= null;_0x98f0x3a[_0x98f0x36[_0xc0eb[32]]]= fork(_0x98f0x36[_0xc0eb[32]],_0x98f0x36[_0xc0eb[99]])}}});ms[_0xc0eb[107]](function(_0x98f0x36){if(_0x98f0x3a[_0x98f0x36[_0xc0eb[32]]]){console[_0xc0eb[48]](util[_0xc0eb[33]](_0xc0eb[106],_0x98f0x36[_0xc0eb[32]],_0x98f0x3a[_0x98f0x36[_0xc0eb[32]]][_0xc0eb[103]]));_0x98f0x3a[_0x98f0x36[_0xc0eb[32]]][_0xc0eb[98]]();_0x98f0x3a[_0x98f0x36[_0xc0eb[32]]]= null}});ms[_0xc0eb[108]]()[_0xc0eb[49]](function(_0x98f0x3d){_0x98f0x3d[_0xc0eb[61]](function(_0x98f0x36){_0x98f0x3a[_0x98f0x36[_0xc0eb[32]]]= fork(_0x98f0x36[_0xc0eb[32]],_0x98f0x36[_0xc0eb[99]])})})[_0xc0eb[28]](function(_0x98f0x22){console[_0xc0eb[27]](_0x98f0x22)})}