PageSourceSearch

http://app.onomondo.com/webhooks.3965111532725684dea1.js

js onomondo.com collected 2026-10-02 02:51:40 UTC 10,450 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkonomondo_app=self.webpackChunkonomondo_app||[]).push([[765],{58592(e,t,n){n.d(t,{c:()=>x});var r=n(60436),a=n(10467),o=n(5544),c=n(54756),i=n.n(c),s=n(96540),u=n(16654),l=n(67467),p=n(5220);function h(e,t){var n=e.tags.map(function(e){return{name:e.name,id:e.id,canWrite:e.can_write,color:e.color}}).sort(f("name"));return{id:e.id,label:e.label,active:e.active,excludeTypes:e.exclude_types,url:e.url,tags:n,canEdit:!t||!!n.find(function(e){return e.canWrite})}}function d(e,t){return{label:e.label,active:e.active,exclude_types:e.excludeTypes.map(function(e){return"string"==typeof e?e:e.value}),url:e.url,tags:t?void 0:(n=e.tags,n.map(function(e){return"string"==typeof e?e:e.value||e.id}))};var n}var f=function(e){return function(t,n){var r;return null===(r=t[e])||void 0===r?void 0:r.localeCompare(n[e])}};var x=[{value:"usage",label:"Data usage",helpText:"Occurs approx. every 15 minutes",icon:"bar-chart-square-02",icon16:"bar-chart-square-02-16"},{value:"usage-alert",label:"Usage alerts",helpText:"The device reaches usage alert threshold or is blocked by usage limit.",icon:"chart-breakout-square",icon16:"chart-breakout-square-16"},{value:"cost-alert",label:"Cost alert",helpText:"The device reaches cost alert threshold.",icon:"currency-euro-circle",icon16:"currency-euro-circle"},{value:"sms",label:"SMS",helpText:"The device sends an SMS",icon:"send-01",icon16:"send-01-16"},{value:"usage-sms",label:"SMS usage",helpText:"An SMS is sent or received",icon:"message-check-square",icon16:"message-check-square-16"},{value:"location",label:"Location update",helpText:"Approx. location of device",icon:"marker-pin-01",icon16:"marker-pin-01-16"},{value:"network-registration",label:"Network registration",helpText:"The device has attached to the network.",icon:"copy-07",icon16:"copy-07-16"},{value:"network-authentication",label:"Network authentication",helpText:"The device has asked to authenticate with the network",
1icon:"check-done-01",icon16:"check-done-01-16"},{value:"network-deregistration",label:"Network deregistration",helpText:"The device has detached from the network",icon:"check-undone-01",icon16:"check-undone-01-16"}];n.d(t,["A",0,function(e){var t=(0,u.default)(),n=t.isLoggedIn,c=t.assumedOrganizationId,x=t.isOrgMember,m=(0,p.default)().isOrgGod,v=(0,s.useState)(!0),k=(0,o.A)(v,2),b=k[0],g=k[1],w=(0,s.useState)([]),j=(0,o.A)(w,2),y=j[0],A=j[1],T=(0,s.useState)(null),S=(0,o.A)(T,2),C=S[0],W=S[1],_=(0,l.useConfig)(e||c);function R(){return(R=(0,a.A)(i().mark(function e(t){var n,r;return i().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=1,l.default.get("/webhooks/".concat(t),_());case 1:return n=e.sent,e.abrupt("return",h(n.data,x));case 2:e.prev=2,r=e.catch(0),W(r),g(!1);case 3:case"end":return e.stop()}},e,null,[[0,2]])}))).apply(this,arguments)}function M(){return(M=(0,a.A)(i().mark(function e(t){var n,r;return i().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=1,l.default.get("/webhooks/".concat(t,"/secret"),_());case 1:return n=e.sent,e.abrupt("return",n.data.secret);case 2:e.prev=2,r=e.catch(0),W(r),g(!1);case 3:case"end":return e.stop()}},e,null,[[0,2]])}))).apply(this,arguments)}function N(){return(N=(0,a.A)(i().mark(function e(t){var n,r;return i().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=1,l.default.post("/webhooks/".concat(t,"/secret/rotate"),null,_());case 1:return n=e.sent,e.abrupt("return",n.data.secret);case 2:e.prev=2,r=e.catch(0),W(r),g(!1);case 3:case"end":return e.stop()}},e,null,[[0,2]])}))).apply(this,arguments)}function U(){return(U=(0,a.A)(i().mark(function e(t){var n;return i().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=1,l.default.post("/webhooks/".concat(t,"/secret/promote"),null,_());case 1:e.next=3;break;case 2:throw e.prev=2,n=e.catch(0),W(n),g(!1),n;case 3:case"end":return e.stop()}},e,null,[[0,2]])}))).apply(this,arguments)}function q(){return(q=(0,a.A)(i().mark(function e(t){var n;return i().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,l.default.post("/webhooks",d(t,x),_());case 1:n=e.sent,A([].concat((0,r.A)(y),[h(n.data,x)]).sort(f("label")));case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function I(){return(I=(0,a.A)(i().mark(function e(t,n,r){var a;return i().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,l.default.patch("/webhooks/".concat(t),d(n,x),_({params:{track:r}}));case 1:a=e.sent,A(y.map(function(e){return e.id===t?h(a.data,x):e}).sort(f("label")));case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function F(){return(F=(0,a.A)(i().mark(function e(t){return i().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,l.default.delete("/webhooks/".concat(t),_());case 1:A(y.filter(function(e){return e.id!==t}).sort(f("label")));case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}return(0,s.useEffect)(function(){function e(){return(e=(0,a.A)(i().mark(function e(){var t,n;return i().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=1,l.default.get("/webhooks",_());case 1:t=e.sent,A(t.data.map(function(e){return h(e,x)}).sort(f("label"))),g(!1),e.next=3;break;case 2:e.prev=2,n=e.catch(0),W(n),g(!1);case 3:case"end":return e.stop()}},e,null,[[0,2]])}))).apply(this,arguments)}m||(g(!0),function(){e.apply(this,arguments)}())},[n,c,_,x]),{loading:b,error:C,data:y,getDetails:function(e){return R.apply(this,arguments)},getSecret:function(e){return M.apply(this,arguments)},generateTemporarySecret:function(e){return N.apply(this,arguments)},promoteSecret:function(e){return U.apply(this,arguments)},create:function(e){return q.apply(this,arguments)},update:function(e,t,n){return I.apply(this,arguments)},remove:function(e){return F.apply(this,arguments)}}}])},9967(e,t,n){n.r(t),n.d(t,{default:()=>W});var r=n(96540),a=n(314),o=n(68904),c=n(37283),i=n(76751),s=n(38267),u=n(54239),l=n(94249),p=n(35166),h=n(81865),d=n(51218),f=n(74848),x=(0,s.default)(h.A).withConfig({displayName:"RestrictedWebhooks__RowWithBottomMargin",componentId:"sc-5jp9js-0"})(["margin-bottom:20px;flex-direction:column;"]),m=(0,s.default)(l.A).withConfig({displayName:"RestrictedWebhooks__ColumnWithSomeSpacing",componentId:"sc-5jp9js-1"})(["margin-top:20px;padding-left:20px;"]),v=(0,s.default)(p.$n).withConfig({displayName:"RestrictedWebhooks__CTAButtonWithMargin",componentId:"sc-5jp9js-2"})(["margin-top:18px;"]),k=(0,s.default)(h.A).withConfig({displayName:"RestrictedWebhooks__RowWithSpacingBetweenChildColumns",componentId:"sc-5jp9js-3"})(["gap:80px;margin-top:20px;"]),b=[[{title:"Data Usage",icon:(0,f.jsx)(p._I,{}),description:"Occurs approximately every 15 minutes"},{title:"Usage Alerts",icon:(0,f.jsx)(p.Tm,{}),description:"The device reaches usage alert threshold or is blocked by usage limit"},{title:"Location Update",icon:(0,f.jsx)(p.Tb,{}),description:"Approximate location of device"}],[{title:"Network De-registration",icon:(0,f.jsx)(p.ZY,{}),description:"The device has detached from the network"},{title:"Network Registration",icon:(0,f.jsx)(p.ZY,{}),description:"The device has attached to the network"},{title:"Network Authentication",icon:(0,f.jsx)(p.ZY,{}),description:"The device has asked to authenticate with the network"}],[{title:"SMS",icon:(0,f.jsx)(p.qx,{}),description:"The device sends an SMS"},{title:"SMS Usage",icon:(0,f.jsx)(p.R5,{}),description:"An SMS is sent or received"}]],g=[{title:"How do I set up a Webhooks on my account?",buttonText:"Read more",buttonUrl:"https://onomondo.com/help-center/setting-up/how-do-i-set-up-a-webhook-on-my-account/"},{title:"This feature is available for Pro, Fleet, Fleet+, and Enterprise users",buttonText:"Contact us",buttonUrl:"https://onomondo.com/pricing"}];const w=function(){return(0,f.jsxs)(l.A,{children:[(0,f.jsx)(h.A,{children:g.map(function(e,t){return(0,f.jsx)(l.A,{children:(0,f.jsx)(u.A,{title:e.title,buttonText:e.buttonText,buttonUrl:e.buttonUrl,center:!0,height:"800px",mixpanelFrom:"Webhooks"})},t)})}),(0,f.jsx)(h.A,{children:(0,f.jsxs)(p.Uq,{children:[(0,f.jsx)(d.nd,{children:"This feature is available starting in the Pro package"}),(0,f.jsx)(d.fh,{children:"Webhooks can provide the following information:"}),(0,f.jsx)(k,{children:b.map(function(e,t){return(0,f.jsx)(m,{children:e.map(function(e,t){return(0,f.jsxs)(x,{children:[(0,f.jsxs)(p.qi,{children:[e.icon,(0,f.jsx)(d.Vk,{children:e.title})]}),(0,f.jsx)("div",{children:(0,f.jsx)(d.Fu,{children:e.description})})]},t)})},t)})}),(0,f.jsx)(h.A,{children:(0,f.jsx)("a",{href:"https://onomondo.com/pricing/#production",target:"_blank",onClick:function(){return i.A.track("Click compare software packages",{From:"Webhooks"})},rel:"noopener",children:(0,f.jsx)(v,{width:"200px",variant:"secondary",children:"Compare software packages"})})})]})})]})};var j=n(54440),y=n(6395),A=n(58592),T=n(19480),S=(0,r.lazy)(function(){return Promise.all([n.e(997),n.e(8530),n.e(6266),n.e(1024),n.e(3609),n.e(1126),n.e(2035),n.e(37),n.e(5566),n.e(903),n.e(6409),n.e(4772),n.e(4385),n.e(5758),n.e(6771),n.e(1123),n.e(1178),n.e(6200),n.e(1768),n.e(6366),n.e(1342),n.e(4059),n.e(441),n.e(686),n.e(703),n.e(3083),n.e(2124),n.e(3171),n.e(6891),n.e(9417),n.e(9765),n.e(489),n.e(2157),n.e(689),n.e(5041),n.e(2798)]).then(()=>n(99397))}),C=(0,r.lazy)(function(){return Promise.all([n.e(997),n.e(8530),n.e(6266),n.e(1024),n.e(3609),n.e(1126),n.e(2035),n.e(37),n.e(5566),n.e(903),n.e(6409),n.e(4772),n.e(4385),n.e(5758),n.e(6771),n.e(1123),n.e(1178),n.e(6200),n.e(1768),n.e(6366),n.e(1342),n.e(4059),n.e(441),n.e(686),n.e(703),n.e(3083),n.e(2124),n.e(3171),n.e(6891),n.e(9417),n.e(9765),n.e(489),n.e(2157),n.e(689),n.e(5041),n.e(6406)]).then(()=>n(45912))});const W=function(){(0,y.A)("Webhooks");var e=(0,a.useRouteMatch)().path,t=(0,A.A)(),n=(0,j.A)(),r=n.hasFeature;return n.loading||t.loading?(0,f.jsx)(o.N,{}):(0,f.jsx)(c.A,{children:r("management.webhooks")?(0,f.jsxs)(a.Switch,{children:[(0,f.jsx)(a.Route,{exact:!0,path:e,children:(0,f.jsx)(S,{webhooks:t})}),(0,f.jsx)(a.Route,{path:"".concat(e,"/new"),children:(0,f.jsx)(C,{webhooks:t})}),(0,f.jsx)(a.Route,{path:"".concat(e,"/edit/:id"),render:function(e){var n=e.match.params.id,r=t.data.find(function(e){return e.id===n});return r?(0,f.jsx)(C,{webhooks:t,webhook:r,webhookId:n}):(0,f.jsx)(T.A,{})}})]}):(0,f.jsx)(w,{})})}}}]);
2//# sourceMappingURL=webhooks.3965111532725684dea1.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.