Saltar al contendio prinicipal

Companies Data Model

Advertencia

Esta página aún no se encuentra traducida al español.

COTCompany

Description

The Companies Data Model (COTCompany) is the underlying configuration for the platform. Most data models are associated with it. It contains basic company information, such as its name, tax identification number, and country. It also establishes platform display settings such as language, icon display, colors, authentication, and other branding options.

JSON Sample

{
"__v" : 14,
"_id" : "6136968b580aaf2b0e49d844",
"admin" : [
"6136969432d0379f7490cdf3"
],
"appContacts" : true,
"contactMode" : "default",
"conversationGroup": "6197b98d6b60e7b6db7a61cf",
"createdAt" : "2018-10-19T15:06:35.726Z",
"defaultCountry" : "US",
"defaultLanguage" : "en",
"displayName" : "ACME",
"emailDomains" : [
"company.com"
],
"help" : "6136969de063469044d87926",
"hideSummary": false,
"isActive" : true,
"legalName" : "ACME INC.",
"legalIdentifierCode": "EIN",
"legalIdentifier": "123-45-6789",
"modifiedAt" : "2021-08-20T19:35:11.648Z",
"offline" : {
"isActive" : false,
"maxSyncTimeMs" : 0
},
"permissions" : {
"receiveNotifications" : true,
"readLocation" : true,
"showTos" : {
"value" : true
}
},
"subdomain" : "acme",
"system" : "613696a4a43cf12cb25c7de5"
}

Fields

FieldDescriptionTypeNotes
 _idSystem generated company ID number.ObjectId<COTCompany>Only lowercase letters are accepted.
adminList of admin users' ID numberObjectId<COTUser>[ ]
appContactsDisplays contact button in the main menu barbooleanView Main Menu Bar
brandingAllows customizing certain aspects of Cotalker's UI, i.e., platform colors, images, and text. Also enables login authentication with an organization's Google and Microsoft accounts.objectView the COTCompanyBranding section for complete object specifications.

Visit the Branding Settings section for examples and tips.
contactModeThis option will limit users' ability to see other users in their contact lists and other places, like surveys where user lists are used as options for answering survey questions.stringValid options are:default and local (allows users to view only contacts in their current channels); all (permits viewing all company users)
conversationGroupGroup that holds quick access to important company channelsObjectId<COTGroup>
createdAtCreation dateISODateYYYY-MM-DDTHH:mm:ss.SSSZ
displayNameCompany Name as viewed by usersstring
defaultCountryCountry where the company resides.stringUse ISO 3166-1 alpha-2 country codes, e.g., US, CL.
defaultLanguageDetermines the language the platform displays responses. This option is independent of the device or web browser language. For example, bot names will be displayed in the chosen language, but generic displays will be in the web browser's language.stringen (English) or es (Spanish)
emailDomainsIndicates company's email address domainsstring[ ]Example: company.com
helpIndicates the user ID of help contactObjectId<COTUser>
hideSummaryIf false, it displays the home icon in the Main Menu Bar.booleanPressing the home icon shows all recent conversations in the group panel.
isActiveIndicates if a company is active or if it has been deactivatedboolean
legalNameThe official name of the companystring
legalIdentifierCodeIndicates a country's taxpayer identifier; doesn't have to be exact.stringFor example, RUT in Chile, EIN or TIN in the USA
legalIdentifierCompany's legal identification number; any legal format is valid.stringFormat examples: 123-45-6789 (EIN); 12.345.678-9 (RUT)
modifiedAtLast modification dateISODateYYYY-MM-DDTHH:mm:ss.SSSZ
offlineSets offline mode for mobile appsobjectOnly available in enterprise edition
offline.isActiveTurns offline mode on or offboolean
offline.maxSyncTimeMsIndicates object synchronization timenumber
passwordRotationobject
passwordRotation.enabledActivate to make users change their password after the number of days indicated in the following field.booleanAfter the indicated time, users will be prompted at login to renew their password.
passwordRotation.daysIndicates the number of days after which users will have to change their password.number
passwordRulesEstablishes the security rules user passwords must comply with.objectBy default, no rules are applied.
passwordRules.minLengthThe mínimum amount of characters a password must have.number
passwordRules.lowerCaseThe mínimum amount of lower case letters a password must have.number
passwordRules.upperCaseThe mínimum amount of upper case letters a password must have.number
passwordRules.numbersThe mínimum amount of numbers a password must have.number
passwordRules.symbolsThe mínimum amount of symbols or special characters a password must have.numberAccepted symbols:
! @ # $ % ^ & ( ) _ [ ]
passwordRules.zxcvbnPassword strength score required for creating valid user passwords.number
0 | 1 | 2 | 3 | 4
0 = disabled
1-4 = Define the strength the password must have.
More information on password security.
permissionsobject
permissions.showTosDisplays "terms of service" document when new users log in for the first timeobject
permissions.showTos.valueDetermines whether or not to display the "terms of service"booleanIf no URL is indicated, Cotalker will display its generic terms of service.
permissions.showTos.urlIndicates the URL of the "terms of service" document to display; a Google document will work just finestringURL
searchEnginesAn array of objects that represent parameters used to customize the platform's search tool.object[ ]The array contains objects with the following structure:
[{"name": string, "options": string}].

Vist the COTCompanySearchEngine section for specifications.
startGroupIndicates which group appears in the group panel at startupObjectId<COTGroup>If left null, a summary of most recent conversations will show up in the group panel.
subdomainUsed to internally reference the company; also used to indicate subdomain name for web clientstring
systemIndicates the user ID of system manager contactObjectId<COTUser>

Fields Currently on Standby

FieldDescriptionTypeNotes
planstring
maxUsersnumber
appFilesboolean
appLogostringURL

SHOULD NOT BE USED

FieldDescriptionTypeNotes
__vversion numbernumber
propertyTypesstring[ ]

Soon to be deprecated

FieldDescriptionTypeNotes
accessRolesVersionstring
allowUserCreationboolean
hideHomeboolean
permissions.receiveNotificationsNotification pop-upsboolean
permissions.readLocationObtain GPS location databoolean
appSearchboolean

DEPRECATED

FieldDescriptionTypeNotes
specsarray [ ]DEPRECATED
permissions.readContactsContact search on devicebooleanDEPRECATED
messagesSends a welcome messageobjectDEPRECATED
productsIntegration for special productsobjectDEPRECATED
sidemenuSide menu configurationobjectDEPRECATED
appBadgebooleanDEPRECATED
appToolbarTextToolbar text color (hex color code)stringDEPRECATED
appToolbarColorToolbar background color (hex color code)stringDEPRECATED
hierarchyLevelstringDEPRECATED
hierarchyarray[ ]DEPRECATED
jobsArray of job titles that can be assigned to usersstring[ ]DEPRECATED
newsPropertyTypesarray[ ]DEPRECATED
signatureDurationIndicates the time period for which the authentication signature is validnumber; the value is in seconds; default is 604800, i.e., seven days.DEPRECATED

Additional Resources

Help