     sharedMethods   :
       instance      : ['modifyMultiuse', 'remove']
       static        : ['inviteFriend', 'byCode', 'suggestCode', 'createMultiuse',
-                       'createForResurrection']
+                       'createForResurrection', 'createMultiForResurrection']
     sharedEvents    :
       static        : []
       instance      : []

            return callback err  if err
            groupObj.addInvitation invite, callback

  @createForResurrection = permit 'send invitations',
    success: ({connection:{delegate}}, username, callback)->
      JUser = require './user'
      JUser.one {username}, (err, user)=>
        return callback err  if err or !user

        {email} = user
        code    = @generateInvitationCode "group", email, "resurrection"
        invite  = new JInvitation {
          code
          email
          type       : "multiuse"
          group      : "resurrection"
          origin     : ObjectRef(delegate)
          maxUses    : 100
          createdFor : username
        }
        invite.save callback

  @suggestCode: permit 'send invitations',
    success: (client, callback, tries=0)->

jraphical = require 'jraphical'
Bongo     = require "bongo"

{secure, daisy, Base} = Bongo

module.exports = class JInvitation extends jraphical.Module

