@beam3_dev/api_module 0.0.224 → 0.0.226
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 +593 -593
- package/dist/wb3Api.js.map +1 -1
- package/dist/wb3Api.umd.cjs +6 -6
- 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
|
|
2
|
-
import { DateTime as
|
|
3
|
-
import { requirejs as $, widget as
|
|
4
|
-
function
|
|
5
|
-
return
|
|
1
|
+
import { v4 as V } from "uuid";
|
|
2
|
+
import { DateTime as v } from "luxon";
|
|
3
|
+
import { requirejs as $, widget as D } from "@widget-lab/3ddashboard-utils";
|
|
4
|
+
function L() {
|
|
5
|
+
return V();
|
|
6
6
|
}
|
|
7
|
-
const
|
|
7
|
+
const W = {
|
|
8
8
|
b3M3Yellow: "#FFB300",
|
|
9
9
|
b3AboutageBlue: "#42A5F5",
|
|
10
10
|
b3UsinageGreen: "#689F38",
|
|
@@ -34,10 +34,10 @@ const V = {
|
|
|
34
34
|
b3Edit8: "#616161",
|
|
35
35
|
b3Edit9: "#795548"
|
|
36
36
|
};
|
|
37
|
-
async function
|
|
38
|
-
const
|
|
37
|
+
async function he(e, t = void 0, s = void 0) {
|
|
38
|
+
const n = parseInt(e);
|
|
39
39
|
await fetch(
|
|
40
|
-
"https://apicarto.ign.fr/api/codes-postaux/communes/" +
|
|
40
|
+
"https://apicarto.ign.fr/api/codes-postaux/communes/" + n,
|
|
41
41
|
{
|
|
42
42
|
method: "GET",
|
|
43
43
|
headers: {
|
|
@@ -45,12 +45,12 @@ async function ge(e, n = void 0, s = void 0) {
|
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
).then((i) => i.json()).then((i) => {
|
|
48
|
-
|
|
48
|
+
t && t(i);
|
|
49
49
|
}).catch((i) => {
|
|
50
50
|
s && s(i), console.error("Erreur : " + i);
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
|
-
async function
|
|
53
|
+
async function ye(e, t = void 0, s = void 0) {
|
|
54
54
|
e = encodeURIComponent(e), await fetch(
|
|
55
55
|
"https://api-adresse.data.gouv.fr/search/?q=" + e + "&limit=15",
|
|
56
56
|
{
|
|
@@ -59,15 +59,15 @@ async function he(e, n = void 0, s = void 0) {
|
|
|
59
59
|
Accept: "application/json"
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
).then((
|
|
63
|
-
|
|
64
|
-
}).catch((
|
|
65
|
-
s && s(
|
|
62
|
+
).then((n) => n.json()).then((n) => {
|
|
63
|
+
t && t(n);
|
|
64
|
+
}).catch((n) => {
|
|
65
|
+
s && s(n), console.error("Erreur : " + n);
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
|
-
async function
|
|
69
|
-
let s =
|
|
70
|
-
const
|
|
68
|
+
async function Se(e, t = W) {
|
|
69
|
+
let s = v.now().year;
|
|
70
|
+
const n = e, i = [], r = (a) => {
|
|
71
71
|
for (let c in a)
|
|
72
72
|
i.push({ date: c, comment: a[c] });
|
|
73
73
|
};
|
|
@@ -84,48 +84,48 @@ async function ye(e, n = V) {
|
|
|
84
84
|
r(c);
|
|
85
85
|
}).catch((c) => console.error("Erreur : " + c));
|
|
86
86
|
return (() => {
|
|
87
|
-
const a =
|
|
87
|
+
const a = n.length === 0 ? {
|
|
88
88
|
events: []
|
|
89
|
-
} :
|
|
89
|
+
} : n;
|
|
90
90
|
for (let c of i)
|
|
91
91
|
a.events.findIndex(
|
|
92
|
-
(p) => p.start ===
|
|
92
|
+
(p) => p.start === v.fromISO(c.date).toISODate() && p.name === "Férié : " + c.comment
|
|
93
93
|
) === -1 && a.events.push({
|
|
94
94
|
name: "Férié : " + c.comment,
|
|
95
|
-
start:
|
|
96
|
-
end:
|
|
97
|
-
color:
|
|
95
|
+
start: v.fromISO(c.date).toISODate(),
|
|
96
|
+
end: v.fromISO(c.date).toISODate(),
|
|
97
|
+
color: t.b3BusinnessDays,
|
|
98
98
|
timed: !1
|
|
99
99
|
});
|
|
100
100
|
return a;
|
|
101
101
|
})();
|
|
102
102
|
}
|
|
103
|
-
function
|
|
104
|
-
const { credentials:
|
|
103
|
+
function X(e, t, s) {
|
|
104
|
+
const { credentials: n, 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
|
-
|
|
110
|
-
{ credentials:
|
|
109
|
+
q(
|
|
110
|
+
{ credentials: n, chunks: a, initLoop: 0, fn: o },
|
|
111
111
|
(c) => {
|
|
112
|
-
|
|
112
|
+
t && t(c);
|
|
113
113
|
},
|
|
114
114
|
(c) => {
|
|
115
115
|
s && s(c);
|
|
116
116
|
}
|
|
117
117
|
);
|
|
118
118
|
}
|
|
119
|
-
function
|
|
120
|
-
const { credentials:
|
|
119
|
+
function q(e, t, s) {
|
|
120
|
+
const { credentials: n, chunks: i, initLoop: r, fn: o } = e, a = (c) => {
|
|
121
121
|
o(
|
|
122
|
-
|
|
122
|
+
n,
|
|
123
123
|
i[c],
|
|
124
124
|
() => {
|
|
125
125
|
c++, c < i.length && a(c);
|
|
126
126
|
},
|
|
127
127
|
(d) => {
|
|
128
|
-
|
|
128
|
+
t && t(d);
|
|
129
129
|
},
|
|
130
130
|
(d) => {
|
|
131
131
|
s && s(d);
|
|
@@ -134,47 +134,47 @@ function X(e, n, s) {
|
|
|
134
134
|
};
|
|
135
135
|
a(r);
|
|
136
136
|
}
|
|
137
|
-
async function
|
|
138
|
-
const
|
|
139
|
-
return
|
|
137
|
+
async function _e(e, t, s = !0) {
|
|
138
|
+
const n = e.events.findIndex((i) => i.uuid === t.uuid);
|
|
139
|
+
return n === -1 ? e.events.push(t) : s ? e.events[n] = t : e.events.splice(n, 1), e.length > 0 && e.sort((i, r) => i.start - r.start), e;
|
|
140
140
|
}
|
|
141
|
-
function m(e,
|
|
141
|
+
function m(e, t) {
|
|
142
142
|
$(["DS/WAFData/WAFData"], (s) => {
|
|
143
|
-
s.authenticatedRequest(e,
|
|
143
|
+
s.authenticatedRequest(e, t);
|
|
144
144
|
});
|
|
145
145
|
}
|
|
146
|
-
function
|
|
147
|
-
$(["DS/DataDragAndDrop/DataDragAndDrop"], (
|
|
148
|
-
|
|
149
|
-
data:
|
|
146
|
+
function we(e, t, s) {
|
|
147
|
+
$(["DS/DataDragAndDrop/DataDragAndDrop"], (n) => {
|
|
148
|
+
n.draggable(e, {
|
|
149
|
+
data: t,
|
|
150
150
|
start: s
|
|
151
151
|
});
|
|
152
152
|
});
|
|
153
153
|
}
|
|
154
|
-
function
|
|
154
|
+
function Ce(e, t = void 0) {
|
|
155
155
|
$(["DS/TagNavigatorProxy/TagNavigatorProxy"], (s) => {
|
|
156
|
-
let
|
|
157
|
-
|
|
158
|
-
widgetId:
|
|
156
|
+
let n;
|
|
157
|
+
n === void 0 && (n = s.createProxy({
|
|
158
|
+
widgetId: D.id,
|
|
159
159
|
filteringMode: "WithFilteringServices"
|
|
160
|
-
}),
|
|
160
|
+
}), t !== void 0 && n.addEvent("onFilterSubjectsChange", t)), n.setSubjectsTags(e);
|
|
161
161
|
});
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function Te(e, t) {
|
|
164
164
|
$(["DS/DataDragAndDrop/DataDragAndDrop"], (s) => {
|
|
165
165
|
s.droppable(e, {
|
|
166
|
-
drop:
|
|
166
|
+
drop: t
|
|
167
167
|
});
|
|
168
168
|
});
|
|
169
169
|
}
|
|
170
|
-
async function
|
|
170
|
+
async function be(e, t = void 0, s = void 0) {
|
|
171
171
|
await $(
|
|
172
172
|
["DS/i3DXCompassServices/i3DXCompassServices"],
|
|
173
|
-
(
|
|
174
|
-
(!e || e === "") && (e =
|
|
175
|
-
|
|
173
|
+
(n) => {
|
|
174
|
+
(!e || e === "") && (e = D.getValue("PlatFormInstanceId")), (!e || e === "") && (e = void 0), t && t(
|
|
175
|
+
n.getPlatformServices({
|
|
176
176
|
platformId: e,
|
|
177
|
-
onComplete:
|
|
177
|
+
onComplete: t,
|
|
178
178
|
onFailure: s
|
|
179
179
|
})
|
|
180
180
|
);
|
|
@@ -183,29 +183,29 @@ async function Te(e, n = void 0, s = void 0) {
|
|
|
183
183
|
}
|
|
184
184
|
function Y() {
|
|
185
185
|
let e = {};
|
|
186
|
-
return $(["DS/PlatformAPI/PlatformAPI"], (
|
|
187
|
-
const s =
|
|
186
|
+
return $(["DS/PlatformAPI/PlatformAPI"], (t) => {
|
|
187
|
+
const s = t.getTenant(), n = t.getUser(), i = t.getAllApplicationConfigurations(), r = t.getApplicationConfiguration(
|
|
188
188
|
"com.3ds.wp.passport.cors"
|
|
189
189
|
);
|
|
190
190
|
e = {
|
|
191
191
|
tenant: s,
|
|
192
|
-
user:
|
|
192
|
+
user: n,
|
|
193
193
|
appsConfiguration: i,
|
|
194
194
|
appConf: r
|
|
195
195
|
};
|
|
196
196
|
}), console.log("%cRETOUR API :", "color:blue", e), e;
|
|
197
197
|
}
|
|
198
|
-
function b(e,
|
|
198
|
+
function b(e, t = void 0, s = void 0) {
|
|
199
199
|
if (e.tenant) {
|
|
200
|
-
const
|
|
201
|
-
m(
|
|
200
|
+
const n = `https://${e.tenant}-eu1-apps.3dexperience.3ds.com/enovia/resources/AppsMngt/api/v1/services?tenant=${e.tenant}&cors=true&xrequestedwith=xmlhttprequest`;
|
|
201
|
+
m(n, {
|
|
202
202
|
onComplete(i) {
|
|
203
203
|
const r = typeof i == "string" ? JSON.parse(i) : i;
|
|
204
204
|
if (r && "platforms" in r) {
|
|
205
205
|
const o = r.platforms.find(
|
|
206
206
|
(a) => a.id === e.tenant.toUpperCase()
|
|
207
207
|
);
|
|
208
|
-
|
|
208
|
+
t && o ? t(o) : s && s("_getServiceUrl return listServiceUrl = undefined");
|
|
209
209
|
} else
|
|
210
210
|
s && s("_getServiceUrl return oResponse = undefined");
|
|
211
211
|
},
|
|
@@ -215,15 +215,15 @@ function b(e, n = void 0, s = void 0) {
|
|
|
215
215
|
});
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
|
-
function
|
|
218
|
+
function Oe(e, t = void 0, s = void 0) {
|
|
219
219
|
if (e.tenant) {
|
|
220
|
-
const
|
|
221
|
-
m(
|
|
220
|
+
const n = `https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dpassport&platformId=${e.tenant}`;
|
|
221
|
+
m(n, {
|
|
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
225
|
const o = `${r[0].services[0].url}`;
|
|
226
|
-
|
|
226
|
+
t && t(o);
|
|
227
227
|
}
|
|
228
228
|
},
|
|
229
229
|
onFailure(i) {
|
|
@@ -232,13 +232,13 @@ function be(e, n = void 0, s = void 0) {
|
|
|
232
232
|
});
|
|
233
233
|
}
|
|
234
234
|
}
|
|
235
|
-
function
|
|
236
|
-
const
|
|
235
|
+
function $e(e, t, s) {
|
|
236
|
+
const n = {
|
|
237
237
|
base: `${e.space}`,
|
|
238
238
|
uri: "/resources/AppsMngt/api/custom/applications",
|
|
239
239
|
option: `?filter=${e.tenant}`
|
|
240
240
|
// facultatif
|
|
241
|
-
}, i = `${
|
|
241
|
+
}, i = `${n.base}${n.uri}${n.option}`;
|
|
242
242
|
m(i, {
|
|
243
243
|
method: "GET",
|
|
244
244
|
headers: {
|
|
@@ -250,7 +250,7 @@ function Oe(e, n, s) {
|
|
|
250
250
|
const u = p.attributes.name, f = p.id;
|
|
251
251
|
return { name: u, id: f };
|
|
252
252
|
});
|
|
253
|
-
|
|
253
|
+
t && t(d, c);
|
|
254
254
|
},
|
|
255
255
|
onFailure(r, o) {
|
|
256
256
|
const a = r;
|
|
@@ -258,12 +258,12 @@ function Oe(e, n, s) {
|
|
|
258
258
|
}
|
|
259
259
|
});
|
|
260
260
|
}
|
|
261
|
-
function
|
|
262
|
-
let
|
|
263
|
-
m(
|
|
261
|
+
function Ie(e, t = void 0, s = void 0) {
|
|
262
|
+
let n = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&limit=-1`;
|
|
263
|
+
m(n, {
|
|
264
264
|
onComplete(i, r, o) {
|
|
265
265
|
const a = JSON.parse(i);
|
|
266
|
-
console.log("_AppMngt_get_users => ", a),
|
|
266
|
+
console.log("_AppMngt_get_users => ", a), t && t(a);
|
|
267
267
|
},
|
|
268
268
|
onFailure(i, r) {
|
|
269
269
|
const o = i;
|
|
@@ -271,8 +271,8 @@ function $e(e, n = void 0, s = void 0) {
|
|
|
271
271
|
}
|
|
272
272
|
});
|
|
273
273
|
}
|
|
274
|
-
function
|
|
275
|
-
let i = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&id=${
|
|
274
|
+
function ve(e, t, s = void 0, n = void 0) {
|
|
275
|
+
let i = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&id=${t}`;
|
|
276
276
|
m(i, {
|
|
277
277
|
onComplete(r, o, a) {
|
|
278
278
|
const c = JSON.parse(r);
|
|
@@ -280,32 +280,32 @@ function Ie(e, n, s = void 0, t = void 0) {
|
|
|
280
280
|
},
|
|
281
281
|
onFailure(r, o) {
|
|
282
282
|
const a = r;
|
|
283
|
-
a.msg = o.errormsg, a.errCode = o.errorcode,
|
|
283
|
+
a.msg = o.errormsg, a.errCode = o.errorcode, n && n(a);
|
|
284
284
|
}
|
|
285
285
|
});
|
|
286
286
|
}
|
|
287
|
-
const
|
|
287
|
+
const U = {
|
|
288
288
|
"Content-Type": "application/json",
|
|
289
289
|
Accept: "application/json,text/javascript,*/*"
|
|
290
290
|
};
|
|
291
|
-
function
|
|
291
|
+
function Ne(e, t, s = void 0, n = void 0) {
|
|
292
292
|
const { space: i, currentUser: r } = e, a = `${i}${{
|
|
293
293
|
URIUGr: "/3drdfpersist/resources/v1/usersgroup"
|
|
294
294
|
}.URIUGr}`, c = {
|
|
295
295
|
groups: [
|
|
296
296
|
{
|
|
297
|
-
title:
|
|
298
|
-
description:
|
|
299
|
-
members:
|
|
297
|
+
title: t.title,
|
|
298
|
+
description: t.description,
|
|
299
|
+
members: t.members || [r.email, "samuel.mureau@beam3.fr"],
|
|
300
300
|
pending_members: [],
|
|
301
|
-
sharing:
|
|
302
|
-
visibility:
|
|
301
|
+
sharing: t.sharing,
|
|
302
|
+
visibility: t.visibility
|
|
303
303
|
}
|
|
304
304
|
]
|
|
305
305
|
};
|
|
306
306
|
m(a, {
|
|
307
307
|
method: "POST",
|
|
308
|
-
headers:
|
|
308
|
+
headers: U,
|
|
309
309
|
data: JSON.stringify(c),
|
|
310
310
|
onComplete(d) {
|
|
311
311
|
s && s(JSON.parse(d));
|
|
@@ -313,12 +313,12 @@ function ve(e, n, s = void 0, t = void 0) {
|
|
|
313
313
|
onFailure(d, p) {
|
|
314
314
|
console.log(d);
|
|
315
315
|
const u = d;
|
|
316
|
-
u.msg = p.errormsg, u.errCode = p.errorcode, console.log("❌ sendDirectMessage => ", u),
|
|
316
|
+
u.msg = p.errormsg, u.errCode = p.errorcode, console.log("❌ sendDirectMessage => ", u), n && n(u);
|
|
317
317
|
}
|
|
318
318
|
});
|
|
319
319
|
}
|
|
320
|
-
function
|
|
321
|
-
const { space: i, tenant: r } = e, o = i, a = `/3drdfpersist/v1/resources/${
|
|
320
|
+
function ke(e, t, s = void 0, n = 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",
|
|
@@ -332,19 +332,19 @@ function Ne(e, n, s = void 0, t = void 0) {
|
|
|
332
332
|
},
|
|
333
333
|
onFailure(f, l) {
|
|
334
334
|
const g = f;
|
|
335
|
-
g.msg = l.errormsg, g.errCode = l.errorcode,
|
|
335
|
+
g.msg = l.errormsg, g.errCode = l.errorcode, n && n(g);
|
|
336
336
|
}
|
|
337
337
|
});
|
|
338
338
|
}
|
|
339
|
-
function
|
|
340
|
-
const { space:
|
|
339
|
+
function H(e, t = void 0, s = void 0) {
|
|
340
|
+
const { space: n, tenant: i } = e, r = n, 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
343
|
}, d = `${r}${o}${a}`;
|
|
344
344
|
m(d, {
|
|
345
345
|
OPTsH: c,
|
|
346
346
|
onComplete(p) {
|
|
347
|
-
|
|
347
|
+
t && t(JSON.parse(p));
|
|
348
348
|
},
|
|
349
349
|
onFailure(p, u) {
|
|
350
350
|
const f = p;
|
|
@@ -352,8 +352,8 @@ function q(e, n = void 0, s = void 0) {
|
|
|
352
352
|
}
|
|
353
353
|
});
|
|
354
354
|
}
|
|
355
|
-
function
|
|
356
|
-
const { space:
|
|
355
|
+
function Ae(e, t = void 0, s = void 0) {
|
|
356
|
+
const { space: n, currentUser: i } = e, a = `${n}/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
|
} };
|
|
@@ -363,11 +363,11 @@ function ke(e, n = void 0, s = void 0) {
|
|
|
363
363
|
onComplete(p) {
|
|
364
364
|
const u = JSON.parse(p), f = {}, l = u.groups.filter((g) => g.uri.startsWith("uuid:"));
|
|
365
365
|
if (i && Object.keys(i).length > 0) {
|
|
366
|
-
const g = l.filter((S) => S.owner === i.email),
|
|
367
|
-
f.iam =
|
|
366
|
+
const g = l.filter((S) => S.owner === i.email), y = l.filter((S) => S.members.includes(i.email)), h = g.concat(y);
|
|
367
|
+
f.iam = h, f.UG = l, f.iamMember = y, H(
|
|
368
368
|
e,
|
|
369
369
|
(S) => {
|
|
370
|
-
f.rules = S,
|
|
370
|
+
f.rules = S, t && t(f);
|
|
371
371
|
},
|
|
372
372
|
(S) => {
|
|
373
373
|
s && s(S);
|
|
@@ -383,13 +383,13 @@ function ke(e, n = void 0, s = void 0) {
|
|
|
383
383
|
console.log(p);
|
|
384
384
|
}
|
|
385
385
|
}
|
|
386
|
-
function
|
|
387
|
-
const { space: s } = e, i = `${s}/3drdfpersist/resources/v1/usersgroup/${
|
|
386
|
+
function je(e, t) {
|
|
387
|
+
const { space: s } = e, i = `${s}/3drdfpersist/resources/v1/usersgroup/${t}`;
|
|
388
388
|
m(i, {
|
|
389
389
|
method: "DELETE"
|
|
390
390
|
});
|
|
391
391
|
}
|
|
392
|
-
function
|
|
392
|
+
function Fe(e, t, s, n = void 0, i = void 0) {
|
|
393
393
|
const { space: r, tenant: o } = e, a = {
|
|
394
394
|
URITI: "/3drdfpersist/resources/v1/template-instances",
|
|
395
395
|
URIUGr: "/3drdfpersist/resources/v1/usersgroup",
|
|
@@ -398,37 +398,37 @@ function je(e, n, s, t = void 0, i = void 0) {
|
|
|
398
398
|
nexURImem: "/members",
|
|
399
399
|
OPTsTI: "?$mask=dsaccess:Mask.GroupUI.Properties",
|
|
400
400
|
OPTsTenant: `tenant=dstenant:${o}`
|
|
401
|
-
}, c = s, d = `${r}${a.URIUGr}/${
|
|
401
|
+
}, c = s, d = `${r}${a.URIUGr}/${t}`, p = JSON.stringify(c);
|
|
402
402
|
m(d, {
|
|
403
|
-
headers:
|
|
403
|
+
headers: U,
|
|
404
404
|
method: "PATCH",
|
|
405
405
|
data: p,
|
|
406
406
|
type: "json",
|
|
407
407
|
onComplete(u) {
|
|
408
|
-
|
|
408
|
+
n && n(u);
|
|
409
409
|
},
|
|
410
410
|
onFailure(u) {
|
|
411
411
|
i && i(u);
|
|
412
412
|
}
|
|
413
413
|
});
|
|
414
414
|
}
|
|
415
|
-
function
|
|
416
|
-
const { space: r } = e, a = `${r}/3drdfpersist/resources/v1/usersgroup/${
|
|
415
|
+
function Ue(e, t, s, n = void 0, i = void 0) {
|
|
416
|
+
const { space: r } = e, a = `${r}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
|
|
417
417
|
m(a, {
|
|
418
418
|
method: "PATCH",
|
|
419
|
-
headers:
|
|
419
|
+
headers: U,
|
|
420
420
|
data: JSON.stringify(s),
|
|
421
421
|
type: "json",
|
|
422
422
|
onComplete(d) {
|
|
423
|
-
|
|
423
|
+
n && n(d);
|
|
424
424
|
},
|
|
425
425
|
onFailure(d) {
|
|
426
426
|
i && i(d);
|
|
427
427
|
}
|
|
428
428
|
});
|
|
429
429
|
}
|
|
430
|
-
function
|
|
431
|
-
const { space: i } = e, o = `${i}/3drdfpersist/resources/v1/usersgroup/${
|
|
430
|
+
function xe(e, t, s = void 0, n = void 0) {
|
|
431
|
+
const { space: i } = e, o = `${i}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
|
|
432
432
|
m(o, {
|
|
433
433
|
opts: {
|
|
434
434
|
method: "GET",
|
|
@@ -441,16 +441,16 @@ function Ue(e, n, s = void 0, t = void 0) {
|
|
|
441
441
|
s && s(JSON.parse(d));
|
|
442
442
|
},
|
|
443
443
|
onFailure(d) {
|
|
444
|
-
|
|
444
|
+
n && n(d);
|
|
445
445
|
}
|
|
446
446
|
});
|
|
447
447
|
}
|
|
448
|
-
async function
|
|
448
|
+
async function z(e, t, s) {
|
|
449
449
|
if (e.space) {
|
|
450
|
-
const
|
|
451
|
-
m(
|
|
450
|
+
const n = `${e.space}/resources/v1/application/CSRF`;
|
|
451
|
+
m(n, {
|
|
452
452
|
onComplete(i) {
|
|
453
|
-
i = JSON.parse(i),
|
|
453
|
+
i = JSON.parse(i), t && t(i.csrf);
|
|
454
454
|
},
|
|
455
455
|
onFailure(i, r, o) {
|
|
456
456
|
s && s({ error: i, headers: r, xhr: o });
|
|
@@ -458,27 +458,27 @@ async function H(e, n, s) {
|
|
|
458
458
|
});
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
|
-
var
|
|
462
|
-
function
|
|
463
|
-
return Object.prototype.hasOwnProperty.call(e,
|
|
461
|
+
var N = {};
|
|
462
|
+
function Q(e, t) {
|
|
463
|
+
return Object.prototype.hasOwnProperty.call(e, t);
|
|
464
464
|
}
|
|
465
|
-
var
|
|
466
|
-
|
|
465
|
+
var Z = function(e, t, s, n) {
|
|
466
|
+
t = t || "&", s = s || "=";
|
|
467
467
|
var i = {};
|
|
468
468
|
if (typeof e != "string" || e.length === 0)
|
|
469
469
|
return i;
|
|
470
470
|
var r = /\+/g;
|
|
471
|
-
e = e.split(
|
|
471
|
+
e = e.split(t);
|
|
472
472
|
var o = 1e3;
|
|
473
|
-
|
|
473
|
+
n && typeof n.maxKeys == "number" && (o = n.maxKeys);
|
|
474
474
|
var a = e.length;
|
|
475
475
|
o > 0 && a > o && (a = o);
|
|
476
476
|
for (var c = 0; c < a; ++c) {
|
|
477
477
|
var d = e[c].replace(r, "%20"), p = d.indexOf(s), u, f, l, g;
|
|
478
|
-
p >= 0 ? (u = d.substr(0, p), f = d.substr(p + 1)) : (u = d, f = ""), l = decodeURIComponent(u), g = decodeURIComponent(f),
|
|
478
|
+
p >= 0 ? (u = d.substr(0, p), f = d.substr(p + 1)) : (u = d, f = ""), l = decodeURIComponent(u), g = decodeURIComponent(f), Q(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
|
+
}, I = function(e) {
|
|
482
482
|
switch (typeof e) {
|
|
483
483
|
case "string":
|
|
484
484
|
return e;
|
|
@@ -489,41 +489,41 @@ var Q = function(e, n, s, t) {
|
|
|
489
489
|
default:
|
|
490
490
|
return "";
|
|
491
491
|
}
|
|
492
|
-
},
|
|
493
|
-
return
|
|
494
|
-
var r = encodeURIComponent(
|
|
492
|
+
}, ee = function(e, t, s, n) {
|
|
493
|
+
return t = t || "&", s = s || "=", e === null && (e = void 0), typeof e == "object" ? Object.keys(e).map(function(i) {
|
|
494
|
+
var r = encodeURIComponent(I(i)) + s;
|
|
495
495
|
return Array.isArray(e[i]) ? e[i].map(function(o) {
|
|
496
|
-
return r + encodeURIComponent(
|
|
497
|
-
}).join(
|
|
498
|
-
}).filter(Boolean).join(
|
|
496
|
+
return r + encodeURIComponent(I(o));
|
|
497
|
+
}).join(t) : r + encodeURIComponent(I(e[i]));
|
|
498
|
+
}).filter(Boolean).join(t) : n ? encodeURIComponent(I(n)) + s + encodeURIComponent(I(e)) : "";
|
|
499
499
|
};
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
async function
|
|
500
|
+
N.decode = N.parse = Z;
|
|
501
|
+
N.encode = N.stringify = ee;
|
|
502
|
+
async function M(e, t = void 0, s = void 0, n = void 0) {
|
|
503
503
|
const i = e.space;
|
|
504
|
-
if (
|
|
504
|
+
if (t === void 0) {
|
|
505
505
|
console.log("Le paramètre docid est obligatoire");
|
|
506
506
|
return;
|
|
507
507
|
}
|
|
508
|
-
const r = i + `/resources/v1/modeler/documents/${
|
|
508
|
+
const r = i + `/resources/v1/modeler/documents/${t}`;
|
|
509
509
|
m(r, {
|
|
510
510
|
onComplete(o, a, c) {
|
|
511
511
|
const d = JSON.parse(o);
|
|
512
512
|
s && s(d);
|
|
513
513
|
},
|
|
514
514
|
onFailure(o) {
|
|
515
|
-
|
|
515
|
+
n && n(o);
|
|
516
516
|
}
|
|
517
517
|
});
|
|
518
518
|
}
|
|
519
|
-
async function
|
|
519
|
+
async function Pe(e, t = void 0, s = void 0, n = void 0) {
|
|
520
520
|
const i = e.space;
|
|
521
|
-
if (
|
|
521
|
+
if (t === 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'`, o =
|
|
526
|
-
$ids:
|
|
525
|
+
let r = `${i}/resources/v1/modeler/documents/ids?$include=!files,!ownerInfo,!originatorInfo,!relOwnerInfo'`, o = N.stringify({
|
|
526
|
+
$ids: t.toString().replace('"', "").replace("[", "").replace("]", "")
|
|
527
527
|
});
|
|
528
528
|
m(r, {
|
|
529
529
|
method: "POST",
|
|
@@ -536,17 +536,17 @@ async function xe(e, n = void 0, s = void 0, t = void 0) {
|
|
|
536
536
|
s && s(p);
|
|
537
537
|
},
|
|
538
538
|
onFailure(a) {
|
|
539
|
-
|
|
539
|
+
n && n(a);
|
|
540
540
|
}
|
|
541
541
|
});
|
|
542
542
|
}
|
|
543
|
-
function
|
|
543
|
+
function k(e, t = void 0, s = void 0) {
|
|
544
544
|
if (e.objID && e.objID !== "") {
|
|
545
|
-
let
|
|
546
|
-
m(
|
|
545
|
+
let n = `${e.space}/resources/v1/modeler/documents/${e.objID}`;
|
|
546
|
+
m(n, {
|
|
547
547
|
onComplete(i, r, o) {
|
|
548
548
|
const a = JSON.parse(i);
|
|
549
|
-
e.token = a?.csrf?.value, e.datas = a?.data[0],
|
|
549
|
+
e.token = a?.csrf?.value, e.datas = a?.data[0], t && t(e);
|
|
550
550
|
},
|
|
551
551
|
onFailure(i) {
|
|
552
552
|
s && s(i);
|
|
@@ -555,21 +555,21 @@ function A(e, n = void 0, s = void 0) {
|
|
|
555
555
|
} else
|
|
556
556
|
O(
|
|
557
557
|
e,
|
|
558
|
-
(
|
|
559
|
-
console.log("_3DSpace_get_csrf / _3DSpace_csrf",
|
|
558
|
+
(n) => {
|
|
559
|
+
console.log("_3DSpace_get_csrf / _3DSpace_csrf", n), t && t(n);
|
|
560
560
|
},
|
|
561
|
-
(
|
|
562
|
-
s && s(
|
|
561
|
+
(n) => {
|
|
562
|
+
s && s(n);
|
|
563
563
|
}
|
|
564
564
|
);
|
|
565
565
|
}
|
|
566
|
-
function O(e,
|
|
566
|
+
function O(e, t = void 0, s = void 0) {
|
|
567
567
|
if (e.space) {
|
|
568
|
-
const
|
|
569
|
-
m(
|
|
568
|
+
const n = e.space + "/resources/v1/application/CSRF";
|
|
569
|
+
m(n, {
|
|
570
570
|
onComplete(i, r, o) {
|
|
571
571
|
const a = JSON.parse(i);
|
|
572
|
-
|
|
572
|
+
t && t(a.csrf.value);
|
|
573
573
|
},
|
|
574
574
|
onFailure(i, r, o) {
|
|
575
575
|
s && s({
|
|
@@ -582,19 +582,19 @@ function O(e, n = void 0, s = void 0) {
|
|
|
582
582
|
} else
|
|
583
583
|
s && s("ERROR : url du 3DSpace non défini.");
|
|
584
584
|
}
|
|
585
|
-
function
|
|
586
|
-
let
|
|
587
|
-
|
|
585
|
+
function x(e, t = void 0, s = void 0) {
|
|
586
|
+
let n = e.space + `/resources/v1/modeler/documents/${e.objID}/files/DownloadTicket`;
|
|
587
|
+
k(
|
|
588
588
|
e,
|
|
589
589
|
(i) => {
|
|
590
|
-
m(
|
|
590
|
+
m(n, {
|
|
591
591
|
method: "PUT",
|
|
592
592
|
headers: {
|
|
593
593
|
ENO_CSRF_TOKEN: e.token
|
|
594
594
|
},
|
|
595
595
|
onComplete(r, o) {
|
|
596
596
|
const c = JSON.parse(r).data[0].dataelements.ticketURL;
|
|
597
|
-
|
|
597
|
+
t && t(c, o);
|
|
598
598
|
},
|
|
599
599
|
onFailure(r, o) {
|
|
600
600
|
console.warn("☠️ error => ", r, o), s && s(r, o);
|
|
@@ -606,8 +606,8 @@ function U(e, n = void 0, s = void 0) {
|
|
|
606
606
|
}
|
|
607
607
|
);
|
|
608
608
|
}
|
|
609
|
-
function
|
|
610
|
-
const r = `${e.space}/resources/v1/modeler/documents/${
|
|
609
|
+
function Re(e, t, s, n = void 0, i = void 0) {
|
|
610
|
+
const r = `${e.space}/resources/v1/modeler/documents/${t}/files/DownloadTicket`;
|
|
611
611
|
s || (s = e.token), m(r, {
|
|
612
612
|
method: "PUT",
|
|
613
613
|
headers: {
|
|
@@ -618,7 +618,7 @@ function Pe(e, n, s, t = void 0, i = void 0) {
|
|
|
618
618
|
if (console.log("☠️ info => ", a), a.success === !0)
|
|
619
619
|
try {
|
|
620
620
|
const c = a.data[0].dataelements.ticketURL;
|
|
621
|
-
|
|
621
|
+
n && n(c);
|
|
622
622
|
} catch (c) {
|
|
623
623
|
i && i(c);
|
|
624
624
|
}
|
|
@@ -628,27 +628,27 @@ function Pe(e, n, s, t = void 0, i = void 0) {
|
|
|
628
628
|
}
|
|
629
629
|
});
|
|
630
630
|
}
|
|
631
|
-
function
|
|
632
|
-
const a = () =>
|
|
631
|
+
function J(e, t, s, n, i, r = void 0, o = void 0) {
|
|
632
|
+
const a = () => te(
|
|
633
633
|
e,
|
|
634
|
-
n,
|
|
635
|
-
s,
|
|
636
634
|
t,
|
|
635
|
+
s,
|
|
636
|
+
n,
|
|
637
637
|
i,
|
|
638
638
|
e.token,
|
|
639
639
|
r,
|
|
640
640
|
o
|
|
641
641
|
);
|
|
642
|
-
e.token ? a() :
|
|
642
|
+
e.token ? a() : k(
|
|
643
643
|
e,
|
|
644
|
-
|
|
644
|
+
t,
|
|
645
645
|
(c) => {
|
|
646
646
|
e.token = c.csrf.value, a();
|
|
647
647
|
}
|
|
648
648
|
);
|
|
649
649
|
}
|
|
650
|
-
function
|
|
651
|
-
const c = e.space + `/resources/v1/modeler/documents/${
|
|
650
|
+
function te(e, t, s, n, i, r, o = void 0, a = void 0) {
|
|
651
|
+
const c = e.space + `/resources/v1/modeler/documents/${t}/files/CheckinTicket`;
|
|
652
652
|
m(c, {
|
|
653
653
|
method: "PUT",
|
|
654
654
|
headers: {
|
|
@@ -656,12 +656,12 @@ function ee(e, n, s, t, i, r, o = void 0, a = void 0) {
|
|
|
656
656
|
},
|
|
657
657
|
onComplete(d, p, u) {
|
|
658
658
|
const f = JSON.parse(d).csrf, l = JSON.parse(d).data[0].dataelements, g = new FormData();
|
|
659
|
-
let
|
|
660
|
-
|
|
659
|
+
let y;
|
|
660
|
+
n instanceof Blob ? y = n : y = new Blob([n], {
|
|
661
661
|
type: "text/plain"
|
|
662
|
-
}), g.append("__fcs__jobTicket", l.ticket), g.append("file_0",
|
|
663
|
-
const
|
|
664
|
-
|
|
662
|
+
}), g.append("__fcs__jobTicket", l.ticket), g.append("file_0", y, i);
|
|
663
|
+
const h = {};
|
|
664
|
+
h.method = "POST", h.data = g, h.onComplete = function(S) {
|
|
665
665
|
let _ = {
|
|
666
666
|
method: "PUT",
|
|
667
667
|
headers: {
|
|
@@ -682,7 +682,7 @@ function ee(e, n, s, t, i, r, o = void 0, a = void 0) {
|
|
|
682
682
|
}
|
|
683
683
|
]
|
|
684
684
|
},
|
|
685
|
-
id:
|
|
685
|
+
id: t,
|
|
686
686
|
updateAction: "NONE"
|
|
687
687
|
}
|
|
688
688
|
]
|
|
@@ -699,26 +699,26 @@ function ee(e, n, s, t, i, r, o = void 0, a = void 0) {
|
|
|
699
699
|
e.space + `/resources/v1/modeler/documents/?$include=versions&tenant=${w}&e6w-lang=en&e6w-timezone=-120&xrequestedwith=xmlhttprequest`,
|
|
700
700
|
_
|
|
701
701
|
);
|
|
702
|
-
},
|
|
702
|
+
}, h.onFailure = function(S) {
|
|
703
703
|
a && a(S);
|
|
704
|
-
},
|
|
704
|
+
}, h.timeout = 0, m(l.ticketURL, h);
|
|
705
705
|
}
|
|
706
706
|
});
|
|
707
707
|
}
|
|
708
|
-
async function
|
|
709
|
-
e.space, e.token, e.ctx,
|
|
708
|
+
async function De(e, t, s, n = void 0, i = void 0) {
|
|
709
|
+
e.space, e.token, e.ctx, M(
|
|
710
710
|
e,
|
|
711
|
-
|
|
711
|
+
t,
|
|
712
712
|
(r) => {
|
|
713
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
|
+
J(
|
|
715
715
|
e,
|
|
716
|
-
|
|
716
|
+
t,
|
|
717
717
|
o,
|
|
718
718
|
s,
|
|
719
719
|
a,
|
|
720
720
|
(c) => {
|
|
721
|
-
|
|
721
|
+
n && n(c);
|
|
722
722
|
},
|
|
723
723
|
(c) => {
|
|
724
724
|
i && i(c);
|
|
@@ -730,7 +730,7 @@ async function Re(e, n, s, t = void 0, i = void 0) {
|
|
|
730
730
|
}
|
|
731
731
|
);
|
|
732
732
|
}
|
|
733
|
-
async function
|
|
733
|
+
async function Le(e, t, s, n, i = void 0, r = void 0) {
|
|
734
734
|
const o = e.space, a = e.token, c = e.ctx;
|
|
735
735
|
if (o !== "") {
|
|
736
736
|
let d = `${o}/resources/v1/modeler/documents/files/CheckinTicket`;
|
|
@@ -740,100 +740,103 @@ async function De(e, n, s, t, i = void 0, r = void 0) {
|
|
|
740
740
|
ENO_CSRF_TOKEN: a
|
|
741
741
|
},
|
|
742
742
|
onComplete(p, u, f) {
|
|
743
|
-
|
|
744
|
-
|
|
743
|
+
const l = JSON.parse(p).csrf;
|
|
744
|
+
let g = JSON.parse(p).data[0].dataelements, y = new FormData(), h;
|
|
745
|
+
t instanceof Blob ? h = t : h = new Blob([t], {
|
|
745
746
|
type: "text/plain"
|
|
746
|
-
}),
|
|
747
|
-
const
|
|
748
|
-
let
|
|
747
|
+
}), y.append("__fcs__jobTicket", g.ticket), y.append("file_0", h, s);
|
|
748
|
+
const S = (w) => w.indexOf(".") === -1 ? w : w.split(".").slice(0, -1).join(".");
|
|
749
|
+
let _ = {
|
|
749
750
|
method: "POST",
|
|
750
|
-
data:
|
|
751
|
-
onComplete(
|
|
752
|
-
let
|
|
751
|
+
data: y,
|
|
752
|
+
onComplete(w) {
|
|
753
|
+
let T = L(), j = {
|
|
753
754
|
method: "POST",
|
|
754
755
|
headers: {
|
|
755
756
|
ENO_CSRF_TOKEN: a,
|
|
756
757
|
Accept: "application/json",
|
|
757
|
-
"Content-Type": "application/json"
|
|
758
|
+
"Content-Type": "application/json",
|
|
759
|
+
SecurityContext: encodeURIComponent("ctx::" + c)
|
|
758
760
|
},
|
|
759
761
|
data: JSON.stringify({
|
|
762
|
+
csrf: l,
|
|
760
763
|
data: [
|
|
761
764
|
{
|
|
762
765
|
type: "Document",
|
|
763
766
|
dataelements: {
|
|
764
|
-
title:
|
|
765
|
-
description:
|
|
766
|
-
policy: "Document Release"
|
|
767
|
+
title: S(s),
|
|
768
|
+
description: n
|
|
769
|
+
// policy: "Document Release",
|
|
767
770
|
},
|
|
768
771
|
relateddata: {
|
|
769
772
|
files: [
|
|
770
773
|
{
|
|
771
774
|
dataelements: {
|
|
772
775
|
title: s,
|
|
773
|
-
receipt:
|
|
776
|
+
receipt: w
|
|
774
777
|
}
|
|
775
778
|
}
|
|
776
779
|
]
|
|
777
780
|
},
|
|
778
|
-
tempId:
|
|
781
|
+
tempId: T
|
|
779
782
|
}
|
|
780
783
|
]
|
|
781
784
|
}),
|
|
782
785
|
type: "json",
|
|
783
|
-
onComplete(
|
|
784
|
-
i && i(
|
|
786
|
+
onComplete(F) {
|
|
787
|
+
i && i(F);
|
|
785
788
|
},
|
|
786
|
-
onFailure(
|
|
787
|
-
r && r(
|
|
789
|
+
onFailure(F) {
|
|
790
|
+
r && r(F);
|
|
788
791
|
}
|
|
789
792
|
};
|
|
790
793
|
m(
|
|
791
|
-
o + "/resources/v1/modeler/documents/?
|
|
792
|
-
|
|
794
|
+
o + "/resources/v1/modeler/documents/?e6w-lang=fr&e6w-timezone=-120&xrequestedwith=xmlhttprequest",
|
|
795
|
+
j
|
|
793
796
|
);
|
|
794
797
|
},
|
|
795
|
-
onFailure(
|
|
796
|
-
r && r(
|
|
798
|
+
onFailure(w) {
|
|
799
|
+
r && r(w);
|
|
797
800
|
},
|
|
798
801
|
timeout: 0
|
|
799
802
|
};
|
|
800
|
-
m(
|
|
803
|
+
m(g.ticketURL, _);
|
|
801
804
|
}
|
|
802
805
|
});
|
|
803
806
|
}
|
|
804
807
|
}
|
|
805
|
-
function
|
|
808
|
+
function A(e, t = void 0, s = void 0, n = void 0, i = void 0, r = void 0, o = !1) {
|
|
806
809
|
const a = `${e.space}/resources/modeler/pno/person?current=true&select=preferredcredentials&select=collabspaces`;
|
|
807
810
|
m(a, {
|
|
808
811
|
method: "GET",
|
|
809
812
|
onComplete(c) {
|
|
810
813
|
const d = JSON.parse(c);
|
|
811
814
|
let p = "", u, f, l;
|
|
812
|
-
if (
|
|
813
|
-
let g = d.collabspaces.find((
|
|
815
|
+
if (t) {
|
|
816
|
+
let g = d.collabspaces.find((y) => y.title === t);
|
|
814
817
|
if (g) {
|
|
815
|
-
u =
|
|
816
|
-
let
|
|
817
|
-
|
|
818
|
-
(
|
|
819
|
-
(w) => w.organization.pid ===
|
|
818
|
+
u = t;
|
|
819
|
+
let y = g.couples;
|
|
820
|
+
y = y.filter(
|
|
821
|
+
(h, S, _) => S === _.findIndex(
|
|
822
|
+
(w) => w.organization.pid === h.organization.pid && w.role.pid === h.role.pid
|
|
820
823
|
)
|
|
821
|
-
), s && (Array.isArray(s) ? s.forEach((
|
|
822
|
-
l ||
|
|
823
|
-
if (
|
|
824
|
-
l =
|
|
825
|
-
else if (
|
|
826
|
-
let _ =
|
|
827
|
-
(w) => w.role.name ===
|
|
824
|
+
), s && (Array.isArray(s) ? s.forEach((h) => {
|
|
825
|
+
l || y.forEach((S) => {
|
|
826
|
+
if (h === S.role.name && n === S.organization.title)
|
|
827
|
+
l = h, f = n;
|
|
828
|
+
else if (h === S.role.name) {
|
|
829
|
+
let _ = y.filter(
|
|
830
|
+
(w) => w.role.name === h
|
|
828
831
|
);
|
|
829
832
|
_.length === 1 ? (l = _[0].role.name, f = _[0].organization.title) : r(_);
|
|
830
833
|
}
|
|
831
834
|
});
|
|
832
|
-
}) :
|
|
833
|
-
if (s ===
|
|
834
|
-
l = s, f =
|
|
835
|
-
else if (s ===
|
|
836
|
-
let S =
|
|
835
|
+
}) : y.forEach((h) => {
|
|
836
|
+
if (s === h.role.name && n === h.organization.title)
|
|
837
|
+
l = s, f = n;
|
|
838
|
+
else if (s === h.role.name) {
|
|
839
|
+
let S = y.filter(
|
|
837
840
|
(_) => _.role.name === s
|
|
838
841
|
);
|
|
839
842
|
S.length === 1 ? (l = S[0].role.name, f = S[0].organization.title) : r(S);
|
|
@@ -851,27 +854,27 @@ function j(e, n = void 0, s = void 0, t = void 0, i = void 0, r = void 0, o = !1
|
|
|
851
854
|
}
|
|
852
855
|
});
|
|
853
856
|
}
|
|
854
|
-
async function
|
|
857
|
+
async function G(e, t = void 0, s = void 0) {
|
|
855
858
|
return (!e.objID || e.objID === "") && (console.warn(
|
|
856
859
|
"_3DSpace_download_doc() / Le paramètre objectId est obligatoire"
|
|
857
860
|
), s && s(
|
|
858
861
|
"_3DSpace_download_doc() / Le paramètre objectId est obligatoire"
|
|
859
862
|
)), (e.space === "" || !e.space) && (console.warn(
|
|
860
863
|
"_3DSpace_download_doc() / Le paramètre space est obligatoire"
|
|
861
|
-
), s && s("_3DSpace_download_doc() / Le paramètre space est obligatoire")), (e.token === "" || !e.token) &&
|
|
864
|
+
), s && s("_3DSpace_download_doc() / Le paramètre space est obligatoire")), (e.token === "" || !e.token) && z(
|
|
862
865
|
e,
|
|
863
|
-
(
|
|
864
|
-
e.token =
|
|
866
|
+
(n) => {
|
|
867
|
+
e.token = n;
|
|
865
868
|
},
|
|
866
|
-
(
|
|
867
|
-
console.log("☠️ error => ",
|
|
869
|
+
(n) => {
|
|
870
|
+
console.log("☠️ error => ", n);
|
|
868
871
|
}
|
|
869
|
-
), new Promise((
|
|
870
|
-
|
|
872
|
+
), new Promise((n, i) => {
|
|
873
|
+
x(
|
|
871
874
|
e,
|
|
872
875
|
(r) => {
|
|
873
876
|
e?.returnType === "blob" ? (console.log("ticketURL blob", r), fetch(r).then((o) => o.blob()).then((o) => {
|
|
874
|
-
|
|
877
|
+
t && t(o);
|
|
875
878
|
}).catch((o) => {
|
|
876
879
|
s && s(o);
|
|
877
880
|
})) : m(r, {
|
|
@@ -882,7 +885,7 @@ async function J(e, n = void 0, s = void 0) {
|
|
|
882
885
|
} catch {
|
|
883
886
|
a = o;
|
|
884
887
|
}
|
|
885
|
-
|
|
888
|
+
t && typeof t == "function" && t(a), n(a);
|
|
886
889
|
},
|
|
887
890
|
onFailure(o, a, c) {
|
|
888
891
|
s && (console.log("error http", o), s({
|
|
@@ -903,23 +906,23 @@ async function J(e, n = void 0, s = void 0) {
|
|
|
903
906
|
);
|
|
904
907
|
});
|
|
905
908
|
}
|
|
906
|
-
async function
|
|
907
|
-
typeof
|
|
909
|
+
async function ne(e, t, s = void 0, n = void 0) {
|
|
910
|
+
typeof t < "u" && Array.isArray(t) && t?.length > 0 ? X({
|
|
908
911
|
credentials: e,
|
|
909
|
-
myArray:
|
|
912
|
+
myArray: t,
|
|
910
913
|
chunk: 80,
|
|
911
|
-
fn_to_call:
|
|
914
|
+
fn_to_call: se
|
|
912
915
|
}, (r) => {
|
|
913
916
|
s && s(r);
|
|
914
917
|
}) : (console.warn(
|
|
915
918
|
"La liste d'objects dans la fonction _3DSpace_download_multidoc est vide ou non défini."
|
|
916
|
-
),
|
|
919
|
+
), n && n(
|
|
917
920
|
"La liste d'objects dans la fonction _3DSpace_download_multidoc est vide ou non défini."
|
|
918
921
|
));
|
|
919
922
|
}
|
|
920
|
-
function
|
|
923
|
+
function se(e, t, s = void 0, n = void 0, i = void 0) {
|
|
921
924
|
const r = [];
|
|
922
|
-
|
|
925
|
+
t.forEach((c) => {
|
|
923
926
|
r.push({
|
|
924
927
|
id: c
|
|
925
928
|
});
|
|
@@ -943,17 +946,17 @@ function ne(e, n, s = void 0, t = void 0, i = void 0) {
|
|
|
943
946
|
const u = p.dataelements.fileName, f = p.dataelements.ticketURL;
|
|
944
947
|
m(f, {
|
|
945
948
|
onComplete: (l, g) => {
|
|
946
|
-
let
|
|
949
|
+
let y;
|
|
947
950
|
try {
|
|
948
|
-
|
|
951
|
+
y = JSON.parse(l);
|
|
949
952
|
} catch {
|
|
950
|
-
|
|
953
|
+
y = l.blob();
|
|
951
954
|
}
|
|
952
|
-
|
|
955
|
+
n && n({
|
|
953
956
|
objectId: p.id,
|
|
954
957
|
headers: g,
|
|
955
958
|
fileName: u,
|
|
956
|
-
data:
|
|
959
|
+
data: y
|
|
957
960
|
});
|
|
958
961
|
},
|
|
959
962
|
onFailure: (l) => {
|
|
@@ -970,9 +973,9 @@ function ne(e, n, s = void 0, t = void 0, i = void 0) {
|
|
|
970
973
|
}
|
|
971
974
|
});
|
|
972
975
|
}
|
|
973
|
-
function
|
|
976
|
+
function Me(e, t, s = void 0, n = void 0) {
|
|
974
977
|
return new Promise((i) => {
|
|
975
|
-
if (e.token === "" && O(e),
|
|
978
|
+
if (e.token === "" && O(e), t !== void 0 && t !== "" && t !== null) {
|
|
976
979
|
const r = `${e.space}/resources/v1/modeler/dslc/maturity/getNextStates`;
|
|
977
980
|
let o = {
|
|
978
981
|
method: "POST",
|
|
@@ -985,7 +988,7 @@ function Le(e, n, s = void 0, t = void 0) {
|
|
|
985
988
|
data: JSON.stringify({
|
|
986
989
|
data: [
|
|
987
990
|
{
|
|
988
|
-
id:
|
|
991
|
+
id: t
|
|
989
992
|
}
|
|
990
993
|
]
|
|
991
994
|
}),
|
|
@@ -994,16 +997,16 @@ function Le(e, n, s = void 0, t = void 0) {
|
|
|
994
997
|
s && s(a);
|
|
995
998
|
},
|
|
996
999
|
onFailure(a) {
|
|
997
|
-
|
|
1000
|
+
n && n(a);
|
|
998
1001
|
}
|
|
999
1002
|
};
|
|
1000
1003
|
m(r, o);
|
|
1001
1004
|
}
|
|
1002
1005
|
});
|
|
1003
1006
|
}
|
|
1004
|
-
function
|
|
1007
|
+
function Je(e, t, s, n = void 0, i = void 0) {
|
|
1005
1008
|
return new Promise((r) => {
|
|
1006
|
-
if (e.token === "" && O(e),
|
|
1009
|
+
if (e.token === "" && O(e), t !== void 0 && t !== "" && t !== null) {
|
|
1007
1010
|
const o = `${e.space}/resources/v1/modeler/dslc/maturity/changeState`;
|
|
1008
1011
|
let a = {
|
|
1009
1012
|
method: "POST",
|
|
@@ -1016,14 +1019,14 @@ function Me(e, n, s, t = void 0, i = void 0) {
|
|
|
1016
1019
|
data: JSON.stringify({
|
|
1017
1020
|
data: [
|
|
1018
1021
|
{
|
|
1019
|
-
id:
|
|
1022
|
+
id: t,
|
|
1020
1023
|
nextState: s
|
|
1021
1024
|
}
|
|
1022
1025
|
]
|
|
1023
1026
|
}),
|
|
1024
1027
|
type: "json",
|
|
1025
1028
|
onComplete(c) {
|
|
1026
|
-
|
|
1029
|
+
n && n(c);
|
|
1027
1030
|
},
|
|
1028
1031
|
onFailure(c) {
|
|
1029
1032
|
i && i(c);
|
|
@@ -1033,11 +1036,11 @@ function Me(e, n, s, t = void 0, i = void 0) {
|
|
|
1033
1036
|
}
|
|
1034
1037
|
});
|
|
1035
1038
|
}
|
|
1036
|
-
function
|
|
1039
|
+
function Ge(e, t, s = void 0, n = void 0) {
|
|
1037
1040
|
return new Promise((i) => {
|
|
1038
|
-
if (e.token === "" && O(e),
|
|
1041
|
+
if (e.token === "" && O(e), t !== void 0 && t !== "" && t !== null) {
|
|
1039
1042
|
const r = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=0&withAttributes=0&withCopyFrom=0&tenant=${e.tenant}`;
|
|
1040
|
-
|
|
1043
|
+
A(
|
|
1041
1044
|
e.space,
|
|
1042
1045
|
"ESPACE COMMUN",
|
|
1043
1046
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -1058,7 +1061,7 @@ function Je(e, n, s = void 0, t = void 0) {
|
|
|
1058
1061
|
data: JSON.stringify({
|
|
1059
1062
|
graphRequests: [
|
|
1060
1063
|
{
|
|
1061
|
-
id:
|
|
1064
|
+
id: t
|
|
1062
1065
|
}
|
|
1063
1066
|
]
|
|
1064
1067
|
}),
|
|
@@ -1067,18 +1070,18 @@ function Je(e, n, s = void 0, t = void 0) {
|
|
|
1067
1070
|
s && s(a);
|
|
1068
1071
|
},
|
|
1069
1072
|
onFailure(a) {
|
|
1070
|
-
|
|
1073
|
+
n && n(a);
|
|
1071
1074
|
}
|
|
1072
1075
|
};
|
|
1073
1076
|
m(r, o);
|
|
1074
1077
|
}
|
|
1075
1078
|
});
|
|
1076
1079
|
}
|
|
1077
|
-
function
|
|
1080
|
+
function Ee(e, t, s = void 0, n = void 0) {
|
|
1078
1081
|
return new Promise((i) => {
|
|
1079
|
-
if (e.token === "" && O(e),
|
|
1082
|
+
if (e.token === "" && O(e), t !== void 0 && t !== "" && t !== null) {
|
|
1080
1083
|
const r = `${e.space}/resources/lifecycle/revise/prepare_revise_maskattributes?tenant=${e.tenant}`;
|
|
1081
|
-
|
|
1084
|
+
A(
|
|
1082
1085
|
e.space,
|
|
1083
1086
|
"ESPACE COMMUN",
|
|
1084
1087
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -1100,10 +1103,10 @@ function Ge(e, n, s = void 0, t = void 0) {
|
|
|
1100
1103
|
data: [
|
|
1101
1104
|
{
|
|
1102
1105
|
"attribute[PLMReference.V_versionComment]": null,
|
|
1103
|
-
physicalid:
|
|
1106
|
+
physicalid: t,
|
|
1104
1107
|
type: "Document",
|
|
1105
1108
|
tenant: e.tenant,
|
|
1106
|
-
objectId:
|
|
1109
|
+
objectId: t,
|
|
1107
1110
|
policy: "Document Release",
|
|
1108
1111
|
availableSemantic: ["E", "LAST", "NEW", "DUP"]
|
|
1109
1112
|
}
|
|
@@ -1114,18 +1117,18 @@ function Ge(e, n, s = void 0, t = void 0) {
|
|
|
1114
1117
|
s && s(a);
|
|
1115
1118
|
},
|
|
1116
1119
|
onFailure(a) {
|
|
1117
|
-
|
|
1120
|
+
n && n(a);
|
|
1118
1121
|
}
|
|
1119
1122
|
};
|
|
1120
1123
|
m(r, o);
|
|
1121
1124
|
}
|
|
1122
1125
|
});
|
|
1123
1126
|
}
|
|
1124
|
-
function
|
|
1127
|
+
function Ke(e, t, s, n = void 0, i = void 0) {
|
|
1125
1128
|
return new Promise((r) => {
|
|
1126
|
-
if (e.token === "" && O(e),
|
|
1129
|
+
if (e.token === "" && O(e), t !== void 0 && t !== "" && t !== null) {
|
|
1127
1130
|
const o = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
|
|
1128
|
-
|
|
1131
|
+
A(
|
|
1129
1132
|
e.space,
|
|
1130
1133
|
"ESPACE COMMUN",
|
|
1131
1134
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -1146,7 +1149,7 @@ function Ee(e, n, s, t = void 0, i = void 0) {
|
|
|
1146
1149
|
data: JSON.stringify({
|
|
1147
1150
|
data: [
|
|
1148
1151
|
{
|
|
1149
|
-
physicalid:
|
|
1152
|
+
physicalid: t,
|
|
1150
1153
|
proposedRevision: s,
|
|
1151
1154
|
modifiedAttributes: {
|
|
1152
1155
|
revision: s
|
|
@@ -1158,7 +1161,7 @@ function Ee(e, n, s, t = void 0, i = void 0) {
|
|
|
1158
1161
|
}),
|
|
1159
1162
|
type: "json",
|
|
1160
1163
|
onComplete(c) {
|
|
1161
|
-
|
|
1164
|
+
n && n(c);
|
|
1162
1165
|
},
|
|
1163
1166
|
onFailure(c) {
|
|
1164
1167
|
i && i(c);
|
|
@@ -1168,19 +1171,19 @@ function Ee(e, n, s, t = void 0, i = void 0) {
|
|
|
1168
1171
|
}
|
|
1169
1172
|
});
|
|
1170
1173
|
}
|
|
1171
|
-
function
|
|
1174
|
+
function Be(e, t, s, n, i = void 0, r = void 0) {
|
|
1172
1175
|
return new Promise((o) => {
|
|
1173
1176
|
const a = `${e.space}/resources/v1/modeler/dsbks/dsbks:Bookmark`;
|
|
1174
1177
|
let c = {
|
|
1175
1178
|
attributes: {
|
|
1176
1179
|
title: s,
|
|
1177
|
-
description:
|
|
1180
|
+
description: n,
|
|
1178
1181
|
inheritedAccess: "no"
|
|
1179
1182
|
}
|
|
1180
1183
|
}, d = {
|
|
1181
1184
|
items: []
|
|
1182
1185
|
};
|
|
1183
|
-
|
|
1186
|
+
t && (d.parentId = t), d.items.push(c);
|
|
1184
1187
|
let p = {
|
|
1185
1188
|
method: "POST",
|
|
1186
1189
|
headers: {
|
|
@@ -1201,7 +1204,7 @@ function Ke(e, n, s, t, i = void 0, r = void 0) {
|
|
|
1201
1204
|
m(a, p);
|
|
1202
1205
|
});
|
|
1203
1206
|
}
|
|
1204
|
-
function
|
|
1207
|
+
function Ve(e, t, s, n, i = void 0, r = void 0) {
|
|
1205
1208
|
return console.log("credentials", e), new Promise((o) => {
|
|
1206
1209
|
`${e.space}`, JSON.stringify({
|
|
1207
1210
|
csrf: {
|
|
@@ -1212,11 +1215,11 @@ function Be(e, n, s, t, i = void 0, r = void 0) {
|
|
|
1212
1215
|
{
|
|
1213
1216
|
type: "Workspace",
|
|
1214
1217
|
cestamp: "businessobject",
|
|
1215
|
-
relId:
|
|
1216
|
-
id:
|
|
1218
|
+
relId: t,
|
|
1219
|
+
id: t,
|
|
1217
1220
|
dataelements: {
|
|
1218
1221
|
personList: s,
|
|
1219
|
-
eventsList:
|
|
1222
|
+
eventsList: n
|
|
1220
1223
|
},
|
|
1221
1224
|
tenant: e.tenant
|
|
1222
1225
|
}
|
|
@@ -1225,12 +1228,12 @@ function Be(e, n, s, t, i = void 0, r = void 0) {
|
|
|
1225
1228
|
});
|
|
1226
1229
|
}
|
|
1227
1230
|
//!SECTION
|
|
1228
|
-
function
|
|
1229
|
-
const
|
|
1231
|
+
function We(e, t = void 0, s = void 0) {
|
|
1232
|
+
const n = {
|
|
1230
1233
|
base: `${e.space}`,
|
|
1231
1234
|
uri: "/resources/bps/cspaces",
|
|
1232
1235
|
optTenant: `tenant=${e.tenant}`
|
|
1233
|
-
}, i = `${
|
|
1236
|
+
}, i = `${n.base}${n.uri}?${n.optTenant}`;
|
|
1234
1237
|
m(i, {
|
|
1235
1238
|
method: "GET",
|
|
1236
1239
|
headers: {
|
|
@@ -1239,17 +1242,17 @@ function Ve(e, n = void 0, s = void 0) {
|
|
|
1239
1242
|
},
|
|
1240
1243
|
onComplete(r, o) {
|
|
1241
1244
|
const a = JSON.parse(r);
|
|
1242
|
-
|
|
1245
|
+
t && t(a, o);
|
|
1243
1246
|
},
|
|
1244
1247
|
onFailure(r, o, a) {
|
|
1245
1248
|
s && s({ response: r, headers: o, xhr: a });
|
|
1246
1249
|
}
|
|
1247
1250
|
});
|
|
1248
1251
|
}
|
|
1249
|
-
function
|
|
1250
|
-
|
|
1252
|
+
function Xe(e, t, s, n) {
|
|
1253
|
+
x(
|
|
1251
1254
|
e.space,
|
|
1252
|
-
|
|
1255
|
+
t,
|
|
1253
1256
|
(i) => {
|
|
1254
1257
|
m(i, {
|
|
1255
1258
|
header: { ENO_CSRF_TOKEN: e.token },
|
|
@@ -1257,39 +1260,39 @@ function We(e, n, s, t) {
|
|
|
1257
1260
|
s && s(r);
|
|
1258
1261
|
},
|
|
1259
1262
|
onFailure: (r) => {
|
|
1260
|
-
console.log("error http", r),
|
|
1263
|
+
console.log("error http", r), n && n(r);
|
|
1261
1264
|
}
|
|
1262
1265
|
});
|
|
1263
1266
|
}
|
|
1264
1267
|
);
|
|
1265
1268
|
}
|
|
1266
|
-
async function
|
|
1269
|
+
async function qe(e, t, s = void 0, n = void 0) {
|
|
1267
1270
|
return new Promise((i) => {
|
|
1268
|
-
|
|
1271
|
+
x(e, t, (r) => {
|
|
1269
1272
|
m(r, {
|
|
1270
1273
|
onComplete: (o, a, c) => (i(JSON.parse(o)), s && s(JSON.parse(o), a, c), i),
|
|
1271
1274
|
onFailure: (o, a, c) => {
|
|
1272
|
-
|
|
1275
|
+
n && n(o, a, c), console.log(o, a?.errormsg);
|
|
1273
1276
|
}
|
|
1274
1277
|
});
|
|
1275
1278
|
});
|
|
1276
1279
|
});
|
|
1277
1280
|
}
|
|
1278
|
-
function Ye(e,
|
|
1279
|
-
const r = new Blob([JSON.stringify(
|
|
1280
|
-
|
|
1281
|
+
function Ye(e, t, s, n = void 0, i = void 0) {
|
|
1282
|
+
const r = new Blob([JSON.stringify(t)], { type: "text/plain" });
|
|
1283
|
+
k(
|
|
1281
1284
|
e,
|
|
1282
1285
|
s,
|
|
1283
1286
|
(o) => {
|
|
1284
1287
|
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;
|
|
1285
|
-
|
|
1288
|
+
J(
|
|
1286
1289
|
e,
|
|
1287
1290
|
s,
|
|
1288
1291
|
a,
|
|
1289
1292
|
r,
|
|
1290
1293
|
c,
|
|
1291
1294
|
(d) => {
|
|
1292
|
-
|
|
1295
|
+
n && n(d);
|
|
1293
1296
|
},
|
|
1294
1297
|
(d) => {
|
|
1295
1298
|
i && i(d);
|
|
@@ -1298,90 +1301,90 @@ function Ye(e, n, s, t = void 0, i = void 0) {
|
|
|
1298
1301
|
}
|
|
1299
1302
|
);
|
|
1300
1303
|
}
|
|
1301
|
-
let
|
|
1302
|
-
const
|
|
1303
|
-
async function
|
|
1304
|
-
e.objID && e.objID !== "" ?
|
|
1304
|
+
let E, K;
|
|
1305
|
+
const P = [];
|
|
1306
|
+
async function He(e, t = void 0, s = void 0) {
|
|
1307
|
+
e.objID && e.objID !== "" ? k(
|
|
1305
1308
|
e,
|
|
1306
|
-
(
|
|
1307
|
-
|
|
1309
|
+
(n) => {
|
|
1310
|
+
t && t(n);
|
|
1308
1311
|
},
|
|
1309
|
-
(
|
|
1310
|
-
s && s(
|
|
1312
|
+
(n) => {
|
|
1313
|
+
s && s(n);
|
|
1311
1314
|
}
|
|
1312
1315
|
) : (e.objID === null || e.objID === "") && O(
|
|
1313
1316
|
e,
|
|
1314
|
-
(
|
|
1315
|
-
|
|
1317
|
+
(n) => {
|
|
1318
|
+
t && t({ rep: n, msg: "Pas d'objID, ou invalide" });
|
|
1316
1319
|
},
|
|
1317
|
-
(
|
|
1318
|
-
s && s({ msg: "Pas d'objID et erreur sur le Space", err:
|
|
1320
|
+
(n) => {
|
|
1321
|
+
s && s({ msg: "Pas d'objID et erreur sur le Space", err: n });
|
|
1319
1322
|
}
|
|
1320
1323
|
);
|
|
1321
1324
|
}
|
|
1322
|
-
async function
|
|
1323
|
-
console.log("getDatasByTenant (getDocuments)", e), await
|
|
1325
|
+
async function ze(e, t = void 0, s = void 0) {
|
|
1326
|
+
console.log("getDatasByTenant (getDocuments)", e), await G(
|
|
1324
1327
|
e,
|
|
1325
|
-
(
|
|
1328
|
+
(n) => {
|
|
1326
1329
|
const i = {};
|
|
1327
|
-
i.obj =
|
|
1330
|
+
i.obj = n, console.log("getDatasByTenant (getDocuments) _datas", i), t && t?.(i);
|
|
1328
1331
|
},
|
|
1329
|
-
(
|
|
1330
|
-
s && s?.(
|
|
1332
|
+
(n) => {
|
|
1333
|
+
s && s?.(n);
|
|
1331
1334
|
}
|
|
1332
1335
|
);
|
|
1333
1336
|
}
|
|
1334
|
-
function
|
|
1335
|
-
const
|
|
1337
|
+
function Qe(e, t = void 0, s = void 0) {
|
|
1338
|
+
const n = [];
|
|
1336
1339
|
if (!e.objIds && !Array.isArray(e.objIds) && e.objIds.length === 0) {
|
|
1337
1340
|
console.warn("la liste est vide ou n'est pas un tableau");
|
|
1338
1341
|
return;
|
|
1339
1342
|
}
|
|
1340
1343
|
e.objIds.forEach((i, r) => {
|
|
1341
|
-
|
|
1344
|
+
G(
|
|
1342
1345
|
e,
|
|
1343
1346
|
i.objID,
|
|
1344
1347
|
(o) => {
|
|
1345
|
-
|
|
1348
|
+
n.push({ [i.name]: o }), i.name === "dbProjets" && (E = o.affaires.map((a) => a.objectID), ie(e, K)), r === e.objIds.length - 1 && (t && t(n), delete e.objIds, delete e.datas);
|
|
1346
1349
|
}
|
|
1347
1350
|
);
|
|
1348
1351
|
});
|
|
1349
1352
|
}
|
|
1350
|
-
function
|
|
1351
|
-
|
|
1353
|
+
function ie(e, t, s = void 0, n = void 0) {
|
|
1354
|
+
ne(
|
|
1352
1355
|
e,
|
|
1353
|
-
|
|
1356
|
+
E,
|
|
1354
1357
|
(i) => {
|
|
1355
|
-
const r = [...
|
|
1356
|
-
r.find((o) => o.objectID === i.objectId).data = i.data,
|
|
1358
|
+
const r = [...t];
|
|
1359
|
+
r.find((o) => o.objectID === i.objectId).data = i.data, K = r, P.push(i.data), s && s(P);
|
|
1357
1360
|
},
|
|
1358
1361
|
(i) => {
|
|
1359
|
-
|
|
1362
|
+
n && (n(i), console.log(i));
|
|
1360
1363
|
}
|
|
1361
1364
|
);
|
|
1362
1365
|
}
|
|
1363
|
-
const
|
|
1366
|
+
const ae = "FA35FB9B177A280065800EA0000F599C", oe = [
|
|
1364
1367
|
"swym",
|
|
1365
1368
|
"3dspace",
|
|
1366
1369
|
"drive",
|
|
1367
1370
|
"usersgroup",
|
|
1368
1371
|
"3dplan",
|
|
1369
1372
|
"dashboard"
|
|
1370
|
-
],
|
|
1373
|
+
], B = {
|
|
1371
1374
|
how: "ds6w:how",
|
|
1372
1375
|
what: "ds6w:what",
|
|
1373
1376
|
when: "ds6w:when",
|
|
1374
1377
|
where: "ds6w:where",
|
|
1375
1378
|
who: "ds6w:who",
|
|
1376
1379
|
why: "ds6w:why"
|
|
1377
|
-
},
|
|
1378
|
-
objId:
|
|
1380
|
+
}, re = {
|
|
1381
|
+
objId: ae,
|
|
1379
1382
|
pred: "who",
|
|
1380
1383
|
order_by: "desc",
|
|
1381
1384
|
tag: "testTag"
|
|
1382
1385
|
};
|
|
1383
|
-
function
|
|
1384
|
-
const { space: i, tenant: r } = e, { objId: o, pred: a, tag: c } =
|
|
1386
|
+
function Ze(e, t, s = void 0, n = void 0) {
|
|
1387
|
+
const { space: i, tenant: r } = e, { objId: o, pred: a, tag: c } = t, d = {
|
|
1385
1388
|
uri: "/resources/6w/tags",
|
|
1386
1389
|
otpCTX: "SecurityContext=preferred",
|
|
1387
1390
|
optTenant: `tenant=${r}`
|
|
@@ -1393,7 +1396,7 @@ function Qe(e, n, s = void 0, t = void 0) {
|
|
|
1393
1396
|
uri: `pid://${o}`
|
|
1394
1397
|
}
|
|
1395
1398
|
],
|
|
1396
|
-
predicate:
|
|
1399
|
+
predicate: B[a],
|
|
1397
1400
|
object: {
|
|
1398
1401
|
literal: c
|
|
1399
1402
|
}
|
|
@@ -1411,44 +1414,44 @@ function Qe(e, n, s = void 0, t = void 0) {
|
|
|
1411
1414
|
JSON.parse(f);
|
|
1412
1415
|
const l = {};
|
|
1413
1416
|
setTimeout(() => {
|
|
1414
|
-
|
|
1417
|
+
M(
|
|
1415
1418
|
e,
|
|
1416
1419
|
o,
|
|
1417
1420
|
(g) => {
|
|
1418
|
-
const
|
|
1419
|
-
l.name =
|
|
1421
|
+
const y = g.data[0].dataelements.title, h = g.data[0].dataelements.fileExtension !== void 0 ? g.data[0].dataelements.fileExtension : "", S = g.data[0].relateddata.ownerInfo[0].dataelements.name;
|
|
1422
|
+
l.name = y, l.ext = h, l.createBy = S, t.info = { ...l }, ce(
|
|
1420
1423
|
e,
|
|
1421
|
-
|
|
1424
|
+
t,
|
|
1422
1425
|
(_) => {
|
|
1423
1426
|
s && s(_);
|
|
1424
1427
|
},
|
|
1425
1428
|
(_) => {
|
|
1426
|
-
|
|
1429
|
+
n && n(_);
|
|
1427
1430
|
}
|
|
1428
1431
|
);
|
|
1429
1432
|
},
|
|
1430
|
-
(g,
|
|
1431
|
-
const
|
|
1432
|
-
|
|
1433
|
+
(g, y) => {
|
|
1434
|
+
const h = g;
|
|
1435
|
+
h.msg = y.errormsg, h.errCode = y.errorcode, console.log("❌ sendDirectMessage => ", h), n && n(h);
|
|
1433
1436
|
}
|
|
1434
1437
|
);
|
|
1435
1438
|
}, 2e3);
|
|
1436
1439
|
},
|
|
1437
1440
|
onFailure(f, l) {
|
|
1438
1441
|
const g = f;
|
|
1439
|
-
g.msg = l.errormsg, g.errCode = l.errorcode, console.log("❌ sendDirectMessage => ", g),
|
|
1442
|
+
g.msg = l.errormsg, g.errCode = l.errorcode, console.log("❌ sendDirectMessage => ", g), n && n(g);
|
|
1440
1443
|
}
|
|
1441
1444
|
});
|
|
1442
1445
|
}
|
|
1443
|
-
function
|
|
1444
|
-
console.log("obj ",
|
|
1445
|
-
const i =
|
|
1446
|
+
function ce(e, t, s = void 0, n = void 0) {
|
|
1447
|
+
console.log("obj ", t);
|
|
1448
|
+
const i = t.info.name, r = {
|
|
1446
1449
|
baseUrl: `https://${e.tenant.toLowerCase()}-eu1-fedsearch.3dexperience.3ds.com`,
|
|
1447
1450
|
uri: "/federated/search"
|
|
1448
1451
|
}, o = `${r.baseUrl}${r.uri}`, a = {
|
|
1449
1452
|
"Content-Type": "application/json",
|
|
1450
1453
|
Accept: "application/json,text/javascript,*/*"
|
|
1451
|
-
}, c =
|
|
1454
|
+
}, c = L(), d = {
|
|
1452
1455
|
with_indexing_date: !0,
|
|
1453
1456
|
with_synthesis: !0,
|
|
1454
1457
|
with_nls: !1,
|
|
@@ -1490,7 +1493,7 @@ function re(e, n, s = void 0, t = void 0) {
|
|
|
1490
1493
|
}
|
|
1491
1494
|
},
|
|
1492
1495
|
select_exclude_synthesis: ["ds6w:what/ds6w:topic"],
|
|
1493
|
-
order_by:
|
|
1496
|
+
order_by: re.order_by,
|
|
1494
1497
|
order_field: "relevance",
|
|
1495
1498
|
select_snippets: [
|
|
1496
1499
|
"ds6w:snippet",
|
|
@@ -1501,7 +1504,7 @@ function re(e, n, s = void 0, t = void 0) {
|
|
|
1501
1504
|
],
|
|
1502
1505
|
nresults: 40,
|
|
1503
1506
|
start: "0",
|
|
1504
|
-
source:
|
|
1507
|
+
source: oe,
|
|
1505
1508
|
tenant: e.tenant,
|
|
1506
1509
|
login: {
|
|
1507
1510
|
"3dspace": {
|
|
@@ -1519,12 +1522,12 @@ function re(e, n, s = void 0, t = void 0) {
|
|
|
1519
1522
|
},
|
|
1520
1523
|
onFailure(p, u) {
|
|
1521
1524
|
const f = p;
|
|
1522
|
-
f.msg = u.errormsg, f.errCode = u.errorcode, console.log("❌ sendDirectMessage => ", f),
|
|
1525
|
+
f.msg = u.errormsg, f.errCode = u.errorcode, console.log("❌ sendDirectMessage => ", f), n && n(f), console.log("Erreur de recuperation d'id du doc et des tags", p);
|
|
1523
1526
|
}
|
|
1524
1527
|
});
|
|
1525
1528
|
}
|
|
1526
|
-
function
|
|
1527
|
-
const { objId: i, pred: r, tag: o } =
|
|
1529
|
+
function et(e, t, s = void 0, n = void 0) {
|
|
1530
|
+
const { objId: i, pred: r, tag: o } = t, a = {
|
|
1528
1531
|
uri: "/resources/6w/tags",
|
|
1529
1532
|
otpCTX: "SecurityContext=preferred",
|
|
1530
1533
|
optTenant: `tenant=${e.tenant}`
|
|
@@ -1536,7 +1539,7 @@ function Ze(e, n, s = void 0, t = void 0) {
|
|
|
1536
1539
|
uri: `pid://${i}`
|
|
1537
1540
|
}
|
|
1538
1541
|
],
|
|
1539
|
-
predicate:
|
|
1542
|
+
predicate: B[r],
|
|
1540
1543
|
object: {
|
|
1541
1544
|
literal: o
|
|
1542
1545
|
}
|
|
@@ -1555,20 +1558,20 @@ function Ze(e, n, s = void 0, t = void 0) {
|
|
|
1555
1558
|
},
|
|
1556
1559
|
onFailure(p, u) {
|
|
1557
1560
|
const f = p;
|
|
1558
|
-
f.msg = u.errormsg, f.errCode = u.errorcode, console.log("❌ sendDirectMessage => ", f),
|
|
1561
|
+
f.msg = u.errormsg, f.errCode = u.errorcode, console.log("❌ sendDirectMessage => ", f), n && n(f);
|
|
1559
1562
|
}
|
|
1560
1563
|
});
|
|
1561
1564
|
}
|
|
1562
|
-
function
|
|
1565
|
+
function tt(e, t = "", s = void 0, n = void 0) {
|
|
1563
1566
|
const { space: i } = e;
|
|
1564
|
-
if (
|
|
1567
|
+
if (t === "")
|
|
1565
1568
|
return;
|
|
1566
1569
|
const r = {
|
|
1567
1570
|
uri: "/resources/v1/modeler/documents"
|
|
1568
1571
|
}, o = {
|
|
1569
1572
|
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
|
|
1570
1573
|
Accept: "application/json,text/javascript,*/*"
|
|
1571
|
-
}, 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=${
|
|
1574
|
+
}, 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}`;
|
|
1572
1575
|
m(a, {
|
|
1573
1576
|
method: "POST",
|
|
1574
1577
|
headers: o,
|
|
@@ -1578,25 +1581,25 @@ function et(e, n = "", s = void 0, t = void 0) {
|
|
|
1578
1581
|
},
|
|
1579
1582
|
onFailure(d, p) {
|
|
1580
1583
|
const u = d;
|
|
1581
|
-
u.msg = p.error,
|
|
1584
|
+
u.msg = p.error, n && n(u);
|
|
1582
1585
|
}
|
|
1583
1586
|
});
|
|
1584
1587
|
}
|
|
1585
|
-
async function C(e,
|
|
1586
|
-
const
|
|
1587
|
-
return m(
|
|
1588
|
+
async function C(e, t = void 0, s = void 0) {
|
|
1589
|
+
const n = e.space + "/api/index/tk";
|
|
1590
|
+
return m(n, {
|
|
1588
1591
|
onComplete(i, r, o) {
|
|
1589
1592
|
const a = JSON.parse(i);
|
|
1590
|
-
if (
|
|
1591
|
-
return
|
|
1593
|
+
if (t)
|
|
1594
|
+
return t(a), e.token = a?.result?.ServerToken;
|
|
1592
1595
|
},
|
|
1593
1596
|
onFailure(i) {
|
|
1594
1597
|
s && s(i);
|
|
1595
1598
|
}
|
|
1596
1599
|
});
|
|
1597
1600
|
}
|
|
1598
|
-
function
|
|
1599
|
-
const
|
|
1601
|
+
function nt(e, t = void 0, s = void 0) {
|
|
1602
|
+
const n = `${e.space}/api/exalead/whatsnew`, i = {
|
|
1600
1603
|
params: {
|
|
1601
1604
|
community_id: null,
|
|
1602
1605
|
hash_key: null,
|
|
@@ -1607,7 +1610,7 @@ function tt(e, n = void 0, s = void 0) {
|
|
|
1607
1610
|
}
|
|
1608
1611
|
};
|
|
1609
1612
|
C(e, (r) => {
|
|
1610
|
-
m(
|
|
1613
|
+
m(n, {
|
|
1611
1614
|
method: "POST",
|
|
1612
1615
|
headers: {
|
|
1613
1616
|
"X-DS-SWYM-CSRFTOKEN": r.result.ServerToken,
|
|
@@ -1617,7 +1620,7 @@ function tt(e, n = void 0, s = void 0) {
|
|
|
1617
1620
|
data: JSON.stringify(i),
|
|
1618
1621
|
type: "json",
|
|
1619
1622
|
onComplete(o, a) {
|
|
1620
|
-
|
|
1623
|
+
t && t(o, a);
|
|
1621
1624
|
},
|
|
1622
1625
|
onFailure(o, a) {
|
|
1623
1626
|
s && s(o, a);
|
|
@@ -1625,8 +1628,8 @@ function tt(e, n = void 0, s = void 0) {
|
|
|
1625
1628
|
});
|
|
1626
1629
|
});
|
|
1627
1630
|
}
|
|
1628
|
-
function
|
|
1629
|
-
const
|
|
1631
|
+
function st(e, t = void 0, s = void 0) {
|
|
1632
|
+
const n = `${e.space}/api/Recommendation/getpeoplefamiliartocurrentuser`, i = {
|
|
1630
1633
|
params: {
|
|
1631
1634
|
idsToFilterArr: [],
|
|
1632
1635
|
mode: "offline",
|
|
@@ -1636,7 +1639,7 @@ function nt(e, n = void 0, s = void 0) {
|
|
|
1636
1639
|
}
|
|
1637
1640
|
};
|
|
1638
1641
|
C(e, (r) => {
|
|
1639
|
-
m(
|
|
1642
|
+
m(n, {
|
|
1640
1643
|
method: "POST",
|
|
1641
1644
|
headers: {
|
|
1642
1645
|
"X-DS-SWYM-CSRFTOKEN": r.result.ServerToken,
|
|
@@ -1647,7 +1650,7 @@ function nt(e, n = void 0, s = void 0) {
|
|
|
1647
1650
|
type: "json",
|
|
1648
1651
|
onComplete(o, a) {
|
|
1649
1652
|
const c = o.result.hits.map((d) => ({ login: d.login, fullName: d.name }));
|
|
1650
|
-
|
|
1653
|
+
t && t(c, o);
|
|
1651
1654
|
},
|
|
1652
1655
|
onFailure(o, a) {
|
|
1653
1656
|
s && s(o, a);
|
|
@@ -1655,13 +1658,13 @@ function nt(e, n = void 0, s = void 0) {
|
|
|
1655
1658
|
});
|
|
1656
1659
|
});
|
|
1657
1660
|
}
|
|
1658
|
-
function
|
|
1659
|
-
const
|
|
1661
|
+
function it(e, t = void 0, s = void 0) {
|
|
1662
|
+
const n = {
|
|
1660
1663
|
base: e.space,
|
|
1661
1664
|
uri: "/api/community/listmycommunities",
|
|
1662
1665
|
limit: `/limit/${e.limit ? e.limit : 500}`,
|
|
1663
1666
|
page: `/page/${e.page ? e.page : "1"}`
|
|
1664
|
-
}, i = `${
|
|
1667
|
+
}, i = `${n.base}${n.uri}${n.limit}${n.page}`, r = [];
|
|
1665
1668
|
C(e, (o) => {
|
|
1666
1669
|
m(i, {
|
|
1667
1670
|
method: "GET",
|
|
@@ -1680,13 +1683,13 @@ function st(e, n = void 0, s = void 0) {
|
|
|
1680
1683
|
role: l.role,
|
|
1681
1684
|
access: l.access
|
|
1682
1685
|
};
|
|
1683
|
-
|
|
1686
|
+
de(
|
|
1684
1687
|
e,
|
|
1685
1688
|
l.id,
|
|
1686
|
-
(
|
|
1687
|
-
f++, g.members =
|
|
1689
|
+
(y) => {
|
|
1690
|
+
f++, g.members = y, r.push(g), f === u.length && t && t(r);
|
|
1688
1691
|
},
|
|
1689
|
-
(
|
|
1692
|
+
(y) => s(y)
|
|
1690
1693
|
);
|
|
1691
1694
|
});
|
|
1692
1695
|
},
|
|
@@ -1697,12 +1700,12 @@ function st(e, n = void 0, s = void 0) {
|
|
|
1697
1700
|
});
|
|
1698
1701
|
});
|
|
1699
1702
|
}
|
|
1700
|
-
function
|
|
1703
|
+
function de(e, t, s, n) {
|
|
1701
1704
|
const i = `${e.space}/api/community/listmembers`, r = {
|
|
1702
1705
|
params: {
|
|
1703
1706
|
page: e.page ? e.page : 1,
|
|
1704
1707
|
limit: e.limit ? e.limit : 50,
|
|
1705
|
-
community_id:
|
|
1708
|
+
community_id: t
|
|
1706
1709
|
}
|
|
1707
1710
|
};
|
|
1708
1711
|
C(e, (o) => {
|
|
@@ -1720,14 +1723,14 @@ function ce(e, n, s, t) {
|
|
|
1720
1723
|
},
|
|
1721
1724
|
onFailure(a, c) {
|
|
1722
1725
|
const d = a;
|
|
1723
|
-
d.status = c.status, d.response = c.errormsg,
|
|
1726
|
+
d.status = c.status, d.response = c.errormsg, n && n(d);
|
|
1724
1727
|
}
|
|
1725
1728
|
});
|
|
1726
1729
|
});
|
|
1727
1730
|
}
|
|
1728
|
-
function
|
|
1729
|
-
const
|
|
1730
|
-
e.commu_id || (e.commu_id =
|
|
1731
|
+
function at(e, t = void 0, s = void 0) {
|
|
1732
|
+
const n = "YXdA5x4DSUKtlAi2wmnyTA";
|
|
1733
|
+
e.commu_id || (e.commu_id = n);
|
|
1731
1734
|
const i = `${e.space}/api/v2/communities/${e.commu_id}/ideas/statuses`;
|
|
1732
1735
|
C(e, (r) => {
|
|
1733
1736
|
m(i, {
|
|
@@ -1739,7 +1742,7 @@ function it(e, n = void 0, s = void 0) {
|
|
|
1739
1742
|
},
|
|
1740
1743
|
onComplete(o) {
|
|
1741
1744
|
const a = JSON.parse(o);
|
|
1742
|
-
|
|
1745
|
+
t && t(a);
|
|
1743
1746
|
},
|
|
1744
1747
|
onFailure(o, a) {
|
|
1745
1748
|
const c = o;
|
|
@@ -1748,25 +1751,25 @@ function it(e, n = void 0, s = void 0) {
|
|
|
1748
1751
|
});
|
|
1749
1752
|
});
|
|
1750
1753
|
}
|
|
1751
|
-
function
|
|
1754
|
+
function ot(e, t, s = void 0, n = void 0) {
|
|
1752
1755
|
const { listAllContacts: i, currentUser: r } = e;
|
|
1753
1756
|
console.log("__listAllContacts", i.hits);
|
|
1754
1757
|
const o = `${e.space}/api/directmessages`, a = {
|
|
1755
|
-
users: [r.login].concat(
|
|
1758
|
+
users: [r.login].concat(t.receipt)
|
|
1756
1759
|
}, c = {
|
|
1757
1760
|
id_msg: "",
|
|
1758
1761
|
senderId: e.currentUser.login,
|
|
1759
1762
|
senderName: `${e.currentUser.first_name} ${e.currentUser.last_name}`,
|
|
1760
|
-
msg:
|
|
1763
|
+
msg: ue(t.msg)
|
|
1761
1764
|
};
|
|
1762
1765
|
let d = !1;
|
|
1763
|
-
|
|
1766
|
+
pe(
|
|
1764
1767
|
a.users,
|
|
1765
1768
|
(p) => {
|
|
1766
|
-
p !== void 0 && (c.id_msg = p.id, d = !0,
|
|
1769
|
+
p !== void 0 && (c.id_msg = p.id, d = !0, R(e, c));
|
|
1767
1770
|
},
|
|
1768
1771
|
(p) => {
|
|
1769
|
-
d = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", p),
|
|
1772
|
+
d = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", p), n && n(p), c.id_msg = "";
|
|
1770
1773
|
}
|
|
1771
1774
|
), d === !1 && setTimeout(() => {
|
|
1772
1775
|
d === !1 && C(e, (p) => {
|
|
@@ -1781,17 +1784,17 @@ function at(e, n, s = void 0, t = void 0) {
|
|
|
1781
1784
|
type: "json",
|
|
1782
1785
|
onComplete(u, f, l) {
|
|
1783
1786
|
const g = u;
|
|
1784
|
-
g.reponse = JSON.parse(l.response), g.status = l.status, s && s(g), c.id_msg = g.result.id,
|
|
1787
|
+
g.reponse = JSON.parse(l.response), g.status = l.status, s && s(g), c.id_msg = g.result.id, R(e, c);
|
|
1785
1788
|
},
|
|
1786
1789
|
onFailure(u, f, l) {
|
|
1787
1790
|
const g = u;
|
|
1788
|
-
g.msg = f.errormsg, g.status = f.status,
|
|
1791
|
+
g.msg = f.errormsg, g.status = f.status, n && n(g);
|
|
1789
1792
|
}
|
|
1790
1793
|
});
|
|
1791
1794
|
});
|
|
1792
1795
|
}, 500);
|
|
1793
1796
|
}
|
|
1794
|
-
function
|
|
1797
|
+
function pe(e, t, s, n) {
|
|
1795
1798
|
const i = `${e.space}/api/directmessages/lite?with_favorites=false`;
|
|
1796
1799
|
C(e, (r) => {
|
|
1797
1800
|
m(i, {
|
|
@@ -1803,38 +1806,38 @@ function de(e, n, s, t) {
|
|
|
1803
1806
|
onComplete(o) {
|
|
1804
1807
|
const a = JSON.parse(o), c = [];
|
|
1805
1808
|
a.result.forEach((u) => {
|
|
1806
|
-
u.users = u.users.sort((f, l) => f.login.localeCompare(l.login)), u.users.length ===
|
|
1809
|
+
u.users = u.users.sort((f, l) => f.login.localeCompare(l.login)), u.users.length === t.length && c.push(u);
|
|
1807
1810
|
});
|
|
1808
|
-
const d =
|
|
1811
|
+
const d = t.sort(), p = c.find((u) => {
|
|
1809
1812
|
const f = [];
|
|
1810
1813
|
return u.users.forEach((l) => {
|
|
1811
1814
|
f.push(l.login);
|
|
1812
1815
|
}), JSON.stringify(f) === JSON.stringify(d);
|
|
1813
1816
|
});
|
|
1814
|
-
s && p !== void 0 ? s(p) : (
|
|
1817
|
+
s && p !== void 0 ? s(p) : (n || p === void 0) && n(p);
|
|
1815
1818
|
},
|
|
1816
1819
|
onFailure(o) {
|
|
1817
1820
|
const a = o;
|
|
1818
|
-
a.msg = headers.errormsg, a.errCode = headers.errorcode, console.log("❌ sendDirectMessageLite => ", a),
|
|
1821
|
+
a.msg = headers.errormsg, a.errCode = headers.errorcode, console.log("❌ sendDirectMessageLite => ", a), n && n(a);
|
|
1819
1822
|
}
|
|
1820
1823
|
});
|
|
1821
1824
|
});
|
|
1822
1825
|
}
|
|
1823
|
-
function
|
|
1826
|
+
function R(e, t, s = void 0, n = void 0) {
|
|
1824
1827
|
const i = {
|
|
1825
1828
|
base: e.space,
|
|
1826
1829
|
uri: "/api/community",
|
|
1827
|
-
id_msg: `${
|
|
1830
|
+
id_msg: `${t.id_msg}`,
|
|
1828
1831
|
endUri: "/instantmessages"
|
|
1829
1832
|
}, r = `${i.base}${i.uri}/${i.id_msg}${i.endUri}`, o = {
|
|
1830
|
-
author: { login:
|
|
1833
|
+
author: { login: t.senderId, displayName: t.senderName },
|
|
1831
1834
|
accessState: null,
|
|
1832
1835
|
commentUri: null,
|
|
1833
1836
|
comments: null,
|
|
1834
1837
|
endorsements: null,
|
|
1835
1838
|
moderationState: null,
|
|
1836
1839
|
parentCommentUri: null,
|
|
1837
|
-
richMessage:
|
|
1840
|
+
richMessage: t.msg
|
|
1838
1841
|
};
|
|
1839
1842
|
console.log("_3dSwym_sendDirectMessageData url ", r), C(e, (a) => {
|
|
1840
1843
|
m(r, {
|
|
@@ -1852,30 +1855,30 @@ function P(e, n, s = void 0, t = void 0) {
|
|
|
1852
1855
|
},
|
|
1853
1856
|
onFailure(c, d) {
|
|
1854
1857
|
const p = c;
|
|
1855
|
-
p.msg = d.errormsg, p.errCode = d.errorcode, console.log("❌ sendDirectMessage => ", p),
|
|
1858
|
+
p.msg = d.errormsg, p.errCode = d.errorcode, console.log("❌ sendDirectMessage => ", p), n && n(p);
|
|
1856
1859
|
}
|
|
1857
1860
|
});
|
|
1858
1861
|
});
|
|
1859
1862
|
}
|
|
1860
|
-
function
|
|
1861
|
-
const
|
|
1863
|
+
function ue(e) {
|
|
1864
|
+
const t = (/* @__PURE__ */ new Date()).toLocaleDateString(), s = (/* @__PURE__ */ new Date()).toLocaleTimeString();
|
|
1862
1865
|
return `<p>${e} </p>
|
|
1863
1866
|
<br/>
|
|
1864
1867
|
<hr/>
|
|
1865
|
-
<p><u>envoyer :</u>Le <b>${
|
|
1868
|
+
<p><u>envoyer :</u>Le <b>${t} à ${s}</b></p>`;
|
|
1866
1869
|
}
|
|
1867
|
-
function
|
|
1870
|
+
function rt(e, t, s = void 0, n = void 0) {
|
|
1868
1871
|
const i = `${e.space}/api/idea/add`, r = e.swymCommunities.find(
|
|
1869
|
-
(c) => c.id ===
|
|
1872
|
+
(c) => c.id === t.community_id
|
|
1870
1873
|
), o = e.swymCommunities.find(
|
|
1871
|
-
(c) => c.title.toLowerCase() ===
|
|
1874
|
+
(c) => c.title.toLowerCase() === t.community_title.toLowerCase()
|
|
1872
1875
|
), a = {
|
|
1873
1876
|
params: {
|
|
1874
|
-
title:
|
|
1877
|
+
title: t.title,
|
|
1875
1878
|
// String, le nom de l'affaire
|
|
1876
1879
|
community_id: r?.id !== void 0 ? r.id : o.id,
|
|
1877
1880
|
// String, l'id de la communauté
|
|
1878
|
-
message:
|
|
1881
|
+
message: le(t.text_html),
|
|
1879
1882
|
// STRING => le contenue du message doit être au format HTML
|
|
1880
1883
|
published: 1
|
|
1881
1884
|
// 1 publier, 0 non publier
|
|
@@ -1898,16 +1901,16 @@ function ot(e, n, s = void 0, t = void 0) {
|
|
|
1898
1901
|
},
|
|
1899
1902
|
onFailure(p, u, f) {
|
|
1900
1903
|
const l = p;
|
|
1901
|
-
l.status = u.status, l.response = u.errormsg,
|
|
1904
|
+
l.status = u.status, l.response = u.errormsg, n && n(l);
|
|
1902
1905
|
}
|
|
1903
1906
|
});
|
|
1904
1907
|
});
|
|
1905
1908
|
}
|
|
1906
|
-
function
|
|
1907
|
-
const
|
|
1909
|
+
function ct(e, t = void 0, s = void 0) {
|
|
1910
|
+
const n = { base: e.space, uri: "/api/idea/add" };
|
|
1908
1911
|
if (!Array.isArray(e.swymCommunities)) {
|
|
1909
1912
|
const o = "☠️ swymCommunities doit être un tableau d'objets de communautés";
|
|
1910
|
-
throw new Error(`Erreur sur cette requête : ${
|
|
1913
|
+
throw new Error(`Erreur sur cette requête : ${n.base + n.uri}`, {
|
|
1911
1914
|
cause: o
|
|
1912
1915
|
});
|
|
1913
1916
|
}
|
|
@@ -1915,19 +1918,19 @@ function rt(e, n = void 0, s = void 0) {
|
|
|
1915
1918
|
(o) => o.id === e.community_id
|
|
1916
1919
|
) === -1) {
|
|
1917
1920
|
const o = "la communauté n'existe pas dans la liste des communautés du Swym";
|
|
1918
|
-
throw new Error(`Erreur sur cette requête : ${
|
|
1921
|
+
throw new Error(`Erreur sur cette requête : ${n.base + n.uri}`, {
|
|
1919
1922
|
cause: o
|
|
1920
1923
|
});
|
|
1921
1924
|
}
|
|
1922
1925
|
if (e.community_id && e.community_id === "") {
|
|
1923
1926
|
const o = "☠️ community_id doit être un String qui contient l'id de la communauté dans laquelle on souhaite publier l'idée.";
|
|
1924
|
-
throw new Error(`Erreur sur cette requête : ${
|
|
1927
|
+
throw new Error(`Erreur sur cette requête : ${n.base + n.uri}`, {
|
|
1925
1928
|
cause: o
|
|
1926
1929
|
});
|
|
1927
1930
|
}
|
|
1928
1931
|
if (e.title && e.title === "") {
|
|
1929
1932
|
const o = "☠️ title doit être un String.";
|
|
1930
|
-
throw new Error(`Erreur sur cette requête : ${
|
|
1933
|
+
throw new Error(`Erreur sur cette requête : ${n.base + n.uri}`, {
|
|
1931
1934
|
cause: o
|
|
1932
1935
|
});
|
|
1933
1936
|
}
|
|
@@ -1946,7 +1949,7 @@ function rt(e, n = void 0, s = void 0) {
|
|
|
1946
1949
|
C(e, (o) => {
|
|
1947
1950
|
if (!o)
|
|
1948
1951
|
throw new Error(
|
|
1949
|
-
`☠️ token n'est pas disponible pour cette requête : ${
|
|
1952
|
+
`☠️ token n'est pas disponible pour cette requête : ${n.base + n.uri}`,
|
|
1950
1953
|
{
|
|
1951
1954
|
cause: o
|
|
1952
1955
|
}
|
|
@@ -1961,11 +1964,11 @@ function rt(e, n = void 0, s = void 0) {
|
|
|
1961
1964
|
data: JSON.stringify(r),
|
|
1962
1965
|
onComplete(c, d, p) {
|
|
1963
1966
|
const u = { response: c };
|
|
1964
|
-
typeof u.response == "string" && (u.response = JSON.parse(u.response)), u.status = p.status,
|
|
1967
|
+
typeof u.response == "string" && (u.response = JSON.parse(u.response)), u.status = p.status, t && t(u);
|
|
1965
1968
|
},
|
|
1966
1969
|
onFailure(c, d, p) {
|
|
1967
1970
|
const u = JSON.parse(d), f = JSON.parse(c), l = new Error(
|
|
1968
|
-
`Erreur sur cette requête : ${
|
|
1971
|
+
`Erreur sur cette requête : ${n.base + n.uri}`,
|
|
1969
1972
|
{
|
|
1970
1973
|
cause: { head: u, rep: f }
|
|
1971
1974
|
}
|
|
@@ -1973,14 +1976,14 @@ function rt(e, n = void 0, s = void 0) {
|
|
|
1973
1976
|
s && s(l);
|
|
1974
1977
|
}
|
|
1975
1978
|
};
|
|
1976
|
-
m(
|
|
1979
|
+
m(n.base + n.uri, a);
|
|
1977
1980
|
});
|
|
1978
1981
|
}
|
|
1979
|
-
function
|
|
1982
|
+
function dt(e, t, s = void 0, n = void 0) {
|
|
1980
1983
|
const i = `${e.space}/api/idea/delete`, r = {
|
|
1981
1984
|
params: {
|
|
1982
|
-
community_id:
|
|
1983
|
-
ideationIds: [
|
|
1985
|
+
community_id: t.community_id,
|
|
1986
|
+
ideationIds: [t.idee_id]
|
|
1984
1987
|
}
|
|
1985
1988
|
};
|
|
1986
1989
|
C(e, (o) => {
|
|
@@ -1998,16 +2001,16 @@ function ct(e, n, s = void 0, t = void 0) {
|
|
|
1998
2001
|
},
|
|
1999
2002
|
onFailure(a, c, d) {
|
|
2000
2003
|
const p = a;
|
|
2001
|
-
p.status = c.status, p.response = c.errormsg,
|
|
2004
|
+
p.status = c.status, p.response = c.errormsg, n && n(p);
|
|
2002
2005
|
}
|
|
2003
2006
|
});
|
|
2004
2007
|
});
|
|
2005
2008
|
}
|
|
2006
|
-
function
|
|
2007
|
-
const
|
|
2009
|
+
function pt(e, t = void 0, s = void 0) {
|
|
2010
|
+
const n = `${e.space}/api/idea/get`;
|
|
2008
2011
|
if (e.idPost === "") {
|
|
2009
2012
|
const r = "☠️ idPost est vide, vous devez renseigner un identifiant de post";
|
|
2010
|
-
throw new Error(`Erreur sur cette requête : ${
|
|
2013
|
+
throw new Error(`Erreur sur cette requête : ${n}`, { cause: r });
|
|
2011
2014
|
}
|
|
2012
2015
|
const i = {
|
|
2013
2016
|
params: {
|
|
@@ -2015,7 +2018,7 @@ function dt(e, n = void 0, s = void 0) {
|
|
|
2015
2018
|
}
|
|
2016
2019
|
};
|
|
2017
2020
|
C(e, (r) => {
|
|
2018
|
-
m(
|
|
2021
|
+
m(n, {
|
|
2019
2022
|
method: "POST",
|
|
2020
2023
|
headers: {
|
|
2021
2024
|
"Content-type": "application/json;charset=UTF-8",
|
|
@@ -2024,7 +2027,7 @@ function dt(e, n = void 0, s = void 0) {
|
|
|
2024
2027
|
},
|
|
2025
2028
|
data: JSON.stringify(i),
|
|
2026
2029
|
onComplete(o) {
|
|
2027
|
-
|
|
2030
|
+
t && t({ response: o });
|
|
2028
2031
|
},
|
|
2029
2032
|
onFailure(o) {
|
|
2030
2033
|
const a = o;
|
|
@@ -2033,8 +2036,8 @@ function dt(e, n = void 0, s = void 0) {
|
|
|
2033
2036
|
});
|
|
2034
2037
|
});
|
|
2035
2038
|
}
|
|
2036
|
-
function
|
|
2037
|
-
const
|
|
2039
|
+
function ut(e, t, s) {
|
|
2040
|
+
const n = {
|
|
2038
2041
|
base: `${e.space}/api/idea/edit`,
|
|
2039
2042
|
uri: "/api/idea/edit"
|
|
2040
2043
|
}, i = {
|
|
@@ -2061,18 +2064,18 @@ function pt(e, n, s) {
|
|
|
2061
2064
|
const p = {
|
|
2062
2065
|
response: typeof a == "string" ? JSON.parse(a) : a
|
|
2063
2066
|
};
|
|
2064
|
-
p.status = d.status,
|
|
2067
|
+
p.status = d.status, t && t(p);
|
|
2065
2068
|
},
|
|
2066
2069
|
onFailure(a) {
|
|
2067
2070
|
s && s(a);
|
|
2068
2071
|
}
|
|
2069
2072
|
};
|
|
2070
|
-
m(
|
|
2073
|
+
m(n.base + n.uri, o);
|
|
2071
2074
|
});
|
|
2072
2075
|
}
|
|
2073
|
-
function
|
|
2076
|
+
function lt(e, t, s = void 0, n = void 0) {
|
|
2074
2077
|
const { space: i } = e;
|
|
2075
|
-
let { community_id: r, limit: o, page: a, search: c } =
|
|
2078
|
+
let { community_id: r, limit: o, page: a, search: c } = t;
|
|
2076
2079
|
const d = [], p = 1;
|
|
2077
2080
|
let u = !1, f = 2;
|
|
2078
2081
|
a || (a = p), o || (o = 100);
|
|
@@ -2083,12 +2086,12 @@ function ut(e, n, s = void 0, t = void 0) {
|
|
|
2083
2086
|
page: `/page/${a}`
|
|
2084
2087
|
};
|
|
2085
2088
|
let g = `${i}${l.uri}${l.comId}${l.limit}${l.page}`;
|
|
2086
|
-
C(e, (
|
|
2087
|
-
const
|
|
2089
|
+
C(e, (y) => {
|
|
2090
|
+
const h = (S) => {
|
|
2088
2091
|
m(S, {
|
|
2089
2092
|
method: "GET",
|
|
2090
2093
|
headers: {
|
|
2091
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
2094
|
+
"X-DS-SWYM-CSRFTOKEN": y.result.ServerToken
|
|
2092
2095
|
},
|
|
2093
2096
|
onComplete(_) {
|
|
2094
2097
|
const w = { response: JSON.parse(_) };
|
|
@@ -2097,7 +2100,7 @@ function ut(e, n, s = void 0, t = void 0) {
|
|
|
2097
2100
|
d.push(w.response.result);
|
|
2098
2101
|
else {
|
|
2099
2102
|
const T = w.response.result.find(
|
|
2100
|
-
(
|
|
2103
|
+
(j) => j.title.includes(c)
|
|
2101
2104
|
);
|
|
2102
2105
|
if (T) {
|
|
2103
2106
|
s(T);
|
|
@@ -2108,19 +2111,19 @@ function ut(e, n, s = void 0, t = void 0) {
|
|
|
2108
2111
|
u = !0, s(d);
|
|
2109
2112
|
return;
|
|
2110
2113
|
}
|
|
2111
|
-
|
|
2114
|
+
h(S);
|
|
2112
2115
|
}
|
|
2113
2116
|
},
|
|
2114
2117
|
onFailure(_, w) {
|
|
2115
2118
|
const T = _;
|
|
2116
|
-
T.status = w.status, T.response = w.errormsg,
|
|
2119
|
+
T.status = w.status, T.response = w.errormsg, n && n(T);
|
|
2117
2120
|
}
|
|
2118
2121
|
});
|
|
2119
2122
|
};
|
|
2120
|
-
u ||
|
|
2123
|
+
u || h(g);
|
|
2121
2124
|
});
|
|
2122
2125
|
}
|
|
2123
|
-
function
|
|
2126
|
+
function le(e) {
|
|
2124
2127
|
return !e || e === "" ? `<h2><u>INFORMATIONS AFFAIRE :</u></h2>
|
|
2125
2128
|
<p><u>|⚠️<em> Merci de respecter l'écriture des tags, en MAJUSCULES, nom complet, pas de caractères</em></u></p>
|
|
2126
2129
|
<p><u><em>|spéciaux, séparation par "_" si besoin !</em></u></p>
|
|
@@ -2195,17 +2198,17 @@ function ue(e) {
|
|
|
2195
2198
|
<p>
|
|
2196
2199
|
</p>` : e;
|
|
2197
2200
|
}
|
|
2198
|
-
function
|
|
2199
|
-
const
|
|
2201
|
+
function ft(e, t = void 0, s = void 0) {
|
|
2202
|
+
const n = e.space + "/api/user/getcurrent/";
|
|
2200
2203
|
C(e, (i) => {
|
|
2201
|
-
m(
|
|
2204
|
+
m(n, {
|
|
2202
2205
|
method: "GET",
|
|
2203
2206
|
headers: {
|
|
2204
2207
|
"X-DS-SWYM-CSRFTOKEN": i.result.ServerToken
|
|
2205
2208
|
},
|
|
2206
2209
|
onComplete(r, o, a) {
|
|
2207
2210
|
const c = JSON.parse(r);
|
|
2208
|
-
|
|
2211
|
+
t && t(c.result);
|
|
2209
2212
|
},
|
|
2210
2213
|
onFailure(r, o, a) {
|
|
2211
2214
|
const c = { erreur: JSON.parse(r), headers: o, xhr: a };
|
|
@@ -2214,8 +2217,8 @@ function lt(e, n = void 0, s = void 0) {
|
|
|
2214
2217
|
});
|
|
2215
2218
|
});
|
|
2216
2219
|
}
|
|
2217
|
-
function
|
|
2218
|
-
const i = e.space + "/api/user/find/login/" +
|
|
2220
|
+
function mt(e, t, s = void 0, n = void 0) {
|
|
2221
|
+
const i = e.space + "/api/user/find/login/" + t;
|
|
2219
2222
|
C(
|
|
2220
2223
|
e,
|
|
2221
2224
|
(r) => {
|
|
@@ -2227,32 +2230,29 @@ function ft(e, n, s = void 0, t = void 0) {
|
|
|
2227
2230
|
s && s(d);
|
|
2228
2231
|
},
|
|
2229
2232
|
onFailure(o) {
|
|
2230
|
-
|
|
2233
|
+
n && n(o);
|
|
2231
2234
|
}
|
|
2232
2235
|
});
|
|
2233
2236
|
},
|
|
2234
|
-
|
|
2237
|
+
n
|
|
2235
2238
|
);
|
|
2236
2239
|
}
|
|
2237
|
-
function
|
|
2238
|
-
e.tenant && b(e, (
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
return n && n(i), i;
|
|
2240
|
+
function gt(e, t = void 0, s = void 0) {
|
|
2241
|
+
e.tenant && b(e, (n) => {
|
|
2242
|
+
const i = n.services.find((r) => r.id === "businessprocess")?.url + "/api/v2";
|
|
2243
|
+
return t && t(i), i;
|
|
2242
2244
|
});
|
|
2243
2245
|
}
|
|
2244
|
-
function
|
|
2245
|
-
e.tenant && b(e, (
|
|
2246
|
-
|
|
2247
|
-
const i = t.services.find((a) => a.id === "3dpassport")?.url, r = t.services.find((a) => a.id === "businessprocess")?.url + "/api/v2", o = `${i}/login/?service=${r}/auth/cas`;
|
|
2246
|
+
function ht(e, t = void 0, s = void 0) {
|
|
2247
|
+
e.tenant && b(e, (n) => {
|
|
2248
|
+
const i = n.services.find((a) => a.id === "3dpassport")?.url, r = n.services.find((a) => a.id === "businessprocess")?.url + "/api/v2", o = `${i}/login/?service=${r}/auth/cas`;
|
|
2248
2249
|
m(o, {
|
|
2249
2250
|
async onComplete(a) {
|
|
2250
|
-
console.log("response", a);
|
|
2251
2251
|
const c = typeof a == "string" ? JSON.parse(a)?.x3ds_service_redirect_url : a?.x3ds_service_redirect_url;
|
|
2252
2252
|
await fetch(c, {
|
|
2253
2253
|
method: "POST"
|
|
2254
2254
|
}).then((d) => d.json()).then(async (d) => {
|
|
2255
|
-
|
|
2255
|
+
t && t(d?.token);
|
|
2256
2256
|
});
|
|
2257
2257
|
},
|
|
2258
2258
|
onFailure(a) {
|
|
@@ -2261,83 +2261,83 @@ function gt(e, n = void 0, s = void 0) {
|
|
|
2261
2261
|
});
|
|
2262
2262
|
});
|
|
2263
2263
|
}
|
|
2264
|
-
function
|
|
2264
|
+
function yt(e, t = void 0, s = void 0) {
|
|
2265
2265
|
if (e.tenant) {
|
|
2266
|
-
const
|
|
2267
|
-
fetch(`https://api.uixhome.fr/${
|
|
2266
|
+
const n = e.tenant.toLowerCase();
|
|
2267
|
+
fetch(`https://api.uixhome.fr/${n}/iterop/jwtuser`, {
|
|
2268
2268
|
method: "POST"
|
|
2269
2269
|
}).then((i) => i.json()).then((i) => {
|
|
2270
|
-
|
|
2270
|
+
t && t(i);
|
|
2271
2271
|
}).catch((i) => {
|
|
2272
2272
|
s && s(i);
|
|
2273
2273
|
});
|
|
2274
2274
|
}
|
|
2275
2275
|
}
|
|
2276
|
-
async function
|
|
2276
|
+
async function St(e, t, s = void 0, n = void 0) {
|
|
2277
2277
|
e.tenant && b(e, (i) => {
|
|
2278
2278
|
const o = `${i.services.find((c) => c.id === "businessprocess")?.url + "/api/v2"}/identity/users`, a = e.tenant.toLowerCase();
|
|
2279
|
-
fetch(`https://api.uixhome.fr/${a}/iterop/listusers?t=${
|
|
2279
|
+
fetch(`https://api.uixhome.fr/${a}/iterop/listusers?t=${t}&s=${o}`, {
|
|
2280
2280
|
method: "POST"
|
|
2281
2281
|
}).then((c) => c.json()).then((c) => {
|
|
2282
2282
|
s && s(c);
|
|
2283
2283
|
}).catch((c) => {
|
|
2284
|
-
|
|
2284
|
+
n && n(c);
|
|
2285
2285
|
});
|
|
2286
2286
|
});
|
|
2287
2287
|
}
|
|
2288
|
-
async function
|
|
2288
|
+
async function _t(e, t, s = void 0, n = void 0) {
|
|
2289
2289
|
e.tenant && b(e, (i) => {
|
|
2290
2290
|
const o = `${i.services.find((c) => c.id === "businessprocess")?.url + "/api/v2"}/repository/data/tables`, a = e.tenant.toLowerCase();
|
|
2291
|
-
fetch(`https://api.uixhome.fr/${a}/iterop/repository/data/tables?t=${
|
|
2291
|
+
fetch(`https://api.uixhome.fr/${a}/iterop/repository/data/tables?t=${t}&s=${o}`, {
|
|
2292
2292
|
method: "GET"
|
|
2293
2293
|
}).then((c) => c.json()).then((c) => {
|
|
2294
2294
|
s && s(c);
|
|
2295
2295
|
}).catch((c) => {
|
|
2296
|
-
|
|
2296
|
+
n && n(c);
|
|
2297
2297
|
});
|
|
2298
2298
|
});
|
|
2299
2299
|
}
|
|
2300
|
-
async function
|
|
2300
|
+
async function wt(e, t, s, n = void 0, i = void 0) {
|
|
2301
2301
|
if (e.tenant) {
|
|
2302
2302
|
const r = e.tenant.toLowerCase();
|
|
2303
|
-
fetch(`https://api.uixhome.fr/${r}/iterop/businesstable/${s}?t=${
|
|
2303
|
+
fetch(`https://api.uixhome.fr/${r}/iterop/businesstable/${s}?t=${t}`, {
|
|
2304
2304
|
method: "POST"
|
|
2305
2305
|
}).then((o) => o.json()).then((o) => {
|
|
2306
|
-
|
|
2306
|
+
n && n(o);
|
|
2307
2307
|
}).catch((o) => {
|
|
2308
2308
|
i && i(o);
|
|
2309
2309
|
});
|
|
2310
2310
|
}
|
|
2311
2311
|
}
|
|
2312
|
-
async function
|
|
2312
|
+
async function Ct(e, t, s, n = void 0, i = void 0) {
|
|
2313
2313
|
if (e.tenant) {
|
|
2314
2314
|
const r = e.tenant.toLowerCase();
|
|
2315
|
-
fetch(`https://api.uixhome.fr/${r}/iterop/businesstable/rows/${s}/?t=${
|
|
2315
|
+
fetch(`https://api.uixhome.fr/${r}/iterop/businesstable/rows/${s}/?t=${t}`, {
|
|
2316
2316
|
method: "POST"
|
|
2317
2317
|
}).then((o) => o.json()).then((o) => {
|
|
2318
|
-
|
|
2318
|
+
n && n(o);
|
|
2319
2319
|
}).catch((o) => {
|
|
2320
2320
|
i && i(o);
|
|
2321
2321
|
});
|
|
2322
2322
|
}
|
|
2323
2323
|
}
|
|
2324
|
-
async function
|
|
2324
|
+
async function Tt(e, t, s, n, i = void 0, r = void 0) {
|
|
2325
2325
|
e.tenant && b(e, (o) => {
|
|
2326
2326
|
o.services.find((c) => c.id === "businessprocess")?.url + "";
|
|
2327
2327
|
const a = e.tenant.toLowerCase();
|
|
2328
|
-
fetch(`https://api.uixhome.fr/${a}/iterop/businesstable/patch/rows/${s}/?t=${
|
|
2328
|
+
fetch(`https://api.uixhome.fr/${a}/iterop/businesstable/patch/rows/${s}/?t=${t}&b=${n}`, {
|
|
2329
2329
|
method: "POST"
|
|
2330
2330
|
}).then((c) => c.json()).then((c) => {
|
|
2331
2331
|
i && i(c);
|
|
2332
2332
|
}).catch((c) => {
|
|
2333
|
-
r && r(c, s,
|
|
2333
|
+
r && r(c, s, n);
|
|
2334
2334
|
});
|
|
2335
2335
|
});
|
|
2336
2336
|
}
|
|
2337
|
-
async function
|
|
2337
|
+
async function bt(e, t, s, n, i, r = void 0, o = void 0) {
|
|
2338
2338
|
if (e.tenant) {
|
|
2339
|
-
const a = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/search/rows/${s}?t=${
|
|
2340
|
-
|
|
2339
|
+
const a = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/search/rows/${s}?t=${t}&c=${encodeURIComponent(
|
|
2340
|
+
n
|
|
2341
2341
|
)}&b=${encodeURIComponent(i)}`;
|
|
2342
2342
|
fetch(a, {
|
|
2343
2343
|
method: "POST"
|
|
@@ -2347,21 +2347,21 @@ async function Tt(e, n, s, t, i, r = void 0, o = void 0) {
|
|
|
2347
2347
|
o && o({
|
|
2348
2348
|
error: c,
|
|
2349
2349
|
tableId: s,
|
|
2350
|
-
columns:
|
|
2350
|
+
columns: n,
|
|
2351
2351
|
body: i
|
|
2352
2352
|
});
|
|
2353
2353
|
});
|
|
2354
2354
|
}
|
|
2355
2355
|
}
|
|
2356
|
-
async function
|
|
2356
|
+
async function Ot(e, t, s, n, i = void 0, r = void 0) {
|
|
2357
2357
|
if (e.tenant) {
|
|
2358
|
-
const o = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/post/update/${s}?t=${
|
|
2359
|
-
|
|
2358
|
+
const o = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/post/update/${s}?t=${t}&b=${encodeURIComponent(
|
|
2359
|
+
n
|
|
2360
2360
|
)}`;
|
|
2361
2361
|
fetch(o, {
|
|
2362
2362
|
method: "POST"
|
|
2363
2363
|
}).then((a) => a.json()).then((a) => {
|
|
2364
|
-
|
|
2364
|
+
i && i(a);
|
|
2365
2365
|
}).catch((a) => {
|
|
2366
2366
|
r && r({
|
|
2367
2367
|
error: a,
|
|
@@ -2370,12 +2370,12 @@ async function bt(e, n, s, t, i = void 0, r = void 0) {
|
|
|
2370
2370
|
});
|
|
2371
2371
|
}
|
|
2372
2372
|
}
|
|
2373
|
-
async function
|
|
2373
|
+
async function $t(e, t, s, n, i = void 0, r = void 0) {
|
|
2374
2374
|
e.tenant && b(e, (o) => {
|
|
2375
2375
|
o.services.find((c) => c.id === "businessprocess")?.url + "";
|
|
2376
2376
|
const a = e.tenant.toLowerCase();
|
|
2377
2377
|
fetch(
|
|
2378
|
-
`https://api.uixhome.fr/${a}/iterop/runtime/processes/${s}?t=${
|
|
2378
|
+
`https://api.uixhome.fr/${a}/iterop/runtime/processes/${s}?t=${t}&b=${n}`,
|
|
2379
2379
|
{
|
|
2380
2380
|
method: "POST"
|
|
2381
2381
|
}
|
|
@@ -2386,28 +2386,28 @@ async function Ot(e, n, s, t, i = void 0, r = void 0) {
|
|
|
2386
2386
|
});
|
|
2387
2387
|
});
|
|
2388
2388
|
}
|
|
2389
|
-
async function
|
|
2389
|
+
async function It(e, t, s, n = void 0, i = void 0) {
|
|
2390
2390
|
e.tenant && b(e, (r) => {
|
|
2391
2391
|
r.services.find((a) => a.id === "businessprocess")?.url + "";
|
|
2392
2392
|
const o = e.tenant.toLowerCase();
|
|
2393
2393
|
fetch(
|
|
2394
|
-
`https://api.uixhome.fr/${o}/iterop/dependencytable/one/${s}/?t=${
|
|
2394
|
+
`https://api.uixhome.fr/${o}/iterop/dependencytable/one/${s}/?t=${t}`,
|
|
2395
2395
|
{
|
|
2396
2396
|
method: "POST"
|
|
2397
2397
|
}
|
|
2398
2398
|
).then((a) => a.json()).then((a) => {
|
|
2399
|
-
|
|
2399
|
+
n && n(a);
|
|
2400
2400
|
}).catch((a) => {
|
|
2401
2401
|
i && i(a);
|
|
2402
2402
|
});
|
|
2403
2403
|
});
|
|
2404
2404
|
}
|
|
2405
|
-
async function
|
|
2405
|
+
async function vt(e, t, s, n, i, r = void 0, o = void 0) {
|
|
2406
2406
|
e.tenant && b(e, (a) => {
|
|
2407
2407
|
a.services.find((d) => d.id === "businessprocess")?.url + "";
|
|
2408
2408
|
const c = e.tenant.toLowerCase();
|
|
2409
2409
|
fetch(
|
|
2410
|
-
`https://api.uixhome.fr/${c}/iterop/dependencytable/patch/${s}/?t=${
|
|
2410
|
+
`https://api.uixhome.fr/${c}/iterop/dependencytable/patch/${s}/?t=${t}&cli=${n}&b=${i}`,
|
|
2411
2411
|
{
|
|
2412
2412
|
method: "POST"
|
|
2413
2413
|
}
|
|
@@ -2418,12 +2418,12 @@ async function It(e, n, s, t, i, r = void 0, o = void 0) {
|
|
|
2418
2418
|
});
|
|
2419
2419
|
});
|
|
2420
2420
|
}
|
|
2421
|
-
async function
|
|
2421
|
+
async function Nt(e, t, s, n, i = void 0, r = void 0) {
|
|
2422
2422
|
e.tenant && b(e, (o) => {
|
|
2423
2423
|
o.services.find((c) => c.id === "businessprocess")?.url + "";
|
|
2424
2424
|
const a = e.tenant.toLowerCase();
|
|
2425
2425
|
fetch(
|
|
2426
|
-
`https://api.uixhome.fr/${a}/iterop/dependencytable/put/${s}/?t=${
|
|
2426
|
+
`https://api.uixhome.fr/${a}/iterop/dependencytable/put/${s}/?t=${t}&b=${n}`,
|
|
2427
2427
|
{
|
|
2428
2428
|
method: "POST"
|
|
2429
2429
|
}
|
|
@@ -2435,33 +2435,33 @@ async function vt(e, n, s, t, i = void 0, r = void 0) {
|
|
|
2435
2435
|
});
|
|
2436
2436
|
}
|
|
2437
2437
|
//!SECTION
|
|
2438
|
-
async function
|
|
2438
|
+
async function kt(e, t, s, n = void 0, i = void 0) {
|
|
2439
2439
|
if (e.tenant) {
|
|
2440
2440
|
const r = e.tenant.toLowerCase();
|
|
2441
2441
|
fetch(
|
|
2442
|
-
`https://api.uixhome.fr/${r}/iterop/list/one/${s}/?t=${
|
|
2442
|
+
`https://api.uixhome.fr/${r}/iterop/list/one/${s}/?t=${t}`,
|
|
2443
2443
|
{
|
|
2444
2444
|
method: "POST"
|
|
2445
2445
|
}
|
|
2446
2446
|
).then((o) => o.json()).then((o) => {
|
|
2447
|
-
|
|
2447
|
+
n && n(o);
|
|
2448
2448
|
}).catch((o) => {
|
|
2449
2449
|
i && i(o);
|
|
2450
2450
|
});
|
|
2451
2451
|
}
|
|
2452
2452
|
}
|
|
2453
2453
|
//!SECTION
|
|
2454
|
-
function
|
|
2455
|
-
const
|
|
2456
|
-
return console.log(
|
|
2454
|
+
function At(e) {
|
|
2455
|
+
const t = "Hello " + e;
|
|
2456
|
+
return console.log(t), t;
|
|
2457
2457
|
}
|
|
2458
|
-
function
|
|
2459
|
-
return console.log("credentials", e), new Promise((
|
|
2458
|
+
function jt(e, t = void 0, s = void 0) {
|
|
2459
|
+
return console.log("credentials", e), new Promise((n) => {
|
|
2460
2460
|
if (e.token === "" && O(e), !e.space || e.space === "") {
|
|
2461
2461
|
const o = Y();
|
|
2462
2462
|
console.log("platformeInfo", o);
|
|
2463
2463
|
}
|
|
2464
|
-
|
|
2464
|
+
A(
|
|
2465
2465
|
e,
|
|
2466
2466
|
"Common space",
|
|
2467
2467
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -2472,7 +2472,7 @@ function At(e, n = void 0, s = void 0) {
|
|
|
2472
2472
|
},
|
|
2473
2473
|
!0
|
|
2474
2474
|
);
|
|
2475
|
-
const i =
|
|
2475
|
+
const i = v.now().ts, r = `https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dsearch&platformId=${e.tenant}`;
|
|
2476
2476
|
m(r, {
|
|
2477
2477
|
onComplete(o) {
|
|
2478
2478
|
if (Array.isArray(JSON.parse(o))) {
|
|
@@ -2520,7 +2520,7 @@ function At(e, n = void 0, s = void 0) {
|
|
|
2520
2520
|
}),
|
|
2521
2521
|
type: "json",
|
|
2522
2522
|
onComplete(d) {
|
|
2523
|
-
|
|
2523
|
+
t && t(d);
|
|
2524
2524
|
},
|
|
2525
2525
|
onFailure(d) {
|
|
2526
2526
|
s && s(d);
|
|
@@ -2535,98 +2535,98 @@ function At(e, n = void 0, s = void 0) {
|
|
|
2535
2535
|
});
|
|
2536
2536
|
}
|
|
2537
2537
|
export {
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2538
|
+
L as UUID,
|
|
2539
|
+
jt as _3DSearch_usersGroup,
|
|
2540
|
+
Le as _3DSpace_Create_Doc,
|
|
2541
|
+
De as _3DSpace_Update_Doc,
|
|
2542
|
+
Ve as _3DSpace_bookmark_addSubsciptions,
|
|
2543
|
+
Be as _3DSpace_bookmark_newWorkspace,
|
|
2544
2544
|
O as _3DSpace_csrf,
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2545
|
+
G as _3DSpace_download_doc,
|
|
2546
|
+
ne as _3DSpace_download_multidoc,
|
|
2547
|
+
J as _3DSpace_file_update,
|
|
2548
|
+
te as _3DSpace_file_update_csr,
|
|
2549
|
+
Re as _3DSpace_file_url_csr,
|
|
2550
|
+
k as _3DSpace_get_csrf,
|
|
2551
|
+
M as _3DSpace_get_docInfo,
|
|
2552
|
+
se as _3DSpace_get_downloadTicket_multidoc,
|
|
2553
|
+
Pe as _3DSpace_get_multiDocInfo,
|
|
2554
|
+
A as _3DSpace_get_securityContexts,
|
|
2555
|
+
x as _3DSpace_get_ticket,
|
|
2556
|
+
Ke as _3DSpace_lifecycle_changeRevision,
|
|
2557
|
+
Je as _3DSpace_lifecycle_changeState,
|
|
2558
|
+
Ge as _3DSpace_lifecycle_getGraph,
|
|
2559
|
+
Ee as _3DSpace_lifecycle_getNextRevision,
|
|
2560
|
+
Me as _3DSpace_lifecycle_getNextStates,
|
|
2561
|
+
ot as _3DSwym_buildDirectMessage,
|
|
2562
|
+
dt as _3DSwym_deleteIdea,
|
|
2563
|
+
ut as _3DSwym_editIdea,
|
|
2564
|
+
pe as _3DSwym_findCommunityToInstantMSG,
|
|
2565
|
+
it as _3DSwym_getAllCommunities,
|
|
2566
|
+
lt as _3DSwym_getAllListIdeas,
|
|
2567
|
+
nt as _3DSwym_getAllNews,
|
|
2568
|
+
st as _3DSwym_getFamiliarPeople,
|
|
2569
|
+
at as _3DSwym_getIdeaStatusMaturity,
|
|
2570
|
+
de as _3DSwym_getMembersCommunity,
|
|
2571
|
+
pt as _3DSwym_getOneIdea,
|
|
2572
2572
|
C as _3DSwym_get_Token,
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2573
|
+
ft as _3DSwym_get_currentUser,
|
|
2574
|
+
mt as _3DSwym_get_findUser,
|
|
2575
|
+
ct as _3DSwym_postIdea,
|
|
2576
|
+
rt as _3DSwym_postIdeaTemplate,
|
|
2577
|
+
R as _3DSwym_sendMessageData,
|
|
2578
|
+
ve as _AppMngt_get_info_user,
|
|
2579
|
+
Ie as _AppMngt_get_users,
|
|
2580
|
+
Tt as _Iterop_AddOrRemoveRows,
|
|
2581
|
+
ht as _Iterop_Auth_CAS,
|
|
2582
|
+
It as _Iterop_GetOneDependencyTable,
|
|
2583
|
+
kt as _Iterop_GetOneList,
|
|
2584
|
+
St as _Iterop_ListUsers,
|
|
2585
|
+
vt as _Iterop_PatchDependencyTable,
|
|
2586
|
+
Nt as _Iterop_PutDependencyTable,
|
|
2587
|
+
bt as _Iterop_businessTableSearchInRows,
|
|
2588
|
+
_t as _Iterop_getAllBusinessTables,
|
|
2589
|
+
wt as _Iterop_getOneBusinessTable,
|
|
2590
|
+
Ct as _Iterop_getOneBusinessTableRows,
|
|
2591
|
+
yt as _Iterop_jwtUser,
|
|
2592
|
+
$t as _Iterop_runProcess,
|
|
2593
|
+
Ot as _Iterop_updateBusinessTable,
|
|
2594
2594
|
Y as _getPlateformInfos,
|
|
2595
|
-
|
|
2595
|
+
be as _getPlatformServices,
|
|
2596
2596
|
b as _getServiceUrl,
|
|
2597
|
-
|
|
2598
|
-
|
|
2597
|
+
Oe as _getServiceUrl_3DPassport,
|
|
2598
|
+
gt as _getServiceUrl_Iterop,
|
|
2599
2599
|
m as _httpCallAuthenticated,
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2600
|
+
we as _setDraggable,
|
|
2601
|
+
Te as _setDroppable,
|
|
2602
|
+
Ce as _setupTagger,
|
|
2603
|
+
Ze as addTagToDoc,
|
|
2604
|
+
X as chunkArray,
|
|
2605
|
+
$e as compass_getListAdditionalApps,
|
|
2606
|
+
W as couleurs,
|
|
2607
|
+
Ne as createUserGroups,
|
|
2608
|
+
ie as dataMixing,
|
|
2609
|
+
je as deleteUserGroups,
|
|
2610
|
+
ye as findAdresse,
|
|
2611
|
+
We as getAllContextSecurity,
|
|
2612
|
+
z as getCSRFToken,
|
|
2613
|
+
he as getCommunes,
|
|
2614
|
+
ke as getComplementUG,
|
|
2615
|
+
Xe as getDataFrom3DSpace,
|
|
2616
|
+
Se as getDataFromGouvFr,
|
|
2617
|
+
ze as getDatasByTenant,
|
|
2618
|
+
Qe as getDatasFrom3DSpace,
|
|
2619
|
+
qe as getDownloadDocument,
|
|
2620
|
+
tt as getInfoDocTags,
|
|
2621
|
+
Ae as getUserGroupsList,
|
|
2622
|
+
H as getUsersGroupRules,
|
|
2623
|
+
He as get_3DSpace_csrf,
|
|
2624
|
+
Fe as patchUserGroups,
|
|
2625
|
+
Ue as patchUserGroupsControl,
|
|
2626
2626
|
Ye as pushDataIn3DSpace,
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2627
|
+
xe as readUserGroupControl,
|
|
2628
|
+
et as removeTagToDoc,
|
|
2629
|
+
At as sayHello,
|
|
2630
|
+
_e as updateEvent
|
|
2631
2631
|
};
|
|
2632
2632
|
//# sourceMappingURL=wb3Api.js.map
|