System Admin User

Scripts 2/2

Script 1: Work Item Create

 

   

      4

      SNIPPET

      Payload

     

        IF payload_json.left(1) != "{char(123)}" {

from_spawn = true

IF wi_id = "" { wi_id = "1234" }

IF wi_module_id = "" { wi_module_id = "5678" }

IF wi_from = "" { wi_from = "A Customer" }

IF wi_type = "" { wi_from = "wi_type (p4) parameter shows here" }

IF wi_agent = "" { wi_agent = "" }

DYNAMIC payload

payload.ivinexRecordId = "{wi_id}"

payload.ivinexModuleId = "{wi_module_id}"

payload.from = "{wi_from}"

payload.type = "{wi_type}"

payload.inContactAgentId = "{wi_agent}"

payload_json = "{payload.asjson()}"

} ELSE {

    DYNAMIC payload FROM payload_json

wi_id = "{payload.ivinexRecordId}"

wi_module_id = "{payload.ivinexModuleId}"

wi_from = "{payload.from}"

wi_type = "{payload.type}"

wi_agent = "{payload.inContactAgentId}"

}

        Limit32K

     

     

       

        2

        0

       

     

     

     

      224

      112

      1

      0

      b333da63-33c8-4297-a58a-e9546cf7f0f2

     

       

          2

         

       

       

       

     

   

   

      3

      END

      End

     

     

     

      416

      112

      3

      0

      93fb8888-30cf-4df3-8ed9-1f2986819080

     

       

          -1

         

       

       

       

     

   

   

      2

      QUEUEWI

      Queue Work Item

     

        {payload_json}

        This message shows to agent in preview window and can be customized.

Ivinex Module ID: {wi_module_id}

Ivinex Record ID: {wi_id}

        {wi_type}

        {wi_from}

        WI

        18650667

     

     

       

        3

        0

       

     

     

     

      320

      112

      2

      0

      0b175902-c85a-47e3-b956-3bdabce15776

     

       

          3

         

       

       

       

     

   

   

      1

      BEGIN

      Work Item Create

     

       

       

       

        payload_json

        wi_id

        wi_from

        wi_module_id

        wi_type

        wi_agent

     

     

       

        4

        0

       

     

     

     

      128

      112

      0

      0

      b2f794c5-0232-40e7-9830-76d573bf57d7

     

       

          4

         

       

       

       

     

   

 

 

    AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0dXJlP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VMcp9MoEdVdzLeSCVGggG2XoAiPo/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

    Ivinex\Work Item Create

    2018-07-12T18:37:30.37

    2018-07-19T22:07:11.703

    6964972

    Ivinex User

    /custom/4596619/Work Item Create

    Mountain Standard Time

   

     

        payload_json

     

     

        wi_id

     

     

        wi_from

     

     

        wi_module_id

     

     

        wi_type

     

     

        wi_agent

     

   

   

 

  0

  0001-01-01T00:00:00

 

Script 2: Work Item Route

 

   

      3

      SNIPPET

      Parse Work Item Payload

     

       

// Just for example

// Use as needed for custom scripting logic

DYNAMIC payload FROM workitemid // system variable

 

q_skill = "{payload.campaignId}"

IF q_skill = "" { q_skill = __skill }

 

q_agent = "{payload.inContactAgentId}"

        Limit2K

     

     

       

        2

        0

       

     

     

     

      224

      112

      0

      0

      b333da63-33c8-4297-a58a-e9546cf7f0f2

     

       

          2

         

       

       

       

     

   

   

      2

      REQAGENT

      Queue Work Item

     

        {q_skill}

        {q_agent}

        DefaultfromSkill

        0

        1

       

        1000

       

        AfterSequence

        DefaultFromSkill

       

     

     

     

      320

      112

      2

      0

      689a4a1b-fa0d-47b3-9a02-cbeb4735f08f

     

       

          -1

         

       

       

       

     

   

   

      1

      BEGIN

      Work Item Route

     

       

       

       

     

     

       

        3

        0

       

     

     

     

      128

      112

      1

      0

      b2f794c5-0232-40e7-9830-76d573bf57d7

     

       

          3

         

       

       

       

     

   

 

 

    AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABVTeXN0ZW0uRHJhd2luZy5CaXRtYXABAAAABERhdGEHAgIAAAAJAwAAAA8DAAAAiwUAAAKJUE5HDQoaCgAAAA1JSERSAAAAIAAAACAIAgAAAPwY7aMAAAABc1JHQgCuzhzpAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAOwwAADsMBx2+oZAAABSBJREFUSEutVllsG1UUfZ9pm7ZRlSqL4yW2E8dZbCexkzqJ4ziOd3vs8b6vYxNKS9JSGqChhVSARJBQEZtYK0ACyhoKlCJElCKhQlk+4KNICAkiJCpaqcAHiK2cYSwnclMzH1jXo/ve3HfP3d+QK//+Ll68fPz4yZmZRY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DH+e0e6hwXAE0xANMPmfWTEIr88cmo5bctVZoebmQUJRN3BrBBoFg5RiinEkGXAAD9NNPx8w3BOq7EMMwvy6p5/gdq0CQIg4GriO7otQSrdndCFY2QTDH2DnTg3B3V0Vouj5HEdTj0cxG4bnApUdMJEvslUhquFKY6OK4MugKsmYxsjktcj9RqIqyTUAduzoI3Z7OV2VMo2dz/neT21IuL+M95fLlE8OGhp6iNVauLrRMOtRr1XkeavczGyj8fvA2b5dSSyW3IajAr1DvVPGAI/GRm7XRgU/gK1bu4jZnF1vDv9hx8eJ+vpOYjJt4O9/jms+2iGzebOcTEysNT3PY/zF6uqkmKY3SiTlRud/ko9kY6NBLh8jZ86c0+vD+Fblc4a/DLTX1cmWlk6zX9crKx97vdM6Ha3V+gYGKI3GrVY78c3U02NVKi0KhRl3t0xmxP0nkYyKRHqhcJdAoGtp0TY1DWAYoF3RUA0N3du2KevrFVu2dGzaJOvoGIN2KP8HVQ1aCsWAeQgAAAAASUVORK5CYIIL

    Ivinex\Work Item Route

    2018-07-12T18:38:08.37

    2018-07-19T22:07:21.14

    6964972

    Ivinex User

    /custom/4596619/Work Item Route

    Mountain Standard Time

   

   

 

  6

  0001-01-01T00:00:00