{
  "layers" : [
    {
      "currentVersion" : 12, 
      "id" : 0, 
      "name" : "EM_Restricted_Access_Request", 
      "type" : "Feature Layer", 
      "serviceItemId" : "a0f0b748b56d4c32b3a700652ee6ecd0", 
      "isView" : true, 
      "isUpdatableView" : true, 
      "sourceSchemaChangesAllowed" : true, 
      "displayField" : "objectid", 
      "description" : "", 
      "copyrightText" : "", 
      "defaultVisibility" : true, 
      "ownershipBasedAccessControlForFeatures" : {
        "allowOthersToQuery" : true, 
        "allowOthersToDelete" : false, 
        "allowOthersToUpdate" : false, 
        "allowAnonymousToQuery" : true, 
        "allowAnonymousToUpdate" : false, 
        "allowAnonymousToDelete" : false
      }, 
      "editFieldsInfo" : {
        "creationDateField" : "CreationDate", 
        "creatorField" : "Creator", 
        "editDateField" : "EditDate", 
        "editorField" : "Editor"
      }, 
      "editingInfo" : {
        "lastEditDate" : 1781186470508, 
        "schemaLastEditDate" : 1780889608014, 
        "dataLastEditDate" : 1781186470508
      }, 
      "relationships" : [], 
      "isDataVersioned" : false, 
      "hasContingentValuesDefinition" : false, 
      "supportsAppend" : true, 
      "supportsCalculate" : true, 
      "supportsASyncCalculate" : true, 
      "supportsTruncate" : false, 
      "supportsAttachmentsByUploadId" : true, 
      "supportsAttachmentsResizing" : true, 
      "supportsRollbackOnFailureParameter" : true, 
      "supportsStatistics" : true, 
      "supportsExceedsLimitStatistics" : true, 
      "supportsAdvancedQueries" : true, 
      "supportsValidateSql" : true, 
      "supportsCoordinatesQuantization" : true, 
      "supportsLayerOverrides" : true, 
      "supportsTilesAndBasicQueriesMode" : true, 
      "supportsFieldDescriptionProperty" : true, 
      "supportsQuantizationEditMode" : true, 
      "supportsColumnStoreIndex" : true, 
      "supportsApplyEditsWithGlobalIds" : true, 
      "supportsReturningQueryGeometry" : true, 
      "enableNullGeometry" : false, 
      "supportsOBACForAnonymousUsers" : true, 
      "advancedQueryCapabilities" : {
        "supportsPagination" : true, 
        "supportsPaginationOnAggregatedQueries" : true, 
        "supportsQueryRelatedPagination" : true, 
        "supportsQueryWithDistance" : true, 
        "supportsOutDistance" : true, 
        "supportsReturningQueryExtent" : true, 
        "supportsStatistics" : true, 
        "supportsOrderBy" : true, 
        "supportsDistinct" : true, 
        "supportsQueryWithResultType" : true, 
        "supportsSqlExpression" : true, 
        "supportsTimeRelation" : true, 
        "supportsAdvancedQueryRelated" : true, 
        "supportsCountDistinct" : true, 
        "supportsPercentileStatistics" : true, 
        "supportsApproxPercentileStatistics" : true, 
        "supportsSpatialAggregationStatistics" : true, 
        "supportedSpatialAggregationStatistics" : [
          "EnvelopeAggregate", 
          "CentroidAggregate", 
          "ConvexHullAggregate"
        ], 
        "supportsLod" : true, 
        "supportsQueryWithLodSR" : false, 
        "supportedLodTypes" : [
          "geohash"
        ], 
        "supportsReturningGeometryCentroid" : false, 
        "supportsReturningGeometryEnvelope" : false, 
        "supportsQueryWithDatumTransformation" : true, 
        "supportsCurrentUserQueries" : true, 
        "supportsHavingClause" : true, 
        "supportsOutFieldSQLExpression" : true, 
        "supportsMaxRecordCountFactor" : true, 
        "supportsTopFeaturesQuery" : true, 
        "supportsDisjointSpatialRel" : true, 
        "supportsQueryWithCacheHint" : true, 
        "supportedOperationsWithCacheHint" : [
          "query", 
          "queryTopFilter", 
          "queryAnalytics", 
          "queryAttachments", 
          "queryRelated", 
          "queryBins", 
          "queryPivot"
        ], 
        "supportsQueryAnalytic" : true, 
        "supportsQueryPivot" : true, 
        "supportsQueryBins" : true, 
        "supportsDefaultSR" : true, 
        "supportsTranslations" : false, 
        "supportsAggIds" : true, 
        "supportsQueryWithCollation" : true, 
        "supportsISODOW" : true, 
        "supportsISOWeek" : true, 
        "supportsFullTextSearch" : true, 
        "fullTextSearchCapabilities" : {
          "supportsAccentSensitivity" : true, 
          "supportsStopWords" : true, 
          "supportsSearchOperator" : true, 
          "supportsOperator" : true
        }
      }, 
      "advancedQueryAnalyticCapabilities" : {
        "supportsLinearRegression" : true, 
        "supportsTrendlineRegression" : true, 
        "supportsAsync" : true, 
        "supportsPercentileAnalytic" : true
      }, 
      "queryBinsCapabilities" : {
        "supportsAsync" : true, 
        "supportsAutoIntervalBin" : true, 
        "supportsFixedIntervalBin" : true, 
        "supportsFixedBoundariesBin" : true, 
        "supportsDateBin" : true, 
        "supportsClassificationBin" : true, 
        "supportsStackBy" : true, 
        "supportsSplitBy" : true, 
        "supportsFirstDayOfWeek" : true, 
        "supportsSnapToData" : true, 
        "supportsReturnFullIntervalBin" : true, 
        "supportsReturnStackValueRange" : true, 
        "supportsNormalization" : true, 
        "supportedStatisticTypes" : [
          "COUNT", 
          "SUM", 
          "AVG", 
          "VAR", 
          "STDDEV", 
          "MIN", 
          "MAX", 
          "PERCENTILE_CONT", 
          "PERCENTILE_DISC", 
          "APPROX_PERCENTILE_CONT", 
          "APPROX_PERCENTILE_DISC", 
          "CentroidAggregate", 
          "EnvelopeAggregate", 
          "ConvexHullAggregate"
        ], 
        "supportedNormalizationTypes" : [
          "boxCox", 
          "field", 
          "inverse", 
          "log", 
          "naturalLog", 
          "percentOfTotal", 
          "squareRoot"
        ]
      }, 
      "supportedOperationsWithCollation" : "query,addField,updateField", 
      "advancedEditingCapabilities" : {
        "supportedSqlFormatsInCalculate" : [
          "standard"
        ], 
        "supportsAsyncApplyEdits" : true, 
        "supportsReturnEditResults" : true, 
        "supportsApplyEditsbyUploadID" : true, 
        "supportedApplyEditsUploadIDFormats" : "JSON,PBF", 
        "supportsTranslation" : false, 
        "supportsMaxTranslations" : 10
      }, 
      "infoInEstimates" : [
        "extent", 
        "count"
      ], 
      "useStandardizedQueries" : true, 
      "geometryType" : "esriGeometryPoint", 
      "minScale" : 0, 
      "maxScale" : 0, 
      "extent" : {
        "xmin" : -180, 
        "ymin" : -90, 
        "xmax" : 180, 
        "ymax" : 90, 
        "spatialReference" : {
          "wkid" : 4326, 
          "latestWkid" : 4326
        }
      }, 
      "drawingInfo":{"labelingInfo":null,"renderer":{"description":"Survey Data Locations","label":"EM Restricted Access Request","symbol":{"angle":0,"color":[255,0,0,255],"outline":{"color":[255,255,0,255],"width":1},"size":8,"style":"esriSMSCircle","type":"esriSMS","xoffset":0,"yoffset":0},"type":"simple"},"transparency":0}, 
      "allowGeometryUpdates" : true, 
      "hasAttachments" : false, 
      "propagateVisibleFields" : true, 
      "viewSourceHasAttachments" : false, 
      "htmlPopupType" : "esriServerHTMLPopupTypeAsHTMLText", 
      "hasM" : false, 
      "hasZ" : false, 
      "objectIdField" : "objectid", 
      "uniqueIdField" : 
      {
        "name" : "objectid", 
        "isSystemMaintained" : true
      }, 
      "globalIdField" : "globalid", 
      "typeIdField" : "", 
      "collation" : {
        "locale" : "neutral", 
        "caseSensitive" : false, 
        "accentSensitive" : true
      }, 
      "fields" : [
        {
          "name" : "objectid", 
          "type" : "esriFieldTypeOID", 
          "alias" : "ObjectID", 
          "sqlType" : "sqlTypeOther", 
          "nullable" : false, 
          "editable" : false, 
          "domain" : null, 
          "defaultValue" : null
        }, 
        {
          "name" : "globalid", 
          "type" : "esriFieldTypeGlobalID", 
          "alias" : "GlobalID", 
          "sqlType" : "sqlTypeGUID", 
          "length" : 38, 
          "nullable" : false, 
          "editable" : false, 
          "domain" : null, 
          "defaultValue" : null
        }, 
        {
          "name" : "name", 
          "type" : "esriFieldTypeString", 
          "alias" : "Name", 
          "sqlType" : "sqlTypeOther", 
          "length" : 255, 
          "nullable" : true, 
          "editable" : true, 
          "domain" : null, 
          "defaultValue" : null
        }, 
        {
          "name" : "organisation", 
          "type" : "esriFieldTypeString", 
          "alias" : "Organisation", 
          "sqlType" : "sqlTypeOther", 
          "length" : 255, 
          "nullable" : true, 
          "editable" : true, 
          "domain" : null, 
          "defaultValue" : null
        }, 
        {
          "name" : "email", 
          "type" : "esriFieldTypeString", 
          "alias" : "Email", 
          "sqlType" : "sqlTypeOther", 
          "length" : 255, 
          "nullable" : true, 
          "editable" : true, 
          "domain" : null, 
          "defaultValue" : null
        }, 
        {
          "name" : "arcgis_username", 
          "type" : "esriFieldTypeString", 
          "alias" : "ArcGIS Username", 
          "sqlType" : "sqlTypeOther", 
          "length" : 255, 
          "nullable" : true, 
          "editable" : true, 
          "domain" : null, 
          "defaultValue" : null
        }, 
        {
          "name" : "date_submitted", 
          "type" : "esriFieldTypeDate", 
          "alias" : "Date Submitted", 
          "sqlType" : "sqlTypeOther", 
          "length" : 255, 
          "nullable" : true, 
          "editable" : true, 
          "domain" : null, 
          "defaultValue" : null, 
          "precision" : 1
        }, 
        {
          "name" : "CreationDate", 
          "type" : "esriFieldTypeDate", 
          "alias" : "CreationDate", 
          "sqlType" : "sqlTypeOther", 
          "length" : 8, 
          "nullable" : true, 
          "editable" : true, 
          "domain" : null, 
          "defaultValue" : null, 
          "precision" : 1
        }, 
        {
          "name" : "Creator", 
          "type" : "esriFieldTypeString", 
          "alias" : "Creator", 
          "sqlType" : "sqlTypeOther", 
          "length" : 128, 
          "nullable" : true, 
          "editable" : true, 
          "domain" : null, 
          "defaultValue" : null
        }, 
        {
          "name" : "EditDate", 
          "type" : "esriFieldTypeDate", 
          "alias" : "EditDate", 
          "sqlType" : "sqlTypeOther", 
          "length" : 8, 
          "nullable" : true, 
          "editable" : true, 
          "domain" : null, 
          "defaultValue" : null, 
          "precision" : 1
        }, 
        {
          "name" : "Editor", 
          "type" : "esriFieldTypeString", 
          "alias" : "Editor", 
          "sqlType" : "sqlTypeOther", 
          "length" : 128, 
          "nullable" : true, 
          "editable" : true, 
          "domain" : null, 
          "defaultValue" : null
        }, 
        {
          "name" : "reason", 
          "type" : "esriFieldTypeString", 
          "alias" : "Reason (Optional)", 
          "sqlType" : "sqlTypeOther", 
          "length" : 255, 
          "nullable" : true, 
          "editable" : true, 
          "domain" : null, 
          "defaultValue" : null, 
          "description" : "{\"value\":\"This is from the first survey (request). It lets the user give a reason for requesting access.\",\"fieldValueType\":\"\"}"
        }, 
        {
          "name" : "decision_comment", 
          "type" : "esriFieldTypeString", 
          "alias" : "Reason denied", 
          "sqlType" : "sqlTypeOther", 
          "length" : 256, 
          "nullable" : true, 
          "editable" : true, 
          "domain" : null, 
          "defaultValue" : null, 
          "description" : "{\"value\":\"This is from the second survey (process). If EM decides to deny access to someone, they can give a reason here.\",\"fieldValueType\":\"\"}"
        }, 
        {
          "name" : "decision", 
          "type" : "esriFieldTypeString", 
          "alias" : "Decision", 
          "sqlType" : "sqlTypeOther", 
          "length" : 255, 
          "nullable" : true, 
          "editable" : true, 
          "domain" : 
          {
            "type" : "codedValue", 
            "name" : "EM_Restricted_Access_Request_decision_3ad41d83-9ea9-4000-87c5-2915c31159d7", 
            "codedValues" : [
              {
                "name" : "Grant access", 
                "code" : "grant_access"
              }, 
              {
                "name" : "Deny access", 
                "code" : "deny_access"
              }
            ]
          }, 
          "defaultValue" : null
        }, 
        {
          "name" : "status", 
          "type" : "esriFieldTypeString", 
          "alias" : "Status", 
          "sqlType" : "sqlTypeOther", 
          "length" : 255, 
          "nullable" : true, 
          "editable" : true, 
          "domain" : 
          {
            "type" : "codedValue", 
            "name" : "EM_Restricted_Access_Request_status_ce2d0f8e-987a-4f5c-8c70-1a75f790cfa2", 
            "codedValues" : [
              {
                "name" : "Waiting to be processed", 
                "code" : "waiting_to_be_processed"
              }, 
              {
                "name" : "Access denied", 
                "code" : "access_denied"
              }, 
              {
                "name" : "Access granted", 
                "code" : "access_granted"
              }, 
              {
                "name" : "Multiple users listed", 
                "code" : "multiple_users_listed"
              }, 
              {
                "name" : "AGOL account not found", 
                "code" : "agol_account_not_found"
              }, 
              {
                "name" : "Invited", 
                "code" : "invited"
              }, 
              {
                "name" : "Invite expired", 
                "code" : "invite_expired"
              }, 
              {
                "name" : "In group", 
                "code" : "in_group"
              }, 
              {
                "name" : "Left group", 
                "code" : "left_group"
              }
            ]
          }, 
          "defaultValue" : null
        }, 
        {
          "name" : "date_invite_sent", 
          "type" : "esriFieldTypeDate", 
          "alias" : "date_invite_sent", 
          "sqlType" : "sqlTypeOther", 
          "length" : 8, 
          "nullable" : true, 
          "editable" : true, 
          "domain" : null, 
          "defaultValue" : null, 
          "description" : "{\"value\":\"This is the date that FME sent the invite to the user.\",\"fieldValueType\":\"\"}", 
          "precision" : 1
        }, 
        {
          "name" : "date_reminder_sent", 
          "type" : "esriFieldTypeDate", 
          "alias" : "date_reminder_sent", 
          "sqlType" : "sqlTypeOther", 
          "length" : 8, 
          "nullable" : true, 
          "editable" : true, 
          "domain" : null, 
          "defaultValue" : null, 
          "description" : "{\"value\":\"This is the date FME sent an email to the user reminding them to accept the invite.\",\"fieldValueType\":\"\"}", 
          "precision" : 1
        }, 
        {
          "name" : "n_username", 
          "type" : "esriFieldTypeInteger", 
          "alias" : "n_username", 
          "sqlType" : "sqlTypeOther", 
          "nullable" : true, 
          "editable" : true, 
          "domain" : null, 
          "defaultValue" : 1
        }, 
        {
          "name" : "test", 
          "type" : "esriFieldTypeString", 
          "alias" : "test", 
          "sqlType" : "sqlTypeOther", 
          "length" : 256, 
          "nullable" : true, 
          "editable" : true, 
          "domain" : 
          {
            "type" : "codedValue", 
            "name" : "EM_Restricted_Access_Request_test_0a4a5d23-20d3-46ce-9a70-0298235d6304", 
            "codedValues" : [
              {
                "name" : "yes", 
                "code" : "yes"
              }, 
              {
                "name" : "no", 
                "code" : "no"
              }
            ]
          }, 
          "defaultValue" : "no"
        }, 
        {
          "name" : "globalid_old", 
          "type" : "esriFieldTypeGUID", 
          "alias" : "globalid_old", 
          "sqlType" : "sqlTypeOther", 
          "length" : 38, 
          "nullable" : true, 
          "editable" : true, 
          "domain" : null, 
          "defaultValue" : null, 
          "description" : "{\"value\":\"This is the globalid from: LINZ AGOL Controlled Access Request - Emergency Management - survey\",\"fieldValueType\":\"uniqueIdentifier\"}"
        }, 
        {
          "name" : "email_old", 
          "type" : "esriFieldTypeString", 
          "alias" : "email_old", 
          "sqlType" : "sqlTypeOther", 
          "length" : 256, 
          "nullable" : true, 
          "editable" : true, 
          "domain" : null, 
          "defaultValue" : null, 
          "description" : "{\"value\":\"In the old layer some usernames were associated with more than one email address. In these cases, I've just kept one email (in the email field) and put the others in this field (email_old). When deciding what email to put in the email field, I picked generic emails (eg team emails) over individual emails. If this didn't help me decide, I picked the most recent email address (based on 'Date Submitted').\",\"fieldValueType\":\"\"}"
        }
      ], 
      "indexes" : [
        {
          "name" : "PK__service___5242E6327AFE84C2", 
          "fields" : "objectid", 
          "isAscending" : true, 
          "isUnique" : true, 
          "description" : "clustered, unique, primary key", 
          "indexType" : "Attribute"
        }, 
        {
          "name" : "GlobalIDIndex", 
          "fields" : "globalid", 
          "isAscending" : false, 
          "isUnique" : true, 
          "description" : "GlobalID index", 
          "indexType" : "Attribute"
        }, 
        {
          "name" : "service_9315c777eff446bd841c5b5dc4cfd320_EM_RESTRICTED_ACCESS_REQUEST_Shape_sidx", 
          "fields" : "Shape", 
          "isAscending" : true, 
          "isUnique" : false, 
          "description" : "Shape Index", 
          "indexType" : "Spatial"
        }, 
        {
          "name" : "CreationDateIndex", 
          "fields" : "CreationDate", 
          "isAscending" : true, 
          "isUnique" : false, 
          "description" : "CreationDate Field index", 
          "indexType" : "Attribute"
        }, 
        {
          "name" : "CreatorIndex", 
          "fields" : "Creator", 
          "isAscending" : false, 
          "isUnique" : false, 
          "description" : "Creator Field index", 
          "indexType" : "Attribute"
        }, 
        {
          "name" : "EditDateIndex", 
          "fields" : "EditDate", 
          "isAscending" : true, 
          "isUnique" : false, 
          "description" : "EditDate Field index", 
          "indexType" : "Attribute"
        }, 
        {
          "name" : "EditorIndex", 
          "fields" : "Editor", 
          "isAscending" : false, 
          "isUnique" : false, 
          "description" : "Editor Field index", 
          "indexType" : "Attribute"
        }, 
        {
          "name" : "status_Index", 
          "fields" : "status", 
          "isAscending" : true, 
          "isUnique" : false, 
          "description" : "status_Index", 
          "indexType" : "Attribute"
        }, 
        {
          "name" : "decision_Index", 
          "fields" : "decision", 
          "isAscending" : true, 
          "isUnique" : false, 
          "description" : "decision_Index", 
          "indexType" : "Attribute"
        }, 
        {
          "name" : "test_Index", 
          "fields" : "test", 
          "isAscending" : true, 
          "isUnique" : false, 
          "description" : "test_Index", 
          "indexType" : "Attribute"
        }, 
        {
          "name" : "n_username_Index", 
          "fields" : "n_username", 
          "isAscending" : true, 
          "isUnique" : false, 
          "description" : "n_username_Index", 
          "indexType" : "Attribute"
        }
      ], 
      "dateFieldsTimeReference" : {
        "timeZone" : "UTC", 
        "timeZoneIANA" : "Etc/UTC", 
        "respectsDaylightSaving" : false
      }, 
      "preferredTimeReference" : null, 
      "types" : [], 
      "templates" : [
        {
          "name" : "New Feature", 
          "description" : "", 
          "drawingTool" : "esriFeatureEditToolNone", 
          "prototype" : {
            "attributes" : {
              "name" : null, 
              "organisation" : null, 
              "email" : null, 
              "arcgis_username" : null, 
              "date_submitted" : null, 
              "reason" : null, 
              "decision_comment" : null, 
              "decision" : null, 
              "status" : null, 
              "date_invite_sent" : null, 
              "date_reminder_sent" : null, 
              "n_username" : 1, 
              "test" : "no", 
              "globalid_old" : null, 
              "email_old" : null
            }
          }
        }
      ], 
      "supportedQueryFormats" : "JSON, geoJSON, PBF", 
      "supportedAppendFormats" : "sqlite,geoPackage,shapefile,filegdb,featureCollection,geojson,csv,excel,jsonl,featureService,pbf", 
      "supportedAppendSourceFilterFormats" : "sqlite,geoPackage,shapefile,filegdb,featureService", 
      "supportedExportFormats" : "csv,shapefile,sqlite,geoPackage,filegdb,featureCollection,geojson,kml,excel", 
      "supportedConvertFileFormats" : "JSON,PBF", 
      "supportedConvertContentFormats" : "LayerEditCollection,FeatureCollection", 
      "supportedSpatialRelationships" : [
        "esriSpatialRelIntersects", 
        "esriSpatialRelContains", 
        "esriSpatialRelCrosses", 
        "esriSpatialRelEnvelopeIntersects", 
        "esriSpatialRelIndexIntersects", 
        "esriSpatialRelOverlaps", 
        "esriSpatialRelTouches", 
        "esriSpatialRelWithin", 
        "esriSpatialRelDisjoint", 
        "esriSpatialRelRelation"
      ], 
      "guidFormat" : "", 
      "supportsContingentValues" : true, 
      "supportedContingentValuesFormats" : "JSON, PBF", 
      "supportsFieldGroups" : true, 
      "supportedSyncDataOptions" : 260, 
      "hasStaticData" : false, 
      "maxRecordCount" : 1000, 
      "standardMaxRecordCount" : 16000, 
      "standardMaxRecordCountNoGeometry" : 32000, 
      "tileMaxRecordCount" : 8000, 
      "maxRecordCountFactor" : 1, 
      "capabilities" : "Create,Editing"
    }
  ], 
  "tables" : []
}