genesys-workspace-client-js
Version:
Workspace application API used by Workspace Web Edition
125 lines (107 loc) • 2.92 kB
JavaScript
/**
* 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'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
module.exports = factory(require('../ApiClient'));
} else {
// Browser globals (root is window)
if (!root.WorkspaceApi) {
root.WorkspaceApi = {};
}
root.WorkspaceApi.VoiceloginData = factory(root.WorkspaceApi.ApiClient);
}
}(this, function(ApiClient) {
'use strict';
/**
* The VoiceloginData model module.
* @module model/VoiceloginData
* @version 9.0.000.97.4639
*/
/**
* Constructs a new <code>VoiceloginData</code>.
* @alias module:model/VoiceloginData
* @class
*/
var exports = function() {
var _this = this;
};
/**
* Constructs a <code>VoiceloginData</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/VoiceloginData} obj Optional instance to populate.
* @return {module:model/VoiceloginData} The populated <code>VoiceloginData</code> instance.
*/
exports.constructFromObject = function(data, obj) {
if (data) {
obj = obj || new exports();
if (data.hasOwnProperty('agentWorkMode')) {
obj['agentWorkMode'] = ApiClient.convertToType(data['agentWorkMode'], 'String');
}
}
return obj;
}
/**
* The agent workmode.
* @member {module:model/VoiceloginData.AgentWorkModeEnum} agentWorkMode
*/
exports.prototype['agentWorkMode'] = undefined;
/**
* Allowed values for the <code>agentWorkMode</code> property.
* @enum {String}
* @readonly
*/
exports.AgentWorkModeEnum = {
/**
* value: "AutoIn"
* @const
*/
"AutoIn": "AutoIn",
/**
* value: "ManualIn"
* @const
*/
"ManualIn": "ManualIn",
/**
* value: "AfterCallWork"
* @const
*/
"AfterCallWork": "AfterCallWork",
/**
* value: "AuxWork"
* @const
*/
"AuxWork": "AuxWork",
/**
* value: "LegalGuard"
* @const
*/
"LegalGuard": "LegalGuard",
/**
* value: "NoCallDisconnect"
* @const
*/
"NoCallDisconnect": "NoCallDisconnect",
/**
* value: "WalkAway"
* @const
*/
"WalkAway": "WalkAway" };
return exports;
}));