'use strict';

var axios = require('axios');

// THIS FILE HAS BEEN ADDED BY NEETO NOTIFICATIONS ENGINE
// AND IS USED FOR BROWSER NOTIFICATIONS
// CONTACT NEETO NOTIFICATIONS TEAM BEFORE MODIFYING THIS FILE

var devicesBaseUrl = "/neeto_notifications/api/v1/devices";
var create = function create(payload) {
  return axios.post(devicesBaseUrl, payload, {
    showToastr: false
  });
};
var destroy = function destroy(deviceId) {
  return axios["delete"]("".concat(devicesBaseUrl, "/").concat(deviceId), {
    showToastr: false
  });
};
var devicesApi = {
  create: create,
  destroy: destroy
};

module.exports = devicesApi;
//# sourceMappingURL=devices.js.map
