public function eventTypeConfig()
    {
        $this->request->allowMethod(['post', 'put', 'patch']);

        $response = [
            'success' => false,
            'data' => [],
            'errors' => [],
        ];

        $data = $this->request->getData();

        try {
            $config = ObjectFactory::getConfig(null, 'Event', $data['event_type']);

            if (!empty($config)) {
                $response['success'] = true;
                $response['data'] = $config;
            }
        } catch (Exception $e) {
            $response['errors'][] = $e->getMessage();
            throw $e;
        }

        $this->set(compact('response'));
        $this->set('_serialize', 'response');
    }