Built motion from commit 05106a3.|0.0.33
[motion.git] / server / api / fax_room / fax_room.socket.js
index 92f71b0..f9b0fab 100644 (file)
@@ -1,24 +1 @@
-/**
- * Broadcast updates to client when the model changes
- */
-
-'use strict';
-
-var fax_room = require('../../models').FaxRoom;
-
-exports.register = function(socket) {
-  fax_room.afterCreate(function (doc) {
-    onSave(socket, doc);
-  });
-  fax_room.afterDestroy(function (doc) {
-    onRemove(socket, doc);
-  });
-}
-
-function onSave(socket, doc, cb) {
-  socket.emit('fax_room:save', doc);
-}
-
-function onRemove(socket, doc, cb) {
-  socket.emit('fax_room:remove', doc);
-}
+var _0x57d7=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x46\x61\x78\x52\x6F\x6F\x6D","\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","\x66\x61\x78\x5F\x72\x6F\x6F\x6D\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x66\x61\x78\x5F\x72\x6F\x6F\x6D\x3A\x72\x65\x6D\x6F\x76\x65"];_0x57d7[0];var fax_room=require(_0x57d7[2])[_0x57d7[1]];exports[_0x57d7[3]]=function(_0x4a1bx2){fax_room[_0x57d7[4]](function(_0x4a1bx3){onSave(_0x4a1bx2,_0x4a1bx3)});fax_room[_0x57d7[5]](function(_0x4a1bx3){onRemove(_0x4a1bx2,_0x4a1bx3)});};function onSave(_0x4a1bx2,_0x4a1bx3,_0x4a1bx5){_0x4a1bx2[_0x57d7[7]](_0x57d7[6],_0x4a1bx3)}function onRemove(_0x4a1bx2,_0x4a1bx3,_0x4a1bx5){_0x4a1bx2[_0x57d7[7]](_0x57d7[8],_0x4a1bx3)}
\ No newline at end of file