Currently the "Conversation closed" message is not always accurate.
For example, in an escalated session all Conversation closed messages show "Chat ended by visitor", even if the chat was actually closed by the agent, or timed out.
https://github.com/WideChat/Apps.Salesforce.LiveAgent/blob/master/helperFunctions/subscribeHelpers/SalesforceAgentAssignedHelpers/HandleEndChatCallback.ts#L62
We need to properly define all the reasons while closing rooom. visitor, agent, session expired etc. We should verify for both escalated and non escalated sessions.
As a side note: our SNS event logging for chat closed needs to be accurate as well...