Built motion from commit 65070aa.|0.0.108
[motion.git] / server / api / mail_room / mail_room.socket.js
1 var _0x4242=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x4D\x61\x69\x6C\x4D\x65\x73\x73\x61\x67\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x4D\x61\x69\x6C\x52\x6F\x6F\x6D","\x55\x73\x65\x72","\x72\x65\x67\x69\x73\x74\x65\x72","\x72\x6F\x6C\x65","\x61\x67\x65\x6E\x74","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x75\x73\x65\x72\x49\x64","\x4F\x50\x45\x4E","\x73\x74\x61\x74\x75\x73","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x63\x68\x61\x6E\x67\x65\x64","\x4E\x45\x57","\x55\x4E\x4D\x41\x4E\x41\x47\x45\x44","\x43\x4C\x4F\x53\x45\x44","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x6D\x61\x69\x6C\x5F\x72\x6F\x6F\x6D\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x6D\x61\x69\x6C\x5F\x72\x6F\x6F\x6D\x3A\x72\x65\x6D\x6F\x76\x65"];_0x4242[0];var MailMessage=require(_0x4242[2])[_0x4242[1]];var MailRoom=require(_0x4242[2])[_0x4242[3]];var User=require(_0x4242[2])[_0x4242[4]];exports[_0x4242[5]]=function(_0xe4f8x4){MailRoom[_0x4242[12]](function(_0xe4f8x5,_0xe4f8x6){if(_0xe4f8x4[_0x4242[6]]!==_0x4242[7]){onSave(_0xe4f8x4,_0xe4f8x5[_0x4242[8]])}else {switch(_0xe4f8x5[_0x4242[11]]){case _0x4242[10]:if(_0xe4f8x4[_0x4242[9]]==_0xe4f8x6[_0x4242[9]]){onSave(_0xe4f8x4,_0xe4f8x5[_0x4242[8]])};break;default:}}});MailRoom[_0x4242[13]](function(_0xe4f8x5){onRemove(_0xe4f8x4,_0xe4f8x5)});MailRoom[_0x4242[18]](function(_0xe4f8x5,_0xe4f8x6){if(_0xe4f8x5[_0x4242[14]](_0x4242[11])){switch(_0xe4f8x5[_0x4242[11]]){case _0x4242[15]:if(_0xe4f8x4[_0x4242[6]]!==_0x4242[7]){onSave(_0xe4f8x4,_0xe4f8x5[_0x4242[8]])};break;case _0x4242[10]:if(_0xe4f8x4[_0x4242[9]]!=_0xe4f8x6[_0x4242[9]]){onRemove(_0xe4f8x4,_0xe4f8x5[_0x4242[8]])};break;case _0x4242[16]:onSave(_0xe4f8x4,_0xe4f8x5[_0x4242[8]]);break;case _0x4242[17]:onSave(_0xe4f8x4,_0xe4f8x5[_0x4242[8]]);break;default:}}})};function onSave(_0xe4f8x4,_0xe4f8x5,_0xe4f8x8){_0xe4f8x4[_0x4242[20]](_0x4242[19],_0xe4f8x5)}function onRemove(_0xe4f8x4,_0xe4f8x5,_0xe4f8x8){_0xe4f8x4[_0x4242[20]](_0x4242[21],_0xe4f8x5)}