@beam3_dev/api_module 0.0.106 → 0.0.108
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/wb3Api.js +262 -262
- package/dist/wb3Api.js.map +1 -1
- package/dist/wb3Api.umd.cjs +4 -4
- package/dist/wb3Api.umd.cjs.map +1 -1
- package/package.json +1 -1
package/dist/wb3Api.js
CHANGED
|
@@ -44,10 +44,10 @@ async function ce(e, t = void 0, n = void 0) {
|
|
|
44
44
|
Accept: "application/json"
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
).then((
|
|
48
|
-
t && t(
|
|
49
|
-
}).catch((
|
|
50
|
-
n && n(
|
|
47
|
+
).then((i) => i.json()).then((i) => {
|
|
48
|
+
t && t(i);
|
|
49
|
+
}).catch((i) => {
|
|
50
|
+
n && n(i), console.error("Erreur : " + i);
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
53
|
async function de(e, t = void 0, n = void 0) {
|
|
@@ -67,9 +67,9 @@ async function de(e, t = void 0, n = void 0) {
|
|
|
67
67
|
}
|
|
68
68
|
async function le(e, t = L) {
|
|
69
69
|
let n = N.now().year;
|
|
70
|
-
const s = e,
|
|
70
|
+
const s = e, i = [], r = (a) => {
|
|
71
71
|
for (let c in a)
|
|
72
|
-
|
|
72
|
+
i.push({ date: c, comment: a[c] });
|
|
73
73
|
};
|
|
74
74
|
for (let a = n; a <= n + 1; a++)
|
|
75
75
|
await fetch(
|
|
@@ -87,7 +87,7 @@ async function le(e, t = L) {
|
|
|
87
87
|
const a = s.length === 0 ? {
|
|
88
88
|
events: []
|
|
89
89
|
} : s;
|
|
90
|
-
for (let c of
|
|
90
|
+
for (let c of i)
|
|
91
91
|
a.events.findIndex(
|
|
92
92
|
(l) => l.start === N.fromISO(c.date).toISODate() && l.name === "Férié : " + c.comment
|
|
93
93
|
) === -1 && a.events.push({
|
|
@@ -101,8 +101,8 @@ async function le(e, t = L) {
|
|
|
101
101
|
})();
|
|
102
102
|
}
|
|
103
103
|
async function pe(e, t, n = !0) {
|
|
104
|
-
const s = e.events.findIndex((
|
|
105
|
-
return s === -1 ? e.events.push(t) : n ? e.events[s] = t : e.events.splice(s, 1), e.length > 0 && e.sort((
|
|
104
|
+
const s = e.events.findIndex((i) => i.uuid === t.uuid);
|
|
105
|
+
return s === -1 ? e.events.push(t) : n ? e.events[s] = t : e.events.splice(s, 1), e.length > 0 && e.sort((i, r) => i.start - r.start), e;
|
|
106
106
|
}
|
|
107
107
|
function f(e, t) {
|
|
108
108
|
O(["DS/WAFData/WAFData"], (n) => {
|
|
@@ -150,13 +150,13 @@ async function ge(e, t = void 0, n = void 0) {
|
|
|
150
150
|
function J() {
|
|
151
151
|
let e = {};
|
|
152
152
|
return O(["DS/PlatformAPI/PlatformAPI"], (t) => {
|
|
153
|
-
const n = t.getTenant(), s = t.getUser(),
|
|
153
|
+
const n = t.getTenant(), s = t.getUser(), i = t.getAllApplicationConfigurations(), r = t.getApplicationConfiguration(
|
|
154
154
|
"com.3ds.wp.passport.cors"
|
|
155
155
|
);
|
|
156
156
|
e = {
|
|
157
157
|
tenant: n,
|
|
158
158
|
user: s,
|
|
159
|
-
appsConfiguration:
|
|
159
|
+
appsConfiguration: i,
|
|
160
160
|
appConf: r
|
|
161
161
|
};
|
|
162
162
|
}), console.log("%cRETOUR API :", "color:blue", e), e;
|
|
@@ -165,18 +165,18 @@ function E(e, t = void 0, n = void 0) {
|
|
|
165
165
|
if (e.tenant) {
|
|
166
166
|
const s = `https://${e.tenant}-eu1-apps.3dexperience.3ds.com/enovia/resources/AppsMngt/api/v1/services?tenant=${e.tenant}&cors=true&xrequestedwith=xmlhttprequest`;
|
|
167
167
|
f(s, {
|
|
168
|
-
onComplete(
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
const i = r.platforms.find((a) => {
|
|
168
|
+
onComplete(i) {
|
|
169
|
+
const r = typeof i == "string" ? JSON.parse(i) : i;
|
|
170
|
+
if (console.log("_getServiceUrl", r), r && "platforms" in r) {
|
|
171
|
+
const o = r.platforms.find((a) => {
|
|
173
172
|
a.id, e.tenant.toUpperCase();
|
|
174
173
|
});
|
|
175
|
-
t &&
|
|
176
|
-
}
|
|
174
|
+
t && o ? t(o) : n && n("_getServiceUrl return listServiceUrl = undefined");
|
|
175
|
+
} else
|
|
176
|
+
n && n("_getServiceUrl return oResponse = undefined");
|
|
177
177
|
},
|
|
178
|
-
onFailure(
|
|
179
|
-
n && n(
|
|
178
|
+
onFailure(i) {
|
|
179
|
+
n && n(i);
|
|
180
180
|
}
|
|
181
181
|
});
|
|
182
182
|
}
|
|
@@ -185,15 +185,15 @@ function he(e, t = void 0, n = void 0) {
|
|
|
185
185
|
if (e.tenant) {
|
|
186
186
|
const s = `https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dpassport&platformId=${e.tenant}`;
|
|
187
187
|
f(s, {
|
|
188
|
-
onComplete(
|
|
189
|
-
const r = JSON.parse(
|
|
188
|
+
onComplete(i) {
|
|
189
|
+
const r = JSON.parse(i);
|
|
190
190
|
if (console.log("serviceId=3dpassport", r), Array.isArray(r) && r.length > 0) {
|
|
191
|
-
const
|
|
192
|
-
t && t(
|
|
191
|
+
const o = `${r[0].services[0].url}`;
|
|
192
|
+
t && t(o);
|
|
193
193
|
}
|
|
194
194
|
},
|
|
195
|
-
onFailure(
|
|
196
|
-
n && n(
|
|
195
|
+
onFailure(i) {
|
|
196
|
+
n && n(i);
|
|
197
197
|
}
|
|
198
198
|
});
|
|
199
199
|
}
|
|
@@ -204,49 +204,49 @@ function Se(e, t, n) {
|
|
|
204
204
|
uri: "/resources/AppsMngt/api/custom/applications",
|
|
205
205
|
option: `?filter=${e.tenant}`
|
|
206
206
|
// facultatif
|
|
207
|
-
},
|
|
208
|
-
f(
|
|
207
|
+
}, i = `${s.base}${s.uri}${s.option}`;
|
|
208
|
+
f(i, {
|
|
209
209
|
method: "GET",
|
|
210
210
|
headers: {
|
|
211
211
|
"Content-Type": "application/json",
|
|
212
212
|
Accept: "application/json"
|
|
213
213
|
},
|
|
214
|
-
onComplete(r,
|
|
214
|
+
onComplete(r, o, a) {
|
|
215
215
|
const c = JSON.parse(r), d = c.data.map((l) => {
|
|
216
216
|
const p = l.attributes.name, u = l.id;
|
|
217
217
|
return { name: p, id: u };
|
|
218
218
|
});
|
|
219
219
|
t && t(d, c);
|
|
220
220
|
},
|
|
221
|
-
onFailure(r,
|
|
221
|
+
onFailure(r, o) {
|
|
222
222
|
const a = r;
|
|
223
|
-
a.msg =
|
|
223
|
+
a.msg = o.errormsg, a.errCode = o.errorcode, n && n(a);
|
|
224
224
|
}
|
|
225
225
|
});
|
|
226
226
|
}
|
|
227
227
|
function _e(e, t = void 0, n = void 0) {
|
|
228
228
|
let s = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&limit=-1`;
|
|
229
229
|
f(s, {
|
|
230
|
-
onComplete(
|
|
231
|
-
const a = JSON.parse(
|
|
230
|
+
onComplete(i, r, o) {
|
|
231
|
+
const a = JSON.parse(i);
|
|
232
232
|
console.log("_AppMngt_get_users => ", a), t && t(a);
|
|
233
233
|
},
|
|
234
|
-
onFailure(
|
|
235
|
-
const
|
|
236
|
-
|
|
234
|
+
onFailure(i, r) {
|
|
235
|
+
const o = i;
|
|
236
|
+
o.msg = r.errormsg, o.errCode = r.errorcode, n && n(o);
|
|
237
237
|
}
|
|
238
238
|
});
|
|
239
239
|
}
|
|
240
240
|
function ye(e, t, n = void 0, s = void 0) {
|
|
241
|
-
let
|
|
242
|
-
f(
|
|
243
|
-
onComplete(r,
|
|
241
|
+
let i = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&id=${t}`;
|
|
242
|
+
f(i, {
|
|
243
|
+
onComplete(r, o, a) {
|
|
244
244
|
const c = JSON.parse(r);
|
|
245
245
|
n && n(c);
|
|
246
246
|
},
|
|
247
|
-
onFailure(r,
|
|
247
|
+
onFailure(r, o) {
|
|
248
248
|
const a = r;
|
|
249
|
-
a.msg =
|
|
249
|
+
a.msg = o.errormsg, a.errCode = o.errorcode, s && s(a);
|
|
250
250
|
}
|
|
251
251
|
});
|
|
252
252
|
}
|
|
@@ -255,7 +255,7 @@ const F = {
|
|
|
255
255
|
Accept: "application/json,text/javascript,*/*"
|
|
256
256
|
};
|
|
257
257
|
function we(e, t, n = void 0, s = void 0) {
|
|
258
|
-
const { space:
|
|
258
|
+
const { space: i, currentUser: r } = e, a = `${i}${{
|
|
259
259
|
URIUGr: "/3drdfpersist/resources/v1/usersgroup"
|
|
260
260
|
}.URIUGr}`, c = {
|
|
261
261
|
groups: [
|
|
@@ -284,7 +284,7 @@ function we(e, t, n = void 0, s = void 0) {
|
|
|
284
284
|
});
|
|
285
285
|
}
|
|
286
286
|
function Ce(e, t, n = void 0, s = void 0) {
|
|
287
|
-
const { space:
|
|
287
|
+
const { space: i, tenant: r } = e, o = i, a = `/3drdfpersist/v1/resources/${t}`, c = `?$mask=dsaccess:Mask.GroupUI.Properties&tenant=dstenant:${r}`, d = `${o}${a}${c}`;
|
|
288
288
|
f(d, {
|
|
289
289
|
opts: {
|
|
290
290
|
method: "GET",
|
|
@@ -303,10 +303,10 @@ function Ce(e, t, n = void 0, s = void 0) {
|
|
|
303
303
|
});
|
|
304
304
|
}
|
|
305
305
|
function G(e, t = void 0, n = void 0) {
|
|
306
|
-
const { space: s, tenant:
|
|
306
|
+
const { space: s, tenant: i } = e, r = s, o = "/3drdfpersist/resources/v1/option-sets/dsusergroup:ListOfGroupResponsibilities/options", a = `?tenant=dstenant:${i}`, c = {
|
|
307
307
|
method: "GET",
|
|
308
308
|
Accept: "application/json,*/*,test/javascript"
|
|
309
|
-
}, d = `${r}${
|
|
309
|
+
}, d = `${r}${o}${a}`;
|
|
310
310
|
f(d, {
|
|
311
311
|
OPTsH: c,
|
|
312
312
|
onComplete(l) {
|
|
@@ -319,7 +319,7 @@ function G(e, t = void 0, n = void 0) {
|
|
|
319
319
|
});
|
|
320
320
|
}
|
|
321
321
|
function Te(e, t = void 0, n = void 0) {
|
|
322
|
-
const { space: s, currentUser:
|
|
322
|
+
const { space: s, currentUser: i } = e, a = `${s}/3drdfpersist/resources/v1/usersgroup?select=uri,title,description,owner,members,pending_members,creation_date,modification_date,visibility`, d = { method: "GET", headers: {
|
|
323
323
|
"Content-Type": "application/json",
|
|
324
324
|
Accept: "application/json,text/javascript,*/*"
|
|
325
325
|
} };
|
|
@@ -328,8 +328,8 @@ function Te(e, t = void 0, n = void 0) {
|
|
|
328
328
|
opts: d,
|
|
329
329
|
onComplete(l) {
|
|
330
330
|
const p = JSON.parse(l), u = {}, m = p.groups.filter((g) => g.uri.startsWith("uuid:"));
|
|
331
|
-
if (
|
|
332
|
-
const g = m.filter((_) => _.owner ===
|
|
331
|
+
if (i && Object.keys(i).length > 0) {
|
|
332
|
+
const g = m.filter((_) => _.owner === i.email), h = m.filter((_) => _.members.includes(i.email)), S = g.concat(h);
|
|
333
333
|
u.iam = S, u.UG = m, u.iamMember = h, G(
|
|
334
334
|
e,
|
|
335
335
|
(_) => {
|
|
@@ -350,20 +350,20 @@ function Te(e, t = void 0, n = void 0) {
|
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
352
|
function Oe(e, t) {
|
|
353
|
-
const { space: n } = e,
|
|
354
|
-
f(
|
|
353
|
+
const { space: n } = e, i = `${n}/3drdfpersist/resources/v1/usersgroup/${t}`;
|
|
354
|
+
f(i, {
|
|
355
355
|
method: "DELETE"
|
|
356
356
|
});
|
|
357
357
|
}
|
|
358
|
-
function be(e, t, n, s = void 0,
|
|
359
|
-
const { space: r, tenant:
|
|
358
|
+
function be(e, t, n, s = void 0, i = void 0) {
|
|
359
|
+
const { space: r, tenant: o } = e, a = {
|
|
360
360
|
URITI: "/3drdfpersist/resources/v1/template-instances",
|
|
361
361
|
URIUGr: "/3drdfpersist/resources/v1/usersgroup",
|
|
362
362
|
nextURICh: "/characteristics",
|
|
363
363
|
nextURIGr: "/group",
|
|
364
364
|
nexURImem: "/members",
|
|
365
365
|
OPTsTI: "?$mask=dsaccess:Mask.GroupUI.Properties",
|
|
366
|
-
OPTsTenant: `tenant=dstenant:${
|
|
366
|
+
OPTsTenant: `tenant=dstenant:${o}`
|
|
367
367
|
}, c = n, d = `${r}${a.URIUGr}/${t}`, l = JSON.stringify(c);
|
|
368
368
|
f(d, {
|
|
369
369
|
headers: F,
|
|
@@ -374,11 +374,11 @@ function be(e, t, n, s = void 0, o = void 0) {
|
|
|
374
374
|
s && s(p);
|
|
375
375
|
},
|
|
376
376
|
onFailure(p) {
|
|
377
|
-
|
|
377
|
+
i && i(p);
|
|
378
378
|
}
|
|
379
379
|
});
|
|
380
380
|
}
|
|
381
|
-
function Ne(e, t, n, s = void 0,
|
|
381
|
+
function Ne(e, t, n, s = void 0, i = void 0) {
|
|
382
382
|
const { space: r } = e, a = `${r}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
|
|
383
383
|
f(a, {
|
|
384
384
|
method: "PATCH",
|
|
@@ -389,13 +389,13 @@ function Ne(e, t, n, s = void 0, o = void 0) {
|
|
|
389
389
|
s && s(d);
|
|
390
390
|
},
|
|
391
391
|
onFailure(d) {
|
|
392
|
-
|
|
392
|
+
i && i(d);
|
|
393
393
|
}
|
|
394
394
|
});
|
|
395
395
|
}
|
|
396
396
|
function ke(e, t, n = void 0, s = void 0) {
|
|
397
|
-
const { space:
|
|
398
|
-
f(
|
|
397
|
+
const { space: i } = e, o = `${i}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
|
|
398
|
+
f(o, {
|
|
399
399
|
opts: {
|
|
400
400
|
method: "GET",
|
|
401
401
|
headers: {
|
|
@@ -415,29 +415,29 @@ async function K(e, t, n) {
|
|
|
415
415
|
if (e.space) {
|
|
416
416
|
const s = `${e.space}/resources/v1/application/CSRF`;
|
|
417
417
|
f(s, {
|
|
418
|
-
onComplete(
|
|
419
|
-
|
|
418
|
+
onComplete(i) {
|
|
419
|
+
i = JSON.parse(i), t && t(i.csrf);
|
|
420
420
|
},
|
|
421
|
-
onFailure(
|
|
422
|
-
n && n({ error:
|
|
421
|
+
onFailure(i, r, o) {
|
|
422
|
+
n && n({ error: i, headers: r, xhr: o });
|
|
423
423
|
}
|
|
424
424
|
});
|
|
425
425
|
}
|
|
426
426
|
}
|
|
427
427
|
async function X(e, t = void 0, n = void 0, s = void 0) {
|
|
428
|
-
const
|
|
428
|
+
const i = e.space;
|
|
429
429
|
if (t === void 0) {
|
|
430
430
|
console.log("Le paramètre docid est obligatoire");
|
|
431
431
|
return;
|
|
432
432
|
}
|
|
433
|
-
const r =
|
|
433
|
+
const r = i + `/resources/v1/modeler/documents/${t}`;
|
|
434
434
|
f(r, {
|
|
435
|
-
onComplete(
|
|
436
|
-
const d = JSON.parse(
|
|
435
|
+
onComplete(o, a, c) {
|
|
436
|
+
const d = JSON.parse(o);
|
|
437
437
|
n && n(d);
|
|
438
438
|
},
|
|
439
|
-
onFailure(
|
|
440
|
-
s && s(
|
|
439
|
+
onFailure(o) {
|
|
440
|
+
s && s(o);
|
|
441
441
|
}
|
|
442
442
|
});
|
|
443
443
|
}
|
|
@@ -445,12 +445,12 @@ function k(e, t = void 0, n = void 0) {
|
|
|
445
445
|
if (e.objID && e.objID !== "") {
|
|
446
446
|
let s = `${e.space}/resources/v1/modeler/documents/${e.objID}`;
|
|
447
447
|
f(s, {
|
|
448
|
-
onComplete(
|
|
449
|
-
const a = JSON.parse(
|
|
448
|
+
onComplete(i, r, o) {
|
|
449
|
+
const a = JSON.parse(i);
|
|
450
450
|
e.token = a?.csrf?.value, e.datas = a?.data[0], t && t(e);
|
|
451
451
|
},
|
|
452
|
-
onFailure(
|
|
453
|
-
n && n(
|
|
452
|
+
onFailure(i) {
|
|
453
|
+
n && n(i);
|
|
454
454
|
}
|
|
455
455
|
});
|
|
456
456
|
} else
|
|
@@ -468,15 +468,15 @@ function T(e, t = void 0, n = void 0) {
|
|
|
468
468
|
if (e.space) {
|
|
469
469
|
const s = e.space + "/resources/v1/application/CSRF";
|
|
470
470
|
f(s, {
|
|
471
|
-
onComplete(
|
|
472
|
-
const a = JSON.parse(
|
|
471
|
+
onComplete(i, r, o) {
|
|
472
|
+
const a = JSON.parse(i);
|
|
473
473
|
t && t(a.csrf.value);
|
|
474
474
|
},
|
|
475
|
-
onFailure(
|
|
475
|
+
onFailure(i, r, o) {
|
|
476
476
|
n && n({
|
|
477
|
-
response:
|
|
477
|
+
response: i,
|
|
478
478
|
headers: r,
|
|
479
|
-
xhr:
|
|
479
|
+
xhr: o
|
|
480
480
|
});
|
|
481
481
|
}
|
|
482
482
|
});
|
|
@@ -487,7 +487,7 @@ function A(e, t = void 0, n = void 0) {
|
|
|
487
487
|
let s = e.space + `/resources/v1/modeler/documents/${e.objID}/files/DownloadTicket`;
|
|
488
488
|
k(
|
|
489
489
|
e,
|
|
490
|
-
(
|
|
490
|
+
(i) => {
|
|
491
491
|
f(s, {
|
|
492
492
|
method: "PUT",
|
|
493
493
|
headers: {
|
|
@@ -497,39 +497,39 @@ function A(e, t = void 0, n = void 0) {
|
|
|
497
497
|
const a = JSON.parse(r).data[0].dataelements.ticketURL;
|
|
498
498
|
t && t(a);
|
|
499
499
|
},
|
|
500
|
-
onFailure(r,
|
|
501
|
-
console.warn("☠️ error => ", r,
|
|
500
|
+
onFailure(r, o) {
|
|
501
|
+
console.warn("☠️ error => ", r, o), n && n(r, o);
|
|
502
502
|
}
|
|
503
503
|
});
|
|
504
504
|
},
|
|
505
|
-
(
|
|
506
|
-
console.warn("_3DSpace_get_ticket / error => ",
|
|
505
|
+
(i) => {
|
|
506
|
+
console.warn("_3DSpace_get_ticket / error => ", i), n && n(i);
|
|
507
507
|
}
|
|
508
508
|
);
|
|
509
509
|
}
|
|
510
|
-
function ve(e, t, n, s = void 0,
|
|
510
|
+
function ve(e, t, n, s = void 0, i = void 0) {
|
|
511
511
|
const r = `${e.space}/resources/v1/modeler/documents/${t}/files/DownloadTicket`;
|
|
512
512
|
n || (n = e.token), f(r, {
|
|
513
513
|
method: "PUT",
|
|
514
514
|
headers: {
|
|
515
515
|
ENO_CSRF_TOKEN: n
|
|
516
516
|
},
|
|
517
|
-
onComplete(
|
|
518
|
-
let a = JSON.parse(
|
|
517
|
+
onComplete(o) {
|
|
518
|
+
let a = JSON.parse(o);
|
|
519
519
|
if (console.log("☠️ info => ", a), a.success === !0)
|
|
520
520
|
try {
|
|
521
521
|
const c = a.data[0].dataelements.ticketURL;
|
|
522
522
|
s && s(c);
|
|
523
523
|
} catch (c) {
|
|
524
|
-
|
|
524
|
+
i && i(c);
|
|
525
525
|
}
|
|
526
526
|
},
|
|
527
|
-
onFailure(
|
|
528
|
-
|
|
527
|
+
onFailure(o) {
|
|
528
|
+
i && i(o);
|
|
529
529
|
}
|
|
530
530
|
});
|
|
531
531
|
}
|
|
532
|
-
function V(e, t, n, s,
|
|
532
|
+
function V(e, t, n, s, i, r = void 0, o = void 0) {
|
|
533
533
|
k(
|
|
534
534
|
e,
|
|
535
535
|
t,
|
|
@@ -539,15 +539,15 @@ function V(e, t, n, s, o, r = void 0, i = void 0) {
|
|
|
539
539
|
t,
|
|
540
540
|
n,
|
|
541
541
|
s,
|
|
542
|
-
|
|
542
|
+
i,
|
|
543
543
|
a.csrf.value,
|
|
544
544
|
r,
|
|
545
|
-
|
|
545
|
+
o
|
|
546
546
|
);
|
|
547
547
|
}
|
|
548
548
|
);
|
|
549
549
|
}
|
|
550
|
-
function W(e, t, n, s,
|
|
550
|
+
function W(e, t, n, s, i, r, o = void 0, a = void 0) {
|
|
551
551
|
const c = e.space + `/resources/v1/modeler/documents/${t}/files/CheckinTicket`;
|
|
552
552
|
f(c, {
|
|
553
553
|
method: "PUT",
|
|
@@ -556,7 +556,7 @@ function W(e, t, n, s, o, r, i = void 0, a = void 0) {
|
|
|
556
556
|
},
|
|
557
557
|
onComplete(d, l, p) {
|
|
558
558
|
const u = JSON.parse(d).data[0].dataelements, m = new FormData();
|
|
559
|
-
m.append("__fcs__jobTicket", u.ticket), m.append("file_0", s,
|
|
559
|
+
m.append("__fcs__jobTicket", u.ticket), m.append("file_0", s, i);
|
|
560
560
|
const g = {};
|
|
561
561
|
g.method = "POST", g.data = m, g.onComplete = function(h) {
|
|
562
562
|
let S = "temp_" + Date.now(), _ = {
|
|
@@ -571,7 +571,7 @@ function W(e, t, n, s, o, r, i = void 0, a = void 0) {
|
|
|
571
571
|
files: [{
|
|
572
572
|
id: n,
|
|
573
573
|
dataelements: {
|
|
574
|
-
title:
|
|
574
|
+
title: i,
|
|
575
575
|
receipt: h
|
|
576
576
|
},
|
|
577
577
|
updateAction: "REVISE"
|
|
@@ -582,7 +582,7 @@ function W(e, t, n, s, o, r, i = void 0, a = void 0) {
|
|
|
582
582
|
}),
|
|
583
583
|
type: "json",
|
|
584
584
|
onComplete(y) {
|
|
585
|
-
|
|
585
|
+
o && o(y);
|
|
586
586
|
},
|
|
587
587
|
onFailure(y) {
|
|
588
588
|
a && a(y);
|
|
@@ -598,14 +598,14 @@ function W(e, t, n, s, o, r, i = void 0, a = void 0) {
|
|
|
598
598
|
}
|
|
599
599
|
});
|
|
600
600
|
}
|
|
601
|
-
async function Fe(e, t, n, s,
|
|
602
|
-
const
|
|
601
|
+
async function Fe(e, t, n, s, i = void 0, r = void 0) {
|
|
602
|
+
const o = e.space, a = e.token, c = e.ctx, d = new FormData(), l = new Blob([JSON.stringify(t)], {
|
|
603
603
|
type: "text/plain"
|
|
604
604
|
}), p = {
|
|
605
|
-
url_Ticket: `${
|
|
606
|
-
url_Post: `${
|
|
605
|
+
url_Ticket: `${o}/resources/v1/modeler/documents/files/CheckinTicket`,
|
|
606
|
+
url_Post: `${o}/resources/v1/modeler/documents/?SecurityContext=ctx::${c}`
|
|
607
607
|
};
|
|
608
|
-
if (!
|
|
608
|
+
if (!o && o !== "") {
|
|
609
609
|
console.log("le store._3DSpace est vide");
|
|
610
610
|
return;
|
|
611
611
|
}
|
|
@@ -660,7 +660,7 @@ async function Fe(e, t, n, s, o = void 0, r = void 0) {
|
|
|
660
660
|
onFailure: y
|
|
661
661
|
};
|
|
662
662
|
function _(C) {
|
|
663
|
-
console.log("Success -- response ", C.data[0]),
|
|
663
|
+
console.log("Success -- response ", C.data[0]), i && i(C);
|
|
664
664
|
}
|
|
665
665
|
function y(C, v) {
|
|
666
666
|
console.log("Erreur -- response ", C, `
|
|
@@ -670,7 +670,7 @@ async function Fe(e, t, n, s, o = void 0, r = void 0) {
|
|
|
670
670
|
}
|
|
671
671
|
});
|
|
672
672
|
}
|
|
673
|
-
function b(e, t = void 0, n = void 0, s = void 0,
|
|
673
|
+
function b(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0, o = !1) {
|
|
674
674
|
const a = `${e.space}/resources/modeler/pno/person?current=true&select=preferredcredentials&select=collabspaces`;
|
|
675
675
|
f(a, {
|
|
676
676
|
method: "GET",
|
|
@@ -709,7 +709,7 @@ function b(e, t = void 0, n = void 0, s = void 0, o = void 0, r = void 0, i = !1
|
|
|
709
709
|
}));
|
|
710
710
|
}
|
|
711
711
|
}
|
|
712
|
-
p && u && m ? (l = m + "." + u + "." + p,
|
|
712
|
+
p && u && m ? (l = m + "." + u + "." + p, i(l)) : d.preferredcredentials && o ? (l = d.preferredcredentials.role.name + "." + d.preferredcredentials.organization.title + "." + d.preferredcredentials.collabspace.title, i(l)) : r && (l = m + "." + u + "." + p, r(l));
|
|
713
713
|
},
|
|
714
714
|
onFailure(c, d) {
|
|
715
715
|
console.log("Erreur de récupération du contexte de sécurité. => ", {
|
|
@@ -734,7 +734,7 @@ async function I(e, t = void 0, n = void 0) {
|
|
|
734
734
|
}
|
|
735
735
|
), console.warn(
|
|
736
736
|
"_3DSpace_download_doc() / Le paramètre token est obligatoire"
|
|
737
|
-
)), new Promise((s,
|
|
737
|
+
)), new Promise((s, i) => {
|
|
738
738
|
A(
|
|
739
739
|
e,
|
|
740
740
|
(r) => {
|
|
@@ -757,7 +757,7 @@ async function I(e, t = void 0, n = void 0) {
|
|
|
757
757
|
msg: JSON.parse(a),
|
|
758
758
|
headers: c,
|
|
759
759
|
xhr: d
|
|
760
|
-
}),
|
|
760
|
+
}), i({
|
|
761
761
|
msg: JSON.parse(a),
|
|
762
762
|
headers: c,
|
|
763
763
|
xhr: d
|
|
@@ -766,42 +766,42 @@ async function I(e, t = void 0, n = void 0) {
|
|
|
766
766
|
});
|
|
767
767
|
},
|
|
768
768
|
(r) => {
|
|
769
|
-
n && n(r), console.log("*_3dspace_download_doc / error file URL *", r),
|
|
769
|
+
n && n(r), console.log("*_3dspace_download_doc / error file URL *", r), i(r);
|
|
770
770
|
}
|
|
771
771
|
);
|
|
772
772
|
});
|
|
773
773
|
}
|
|
774
774
|
async function B(e, t, n = void 0, s = void 0) {
|
|
775
|
-
let
|
|
775
|
+
let i = [];
|
|
776
776
|
if (typeof t < "u" && Array.isArray(t) && t?.length > 0) {
|
|
777
777
|
for (let a = 0; a < t.length; a += 80) {
|
|
778
778
|
const c = t.slice(a, a + 80);
|
|
779
|
-
|
|
779
|
+
i.push(c);
|
|
780
780
|
}
|
|
781
|
-
const
|
|
781
|
+
const o = (a) => {
|
|
782
782
|
Y(
|
|
783
783
|
e,
|
|
784
|
-
|
|
784
|
+
i[a],
|
|
785
785
|
() => {
|
|
786
|
-
a++, a <
|
|
786
|
+
a++, a < i.length && o(a);
|
|
787
787
|
},
|
|
788
788
|
(c) => {
|
|
789
789
|
n && n(c);
|
|
790
790
|
}
|
|
791
791
|
);
|
|
792
792
|
};
|
|
793
|
-
|
|
793
|
+
o(0);
|
|
794
794
|
} else
|
|
795
795
|
console.warn("La liste d'objects dans la fonction _3DSpace_download_multidoc est vide ou non défini."), s && s("La liste d'objects dans la fonction _3DSpace_download_multidoc est vide ou non défini.");
|
|
796
796
|
}
|
|
797
|
-
function Y(e, t, n = void 0, s = void 0,
|
|
797
|
+
function Y(e, t, n = void 0, s = void 0, i = void 0) {
|
|
798
798
|
const r = [];
|
|
799
799
|
t.forEach((c) => {
|
|
800
800
|
r.push({
|
|
801
801
|
id: c
|
|
802
802
|
});
|
|
803
803
|
});
|
|
804
|
-
let
|
|
804
|
+
let o = JSON.stringify({
|
|
805
805
|
csrf: {
|
|
806
806
|
name: "ENO_CSRF_TOKEN",
|
|
807
807
|
value: e.token
|
|
@@ -811,7 +811,7 @@ function Y(e, t, n = void 0, s = void 0, o = void 0) {
|
|
|
811
811
|
const a = `${e.space}/resources/v1/modeler/documents/DownloadTicket?tenant=${e.tenant}&e6w-lang=fr&e6w-timezone=-120`;
|
|
812
812
|
f(a, {
|
|
813
813
|
method: "PUT",
|
|
814
|
-
data:
|
|
814
|
+
data: o,
|
|
815
815
|
type: "json",
|
|
816
816
|
onComplete(c) {
|
|
817
817
|
const d = c.data;
|
|
@@ -831,17 +831,17 @@ function Y(e, t, n = void 0, s = void 0, o = void 0) {
|
|
|
831
831
|
}
|
|
832
832
|
});
|
|
833
833
|
} catch (p) {
|
|
834
|
-
console.log(p),
|
|
834
|
+
console.log(p), i && i(p);
|
|
835
835
|
}
|
|
836
836
|
}));
|
|
837
837
|
},
|
|
838
838
|
onFailure(c) {
|
|
839
|
-
console.log(c),
|
|
839
|
+
console.log(c), i && i(c);
|
|
840
840
|
}
|
|
841
841
|
});
|
|
842
842
|
}
|
|
843
843
|
function Ae(e, t, n = void 0, s = void 0) {
|
|
844
|
-
return new Promise((
|
|
844
|
+
return new Promise((i) => {
|
|
845
845
|
if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
|
|
846
846
|
const r = `${e.space}/resources/v1/modeler/dslc/maturity/getNextStates`;
|
|
847
847
|
b(
|
|
@@ -854,7 +854,7 @@ function Ae(e, t, n = void 0, s = void 0) {
|
|
|
854
854
|
console.log("onError =>", a);
|
|
855
855
|
}
|
|
856
856
|
);
|
|
857
|
-
let
|
|
857
|
+
let o = {
|
|
858
858
|
method: "POST",
|
|
859
859
|
headers: {
|
|
860
860
|
SecurityContext: "ctx::" + e.ctx,
|
|
@@ -875,14 +875,14 @@ function Ae(e, t, n = void 0, s = void 0) {
|
|
|
875
875
|
s && s(a);
|
|
876
876
|
}
|
|
877
877
|
};
|
|
878
|
-
f(r,
|
|
878
|
+
f(r, o);
|
|
879
879
|
}
|
|
880
880
|
});
|
|
881
881
|
}
|
|
882
|
-
function $e(e, t, n, s = void 0,
|
|
882
|
+
function $e(e, t, n, s = void 0, i = void 0) {
|
|
883
883
|
return new Promise((r) => {
|
|
884
884
|
if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
|
|
885
|
-
const
|
|
885
|
+
const o = `${e.space}/resources/v1/modeler/dslc/maturity/changeState`;
|
|
886
886
|
b(
|
|
887
887
|
e.space,
|
|
888
888
|
"ESPACE COMMUN",
|
|
@@ -912,15 +912,15 @@ function $e(e, t, n, s = void 0, o = void 0) {
|
|
|
912
912
|
s && s(c);
|
|
913
913
|
},
|
|
914
914
|
onFailure(c) {
|
|
915
|
-
|
|
915
|
+
i && i(c);
|
|
916
916
|
}
|
|
917
917
|
};
|
|
918
|
-
f(
|
|
918
|
+
f(o, a);
|
|
919
919
|
}
|
|
920
920
|
});
|
|
921
921
|
}
|
|
922
922
|
function De(e, t, n = void 0, s = void 0) {
|
|
923
|
-
return new Promise((
|
|
923
|
+
return new Promise((i) => {
|
|
924
924
|
if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
|
|
925
925
|
const r = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=0&withAttributes=0&withCopyFrom=0&tenant=${e.tenant}`;
|
|
926
926
|
b(
|
|
@@ -933,7 +933,7 @@ function De(e, t, n = void 0, s = void 0) {
|
|
|
933
933
|
console.log("onError =>", a);
|
|
934
934
|
}
|
|
935
935
|
);
|
|
936
|
-
let
|
|
936
|
+
let o = {
|
|
937
937
|
method: "POST",
|
|
938
938
|
headers: {
|
|
939
939
|
securitycontext: "ctx::" + e.ctx,
|
|
@@ -954,12 +954,12 @@ function De(e, t, n = void 0, s = void 0) {
|
|
|
954
954
|
s && s(a);
|
|
955
955
|
}
|
|
956
956
|
};
|
|
957
|
-
f(r,
|
|
957
|
+
f(r, o);
|
|
958
958
|
}
|
|
959
959
|
});
|
|
960
960
|
}
|
|
961
961
|
function Ue(e, t, n = void 0, s = void 0) {
|
|
962
|
-
return new Promise((
|
|
962
|
+
return new Promise((i) => {
|
|
963
963
|
if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
|
|
964
964
|
const r = `${e.space}/resources/lifecycle/revise/prepare_revise_maskattributes?tenant=${e.tenant}`;
|
|
965
965
|
b(
|
|
@@ -972,7 +972,7 @@ function Ue(e, t, n = void 0, s = void 0) {
|
|
|
972
972
|
console.log("onError =>", a);
|
|
973
973
|
}
|
|
974
974
|
);
|
|
975
|
-
let
|
|
975
|
+
let o = {
|
|
976
976
|
method: "POST",
|
|
977
977
|
headers: {
|
|
978
978
|
SecurityContext: "ctx::" + e.ctx,
|
|
@@ -999,14 +999,14 @@ function Ue(e, t, n = void 0, s = void 0) {
|
|
|
999
999
|
s && s(a);
|
|
1000
1000
|
}
|
|
1001
1001
|
};
|
|
1002
|
-
f(r,
|
|
1002
|
+
f(r, o);
|
|
1003
1003
|
}
|
|
1004
1004
|
});
|
|
1005
1005
|
}
|
|
1006
|
-
function je(e, t, n, s = void 0,
|
|
1006
|
+
function je(e, t, n, s = void 0, i = void 0) {
|
|
1007
1007
|
return new Promise((r) => {
|
|
1008
1008
|
if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
|
|
1009
|
-
const
|
|
1009
|
+
const o = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
|
|
1010
1010
|
b(
|
|
1011
1011
|
e.space,
|
|
1012
1012
|
"ESPACE COMMUN",
|
|
@@ -1041,15 +1041,15 @@ function je(e, t, n, s = void 0, o = void 0) {
|
|
|
1041
1041
|
s && s(c);
|
|
1042
1042
|
},
|
|
1043
1043
|
onFailure(c) {
|
|
1044
|
-
|
|
1044
|
+
i && i(c);
|
|
1045
1045
|
}
|
|
1046
1046
|
};
|
|
1047
|
-
f(
|
|
1047
|
+
f(o, a);
|
|
1048
1048
|
}
|
|
1049
1049
|
});
|
|
1050
1050
|
}
|
|
1051
|
-
function Ie(e, t, n, s,
|
|
1052
|
-
return console.log("credentials", e), new Promise((
|
|
1051
|
+
function Ie(e, t, n, s, i = void 0, r = void 0) {
|
|
1052
|
+
return console.log("credentials", e), new Promise((o) => {
|
|
1053
1053
|
`${e.space}`, JSON.stringify({
|
|
1054
1054
|
csrf: {
|
|
1055
1055
|
name: "ENO_CSRF_TOKEN",
|
|
@@ -1075,19 +1075,19 @@ function Re(e, t = void 0, n = void 0) {
|
|
|
1075
1075
|
base: `${e.space}`,
|
|
1076
1076
|
uri: "/resources/bps/cspaces",
|
|
1077
1077
|
optTenant: `tenant=${e.tenant}`
|
|
1078
|
-
},
|
|
1079
|
-
f(
|
|
1078
|
+
}, i = `${s.base}${s.uri}?${s.optTenant}`;
|
|
1079
|
+
f(i, {
|
|
1080
1080
|
method: "GET",
|
|
1081
1081
|
headers: {
|
|
1082
1082
|
Accept: "application/json,text/javascript,*/*",
|
|
1083
1083
|
"Content-Type": "application/ds-json"
|
|
1084
1084
|
},
|
|
1085
|
-
onComplete(r,
|
|
1085
|
+
onComplete(r, o) {
|
|
1086
1086
|
const a = JSON.parse(r);
|
|
1087
|
-
t && t(a,
|
|
1087
|
+
t && t(a, o);
|
|
1088
1088
|
},
|
|
1089
|
-
onFailure(r,
|
|
1090
|
-
n && n({ response: r, headers:
|
|
1089
|
+
onFailure(r, o, a) {
|
|
1090
|
+
n && n({ response: r, headers: o, xhr: a });
|
|
1091
1091
|
}
|
|
1092
1092
|
});
|
|
1093
1093
|
}
|
|
@@ -1095,8 +1095,8 @@ function Pe(e, t, n, s) {
|
|
|
1095
1095
|
A(
|
|
1096
1096
|
e.space,
|
|
1097
1097
|
t,
|
|
1098
|
-
(
|
|
1099
|
-
f(
|
|
1098
|
+
(i) => {
|
|
1099
|
+
f(i, {
|
|
1100
1100
|
header: { ENO_CSRF_TOKEN: e.token },
|
|
1101
1101
|
onComplete: (r) => {
|
|
1102
1102
|
n && n(r);
|
|
@@ -1109,24 +1109,24 @@ function Pe(e, t, n, s) {
|
|
|
1109
1109
|
);
|
|
1110
1110
|
}
|
|
1111
1111
|
async function xe(e, t, n = void 0, s = void 0) {
|
|
1112
|
-
return new Promise((
|
|
1112
|
+
return new Promise((i) => {
|
|
1113
1113
|
A(e, t, (r) => {
|
|
1114
1114
|
f(r, {
|
|
1115
|
-
onComplete: (
|
|
1116
|
-
onFailure: (
|
|
1117
|
-
s && s(
|
|
1115
|
+
onComplete: (o, a, c) => (i(JSON.parse(o)), n && n(JSON.parse(o), a, c), i),
|
|
1116
|
+
onFailure: (o, a, c) => {
|
|
1117
|
+
s && s(o, a, c), console.log(o, a?.errormsg);
|
|
1118
1118
|
}
|
|
1119
1119
|
});
|
|
1120
1120
|
});
|
|
1121
1121
|
});
|
|
1122
1122
|
}
|
|
1123
|
-
function Me(e, t, n, s = void 0,
|
|
1123
|
+
function Me(e, t, n, s = void 0, i = void 0) {
|
|
1124
1124
|
const r = new Blob([JSON.stringify(t)], { type: "text/plain" });
|
|
1125
1125
|
k(
|
|
1126
1126
|
e,
|
|
1127
1127
|
n,
|
|
1128
|
-
(
|
|
1129
|
-
const a =
|
|
1128
|
+
(o) => {
|
|
1129
|
+
const a = o.data[0].relateddata.files[0].id, c = o.data[0].dataelements.secondaryTitle !== "" ? o.data[0].dataelements.secondaryTitle : o.data[0].dataelements.title;
|
|
1130
1130
|
V(
|
|
1131
1131
|
e,
|
|
1132
1132
|
n,
|
|
@@ -1137,7 +1137,7 @@ function Me(e, t, n, s = void 0, o = void 0) {
|
|
|
1137
1137
|
s && s(d);
|
|
1138
1138
|
},
|
|
1139
1139
|
(d) => {
|
|
1140
|
-
|
|
1140
|
+
i && i(d);
|
|
1141
1141
|
}
|
|
1142
1142
|
);
|
|
1143
1143
|
}
|
|
@@ -1168,8 +1168,8 @@ async function Je(e, t = void 0, n = void 0) {
|
|
|
1168
1168
|
console.log("getDatasByTenant (getDocuments)", e), await I(
|
|
1169
1169
|
e,
|
|
1170
1170
|
(s) => {
|
|
1171
|
-
const
|
|
1172
|
-
|
|
1171
|
+
const i = {};
|
|
1172
|
+
i.obj = s, console.log("getDatasByTenant (getDocuments) _datas", i), t && t?.(i);
|
|
1173
1173
|
},
|
|
1174
1174
|
(s) => {
|
|
1175
1175
|
n && n?.(s);
|
|
@@ -1182,12 +1182,12 @@ function Ee(e, t = void 0, n = void 0) {
|
|
|
1182
1182
|
console.warn("la liste est vide ou n'est pas un tableau");
|
|
1183
1183
|
return;
|
|
1184
1184
|
}
|
|
1185
|
-
e.objIds.forEach((
|
|
1185
|
+
e.objIds.forEach((i, r) => {
|
|
1186
1186
|
I(
|
|
1187
1187
|
e,
|
|
1188
|
-
|
|
1189
|
-
(
|
|
1190
|
-
s.push({ [
|
|
1188
|
+
i.objID,
|
|
1189
|
+
(o) => {
|
|
1190
|
+
s.push({ [i.name]: o }), i.name === "dbProjets" && (R = o.affaires.map((a) => a.objectID), q(e, P)), r === e.objIds.length - 1 && (t && t(s), delete e.objIds, delete e.datas);
|
|
1191
1191
|
}
|
|
1192
1192
|
);
|
|
1193
1193
|
});
|
|
@@ -1196,12 +1196,12 @@ function q(e, t, n = void 0, s = void 0) {
|
|
|
1196
1196
|
B(
|
|
1197
1197
|
e,
|
|
1198
1198
|
R,
|
|
1199
|
-
(
|
|
1199
|
+
(i) => {
|
|
1200
1200
|
const r = [...t];
|
|
1201
|
-
r.find((
|
|
1201
|
+
r.find((o) => o.objectID === i.objectId).data = i.data, P = r, $.push(i.data), n && n($);
|
|
1202
1202
|
},
|
|
1203
|
-
(
|
|
1204
|
-
s && (s(
|
|
1203
|
+
(i) => {
|
|
1204
|
+
s && (s(i), console.log(i));
|
|
1205
1205
|
}
|
|
1206
1206
|
);
|
|
1207
1207
|
}
|
|
@@ -1226,16 +1226,16 @@ const H = "FA35FB9B177A280065800EA0000F599C", z = [
|
|
|
1226
1226
|
tag: "testTag"
|
|
1227
1227
|
};
|
|
1228
1228
|
function Ge(e, t, n = void 0, s = void 0) {
|
|
1229
|
-
const { space:
|
|
1229
|
+
const { space: i, tenant: r } = e, { objId: o, pred: a, tag: c } = t, d = {
|
|
1230
1230
|
uri: "/resources/6w/tags",
|
|
1231
1231
|
otpCTX: "SecurityContext=preferred",
|
|
1232
1232
|
optTenant: `tenant=${r}`
|
|
1233
|
-
}, l = `${
|
|
1233
|
+
}, l = `${i}${d.uri}?${d.otpCTX}&${d.optTenant}`, p = {
|
|
1234
1234
|
tag: [
|
|
1235
1235
|
{
|
|
1236
1236
|
subject: [
|
|
1237
1237
|
{
|
|
1238
|
-
uri: `pid://${
|
|
1238
|
+
uri: `pid://${o}`
|
|
1239
1239
|
}
|
|
1240
1240
|
],
|
|
1241
1241
|
predicate: x[a],
|
|
@@ -1258,7 +1258,7 @@ function Ge(e, t, n = void 0, s = void 0) {
|
|
|
1258
1258
|
setTimeout(() => {
|
|
1259
1259
|
X(
|
|
1260
1260
|
e,
|
|
1261
|
-
|
|
1261
|
+
o,
|
|
1262
1262
|
(g) => {
|
|
1263
1263
|
const h = g.data[0].dataelements.title, S = g.data[0].dataelements.fileExtension !== void 0 ? g.data[0].dataelements.fileExtension : "", _ = g.data[0].relateddata.ownerInfo[0].dataelements.name;
|
|
1264
1264
|
m.name = h, m.ext = S, m.createBy = _, t.info = { ...m }, Z(
|
|
@@ -1287,10 +1287,10 @@ function Ge(e, t, n = void 0, s = void 0) {
|
|
|
1287
1287
|
}
|
|
1288
1288
|
function Z(e, t, n = void 0, s = void 0) {
|
|
1289
1289
|
console.log("obj ", t);
|
|
1290
|
-
const
|
|
1290
|
+
const i = t.info.name, r = {
|
|
1291
1291
|
baseUrl: `https://${e.tenant.toLowerCase()}-eu1-fedsearch.3dexperience.3ds.com`,
|
|
1292
1292
|
uri: "/federated/search"
|
|
1293
|
-
},
|
|
1293
|
+
}, o = `${r.baseUrl}${r.uri}`, a = {
|
|
1294
1294
|
"Content-Type": "application/json",
|
|
1295
1295
|
Accept: "application/json,text/javascript,*/*"
|
|
1296
1296
|
}, c = j(), d = {
|
|
@@ -1325,7 +1325,7 @@ function Z(e, t, n = void 0, s = void 0) {
|
|
|
1325
1325
|
],
|
|
1326
1326
|
with_synthesis_hierarchical: !0,
|
|
1327
1327
|
select_file: ["icon", "thumbnail_2d"],
|
|
1328
|
-
query:
|
|
1328
|
+
query: i,
|
|
1329
1329
|
specific_source_parameter: {
|
|
1330
1330
|
"3dspace": {
|
|
1331
1331
|
additional_query: ' AND NOT (owner:"ENOVIA_CLOUD" OR owner:"Service Creator" OR owner:"Corporate" OR owner:"User Agent" OR owner:"SLMInstallerAdmin" OR owner:"Creator" OR owner:"VPLMAdminUser") AND (ds6w_58_islastrevisionperstate:true OR NOT listoffields:ds6w_58_islastrevisionperstate)'
|
|
@@ -1354,7 +1354,7 @@ function Z(e, t, n = void 0, s = void 0) {
|
|
|
1354
1354
|
}
|
|
1355
1355
|
}
|
|
1356
1356
|
};
|
|
1357
|
-
console.log("dataPattern => ", d), f(
|
|
1357
|
+
console.log("dataPattern => ", d), f(o, {
|
|
1358
1358
|
method: "POST",
|
|
1359
1359
|
headers: a,
|
|
1360
1360
|
data: JSON.stringify(d),
|
|
@@ -1369,7 +1369,7 @@ function Z(e, t, n = void 0, s = void 0) {
|
|
|
1369
1369
|
});
|
|
1370
1370
|
}
|
|
1371
1371
|
function Ke(e, t, n = void 0, s = void 0) {
|
|
1372
|
-
const { objId:
|
|
1372
|
+
const { objId: i, pred: r, tag: o } = t, a = {
|
|
1373
1373
|
uri: "/resources/6w/tags",
|
|
1374
1374
|
otpCTX: "SecurityContext=preferred",
|
|
1375
1375
|
optTenant: `tenant=${e.tenant}`
|
|
@@ -1378,12 +1378,12 @@ function Ke(e, t, n = void 0, s = void 0) {
|
|
|
1378
1378
|
{
|
|
1379
1379
|
subject: [
|
|
1380
1380
|
{
|
|
1381
|
-
uri: `pid://${
|
|
1381
|
+
uri: `pid://${i}`
|
|
1382
1382
|
}
|
|
1383
1383
|
],
|
|
1384
1384
|
predicate: x[r],
|
|
1385
1385
|
object: {
|
|
1386
|
-
literal:
|
|
1386
|
+
literal: o
|
|
1387
1387
|
}
|
|
1388
1388
|
}
|
|
1389
1389
|
]
|
|
@@ -1405,18 +1405,18 @@ function Ke(e, t, n = void 0, s = void 0) {
|
|
|
1405
1405
|
});
|
|
1406
1406
|
}
|
|
1407
1407
|
function Xe(e, t = "", n = void 0, s = void 0) {
|
|
1408
|
-
const { space:
|
|
1408
|
+
const { space: i } = e;
|
|
1409
1409
|
if (t === "")
|
|
1410
1410
|
return;
|
|
1411
1411
|
const r = {
|
|
1412
1412
|
uri: "/resources/v1/modeler/documents"
|
|
1413
|
-
},
|
|
1413
|
+
}, o = {
|
|
1414
1414
|
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
|
|
1415
1415
|
Accept: "application/json,text/javascript,*/*"
|
|
1416
|
-
}, a = `${
|
|
1416
|
+
}, a = `${i}${r.uri}`, c = `$include=none,lockerInfo,ownerInfo,originatorInfo,files,ownerInfo,originatorInfo&$fields=none,title,name,typeNLS,collabSpaceTitle,revision,isLatestRevision,files,lockStatus,lockerInfo.name,lockerInfo.firstname,lockerInfo.lastname,owner,ownerInfo.name,ownerInfo.firstname,ownerInfo.lastname,stateNLS,modified,policy,state,organizationTitle,originator,originatorInfo.name,originatorInfo.firstname,originatorInfo.lastname,hasModifyAccess,fileExtension,files.name,files.title,files.revision,files.locker,ownerInfo,ownerInfo.name,ownerInfo.firstname,ownerInfo.lastname,originatorInfo,originatorInfo.name,originatorInfo.firstname,originatorInfo.lastname&$ids=${t}`;
|
|
1417
1417
|
f(a, {
|
|
1418
1418
|
method: "POST",
|
|
1419
|
-
headers:
|
|
1419
|
+
headers: o,
|
|
1420
1420
|
data: c,
|
|
1421
1421
|
onComplete(d) {
|
|
1422
1422
|
n && n(JSON.parse(d));
|
|
@@ -1430,18 +1430,18 @@ function Xe(e, t = "", n = void 0, s = void 0) {
|
|
|
1430
1430
|
async function w(e, t = void 0, n = void 0) {
|
|
1431
1431
|
const s = e.space + "/api/index/tk";
|
|
1432
1432
|
return f(s, {
|
|
1433
|
-
onComplete(
|
|
1434
|
-
const a = JSON.parse(
|
|
1433
|
+
onComplete(i, r, o) {
|
|
1434
|
+
const a = JSON.parse(i);
|
|
1435
1435
|
if (t)
|
|
1436
1436
|
return t(a), e.token = a?.result?.ServerToken;
|
|
1437
1437
|
},
|
|
1438
|
-
onFailure(
|
|
1439
|
-
n && n(
|
|
1438
|
+
onFailure(i) {
|
|
1439
|
+
n && n(i);
|
|
1440
1440
|
}
|
|
1441
1441
|
});
|
|
1442
1442
|
}
|
|
1443
1443
|
function Ve(e, t = void 0, n = void 0) {
|
|
1444
|
-
const s = `${e.space}/api/exalead/whatsnew`,
|
|
1444
|
+
const s = `${e.space}/api/exalead/whatsnew`, i = {
|
|
1445
1445
|
params: {
|
|
1446
1446
|
community_id: null,
|
|
1447
1447
|
hash_key: null,
|
|
@@ -1459,19 +1459,19 @@ function Ve(e, t = void 0, n = void 0) {
|
|
|
1459
1459
|
"Content-type": "application/json;charset=UTF-8",
|
|
1460
1460
|
Accept: "application/json"
|
|
1461
1461
|
},
|
|
1462
|
-
data: JSON.stringify(
|
|
1462
|
+
data: JSON.stringify(i),
|
|
1463
1463
|
type: "json",
|
|
1464
|
-
onComplete(
|
|
1465
|
-
t && t(
|
|
1464
|
+
onComplete(o, a) {
|
|
1465
|
+
t && t(o, a);
|
|
1466
1466
|
},
|
|
1467
|
-
onFailure(
|
|
1468
|
-
n && n(
|
|
1467
|
+
onFailure(o, a) {
|
|
1468
|
+
n && n(o, a);
|
|
1469
1469
|
}
|
|
1470
1470
|
});
|
|
1471
1471
|
});
|
|
1472
1472
|
}
|
|
1473
1473
|
function We(e, t = void 0, n = void 0) {
|
|
1474
|
-
const s = `${e.space}/api/Recommendation/getpeoplefamiliartocurrentuser`,
|
|
1474
|
+
const s = `${e.space}/api/Recommendation/getpeoplefamiliartocurrentuser`, i = {
|
|
1475
1475
|
params: {
|
|
1476
1476
|
idsToFilterArr: [],
|
|
1477
1477
|
mode: "offline",
|
|
@@ -1488,14 +1488,14 @@ function We(e, t = void 0, n = void 0) {
|
|
|
1488
1488
|
"Content-type": "application/json;charset=UTF-8",
|
|
1489
1489
|
Accept: "application/json"
|
|
1490
1490
|
},
|
|
1491
|
-
data: JSON.stringify(
|
|
1491
|
+
data: JSON.stringify(i),
|
|
1492
1492
|
type: "json",
|
|
1493
|
-
onComplete(
|
|
1494
|
-
const c =
|
|
1495
|
-
t && t(c,
|
|
1493
|
+
onComplete(o, a) {
|
|
1494
|
+
const c = o.result.hits.map((d) => ({ login: d.login, fullName: d.name }));
|
|
1495
|
+
t && t(c, o);
|
|
1496
1496
|
},
|
|
1497
|
-
onFailure(
|
|
1498
|
-
n && n(
|
|
1497
|
+
onFailure(o, a) {
|
|
1498
|
+
n && n(o, a);
|
|
1499
1499
|
}
|
|
1500
1500
|
});
|
|
1501
1501
|
});
|
|
@@ -1506,12 +1506,12 @@ function Be(e, t = void 0, n = void 0) {
|
|
|
1506
1506
|
uri: "/api/community/listmycommunities",
|
|
1507
1507
|
limit: `/limit/${e.limit ? e.limit : 128}`,
|
|
1508
1508
|
page: `/page/${e.page ? e.page : "1"}`
|
|
1509
|
-
},
|
|
1510
|
-
w(e, (
|
|
1511
|
-
f(
|
|
1509
|
+
}, i = `${s.base}${s.uri}${s.limit}${s.page}`, r = [];
|
|
1510
|
+
w(e, (o) => {
|
|
1511
|
+
f(i, {
|
|
1512
1512
|
method: "GET",
|
|
1513
1513
|
headers: {
|
|
1514
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1514
|
+
"X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
|
|
1515
1515
|
},
|
|
1516
1516
|
onComplete(a, c, d) {
|
|
1517
1517
|
const p = JSON.parse(a).result;
|
|
@@ -1543,20 +1543,20 @@ function Be(e, t = void 0, n = void 0) {
|
|
|
1543
1543
|
});
|
|
1544
1544
|
}
|
|
1545
1545
|
function ee(e, t, n, s) {
|
|
1546
|
-
const
|
|
1546
|
+
const i = `${e.space}/api/community/listmembers`, r = {
|
|
1547
1547
|
params: {
|
|
1548
1548
|
page: e.page ? e.page : 1,
|
|
1549
1549
|
limit: e.limit ? e.limit : 50,
|
|
1550
1550
|
community_id: t
|
|
1551
1551
|
}
|
|
1552
1552
|
};
|
|
1553
|
-
w(e, (
|
|
1554
|
-
f(
|
|
1553
|
+
w(e, (o) => {
|
|
1554
|
+
f(i, {
|
|
1555
1555
|
method: "POST",
|
|
1556
1556
|
headers: {
|
|
1557
1557
|
"Content-type": "application/json;charset=UTF-8",
|
|
1558
1558
|
Accept: "application/json",
|
|
1559
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1559
|
+
"X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
|
|
1560
1560
|
},
|
|
1561
1561
|
data: JSON.stringify(r),
|
|
1562
1562
|
type: "json",
|
|
@@ -1573,30 +1573,30 @@ function ee(e, t, n, s) {
|
|
|
1573
1573
|
function Ye(e, t = void 0, n = void 0) {
|
|
1574
1574
|
const s = "YXdA5x4DSUKtlAi2wmnyTA";
|
|
1575
1575
|
e.commu_id || (e.commu_id = s);
|
|
1576
|
-
const
|
|
1576
|
+
const i = `${e.space}/api/v2/communities/${e.commu_id}/ideas/statuses`;
|
|
1577
1577
|
w(e, (r) => {
|
|
1578
|
-
f(
|
|
1578
|
+
f(i, {
|
|
1579
1579
|
method: "GET",
|
|
1580
1580
|
headers: {
|
|
1581
1581
|
"Content-type": "application/json;charset=UTF-8",
|
|
1582
1582
|
Accept: "application/json",
|
|
1583
1583
|
"X-DS-SWYM-CSRFTOKEN": r.result.ServerToken
|
|
1584
1584
|
},
|
|
1585
|
-
onComplete(
|
|
1586
|
-
const a = JSON.parse(
|
|
1585
|
+
onComplete(o) {
|
|
1586
|
+
const a = JSON.parse(o);
|
|
1587
1587
|
t && t(a);
|
|
1588
1588
|
},
|
|
1589
|
-
onFailure(
|
|
1590
|
-
const c =
|
|
1589
|
+
onFailure(o, a) {
|
|
1590
|
+
const c = o;
|
|
1591
1591
|
c.status = a.status, c.response = a.errormsg, n && n(c);
|
|
1592
1592
|
}
|
|
1593
1593
|
});
|
|
1594
1594
|
});
|
|
1595
1595
|
}
|
|
1596
1596
|
function qe(e, t, n = void 0, s = void 0) {
|
|
1597
|
-
const { listAllContacts:
|
|
1598
|
-
console.log("__listAllContacts",
|
|
1599
|
-
const
|
|
1597
|
+
const { listAllContacts: i, currentUser: r } = e;
|
|
1598
|
+
console.log("__listAllContacts", i.hits);
|
|
1599
|
+
const o = `${e.space}/api/directmessages`, a = {
|
|
1600
1600
|
users: [r.login].concat(t.receipt)
|
|
1601
1601
|
}, c = {
|
|
1602
1602
|
id_msg: "",
|
|
@@ -1615,7 +1615,7 @@ function qe(e, t, n = void 0, s = void 0) {
|
|
|
1615
1615
|
}
|
|
1616
1616
|
), d === !1 && setTimeout(() => {
|
|
1617
1617
|
d === !1 && w(e, (l) => {
|
|
1618
|
-
f(
|
|
1618
|
+
f(o, {
|
|
1619
1619
|
method: "POST",
|
|
1620
1620
|
headers: {
|
|
1621
1621
|
"Content-Type": "application/json",
|
|
@@ -1637,16 +1637,16 @@ function qe(e, t, n = void 0, s = void 0) {
|
|
|
1637
1637
|
}, 500);
|
|
1638
1638
|
}
|
|
1639
1639
|
function te(e, t, n, s) {
|
|
1640
|
-
const
|
|
1640
|
+
const i = `${e.space}/api/directmessages/lite?with_favorites=false`;
|
|
1641
1641
|
w(e, (r) => {
|
|
1642
|
-
f(
|
|
1642
|
+
f(i, {
|
|
1643
1643
|
method: "GET",
|
|
1644
1644
|
headers: {
|
|
1645
1645
|
Accept: "application/json,text/javascript,*/*",
|
|
1646
1646
|
"X-DS-SWYM-CSRFTOKEN": r.result.ServerToken
|
|
1647
1647
|
},
|
|
1648
|
-
onComplete(
|
|
1649
|
-
const a = JSON.parse(
|
|
1648
|
+
onComplete(o) {
|
|
1649
|
+
const a = JSON.parse(o), c = [];
|
|
1650
1650
|
a.result.forEach((p) => {
|
|
1651
1651
|
p.users = p.users.sort((u, m) => u.login.localeCompare(m.login)), p.users.length === t.length && c.push(p);
|
|
1652
1652
|
});
|
|
@@ -1658,20 +1658,20 @@ function te(e, t, n, s) {
|
|
|
1658
1658
|
});
|
|
1659
1659
|
n && l !== void 0 ? n(l) : (s || l === void 0) && s(l);
|
|
1660
1660
|
},
|
|
1661
|
-
onFailure(
|
|
1662
|
-
const a =
|
|
1661
|
+
onFailure(o) {
|
|
1662
|
+
const a = o;
|
|
1663
1663
|
a.msg = headers.errormsg, a.errCode = headers.errorcode, console.log("❌ sendDirectMessageLite => ", a), s && s(a);
|
|
1664
1664
|
}
|
|
1665
1665
|
});
|
|
1666
1666
|
});
|
|
1667
1667
|
}
|
|
1668
1668
|
function D(e, t, n = void 0, s = void 0) {
|
|
1669
|
-
const
|
|
1669
|
+
const i = {
|
|
1670
1670
|
base: e.space,
|
|
1671
1671
|
uri: "/api/community",
|
|
1672
1672
|
id_msg: `${t.id_msg}`,
|
|
1673
1673
|
endUri: "/instantmessages"
|
|
1674
|
-
}, r = `${
|
|
1674
|
+
}, r = `${i.base}${i.uri}/${i.id_msg}${i.endUri}`, o = {
|
|
1675
1675
|
author: { login: t.senderId, displayName: t.senderName },
|
|
1676
1676
|
accessState: null,
|
|
1677
1677
|
commentUri: null,
|
|
@@ -1689,7 +1689,7 @@ function D(e, t, n = void 0, s = void 0) {
|
|
|
1689
1689
|
Accept: "application/json",
|
|
1690
1690
|
"X-DS-SWYM-CSRFTOKEN": a.result.ServerToken
|
|
1691
1691
|
},
|
|
1692
|
-
data: JSON.stringify(
|
|
1692
|
+
data: JSON.stringify(o),
|
|
1693
1693
|
type: "json",
|
|
1694
1694
|
onComplete(c, d, l) {
|
|
1695
1695
|
const p = c;
|
|
@@ -1720,15 +1720,15 @@ const se = {
|
|
|
1720
1720
|
// id de l'idee qui est créer au post (_3dSwym_postIdea)
|
|
1721
1721
|
};
|
|
1722
1722
|
function He(e, t, n = void 0, s = void 0) {
|
|
1723
|
-
const
|
|
1723
|
+
const i = `${e.space}/api/idea/add`, r = e.swymCommunities.find(
|
|
1724
1724
|
(c) => c.id === t.community_id
|
|
1725
|
-
),
|
|
1725
|
+
), o = e.swymCommunities.find(
|
|
1726
1726
|
(c) => c.title.toLowerCase() === t.community_title.toLowerCase()
|
|
1727
1727
|
), a = {
|
|
1728
1728
|
params: {
|
|
1729
1729
|
title: t.title,
|
|
1730
1730
|
// String, le nom de l'affaire
|
|
1731
|
-
community_id: r?.id !== void 0 ? r.id :
|
|
1731
|
+
community_id: r?.id !== void 0 ? r.id : o.id,
|
|
1732
1732
|
// String, l'id de la communauté
|
|
1733
1733
|
message: ae(t.text_html),
|
|
1734
1734
|
// STRING => le contenue du message doit être au format HTML
|
|
@@ -1742,7 +1742,7 @@ function He(e, t, n = void 0, s = void 0) {
|
|
|
1742
1742
|
Accept: "application/json",
|
|
1743
1743
|
"X-DS-SWYM-CSRFTOKEN": c.result.ServerToken
|
|
1744
1744
|
};
|
|
1745
|
-
f(
|
|
1745
|
+
f(i, {
|
|
1746
1746
|
method: "POST",
|
|
1747
1747
|
headers: d,
|
|
1748
1748
|
data: JSON.stringify(a),
|
|
@@ -1759,19 +1759,19 @@ function He(e, t, n = void 0, s = void 0) {
|
|
|
1759
1759
|
});
|
|
1760
1760
|
}
|
|
1761
1761
|
function ze(e, t, n = void 0, s = void 0) {
|
|
1762
|
-
const
|
|
1762
|
+
const i = `${e.space}/api/idea/delete`, r = {
|
|
1763
1763
|
params: {
|
|
1764
1764
|
community_id: t.community_id,
|
|
1765
1765
|
ideationIds: [t.idee_id]
|
|
1766
1766
|
}
|
|
1767
1767
|
};
|
|
1768
|
-
w(e, (
|
|
1769
|
-
f(
|
|
1768
|
+
w(e, (o) => {
|
|
1769
|
+
f(i, {
|
|
1770
1770
|
method: "POST",
|
|
1771
1771
|
headers: {
|
|
1772
1772
|
"Content-type": "application/json;charset=UTF-8",
|
|
1773
1773
|
Accept: "application/json",
|
|
1774
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1774
|
+
"X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
|
|
1775
1775
|
},
|
|
1776
1776
|
data: JSON.stringify(r),
|
|
1777
1777
|
type: "json",
|
|
@@ -1786,9 +1786,9 @@ function ze(e, t, n = void 0, s = void 0) {
|
|
|
1786
1786
|
});
|
|
1787
1787
|
}
|
|
1788
1788
|
function Qe(e, t = "", n = void 0, s = void 0) {
|
|
1789
|
-
const
|
|
1790
|
-
t === "" && (t =
|
|
1791
|
-
const r = `${e.space}/api/idea/get`,
|
|
1789
|
+
const i = e.tenant.toLowerCase() === "r1132101716373" ? "tFtz0G4MR6qNtKgJjNfTog" : e.tenant.toLowerCase() === "r1132101286859" ? "Qpv3HN-tTDOsU-7_c5DnDg" : "Template_d'idée_à_créer";
|
|
1790
|
+
t === "" && (t = i);
|
|
1791
|
+
const r = `${e.space}/api/idea/get`, o = {
|
|
1792
1792
|
params: {
|
|
1793
1793
|
id: t
|
|
1794
1794
|
}
|
|
@@ -1801,7 +1801,7 @@ function Qe(e, t = "", n = void 0, s = void 0) {
|
|
|
1801
1801
|
Accept: "application/json",
|
|
1802
1802
|
"X-DS-SWYM-CSRFTOKEN": a.result.ServerToken
|
|
1803
1803
|
},
|
|
1804
|
-
data: JSON.stringify(
|
|
1804
|
+
data: JSON.stringify(o),
|
|
1805
1805
|
type: "json",
|
|
1806
1806
|
onComplete(c) {
|
|
1807
1807
|
const d = c;
|
|
@@ -1815,16 +1815,16 @@ function Qe(e, t = "", n = void 0, s = void 0) {
|
|
|
1815
1815
|
});
|
|
1816
1816
|
}
|
|
1817
1817
|
function Ze(e, t = se, n = void 0, s = void 0) {
|
|
1818
|
-
const
|
|
1818
|
+
const i = {
|
|
1819
1819
|
uri: "/api/idea/list",
|
|
1820
1820
|
comId: `/community_id/${e.tenant.toLowerCase() === "r1132101716373" ? t.community_id : "bgnIsG74SUWswyGzS6NC6g"}`,
|
|
1821
1821
|
limit: `/limit/${t.limit ? t.limit : 10}`
|
|
1822
|
-
}, r = `${e.space}${
|
|
1823
|
-
w(e, (
|
|
1822
|
+
}, r = `${e.space}${i.uri}${i.comId}${i.limit}`;
|
|
1823
|
+
w(e, (o) => {
|
|
1824
1824
|
f(r, {
|
|
1825
1825
|
method: "GET",
|
|
1826
1826
|
headers: {
|
|
1827
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1827
|
+
"X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
|
|
1828
1828
|
},
|
|
1829
1829
|
onComplete(a) {
|
|
1830
1830
|
const c = JSON.parse(a);
|
|
@@ -1914,37 +1914,37 @@ function ae(e) {
|
|
|
1914
1914
|
}
|
|
1915
1915
|
function et(e, t = void 0, n = void 0) {
|
|
1916
1916
|
const s = e.space + "/api/user/getcurrent/";
|
|
1917
|
-
w(e, (
|
|
1917
|
+
w(e, (i) => {
|
|
1918
1918
|
f(s, {
|
|
1919
1919
|
method: "GET",
|
|
1920
1920
|
headers: {
|
|
1921
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1921
|
+
"X-DS-SWYM-CSRFTOKEN": i.result.ServerToken
|
|
1922
1922
|
},
|
|
1923
|
-
onComplete(r,
|
|
1923
|
+
onComplete(r, o, a) {
|
|
1924
1924
|
const c = JSON.parse(r);
|
|
1925
1925
|
t && t(c.result);
|
|
1926
1926
|
},
|
|
1927
|
-
onFailure(r,
|
|
1928
|
-
const c = { erreur: JSON.parse(r), headers:
|
|
1927
|
+
onFailure(r, o, a) {
|
|
1928
|
+
const c = { erreur: JSON.parse(r), headers: o, xhr: a };
|
|
1929
1929
|
n && n(c);
|
|
1930
1930
|
}
|
|
1931
1931
|
});
|
|
1932
1932
|
});
|
|
1933
1933
|
}
|
|
1934
1934
|
function tt(e, t, n = void 0, s = void 0) {
|
|
1935
|
-
const
|
|
1935
|
+
const i = e.space + "/api/user/find/login/" + t;
|
|
1936
1936
|
w(
|
|
1937
1937
|
e,
|
|
1938
1938
|
(r) => {
|
|
1939
|
-
f(
|
|
1939
|
+
f(i, {
|
|
1940
1940
|
method: "GET",
|
|
1941
1941
|
headers: { "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken },
|
|
1942
|
-
onComplete(
|
|
1943
|
-
const d = JSON.parse(
|
|
1942
|
+
onComplete(o, a, c) {
|
|
1943
|
+
const d = JSON.parse(o);
|
|
1944
1944
|
n && n(d);
|
|
1945
1945
|
},
|
|
1946
|
-
onFailure(
|
|
1947
|
-
s && s(
|
|
1946
|
+
onFailure(o) {
|
|
1947
|
+
s && s(o);
|
|
1948
1948
|
}
|
|
1949
1949
|
});
|
|
1950
1950
|
},
|
|
@@ -1954,8 +1954,8 @@ function tt(e, t, n = void 0, s = void 0) {
|
|
|
1954
1954
|
function nt(e, t = void 0, n = void 0) {
|
|
1955
1955
|
e.tenant && E(e, (s) => {
|
|
1956
1956
|
console.log("serviceUrls", s);
|
|
1957
|
-
const
|
|
1958
|
-
f(
|
|
1957
|
+
const i = s.find((a) => a.id === "3dpassport")?.url, r = s.find((a) => a.id === "businessprocess")?.url + "/api/v2", o = `${i}/login/?service=${r}/auth/cas`;
|
|
1958
|
+
f(o, {
|
|
1959
1959
|
onComplete(a, c) {
|
|
1960
1960
|
console.log("response", a), console.log("headers", c), t && t(c);
|
|
1961
1961
|
},
|
|
@@ -1972,25 +1972,25 @@ function st(e) {
|
|
|
1972
1972
|
function at(e, t = void 0, n = void 0) {
|
|
1973
1973
|
return console.log("credentials", e), new Promise((s) => {
|
|
1974
1974
|
if (e.token === "" && T(e), !e.space || e.space === "") {
|
|
1975
|
-
const
|
|
1976
|
-
console.log("platformeInfo",
|
|
1975
|
+
const o = J();
|
|
1976
|
+
console.log("platformeInfo", o);
|
|
1977
1977
|
}
|
|
1978
1978
|
b(
|
|
1979
1979
|
e,
|
|
1980
1980
|
"Common space",
|
|
1981
1981
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
1982
1982
|
void 0,
|
|
1983
|
-
(
|
|
1984
|
-
(
|
|
1985
|
-
console.log("onError =>",
|
|
1983
|
+
(o) => e.ctx = o,
|
|
1984
|
+
(o) => {
|
|
1985
|
+
console.log("onError =>", o);
|
|
1986
1986
|
},
|
|
1987
1987
|
!0
|
|
1988
1988
|
);
|
|
1989
|
-
const
|
|
1989
|
+
const i = N.now().ts, r = `https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dsearch&platformId=${e.tenant}`;
|
|
1990
1990
|
f(r, {
|
|
1991
|
-
onComplete(
|
|
1992
|
-
if (Array.isArray(JSON.parse(
|
|
1993
|
-
const a = JSON.parse(
|
|
1991
|
+
onComplete(o) {
|
|
1992
|
+
if (Array.isArray(JSON.parse(o))) {
|
|
1993
|
+
const a = JSON.parse(o);
|
|
1994
1994
|
console.log("serviceId=3dsearch", a);
|
|
1995
1995
|
const c = `${a[0].services[0].url}/search?xrequestedwith=xmlhttprequest`;
|
|
1996
1996
|
f(c, {
|
|
@@ -2002,7 +2002,7 @@ function at(e, t = void 0, n = void 0) {
|
|
|
2002
2002
|
data: JSON.stringify({
|
|
2003
2003
|
with_indexing_date: !0,
|
|
2004
2004
|
with_nls: !1,
|
|
2005
|
-
label: `3DSearch-${
|
|
2005
|
+
label: `3DSearch-${i}`,
|
|
2006
2006
|
locale: "en",
|
|
2007
2007
|
select_predicate: [
|
|
2008
2008
|
"ds6w:label",
|
|
@@ -2042,8 +2042,8 @@ function at(e, t = void 0, n = void 0) {
|
|
|
2042
2042
|
});
|
|
2043
2043
|
}
|
|
2044
2044
|
},
|
|
2045
|
-
onFailure(
|
|
2046
|
-
n && n(
|
|
2045
|
+
onFailure(o) {
|
|
2046
|
+
n && n(o);
|
|
2047
2047
|
}
|
|
2048
2048
|
});
|
|
2049
2049
|
});
|