In the project I\'m working on the back-end connection is done via restclient.js file, which, when simplified, looks like so:
const someFunctionality = {