import r from"@babel/runtime/helpers/toConsumableArray";import e from"@babel/runtime/helpers/asyncToGenerator";import t from"@babel/runtime/regenerator";import{concat as n}from"lodash";import{fetchAssetWells as a}from"./fetchAssetWells.js";import{fetchRigs as o}from"./fetchRigs.js";var s=function(){var s=e(t.mark((function e(s,i){var u,p,l,m,c,f,b=arguments;return t.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u=b.length>2&&void 0!==b[2]?b[2]:1,p=b.length>3?b[3]:void 0,l=b.length>4?b[4]:void 0,"well"!==i){e.next=8;break}return e.next=6,a(s,u,p,l);case 6:return m=e.sent,e.abrupt("return",m);case 8:if("rig"!==i){e.next=13;break}return e.next=11,o(s,u,p);case 11:return c=e.sent,e.abrupt("return",c);case 13:return e.next=15,Promise.all([a(s,u,p,l),o(s,u,p)]);case 15:return f=e.sent,e.abrupt("return",n.apply(void 0,r(f)));case 17:case"end":return e.stop()}}),e)})));return function(r,e){return s.apply(this,arguments)}}();export{s as fetchAllAssets};
//# sourceMappingURL=fetchAllAssets.js.map
