Methods
-
<static> getIncidentTopicCategories( language ) → {Array.<CategoryTreeItem>}
-
Description
Retrieve the Incident definition categories
Parameters
Name Type Description languageLanguageType Returns
-
<static> _getTopicsForServices( services )
-
Description
Translate a list of services into a list of mapped incident topics
Parameters
Name Type Description servicesArray.<sys_id> -
<static> getProductQuestions( topicSysId, userType, userConfiguration ) → {Array.<FormField>}
-
Description
Get a list fof questions to ask for Sold product Case
Parameters
Name Type Description topicSysIdsys_id userTypeUserType userConfigurationUserConfiguration Returns
-
<static> getIncidentTopicQuestions( topicSysId, userType, userConfiguration ) → {Array.<FormField>}
-
Description
Get all the questions that are defined for a topic (This produced form output and needs to be refactored in a seperate isolated behaviour)
Parameters
Name Type Description topicSysIdsys_id userTypeUserType userConfigurationUserConfiguration Returns
-
<static> _isChoiceSet( type ) → {boolean}
-
Description
Checks if we have value in u_indef_choice_set
Parameters
Name Type Description typestring Returns
-
<static> getChoiceList( sysId ) → {Array.<Choice>}
-
<static> _convertObjectToChoiceArray( obj ) → {Array.<Choice>}
-
Description
Converts an object to choice array/list
Parameters
Name Type Description objObject Returns
-
<static> getTopicRecordById( topicSysId ) → {Object}
-
<static> getTopic( topicSysId ) → {IncidentTopic}
-
Description
Retrieve a topic data object from disk
Parameters
Name Type Description topicSysIdsys_id Returns
-
<static> getDefaultCaseFields( user ) → {Array.<FormField>}
-
Description
Get the default field applicable for any Case form order 1000 and 1001 are description and attachments, which normally always go at the bottom
Parameters
Name Type Description userUserConfiguration Returns
-
<static> _createFormField( field ) → {FormField}
-
Description
Helper function to create a FormField object with all values default exvcept the provided ones
Parameters
Name Type Description fieldFormField Returns
-
<static> getTopicForProduct( productId, language ) → {sys_id}
-
Description
Retrieve a topic identifier based on the users language and the provided productId, when no default mapping or no topic returns undefined
Parameters
Name Type Description productIdsys_id languagestring Returns
-
<static> createServiceTopicMapping() → {Object}
-
Description
Create a configuration object to map default topics for any business service that can be mapped to a Sold Product
Returns
-
<static> saveIncidentRelation( record ) → {boolean}
-
Description
Write a record to bind knowledge, topic and incident
Parameters
Name Type Description recordObject Returns