is this JS file malicious (ran as nodejs)? everything is encoded [closed]

https://pastebin.com/S39zzXha

this is the link to the file. (named “logger’js”)

in the project where the file is located, the package.json has script field as following:

"scripts": {
  "start": "node logger.js && node start.js"
}

is this JS file malicious? if not, what does this do?

ps: haven’t ran this because it looked fishy