UNPKG

genesys-workspace-client-js

Version:
102 lines (84 loc) 3.36 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.VoicecallsidsenddtmfData = factory(root.WorkspaceApi.ApiClient, root.WorkspaceApi.Kvpair); } }(this, function(ApiClient, Kvpair) { 'use strict'; /** * The VoicecallsidsenddtmfData model module. * @module model/VoicecallsidsenddtmfData * @version 9.0.000.97.4639 */ /** * Constructs a new <code>VoicecallsidsenddtmfData</code>. * @alias module:model/VoicecallsidsenddtmfData * @class * @param dtmfDigits {String} The DTMF digits to send to the call. */ var exports = function(dtmfDigits) { var _this = this; _this['dtmfDigits'] = dtmfDigits; }; /** * Constructs a <code>VoicecallsidsenddtmfData</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/VoicecallsidsenddtmfData} obj Optional instance to populate. * @return {module:model/VoicecallsidsenddtmfData} The populated <code>VoicecallsidsenddtmfData</code> instance. */ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); if (data.hasOwnProperty('dtmfDigits')) { obj['dtmfDigits'] = ApiClient.convertToType(data['dtmfDigits'], '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 DTMF digits to send to the call. * @member {String} dtmfDigits */ exports.prototype['dtmfDigits'] = 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; return exports; }));