The procedure below will get the agent ID who was previously logged in, not the ID of the agent who is actually logged in to the extension.
1. Monitor skills A, B, and C using addAddressListener
2. Agent-1 logs in to the extension with three skills (A, B, C). (At this time, three login notifications <acdAddressLoggedOn> are notified.)
3. Agent-1 logs out of extension. (At this time, three logout notifications <acdAddressLoggedOff> are notified.)
4. Remove two skills from Agent-1 (B, C)
5. Agent-1 logs in to the extension with one skill (A). (At this time, three login notifications <acdAddressLoggedOn> are notified.)
6. Agent-1 logs out of extension. (At this time, only one logout notification <acdAddressLoggedOff> is notified.)
7. Another agent (Agent-2) logs in to the same extension.
8. Use getAgents() and getAgentID() to get the ID of the agent logged in to the extension, the ID of agent-1 is obtained.
In addition, this case seems to occur only in the environment where PrivateData is attached to the login notification.
|