;
findByNameRegexWithExceptionsAndConditions(
searchTerm: string,
@@ -51,20 +47,8 @@ export interface ILivechatVisitorsModel extends IBaseModel {
findOneGuestByEmailAddress(emailAddress: string): Promise;
- findOneGuestByEmailAddressAndSource(
- emailAddress: string,
- sourceFilter: Filter,
- options?: FindOptions,
- ): Promise;
-
findOneVisitorByPhone(phone: string): Promise;
- findOneVisitorByPhoneAndSource(
- phone: string,
- sourceFilter: Filter,
- options?: FindOptions,
- ): Promise;
-
removeDepartmentById(_id: string): Promise;
getNextVisitorUsername(): Promise;
@@ -83,18 +67,9 @@ export interface ILivechatVisitorsModel extends IBaseModel {
findOneEnabledById(_id: string, options?: FindOptions): Promise;
- findOneEnabledByIdAndSource(
- { _id, sourceFilter }: { _id: string; sourceFilter: Filter },
- options?: FindOptions,
- ): Promise