           name: name
           groupName: slug
 
-        @emit 'messageBusEvent', {type: "social.workspace_created", message: message}
+        @emit 'messageBusEvent', { type: 'social.workspace_created', message: message }
 
         return callback null, workspace
 
     if data.isDefault
     then kallback data.name, data.slug
     else
-      generateUniqueName { originId, name, machineUId }, (err, res)->
+      generateUniqueName { originId, name, machineUId }, (err, res) ->
 
         return callback err  if err?
 


  @create = secure (client, data, callback) ->

    {delegate}     = client.connection
    data.originId ?= delegate._id

    nickname  = delegate.profile.nickname
    data.slug = slugify data.name?.toLowerCase()

    {name, slug, machineUId, rootPath, originId, machineLabel} = data

    # we don't support saving layout for now, i will set it to empty object
    # to prevent storing any kind of data in it. -- acetz!


          return callback err  if err

          { nickname }     = account.profile

          data           =
            name         : 'My Workspace'
