<?php
$config->workflowhook->operatorList['equal']    = '=';
$config->workflowhook->operatorList['notequal'] = '!=';
$config->workflowhook->operatorList['gt']       = '>';
$config->workflowhook->operatorList['ge']       = '>=';
$config->workflowhook->operatorList['lt']       = '<';
$config->workflowhook->operatorList['le']       = '<=';

$config->workflowhook->tables['order']     = TABLE_ORDER;
$config->workflowhook->tables['contract']  = TABLE_CONTRACT;
$config->workflowhook->tables['customer']  = TABLE_CUSTOMER;
$config->workflowhook->tables['provider']  = TABLE_CUSTOMER;
$config->workflowhook->tables['contact']   = TABLE_CONTACT;
$config->workflowhook->tables['user']      = TABLE_USER;
$config->workflowhook->tables['product']   = TABLE_PRODUCT;
$config->workflowhook->tables['project']   = TABLE_PROJECT;
$config->workflowhook->tables['task']      = TABLE_TASK;
$config->workflowhook->tables['todo']      = TABLE_TODO;
$config->workflowhook->tables['article']   = TABLE_ARTICLE;
$config->workflowhook->tables['doc']       = TABLE_DOC;
$config->workflowhook->tables['doclib']    = TABLE_DOCLIB;
$config->workflowhook->tables['refund']    = TABLE_REFUND;
$config->workflowhook->tables['announce']  = TABLE_ARTICLE;
$config->workflowhook->tables['holiday']   = TABLE_HOLIDAY;
$config->workflowhook->tables['attend']    = TABLE_ATTEND;
$config->workflowhook->tables['leave']     = TABLE_LEAVE;
$config->workflowhook->tables['lieu']      = TABLE_LIEU;
$config->workflowhook->tables['overtime']  = TABLE_OVERTIME;
$config->workflowhook->tables['trip']      = TABLE_TRIP;
$config->workflowhook->tables['depositor'] = TABLE_DEPOSITOR;
$config->workflowhook->tables['balance']   = TABLE_BALANCE;
$config->workflowhook->tables['trade']     = TABLE_TRADE;
$config->workflowhook->tables['payable']   = TABLE_FUND;
$config->workflowhook->tables['thread']    = TABLE_THREAD;
$config->workflowhook->tables['reply']     = TABLE_REPLY;

$config->workflowhook->apps['order']     = 'crm'; 
$config->workflowhook->apps['contract']  = 'crm'; 
$config->workflowhook->apps['customer']  = 'crm'; 
$config->workflowhook->apps['provider']  = 'cash'; 
$config->workflowhook->apps['contact']   = 'crm'; 
$config->workflowhook->apps['product']   = 'crm';
$config->workflowhook->apps['user']      = 'sys'; 
$config->workflowhook->apps['project']   = 'oa';
$config->workflowhook->apps['task']      = 'sys';
$config->workflowhook->apps['todo']      = 'sys';
$config->workflowhook->apps['article']   = 'sys';
$config->workflowhook->apps['payable']   = 'sys';
$config->workflowhook->apps['doc']       = 'oa';
$config->workflowhook->apps['doclib']    = 'oa';
$config->workflowhook->apps['refund']    = 'oa';
$config->workflowhook->apps['announce']  = 'oa';
$config->workflowhook->apps['holiday']   = 'oa';
$config->workflowhook->apps['attend']    = 'oa';
$config->workflowhook->apps['leave']     = 'oa';
$config->workflowhook->apps['lieu']      = 'oa';
$config->workflowhook->apps['overtime']  = 'oa';
$config->workflowhook->apps['trip']      = 'oa';
$config->workflowhook->apps['depositor'] = 'cash';
$config->workflowhook->apps['balance']   = 'cash';
$config->workflowhook->apps['trade']     = 'cash';
$config->workflowhook->apps['thread']    = 'team';
$config->workflowhook->apps['reply']     = 'team';
