 jraphical = require 'jraphical'
 Bongo     = require "bongo"
 
-{secure, daisy, Base} = Bongo
+{secure, daisy, Base, signature} = Bongo
 
 module.exports = class JInvitation extends jraphical.Module
 

    indexes         :
      code          : 'unique'
    sharedMethods   :
      instance      : ['modifyMultiuse', 'remove']
      static        : ['inviteFriend', 'byCode', 'suggestCode', 'createMultiuse',
                       'createForResurrection', 'createMultiForResurrection'
                       'sendResurrectionEmails', 'byCodeForBeta'
                      ]
    sharedEvents    :
      static        : []
      instance      : []

      }
      invite.save callback

  @suggestCode: permit 'send invitations',
    success: (client, callback, tries=0)->
      return callback 'could not generate code, too many tries!'  if tries > 10
