import { Analytics } from '../../../core/analytics' import { getStorage } from '../utils' export const SENSE_KEY = '_6senseCompanyDetails' export async function load6Sense(analytics: Analytics): Promise { const details = getStorage(SENSE_KEY) if ( !details || !details.company || !details.company.domain || analytics.group().traits()?.website ) { return } const reveal = details.company await analytics.group(null, { website: reveal.domain, intentSource: '6sense', name: reveal.name, country: reveal.country, industry: reveal.industry, number_of_employees: reveal.employee_range, annual_revenue: reveal.revenue_range, }) }