<?php
$config->message->objectTypes = array();
$config->message->objectTypes['story']   = array('opened', 'edited', 'commented', 'changed', 'reviewed', 'closed', 'activated', 'assigned');
$config->message->objectTypes['project'] = array('opened', 'edited', 'started', 'delayed', 'suspended', 'closed', 'activated', 'undeleted');
$config->message->objectTypes['task']    = array('opened', 'edited', 'assigned', 'finished', 'deleted');
$config->message->objectTypes['todo']    = array('opened', 'edited');
$config->message->objectTypes['doc']     = array('created', 'edited');

$config->message->available['mail']['story'] = $config->message->objectTypes['story'];
$config->message->available['mail']['task']  = $config->message->objectTypes['task'];
$config->message->available['mail']['doc']   = $config->message->objectTypes['doc'];

$config->message->available['webhook']  = $config->message->objectTypes;

$config->message->available['message']['story'] = $config->message->objectTypes['story'];
$config->message->available['message']['task']  = $config->message->objectTypes['task'];
$config->message->available['message']['todo']  = $config->message->objectTypes['todo'];
$config->message->available['message']['doc']   = $config->message->objectTypes['doc'];

$config->message->typeLink = array();
$config->message->typeLink['mail']    = 'mail|index';
$config->message->typeLink['webhook'] = 'webhook|browse';

$config->message->setting = array();
$config->message->setting['message']['setting'] = $config->message->available['message'];
$config->message->setting['webhook']['setting'] = $config->message->available['webhook'];
$config->message->setting['mail']['setting']    = $config->message->available['mail'];
