"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("lodash");exports.transformAssetToOffsetWell=function(e){return{id:Number(t.get(e,"id")),name:t.get(e,"attributes.name"),status:t.get(e,"attributes.status"),wellState:t.get(e,"attributes.state"),companyId:t.get(e,"attributes.company_id"),companyName:"Null",rigId:t.get(e,"attributes.parent_asset_id")||"Null",rigName:t.get(e,"attributes.parent_asset_name")||"Null",formation:t.get(e,"attributes.target_formation")||"Null",stringDesign:t.get(e,"attributes.string_design")||"Null",programName:t.get(e,"attributes.root_asset_name")||"Null",basin:t.get(e,"attributes.basin")||"Null",county:t.get(e,"attributes.county")||"Null",area:t.get(e,"attributes.area")||"Null",visibility:t.get(e,"attributes.visibility"),topHole:t.get(e,"attributes.top_hole"),rigReleaseDate:t.get(e,"attributes.stats.well_end"),totalDepth:t.get(e,"attributes.stats.total_depth"),is_usable:!0,apiNumber:t.get(e,"attributes.settings.api_number","-"),lastActive:new Date(t.get(e,"attributes.last_active_at")).getTime()/1e3,lastDrillingAt:t.get(e,"attributes.last_drilling_at")?new Date(t.get(e,"attributes.last_drilling_at")).getTime()/1e3:void 0,lastInterventionAt:t.get(e,"attributes.last_intervention_at")?new Date(t.get(e,"attributes.last_intervention_at")).getTime()/1e3:void 0}};
//# sourceMappingURL=transformAssetToOffsetWell.js.map
