@beam3_dev/api_module 0.0.253 → 0.0.255
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 +427 -446
- package/dist/wb3Api.js.map +1 -1
- package/dist/wb3Api.umd.cjs +7 -7
- package/dist/wb3Api.umd.cjs.map +1 -1
- package/package.json +1 -1
package/dist/wb3Api.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { v4 as E } from "uuid";
|
|
2
2
|
import { DateTime as O } from "luxon";
|
|
3
|
-
import { requirejs as $, widget as
|
|
3
|
+
import { requirejs as $, widget as x } from "@widget-lab/3ddashboard-utils";
|
|
4
4
|
function B() {
|
|
5
5
|
return E();
|
|
6
6
|
}
|
|
@@ -67,13 +67,13 @@ async function _e(e, t = void 0, n = void 0) {
|
|
|
67
67
|
}
|
|
68
68
|
async function we(e, t = W) {
|
|
69
69
|
let n = O.now().year;
|
|
70
|
-
const s = e, i = [], r = (
|
|
71
|
-
for (let c in
|
|
72
|
-
i.push({ date: c, comment:
|
|
70
|
+
const s = e, i = [], r = (a) => {
|
|
71
|
+
for (let c in a)
|
|
72
|
+
i.push({ date: c, comment: a[c] });
|
|
73
73
|
};
|
|
74
|
-
for (let
|
|
74
|
+
for (let a = n; a <= n + 1; a++)
|
|
75
75
|
await fetch(
|
|
76
|
-
"https://calendrier.api.gouv.fr/jours-feries/metropole/" +
|
|
76
|
+
"https://calendrier.api.gouv.fr/jours-feries/metropole/" + a + ".json",
|
|
77
77
|
{
|
|
78
78
|
method: "GET",
|
|
79
79
|
headers: {
|
|
@@ -84,30 +84,30 @@ async function we(e, t = W) {
|
|
|
84
84
|
r(c);
|
|
85
85
|
}).catch((c) => console.error("Erreur : " + c));
|
|
86
86
|
return (() => {
|
|
87
|
-
const
|
|
87
|
+
const a = s.length === 0 ? {
|
|
88
88
|
events: []
|
|
89
89
|
} : s;
|
|
90
90
|
for (let c of i)
|
|
91
|
-
|
|
91
|
+
a.events.findIndex(
|
|
92
92
|
(u) => u.start === O.fromISO(c.date).toISODate() && u.name === "Férié : " + c.comment
|
|
93
|
-
) === -1 &&
|
|
93
|
+
) === -1 && a.events.push({
|
|
94
94
|
name: "Férié : " + c.comment,
|
|
95
95
|
start: O.fromISO(c.date).toISODate(),
|
|
96
96
|
end: O.fromISO(c.date).toISODate(),
|
|
97
97
|
color: t.b3BusinnessDays,
|
|
98
98
|
timed: !1
|
|
99
99
|
});
|
|
100
|
-
return
|
|
100
|
+
return a;
|
|
101
101
|
})();
|
|
102
102
|
}
|
|
103
103
|
function X(e, t, n) {
|
|
104
|
-
const { credentials: s, myArray: i, chunk: r, fn_to_call:
|
|
104
|
+
const { credentials: s, myArray: i, chunk: r, fn_to_call: o } = e, a = [];
|
|
105
105
|
for (let c = 0; c < i.length; c += r) {
|
|
106
106
|
const d = i.slice(c, c + r);
|
|
107
|
-
|
|
107
|
+
a.push(d);
|
|
108
108
|
}
|
|
109
109
|
V(
|
|
110
|
-
{ credentials: s, chunks:
|
|
110
|
+
{ credentials: s, chunks: a, initLoop: 0, fn: o },
|
|
111
111
|
(c) => {
|
|
112
112
|
t && t(c);
|
|
113
113
|
},
|
|
@@ -117,12 +117,12 @@ function X(e, t, n) {
|
|
|
117
117
|
);
|
|
118
118
|
}
|
|
119
119
|
function V(e, t, n) {
|
|
120
|
-
const { credentials: s, chunks: i, initLoop: r, fn:
|
|
121
|
-
|
|
120
|
+
const { credentials: s, chunks: i, initLoop: r, fn: o } = e, a = (c) => {
|
|
121
|
+
o(
|
|
122
122
|
s,
|
|
123
123
|
i[c],
|
|
124
124
|
() => {
|
|
125
|
-
c++, c < i.length &&
|
|
125
|
+
c++, c < i.length && a(c);
|
|
126
126
|
},
|
|
127
127
|
(d) => {
|
|
128
128
|
t && t(d);
|
|
@@ -132,7 +132,7 @@ function V(e, t, n) {
|
|
|
132
132
|
}
|
|
133
133
|
);
|
|
134
134
|
};
|
|
135
|
-
|
|
135
|
+
a(r);
|
|
136
136
|
}
|
|
137
137
|
async function Ce(e, t, n = !0) {
|
|
138
138
|
const s = e.events.findIndex((i) => i.uuid === t.uuid);
|
|
@@ -155,7 +155,7 @@ function be(e, t = void 0) {
|
|
|
155
155
|
$(["DS/TagNavigatorProxy/TagNavigatorProxy"], (n) => {
|
|
156
156
|
let s;
|
|
157
157
|
s === void 0 && (s = n.createProxy({
|
|
158
|
-
widgetId:
|
|
158
|
+
widgetId: x.id,
|
|
159
159
|
filteringMode: "WithFilteringServices"
|
|
160
160
|
}), t !== void 0 && s.addEvent("onFilterSubjectsChange", t)), s.setSubjectsTags(e);
|
|
161
161
|
});
|
|
@@ -171,7 +171,7 @@ async function $e(e, t = void 0, n = void 0) {
|
|
|
171
171
|
await $(
|
|
172
172
|
["DS/i3DXCompassServices/i3DXCompassServices"],
|
|
173
173
|
(s) => {
|
|
174
|
-
(!e || e === "") && (e =
|
|
174
|
+
(!e || e === "") && (e = x.getValue("PlatFormInstanceId")), (!e || e === "") && (e = void 0), t && t(
|
|
175
175
|
s.getPlatformServices({
|
|
176
176
|
platformId: e,
|
|
177
177
|
onComplete: t,
|
|
@@ -195,17 +195,17 @@ function Y() {
|
|
|
195
195
|
};
|
|
196
196
|
}), console.log("%cRETOUR API :", "color:blue", e), e;
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function R(e, t = void 0, n = void 0) {
|
|
199
199
|
if (e.tenant) {
|
|
200
200
|
const s = `https://${e.tenant}-eu1-apps.3dexperience.3ds.com/enovia/resources/AppsMngt/api/v1/services?tenant=${e.tenant}&cors=true&xrequestedwith=xmlhttprequest`;
|
|
201
201
|
m(s, {
|
|
202
202
|
onComplete(i) {
|
|
203
203
|
const r = typeof i == "string" ? JSON.parse(i) : i;
|
|
204
204
|
if (r && "platforms" in r) {
|
|
205
|
-
const
|
|
206
|
-
(
|
|
205
|
+
const o = r.platforms.find(
|
|
206
|
+
(a) => a.id === e.tenant.toUpperCase()
|
|
207
207
|
);
|
|
208
|
-
t &&
|
|
208
|
+
t && o ? t(o) : n && n("_getServiceUrl return listServiceUrl = undefined");
|
|
209
209
|
} else
|
|
210
210
|
n && n("_getServiceUrl return oResponse = undefined");
|
|
211
211
|
},
|
|
@@ -222,8 +222,8 @@ function Ne(e, t = void 0, n = void 0) {
|
|
|
222
222
|
onComplete(i) {
|
|
223
223
|
const r = JSON.parse(i);
|
|
224
224
|
if (console.log("serviceId=3dpassport", r), Array.isArray(r) && r.length > 0) {
|
|
225
|
-
const
|
|
226
|
-
t && t(
|
|
225
|
+
const o = `${r[0].services[0].url}`;
|
|
226
|
+
t && t(o);
|
|
227
227
|
}
|
|
228
228
|
},
|
|
229
229
|
onFailure(i) {
|
|
@@ -245,42 +245,42 @@ function Ie(e, t, n) {
|
|
|
245
245
|
"Content-Type": "application/json",
|
|
246
246
|
Accept: "application/json"
|
|
247
247
|
},
|
|
248
|
-
onComplete(r,
|
|
248
|
+
onComplete(r, o, a) {
|
|
249
249
|
const c = JSON.parse(r), d = c.data.map((u) => {
|
|
250
250
|
const p = u.attributes.name, f = u.id;
|
|
251
251
|
return { name: p, id: f };
|
|
252
252
|
});
|
|
253
253
|
t && t(d, c);
|
|
254
254
|
},
|
|
255
|
-
onFailure(r,
|
|
256
|
-
const
|
|
257
|
-
|
|
255
|
+
onFailure(r, o) {
|
|
256
|
+
const a = r;
|
|
257
|
+
a.msg = o.errormsg, a.errCode = o.errorcode, n && n(a);
|
|
258
258
|
}
|
|
259
259
|
});
|
|
260
260
|
}
|
|
261
|
-
function
|
|
261
|
+
function Fe(e, t = void 0, n = void 0) {
|
|
262
262
|
let s = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&limit=-1`;
|
|
263
263
|
m(s, {
|
|
264
|
-
onComplete(i, r,
|
|
265
|
-
const
|
|
266
|
-
console.log("_AppMngt_get_users => ",
|
|
264
|
+
onComplete(i, r, o) {
|
|
265
|
+
const a = JSON.parse(i);
|
|
266
|
+
console.log("_AppMngt_get_users => ", a), t && t(a);
|
|
267
267
|
},
|
|
268
268
|
onFailure(i, r) {
|
|
269
|
-
const
|
|
270
|
-
|
|
269
|
+
const o = i;
|
|
270
|
+
o.msg = r.errormsg, o.errCode = r.errorcode, n && n(o);
|
|
271
271
|
}
|
|
272
272
|
});
|
|
273
273
|
}
|
|
274
|
-
function
|
|
274
|
+
function je(e, t, n = void 0, s = void 0) {
|
|
275
275
|
let i = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&id=${t}`;
|
|
276
276
|
m(i, {
|
|
277
|
-
onComplete(r,
|
|
277
|
+
onComplete(r, o, a) {
|
|
278
278
|
const c = JSON.parse(r);
|
|
279
279
|
n && n(c);
|
|
280
280
|
},
|
|
281
|
-
onFailure(r,
|
|
282
|
-
const
|
|
283
|
-
|
|
281
|
+
onFailure(r, o) {
|
|
282
|
+
const a = r;
|
|
283
|
+
a.msg = o.errormsg, a.errCode = o.errorcode, s && s(a);
|
|
284
284
|
}
|
|
285
285
|
});
|
|
286
286
|
}
|
|
@@ -288,8 +288,8 @@ const k = {
|
|
|
288
288
|
"Content-Type": "application/json",
|
|
289
289
|
Accept: "application/json,text/javascript,*/*"
|
|
290
290
|
};
|
|
291
|
-
function
|
|
292
|
-
const { space: i, currentUser: r } = e,
|
|
291
|
+
function ke(e, t, n = void 0, s = void 0) {
|
|
292
|
+
const { space: i, currentUser: r } = e, a = `${i}${{
|
|
293
293
|
URIUGr: "/3drdfpersist/resources/v1/usersgroup"
|
|
294
294
|
}.URIUGr}`, c = {
|
|
295
295
|
groups: [
|
|
@@ -303,7 +303,7 @@ function je(e, t, n = void 0, s = void 0) {
|
|
|
303
303
|
}
|
|
304
304
|
]
|
|
305
305
|
};
|
|
306
|
-
m(
|
|
306
|
+
m(a, {
|
|
307
307
|
method: "POST",
|
|
308
308
|
headers: k,
|
|
309
309
|
data: JSON.stringify(c),
|
|
@@ -317,8 +317,8 @@ function je(e, t, n = void 0, s = void 0) {
|
|
|
317
317
|
}
|
|
318
318
|
});
|
|
319
319
|
}
|
|
320
|
-
function
|
|
321
|
-
const { space: i, tenant: r } = e,
|
|
320
|
+
function Ae(e, t, n = void 0, s = void 0) {
|
|
321
|
+
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}`;
|
|
322
322
|
m(d, {
|
|
323
323
|
opts: {
|
|
324
324
|
method: "GET",
|
|
@@ -337,10 +337,10 @@ function ke(e, t, n = void 0, s = void 0) {
|
|
|
337
337
|
});
|
|
338
338
|
}
|
|
339
339
|
function q(e, t = void 0, n = void 0) {
|
|
340
|
-
const { space: s, tenant: i } = e, r = s,
|
|
340
|
+
const { space: s, tenant: i } = e, r = s, o = "/3drdfpersist/resources/v1/option-sets/dsusergroup:ListOfGroupResponsibilities/options", a = `?tenant=dstenant:${i}`, c = {
|
|
341
341
|
method: "GET",
|
|
342
342
|
Accept: "application/json,*/*,test/javascript"
|
|
343
|
-
}, d = `${r}${
|
|
343
|
+
}, d = `${r}${o}${a}`;
|
|
344
344
|
m(d, {
|
|
345
345
|
OPTsH: c,
|
|
346
346
|
onComplete(u) {
|
|
@@ -352,13 +352,13 @@ function q(e, t = void 0, n = void 0) {
|
|
|
352
352
|
}
|
|
353
353
|
});
|
|
354
354
|
}
|
|
355
|
-
function
|
|
356
|
-
const { space: s, currentUser: i } = e,
|
|
355
|
+
function ve(e, t = void 0, n = void 0) {
|
|
356
|
+
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: {
|
|
357
357
|
"Content-Type": "application/json",
|
|
358
358
|
Accept: "application/json,text/javascript,*/*"
|
|
359
359
|
} };
|
|
360
360
|
try {
|
|
361
|
-
m(
|
|
361
|
+
m(a, {
|
|
362
362
|
opts: d,
|
|
363
363
|
onComplete(u) {
|
|
364
364
|
const p = JSON.parse(u), f = {}, l = p.groups.filter((g) => g.uri.startsWith("uuid:"));
|
|
@@ -390,15 +390,15 @@ function Ue(e, t) {
|
|
|
390
390
|
});
|
|
391
391
|
}
|
|
392
392
|
function xe(e, t, n, s = void 0, i = void 0) {
|
|
393
|
-
const { space: r, tenant:
|
|
393
|
+
const { space: r, tenant: o } = e, a = {
|
|
394
394
|
URITI: "/3drdfpersist/resources/v1/template-instances",
|
|
395
395
|
URIUGr: "/3drdfpersist/resources/v1/usersgroup",
|
|
396
396
|
nextURICh: "/characteristics",
|
|
397
397
|
nextURIGr: "/group",
|
|
398
398
|
nexURImem: "/members",
|
|
399
399
|
OPTsTI: "?$mask=dsaccess:Mask.GroupUI.Properties",
|
|
400
|
-
OPTsTenant: `tenant=dstenant:${
|
|
401
|
-
}, c = n, d = `${r}${
|
|
400
|
+
OPTsTenant: `tenant=dstenant:${o}`
|
|
401
|
+
}, c = n, d = `${r}${a.URIUGr}/${t}`, u = JSON.stringify(c);
|
|
402
402
|
m(d, {
|
|
403
403
|
headers: k,
|
|
404
404
|
method: "PATCH",
|
|
@@ -412,9 +412,9 @@ function xe(e, t, n, s = void 0, i = void 0) {
|
|
|
412
412
|
}
|
|
413
413
|
});
|
|
414
414
|
}
|
|
415
|
-
function
|
|
416
|
-
const { space: r } = e,
|
|
417
|
-
m(
|
|
415
|
+
function Re(e, t, n, s = void 0, i = void 0) {
|
|
416
|
+
const { space: r } = e, a = `${r}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
|
|
417
|
+
m(a, {
|
|
418
418
|
method: "PATCH",
|
|
419
419
|
headers: k,
|
|
420
420
|
data: JSON.stringify(n),
|
|
@@ -427,9 +427,9 @@ function Pe(e, t, n, s = void 0, i = void 0) {
|
|
|
427
427
|
}
|
|
428
428
|
});
|
|
429
429
|
}
|
|
430
|
-
function
|
|
431
|
-
const { space: i } = e,
|
|
432
|
-
m(
|
|
430
|
+
function Pe(e, t, n = void 0, s = void 0) {
|
|
431
|
+
const { space: i } = e, o = `${i}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
|
|
432
|
+
m(o, {
|
|
433
433
|
opts: {
|
|
434
434
|
method: "GET",
|
|
435
435
|
headers: {
|
|
@@ -452,13 +452,13 @@ async function H(e, t, n) {
|
|
|
452
452
|
onComplete(i) {
|
|
453
453
|
i = JSON.parse(i), t && t(i.csrf);
|
|
454
454
|
},
|
|
455
|
-
onFailure(i, r,
|
|
456
|
-
n && n({ error: i, headers: r, xhr:
|
|
455
|
+
onFailure(i, r, o) {
|
|
456
|
+
n && n({ error: i, headers: r, xhr: o });
|
|
457
457
|
}
|
|
458
458
|
});
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
|
-
var
|
|
461
|
+
var I = {};
|
|
462
462
|
function z(e, t) {
|
|
463
463
|
return Object.prototype.hasOwnProperty.call(e, t);
|
|
464
464
|
}
|
|
@@ -469,16 +469,16 @@ var Q = function(e, t, n, s) {
|
|
|
469
469
|
return i;
|
|
470
470
|
var r = /\+/g;
|
|
471
471
|
e = e.split(t);
|
|
472
|
-
var
|
|
473
|
-
s && typeof s.maxKeys == "number" && (
|
|
474
|
-
var
|
|
475
|
-
|
|
476
|
-
for (var c = 0; c <
|
|
472
|
+
var o = 1e3;
|
|
473
|
+
s && typeof s.maxKeys == "number" && (o = s.maxKeys);
|
|
474
|
+
var a = e.length;
|
|
475
|
+
o > 0 && a > o && (a = o);
|
|
476
|
+
for (var c = 0; c < a; ++c) {
|
|
477
477
|
var d = e[c].replace(r, "%20"), u = d.indexOf(n), p, f, l, g;
|
|
478
478
|
u >= 0 ? (p = d.substr(0, u), f = d.substr(u + 1)) : (p = d, f = ""), l = decodeURIComponent(p), g = decodeURIComponent(f), z(i, l) ? Array.isArray(i[l]) ? i[l].push(g) : i[l] = [i[l], g] : i[l] = g;
|
|
479
479
|
}
|
|
480
480
|
return i;
|
|
481
|
-
},
|
|
481
|
+
}, N = function(e) {
|
|
482
482
|
switch (typeof e) {
|
|
483
483
|
case "string":
|
|
484
484
|
return e;
|
|
@@ -491,15 +491,15 @@ var Q = function(e, t, n, s) {
|
|
|
491
491
|
}
|
|
492
492
|
}, Z = function(e, t, n, s) {
|
|
493
493
|
return t = t || "&", n = n || "=", e === null && (e = void 0), typeof e == "object" ? Object.keys(e).map(function(i) {
|
|
494
|
-
var r = encodeURIComponent(
|
|
495
|
-
return Array.isArray(e[i]) ? e[i].map(function(
|
|
496
|
-
return r + encodeURIComponent(
|
|
497
|
-
}).join(t) : r + encodeURIComponent(
|
|
498
|
-
}).filter(Boolean).join(t) : s ? encodeURIComponent(
|
|
494
|
+
var r = encodeURIComponent(N(i)) + n;
|
|
495
|
+
return Array.isArray(e[i]) ? e[i].map(function(o) {
|
|
496
|
+
return r + encodeURIComponent(N(o));
|
|
497
|
+
}).join(t) : r + encodeURIComponent(N(e[i]));
|
|
498
|
+
}).filter(Boolean).join(t) : s ? encodeURIComponent(N(s)) + n + encodeURIComponent(N(e)) : "";
|
|
499
499
|
};
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
async function
|
|
500
|
+
I.decode = I.parse = Q;
|
|
501
|
+
I.encode = I.stringify = Z;
|
|
502
|
+
async function P(e, t = void 0, n = void 0, s = void 0) {
|
|
503
503
|
const i = e.space;
|
|
504
504
|
if (t === void 0) {
|
|
505
505
|
console.log("Le paramètre docid est obligatoire");
|
|
@@ -507,12 +507,12 @@ async function R(e, t = void 0, n = void 0, s = void 0) {
|
|
|
507
507
|
}
|
|
508
508
|
const r = i + `/resources/v1/modeler/documents/${t}`;
|
|
509
509
|
m(r, {
|
|
510
|
-
onComplete(
|
|
511
|
-
const d = JSON.parse(
|
|
510
|
+
onComplete(o, a, c) {
|
|
511
|
+
const d = JSON.parse(o);
|
|
512
512
|
n && n(d);
|
|
513
513
|
},
|
|
514
|
-
onFailure(
|
|
515
|
-
s && s(
|
|
514
|
+
onFailure(o) {
|
|
515
|
+
s && s(o);
|
|
516
516
|
}
|
|
517
517
|
});
|
|
518
518
|
}
|
|
@@ -522,7 +522,7 @@ async function De(e, t = void 0, n = void 0, s = void 0) {
|
|
|
522
522
|
console.log("Le paramètre docids est obligatoire");
|
|
523
523
|
return;
|
|
524
524
|
}
|
|
525
|
-
let r = `${i}/resources/v1/modeler/documents/ids?$include=!files,!ownerInfo,!originatorInfo,!relOwnerInfo'`,
|
|
525
|
+
let r = `${i}/resources/v1/modeler/documents/ids?$include=!files,!ownerInfo,!originatorInfo,!relOwnerInfo'`, o = I.stringify({
|
|
526
526
|
$ids: t.toString().replace('"', "").replace("[", "").replace("]", "")
|
|
527
527
|
});
|
|
528
528
|
m(r, {
|
|
@@ -530,13 +530,13 @@ async function De(e, t = void 0, n = void 0, s = void 0) {
|
|
|
530
530
|
headers: {
|
|
531
531
|
"Content-Type": "application/x-www-form-urlencoded"
|
|
532
532
|
},
|
|
533
|
-
data:
|
|
534
|
-
onComplete(
|
|
535
|
-
const u = JSON.parse(
|
|
533
|
+
data: o,
|
|
534
|
+
onComplete(a, c, d) {
|
|
535
|
+
const u = JSON.parse(a);
|
|
536
536
|
n && n(u);
|
|
537
537
|
},
|
|
538
|
-
onFailure(
|
|
539
|
-
s && s(
|
|
538
|
+
onFailure(a) {
|
|
539
|
+
s && s(a);
|
|
540
540
|
}
|
|
541
541
|
});
|
|
542
542
|
}
|
|
@@ -544,9 +544,9 @@ function F(e, t = void 0, n = void 0) {
|
|
|
544
544
|
if (e.objID && e.objID !== "") {
|
|
545
545
|
let s = `${e.space}/resources/v1/modeler/documents/${e.objID}`;
|
|
546
546
|
m(s, {
|
|
547
|
-
onComplete(i, r,
|
|
548
|
-
const
|
|
549
|
-
e.success = !0, e.token =
|
|
547
|
+
onComplete(i, r, o) {
|
|
548
|
+
const a = JSON.parse(i);
|
|
549
|
+
e.success = !0, e.token = a?.csrf?.value, e.datas = a?.data[0], t && t(e);
|
|
550
550
|
},
|
|
551
551
|
onFailure(i) {
|
|
552
552
|
n && n(i);
|
|
@@ -567,15 +567,15 @@ function b(e, t = void 0, n = void 0) {
|
|
|
567
567
|
if (e.space) {
|
|
568
568
|
const s = e.space + "/resources/v1/application/CSRF";
|
|
569
569
|
m(s, {
|
|
570
|
-
onComplete(i, r,
|
|
571
|
-
const
|
|
572
|
-
t && t(
|
|
570
|
+
onComplete(i, r, o) {
|
|
571
|
+
const a = JSON.parse(i);
|
|
572
|
+
t && t(a.csrf.value);
|
|
573
573
|
},
|
|
574
|
-
onFailure(i, r,
|
|
574
|
+
onFailure(i, r, o) {
|
|
575
575
|
n && n({
|
|
576
576
|
response: i,
|
|
577
577
|
headers: r,
|
|
578
|
-
xhr:
|
|
578
|
+
xhr: o
|
|
579
579
|
});
|
|
580
580
|
}
|
|
581
581
|
});
|
|
@@ -592,12 +592,12 @@ function A(e, t = void 0, n = void 0) {
|
|
|
592
592
|
headers: {
|
|
593
593
|
ENO_CSRF_TOKEN: e.token
|
|
594
594
|
},
|
|
595
|
-
onComplete(r,
|
|
595
|
+
onComplete(r, o) {
|
|
596
596
|
const c = JSON.parse(r).data[0].dataelements.ticketURL;
|
|
597
|
-
t && t(c,
|
|
597
|
+
t && t(c, o);
|
|
598
598
|
},
|
|
599
|
-
onFailure(r,
|
|
600
|
-
console.warn("☠️ error => ", r,
|
|
599
|
+
onFailure(r, o) {
|
|
600
|
+
console.warn("☠️ error => ", r, o), n && n(r, o);
|
|
601
601
|
}
|
|
602
602
|
});
|
|
603
603
|
},
|
|
@@ -613,23 +613,23 @@ function Le(e, t, n = void 0, s = void 0, i = void 0) {
|
|
|
613
613
|
headers: {
|
|
614
614
|
ENO_CSRF_TOKEN: n
|
|
615
615
|
},
|
|
616
|
-
onComplete(
|
|
617
|
-
let
|
|
618
|
-
if (console.log("☠️ info => ",
|
|
616
|
+
onComplete(o) {
|
|
617
|
+
let a = JSON.parse(o);
|
|
618
|
+
if (console.log("☠️ info => ", a), a.success === !0)
|
|
619
619
|
try {
|
|
620
|
-
const c =
|
|
620
|
+
const c = a.data[0].dataelements.ticketURL;
|
|
621
621
|
s && s(c);
|
|
622
622
|
} catch (c) {
|
|
623
623
|
i && i(c);
|
|
624
624
|
}
|
|
625
625
|
},
|
|
626
|
-
onFailure(
|
|
627
|
-
i && i(
|
|
626
|
+
onFailure(o) {
|
|
627
|
+
i && i(o);
|
|
628
628
|
}
|
|
629
629
|
});
|
|
630
630
|
}
|
|
631
|
-
function D(e, t, n, s, i, r = void 0,
|
|
632
|
-
const
|
|
631
|
+
function D(e, t, n, s, i, r = void 0, o = void 0) {
|
|
632
|
+
const a = () => ee(
|
|
633
633
|
e,
|
|
634
634
|
t,
|
|
635
635
|
n,
|
|
@@ -637,17 +637,17 @@ function D(e, t, n, s, i, r = void 0, a = void 0) {
|
|
|
637
637
|
i,
|
|
638
638
|
e.token,
|
|
639
639
|
r,
|
|
640
|
-
|
|
640
|
+
o
|
|
641
641
|
);
|
|
642
|
-
e.token ?
|
|
642
|
+
e.token ? a() : F(
|
|
643
643
|
e,
|
|
644
644
|
t,
|
|
645
645
|
(c) => {
|
|
646
|
-
e.token = c.csrf.value,
|
|
646
|
+
e.token = c.csrf.value, a();
|
|
647
647
|
}
|
|
648
648
|
);
|
|
649
649
|
}
|
|
650
|
-
function ee(e, t, n, s, i, r,
|
|
650
|
+
function ee(e, t, n, s, i, r, o = void 0, a = void 0) {
|
|
651
651
|
const c = e.space + `/resources/v1/modeler/documents/${t}/files/CheckinTicket`;
|
|
652
652
|
m(c, {
|
|
653
653
|
method: "PUT",
|
|
@@ -689,10 +689,10 @@ function ee(e, t, n, s, i, r, a = void 0, o = void 0) {
|
|
|
689
689
|
}),
|
|
690
690
|
type: "json",
|
|
691
691
|
onComplete(T) {
|
|
692
|
-
|
|
692
|
+
o && o(T);
|
|
693
693
|
},
|
|
694
694
|
onFailure(T) {
|
|
695
|
-
|
|
695
|
+
a && a(T);
|
|
696
696
|
}
|
|
697
697
|
}, C = e.tenant.toUpperCase();
|
|
698
698
|
m(
|
|
@@ -700,23 +700,23 @@ function ee(e, t, n, s, i, r, a = void 0, o = void 0) {
|
|
|
700
700
|
_
|
|
701
701
|
);
|
|
702
702
|
}, y.onFailure = function(S) {
|
|
703
|
-
|
|
703
|
+
a && a(S);
|
|
704
704
|
}, y.timeout = 0, m(l.ticketURL, y);
|
|
705
705
|
}
|
|
706
706
|
});
|
|
707
707
|
}
|
|
708
708
|
async function Me(e, t, n, s = void 0, i = void 0) {
|
|
709
|
-
e.space, e.token, e.ctx,
|
|
709
|
+
e.space, e.token, e.ctx, P(
|
|
710
710
|
e,
|
|
711
711
|
t,
|
|
712
712
|
(r) => {
|
|
713
|
-
const
|
|
713
|
+
const o = r.data[0].relateddata.files[0].id, a = r.data[0].dataelements.secondaryTitle && r.data[0].dataelements.secondaryTitle !== "" ? r.data[0].dataelements.secondaryTitle : r.data[0].dataelements.title;
|
|
714
714
|
D(
|
|
715
715
|
e,
|
|
716
716
|
t,
|
|
717
|
-
a,
|
|
718
|
-
n,
|
|
719
717
|
o,
|
|
718
|
+
n,
|
|
719
|
+
a,
|
|
720
720
|
(c) => {
|
|
721
721
|
s && s(c);
|
|
722
722
|
},
|
|
@@ -733,10 +733,10 @@ async function Me(e, t, n, s = void 0, i = void 0) {
|
|
|
733
733
|
async function Je(e, t, n, s, i = void 0, r = void 0) {
|
|
734
734
|
te(
|
|
735
735
|
e,
|
|
736
|
-
(
|
|
737
|
-
console.log("resultCheckinTicket", n,
|
|
736
|
+
(o) => {
|
|
737
|
+
console.log("resultCheckinTicket", n, o), o?.items >= 1 && o.data.forEach((a) => {
|
|
738
738
|
ne(
|
|
739
|
-
|
|
739
|
+
a,
|
|
740
740
|
t,
|
|
741
741
|
n,
|
|
742
742
|
(c) => {
|
|
@@ -758,7 +758,7 @@ async function Je(e, t, n, s, i = void 0, r = void 0) {
|
|
|
758
758
|
);
|
|
759
759
|
});
|
|
760
760
|
},
|
|
761
|
-
(
|
|
761
|
+
(o) => console.warn(o)
|
|
762
762
|
);
|
|
763
763
|
}
|
|
764
764
|
function te(e, t = void 0, n = void 0) {
|
|
@@ -772,7 +772,7 @@ function te(e, t = void 0, n = void 0) {
|
|
|
772
772
|
"Content-Type": "application/json",
|
|
773
773
|
SecurityContext: e.ctx
|
|
774
774
|
},
|
|
775
|
-
onComplete(i, r,
|
|
775
|
+
onComplete(i, r, o) {
|
|
776
776
|
try {
|
|
777
777
|
i = JSON.parse(i);
|
|
778
778
|
} catch {
|
|
@@ -791,22 +791,22 @@ function ne(e, t, n, s = void 0, i = void 0) {
|
|
|
791
791
|
t instanceof Blob || (t = new Blob([t], {
|
|
792
792
|
type: "text/plain"
|
|
793
793
|
})), r.append("__fcs__jobTicket", e.dataelements.ticket), r.append("file_0", t, n);
|
|
794
|
-
let
|
|
795
|
-
m(
|
|
794
|
+
let o = e.dataelements.ticketURL;
|
|
795
|
+
m(o, {
|
|
796
796
|
method: "POST",
|
|
797
797
|
data: r,
|
|
798
|
-
onComplete(
|
|
799
|
-
s && s(
|
|
798
|
+
onComplete(a) {
|
|
799
|
+
s && s(a.replace(/[\n\r]/g, ""));
|
|
800
800
|
},
|
|
801
|
-
onFailure(
|
|
802
|
-
i && i(
|
|
801
|
+
onFailure(a) {
|
|
802
|
+
i && i(a);
|
|
803
803
|
}
|
|
804
804
|
});
|
|
805
805
|
}
|
|
806
806
|
function se(e, t, n, s = void 0, i = void 0, r = void 0) {
|
|
807
807
|
console.log("relatedDocAndFile", { credentials: e, receipt: t, filename: n });
|
|
808
|
-
const
|
|
809
|
-
let
|
|
808
|
+
const o = (d) => d.indexOf(".") === -1 ? d : d.split(".").slice(0, -1).join(".");
|
|
809
|
+
let a = "temp_" + O.now().ts, c = e.space + "/resources/v1/modeler/documents/?e6w-lang=fr&e6w-timezone=-120&xrequestedwith=xmlhttprequest";
|
|
810
810
|
m(c, {
|
|
811
811
|
method: "POST",
|
|
812
812
|
headers: {
|
|
@@ -820,7 +820,7 @@ function se(e, t, n, s = void 0, i = void 0, r = void 0) {
|
|
|
820
820
|
{
|
|
821
821
|
type: "Document",
|
|
822
822
|
dataelements: {
|
|
823
|
-
title:
|
|
823
|
+
title: o(n),
|
|
824
824
|
description: s
|
|
825
825
|
},
|
|
826
826
|
relateddata: {
|
|
@@ -834,7 +834,7 @@ function se(e, t, n, s = void 0, i = void 0, r = void 0) {
|
|
|
834
834
|
}
|
|
835
835
|
]
|
|
836
836
|
},
|
|
837
|
-
tempId:
|
|
837
|
+
tempId: a
|
|
838
838
|
}
|
|
839
839
|
]
|
|
840
840
|
}),
|
|
@@ -850,9 +850,9 @@ function se(e, t, n, s = void 0, i = void 0, r = void 0) {
|
|
|
850
850
|
}
|
|
851
851
|
});
|
|
852
852
|
}
|
|
853
|
-
function j(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0,
|
|
854
|
-
const
|
|
855
|
-
m(
|
|
853
|
+
function j(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0, o = !1) {
|
|
854
|
+
const a = `${e.space}/resources/modeler/pno/person?current=true&select=preferredcredentials&select=collabspaces`;
|
|
855
|
+
m(a, {
|
|
856
856
|
method: "GET",
|
|
857
857
|
onComplete(c) {
|
|
858
858
|
const d = JSON.parse(c);
|
|
@@ -889,7 +889,7 @@ function j(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0, a = !1
|
|
|
889
889
|
}));
|
|
890
890
|
}
|
|
891
891
|
}
|
|
892
|
-
p && f && l ? (u = l + "." + f + "." + p, i(u)) : d.preferredcredentials &&
|
|
892
|
+
p && f && l ? (u = l + "." + f + "." + p, i(u)) : d.preferredcredentials && o ? (u = d.preferredcredentials.role.name + "." + d.preferredcredentials.organization.title + "." + d.preferredcredentials.collabspace.title, i(u)) : r && (u = l + "." + f + "." + p, r(u));
|
|
893
893
|
},
|
|
894
894
|
onFailure(c, d) {
|
|
895
895
|
console.warn("Erreur de récupération du contexte de sécurité. => ", {
|
|
@@ -918,28 +918,28 @@ async function L(e, t = void 0, n = void 0) {
|
|
|
918
918
|
A(
|
|
919
919
|
e,
|
|
920
920
|
(r) => {
|
|
921
|
-
e?.returnType === "blob" ? (console.log("ticketURL blob", r), fetch(r).then((
|
|
922
|
-
t && t(
|
|
923
|
-
}).catch((
|
|
924
|
-
n && n(
|
|
921
|
+
e?.returnType === "blob" ? (console.log("ticketURL blob", r), fetch(r).then((o) => o.blob()).then((o) => {
|
|
922
|
+
t && t(o);
|
|
923
|
+
}).catch((o) => {
|
|
924
|
+
n && n(o);
|
|
925
925
|
})) : m(r, {
|
|
926
|
-
onComplete(
|
|
927
|
-
let
|
|
926
|
+
onComplete(o) {
|
|
927
|
+
let a;
|
|
928
928
|
try {
|
|
929
|
-
|
|
929
|
+
a = JSON.parse(o);
|
|
930
930
|
} catch {
|
|
931
|
-
|
|
931
|
+
a = o;
|
|
932
932
|
}
|
|
933
|
-
t && typeof t == "function" && t(
|
|
933
|
+
t && typeof t == "function" && t(a), s(a);
|
|
934
934
|
},
|
|
935
|
-
onFailure(
|
|
936
|
-
n && (console.log("error http",
|
|
937
|
-
msg: JSON.parse(
|
|
938
|
-
headers:
|
|
935
|
+
onFailure(o, a, c) {
|
|
936
|
+
n && (console.log("error http", o), n({
|
|
937
|
+
msg: JSON.parse(o),
|
|
938
|
+
headers: a,
|
|
939
939
|
xhr: c
|
|
940
940
|
}), i({
|
|
941
|
-
msg: JSON.parse(
|
|
942
|
-
headers:
|
|
941
|
+
msg: JSON.parse(o),
|
|
942
|
+
headers: a,
|
|
943
943
|
xhr: c
|
|
944
944
|
}));
|
|
945
945
|
}
|
|
@@ -972,17 +972,17 @@ function ae(e, t, n = void 0, s = void 0, i = void 0) {
|
|
|
972
972
|
id: c
|
|
973
973
|
});
|
|
974
974
|
});
|
|
975
|
-
let
|
|
975
|
+
let o = JSON.stringify({
|
|
976
976
|
csrf: {
|
|
977
977
|
name: "ENO_CSRF_TOKEN",
|
|
978
978
|
value: e.token
|
|
979
979
|
},
|
|
980
980
|
data: r
|
|
981
981
|
});
|
|
982
|
-
const
|
|
983
|
-
m(
|
|
982
|
+
const a = `${e.space}/resources/v1/modeler/documents/DownloadTicket?tenant=${e.tenant}&e6w-lang=fr&e6w-timezone=-120`;
|
|
983
|
+
m(a, {
|
|
984
984
|
method: "PUT",
|
|
985
|
-
data:
|
|
985
|
+
data: o,
|
|
986
986
|
type: "json",
|
|
987
987
|
onComplete(c) {
|
|
988
988
|
const d = c.data;
|
|
@@ -1022,7 +1022,7 @@ function Ge(e, t, n = void 0, s = void 0) {
|
|
|
1022
1022
|
return new Promise((i) => {
|
|
1023
1023
|
if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
|
|
1024
1024
|
const r = `${e.space}/resources/v1/modeler/dslc/maturity/getNextStates`;
|
|
1025
|
-
let
|
|
1025
|
+
let o = {
|
|
1026
1026
|
method: "POST",
|
|
1027
1027
|
headers: {
|
|
1028
1028
|
SecurityContext: "ctx::" + e.ctx,
|
|
@@ -1038,22 +1038,22 @@ function Ge(e, t, n = void 0, s = void 0) {
|
|
|
1038
1038
|
]
|
|
1039
1039
|
}),
|
|
1040
1040
|
type: "json",
|
|
1041
|
-
onComplete(
|
|
1042
|
-
n && n(
|
|
1041
|
+
onComplete(a) {
|
|
1042
|
+
n && n(a);
|
|
1043
1043
|
},
|
|
1044
|
-
onFailure(
|
|
1045
|
-
s && s(
|
|
1044
|
+
onFailure(a) {
|
|
1045
|
+
s && s(a);
|
|
1046
1046
|
}
|
|
1047
1047
|
};
|
|
1048
|
-
m(r,
|
|
1048
|
+
m(r, o);
|
|
1049
1049
|
}
|
|
1050
1050
|
});
|
|
1051
1051
|
}
|
|
1052
1052
|
function Ke(e, t, n, s = void 0, i = void 0) {
|
|
1053
1053
|
return new Promise((r) => {
|
|
1054
1054
|
if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
|
|
1055
|
-
const
|
|
1056
|
-
let
|
|
1055
|
+
const o = `${e.space}/resources/v1/modeler/dslc/maturity/changeState`;
|
|
1056
|
+
let a = {
|
|
1057
1057
|
method: "POST",
|
|
1058
1058
|
headers: {
|
|
1059
1059
|
SecurityContext: "ctx::" + e.ctx,
|
|
@@ -1077,7 +1077,7 @@ function Ke(e, t, n, s = void 0, i = void 0) {
|
|
|
1077
1077
|
i && i(c);
|
|
1078
1078
|
}
|
|
1079
1079
|
};
|
|
1080
|
-
m(
|
|
1080
|
+
m(o, a);
|
|
1081
1081
|
}
|
|
1082
1082
|
});
|
|
1083
1083
|
}
|
|
@@ -1090,12 +1090,12 @@ function Ee(e, t, n = void 0, s = void 0) {
|
|
|
1090
1090
|
"ESPACE COMMUN",
|
|
1091
1091
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
1092
1092
|
void 0,
|
|
1093
|
-
(
|
|
1094
|
-
(
|
|
1095
|
-
console.log("onError =>",
|
|
1093
|
+
(a) => e.ctx = a,
|
|
1094
|
+
(a) => {
|
|
1095
|
+
console.log("onError =>", a);
|
|
1096
1096
|
}
|
|
1097
1097
|
);
|
|
1098
|
-
let
|
|
1098
|
+
let o = {
|
|
1099
1099
|
method: "POST",
|
|
1100
1100
|
headers: {
|
|
1101
1101
|
securitycontext: "ctx::" + e.ctx,
|
|
@@ -1111,14 +1111,14 @@ function Ee(e, t, n = void 0, s = void 0) {
|
|
|
1111
1111
|
]
|
|
1112
1112
|
}),
|
|
1113
1113
|
type: "json",
|
|
1114
|
-
onComplete(
|
|
1115
|
-
n && n(
|
|
1114
|
+
onComplete(a) {
|
|
1115
|
+
n && n(a);
|
|
1116
1116
|
},
|
|
1117
|
-
onFailure(
|
|
1118
|
-
s && s(
|
|
1117
|
+
onFailure(a) {
|
|
1118
|
+
s && s(a);
|
|
1119
1119
|
}
|
|
1120
1120
|
};
|
|
1121
|
-
m(r,
|
|
1121
|
+
m(r, o);
|
|
1122
1122
|
}
|
|
1123
1123
|
});
|
|
1124
1124
|
}
|
|
@@ -1131,12 +1131,12 @@ function Be(e, t, n = void 0, s = void 0) {
|
|
|
1131
1131
|
"ESPACE COMMUN",
|
|
1132
1132
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
1133
1133
|
void 0,
|
|
1134
|
-
(
|
|
1135
|
-
(
|
|
1136
|
-
console.log("onError =>",
|
|
1134
|
+
(a) => e.ctx = a,
|
|
1135
|
+
(a) => {
|
|
1136
|
+
console.log("onError =>", a);
|
|
1137
1137
|
}
|
|
1138
1138
|
);
|
|
1139
|
-
let
|
|
1139
|
+
let o = {
|
|
1140
1140
|
method: "POST",
|
|
1141
1141
|
headers: {
|
|
1142
1142
|
SecurityContext: "ctx::" + e.ctx,
|
|
@@ -1158,21 +1158,21 @@ function Be(e, t, n = void 0, s = void 0) {
|
|
|
1158
1158
|
]
|
|
1159
1159
|
}),
|
|
1160
1160
|
type: "json",
|
|
1161
|
-
onComplete(
|
|
1162
|
-
n && n(
|
|
1161
|
+
onComplete(a) {
|
|
1162
|
+
n && n(a);
|
|
1163
1163
|
},
|
|
1164
|
-
onFailure(
|
|
1165
|
-
s && s(
|
|
1164
|
+
onFailure(a) {
|
|
1165
|
+
s && s(a);
|
|
1166
1166
|
}
|
|
1167
1167
|
};
|
|
1168
|
-
m(r,
|
|
1168
|
+
m(r, o);
|
|
1169
1169
|
}
|
|
1170
1170
|
});
|
|
1171
1171
|
}
|
|
1172
1172
|
function We(e, t, n, s = void 0, i = void 0) {
|
|
1173
1173
|
return new Promise((r) => {
|
|
1174
1174
|
if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
|
|
1175
|
-
const
|
|
1175
|
+
const o = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
|
|
1176
1176
|
j(
|
|
1177
1177
|
e.space,
|
|
1178
1178
|
"ESPACE COMMUN",
|
|
@@ -1183,7 +1183,7 @@ function We(e, t, n, s = void 0, i = void 0) {
|
|
|
1183
1183
|
console.log("onError =>", c);
|
|
1184
1184
|
}
|
|
1185
1185
|
);
|
|
1186
|
-
let
|
|
1186
|
+
let a = {
|
|
1187
1187
|
method: "POST",
|
|
1188
1188
|
headers: {
|
|
1189
1189
|
securitycontext: "ctx::" + e.ctx,
|
|
@@ -1212,13 +1212,13 @@ function We(e, t, n, s = void 0, i = void 0) {
|
|
|
1212
1212
|
i && i(c);
|
|
1213
1213
|
}
|
|
1214
1214
|
};
|
|
1215
|
-
m(
|
|
1215
|
+
m(o, a);
|
|
1216
1216
|
}
|
|
1217
1217
|
});
|
|
1218
1218
|
}
|
|
1219
1219
|
function Xe(e, t, n, s, i = void 0, r = void 0) {
|
|
1220
|
-
return new Promise((
|
|
1221
|
-
const
|
|
1220
|
+
return new Promise((o) => {
|
|
1221
|
+
const a = `${e.space}/resources/v1/modeler/dsbks/dsbks:Bookmark`;
|
|
1222
1222
|
let c = {
|
|
1223
1223
|
attributes: {
|
|
1224
1224
|
title: n,
|
|
@@ -1246,11 +1246,11 @@ function Xe(e, t, n, s, i = void 0, r = void 0) {
|
|
|
1246
1246
|
r && r(p);
|
|
1247
1247
|
}
|
|
1248
1248
|
};
|
|
1249
|
-
m(
|
|
1249
|
+
m(a, u);
|
|
1250
1250
|
});
|
|
1251
1251
|
}
|
|
1252
1252
|
function Ve(e, t, n, s, i = void 0, r = void 0) {
|
|
1253
|
-
return console.log("credentials", e), new Promise((
|
|
1253
|
+
return console.log("credentials", e), new Promise((o) => {
|
|
1254
1254
|
`${e.space}`, JSON.stringify({
|
|
1255
1255
|
csrf: {
|
|
1256
1256
|
name: "ENO_CSRF_TOKEN",
|
|
@@ -1285,12 +1285,12 @@ function Ye(e, t = void 0, n = void 0) {
|
|
|
1285
1285
|
Accept: "application/json,text/javascript,*/*",
|
|
1286
1286
|
"Content-Type": "application/ds-json"
|
|
1287
1287
|
},
|
|
1288
|
-
onComplete(r,
|
|
1289
|
-
const
|
|
1290
|
-
t && t(
|
|
1288
|
+
onComplete(r, o) {
|
|
1289
|
+
const a = JSON.parse(r);
|
|
1290
|
+
t && t(a, o);
|
|
1291
1291
|
},
|
|
1292
|
-
onFailure(r,
|
|
1293
|
-
n && n({ response: r, headers:
|
|
1292
|
+
onFailure(r, o, a) {
|
|
1293
|
+
n && n({ response: r, headers: o, xhr: a });
|
|
1294
1294
|
}
|
|
1295
1295
|
});
|
|
1296
1296
|
}
|
|
@@ -1315,9 +1315,9 @@ async function He(e, t, n = void 0, s = void 0) {
|
|
|
1315
1315
|
return new Promise((i) => {
|
|
1316
1316
|
A(e, t, (r) => {
|
|
1317
1317
|
m(r, {
|
|
1318
|
-
onComplete: (
|
|
1319
|
-
onFailure: (
|
|
1320
|
-
s && s(
|
|
1318
|
+
onComplete: (o, a, c) => (i(JSON.parse(o)), n && n(JSON.parse(o), a, c), i),
|
|
1319
|
+
onFailure: (o, a, c) => {
|
|
1320
|
+
s && s(o, a, c), console.log(o, a?.errormsg);
|
|
1321
1321
|
}
|
|
1322
1322
|
});
|
|
1323
1323
|
});
|
|
@@ -1328,12 +1328,12 @@ function ze(e, t, n, s = void 0, i = void 0) {
|
|
|
1328
1328
|
F(
|
|
1329
1329
|
e,
|
|
1330
1330
|
n,
|
|
1331
|
-
(
|
|
1332
|
-
const
|
|
1331
|
+
(o) => {
|
|
1332
|
+
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;
|
|
1333
1333
|
D(
|
|
1334
1334
|
e,
|
|
1335
1335
|
n,
|
|
1336
|
-
|
|
1336
|
+
a,
|
|
1337
1337
|
r,
|
|
1338
1338
|
c,
|
|
1339
1339
|
(d) => {
|
|
@@ -1347,7 +1347,7 @@ function ze(e, t, n, s = void 0, i = void 0) {
|
|
|
1347
1347
|
);
|
|
1348
1348
|
}
|
|
1349
1349
|
let M, J;
|
|
1350
|
-
const
|
|
1350
|
+
const v = [];
|
|
1351
1351
|
async function Qe(e, t = void 0, n = void 0) {
|
|
1352
1352
|
e.objID && e.objID !== "" ? F(
|
|
1353
1353
|
e,
|
|
@@ -1389,8 +1389,8 @@ function et(e, t = void 0, n = void 0) {
|
|
|
1389
1389
|
L(
|
|
1390
1390
|
e,
|
|
1391
1391
|
i.objID,
|
|
1392
|
-
(
|
|
1393
|
-
s.push({ [i.name]:
|
|
1392
|
+
(o) => {
|
|
1393
|
+
s.push({ [i.name]: o }), i.name === "dbProjets" && (M = o.affaires.map((a) => a.objectID), oe(e, J)), r === e.objIds.length - 1 && (t && t(s), delete e.objIds, delete e.datas);
|
|
1394
1394
|
}
|
|
1395
1395
|
);
|
|
1396
1396
|
});
|
|
@@ -1401,7 +1401,7 @@ function oe(e, t, n = void 0, s = void 0) {
|
|
|
1401
1401
|
M,
|
|
1402
1402
|
(i) => {
|
|
1403
1403
|
const r = [...t];
|
|
1404
|
-
r.find((
|
|
1404
|
+
r.find((o) => o.objectID === i.objectId).data = i.data, J = r, v.push(i.data), n && n(v);
|
|
1405
1405
|
},
|
|
1406
1406
|
(i) => {
|
|
1407
1407
|
s && (s(i), console.log(i));
|
|
@@ -1429,7 +1429,7 @@ const re = "FA35FB9B177A280065800EA0000F599C", ce = [
|
|
|
1429
1429
|
tag: "testTag"
|
|
1430
1430
|
};
|
|
1431
1431
|
function tt(e, t, n = void 0, s = void 0) {
|
|
1432
|
-
const { space: i, tenant: r } = e, { objId:
|
|
1432
|
+
const { space: i, tenant: r } = e, { objId: o, pred: a, tag: c } = t, d = {
|
|
1433
1433
|
uri: "/resources/6w/tags",
|
|
1434
1434
|
otpCTX: "SecurityContext=preferred",
|
|
1435
1435
|
optTenant: `tenant=${r}`
|
|
@@ -1438,10 +1438,10 @@ function tt(e, t, n = void 0, s = void 0) {
|
|
|
1438
1438
|
{
|
|
1439
1439
|
subject: [
|
|
1440
1440
|
{
|
|
1441
|
-
uri: `pid://${
|
|
1441
|
+
uri: `pid://${o}`
|
|
1442
1442
|
}
|
|
1443
1443
|
],
|
|
1444
|
-
predicate: G[
|
|
1444
|
+
predicate: G[a],
|
|
1445
1445
|
object: {
|
|
1446
1446
|
literal: c
|
|
1447
1447
|
}
|
|
@@ -1459,9 +1459,9 @@ function tt(e, t, n = void 0, s = void 0) {
|
|
|
1459
1459
|
JSON.parse(f);
|
|
1460
1460
|
const l = {};
|
|
1461
1461
|
setTimeout(() => {
|
|
1462
|
-
|
|
1462
|
+
P(
|
|
1463
1463
|
e,
|
|
1464
|
-
|
|
1464
|
+
o,
|
|
1465
1465
|
(g) => {
|
|
1466
1466
|
const h = g.data[0].dataelements.title, y = g.data[0].dataelements.fileExtension !== void 0 ? g.data[0].dataelements.fileExtension : "", S = g.data[0].relateddata.ownerInfo[0].dataelements.name;
|
|
1467
1467
|
l.name = h, l.ext = y, l.createBy = S, t.info = { ...l }, ue(
|
|
@@ -1493,7 +1493,7 @@ function ue(e, t, n = void 0, s = void 0) {
|
|
|
1493
1493
|
const i = t.info.name, r = {
|
|
1494
1494
|
baseUrl: `https://${e.tenant.toLowerCase()}-eu1-fedsearch.3dexperience.3ds.com`,
|
|
1495
1495
|
uri: "/federated/search"
|
|
1496
|
-
},
|
|
1496
|
+
}, o = `${r.baseUrl}${r.uri}`, a = {
|
|
1497
1497
|
"Content-Type": "application/json",
|
|
1498
1498
|
Accept: "application/json,text/javascript,*/*"
|
|
1499
1499
|
}, c = B(), d = {
|
|
@@ -1557,9 +1557,9 @@ function ue(e, t, n = void 0, s = void 0) {
|
|
|
1557
1557
|
}
|
|
1558
1558
|
}
|
|
1559
1559
|
};
|
|
1560
|
-
console.log("dataPattern => ", d), m(
|
|
1560
|
+
console.log("dataPattern => ", d), m(o, {
|
|
1561
1561
|
method: "POST",
|
|
1562
|
-
headers:
|
|
1562
|
+
headers: a,
|
|
1563
1563
|
data: JSON.stringify(d),
|
|
1564
1564
|
onComplete(u) {
|
|
1565
1565
|
const p = JSON.parse(u);
|
|
@@ -1572,11 +1572,11 @@ function ue(e, t, n = void 0, s = void 0) {
|
|
|
1572
1572
|
});
|
|
1573
1573
|
}
|
|
1574
1574
|
function nt(e, t, n = void 0, s = void 0) {
|
|
1575
|
-
const { objId: i, pred: r, tag:
|
|
1575
|
+
const { objId: i, pred: r, tag: o } = t, a = {
|
|
1576
1576
|
uri: "/resources/6w/tags",
|
|
1577
1577
|
otpCTX: "SecurityContext=preferred",
|
|
1578
1578
|
optTenant: `tenant=${e.tenant}`
|
|
1579
|
-
}, c = `${e.space}${
|
|
1579
|
+
}, c = `${e.space}${a.uri}?${a.otpCTX}&${a.optTenant}`, d = {
|
|
1580
1580
|
tag: [
|
|
1581
1581
|
{
|
|
1582
1582
|
subject: [
|
|
@@ -1586,7 +1586,7 @@ function nt(e, t, n = void 0, s = void 0) {
|
|
|
1586
1586
|
],
|
|
1587
1587
|
predicate: G[r],
|
|
1588
1588
|
object: {
|
|
1589
|
-
literal:
|
|
1589
|
+
literal: o
|
|
1590
1590
|
}
|
|
1591
1591
|
}
|
|
1592
1592
|
]
|
|
@@ -1613,13 +1613,13 @@ function st(e, t = "", n = void 0, s = void 0) {
|
|
|
1613
1613
|
return;
|
|
1614
1614
|
const r = {
|
|
1615
1615
|
uri: "/resources/v1/modeler/documents"
|
|
1616
|
-
},
|
|
1616
|
+
}, o = {
|
|
1617
1617
|
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
|
|
1618
1618
|
Accept: "application/json,text/javascript,*/*"
|
|
1619
|
-
},
|
|
1620
|
-
m(
|
|
1619
|
+
}, 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}`;
|
|
1620
|
+
m(a, {
|
|
1621
1621
|
method: "POST",
|
|
1622
|
-
headers:
|
|
1622
|
+
headers: o,
|
|
1623
1623
|
data: c,
|
|
1624
1624
|
onComplete(d) {
|
|
1625
1625
|
n && n(JSON.parse(d));
|
|
@@ -1633,10 +1633,10 @@ function st(e, t = "", n = void 0, s = void 0) {
|
|
|
1633
1633
|
async function w(e, t = void 0, n = void 0) {
|
|
1634
1634
|
const s = e._3DSwym + "/api/index/tk";
|
|
1635
1635
|
return m(s, {
|
|
1636
|
-
onComplete(i, r,
|
|
1637
|
-
const
|
|
1636
|
+
onComplete(i, r, o) {
|
|
1637
|
+
const a = JSON.parse(i);
|
|
1638
1638
|
if (t)
|
|
1639
|
-
return t(
|
|
1639
|
+
return t(a), e.token = a?.result?.ServerToken;
|
|
1640
1640
|
},
|
|
1641
1641
|
onFailure(i) {
|
|
1642
1642
|
n && n(i);
|
|
@@ -1664,11 +1664,11 @@ function it(e, t = void 0, n = void 0) {
|
|
|
1664
1664
|
},
|
|
1665
1665
|
data: JSON.stringify(i),
|
|
1666
1666
|
type: "json",
|
|
1667
|
-
onComplete(
|
|
1668
|
-
t && t(
|
|
1667
|
+
onComplete(o, a) {
|
|
1668
|
+
t && t(o, a);
|
|
1669
1669
|
},
|
|
1670
|
-
onFailure(
|
|
1671
|
-
n && n(
|
|
1670
|
+
onFailure(o, a) {
|
|
1671
|
+
n && n(o, a);
|
|
1672
1672
|
}
|
|
1673
1673
|
});
|
|
1674
1674
|
});
|
|
@@ -1693,12 +1693,12 @@ function at(e, t = void 0, n = void 0) {
|
|
|
1693
1693
|
},
|
|
1694
1694
|
data: JSON.stringify(i),
|
|
1695
1695
|
type: "json",
|
|
1696
|
-
onComplete(
|
|
1697
|
-
const c =
|
|
1698
|
-
t && t(c,
|
|
1696
|
+
onComplete(o, a) {
|
|
1697
|
+
const c = o.result.hits.map((d) => ({ login: d.login, fullName: d.name }));
|
|
1698
|
+
t && t(c, o);
|
|
1699
1699
|
},
|
|
1700
|
-
onFailure(
|
|
1701
|
-
n && n(
|
|
1700
|
+
onFailure(o, a) {
|
|
1701
|
+
n && n(o, a);
|
|
1702
1702
|
}
|
|
1703
1703
|
});
|
|
1704
1704
|
});
|
|
@@ -1710,14 +1710,14 @@ function ot(e, t = void 0, n = void 0) {
|
|
|
1710
1710
|
limit: `/limit/${e.limit ? e.limit : 500}`,
|
|
1711
1711
|
page: `/page/${e.page ? e.page : "1"}`
|
|
1712
1712
|
}, i = `${s.base}${s.uri}${s.limit}${s.page}`, r = [];
|
|
1713
|
-
w(e, (
|
|
1713
|
+
w(e, (o) => {
|
|
1714
1714
|
m(i, {
|
|
1715
1715
|
method: "GET",
|
|
1716
1716
|
headers: {
|
|
1717
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1717
|
+
"X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
|
|
1718
1718
|
},
|
|
1719
|
-
onComplete(
|
|
1720
|
-
const p = JSON.parse(
|
|
1719
|
+
onComplete(a, c, d) {
|
|
1720
|
+
const p = JSON.parse(a).result;
|
|
1721
1721
|
let f = 0;
|
|
1722
1722
|
p.forEach((l) => {
|
|
1723
1723
|
const g = {
|
|
@@ -1738,8 +1738,8 @@ function ot(e, t = void 0, n = void 0) {
|
|
|
1738
1738
|
);
|
|
1739
1739
|
});
|
|
1740
1740
|
},
|
|
1741
|
-
onFailure(
|
|
1742
|
-
const d =
|
|
1741
|
+
onFailure(a, c) {
|
|
1742
|
+
const d = a;
|
|
1743
1743
|
d.status = c.status, d.response = c.errormsg, n && n(d);
|
|
1744
1744
|
}
|
|
1745
1745
|
});
|
|
@@ -1753,21 +1753,21 @@ function pe(e, t, n, s) {
|
|
|
1753
1753
|
community_id: t
|
|
1754
1754
|
}
|
|
1755
1755
|
};
|
|
1756
|
-
w(e, (
|
|
1756
|
+
w(e, (o) => {
|
|
1757
1757
|
m(i, {
|
|
1758
1758
|
method: "POST",
|
|
1759
1759
|
headers: {
|
|
1760
1760
|
"Content-type": "application/json;charset=UTF-8",
|
|
1761
1761
|
Accept: "application/json",
|
|
1762
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1762
|
+
"X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
|
|
1763
1763
|
},
|
|
1764
1764
|
data: JSON.stringify(r),
|
|
1765
1765
|
type: "json",
|
|
1766
|
-
onComplete(
|
|
1767
|
-
n && n(
|
|
1766
|
+
onComplete(a, c, d) {
|
|
1767
|
+
n && n(a);
|
|
1768
1768
|
},
|
|
1769
|
-
onFailure(
|
|
1770
|
-
const d =
|
|
1769
|
+
onFailure(a, c) {
|
|
1770
|
+
const d = a;
|
|
1771
1771
|
d.status = c.status, d.response = c.errormsg, s && s(d);
|
|
1772
1772
|
}
|
|
1773
1773
|
});
|
|
@@ -1785,21 +1785,21 @@ function rt(e, t = void 0, n = void 0) {
|
|
|
1785
1785
|
Accept: "application/json",
|
|
1786
1786
|
"X-DS-SWYM-CSRFTOKEN": r.result.ServerToken
|
|
1787
1787
|
},
|
|
1788
|
-
onComplete(
|
|
1789
|
-
const
|
|
1790
|
-
t && t(
|
|
1788
|
+
onComplete(o) {
|
|
1789
|
+
const a = JSON.parse(o);
|
|
1790
|
+
t && t(a);
|
|
1791
1791
|
},
|
|
1792
|
-
onFailure(
|
|
1793
|
-
const c =
|
|
1794
|
-
c.status =
|
|
1792
|
+
onFailure(o, a) {
|
|
1793
|
+
const c = o;
|
|
1794
|
+
c.status = a.status, c.response = a.errormsg, n && n(c);
|
|
1795
1795
|
}
|
|
1796
1796
|
});
|
|
1797
1797
|
});
|
|
1798
1798
|
}
|
|
1799
1799
|
function ct(e, t, n = void 0, s = void 0) {
|
|
1800
|
-
const { listAllContacts: i, currentUser: r, _3DSwym:
|
|
1800
|
+
const { listAllContacts: i, currentUser: r, _3DSwym: o } = e;
|
|
1801
1801
|
console.log("__listAllContacts", i.hits);
|
|
1802
|
-
const
|
|
1802
|
+
const a = `${o}/api/directmessages`, c = {
|
|
1803
1803
|
users: [r.login].concat(t.receipt)
|
|
1804
1804
|
}, d = {
|
|
1805
1805
|
id_msg: "",
|
|
@@ -1811,14 +1811,14 @@ function ct(e, t, n = void 0, s = void 0) {
|
|
|
1811
1811
|
le(
|
|
1812
1812
|
c.users,
|
|
1813
1813
|
(p) => {
|
|
1814
|
-
p !== void 0 && (d.id_msg = p.id, u = !0,
|
|
1814
|
+
p !== void 0 && (d.id_msg = p.id, u = !0, U(e, d));
|
|
1815
1815
|
},
|
|
1816
1816
|
(p) => {
|
|
1817
1817
|
u = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", p), s && s(p), d.id_msg = "";
|
|
1818
1818
|
}
|
|
1819
1819
|
), u === !1 && setTimeout(() => {
|
|
1820
1820
|
u === !1 && w(e, (p) => {
|
|
1821
|
-
m(
|
|
1821
|
+
m(a, {
|
|
1822
1822
|
method: "POST",
|
|
1823
1823
|
headers: {
|
|
1824
1824
|
"Content-Type": "application/json",
|
|
@@ -1829,7 +1829,7 @@ function ct(e, t, n = void 0, s = void 0) {
|
|
|
1829
1829
|
type: "json",
|
|
1830
1830
|
onComplete(f, l, g) {
|
|
1831
1831
|
const h = f;
|
|
1832
|
-
h.reponse = JSON.parse(g.response), h.status = g.status, n && n(h), d.id_msg = h.result.id,
|
|
1832
|
+
h.reponse = JSON.parse(g.response), h.status = g.status, n && n(h), d.id_msg = h.result.id, U(e, d);
|
|
1833
1833
|
},
|
|
1834
1834
|
onFailure(f, l, g) {
|
|
1835
1835
|
const h = f;
|
|
@@ -1848,9 +1848,9 @@ function le(e, t, n, s) {
|
|
|
1848
1848
|
Accept: "application/json,text/javascript,*/*",
|
|
1849
1849
|
"X-DS-SWYM-CSRFTOKEN": r.result.ServerToken
|
|
1850
1850
|
},
|
|
1851
|
-
onComplete(
|
|
1852
|
-
const
|
|
1853
|
-
|
|
1851
|
+
onComplete(o) {
|
|
1852
|
+
const a = JSON.parse(o), c = [];
|
|
1853
|
+
a.result.forEach((p) => {
|
|
1854
1854
|
p.users = p.users.sort((f, l) => f.login.localeCompare(l.login)), p.users.length === t.length && c.push(p);
|
|
1855
1855
|
});
|
|
1856
1856
|
const d = t.sort(), u = c.find((p) => {
|
|
@@ -1861,20 +1861,20 @@ function le(e, t, n, s) {
|
|
|
1861
1861
|
});
|
|
1862
1862
|
n && u !== void 0 ? n(u) : (s || u === void 0) && s(u);
|
|
1863
1863
|
},
|
|
1864
|
-
onFailure(
|
|
1865
|
-
const
|
|
1866
|
-
|
|
1864
|
+
onFailure(o) {
|
|
1865
|
+
const a = o;
|
|
1866
|
+
a.msg = headers.errormsg, a.errCode = headers.errorcode, console.log("❌ sendDirectMessageLite => ", a), s && s(a);
|
|
1867
1867
|
}
|
|
1868
1868
|
});
|
|
1869
1869
|
});
|
|
1870
1870
|
}
|
|
1871
|
-
function
|
|
1871
|
+
function U(e, t, n = void 0, s = void 0) {
|
|
1872
1872
|
const i = {
|
|
1873
1873
|
base: e._3DSwym,
|
|
1874
1874
|
uri: "/api/community",
|
|
1875
1875
|
id_msg: `${t.id_msg}`,
|
|
1876
1876
|
endUri: "/instantmessages"
|
|
1877
|
-
}, r = `${i.base}${i.uri}/${i.id_msg}${i.endUri}`,
|
|
1877
|
+
}, r = `${i.base}${i.uri}/${i.id_msg}${i.endUri}`, o = {
|
|
1878
1878
|
author: { login: t.senderId, displayName: t.senderName },
|
|
1879
1879
|
accessState: null,
|
|
1880
1880
|
commentUri: null,
|
|
@@ -1884,15 +1884,15 @@ function x(e, t, n = void 0, s = void 0) {
|
|
|
1884
1884
|
parentCommentUri: null,
|
|
1885
1885
|
richMessage: t.msg
|
|
1886
1886
|
};
|
|
1887
|
-
console.log("_3dSwym_sendDirectMessageData url ", r), w(e, (
|
|
1887
|
+
console.log("_3dSwym_sendDirectMessageData url ", r), w(e, (a) => {
|
|
1888
1888
|
m(r, {
|
|
1889
1889
|
method: "POST",
|
|
1890
1890
|
headers: {
|
|
1891
1891
|
"Content-Type": "application/json",
|
|
1892
1892
|
Accept: "application/json",
|
|
1893
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1893
|
+
"X-DS-SWYM-CSRFTOKEN": a.result.ServerToken
|
|
1894
1894
|
},
|
|
1895
|
-
data: JSON.stringify(
|
|
1895
|
+
data: JSON.stringify(o),
|
|
1896
1896
|
type: "json",
|
|
1897
1897
|
onComplete(c, d, u) {
|
|
1898
1898
|
const p = c;
|
|
@@ -1915,13 +1915,13 @@ function fe(e) {
|
|
|
1915
1915
|
function dt(e, t, n = void 0, s = void 0) {
|
|
1916
1916
|
const i = `${e.space}/api/idea/add`, r = e.swymCommunities.find(
|
|
1917
1917
|
(c) => c.id === t.community_id
|
|
1918
|
-
),
|
|
1918
|
+
), o = e.swymCommunities.find(
|
|
1919
1919
|
(c) => c.title.toLowerCase() === t.community_title.toLowerCase()
|
|
1920
|
-
),
|
|
1920
|
+
), a = {
|
|
1921
1921
|
params: {
|
|
1922
1922
|
title: t.title,
|
|
1923
1923
|
// String, le nom de l'affaire
|
|
1924
|
-
community_id: r?.id !== void 0 ? r.id :
|
|
1924
|
+
community_id: r?.id !== void 0 ? r.id : o.id,
|
|
1925
1925
|
// String, l'id de la communauté
|
|
1926
1926
|
message: me(t.text_html),
|
|
1927
1927
|
// STRING => le contenue du message doit être au format HTML
|
|
@@ -1938,7 +1938,7 @@ function dt(e, t, n = void 0, s = void 0) {
|
|
|
1938
1938
|
m(i, {
|
|
1939
1939
|
method: "POST",
|
|
1940
1940
|
headers: d,
|
|
1941
|
-
data: JSON.stringify(
|
|
1941
|
+
data: JSON.stringify(a),
|
|
1942
1942
|
type: "json",
|
|
1943
1943
|
onComplete(u, p, f) {
|
|
1944
1944
|
const l = JSON.parse(u);
|
|
@@ -1954,29 +1954,29 @@ function dt(e, t, n = void 0, s = void 0) {
|
|
|
1954
1954
|
function ut(e, t = void 0, n = void 0) {
|
|
1955
1955
|
const s = { base: e.space, uri: "/api/idea/add" };
|
|
1956
1956
|
if (!Array.isArray(e.swymCommunities)) {
|
|
1957
|
-
const
|
|
1957
|
+
const o = "☠️ swymCommunities doit être un tableau d'objets de communautés";
|
|
1958
1958
|
throw new Error(`Erreur sur cette requête : ${s.base + s.uri}`, {
|
|
1959
|
-
cause:
|
|
1959
|
+
cause: o
|
|
1960
1960
|
});
|
|
1961
1961
|
}
|
|
1962
1962
|
if (e.swymCommunities.findIndex(
|
|
1963
|
-
(
|
|
1963
|
+
(o) => o.id === e.community_id
|
|
1964
1964
|
) === -1) {
|
|
1965
|
-
const
|
|
1965
|
+
const o = "la communauté n'existe pas dans la liste des communautés du Swym";
|
|
1966
1966
|
throw new Error(`Erreur sur cette requête : ${s.base + s.uri}`, {
|
|
1967
|
-
cause:
|
|
1967
|
+
cause: o
|
|
1968
1968
|
});
|
|
1969
1969
|
}
|
|
1970
1970
|
if (e.community_id && e.community_id === "") {
|
|
1971
|
-
const
|
|
1971
|
+
const o = "☠️ community_id doit être un String qui contient l'id de la communauté dans laquelle on souhaite publier l'idée.";
|
|
1972
1972
|
throw new Error(`Erreur sur cette requête : ${s.base + s.uri}`, {
|
|
1973
|
-
cause:
|
|
1973
|
+
cause: o
|
|
1974
1974
|
});
|
|
1975
1975
|
}
|
|
1976
1976
|
if (e.title && e.title === "") {
|
|
1977
|
-
const
|
|
1977
|
+
const o = "☠️ title doit être un String.";
|
|
1978
1978
|
throw new Error(`Erreur sur cette requête : ${s.base + s.uri}`, {
|
|
1979
|
-
cause:
|
|
1979
|
+
cause: o
|
|
1980
1980
|
});
|
|
1981
1981
|
}
|
|
1982
1982
|
const r = {
|
|
@@ -1991,19 +1991,19 @@ function ut(e, t = void 0, n = void 0) {
|
|
|
1991
1991
|
// 1 publier, 0 brouillon
|
|
1992
1992
|
}
|
|
1993
1993
|
};
|
|
1994
|
-
w(e, (
|
|
1995
|
-
if (!
|
|
1994
|
+
w(e, (o) => {
|
|
1995
|
+
if (!o)
|
|
1996
1996
|
throw new Error(
|
|
1997
1997
|
`☠️ token n'est pas disponible pour cette requête : ${s.base + s.uri}`,
|
|
1998
1998
|
{
|
|
1999
|
-
cause:
|
|
1999
|
+
cause: o
|
|
2000
2000
|
}
|
|
2001
2001
|
);
|
|
2002
|
-
const
|
|
2002
|
+
const a = {
|
|
2003
2003
|
headers: {
|
|
2004
2004
|
"Content-type": "application/json;charset=UTF-8",
|
|
2005
2005
|
Accept: "application/json",
|
|
2006
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
2006
|
+
"X-DS-SWYM-CSRFTOKEN": o?.result?.ServerToken
|
|
2007
2007
|
},
|
|
2008
2008
|
method: "POST",
|
|
2009
2009
|
data: JSON.stringify(r),
|
|
@@ -2021,7 +2021,7 @@ function ut(e, t = void 0, n = void 0) {
|
|
|
2021
2021
|
n && n(l);
|
|
2022
2022
|
}
|
|
2023
2023
|
};
|
|
2024
|
-
m(s.base + s.uri,
|
|
2024
|
+
m(s.base + s.uri, a);
|
|
2025
2025
|
});
|
|
2026
2026
|
}
|
|
2027
2027
|
function pt(e, t, n = void 0, s = void 0) {
|
|
@@ -2031,21 +2031,21 @@ function pt(e, t, n = void 0, s = void 0) {
|
|
|
2031
2031
|
ideationIds: [t.idee_id]
|
|
2032
2032
|
}
|
|
2033
2033
|
};
|
|
2034
|
-
w(e, (
|
|
2034
|
+
w(e, (o) => {
|
|
2035
2035
|
m(i, {
|
|
2036
2036
|
method: "POST",
|
|
2037
2037
|
headers: {
|
|
2038
2038
|
"Content-type": "application/json;charset=UTF-8",
|
|
2039
2039
|
Accept: "application/json",
|
|
2040
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
2040
|
+
"X-DS-SWYM-CSRFTOKEN": o?.result?.ServerToken
|
|
2041
2041
|
},
|
|
2042
2042
|
data: JSON.stringify(r),
|
|
2043
2043
|
type: "json",
|
|
2044
|
-
onComplete(
|
|
2045
|
-
n && n(
|
|
2044
|
+
onComplete(a, c, d) {
|
|
2045
|
+
n && n(a);
|
|
2046
2046
|
},
|
|
2047
|
-
onFailure(
|
|
2048
|
-
const u =
|
|
2047
|
+
onFailure(a, c, d) {
|
|
2048
|
+
const u = a;
|
|
2049
2049
|
u.status = c.status, u.response = c.errormsg, s && s(u);
|
|
2050
2050
|
}
|
|
2051
2051
|
});
|
|
@@ -2054,10 +2054,10 @@ function pt(e, t, n = void 0, s = void 0) {
|
|
|
2054
2054
|
function lt(e, t = void 0, n = void 0) {
|
|
2055
2055
|
const { _3DSwym: s, _3DSwym_token: i } = e, r = `${s}/api/idea/get`;
|
|
2056
2056
|
if (e.idPost === "") {
|
|
2057
|
-
const
|
|
2058
|
-
throw new Error(`Erreur sur cette requête : ${r}`, { cause:
|
|
2057
|
+
const a = "☠️ idPost est vide, vous devez renseigner un identifiant de post";
|
|
2058
|
+
throw new Error(`Erreur sur cette requête : ${r}`, { cause: a });
|
|
2059
2059
|
}
|
|
2060
|
-
const
|
|
2060
|
+
const o = {
|
|
2061
2061
|
params: {
|
|
2062
2062
|
id: e.idPost
|
|
2063
2063
|
}
|
|
@@ -2069,12 +2069,12 @@ function lt(e, t = void 0, n = void 0) {
|
|
|
2069
2069
|
Accept: "application/json",
|
|
2070
2070
|
"X-DS-SWYM-CSRFTOKEN": i
|
|
2071
2071
|
},
|
|
2072
|
-
data: JSON.stringify(
|
|
2073
|
-
onComplete(
|
|
2074
|
-
|
|
2072
|
+
data: JSON.stringify(o),
|
|
2073
|
+
onComplete(a) {
|
|
2074
|
+
a = typeof a == "string" ? JSON.parse(a) : a, t && t({ response: a });
|
|
2075
2075
|
},
|
|
2076
|
-
onFailure(
|
|
2077
|
-
const c =
|
|
2076
|
+
onFailure(a) {
|
|
2077
|
+
const c = a;
|
|
2078
2078
|
c.status = headers.status, c.response = headers.errormsg, n && n(c);
|
|
2079
2079
|
}
|
|
2080
2080
|
});
|
|
@@ -2084,8 +2084,8 @@ function ft(e, t, n) {
|
|
|
2084
2084
|
_3DSwym: s,
|
|
2085
2085
|
_3DSwym_token: i,
|
|
2086
2086
|
idPost: r,
|
|
2087
|
-
title:
|
|
2088
|
-
community_id:
|
|
2087
|
+
title: o,
|
|
2088
|
+
community_id: a,
|
|
2089
2089
|
status_comment: c,
|
|
2090
2090
|
status_id: d,
|
|
2091
2091
|
message: u
|
|
@@ -2103,8 +2103,8 @@ function ft(e, t, n) {
|
|
|
2103
2103
|
params: {
|
|
2104
2104
|
out: "false",
|
|
2105
2105
|
id: r,
|
|
2106
|
-
title:
|
|
2107
|
-
community_id:
|
|
2106
|
+
title: o,
|
|
2107
|
+
community_id: a,
|
|
2108
2108
|
status_comment: c,
|
|
2109
2109
|
status_id: d,
|
|
2110
2110
|
message: u,
|
|
@@ -2126,15 +2126,15 @@ function ft(e, t, n) {
|
|
|
2126
2126
|
}
|
|
2127
2127
|
function mt(e, t, n = void 0, s = void 0) {
|
|
2128
2128
|
const { _3DSwym: i } = e;
|
|
2129
|
-
let { community_id: r, limit:
|
|
2129
|
+
let { community_id: r, limit: o, page: a, search: c } = t;
|
|
2130
2130
|
const d = [], u = 1;
|
|
2131
2131
|
let p = !1, f = 2;
|
|
2132
|
-
|
|
2132
|
+
a || (a = u), o || (o = 100);
|
|
2133
2133
|
const l = {
|
|
2134
2134
|
uri: "/api/idea/list",
|
|
2135
2135
|
comId: `/community_id/${r}`,
|
|
2136
|
-
limit: `/limit/${
|
|
2137
|
-
page: `/page/${
|
|
2136
|
+
limit: `/limit/${o}`,
|
|
2137
|
+
page: `/page/${a}`
|
|
2138
2138
|
};
|
|
2139
2139
|
let g = `${i}${l.uri}${l.comId}${l.limit}${l.page}`;
|
|
2140
2140
|
w(e, (h) => {
|
|
@@ -2146,8 +2146,8 @@ function mt(e, t, n = void 0, s = void 0) {
|
|
|
2146
2146
|
},
|
|
2147
2147
|
onComplete(_) {
|
|
2148
2148
|
const C = { response: JSON.parse(_) };
|
|
2149
|
-
if (f = Math.ceil(Number(C.response.nb_result) / 100), _ && f >=
|
|
2150
|
-
if (
|
|
2149
|
+
if (f = Math.ceil(Number(C.response.nb_result) / 100), _ && f >= a) {
|
|
2150
|
+
if (a++, l.page = `/page/${a}`, S = `${i}${l.uri}${l.comId}${l.limit}${l.page}`, !c)
|
|
2151
2151
|
d.push(C.response.result);
|
|
2152
2152
|
else {
|
|
2153
2153
|
const T = C.response.result.find(
|
|
@@ -2158,7 +2158,7 @@ function mt(e, t, n = void 0, s = void 0) {
|
|
|
2158
2158
|
return;
|
|
2159
2159
|
}
|
|
2160
2160
|
}
|
|
2161
|
-
if (n && f <
|
|
2161
|
+
if (n && f < a && !c) {
|
|
2162
2162
|
p = !0, n(d);
|
|
2163
2163
|
return;
|
|
2164
2164
|
}
|
|
@@ -2250,8 +2250,8 @@ function me(e) {
|
|
|
2250
2250
|
</p>` : e;
|
|
2251
2251
|
}
|
|
2252
2252
|
function gt(e, t = void 0, n = void 0) {
|
|
2253
|
-
const { tenant: s, _3DSwym: i, _3DSwym_token: r, community_id:
|
|
2254
|
-
if (s && i && r &&
|
|
2253
|
+
const { tenant: s, _3DSwym: i, _3DSwym_token: r, community_id: o, idea_id: a } = e;
|
|
2254
|
+
if (s && i && r && o && a) {
|
|
2255
2255
|
const c = `${i}/api/idea/forward`;
|
|
2256
2256
|
m(c, {
|
|
2257
2257
|
method: "POST",
|
|
@@ -2261,8 +2261,8 @@ function gt(e, t = void 0, n = void 0) {
|
|
|
2261
2261
|
"X-DS-SWYM-CSRFTOKEN": r
|
|
2262
2262
|
},
|
|
2263
2263
|
data: JSON.stringify({
|
|
2264
|
-
community_uri: `swym:prd:${s.toUpperCase()}:community:${
|
|
2265
|
-
content_uri: `swym:prd:${s.toUpperCase()}:idea:${
|
|
2264
|
+
community_uri: `swym:prd:${s.toUpperCase()}:community:${o}`,
|
|
2265
|
+
content_uri: `swym:prd:${s.toUpperCase()}:idea:${a}`,
|
|
2266
2266
|
timeout: 3e4
|
|
2267
2267
|
}),
|
|
2268
2268
|
type: "json",
|
|
@@ -2290,12 +2290,12 @@ function ht(e, t = void 0, n = void 0) {
|
|
|
2290
2290
|
headers: {
|
|
2291
2291
|
"X-DS-SWYM-CSRFTOKEN": i.result.ServerToken
|
|
2292
2292
|
},
|
|
2293
|
-
onComplete(r,
|
|
2293
|
+
onComplete(r, o, a) {
|
|
2294
2294
|
const c = JSON.parse(r);
|
|
2295
2295
|
t && t(c.result);
|
|
2296
2296
|
},
|
|
2297
|
-
onFailure(r,
|
|
2298
|
-
const c = { erreur: JSON.parse(r), headers:
|
|
2297
|
+
onFailure(r, o, a) {
|
|
2298
|
+
const c = { erreur: JSON.parse(r), headers: o, xhr: a };
|
|
2299
2299
|
n && n(c);
|
|
2300
2300
|
}
|
|
2301
2301
|
});
|
|
@@ -2309,12 +2309,12 @@ function yt(e, t, n = void 0, s = void 0) {
|
|
|
2309
2309
|
m(i, {
|
|
2310
2310
|
method: "GET",
|
|
2311
2311
|
headers: { "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken },
|
|
2312
|
-
onComplete(
|
|
2313
|
-
const d = JSON.parse(
|
|
2312
|
+
onComplete(o, a, c) {
|
|
2313
|
+
const d = JSON.parse(o);
|
|
2314
2314
|
n && n(d);
|
|
2315
2315
|
},
|
|
2316
|
-
onFailure(
|
|
2317
|
-
s && s(
|
|
2316
|
+
onFailure(o) {
|
|
2317
|
+
s && s(o);
|
|
2318
2318
|
}
|
|
2319
2319
|
});
|
|
2320
2320
|
},
|
|
@@ -2326,15 +2326,15 @@ function St(e, t = void 0, n = void 0) {
|
|
|
2326
2326
|
_3DSwym: s,
|
|
2327
2327
|
_3DSwym_token: i,
|
|
2328
2328
|
subjectUri: r,
|
|
2329
|
-
richMessage:
|
|
2330
|
-
} = e,
|
|
2329
|
+
richMessage: o
|
|
2330
|
+
} = e, a = `${s}/commentproxy/subjects/${r}/comments`, d = {
|
|
2331
2331
|
method: "POST",
|
|
2332
2332
|
headers: {
|
|
2333
2333
|
"Content-type": "application/json;charset=UTF-8",
|
|
2334
2334
|
Accept: "application/json",
|
|
2335
2335
|
"X-DS-SWYM-CSRFTOKEN": i
|
|
2336
2336
|
},
|
|
2337
|
-
data: JSON.stringify({ richMessage:
|
|
2337
|
+
data: JSON.stringify({ richMessage: o }),
|
|
2338
2338
|
type: "json",
|
|
2339
2339
|
onComplete(u, p, f) {
|
|
2340
2340
|
const l = {
|
|
@@ -2346,30 +2346,30 @@ function St(e, t = void 0, n = void 0) {
|
|
|
2346
2346
|
n && n(u);
|
|
2347
2347
|
}
|
|
2348
2348
|
};
|
|
2349
|
-
m(
|
|
2349
|
+
m(a, d);
|
|
2350
2350
|
}
|
|
2351
2351
|
function _t(e, t = void 0, n = void 0) {
|
|
2352
|
-
e.tenant &&
|
|
2352
|
+
e.tenant && R(e, (s) => {
|
|
2353
2353
|
const i = s.services.find((r) => r.id === "businessprocess")?.url + "/api/v2";
|
|
2354
2354
|
return t && t(i), i;
|
|
2355
2355
|
});
|
|
2356
2356
|
}
|
|
2357
2357
|
function wt(e, t = void 0, n = void 0) {
|
|
2358
|
-
e.tenant &&
|
|
2358
|
+
e.tenant && R(e, (s) => {
|
|
2359
2359
|
const i = s.services.find(
|
|
2360
|
-
(
|
|
2361
|
-
)?.url, r = s.services.find((
|
|
2362
|
-
m(
|
|
2363
|
-
async onComplete(
|
|
2364
|
-
const c = typeof
|
|
2360
|
+
(a) => a.id === "3dpassport"
|
|
2361
|
+
)?.url, r = s.services.find((a) => a.id === "businessprocess")?.url + "/api/v2", o = `${i}/login/?service=${r}/auth/cas`;
|
|
2362
|
+
m(o, {
|
|
2363
|
+
async onComplete(a) {
|
|
2364
|
+
const c = typeof a == "string" ? JSON.parse(a)?.x3ds_service_redirect_url : a?.x3ds_service_redirect_url;
|
|
2365
2365
|
await fetch(c, {
|
|
2366
2366
|
method: "POST"
|
|
2367
2367
|
}).then((d) => d.json()).then(async (d) => {
|
|
2368
2368
|
t && t(d?.token);
|
|
2369
2369
|
});
|
|
2370
2370
|
},
|
|
2371
|
-
onFailure(
|
|
2372
|
-
n && n(
|
|
2371
|
+
onFailure(a) {
|
|
2372
|
+
n && n(a);
|
|
2373
2373
|
}
|
|
2374
2374
|
});
|
|
2375
2375
|
});
|
|
@@ -2387,21 +2387,6 @@ function Ct(e, t = void 0, n = void 0) {
|
|
|
2387
2387
|
}
|
|
2388
2388
|
}
|
|
2389
2389
|
async function Tt(e, t, n = void 0, s = void 0) {
|
|
2390
|
-
e.tenant && N(e, (i) => {
|
|
2391
|
-
const a = `${i.services.find((c) => c.id === "businessprocess")?.url + "/api/v2"}/identity/users`, o = e.tenant.toLowerCase();
|
|
2392
|
-
fetch(
|
|
2393
|
-
`https://api.uixhome.fr/${o}/iterop/listusers?t=${t}&s=${a}`,
|
|
2394
|
-
{
|
|
2395
|
-
method: "POST"
|
|
2396
|
-
}
|
|
2397
|
-
).then((c) => c.json()).then((c) => {
|
|
2398
|
-
n && n(c);
|
|
2399
|
-
}).catch((c) => {
|
|
2400
|
-
s && s(c);
|
|
2401
|
-
});
|
|
2402
|
-
});
|
|
2403
|
-
}
|
|
2404
|
-
async function bt(e, t, n = void 0, s = void 0) {
|
|
2405
2390
|
if (e.tenant) {
|
|
2406
2391
|
const i = e.tenant.toLowerCase();
|
|
2407
2392
|
fetch(
|
|
@@ -2416,7 +2401,7 @@ async function bt(e, t, n = void 0, s = void 0) {
|
|
|
2416
2401
|
});
|
|
2417
2402
|
}
|
|
2418
2403
|
}
|
|
2419
|
-
async function
|
|
2404
|
+
async function bt(e, t, n, s = void 0, i = void 0) {
|
|
2420
2405
|
if (e.tenant) {
|
|
2421
2406
|
const r = e.tenant.toLowerCase();
|
|
2422
2407
|
fetch(
|
|
@@ -2424,14 +2409,14 @@ async function Ot(e, t, n, s = void 0, i = void 0) {
|
|
|
2424
2409
|
{
|
|
2425
2410
|
method: "POST"
|
|
2426
2411
|
}
|
|
2427
|
-
).then((
|
|
2428
|
-
s && s(
|
|
2429
|
-
}).catch((
|
|
2430
|
-
i && i(
|
|
2412
|
+
).then((o) => o.json()).then((o) => {
|
|
2413
|
+
s && s(o);
|
|
2414
|
+
}).catch((o) => {
|
|
2415
|
+
i && i(o);
|
|
2431
2416
|
});
|
|
2432
2417
|
}
|
|
2433
2418
|
}
|
|
2434
|
-
async function
|
|
2419
|
+
async function Ot(e, t, n, s = void 0, i = void 0) {
|
|
2435
2420
|
if (e.tenant) {
|
|
2436
2421
|
const r = e.tenant.toLowerCase();
|
|
2437
2422
|
fetch(
|
|
@@ -2439,39 +2424,39 @@ async function $t(e, t, n, s = void 0, i = void 0) {
|
|
|
2439
2424
|
{
|
|
2440
2425
|
method: "POST"
|
|
2441
2426
|
}
|
|
2442
|
-
).then((
|
|
2443
|
-
s && s(
|
|
2444
|
-
}).catch((
|
|
2445
|
-
i && i(
|
|
2427
|
+
).then((o) => o.json()).then((o) => {
|
|
2428
|
+
s && s(o);
|
|
2429
|
+
}).catch((o) => {
|
|
2430
|
+
i && i(o);
|
|
2446
2431
|
});
|
|
2447
2432
|
}
|
|
2448
2433
|
}
|
|
2449
|
-
async function
|
|
2434
|
+
async function $t(e, t, n, s, i = void 0, r = void 0) {
|
|
2450
2435
|
if (e.tenant) {
|
|
2451
|
-
const
|
|
2436
|
+
const o = e.tenant.toLowerCase();
|
|
2452
2437
|
fetch(
|
|
2453
|
-
`https://api.uixhome.fr/${
|
|
2438
|
+
`https://api.uixhome.fr/${o}/iterop/businesstable/patch/rows/${n}/?t=${t}&b=${s}`,
|
|
2454
2439
|
{
|
|
2455
2440
|
method: "POST"
|
|
2456
2441
|
}
|
|
2457
|
-
).then((
|
|
2458
|
-
i && i(
|
|
2459
|
-
}).catch((
|
|
2460
|
-
r && r(
|
|
2442
|
+
).then((a) => a.json()).then((a) => {
|
|
2443
|
+
i && i(a);
|
|
2444
|
+
}).catch((a) => {
|
|
2445
|
+
r && r(a, n, s);
|
|
2461
2446
|
});
|
|
2462
2447
|
}
|
|
2463
2448
|
}
|
|
2464
|
-
async function
|
|
2449
|
+
async function Nt(e, t, n, s, i, r = void 0, o = void 0) {
|
|
2465
2450
|
if (e.tenant) {
|
|
2466
|
-
const
|
|
2451
|
+
const a = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/search/rows/${n}?t=${t}&c=${encodeURIComponent(
|
|
2467
2452
|
s
|
|
2468
2453
|
)}&b=${encodeURIComponent(i)}`;
|
|
2469
|
-
fetch(
|
|
2454
|
+
fetch(a, {
|
|
2470
2455
|
method: "POST"
|
|
2471
2456
|
}).then((c) => c.json()).then((c) => {
|
|
2472
|
-
c.url =
|
|
2457
|
+
c.url = a, r && r(c);
|
|
2473
2458
|
}).catch((c) => {
|
|
2474
|
-
|
|
2459
|
+
o && o({
|
|
2475
2460
|
error: c,
|
|
2476
2461
|
tableId: n,
|
|
2477
2462
|
columns: s,
|
|
@@ -2480,88 +2465,85 @@ async function It(e, t, n, s, i, r = void 0, a = void 0) {
|
|
|
2480
2465
|
});
|
|
2481
2466
|
}
|
|
2482
2467
|
}
|
|
2483
|
-
async function
|
|
2468
|
+
async function It(e, t, n, s, i = void 0, r = void 0) {
|
|
2484
2469
|
if (e.tenant) {
|
|
2485
|
-
const
|
|
2470
|
+
const o = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/post/update/${n}?t=${t}&b=${encodeURIComponent(
|
|
2486
2471
|
s
|
|
2487
2472
|
)}`;
|
|
2488
|
-
fetch(
|
|
2473
|
+
fetch(o, {
|
|
2489
2474
|
method: "POST"
|
|
2490
|
-
}).then((
|
|
2491
|
-
i && i(
|
|
2492
|
-
}).catch((
|
|
2475
|
+
}).then((a) => a.json()).then((a) => {
|
|
2476
|
+
i && i(a);
|
|
2477
|
+
}).catch((a) => {
|
|
2493
2478
|
r && r({
|
|
2494
|
-
error:
|
|
2495
|
-
url:
|
|
2479
|
+
error: a,
|
|
2480
|
+
url: o
|
|
2496
2481
|
});
|
|
2497
2482
|
});
|
|
2498
2483
|
}
|
|
2499
2484
|
}
|
|
2500
2485
|
async function Ft(e, t, n, s, i = void 0, r = void 0) {
|
|
2501
|
-
e.tenant
|
|
2502
|
-
a.services.find((c) => c.id === "businessprocess")?.url + "";
|
|
2486
|
+
if (e.tenant) {
|
|
2503
2487
|
const o = e.tenant.toLowerCase();
|
|
2504
2488
|
fetch(
|
|
2505
2489
|
`https://api.uixhome.fr/${o}/iterop/runtime/processes/${n}?t=${t}&b=${s}`,
|
|
2506
2490
|
{
|
|
2507
2491
|
method: "POST"
|
|
2508
2492
|
}
|
|
2509
|
-
).then((
|
|
2510
|
-
i && i(
|
|
2511
|
-
}).catch((
|
|
2512
|
-
r && r(
|
|
2493
|
+
).then((a) => a.json()).then((a) => {
|
|
2494
|
+
console.log("_Iterop_runProcess : OK"), i && i(a);
|
|
2495
|
+
}).catch((a) => {
|
|
2496
|
+
r && r(a);
|
|
2513
2497
|
});
|
|
2514
|
-
}
|
|
2498
|
+
}
|
|
2515
2499
|
}
|
|
2516
2500
|
async function jt(e, t, n, s = void 0, i = void 0) {
|
|
2517
|
-
if (e.tenant) {
|
|
2501
|
+
if (console.log("_Iterop_GetOneDependencyTable | Run"), e.tenant) {
|
|
2518
2502
|
const r = e.tenant.toLowerCase();
|
|
2519
2503
|
fetch(
|
|
2520
2504
|
`https://api.uixhome.fr/${r}/iterop/dependencytable/one/${n}/?t=${t}`,
|
|
2521
2505
|
{
|
|
2522
2506
|
method: "POST"
|
|
2523
2507
|
}
|
|
2524
|
-
).then((
|
|
2525
|
-
s && s(
|
|
2526
|
-
}).catch((
|
|
2527
|
-
i && i(
|
|
2508
|
+
).then((o) => o.json()).then((o) => {
|
|
2509
|
+
s && s(o);
|
|
2510
|
+
}).catch((o) => {
|
|
2511
|
+
i && i(o);
|
|
2528
2512
|
});
|
|
2529
2513
|
}
|
|
2530
2514
|
}
|
|
2531
|
-
async function kt(e, t, n, s, i, r = void 0,
|
|
2532
|
-
e.tenant
|
|
2533
|
-
|
|
2534
|
-
const c = e.tenant.toLowerCase();
|
|
2515
|
+
async function kt(e, t, n, s, i, r = void 0, o = void 0) {
|
|
2516
|
+
if (e.tenant) {
|
|
2517
|
+
const a = e.tenant.toLowerCase();
|
|
2535
2518
|
fetch(
|
|
2536
|
-
`https://api.uixhome.fr/${
|
|
2519
|
+
`https://api.uixhome.fr/${a}/iterop/dependencytable/patch/${n}/?t=${t}&cli=${s}&b=${i}`,
|
|
2537
2520
|
{
|
|
2538
2521
|
method: "POST"
|
|
2539
2522
|
}
|
|
2540
|
-
).then((
|
|
2541
|
-
r && r(
|
|
2542
|
-
}).catch((
|
|
2543
|
-
|
|
2523
|
+
).then((c) => c.json()).then((c) => {
|
|
2524
|
+
r && r(c);
|
|
2525
|
+
}).catch((c) => {
|
|
2526
|
+
o && o(c);
|
|
2544
2527
|
});
|
|
2545
|
-
}
|
|
2528
|
+
}
|
|
2546
2529
|
}
|
|
2547
2530
|
async function At(e, t, n, s, i = void 0, r = void 0) {
|
|
2548
|
-
e.tenant
|
|
2549
|
-
a.services.find((c) => c.id === "businessprocess")?.url + "";
|
|
2531
|
+
if (e.tenant) {
|
|
2550
2532
|
const o = e.tenant.toLowerCase();
|
|
2551
2533
|
fetch(
|
|
2552
2534
|
`https://api.uixhome.fr/${o}/iterop/dependencytable/put/${n}/?t=${t}&b=${s}`,
|
|
2553
2535
|
{
|
|
2554
2536
|
method: "POST"
|
|
2555
2537
|
}
|
|
2556
|
-
).then((
|
|
2557
|
-
i && i(
|
|
2558
|
-
}).catch((
|
|
2559
|
-
r && r(
|
|
2538
|
+
).then((a) => a.json()).then((a) => {
|
|
2539
|
+
i && i(a);
|
|
2540
|
+
}).catch((a) => {
|
|
2541
|
+
r && r(a);
|
|
2560
2542
|
});
|
|
2561
|
-
}
|
|
2543
|
+
}
|
|
2562
2544
|
}
|
|
2563
2545
|
//!SECTION
|
|
2564
|
-
async function
|
|
2546
|
+
async function vt(e, t, n, s = void 0, i = void 0) {
|
|
2565
2547
|
if (e.tenant) {
|
|
2566
2548
|
const r = e.tenant.toLowerCase();
|
|
2567
2549
|
fetch(
|
|
@@ -2569,42 +2551,42 @@ async function Ut(e, t, n, s = void 0, i = void 0) {
|
|
|
2569
2551
|
{
|
|
2570
2552
|
method: "POST"
|
|
2571
2553
|
}
|
|
2572
|
-
).then((
|
|
2573
|
-
s && s(
|
|
2574
|
-
}).catch((
|
|
2575
|
-
i && i(
|
|
2554
|
+
).then((o) => o.json()).then((o) => {
|
|
2555
|
+
s && s(o);
|
|
2556
|
+
}).catch((o) => {
|
|
2557
|
+
i && i(o);
|
|
2576
2558
|
});
|
|
2577
2559
|
}
|
|
2578
2560
|
}
|
|
2579
2561
|
//!SECTION
|
|
2580
|
-
function
|
|
2562
|
+
function Ut(e) {
|
|
2581
2563
|
const t = "Hello " + e;
|
|
2582
2564
|
return console.log(t), t;
|
|
2583
2565
|
}
|
|
2584
|
-
function
|
|
2566
|
+
function xt(e, t = void 0, n = void 0) {
|
|
2585
2567
|
return console.log("credentials", e), new Promise((s) => {
|
|
2586
2568
|
if (e.token === "" && b(e), !e.space || e.space === "") {
|
|
2587
|
-
const
|
|
2588
|
-
console.log("platformeInfo",
|
|
2569
|
+
const o = Y();
|
|
2570
|
+
console.log("platformeInfo", o);
|
|
2589
2571
|
}
|
|
2590
2572
|
j(
|
|
2591
2573
|
e,
|
|
2592
2574
|
"Common space",
|
|
2593
2575
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
2594
2576
|
void 0,
|
|
2595
|
-
(
|
|
2596
|
-
(
|
|
2597
|
-
console.log("onError =>",
|
|
2577
|
+
(o) => e.ctx = o,
|
|
2578
|
+
(o) => {
|
|
2579
|
+
console.log("onError =>", o);
|
|
2598
2580
|
},
|
|
2599
2581
|
!0
|
|
2600
2582
|
);
|
|
2601
2583
|
const i = O.now().ts, r = `https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dsearch&platformId=${e.tenant}`;
|
|
2602
2584
|
m(r, {
|
|
2603
|
-
onComplete(
|
|
2604
|
-
if (Array.isArray(JSON.parse(
|
|
2605
|
-
const
|
|
2606
|
-
console.log("serviceId=3dsearch",
|
|
2607
|
-
const c = `${
|
|
2585
|
+
onComplete(o) {
|
|
2586
|
+
if (Array.isArray(JSON.parse(o))) {
|
|
2587
|
+
const a = JSON.parse(o);
|
|
2588
|
+
console.log("serviceId=3dsearch", a);
|
|
2589
|
+
const c = `${a[0].services[0].url}/search?xrequestedwith=xmlhttprequest`;
|
|
2608
2590
|
m(c, {
|
|
2609
2591
|
method: "POST",
|
|
2610
2592
|
headers: {
|
|
@@ -2654,15 +2636,15 @@ function Pt(e, t = void 0, n = void 0) {
|
|
|
2654
2636
|
});
|
|
2655
2637
|
}
|
|
2656
2638
|
},
|
|
2657
|
-
onFailure(
|
|
2658
|
-
n && n(
|
|
2639
|
+
onFailure(o) {
|
|
2640
|
+
n && n(o);
|
|
2659
2641
|
}
|
|
2660
2642
|
});
|
|
2661
2643
|
});
|
|
2662
2644
|
}
|
|
2663
2645
|
export {
|
|
2664
2646
|
B as UUID,
|
|
2665
|
-
|
|
2647
|
+
xt as _3DSearch_usersGroup,
|
|
2666
2648
|
Je as _3DSpace_Create_Doc,
|
|
2667
2649
|
Me as _3DSpace_Update_Doc,
|
|
2668
2650
|
Ve as _3DSpace_bookmark_addSubsciptions,
|
|
@@ -2674,7 +2656,7 @@ export {
|
|
|
2674
2656
|
ee as _3DSpace_file_update_csr,
|
|
2675
2657
|
Le as _3DSpace_file_url_csr,
|
|
2676
2658
|
F as _3DSpace_get_csrf,
|
|
2677
|
-
|
|
2659
|
+
P as _3DSpace_get_docInfo,
|
|
2678
2660
|
ae as _3DSpace_get_downloadTicket_multidoc,
|
|
2679
2661
|
De as _3DSpace_get_multiDocInfo,
|
|
2680
2662
|
j as _3DSpace_get_securityContexts,
|
|
@@ -2702,26 +2684,25 @@ export {
|
|
|
2702
2684
|
yt as _3DSwym_get_findUser,
|
|
2703
2685
|
ut as _3DSwym_postIdea,
|
|
2704
2686
|
dt as _3DSwym_postIdeaTemplate,
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2687
|
+
U as _3DSwym_sendMessageData,
|
|
2688
|
+
je as _AppMngt_get_info_user,
|
|
2689
|
+
Fe as _AppMngt_get_users,
|
|
2690
|
+
$t as _Iterop_AddOrRemoveRows,
|
|
2709
2691
|
wt as _Iterop_Auth_CAS,
|
|
2710
2692
|
jt as _Iterop_GetOneDependencyTable,
|
|
2711
|
-
|
|
2712
|
-
Tt as _Iterop_ListUsers,
|
|
2693
|
+
vt as _Iterop_GetOneList,
|
|
2713
2694
|
kt as _Iterop_PatchDependencyTable,
|
|
2714
2695
|
At as _Iterop_PutDependencyTable,
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2696
|
+
Nt as _Iterop_businessTableSearchInRows,
|
|
2697
|
+
Tt as _Iterop_getAllBusinessTables,
|
|
2698
|
+
bt as _Iterop_getOneBusinessTable,
|
|
2699
|
+
Ot as _Iterop_getOneBusinessTableRows,
|
|
2719
2700
|
Ct as _Iterop_jwtUser,
|
|
2720
2701
|
Ft as _Iterop_runProcess,
|
|
2721
|
-
|
|
2702
|
+
It as _Iterop_updateBusinessTable,
|
|
2722
2703
|
Y as _getPlateformInfos,
|
|
2723
2704
|
$e as _getPlatformServices,
|
|
2724
|
-
|
|
2705
|
+
R as _getServiceUrl,
|
|
2725
2706
|
Ne as _getServiceUrl_3DPassport,
|
|
2726
2707
|
_t as _getServiceUrl_Iterop,
|
|
2727
2708
|
m as _httpCallAuthenticated,
|
|
@@ -2732,29 +2713,29 @@ export {
|
|
|
2732
2713
|
X as chunkArray,
|
|
2733
2714
|
Ie as compass_getListAdditionalApps,
|
|
2734
2715
|
W as couleurs,
|
|
2735
|
-
|
|
2716
|
+
ke as createUserGroups,
|
|
2736
2717
|
oe as dataMixing,
|
|
2737
2718
|
Ue as deleteUserGroups,
|
|
2738
2719
|
_e as findAdresse,
|
|
2739
2720
|
Ye as getAllContextSecurity,
|
|
2740
2721
|
H as getCSRFToken,
|
|
2741
2722
|
Se as getCommunes,
|
|
2742
|
-
|
|
2723
|
+
Ae as getComplementUG,
|
|
2743
2724
|
qe as getDataFrom3DSpace,
|
|
2744
2725
|
we as getDataFromGouvFr,
|
|
2745
2726
|
Ze as getDatasByTenant,
|
|
2746
2727
|
et as getDatasFrom3DSpace,
|
|
2747
2728
|
He as getDownloadDocument,
|
|
2748
2729
|
st as getInfoDocTags,
|
|
2749
|
-
|
|
2730
|
+
ve as getUserGroupsList,
|
|
2750
2731
|
q as getUsersGroupRules,
|
|
2751
2732
|
Qe as get_3DSpace_csrf,
|
|
2752
2733
|
xe as patchUserGroups,
|
|
2753
|
-
|
|
2734
|
+
Re as patchUserGroupsControl,
|
|
2754
2735
|
ze as pushDataIn3DSpace,
|
|
2755
|
-
|
|
2736
|
+
Pe as readUserGroupControl,
|
|
2756
2737
|
nt as removeTagToDoc,
|
|
2757
|
-
|
|
2738
|
+
Ut as sayHello,
|
|
2758
2739
|
Ce as updateEvent
|
|
2759
2740
|
};
|
|
2760
2741
|
//# sourceMappingURL=wb3Api.js.map
|