HEX
Server: nginx/1.18.0
System: Linux test-ipsremont 5.4.0-214-generic #234-Ubuntu SMP Fri Mar 14 23:50:27 UTC 2025 x86_64
User: ips (1000)
PHP: 8.0.30
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/fintechfuel/node_modules/pipedrive/dist/model/CallLogObject.js
"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
/**
 * Pipedrive API v1
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.0.0
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 *
 */
/**
 * The CallLogObject model module.
 * @module model/CallLogObject
 * @version 1.0.0
 */
var CallLogObject = /*#__PURE__*/function () {
  /**
   * Constructs a new <code>CallLogObject</code>.
   * @alias module:model/CallLogObject
   * @param outcome {module:model/CallLogObject.OutcomeEnum} Describes the outcome of the call
   * @param toPhoneNumber {String} The number called
   * @param startTime {Date} The date and time of the start of the call in UTC. Format: YYYY-MM-DD HH:MM:SS.
   * @param endTime {Date} The date and time of the end of the call in UTC. Format: YYYY-MM-DD HH:MM:SS.
   */
  function CallLogObject(outcome, toPhoneNumber, startTime, endTime) {
    (0, _classCallCheck2["default"])(this, CallLogObject);
    CallLogObject.initialize(this, outcome, toPhoneNumber, startTime, endTime);
  }

  /**
   * Initializes the fields of this object.
   * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
   * Only for internal use.
   */
  (0, _createClass2["default"])(CallLogObject, null, [{
    key: "initialize",
    value: function initialize(obj, outcome, toPhoneNumber, startTime, endTime) {
      obj['outcome'] = outcome;
      obj['to_phone_number'] = toPhoneNumber;
      obj['start_time'] = startTime;
      obj['end_time'] = endTime;
    }

    /**
     * Constructs a <code>CallLogObject</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/CallLogObject} obj Optional instance to populate.
     * @return {module:model/CallLogObject} The populated <code>CallLogObject</code> instance.
     */
  }, {
    key: "constructFromObject",
    value: function constructFromObject(data, obj) {
      if (data) {
        obj = obj || new CallLogObject();
        if (data.hasOwnProperty('user_id')) {
          obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'Number');
          delete data['user_id'];
        }
        if (data.hasOwnProperty('activity_id')) {
          obj['activity_id'] = _ApiClient["default"].convertToType(data['activity_id'], 'Number');
          delete data['activity_id'];
        }
        if (data.hasOwnProperty('subject')) {
          obj['subject'] = _ApiClient["default"].convertToType(data['subject'], 'String');
          delete data['subject'];
        }
        if (data.hasOwnProperty('duration')) {
          obj['duration'] = _ApiClient["default"].convertToType(data['duration'], 'String');
          delete data['duration'];
        }
        if (data.hasOwnProperty('outcome')) {
          obj['outcome'] = _ApiClient["default"].convertToType(data['outcome'], 'String');
          delete data['outcome'];
        }
        if (data.hasOwnProperty('from_phone_number')) {
          obj['from_phone_number'] = _ApiClient["default"].convertToType(data['from_phone_number'], 'String');
          delete data['from_phone_number'];
        }
        if (data.hasOwnProperty('to_phone_number')) {
          obj['to_phone_number'] = _ApiClient["default"].convertToType(data['to_phone_number'], 'String');
          delete data['to_phone_number'];
        }
        if (data.hasOwnProperty('start_time')) {
          obj['start_time'] = _ApiClient["default"].convertToType(data['start_time'], 'Date');
          delete data['start_time'];
        }
        if (data.hasOwnProperty('end_time')) {
          obj['end_time'] = _ApiClient["default"].convertToType(data['end_time'], 'Date');
          delete data['end_time'];
        }
        if (data.hasOwnProperty('person_id')) {
          obj['person_id'] = _ApiClient["default"].convertToType(data['person_id'], 'Number');
          delete data['person_id'];
        }
        if (data.hasOwnProperty('org_id')) {
          obj['org_id'] = _ApiClient["default"].convertToType(data['org_id'], 'Number');
          delete data['org_id'];
        }
        if (data.hasOwnProperty('deal_id')) {
          obj['deal_id'] = _ApiClient["default"].convertToType(data['deal_id'], 'Number');
          delete data['deal_id'];
        }
        if (data.hasOwnProperty('note')) {
          obj['note'] = _ApiClient["default"].convertToType(data['note'], 'String');
          delete data['note'];
        }
        if (Object.keys(data).length > 0) {
          Object.assign(obj, data);
        }
      }
      return obj;
    }
  }]);
  return CallLogObject;
}();
/**
 * The ID of the owner of the call log. Please note that a user without account settings access cannot create call logs for other users.
 * @member {Number} user_id
 */
CallLogObject.prototype['user_id'] = undefined;

/**
 * If specified, this activity will be converted into a call log, with the information provided. When this field is used, you don't need to specify `deal_id`, `person_id` or `org_id`, as they will be ignored in favor of the values already available in the activity. The `activity_id` must refer to a `call` type activity.
 * @member {Number} activity_id
 */
CallLogObject.prototype['activity_id'] = undefined;

/**
 * The name of the activity this call is attached to
 * @member {String} subject
 */
CallLogObject.prototype['subject'] = undefined;

/**
 * The duration of the call in seconds
 * @member {String} duration
 */
CallLogObject.prototype['duration'] = undefined;

/**
 * Describes the outcome of the call
 * @member {module:model/CallLogObject.OutcomeEnum} outcome
 */
CallLogObject.prototype['outcome'] = undefined;

/**
 * The number that made the call
 * @member {String} from_phone_number
 */
CallLogObject.prototype['from_phone_number'] = undefined;

/**
 * The number called
 * @member {String} to_phone_number
 */
CallLogObject.prototype['to_phone_number'] = undefined;

/**
 * The date and time of the start of the call in UTC. Format: YYYY-MM-DD HH:MM:SS.
 * @member {Date} start_time
 */
CallLogObject.prototype['start_time'] = undefined;

/**
 * The date and time of the end of the call in UTC. Format: YYYY-MM-DD HH:MM:SS.
 * @member {Date} end_time
 */
CallLogObject.prototype['end_time'] = undefined;

/**
 * The ID of the person this call is associated with
 * @member {Number} person_id
 */
CallLogObject.prototype['person_id'] = undefined;

/**
 * The ID of the organization this call is associated with
 * @member {Number} org_id
 */
CallLogObject.prototype['org_id'] = undefined;

/**
 * The ID of the deal this call is associated with
 * @member {Number} deal_id
 */
CallLogObject.prototype['deal_id'] = undefined;

/**
 * The note for the call log in HTML format
 * @member {String} note
 */
CallLogObject.prototype['note'] = undefined;

/**
 * Allowed values for the <code>outcome</code> property.
 * @enum {String}
 * @readonly
 */
CallLogObject['OutcomeEnum'] = {
  /**
   * value: "connected"
   * @const
   */
  "connected": "connected",
  /**
   * value: "no_answer"
   * @const
   */
  "no_answer": "no_answer",
  /**
   * value: "left_message"
   * @const
   */
  "left_message": "left_message",
  /**
   * value: "left_voicemail"
   * @const
   */
  "left_voicemail": "left_voicemail",
  /**
   * value: "wrong_number"
   * @const
   */
  "wrong_number": "wrong_number",
  /**
   * value: "busy"
   * @const
   */
  "busy": "busy"
};
var _default = CallLogObject;
exports["default"] = _default;