<?php
$config->message->objectTypes['review']    = array('toaudit');
$config->message->objectTypes['waterfall'] = array('submit', 'cancel', 'review', 'revert', 'forward');

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

$config->message->available['mail']['waterfall']     = $config->message->objectTypes['waterfall'];
$config->message->available['message']['waterfall']  = $config->message->objectTypes['waterfall'];
$config->message->available['webhook']['waterfall']  = $config->message->objectTypes['waterfall'];
$config->message->available['sms']['waterfall']      = $config->message->objectTypes['waterfall'];
if(isset($config->message->available['xuanxuan'])) $config->message->available['xuanxuan']['waterfall'] = $config->message->objectTypes['waterfall'];

$config->message->objectTypes['meeting'] = array('opened', 'edited', 'minuted');

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

$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'];
$config->message->setting['sms']['setting']      = $config->message->available['sms'];

if(isset($config->message->setting['xuanxuan'])) $config->message->setting['xuanxuan']['setting'] = $config->message->available['xuanxuan'];
