   model: User
 
   url: -> "#{sd.API_URL}/channels/#{@channel_slug}/collaborators"
+
+  inviteUrl: -> "#{sd.API_URL}/channels/#{@channel_slug}/collaborators/invite"
 
   parse: (data) -> data.users
 

      success: (response) =>
        @reset response.users

  _add: (collaborator)->
    mediator.trigger 'collaborator:added'
    @add collaborator
    $.ajax

      data: { ids: [collaborator.id] }
      success: (response) =>
        @reset response.users

  _invite: (email) ->
    user = new User username: email
    mediator.trigger 'collaborator:added'
    @add user
    $.ajax
      type: 'POST'
      url: @inviteUrl()
      data: 
        email: email

    
