import { InternalAccountService } from "../../abstractions/account/account.service"; import { LogService } from "../../abstractions/log.service"; import { MessagingService } from "../../abstractions/messaging.service"; export class AccountServiceImplementation implements InternalAccountService { constructor(private messagingService: MessagingService, private logService: LogService) {} async delete(): Promise { try { this.messagingService.send("logout"); } catch (e) { this.logService.error(e); throw e; } } }