UNPKG

genesys-workspace-client-js

Version:
91 lines (73 loc) 2.41 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/CallingList'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. module.exports = factory(require('../ApiClient'), require('./CallingList')); } else { // Browser globals (root is window) if (!root.WorkspaceApi) { root.WorkspaceApi = {}; } root.WorkspaceApi.CampaignData = factory(root.WorkspaceApi.ApiClient, root.WorkspaceApi.CallingList); } }(this, function(ApiClient, CallingList) { 'use strict'; /** * The CampaignData model module. * @module model/CampaignData * @version 9.0.000.97.4639 */ /** * Constructs a new <code>CampaignData</code>. * @alias module:model/CampaignData * @class */ var exports = function() { var _this = this; }; /** * Constructs a <code>CampaignData</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/CampaignData} obj Optional instance to populate. * @return {module:model/CampaignData} The populated <code>CampaignData</code> instance. */ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); if (data.hasOwnProperty('name')) { obj['name'] = ApiClient.convertToType(data['name'], 'String'); } if (data.hasOwnProperty('callingLists')) { obj['callingLists'] = ApiClient.convertToType(data['callingLists'], [CallingList]); } } return obj; } /** * name of the campaign * @member {String} name */ exports.prototype['name'] = undefined; /** * @member {Array.<module:model/CallingList>} callingLists */ exports.prototype['callingLists'] = undefined; return exports; }));