View a markdown version of this page

Unregister a clear contact interceptor in Connect Customer agent workspace - Agent Workspace

Unregister a clear contact interceptor in Connect Customer agent workspace

Unregisters an interceptor that you registered with addClearContactInterceptor. Pass the same interceptor reference and the same contactId that you used at registration.

Signature

removeClearContactInterceptor( interceptor: Interceptor<ContactInterceptorContext>, contactId?: string ): Promise<void>

Usage

await service.removeClearContactInterceptor(myInterceptor);

Input

The following table describes the input parameters.

ParameterTypeDescription
interceptor RequiredInterceptor<ContactInterceptorContext>The same function reference that you passed to addClearContactInterceptor.
contactId OptionalstringThe contact ID that the interceptor was scoped to. Pass the same value that you used at registration. If you omit this value, the framework removes the interceptor that applies to all contacts.

Output

Promise<void>