Built motion from commit 57474b6.|0.0.99
[motion.git] / server / api / custom_report / custom_report.socket.js
index 07bf827..70a8cfa 100644 (file)
@@ -1,24 +1 @@
-/**
- * Broadcast updates to client when the model changes
- */
-
-'use strict';
-
-var CustomReport = require('../../models').CustomReport;
-
-exports.register = function(socket) {
-  CustomReport.afterCreate(function(doc) {
-    onSave(socket, doc);
-  });
-  CustomReport.afterDestroy(function(doc) {
-    onRemove(socket, doc);
-  });
-}
-
-function onSave(socket, doc, cb) {
-  socket.emit('custom_report:save', doc);
-}
-
-function onRemove(socket, doc, cb) {
-  socket.emit('custom_report:remove', doc);
-}
+var _0x29bf=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x43\x75\x73\x74\x6F\x6D\x52\x65\x70\x6F\x72\x74","\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\x75\x73\x74\x6F\x6D\x5F\x72\x65\x70\x6F\x72\x74\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x63\x75\x73\x74\x6F\x6D\x5F\x72\x65\x70\x6F\x72\x74\x3A\x72\x65\x6D\x6F\x76\x65"];_0x29bf[0];var CustomReport=require(_0x29bf[2])[_0x29bf[1]];exports[_0x29bf[3]]=function(_0xcb1ex2){CustomReport[_0x29bf[4]](function(_0xcb1ex3){onSave(_0xcb1ex2,_0xcb1ex3)});CustomReport[_0x29bf[5]](function(_0xcb1ex3){onRemove(_0xcb1ex2,_0xcb1ex3)})};function onSave(_0xcb1ex2,_0xcb1ex3,_0xcb1ex5){_0xcb1ex2[_0x29bf[7]](_0x29bf[6],_0xcb1ex3)}function onRemove(_0xcb1ex2,_0xcb1ex3,_0xcb1ex5){_0xcb1ex2[_0x29bf[7]](_0x29bf[8],_0xcb1ex3)}
\ No newline at end of file