Update javascript API

Job ID: 31213455

Budget: $15 – $25 AUD

I have an existing javascript file

when you type in start into the frontend, it checks all the team members who are active, and adds them into a new chat space

I would like to add functionality to this. Requirement:
1. Every minute, check again the active users and add any users whose status changes to active to the created space;
2. Every 5 minutes, remove any users whose status has changed to 'OutOfOffice' or 'inactive'

It uses this API reference:
https://developer.webex.com/docs/api/getting-started
https://developer.webex.com/docs/api/v1/memberships/update-a-membership
and
https://developer.webex.com/docs/api/v1/memberships/delete-a-membership
Related categories: PHP JavaScript HTML jQuery / Prototype Node.js