import { Injectable } from '@nestjs/common'; import { BaseUpdateStatusManager } from 'src/core/modules/domain/usecase/managers/base-update-status.manager'; import { EventTopics, validateRelations, } from 'src/core/strings/constants/interface.constants'; import { Queue } from '../entities/queue.entity'; import { QueueModel } from '../../data/models/queue.model'; @Injectable() export class CallQueueManager extends BaseUpdateStatusManager { getResult(): string { return `Success call Queue ${this.result.code}`; } async validateProcess(): Promise { return; } async beforeProcess(): Promise { this.data.call_time = new Date().getTime(); return; } async afterProcess(): Promise { return; } get validateRelations(): validateRelations[] { return []; } get entityTarget(): any { return QueueModel; } get eventTopics(): EventTopics[] { return []; } }