/
var
/
www
/
html
/
sugardemo
/
modules
/
WebLogicHooks
/
Upload File
HOME
<?php /* * Your installation or use of this SugarCRM file is subject to the applicable * terms available at * http://support.sugarcrm.com/Resources/Master_Subscription_Agreements/. * If you do not agree to all of the applicable terms or do not have the * authority to bind the entity as an authorized representative, then do not * install or use this SugarCRM file. * * Copyright (C) SugarCRM Inc. All rights reserved. */ $dictionary['WebLogicHook'] = [ 'table' => 'weblogichooks', 'favorites' => false, 'comment' => 'Web Logic Hooks', 'audited' => false, 'activity_enabled' => false, 'unified_search' => false, 'unified_search_default_enabled' => false, 'full_text_search' => false, 'optimistic_locking' => true, 'fields' => [ 'name' => [ 'name' => 'name', 'vname' => 'LBL_NAME', 'type' => 'name', 'dbType' => 'varchar', 'len' => '255', 'comment' => 'Hook name', 'required' => true, ], 'webhook_target_module' => [ 'name' => 'webhook_target_module', 'vname' => 'LBL_TARGET_NAME', 'type' => 'enum', 'options' => 'moduleList', 'required' => true, ], 'request_method' => [ 'name' => 'request_method', 'vname' => 'LBL_REQUEST_METHOD', 'type' => 'enum', 'options' => 'web_hook_request_method_list', 'default' => 'POST', 'required' => true, ], 'url' => [ 'name' => 'url', 'vname' => 'LBL_URL', 'type' => 'varchar', 'len' => '255', 'comment' => 'URL of website for the company', 'required' => true, ], 'trigger_event' => [ 'name' => 'trigger_event', 'vname' => 'LBL_TRIGGER_EVENT', 'type' => 'enum', 'options' => 'webLogicHookList', 'required' => true, ], ], 'acls' => [ 'SugarACLAdminOnly' => [ 'adminFor' => 'Users', 'allowUserRead' => true, ], ], // @TODO Fix the Default and Basic SugarObject templates so that Basic // implements Default. This would allow the application of various // implementations on Basic without forcing Default to have those so that // situations like this - implementing taggable - doesn't have to apply to // EVERYTHING. Since there is no distinction between basic and default for // sugar objects templates yet, we need to forecefully remove the taggable // implementation fields. Once there is a separation of default and basic // templates we can safely remove these as this module will implement // default instead of basic. 'ignore_templates' => [ 'taggable', 'commentlog', ], ]; VardefManager::createVardef( 'WebLogicHooks', 'WebLogicHook', [ 'default', 'basic', ] );