{:uriI"¯file://app/assets/javascripts/services/notification_center.coffee?type=application/javascript&pipeline=self&id=e6d03f7c46436ae829fe64dc9ad5b92676b57d82387748121b56163422939c83:ET:load_pathI"app/assets/javascripts;T: filenameI"?app/assets/javascripts/services/notification_center.coffee;T: nameI"!services/notification_center;T:logical_pathI")services/notification_center.self.js;T:content_typeI"application/javascript;T: sourceI"¿(function() { App.Services.NotificationCenter = (function() { function NotificationCenter() {} NotificationCenter.prototype.receivedSignal = function(data) { switch (data.signal) { case 'ping': return this._pingSignal(); case 'message': return this._messageSignal(data); } }; NotificationCenter.prototype._pingSignal = function() { if (App.Env.namespaceController.constructor !== App.Controllers.User) { return; } return alert('Ping!'); }; NotificationCenter.prototype._messageSignal = function(data) { var view; if (!(view = this._getRoomView())) { return; } return view.receivedMessage(data.message, data.author); }; NotificationCenter.prototype._getRoomView = function() { if (App.Env.namespaceController.constructor !== App.Controllers.User) { return false; } if (App.Env.controller.constructor !== App.Controllers.User.Rooms) { return false; } if (App.Env.action !== 'show') { return false; } return App.Env.controller.getView('show'); }; return NotificationCenter; })(); }).call(this); ;T: metadata{ :dependencieso:Set: @hash} I"environment-version;TTI"environment-paths;TTI"rails-env;TTI"jprocessors:type=application/javascript&file_type=application/javascript&engines=.coffee&pipeline=self;TTI"Mfile-digest://app/assets/javascripts/services/notification_center.coffee;TTF: requiredo;;}F: stubbedo;;}F: linkso;;}F: charsetI" utf-8;F: digest"%ß9 Ëèy|Ëh dV6ÁõêžYñ[+Sƒìì™èj‰Å: lengthi¿:dependencies_digest"%èPªø~“—/õ›ïèôF&«(ϸb]¯L¹¶B­äJA:idI"Ee6d03f7c46436ae829fe64dc9ad5b92676b57d82387748121b56163422939c83;F: mtimel+n,X