const axios = require('axios'); function WopiAPI() {} WopiAPI.prototype.getPassports = function (fileID) { const requestConfig = { url: window.WOPI_URL, method: 'POST', headers: { publicKey: window.viamApi.getConfig().headers.publicKey, uuid: window.viamApi.getConfig().headers.uuid, token: window.viamApi.getConfig().headers.token, deviceHash: window.viamApi.getConfig().headers.deviceHash, fileID } }; return axios(requestConfig); }; module.exports = WopiAPI;