﻿<?xml version="1.0" encoding="utf-8"?>
<ScriptContainer xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" noNamespaceSchemaLocation="http://lab-iniws01/scriptcontainer.xsd" BusNo="4605741" UserID="39112277">
  <Actions>
    <ActionStruct>
      <ActionID>10</ActionID>
      <Action>AgentAssistV1_LIBID_b2aedee9-ab1e-4923-9d64-04cee8118482</Action>
      <Caption>Launch Agent Assist App</Caption>
      <Parameters>
        <string>Agent-Assist-US1-Demo</string>
        <string />
        <string />
        <string />
        <string />
        <string />
        <string />
      </Parameters>
      <DefaultNextAction>
        <Text />
        <ActionID>8</ActionID>
        <Index>0</Index>
        <LabelDistance xsi:nil="true" />
        <Segments />
      </DefaultNextAction>
      <Branches>
        <BranchStruct>
          <Text>Error</Text>
          <ActionID>4</ActionID>
          <Index>0</Index>
          <LabelDistance xsi:nil="true" />
          <Segments />
        </BranchStruct>
      </Branches>
      <Cases />
      <X>368</X>
      <Y>192</Y>
      <DependencyOrder>9</DependencyOrder>
      <Impl_Type>1</Impl_Type>
      <LibraryID>b2aedee9-ab1e-4923-9d64-04cee8118482</LibraryID>
      <ExtraInfo>
        <DefaultBranch>
          <ActionId>8</ActionId>
          <Segments />
        </DefaultBranch>
        <Branches>
          <BranchInfo>
            <KeyName>0</KeyName>
            <ActionId>4</ActionId>
            <Segments />
          </BranchInfo>
        </Branches>
        <CaseBranches />
      </ExtraInfo>
      <xws>0</xws>
      <yws>0</yws>
    </ActionStruct>
    <ActionStruct>
      <ActionID>9</ActionID>
      <Action>REST_API</Action>
      <Caption>Get Token</Caption>
      <Parameters>
        <string>MakeRestRequest</string>
        <string>https://us1-m.ocp.ai/agent-vb-mw/api/token/</string>
        <string>{"Authorization":"Bearer {Token}", "Content-Type" :"application/json"}</string>
        <string>customPayloadJSON</string>
        <string>POST</string>
        <string>30000</string>
        <string>resultSet</string>
        <string>errorArgList</string>
        <string>responseHeaders</string>
      </Parameters>
      <DefaultNextAction>
        <Text />
        <ActionID>6</ActionID>
        <Index>0</Index>
        <LabelDistance xsi:nil="true" />
        <Segments />
      </DefaultNextAction>
      <Branches />
      <Cases />
      <X>384</X>
      <Y>80</Y>
      <DependencyOrder>6</DependencyOrder>
      <Impl_Type>0</Impl_Type>
      <LibraryID>58437195-da97-436e-8c3d-7ff126b719d7</LibraryID>
      <ExtraInfo>
        <DefaultBranch>
          <ActionId>6</ActionId>
          <Segments />
        </DefaultBranch>
        <Branches />
        <CaseBranches />
      </ExtraInfo>
      <xws>0</xws>
      <yws>0</yws>
    </ActionStruct>
    <ActionStruct>
      <ActionID>8</ActionID>
      <Action>POPURL</Action>
      <Caption>PopURL</Caption>
      <Parameters>
        <string>{AGENTID}</string>
        <string>https://us1-m.ocp.ai/agent-assist/?token={token}</string>
        <string />
        <string>ContactPanel</string>
        <string>300</string>
        <string>300</string>
        <string>False</string>
        <string>False</string>
      </Parameters>
      <Branches />
      <Cases />
      <X>672</X>
      <Y>192</Y>
      <DependencyOrder>8</DependencyOrder>
      <Impl_Type>0</Impl_Type>
      <LibraryID>ff08b4cd-1ac1-d8f4-b52a-85fb86e7a824</LibraryID>
      <ExtraInfo>
        <DefaultBranch>
          <ActionId>-1</ActionId>
          <Segments />
        </DefaultBranch>
        <Branches />
        <CaseBranches />
      </ExtraInfo>
      <xws>0</xws>
      <yws>0</yws>
    </ActionStruct>
    <ActionStruct>
      <ActionID>7</ActionID>
      <Action>SNIPPET</Action>
      <Caption>Script Param Payload</Caption>
      <Parameters>
        <string>DYNAMIC customPayload
