LPS-1371 - Need a provision to clear old chat messages

Hey @Robert-Frampton,

Attached is an update for http://issues.liferay.com/browse/LPS-1371.

We are going to need to implement a few additional things for this feature to get it working.  These changes are going to require some backend work as well, but give it a shot and see how far we can get.  We need to rename the activePanelIds column in the Chat_Status table in the database to something a little more generic like "settings".  You can do this in the service.xml since now we need to store JSON object containing the clearedHistoryTime, the panelId, and the state of the activePanelID (minimized/closed).  We also need to update the SQL code to search for a clearedHistoryTime for the current activePanel and return the desired chat results.

You can work with @shinnlok if you have any issues.

Please let me know if you have any questions.  Thanks!