RestService :: onRestServiceBuildDescription: Bitrix method

      
<?php 
//  Bitrix\Bizproc\RestService :: onRestServiceBuildDescription()
//  /dist/bitrix/modules/bizproc/lib/restservice.php:39

    
public static function onRestServiceBuildDescription()
    {
        
$map = array();
        if (\
CBPRuntime::isFeatureEnabled())
        {
            
$map = array(

                
//activity
                
'bizproc.activity.add' => array(__CLASS__'addActivity'),
                
'bizproc.activity.update' => array(__CLASS__'updateActivity'),
                
'bizproc.activity.delete' => array(__CLASS__'deleteActivity'),
                
'bizproc.activity.log' => array(__CLASS__'writeActivityLog'),
                
'bizproc.activity.list' => array(__CLASS__'getActivityList'),

                
//event
                
'bizproc.event.send' => array(__CLASS__'sendEvent'),

                
//task
                
'bizproc.task.list' =>  array(__CLASS__'getTaskList'),
                
'bizproc.task.complete' =>  array(__CLASS__'completeTask'),

                
//workflow
                
'bizproc.workflow.terminate' => array(__CLASS__'terminateWorkflow'),
                
'bizproc.workflow.start' => array(__CLASS__'startWorkflow'),
                
//workflow.instance
                
'bizproc.workflow.instance.list' => array(__CLASS__'getWorkflowInstances'),
                
//workflow.template
                
'bizproc.workflow.template.list' => array(__CLASS__'getWorkflowTemplates'),
                
'bizproc.workflow.template.add' => array(__CLASS__'addWorkflowTemplate'),
                
'bizproc.workflow.template.update' => array(__CLASS__'updateWorkflowTemplate'),
                
'bizproc.workflow.template.delete' => array(__CLASS__'deleteWorkflowTemplate'),

                
//aliases
                
'bizproc.workflow.instances' => array(__CLASS__'getWorkflowInstances'),
            );
        }

        if (\
CBPRuntime::isFeatureEnabled()
            || \
CBPRuntime::isFeatureEnabled('crm_automation_lead')
            || \
CBPRuntime::isFeatureEnabled('crm_automation_deal')
        )
        {
            
$map array_merge($map, array(

                
//robot
                
'bizproc.robot.add' => array(__CLASS__'addRobot'),
                
'bizproc.robot.update' => array(__CLASS__'updateRobot'),
                
'bizproc.robot.delete' => array(__CLASS__'deleteRobot'),
                
'bizproc.robot.list' => array(__CLASS__'getRobotList'),

                
//provider
                
'bizproc.provider.add' => array(__CLASS__'addProvider'),
                
'bizproc.provider.delete' => array(__CLASS__'deleteProvider'),
                
'bizproc.provider.list' => array(__CLASS__'getProviderList'),
            ));
        }

        return 
$map ? array(static::SCOPE => $map) : false;
    }