   'kryptnostic.credential-loader'
   'kryptnostic.crypto-service-loader'
   'kryptnostic.crypto-service-marshaller'
-  'kryptnostic.share-processing-service'
 ], (require) ->
   _                       = require 'lodash'
   Promise                 = require 'bluebird'

        log.info('revoked access', { id, uuids })

    processIncomingShares : ->
      Promise.resolve()
      .then =>
        @sharingApi.getIncomingShares()
      .then (shares) =>
        @shareProcessingService.processShares(shares)

    registerSearchKeys : (encryptedSearchObjectKeys) ->
      if _.isEmpty(encryptedSearchObjectKeys)
        return Promise.resolve()
      else
        return @sharingApi.registerSearchKeys(encryptedSearchObjectKeys)

  return SharingClient

      @directoryApi            = new DirectoryApi()
      @cryptoServiceMarshaller = new CryptoServiceMarshaller()
      @cryptoServiceLoader     = new CryptoServiceLoader()
      @credentialLoader        = new CredentialLoader()

    shareObject: (id, uuids) ->
