@nomad-media/full 1.1.17 → 1.1.18
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.
- package/dist/nomad-media-sdk-debug.js +360 -360
- package/dist/nomad-media-sdk.min.js +4 -4
- package/package.json +1 -1
|
@@ -10051,7 +10051,7 @@ async function _getAudit(instance, AUTH_TOKEN, URL, CONTENT_ID, DEBUG_MODE)
|
|
|
10051
10051
|
{
|
|
10052
10052
|
const API_URL = `${URL}/api/admin/audit/${CONTENT_ID}`;
|
|
10053
10053
|
|
|
10054
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Get Audit", API_URL, "GET",
|
|
10054
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Get Audit", API_URL, "GET", undefined, undefined, DEBUG_MODE);
|
|
10055
10055
|
}
|
|
10056
10056
|
|
|
10057
10057
|
|
|
@@ -10071,7 +10071,7 @@ async function _getConfig(instance, AUTH_TOKEN, URL, CONFIG_TYPE, DEBUG_MODE)
|
|
|
10071
10071
|
{
|
|
10072
10072
|
const API_URL = `${URL}/api/config?configType=${CONFIG_TYPE}`;
|
|
10073
10073
|
|
|
10074
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Get Config", API_URL, "GET",
|
|
10074
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Get Config", API_URL, "GET", undefined, undefined, DEBUG_MODE);
|
|
10075
10075
|
}
|
|
10076
10076
|
|
|
10077
10077
|
|
|
@@ -10082,7 +10082,7 @@ async function _getServerTime(instance, AUTH_TOKEN, URL, DEBUG_MODE)
|
|
|
10082
10082
|
{
|
|
10083
10083
|
const API_URL = `${URL}/api/config/serverTime`;
|
|
10084
10084
|
|
|
10085
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Get Server Time", API_URL, "GET",
|
|
10085
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Get Server Time", API_URL, "GET", undefined, undefined, DEBUG_MODE);
|
|
10086
10086
|
}
|
|
10087
10087
|
|
|
10088
10088
|
|
|
@@ -10092,7 +10092,7 @@ async function _createContentDefinition(instance, AUTH_TOKEN, URL, DEBUG_MODE)
|
|
|
10092
10092
|
{
|
|
10093
10093
|
const API_URL = `${URL}/api/contentDefinition/New`;
|
|
10094
10094
|
|
|
10095
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Create Content Definition", API_URL, "GET",
|
|
10095
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Create Content Definition", API_URL, "GET", undefined, undefined, DEBUG_MODE);
|
|
10096
10096
|
}
|
|
10097
10097
|
|
|
10098
10098
|
|
|
@@ -10102,7 +10102,7 @@ async function _getContentDefinitionGroups(instance, AUTH_TOKEN, URL, DEBUG_MODE
|
|
|
10102
10102
|
{
|
|
10103
10103
|
const API_URL = `${URL}/api/contentDefinitionGroup`;
|
|
10104
10104
|
|
|
10105
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Get Content Definition Group", API_URL, "GET",
|
|
10105
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Get Content Definition Group", API_URL, "GET", undefined, undefined, DEBUG_MODE);
|
|
10106
10106
|
}
|
|
10107
10107
|
|
|
10108
10108
|
|
|
@@ -10112,7 +10112,7 @@ async function _getContentDefinitionTypes(instance, AUTH_TOKEN, URL, DEBUG_MODE)
|
|
|
10112
10112
|
{
|
|
10113
10113
|
const API_URL = `${URL}/lookup/6`;
|
|
10114
10114
|
|
|
10115
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Get Content Definition Types", API_URL, "GET",
|
|
10115
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Get Content Definition Types", API_URL, "GET", undefined, undefined, DEBUG_MODE);
|
|
10116
10116
|
}
|
|
10117
10117
|
|
|
10118
10118
|
|
|
@@ -10122,7 +10122,7 @@ async function _getContentDefinition(instance, AUTH_TOKEN, URL, ID, DEBUG_MODE)
|
|
|
10122
10122
|
{
|
|
10123
10123
|
const API_URL = `${URL}/contentDefinition/${ID}`;
|
|
10124
10124
|
|
|
10125
|
-
return await _sendRequest(instance, AUTH_TOKEN, ".", API_URL, "GET",
|
|
10125
|
+
return await _sendRequest(instance, AUTH_TOKEN, ".", API_URL, "GET", undefined, undefined, DEBUG_MODE);
|
|
10126
10126
|
}
|
|
10127
10127
|
|
|
10128
10128
|
|
|
@@ -10141,7 +10141,7 @@ async function _getContentDefinitions(instance, AUTH_TOKEN, URL, CONTENT_MANAGEM
|
|
|
10141
10141
|
"pageSize": PAGE_SIZE
|
|
10142
10142
|
}
|
|
10143
10143
|
|
|
10144
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Get Content Definitions", API_URL, "GET", PARAMS,
|
|
10144
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Get Content Definitions", API_URL, "GET", PARAMS, undefined, DEBUG_MODE);
|
|
10145
10145
|
}
|
|
10146
10146
|
|
|
10147
10147
|
|
|
@@ -10151,7 +10151,7 @@ async function _getSystemRoles(instance, AUTH_TOKEN, URL, DEBUG_MODE)
|
|
|
10151
10151
|
{
|
|
10152
10152
|
const API_URL = `${URL}/lookup/45`;
|
|
10153
10153
|
|
|
10154
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Get System Roles", API_URL, "GET",
|
|
10154
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Get System Roles", API_URL, "GET", undefined, undefined, DEBUG_MODE);
|
|
10155
10155
|
}
|
|
10156
10156
|
|
|
10157
10157
|
|
|
@@ -10240,19 +10240,19 @@ async function _updateContentDefinition(instance, AUTH_TOKEN, URL, ID, NAME, CON
|
|
|
10240
10240
|
}
|
|
10241
10241
|
|
|
10242
10242
|
|
|
10243
|
-
|
|
10244
|
-
|
|
10245
|
-
async function _createContent(instance, AUTH_TOKEN, URL, CONTENT_DEFINITION_ID, LANGUAGE_ID, DEBUG_MODE)
|
|
10246
|
-
{
|
|
10247
|
-
const API_URL = `${URL}/api/content/new?contentDefinitionId=${CONTENT_DEFINITION_ID}`;
|
|
10248
|
-
|
|
10249
|
-
const PARAMS = {
|
|
10250
|
-
"languageId": LANGUAGE_ID
|
|
10251
|
-
}
|
|
10252
|
-
|
|
10253
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Create Content", API_URL, "GET", PARAMS,
|
|
10254
|
-
}
|
|
10255
|
-
|
|
10243
|
+
|
|
10244
|
+
|
|
10245
|
+
async function _createContent(instance, AUTH_TOKEN, URL, CONTENT_DEFINITION_ID, LANGUAGE_ID, DEBUG_MODE)
|
|
10246
|
+
{
|
|
10247
|
+
const API_URL = `${URL}/api/content/new?contentDefinitionId=${CONTENT_DEFINITION_ID}`;
|
|
10248
|
+
|
|
10249
|
+
const PARAMS = {
|
|
10250
|
+
"languageId": LANGUAGE_ID
|
|
10251
|
+
}
|
|
10252
|
+
|
|
10253
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Create Content", API_URL, "GET", PARAMS, undefined, DEBUG_MODE);
|
|
10254
|
+
}
|
|
10255
|
+
|
|
10256
10256
|
|
|
10257
10257
|
|
|
10258
10258
|
|
|
@@ -10265,16 +10265,16 @@ async function _deactivateContentUserTrack(instance, AUTH_TOKEN, URL, SESSION_ID
|
|
|
10265
10265
|
}
|
|
10266
10266
|
|
|
10267
10267
|
|
|
10268
|
-
|
|
10269
|
-
|
|
10270
|
-
async function _deleteContent(instance, AUTH_TOKEN, URL, CONTENT_ID,
|
|
10271
|
-
CONTENT_DEFINITION_ID, DEBUG_MODE)
|
|
10272
|
-
{
|
|
10273
|
-
const API_URL = `${URL}/api/content/${CONTENT_ID}?contentDefinitionId=${CONTENT_DEFINITION_ID}`;
|
|
10274
|
-
|
|
10275
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Delete Content", API_URL, "DELETE",
|
|
10276
|
-
}
|
|
10277
|
-
|
|
10268
|
+
|
|
10269
|
+
|
|
10270
|
+
async function _deleteContent(instance, AUTH_TOKEN, URL, CONTENT_ID,
|
|
10271
|
+
CONTENT_DEFINITION_ID, DEBUG_MODE)
|
|
10272
|
+
{
|
|
10273
|
+
const API_URL = `${URL}/api/content/${CONTENT_ID}?contentDefinitionId=${CONTENT_DEFINITION_ID}`;
|
|
10274
|
+
|
|
10275
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Delete Content", API_URL, "DELETE", undefined, undefined, DEBUG_MODE);
|
|
10276
|
+
}
|
|
10277
|
+
|
|
10278
10278
|
|
|
10279
10279
|
|
|
10280
10280
|
|
|
@@ -10283,7 +10283,7 @@ async function _getContentUserTrackTouch(instance, AUTH_TOKEN, URL, CONTENT_ID,
|
|
|
10283
10283
|
{
|
|
10284
10284
|
const API_URL = `${URL}/api/content/${CONTENT_DEFINITION_ID}/user-track/${CONTENT_ID}/touch`;
|
|
10285
10285
|
|
|
10286
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Get Content User Track Touch", API_URL, "GET",
|
|
10286
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Get Content User Track Touch", API_URL, "GET", undefined, undefined, DEBUG_MODE);
|
|
10287
10287
|
}
|
|
10288
10288
|
|
|
10289
10289
|
|
|
@@ -10301,25 +10301,25 @@ async function _getContentUserTrack(instance, AUTH_TOKEN, URL, CONTENT_ID,
|
|
|
10301
10301
|
"sizeIndex": SIZE_INDEX
|
|
10302
10302
|
}
|
|
10303
10303
|
|
|
10304
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Get Content User Track", API_URL, "GET", PARAMS,
|
|
10304
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Get Content User Track", API_URL, "GET", PARAMS, undefined, DEBUG_MODE);
|
|
10305
10305
|
}
|
|
10306
10306
|
|
|
10307
10307
|
|
|
10308
|
-
|
|
10309
|
-
|
|
10310
|
-
async function _getContent(instance, AUTH_TOKEN, URL, CONTENT_ID, CONTENT_DEFINITION_ID,
|
|
10311
|
-
IS_REVISION, DEBUG_MODE)
|
|
10312
|
-
{
|
|
10313
|
-
|
|
10314
|
-
let API_URL = `${URL}/api/content/${CONTENT_ID}?contentDefinitionId=${CONTENT_DEFINITION_ID}`
|
|
10315
|
-
|
|
10316
|
-
const PARAMS = {
|
|
10317
|
-
"isRevision": IS_REVISION
|
|
10318
|
-
}
|
|
10319
|
-
|
|
10320
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Get Content", API_URL, "GET",
|
|
10321
|
-
}
|
|
10322
|
-
|
|
10308
|
+
|
|
10309
|
+
|
|
10310
|
+
async function _getContent(instance, AUTH_TOKEN, URL, CONTENT_ID, CONTENT_DEFINITION_ID,
|
|
10311
|
+
IS_REVISION, DEBUG_MODE)
|
|
10312
|
+
{
|
|
10313
|
+
|
|
10314
|
+
let API_URL = `${URL}/api/content/${CONTENT_ID}?contentDefinitionId=${CONTENT_DEFINITION_ID}`
|
|
10315
|
+
|
|
10316
|
+
const PARAMS = {
|
|
10317
|
+
"isRevision": IS_REVISION
|
|
10318
|
+
}
|
|
10319
|
+
|
|
10320
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Get Content", API_URL, "GET", undefined, undefined, DEBUG_MODE);
|
|
10321
|
+
}
|
|
10322
|
+
|
|
10323
10323
|
|
|
10324
10324
|
|
|
10325
10325
|
|
|
@@ -10411,52 +10411,52 @@ async function _addLiveScheduleToEvent(instance, AUTH_TOKEN, URL, EVENT_ID, SLAT
|
|
|
10411
10411
|
}
|
|
10412
10412
|
|
|
10413
10413
|
|
|
10414
|
-
|
|
10415
|
-
|
|
10416
|
-
|
|
10417
|
-
async function _createAndUpdateEvent(instance, AUTH_TOKEN, URL, CONTENT_ID,
|
|
10418
|
-
CONTENT_DEFINITION_ID, NAME, START_DATETIME, END_DATETIME, EVENT_TYPE, SERIES,
|
|
10419
|
-
DISABLED, OVERRIDE_SERIES_PROPERTIES, SERIES_PROPERTIES, DEBUG_MODE)
|
|
10420
|
-
{
|
|
10421
|
-
if (!CONTENT_ID)
|
|
10422
|
-
{
|
|
10423
|
-
const GET_API_URL = `${URL}/api/content/new?contentDefinitionId=${CONTENT_DEFINITION_ID}`;
|
|
10424
|
-
|
|
10425
|
-
const INFO = await _sendRequest(instance, AUTH_TOKEN, "Get Content ID", GET_API_URL, "GET", null, null, DEBUG_MODE);
|
|
10426
|
-
CONTENT_ID = INFO.contentId;
|
|
10427
|
-
}
|
|
10428
|
-
|
|
10429
|
-
const API_URL = `${URL}/api/content/${CONTENT_ID}`;
|
|
10430
|
-
|
|
10431
|
-
if (!SERIES_PROPERTIES || !OVERRIDE_SERIES_PROPERTIES) SERIES_PROPERTIES = {};
|
|
10432
|
-
|
|
10433
|
-
SERIES_PROPERTIES.name = NAME ? NAME : (SERIES && SERIES.description);
|
|
10434
|
-
SERIES_PROPERTIES.startDatetime = START_DATETIME;
|
|
10435
|
-
SERIES_PROPERTIES.endDatetime = END_DATETIME;
|
|
10436
|
-
SERIES_PROPERTIES.eventType = EVENT_TYPE;
|
|
10437
|
-
if (SERIES) SERIES_PROPERTIES.series = SERIES;
|
|
10438
|
-
SERIES_PROPERTIES.disabled = DISABLED;
|
|
10439
|
-
SERIES_PROPERTIES.overideSeriesDetails = OVERRIDE_SERIES_PROPERTIES;
|
|
10440
|
-
|
|
10441
|
-
const BODY = {
|
|
10442
|
-
contentId: CONTENT_ID,
|
|
10443
|
-
contentDefinitionId : CONTENT_DEFINITION_ID,
|
|
10444
|
-
properties: SERIES_PROPERTIES
|
|
10445
|
-
};
|
|
10446
|
-
|
|
10447
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Create and Update Event", API_URL, "POST", null, BODY, DEBUG_MODE);
|
|
10448
|
-
}
|
|
10449
|
-
|
|
10450
10414
|
|
|
10451
|
-
|
|
10452
|
-
|
|
10453
|
-
async function
|
|
10454
|
-
|
|
10455
|
-
|
|
10456
|
-
|
|
10457
|
-
|
|
10458
|
-
|
|
10459
|
-
|
|
10415
|
+
|
|
10416
|
+
|
|
10417
|
+
async function _createAndUpdateEvent(instance, AUTH_TOKEN, URL, CONTENT_ID,
|
|
10418
|
+
CONTENT_DEFINITION_ID, NAME, START_DATETIME, END_DATETIME, EVENT_TYPE, SERIES,
|
|
10419
|
+
DISABLED, OVERRIDE_SERIES_PROPERTIES, SERIES_PROPERTIES, DEBUG_MODE)
|
|
10420
|
+
{
|
|
10421
|
+
if (!CONTENT_ID)
|
|
10422
|
+
{
|
|
10423
|
+
const GET_API_URL = `${URL}/api/content/new?contentDefinitionId=${CONTENT_DEFINITION_ID}`;
|
|
10424
|
+
|
|
10425
|
+
const INFO = await _sendRequest(instance, AUTH_TOKEN, "Get Content ID", GET_API_URL, "GET", undefined, undefined, DEBUG_MODE);
|
|
10426
|
+
CONTENT_ID = INFO.contentId;
|
|
10427
|
+
}
|
|
10428
|
+
|
|
10429
|
+
const API_URL = `${URL}/api/content/${CONTENT_ID}`;
|
|
10430
|
+
|
|
10431
|
+
if (!SERIES_PROPERTIES || !OVERRIDE_SERIES_PROPERTIES) SERIES_PROPERTIES = {};
|
|
10432
|
+
|
|
10433
|
+
SERIES_PROPERTIES.name = NAME ? NAME : (SERIES && SERIES.description);
|
|
10434
|
+
SERIES_PROPERTIES.startDatetime = START_DATETIME;
|
|
10435
|
+
SERIES_PROPERTIES.endDatetime = END_DATETIME;
|
|
10436
|
+
SERIES_PROPERTIES.eventType = EVENT_TYPE;
|
|
10437
|
+
if (SERIES) SERIES_PROPERTIES.series = SERIES;
|
|
10438
|
+
SERIES_PROPERTIES.disabled = DISABLED;
|
|
10439
|
+
SERIES_PROPERTIES.overideSeriesDetails = OVERRIDE_SERIES_PROPERTIES;
|
|
10440
|
+
|
|
10441
|
+
const BODY = {
|
|
10442
|
+
contentId: CONTENT_ID,
|
|
10443
|
+
contentDefinitionId : CONTENT_DEFINITION_ID,
|
|
10444
|
+
properties: SERIES_PROPERTIES
|
|
10445
|
+
};
|
|
10446
|
+
|
|
10447
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Create and Update Event", API_URL, "POST", null, BODY, DEBUG_MODE);
|
|
10448
|
+
}
|
|
10449
|
+
|
|
10450
|
+
|
|
10451
|
+
|
|
10452
|
+
|
|
10453
|
+
async function _deleteEvent(instance, AUTH_TOKEN, URL, ID, CONTENT_DEFINITION_ID, DEBUG_MODE)
|
|
10454
|
+
{
|
|
10455
|
+
const API_URL = `${URL}/api/content/${ID}?contentDefinitionId=${CONTENT_DEFINITION_ID}`;
|
|
10456
|
+
|
|
10457
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Delete Event", API_URL, "DELETE", undefined, undefined, DEBUG_MODE);
|
|
10458
|
+
}
|
|
10459
|
+
|
|
10460
10460
|
|
|
10461
10461
|
|
|
10462
10462
|
|
|
@@ -10483,7 +10483,7 @@ async function _getLiveSchedule(instance, AUTH_TOKEN, URL, EVENT_ID, DEBUG_MODE)
|
|
|
10483
10483
|
{
|
|
10484
10484
|
const API_URL = `${URL}/api/admin/liveSchedule/content/${EVENT_ID}`;
|
|
10485
10485
|
|
|
10486
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Get Live Schedule", API_URL, "GET",
|
|
10486
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Get Live Schedule", API_URL, "GET", undefined, undefined, DEBUG_MODE);
|
|
10487
10487
|
}
|
|
10488
10488
|
|
|
10489
10489
|
|
|
@@ -10590,46 +10590,46 @@ async function _createLiveChannel(instance, AUTH_TOKEN, URL, NAME, THUMBNAIL_IMA
|
|
|
10590
10590
|
|
|
10591
10591
|
|
|
10592
10592
|
|
|
10593
|
-
|
|
10594
|
-
|
|
10595
|
-
|
|
10596
|
-
|
|
10597
|
-
async function _deleteLiveChannel(instance, AUTH_TOKEN, URL, CHANNEL_ID, DELETE_INPUTS, DEBUG_MODE)
|
|
10598
|
-
{
|
|
10599
|
-
const API_URL = `${URL}/api/liveChannel/${CHANNEL_ID}`
|
|
10600
|
-
|
|
10601
|
-
let INPUT_IDS = null;
|
|
10602
|
-
// If delete Live Inputs then get their IDs
|
|
10603
|
-
if (DELETE_INPUTS === true)
|
|
10604
|
-
{
|
|
10605
|
-
if (DEBUG_MODE)
|
|
10606
|
-
{
|
|
10607
|
-
console.log(`Getting Live Channel Inputs IDs...`);
|
|
10608
|
-
}
|
|
10609
|
-
INPUT_IDS = await _getLiveChannelInputsIds(instance, AUTH_TOKEN, CHANNEL_ID);
|
|
10610
|
-
}
|
|
10611
|
-
else
|
|
10612
|
-
{
|
|
10613
|
-
INPUT_IDS = null;
|
|
10614
|
-
}
|
|
10615
|
-
|
|
10616
|
-
if (DELETE_INPUTS && INPUT_IDS && INPUT_IDS.length > 0)
|
|
10617
|
-
{
|
|
10618
|
-
if (DEBUG_MODE)
|
|
10619
|
-
{
|
|
10620
|
-
console.log(`Deleting Live Channel Live Inputs...`);
|
|
10621
|
-
}
|
|
10622
|
-
// Loop deleted Live Channel Live Inputs
|
|
10623
|
-
for (let index = 0; index < INPUT_IDS.length; index++)
|
|
10624
|
-
{
|
|
10625
|
-
// Delete Live Input
|
|
10626
|
-
await _deleteLiveInput(instance, AUTH_TOKEN, INPUT_IDS[index]);
|
|
10627
|
-
}
|
|
10628
|
-
}
|
|
10629
|
-
|
|
10630
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Delete Live Channel", API_URL, "DELETE",
|
|
10631
|
-
}
|
|
10632
|
-
|
|
10593
|
+
|
|
10594
|
+
|
|
10595
|
+
|
|
10596
|
+
|
|
10597
|
+
async function _deleteLiveChannel(instance, AUTH_TOKEN, URL, CHANNEL_ID, DELETE_INPUTS, DEBUG_MODE)
|
|
10598
|
+
{
|
|
10599
|
+
const API_URL = `${URL}/api/liveChannel/${CHANNEL_ID}`
|
|
10600
|
+
|
|
10601
|
+
let INPUT_IDS = null;
|
|
10602
|
+
// If delete Live Inputs then get their IDs
|
|
10603
|
+
if (DELETE_INPUTS === true)
|
|
10604
|
+
{
|
|
10605
|
+
if (DEBUG_MODE)
|
|
10606
|
+
{
|
|
10607
|
+
console.log(`Getting Live Channel Inputs IDs...`);
|
|
10608
|
+
}
|
|
10609
|
+
INPUT_IDS = await _getLiveChannelInputsIds(instance, AUTH_TOKEN, CHANNEL_ID);
|
|
10610
|
+
}
|
|
10611
|
+
else
|
|
10612
|
+
{
|
|
10613
|
+
INPUT_IDS = null;
|
|
10614
|
+
}
|
|
10615
|
+
|
|
10616
|
+
if (DELETE_INPUTS && INPUT_IDS && INPUT_IDS.length > 0)
|
|
10617
|
+
{
|
|
10618
|
+
if (DEBUG_MODE)
|
|
10619
|
+
{
|
|
10620
|
+
console.log(`Deleting Live Channel Live Inputs...`);
|
|
10621
|
+
}
|
|
10622
|
+
// Loop deleted Live Channel Live Inputs
|
|
10623
|
+
for (let index = 0; index < INPUT_IDS.length; index++)
|
|
10624
|
+
{
|
|
10625
|
+
// Delete Live Input
|
|
10626
|
+
await _deleteLiveInput(instance, AUTH_TOKEN, INPUT_IDS[index]);
|
|
10627
|
+
}
|
|
10628
|
+
}
|
|
10629
|
+
|
|
10630
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Delete Live Channel", API_URL, "DELETE", undefined, undefined, DEBUG_MODE);
|
|
10631
|
+
}
|
|
10632
|
+
|
|
10633
10633
|
|
|
10634
10634
|
|
|
10635
10635
|
|
|
@@ -10664,15 +10664,15 @@ async function _getLiveChannelInputsIds(instance, AUTH_TOKEN, URL, CHANNEL_ID, D
|
|
|
10664
10664
|
|
|
10665
10665
|
|
|
10666
10666
|
|
|
10667
|
-
|
|
10668
|
-
|
|
10669
|
-
async function _getLiveChannelScheduleEvents(instance, AUTH_TOKEN, URL, CHANNEL_ID, DEBUG_MODE)
|
|
10670
|
-
{
|
|
10671
|
-
const API_URL = `${URL}/api/liveChannel/${CHANNEL_ID}/liveScheduleEvent`
|
|
10672
|
-
|
|
10673
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Get Live Channel Schedule Events", API_URL, "GET",
|
|
10674
|
-
}
|
|
10675
|
-
|
|
10667
|
+
|
|
10668
|
+
|
|
10669
|
+
async function _getLiveChannelScheduleEvents(instance, AUTH_TOKEN, URL, CHANNEL_ID, DEBUG_MODE)
|
|
10670
|
+
{
|
|
10671
|
+
const API_URL = `${URL}/api/liveChannel/${CHANNEL_ID}/liveScheduleEvent`
|
|
10672
|
+
|
|
10673
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Get Live Channel Schedule Events", API_URL, "GET", undefined, undefined, DEBUG_MODE);
|
|
10674
|
+
}
|
|
10675
|
+
|
|
10676
10676
|
|
|
10677
10677
|
|
|
10678
10678
|
|
|
@@ -10721,27 +10721,27 @@ async function _getLiveChannelStatus(instance, AUTH_TOKEN, URL, CHANNEL_ID, DEBU
|
|
|
10721
10721
|
|
|
10722
10722
|
|
|
10723
10723
|
|
|
10724
|
-
|
|
10725
|
-
|
|
10726
|
-
async function _getLiveChannel(instance, AUTH_TOKEN, URL, CHANNEL_ID, DEBUG_MODE)
|
|
10727
|
-
{
|
|
10728
|
-
const API_URL = `${URL}/api/liveChannel/${CHANNEL_ID}`
|
|
10729
|
-
|
|
10730
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Get Live Channel", API_URL, "GET", null, null, DEBUG_MODE);
|
|
10731
|
-
}
|
|
10732
|
-
|
|
10733
|
-
|
|
10734
10724
|
|
|
10735
|
-
|
|
10736
|
-
|
|
10737
|
-
|
|
10738
|
-
{
|
|
10739
|
-
|
|
10740
|
-
|
|
10741
|
-
|
|
10742
|
-
|
|
10743
|
-
|
|
10744
|
-
|
|
10725
|
+
|
|
10726
|
+
async function _getLiveChannel(instance, AUTH_TOKEN, URL, CHANNEL_ID, DEBUG_MODE)
|
|
10727
|
+
{
|
|
10728
|
+
const API_URL = `${URL}/api/liveChannel/${CHANNEL_ID}`
|
|
10729
|
+
|
|
10730
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Get Live Channel", API_URL, "GET", undefined, undefined, DEBUG_MODE);
|
|
10731
|
+
}
|
|
10732
|
+
|
|
10733
|
+
|
|
10734
|
+
|
|
10735
|
+
|
|
10736
|
+
|
|
10737
|
+
async function _getLiveChannels(instance, AUTH_TOKEN, URL, DEBUG_MODE)
|
|
10738
|
+
{
|
|
10739
|
+
const API_URL = `${URL}/api/liveChannel`
|
|
10740
|
+
|
|
10741
|
+
return await _sendRequest(instance, AUTH_TOKEN, "getLiveChannels", API_URL, "GET", undefined, undefined, DEBUG_MODE);
|
|
10742
|
+
}
|
|
10743
|
+
|
|
10744
|
+
|
|
10745
10745
|
|
|
10746
10746
|
|
|
10747
10747
|
|
|
@@ -10749,7 +10749,7 @@ async function _getSecurityGroups(instance, AUTH_TOKEN, URL, DEBUG_MODE)
|
|
|
10749
10749
|
{
|
|
10750
10750
|
const API_URL = `${URL}/api/lookup/22?lookupKey=99e8767a-00ba-4758-b9c2-e07b52c47016`
|
|
10751
10751
|
|
|
10752
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Get Security Groups", API_URL, "GET",
|
|
10752
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Get Security Groups", API_URL, "GET", undefined, undefined, DEBUG_MODE);
|
|
10753
10753
|
}
|
|
10754
10754
|
|
|
10755
10755
|
|
|
@@ -11021,16 +11021,16 @@ async function _createLiveInput(instance, AUTH_TOKEN, URL, NAME, SOURCE, TYPE, I
|
|
|
11021
11021
|
|
|
11022
11022
|
|
|
11023
11023
|
|
|
11024
|
-
|
|
11025
|
-
|
|
11026
|
-
async function _deleteLiveInput(instance, AUTH_TOKEN, URL, INPUT_ID, DEBUG_MODE)
|
|
11027
|
-
{
|
|
11028
|
-
const API_URL = `${URL}/api/liveInput/${INPUT_ID}`;
|
|
11029
|
-
|
|
11030
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Delete Live Input", API_URL, "DELETE",
|
|
11031
|
-
}
|
|
11032
|
-
|
|
11033
|
-
|
|
11024
|
+
|
|
11025
|
+
|
|
11026
|
+
async function _deleteLiveInput(instance, AUTH_TOKEN, URL, INPUT_ID, DEBUG_MODE)
|
|
11027
|
+
{
|
|
11028
|
+
const API_URL = `${URL}/api/liveInput/${INPUT_ID}`;
|
|
11029
|
+
|
|
11030
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Delete Live Input", API_URL, "DELETE", undefined, undefined, DEBUG_MODE);
|
|
11031
|
+
}
|
|
11032
|
+
|
|
11033
|
+
|
|
11034
11034
|
|
|
11035
11035
|
|
|
11036
11036
|
|
|
@@ -11073,25 +11073,25 @@ async function _getLiveInputStatus(instance, AUTH_TOKEN, URL, INPUT_ID, DEBUG_MO
|
|
|
11073
11073
|
}
|
|
11074
11074
|
|
|
11075
11075
|
|
|
11076
|
-
|
|
11077
|
-
|
|
11078
|
-
async function _getLiveInput(instance, AUTH_TOKEN, URL, INPUT_ID, DEBUG_MODE)
|
|
11079
|
-
{
|
|
11080
|
-
const API_URL = `${URL}/api/liveInput/${INPUT_ID}`;
|
|
11081
|
-
|
|
11082
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Get Live Input", API_URL, "GET", null, null, DEBUG_MODE);
|
|
11083
|
-
}
|
|
11084
|
-
|
|
11085
11076
|
|
|
11086
|
-
|
|
11087
|
-
|
|
11088
|
-
|
|
11089
|
-
{
|
|
11090
|
-
|
|
11091
|
-
|
|
11092
|
-
|
|
11093
|
-
|
|
11094
|
-
|
|
11077
|
+
|
|
11078
|
+
async function _getLiveInput(instance, AUTH_TOKEN, URL, INPUT_ID, DEBUG_MODE)
|
|
11079
|
+
{
|
|
11080
|
+
const API_URL = `${URL}/api/liveInput/${INPUT_ID}`;
|
|
11081
|
+
|
|
11082
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Get Live Input", API_URL, "GET", undefined, undefined, DEBUG_MODE);
|
|
11083
|
+
}
|
|
11084
|
+
|
|
11085
|
+
|
|
11086
|
+
|
|
11087
|
+
|
|
11088
|
+
async function _getLiveInputs(instance, AUTH_TOKEN, URL, DEBUG_MODE)
|
|
11089
|
+
{
|
|
11090
|
+
const API_URL = `${URL}/api/liveInput`;
|
|
11091
|
+
|
|
11092
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Get Live Inputs", API_URL, "GET", undefined, undefined, DEBUG_MODE);
|
|
11093
|
+
}
|
|
11094
|
+
|
|
11095
11095
|
|
|
11096
11096
|
const _LIVE_INPUT_STATUSES = {
|
|
11097
11097
|
Attached: "Attached",
|
|
@@ -11275,35 +11275,35 @@ async function _completeSegment(instance, AUTH_TOKEN, URL, ID, RELATED_CONTENT_I
|
|
|
11275
11275
|
}
|
|
11276
11276
|
|
|
11277
11277
|
|
|
11278
|
-
|
|
11279
|
-
|
|
11280
|
-
async function _getCompletedSegments(instance, AUTH_TOKEN, URL, ID, DEBUG_MODE)
|
|
11281
|
-
{
|
|
11282
|
-
const API_URL = `${URL}/api/admin/liveOperator/${ID}/segments`;
|
|
11283
|
-
|
|
11284
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Get Completed Segments", API_URL, "GET", null, null, DEBUG_MODE);
|
|
11285
|
-
}
|
|
11286
|
-
|
|
11287
11278
|
|
|
11288
|
-
|
|
11289
|
-
|
|
11290
|
-
async function _getLiveOperator(instance, AUTH_TOKEN, URL, ID, DEBUG_MODE)
|
|
11291
|
-
{
|
|
11292
|
-
const API_URL = `${URL}/api/admin/liveOperator/${ID}`;
|
|
11293
|
-
|
|
11294
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Get Live Operator", API_URL, "GET", null, null, DEBUG_MODE);
|
|
11295
|
-
}
|
|
11296
|
-
|
|
11297
11279
|
|
|
11298
|
-
|
|
11299
|
-
|
|
11300
|
-
|
|
11301
|
-
|
|
11302
|
-
|
|
11303
|
-
|
|
11304
|
-
|
|
11305
|
-
|
|
11306
|
-
|
|
11280
|
+
async function _getCompletedSegments(instance, AUTH_TOKEN, URL, ID, DEBUG_MODE)
|
|
11281
|
+
{
|
|
11282
|
+
const API_URL = `${URL}/api/admin/liveOperator/${ID}/segments`;
|
|
11283
|
+
|
|
11284
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Get Completed Segments", API_URL, "GET", undefined, undefined, DEBUG_MODE);
|
|
11285
|
+
}
|
|
11286
|
+
|
|
11287
|
+
|
|
11288
|
+
|
|
11289
|
+
|
|
11290
|
+
async function _getLiveOperator(instance, AUTH_TOKEN, URL, ID, DEBUG_MODE)
|
|
11291
|
+
{
|
|
11292
|
+
const API_URL = `${URL}/api/admin/liveOperator/${ID}`;
|
|
11293
|
+
|
|
11294
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Get Live Operator", API_URL, "GET", undefined, undefined, DEBUG_MODE);
|
|
11295
|
+
}
|
|
11296
|
+
|
|
11297
|
+
|
|
11298
|
+
|
|
11299
|
+
|
|
11300
|
+
async function _getLiveOperators(instance, AUTH_TOKEN, URL, DEBUG_MODE)
|
|
11301
|
+
{
|
|
11302
|
+
const API_URL = `${URL}/api/admin/liveOperator`;
|
|
11303
|
+
|
|
11304
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Get Live Operators", API_URL, "GET", undefined, undefined, DEBUG_MODE);
|
|
11305
|
+
}
|
|
11306
|
+
|
|
11307
11307
|
|
|
11308
11308
|
|
|
11309
11309
|
|
|
@@ -11440,7 +11440,7 @@ async function _deleteLiveOutputProfileGroup(instance, AUTH_TOKEN, URL, LIVE_OUT
|
|
|
11440
11440
|
|
|
11441
11441
|
const API_URL = `${URL}/api/liveOutputProfileGroup/${LIVE_OUTPUT_PROFILE_GROUP_ID}`;
|
|
11442
11442
|
|
|
11443
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Delete Live Output Profile Group", API_URL, "DELETE",
|
|
11443
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Delete Live Output Profile Group", API_URL, "DELETE", undefined, undefined, DEBUG_MODE);
|
|
11444
11444
|
}
|
|
11445
11445
|
|
|
11446
11446
|
|
|
@@ -11451,7 +11451,7 @@ async function _getLiveOutputProfileGroup(instance, AUTH_TOKEN, URL, LIVE_OUTPUT
|
|
|
11451
11451
|
|
|
11452
11452
|
const API_URL = `${URL}/api/liveOutputProfileGroup/${LIVE_OUTPUT_PROFILE_GROUP_ID}`;
|
|
11453
11453
|
|
|
11454
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Get Live Output Profile Group", API_URL, "GET",
|
|
11454
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Get Live Output Profile Group", API_URL, "GET", undefined, undefined, DEBUG_MODE);
|
|
11455
11455
|
}
|
|
11456
11456
|
|
|
11457
11457
|
|
|
@@ -11462,7 +11462,7 @@ async function _getLiveOutputProfileGroups(instance, AUTH_TOKEN, URL, DEBUG_MODE
|
|
|
11462
11462
|
|
|
11463
11463
|
const API_URL = `${URL}/api/liveOutputProfileGroup`;
|
|
11464
11464
|
|
|
11465
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Get Live Output Profile Groups", API_URL, "GET",
|
|
11465
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Get Live Output Profile Groups", API_URL, "GET", undefined, undefined, DEBUG_MODE);
|
|
11466
11466
|
}
|
|
11467
11467
|
|
|
11468
11468
|
|
|
@@ -11531,7 +11531,7 @@ async function _deleteLiveOutputProfile(instance, AUTH_TOKEN, URL, OUTPUT_ID, DE
|
|
|
11531
11531
|
{
|
|
11532
11532
|
const API_URL = `${URL}/api/liveOutputProfile/${OUTPUT_ID}`;
|
|
11533
11533
|
|
|
11534
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Delete Live Output Profile", API_URL, "DELETE",
|
|
11534
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Delete Live Output Profile", API_URL, "DELETE", undefined, undefined, DEBUG_MODE);
|
|
11535
11535
|
}
|
|
11536
11536
|
|
|
11537
11537
|
|
|
@@ -11542,7 +11542,7 @@ async function _getLiveOutputProfile(instance, AUTH_TOKEN, URL, OUTPUT_ID, DEBUG
|
|
|
11542
11542
|
{
|
|
11543
11543
|
const API_URL = `${URL}/api/liveOutputProfile/${OUTPUT_ID}`;
|
|
11544
11544
|
|
|
11545
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Get Live Output Profile", API_URL, "GET",
|
|
11545
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Get Live Output Profile", API_URL, "GET", undefined, undefined, DEBUG_MODE);
|
|
11546
11546
|
}
|
|
11547
11547
|
|
|
11548
11548
|
|
|
@@ -11552,7 +11552,7 @@ async function _getLiveOutputProfiles(instance, AUTH_TOKEN, URL, DEBUG_MODE)
|
|
|
11552
11552
|
{
|
|
11553
11553
|
const API_URL = `${URL}/api/liveOutputProfile`;
|
|
11554
11554
|
|
|
11555
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Get Live Output Profiles", API_URL, "GET",
|
|
11555
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Get Live Output Profiles", API_URL, "GET", undefined, undefined, DEBUG_MODE);
|
|
11556
11556
|
}
|
|
11557
11557
|
|
|
11558
11558
|
|
|
@@ -11562,7 +11562,7 @@ async function _getLiveOutputTypes(instance, AUTH_TOKEN, URL, DEBUG_MODE)
|
|
|
11562
11562
|
{
|
|
11563
11563
|
const API_URL = `${URL}/api/lookup/117`;
|
|
11564
11564
|
|
|
11565
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Get Output Types", API_URL, "GET",
|
|
11565
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Get Output Types", API_URL, "GET", undefined, undefined, DEBUG_MODE);
|
|
11566
11566
|
}
|
|
11567
11567
|
|
|
11568
11568
|
|
|
@@ -11666,7 +11666,7 @@ async function _getAssetScheduleEvent(instance, AUTH_TOKEN, URL, CHANNEL_ID, SCH
|
|
|
11666
11666
|
{
|
|
11667
11667
|
const API_URL = `${URL}/api/liveChannel/${CHANNEL_ID}/liveScheduleEvent/${SCHEDULE_EVENT_ID}`;
|
|
11668
11668
|
|
|
11669
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Get Asset Schedule Event", API_URL, "GET",
|
|
11669
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Get Asset Schedule Event", API_URL, "GET", undefined, undefined, DEBUG_MODE);
|
|
11670
11670
|
}
|
|
11671
11671
|
|
|
11672
11672
|
|
|
@@ -11676,7 +11676,7 @@ async function _getInputScheduleEvent(instance, AUTH_TOKEN, URL, CHANNEL_ID, SCH
|
|
|
11676
11676
|
{
|
|
11677
11677
|
const API_URL = `${URL}/api/liveChannel/${CHANNEL_ID}/liveScheduleEvent/${SCHEDULE_EVENT_ID}`;
|
|
11678
11678
|
|
|
11679
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Get Asset Schedule Event", API_URL, "GET",
|
|
11679
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Get Asset Schedule Event", API_URL, "GET", undefined, undefined, DEBUG_MODE);
|
|
11680
11680
|
}
|
|
11681
11681
|
|
|
11682
11682
|
|
|
@@ -11695,25 +11695,25 @@ async function _moveScheduleEvent(instance, AUTH_TOKEN, URL, CHANNEL_ID, SCHEDUL
|
|
|
11695
11695
|
}
|
|
11696
11696
|
|
|
11697
11697
|
|
|
11698
|
-
|
|
11699
|
-
|
|
11700
|
-
async function _removeAssetScheduleEvent(instance, AUTH_TOKEN, URL, CHANNEL_ID, SCHEDULE_EVENT_ID, DEBUG_MODE)
|
|
11701
|
-
{
|
|
11702
|
-
const API_URL = `${URL}/api/LiveChannel/${CHANNEL_ID}/liveScheduleEvent/${SCHEDULE_EVENT_ID}`;
|
|
11703
|
-
|
|
11704
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Remove Asset Schedule Event", API_URL, "DELETE", null, null, DEBUG_MODE);
|
|
11705
|
-
}
|
|
11706
|
-
|
|
11707
11698
|
|
|
11708
|
-
|
|
11709
|
-
|
|
11710
|
-
|
|
11711
|
-
{
|
|
11712
|
-
|
|
11713
|
-
|
|
11714
|
-
|
|
11715
|
-
|
|
11716
|
-
|
|
11699
|
+
|
|
11700
|
+
async function _removeAssetScheduleEvent(instance, AUTH_TOKEN, URL, CHANNEL_ID, SCHEDULE_EVENT_ID, DEBUG_MODE)
|
|
11701
|
+
{
|
|
11702
|
+
const API_URL = `${URL}/api/LiveChannel/${CHANNEL_ID}/liveScheduleEvent/${SCHEDULE_EVENT_ID}`;
|
|
11703
|
+
|
|
11704
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Remove Asset Schedule Event", API_URL, "DELETE", undefined, undefined, DEBUG_MODE);
|
|
11705
|
+
}
|
|
11706
|
+
|
|
11707
|
+
|
|
11708
|
+
|
|
11709
|
+
|
|
11710
|
+
async function _removeInputScheduleEvent(instance, AUTH_TOKEN, URL, CHANNEL_ID, INPUT_ID, DEBUG_MODE)
|
|
11711
|
+
{
|
|
11712
|
+
const API_URL = `${URL}/api/liveChannel/${CHANNEL_ID}/liveScheduleEvent/${INPUT_ID}`
|
|
11713
|
+
|
|
11714
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Remove Input Schedule Event", API_URL, "DELETE", undefined, undefined, DEBUG_MODE);
|
|
11715
|
+
}
|
|
11716
|
+
|
|
11717
11717
|
|
|
11718
11718
|
|
|
11719
11719
|
|
|
@@ -11992,7 +11992,7 @@ async function _deleteIntelligentPlaylist(instance, AUTH_TOKEN, URL, SCHEDULE_ID
|
|
|
11992
11992
|
{
|
|
11993
11993
|
const API_URL = `${URL}/api/admin/schedule/${SCHEDULE_ID}`;
|
|
11994
11994
|
|
|
11995
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Delete Intelligent Playlist", API_URL, "DELETE",
|
|
11995
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Delete Intelligent Playlist", API_URL, "DELETE", undefined, undefined, DEBUG_MODE);
|
|
11996
11996
|
}
|
|
11997
11997
|
|
|
11998
11998
|
|
|
@@ -12002,7 +12002,7 @@ async function _deleteIntelligentSchedule(instance, AUTH_TOKEN, URL, SCHEDULE_ID
|
|
|
12002
12002
|
{
|
|
12003
12003
|
const API_URL = `${URL}/api/admin/schedule/${SCHEDULE_ID}`;
|
|
12004
12004
|
|
|
12005
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Delete Intelligent Schedule", API_URL, "DELETE",
|
|
12005
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Delete Intelligent Schedule", API_URL, "DELETE", undefined, undefined, DEBUG_MODE);
|
|
12006
12006
|
}
|
|
12007
12007
|
|
|
12008
12008
|
|
|
@@ -12012,7 +12012,7 @@ async function _deletePlaylist(instance, AUTH_TOKEN, URL, SCHEDULE_ID, DEBUG_MOD
|
|
|
12012
12012
|
{
|
|
12013
12013
|
const API_URL = `${URL}/api/admin/schedule/${SCHEDULE_ID}`;
|
|
12014
12014
|
|
|
12015
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Delete Playlist", API_URL, "DELETE",
|
|
12015
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Delete Playlist", API_URL, "DELETE", undefined, undefined, DEBUG_MODE);
|
|
12016
12016
|
}
|
|
12017
12017
|
|
|
12018
12018
|
|
|
@@ -12022,7 +12022,7 @@ async function _deleteScheduleItem(instance, AUTH_TOKEN, URL, SCHEDULE_ID, ITEM_
|
|
|
12022
12022
|
{
|
|
12023
12023
|
const API_URL = `${URL}/api/admin/schedule/${SCHEDULE_ID}/item/${ITEM_ID}`;
|
|
12024
12024
|
|
|
12025
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Delete Schedule Item", API_URL, "DELETE",
|
|
12025
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Delete Schedule Item", API_URL, "DELETE", undefined, undefined, DEBUG_MODE);
|
|
12026
12026
|
}
|
|
12027
12027
|
|
|
12028
12028
|
|
|
@@ -12032,7 +12032,7 @@ async function _getIntelligentPlaylist(instance, AUTH_TOKEN, URL, SCHEDULE_ID, D
|
|
|
12032
12032
|
{
|
|
12033
12033
|
const API_URL = `${URL}/api/admin/schedule/${SCHEDULE_ID}`;
|
|
12034
12034
|
|
|
12035
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Get Intelligent Playlist", API_URL, "GET",
|
|
12035
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Get Intelligent Playlist", API_URL, "GET", undefined, undefined, DEBUG_MODE);
|
|
12036
12036
|
}
|
|
12037
12037
|
|
|
12038
12038
|
|
|
@@ -12042,7 +12042,7 @@ async function _getIntelligentSchedule(instance, AUTH_TOKEN, URL, SCHEDULE_ID, D
|
|
|
12042
12042
|
{
|
|
12043
12043
|
const API_URL = `${URL}/api/admin/schedule/${SCHEDULE_ID}`;
|
|
12044
12044
|
|
|
12045
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Get Schedule", API_URL, "GET",
|
|
12045
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Get Schedule", API_URL, "GET", undefined, undefined, DEBUG_MODE);
|
|
12046
12046
|
}
|
|
12047
12047
|
|
|
12048
12048
|
|
|
@@ -12052,7 +12052,7 @@ async function _getPlaylist(instance, AUTH_TOKEN, URL, SCHEDULE_ID, DEBUG_MODE)
|
|
|
12052
12052
|
{
|
|
12053
12053
|
const API_URL = `${URL}/api/admin/schedule/${SCHEDULE_ID}`;
|
|
12054
12054
|
|
|
12055
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Get Playlist", API_URL, "GET",
|
|
12055
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Get Playlist", API_URL, "GET", undefined, undefined, DEBUG_MODE);
|
|
12056
12056
|
}
|
|
12057
12057
|
|
|
12058
12058
|
|
|
@@ -12062,7 +12062,7 @@ async function _getScheduleItem(instance, AUTH_TOKEN, URL, SCHEDULE_ID, ITEM_ID,
|
|
|
12062
12062
|
{
|
|
12063
12063
|
const API_URL = `${URL}/api/admin/schedule/${SCHEDULE_ID}/item/${ITEM_ID}`;
|
|
12064
12064
|
|
|
12065
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Get Schedule Item", API_URL, "GET",
|
|
12065
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Get Schedule Item", API_URL, "GET", undefined, undefined, DEBUG_MODE);
|
|
12066
12066
|
}
|
|
12067
12067
|
|
|
12068
12068
|
|
|
@@ -12072,7 +12072,7 @@ async function _getScheduleItems(instance, AUTH_TOKEN, URL, SCHEDULE_ID, DEBUG_M
|
|
|
12072
12072
|
{
|
|
12073
12073
|
const API_URL = `${URL}/api/admin/schedule/${SCHEDULE_ID}/items`;
|
|
12074
12074
|
|
|
12075
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Get Schedule Items", API_URL, "GET",
|
|
12075
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Get Schedule Items", API_URL, "GET", undefined, undefined, DEBUG_MODE);
|
|
12076
12076
|
}
|
|
12077
12077
|
|
|
12078
12078
|
|
|
@@ -12082,7 +12082,7 @@ async function _getSchedulePreview(instance, AUTH_TOKEN, URL, SCHEDULE_ID, DEBUG
|
|
|
12082
12082
|
{
|
|
12083
12083
|
const API_URL = `${URL}/api/admin/schedule/${SCHEDULE_ID}/preview`;
|
|
12084
12084
|
|
|
12085
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Get Schedule Preview", API_URL, "GET",
|
|
12085
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Get Schedule Preview", API_URL, "GET", undefined, undefined, DEBUG_MODE);
|
|
12086
12086
|
}
|
|
12087
12087
|
|
|
12088
12088
|
|
|
@@ -12397,7 +12397,7 @@ async function _getUserSession(instance, AUTH_TOKEN, URL, API_TYPE, USER_SESSION
|
|
|
12397
12397
|
? `${URL}/api/admin/user-session/${USER_SESSION_ID}`
|
|
12398
12398
|
: `${URL}/api/user-session/${USER_SESSION_ID}`;
|
|
12399
12399
|
|
|
12400
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Get User Session", API_URL, "GET",
|
|
12400
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Get User Session", API_URL, "GET", undefined, undefined, DEBUG_MODE);
|
|
12401
12401
|
}
|
|
12402
12402
|
|
|
12403
12403
|
|
|
@@ -12407,7 +12407,7 @@ async function _deleteUserContentAttributeData(instance, AUTH_TOKEN, URL, USER_I
|
|
|
12407
12407
|
{
|
|
12408
12408
|
const API_URL = `${URL}/api/admin/user/userContentAttribute/${USER_ID}`;
|
|
12409
12409
|
|
|
12410
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Delete User Content Attribute Data", API_URL, "DELETE",
|
|
12410
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Delete User Content Attribute Data", API_URL, "DELETE", undefined, undefined, DEBUG_MODE);
|
|
12411
12411
|
}
|
|
12412
12412
|
|
|
12413
12413
|
|
|
@@ -12417,7 +12417,7 @@ async function _deleteUserContentGroupData(instance, AUTH_TOKEN, URL, USER_ID, D
|
|
|
12417
12417
|
{
|
|
12418
12418
|
const API_URL = `${URL}/api/admin/user/contentGroup/${USER_ID}`;
|
|
12419
12419
|
|
|
12420
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Delete User Content Group Data", API_URL, "DELETE",
|
|
12420
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Delete User Content Group Data", API_URL, "DELETE", undefined, undefined, DEBUG_MODE);
|
|
12421
12421
|
}
|
|
12422
12422
|
|
|
12423
12423
|
|
|
@@ -12448,7 +12448,7 @@ async function _deleteUserData(instance, AUTH_TOKEN, URL, USER_ID, DEBUG_MODE)
|
|
|
12448
12448
|
{
|
|
12449
12449
|
const API_URL = `${URL}/api/admin/user/userData/${USER_ID}`;
|
|
12450
12450
|
|
|
12451
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Delete User Data", API_URL, "DELETE",
|
|
12451
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Delete User Data", API_URL, "DELETE", undefined, undefined, DEBUG_MODE);
|
|
12452
12452
|
}
|
|
12453
12453
|
|
|
12454
12454
|
|
|
@@ -12458,7 +12458,7 @@ async function _deleteUserDislikesData(instance, AUTH_TOKEN, URL, USER_ID, DEBUG
|
|
|
12458
12458
|
{
|
|
12459
12459
|
const API_URL = `${URL}/api/admin/user/dislike/${USER_ID}`;
|
|
12460
12460
|
|
|
12461
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Delete User Dislikes Data", API_URL, "DELETE",
|
|
12461
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Delete User Dislikes Data", API_URL, "DELETE", undefined, undefined, DEBUG_MODE);
|
|
12462
12462
|
}
|
|
12463
12463
|
|
|
12464
12464
|
|
|
@@ -12468,7 +12468,7 @@ async function _deleteUserFavoritesData(instance, AUTH_TOKEN, URL, USER_ID, DEBU
|
|
|
12468
12468
|
{
|
|
12469
12469
|
const API_URL = `${URL}/api/admin/user/favorite/${USER_ID}`;
|
|
12470
12470
|
|
|
12471
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Delete User Favorites Data", API_URL, "DELETE",
|
|
12471
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Delete User Favorites Data", API_URL, "DELETE", undefined, undefined, DEBUG_MODE);
|
|
12472
12472
|
}
|
|
12473
12473
|
|
|
12474
12474
|
|
|
@@ -12478,7 +12478,7 @@ async function _deleteUserLikesData(instance, AUTH_TOKEN, URL, USER_ID, DEBUG_MO
|
|
|
12478
12478
|
{
|
|
12479
12479
|
const API_URL = `${URL}/api/admin/user/like/${USER_ID}`;
|
|
12480
12480
|
|
|
12481
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Delete User Likes Data", API_URL, "DELETE",
|
|
12481
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Delete User Likes Data", API_URL, "DELETE", undefined, undefined, DEBUG_MODE);
|
|
12482
12482
|
}
|
|
12483
12483
|
|
|
12484
12484
|
|
|
@@ -12488,7 +12488,7 @@ async function _deleteUserSavedSearchData(instance, AUTH_TOKEN, URL, USER_ID, DE
|
|
|
12488
12488
|
{
|
|
12489
12489
|
const API_URL = `${URL}/api/admin/user/savedSearch/${USER_ID}`;
|
|
12490
12490
|
|
|
12491
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Delete User Saved Search Data", API_URL, "DELETE",
|
|
12491
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Delete User Saved Search Data", API_URL, "DELETE", undefined, undefined, DEBUG_MODE);
|
|
12492
12492
|
}
|
|
12493
12493
|
|
|
12494
12494
|
|
|
@@ -12498,7 +12498,7 @@ async function _deleteUserSessionData(instance, AUTH_TOKEN, URL, USER_ID, DEBUG_
|
|
|
12498
12498
|
{
|
|
12499
12499
|
const API_URL = `${URL}/api/admin/user/userSession/${USER_ID}`;
|
|
12500
12500
|
|
|
12501
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Delete User Session Data", API_URL, "DELETE",
|
|
12501
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Delete User Session Data", API_URL, "DELETE", undefined, undefined, DEBUG_MODE);
|
|
12502
12502
|
}
|
|
12503
12503
|
|
|
12504
12504
|
|
|
@@ -12540,7 +12540,7 @@ async function _deleteUser(instance, AUTH_TOKEN, URL, USER_ID, DEBUG_MODE)
|
|
|
12540
12540
|
{
|
|
12541
12541
|
const API_URL = `${URL}/api/admin/user/${USER_ID}`;
|
|
12542
12542
|
|
|
12543
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Delete User", API_URL, "DELETE",
|
|
12543
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Delete User", API_URL, "DELETE", undefined, undefined, DEBUG_MODE);
|
|
12544
12544
|
}
|
|
12545
12545
|
|
|
12546
12546
|
|
|
@@ -12852,7 +12852,7 @@ async function _deleteAnnotation(instance, AUTH_TOKEN, URL, ASSET_ID, ANNOTATION
|
|
|
12852
12852
|
{
|
|
12853
12853
|
const API_URL = `${URL}/api/asset/${ASSET_ID}/annotation/${ANNOTATION_ID}`;
|
|
12854
12854
|
|
|
12855
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Delete Annotation", API_URL, "DELETE",
|
|
12855
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Delete Annotation", API_URL, "DELETE", undefined, undefined, DEBUG_MODE);
|
|
12856
12856
|
}
|
|
12857
12857
|
|
|
12858
12858
|
|
|
@@ -12862,7 +12862,7 @@ async function _deleteAssetAdBreak(instance, AUTH_TOKEN, URL, ASSET_ID, AD_BREAK
|
|
|
12862
12862
|
{
|
|
12863
12863
|
const API_URL = `${URL}/api/admin/asset/${ASSET_ID}/adbreak/${AD_BREAK_ID}`;
|
|
12864
12864
|
|
|
12865
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Delete Ad Break", API_URL, "DELETE",
|
|
12865
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Delete Ad Break", API_URL, "DELETE", undefined, undefined, DEBUG_MODE);
|
|
12866
12866
|
}
|
|
12867
12867
|
|
|
12868
12868
|
|
|
@@ -12872,7 +12872,7 @@ async function _deleteAsset(instance, AUTH_TOKEN, URL, ASSET_ID, DEBUG_MODE)
|
|
|
12872
12872
|
{
|
|
12873
12873
|
const API_URL = `${URL}/api/admin/asset/${ASSET_ID}`;
|
|
12874
12874
|
|
|
12875
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Delete Asset", API_URL, "DELETE",
|
|
12875
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Delete Asset", API_URL, "DELETE", undefined, undefined, DEBUG_MODE);
|
|
12876
12876
|
}
|
|
12877
12877
|
|
|
12878
12878
|
|
|
@@ -12915,7 +12915,7 @@ async function _getAnnotations(instance, AUTH_TOKEN, URL, ASSET_ID, DEBUG_MODE)
|
|
|
12915
12915
|
{
|
|
12916
12916
|
const API_URL = `${URL}/api/asset/${ASSET_ID}/annotation`;
|
|
12917
12917
|
|
|
12918
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Get Annotations", API_URL, "GET",
|
|
12918
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Get Annotations", API_URL, "GET", undefined, undefined, DEBUG_MODE);
|
|
12919
12919
|
}
|
|
12920
12920
|
|
|
12921
12921
|
|
|
@@ -12925,7 +12925,7 @@ async function _getAssetAdBreaks(instance, AUTH_TOKEN, URL, ASSET_ID, DEBUG_MODE
|
|
|
12925
12925
|
{
|
|
12926
12926
|
const API_URL = `${URL}/api/admin/asset/${ASSET_ID}/adbreak`;
|
|
12927
12927
|
|
|
12928
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Get Asset Ad Break", API_URL, "GET",
|
|
12928
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Get Asset Ad Break", API_URL, "GET", undefined, undefined, DEBUG_MODE);
|
|
12929
12929
|
}
|
|
12930
12930
|
|
|
12931
12931
|
|
|
@@ -12945,7 +12945,7 @@ async function _getAssetChildNodes(instance, AUTH_TOKEN, URL, ID, FOLDER_ID, SOR
|
|
|
12945
12945
|
pageSize: PAGE_SIZE
|
|
12946
12946
|
};
|
|
12947
12947
|
|
|
12948
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Get Asset Child Nodes", API_URL, "GET", PARAMS,
|
|
12948
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Get Asset Child Nodes", API_URL, "GET", PARAMS, undefined, DEBUG_MODE);
|
|
12949
12949
|
}
|
|
12950
12950
|
|
|
12951
12951
|
|
|
@@ -12957,7 +12957,7 @@ async function _getAssetDetails(instance, AUTH_TOKEN, URL, ASSET_ID, API_TYPE, D
|
|
|
12957
12957
|
? `${URL}/api/admin/asset/${ASSET_ID}/detail`
|
|
12958
12958
|
: `${URL}/api/asset/${ASSET_ID}/detail`;
|
|
12959
12959
|
|
|
12960
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Get Asset Details", API_URL, "GET",
|
|
12960
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Get Asset Details", API_URL, "GET", undefined, undefined, DEBUG_MODE);
|
|
12961
12961
|
}
|
|
12962
12962
|
|
|
12963
12963
|
|
|
@@ -12970,7 +12970,7 @@ async function _getAssetManifestWithCookies(instance, AUTH_TOKEN, URL, ASSET_ID,
|
|
|
12970
12970
|
? `${URL}/api/admin/asset/${ASSET_ID}/set-cookies/${COOKIE_ID}`
|
|
12971
12971
|
: `${URL}/api/asset/${ASSET_ID}/set-cookies/${COOKIE_ID}`;
|
|
12972
12972
|
|
|
12973
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Get Asset Manifest", API_URL, "GET",
|
|
12973
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Get Asset Manifest", API_URL, "GET", undefined, undefined, DEBUG_MODE);
|
|
12974
12974
|
}
|
|
12975
12975
|
|
|
12976
12976
|
|
|
@@ -12980,7 +12980,7 @@ async function _getAssetMetadataSummary(instance, AUTH_TOKEN, URL, ASSET_ID, DEB
|
|
|
12980
12980
|
{
|
|
12981
12981
|
const API_URL = `${URL}/api/admin/asset/${ASSET_ID}/metadata-summary`;
|
|
12982
12982
|
|
|
12983
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Get Asset Metadata Summary", API_URL, "GET",
|
|
12983
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Get Asset Metadata Summary", API_URL, "GET", undefined, undefined, DEBUG_MODE);
|
|
12984
12984
|
}
|
|
12985
12985
|
|
|
12986
12986
|
|
|
@@ -12995,7 +12995,7 @@ async function _getAssetParentFolders(instance, AUTH_TOKEN, URL, ASSET_ID, PAGE_
|
|
|
12995
12995
|
"page_size": PAGE_SIZE
|
|
12996
12996
|
}
|
|
12997
12997
|
|
|
12998
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Get Parent Folders", API_URL, "GET", PARAMS,
|
|
12998
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Get Parent Folders", API_URL, "GET", PARAMS, undefined, DEBUG_MODE);
|
|
12999
12999
|
}
|
|
13000
13000
|
|
|
13001
13001
|
|
|
@@ -13006,7 +13006,7 @@ async function _getAssetScreenshotDetails(instance, AUTH_TOKEN, URL, ASSET_ID, S
|
|
|
13006
13006
|
{
|
|
13007
13007
|
const API_URL = `${URL}/api/admin/asset/${ASSET_ID}/${SEGMENT_ID}/${SCREENSHOT_ID}/detail`;
|
|
13008
13008
|
|
|
13009
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Get Asset Screenshot Details", API_URL, "GET",
|
|
13009
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Get Asset Screenshot Details", API_URL, "GET", undefined, undefined, DEBUG_MODE);
|
|
13010
13010
|
}
|
|
13011
13011
|
|
|
13012
13012
|
|
|
@@ -13016,7 +13016,7 @@ async function _getAssetSegmentDetails(instance, AUTH_TOKEN, URL, ASSET_ID, SEGM
|
|
|
13016
13016
|
{
|
|
13017
13017
|
const API_URL = `${URL}/api/admin/asset/${ASSET_ID}/${SEGMENT_ID}/detail`;
|
|
13018
13018
|
|
|
13019
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Get Asset Segment Details", API_URL, "GET",
|
|
13019
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Get Asset Segment Details", API_URL, "GET", undefined, undefined, DEBUG_MODE);
|
|
13020
13020
|
}
|
|
13021
13021
|
|
|
13022
13022
|
|
|
@@ -13026,7 +13026,7 @@ async function _getAsset(instance, AUTH_TOKEN, URL, ASSET_ID, DEBUG_MODE)
|
|
|
13026
13026
|
{
|
|
13027
13027
|
const API_URL = `${URL}/api/admin/asset/${ASSET_ID}`;
|
|
13028
13028
|
|
|
13029
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Get Asset", API_URL, "GET",
|
|
13029
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Get Asset", API_URL, "GET", undefined, undefined, DEBUG_MODE);
|
|
13030
13030
|
}
|
|
13031
13031
|
|
|
13032
13032
|
|
|
@@ -13036,7 +13036,7 @@ async function _getUserUploadParts(instance, AUTH_TOKEN, URL, UPLOAD_ID, DEBUG_M
|
|
|
13036
13036
|
{
|
|
13037
13037
|
const API_URL = `${URL}/api/admin/asset/upload/${UPLOAD_ID}`;
|
|
13038
13038
|
|
|
13039
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Get User Upload Parts", API_URL, "GET",
|
|
13039
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Get User Upload Parts", API_URL, "GET", undefined, undefined, DEBUG_MODE);
|
|
13040
13040
|
}
|
|
13041
13041
|
|
|
13042
13042
|
|
|
@@ -13046,7 +13046,7 @@ async function _getUserUploads(instance, AUTH_TOKEN, URL, INCLUDE_COMPLETED_UPLO
|
|
|
13046
13046
|
{
|
|
13047
13047
|
const API_URL = `${URL}/api/admin/asset/upload?includeCompletedUploads=${INCLUDE_COMPLETED_UPLOADS}`;
|
|
13048
13048
|
|
|
13049
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Get User Uploads", API_URL, "GET",
|
|
13049
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Get User Uploads", API_URL, "GET", undefined, undefined, DEBUG_MODE);
|
|
13050
13050
|
}
|
|
13051
13051
|
|
|
13052
13052
|
|
|
@@ -13125,7 +13125,7 @@ async function _recordsAssetTrackingBeacon(instance, AUTH_TOKEN, URL, ASSET_ID,
|
|
|
13125
13125
|
"second": SECOND
|
|
13126
13126
|
};
|
|
13127
13127
|
|
|
13128
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Records Asset Tracking Beacon", API_URL, "GET", PARAMS,
|
|
13128
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Records Asset Tracking Beacon", API_URL, "GET", PARAMS, undefined, DEBUG_MODE);
|
|
13129
13129
|
}
|
|
13130
13130
|
|
|
13131
13131
|
|
|
@@ -13447,15 +13447,15 @@ async function _deleteRelatedContent(instance, AUTH_TOKEN, URL, CONTENT_ID, RELA
|
|
|
13447
13447
|
}
|
|
13448
13448
|
|
|
13449
13449
|
|
|
13450
|
-
|
|
13451
|
-
|
|
13452
|
-
async function _deleteTagOrCollection(instance, AUTH_TOKEN, URL, TYPE, TAG_ID, DEBUG_MODE)
|
|
13453
|
-
{
|
|
13454
|
-
const API_URL = `${URL}/api/admin/${TYPE}/${TAG_ID}`;
|
|
13455
|
-
|
|
13456
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Delete Tag or Collection", API_URL, "DELETE",
|
|
13457
|
-
}
|
|
13458
|
-
|
|
13450
|
+
|
|
13451
|
+
|
|
13452
|
+
async function _deleteTagOrCollection(instance, AUTH_TOKEN, URL, TYPE, TAG_ID, DEBUG_MODE)
|
|
13453
|
+
{
|
|
13454
|
+
const API_URL = `${URL}/api/admin/${TYPE}/${TAG_ID}`;
|
|
13455
|
+
|
|
13456
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Delete Tag or Collection", API_URL, "DELETE", undefined, undefined, DEBUG_MODE);
|
|
13457
|
+
}
|
|
13458
|
+
|
|
13459
13459
|
|
|
13460
13460
|
|
|
13461
13461
|
|
|
@@ -13463,7 +13463,7 @@ async function _getTagOrCollection(instance, AUTH_TOKEN, URL, TYPE, ID, DEBUG_MO
|
|
|
13463
13463
|
{
|
|
13464
13464
|
const API_URL = `${URL}/api/admin/${TYPE}/${ID}`;
|
|
13465
13465
|
|
|
13466
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Getting Tag or Collection", API_URL, "GET",
|
|
13466
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Getting Tag or Collection", API_URL, "GET", undefined, undefined, DEBUG_MODE);
|
|
13467
13467
|
}
|
|
13468
13468
|
|
|
13469
13469
|
|
|
@@ -13652,8 +13652,8 @@ async function _sendRequest(instance, AUTH_TOKEN, FUNCTION_NAME, URL, METHOD_TYP
|
|
|
13652
13652
|
method: METHOD_TYPE,
|
|
13653
13653
|
url: URL,
|
|
13654
13654
|
headers: HEADERS,
|
|
13655
|
-
params: PARAMS
|
|
13656
|
-
data: BODY
|
|
13655
|
+
params: PARAMS,
|
|
13656
|
+
data: BODY,
|
|
13657
13657
|
timeout: TIMEOUT
|
|
13658
13658
|
});
|
|
13659
13659
|
|
|
@@ -13674,7 +13674,7 @@ async function _sendRequest(instance, AUTH_TOKEN, FUNCTION_NAME, URL, METHOD_TYP
|
|
|
13674
13674
|
}
|
|
13675
13675
|
else if (error.code === 'ECONNABORTED')
|
|
13676
13676
|
{
|
|
13677
|
-
await _sleep(SLEEP_TIME **
|
|
13677
|
+
await _sleep(SLEEP_TIME * 2 ** (retries - 1));
|
|
13678
13678
|
}
|
|
13679
13679
|
else
|
|
13680
13680
|
{
|
|
@@ -13757,7 +13757,7 @@ async function _getCountries(instance, AUTH_TOKEN, URL, DEBUG_MODE)
|
|
|
13757
13757
|
const editedUrl = URL.replace(/https:\/\/(.+?)\./, 'https://').replace(/\/[^/]+$/, '');
|
|
13758
13758
|
const API_URL = `${editedUrl}/config/ea1d7060-6291-46b8-9468-135e7b94021b/lookups.json`
|
|
13759
13759
|
|
|
13760
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Get countries", API_URL, "GET",
|
|
13760
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Get countries", API_URL, "GET", undefined, undefined, DEBUG_MODE);
|
|
13761
13761
|
}
|
|
13762
13762
|
|
|
13763
13763
|
|
|
@@ -13768,7 +13768,7 @@ async function _getStates(instance, AUTH_TOKEN, URL, DEBUG_MODE)
|
|
|
13768
13768
|
const editedUrl = URL.replace(/https:\/\/(.+?)\./, 'https://').replace(/\/[^/]+$/, '');
|
|
13769
13769
|
const API_URL = `${editedUrl}/config/ea1d7060-6291-46b8-9468-135e7b94021b/lookups.json`
|
|
13770
13770
|
|
|
13771
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Get countries", API_URL, "GET",
|
|
13771
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Get countries", API_URL, "GET", undefined, undefined, DEBUG_MODE);
|
|
13772
13772
|
}
|
|
13773
13773
|
|
|
13774
13774
|
|
|
@@ -13778,7 +13778,7 @@ async function _getUser(instance, AUTH_TOKEN, URL, DEBUG_MODE)
|
|
|
13778
13778
|
{
|
|
13779
13779
|
const API_URL = `${URL}/api/account/user`;
|
|
13780
13780
|
|
|
13781
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Get user", API_URL, "GET",
|
|
13781
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Get user", API_URL, "GET", undefined, undefined, DEBUG_MODE);
|
|
13782
13782
|
}
|
|
13783
13783
|
|
|
13784
13784
|
|
|
@@ -13862,35 +13862,35 @@ async function _createContentGroup(instance, AUTH_TOKEN, URL, NAME, DEBUG_MODE)
|
|
|
13862
13862
|
}
|
|
13863
13863
|
|
|
13864
13864
|
|
|
13865
|
-
|
|
13866
|
-
|
|
13867
|
-
async function _deleteContentGroup(instance, AUTH_TOKEN, URL, CONTENT_GROUP_ID, DEBUG_MODE)
|
|
13868
|
-
{
|
|
13869
|
-
const API_URL = `${URL}/api/contentgroup/${CONTENT_GROUP_ID}`;
|
|
13870
|
-
|
|
13871
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Delete Content Group", API_URL, "DELETE", null, null, DEBUG_MODE);
|
|
13872
|
-
}
|
|
13873
|
-
|
|
13874
13865
|
|
|
13875
|
-
|
|
13876
|
-
|
|
13877
|
-
async function _getContentGroup(instance, AUTH_TOKEN, URL, ID, DEBUG_MODE)
|
|
13878
|
-
{
|
|
13879
|
-
const API_URL = `${URL}/api/contentgroup/${ID}`;
|
|
13880
|
-
|
|
13881
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Get Content Group", API_URL, "GET", null, null, DEBUG_MODE);
|
|
13882
|
-
}
|
|
13883
|
-
|
|
13884
13866
|
|
|
13885
|
-
|
|
13886
|
-
|
|
13887
|
-
|
|
13888
|
-
|
|
13889
|
-
|
|
13890
|
-
|
|
13891
|
-
|
|
13892
|
-
|
|
13893
|
-
|
|
13867
|
+
async function _deleteContentGroup(instance, AUTH_TOKEN, URL, CONTENT_GROUP_ID, DEBUG_MODE)
|
|
13868
|
+
{
|
|
13869
|
+
const API_URL = `${URL}/api/contentgroup/${CONTENT_GROUP_ID}`;
|
|
13870
|
+
|
|
13871
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Delete Content Group", API_URL, "DELETE", undefined, undefined, DEBUG_MODE);
|
|
13872
|
+
}
|
|
13873
|
+
|
|
13874
|
+
|
|
13875
|
+
|
|
13876
|
+
|
|
13877
|
+
async function _getContentGroup(instance, AUTH_TOKEN, URL, ID, DEBUG_MODE)
|
|
13878
|
+
{
|
|
13879
|
+
const API_URL = `${URL}/api/contentgroup/${ID}`;
|
|
13880
|
+
|
|
13881
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Get Content Group", API_URL, "GET", undefined, undefined, DEBUG_MODE);
|
|
13882
|
+
}
|
|
13883
|
+
|
|
13884
|
+
|
|
13885
|
+
|
|
13886
|
+
|
|
13887
|
+
async function _getContentGroups(instance, AUTH_TOKEN, URL, DEBUG_MODE)
|
|
13888
|
+
{
|
|
13889
|
+
const API_URL = `${URL}/api/contentgroup`;
|
|
13890
|
+
|
|
13891
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Get Content Groups", API_URL, "GET", undefined, undefined, DEBUG_MODE);
|
|
13892
|
+
}
|
|
13893
|
+
|
|
13894
13894
|
|
|
13895
13895
|
|
|
13896
13896
|
|
|
@@ -14081,7 +14081,7 @@ async function _deleteMediaBuilderItem(instance, AUTH_TOKEN, URL, ID, ITEM_ID, D
|
|
|
14081
14081
|
{
|
|
14082
14082
|
const API_URL = `${URL}/api/mediaBuilder/${ID}/items/${ITEM_ID}`;
|
|
14083
14083
|
|
|
14084
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Delete Media Builder Item", API_URL, "DELETE",
|
|
14084
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Delete Media Builder Item", API_URL, "DELETE", undefined, undefined, DEBUG_MODE);
|
|
14085
14085
|
}
|
|
14086
14086
|
|
|
14087
14087
|
|
|
@@ -14091,7 +14091,7 @@ async function _deleteMediaBuilder(instance, AUTH_TOKEN, URL, ID, DEBUG_MODE)
|
|
|
14091
14091
|
{
|
|
14092
14092
|
const API_URL = `${URL}/api/mediaBuilder/${ID}`;
|
|
14093
14093
|
|
|
14094
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Delete Media Builder", API_URL, "DELETE",
|
|
14094
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Delete Media Builder", API_URL, "DELETE", undefined, undefined, DEBUG_MODE);
|
|
14095
14095
|
}
|
|
14096
14096
|
|
|
14097
14097
|
|
|
@@ -14121,7 +14121,7 @@ async function _getMediaBuilderIdsFromAsset(instance, AUTH_TOKEN, URL, SOURCE_AS
|
|
|
14121
14121
|
|
|
14122
14122
|
const API_URL = `${URL}/api/mediaBuilder/idsbysource/${SOURCE_ASSET_ID}`;
|
|
14123
14123
|
|
|
14124
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Get Media Builder Ids From Asset", API_URL, "GET",
|
|
14124
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Get Media Builder Ids From Asset", API_URL, "GET", undefined, undefined, DEBUG_MODE);
|
|
14125
14125
|
}
|
|
14126
14126
|
|
|
14127
14127
|
|
|
@@ -14131,7 +14131,7 @@ async function _getMediaBuilderItems(instance, AUTH_TOKEN, URL, ID, DEBUG_MODE)
|
|
|
14131
14131
|
{
|
|
14132
14132
|
const API_URL = `${URL}/api/mediaBuilder/${ID}/items`;
|
|
14133
14133
|
|
|
14134
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Get Media Builder Items", API_URL, "GET",
|
|
14134
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Get Media Builder Items", API_URL, "GET", undefined, undefined, DEBUG_MODE);
|
|
14135
14135
|
}
|
|
14136
14136
|
|
|
14137
14137
|
|
|
@@ -14141,7 +14141,7 @@ async function _getMediaBuilder(instance, AUTH_TOKEN, URL, ID, DEBUG_MODE)
|
|
|
14141
14141
|
{
|
|
14142
14142
|
const API_URL = `${URL}/api/mediaBuilder/${ID}`;
|
|
14143
14143
|
|
|
14144
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Get Media Builder", API_URL, "GET",
|
|
14144
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Get Media Builder", API_URL, "GET", undefined, undefined, DEBUG_MODE);
|
|
14145
14145
|
}
|
|
14146
14146
|
|
|
14147
14147
|
|
|
@@ -14151,7 +14151,7 @@ async function _getMediaBuilders(instance, AUTH_TOKEN, URL, DEBUG_MODE)
|
|
|
14151
14151
|
{
|
|
14152
14152
|
const API_URL = `${URL}/api/mediaBuilder`;
|
|
14153
14153
|
|
|
14154
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Get Media Builders", API_URL, "GET",
|
|
14154
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Get Media Builders", API_URL, "GET", undefined, undefined, DEBUG_MODE);
|
|
14155
14155
|
}
|
|
14156
14156
|
|
|
14157
14157
|
|
|
@@ -14245,7 +14245,7 @@ async function _getContentCookies(instance, AUTH_TOKEN, URL, ID, DEBUG_MODE)
|
|
|
14245
14245
|
{
|
|
14246
14246
|
const API_URL = `${URL}/api/media/set-cookies/${ID}`;
|
|
14247
14247
|
|
|
14248
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Get Content Cookies", API_URL, "GET",
|
|
14248
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Get Content Cookies", API_URL, "GET", undefined, undefined, DEBUG_MODE);
|
|
14249
14249
|
}
|
|
14250
14250
|
|
|
14251
14251
|
|
|
@@ -14255,7 +14255,7 @@ async function _getDefaultSiteConfig(instance, AUTH_TOKEN, URL, DEBUG_MODE)
|
|
|
14255
14255
|
{
|
|
14256
14256
|
const API_URL = `${URL}/api/media/config`;
|
|
14257
14257
|
|
|
14258
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Get Default Site Config", API_URL, "GET",
|
|
14258
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Get Default Site Config", API_URL, "GET", undefined, undefined, DEBUG_MODE);
|
|
14259
14259
|
}
|
|
14260
14260
|
|
|
14261
14261
|
|
|
@@ -14265,7 +14265,7 @@ async function _getDynamicContent(instance, AUTH_TOKEN, URL, ID, DEBUG_MODE)
|
|
|
14265
14265
|
{
|
|
14266
14266
|
const API_URL = `${URL}/api/media/content/${ID}`;
|
|
14267
14267
|
|
|
14268
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Get Dynamic Content", API_URL, "GET",
|
|
14268
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Get Dynamic Content", API_URL, "GET", undefined, undefined, DEBUG_MODE);
|
|
14269
14269
|
}
|
|
14270
14270
|
|
|
14271
14271
|
|
|
@@ -14275,7 +14275,7 @@ async function _getDynamicContents(instance, AUTH_TOKEN, URL, DEBUG_MODE)
|
|
|
14275
14275
|
{
|
|
14276
14276
|
const API_URL = `${URL}/api/media/content`;
|
|
14277
14277
|
|
|
14278
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Get Dynamic Contents", API_URL, "GET",
|
|
14278
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Get Dynamic Contents", API_URL, "GET", undefined, undefined, DEBUG_MODE);
|
|
14279
14279
|
}
|
|
14280
14280
|
|
|
14281
14281
|
|
|
@@ -14285,7 +14285,7 @@ async function _getMediaGroup(instance, AUTH_TOKEN, URL, ID, DEBUG_MODE)
|
|
|
14285
14285
|
{
|
|
14286
14286
|
const API_URL = `${URL}/api/media/group/${ID}`;
|
|
14287
14287
|
|
|
14288
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Get Media Group", API_URL, "GET",
|
|
14288
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Get Media Group", API_URL, "GET", undefined, undefined, DEBUG_MODE);
|
|
14289
14289
|
}
|
|
14290
14290
|
|
|
14291
14291
|
|
|
@@ -14295,7 +14295,7 @@ async function _getMediaItem(instance, AUTH_TOKEN, URL, ID, DEBUG_MODE)
|
|
|
14295
14295
|
{
|
|
14296
14296
|
const API_URL = `${URL}/api/media/item/${ID}`;
|
|
14297
14297
|
|
|
14298
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Get Media Item", API_URL, "GET",
|
|
14298
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Get Media Item", API_URL, "GET", undefined, undefined, DEBUG_MODE);
|
|
14299
14299
|
}
|
|
14300
14300
|
|
|
14301
14301
|
|
|
@@ -14305,7 +14305,7 @@ async function _getMyContent(instance, AUTH_TOKEN, URL, DEBUG_MODE)
|
|
|
14305
14305
|
{
|
|
14306
14306
|
const API_URL = `${URL}/api/media/my-content`;
|
|
14307
14307
|
|
|
14308
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Get My Content", API_URL, "GET",
|
|
14308
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Get My Content", API_URL, "GET", undefined, undefined, DEBUG_MODE);
|
|
14309
14309
|
}
|
|
14310
14310
|
|
|
14311
14311
|
|
|
@@ -14315,7 +14315,7 @@ async function _getMyGroup(instance, AUTH_TOKEN, URL, ID, DEBUG_MODE)
|
|
|
14315
14315
|
{
|
|
14316
14316
|
const API_URL = `${URL}/api/media/my-group/${ID}`;
|
|
14317
14317
|
|
|
14318
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Get My Group", API_URL, "GET",
|
|
14318
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Get My Group", API_URL, "GET", undefined, undefined, DEBUG_MODE);
|
|
14319
14319
|
}
|
|
14320
14320
|
|
|
14321
14321
|
|
|
@@ -14325,7 +14325,7 @@ async function _getSiteConfig(instance, AUTH_TOKEN, URL, ID, DEBUG_MODE)
|
|
|
14325
14325
|
{
|
|
14326
14326
|
const API_URL = `${URL}/api/media/config/${ID}`;
|
|
14327
14327
|
|
|
14328
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Get Site Config", API_URL, "GET",
|
|
14328
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Get Site Config", API_URL, "GET", undefined, undefined, DEBUG_MODE);
|
|
14329
14329
|
}
|
|
14330
14330
|
|
|
14331
14331
|
|
|
@@ -14389,7 +14389,7 @@ async function _deleteSavedSearch(instance, AUTH_TOKEN, URL, ID, DEBUG_MODE)
|
|
|
14389
14389
|
{
|
|
14390
14390
|
const API_URL = `${URL}/api/portal/savedsearch/${ID}`;
|
|
14391
14391
|
|
|
14392
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Delete Saved Search", API_URL, "DELETE",
|
|
14392
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Delete Saved Search", API_URL, "DELETE", undefined, undefined, DEBUG_MODE);
|
|
14393
14393
|
}
|
|
14394
14394
|
|
|
14395
14395
|
|
|
@@ -14399,7 +14399,7 @@ async function _getSavedSearch(instance, AUTH_TOKEN, URL, ID, DEBUG_MODE)
|
|
|
14399
14399
|
{
|
|
14400
14400
|
const API_URL = `${URL}/api/portal/savedsearch/${ID}`;
|
|
14401
14401
|
|
|
14402
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Get Saved Search", API_URL, "GET",
|
|
14402
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Get Saved Search", API_URL, "GET", undefined, undefined, DEBUG_MODE);
|
|
14403
14403
|
}
|
|
14404
14404
|
|
|
14405
14405
|
|
|
@@ -14409,7 +14409,7 @@ async function _getSavedSearches(instance, AUTH_TOKEN, URL, DEBUG_MODE)
|
|
|
14409
14409
|
{
|
|
14410
14410
|
const API_URL = `${URL}/api/portal/savedsearch`;
|
|
14411
14411
|
|
|
14412
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Get Saved Searchs", API_URL, "GET",
|
|
14412
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Get Saved Searchs", API_URL, "GET", undefined, undefined, DEBUG_MODE);
|
|
14413
14413
|
}
|
|
14414
14414
|
|
|
14415
14415
|
|
|
@@ -14419,7 +14419,7 @@ async function _getSearchSavedById(instance, AUTH_TOKEN, URL, ID, DEBUG_MODE)
|
|
|
14419
14419
|
{
|
|
14420
14420
|
const API_URL = `${URL}/api/portal/search-saved/${ID}`;
|
|
14421
14421
|
|
|
14422
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Get Search Saved By Id", API_URL, "GET",
|
|
14422
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Get Search Saved By Id", API_URL, "GET", undefined, undefined, DEBUG_MODE);
|
|
14423
14423
|
}
|
|
14424
14424
|
|
|
14425
14425
|
|
|
@@ -14506,18 +14506,18 @@ async function _updateSavedSearch(instance, AUTH_TOKEN, URL, ID, NAME, FEATURED,
|
|
|
14506
14506
|
}
|
|
14507
14507
|
|
|
14508
14508
|
|
|
14509
|
-
|
|
14510
|
-
|
|
14511
|
-
async function _getVideoTracking(instance, AUTH_TOKEN, URL, ASSET_ID, TRACKING_EVENT, SECOND, DEBUG_MODE)
|
|
14512
|
-
{
|
|
14513
|
-
const API_URL = `${URL}/api/asset/tracking?assetId=${ASSET_ID}`
|
|
14514
|
-
|
|
14515
|
-
const PARAMS = {
|
|
14516
|
-
event: TRACKING_EVENT,
|
|
14517
|
-
second: SECOND
|
|
14518
|
-
}
|
|
14519
|
-
|
|
14520
|
-
return await _sendRequest(instance, AUTH_TOKEN, "Get Video Tracking", API_URL, "GET", PARAMS,
|
|
14521
|
-
}
|
|
14522
|
-
|
|
14523
|
-
|
|
14509
|
+
|
|
14510
|
+
|
|
14511
|
+
async function _getVideoTracking(instance, AUTH_TOKEN, URL, ASSET_ID, TRACKING_EVENT, SECOND, DEBUG_MODE)
|
|
14512
|
+
{
|
|
14513
|
+
const API_URL = `${URL}/api/asset/tracking?assetId=${ASSET_ID}`
|
|
14514
|
+
|
|
14515
|
+
const PARAMS = {
|
|
14516
|
+
event: TRACKING_EVENT,
|
|
14517
|
+
second: SECOND
|
|
14518
|
+
}
|
|
14519
|
+
|
|
14520
|
+
return await _sendRequest(instance, AUTH_TOKEN, "Get Video Tracking", API_URL, "GET", PARAMS, undefined, DEBUG_MODE);
|
|
14521
|
+
}
|
|
14522
|
+
|
|
14523
|
+
|