 
   @trait __dirname, '../traits/protected'
 
-  {permit} = require './group/permissionset'
+  { permit } = require './group/permissionset'
 
   @share()
 

# JTeamInvitation is a temporary invitation token collection will be used for
# inviting companies to use/try teams product, this file should be removed after
# releasing teams product.
{argv}      = require 'optimist'
KONFIG      = require('koding-config-manager').load("main.#{argv.c}")
jraphical   = require 'jraphical'
shortid     = require('shortid');
Bongo       = require "bongo"
Tracker     = require './tracker'
KodingError = require '../error'
{ extend }  = require 'underscore'

        default     : -> new Date

  markAsUsed: (callback) ->
    operation = { $set : { status: 'used' } }
    @update operation, callback

  validTypes: ['pending']

  isValid: -> @status in @validTypes

  remove$: permit 'send invitations',
    success: (client, callback) ->
