/*
 * @package AJAX_Chat
 * @author Sebastian Tschan
 * @copyright (c) Sebastian Tschan
 * @license GNU Affero General Public License
 * @link https://blueimp.net/ajax/
 */

// Overriding client side functionality:

/*
// Example - Overriding the replaceCustomCommands method:
ajaxChat.replaceCustomCommands = function(text, textParts) {
  return text;
}
 */
ajaxChat.handleCustomInfoMessage = function(infoType, infoData) {
  if (infoType == 'activity') {
    this.showActivity(infoData);
  }
},

ajaxChat.customInitialize = function() {
  ajaxChat.addChatBotMessageToChatList('Bonjour. Veuillez patienter...');
},

ajaxChat.saveChat = function() {
  var url = this.baseURL + "?download=chat";

  if (!ajaxChat.chatStarted) {
    url += "&channelID=" + this.channelID;
  }
  document.getElementById('downloadFrame').src = url;
}

