code: function listTeamPolicies ({ id, page = 1, limit, organizationId }, cb) {
        let promise = null
        if (typeof cb !== 'function') [promise, cb] = asyncify()
  
        Joi.validate({ id, page, limit, organizationId }, validationRules.listTeamPolicies, function (err) {
          if (err) return cb(Boom.badRequest(err))
  
          const pageLimit = limit || _.get(config, 'authorization.defaultPageSize')
          const offset = (page - 1) * pageLimit
  
          const job = {
            id: id,
            organizationId: organizationId,
            offset: offset,
            limit: pageLimit,
            team: {},
            client: db
          }
  
          loadTeamPolicies(job, (err) => {
            if (err) return cb(err)
            const pageSize = pageLimit || job.totalPoliciesCount
            const result = {
              page: page,
              limit: pageSize,
              total: job.totalPoliciesCount,
              data: job.team.policies
            }
            return cb(null, result)
          })
        })
  
        return promise
      }
docs: Fetch a team's policies
  
  @param  {params}   params { id, page, limit }
  @param  {Function} cb