File Transfer changes.
This file

Add the following into webChatConfig.js:
    jsonMethodFileTransfer : 'newAgentFileTransfer',
    
Replace webChat.js/handleNotification with the following:
/**
     * Handles notification messages.
     * 
     * @param message
     */
    handleNotification : function(message) { // NOSONAR: too complex
        // for Sonar, but cannot be reduced further
        'use strict';
        var body = message.body, method = body.method;
        if (method === chatConfig.jsonMethodRequestChat) {
            webChat.notifyRequestChat(body);
        } else if (method === chatConfig.jsonMethodRouteCancel) {
            webChat.notifyRouteCancel();
        } else if (method === chatConfig.jsonMethodRequestNewParticipant) {
            webChat.notifyNewParticipant(body);
        } else if (method === chatConfig.jsonMethodRequestIsTyping) {
            webChat.notifyIsTyping(body);
        } else if (method === chatConfig.jsonMethodRequestNewMessage) {
            webChat.notifyNewMessage(body);
        } else if (method === chatConfig.jsonMethodRequestCloseConversation) {
            webChat.notifyCloseConversation();
        } else if (method === chatConfig.jsonMethodRequestParticipantLeave) {
            webChat.notifyParticipantLeave(body);
        } else if (method === chatConfig.jsonMethodRequestNewPushMessage) {
            webChat.notifyNewPagePushMessage(body);
        } else if (method === chatConfig.jsonMethodRequestNewCoBrowseSessionKeyMessage) {
            webChat.notifyNewCoBrowseSessionKeyMessage(body);
        } else if (method === chatConfig.jsonMethodPing) {
            // do nothing with pings. They just confirm that the
            // WebSocket is open.
        } else if (method === chatConfig.jsonMethodFileTransfer) {
            webChat.notifyFileTransfer(body);
        } else {
            throw new TypeError('Received notification with unknown method: '.concat(method));
        }
    },

Add the following into webChat.js below notifyRouteCancel
/**
 * Notifies the user of a new file transfer.
 */
notifyFileTransfer : function(body) {
    'use strict';
    avayaGlobal.log.info('Notifying of file transfer');
    var url = body.address;
    var filename = body.name;
    var timestamp = new Date().toLocaleString();
    var message = chatConfig.fileTransferMessageText;
    message = message.replace('{0}', filename);
    message = message.replace('{1}', timestamp);
    message = message.replace('{2}', url);
    webChat.writeResponse(message, chatConfig.writeResponseClassResponse);
},

