feat: start adding auto reply

This commit is contained in:
canove
2021-01-09 18:02:54 -03:00
parent 3c6d0660d1
commit cca253cd0a
17 changed files with 272 additions and 94 deletions

View File

@@ -47,6 +47,9 @@ class Whatsapp extends Model<Whatsapp> {
@Column
retries: number;
@Column(DataType.TEXT)
greetingMessage: string;
@Default(false)
@AllowNull
@Column
@@ -63,6 +66,9 @@ class Whatsapp extends Model<Whatsapp> {
@BelongsToMany(() => Queue, () => WhatsappQueue)
queues: Array<Queue & { WhatsappQueue: WhatsappQueue }>;
@HasMany(() => WhatsappQueue)
whatsappQueues: WhatsappQueue[];
}
export default Whatsapp;