-/**
- * 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 _0x385c=["\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"];_0x385c[0];var VoiceVoicemail=require(_0x385c[2])[_0x385c[1]];var VoiceVoicemailMessages=require(_0x385c[2])[_0x385c[3]];exports[_0x385c[4]]=function(_0xbfb0x3){VoiceVoicemail[_0x385c[5]](function(_0xbfb0x4){onSave(_0xbfb0x3,_0xbfb0x4)});VoiceVoicemail[_0x385c[6]](function(_0xbfb0x4){onRemove(_0xbfb0x3,_0xbfb0x4)});VoiceVoicemailMessages[_0x385c[5]](function(_0xbfb0x4){onMessageSave(_0xbfb0x3,_0xbfb0x4)});VoiceVoicemailMessages[_0x385c[6]](function(_0xbfb0x4){onMessageRemove(_0xbfb0x3,_0xbfb0x4)})};function onSave(_0xbfb0x3,_0xbfb0x4,_0xbfb0x6){_0xbfb0x3[_0x385c[8]](_0x385c[7],_0xbfb0x4)}function onRemove(_0xbfb0x3,_0xbfb0x4,_0xbfb0x6){_0xbfb0x3[_0x385c[8]](_0x385c[9],_0xbfb0x4)}function onMessageSave(_0xbfb0x3,_0xbfb0x4,_0xbfb0x6){_0xbfb0x3[_0x385c[8]](_0x385c[10],_0xbfb0x4)}function onMessageRemove(_0xbfb0x3,_0xbfb0x4,_0xbfb0x6){_0xbfb0x3[_0x385c[8]](_0x385c[11],_0xbfb0x4)}
\ No newline at end of file