     # bind all events
     registerAndOpenChannels revivedChannels
     return revivedChannels
+  mapChannels: mapChannels
+
 
   forwardMessageEvents = (source, target,  events)->
     events.forEach (event) ->

      mappedAccounts.push {_id: account, constructorName : "JAccount"}
    return mappedAccounts

  mapChannels: mapChannels
  mapChannels = (channels)->
    return channels unless channels
    revivedChannels = []

    revivedMessages = (mapActivity message for message in messages)
    return revivedMessages

  mapActivities: mapActivities

  getCurrentGroup = (callback)->
    groupsController = KD.getSingleton "groupsController"
    groupsController.ready ->
