 KodingError = require '../error'
 { extend }  = require 'underscore'
 async       = require 'async'
-
+_           = require 'lodash'
 { protocol, hostname } = KONFIG
 { secure, signature } = Bongo
 

          createInvites hasAdminRights = no


  @canFetchInvitationsAsSuperAdmin: permit
    advanced: [ { permission: 'remove invitation', superadmin: yes } ]


            return callback err  if err

            unless returnCodes

              data = { type: 'create', invitations: prepareInvitationCodes codes }

              return notifyGroupOnInvitationChange groupName, data, callback

