Selecting which event the notfication is sent to webhook

I am trying to find a way to allow user to select which events the user wants the notification for.
For that purpose i have two questions:
1 - How to list all registered events in kanboard?
2 - How to go about doing that in a kanboard plugin?

The snapshot here looks what it would look like: