Built motion from commit 05106a3.|0.0.33
[motion.git] / server / api / report_chat_session / report_chat_session.socket.js
index a378e10..e7829f7 100644 (file)
@@ -1,27 +1 @@
-/**
- * Broadcast updates to client when the model changes
- */
-
-'use strict';
-
-var ReportChatSession = require('../../models').ReportChatSession;
-
-exports.register = function(socket) {
-  ReportChatSession.afterCreate(function(doc) {
-    onSave(socket, doc);
-  });
-  ReportChatSession.afterUpdate(function(doc) {
-    onSave(socket, doc);
-  });
-  ReportChatSession.afterDestroy(function(doc) {
-    onRemove(socket, doc);
-  });
-}
-
-function onSave(socket, doc, cb) {
-  socket.emit('report_chat_session:save', doc);
-}
-
-function onRemove(socket, doc, cb) {
-  socket.emit('report_chat_session:remove', doc);
-}
+var _0xaba2=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x52\x65\x70\x6F\x72\x74\x43\x68\x61\x74\x53\x65\x73\x73\x69\x6F\x6E","\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\x55\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x72\x65\x70\x6F\x72\x74\x5F\x63\x68\x61\x74\x5F\x73\x65\x73\x73\x69\x6F\x6E\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x72\x65\x70\x6F\x72\x74\x5F\x63\x68\x61\x74\x5F\x73\x65\x73\x73\x69\x6F\x6E\x3A\x72\x65\x6D\x6F\x76\x65"];_0xaba2[0];var ReportChatSession=require(_0xaba2[2])[_0xaba2[1]];exports[_0xaba2[3]]=function(_0xf0d8x2){ReportChatSession[_0xaba2[4]](function(_0xf0d8x3){onSave(_0xf0d8x2,_0xf0d8x3)});ReportChatSession[_0xaba2[5]](function(_0xf0d8x3){onSave(_0xf0d8x2,_0xf0d8x3)});ReportChatSession[_0xaba2[6]](function(_0xf0d8x3){onRemove(_0xf0d8x2,_0xf0d8x3)});};function onSave(_0xf0d8x2,_0xf0d8x3,_0xf0d8x5){_0xf0d8x2[_0xaba2[8]](_0xaba2[7],_0xf0d8x3)}function onRemove(_0xf0d8x2,_0xf0d8x3,_0xf0d8x5){_0xf0d8x2[_0xaba2[8]](_0xaba2[9],_0xf0d8x3)}
\ No newline at end of file