comprodls-sdk 2.123.1-security → 2.125.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8673,10 +8673,7 @@ function createSchedule(options) {
8673
8673
  options.body.scheduleid && options.body.actorid && options.body.category && options.body.schedule_time) {
8674
8674
  // Construct API url
8675
8675
  var url = self.config.DEFAULT_HOSTS.INTEGRATION + self.config.INTEGRATIONS_API_URLS.schedules;
8676
- url = helpers.api.constructAPIUrl(url, {
8677
- accountId: options.accountid,
8678
- context: encodeURIComponent(options.context)
8679
- });
8676
+ url = helpers.api.constructAPIUrl(url, { accountId: options.accountid, context: options.context });
8680
8677
 
8681
8678
  // Setup request with URL and Params
8682
8679
  var requestAPI = request.post(url)
@@ -8717,10 +8714,7 @@ function getSchedule(options) {
8717
8714
  if (options && options.context && options.accountid) {
8718
8715
  // Construct API url
8719
8716
  var url = self.config.DEFAULT_HOSTS.INTEGRATION + self.config.INTEGRATIONS_API_URLS.schedules;
8720
- url = helpers.api.constructAPIUrl(url, {
8721
- accountId: options.accountid,
8722
- context: encodeURIComponent(options.context)
8723
- });
8717
+ url = helpers.api.constructAPIUrl(url, { accountId: options.accountid, context: options.context });
8724
8718
 
8725
8719
  var params = {};
8726
8720
  if(options.cursor) { params.cursor = options.cursor; }
@@ -8762,11 +8756,7 @@ function updateSchedule(options) {
8762
8756
  (Object.keys(options.body).length > 0) && options.body.actorid && options.body.category) {
8763
8757
  // Construct API url
8764
8758
  var url = self.config.DEFAULT_HOSTS.INTEGRATION + self.config.INTEGRATIONS_API_URLS.particularSchedule;
8765
- url = helpers.api.constructAPIUrl(url, {
8766
- accountId: options.accountid,
8767
- context: encodeURIComponent(options.context),
8768
- scheduleId: encodeURIComponent(options.scheduleid)
8769
- });
8759
+ url = helpers.api.constructAPIUrl(url, { accountId: options.accountid, context: options.context, scheduleId: options.scheduleid });
8770
8760
 
8771
8761
  // Setup request with URL and Params
8772
8762
  var requestAPI = request.put(url)
@@ -8807,11 +8797,7 @@ function deleteSchedule(options) {
8807
8797
  if (options && options.context && options.accountid && options.scheduleid && options.body) {
8808
8798
  // Construct API url
8809
8799
  var url = self.config.DEFAULT_HOSTS.INTEGRATION + self.config.INTEGRATIONS_API_URLS.particularSchedule;
8810
- url = helpers.api.constructAPIUrl(url, {
8811
- accountId: options.accountid,
8812
- context: encodeURIComponent(options.context),
8813
- scheduleId: encodeURIComponent(options.scheduleid)
8814
- });
8800
+ url = helpers.api.constructAPIUrl(url, { accountId: options.accountid, context: options.context, scheduleId: options.scheduleid });
8815
8801
 
8816
8802
  // Setup request with URL and Params
8817
8803
  var requestAPI = request.delete(url)