/mcpRequired Description Type Name Optional An object containing callback functions which are invoked when the callback scenario is triggered. To find the list of callback scenarios, see RestCollectionBase Common Parameters, on page 452. Object handlers Returns {finesse.restservices.Queues} The Queues collection object. getReasonCode() Retrieves the reason code object corresponding to the user's current state. Returns {Object} The reasonCode for the pending state of the user. The contents include the following: • uri—The URI for the reasonCode object. • id—The unique ID for the reasonCode. • category—The category and it can be either NOT_READY or LOGOUT. • code—The numeric reasonCode value. • label—The label for the reasonCode. • forAll—Boolean flag that denotes the global status for the reasonCode. • systemCode—Boolean flag which denotes whether the reasonCode is system-generated or customized. getReasonCodeById(handlers, reasonCodeId) Retrieves the reason code object that is associated with the reasonCodeId. There is no return value. Use the success handler to process a valid return. Note Parameters Required Description Type Name Yes An object containing the handlers for the request. For more information on handlers, see Request Handlers, on page 447. Object handlers Yes Unique identifier for the reasonCode to lookup. String reasonCodeId getReasonCodeLabel() Retrieves the user's reasonCode label for both Not Ready and Logout reasonCodes. Returns Cisco Finesse Web Services Developer and JavaScript Guide, Release 12.5(1) 465 Cisco Finesse JavaScript APIs User
