Call center data extension

For the convenience of working with the parameters of calls to the call center, the system allows you to operate with the following entities

A pattern is a rule in the form of a regular expression that allows you to identify call parameters (attributes), such as call time, operator, subscriber. The pattern is set in the form of certain rules for extracting metadata from the file name

A segment is a specific set of call conditions, a combination of attributes

An agent is an employee of the call center with his attributes, making or receiving calls.

A customer is a call center subscriber who makes or receives calls;

Below is an example of a regular expression for creating a pattern:

^(?P<agent_id>\+?[=\w\*]+)\s(call)-(?P<customer_id>\w+)-(?P<date>\d{2}\.\d{2}\.\d{4})[\w]*(?P<file_extension>\.\w+)?$

This regular expression allows you to extract the unique identifier of the agent, customer and call time from the file name