LiveChatSensitiveDataRule
Represents a rule for masking or deleting data of a specified pattern. Written as a regular expression (regex).
Use this object to mask or delete data of specified patterns, such as credit card, social security, phone and account numbers, or even profanity.
This type extends Metadata and inherits its fields.
LiveChatSensitiveDataRule components have the suffix .liveChatSensitiveDataRule and are stored in the liveChatSensitiveDataRule folder.
Introduced in API version 35.0.
- Type: SensitiveDataActionType (enumeration of type string)
- Required: Yes
- Description: Required. The action to take on the text when the sensitive data rule is triggered. Possbile values are:
- Possible values:
- Remove
- Replace
- Type: string
- Required: No
- Description: The description of the sensitive data rule—for example, “Block social security numbers.”
-
Type: int
-
Required: Yes
-
Description: Required. Determines the roles on which the rule is enforced. The value is determined using bitwise OR operation. There are seven possible values:
- Rule enforced on Agent
- Rule enforced on Visitor
- Rule enforced on Agent and Visitor
- Rule enforced on Supervisor
- Rule enforced on Agent and Supervisor
- Rule enforced on Visitor and Supervisor
- Rule enforced on Agent, Visitor, and Supervisor
- Type: boolean
- Required: Yes
- Description: Required. Specifies whether a sensitive data rule is active (
true) or not (false). Default value (if none is provided) isfalse.
- Type: string
- Required: Yes
- Description: Required. The pattern of text blocked by the rule. Written as a JavaScript regular expression (regex).
- Type: int
- Required: Yes
- Type: SensitiveDataRuleProcessing (enumeration of type string)
- Required: Yes
- Type: string
- Required: No
- Description: The string of characters that replaces the blocked text (if
ActionTypeReplaceis selected).
- Type: SensitiveDataRuleVersion (enumeration of type string)
- Required: Yes
The following is an example of a LiveChatSensitiveDataRule component.
The following is an example package.xml that references the previous definition.
This metadata type supports the wildcard character * (asterisk) in the package.xml manifest file. For information about using the manifest file, see Deploying and Retrieving Metadata with the Zip File.