i have the following code in nodejs:
const unifi = require(\'node-unifi\'); const controller = new unifi.Controller(IP_ADDRESS, 8443); function login(apiCall) {