UNPKG

mpesa-snap

Version:

Mpesa Add-on

2 lines 1.23 kB
/*MPESA SNAP*/ function s(e,r){let t=n();return(s=function(e,r){return e-=182,t[e]})(e,r)}(()=>{for(var e=s,r=n();;)try{if(462701==+parseInt(e(191))+-parseInt(e(187))/2*(-parseInt(e(188))/3)+-parseInt(e(197))/4+-parseInt(e(200))/5+parseInt(e(186))/6*(-parseInt(e(185))/7)+-parseInt(e(201))/8*(parseInt(e(193))/9)+parseInt(e(183))/10*(parseInt(e(194))/11))break;r.push(r.shift())}catch(e){r.push(r.shift())}})();import t from"axios";function n(){let e=["14mHvePb","2439042JbxULf","50buQlOf","43185cYPPio","interceptors","error","412579xcuDDY","reject","591966ytzkPZ","297hngXbS","System Error","data","685456hyIDQg","use","create","979330UfDoea","64SRTGgD","response","517290PvkCjV","message"];return(n=function(){return e})()}import{HttpException as a}from"js-exceptions";let e=e=>{let o=s,r=t[o(199)](Object.assign({},e));return r[o(189)].request.use(e=>e,e=>Promise[o(192)](new a((null==e?void 0:e[o(184)])||o(195),500))),r.interceptors[o(182)][o(198)](e=>e[o(196)],e=>{var r,t,s,n=o;return console[n(190)](e),e[n(182)]?({status:r,statusText:s,data:t=n(195)}=e[n(182)],s=new a({message:s,description:t,error:e},r),Promise.reject(s)):Promise[n(192)](new a((null==e?void 0:e[n(184)])||"System Error",500))}),r};export{e as useApi};