             originId     : account.getId()
 
           @create client, data, callback
+
+


  @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!


    query.originId = client.connection.delegate._id

    JWorkspace.some query, { limit: 30 }, callback


  @fetchByMachines$ = secure (client, callback) ->
