       type            : Date
       default         : -> new Date
 
-  @cycleSecretName =(name, callback)->
+  @cycleSecretName = (name, callback) ->
     JSecretName = require './secretname'
-    JSecretName.one {name}, (err, secretNameObj)=>
+    JSecretName.one { name }, (err, secretNameObj) ->
       if err then callback err
       else unless secretNameObj?
         callback new KodingError "Unknown name #{name} (Maybe non of the participants are using Broker anymore)"


      else if Array.isArray name

        JName.some {name: $in: name}, limit: 30, (err, nameObjects)->
          return callback err  if err?

          if nameObjects?
            models = []
            queue = nameObjects.map (nameObj, i)->->
              fetchByNameObject nameObj, (err, model)->
                models[i] = err ? model
                queue.fin()
            dash queue, ->

        { konstructor: require('./group'), usedAsPath: 'slug' }
      ], callback

  @claim = (fullName, slugs, konstructor, usedAsPath, callback) ->
    [callback, usedAsPath] = [usedAsPath, callback]  unless callback
    nameDoc = new this {
      name: fullName
      slugs
    }
    nameDoc.save (err) ->
      if err?.code is 11000
        err = new KodingError "The slug #{fullName} is not available."
        err.code = 11000
