/mcpto the NOT_READY state, the state is not changed until the call ends. Pending state change occurs when the agent is in the following states: • TALKING • HOLD • RESERVED • OUTBOUND • PREVIEW Returns {Boolean} True if there is a pending state change. isReasonCodeReserved() Checks whether the reasonCode of the user is a system-generated reasonCode. Returns {Boolean} True if the reasonCode for the state of the user is a system-generated reasonCode. isWrapUp() Checks whether the user's current state is WORK or WORK_READY. This is used to ensure that a pending state is not cleared when moving into wrap-up (work) mode. We do not add this as a pending state, as the changes (while in wrap-up) occur immediately. Returns {Boolean} True if user is in wrap-up mode. isWrapUpRequired() Checks whether the user is required to go into wrap-up mode. Returns {Boolean} True if the user is required to go in to wrap-up mode. login(extension, handlers) Performs an agent login for the user and associates the agent with the specified extension. Parameters Required Description Type Name Yes The extension to associate with the user. String extension Yes An object containing the handlers for the request. For more information on handlers, see Request Handlers, on page 447. Object handlers Returns Cisco Finesse Web Services Developer and JavaScript Guide, Release 12.5(1) 469 Cisco Finesse JavaScript APIs User