Dynamic Initialization of Webhooks in Extension

Please find below Queries

  1. How to dynamically initialize the webhooks in extension?

webhook_config: {
api_path: “/ext/product-highlight-webhook”,
notification_email: “[email protected]”,
event_map: {
// dynamic injection ?
“company/article/update”: {
“handler”: productPriceUpdateHandler,
“version”: ‘1’
}
}
}

  1. How to fetch Order status templates from extension ?
    Example: