     @assets = options.assets || throw "FormBuilder requires assets"
     @config = options.config || throw "FormBuilder requires config"
     @samples = options.samples|| throw "FormBuilder requires samples"
-
-#    dam.config
-#      formbuilder:
-#        url: 'https://fb.dev.balihoo-cloud.com'
-#        username: 'username'
-#        password: 'password'
-
-#    env = 'dev'
-#    fbconfig.formbuilder.url = "https://fb.#{env}.balihoo-cloud.com"
-#    console.log fbconfig.formbuilder.url
-#    dam.config fbconfig
 
   uploadAssets: ->
     urls = {}

            @emit 'complete'

  saveExistingDraft: (creativeFormId, urls) ->
    console.log 'Existing Draft: ' + creativeFormId
    @getFormVersion(creativeFormId).then (formVersion) =>
      @getUpdatedDate(creativeFormId, formVersion).then (updatedDate) =>
        creativeForm = @generateForm urls, updatedDate

        @emit 'complete'

  saveNewDraft: (creativeFormId, urls) ->
    @getFormVersion(creativeFormId).then (formVersion) =>
      @getUpdatedDate(creativeFormId, formVersion).then (updatedDate) =>
        creativeForm = @generateForm urls, updatedDate
