Engineering
Hexagonal architecture
Keep business rules independent of the interfaces and services that connect them to the outside world.
Hexagonal architecture gives application logic explicit interfaces called ports. Adapters translate between those interfaces and technologies such as HTTP, a database, or an external CRM.
In an illustrative SalesCandy routing design, a webhook adapter could translate an incoming request into a routing command. The routing rules could ask for salesperson availability through a port. A presence adapter could supply live availability in production, while a test could supply a fixed set of available salespeople. This is an exploratory design for the documented workflow.