       else
         @setEmailPreferences user, prefs, callback
 
-  glanceMessages: secure (client, callback)->
-
   glanceActivities: secure (client, activityId, callback)->
     [callback, activityId] = [activityId, callback] unless callback
     {delegate} = client.connection

    else
      callback null, "regular"

  fetchAllKites: secure ({connection}, callback)->

    if isDummyAdmin connection.delegate.profile.nickname
      callback null,
        Databases     :
          hosts       : ["cl0", "cl1", "cl2", "cl3"]
        terminal      :
          hosts       : ["cl0", "cl1", "cl2", "cl3"]
    else
      callback new KodingError "Permission denied!"

  # temp dummy stuff ends

  fetchPrivateChannel:(callback)->

  @getFlagRole            = 'content'
  @lastUserCountFetchTime = 0

  {ObjectId, Register, secure, race, dash, daisy, signature} = require 'bongo'
  {Relationship} = jraphical
  {permit} = require './group/permissionset'
  Validators = require './group/validators'

  @share()

  @set
    softDelete          : yes
    emitFollowingActivities : yes # create buckets for follower / followees
