@beam3_dev/api_module 0.0.173 → 0.0.175
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 +661 -645
- package/dist/wb3Api.js.map +1 -1
- package/dist/wb3Api.umd.cjs +4 -5
- package/dist/wb3Api.umd.cjs.map +1 -1
- package/package.json +1 -1
package/dist/wb3Api.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { v4 as
|
|
1
|
+
import { v4 as E } from "uuid";
|
|
2
2
|
import { DateTime as v } from "luxon";
|
|
3
|
-
import { requirejs as O, widget as
|
|
4
|
-
function
|
|
5
|
-
return
|
|
3
|
+
import { requirejs as O, widget as R } from "@widget-lab/3ddashboard-utils";
|
|
4
|
+
function P() {
|
|
5
|
+
return E();
|
|
6
6
|
}
|
|
7
|
-
const
|
|
7
|
+
const K = {
|
|
8
8
|
b3M3Yellow: "#FFB300",
|
|
9
9
|
b3AboutageBlue: "#42A5F5",
|
|
10
10
|
b3UsinageGreen: "#689F38",
|
|
@@ -34,7 +34,7 @@ const E = {
|
|
|
34
34
|
b3Edit8: "#616161",
|
|
35
35
|
b3Edit9: "#795548"
|
|
36
36
|
};
|
|
37
|
-
async function
|
|
37
|
+
async function me(e, t = void 0, n = void 0) {
|
|
38
38
|
const s = parseInt(e);
|
|
39
39
|
await fetch(
|
|
40
40
|
"https://apicarto.ign.fr/api/codes-postaux/communes/" + s,
|
|
@@ -50,7 +50,7 @@ async function fe(e, t = void 0, n = void 0) {
|
|
|
50
50
|
n && n(i), console.error("Erreur : " + i);
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
|
-
async function
|
|
53
|
+
async function ge(e, t = void 0, n = void 0) {
|
|
54
54
|
e = encodeURIComponent(e), await fetch(
|
|
55
55
|
"https://api-adresse.data.gouv.fr/search/?q=" + e + "&limit=15",
|
|
56
56
|
{
|
|
@@ -65,11 +65,11 @@ async function me(e, t = void 0, n = void 0) {
|
|
|
65
65
|
n && n(s), console.error("Erreur : " + s);
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
|
-
async function
|
|
68
|
+
async function he(e, t = K) {
|
|
69
69
|
let n = v.now().year;
|
|
70
|
-
const s = e, i = [],
|
|
71
|
-
for (let
|
|
72
|
-
i.push({ date:
|
|
70
|
+
const s = e, i = [], r = (a) => {
|
|
71
|
+
for (let c in a)
|
|
72
|
+
i.push({ date: c, comment: a[c] });
|
|
73
73
|
};
|
|
74
74
|
for (let a = n; a <= n + 1; a++)
|
|
75
75
|
await fetch(
|
|
@@ -80,36 +80,36 @@ async function ge(e, t = E) {
|
|
|
80
80
|
Accept: "application/json"
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
).then((
|
|
84
|
-
c
|
|
85
|
-
}).catch((
|
|
83
|
+
).then((c) => c.json()).then((c) => {
|
|
84
|
+
r(c);
|
|
85
|
+
}).catch((c) => console.error("Erreur : " + c));
|
|
86
86
|
return (() => {
|
|
87
87
|
const a = s.length === 0 ? {
|
|
88
88
|
events: []
|
|
89
89
|
} : s;
|
|
90
|
-
for (let
|
|
90
|
+
for (let c of i)
|
|
91
91
|
a.events.findIndex(
|
|
92
|
-
(p) => p.start === v.fromISO(
|
|
92
|
+
(p) => p.start === v.fromISO(c.date).toISODate() && p.name === "Férié : " + c.comment
|
|
93
93
|
) === -1 && a.events.push({
|
|
94
|
-
name: "Férié : " +
|
|
95
|
-
start: v.fromISO(
|
|
96
|
-
end: v.fromISO(
|
|
94
|
+
name: "Férié : " + c.comment,
|
|
95
|
+
start: v.fromISO(c.date).toISODate(),
|
|
96
|
+
end: v.fromISO(c.date).toISODate(),
|
|
97
97
|
color: t.b3BusinnessDays,
|
|
98
98
|
timed: !1
|
|
99
99
|
});
|
|
100
100
|
return a;
|
|
101
101
|
})();
|
|
102
102
|
}
|
|
103
|
-
async function
|
|
103
|
+
async function Se(e, t, n = !0) {
|
|
104
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,
|
|
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 m(e, t) {
|
|
108
108
|
O(["DS/WAFData/WAFData"], (n) => {
|
|
109
109
|
n.authenticatedRequest(e, t);
|
|
110
110
|
});
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function ye(e, t, n) {
|
|
113
113
|
O(["DS/DataDragAndDrop/DataDragAndDrop"], (s) => {
|
|
114
114
|
s.draggable(e, {
|
|
115
115
|
data: t,
|
|
@@ -121,23 +121,23 @@ function _e(e, t = void 0) {
|
|
|
121
121
|
O(["DS/TagNavigatorProxy/TagNavigatorProxy"], (n) => {
|
|
122
122
|
let s;
|
|
123
123
|
s === void 0 && (s = n.createProxy({
|
|
124
|
-
widgetId:
|
|
124
|
+
widgetId: R.id,
|
|
125
125
|
filteringMode: "WithFilteringServices"
|
|
126
126
|
}), t !== void 0 && s.addEvent("onFilterSubjectsChange", t)), s.setSubjectsTags(e);
|
|
127
127
|
});
|
|
128
128
|
}
|
|
129
|
-
function
|
|
129
|
+
function we(e, t) {
|
|
130
130
|
O(["DS/DataDragAndDrop/DataDragAndDrop"], (n) => {
|
|
131
131
|
n.droppable(e, {
|
|
132
132
|
drop: t
|
|
133
133
|
});
|
|
134
134
|
});
|
|
135
135
|
}
|
|
136
|
-
async function
|
|
136
|
+
async function Ce(e, t = void 0, n = void 0) {
|
|
137
137
|
await O(
|
|
138
138
|
["DS/i3DXCompassServices/i3DXCompassServices"],
|
|
139
139
|
(s) => {
|
|
140
|
-
(!e || e === "") && (e =
|
|
140
|
+
(!e || e === "") && (e = R.getValue("PlatFormInstanceId")), (!e || e === "") && (e = void 0), t && t(
|
|
141
141
|
s.getPlatformServices({
|
|
142
142
|
platformId: e,
|
|
143
143
|
onComplete: t,
|
|
@@ -147,17 +147,17 @@ async function we(e, t = void 0, n = void 0) {
|
|
|
147
147
|
}
|
|
148
148
|
);
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function V() {
|
|
151
151
|
let e = {};
|
|
152
152
|
return O(["DS/PlatformAPI/PlatformAPI"], (t) => {
|
|
153
|
-
const n = t.getTenant(), s = t.getUser(), i = t.getAllApplicationConfigurations(),
|
|
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
159
|
appsConfiguration: i,
|
|
160
|
-
appConf:
|
|
160
|
+
appConf: r
|
|
161
161
|
};
|
|
162
162
|
}), console.log("%cRETOUR API :", "color:blue", e), e;
|
|
163
163
|
}
|
|
@@ -166,9 +166,9 @@ function b(e, t = void 0, n = void 0) {
|
|
|
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
|
m(s, {
|
|
168
168
|
onComplete(i) {
|
|
169
|
-
const
|
|
170
|
-
if (
|
|
171
|
-
const o =
|
|
169
|
+
const r = typeof i == "string" ? JSON.parse(i) : i;
|
|
170
|
+
if (r && "platforms" in r) {
|
|
171
|
+
const o = r.platforms.find(
|
|
172
172
|
(a) => a.id === e.tenant.toUpperCase()
|
|
173
173
|
);
|
|
174
174
|
t && o ? t(o) : n && n("_getServiceUrl return listServiceUrl = undefined");
|
|
@@ -181,14 +181,14 @@ function b(e, t = void 0, n = void 0) {
|
|
|
181
181
|
});
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
|
-
function
|
|
184
|
+
function Te(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
|
m(s, {
|
|
188
188
|
onComplete(i) {
|
|
189
|
-
const
|
|
190
|
-
if (console.log("serviceId=3dpassport",
|
|
191
|
-
const o = `${
|
|
189
|
+
const r = JSON.parse(i);
|
|
190
|
+
if (console.log("serviceId=3dpassport", r), Array.isArray(r) && r.length > 0) {
|
|
191
|
+
const o = `${r[0].services[0].url}`;
|
|
192
192
|
t && t(o);
|
|
193
193
|
}
|
|
194
194
|
},
|
|
@@ -198,7 +198,7 @@ function Ce(e, t = void 0, n = void 0) {
|
|
|
198
198
|
});
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
|
-
function
|
|
201
|
+
function Oe(e, t, n) {
|
|
202
202
|
const s = {
|
|
203
203
|
base: `${e.space}`,
|
|
204
204
|
uri: "/resources/AppsMngt/api/custom/applications",
|
|
@@ -211,41 +211,41 @@ function Te(e, t, n) {
|
|
|
211
211
|
"Content-Type": "application/json",
|
|
212
212
|
Accept: "application/json"
|
|
213
213
|
},
|
|
214
|
-
onComplete(
|
|
215
|
-
const
|
|
216
|
-
const l = p.attributes.name,
|
|
217
|
-
return { name: l, id:
|
|
214
|
+
onComplete(r, o, a) {
|
|
215
|
+
const c = JSON.parse(r), d = c.data.map((p) => {
|
|
216
|
+
const l = p.attributes.name, f = p.id;
|
|
217
|
+
return { name: l, id: f };
|
|
218
218
|
});
|
|
219
|
-
t && t(d,
|
|
219
|
+
t && t(d, c);
|
|
220
220
|
},
|
|
221
|
-
onFailure(
|
|
222
|
-
const a =
|
|
221
|
+
onFailure(r, o) {
|
|
222
|
+
const a = r;
|
|
223
223
|
a.msg = o.errormsg, a.errCode = o.errorcode, n && n(a);
|
|
224
224
|
}
|
|
225
225
|
});
|
|
226
226
|
}
|
|
227
|
-
function
|
|
227
|
+
function be(e, t = void 0, n = void 0) {
|
|
228
228
|
let s = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&limit=-1`;
|
|
229
229
|
m(s, {
|
|
230
|
-
onComplete(i,
|
|
230
|
+
onComplete(i, r, o) {
|
|
231
231
|
const a = JSON.parse(i);
|
|
232
232
|
console.log("_AppMngt_get_users => ", a), t && t(a);
|
|
233
233
|
},
|
|
234
|
-
onFailure(i,
|
|
234
|
+
onFailure(i, r) {
|
|
235
235
|
const o = i;
|
|
236
|
-
o.msg =
|
|
236
|
+
o.msg = r.errormsg, o.errCode = r.errorcode, n && n(o);
|
|
237
237
|
}
|
|
238
238
|
});
|
|
239
239
|
}
|
|
240
|
-
function
|
|
240
|
+
function Ne(e, t, n = void 0, s = void 0) {
|
|
241
241
|
let i = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&id=${t}`;
|
|
242
242
|
m(i, {
|
|
243
|
-
onComplete(
|
|
244
|
-
const
|
|
245
|
-
n && n(
|
|
243
|
+
onComplete(r, o, a) {
|
|
244
|
+
const c = JSON.parse(r);
|
|
245
|
+
n && n(c);
|
|
246
246
|
},
|
|
247
|
-
onFailure(
|
|
248
|
-
const a =
|
|
247
|
+
onFailure(r, o) {
|
|
248
|
+
const a = r;
|
|
249
249
|
a.msg = o.errormsg, a.errCode = o.errorcode, s && s(a);
|
|
250
250
|
}
|
|
251
251
|
});
|
|
@@ -254,15 +254,15 @@ const U = {
|
|
|
254
254
|
"Content-Type": "application/json",
|
|
255
255
|
Accept: "application/json,text/javascript,*/*"
|
|
256
256
|
};
|
|
257
|
-
function
|
|
258
|
-
const { space: i, currentUser:
|
|
257
|
+
function $e(e, t, n = void 0, s = void 0) {
|
|
258
|
+
const { space: i, currentUser: r } = e, a = `${i}${{
|
|
259
259
|
URIUGr: "/3drdfpersist/resources/v1/usersgroup"
|
|
260
|
-
}.URIUGr}`,
|
|
260
|
+
}.URIUGr}`, c = {
|
|
261
261
|
groups: [
|
|
262
262
|
{
|
|
263
263
|
title: t.title,
|
|
264
264
|
description: t.description,
|
|
265
|
-
members: t.members || [
|
|
265
|
+
members: t.members || [r.email, "samuel.mureau@beam3.fr"],
|
|
266
266
|
pending_members: [],
|
|
267
267
|
sharing: t.sharing,
|
|
268
268
|
visibility: t.visibility
|
|
@@ -272,7 +272,7 @@ function Ne(e, t, n = void 0, s = void 0) {
|
|
|
272
272
|
m(a, {
|
|
273
273
|
method: "POST",
|
|
274
274
|
headers: U,
|
|
275
|
-
data: JSON.stringify(
|
|
275
|
+
data: JSON.stringify(c),
|
|
276
276
|
onComplete(d) {
|
|
277
277
|
n && n(JSON.parse(d));
|
|
278
278
|
},
|
|
@@ -283,8 +283,8 @@ function Ne(e, t, n = void 0, s = void 0) {
|
|
|
283
283
|
}
|
|
284
284
|
});
|
|
285
285
|
}
|
|
286
|
-
function
|
|
287
|
-
const { space: i, tenant:
|
|
286
|
+
function ve(e, t, n = void 0, s = void 0) {
|
|
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
|
m(d, {
|
|
289
289
|
opts: {
|
|
290
290
|
method: "GET",
|
|
@@ -293,32 +293,32 @@ function $e(e, t, n = void 0, s = void 0) {
|
|
|
293
293
|
Accept: "application/json,text/javascript,*/*"
|
|
294
294
|
}
|
|
295
295
|
},
|
|
296
|
-
onComplete(
|
|
297
|
-
n && n(JSON.parse(
|
|
296
|
+
onComplete(f) {
|
|
297
|
+
n && n(JSON.parse(f));
|
|
298
298
|
},
|
|
299
|
-
onFailure(
|
|
300
|
-
const g =
|
|
301
|
-
g.msg =
|
|
299
|
+
onFailure(f, u) {
|
|
300
|
+
const g = f;
|
|
301
|
+
g.msg = u.errormsg, g.errCode = u.errorcode, s && s(g);
|
|
302
302
|
}
|
|
303
303
|
});
|
|
304
304
|
}
|
|
305
|
-
function
|
|
306
|
-
const { space: s, tenant: i } = e,
|
|
305
|
+
function B(e, t = void 0, n = void 0) {
|
|
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 = `${
|
|
309
|
+
}, d = `${r}${o}${a}`;
|
|
310
310
|
m(d, {
|
|
311
|
-
OPTsH:
|
|
311
|
+
OPTsH: c,
|
|
312
312
|
onComplete(p) {
|
|
313
313
|
t && t(JSON.parse(p));
|
|
314
314
|
},
|
|
315
315
|
onFailure(p, l) {
|
|
316
|
-
const
|
|
317
|
-
|
|
316
|
+
const f = p;
|
|
317
|
+
f.msg = l.errormsg, f.errCode = l.errorcode, n && n(f);
|
|
318
318
|
}
|
|
319
319
|
});
|
|
320
320
|
}
|
|
321
|
-
function
|
|
321
|
+
function Ie(e, t = void 0, n = void 0) {
|
|
322
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,*/*"
|
|
@@ -327,16 +327,16 @@ function ve(e, t = void 0, n = void 0) {
|
|
|
327
327
|
m(a, {
|
|
328
328
|
opts: d,
|
|
329
329
|
onComplete(p) {
|
|
330
|
-
const l = JSON.parse(p),
|
|
330
|
+
const l = JSON.parse(p), f = {}, u = l.groups.filter((g) => g.uri.startsWith("uuid:"));
|
|
331
331
|
if (i && Object.keys(i).length > 0) {
|
|
332
|
-
const g =
|
|
333
|
-
|
|
332
|
+
const g = u.filter((y) => y.owner === i.email), h = u.filter((y) => y.members.includes(i.email)), S = g.concat(h);
|
|
333
|
+
f.iam = S, f.UG = u, f.iamMember = h, B(
|
|
334
334
|
e,
|
|
335
|
-
(
|
|
336
|
-
|
|
335
|
+
(y) => {
|
|
336
|
+
f.rules = y, t && t(f);
|
|
337
337
|
},
|
|
338
|
-
(
|
|
339
|
-
n && n(
|
|
338
|
+
(y) => {
|
|
339
|
+
n && n(y);
|
|
340
340
|
}
|
|
341
341
|
);
|
|
342
342
|
}
|
|
@@ -349,14 +349,14 @@ function ve(e, t = void 0, n = void 0) {
|
|
|
349
349
|
console.log(p);
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
|
-
function
|
|
352
|
+
function Ae(e, t) {
|
|
353
353
|
const { space: n } = e, i = `${n}/3drdfpersist/resources/v1/usersgroup/${t}`;
|
|
354
354
|
m(i, {
|
|
355
355
|
method: "DELETE"
|
|
356
356
|
});
|
|
357
357
|
}
|
|
358
|
-
function
|
|
359
|
-
const { space:
|
|
358
|
+
function ke(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",
|
|
@@ -364,7 +364,7 @@ function Ae(e, t, n, s = void 0, i = void 0) {
|
|
|
364
364
|
nexURImem: "/members",
|
|
365
365
|
OPTsTI: "?$mask=dsaccess:Mask.GroupUI.Properties",
|
|
366
366
|
OPTsTenant: `tenant=dstenant:${o}`
|
|
367
|
-
},
|
|
367
|
+
}, c = n, d = `${r}${a.URIUGr}/${t}`, p = JSON.stringify(c);
|
|
368
368
|
m(d, {
|
|
369
369
|
headers: U,
|
|
370
370
|
method: "PATCH",
|
|
@@ -378,8 +378,8 @@ function Ae(e, t, n, s = void 0, i = void 0) {
|
|
|
378
378
|
}
|
|
379
379
|
});
|
|
380
380
|
}
|
|
381
|
-
function
|
|
382
|
-
const { space:
|
|
381
|
+
function Ue(e, t, n, s = void 0, i = void 0) {
|
|
382
|
+
const { space: r } = e, a = `${r}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
|
|
383
383
|
m(a, {
|
|
384
384
|
method: "PATCH",
|
|
385
385
|
headers: U,
|
|
@@ -393,7 +393,7 @@ function ke(e, t, n, s = void 0, i = void 0) {
|
|
|
393
393
|
}
|
|
394
394
|
});
|
|
395
395
|
}
|
|
396
|
-
function
|
|
396
|
+
function Fe(e, t, n = void 0, s = void 0) {
|
|
397
397
|
const { space: i } = e, o = `${i}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
|
|
398
398
|
m(o, {
|
|
399
399
|
opts: {
|
|
@@ -411,37 +411,37 @@ function Ue(e, t, n = void 0, s = void 0) {
|
|
|
411
411
|
}
|
|
412
412
|
});
|
|
413
413
|
}
|
|
414
|
-
async function
|
|
414
|
+
async function W(e, t, n) {
|
|
415
415
|
if (e.space) {
|
|
416
416
|
const s = `${e.space}/resources/v1/application/CSRF`;
|
|
417
417
|
m(s, {
|
|
418
418
|
onComplete(i) {
|
|
419
419
|
i = JSON.parse(i), t && t(i.csrf);
|
|
420
420
|
},
|
|
421
|
-
onFailure(i,
|
|
422
|
-
n && n({ error: i, headers:
|
|
421
|
+
onFailure(i, r, o) {
|
|
422
|
+
n && n({ error: i, headers: r, xhr: o });
|
|
423
423
|
}
|
|
424
424
|
});
|
|
425
425
|
}
|
|
426
426
|
}
|
|
427
427
|
var I = {};
|
|
428
|
-
function
|
|
428
|
+
function X(e, t) {
|
|
429
429
|
return Object.prototype.hasOwnProperty.call(e, t);
|
|
430
430
|
}
|
|
431
|
-
var
|
|
431
|
+
var Y = function(e, t, n, s) {
|
|
432
432
|
t = t || "&", n = n || "=";
|
|
433
433
|
var i = {};
|
|
434
434
|
if (typeof e != "string" || e.length === 0)
|
|
435
435
|
return i;
|
|
436
|
-
var
|
|
436
|
+
var r = /\+/g;
|
|
437
437
|
e = e.split(t);
|
|
438
438
|
var o = 1e3;
|
|
439
439
|
s && typeof s.maxKeys == "number" && (o = s.maxKeys);
|
|
440
440
|
var a = e.length;
|
|
441
441
|
o > 0 && a > o && (a = o);
|
|
442
|
-
for (var
|
|
443
|
-
var d = e[
|
|
444
|
-
p >= 0 ? (l = d.substr(0, p),
|
|
442
|
+
for (var c = 0; c < a; ++c) {
|
|
443
|
+
var d = e[c].replace(r, "%20"), p = d.indexOf(n), l, f, u, g;
|
|
444
|
+
p >= 0 ? (l = d.substr(0, p), f = d.substr(p + 1)) : (l = d, f = ""), u = decodeURIComponent(l), g = decodeURIComponent(f), X(i, u) ? Array.isArray(i[u]) ? i[u].push(g) : i[u] = [i[u], g] : i[u] = g;
|
|
445
445
|
}
|
|
446
446
|
return i;
|
|
447
447
|
}, $ = function(e) {
|
|
@@ -455,25 +455,25 @@ var X = function(e, t, n, s) {
|
|
|
455
455
|
default:
|
|
456
456
|
return "";
|
|
457
457
|
}
|
|
458
|
-
},
|
|
458
|
+
}, H = function(e, t, n, s) {
|
|
459
459
|
return t = t || "&", n = n || "=", e === null && (e = void 0), typeof e == "object" ? Object.keys(e).map(function(i) {
|
|
460
|
-
var
|
|
460
|
+
var r = encodeURIComponent($(i)) + n;
|
|
461
461
|
return Array.isArray(e[i]) ? e[i].map(function(o) {
|
|
462
|
-
return
|
|
463
|
-
}).join(t) :
|
|
462
|
+
return r + encodeURIComponent($(o));
|
|
463
|
+
}).join(t) : r + encodeURIComponent($(e[i]));
|
|
464
464
|
}).filter(Boolean).join(t) : s ? encodeURIComponent($(s)) + n + encodeURIComponent($(e)) : "";
|
|
465
465
|
};
|
|
466
|
-
I.decode = I.parse =
|
|
467
|
-
I.encode = I.stringify =
|
|
468
|
-
async function
|
|
466
|
+
I.decode = I.parse = Y;
|
|
467
|
+
I.encode = I.stringify = H;
|
|
468
|
+
async function z(e, t = void 0, n = void 0, s = void 0) {
|
|
469
469
|
const i = e.space;
|
|
470
470
|
if (t === void 0) {
|
|
471
471
|
console.log("Le paramètre docid est obligatoire");
|
|
472
472
|
return;
|
|
473
473
|
}
|
|
474
|
-
const
|
|
475
|
-
m(
|
|
476
|
-
onComplete(o, a,
|
|
474
|
+
const r = i + `/resources/v1/modeler/documents/${t}`;
|
|
475
|
+
m(r, {
|
|
476
|
+
onComplete(o, a, c) {
|
|
477
477
|
const d = JSON.parse(o);
|
|
478
478
|
n && n(d);
|
|
479
479
|
},
|
|
@@ -482,22 +482,22 @@ async function H(e, t = void 0, n = void 0, s = void 0) {
|
|
|
482
482
|
}
|
|
483
483
|
});
|
|
484
484
|
}
|
|
485
|
-
async function
|
|
485
|
+
async function je(e, t = void 0, n = void 0, s = void 0) {
|
|
486
486
|
const i = e.space;
|
|
487
487
|
if (t === void 0) {
|
|
488
488
|
console.log("Le paramètre docids est obligatoire");
|
|
489
489
|
return;
|
|
490
490
|
}
|
|
491
|
-
let
|
|
491
|
+
let r = `${i}/resources/v1/modeler/documents/ids?$include=!files,!ownerInfo,!originatorInfo,!relOwnerInfo'`, o = I.stringify({
|
|
492
492
|
$ids: t.toString().replace('"', "").replace("[", "").replace("]", "")
|
|
493
493
|
});
|
|
494
|
-
m(
|
|
494
|
+
m(r, {
|
|
495
495
|
method: "POST",
|
|
496
496
|
headers: {
|
|
497
497
|
"Content-Type": "application/x-www-form-urlencoded"
|
|
498
498
|
},
|
|
499
499
|
data: o,
|
|
500
|
-
onComplete(a,
|
|
500
|
+
onComplete(a, c, d) {
|
|
501
501
|
const p = JSON.parse(a);
|
|
502
502
|
n && n(p);
|
|
503
503
|
},
|
|
@@ -510,7 +510,7 @@ function A(e, t = void 0, n = void 0) {
|
|
|
510
510
|
if (e.objID && e.objID !== "") {
|
|
511
511
|
let s = `${e.space}/resources/v1/modeler/documents/${e.objID}`;
|
|
512
512
|
m(s, {
|
|
513
|
-
onComplete(i,
|
|
513
|
+
onComplete(i, r, o) {
|
|
514
514
|
const a = JSON.parse(i);
|
|
515
515
|
e.token = a?.csrf?.value, e.datas = a?.data[0], t && t(e);
|
|
516
516
|
},
|
|
@@ -533,14 +533,14 @@ function T(e, t = void 0, n = void 0) {
|
|
|
533
533
|
if (e.space) {
|
|
534
534
|
const s = e.space + "/resources/v1/application/CSRF";
|
|
535
535
|
m(s, {
|
|
536
|
-
onComplete(i,
|
|
536
|
+
onComplete(i, r, o) {
|
|
537
537
|
const a = JSON.parse(i);
|
|
538
538
|
t && t(a.csrf.value);
|
|
539
539
|
},
|
|
540
|
-
onFailure(i,
|
|
540
|
+
onFailure(i, r, o) {
|
|
541
541
|
n && n({
|
|
542
542
|
response: i,
|
|
543
|
-
headers:
|
|
543
|
+
headers: r,
|
|
544
544
|
xhr: o
|
|
545
545
|
});
|
|
546
546
|
}
|
|
@@ -558,12 +558,12 @@ function F(e, t = void 0, n = void 0) {
|
|
|
558
558
|
headers: {
|
|
559
559
|
ENO_CSRF_TOKEN: e.token
|
|
560
560
|
},
|
|
561
|
-
onComplete(
|
|
562
|
-
const
|
|
563
|
-
t && t(
|
|
561
|
+
onComplete(r, o) {
|
|
562
|
+
const c = JSON.parse(r).data[0].dataelements.ticketURL;
|
|
563
|
+
t && t(c, o);
|
|
564
564
|
},
|
|
565
|
-
onFailure(
|
|
566
|
-
console.warn("☠️ error => ",
|
|
565
|
+
onFailure(r, o) {
|
|
566
|
+
console.warn("☠️ error => ", r, o), n && n(r, o);
|
|
567
567
|
}
|
|
568
568
|
});
|
|
569
569
|
},
|
|
@@ -572,9 +572,9 @@ function F(e, t = void 0, n = void 0) {
|
|
|
572
572
|
}
|
|
573
573
|
);
|
|
574
574
|
}
|
|
575
|
-
function
|
|
576
|
-
const
|
|
577
|
-
n || (n = e.token), m(
|
|
575
|
+
function xe(e, t, n, s = void 0, i = void 0) {
|
|
576
|
+
const r = `${e.space}/resources/v1/modeler/documents/${t}/files/DownloadTicket`;
|
|
577
|
+
n || (n = e.token), m(r, {
|
|
578
578
|
method: "PUT",
|
|
579
579
|
headers: {
|
|
580
580
|
ENO_CSRF_TOKEN: n
|
|
@@ -583,10 +583,10 @@ function je(e, t, n, s = void 0, i = void 0) {
|
|
|
583
583
|
let a = JSON.parse(o);
|
|
584
584
|
if (console.log("☠️ info => ", a), a.success === !0)
|
|
585
585
|
try {
|
|
586
|
-
const
|
|
587
|
-
s && s(
|
|
588
|
-
} catch (
|
|
589
|
-
i && i(
|
|
586
|
+
const c = a.data[0].dataelements.ticketURL;
|
|
587
|
+
s && s(c);
|
|
588
|
+
} catch (c) {
|
|
589
|
+
i && i(c);
|
|
590
590
|
}
|
|
591
591
|
},
|
|
592
592
|
onFailure(o) {
|
|
@@ -594,102 +594,100 @@ function je(e, t, n, s = void 0, i = void 0) {
|
|
|
594
594
|
}
|
|
595
595
|
});
|
|
596
596
|
}
|
|
597
|
-
function
|
|
598
|
-
const a = () =>
|
|
597
|
+
function q(e, t, n, s, i, r = void 0, o = void 0) {
|
|
598
|
+
const a = () => Q(
|
|
599
599
|
e,
|
|
600
600
|
t,
|
|
601
601
|
n,
|
|
602
602
|
s,
|
|
603
603
|
i,
|
|
604
604
|
e.token,
|
|
605
|
-
|
|
605
|
+
r,
|
|
606
606
|
o
|
|
607
607
|
);
|
|
608
608
|
e.token ? a() : A(
|
|
609
609
|
e,
|
|
610
610
|
t,
|
|
611
|
-
(
|
|
612
|
-
e.token =
|
|
611
|
+
(c) => {
|
|
612
|
+
e.token = c.csrf.value, a();
|
|
613
613
|
}
|
|
614
614
|
);
|
|
615
615
|
}
|
|
616
|
-
function
|
|
617
|
-
const
|
|
618
|
-
m(
|
|
616
|
+
function Q(e, t, n, s, i, r, o = void 0, a = void 0) {
|
|
617
|
+
const c = e.space + `/resources/v1/modeler/documents/${t}/files/CheckinTicket`;
|
|
618
|
+
m(c, {
|
|
619
619
|
method: "PUT",
|
|
620
620
|
headers: {
|
|
621
621
|
ENO_CSRF_TOKEN: e.token
|
|
622
622
|
},
|
|
623
623
|
onComplete(d, p, l) {
|
|
624
|
-
const
|
|
625
|
-
g.append("__fcs__jobTicket",
|
|
624
|
+
const f = JSON.parse(d).csrf, u = JSON.parse(d).data[0].dataelements, g = new FormData();
|
|
625
|
+
g.append("__fcs__jobTicket", u.ticket), g.append("file_0", s, i);
|
|
626
626
|
const h = {};
|
|
627
627
|
h.method = "POST", h.data = g, h.onComplete = function(S) {
|
|
628
|
-
let
|
|
628
|
+
let y = {
|
|
629
629
|
method: "PUT",
|
|
630
630
|
headers: {
|
|
631
631
|
SecurityContext: "ctx::" + e.ctx
|
|
632
632
|
},
|
|
633
633
|
data: JSON.stringify({
|
|
634
|
-
csrf:
|
|
635
|
-
data: [
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
634
|
+
csrf: f,
|
|
635
|
+
data: [
|
|
636
|
+
{
|
|
637
|
+
relateddata: {
|
|
638
|
+
files: [
|
|
639
|
+
{
|
|
640
|
+
dataelements: {
|
|
641
|
+
title: i,
|
|
642
|
+
receipt: S
|
|
643
|
+
},
|
|
644
|
+
updateAction: "REVISE"
|
|
645
|
+
}
|
|
646
|
+
]
|
|
647
|
+
},
|
|
648
|
+
id: t,
|
|
649
|
+
updateAction: "NONE"
|
|
650
|
+
}
|
|
651
|
+
]
|
|
648
652
|
}),
|
|
649
653
|
type: "json",
|
|
650
|
-
onComplete(
|
|
651
|
-
o && o(
|
|
654
|
+
onComplete(C) {
|
|
655
|
+
o && o(C);
|
|
652
656
|
},
|
|
653
|
-
onFailure(
|
|
654
|
-
a && a(
|
|
657
|
+
onFailure(C) {
|
|
658
|
+
a && a(C);
|
|
655
659
|
}
|
|
656
|
-
},
|
|
660
|
+
}, _ = e.tenant.toUpperCase();
|
|
657
661
|
m(
|
|
658
|
-
e.space + `/resources/v1/modeler/documents/?$include=versions&tenant=${
|
|
659
|
-
|
|
662
|
+
e.space + `/resources/v1/modeler/documents/?$include=versions&tenant=${_}&e6w-lang=en&e6w-timezone=-120&xrequestedwith=xmlhttprequest`,
|
|
663
|
+
y
|
|
660
664
|
);
|
|
661
665
|
}, h.onFailure = function(S) {
|
|
662
666
|
a && a(S);
|
|
663
|
-
}, h.timeout = 0, m(
|
|
667
|
+
}, h.timeout = 0, m(u.ticketURL, h);
|
|
664
668
|
}
|
|
665
669
|
});
|
|
666
670
|
}
|
|
667
|
-
async function
|
|
668
|
-
const o = e.space, a = e.token,
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
const S = {
|
|
688
|
-
method: "POST",
|
|
689
|
-
data: d,
|
|
690
|
-
onComplete(w) {
|
|
691
|
-
if (r && r !== "" && a && a !== "") {
|
|
692
|
-
const k = {
|
|
671
|
+
async function Re(e, t, n, s, i = void 0, r = void 0) {
|
|
672
|
+
const o = e.space, a = e.token, c = e.ctx;
|
|
673
|
+
if (o !== "") {
|
|
674
|
+
let d = `${o}/resources/v1/modeler/documents/files/CheckinTicket`;
|
|
675
|
+
m(d, {
|
|
676
|
+
method: "PUT",
|
|
677
|
+
headers: {
|
|
678
|
+
ENO_CSRF_TOKEN: a
|
|
679
|
+
},
|
|
680
|
+
onComplete(p, l, f) {
|
|
681
|
+
let u = JSON.parse(p).data[0].dataelements, g = new FormData(), h;
|
|
682
|
+
t instanceof Blob ? h = t : h = new Blob([t], {
|
|
683
|
+
type: "text/plain"
|
|
684
|
+
}), g.append("__fcs__jobTicket", u.ticket), g.append("filename", h, n);
|
|
685
|
+
const S = (_) => _.indexOf(".") === -1 ? _ : _.split(".").slice(0, -1).join(".");
|
|
686
|
+
let y = {
|
|
687
|
+
method: "POST",
|
|
688
|
+
data: g,
|
|
689
|
+
onComplete(_) {
|
|
690
|
+
let C = P(), G = {
|
|
693
691
|
method: "POST",
|
|
694
692
|
headers: {
|
|
695
693
|
ENO_CSRF_TOKEN: a,
|
|
@@ -697,91 +695,95 @@ async function xe(e, t, n, s, i = void 0, c = void 0) {
|
|
|
697
695
|
"Content-Type": "application/json"
|
|
698
696
|
},
|
|
699
697
|
data: JSON.stringify({
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
698
|
+
data: [
|
|
699
|
+
{
|
|
700
|
+
type: "Document",
|
|
701
|
+
dataelements: {
|
|
702
|
+
title: S(n),
|
|
703
|
+
description: s,
|
|
704
|
+
policy: "Document Release"
|
|
705
|
+
},
|
|
706
|
+
relateddata: {
|
|
707
|
+
files: [
|
|
708
|
+
{
|
|
709
|
+
dataelements: {
|
|
710
|
+
title: n,
|
|
711
|
+
receipt: _
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
]
|
|
715
|
+
},
|
|
716
|
+
tempId: C
|
|
717
|
+
}
|
|
718
|
+
]
|
|
718
719
|
}),
|
|
719
720
|
type: "json",
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
721
|
+
onComplete(k) {
|
|
722
|
+
i && i(k);
|
|
723
|
+
},
|
|
724
|
+
onFailure(k) {
|
|
725
|
+
r && r(k);
|
|
726
|
+
}
|
|
723
727
|
};
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
headers `, k), c && c(w);
|
|
728
|
+
m(
|
|
729
|
+
o + "/resources/v1/modeler/documents/?SecurityContext=ctx::" + c,
|
|
730
|
+
G
|
|
731
|
+
);
|
|
732
|
+
},
|
|
733
|
+
onFailure(_) {
|
|
734
|
+
r && r(_);
|
|
735
|
+
},
|
|
736
|
+
timeout: 0
|
|
737
|
+
};
|
|
738
|
+
m(u.ticketURL, y);
|
|
736
739
|
}
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
});
|
|
740
|
+
});
|
|
741
|
+
}
|
|
740
742
|
}
|
|
741
|
-
function N(e, t = void 0, n = void 0, s = void 0, i = void 0,
|
|
743
|
+
function N(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0, o = !1) {
|
|
742
744
|
const a = `${e.space}/resources/modeler/pno/person?current=true&select=preferredcredentials&select=collabspaces`;
|
|
743
745
|
m(a, {
|
|
744
746
|
method: "GET",
|
|
745
|
-
onComplete(
|
|
746
|
-
const d = JSON.parse(
|
|
747
|
-
let p = "", l,
|
|
747
|
+
onComplete(c) {
|
|
748
|
+
const d = JSON.parse(c);
|
|
749
|
+
let p = "", l, f, u;
|
|
748
750
|
if (t) {
|
|
749
751
|
let g = d.collabspaces.find((h) => h.title === t);
|
|
750
752
|
if (g) {
|
|
751
753
|
l = t;
|
|
752
754
|
let h = g.couples;
|
|
753
755
|
h = h.filter(
|
|
754
|
-
(S,
|
|
755
|
-
(
|
|
756
|
+
(S, y, _) => y === _.findIndex(
|
|
757
|
+
(C) => C.organization.pid === S.organization.pid && C.role.pid === S.role.pid
|
|
756
758
|
)
|
|
757
759
|
), n && (Array.isArray(n) ? n.forEach((S) => {
|
|
758
|
-
|
|
759
|
-
if (S ===
|
|
760
|
-
|
|
761
|
-
else if (S ===
|
|
762
|
-
let
|
|
763
|
-
(
|
|
760
|
+
u || h.forEach((y) => {
|
|
761
|
+
if (S === y.role.name && s === y.organization.title)
|
|
762
|
+
u = S, f = s;
|
|
763
|
+
else if (S === y.role.name) {
|
|
764
|
+
let _ = h.filter(
|
|
765
|
+
(C) => C.role.name === S
|
|
764
766
|
);
|
|
765
|
-
|
|
767
|
+
_.length === 1 ? (u = _[0].role.name, f = _[0].organization.title) : r(_);
|
|
766
768
|
}
|
|
767
769
|
});
|
|
768
770
|
}) : h.forEach((S) => {
|
|
769
771
|
if (n === S.role.name && s === S.organization.title)
|
|
770
|
-
|
|
772
|
+
u = n, f = s;
|
|
771
773
|
else if (n === S.role.name) {
|
|
772
|
-
let
|
|
773
|
-
(
|
|
774
|
+
let y = h.filter(
|
|
775
|
+
(_) => _.role.name === n
|
|
774
776
|
);
|
|
775
|
-
|
|
777
|
+
y.length === 1 ? (u = y[0].role.name, f = y[0].organization.title) : r(y);
|
|
776
778
|
}
|
|
777
779
|
}));
|
|
778
780
|
}
|
|
779
781
|
}
|
|
780
|
-
l &&
|
|
782
|
+
l && f && u ? (p = u + "." + f + "." + l, i(p)) : d.preferredcredentials && o ? (p = d.preferredcredentials.role.name + "." + d.preferredcredentials.organization.title + "." + d.preferredcredentials.collabspace.title, i(p)) : r && (p = u + "." + f + "." + l, r(p));
|
|
781
783
|
},
|
|
782
|
-
onFailure(
|
|
784
|
+
onFailure(c, d) {
|
|
783
785
|
console.log("Erreur de récupération du contexte de sécurité. => ", {
|
|
784
|
-
err:
|
|
786
|
+
err: c,
|
|
785
787
|
headers: d
|
|
786
788
|
});
|
|
787
789
|
}
|
|
@@ -790,9 +792,11 @@ function N(e, t = void 0, n = void 0, s = void 0, i = void 0, c = void 0, o = !1
|
|
|
790
792
|
async function D(e, t = void 0, n = void 0) {
|
|
791
793
|
return (!e.objID || e.objID === "") && (console.warn(
|
|
792
794
|
"_3DSpace_download_doc() / Le paramètre objectId est obligatoire"
|
|
793
|
-
), n && n(
|
|
795
|
+
), n && n(
|
|
796
|
+
"_3DSpace_download_doc() / Le paramètre objectId est obligatoire"
|
|
797
|
+
)), (e.space === "" || !e.space) && (console.warn(
|
|
794
798
|
"_3DSpace_download_doc() / Le paramètre space est obligatoire"
|
|
795
|
-
), n && n("_3DSpace_download_doc() / Le paramètre space est obligatoire")), (e.token === "" || !e.token) &&
|
|
799
|
+
), n && n("_3DSpace_download_doc() / Le paramètre space est obligatoire")), (e.token === "" || !e.token) && W(
|
|
796
800
|
e,
|
|
797
801
|
(s) => {
|
|
798
802
|
e.token = s;
|
|
@@ -803,12 +807,12 @@ async function D(e, t = void 0, n = void 0) {
|
|
|
803
807
|
), new Promise((s, i) => {
|
|
804
808
|
F(
|
|
805
809
|
e,
|
|
806
|
-
(
|
|
807
|
-
e?.returnType === "blob" ? (console.log("ticketURL blob",
|
|
810
|
+
(r) => {
|
|
811
|
+
e?.returnType === "blob" ? (console.log("ticketURL blob", r), fetch(r).then((o) => o.blob()).then((o) => {
|
|
808
812
|
t && t(o);
|
|
809
813
|
}).catch((o) => {
|
|
810
814
|
n && n(o);
|
|
811
|
-
})) : m(
|
|
815
|
+
})) : m(r, {
|
|
812
816
|
onComplete(o) {
|
|
813
817
|
let a;
|
|
814
818
|
try {
|
|
@@ -818,41 +822,41 @@ async function D(e, t = void 0, n = void 0) {
|
|
|
818
822
|
}
|
|
819
823
|
t && typeof t == "function" && t(a), s(a);
|
|
820
824
|
},
|
|
821
|
-
onFailure(o, a,
|
|
825
|
+
onFailure(o, a, c) {
|
|
822
826
|
n && (console.log("error http", o), n({
|
|
823
827
|
msg: JSON.parse(o),
|
|
824
828
|
headers: a,
|
|
825
|
-
xhr:
|
|
829
|
+
xhr: c
|
|
826
830
|
}), i({
|
|
827
831
|
msg: JSON.parse(o),
|
|
828
832
|
headers: a,
|
|
829
|
-
xhr:
|
|
833
|
+
xhr: c
|
|
830
834
|
}));
|
|
831
835
|
}
|
|
832
836
|
});
|
|
833
837
|
},
|
|
834
|
-
(
|
|
835
|
-
n && n(
|
|
838
|
+
(r) => {
|
|
839
|
+
n && n(r), console.log("*_3dspace_download_doc / error file URL *", r), i(r);
|
|
836
840
|
}
|
|
837
841
|
);
|
|
838
842
|
});
|
|
839
843
|
}
|
|
840
|
-
async function
|
|
844
|
+
async function Z(e, t, n = void 0, s = void 0) {
|
|
841
845
|
let i = [];
|
|
842
846
|
if (typeof t < "u" && Array.isArray(t) && t?.length > 0) {
|
|
843
847
|
for (let a = 0; a < t.length; a += 80) {
|
|
844
|
-
const
|
|
845
|
-
i.push(
|
|
848
|
+
const c = t.slice(a, a + 80);
|
|
849
|
+
i.push(c);
|
|
846
850
|
}
|
|
847
851
|
const o = (a) => {
|
|
848
|
-
|
|
852
|
+
ee(
|
|
849
853
|
e,
|
|
850
854
|
i[a],
|
|
851
855
|
() => {
|
|
852
856
|
a++, a < i.length && o(a);
|
|
853
857
|
},
|
|
854
|
-
(
|
|
855
|
-
n && n(
|
|
858
|
+
(c) => {
|
|
859
|
+
n && n(c);
|
|
856
860
|
}
|
|
857
861
|
);
|
|
858
862
|
};
|
|
@@ -864,11 +868,11 @@ async function Q(e, t, n = void 0, s = void 0) {
|
|
|
864
868
|
"La liste d'objects dans la fonction _3DSpace_download_multidoc est vide ou non défini."
|
|
865
869
|
);
|
|
866
870
|
}
|
|
867
|
-
function
|
|
868
|
-
const
|
|
869
|
-
t.forEach((
|
|
870
|
-
|
|
871
|
-
id:
|
|
871
|
+
function ee(e, t, n = void 0, s = void 0, i = void 0) {
|
|
872
|
+
const r = [];
|
|
873
|
+
t.forEach((c) => {
|
|
874
|
+
r.push({
|
|
875
|
+
id: c
|
|
872
876
|
});
|
|
873
877
|
});
|
|
874
878
|
let o = JSON.stringify({
|
|
@@ -876,25 +880,25 @@ function Z(e, t, n = void 0, s = void 0, i = void 0) {
|
|
|
876
880
|
name: "ENO_CSRF_TOKEN",
|
|
877
881
|
value: e.token
|
|
878
882
|
},
|
|
879
|
-
data:
|
|
883
|
+
data: r
|
|
880
884
|
});
|
|
881
885
|
const a = `${e.space}/resources/v1/modeler/documents/DownloadTicket?tenant=${e.tenant}&e6w-lang=fr&e6w-timezone=-120`;
|
|
882
886
|
m(a, {
|
|
883
887
|
method: "PUT",
|
|
884
888
|
data: o,
|
|
885
889
|
type: "json",
|
|
886
|
-
onComplete(
|
|
887
|
-
const d =
|
|
888
|
-
|
|
890
|
+
onComplete(c) {
|
|
891
|
+
const d = c.data;
|
|
892
|
+
c.success === !0 && (n && n(), d.forEach((p) => {
|
|
889
893
|
try {
|
|
890
|
-
const l = p.dataelements.fileName,
|
|
891
|
-
m(
|
|
892
|
-
onComplete: (
|
|
894
|
+
const l = p.dataelements.fileName, f = p.dataelements.ticketURL;
|
|
895
|
+
m(f, {
|
|
896
|
+
onComplete: (u, g) => {
|
|
893
897
|
let h;
|
|
894
898
|
try {
|
|
895
|
-
h = JSON.parse(
|
|
899
|
+
h = JSON.parse(u);
|
|
896
900
|
} catch {
|
|
897
|
-
h =
|
|
901
|
+
h = u.blob();
|
|
898
902
|
}
|
|
899
903
|
s && s({
|
|
900
904
|
objectId: p.id,
|
|
@@ -903,8 +907,8 @@ function Z(e, t, n = void 0, s = void 0, i = void 0) {
|
|
|
903
907
|
data: h
|
|
904
908
|
});
|
|
905
909
|
},
|
|
906
|
-
onFailure: (
|
|
907
|
-
console.log("error http",
|
|
910
|
+
onFailure: (u) => {
|
|
911
|
+
console.log("error http", u);
|
|
908
912
|
}
|
|
909
913
|
});
|
|
910
914
|
} catch (l) {
|
|
@@ -912,15 +916,15 @@ function Z(e, t, n = void 0, s = void 0, i = void 0) {
|
|
|
912
916
|
}
|
|
913
917
|
}));
|
|
914
918
|
},
|
|
915
|
-
onFailure(
|
|
916
|
-
console.log(
|
|
919
|
+
onFailure(c) {
|
|
920
|
+
console.log(c), i && i(c);
|
|
917
921
|
}
|
|
918
922
|
});
|
|
919
923
|
}
|
|
920
924
|
function Pe(e, t, n = void 0, s = void 0) {
|
|
921
925
|
return new Promise((i) => {
|
|
922
926
|
if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
|
|
923
|
-
const
|
|
927
|
+
const r = `${e.space}/resources/v1/modeler/dslc/maturity/getNextStates`;
|
|
924
928
|
N(
|
|
925
929
|
e.space,
|
|
926
930
|
"ESPACE COMMUN",
|
|
@@ -940,9 +944,11 @@ function Pe(e, t, n = void 0, s = void 0) {
|
|
|
940
944
|
"Content-Type": "application/json"
|
|
941
945
|
},
|
|
942
946
|
data: JSON.stringify({
|
|
943
|
-
data: [
|
|
944
|
-
|
|
945
|
-
|
|
947
|
+
data: [
|
|
948
|
+
{
|
|
949
|
+
id: t
|
|
950
|
+
}
|
|
951
|
+
]
|
|
946
952
|
}),
|
|
947
953
|
type: "json",
|
|
948
954
|
onComplete(a) {
|
|
@@ -952,12 +958,12 @@ function Pe(e, t, n = void 0, s = void 0) {
|
|
|
952
958
|
s && s(a);
|
|
953
959
|
}
|
|
954
960
|
};
|
|
955
|
-
m(
|
|
961
|
+
m(r, o);
|
|
956
962
|
}
|
|
957
963
|
});
|
|
958
964
|
}
|
|
959
|
-
function
|
|
960
|
-
return new Promise((
|
|
965
|
+
function De(e, t, n, s = void 0, i = void 0) {
|
|
966
|
+
return new Promise((r) => {
|
|
961
967
|
if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
|
|
962
968
|
const o = `${e.space}/resources/v1/modeler/dslc/maturity/changeState`;
|
|
963
969
|
N(
|
|
@@ -965,9 +971,9 @@ function Re(e, t, n, s = void 0, i = void 0) {
|
|
|
965
971
|
"ESPACE COMMUN",
|
|
966
972
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
967
973
|
void 0,
|
|
968
|
-
(
|
|
969
|
-
(
|
|
970
|
-
console.log("onError =>",
|
|
974
|
+
(c) => e.ctx = c,
|
|
975
|
+
(c) => {
|
|
976
|
+
console.log("onError =>", c);
|
|
971
977
|
}
|
|
972
978
|
);
|
|
973
979
|
let a = {
|
|
@@ -979,27 +985,29 @@ function Re(e, t, n, s = void 0, i = void 0) {
|
|
|
979
985
|
"Content-Type": "application/json"
|
|
980
986
|
},
|
|
981
987
|
data: JSON.stringify({
|
|
982
|
-
data: [
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
988
|
+
data: [
|
|
989
|
+
{
|
|
990
|
+
id: t,
|
|
991
|
+
nextState: n
|
|
992
|
+
}
|
|
993
|
+
]
|
|
986
994
|
}),
|
|
987
995
|
type: "json",
|
|
988
|
-
onComplete(
|
|
989
|
-
s && s(
|
|
996
|
+
onComplete(c) {
|
|
997
|
+
s && s(c);
|
|
990
998
|
},
|
|
991
|
-
onFailure(
|
|
992
|
-
i && i(
|
|
999
|
+
onFailure(c) {
|
|
1000
|
+
i && i(c);
|
|
993
1001
|
}
|
|
994
1002
|
};
|
|
995
1003
|
m(o, a);
|
|
996
1004
|
}
|
|
997
1005
|
});
|
|
998
1006
|
}
|
|
999
|
-
function
|
|
1007
|
+
function Le(e, t, n = void 0, s = void 0) {
|
|
1000
1008
|
return new Promise((i) => {
|
|
1001
1009
|
if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
|
|
1002
|
-
const
|
|
1010
|
+
const r = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=0&withAttributes=0&withCopyFrom=0&tenant=${e.tenant}`;
|
|
1003
1011
|
N(
|
|
1004
1012
|
e.space,
|
|
1005
1013
|
"ESPACE COMMUN",
|
|
@@ -1019,9 +1027,11 @@ function De(e, t, n = void 0, s = void 0) {
|
|
|
1019
1027
|
"Content-Type": "application/json"
|
|
1020
1028
|
},
|
|
1021
1029
|
data: JSON.stringify({
|
|
1022
|
-
graphRequests: [
|
|
1023
|
-
|
|
1024
|
-
|
|
1030
|
+
graphRequests: [
|
|
1031
|
+
{
|
|
1032
|
+
id: t
|
|
1033
|
+
}
|
|
1034
|
+
]
|
|
1025
1035
|
}),
|
|
1026
1036
|
type: "json",
|
|
1027
1037
|
onComplete(a) {
|
|
@@ -1031,14 +1041,14 @@ function De(e, t, n = void 0, s = void 0) {
|
|
|
1031
1041
|
s && s(a);
|
|
1032
1042
|
}
|
|
1033
1043
|
};
|
|
1034
|
-
m(
|
|
1044
|
+
m(r, o);
|
|
1035
1045
|
}
|
|
1036
1046
|
});
|
|
1037
1047
|
}
|
|
1038
|
-
function
|
|
1048
|
+
function Me(e, t, n = void 0, s = void 0) {
|
|
1039
1049
|
return new Promise((i) => {
|
|
1040
1050
|
if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
|
|
1041
|
-
const
|
|
1051
|
+
const r = `${e.space}/resources/lifecycle/revise/prepare_revise_maskattributes?tenant=${e.tenant}`;
|
|
1042
1052
|
N(
|
|
1043
1053
|
e.space,
|
|
1044
1054
|
"ESPACE COMMUN",
|
|
@@ -1058,15 +1068,17 @@ function Le(e, t, n = void 0, s = void 0) {
|
|
|
1058
1068
|
"Content-Type": "application/json"
|
|
1059
1069
|
},
|
|
1060
1070
|
data: JSON.stringify({
|
|
1061
|
-
data: [
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1071
|
+
data: [
|
|
1072
|
+
{
|
|
1073
|
+
"attribute[PLMReference.V_versionComment]": null,
|
|
1074
|
+
physicalid: t,
|
|
1075
|
+
type: "Document",
|
|
1076
|
+
tenant: e.tenant,
|
|
1077
|
+
objectId: t,
|
|
1078
|
+
policy: "Document Release",
|
|
1079
|
+
availableSemantic: ["E", "LAST", "NEW", "DUP"]
|
|
1080
|
+
}
|
|
1081
|
+
]
|
|
1070
1082
|
}),
|
|
1071
1083
|
type: "json",
|
|
1072
1084
|
onComplete(a) {
|
|
@@ -1076,12 +1088,12 @@ function Le(e, t, n = void 0, s = void 0) {
|
|
|
1076
1088
|
s && s(a);
|
|
1077
1089
|
}
|
|
1078
1090
|
};
|
|
1079
|
-
m(
|
|
1091
|
+
m(r, o);
|
|
1080
1092
|
}
|
|
1081
1093
|
});
|
|
1082
1094
|
}
|
|
1083
|
-
function
|
|
1084
|
-
return new Promise((
|
|
1095
|
+
function Je(e, t, n, s = void 0, i = void 0) {
|
|
1096
|
+
return new Promise((r) => {
|
|
1085
1097
|
if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
|
|
1086
1098
|
const o = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
|
|
1087
1099
|
N(
|
|
@@ -1089,9 +1101,9 @@ function Me(e, t, n, s = void 0, i = void 0) {
|
|
|
1089
1101
|
"ESPACE COMMUN",
|
|
1090
1102
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
1091
1103
|
void 0,
|
|
1092
|
-
(
|
|
1093
|
-
(
|
|
1094
|
-
console.log("onError =>",
|
|
1104
|
+
(c) => e.ctx = c,
|
|
1105
|
+
(c) => {
|
|
1106
|
+
console.log("onError =>", c);
|
|
1095
1107
|
}
|
|
1096
1108
|
);
|
|
1097
1109
|
let a = {
|
|
@@ -1103,32 +1115,34 @@ function Me(e, t, n, s = void 0, i = void 0) {
|
|
|
1103
1115
|
"Content-Type": "application/json"
|
|
1104
1116
|
},
|
|
1105
1117
|
data: JSON.stringify({
|
|
1106
|
-
data: [
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1118
|
+
data: [
|
|
1119
|
+
{
|
|
1120
|
+
physicalid: t,
|
|
1121
|
+
proposedRevision: n,
|
|
1122
|
+
modifiedAttributes: {
|
|
1123
|
+
revision: n
|
|
1124
|
+
}
|
|
1111
1125
|
}
|
|
1112
|
-
|
|
1126
|
+
],
|
|
1113
1127
|
folderid: null,
|
|
1114
1128
|
notificationTimeout: 600
|
|
1115
1129
|
}),
|
|
1116
1130
|
type: "json",
|
|
1117
|
-
onComplete(
|
|
1118
|
-
s && s(
|
|
1131
|
+
onComplete(c) {
|
|
1132
|
+
s && s(c);
|
|
1119
1133
|
},
|
|
1120
|
-
onFailure(
|
|
1121
|
-
i && i(
|
|
1134
|
+
onFailure(c) {
|
|
1135
|
+
i && i(c);
|
|
1122
1136
|
}
|
|
1123
1137
|
};
|
|
1124
1138
|
m(o, a);
|
|
1125
1139
|
}
|
|
1126
1140
|
});
|
|
1127
1141
|
}
|
|
1128
|
-
function
|
|
1142
|
+
function Ge(e, t, n, s, i = void 0, r = void 0) {
|
|
1129
1143
|
return new Promise((o) => {
|
|
1130
1144
|
const a = `${e.space}/resources/v1/modeler/dsbks/dsbks:Bookmark`;
|
|
1131
|
-
let
|
|
1145
|
+
let c = {
|
|
1132
1146
|
attributes: {
|
|
1133
1147
|
title: n,
|
|
1134
1148
|
description: s,
|
|
@@ -1137,7 +1151,7 @@ function Je(e, t, n, s, i = void 0, c = void 0) {
|
|
|
1137
1151
|
}, d = {
|
|
1138
1152
|
items: []
|
|
1139
1153
|
};
|
|
1140
|
-
t && (d.parentId = t), d.items.push(
|
|
1154
|
+
t && (d.parentId = t), d.items.push(c);
|
|
1141
1155
|
let p = {
|
|
1142
1156
|
method: "POST",
|
|
1143
1157
|
headers: {
|
|
@@ -1152,35 +1166,37 @@ function Je(e, t, n, s, i = void 0, c = void 0) {
|
|
|
1152
1166
|
i && i(l);
|
|
1153
1167
|
},
|
|
1154
1168
|
onFailure(l) {
|
|
1155
|
-
|
|
1169
|
+
r && r(l);
|
|
1156
1170
|
}
|
|
1157
1171
|
};
|
|
1158
1172
|
m(a, p);
|
|
1159
1173
|
});
|
|
1160
1174
|
}
|
|
1161
|
-
function
|
|
1175
|
+
function Ee(e, t, n, s, i = void 0, r = void 0) {
|
|
1162
1176
|
return console.log("credentials", e), new Promise((o) => {
|
|
1163
1177
|
`${e.space}`, JSON.stringify({
|
|
1164
1178
|
csrf: {
|
|
1165
1179
|
name: "ENO_CSRF_TOKEN",
|
|
1166
1180
|
value: e.token
|
|
1167
1181
|
},
|
|
1168
|
-
data: [
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1182
|
+
data: [
|
|
1183
|
+
{
|
|
1184
|
+
type: "Workspace",
|
|
1185
|
+
cestamp: "businessobject",
|
|
1186
|
+
relId: t,
|
|
1187
|
+
id: t,
|
|
1188
|
+
dataelements: {
|
|
1189
|
+
personList: n,
|
|
1190
|
+
eventsList: s
|
|
1191
|
+
},
|
|
1192
|
+
tenant: e.tenant
|
|
1193
|
+
}
|
|
1194
|
+
]
|
|
1179
1195
|
});
|
|
1180
1196
|
});
|
|
1181
1197
|
}
|
|
1182
1198
|
//!SECTION
|
|
1183
|
-
function
|
|
1199
|
+
function Ke(e, t = void 0, n = void 0) {
|
|
1184
1200
|
const s = {
|
|
1185
1201
|
base: `${e.space}`,
|
|
1186
1202
|
uri: "/resources/bps/cspaces",
|
|
@@ -1192,57 +1208,57 @@ function Ee(e, t = void 0, n = void 0) {
|
|
|
1192
1208
|
Accept: "application/json,text/javascript,*/*",
|
|
1193
1209
|
"Content-Type": "application/ds-json"
|
|
1194
1210
|
},
|
|
1195
|
-
onComplete(
|
|
1196
|
-
const a = JSON.parse(
|
|
1211
|
+
onComplete(r, o) {
|
|
1212
|
+
const a = JSON.parse(r);
|
|
1197
1213
|
t && t(a, o);
|
|
1198
1214
|
},
|
|
1199
|
-
onFailure(
|
|
1200
|
-
n && n({ response:
|
|
1215
|
+
onFailure(r, o, a) {
|
|
1216
|
+
n && n({ response: r, headers: o, xhr: a });
|
|
1201
1217
|
}
|
|
1202
1218
|
});
|
|
1203
1219
|
}
|
|
1204
|
-
function
|
|
1220
|
+
function Ve(e, t, n, s) {
|
|
1205
1221
|
F(
|
|
1206
1222
|
e.space,
|
|
1207
1223
|
t,
|
|
1208
1224
|
(i) => {
|
|
1209
1225
|
m(i, {
|
|
1210
1226
|
header: { ENO_CSRF_TOKEN: e.token },
|
|
1211
|
-
onComplete: (
|
|
1212
|
-
n && n(
|
|
1227
|
+
onComplete: (r) => {
|
|
1228
|
+
n && n(r);
|
|
1213
1229
|
},
|
|
1214
|
-
onFailure: (
|
|
1215
|
-
console.log("error http",
|
|
1230
|
+
onFailure: (r) => {
|
|
1231
|
+
console.log("error http", r), s && s(r);
|
|
1216
1232
|
}
|
|
1217
1233
|
});
|
|
1218
1234
|
}
|
|
1219
1235
|
);
|
|
1220
1236
|
}
|
|
1221
|
-
async function
|
|
1237
|
+
async function Be(e, t, n = void 0, s = void 0) {
|
|
1222
1238
|
return new Promise((i) => {
|
|
1223
|
-
F(e, t, (
|
|
1224
|
-
m(
|
|
1225
|
-
onComplete: (o, a,
|
|
1226
|
-
onFailure: (o, a,
|
|
1227
|
-
s && s(o, a,
|
|
1239
|
+
F(e, t, (r) => {
|
|
1240
|
+
m(r, {
|
|
1241
|
+
onComplete: (o, a, c) => (i(JSON.parse(o)), n && n(JSON.parse(o), a, c), i),
|
|
1242
|
+
onFailure: (o, a, c) => {
|
|
1243
|
+
s && s(o, a, c), console.log(o, a?.errormsg);
|
|
1228
1244
|
}
|
|
1229
1245
|
});
|
|
1230
1246
|
});
|
|
1231
1247
|
});
|
|
1232
1248
|
}
|
|
1233
|
-
function
|
|
1234
|
-
const
|
|
1249
|
+
function We(e, t, n, s = void 0, i = void 0) {
|
|
1250
|
+
const r = new Blob([JSON.stringify(t)], { type: "text/plain" });
|
|
1235
1251
|
A(
|
|
1236
1252
|
e,
|
|
1237
1253
|
n,
|
|
1238
1254
|
(o) => {
|
|
1239
|
-
const a = o.data[0].relateddata.files[0].id,
|
|
1240
|
-
|
|
1255
|
+
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;
|
|
1256
|
+
q(
|
|
1241
1257
|
e,
|
|
1242
1258
|
n,
|
|
1243
1259
|
a,
|
|
1244
|
-
c,
|
|
1245
1260
|
r,
|
|
1261
|
+
c,
|
|
1246
1262
|
(d) => {
|
|
1247
1263
|
s && s(d);
|
|
1248
1264
|
},
|
|
@@ -1255,7 +1271,7 @@ function Be(e, t, n, s = void 0, i = void 0) {
|
|
|
1255
1271
|
}
|
|
1256
1272
|
let L, M;
|
|
1257
1273
|
const j = [];
|
|
1258
|
-
async function
|
|
1274
|
+
async function Xe(e, t = void 0, n = void 0) {
|
|
1259
1275
|
e.objID && e.objID !== "" ? A(
|
|
1260
1276
|
e,
|
|
1261
1277
|
(s) => {
|
|
@@ -1274,7 +1290,7 @@ async function We(e, t = void 0, n = void 0) {
|
|
|
1274
1290
|
}
|
|
1275
1291
|
);
|
|
1276
1292
|
}
|
|
1277
|
-
async function
|
|
1293
|
+
async function Ye(e, t = void 0, n = void 0) {
|
|
1278
1294
|
console.log("getDatasByTenant (getDocuments)", e), await D(
|
|
1279
1295
|
e,
|
|
1280
1296
|
(s) => {
|
|
@@ -1286,36 +1302,36 @@ async function Xe(e, t = void 0, n = void 0) {
|
|
|
1286
1302
|
}
|
|
1287
1303
|
);
|
|
1288
1304
|
}
|
|
1289
|
-
function
|
|
1305
|
+
function He(e, t = void 0, n = void 0) {
|
|
1290
1306
|
const s = [];
|
|
1291
1307
|
if (!e.objIds && !Array.isArray(e.objIds) && e.objIds.length === 0) {
|
|
1292
1308
|
console.warn("la liste est vide ou n'est pas un tableau");
|
|
1293
1309
|
return;
|
|
1294
1310
|
}
|
|
1295
|
-
e.objIds.forEach((i,
|
|
1311
|
+
e.objIds.forEach((i, r) => {
|
|
1296
1312
|
D(
|
|
1297
1313
|
e,
|
|
1298
1314
|
i.objID,
|
|
1299
1315
|
(o) => {
|
|
1300
|
-
s.push({ [i.name]: o }), i.name === "dbProjets" && (L = o.affaires.map((a) => a.objectID),
|
|
1316
|
+
s.push({ [i.name]: o }), i.name === "dbProjets" && (L = o.affaires.map((a) => a.objectID), te(e, M)), r === e.objIds.length - 1 && (t && t(s), delete e.objIds, delete e.datas);
|
|
1301
1317
|
}
|
|
1302
1318
|
);
|
|
1303
1319
|
});
|
|
1304
1320
|
}
|
|
1305
|
-
function
|
|
1306
|
-
|
|
1321
|
+
function te(e, t, n = void 0, s = void 0) {
|
|
1322
|
+
Z(
|
|
1307
1323
|
e,
|
|
1308
1324
|
L,
|
|
1309
1325
|
(i) => {
|
|
1310
|
-
const
|
|
1311
|
-
|
|
1326
|
+
const r = [...t];
|
|
1327
|
+
r.find((o) => o.objectID === i.objectId).data = i.data, M = r, j.push(i.data), n && n(j);
|
|
1312
1328
|
},
|
|
1313
1329
|
(i) => {
|
|
1314
1330
|
s && (s(i), console.log(i));
|
|
1315
1331
|
}
|
|
1316
1332
|
);
|
|
1317
1333
|
}
|
|
1318
|
-
const
|
|
1334
|
+
const ne = "FA35FB9B177A280065800EA0000F599C", se = [
|
|
1319
1335
|
"swym",
|
|
1320
1336
|
"3dspace",
|
|
1321
1337
|
"drive",
|
|
@@ -1329,17 +1345,17 @@ const te = "FA35FB9B177A280065800EA0000F599C", ne = [
|
|
|
1329
1345
|
where: "ds6w:where",
|
|
1330
1346
|
who: "ds6w:who",
|
|
1331
1347
|
why: "ds6w:why"
|
|
1332
|
-
},
|
|
1333
|
-
objId:
|
|
1348
|
+
}, ie = {
|
|
1349
|
+
objId: ne,
|
|
1334
1350
|
pred: "who",
|
|
1335
1351
|
order_by: "desc",
|
|
1336
1352
|
tag: "testTag"
|
|
1337
1353
|
};
|
|
1338
|
-
function
|
|
1339
|
-
const { space: i, tenant:
|
|
1354
|
+
function ze(e, t, n = void 0, s = void 0) {
|
|
1355
|
+
const { space: i, tenant: r } = e, { objId: o, pred: a, tag: c } = t, d = {
|
|
1340
1356
|
uri: "/resources/6w/tags",
|
|
1341
1357
|
otpCTX: "SecurityContext=preferred",
|
|
1342
|
-
optTenant: `tenant=${
|
|
1358
|
+
optTenant: `tenant=${r}`
|
|
1343
1359
|
}, p = `${i}${d.uri}?${d.otpCTX}&${d.optTenant}`, l = {
|
|
1344
1360
|
tag: [
|
|
1345
1361
|
{
|
|
@@ -1350,7 +1366,7 @@ function He(e, t, n = void 0, s = void 0) {
|
|
|
1350
1366
|
],
|
|
1351
1367
|
predicate: J[a],
|
|
1352
1368
|
object: {
|
|
1353
|
-
literal:
|
|
1369
|
+
literal: c
|
|
1354
1370
|
}
|
|
1355
1371
|
}
|
|
1356
1372
|
]
|
|
@@ -1362,23 +1378,23 @@ function He(e, t, n = void 0, s = void 0) {
|
|
|
1362
1378
|
Accept: "application/json"
|
|
1363
1379
|
},
|
|
1364
1380
|
data: JSON.stringify(l),
|
|
1365
|
-
onComplete(
|
|
1366
|
-
JSON.parse(
|
|
1367
|
-
const
|
|
1381
|
+
onComplete(f) {
|
|
1382
|
+
JSON.parse(f);
|
|
1383
|
+
const u = {};
|
|
1368
1384
|
setTimeout(() => {
|
|
1369
|
-
|
|
1385
|
+
z(
|
|
1370
1386
|
e,
|
|
1371
1387
|
o,
|
|
1372
1388
|
(g) => {
|
|
1373
|
-
const h = g.data[0].dataelements.title, S = g.data[0].dataelements.fileExtension !== void 0 ? g.data[0].dataelements.fileExtension : "",
|
|
1374
|
-
|
|
1389
|
+
const h = g.data[0].dataelements.title, S = g.data[0].dataelements.fileExtension !== void 0 ? g.data[0].dataelements.fileExtension : "", y = g.data[0].relateddata.ownerInfo[0].dataelements.name;
|
|
1390
|
+
u.name = h, u.ext = S, u.createBy = y, t.info = { ...u }, ae(
|
|
1375
1391
|
e,
|
|
1376
1392
|
t,
|
|
1377
|
-
(
|
|
1378
|
-
n && n(
|
|
1393
|
+
(_) => {
|
|
1394
|
+
n && n(_);
|
|
1379
1395
|
},
|
|
1380
|
-
(
|
|
1381
|
-
s && s(
|
|
1396
|
+
(_) => {
|
|
1397
|
+
s && s(_);
|
|
1382
1398
|
}
|
|
1383
1399
|
);
|
|
1384
1400
|
},
|
|
@@ -1389,25 +1405,25 @@ function He(e, t, n = void 0, s = void 0) {
|
|
|
1389
1405
|
);
|
|
1390
1406
|
}, 2e3);
|
|
1391
1407
|
},
|
|
1392
|
-
onFailure(
|
|
1393
|
-
const g =
|
|
1394
|
-
g.msg =
|
|
1408
|
+
onFailure(f, u) {
|
|
1409
|
+
const g = f;
|
|
1410
|
+
g.msg = u.errormsg, g.errCode = u.errorcode, console.log("❌ sendDirectMessage => ", g), s && s(g);
|
|
1395
1411
|
}
|
|
1396
1412
|
});
|
|
1397
1413
|
}
|
|
1398
|
-
function
|
|
1414
|
+
function ae(e, t, n = void 0, s = void 0) {
|
|
1399
1415
|
console.log("obj ", t);
|
|
1400
|
-
const i = t.info.name,
|
|
1416
|
+
const i = t.info.name, r = {
|
|
1401
1417
|
baseUrl: `https://${e.tenant.toLowerCase()}-eu1-fedsearch.3dexperience.3ds.com`,
|
|
1402
1418
|
uri: "/federated/search"
|
|
1403
|
-
}, o = `${
|
|
1419
|
+
}, o = `${r.baseUrl}${r.uri}`, a = {
|
|
1404
1420
|
"Content-Type": "application/json",
|
|
1405
1421
|
Accept: "application/json,text/javascript,*/*"
|
|
1406
|
-
},
|
|
1422
|
+
}, c = P(), d = {
|
|
1407
1423
|
with_indexing_date: !0,
|
|
1408
1424
|
with_synthesis: !0,
|
|
1409
1425
|
with_nls: !1,
|
|
1410
|
-
label: `3DSearch-${e.currentUser.username}-AjoutDeTagBeam-${
|
|
1426
|
+
label: `3DSearch-${e.currentUser.username}-AjoutDeTagBeam-${c}`,
|
|
1411
1427
|
locale: "fr",
|
|
1412
1428
|
select_predicate: [
|
|
1413
1429
|
"ds6w:label",
|
|
@@ -1445,7 +1461,7 @@ function ie(e, t, n = void 0, s = void 0) {
|
|
|
1445
1461
|
}
|
|
1446
1462
|
},
|
|
1447
1463
|
select_exclude_synthesis: ["ds6w:what/ds6w:topic"],
|
|
1448
|
-
order_by:
|
|
1464
|
+
order_by: ie.order_by,
|
|
1449
1465
|
order_field: "relevance",
|
|
1450
1466
|
select_snippets: [
|
|
1451
1467
|
"ds6w:snippet",
|
|
@@ -1456,7 +1472,7 @@ function ie(e, t, n = void 0, s = void 0) {
|
|
|
1456
1472
|
],
|
|
1457
1473
|
nresults: 40,
|
|
1458
1474
|
start: "0",
|
|
1459
|
-
source:
|
|
1475
|
+
source: se,
|
|
1460
1476
|
tenant: e.tenant,
|
|
1461
1477
|
login: {
|
|
1462
1478
|
"3dspace": {
|
|
@@ -1473,17 +1489,17 @@ function ie(e, t, n = void 0, s = void 0) {
|
|
|
1473
1489
|
n(l);
|
|
1474
1490
|
},
|
|
1475
1491
|
onFailure(p, l) {
|
|
1476
|
-
const
|
|
1477
|
-
|
|
1492
|
+
const f = p;
|
|
1493
|
+
f.msg = l.errormsg, f.errCode = l.errorcode, console.log("❌ sendDirectMessage => ", f), s && s(f), console.log("Erreur de recuperation d'id du doc et des tags", p);
|
|
1478
1494
|
}
|
|
1479
1495
|
});
|
|
1480
1496
|
}
|
|
1481
|
-
function
|
|
1482
|
-
const { objId: i, pred:
|
|
1497
|
+
function qe(e, t, n = void 0, s = void 0) {
|
|
1498
|
+
const { objId: i, pred: r, tag: o } = t, a = {
|
|
1483
1499
|
uri: "/resources/6w/tags",
|
|
1484
1500
|
otpCTX: "SecurityContext=preferred",
|
|
1485
1501
|
optTenant: `tenant=${e.tenant}`
|
|
1486
|
-
},
|
|
1502
|
+
}, c = `${e.space}${a.uri}?${a.otpCTX}&${a.optTenant}`, d = {
|
|
1487
1503
|
tag: [
|
|
1488
1504
|
{
|
|
1489
1505
|
subject: [
|
|
@@ -1491,14 +1507,14 @@ function ze(e, t, n = void 0, s = void 0) {
|
|
|
1491
1507
|
uri: `pid://${i}`
|
|
1492
1508
|
}
|
|
1493
1509
|
],
|
|
1494
|
-
predicate: J[
|
|
1510
|
+
predicate: J[r],
|
|
1495
1511
|
object: {
|
|
1496
1512
|
literal: o
|
|
1497
1513
|
}
|
|
1498
1514
|
}
|
|
1499
1515
|
]
|
|
1500
1516
|
};
|
|
1501
|
-
m(
|
|
1517
|
+
m(c, {
|
|
1502
1518
|
method: "DELETE",
|
|
1503
1519
|
data: JSON.stringify(d),
|
|
1504
1520
|
headers: {
|
|
@@ -1509,25 +1525,25 @@ function ze(e, t, n = void 0, s = void 0) {
|
|
|
1509
1525
|
n && n(p);
|
|
1510
1526
|
},
|
|
1511
1527
|
onFailure(p, l) {
|
|
1512
|
-
const
|
|
1513
|
-
|
|
1528
|
+
const f = p;
|
|
1529
|
+
f.msg = l.errormsg, f.errCode = l.errorcode, console.log("❌ sendDirectMessage => ", f), s && s(f);
|
|
1514
1530
|
}
|
|
1515
1531
|
});
|
|
1516
1532
|
}
|
|
1517
|
-
function
|
|
1533
|
+
function Qe(e, t = "", n = void 0, s = void 0) {
|
|
1518
1534
|
const { space: i } = e;
|
|
1519
1535
|
if (t === "")
|
|
1520
1536
|
return;
|
|
1521
|
-
const
|
|
1537
|
+
const r = {
|
|
1522
1538
|
uri: "/resources/v1/modeler/documents"
|
|
1523
1539
|
}, o = {
|
|
1524
1540
|
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
|
|
1525
1541
|
Accept: "application/json,text/javascript,*/*"
|
|
1526
|
-
}, a = `${i}${
|
|
1542
|
+
}, 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}`;
|
|
1527
1543
|
m(a, {
|
|
1528
1544
|
method: "POST",
|
|
1529
1545
|
headers: o,
|
|
1530
|
-
data:
|
|
1546
|
+
data: c,
|
|
1531
1547
|
onComplete(d) {
|
|
1532
1548
|
n && n(JSON.parse(d));
|
|
1533
1549
|
},
|
|
@@ -1537,10 +1553,10 @@ function qe(e, t = "", n = void 0, s = void 0) {
|
|
|
1537
1553
|
}
|
|
1538
1554
|
});
|
|
1539
1555
|
}
|
|
1540
|
-
async function
|
|
1556
|
+
async function w(e, t = void 0, n = void 0) {
|
|
1541
1557
|
const s = e.space + "/api/index/tk";
|
|
1542
1558
|
return m(s, {
|
|
1543
|
-
onComplete(i,
|
|
1559
|
+
onComplete(i, r, o) {
|
|
1544
1560
|
const a = JSON.parse(i);
|
|
1545
1561
|
if (t)
|
|
1546
1562
|
return t(a), e.token = a?.result?.ServerToken;
|
|
@@ -1550,7 +1566,7 @@ async function C(e, t = void 0, n = void 0) {
|
|
|
1550
1566
|
}
|
|
1551
1567
|
});
|
|
1552
1568
|
}
|
|
1553
|
-
function
|
|
1569
|
+
function Ze(e, t = void 0, n = void 0) {
|
|
1554
1570
|
const s = `${e.space}/api/exalead/whatsnew`, i = {
|
|
1555
1571
|
params: {
|
|
1556
1572
|
community_id: null,
|
|
@@ -1561,11 +1577,11 @@ function Qe(e, t = void 0, n = void 0) {
|
|
|
1561
1577
|
start: 0
|
|
1562
1578
|
}
|
|
1563
1579
|
};
|
|
1564
|
-
|
|
1580
|
+
w(e, (r) => {
|
|
1565
1581
|
m(s, {
|
|
1566
1582
|
method: "POST",
|
|
1567
1583
|
headers: {
|
|
1568
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1584
|
+
"X-DS-SWYM-CSRFTOKEN": r.result.ServerToken,
|
|
1569
1585
|
"Content-type": "application/json;charset=UTF-8",
|
|
1570
1586
|
Accept: "application/json"
|
|
1571
1587
|
},
|
|
@@ -1580,7 +1596,7 @@ function Qe(e, t = void 0, n = void 0) {
|
|
|
1580
1596
|
});
|
|
1581
1597
|
});
|
|
1582
1598
|
}
|
|
1583
|
-
function
|
|
1599
|
+
function et(e, t = void 0, n = void 0) {
|
|
1584
1600
|
const s = `${e.space}/api/Recommendation/getpeoplefamiliartocurrentuser`, i = {
|
|
1585
1601
|
params: {
|
|
1586
1602
|
idsToFilterArr: [],
|
|
@@ -1590,19 +1606,19 @@ function Ze(e, t = void 0, n = void 0) {
|
|
|
1590
1606
|
maxNbOfCommonElements: "5"
|
|
1591
1607
|
}
|
|
1592
1608
|
};
|
|
1593
|
-
|
|
1609
|
+
w(e, (r) => {
|
|
1594
1610
|
m(s, {
|
|
1595
1611
|
method: "POST",
|
|
1596
1612
|
headers: {
|
|
1597
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1613
|
+
"X-DS-SWYM-CSRFTOKEN": r.result.ServerToken,
|
|
1598
1614
|
"Content-type": "application/json;charset=UTF-8",
|
|
1599
1615
|
Accept: "application/json"
|
|
1600
1616
|
},
|
|
1601
1617
|
data: JSON.stringify(i),
|
|
1602
1618
|
type: "json",
|
|
1603
1619
|
onComplete(o, a) {
|
|
1604
|
-
const
|
|
1605
|
-
t && t(
|
|
1620
|
+
const c = o.result.hits.map((d) => ({ login: d.login, fullName: d.name }));
|
|
1621
|
+
t && t(c, o);
|
|
1606
1622
|
},
|
|
1607
1623
|
onFailure(o, a) {
|
|
1608
1624
|
n && n(o, a);
|
|
@@ -1610,57 +1626,57 @@ function Ze(e, t = void 0, n = void 0) {
|
|
|
1610
1626
|
});
|
|
1611
1627
|
});
|
|
1612
1628
|
}
|
|
1613
|
-
function
|
|
1629
|
+
function tt(e, t = void 0, n = void 0) {
|
|
1614
1630
|
const s = {
|
|
1615
1631
|
base: e.space,
|
|
1616
1632
|
uri: "/api/community/listmycommunities",
|
|
1617
1633
|
limit: `/limit/${e.limit ? e.limit : 128}`,
|
|
1618
1634
|
page: `/page/${e.page ? e.page : "1"}`
|
|
1619
|
-
}, i = `${s.base}${s.uri}${s.limit}${s.page}`,
|
|
1620
|
-
|
|
1635
|
+
}, i = `${s.base}${s.uri}${s.limit}${s.page}`, r = [];
|
|
1636
|
+
w(e, (o) => {
|
|
1621
1637
|
m(i, {
|
|
1622
1638
|
method: "GET",
|
|
1623
1639
|
headers: {
|
|
1624
1640
|
"X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
|
|
1625
1641
|
},
|
|
1626
|
-
onComplete(a,
|
|
1642
|
+
onComplete(a, c, d) {
|
|
1627
1643
|
const l = JSON.parse(a).result;
|
|
1628
|
-
let
|
|
1629
|
-
l.forEach((
|
|
1644
|
+
let f = 0;
|
|
1645
|
+
l.forEach((u) => {
|
|
1630
1646
|
const g = {
|
|
1631
|
-
description:
|
|
1632
|
-
id:
|
|
1633
|
-
title:
|
|
1634
|
-
owner:
|
|
1635
|
-
role:
|
|
1636
|
-
access:
|
|
1647
|
+
description: u.description,
|
|
1648
|
+
id: u.id,
|
|
1649
|
+
title: u.title,
|
|
1650
|
+
owner: u.owner,
|
|
1651
|
+
role: u.role,
|
|
1652
|
+
access: u.access
|
|
1637
1653
|
};
|
|
1638
|
-
|
|
1654
|
+
oe(
|
|
1639
1655
|
e,
|
|
1640
|
-
|
|
1656
|
+
u.id,
|
|
1641
1657
|
(h) => {
|
|
1642
|
-
|
|
1658
|
+
f++, g.members = h, r.push(g), f === l.length && t && t(r);
|
|
1643
1659
|
},
|
|
1644
1660
|
(h) => n(h)
|
|
1645
1661
|
);
|
|
1646
1662
|
});
|
|
1647
1663
|
},
|
|
1648
|
-
onFailure(a,
|
|
1664
|
+
onFailure(a, c) {
|
|
1649
1665
|
const d = a;
|
|
1650
|
-
d.status =
|
|
1666
|
+
d.status = c.status, d.response = c.errormsg, n && n(d);
|
|
1651
1667
|
}
|
|
1652
1668
|
});
|
|
1653
1669
|
});
|
|
1654
1670
|
}
|
|
1655
|
-
function
|
|
1656
|
-
const i = `${e.space}/api/community/listmembers`,
|
|
1671
|
+
function oe(e, t, n, s) {
|
|
1672
|
+
const i = `${e.space}/api/community/listmembers`, r = {
|
|
1657
1673
|
params: {
|
|
1658
1674
|
page: e.page ? e.page : 1,
|
|
1659
1675
|
limit: e.limit ? e.limit : 50,
|
|
1660
1676
|
community_id: t
|
|
1661
1677
|
}
|
|
1662
1678
|
};
|
|
1663
|
-
|
|
1679
|
+
w(e, (o) => {
|
|
1664
1680
|
m(i, {
|
|
1665
1681
|
method: "POST",
|
|
1666
1682
|
headers: {
|
|
@@ -1668,63 +1684,63 @@ function ae(e, t, n, s) {
|
|
|
1668
1684
|
Accept: "application/json",
|
|
1669
1685
|
"X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
|
|
1670
1686
|
},
|
|
1671
|
-
data: JSON.stringify(
|
|
1687
|
+
data: JSON.stringify(r),
|
|
1672
1688
|
type: "json",
|
|
1673
|
-
onComplete(a,
|
|
1689
|
+
onComplete(a, c, d) {
|
|
1674
1690
|
n && n(a);
|
|
1675
1691
|
},
|
|
1676
|
-
onFailure(a,
|
|
1692
|
+
onFailure(a, c) {
|
|
1677
1693
|
const d = a;
|
|
1678
|
-
d.status =
|
|
1694
|
+
d.status = c.status, d.response = c.errormsg, s && s(d);
|
|
1679
1695
|
}
|
|
1680
1696
|
});
|
|
1681
1697
|
});
|
|
1682
1698
|
}
|
|
1683
|
-
function
|
|
1699
|
+
function nt(e, t = void 0, n = void 0) {
|
|
1684
1700
|
const s = "YXdA5x4DSUKtlAi2wmnyTA";
|
|
1685
1701
|
e.commu_id || (e.commu_id = s);
|
|
1686
1702
|
const i = `${e.space}/api/v2/communities/${e.commu_id}/ideas/statuses`;
|
|
1687
|
-
|
|
1703
|
+
w(e, (r) => {
|
|
1688
1704
|
m(i, {
|
|
1689
1705
|
method: "GET",
|
|
1690
1706
|
headers: {
|
|
1691
1707
|
"Content-type": "application/json;charset=UTF-8",
|
|
1692
1708
|
Accept: "application/json",
|
|
1693
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1709
|
+
"X-DS-SWYM-CSRFTOKEN": r.result.ServerToken
|
|
1694
1710
|
},
|
|
1695
1711
|
onComplete(o) {
|
|
1696
1712
|
const a = JSON.parse(o);
|
|
1697
1713
|
t && t(a);
|
|
1698
1714
|
},
|
|
1699
1715
|
onFailure(o, a) {
|
|
1700
|
-
const
|
|
1701
|
-
|
|
1716
|
+
const c = o;
|
|
1717
|
+
c.status = a.status, c.response = a.errormsg, n && n(c);
|
|
1702
1718
|
}
|
|
1703
1719
|
});
|
|
1704
1720
|
});
|
|
1705
1721
|
}
|
|
1706
|
-
function
|
|
1707
|
-
const { listAllContacts: i, currentUser:
|
|
1722
|
+
function st(e, t, n = void 0, s = void 0) {
|
|
1723
|
+
const { listAllContacts: i, currentUser: r } = e;
|
|
1708
1724
|
console.log("__listAllContacts", i.hits);
|
|
1709
1725
|
const o = `${e.space}/api/directmessages`, a = {
|
|
1710
|
-
users: [
|
|
1711
|
-
},
|
|
1726
|
+
users: [r.login].concat(t.receipt)
|
|
1727
|
+
}, c = {
|
|
1712
1728
|
id_msg: "",
|
|
1713
1729
|
senderId: e.currentUser.login,
|
|
1714
1730
|
senderName: `${e.currentUser.first_name} ${e.currentUser.last_name}`,
|
|
1715
|
-
msg:
|
|
1731
|
+
msg: ce(t.msg)
|
|
1716
1732
|
};
|
|
1717
1733
|
let d = !1;
|
|
1718
|
-
|
|
1734
|
+
re(
|
|
1719
1735
|
a.users,
|
|
1720
1736
|
(p) => {
|
|
1721
|
-
p !== void 0 && (
|
|
1737
|
+
p !== void 0 && (c.id_msg = p.id, d = !0, x(e, c));
|
|
1722
1738
|
},
|
|
1723
1739
|
(p) => {
|
|
1724
|
-
d = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", p), s && s(p),
|
|
1740
|
+
d = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", p), s && s(p), c.id_msg = "";
|
|
1725
1741
|
}
|
|
1726
1742
|
), d === !1 && setTimeout(() => {
|
|
1727
|
-
d === !1 &&
|
|
1743
|
+
d === !1 && w(e, (p) => {
|
|
1728
1744
|
m(o, {
|
|
1729
1745
|
method: "POST",
|
|
1730
1746
|
headers: {
|
|
@@ -1734,37 +1750,37 @@ function nt(e, t, n = void 0, s = void 0) {
|
|
|
1734
1750
|
},
|
|
1735
1751
|
data: JSON.stringify(a),
|
|
1736
1752
|
type: "json",
|
|
1737
|
-
onComplete(l,
|
|
1753
|
+
onComplete(l, f, u) {
|
|
1738
1754
|
const g = l;
|
|
1739
|
-
g.reponse = JSON.parse(
|
|
1755
|
+
g.reponse = JSON.parse(u.response), g.status = u.status, n && n(g), c.id_msg = g.result.id, x(e, c);
|
|
1740
1756
|
},
|
|
1741
|
-
onFailure(l,
|
|
1757
|
+
onFailure(l, f, u) {
|
|
1742
1758
|
const g = l;
|
|
1743
|
-
g.msg =
|
|
1759
|
+
g.msg = f.errormsg, g.status = f.status, s && s(g);
|
|
1744
1760
|
}
|
|
1745
1761
|
});
|
|
1746
1762
|
});
|
|
1747
1763
|
}, 500);
|
|
1748
1764
|
}
|
|
1749
|
-
function
|
|
1765
|
+
function re(e, t, n, s) {
|
|
1750
1766
|
const i = `${e.space}/api/directmessages/lite?with_favorites=false`;
|
|
1751
|
-
|
|
1767
|
+
w(e, (r) => {
|
|
1752
1768
|
m(i, {
|
|
1753
1769
|
method: "GET",
|
|
1754
1770
|
headers: {
|
|
1755
1771
|
Accept: "application/json,text/javascript,*/*",
|
|
1756
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1772
|
+
"X-DS-SWYM-CSRFTOKEN": r.result.ServerToken
|
|
1757
1773
|
},
|
|
1758
1774
|
onComplete(o) {
|
|
1759
|
-
const a = JSON.parse(o),
|
|
1775
|
+
const a = JSON.parse(o), c = [];
|
|
1760
1776
|
a.result.forEach((l) => {
|
|
1761
|
-
l.users = l.users.sort((
|
|
1777
|
+
l.users = l.users.sort((f, u) => f.login.localeCompare(u.login)), l.users.length === t.length && c.push(l);
|
|
1762
1778
|
});
|
|
1763
|
-
const d = t.sort(), p =
|
|
1764
|
-
const
|
|
1765
|
-
return l.users.forEach((
|
|
1766
|
-
|
|
1767
|
-
}), JSON.stringify(
|
|
1779
|
+
const d = t.sort(), p = c.find((l) => {
|
|
1780
|
+
const f = [];
|
|
1781
|
+
return l.users.forEach((u) => {
|
|
1782
|
+
f.push(u.login);
|
|
1783
|
+
}), JSON.stringify(f) === JSON.stringify(d);
|
|
1768
1784
|
});
|
|
1769
1785
|
n && p !== void 0 ? n(p) : (s || p === void 0) && s(p);
|
|
1770
1786
|
},
|
|
@@ -1781,7 +1797,7 @@ function x(e, t, n = void 0, s = void 0) {
|
|
|
1781
1797
|
uri: "/api/community",
|
|
1782
1798
|
id_msg: `${t.id_msg}`,
|
|
1783
1799
|
endUri: "/instantmessages"
|
|
1784
|
-
},
|
|
1800
|
+
}, r = `${i.base}${i.uri}/${i.id_msg}${i.endUri}`, o = {
|
|
1785
1801
|
author: { login: t.senderId, displayName: t.senderName },
|
|
1786
1802
|
accessState: null,
|
|
1787
1803
|
commentUri: null,
|
|
@@ -1791,8 +1807,8 @@ function x(e, t, n = void 0, s = void 0) {
|
|
|
1791
1807
|
parentCommentUri: null,
|
|
1792
1808
|
richMessage: t.msg
|
|
1793
1809
|
};
|
|
1794
|
-
console.log("_3dSwym_sendDirectMessageData url ",
|
|
1795
|
-
m(
|
|
1810
|
+
console.log("_3dSwym_sendDirectMessageData url ", r), w(e, (a) => {
|
|
1811
|
+
m(r, {
|
|
1796
1812
|
method: "POST",
|
|
1797
1813
|
headers: {
|
|
1798
1814
|
"Content-Type": "application/json",
|
|
@@ -1801,25 +1817,25 @@ function x(e, t, n = void 0, s = void 0) {
|
|
|
1801
1817
|
},
|
|
1802
1818
|
data: JSON.stringify(o),
|
|
1803
1819
|
type: "json",
|
|
1804
|
-
onComplete(
|
|
1805
|
-
const l =
|
|
1820
|
+
onComplete(c, d, p) {
|
|
1821
|
+
const l = c;
|
|
1806
1822
|
l.status = p.status, l.response = JSON.parse(p.response), console.log("✅ _3dSwym_sendDirectMessageData => ", l), n && n(l);
|
|
1807
1823
|
},
|
|
1808
|
-
onFailure(
|
|
1809
|
-
const p =
|
|
1824
|
+
onFailure(c, d) {
|
|
1825
|
+
const p = c;
|
|
1810
1826
|
p.msg = d.errormsg, p.errCode = d.errorcode, console.log("❌ sendDirectMessage => ", p), s && s(p);
|
|
1811
1827
|
}
|
|
1812
1828
|
});
|
|
1813
1829
|
});
|
|
1814
1830
|
}
|
|
1815
|
-
function
|
|
1831
|
+
function ce(e) {
|
|
1816
1832
|
const t = (/* @__PURE__ */ new Date()).toLocaleDateString(), n = (/* @__PURE__ */ new Date()).toLocaleTimeString();
|
|
1817
1833
|
return `<p>${e} </p>
|
|
1818
1834
|
<br/>
|
|
1819
1835
|
<hr/>
|
|
1820
1836
|
<p><u>envoyer :</u>Le <b>${t} à ${n}</b></p>`;
|
|
1821
1837
|
}
|
|
1822
|
-
const
|
|
1838
|
+
const de = {
|
|
1823
1839
|
title: "TEST DEV COMMUNITY IDEA",
|
|
1824
1840
|
// titre du post
|
|
1825
1841
|
community_id: "YXdA5x4DSUKtlAi2wmnyTA",
|
|
@@ -1829,53 +1845,53 @@ const ce = {
|
|
|
1829
1845
|
idee_id: "THhRI8rlQNWKRxpv3Xqqug"
|
|
1830
1846
|
// id de l'idee qui est créer au post (_3dSwym_postIdea)
|
|
1831
1847
|
};
|
|
1832
|
-
function
|
|
1833
|
-
const i = `${e.space}/api/idea/add`,
|
|
1834
|
-
(
|
|
1848
|
+
function it(e, t, n = void 0, s = void 0) {
|
|
1849
|
+
const i = `${e.space}/api/idea/add`, r = e.swymCommunities.find(
|
|
1850
|
+
(c) => c.id === t.community_id
|
|
1835
1851
|
), o = e.swymCommunities.find(
|
|
1836
|
-
(
|
|
1852
|
+
(c) => c.title.toLowerCase() === t.community_title.toLowerCase()
|
|
1837
1853
|
), a = {
|
|
1838
1854
|
params: {
|
|
1839
1855
|
title: t.title,
|
|
1840
1856
|
// String, le nom de l'affaire
|
|
1841
|
-
community_id:
|
|
1857
|
+
community_id: r?.id !== void 0 ? r.id : o.id,
|
|
1842
1858
|
// String, l'id de la communauté
|
|
1843
|
-
message:
|
|
1859
|
+
message: pe(t.text_html),
|
|
1844
1860
|
// STRING => le contenue du message doit être au format HTML
|
|
1845
1861
|
published: 1
|
|
1846
1862
|
// 1 publier, 0 non publier
|
|
1847
1863
|
}
|
|
1848
1864
|
};
|
|
1849
|
-
|
|
1865
|
+
w(e, (c) => {
|
|
1850
1866
|
const d = {
|
|
1851
1867
|
"Content-type": "application/json;charset=UTF-8",
|
|
1852
1868
|
Accept: "application/json",
|
|
1853
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1869
|
+
"X-DS-SWYM-CSRFTOKEN": c.result.ServerToken
|
|
1854
1870
|
};
|
|
1855
1871
|
m(i, {
|
|
1856
1872
|
method: "POST",
|
|
1857
1873
|
headers: d,
|
|
1858
1874
|
data: JSON.stringify(a),
|
|
1859
1875
|
type: "json",
|
|
1860
|
-
onComplete(p, l,
|
|
1861
|
-
const
|
|
1862
|
-
|
|
1876
|
+
onComplete(p, l, f) {
|
|
1877
|
+
const u = JSON.parse(p);
|
|
1878
|
+
u.status = f.status, u.response = f.response, n && n(u);
|
|
1863
1879
|
},
|
|
1864
|
-
onFailure(p, l,
|
|
1865
|
-
const
|
|
1866
|
-
|
|
1880
|
+
onFailure(p, l, f) {
|
|
1881
|
+
const u = p;
|
|
1882
|
+
u.status = l.status, u.response = l.errormsg, s && s(u);
|
|
1867
1883
|
}
|
|
1868
1884
|
});
|
|
1869
1885
|
});
|
|
1870
1886
|
}
|
|
1871
|
-
function
|
|
1872
|
-
const i = `${e.space}/api/idea/delete`,
|
|
1887
|
+
function at(e, t, n = void 0, s = void 0) {
|
|
1888
|
+
const i = `${e.space}/api/idea/delete`, r = {
|
|
1873
1889
|
params: {
|
|
1874
1890
|
community_id: t.community_id,
|
|
1875
1891
|
ideationIds: [t.idee_id]
|
|
1876
1892
|
}
|
|
1877
1893
|
};
|
|
1878
|
-
|
|
1894
|
+
w(e, (o) => {
|
|
1879
1895
|
m(i, {
|
|
1880
1896
|
method: "POST",
|
|
1881
1897
|
headers: {
|
|
@@ -1883,28 +1899,28 @@ function it(e, t, n = void 0, s = void 0) {
|
|
|
1883
1899
|
Accept: "application/json",
|
|
1884
1900
|
"X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
|
|
1885
1901
|
},
|
|
1886
|
-
data: JSON.stringify(
|
|
1902
|
+
data: JSON.stringify(r),
|
|
1887
1903
|
type: "json",
|
|
1888
|
-
onComplete(a,
|
|
1904
|
+
onComplete(a, c, d) {
|
|
1889
1905
|
n && n(a);
|
|
1890
1906
|
},
|
|
1891
|
-
onFailure(a,
|
|
1907
|
+
onFailure(a, c, d) {
|
|
1892
1908
|
const p = a;
|
|
1893
|
-
p.status =
|
|
1909
|
+
p.status = c.status, p.response = c.errormsg, s && s(p);
|
|
1894
1910
|
}
|
|
1895
1911
|
});
|
|
1896
1912
|
});
|
|
1897
1913
|
}
|
|
1898
|
-
function
|
|
1914
|
+
function ot(e, t = "", n = void 0, s = void 0) {
|
|
1899
1915
|
const i = e.tenant.toLowerCase() === "r1132101716373" ? "tFtz0G4MR6qNtKgJjNfTog" : e.tenant.toLowerCase() === "r1132101286859" ? "Qpv3HN-tTDOsU-7_c5DnDg" : "Template_d'idée_à_créer";
|
|
1900
1916
|
t === "" && (t = i);
|
|
1901
|
-
const
|
|
1917
|
+
const r = `${e.space}/api/idea/get`, o = {
|
|
1902
1918
|
params: {
|
|
1903
1919
|
id: t
|
|
1904
1920
|
}
|
|
1905
1921
|
};
|
|
1906
|
-
|
|
1907
|
-
m(
|
|
1922
|
+
w(e, (a) => {
|
|
1923
|
+
m(r, {
|
|
1908
1924
|
method: "POST",
|
|
1909
1925
|
headers: {
|
|
1910
1926
|
"Content-type": "application/json;charset=UTF-8",
|
|
@@ -1913,41 +1929,41 @@ function at(e, t = "", n = void 0, s = void 0) {
|
|
|
1913
1929
|
},
|
|
1914
1930
|
data: JSON.stringify(o),
|
|
1915
1931
|
type: "json",
|
|
1916
|
-
onComplete(
|
|
1917
|
-
const d =
|
|
1932
|
+
onComplete(c) {
|
|
1933
|
+
const d = c;
|
|
1918
1934
|
d.msg = d.result.message, n && n(d);
|
|
1919
1935
|
},
|
|
1920
|
-
onFailure(
|
|
1921
|
-
const d =
|
|
1936
|
+
onFailure(c) {
|
|
1937
|
+
const d = c;
|
|
1922
1938
|
d.status = headers.status, d.response = headers.errormsg, s && s(d);
|
|
1923
1939
|
}
|
|
1924
1940
|
});
|
|
1925
1941
|
});
|
|
1926
1942
|
}
|
|
1927
|
-
function
|
|
1943
|
+
function rt(e, t = de, n = void 0, s = void 0) {
|
|
1928
1944
|
const i = {
|
|
1929
1945
|
uri: "/api/idea/list",
|
|
1930
1946
|
comId: `/community_id/${e.tenant.toLowerCase() === "r1132101716373" ? t.community_id : "bgnIsG74SUWswyGzS6NC6g"}`,
|
|
1931
1947
|
limit: `/limit/${t.limit ? t.limit : 10}`
|
|
1932
|
-
},
|
|
1933
|
-
|
|
1934
|
-
m(
|
|
1948
|
+
}, r = `${e.space}${i.uri}${i.comId}${i.limit}`;
|
|
1949
|
+
w(e, (o) => {
|
|
1950
|
+
m(r, {
|
|
1935
1951
|
method: "GET",
|
|
1936
1952
|
headers: {
|
|
1937
1953
|
"X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
|
|
1938
1954
|
},
|
|
1939
1955
|
onComplete(a) {
|
|
1940
|
-
const
|
|
1941
|
-
n && n(
|
|
1956
|
+
const c = JSON.parse(a);
|
|
1957
|
+
n && n(c);
|
|
1942
1958
|
},
|
|
1943
|
-
onFailure(a,
|
|
1959
|
+
onFailure(a, c) {
|
|
1944
1960
|
const d = a;
|
|
1945
|
-
d.status =
|
|
1961
|
+
d.status = c.status, d.response = c.errormsg, s && s(d);
|
|
1946
1962
|
}
|
|
1947
1963
|
});
|
|
1948
1964
|
});
|
|
1949
1965
|
}
|
|
1950
|
-
function
|
|
1966
|
+
function pe(e) {
|
|
1951
1967
|
return !e || e === "" ? `<h2><u>INFORMATIONS AFFAIRE :</u></h2>
|
|
1952
1968
|
<p><u>|⚠️<em> Merci de respecter l'écriture des tags, en MAJUSCULES, nom complet, pas de caractères</em></u></p>
|
|
1953
1969
|
<p><u><em>|spéciaux, séparation par "_" si besoin !</em></u></p>
|
|
@@ -2022,34 +2038,34 @@ function de(e) {
|
|
|
2022
2038
|
<p>
|
|
2023
2039
|
</p>` : e;
|
|
2024
2040
|
}
|
|
2025
|
-
function
|
|
2041
|
+
function ct(e, t = void 0, n = void 0) {
|
|
2026
2042
|
const s = e.space + "/api/user/getcurrent/";
|
|
2027
|
-
|
|
2043
|
+
w(e, (i) => {
|
|
2028
2044
|
m(s, {
|
|
2029
2045
|
method: "GET",
|
|
2030
2046
|
headers: {
|
|
2031
2047
|
"X-DS-SWYM-CSRFTOKEN": i.result.ServerToken
|
|
2032
2048
|
},
|
|
2033
|
-
onComplete(
|
|
2034
|
-
const
|
|
2035
|
-
t && t(
|
|
2049
|
+
onComplete(r, o, a) {
|
|
2050
|
+
const c = JSON.parse(r);
|
|
2051
|
+
t && t(c.result);
|
|
2036
2052
|
},
|
|
2037
|
-
onFailure(
|
|
2038
|
-
const
|
|
2039
|
-
n && n(
|
|
2053
|
+
onFailure(r, o, a) {
|
|
2054
|
+
const c = { erreur: JSON.parse(r), headers: o, xhr: a };
|
|
2055
|
+
n && n(c);
|
|
2040
2056
|
}
|
|
2041
2057
|
});
|
|
2042
2058
|
});
|
|
2043
2059
|
}
|
|
2044
|
-
function
|
|
2060
|
+
function dt(e, t, n = void 0, s = void 0) {
|
|
2045
2061
|
const i = e.space + "/api/user/find/login/" + t;
|
|
2046
|
-
|
|
2062
|
+
w(
|
|
2047
2063
|
e,
|
|
2048
|
-
(
|
|
2064
|
+
(r) => {
|
|
2049
2065
|
m(i, {
|
|
2050
2066
|
method: "GET",
|
|
2051
|
-
headers: { "X-DS-SWYM-CSRFTOKEN":
|
|
2052
|
-
onComplete(o, a,
|
|
2067
|
+
headers: { "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken },
|
|
2068
|
+
onComplete(o, a, c) {
|
|
2053
2069
|
const d = JSON.parse(o);
|
|
2054
2070
|
n && n(d);
|
|
2055
2071
|
},
|
|
@@ -2061,22 +2077,22 @@ function ct(e, t, n = void 0, s = void 0) {
|
|
|
2061
2077
|
s
|
|
2062
2078
|
);
|
|
2063
2079
|
}
|
|
2064
|
-
function
|
|
2080
|
+
function pt(e, t = void 0, n = void 0) {
|
|
2065
2081
|
e.tenant && b(e, (s) => {
|
|
2066
2082
|
console.log("serviceUrls", s);
|
|
2067
|
-
const i = s.services.find((
|
|
2083
|
+
const i = s.services.find((r) => r.id === "businessprocess")?.url + "/api/v2";
|
|
2068
2084
|
return t && t(i), i;
|
|
2069
2085
|
});
|
|
2070
2086
|
}
|
|
2071
|
-
function
|
|
2087
|
+
function lt(e, t = void 0, n = void 0) {
|
|
2072
2088
|
e.tenant && b(e, (s) => {
|
|
2073
2089
|
console.log("serviceUrls", s);
|
|
2074
|
-
const i = s.services.find((a) => a.id === "3dpassport")?.url,
|
|
2090
|
+
const i = s.services.find((a) => a.id === "3dpassport")?.url, r = s.services.find((a) => a.id === "businessprocess")?.url + "/api/v2", o = `${i}/login/?service=${r}/auth/cas`;
|
|
2075
2091
|
m(o, {
|
|
2076
2092
|
async onComplete(a) {
|
|
2077
2093
|
console.log("response", a);
|
|
2078
|
-
const
|
|
2079
|
-
await fetch(
|
|
2094
|
+
const c = typeof a == "string" ? JSON.parse(a)?.x3ds_service_redirect_url : a?.x3ds_service_redirect_url;
|
|
2095
|
+
await fetch(c, {
|
|
2080
2096
|
method: "POST"
|
|
2081
2097
|
}).then((d) => d.json()).then(async (d) => {
|
|
2082
2098
|
t && t(d?.token);
|
|
@@ -2088,34 +2104,34 @@ function pt(e, t = void 0, n = void 0) {
|
|
|
2088
2104
|
});
|
|
2089
2105
|
});
|
|
2090
2106
|
}
|
|
2091
|
-
async function
|
|
2107
|
+
async function ut(e, t, n = void 0, s = void 0) {
|
|
2092
2108
|
e.tenant && b(e, (i) => {
|
|
2093
|
-
const o = `${i.services.find((
|
|
2109
|
+
const o = `${i.services.find((c) => c.id === "businessprocess")?.url + "/api/v2"}/identity/users`, a = e.tenant.toLowerCase();
|
|
2094
2110
|
fetch(`https://api.uixhome.fr/${a}/iterop/listusers?t=${t}&s=${o}`, {
|
|
2095
2111
|
method: "POST"
|
|
2096
|
-
}).then((
|
|
2097
|
-
n && n(
|
|
2098
|
-
}).catch((
|
|
2099
|
-
s && s(
|
|
2112
|
+
}).then((c) => c.json()).then((c) => {
|
|
2113
|
+
n && n(c);
|
|
2114
|
+
}).catch((c) => {
|
|
2115
|
+
s && s(c);
|
|
2100
2116
|
});
|
|
2101
2117
|
});
|
|
2102
2118
|
}
|
|
2103
|
-
async function
|
|
2119
|
+
async function ft(e, t, n = void 0, s = void 0) {
|
|
2104
2120
|
e.tenant && b(e, (i) => {
|
|
2105
|
-
const o = `${i.services.find((
|
|
2121
|
+
const o = `${i.services.find((c) => c.id === "businessprocess")?.url + "/api/v2"}/repository/data/tables`, a = e.tenant.toLowerCase();
|
|
2106
2122
|
fetch(`https://api.uixhome.fr/${a}/iterop/repository/data/tables?t=${t}&s=${o}`, {
|
|
2107
2123
|
method: "GET"
|
|
2108
|
-
}).then((
|
|
2109
|
-
n && n(
|
|
2110
|
-
}).catch((
|
|
2111
|
-
s && s(
|
|
2124
|
+
}).then((c) => c.json()).then((c) => {
|
|
2125
|
+
n && n(c);
|
|
2126
|
+
}).catch((c) => {
|
|
2127
|
+
s && s(c);
|
|
2112
2128
|
});
|
|
2113
2129
|
});
|
|
2114
2130
|
}
|
|
2115
|
-
async function
|
|
2131
|
+
async function mt(e, t, n, s = void 0, i = void 0) {
|
|
2116
2132
|
if (e.tenant) {
|
|
2117
|
-
const
|
|
2118
|
-
fetch(`https://api.uixhome.fr/${
|
|
2133
|
+
const r = e.tenant.toLowerCase();
|
|
2134
|
+
fetch(`https://api.uixhome.fr/${r}/iterop//businesstable/${n}?t=${t}`, {
|
|
2119
2135
|
method: "POST"
|
|
2120
2136
|
}).then((o) => o.json()).then((o) => {
|
|
2121
2137
|
s && s(o);
|
|
@@ -2124,10 +2140,10 @@ async function ft(e, t, n, s = void 0, i = void 0) {
|
|
|
2124
2140
|
});
|
|
2125
2141
|
}
|
|
2126
2142
|
}
|
|
2127
|
-
async function
|
|
2143
|
+
async function gt(e, t, n, s = void 0, i = void 0) {
|
|
2128
2144
|
if (e.tenant) {
|
|
2129
|
-
const
|
|
2130
|
-
fetch(`https://api.uixhome.fr/${
|
|
2145
|
+
const r = e.tenant.toLowerCase();
|
|
2146
|
+
fetch(`https://api.uixhome.fr/${r}/iterop//businesstable/${n}/rows/?t=${t}`, {
|
|
2131
2147
|
method: "POST"
|
|
2132
2148
|
}).then((o) => o.json()).then((o) => {
|
|
2133
2149
|
s && s(o);
|
|
@@ -2136,46 +2152,46 @@ async function mt(e, t, n, s = void 0, i = void 0) {
|
|
|
2136
2152
|
});
|
|
2137
2153
|
}
|
|
2138
2154
|
}
|
|
2139
|
-
async function
|
|
2155
|
+
async function ht(e, t, n, s, i = void 0, r = void 0) {
|
|
2140
2156
|
e.tenant && b(e, (o) => {
|
|
2141
|
-
o.services.find((
|
|
2157
|
+
o.services.find((c) => c.id === "businessprocess")?.url + "";
|
|
2142
2158
|
const a = e.tenant.toLowerCase();
|
|
2143
2159
|
fetch(
|
|
2144
2160
|
`https://api.uixhome.fr/${a}/iterop/runtime/processes/${n}?t=${t}&b=${s}`,
|
|
2145
2161
|
{
|
|
2146
2162
|
method: "POST"
|
|
2147
2163
|
}
|
|
2148
|
-
).then((
|
|
2149
|
-
i && i(
|
|
2150
|
-
}).catch((
|
|
2151
|
-
|
|
2164
|
+
).then((c) => c.json()).then((c) => {
|
|
2165
|
+
i && i(c);
|
|
2166
|
+
}).catch((c) => {
|
|
2167
|
+
r && r(c);
|
|
2152
2168
|
});
|
|
2153
2169
|
});
|
|
2154
2170
|
}
|
|
2155
|
-
async function
|
|
2171
|
+
async function St(e, t, n, s, i, r = void 0, o = void 0) {
|
|
2156
2172
|
e.tenant && b(e, (a) => {
|
|
2157
2173
|
a.services.find((d) => d.id === "businessprocess")?.url + "";
|
|
2158
|
-
const
|
|
2174
|
+
const c = e.tenant.toLowerCase();
|
|
2159
2175
|
fetch(
|
|
2160
|
-
`https://api.uixhome.fr/${
|
|
2176
|
+
`https://api.uixhome.fr/${c}/iterop/businesstable/patch/${n}/rows?t=${t}&rowsToAdd=${s}&rowsToRemove=${i}`,
|
|
2161
2177
|
{
|
|
2162
2178
|
method: "POST"
|
|
2163
2179
|
}
|
|
2164
2180
|
).then((d) => d.json()).then((d) => {
|
|
2165
|
-
|
|
2181
|
+
r && r(d);
|
|
2166
2182
|
}).catch((d) => {
|
|
2167
2183
|
o && o(d);
|
|
2168
2184
|
});
|
|
2169
2185
|
});
|
|
2170
2186
|
}
|
|
2171
|
-
function
|
|
2187
|
+
function yt(e) {
|
|
2172
2188
|
const t = "Hello " + e;
|
|
2173
2189
|
return console.log(t), t;
|
|
2174
2190
|
}
|
|
2175
2191
|
function _t(e, t = void 0, n = void 0) {
|
|
2176
2192
|
return console.log("credentials", e), new Promise((s) => {
|
|
2177
2193
|
if (e.token === "" && T(e), !e.space || e.space === "") {
|
|
2178
|
-
const o =
|
|
2194
|
+
const o = V();
|
|
2179
2195
|
console.log("platformeInfo", o);
|
|
2180
2196
|
}
|
|
2181
2197
|
N(
|
|
@@ -2189,14 +2205,14 @@ function _t(e, t = void 0, n = void 0) {
|
|
|
2189
2205
|
},
|
|
2190
2206
|
!0
|
|
2191
2207
|
);
|
|
2192
|
-
const i = v.now().ts,
|
|
2193
|
-
m(
|
|
2208
|
+
const i = v.now().ts, r = `https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dsearch&platformId=${e.tenant}`;
|
|
2209
|
+
m(r, {
|
|
2194
2210
|
onComplete(o) {
|
|
2195
2211
|
if (Array.isArray(JSON.parse(o))) {
|
|
2196
2212
|
const a = JSON.parse(o);
|
|
2197
2213
|
console.log("serviceId=3dsearch", a);
|
|
2198
|
-
const
|
|
2199
|
-
m(
|
|
2214
|
+
const c = `${a[0].services[0].url}/search?xrequestedwith=xmlhttprequest`;
|
|
2215
|
+
m(c, {
|
|
2200
2216
|
method: "POST",
|
|
2201
2217
|
headers: {
|
|
2202
2218
|
Accept: "application/json",
|
|
@@ -2252,87 +2268,87 @@ function _t(e, t = void 0, n = void 0) {
|
|
|
2252
2268
|
});
|
|
2253
2269
|
}
|
|
2254
2270
|
export {
|
|
2255
|
-
|
|
2271
|
+
P as UUID,
|
|
2256
2272
|
_t as _3DSearch_usersGroup,
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2273
|
+
Re as _3DSpace_Create_Doc,
|
|
2274
|
+
Ee as _3DSpace_bookmark_addSubsciptions,
|
|
2275
|
+
Ge as _3DSpace_bookmark_newWorkspace,
|
|
2260
2276
|
T as _3DSpace_csrf,
|
|
2261
2277
|
D as _3DSpace_download_doc,
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2278
|
+
Z as _3DSpace_download_multidoc,
|
|
2279
|
+
q as _3DSpace_file_update,
|
|
2280
|
+
Q as _3DSpace_file_update_csr,
|
|
2281
|
+
xe as _3DSpace_file_url_csr,
|
|
2266
2282
|
A as _3DSpace_get_csrf,
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2283
|
+
z as _3DSpace_get_docInfo,
|
|
2284
|
+
ee as _3DSpace_get_downloadTicket_multidoc,
|
|
2285
|
+
je as _3DSpace_get_multiDocInfo,
|
|
2270
2286
|
N as _3DSpace_get_securityContexts,
|
|
2271
2287
|
F as _3DSpace_get_ticket,
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2288
|
+
Je as _3DSpace_lifecycle_changeRevision,
|
|
2289
|
+
De as _3DSpace_lifecycle_changeState,
|
|
2290
|
+
Le as _3DSpace_lifecycle_getGraph,
|
|
2291
|
+
Me as _3DSpace_lifecycle_getNextRevision,
|
|
2276
2292
|
Pe as _3DSpace_lifecycle_getNextStates,
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2293
|
+
st as _3DSwym_buildDirectMessage,
|
|
2294
|
+
at as _3DSwym_deleteIdea,
|
|
2295
|
+
re as _3DSwym_findCommunityToInstantMSG,
|
|
2296
|
+
tt as _3DSwym_getAllCommunities,
|
|
2297
|
+
Ze as _3DSwym_getAllNews,
|
|
2298
|
+
et as _3DSwym_getFamiliarPeople,
|
|
2299
|
+
nt as _3DSwym_getIdeaStatusMaturity,
|
|
2300
|
+
oe as _3DSwym_getMembersCommunity,
|
|
2301
|
+
ot as _3DSwym_getSWYMIdea,
|
|
2302
|
+
rt as _3DSwym_get_AllSWYMIdeas,
|
|
2303
|
+
ct as _3DSwym_get_currentUser,
|
|
2304
|
+
dt as _3DSwym_get_findUser,
|
|
2305
|
+
w as _3DSwym_get_version,
|
|
2306
|
+
it as _3DSwym_postIdea,
|
|
2291
2307
|
x as _3DSwym_sendMessageData,
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2308
|
+
Ne as _AppMngt_get_info_user,
|
|
2309
|
+
be as _AppMngt_get_users,
|
|
2310
|
+
St as _Iterop_AddOrRemoveRows,
|
|
2311
|
+
lt as _Iterop_Auth_CAS,
|
|
2312
|
+
ut as _Iterop_ListUsers,
|
|
2313
|
+
ft as _Iterop_getAllBusinessTables,
|
|
2314
|
+
mt as _Iterop_getOneBusinessTable,
|
|
2315
|
+
gt as _Iterop_getOneBusinessTableRows,
|
|
2316
|
+
ht as _Iterop_runProcess,
|
|
2317
|
+
V as _getPlateformInfos,
|
|
2318
|
+
Ce as _getPlatformServices,
|
|
2303
2319
|
b as _getServiceUrl,
|
|
2304
|
-
|
|
2305
|
-
|
|
2320
|
+
Te as _getServiceUrl_3DPassport,
|
|
2321
|
+
pt as _getServiceUrl_Iterop,
|
|
2306
2322
|
m as _httpCallAuthenticated,
|
|
2307
|
-
|
|
2308
|
-
|
|
2323
|
+
ye as _setDraggable,
|
|
2324
|
+
we as _setDroppable,
|
|
2309
2325
|
_e as _setupTagger,
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2326
|
+
ze as addTagToDoc,
|
|
2327
|
+
Oe as compass_getListAdditionalApps,
|
|
2328
|
+
K as couleurs,
|
|
2329
|
+
$e as createUserGroups,
|
|
2330
|
+
te as dataMixing,
|
|
2331
|
+
Ae as deleteUserGroups,
|
|
2332
|
+
ge as findAdresse,
|
|
2333
|
+
Ke as getAllContextSecurity,
|
|
2334
|
+
W as getCSRFToken,
|
|
2335
|
+
me as getCommunes,
|
|
2336
|
+
ve as getComplementUG,
|
|
2337
|
+
Ve as getDataFrom3DSpace,
|
|
2338
|
+
he as getDataFromGouvFr,
|
|
2339
|
+
Ye as getDatasByTenant,
|
|
2340
|
+
He as getDatasFrom3DSpace,
|
|
2341
|
+
Be as getDownloadDocument,
|
|
2342
|
+
Qe as getInfoDocTags,
|
|
2343
|
+
Ie as getUserGroupsList,
|
|
2344
|
+
B as getUsersGroupRules,
|
|
2345
|
+
Xe as get_3DSpace_csrf,
|
|
2346
|
+
ke as patchUserGroups,
|
|
2347
|
+
Ue as patchUserGroupsControl,
|
|
2348
|
+
We as pushDataIn3DSpace,
|
|
2349
|
+
Fe as readUserGroupControl,
|
|
2350
|
+
qe as removeTagToDoc,
|
|
2351
|
+
yt as sayHello,
|
|
2352
|
+
Se as updateEvent
|
|
2337
2353
|
};
|
|
2338
2354
|
//# sourceMappingURL=wb3Api.js.map
|