Hybrid Chat exchanges chat messages with the customer channels over secure transport using secure WebSockets (Socket IO) and secure REST connections. For asynchronous processing of a message, it's persisted in ActiveMQ. For long-term persistence, messages are stored in MongoDB via the database-connector microservice.
Messages are stored in MongoDB as plain-text and without any encryption. And the media exchanged via the file-transfer feature is stored in the file system of the Chat server.
Anyone having access to the database and the file server can read messages and exchanged media files as well.