window.contextPath = '/mail'; function getBootstrapConfig() { /** * transform bootstrap infomation * */ function transform(obj) { var result = {} var isArray = function(obj) { return Object.prototype.toString.call(obj) === '[object Array]' } var isObject = function(obj) { return Object.prototype.toString.call(obj) === '[object Object]' } var parseChildren = function(arr) { var result = {} arr.forEach(function(cObj) { if (result[cObj.name] && !isArray(result[cObj.name])) { result[cObj.name] = [result[cObj.name]] result[cObj.name].push(getObject(cObj)) } else if (result[cObj.name] && isArray(result[cObj.name])) { result[cObj.name].push(getObject(cObj)) } else { if (cObj.name === 'input') { // specail for section of contact form result[cObj.name] = [getObject(cObj)] } else { result[cObj.name] = getObject(cObj) } } }) return result } var getObject = function(obj) { var temp = {} if (obj.name && obj.children) { var v = parseChildren(obj.children) if (isArray(v)) { if (Object.keys(obj).length > 2) { temp = obj temp.children = v } else { temp[obj.name] = v } } else if (isObject(v)) { temp = v } } if (obj.attrs && obj.text) { Object.assign(temp, obj.attrs) temp.text = obj.text } else if (obj.attrs) { Object.assign(temp, obj.attrs) } else if (obj.text) { if (Object.keys(temp).length) { temp.text = obj.text } else { temp = obj.text } } return temp } Object.keys(obj).forEach(function(k) { if (isObject(obj[k])) { if (obj[k].name === k && obj[k].children) { result[k] = getObject(obj[k]) } else { result[k] = transform(obj[k]) } } else { result[k] = obj[k] } }) return result } return transform({ "calendar" : { "maxcalendarnamelength" : 64, "maxuploadbytes" : 5242880, "maxeventnamelength" : 64, "rsvpEnabled" : true, "allowCalDomain" : "mx.internal", "dayend" : 18, "maxeventnoteslength" : 4096, "recurrence" : { "children" : [ { "name" : "repeat", "attrs" : { "label" : "Locale.calendar.editorView.recurrence.NEVER", "value" : "never" } }, { "name" : "repeat", "attrs" : { "label" : "Locale.calendar.editorView.recurrence.DAILY", "value" : "daily" } }, { "name" : "repeat", "attrs" : { "label" : "Locale.calendar.editorView.recurrence.WEEKLY", "value" : "weekly" } }, { "name" : "repeat", "attrs" : { "label" : "Locale.calendar.editorView.recurrence.MONTHLY", "value" : "monthly" } }, { "name" : "repeat", "attrs" : { "label" : "Locale.calendar.editorView.recurrence.YEARLY", "value" : "yearly" } } ], "name" : "recurrence" }, "daystart" : 8, "weekstart" : 7, "enableFreeBusyStatus" : false, "maxRepSingleEvent" : 50, "showpublishedcalendar" : true, "maxsubscriptions" : 10, "showsharedcalendar" : false }, "extensionnametypemap" : { "extensionNameTypeMap" : { "children" : [ { "children" : [ { "name" : "extensionNames", "text" : "jpg,jpeg" } ], "name" : "item", "attrs" : { "preview" : "true", "transcode" : "false", "type" : "img_generic" } }, { "children" : [ { "name" : "extensionNames", "text" : "png" } ], "name" : "item", "attrs" : { "preview" : "true", "transcode" : "false", "type" : "img_png" } }, { "children" : [ { "name" : "extensionNames", "text" : "gif" } ], "name" : "item", "attrs" : { "preview" : "true", "transcode" : "false", "type" : "img_gif" } }, { "children" : [ { "name" : "extensionNames", "text" : "psd" } ], "name" : "item", "attrs" : { "preview" : "false", "transcode" : "false", "type" : "psd" } }, { "children" : [ { "name" : "extensionNames", "text" : "doc,docm,docx,dotm,dotx,rtf,xlt" } ], "name" : "item", "attrs" : { "preview" : "true", "transcode" : "true", "type" : "doc" } }, { "children" : [ { "name" : "extensionNames", "text" : "txt" } ], "name" : "item", "attrs" : { "preview" : "true", "transcode" : "true", "type" : "txt" } }, { "children" : [ { "name" : "extensionNames", "text" : "ppt,pot,potm,potx,pps,pptx" } ], "name" : "item", "attrs" : { "preview" : "true", "transcode" : "true", "type" : "ppt" } }, { "children" : [ { "name" : "extensionNames", "text" : "xls,xlsb,xlsm,xlsx,xlt,xltm,xltx,xlw" } ], "name" : "item", "attrs" : { "preview" : "true", "transcode" : "true", "type" : "sheets" } }, { "children" : [ { "name" : "extensionNames", "text" : "pdf" } ], "name" : "item", "attrs" : { "preview" : "true", "transcode" : "true", "type" : "pdf" } }, { "children" : [ { "name" : "extensionNames", "text" : "java" } ], "name" : "item", "attrs" : { "preview" : "true", "transcode" : "true", "type" : "java" } }, { "children" : [ { "name" : "extensionNames", "text" : "eml" } ], "name" : "item", "attrs" : { "preview" : "true", "type" : "eml" } }, { "children" : [ { "name" : "extensionNames", "text" : "ics" } ], "name" : "item", "attrs" : { "preview" : "true", "type" : "ics" } }, { "children" : [ { "name" : "extensionNames", "text" : "vcf" } ], "name" : "item", "attrs" : { "preview" : "false", "type" : "vcf" } }, { "children" : [ { "name" : "extensionNames", "text" : "mp3,wav" } ], "name" : "item", "attrs" : { "preview" : "false", "type" : "audio" } }, { "children" : [ { "name" : "extensionNames", "text" : "mov" } ], "name" : "item", "attrs" : { "preview" : "false", "type" : "mov" } }, { "children" : [ { "name" : "extensionNames", "text" : "mp4,3gp,3g2,mpeg,avi" } ], "name" : "item", "attrs" : { "preview" : "false", "type" : "video" } }, { "children" : [ { "name" : "extensionNames", "text" : "zip,rar,7z,tar,iso" } ], "name" : "item", "attrs" : { "preview" : "false", "type" : "zip" } }, { "children" : [ { "name" : "extensionNames", "text" : "exe" } ], "name" : "item", "attrs" : { "preview" : "false", "type" : "exe" } }, { "children" : [ { "name" : "extensionNames", "text" : "mms" } ], "name" : "item", "attrs" : { "preview" : "false", "type" : "mms" } }, { "children" : [ { "name" : "extensionNames", "text" : "xml" } ], "name" : "item", "attrs" : { "preview" : "true", "transcode" : "true", "type" : "xml" } }, { "children" : [ { "name" : "extensionNames", "text" : "csv" } ], "name" : "item", "attrs" : { "preview" : "true", "transcode" : "true", "type" : "csv" } }, { "children" : [ { "name" : "extensionNames", "text" : "tif,tiff" } ], "name" : "item", "attrs" : { "preview" : "true", "transcode" : "true", "type" : "img_tif" } } ], "name" : "extensionNameTypeMap" } }, "common" : { "mediastreamerappname" : "/mediastreamer/voicemail/", "helpurlfortouch" : "help/Default.htm", "concurrentLoginLimitEnabled" : false, "feedbacktarget" : "", "defaultDateFormat" : "DD/MM/YYYY", "showTasksApp" : true, "helpurl" : "help/Default.htm", "userInactiveTimeout" : 120000, "logourl" : "http://owmessaging.com", "skins" : { "name" : "skins" }, "mediastreamerport" : "8080", "advertisementLink" : "", "redirectLoginUrl" : "", "mediastreamer" : "localhost", "routingCallerUrl" : "https://mailbus.fastweb.it/mail/", "searchResultTargetWindowName" : "searchResult", "showLanguageSetting" : false, "warnBeforeTokenExpiresTime" : 120000, "migrationPhase" : false, "redirectTimeoutUrl" : "", "redirectLogoutUrl" : "", "showDateFormat" : false, "minuteScale" : 5, "userDomain" : "localhost", "dataValidation" : { "children" : [ { "name" : "phone", "attrs" : { "regexp" : "^[\\w-#\\(\\)\\+\\/\\.\\*]{0,20}$" } }, { "name" : "pager", "attrs" : { "regexp" : "^[0-9]{0,50}$" } } ], "name" : "dataValidation" }, "services" : "mail.vacationMessage-json,notification-json,um.doNotDisturb-json,mail.message-json,mail,datastore,user.loginhistory-json,serviceProfile-json,mediaTranscoderErrorReporter,mail.mobileSignature-json,calendar.share-json,mail.folder-json,mail.category.message-json,log-json,mailFilter,mailSignature,mobileMailSignature,captcha-json,mail.externalAccount-json,mailVacationMessage,mail.trustedSender-json,version-json,auth-json,clientconfig-json,calendar.toDo-json,calendar-json,trustedsender,mail.signature-json,blockedsender,mailAlias,mail.vacationMessage2-json,mail.alias-json,storage.account-json,calendar.preference-json,device-json,mail.userControls-json,mailExternalAccount.oauth2code-json,calendar.reminderaddress-json,mail.preference-json,storage.file-json,contacts.addressBook-json,mailPreference,bootstrap-json,sms-json,mailJunkPreference,mail.message.attachment-json,auth.nc-json,resource-json,noop-json,calendar.taskList-json,allowedsender,mailExternalAccount,mail.blockedSender-json,user-json,metrics-json,mail.junkPreference-json,user.session-json,storage.authentication-json,contacts-json,api-json,pickup-json,mailForwarding,calendar,calendar.event-json,datastore-json,oembed,storage.folder-json,mail.attachmentView-json,smsAccount-json,user.securitytracking-json,prefs,mail.collectedAddress-json,mail.allowedSender-json,prefs-json,fileUpload-json,user.profile-json,officePreview-json,timezone-json,mail.filter-json,mail.forwarding-json,health-json", "failedLoginLimit" : -1, "adRotationInterval" : 30000, "defaultTimeZone" : "Etc/GMT", "fileTypesDisplayAudioPlayer" : { "children" : [ { "name" : "Firefox", "text" : "ogg" }, { "name" : "Safari", "text" : "mpeg,mp3" }, { "name" : "IE", "text" : "mpeg,mp3" }, { "name" : "Chrome", "text" : "mpeg,mp3" } ], "name" : "fileTypesDisplayAudioPlayer" }, "footerLinks" : { "children" : [ { "name" : "link", "attrs" : { "href" : "http://www.cp.net/emailmanagement", "text" : "MANAGE_YOUR_MAIL" } }, { "name" : "link", "attrs" : { "href" : "http://www.cp.net/contact", "text" : "CONTACT_US" } }, { "name" : "link", "attrs" : { "href" : "http://www.cp.net/feedback", "text" : "SEND_US_FEEDBACK" } }, { "name" : "link", "attrs" : { "href" : "http://www.cp.net/privacy-policy", "text" : "PRIVACY_POLICY" } }, { "name" : "link", "attrs" : { "href" : "http://www.cp.net/terms-and-conditions", "text" : "TERMS_CONDITIONS" } }, { "name" : "link", "attrs" : { "href" : "help/touch/index.html", "text" : "HELP" } } ], "name" : "footerLinks" }, "windowStateSaveDelay" : -1, "desktopappurl" : "index.jsp" }, "mail" : { "autoSaveTime" : 60000, "maxallowedsenders" : 10, "vacationMessageReplyOption" : false, "maxblockedsenders" : 100, "maxuploadbytes" : 5242880, "emailMaximum" : 307200, "specialFolders" : { "children" : [ { "name" : "inbox", "attrs" : { "name" : "Inbox", "isFolderDropTarget" : "false", "isMessageDropTarget" : "true" } }, { "name" : "draft", "attrs" : { "name" : "Drafts", "isFolderDropTarget" : "false", "isMessageDropTarget" : "true" } }, { "name" : "sent", "attrs" : { "name" : "Sent Items", "isFolderDropTarget" : "false", "isMessageDropTarget" : "true" } }, { "name" : "junk", "attrs" : { "name" : "Spam", "isFolderDropTarget" : "false", "isMessageDropTarget" : "true" } }, { "name" : "trash", "attrs" : { "name" : "Trash", "isFolderDropTarget" : "false", "isMessageDropTarget" : "true" } } ], "name" : "specialFolders", "attrs" : { "caseSensitive" : "true", "useServerTypes" : "true" } }, "autoCheck" : { "children" : [ { "name" : "interval", "text" : "sdk.mail.autoCheck.manually", "attrs" : { "value" : "0" } }, { "name" : "interval", "text" : "sdk.mail.autoCheck.everyMinute", "attrs" : { "value" : "60" } }, { "name" : "interval", "text" : "sdk.mail.autoCheck.everyFiveMinutes", "attrs" : { "value" : "300" } }, { "name" : "interval", "text" : "sdk.mail.autoCheck.everyFifteenMinutes", "attrs" : { "value" : "900" } }, { "name" : "interval", "text" : "sdk.mail.autoCheck.everyThirtyMinutes", "attrs" : { "value" : "1800" } }, { "name" : "interval", "text" : "sdk.mail.autoCheck.everyHour", "attrs" : { "value" : "3600" } } ], "name" : "autoCheck" }, "maxtrustedsenders" : 10, "includedDomain" : "", "externalmailbox" : { "children" : [ { "name" : "defaultImapFolderMapping", "attrs" : { "imapSent" : "Sent Items", "imapTrash" : "Trash", "imapDrafts" : "Drafts", "imapJunk" : "Spam" } }, { "name" : "popUidHeaderName", "attrs" : { "value" : "X-POP-UID" } }, { "children" : [ { "children" : [ { "name" : "nonSecurePorts", "attrs" : { "value" : "143" } }, { "name" : "securePorts", "attrs" : { "value" : "993" } } ], "name" : "imap", "attrs" : { "enabled" : "true" } }, { "children" : [ { "name" : "nonSecurePorts", "attrs" : { "value" : "110" } }, { "name" : "securePorts", "attrs" : { "value" : "995" } } ], "name" : "pop", "attrs" : { "enabled" : "true" } }, { "children" : [ { "name" : "nonSecurePorts", "attrs" : { "value" : "25,587" } }, { "name" : "securePorts", "attrs" : { "value" : "465,587" } } ], "name" : "smtp", "attrs" : { "enabled" : "true" } } ], "name" : "allowedPorts" }, { "children" : [ { "name" : "protocol", "attrs" : { "server" : "smtp.aol.com", "port" : "587", "type" : "smtp", "usessl" : "false" } }, { "name" : "protocol", "attrs" : { "server" : "pop.aol.com", "port" : "110", "type" : "pop", "usessl" : "false" } } ], "name" : "service", "attrs" : { "display" : "AOL (POP)", "name" : "aol", "type" : "pop" } }, { "children" : [ { "name" : "protocol", "attrs" : { "server" : "smtp.aol.com", "port" : "587", "type" : "smtp", "usessl" : "false" } }, { "name" : "protocol", "attrs" : { "server" : "imap.aol.com", "port" : "143", "type" : "imap", "usessl" : "false" } }, { "name" : "imapFolderMapping", "attrs" : { "imapSent" : "Sent Items", "imapTrash" : "Trash", "imapDrafts" : "Drafts", "imapJunk" : "Spam" } } ], "name" : "service", "attrs" : { "display" : "AOL (IMAP)", "name" : "aol", "type" : "imap" } }, { "children" : [ { "name" : "protocol", "attrs" : { "server" : "smtp.gmail.com", "port" : "587", "type" : "smtp", "usessl" : "true" } }, { "name" : "protocol", "attrs" : { "server" : "pop.gmail.com", "port" : "995", "type" : "pop", "usessl" : "true" } } ], "name" : "service", "attrs" : { "display" : "Google GMail (POP)", "name" : "gmail", "type" : "pop" } }, { "children" : [ { "name" : "protocol", "attrs" : { "server" : "smtp.gmail.com", "port" : "587", "type" : "smtp", "usessl" : "true" } }, { "name" : "protocol", "attrs" : { "server" : "imap.gmail.com", "port" : "993", "type" : "imap", "usessl" : "true" } }, { "name" : "imapFolderMapping", "attrs" : { "imapSent" : "[Gmail]/Sent Mail", "imapTrash" : "[Gmail]/Trash", "imapDrafts" : "[Gmail]/Drafts", "imapJunk" : "[Gmail]/Spam" } } ], "name" : "service", "attrs" : { "display" : "Google GMail (IMAP)", "name" : "gmail", "type" : "imap" } }, { "children" : [ { "name" : "protocol", "attrs" : { "server" : "smtp.mail.yahoo.com", "port" : "465", "type" : "smtp", "usessl" : "true" } }, { "name" : "protocol", "attrs" : { "server" : "pop.mail.yahoo.com", "port" : "995", "type" : "pop", "usessl" : "true" } } ], "name" : "service", "attrs" : { "display" : "Yahoo! Plus (POP)", "name" : "yahoo", "type" : "pop" } }, { "children" : [ { "name" : "protocol", "attrs" : { "server" : "smtp.mail.yahoo.com", "port" : "465", "type" : "smtp", "usessl" : "true" } }, { "name" : "protocol", "attrs" : { "server" : "imap.mail.yahoo.com", "port" : "993", "type" : "imap", "usessl" : "true" } }, { "name" : "imapFolderMapping", "attrs" : { "imapSent" : "Sent", "imapTrash" : "Trash", "imapDrafts" : "Draft", "imapJunk" : "Bulk Mail" } } ], "name" : "service", "attrs" : { "display" : "Yahoo! Plus (IMAP)", "name" : "yahoo", "type" : "imap" } }, { "children" : [ { "name" : "protocol", "attrs" : { "server" : "smtp.fastwebnet.it", "port" : "587", "type" : "smtp", "usessl" : "false" } }, { "name" : "protocol", "attrs" : { "server" : "pop.fastwebnet.it", "port" : "110", "type" : "pop", "usessl" : "false" } } ], "name" : "service", "attrs" : { "display" : "Fastwebnet (POP)", "name" : "fastwebnet", "type" : "pop" } }, { "children" : [ { "name" : "protocol", "attrs" : { "server" : "smtp.fastwebnet.it", "port" : "587", "type" : "smtp", "usessl" : "false" } }, { "name" : "protocol", "attrs" : { "server" : "imap.fastwebnet.it", "port" : "143", "type" : "imap", "usessl" : "false" } }, { "name" : "imapFolderMapping", "attrs" : { "imapSent" : "Sent Items", "imapTrash" : "Trash", "imapDrafts" : "Drafts", "imapJunk" : "Spam" } } ], "name" : "service", "attrs" : { "display" : "Fastwebnet (IMAP)", "name" : "fastwebnet", "type" : "imap" } }, { "children" : [ { "name" : "protocol", "attrs" : { "server" : "smtp.libero.it", "port" : "465", "type" : "smtp", "usessl" : "true" } }, { "name" : "protocol", "attrs" : { "server" : "popmail.libero.it", "port" : "995", "type" : "pop", "usessl" : "true" } } ], "name" : "service", "attrs" : { "display" : "Libero (POP)", "name" : "libero", "type" : "pop" } }, { "children" : [ { "name" : "protocol", "attrs" : { "server" : "smtp.libero.it", "port" : "465", "type" : "smtp", "usessl" : "true" } }, { "name" : "protocol", "attrs" : { "server" : "imapmail.libero.it", "port" : "993", "type" : "imap", "usessl" : "true" } }, { "name" : "imapFolderMapping", "attrs" : { "imapSent" : "outbox", "imapTrash" : "trash", "imapDrafts" : "draft", "imapJunk" : "Spam" } } ], "name" : "service", "attrs" : { "display" : "Libero (IMAP)", "name" : "libero", "type" : "imap" } }, { "children" : [ { "name" : "protocol", "attrs" : { "server" : "out.virgilio.it", "port" : "465", "type" : "smtp", "usessl" : "true" } }, { "name" : "protocol", "attrs" : { "server" : "in.virgilio.it", "port" : "995", "type" : "pop", "usessl" : "true" } } ], "name" : "service", "attrs" : { "display" : "Virgilio (POP)", "name" : "virgilio", "type" : "pop" } }, { "children" : [ { "name" : "protocol", "attrs" : { "server" : "out.virgilio.it", "port" : "465", "type" : "smtp", "usessl" : "true" } }, { "name" : "protocol", "attrs" : { "server" : "in.virgilio.it", "port" : "993", "type" : "imap", "usessl" : "true" } }, { "name" : "imapFolderMapping", "attrs" : { "imapSent" : "Posta Inviata", "imapTrash" : "Cestino", "imapDrafts" : "Bozze", "imapJunk" : "Spam" } } ], "name" : "service", "attrs" : { "display" : "Virgilio (IMAP)", "name" : "virgilio", "type" : "imap" } }, { "children" : [ { "name" : "protocol", "attrs" : { "server" : "out.alice.it", "port" : "587", "type" : "smtp", "usessl" : "false" } }, { "name" : "protocol", "attrs" : { "server" : "in.alice.it", "port" : "110", "type" : "pop", "usessl" : "false" } } ], "name" : "service", "attrs" : { "display" : "Alice (POP)", "name" : "alice", "type" : "pop" } }, { "children" : [ { "name" : "protocol", "attrs" : { "server" : "out.alice.it", "port" : "587", "type" : "smtp", "usessl" : "false" } }, { "name" : "protocol", "attrs" : { "server" : "in.alice.it", "port" : "143", "type" : "imap", "usessl" : "false" } }, { "name" : "imapFolderMapping", "attrs" : { "imapSent" : "Posta inviata", "imapTrash" : "Posta eliminata", "imapDrafts" : "Bozze", "imapJunk" : "Posta indesiderata" } } ], "name" : "service", "attrs" : { "display" : "Alice (IMAP)", "name" : "alice", "type" : "imap" } }, { "children" : [ { "name" : "protocol", "attrs" : { "server" : "smtp.tim.it", "port" : "587", "type" : "smtp", "usessl" : "false" } }, { "name" : "protocol", "attrs" : { "server" : "pop.tim.it", "port" : "110", "type" : "pop", "usessl" : "false" } } ], "name" : "service", "attrs" : { "display" : "TIM (POP)", "name" : "tim", "type" : "pop" } }, { "children" : [ { "name" : "protocol", "attrs" : { "server" : "smtp.tim.it", "port" : "587", "type" : "smtp", "usessl" : "false" } }, { "name" : "protocol", "attrs" : { "server" : "imap.tim.it", "port" : "143", "type" : "imap", "usessl" : "false" } }, { "name" : "imapFolderMapping", "attrs" : { "imapSent" : "Posta inviata", "imapTrash" : "Posta eliminata", "imapDrafts" : "Bozze", "imapJunk" : "Posta indesiderata" } } ], "name" : "service", "attrs" : { "display" : "TIM (IMAP)", "name" : "tim", "type" : "imap" } }, { "children" : [ { "name" : "protocol", "attrs" : { "server" : "smtps.tin.it", "port" : "587", "type" : "smtp", "usessl" : "false" } }, { "name" : "protocol", "attrs" : { "server" : "pops.tin.it", "port" : "110", "type" : "pop", "usessl" : "false" } } ], "name" : "service", "attrs" : { "display" : "TIN (POP)", "name" : "tin", "type" : "pop" } }, { "children" : [ { "name" : "protocol", "attrs" : { "server" : "smtps.tin.it", "port" : "587", "type" : "smtp", "usessl" : "false" } }, { "name" : "protocol", "attrs" : { "server" : "imaps.tin.it", "port" : "143", "type" : "imap", "usessl" : "false" } }, { "name" : "imapFolderMapping", "attrs" : { "imapSent" : "Posta inviata", "imapTrash" : "Cestino", "imapDrafts" : "Bozze", "imapJunk" : "Spam" } } ], "name" : "service", "attrs" : { "display" : "TIN (IMAP)", "name" : "tin", "type" : "imap" } }, { "children" : [ { "name" : "protocol", "attrs" : { "server" : "smtp.tiscali.it", "port" : "465", "type" : "smtp", "usessl" : "true" } }, { "name" : "protocol", "attrs" : { "server" : "pop.tiscali.it", "port" : "995", "type" : "pop", "usessl" : "true" } } ], "name" : "service", "attrs" : { "display" : "Tiscali (POP)", "name" : "tiscali", "type" : "pop" } }, { "children" : [ { "name" : "protocol", "attrs" : { "server" : "smtp.tiscali.it", "port" : "465", "type" : "smtp", "usessl" : "true" } }, { "name" : "protocol", "attrs" : { "server" : "imap.tiscali.it", "port" : "993", "type" : "imap", "usessl" : "true" } }, { "name" : "imapFolderMapping", "attrs" : { "imapSent" : "Sent", "imapTrash" : "Trash", "imapDrafts" : "Drafts", "imapJunk" : "Spam" } } ], "name" : "service", "attrs" : { "display" : "Tiscali (IMAP)", "name" : "tiscali", "type" : "imap" } }, { "children" : [ { "name" : "protocol", "attrs" : { "server" : "smtp.office365.com", "port" : "587", "type" : "smtp", "usessl" : "false" } }, { "name" : "protocol", "attrs" : { "server" : "outlook.office365.com", "port" : "995", "type" : "pop", "usessl" : "true" } } ], "name" : "service", "attrs" : { "display" : "Hotmail (POP)", "name" : "hotmail", "type" : "pop" } }, { "children" : [ { "name" : "protocol", "attrs" : { "server" : "smtp.office365.com", "port" : "587", "type" : "smtp", "usessl" : "false" } }, { "name" : "protocol", "attrs" : { "server" : "outlook.office365.com", "port" : "993", "type" : "imap", "usessl" : "true" } }, { "name" : "imapFolderMapping", "attrs" : { "imapSent" : "Sent Items", "imapTrash" : "Deleted Items", "imapDrafts" : "Drafts", "imapJunk" : "Junk Email" } } ], "name" : "service", "attrs" : { "display" : "Hotmail (IMAP)", "name" : "hotmail", "type" : "imap" } }, { "children" : [ { "name" : "protocol", "attrs" : { "server" : "smtp.office365.com", "port" : "587", "type" : "smtp", "usessl" : "false" } }, { "name" : "protocol", "attrs" : { "server" : "outlook.office365.com", "port" : "995", "type" : "pop", "usessl" : "true" } } ], "name" : "service", "attrs" : { "display" : "Outlook (POP)", "name" : "outlook", "type" : "pop" } }, { "children" : [ { "name" : "protocol", "attrs" : { "server" : "smtp.office365.com", "port" : "587", "type" : "smtp", "usessl" : "false" } }, { "name" : "protocol", "attrs" : { "server" : "outlook.office365.com", "port" : "993", "type" : "imap", "usessl" : "true" } }, { "name" : "imapFolderMapping", "attrs" : { "imapSent" : "Sent Items", "imapTrash" : "Deleted Items", "imapDrafts" : "Drafts", "imapJunk" : "Junk Email" } } ], "name" : "service", "attrs" : { "display" : "Outlook (IMAP)", "name" : "outlook", "type" : "imap" } }, { "children" : [ { "name" : "protocol", "attrs" : { "server" : "smtp.office365.com", "port" : "587", "type" : "smtp", "usessl" : "false" } }, { "name" : "protocol", "attrs" : { "server" : "outlook.office365.com", "port" : "995", "type" : "pop", "usessl" : "true" } } ], "name" : "service", "attrs" : { "display" : "live.com (POP)", "name" : "live.com", "type" : "pop" } }, { "children" : [ { "name" : "protocol", "attrs" : { "server" : "smtp.office365.com", "port" : "587", "type" : "smtp", "usessl" : "false" } }, { "name" : "protocol", "attrs" : { "server" : "outlook.office365.com", "port" : "993", "type" : "imap", "usessl" : "true" } }, { "name" : "imapFolderMapping", "attrs" : { "imapSent" : "Sent Items", "imapTrash" : "Deleted Items", "imapDrafts" : "Drafts", "imapJunk" : "Junk Email" } } ], "name" : "service", "attrs" : { "display" : "live.com (IMAP)", "name" : "live.com", "type" : "imap" } }, { "children" : [ { "name" : "protocol", "attrs" : { "server" : "smtp-mail.outlook.com", "port" : "587", "type" : "smtp", "usessl" : "false" } }, { "name" : "protocol", "attrs" : { "server" : "pop-mail.outlook.com", "port" : "995", "type" : "pop", "usessl" : "true" } } ], "name" : "service", "attrs" : { "display" : "MSN (POP)", "name" : "msn", "type" : "pop" } }, { "children" : [ { "name" : "protocol", "attrs" : { "server" : "smtp-mail.outlook.com", "port" : "587", "type" : "smtp", "usessl" : "false" } }, { "name" : "protocol", "attrs" : { "server" : "imap-mail.outlook.com", "port" : "993", "type" : "imap", "usessl" : "true" } }, { "name" : "imapFolderMapping", "attrs" : { "imapSent" : "Sent", "imapTrash" : "Trash", "imapDrafts" : "Drafts", "imapJunk" : "Spam" } } ], "name" : "service", "attrs" : { "display" : "MSN (IMAP)", "name" : "msn", "type" : "imap" } } ], "name" : "externalmailbox", "attrs" : { "pop" : "true", "useExternalServerTypes" : "false", "transportTlsVersion" : "TLSv1.1 TLSv1.2", "imap" : "true", "smtp" : "remote", "accountLimit" : "12", "regressToV1" : "false", "storeTlsVersion" : "TLSv1.1 TLSv1.2" } }, "headerfetchcount" : 100 }, "upload" : { "maxBatchSize" : 2147483648, "maxFileSize" : -1 }, "contacts" : { "mapRootURL" : "http://maps.googleapis.com/maps/api/js?sensor=false", "maxCollectedEmails" : 2000, "enableGroupEmails" : true, "contactitemDisplayTypes" : "lzEmail", "maxAddressBooks" : 9, "delLargeContactWarning" : 50, "contactForm" : { "children" : [ { "children" : [ { "name" : "input", "attrs" : { "name" : "nickname" } }, { "name" : "input", "attrs" : { "displayByDefault" : "false", "name" : "title" } }, { "name" : "input", "attrs" : { "displayByDefault" : "false", "name" : "department" } }, { "name" : "input", "attrs" : { "displayByDefault" : "false", "name" : "company" } } ], "name" : "section", "attrs" : { "showmiddlename" : "true", "type" : "lzHeader" } }, { "children" : [ { "name" : "input", "attrs" : { "defaultEmail" : "true", "name" : "home" } }, { "name" : "input", "attrs" : { "name" : "work" } }, { "name" : "input", "attrs" : { "name" : "other" } } ], "name" : "section", "attrs" : { "validator" : "email", "type" : "lzEmail", "title" : "Email" } }, { "children" : [ { "name" : "input", "attrs" : { "name" : "home" } }, { "name" : "input", "attrs" : { "name" : "work" } }, { "name" : "input", "attrs" : { "name" : "other" } } ], "name" : "section", "attrs" : { "validator" : "phone", "type" : "lzPhone_mobile", "title" : "Mobile" } }, { "children" : [ { "name" : "input", "attrs" : { "name" : "home" } }, { "name" : "input", "attrs" : { "name" : "work" } }, { "name" : "input", "attrs" : { "name" : "other" } } ], "name" : "section", "attrs" : { "validator" : "phone", "type" : "lzPhone", "title" : "Phone" } }, { "children" : [ { "name" : "input", "attrs" : { "name" : "home" } }, { "name" : "input", "attrs" : { "name" : "work" } }, { "name" : "input", "attrs" : { "name" : "other" } } ], "name" : "section", "attrs" : { "displayByDefault" : "true", "validator" : "phone", "type" : "lzPhone_fax", "title" : "Fax" } }, { "children" : [ { "name" : "input", "attrs" : { "name" : "street", "type" : "textarea", "rows" : "2" } }, { "name" : "input", "attrs" : { "name" : "city" } }, { "name" : "input", "attrs" : { "name" : "state" } }, { "name" : "input", "attrs" : { "name" : "zip" } }, { "name" : "input", "attrs" : { "name" : "country" } } ], "name" : "section", "attrs" : { "showmap" : "true", "groupLabel" : "home,work,other", "type" : "lzAddress", "title" : "Address" } }, { "children" : [ { "name" : "input", "attrs" : { "name" : "birthday", "type" : "date" } }, { "name" : "input", "attrs" : { "name" : "anniversary", "type" : "date" } } ], "name" : "section", "attrs" : { "type" : "lzPersonal", "title" : "Personal", "allowDuplicates" : "false" } }, { "children" : [ { "name" : "input", "attrs" : { "name" : "home" } }, { "name" : "input", "attrs" : { "name" : "work" } }, { "name" : "input", "attrs" : { "name" : "other" } } ], "name" : "section", "attrs" : { "displayByDefault" : "false", "validator" : "pager", "type" : "lzPhone_pager", "title" : "Pager" } }, { "children" : [ { "name" : "input", "attrs" : { "name" : "google" } }, { "name" : "input", "attrs" : { "name" : "msn" } }, { "name" : "input", "attrs" : { "name" : "yahoo" } }, { "name" : "input", "attrs" : { "name" : "aim" } }, { "name" : "input", "attrs" : { "name" : "skype" } }, { "name" : "input", "attrs" : { "name" : "qq" } }, { "name" : "input", "attrs" : { "name" : "icq" } }, { "name" : "input", "attrs" : { "name" : "jabber" } } ], "name" : "section", "attrs" : { "displayByDefault" : "false", "type" : "lzIM", "title" : "Chat address" } }, { "children" : [ { "name" : "input", "attrs" : { "name" : "home" } }, { "name" : "input", "attrs" : { "name" : "work" } }, { "name" : "input", "attrs" : { "name" : "other" } } ], "name" : "section", "attrs" : { "displayByDefault" : "false", "validator" : "url", "type" : "lzWeb", "title" : "Website" } }, { "children" : [ { "name" : "input", "attrs" : { "name" : "notes", "type" : "textarea" } } ], "name" : "section", "attrs" : { "displayByDefault" : "false", "type" : "lzNote", "title" : "Notes", "allowDuplicates" : "false" } }, { "children" : [ { "name" : "input", "attrs" : { "name" : "other" } } ], "name" : "section", "attrs" : { "displayByDefault" : "false", "type" : "lzOther", "title" : "Other" } } ], "name" : "contactForm", "attrs" : { "addFieldControl" : "selectionList", "forceAllFieldsVisible" : "true" } }, "enableContactDeduplication" : true, "allowDuplicateGroupName" : true, "maxMailingListLabelLength" : 100, "pagesize" : 300, "maxAddressBookLabelLength" : 32, "contactMinimumRequiredSection" : "lzEmail", "enableCollectedEmails" : false, "enableMailingList" : true, "enableGroupContacts" : true, "enableCreateAddressBooks" : true, "directoryServices" : { "children" : [ { "children" : [ { "name" : "connectivity", "attrs" : { "server" : "ldap.example.com", "port" : "389" } }, { "name" : "protocol", "attrs" : { "maxResults" : "100", "scope" : "subtree", "baseDn" : "dc=com" } }, { "name" : "authentication", "attrs" : { "bindDn" : "", "bindPassword" : "", "secure" : "false", "login" : "false" } } ], "name" : "service", "attrs" : { "display" : "Directory Service", "name" : "example" } } ], "name" : "directoryServices", "attrs" : { "limit" : "10" } } } }); } /** * Utility which recursively merges one object into an existing object. * This is used for overlaying locales and custom configs before Ext.Object.merge * being available. If the object has 'overwrite' property defined, object overwriting will be performed * instead of merging. */ function mergeObj (obj1, obj2) { for (var p in obj2) { try { if ((obj2[p].constructor == Object) && (obj2[p].overwrite != true)) { obj1[p] = mergeObj(obj1[p], obj2[p]); } else { obj1[p] = obj2[p]; } } catch(e) { obj1[p] = obj2[p]; } } return obj1; }