package.cjs.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","_interopRequireDefault","require","devicesBaseUrl","create","payload","axios","post","showToastr","destroy","deviceId","concat","devicesApi","_default","exports"],"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 =>\n axios.post(devicesBaseUrl, payload, { showToastr: false });\n\nconst destroy = deviceId =>\n axios.delete(`${devicesBaseUrl}/${deviceId}`, { showToastr: false });\n\nconst devicesApi = { create, destroy };\n\nexport default devicesApi;\n"],"mappings":";;;;;;;AAIA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAJA;AACA;AACA;;AAIA,IAAMC,cAAc,GAAG,qCAAqC;AAE5D,IAAMC,MAAM,GAAG,SAATA,MAAMA,CAAGC,OAAO;EAAA,OACpBC,iBAAK,CAACC,IAAI,CAACJ,cAAc,EAAEE,OAAO,EAAE;IAAEG,UAAU,EAAE;EAAM,CAAC,CAAC;AAAA;AAE5D,IAAMC,OAAO,GAAG,SAAVA,OAAOA,CAAGC,QAAQ;EAAA,OACtBJ,iBAAK,UAAO,IAAAK,MAAA,CAAIR,cAAc,OAAAQ,MAAA,CAAID,QAAQ,GAAI;IAAEF,UAAU,EAAE;EAAM,CAAC,CAAC;AAAA;AAEtE,IAAMI,UAAU,GAAG;EAAER,MAAM,EAANA,MAAM;EAAEK,OAAO,EAAPA;AAAQ,CAAC;AAAC,IAAAI,QAAA,GAAAC,OAAA,cAExBF,UAAU","ignoreList":[]}