text: (function() {
  	function Room($firebaseArray) {
      	var Room = {};
      	var ref = firebase.database().ref().child("Rooms");
      	var rooms = $firebaseArray(ref);
  
      	Room.all = rooms;
  		
  		Room.add = function(room) {
  			rooms.$add(room).then(function(ref) {
  				
     			});
  		}
      	return Room;
    	}
  	angular
      .module('blocChat')
      .factory('Room', ['$firebaseArray', Room]);
  })();