UNPKG

genesys-workspace-client-js

Version:
127 lines (106 loc) 3.88 kB
/** * Workspace API * Agent API * * OpenAPI spec version: 9.0.000.97.4639 * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * * Swagger Codegen version: 2.4.5 * * Do not edit the class manually. * */ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. define(['ApiClient', 'model/Kvpair'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. module.exports = factory(require('../ApiClient'), require('./Kvpair')); } else { // Browser globals (root is window) if (!root.WorkspaceApi) { root.WorkspaceApi = {}; } root.WorkspaceApi.VoicereadyData = factory(root.WorkspaceApi.ApiClient, root.WorkspaceApi.Kvpair); } }(this, function(ApiClient, Kvpair) { 'use strict'; /** * The VoicereadyData model module. * @module model/VoicereadyData * @version 9.0.000.97.4639 */ /** * Constructs a new <code>VoicereadyData</code>. * @alias module:model/VoicereadyData * @class */ var exports = function() { var _this = this; }; /** * Constructs a <code>VoicereadyData</code> from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. * @param {module:model/VoicereadyData} obj Optional instance to populate. * @return {module:model/VoicereadyData} The populated <code>VoicereadyData</code> instance. */ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); if (data.hasOwnProperty('agentWorkMode')) { obj['agentWorkMode'] = ApiClient.convertToType(data['agentWorkMode'], 'String'); } if (data.hasOwnProperty('reasonCode')) { obj['reasonCode'] = ApiClient.convertToType(data['reasonCode'], 'String'); } if (data.hasOwnProperty('reasons')) { obj['reasons'] = ApiClient.convertToType(data['reasons'], [Kvpair]); } if (data.hasOwnProperty('extensions')) { obj['extensions'] = ApiClient.convertToType(data['extensions'], [Kvpair]); } } return obj; } /** * The agent workmode. * @member {module:model/VoicereadyData.AgentWorkModeEnum} agentWorkMode */ exports.prototype['agentWorkMode'] = undefined; /** * The reason code representing why the agent is ready. These codes are a business-defined set of categories, such as \"Lunch\" or \"Training\". * @member {String} reasonCode */ exports.prototype['reasonCode'] = undefined; /** * Information on causes for, and results of, actions taken by the user of the current DN. For details about reasons, refer to the [*Genesys Events and Models Reference Manual*](https://docs.genesys.com/Documentation/System/Current/GenEM/Reasons). * @member {Array.<module:model/Kvpair>} reasons */ exports.prototype['reasons'] = undefined; /** * Media device/hardware reason codes and similar information. For details about extensions, refer to the [*Genesys Events and Models Reference Manual*](https://docs.genesys.com/Documentation/System/Current/GenEM/Extensions). * @member {Array.<module:model/Kvpair>} extensions */ exports.prototype['extensions'] = undefined; /** * Allowed values for the <code>agentWorkMode</code> property. * @enum {String} * @readonly */ exports.AgentWorkModeEnum = { /** * value: "AutoIn" * @const */ "AutoIn": "AutoIn", /** * value: "ManualIn" * @const */ "ManualIn": "ManualIn" }; return exports; }));