<?xml version="1.0"?>
<xs:schema xmlns:tns="http://schemas.datacontract.org/2004/07/PeraEntities.PeraModels" xmlns:ser="http://schemas.microsoft.com/2003/10/Serialization/" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/PeraEntities.PeraModels" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:import namespace="http://schemas.microsoft.com/2003/10/Serialization/" />
  <xs:import namespace="http://schemas.datacontract.org/2004/07/System" />
  <xs:complexType name="Note">
    <xs:sequence>
      <xs:element minOccurs="0" name="CreatedBy" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="DateCreated" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="DateUpdated" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="FieldName" type="xs:int" />
      <xs:element minOccurs="0" name="NoteId" type="xs:int" />
      <xs:element minOccurs="0" name="NoteText" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="NoteType" nillable="true" type="tns:NoteType" />
      <xs:element minOccurs="0" name="NoteTypeId" type="tns:NoteTypeId" />
      <xs:element minOccurs="0" name="RecordId" type="xs:int" />
      <xs:element minOccurs="0" name="TableName" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedBy" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="Note" nillable="true" type="tns:Note" />
  <xs:complexType name="NoteType">
    <xs:sequence>
      <xs:element minOccurs="0" name="FieldName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="FieldNameId" type="xs:int" />
      <xs:element minOccurs="0" name="NoteTypeId" type="tns:NoteTypeId" />
      <xs:element minOccurs="0" name="Notes" nillable="true" type="tns:ArrayOfNote" />
      <xs:element minOccurs="0" name="NotetypeDescription" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="TableName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="TableNameId" type="xs:int" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="NoteType" nillable="true" type="tns:NoteType" />
  <xs:simpleType name="NoteTypeId">
    <xs:restriction base="xs:string">
      <xs:enumeration value="Agent_Appointment_Counts">
        <xs:annotation>
          <xs:appinfo>
            <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</EnumerationValue>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:element name="NoteTypeId" nillable="true" type="tns:NoteTypeId" />
  <xs:complexType name="ArrayOfNote">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="Note" nillable="true" type="tns:Note" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfNote" nillable="true" type="tns:ArrayOfNote" />
  <xs:simpleType name="AsapOptOutReasonId">
    <xs:restriction base="xs:string">
      <xs:enumeration value="Need_To_Catch_Up">
        <xs:annotation>
          <xs:appinfo>
            <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</EnumerationValue>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Personal_Reasons">
        <xs:annotation>
          <xs:appinfo>
            <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">2</EnumerationValue>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Not_Having_Success_With_Appointments">
        <xs:annotation>
          <xs:appinfo>
            <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">3</EnumerationValue>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Leaving_Pera_Permanently">
        <xs:annotation>
          <xs:appinfo>
            <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">4</EnumerationValue>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:element name="AsapOptOutReasonId" nillable="true" type="tns:AsapOptOutReasonId" />
  <xs:complexType name="ArrayOfBillingRulesAgent">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="BillingRulesAgent" nillable="true" type="tns:BillingRulesAgent" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfBillingRulesAgent" nillable="true" type="tns:ArrayOfBillingRulesAgent" />
  <xs:complexType name="BillingRulesAgent">
    <xs:sequence>
      <xs:element minOccurs="0" name="Active" nillable="true" type="xs:boolean" />
      <xs:element minOccurs="0" name="AgentCharge" nillable="true" type="xs:double" />
      <xs:element minOccurs="0" name="AgentId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="CampaignTypeId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="CreatedBy" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="DateCreated" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="Id" type="xs:int" />
      <xs:element minOccurs="0" name="ProductTypeId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="ProductTypeName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="SplitAgentCharge" nillable="true" type="xs:double" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="BillingRulesAgent" nillable="true" type="tns:BillingRulesAgent" />
  <xs:complexType name="ArrayOfAgentProductLicense">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="AgentProductLicense" nillable="true" type="tns:AgentProductLicense" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfAgentProductLicense" nillable="true" type="tns:ArrayOfAgentProductLicense" />
  <xs:complexType name="AgentProductLicense">
    <xs:sequence>
      <xs:element minOccurs="0" name="AgentId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="Id" type="xs:int" />
      <xs:element minOccurs="0" name="LicenseNumber" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ProductTypeId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="State" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="AgentProductLicense" nillable="true" type="tns:AgentProductLicense" />
  <xs:simpleType name="ProductTypeId">
    <xs:restriction base="xs:string">
      <xs:enumeration value="K_12_Appointments">
        <xs:annotation>
          <xs:appinfo>
            <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</EnumerationValue>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Credit_Card_Debt_Appointments">
        <xs:annotation>
          <xs:appinfo>
            <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">2</EnumerationValue>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Recruiting">
        <xs:annotation>
          <xs:appinfo>
            <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">3</EnumerationValue>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="College_Appointments">
        <xs:annotation>
          <xs:appinfo>
            <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">4</EnumerationValue>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Mortgage_Appointments">
        <xs:annotation>
          <xs:appinfo>
            <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">5</EnumerationValue>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Solar_Appointments">
        <xs:annotation>
          <xs:appinfo>
            <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">7</EnumerationValue>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Apiary_Recruiting">
        <xs:annotation>
          <xs:appinfo>
            <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">8</EnumerationValue>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="City_County_Appointments">
        <xs:annotation>
          <xs:appinfo>
            <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">9</EnumerationValue>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Federal_Appointments">
        <xs:annotation>
          <xs:appinfo>
            <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">10</EnumerationValue>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PandC_Appointments">
        <xs:annotation>
          <xs:appinfo>
            <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">11</EnumerationValue>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Research">
        <xs:annotation>
          <xs:appinfo>
            <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">12</EnumerationValue>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Tax_Debt_Appointments">
        <xs:annotation>
          <xs:appinfo>
            <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">13</EnumerationValue>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Life_Insurance_Final_Expense_Appointments">
        <xs:annotation>
          <xs:appinfo>
            <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">14</EnumerationValue>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="State_Hospital_Appointments">
        <xs:annotation>
          <xs:appinfo>
            <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">15</EnumerationValue>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Federal_Student_Loan_Debt_Appointments">
        <xs:annotation>
          <xs:appinfo>
            <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">17</EnumerationValue>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Life_Insurance_General">
        <xs:annotation>
          <xs:appinfo>
            <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">18</EnumerationValue>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Life_Insurance_Pension_Maximization">
        <xs:annotation>
          <xs:appinfo>
            <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">19</EnumerationValue>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Affiliate">
        <xs:annotation>
          <xs:appinfo>
            <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">20</EnumerationValue>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Annuity_Appointments">
        <xs:annotation>
          <xs:appinfo>
            <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">21</EnumerationValue>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:element name="ProductTypeId" nillable="true" type="tns:ProductTypeId" />
  <xs:simpleType name="CampaignTypeId">
    <xs:restriction base="xs:string">
      <xs:enumeration value="Email_Campaign">
        <xs:annotation>
          <xs:appinfo>
            <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</EnumerationValue>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Dinner_Campaign">
        <xs:annotation>
          <xs:appinfo>
            <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">2</EnumerationValue>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Recruiting_Campaign">
        <xs:annotation>
          <xs:appinfo>
            <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">3</EnumerationValue>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Video_Conference_Campaign">
        <xs:annotation>
          <xs:appinfo>
            <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">4</EnumerationValue>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CERA_Lite_Chat">
        <xs:annotation>
          <xs:appinfo>
            <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">5</EnumerationValue>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:element name="CampaignTypeId" nillable="true" type="tns:CampaignTypeId" />
  <xs:complexType name="ArrayOfAsapOptOutReason">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="AsapOptOutReason" nillable="true" type="tns:AsapOptOutReason" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfAsapOptOutReason" nillable="true" type="tns:ArrayOfAsapOptOutReason" />
  <xs:complexType name="AsapOptOutReason">
    <xs:sequence>
      <xs:element minOccurs="0" name="Agents" nillable="true" type="tns:ArrayOfAgent" />
      <xs:element minOccurs="0" name="Id" type="tns:AsapOptOutReasonId" />
      <xs:element minOccurs="0" name="IsContactRequired" type="xs:boolean" />
      <xs:element minOccurs="0" name="IsNoteRequired" type="xs:boolean" />
      <xs:element minOccurs="0" name="IsReturnDateRequired" type="xs:boolean" />
      <xs:element minOccurs="0" name="Reason" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="AsapOptOutReason" nillable="true" type="tns:AsapOptOutReason" />
  <xs:complexType name="ArrayOfAgent">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="Agent" nillable="true" type="tns:Agent" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfAgent" nillable="true" type="tns:ArrayOfAgent" />
  <xs:complexType name="Agent">
    <xs:sequence>
      <xs:element minOccurs="0" name="AcceptAllAppts" nillable="true" type="xs:boolean" />
      <xs:element minOccurs="0" name="AgentAsapOptOutHistories" nillable="true" type="tns:ArrayOfAgentAsapOptOutHistory" />
      <xs:element minOccurs="0" name="AgentChat" nillable="true" type="tns:AgentChat" />
      <xs:element minOccurs="0" name="AgentCreateDate" type="xs:dateTime" />
      <xs:element minOccurs="0" name="AgentDistributorFirms" nillable="true" type="tns:ArrayOfAgentDistributorFirm" />
      <xs:element minOccurs="0" name="AgentId" type="xs:int" />
      <xs:element minOccurs="0" name="AgentLevel" nillable="true" type="xs:decimal" />
      <xs:element minOccurs="0" name="AgentTrainings" nillable="true" type="tns:ArrayOfAgentTraining" />
      <xs:element minOccurs="0" name="AgreementDate" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="AsapLockOut" nillable="true" type="xs:boolean" />
      <xs:element minOccurs="0" name="AsapLockOutDate" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="AsapOptIn" nillable="true" type="xs:boolean" />
      <xs:element minOccurs="0" name="AsapOptOut" nillable="true" type="xs:boolean" />
      <xs:element minOccurs="0" name="AsapOptOutNote" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="AsapOptOutReason" nillable="true" type="tns:AsapOptOutReason" />
      <xs:element minOccurs="0" name="AsapOptOutReasonId" nillable="true" type="tns:AsapOptOutReasonId" />
      <xs:element minOccurs="0" name="AsapOptOutReturnDate" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="AsapWeeklyAppts" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="BackgroundCheckCandidates" nillable="true" type="tns:ArrayOfBackgroundCheckCandidate" />
      <xs:element minOccurs="0" name="BackgroundCheckQueues" nillable="true" type="tns:ArrayOfBackgroundCheckQueue" />
      <xs:element minOccurs="0" name="CalendarId" nillable="true" type="ser:guid" />
      <xs:element minOccurs="0" name="ClientAgentId" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="CompanyAssociation" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="CompanyId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="Customer" nillable="true" type="xs:boolean" />
      <xs:element minOccurs="0" name="DOB" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Email" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="FaceToFaceAppts" nillable="true" type="xs:boolean" />
      <xs:element minOccurs="0" name="FirstName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="GoogleCalendar" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="IsDeleted" nillable="true" type="xs:boolean" />
      <xs:element minOccurs="0" name="LastName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Latitude" nillable="true" type="xs:double" />
      <xs:element minOccurs="0" name="Longitude" nillable="true" type="xs:double" />
      <xs:element minOccurs="0" name="OptOutDate" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="PaymentPlan" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="PreviousCampaignAgentNotes" nillable="true" type="tns:ArrayOfPreviousCampaignAgentNote" />
      <xs:element minOccurs="0" name="ProfileImage" nillable="true" type="xs:base64Binary" />
      <xs:element minOccurs="0" name="ReferredBy" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ReferrerId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="RegistrantNumber" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="SSN" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="SaturdayAppts" nillable="true" type="xs:boolean" />
      <xs:element minOccurs="0" name="SplitAgentId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="StatusFollowUpDate" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="StatusId" nillable="true" type="tns:AgentStatusId" />
      <xs:element minOccurs="0" name="StatusNote" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Subscription" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="SubscriptionFee" nillable="true" type="xs:decimal" />
      <xs:element minOccurs="0" name="SundayAppts" nillable="true" type="xs:boolean" />
      <xs:element minOccurs="0" name="TimeZone" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="UserId" nillable="true" type="ser:guid" />
      <xs:element minOccurs="0" name="VCAppts" nillable="true" type="xs:boolean" />
      <xs:element minOccurs="0" name="VendorType" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="Agent" nillable="true" type="tns:Agent" />
  <xs:complexType name="ArrayOfAgentAsapOptOutHistory">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="AgentAsapOptOutHistory" nillable="true" type="tns:AgentAsapOptOutHistory" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfAgentAsapOptOutHistory" nillable="true" type="tns:ArrayOfAgentAsapOptOutHistory" />
  <xs:complexType name="AgentAsapOptOutHistory">
    <xs:sequence>
      <xs:element minOccurs="0" name="Agent" nillable="true" type="tns:Agent" />
      <xs:element minOccurs="0" name="AgentId" type="xs:int" />
      <xs:element minOccurs="0" name="DateCreated" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="Id" type="xs:int" />
      <xs:element minOccurs="0" name="OptOut" type="xs:boolean" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="AgentAsapOptOutHistory" nillable="true" type="tns:AgentAsapOptOutHistory" />
  <xs:complexType name="AgentChat">
    <xs:sequence>
      <xs:element minOccurs="0" name="Agent" nillable="true" type="tns:Agent" />
      <xs:element minOccurs="0" name="AgentId" type="xs:int" />
      <xs:element minOccurs="0" name="ApiKey" type="ser:guid" />
      <xs:element minOccurs="0" name="IsAcceptingChats" type="xs:boolean" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="AgentChat" nillable="true" type="tns:AgentChat" />
  <xs:complexType name="ArrayOfAgentDistributorFirm">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="AgentDistributorFirm" nillable="true" type="tns:AgentDistributorFirm" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfAgentDistributorFirm" nillable="true" type="tns:ArrayOfAgentDistributorFirm" />
  <xs:complexType name="AgentDistributorFirm">
    <xs:sequence>
      <xs:element minOccurs="0" name="Agent" nillable="true" type="tns:Agent" />
      <xs:element minOccurs="0" name="AgentID" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="DistributorFirm" nillable="true" type="tns:DistributorFirm" />
      <xs:element minOccurs="0" name="DistributorFirmID" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="ID" type="xs:int" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="AgentDistributorFirm" nillable="true" type="tns:AgentDistributorFirm" />
  <xs:complexType name="DistributorFirm">
    <xs:sequence>
      <xs:element minOccurs="0" name="Address" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="AgentDistributorFirms" nillable="true" type="tns:ArrayOfAgentDistributorFirm" />
      <xs:element minOccurs="0" name="ContactName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="DistrictDistributorFirms" nillable="true" type="tns:ArrayOfDistrictDistributorFirm" />
      <xs:element minOccurs="0" name="Email" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ID" type="xs:int" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Phone" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="DistributorFirm" nillable="true" type="tns:DistributorFirm" />
  <xs:complexType name="ArrayOfDistrictDistributorFirm">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="DistrictDistributorFirm" nillable="true" type="tns:DistrictDistributorFirm" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfDistrictDistributorFirm" nillable="true" type="tns:ArrayOfDistrictDistributorFirm" />
  <xs:complexType name="DistrictDistributorFirm">
    <xs:sequence>
      <xs:element minOccurs="0" name="DistributorFirm" nillable="true" type="tns:DistributorFirm" />
      <xs:element minOccurs="0" name="DistributorFirmID" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="DistrictID" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="ID" type="xs:int" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="DistrictDistributorFirm" nillable="true" type="tns:DistrictDistributorFirm" />
  <xs:complexType name="ArrayOfAgentTraining">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="AgentTraining" nillable="true" type="tns:AgentTraining" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfAgentTraining" nillable="true" type="tns:ArrayOfAgentTraining" />
  <xs:complexType name="AgentTraining">
    <xs:sequence>
      <xs:element minOccurs="0" name="Agent" nillable="true" type="tns:Agent" />
      <xs:element minOccurs="0" name="AgentId" type="xs:int" />
      <xs:element minOccurs="0" name="AgentTrainingCourse" nillable="true" type="tns:AgentTrainingCourse" />
      <xs:element minOccurs="0" name="AgentTrainingId" type="xs:int" />
      <xs:element minOccurs="0" name="AgentTrainingProcesses" nillable="true" type="tns:ArrayOfAgentTrainingProcess" />
      <xs:element minOccurs="0" name="Complete" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="CourseCode" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Date" nillable="true" type="xs:dateTime" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="AgentTraining" nillable="true" type="tns:AgentTraining" />
  <xs:complexType name="AgentTrainingCourse">
    <xs:sequence>
      <xs:element minOccurs="0" name="Active" type="xs:boolean" />
      <xs:element minOccurs="0" name="AgentTrainingCourseSections" nillable="true" type="tns:ArrayOfAgentTrainingCourseSection" />
      <xs:element minOccurs="0" name="AgentTrainings" nillable="true" type="tns:ArrayOfAgentTraining" />
      <xs:element minOccurs="0" name="CourseCode" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="CourseName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Date" type="xs:dateTime" />
      <xs:element minOccurs="0" name="Required" type="xs:boolean" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="AgentTrainingCourse" nillable="true" type="tns:AgentTrainingCourse" />
  <xs:complexType name="ArrayOfAgentTrainingCourseSection">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="AgentTrainingCourseSection" nillable="true" type="tns:AgentTrainingCourseSection" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfAgentTrainingCourseSection" nillable="true" type="tns:ArrayOfAgentTrainingCourseSection" />
  <xs:complexType name="AgentTrainingCourseSection">
    <xs:sequence>
      <xs:element minOccurs="0" name="Active" type="xs:boolean" />
      <xs:element minOccurs="0" name="AgentTrainingCourse" nillable="true" type="tns:AgentTrainingCourse" />
      <xs:element minOccurs="0" name="AgentTrainingCourseQuestions" nillable="true" type="tns:ArrayOfAgentTrainingCourseQuestion" />
      <xs:element minOccurs="0" name="AgentTrainingProcesses" nillable="true" type="tns:ArrayOfAgentTrainingProcess" />
      <xs:element minOccurs="0" name="CourseCode" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="CourseSectionId" type="xs:int" />
      <xs:element minOccurs="0" name="CourseSectionName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Order" type="xs:int" />
      <xs:element minOccurs="0" name="VideoUrl" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="AgentTrainingCourseSection" nillable="true" type="tns:AgentTrainingCourseSection" />
  <xs:complexType name="ArrayOfAgentTrainingCourseQuestion">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="AgentTrainingCourseQuestion" nillable="true" type="tns:AgentTrainingCourseQuestion" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfAgentTrainingCourseQuestion" nillable="true" type="tns:ArrayOfAgentTrainingCourseQuestion" />
  <xs:complexType name="AgentTrainingCourseQuestion">
    <xs:sequence>
      <xs:element minOccurs="0" name="Active" type="xs:boolean" />
      <xs:element minOccurs="0" name="AgentTrainingCourseQuestionChoices" nillable="true" type="tns:ArrayOfAgentTrainingCourseQuestionChoice" />
      <xs:element minOccurs="0" name="AgentTrainingCourseSection" nillable="true" type="tns:AgentTrainingCourseSection" />
      <xs:element minOccurs="0" name="CourseSectionId" type="xs:int" />
      <xs:element minOccurs="0" name="Order" type="xs:int" />
      <xs:element minOccurs="0" name="QuestionId" type="xs:int" />
      <xs:element minOccurs="0" name="QuestionText" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="AgentTrainingCourseQuestion" nillable="true" type="tns:AgentTrainingCourseQuestion" />
  <xs:complexType name="ArrayOfAgentTrainingCourseQuestionChoice">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="AgentTrainingCourseQuestionChoice" nillable="true" type="tns:AgentTrainingCourseQuestionChoice" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfAgentTrainingCourseQuestionChoice" nillable="true" type="tns:ArrayOfAgentTrainingCourseQuestionChoice" />
  <xs:complexType name="AgentTrainingCourseQuestionChoice">
    <xs:sequence>
      <xs:element minOccurs="0" name="Active" type="xs:boolean" />
      <xs:element minOccurs="0" name="AgentTrainingCourseQuestion" nillable="true" type="tns:AgentTrainingCourseQuestion" />
      <xs:element minOccurs="0" name="ChoiceId" type="xs:int" />
      <xs:element minOccurs="0" name="ChoiceText" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="IsAnswer" type="xs:boolean" />
      <xs:element minOccurs="0" name="QuestionId" type="xs:int" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="AgentTrainingCourseQuestionChoice" nillable="true" type="tns:AgentTrainingCourseQuestionChoice" />
  <xs:complexType name="ArrayOfAgentTrainingProcess">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="AgentTrainingProcess" nillable="true" type="tns:AgentTrainingProcess" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfAgentTrainingProcess" nillable="true" type="tns:ArrayOfAgentTrainingProcess" />
  <xs:complexType name="AgentTrainingProcess">
    <xs:sequence>
      <xs:element minOccurs="0" name="AgentTraining" nillable="true" type="tns:AgentTraining" />
      <xs:element minOccurs="0" name="AgentTrainingCourseSection" nillable="true" type="tns:AgentTrainingCourseSection" />
      <xs:element minOccurs="0" name="AgentTrainingId" type="xs:int" />
      <xs:element minOccurs="0" name="Complete" type="xs:int" />
      <xs:element minOccurs="0" name="CourseSectionId" type="xs:int" />
      <xs:element minOccurs="0" name="Date" type="xs:dateTime" />
      <xs:element minOccurs="0" name="Id" type="xs:int" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="AgentTrainingProcess" nillable="true" type="tns:AgentTrainingProcess" />
  <xs:complexType name="ArrayOfBackgroundCheckCandidate">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="BackgroundCheckCandidate" nillable="true" type="tns:BackgroundCheckCandidate" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfBackgroundCheckCandidate" nillable="true" type="tns:ArrayOfBackgroundCheckCandidate" />
  <xs:complexType name="BackgroundCheckCandidate">
    <xs:sequence>
      <xs:element minOccurs="0" name="Agent" nillable="true" type="tns:Agent" />
      <xs:element minOccurs="0" name="AgentId" type="xs:int" />
      <xs:element minOccurs="0" name="BackgroundCheckOrders" nillable="true" type="tns:ArrayOfBackgroundCheckOrder" />
      <xs:element minOccurs="0" name="CandidateId" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="DateCreated" type="xs:dateTime" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="BackgroundCheckCandidate" nillable="true" type="tns:BackgroundCheckCandidate" />
  <xs:complexType name="ArrayOfBackgroundCheckOrder">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="BackgroundCheckOrder" nillable="true" type="tns:BackgroundCheckOrder" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfBackgroundCheckOrder" nillable="true" type="tns:ArrayOfBackgroundCheckOrder" />
  <xs:complexType name="BackgroundCheckOrder">
    <xs:sequence>
      <xs:element minOccurs="0" name="BackgroundCheckCandidate" nillable="true" type="tns:BackgroundCheckCandidate" />
      <xs:element minOccurs="0" name="BackgroundCheckReports" nillable="true" type="tns:ArrayOfBackgroundCheckReport" />
      <xs:element minOccurs="0" name="CandidateId" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="DateCompleted" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="DateRequested" type="xs:dateTime" />
      <xs:element minOccurs="0" name="OrderId" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="BackgroundCheckOrder" nillable="true" type="tns:BackgroundCheckOrder" />
  <xs:complexType name="ArrayOfBackgroundCheckReport">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="BackgroundCheckReport" nillable="true" type="tns:BackgroundCheckReport" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfBackgroundCheckReport" nillable="true" type="tns:ArrayOfBackgroundCheckReport" />
  <xs:complexType name="BackgroundCheckReport">
    <xs:sequence>
      <xs:element minOccurs="0" name="BackgroundCheckOrder" nillable="true" type="tns:BackgroundCheckOrder" />
      <xs:element minOccurs="0" name="DateCreated" type="xs:dateTime" />
      <xs:element minOccurs="0" name="Id" type="xs:int" />
      <xs:element minOccurs="0" name="OrderId" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RawResponse" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="BackgroundCheckReport" nillable="true" type="tns:BackgroundCheckReport" />
  <xs:complexType name="ArrayOfBackgroundCheckQueue">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="BackgroundCheckQueue" nillable="true" type="tns:BackgroundCheckQueue" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfBackgroundCheckQueue" nillable="true" type="tns:ArrayOfBackgroundCheckQueue" />
  <xs:complexType name="BackgroundCheckQueue">
    <xs:sequence>
      <xs:element minOccurs="0" name="Agent" nillable="true" type="tns:Agent" />
      <xs:element minOccurs="0" name="AgentId" type="xs:int" />
      <xs:element minOccurs="0" name="BackgroundCheckStatu" nillable="true" type="tns:BackgroundCheckStatu" />
      <xs:element minOccurs="0" name="DateCompleted" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="DateRequested" type="xs:dateTime" />
      <xs:element minOccurs="0" name="Id" type="xs:int" />
      <xs:element minOccurs="0" name="StatusId" type="xs:int" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="BackgroundCheckQueue" nillable="true" type="tns:BackgroundCheckQueue" />
  <xs:complexType name="BackgroundCheckStatu">
    <xs:sequence>
      <xs:element minOccurs="0" name="BackgroundCheckQueues" nillable="true" type="tns:ArrayOfBackgroundCheckQueue" />
      <xs:element minOccurs="0" name="Id" type="xs:int" />
      <xs:element minOccurs="0" name="StatusName" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="BackgroundCheckStatu" nillable="true" type="tns:BackgroundCheckStatu" />
  <xs:complexType name="ArrayOfPreviousCampaignAgentNote">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="PreviousCampaignAgentNote" nillable="true" type="tns:PreviousCampaignAgentNote" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfPreviousCampaignAgentNote" nillable="true" type="tns:ArrayOfPreviousCampaignAgentNote" />
  <xs:complexType name="PreviousCampaignAgentNote">
    <xs:sequence>
      <xs:element minOccurs="0" name="Agent" nillable="true" type="tns:Agent" />
      <xs:element minOccurs="0" name="AgentId" type="xs:int" />
      <xs:element minOccurs="0" name="Id" type="xs:int" />
      <xs:element minOccurs="0" name="LastUpdatedDate" xmlns:q1="http://schemas.datacontract.org/2004/07/System" type="q1:DateTimeOffset" />
      <xs:element minOccurs="0" name="List" nillable="true" type="tns:List" />
      <xs:element minOccurs="0" name="ListId" type="xs:int" />
      <xs:element minOccurs="0" name="Note" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="PreviousCampaignAgentNote" nillable="true" type="tns:PreviousCampaignAgentNote" />
  <xs:complexType name="List">
    <xs:sequence>
      <xs:element minOccurs="0" name="CreatedBy" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="DateCreated" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="Deleted" nillable="true" type="xs:boolean" />
      <xs:element minOccurs="0" name="DeletedDate" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="ListId" type="xs:int" />
      <xs:element minOccurs="0" name="ListName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ModifiedBy" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Note" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="OptOut" nillable="true" type="xs:boolean" />
      <xs:element minOccurs="0" name="OptOutDate" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="PreviousCampaignAgentNotes" nillable="true" type="tns:ArrayOfPreviousCampaignAgentNote" />
      <xs:element minOccurs="0" name="RequiresMapping" nillable="true" type="xs:boolean" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="List" nillable="true" type="tns:List" />
  <xs:simpleType name="AgentStatusId">
    <xs:restriction base="xs:string">
      <xs:enumeration value="Ready">
        <xs:annotation>
          <xs:appinfo>
            <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</EnumerationValue>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="In_Active">
        <xs:annotation>
          <xs:appinfo>
            <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">2</EnumerationValue>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Calendar_Too_Full">
        <xs:annotation>
          <xs:appinfo>
            <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">3</EnumerationValue>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="All_Agent_Districts_Blocked">
        <xs:annotation>
          <xs:appinfo>
            <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">4</EnumerationValue>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="On_Hold">
        <xs:annotation>
          <xs:appinfo>
            <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">5</EnumerationValue>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Waiting_For_Confirmation_To_Start">
        <xs:annotation>
          <xs:appinfo>
            <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">6</EnumerationValue>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Billing_Failure">
        <xs:annotation>
          <xs:appinfo>
            <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">7</EnumerationValue>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Need_Credit_Card">
        <xs:annotation>
          <xs:appinfo>
            <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">8</EnumerationValue>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="No_Districts">
        <xs:annotation>
          <xs:appinfo>
            <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">9</EnumerationValue>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="District_Resetting_Need_More_Districts">
        <xs:annotation>
          <xs:appinfo>
            <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">10</EnumerationValue>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Waiting_For_Data">
        <xs:annotation>
          <xs:appinfo>
            <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">11</EnumerationValue>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Needs_Training">
        <xs:annotation>
          <xs:appinfo>
            <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">12</EnumerationValue>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Need_First_District_Confirmation">
        <xs:annotation>
          <xs:appinfo>
            <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">13</EnumerationValue>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Needs_Approval_From_Upline">
        <xs:annotation>
          <xs:appinfo>
            <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">14</EnumerationValue>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Suspended_For_Reporting_Violations">
        <xs:annotation>
          <xs:appinfo>
            <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">15</EnumerationValue>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Lockout">
        <xs:annotation>
          <xs:appinfo>
            <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">16</EnumerationValue>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Opted_Out">
        <xs:annotation>
          <xs:appinfo>
            <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">17</EnumerationValue>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="New">
        <xs:annotation>
          <xs:appinfo>
            <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">18</EnumerationValue>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="New_Agent_Checklist_Complete">
        <xs:annotation>
          <xs:appinfo>
            <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">19</EnumerationValue>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:element name="AgentStatusId" nillable="true" type="tns:AgentStatusId" />
</xs:schema>