Cross Reference:
xref
: /
forgerock
/
openidm-v4
/
openidm-zip
/
src
/
main
/
resources
/
samples
/
sample7
/
script
/
setScimEmails.js
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
setScimEmails.js revision 759cbe36aeb56cbe1e788d90fbaa7f1a7e797f5d
/*global source */
(
function
() {
var
mails
=
source
.
emails
,
emails
= [],
i =
0
;
for
(i =
0
; i <
mails
.
length
; i +=
1
) {
if
(i ===
0
) {
emails
.
push
({
value
:
mails
[i],
type
:
"work"
,
primary
:
true
});
}
else
if
(i ===
1
) {
emails
.
push
({
value
:
mails
[i],
type
:
"home"
});
}
else
{
emails
.
push
({
value
:
mails
[i],
type
:
"no type"
});
}
}
return
emails
;
}());