The API must have an endpoint, that when called, will send a lead to one or more agents. This will use the Node sender API to send a push. (Push) Takes in a list of agents, search for a lead by id, goes through agents, adds their logins to a map of alias, calls the node sender to send a lead. To do this it passes in a lead, a list of agents. |
|