-/**
- * Broadcast updates to client when the model changes
- */
-
-'use strict';
-
-var chatQueue = require('../../models').ChatQueue;
-
-exports.register = function (socket) {
- chatQueue.afterCreate(function (doc) {
- onSave(socket, doc);
- });
- chatQueue.afterDestroy(function (doc) {
- onRemove(socket, doc);
- });
-}
-
-function onSave(socket, doc, cb) {
- socket.emit('chat_queue:save', doc);
-}
-
-function onRemove(socket, doc, cb) {
- socket.emit('chat_queue:remove', doc);
-}
+var _0x7295=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x43\x68\x61\x74\x51\x75\x65\x75\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\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","\x63\x68\x61\x74\x5F\x71\x75\x65\x75\x65\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x63\x68\x61\x74\x5F\x71\x75\x65\x75\x65\x3A\x72\x65\x6D\x6F\x76\x65"];_0x7295[0];var chatQueue=require(_0x7295[2])[_0x7295[1]];exports[_0x7295[3]]=function(_0xad53x2){chatQueue[_0x7295[4]](function(_0xad53x3){onSave(_0xad53x2,_0xad53x3)});chatQueue[_0x7295[5]](function(_0xad53x3){onRemove(_0xad53x2,_0xad53x3)})};function onSave(_0xad53x2,_0xad53x3,_0xad53x5){_0xad53x2[_0x7295[7]](_0x7295[6],_0xad53x3)}function onRemove(_0xad53x2,_0xad53x3,_0xad53x5){_0xad53x2[_0x7295[7]](_0x7295[8],_0xad53x3)}
\ No newline at end of file