integrations: Refactor clubhouse webhook's helper functions.
integrations: Refactor clubhouse webhook's helper functions.

Instead of considering only the action with the primary id, this
refactors the helper functions for generating the topic and body
for the stream messages to accept an arbitrary action and generate
the corresponding message for each of the events.

Fixes: #18022

hackerkid/zulip,eeshangarg/zulip,punchagan/zulip,kou/zulip,kou/zulip,punchagan/zulip,andersk/zulip,hackerkid/zulip,rht/zulip,kou/zulip,punchagan/zulip,punchagan/zulip,hackerkid/zulip,kou/zulip,kou/zulip,eeshangarg/zulip,zulip/zulip,rht/zulip,kou/zulip,andersk/zulip,zulip/zulip,hackerkid/zulip,andersk/zulip,rht/zulip,rht/zulip,eeshangarg/zulip,kou/zulip,hackerkid/zulip,rht/zulip,andersk/zulip,andersk/zulip,andersk/zulip,eeshangarg/zulip,eeshangarg/zulip,eeshangarg/zulip,hackerkid/zulip,punchagan/zulip,rht/zulip,zulip/zulip,punchagan/zulip,zulip/zulip,zulip/zulip,zulip/zulip,rht/zulip,andersk/zulip,punchagan/zulip,eeshangarg/zulip,zulip/zulip,hackerkid/zulip