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