Adds a route to the agent application that is only active for the channel specified in this extension. This method creates a channel-specific route by wrapping the provided route selector with an additional check to ensure the incoming activity matches the extension's channel ID.
The agent application instance to add the route to
A function that determines if the route should handle the incoming activity
The handler function that will process the activity when the route is matched
OptionalisInvokeRoute: booleanOptional. Whether this route handles invoke activities. Defaults to false
Optionalrank: numberOptional. The priority rank of this route for routing precedence. Defaults to RouteRank.Unspecified
The channel ID that this extension is associated with