customPayload.ani="{e164ani}"
customPayload.agentId="{agentid}"
customPayload.agentSkill="{global:__skill}"
customPayload.callId="{contactId}"
customPayload.masterId="{masterid}"
customPayload.tenantId="{busno}"
customPayload.aaProfile="{aaProfile}"
customPayload.ccaasProvider="NICE_IN_CONTACT"
customPayload.customProperties.Ani="{e164ani}"
customPayload.customProperties.Dnis="{e164dnis}"
ASSIGN customPayloadJSON="{customPayload.asJSON()}"
</string>
        <string>Limit2K</string>
      </Parameters>
      <DefaultNextAction>
        <Text />
        <ActionID>9</ActionID>
        <Index>0</Index>
        <LabelDistance xsi:nil="true" />
        <Segments />
      </DefaultNextAction>
      <Branches />
      <Cases />
      <X>272</X>
      <Y>80</Y>
      <DependencyOrder>4</DependencyOrder>
      <Impl_Type>0</Impl_Type>
      <LibraryID>b333da63-33c8-4297-a58a-e9546cf7f0f2</LibraryID>
      <ExtraInfo>
        <DefaultBranch>
          <ActionId>9</ActionId>
          <Segments />
        </DefaultBranch>
        <Branches />
        <CaseBranches />
      </ExtraInfo>
      <xws>0</xws>
      <yws>0</yws>
    </ActionStruct>
    <ActionStruct>
      <ActionID>6</ActionID>
      <Action>SNIPPET</Action>
      <Caption>Assign Session Token</Caption>
      <Parameters>
        <string>ASSIGN token="{resultset.data.token}"
