-/**
- * Broadcast updates to client when the model changes
- */
-
-'use strict';
-
-var VoiceVoicemail = require('../../models').VoiceVoicemail;
-var VoiceVoicemailMessages = require('../../models').VoiceVoicemailMessages;
-
-exports.register = function(socket) {
- VoiceVoicemail.afterCreate(function(doc) {
- onSave(socket, doc);
- });
- VoiceVoicemail.afterDestroy(function(doc) {
- onRemove(socket, doc);
- });
- VoiceVoicemailMessages.afterCreate(function(doc) {
- onMessageSave(socket, doc);
- });
- VoiceVoicemailMessages.afterDestroy(function(doc) {
- onMessageRemove(socket, doc);
- });
-}
-
-function onSave(socket, doc, cb) {
- socket.emit('voice_voicemail:save', doc);
-}
-
-function onRemove(socket, doc, cb) {
- socket.emit('voice_voicemail:remove', doc);
-}
-
-function onMessageSave(socket, doc, cb) {
- socket.emit('voice_voicemail_messages:save', doc);
-}
-
-function onMessageRemove(socket, doc, cb) {
- socket.emit('voice_voicemail_messages:remove', doc);
-}
+var _0x4d2b=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x56\x6F\x69\x63\x65\x56\x6F\x69\x63\x65\x6D\x61\x69\x6C","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x56\x6F\x69\x63\x65\x56\x6F\x69\x63\x65\x6D\x61\x69\x6C\x4D\x65\x73\x73\x61\x67\x65\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x76\x6F\x69\x63\x65\x5F\x76\x6F\x69\x63\x65\x6D\x61\x69\x6C\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x76\x6F\x69\x63\x65\x5F\x76\x6F\x69\x63\x65\x6D\x61\x69\x6C\x3A\x72\x65\x6D\x6F\x76\x65","\x76\x6F\x69\x63\x65\x5F\x76\x6F\x69\x63\x65\x6D\x61\x69\x6C\x5F\x6D\x65\x73\x73\x61\x67\x65\x73\x3A\x73\x61\x76\x65","\x76\x6F\x69\x63\x65\x5F\x76\x6F\x69\x63\x65\x6D\x61\x69\x6C\x5F\x6D\x65\x73\x73\x61\x67\x65\x73\x3A\x72\x65\x6D\x6F\x76\x65"];_0x4d2b[0];var VoiceVoicemail=require(_0x4d2b[2])[_0x4d2b[1]];var VoiceVoicemailMessages=require(_0x4d2b[2])[_0x4d2b[3]];exports[_0x4d2b[4]]=function(_0xfa46x3){VoiceVoicemail[_0x4d2b[5]](function(_0xfa46x4){onSave(_0xfa46x3,_0xfa46x4)});VoiceVoicemail[_0x4d2b[6]](function(_0xfa46x4){onRemove(_0xfa46x3,_0xfa46x4)});VoiceVoicemailMessages[_0x4d2b[5]](function(_0xfa46x4){onMessageSave(_0xfa46x3,_0xfa46x4)});VoiceVoicemailMessages[_0x4d2b[6]](function(_0xfa46x4){onMessageRemove(_0xfa46x3,_0xfa46x4)})};function onSave(_0xfa46x3,_0xfa46x4,_0xfa46x6){_0xfa46x3[_0x4d2b[8]](_0x4d2b[7],_0xfa46x4)}function onRemove(_0xfa46x3,_0xfa46x4,_0xfa46x6){_0xfa46x3[_0x4d2b[8]](_0x4d2b[9],_0xfa46x4)}function onMessageSave(_0xfa46x3,_0xfa46x4,_0xfa46x6){_0xfa46x3[_0x4d2b[8]](_0x4d2b[10],_0xfa46x4)}function onMessageRemove(_0xfa46x3,_0xfa46x4,_0xfa46x6){_0xfa46x3[_0x4d2b[8]](_0x4d2b[11],_0xfa46x4)}
\ No newline at end of file