How to run custom JS after user logon? Which Espo method should I use?

I need create custom View:

''' this.createView('chatPanel', 'custom:views/chat/chatPanel', {},
function (view) {
view.render();
}, this);
}
'''