Gostaria de confirmar se a implementação abaixo é válida, pois ao fazer alguns testes não
No caso, se o usuário estiver logado
if (browsingContext.Common.Shopper.IsAuthenticated)
deve ser indicado os dados de contato
Envia os dados de contato ao entrar no chat
/*jshint esversion: 6 */
(function () {
    window.onload = function () {
        var blipClient = new BlipChat()
            .withAppKey('KEY')
            .withButton({ "color": "#3a183d" })
            .withoutHistory()
            .withEventHandler(BlipChat.ENTER_EVENT, function () {
                console.log('BlipChat log event - enter');
                if (browsingContext.Common.Shopper.IsAuthenticated) {
                    blipClient
                    .withAccount({
                        name: browsingContext.Common.Shopper.Name,
                        fullName: browsingContext.Common.Shopper.Name + ' ' + browsingContext.Common.Shopper.SurName,
                        gender: browsingContext.Common.Customer.Gender,
                        email: browsingContext.Common.Shopper.Email,
                        phoneNumber: browsingContext.Common.Customer.ExtendedProperties.Phone.Value,
                        extras: {
                            CustomerID: browsingContext.Common.Customer.CustomerID
                        }
                    })
                    .build();
                }
            })
            ;
        blipClient.build();
    };
})();
Referência:



