Got a scam mail, how malicious is this Js script?

I got a scam mail with an html file attached. I opened the html file on a mac. inside the html file was a link to a js script. I put the code from the js script into a txt file, so it may not be so dangerous. Can you tell what this code does?

https://ufile.io/ey13evxz

thanks

I put the code from the js script into a txt file, so it may not be so dangerous.