</string>
        <string>Limit2K</string>
      </Parameters>
      <DefaultNextAction>
        <Text />
        <ActionID>5</ActionID>
        <Index>0</Index>
        <LabelDistance xsi:nil="true" />
        <Segments />
      </DefaultNextAction>
      <Branches />
      <Cases />
      <X>496</X>
      <Y>80</Y>
      <DependencyOrder>7</DependencyOrder>
      <Impl_Type>0</Impl_Type>
      <LibraryID>b333da63-33c8-4297-a58a-e9546cf7f0f2</LibraryID>
      <ExtraInfo>
        <DefaultBranch>
          <ActionId>5</ActionId>
          <Segments />
        </DefaultBranch>
        <Branches />
        <CaseBranches />
      </ExtraInfo>
      <xws>0</xws>
      <yws>0</yws>
    </ActionStruct>
    <ActionStruct>
      <ActionID>5</ActionID>
      <Action>REQAGENT</Action>
      <Caption>Reqagent</Caption>
      <Parameters>
        <string>18645244</string>
        <string>39112277</string>
        <string>DefaultfromSkill</string>
        <string>0</string>
        <string>1</string>
        <string />
        <string>1000</string>
        <string />
        <string>AfterSequence</string>
        <string>DefaultFromSkill</string>
        <string />
        <string>1</string>
        <string>20</string>
        <string>NotApplicable</string>
      </Parameters>
      <DefaultNextAction>
        <Text />
        <ActionID>2</ActionID>
        <Index>0</Index>
        <LabelDistance xsi:nil="true" />
        <Segments />
      </DefaultNextAction>
      <Branches />
      <Cases />
      <X>624</X>
      <Y>80</Y>
      <DependencyOrder>5</DependencyOrder>
      <Impl_Type>0</Impl_Type>
      <LibraryID>689a4a1b-fa0d-47b3-9a02-cbeb4735f08f</LibraryID>
      <ExtraInfo>
        <DefaultBranch>
          <ActionId>2</ActionId>
          <Segments />
        </DefaultBranch>
        <Branches />
        <CaseBranches />
      </ExtraInfo>
      <xws>0</xws>
      <yws>0</yws>
    </ActionStruct>
    <ActionStruct>
      <ActionID>4</ActionID>
      <Action>WHISPER</Action>
      <Caption>Whisper</Caption>
      <Parameters>
        <string>"%There was an error launching specified Agent Assist Application: {_ERR}"</string>
        <string />
        <string>Both</string>
      </Parameters>
      <Branches />
      <Cases />
      <X>672</X>
      <Y>368</Y>
      <DependencyOrder>3</DependencyOrder>
      <Impl_Type>0</Impl_Type>
      <LibraryID>0494c6b4-0433-443d-8fdc-adcaf23cbf30</LibraryID>
      <ExtraInfo>
        <DefaultBranch>
          <ActionId>-1</ActionId>
          <Segments />
        </DefaultBranch>
        <Branches />
        <CaseBranches />
      </ExtraInfo>
      <xws>0</xws>
      <yws>0</yws>
    </ActionStruct>
    <ActionStruct>
      <ActionID>3</ActionID>
      <Action>ONANSWER</Action>
      <Caption>Onanswer</Caption>
      <Parameters>
        <string>SKLNAME</string>
        <string>FIRST</string>
        <string>LAST</string>
        <string>AGENTID</string>
      </Parameters>
      <DefaultNextAction>
        <Text />
        <ActionID>10</ActionID>
        <Index>0</Index>
        <LabelDistance xsi:nil="true" />
        <Segments />
      </DefaultNextAction>
      <Branches />
      <Cases />
      <X>160</X>
      <Y>192</Y>
      <DependencyOrder>2</DependencyOrder>
      <Impl_Type>0</Impl_Type>
      <LibraryID>4b611ba4-8e81-45a6-9fcc-97c24f43ccbc</LibraryID>
      <ExtraInfo>
        <DefaultBranch>
          <ActionId>10</ActionId>
          <Segments />
        </DefaultBranch>
        <Branches />
        <CaseBranches />
      </ExtraInfo>
      <xws>0</xws>
      <yws>0</yws>
    </ActionStruct>
    <ActionStruct>
      <ActionID>2</ActionID>
      <Action>MUSIC</Action>
      <Caption>Hold Music</Caption>
      <Parameters>
        <string>HawaiianLuau.wav</string>
        <string>0</string>
        <string>0</string>
        <string />
        <string />
        <string />
        <string>False</string>
        <string>True</string>
      </Parameters>
      <Branches />
      <Cases />
      <X>720</X>
      <Y>80</Y>
      <DependencyOrder>1</DependencyOrder>
      <Impl_Type>0</Impl_Type>
      <LibraryID>dbcc742b-28d8-42d1-9d95-0d9abf20b04b</LibraryID>
      <ExtraInfo>
        <DefaultBranch>
          <ActionId>-1</ActionId>
          <Segments />
        </DefaultBranch>
        <Branches />
        <CaseBranches />
      </ExtraInfo>
      <xws>0</xws>
      <yws>0</yws>
    </ActionStruct>
    <ActionStruct>
      <ActionID>1</ActionID>
      <Action>BEGIN</Action>
      <Caption>Begin</Caption>
      <Parameters>
        <string />
        <string />
        <string />
      </Parameters>
      <DefaultNextAction>
        <Text />
        <ActionID>7</ActionID>
        <Index>0</Index>
        <LabelDistance xsi:nil="true" />
        <Segments />
      </DefaultNextAction>
      <Branches />
      <Cases />
      <X>144</X>
      <Y>80</Y>
      <DependencyOrder>0</DependencyOrder>
      <Impl_Type>0</Impl_Type>
      <LibraryID>b2f794c5-0232-40e7-9830-76d573bf57d7</LibraryID>
      <ExtraInfo>
        <DefaultBranch>
          <ActionId>7</ActionId>
          <Segments />
        </DefaultBranch>
        <Branches />
        <CaseBranches />
      </ExtraInfo>
      <xws>0</xws>
      <yws>0</yws>
    </ActionStruct>
  </Actions>
  <LibraryItem LibraryID="f8bb862d-1eec-413d-b383-61b851869302" ApiClassificationId="0" BusNo="4605741" Name="AgentAssistv100Demo" Alias="AgentAssistv100Demo" MediaType="4" VariableRedaction="">
    <Icon>AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0dXJlPW5ldXR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oEdVdzLeSCVGggG2XoAiPo/TOcuM563k6YHwuOLIRAYLLGJV5wuEFtXC0EU0uRDkXado0VkhR9srF6Ou15P9AbZbEskYyQcPlABwOHIl9nQJ5mJY2HqdDL+dS79QwEEBkts4hUEWIxmC4qSDciJOPwAxvi9IYTL+kxs6omo6VhYqGDtEItHSCi0vwIAA6ECEsnv8pYno1yvcgQ+c6GAVxCAGAB6wxTihiqyPBUFkve9pOu1BBhNdq31hEI9CQRmOQCEGEGAmdCOOaM/FCj+VaoiTgBPCDcLrOgMucEJAMQETqB8Q59mlK616dTWNkz8/hkOACWBQCMU2UtM8c+S+ZEo/UEaTBUFzqZZsVPJit9jR4OoHNmIE808tN/PpZej1lYdwQ3FLVAqSCbCXfi1yPxeDH+e0e6hwXAE0xANMPmfWTEIr88cmo5bctVZoebmQUJRN3BrBBoFg5RiinEkGXAAD9NNPx8w3BOq7EMMwvy6p5/gdq0CQIg4GriO7otQSrdndCFY2QTDH2DnTg3B3V0Vouj5HEdTj0cxG4bnApUdMJEvslUhquFKY6OK4MugKsmYxsjktcj9RqIqyTUAduzoI3Z7OV2VMo2dz/neT21IuL+M95fLlE8OGhp6iNVauLrRMOtRr1XkeavczGyj8fvA2b5dSSyW3IajAr1DvVPGAI/GRm7XRgU/gK1bu4jZnF1vDv9hx8eJ+vpOYjJt4O9/jms+2iGzebOcTEysNT3PY/zF6uqkmKY3SiTlRud/ko9kY6NBLh8jZ86c0+vD+Fblc4a/DLTX1cmWlk6zX9crKx97vdM6Ha3V+gYGKI3GrVY78c3U02NVKi0KhRl3t0xmxP0nkYyKRHqhcJdAoGtp0TY1DWAYoF3RUA0N3du2KevrFVu2dGzaJOvoGIN2KP8HVQ1aCsWAeQgAAAAASUVORK5CYIIL</Icon>
    <ImplPath>SE\DTsarouhas\Agent-Assist-v1.0.0-Demo</ImplPath>
    <CreateDate>0001-01-01T00:00:00</CreateDate>
    <ModifyDate>0001-01-01T00:00:00</ModifyDate>
    <ModifyUserID>39112277</ModifyUserID>
    <URI>/custom/4605741/AgentAssistv100Demo</URI>
    <DefaultTimeZone>Middle East Standard Time</DefaultTimeZone>
    <Parameters />
    <Branches />
  </LibraryItem>
  <MediaType>4</MediaType>
  <ModifyDate>0001-01-01T00:00:00</ModifyDate>
</ScriptContainer>