 
   { secure, ObjectId, signature, daisy } = require 'bongo'
   { Relationship }   = jraphical
+  { uniq }           = require 'underscore'
   { permit }         = require './group/permissionset'
   Validators         = require './group/validators'
+  { PROVIDERS }      = require './computeproviders/computeutils'
+
 
   @trait __dirname, '../traits/protected'
 


    success: (client, options, callback) ->

      { title, config } = options

      unless title or config
        return callback new KodingError 'Nothing to update'

      title  ?= @title
      config ?= @config

      @update $set : { title, config }, (err) ->
        return callback err  if err?
        callback null


        @remove callback


  SUPPORTED_CREDS = (Object.keys PROVIDERS).concat ['userInput', 'custom']

  modify: permit

