import { Injectable } from '@nestjs/common' ; import { IEvent , IEventContext , IEventMap } from '../interfaces' ; import { TrackingService } from '../tracking.service' ; @ Injectable ( ) export abstract class TrackingHandler { constructor ( private readonly tracking ) { } protected get EventsMap ( ) : IEventMap { return this . tracking . EventsMap ; } protected async log ( event , context ) { this . tracking . log ( event , context ) ; } }