 `import DS from 'ember-data'`
 `import ENUMS from 'irene/enums'`
+`import ENV from 'irene/config/environment';`
 
 User = DS.Model.extend
 

  namespaces: DS.attr 'string'
  collaborations: DS.hasMany 'collaboration', inverse:'user'
  expiryDate: DS.attr 'date'

  hasGithubToken: DS.attr 'boolean'
  hasJiraToken: DS.attr 'boolean'


  expiryText: (->
    currentDate = new Date()
    if ENV.isAppknox
      expiryDate = @get "expiryDate"
    else
      expiryDate = @get "devknoxExpiry"
    prefix = "Will expire"
    if currentDate > expiryDate
      prefix = "Expired"
