##### SUMMARY
`esc_period` is mandatory even with `state: absent` - should be optional in that case.

##### ISSUE TYPE
- Bug Report

##### COMPONENT NAME
zabbix_action

##### ANSIBLE VERSION
latest

##### CONFIGURATION
Not relevant.

##### OS / ENVIRONMENT
Not relevant.

##### STEPS TO REPRODUCE
```yaml
  - name: "Report problems to Zabbix administrators"
    event_source: 'trigger'
    state: absent
```

##### EXPECTED RESULTS
Action, if exists, is removed.

##### ACTUAL RESULTS
```paste below
"msg": "missing required arguments: esc_period"
```
"""
    Restructures the user defined acknowledge operations data to fit the Zabbix API requirements
    """
    def _construct_operationtype(self, operation):
        """Construct operation type.
        Args:
            operation: operation to construct type
        Returns:
            str: constructed operation type
        """
        try:
            return to_numeric_value([
                "send_message",
                "remote_command",
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                "notify_all_involved"], operation['type']
            )
        except Exception as e:
            self._module.fail_json(msg="Unsupported value '%s' for acknowledge operation type." % operation['type'])
    def construct_the_data(self, operations):