"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/asyncToGenerator"),r=require("@babel/runtime/regenerator"),t=require("../../../../clients/jsonApi/index.js");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=a(e),c=a(r);function u(){return(u=n.default(c.default.mark((function e(r){var a,n,u;return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=r.wellId,n=r.md,e.prev=1,e.next=4,t.getAppStorage("corva","directional.accuracy",a,{query:"{data.actual_point.measured_depth#eq#".concat(n,"}"),sort:"{timestamp: -1}",limit:1});case 4:u=e.sent,e.next=10;break;case 7:e.prev=7,e.t0=e.catch(1),console.error(e.t0);case 10:return e.abrupt("return",u);case 11:case"end":return e.stop()}}),e,null,[[1,7]])})))).apply(this,arguments)}exports.fetchDirectionalAccuracyRecords=function(e){return u.apply(this,arguments)};
//# sourceMappingURL=api.js.map
