-jraphical = require 'jraphical'
+# coffeelint: disable=no_implicit_braces
+jraphical   = require 'jraphical'
+KodingError = require '../error'
 
 emailsanitize = require './user/emailsanitize'
 

    JCampaignData.one { campaign, email }, {}, (err, model) ->

      return callback err                          if err
      return callback message: 'Already applied!'  if model

      model = new JCampaignData data
      model.save callback


  @add: (data, callback) ->

    return callback new KodingError 'Email is missing!'          unless data.email
    return callback new KodingError 'Campaign info is missing!'  unless data.campaign

    { campaign, email } = data

