49 $this->numero = 68305;
52 $this->rights_class =
'webhook';
56 $this->family =
"interface";
59 $this->module_position =
'90';
64 $this->
name = preg_replace(
'/^mod/i',
'', get_class($this));
69 $this->descriptionlong =
"Interface to catch dolibarr triggers and send data of the event to an external URL";
72 $this->version =
'dolibarr';
77 $this->const_name =
'MAIN_MODULE_'.strtoupper($this->
name);
83 $this->picto =
'webhook';
86 $this->module_parts = array(
122 'moduleforexternal' => 0,
127 $this->dirs = array(
"/webhook/temp");
130 $this->config_page_url = array(
"webhook.php");
134 $this->hidden =
false;
136 $this->depends = array();
137 $this->requiredby = array();
138 $this->conflictwith = array();
141 $this->langfiles = array();
144 $this->phpmin = array(7, 0);
145 $this->need_dolibarr_version = array(11, -3);
148 $this->warnings_activation = array();
149 $this->warnings_activation_ext = array();
158 $this->
const = array();
166 if (!isset(
$conf->webhook) || !isset(
$conf->webhook->enabled)) {
168 $conf->webhook->enabled = 0;
172 $this->tabs = array();
200 $this->dictionaries = array();
227 $this->boxes = array(
238 $this->cronjobs = array(
260 $this->rights = array();
264 $this->rights[$r][0] = $this->numero . sprintf(
"%02d", $r + 1);
265 $this->rights[$r][1] =
'Read Webhooks';
266 $this->rights[$r][4] =
'webhook_target';
267 $this->rights[$r][5] =
'read';
269 $this->rights[$r][0] = $this->numero . sprintf(
"%02d", $r + 1);
270 $this->rights[$r][1] =
'Create/Update Webhooks';
271 $this->rights[$r][4] =
'webhook_target';
272 $this->rights[$r][5] =
'write';
274 $this->rights[$r][0] = $this->numero . sprintf(
"%02d", $r + 1);
275 $this->rights[$r][1] =
'Delete Webhooks';
276 $this->rights[$r][4] =
'webhook_target';
277 $this->rights[$r][5] =
'delete';
282 $this->menu = array();