getQueryParam('id'); if (!$id) { throw new BadRequest(); } if (!$this->acl->checkScope(CaseEntity::ENTITY_TYPE, Table::ACTION_READ)) { throw new Forbidden(); } $result = $this->injectableFactory ->create(Service::class) ->getEmailAddressList($id); return array_map( fn ($item) => $item->getValueMap(), $result ); } }