Name

global.AgentScheduleExtPointUtil

Description

Utility script for agent schedule related extension points.

Script

var AgentScheduleExtPointUtil = Class.create();
AgentScheduleExtPointUtil.prototype = {
  initialize: function() {
  },
  
  loadExtension: function(epName) {
  	if (typeof GlideScriptedExtensionPoint == "undefined") {
  		gs.info(gs.getMessage("Scripted extension points are not enabled...unable to load extenson {0}.", epName));
  		return false;
  	}
  	try {
  		var ep = new GlideScriptedExtensionPoint().getExtensions(epName);
  		if (ep.length > 0) {
  			return ep[0];
  		}
  	} catch (ex) {
  		gs.error("global.AgentScheduleExtPointUtil: Error fetching extension point - "+ex);
  	}

  	return false;
  },

  type: 'AgentScheduleExtPointUtil'
};

Sys ID

521b5b1f239023002dd6cb0a56bf6574

Offical Documentation

Official Docs: