Swap user

Allows to swap user on the webchat.

This method allows you to swap the user identified in the webchat.
It will soon need an obligatory userToken parameter to identify the user.

The first time you push a userId, this token will be saved on Clustaar side, and used to identify further swaps for this userId.

We advise you to use a private key on your side to encrypt userId, and use this hash as token.

// with User Token parameter
window.ClustaarWebchat.swapUser('USER_ID', 'USER_TOKEN');