refactor: event folder

This commit is contained in:
Davidson Gomes
2024-08-20 15:36:55 -03:00
parent 7b79591e42
commit df77aadd04
6 changed files with 39 additions and 36 deletions

View File

@@ -1,3 +1,5 @@
import { Constructor } from '@api/dto/integration.dto';
export class ChatwootDto {
enabled?: boolean;
accountId?: string;
@@ -18,3 +20,21 @@ export class ChatwootDto {
logo?: string;
ignoreJids?: string[];
}
export function ChatwootInstanceMixin<TBase extends Constructor>(Base: TBase) {
return class extends Base {
chatwootAccountId?: string;
chatwootToken?: string;
chatwootUrl?: string;
chatwootSignMsg?: boolean;
chatwootReopenConversation?: boolean;
chatwootConversationPending?: boolean;
chatwootMergeBrazilContacts?: boolean;
chatwootImportContacts?: boolean;
chatwootImportMessages?: boolean;
chatwootDaysLimitImportMessages?: number;
chatwootNameInbox?: string;
chatwootOrganization?: string;
chatwootLogo?: string;
};
}