def get_integration_service_events():
 events = {}
 for service in frappe.get_all(u'Integration Service', filters={u'enabled': 1}, fields=[u'name']):
  controller = get_integration_controller(service.name)
  if hasattr(controller, u'scheduler_events'):
   for (key, handlers) in controller.scheduler_events.items():
    events.setdefault(key, []).extend(handlers)
 return events

def get_integration_service_events ( ) : events = { } for service in frappe . get_all ( u'Integration Service' , filters = { u'enabled' : 1 } , fields = [ u'name' ] ) : controller = get_integration_controller ( service . name ) if hasattr ( controller , u'scheduler_events' ) : for ( key , handlers ) in controller . scheduler_events . items ( ) : events . setdefault ( key , [ ] ) . extend ( handlers ) return events
get scheduler events for enabled integrations .