package.react-utils.BrowserPushNotifications.devices.js.map Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of neeto-commons-frontend Show documentation
Show all versions of neeto-commons-frontend Show documentation
A package encapsulating common code across neeto projects including initializers, utility functions, common components and hooks and so on.
{"version":3,"file":"devices.js","names":["axios","devicesBaseUrl","create","payload","post","destroy","deviceId","concat","devicesApi"],"sources":["../../../src/react-utils/BrowserPushNotifications/devices.js"],"sourcesContent":["// THIS FILE HAS BEEN ADDED BY NEETO NOTIFICATIONS ENGINE\n// AND IS USED FOR BROWSER NOTIFICATIONS\n// CONTACT NEETO NOTIFICATIONS TEAM BEFORE MODIFYING THIS FILE\n\nimport axios from \"axios\";\n\nconst devicesBaseUrl = \"/neeto_notifications/api/v1/devices\";\n\nconst create = payload => axios.post(devicesBaseUrl, payload);\n\nconst destroy = deviceId => axios.delete(`${devicesBaseUrl}/${deviceId}`);\n\nconst devicesApi = { create, destroy };\n\nexport default devicesApi;\n"],"mappings":"AAAA;AACA;AACA;;AAEA,OAAOA,KAAK,MAAM,OAAO;AAEzB,IAAMC,cAAc,GAAG,qCAAqC;AAE5D,IAAMC,MAAM,GAAG,SAATA,MAAMA,CAAGC,OAAO;EAAA,OAAIH,KAAK,CAACI,IAAI,CAACH,cAAc,EAAEE,OAAO,CAAC;AAAA;AAE7D,IAAME,OAAO,GAAG,SAAVA,OAAOA,CAAGC,QAAQ;EAAA,OAAIN,KAAK,UAAO,IAAAO,MAAA,CAAIN,cAAc,OAAAM,MAAA,CAAID,QAAQ,EAAG;AAAA;AAEzE,IAAME,UAAU,GAAG;EAAEN,MAAM,EAANA,MAAM;EAAEG,OAAO,EAAPA;AAAQ,CAAC;AAEtC,eAAeG,UAAU"}