Guest User

Untitled

a guest
Aug 22nd, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 70.80 KB | None | 0 0
  1. x_list_chat_sessions_with_consumer_at_pype #1
  2. SEND
  3. {
  4.   "user_id": "292cd931-4895-48ed-a994-82dc17f69b83",
  5.   "correlation_id": "4833fc08-23da-90ba-f8b5-ce9f94c769b3",
  6.   "reply_to": "eca27099bf7bd83a0c80efa61b71f95a_292cd931-4895-48ed-a994-82dc17f69b83",
  7.   "version": 1,
  8.   "type": "request",
  9.   "auth_token": "QnqqeUjoXyo0hZWF1HTojG9Nen1Fu2mY",
  10.   "request_type": "x_list_chat_sessions_with_consumer_at_pype",
  11.   "request_action": "new",
  12.   "data": {
  13.     "pype_id": "pype_95d029ff-5884-478a-801b-53b6c29ba65d",
  14.     "user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  15.     "page_num": 1,
  16.     "items_per_page": 24
  17.   }
  18. }
  19.  
  20. MESSAGE
  21. {
  22.   "version": 1,
  23.   "data": {
  24.     "result_count": 6,
  25.     "items_per_page": 24,
  26.     "page_num": 1,
  27.     "timestamp": 1471895743094046,
  28.     "chat_sessions": [
  29.       {
  30.         "last_updated": null,
  31.         "user_read_counts": [
  32.           {
  33.             "user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  34.             "min": 0,
  35.             "max": 0
  36.           }
  37.         ],
  38.         "original_request": {
  39.           "gateway": null,
  40.           "data": {
  41.             "initial_message": null,
  42.             "originating_side": "consumer",
  43.             "agent": null,
  44.             "consumer": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  45.             "user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  46.             "campaign_id": null,
  47.             "stream_id": "stream_1de9741d-533c-4308-a1a0-dfd9fe581011",
  48.             "pype_id": "pype_95d029ff-5884-478a-801b-53b6c29ba65d",
  49.             "id": null
  50.           },
  51.           "version": 1,
  52.           "auth_token": "aRXc1c42ADwjLf2MHdW8x69MLYOrLoem",
  53.           "reply_to": "06151E5F-40F4-41F6-9941-AC72FA86ACF1-A58BDDE70C56602938650068FE9F607D",
  54.           "user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  55.           "correlation_id": "EF8E5DC8-2C4D-46DC-A3A1-82ECFF1A3D8F",
  56.           "request_action": "new",
  57.           "request_type": "x_chat",
  58.           "type": "request"
  59.         },
  60.         "end_comment": null,
  61.         "ended_by": null,
  62.         "end_ts": null,
  63.         "end_tags": null,
  64.         "agent_response_ts": null,
  65.         "start_ts": 1471890201,
  66.         "to_be_migrated": false,
  67.         "version": null,
  68.         "read_receipts": [],
  69.         "delivery_receipts": [],
  70.         "status": "active",
  71.         "island_id": null,
  72.         "history": [
  73.           {
  74.             "chat_msg": {
  75.               "metadata": {
  76.                 "from_name": "David Young",
  77.                 "pype_name": "stagepype1@example.com",
  78.                 "stream_name": "News"
  79.               },
  80.               "timestamp": 1471890220000,
  81.               "campaign_id": null,
  82.               "seq_num": 4,
  83.               "app_object": null,
  84.               "msg_type": "text",
  85.               "file_status": "uploading",
  86.               "file": null,
  87.               "msg": "Ddddhhjpprre",
  88.               "from_side": "consumer",
  89.               "from": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  90.               "chat_id": "027f4848-4947-443f-8d1b-09dcc53f8702",
  91.               "msg_action": "new",
  92.               "client_msg_id": "2252DE0E-7D53-45D3-AADA-FCBD1D8A0256",
  93.               "id": "027f4848-4947-443f-8d1b-09dcc53f8702.4"
  94.             }
  95.           },
  96.           {
  97.             "chat_msg": {
  98.               "metadata": {
  99.                 "from_name": "David Young",
  100.                 "pype_name": "stagepype1@example.com",
  101.                 "stream_name": "News"
  102.               },
  103.               "timestamp": 1471890214000,
  104.               "campaign_id": null,
  105.               "seq_num": 3,
  106.               "app_object": null,
  107.               "msg_type": "text",
  108.               "file_status": "uploading",
  109.               "file": null,
  110.               "msg": "Fffffhh",
  111.               "from_side": "consumer",
  112.               "from": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  113.               "chat_id": "027f4848-4947-443f-8d1b-09dcc53f8702",
  114.               "msg_action": "new",
  115.               "client_msg_id": "74A8AEB6-A003-481B-A749-252F085FA02A",
  116.               "id": "027f4848-4947-443f-8d1b-09dcc53f8702.3"
  117.             }
  118.           },
  119.           {
  120.             "chat_msg": {
  121.               "metadata": {
  122.                 "from_name": "David Young",
  123.                 "pype_name": "stagepype1@example.com",
  124.                 "stream_name": "News"
  125.               },
  126.               "timestamp": 1471890206000,
  127.               "campaign_id": null,
  128.               "seq_num": 2,
  129.               "app_object": null,
  130.               "msg_type": "text",
  131.               "file_status": "uploading",
  132.               "file": null,
  133.               "msg": "Ccc",
  134.               "from_side": "consumer",
  135.               "from": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  136.               "chat_id": "027f4848-4947-443f-8d1b-09dcc53f8702",
  137.               "msg_action": "new",
  138.               "client_msg_id": "90A5743F-41E1-4ADE-9A4F-FA93FB1AA4EF",
  139.               "id": "027f4848-4947-443f-8d1b-09dcc53f8702.2"
  140.             }
  141.           },
  142.           {
  143.             "chat_msg": {
  144.               "metadata": {
  145.                 "from_name": "David Young",
  146.                 "pype_name": "stagepype1@example.com",
  147.                 "stream_name": "News"
  148.               },
  149.               "timestamp": 1471890201000,
  150.               "campaign_id": null,
  151.               "seq_num": 1,
  152.               "app_object": null,
  153.               "msg_type": "text",
  154.               "file_status": "uploading",
  155.               "file": null,
  156.               "msg": "We're",
  157.               "from_side": "consumer",
  158.               "from": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  159.               "chat_id": "027f4848-4947-443f-8d1b-09dcc53f8702",
  160.               "msg_action": "new",
  161.               "client_msg_id": "DA47E991-FA2B-4F6F-B4AB-F4A87801ADE8",
  162.               "id": "027f4848-4947-443f-8d1b-09dcc53f8702.1"
  163.             }
  164.           }
  165.         ],
  166.         "seq_num": 4,
  167.         "timestamp": 1471890201000,
  168.         "originating_side": "consumer",
  169.         "originator_name": "David Young",
  170.         "originator_user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  171.         "initiating_side": null,
  172.         "initial_msg": null,
  173.         "participant_history": [
  174.           {
  175.             "action": "added",
  176.             "participant_type": "agent",
  177.             "user_id": "292cd931-4895-48ed-a994-82dc17f69b83"
  178.           },
  179.           {
  180.             "action": "added",
  181.             "participant_type": "consumer",
  182.             "user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586"
  183.           }
  184.         ],
  185.         "participants": {
  186.           "agent": "292cd931-4895-48ed-a994-82dc17f69b83",
  187.           "consumer": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586"
  188.         },
  189.         "campaign_id": null,
  190.         "stream_name": "News",
  191.         "pype_name": "stagepype1@example.com",
  192.         "stream_id": "stream_1de9741d-533c-4308-a1a0-dfd9fe581011",
  193.         "pype_id": "pype_95d029ff-5884-478a-801b-53b6c29ba65d",
  194.         "bot_name": null,
  195.         "agent_name": "agent1 ln",
  196.         "consumer_name": "David Young",
  197.         "bot": null,
  198.         "agent": "292cd931-4895-48ed-a994-82dc17f69b83",
  199.         "consumer": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  200.         "agent_is_assigned": true,
  201.         "bot_enabled": false,
  202.         "id": "027f4848-4947-443f-8d1b-09dcc53f8702"
  203.       },
  204.       {
  205.         "last_updated": null,
  206.         "user_read_counts": [
  207.           {
  208.             "user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  209.             "min": 0,
  210.             "max": 0
  211.           }
  212.         ],
  213.         "original_request": {
  214.           "gateway": null,
  215.           "data": {
  216.             "initial_message": null,
  217.             "originating_side": "consumer",
  218.             "agent": null,
  219.             "consumer": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  220.             "user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  221.             "campaign_id": null,
  222.             "stream_id": "stream_1de9741d-533c-4308-a1a0-dfd9fe581011",
  223.             "pype_id": "pype_95d029ff-5884-478a-801b-53b6c29ba65d",
  224.             "id": null
  225.           },
  226.           "version": 1,
  227.           "auth_token": "aRXc1c42ADwjLf2MHdW8x69MLYOrLoem",
  228.           "reply_to": "06151E5F-40F4-41F6-9941-AC72FA86ACF1-A58BDDE70C56602938650068FE9F607D",
  229.           "user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  230.           "correlation_id": "EF8E5DC8-2C4D-46DC-A3A1-82ECFF1A3D8F",
  231.           "request_action": "new",
  232.           "request_type": "x_chat",
  233.           "type": "request"
  234.         },
  235.         "end_comment": null,
  236.         "ended_by": null,
  237.         "end_ts": null,
  238.         "end_tags": null,
  239.         "agent_response_ts": null,
  240.         "start_ts": 1471890201,
  241.         "to_be_migrated": false,
  242.         "version": null,
  243.         "read_receipts": [],
  244.         "delivery_receipts": [],
  245.         "status": "active",
  246.         "island_id": null,
  247.         "history": [
  248.           {
  249.             "chat_msg": {
  250.               "metadata": {
  251.                 "from_name": "David Young",
  252.                 "pype_name": "stagepype1@example.com",
  253.                 "stream_name": "News"
  254.               },
  255.               "timestamp": 1471890220000,
  256.               "campaign_id": null,
  257.               "seq_num": 4,
  258.               "app_object": null,
  259.               "msg_type": "text",
  260.               "file_status": "uploading",
  261.               "file": null,
  262.               "msg": "Ddddhhjpprre",
  263.               "from_side": "consumer",
  264.               "from": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  265.               "chat_id": "027f4848-4947-443f-8d1b-09dcc53f8702",
  266.               "msg_action": "new",
  267.               "client_msg_id": "2252DE0E-7D53-45D3-AADA-FCBD1D8A0256",
  268.               "id": "027f4848-4947-443f-8d1b-09dcc53f8702.4"
  269.             }
  270.           },
  271.           {
  272.             "chat_msg": {
  273.               "metadata": {
  274.                 "from_name": "David Young",
  275.                 "pype_name": "stagepype1@example.com",
  276.                 "stream_name": "News"
  277.               },
  278.               "timestamp": 1471890214000,
  279.               "campaign_id": null,
  280.               "seq_num": 3,
  281.               "app_object": null,
  282.               "msg_type": "text",
  283.               "file_status": "uploading",
  284.               "file": null,
  285.               "msg": "Fffffhh",
  286.               "from_side": "consumer",
  287.               "from": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  288.               "chat_id": "027f4848-4947-443f-8d1b-09dcc53f8702",
  289.               "msg_action": "new",
  290.               "client_msg_id": "74A8AEB6-A003-481B-A749-252F085FA02A",
  291.               "id": "027f4848-4947-443f-8d1b-09dcc53f8702.3"
  292.             }
  293.           },
  294.           {
  295.             "chat_msg": {
  296.               "metadata": {
  297.                 "from_name": "David Young",
  298.                 "pype_name": "stagepype1@example.com",
  299.                 "stream_name": "News"
  300.               },
  301.               "timestamp": 1471890206000,
  302.               "campaign_id": null,
  303.               "seq_num": 2,
  304.               "app_object": null,
  305.               "msg_type": "text",
  306.               "file_status": "uploading",
  307.               "file": null,
  308.               "msg": "Ccc",
  309.               "from_side": "consumer",
  310.               "from": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  311.               "chat_id": "027f4848-4947-443f-8d1b-09dcc53f8702",
  312.               "msg_action": "new",
  313.               "client_msg_id": "90A5743F-41E1-4ADE-9A4F-FA93FB1AA4EF",
  314.               "id": "027f4848-4947-443f-8d1b-09dcc53f8702.2"
  315.             }
  316.           },
  317.           {
  318.             "chat_msg": {
  319.               "metadata": {
  320.                 "from_name": "David Young",
  321.                 "pype_name": "stagepype1@example.com",
  322.                 "stream_name": "News"
  323.               },
  324.               "timestamp": 1471890201000,
  325.               "campaign_id": null,
  326.               "seq_num": 1,
  327.               "app_object": null,
  328.               "msg_type": "text",
  329.               "file_status": "uploading",
  330.               "file": null,
  331.               "msg": "We're",
  332.               "from_side": "consumer",
  333.               "from": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  334.               "chat_id": "027f4848-4947-443f-8d1b-09dcc53f8702",
  335.               "msg_action": "new",
  336.               "client_msg_id": "DA47E991-FA2B-4F6F-B4AB-F4A87801ADE8",
  337.               "id": "027f4848-4947-443f-8d1b-09dcc53f8702.1"
  338.             }
  339.           }
  340.         ],
  341.         "seq_num": 4,
  342.         "timestamp": 1471890201000,
  343.         "originating_side": "consumer",
  344.         "originator_name": "David Young",
  345.         "originator_user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  346.         "initiating_side": null,
  347.         "initial_msg": null,
  348.         "participant_history": [
  349.           {
  350.             "action": "added",
  351.             "participant_type": "agent",
  352.             "user_id": "292cd931-4895-48ed-a994-82dc17f69b83"
  353.           },
  354.           {
  355.             "action": "added",
  356.             "participant_type": "consumer",
  357.             "user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586"
  358.           }
  359.         ],
  360.         "participants": {
  361.           "agent": "292cd931-4895-48ed-a994-82dc17f69b83",
  362.           "consumer": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586"
  363.         },
  364.         "campaign_id": null,
  365.         "stream_name": "News",
  366.         "pype_name": "stagepype1@example.com",
  367.         "stream_id": "stream_1de9741d-533c-4308-a1a0-dfd9fe581011",
  368.         "pype_id": "pype_95d029ff-5884-478a-801b-53b6c29ba65d",
  369.         "bot_name": null,
  370.         "agent_name": "agent1 ln",
  371.         "consumer_name": "David Young",
  372.         "bot": null,
  373.         "agent": "292cd931-4895-48ed-a994-82dc17f69b83",
  374.         "consumer": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  375.         "agent_is_assigned": true,
  376.         "bot_enabled": false,
  377.         "id": "027f4848-4947-443f-8d1b-09dcc53f8702"
  378.       },
  379.       {
  380.         "last_updated": null,
  381.         "user_read_counts": [
  382.           {
  383.             "user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  384.             "min": 0,
  385.             "max": 0
  386.           }
  387.         ],
  388.         "original_request": {
  389.           "gateway": null,
  390.           "data": {
  391.             "initial_message": null,
  392.             "originating_side": "consumer",
  393.             "agent": null,
  394.             "consumer": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  395.             "user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  396.             "campaign_id": null,
  397.             "stream_id": "stream_deebdd12-8200-4012-b4af-ed7f04336501",
  398.             "pype_id": "pype_95d029ff-5884-478a-801b-53b6c29ba65d",
  399.             "id": null
  400.           },
  401.           "version": 1,
  402.           "auth_token": "aRXc1c42ADwjLf2MHdW8x69MLYOrLoem",
  403.           "reply_to": "06151E5F-40F4-41F6-9941-AC72FA86ACF1-A58BDDE70C56602938650068FE9F607D",
  404.           "user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  405.           "correlation_id": "6A1C02A7-0A16-435B-A2DE-25FBE80D09D2",
  406.           "request_action": "new",
  407.           "request_type": "x_chat",
  408.           "type": "request"
  409.         },
  410.         "end_comment": null,
  411.         "ended_by": null,
  412.         "end_ts": null,
  413.         "end_tags": null,
  414.         "agent_response_ts": null,
  415.         "start_ts": 1471890229,
  416.         "to_be_migrated": false,
  417.         "version": null,
  418.         "read_receipts": [],
  419.         "delivery_receipts": [],
  420.         "status": "active",
  421.         "island_id": null,
  422.         "history": [
  423.           {
  424.             "chat_msg": {
  425.               "metadata": {
  426.                 "from_name": "David Young",
  427.                 "pype_name": "stagepype1@example.com",
  428.                 "stream_name": "Support"
  429.               },
  430.               "timestamp": 1471890616000,
  431.               "campaign_id": null,
  432.               "seq_num": 2,
  433.               "app_object": null,
  434.               "msg_type": "text",
  435.               "file_status": "uploading",
  436.               "file": null,
  437.               "msg": "Smashes",
  438.               "from_side": "consumer",
  439.               "from": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  440.               "chat_id": "7260ddbf-fb62-4466-ad2d-fbbc5eebeaa6",
  441.               "msg_action": "new",
  442.               "client_msg_id": "CE5350A8-6754-407E-92AF-D755C55543AD",
  443.               "id": "7260ddbf-fb62-4466-ad2d-fbbc5eebeaa6.2"
  444.             }
  445.           },
  446.           {
  447.             "chat_msg": {
  448.               "metadata": {
  449.                 "from_name": "David Young",
  450.                 "pype_name": "stagepype1@example.com",
  451.                 "stream_name": "Support"
  452.               },
  453.               "timestamp": 1471890229000,
  454.               "campaign_id": null,
  455.               "seq_num": 1,
  456.               "app_object": null,
  457.               "msg_type": "text",
  458.               "file_status": "uploading",
  459.               "file": null,
  460.               "msg": "Ghosh shave",
  461.               "from_side": "consumer",
  462.               "from": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  463.               "chat_id": "7260ddbf-fb62-4466-ad2d-fbbc5eebeaa6",
  464.               "msg_action": "new",
  465.               "client_msg_id": "37181EEE-295F-436F-834E-EDD791674512",
  466.               "id": "7260ddbf-fb62-4466-ad2d-fbbc5eebeaa6.1"
  467.             }
  468.           }
  469.         ],
  470.         "seq_num": 2,
  471.         "timestamp": 1471890229000,
  472.         "originating_side": "consumer",
  473.         "originator_name": "David Young",
  474.         "originator_user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  475.         "initiating_side": null,
  476.         "initial_msg": null,
  477.         "participant_history": [
  478.           {
  479.             "action": "added",
  480.             "participant_type": "agent",
  481.             "user_id": "292cd931-4895-48ed-a994-82dc17f69b83"
  482.           },
  483.           {
  484.             "action": "added",
  485.             "participant_type": "consumer",
  486.             "user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586"
  487.           }
  488.         ],
  489.         "participants": {
  490.           "agent": "292cd931-4895-48ed-a994-82dc17f69b83",
  491.           "consumer": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586"
  492.         },
  493.         "campaign_id": null,
  494.         "stream_name": "Support",
  495.         "pype_name": "stagepype1@example.com",
  496.         "stream_id": "stream_deebdd12-8200-4012-b4af-ed7f04336501",
  497.         "pype_id": "pype_95d029ff-5884-478a-801b-53b6c29ba65d",
  498.         "bot_name": null,
  499.         "agent_name": "agent1 ln",
  500.         "consumer_name": "David Young",
  501.         "bot": null,
  502.         "agent": "292cd931-4895-48ed-a994-82dc17f69b83",
  503.         "consumer": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  504.         "agent_is_assigned": true,
  505.         "bot_enabled": false,
  506.         "id": "7260ddbf-fb62-4466-ad2d-fbbc5eebeaa6"
  507.       },
  508.       {
  509.         "last_updated": null,
  510.         "user_read_counts": [
  511.           {
  512.             "user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  513.             "min": 0,
  514.             "max": 0
  515.           }
  516.         ],
  517.         "original_request": {
  518.           "gateway": null,
  519.           "data": {
  520.             "initial_message": null,
  521.             "originating_side": "consumer",
  522.             "agent": null,
  523.             "consumer": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  524.             "user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  525.             "campaign_id": null,
  526.             "stream_id": "stream_deebdd12-8200-4012-b4af-ed7f04336501",
  527.             "pype_id": "pype_95d029ff-5884-478a-801b-53b6c29ba65d",
  528.             "id": null
  529.           },
  530.           "version": 1,
  531.           "auth_token": "aRXc1c42ADwjLf2MHdW8x69MLYOrLoem",
  532.           "reply_to": "06151E5F-40F4-41F6-9941-AC72FA86ACF1-A58BDDE70C56602938650068FE9F607D",
  533.           "user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  534.           "correlation_id": "6A1C02A7-0A16-435B-A2DE-25FBE80D09D2",
  535.           "request_action": "new",
  536.           "request_type": "x_chat",
  537.           "type": "request"
  538.         },
  539.         "end_comment": null,
  540.         "ended_by": null,
  541.         "end_ts": null,
  542.         "end_tags": null,
  543.         "agent_response_ts": null,
  544.         "start_ts": 1471890229,
  545.         "to_be_migrated": false,
  546.         "version": null,
  547.         "read_receipts": [],
  548.         "delivery_receipts": [],
  549.         "status": "active",
  550.         "island_id": null,
  551.         "history": [
  552.           {
  553.             "chat_msg": {
  554.               "metadata": {
  555.                 "from_name": "David Young",
  556.                 "pype_name": "stagepype1@example.com",
  557.                 "stream_name": "Support"
  558.               },
  559.               "timestamp": 1471890616000,
  560.               "campaign_id": null,
  561.               "seq_num": 2,
  562.               "app_object": null,
  563.               "msg_type": "text",
  564.               "file_status": "uploading",
  565.               "file": null,
  566.               "msg": "Smashes",
  567.               "from_side": "consumer",
  568.               "from": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  569.               "chat_id": "7260ddbf-fb62-4466-ad2d-fbbc5eebeaa6",
  570.               "msg_action": "new",
  571.               "client_msg_id": "CE5350A8-6754-407E-92AF-D755C55543AD",
  572.               "id": "7260ddbf-fb62-4466-ad2d-fbbc5eebeaa6.2"
  573.             }
  574.           },
  575.           {
  576.             "chat_msg": {
  577.               "metadata": {
  578.                 "from_name": "David Young",
  579.                 "pype_name": "stagepype1@example.com",
  580.                 "stream_name": "Support"
  581.               },
  582.               "timestamp": 1471890229000,
  583.               "campaign_id": null,
  584.               "seq_num": 1,
  585.               "app_object": null,
  586.               "msg_type": "text",
  587.               "file_status": "uploading",
  588.               "file": null,
  589.               "msg": "Ghosh shave",
  590.               "from_side": "consumer",
  591.               "from": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  592.               "chat_id": "7260ddbf-fb62-4466-ad2d-fbbc5eebeaa6",
  593.               "msg_action": "new",
  594.               "client_msg_id": "37181EEE-295F-436F-834E-EDD791674512",
  595.               "id": "7260ddbf-fb62-4466-ad2d-fbbc5eebeaa6.1"
  596.             }
  597.           }
  598.         ],
  599.         "seq_num": 2,
  600.         "timestamp": 1471890229000,
  601.         "originating_side": "consumer",
  602.         "originator_name": "David Young",
  603.         "originator_user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  604.         "initiating_side": null,
  605.         "initial_msg": null,
  606.         "participant_history": [
  607.           {
  608.             "action": "added",
  609.             "participant_type": "agent",
  610.             "user_id": "292cd931-4895-48ed-a994-82dc17f69b83"
  611.           },
  612.           {
  613.             "action": "added",
  614.             "participant_type": "consumer",
  615.             "user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586"
  616.           }
  617.         ],
  618.         "participants": {
  619.           "agent": "292cd931-4895-48ed-a994-82dc17f69b83",
  620.           "consumer": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586"
  621.         },
  622.         "campaign_id": null,
  623.         "stream_name": "Support",
  624.         "pype_name": "stagepype1@example.com",
  625.         "stream_id": "stream_deebdd12-8200-4012-b4af-ed7f04336501",
  626.         "pype_id": "pype_95d029ff-5884-478a-801b-53b6c29ba65d",
  627.         "bot_name": null,
  628.         "agent_name": "agent1 ln",
  629.         "consumer_name": "David Young",
  630.         "bot": null,
  631.         "agent": "292cd931-4895-48ed-a994-82dc17f69b83",
  632.         "consumer": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  633.         "agent_is_assigned": true,
  634.         "bot_enabled": false,
  635.         "id": "7260ddbf-fb62-4466-ad2d-fbbc5eebeaa6"
  636.       },
  637.       {
  638.         "last_updated": null,
  639.         "user_read_counts": [
  640.           {
  641.             "user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  642.             "min": 0,
  643.             "max": 0
  644.           }
  645.         ],
  646.         "original_request": {
  647.           "gateway": null,
  648.           "data": {
  649.             "initial_message": null,
  650.             "originating_side": "consumer",
  651.             "agent": null,
  652.             "consumer": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  653.             "user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  654.             "campaign_id": null,
  655.             "stream_id": "stream_572760a0-270d-4637-bf47-3b5d36f0a4be",
  656.             "pype_id": "pype_95d029ff-5884-478a-801b-53b6c29ba65d",
  657.             "id": null
  658.           },
  659.           "version": 1,
  660.           "auth_token": "aRXc1c42ADwjLf2MHdW8x69MLYOrLoem",
  661.           "reply_to": "06151E5F-40F4-41F6-9941-AC72FA86ACF1-A58BDDE70C56602938650068FE9F607D",
  662.           "user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  663.           "correlation_id": "850A56F3-0533-4A72-9EA6-46B59C224BA8",
  664.           "request_action": "new",
  665.           "request_type": "x_chat",
  666.           "type": "request"
  667.         },
  668.         "end_comment": null,
  669.         "ended_by": "292cd931-4895-48ed-a994-82dc17f69b83",
  670.         "end_ts": 1471894805,
  671.         "end_tags": null,
  672.         "agent_response_ts": null,
  673.         "start_ts": 1471890711,
  674.         "to_be_migrated": false,
  675.         "version": null,
  676.         "read_receipts": [],
  677.         "delivery_receipts": [],
  678.         "status": "ended",
  679.         "island_id": null,
  680.         "history": [
  681.           {
  682.             "chat_msg": {
  683.               "metadata": {
  684.                 "from_name": "David Young",
  685.                 "pype_name": "stagepype1@example.com",
  686.                 "stream_name": "Promotions"
  687.               },
  688.               "timestamp": 1471890711000,
  689.               "campaign_id": null,
  690.               "seq_num": 1,
  691.               "app_object": null,
  692.               "msg_type": "text",
  693.               "file_status": "uploading",
  694.               "file": null,
  695.               "msg": "Shahs has",
  696.               "from_side": "consumer",
  697.               "from": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  698.               "chat_id": "037e7c40-ced4-4842-b017-e7df259dd2da",
  699.               "msg_action": "new",
  700.               "client_msg_id": "E098577C-5A04-48D7-A116-92AAFA61C852",
  701.               "id": "037e7c40-ced4-4842-b017-e7df259dd2da.1"
  702.             }
  703.           }
  704.         ],
  705.         "seq_num": 1,
  706.         "timestamp": 1471890711000,
  707.         "originating_side": "consumer",
  708.         "originator_name": "David Young",
  709.         "originator_user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  710.         "initiating_side": null,
  711.         "initial_msg": null,
  712.         "participant_history": [
  713.           {
  714.             "action": "added",
  715.             "participant_type": "agent",
  716.             "user_id": "292cd931-4895-48ed-a994-82dc17f69b83"
  717.           },
  718.           {
  719.             "action": "added",
  720.             "participant_type": "consumer",
  721.             "user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586"
  722.           }
  723.         ],
  724.         "participants": {
  725.           "agent": "292cd931-4895-48ed-a994-82dc17f69b83",
  726.           "consumer": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586"
  727.         },
  728.         "campaign_id": null,
  729.         "stream_name": "Promotions",
  730.         "pype_name": "stagepype1@example.com",
  731.         "stream_id": "stream_572760a0-270d-4637-bf47-3b5d36f0a4be",
  732.         "pype_id": "pype_95d029ff-5884-478a-801b-53b6c29ba65d",
  733.         "bot_name": null,
  734.         "agent_name": "agent1 ln",
  735.         "consumer_name": "David Young",
  736.         "bot": null,
  737.         "agent": "292cd931-4895-48ed-a994-82dc17f69b83",
  738.         "consumer": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  739.         "agent_is_assigned": true,
  740.         "bot_enabled": false,
  741.         "id": "037e7c40-ced4-4842-b017-e7df259dd2da"
  742.       },
  743.       {
  744.         "last_updated": null,
  745.         "user_read_counts": [
  746.           {
  747.             "user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  748.             "min": 0,
  749.             "max": 0
  750.           }
  751.         ],
  752.         "original_request": {
  753.           "gateway": null,
  754.           "data": {
  755.             "initial_message": null,
  756.             "originating_side": "consumer",
  757.             "agent": null,
  758.             "consumer": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  759.             "user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  760.             "campaign_id": null,
  761.             "stream_id": "stream_572760a0-270d-4637-bf47-3b5d36f0a4be",
  762.             "pype_id": "pype_95d029ff-5884-478a-801b-53b6c29ba65d",
  763.             "id": null
  764.           },
  765.           "version": 1,
  766.           "auth_token": "aRXc1c42ADwjLf2MHdW8x69MLYOrLoem",
  767.           "reply_to": "06151E5F-40F4-41F6-9941-AC72FA86ACF1-A58BDDE70C56602938650068FE9F607D",
  768.           "user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  769.           "correlation_id": "3F9306F6-43EA-4EEF-9CA2-EC8E98927110",
  770.           "request_action": "new",
  771.           "request_type": "x_chat",
  772.           "type": "request"
  773.         },
  774.         "end_comment": null,
  775.         "ended_by": null,
  776.         "end_ts": null,
  777.         "end_tags": null,
  778.         "agent_response_ts": null,
  779.         "start_ts": 1471894828,
  780.         "to_be_migrated": false,
  781.         "version": null,
  782.         "read_receipts": [],
  783.         "delivery_receipts": [],
  784.         "status": "active",
  785.         "island_id": null,
  786.         "history": [
  787.           {
  788.             "chat_msg": {
  789.               "metadata": {
  790.                 "from_name": "David Young",
  791.                 "pype_name": "stagepype1@example.com",
  792.                 "stream_name": "Promotions"
  793.               },
  794.               "timestamp": 1471894828000,
  795.               "campaign_id": null,
  796.               "seq_num": 1,
  797.               "app_object": null,
  798.               "msg_type": "text",
  799.               "file_status": "uploading",
  800.               "file": null,
  801.               "msg": "Www",
  802.               "from_side": "consumer",
  803.               "from": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  804.               "chat_id": "bc23ad43-f214-40d7-8e95-9973e0ebe52a",
  805.               "msg_action": "new",
  806.               "client_msg_id": "8AA55ABF-3ADE-40A2-8292-83A802840676",
  807.               "id": "bc23ad43-f214-40d7-8e95-9973e0ebe52a.1"
  808.             }
  809.           }
  810.         ],
  811.         "seq_num": 1,
  812.         "timestamp": 1471894828000,
  813.         "originating_side": "consumer",
  814.         "originator_name": "David Young",
  815.         "originator_user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  816.         "initiating_side": null,
  817.         "initial_msg": null,
  818.         "participant_history": [
  819.           {
  820.             "action": "added",
  821.             "participant_type": "agent",
  822.             "user_id": "292cd931-4895-48ed-a994-82dc17f69b83"
  823.           },
  824.           {
  825.             "action": "added",
  826.             "participant_type": "consumer",
  827.             "user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586"
  828.           }
  829.         ],
  830.         "participants": {
  831.           "agent": "292cd931-4895-48ed-a994-82dc17f69b83",
  832.           "consumer": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586"
  833.         },
  834.         "campaign_id": null,
  835.         "stream_name": "Promotions",
  836.         "pype_name": "stagepype1@example.com",
  837.         "stream_id": "stream_572760a0-270d-4637-bf47-3b5d36f0a4be",
  838.         "pype_id": "pype_95d029ff-5884-478a-801b-53b6c29ba65d",
  839.         "bot_name": null,
  840.         "agent_name": "agent1 ln",
  841.         "consumer_name": "David Young",
  842.         "bot": null,
  843.         "agent": "292cd931-4895-48ed-a994-82dc17f69b83",
  844.         "consumer": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  845.         "agent_is_assigned": true,
  846.         "bot_enabled": false,
  847.         "id": "bc23ad43-f214-40d7-8e95-9973e0ebe52a"
  848.       }
  849.     ]
  850.   },
  851.   "source_action": "new",
  852.   "correlation_id": "4833fc08-23da-90ba-f8b5-ce9f94c769b3",
  853.   "detail": "list_chat_sessions_with_consumer_at_pype",
  854.   "resp_details": null,
  855.   "resp_status": null,
  856.   "type": "response"
  857. }
  858.  
  859. x_list_chat_sessions_with_consumer_at_pype #2
  860. SEND
  861. {
  862.   "user_id": "292cd931-4895-48ed-a994-82dc17f69b83",
  863.   "correlation_id": "2e55f021-9e4b-a4d6-2f8a-5f2317959a04",
  864.   "reply_to": "eca27099bf7bd83a0c80efa61b71f95a_292cd931-4895-48ed-a994-82dc17f69b83",
  865.   "version": 1,
  866.   "type": "request",
  867.   "auth_token": "QnqqeUjoXyo0hZWF1HTojG9Nen1Fu2mY",
  868.   "request_type": "x_list_chat_sessions_with_consumer_at_pype",
  869.   "request_action": "new",
  870.   "data": {
  871.     "pype_id": "pype_95d029ff-5884-478a-801b-53b6c29ba65d",
  872.     "user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  873.     "page_num": 1,
  874.     "items_per_page": 24
  875.   }
  876. }
  877.  
  878. MESSAGE
  879. {
  880.   "version": 1,
  881.   "data": {
  882.     "result_count": 4,
  883.     "items_per_page": 24,
  884.     "page_num": 1,
  885.     "timestamp": 1471896159987060,
  886.     "chat_sessions": [
  887.       {
  888.         "last_updated": null,
  889.         "user_read_counts": [
  890.           {
  891.             "user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  892.             "min": 0,
  893.             "max": 0
  894.           }
  895.         ],
  896.         "original_request": {
  897.           "gateway": null,
  898.           "data": {
  899.             "initial_message": null,
  900.             "originating_side": "consumer",
  901.             "agent": null,
  902.             "consumer": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  903.             "user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  904.             "campaign_id": null,
  905.             "stream_id": "stream_572760a0-270d-4637-bf47-3b5d36f0a4be",
  906.             "pype_id": "pype_95d029ff-5884-478a-801b-53b6c29ba65d",
  907.             "id": null
  908.           },
  909.           "version": 1,
  910.           "auth_token": "aRXc1c42ADwjLf2MHdW8x69MLYOrLoem",
  911.           "reply_to": "06151E5F-40F4-41F6-9941-AC72FA86ACF1-A58BDDE70C56602938650068FE9F607D",
  912.           "user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  913.           "correlation_id": "850A56F3-0533-4A72-9EA6-46B59C224BA8",
  914.           "request_action": "new",
  915.           "request_type": "x_chat",
  916.           "type": "request"
  917.         },
  918.         "end_comment": null,
  919.         "ended_by": "292cd931-4895-48ed-a994-82dc17f69b83",
  920.         "end_ts": 1471894805,
  921.         "end_tags": null,
  922.         "agent_response_ts": null,
  923.         "start_ts": 1471890711,
  924.         "to_be_migrated": false,
  925.         "version": null,
  926.         "read_receipts": [],
  927.         "delivery_receipts": [],
  928.         "status": "ended",
  929.         "island_id": null,
  930.         "history": [
  931.           {
  932.             "chat_msg": {
  933.               "metadata": {
  934.                 "from_name": "David Young",
  935.                 "pype_name": "stagepype1@example.com",
  936.                 "stream_name": "Promotions"
  937.               },
  938.               "timestamp": 1471890711000,
  939.               "campaign_id": null,
  940.               "seq_num": 1,
  941.               "app_object": null,
  942.               "msg_type": "text",
  943.               "file_status": "uploading",
  944.               "file": null,
  945.               "msg": "Shahs has",
  946.               "from_side": "consumer",
  947.               "from": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  948.               "chat_id": "037e7c40-ced4-4842-b017-e7df259dd2da",
  949.               "msg_action": "new",
  950.               "client_msg_id": "E098577C-5A04-48D7-A116-92AAFA61C852",
  951.               "id": "037e7c40-ced4-4842-b017-e7df259dd2da.1"
  952.             }
  953.           }
  954.         ],
  955.         "seq_num": 1,
  956.         "timestamp": 1471890711000,
  957.         "originating_side": "consumer",
  958.         "originator_name": "David Young",
  959.         "originator_user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  960.         "initiating_side": null,
  961.         "initial_msg": null,
  962.         "participant_history": [
  963.           {
  964.             "action": "added",
  965.             "participant_type": "agent",
  966.             "user_id": "292cd931-4895-48ed-a994-82dc17f69b83"
  967.           },
  968.           {
  969.             "action": "added",
  970.             "participant_type": "consumer",
  971.             "user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586"
  972.           }
  973.         ],
  974.         "participants": {
  975.           "agent": "292cd931-4895-48ed-a994-82dc17f69b83",
  976.           "consumer": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586"
  977.         },
  978.         "campaign_id": null,
  979.         "stream_name": "Promotions",
  980.         "pype_name": "stagepype1@example.com",
  981.         "stream_id": "stream_572760a0-270d-4637-bf47-3b5d36f0a4be",
  982.         "pype_id": "pype_95d029ff-5884-478a-801b-53b6c29ba65d",
  983.         "bot_name": null,
  984.         "agent_name": "agent1 ln",
  985.         "consumer_name": "David Young",
  986.         "bot": null,
  987.         "agent": "292cd931-4895-48ed-a994-82dc17f69b83",
  988.         "consumer": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  989.         "agent_is_assigned": true,
  990.         "bot_enabled": false,
  991.         "id": "037e7c40-ced4-4842-b017-e7df259dd2da"
  992.       },
  993.       {
  994.         "last_updated": null,
  995.         "user_read_counts": [
  996.           {
  997.             "user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  998.             "min": 0,
  999.             "max": 0
  1000.           }
  1001.         ],
  1002.         "original_request": {
  1003.           "gateway": null,
  1004.           "data": {
  1005.             "initial_message": null,
  1006.             "originating_side": "consumer",
  1007.             "agent": null,
  1008.             "consumer": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  1009.             "user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  1010.             "campaign_id": null,
  1011.             "stream_id": "stream_572760a0-270d-4637-bf47-3b5d36f0a4be",
  1012.             "pype_id": "pype_95d029ff-5884-478a-801b-53b6c29ba65d",
  1013.             "id": null
  1014.           },
  1015.           "version": 1,
  1016.           "auth_token": "aRXc1c42ADwjLf2MHdW8x69MLYOrLoem",
  1017.           "reply_to": "06151E5F-40F4-41F6-9941-AC72FA86ACF1-A58BDDE70C56602938650068FE9F607D",
  1018.           "user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  1019.           "correlation_id": "3F9306F6-43EA-4EEF-9CA2-EC8E98927110",
  1020.           "request_action": "new",
  1021.           "request_type": "x_chat",
  1022.           "type": "request"
  1023.         },
  1024.         "end_comment": null,
  1025.         "ended_by": null,
  1026.         "end_ts": null,
  1027.         "end_tags": null,
  1028.         "agent_response_ts": null,
  1029.         "start_ts": 1471894828,
  1030.         "to_be_migrated": false,
  1031.         "version": null,
  1032.         "read_receipts": [],
  1033.         "delivery_receipts": [],
  1034.         "status": "active",
  1035.         "island_id": null,
  1036.         "history": [
  1037.           {
  1038.             "chat_msg": {
  1039.               "metadata": {
  1040.                 "from_name": "David Young",
  1041.                 "pype_name": "stagepype1@example.com",
  1042.                 "stream_name": "Promotions"
  1043.               },
  1044.               "timestamp": 1471894828000,
  1045.               "campaign_id": null,
  1046.               "seq_num": 1,
  1047.               "app_object": null,
  1048.               "msg_type": "text",
  1049.               "file_status": "uploading",
  1050.               "file": null,
  1051.               "msg": "Www",
  1052.               "from_side": "consumer",
  1053.               "from": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  1054.               "chat_id": "bc23ad43-f214-40d7-8e95-9973e0ebe52a",
  1055.               "msg_action": "new",
  1056.               "client_msg_id": "8AA55ABF-3ADE-40A2-8292-83A802840676",
  1057.               "id": "bc23ad43-f214-40d7-8e95-9973e0ebe52a.1"
  1058.             }
  1059.           }
  1060.         ],
  1061.         "seq_num": 1,
  1062.         "timestamp": 1471894828000,
  1063.         "originating_side": "consumer",
  1064.         "originator_name": "David Young",
  1065.         "originator_user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  1066.         "initiating_side": null,
  1067.         "initial_msg": null,
  1068.         "participant_history": [
  1069.           {
  1070.             "action": "added",
  1071.             "participant_type": "agent",
  1072.             "user_id": "292cd931-4895-48ed-a994-82dc17f69b83"
  1073.           },
  1074.           {
  1075.             "action": "added",
  1076.             "participant_type": "consumer",
  1077.             "user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586"
  1078.           }
  1079.         ],
  1080.         "participants": {
  1081.           "agent": "292cd931-4895-48ed-a994-82dc17f69b83",
  1082.           "consumer": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586"
  1083.         },
  1084.         "campaign_id": null,
  1085.         "stream_name": "Promotions",
  1086.         "pype_name": "stagepype1@example.com",
  1087.         "stream_id": "stream_572760a0-270d-4637-bf47-3b5d36f0a4be",
  1088.         "pype_id": "pype_95d029ff-5884-478a-801b-53b6c29ba65d",
  1089.         "bot_name": null,
  1090.         "agent_name": "agent1 ln",
  1091.         "consumer_name": "David Young",
  1092.         "bot": null,
  1093.         "agent": "292cd931-4895-48ed-a994-82dc17f69b83",
  1094.         "consumer": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  1095.         "agent_is_assigned": true,
  1096.         "bot_enabled": false,
  1097.         "id": "bc23ad43-f214-40d7-8e95-9973e0ebe52a"
  1098.       },
  1099.       {
  1100.         "last_updated": null,
  1101.         "user_read_counts": [
  1102.           {
  1103.             "user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  1104.             "min": 0,
  1105.             "max": 0
  1106.           }
  1107.         ],
  1108.         "original_request": {
  1109.           "gateway": null,
  1110.           "data": {
  1111.             "initial_message": null,
  1112.             "originating_side": "consumer",
  1113.             "agent": null,
  1114.             "consumer": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  1115.             "user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  1116.             "campaign_id": null,
  1117.             "stream_id": "stream_1de9741d-533c-4308-a1a0-dfd9fe581011",
  1118.             "pype_id": "pype_95d029ff-5884-478a-801b-53b6c29ba65d",
  1119.             "id": null
  1120.           },
  1121.           "version": 1,
  1122.           "auth_token": "aRXc1c42ADwjLf2MHdW8x69MLYOrLoem",
  1123.           "reply_to": "06151E5F-40F4-41F6-9941-AC72FA86ACF1-A58BDDE70C56602938650068FE9F607D",
  1124.           "user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  1125.           "correlation_id": "EF8E5DC8-2C4D-46DC-A3A1-82ECFF1A3D8F",
  1126.           "request_action": "new",
  1127.           "request_type": "x_chat",
  1128.           "type": "request"
  1129.         },
  1130.         "end_comment": null,
  1131.         "ended_by": null,
  1132.         "end_ts": null,
  1133.         "end_tags": null,
  1134.         "agent_response_ts": null,
  1135.         "start_ts": 1471890201,
  1136.         "to_be_migrated": false,
  1137.         "version": null,
  1138.         "read_receipts": [],
  1139.         "delivery_receipts": [],
  1140.         "status": "active",
  1141.         "island_id": null,
  1142.         "history": [
  1143.           {
  1144.             "chat_msg": {
  1145.               "metadata": {
  1146.                 "from_name": "David Young",
  1147.                 "pype_name": "stagepype1@example.com",
  1148.                 "stream_name": "News"
  1149.               },
  1150.               "timestamp": 1471890220000,
  1151.               "campaign_id": null,
  1152.               "seq_num": 4,
  1153.               "app_object": null,
  1154.               "msg_type": "text",
  1155.               "file_status": "uploading",
  1156.               "file": null,
  1157.               "msg": "Ddddhhjpprre",
  1158.               "from_side": "consumer",
  1159.               "from": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  1160.               "chat_id": "027f4848-4947-443f-8d1b-09dcc53f8702",
  1161.               "msg_action": "new",
  1162.               "client_msg_id": "2252DE0E-7D53-45D3-AADA-FCBD1D8A0256",
  1163.               "id": "027f4848-4947-443f-8d1b-09dcc53f8702.4"
  1164.             }
  1165.           },
  1166.           {
  1167.             "chat_msg": {
  1168.               "metadata": {
  1169.                 "from_name": "David Young",
  1170.                 "pype_name": "stagepype1@example.com",
  1171.                 "stream_name": "News"
  1172.               },
  1173.               "timestamp": 1471890214000,
  1174.               "campaign_id": null,
  1175.               "seq_num": 3,
  1176.               "app_object": null,
  1177.               "msg_type": "text",
  1178.               "file_status": "uploading",
  1179.               "file": null,
  1180.               "msg": "Fffffhh",
  1181.               "from_side": "consumer",
  1182.               "from": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  1183.               "chat_id": "027f4848-4947-443f-8d1b-09dcc53f8702",
  1184.               "msg_action": "new",
  1185.               "client_msg_id": "74A8AEB6-A003-481B-A749-252F085FA02A",
  1186.               "id": "027f4848-4947-443f-8d1b-09dcc53f8702.3"
  1187.             }
  1188.           },
  1189.           {
  1190.             "chat_msg": {
  1191.               "metadata": {
  1192.                 "from_name": "David Young",
  1193.                 "pype_name": "stagepype1@example.com",
  1194.                 "stream_name": "News"
  1195.               },
  1196.               "timestamp": 1471890206000,
  1197.               "campaign_id": null,
  1198.               "seq_num": 2,
  1199.               "app_object": null,
  1200.               "msg_type": "text",
  1201.               "file_status": "uploading",
  1202.               "file": null,
  1203.               "msg": "Ccc",
  1204.               "from_side": "consumer",
  1205.               "from": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  1206.               "chat_id": "027f4848-4947-443f-8d1b-09dcc53f8702",
  1207.               "msg_action": "new",
  1208.               "client_msg_id": "90A5743F-41E1-4ADE-9A4F-FA93FB1AA4EF",
  1209.               "id": "027f4848-4947-443f-8d1b-09dcc53f8702.2"
  1210.             }
  1211.           },
  1212.           {
  1213.             "chat_msg": {
  1214.               "metadata": {
  1215.                 "from_name": "David Young",
  1216.                 "pype_name": "stagepype1@example.com",
  1217.                 "stream_name": "News"
  1218.               },
  1219.               "timestamp": 1471890201000,
  1220.               "campaign_id": null,
  1221.               "seq_num": 1,
  1222.               "app_object": null,
  1223.               "msg_type": "text",
  1224.               "file_status": "uploading",
  1225.               "file": null,
  1226.               "msg": "We're",
  1227.               "from_side": "consumer",
  1228.               "from": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  1229.               "chat_id": "027f4848-4947-443f-8d1b-09dcc53f8702",
  1230.               "msg_action": "new",
  1231.               "client_msg_id": "DA47E991-FA2B-4F6F-B4AB-F4A87801ADE8",
  1232.               "id": "027f4848-4947-443f-8d1b-09dcc53f8702.1"
  1233.             }
  1234.           }
  1235.         ],
  1236.         "seq_num": 4,
  1237.         "timestamp": 1471890201000,
  1238.         "originating_side": "consumer",
  1239.         "originator_name": "David Young",
  1240.         "originator_user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  1241.         "initiating_side": null,
  1242.         "initial_msg": null,
  1243.         "participant_history": [
  1244.           {
  1245.             "action": "added",
  1246.             "participant_type": "agent",
  1247.             "user_id": "292cd931-4895-48ed-a994-82dc17f69b83"
  1248.           },
  1249.           {
  1250.             "action": "added",
  1251.             "participant_type": "consumer",
  1252.             "user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586"
  1253.           }
  1254.         ],
  1255.         "participants": {
  1256.           "agent": "292cd931-4895-48ed-a994-82dc17f69b83",
  1257.           "consumer": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586"
  1258.         },
  1259.         "campaign_id": null,
  1260.         "stream_name": "News",
  1261.         "pype_name": "stagepype1@example.com",
  1262.         "stream_id": "stream_1de9741d-533c-4308-a1a0-dfd9fe581011",
  1263.         "pype_id": "pype_95d029ff-5884-478a-801b-53b6c29ba65d",
  1264.         "bot_name": null,
  1265.         "agent_name": "agent1 ln",
  1266.         "consumer_name": "David Young",
  1267.         "bot": null,
  1268.         "agent": "292cd931-4895-48ed-a994-82dc17f69b83",
  1269.         "consumer": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  1270.         "agent_is_assigned": true,
  1271.         "bot_enabled": false,
  1272.         "id": "027f4848-4947-443f-8d1b-09dcc53f8702"
  1273.       },
  1274.       {
  1275.         "last_updated": null,
  1276.         "user_read_counts": [
  1277.           {
  1278.             "user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  1279.             "min": 0,
  1280.             "max": 0
  1281.           }
  1282.         ],
  1283.         "original_request": {
  1284.           "gateway": null,
  1285.           "data": {
  1286.             "initial_message": null,
  1287.             "originating_side": "consumer",
  1288.             "agent": null,
  1289.             "consumer": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  1290.             "user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  1291.             "campaign_id": null,
  1292.             "stream_id": "stream_deebdd12-8200-4012-b4af-ed7f04336501",
  1293.             "pype_id": "pype_95d029ff-5884-478a-801b-53b6c29ba65d",
  1294.             "id": null
  1295.           },
  1296.           "version": 1,
  1297.           "auth_token": "aRXc1c42ADwjLf2MHdW8x69MLYOrLoem",
  1298.           "reply_to": "06151E5F-40F4-41F6-9941-AC72FA86ACF1-A58BDDE70C56602938650068FE9F607D",
  1299.           "user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  1300.           "correlation_id": "6A1C02A7-0A16-435B-A2DE-25FBE80D09D2",
  1301.           "request_action": "new",
  1302.           "request_type": "x_chat",
  1303.           "type": "request"
  1304.         },
  1305.         "end_comment": null,
  1306.         "ended_by": null,
  1307.         "end_ts": null,
  1308.         "end_tags": null,
  1309.         "agent_response_ts": null,
  1310.         "start_ts": 1471890229,
  1311.         "to_be_migrated": false,
  1312.         "version": null,
  1313.         "read_receipts": [],
  1314.         "delivery_receipts": [],
  1315.         "status": "active",
  1316.         "island_id": null,
  1317.         "history": [
  1318.           {
  1319.             "chat_msg": {
  1320.               "metadata": {
  1321.                 "from_name": "David Young",
  1322.                 "pype_name": "stagepype1@example.com",
  1323.                 "stream_name": "Support"
  1324.               },
  1325.               "timestamp": 1471890616000,
  1326.               "campaign_id": null,
  1327.               "seq_num": 2,
  1328.               "app_object": null,
  1329.               "msg_type": "text",
  1330.               "file_status": "uploading",
  1331.               "file": null,
  1332.               "msg": "Smashes",
  1333.               "from_side": "consumer",
  1334.               "from": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  1335.               "chat_id": "7260ddbf-fb62-4466-ad2d-fbbc5eebeaa6",
  1336.               "msg_action": "new",
  1337.               "client_msg_id": "CE5350A8-6754-407E-92AF-D755C55543AD",
  1338.               "id": "7260ddbf-fb62-4466-ad2d-fbbc5eebeaa6.2"
  1339.             }
  1340.           },
  1341.           {
  1342.             "chat_msg": {
  1343.               "metadata": {
  1344.                 "from_name": "David Young",
  1345.                 "pype_name": "stagepype1@example.com",
  1346.                 "stream_name": "Support"
  1347.               },
  1348.               "timestamp": 1471890229000,
  1349.               "campaign_id": null,
  1350.               "seq_num": 1,
  1351.               "app_object": null,
  1352.               "msg_type": "text",
  1353.               "file_status": "uploading",
  1354.               "file": null,
  1355.               "msg": "Ghosh shave",
  1356.               "from_side": "consumer",
  1357.               "from": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  1358.               "chat_id": "7260ddbf-fb62-4466-ad2d-fbbc5eebeaa6",
  1359.               "msg_action": "new",
  1360.               "client_msg_id": "37181EEE-295F-436F-834E-EDD791674512",
  1361.               "id": "7260ddbf-fb62-4466-ad2d-fbbc5eebeaa6.1"
  1362.             }
  1363.           }
  1364.         ],
  1365.         "seq_num": 2,
  1366.         "timestamp": 1471890229000,
  1367.         "originating_side": "consumer",
  1368.         "originator_name": "David Young",
  1369.         "originator_user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  1370.         "initiating_side": null,
  1371.         "initial_msg": null,
  1372.         "participant_history": [
  1373.           {
  1374.             "action": "added",
  1375.             "participant_type": "agent",
  1376.             "user_id": "292cd931-4895-48ed-a994-82dc17f69b83"
  1377.           },
  1378.           {
  1379.             "action": "added",
  1380.             "participant_type": "consumer",
  1381.             "user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586"
  1382.           }
  1383.         ],
  1384.         "participants": {
  1385.           "agent": "292cd931-4895-48ed-a994-82dc17f69b83",
  1386.           "consumer": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586"
  1387.         },
  1388.         "campaign_id": null,
  1389.         "stream_name": "Support",
  1390.         "pype_name": "stagepype1@example.com",
  1391.         "stream_id": "stream_deebdd12-8200-4012-b4af-ed7f04336501",
  1392.         "pype_id": "pype_95d029ff-5884-478a-801b-53b6c29ba65d",
  1393.         "bot_name": null,
  1394.         "agent_name": "agent1 ln",
  1395.         "consumer_name": "David Young",
  1396.         "bot": null,
  1397.         "agent": "292cd931-4895-48ed-a994-82dc17f69b83",
  1398.         "consumer": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  1399.         "agent_is_assigned": true,
  1400.         "bot_enabled": false,
  1401.         "id": "7260ddbf-fb62-4466-ad2d-fbbc5eebeaa6"
  1402.       }
  1403.     ]
  1404.   },
  1405.   "source_action": "new",
  1406.   "correlation_id": "2e55f021-9e4b-a4d6-2f8a-5f2317959a04",
  1407.   "detail": "list_chat_sessions_with_consumer_at_pype",
  1408.   "resp_details": null,
  1409.   "resp_status": null,
  1410.   "type": "response"
  1411. }
  1412.  
  1413. x_list_chat_sessions_with_consumer_at_pype #3
  1414. SEND
  1415. {
  1416.   "user_id": "292cd931-4895-48ed-a994-82dc17f69b83",
  1417.   "correlation_id": "189e3822-85a4-253b-e290-7c41453653fb",
  1418.   "reply_to": "eca27099bf7bd83a0c80efa61b71f95a_292cd931-4895-48ed-a994-82dc17f69b83",
  1419.   "version": 1,
  1420.   "type": "request",
  1421.   "auth_token": "QnqqeUjoXyo0hZWF1HTojG9Nen1Fu2mY",
  1422.   "request_type": "x_list_chat_sessions_with_consumer_at_pype",
  1423.   "request_action": "new",
  1424.   "data": {
  1425.     "pype_id": "pype_95d029ff-5884-478a-801b-53b6c29ba65d",
  1426.     "user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  1427.     "page_num": 1,
  1428.     "items_per_page": 24
  1429.   }
  1430. }
  1431.  
  1432. MESSAGE
  1433. {
  1434.   "version": 1,
  1435.   "data": {
  1436.     "result_count": 4,
  1437.     "items_per_page": 24,
  1438.     "page_num": 1,
  1439.     "timestamp": 1471896251558835,
  1440.     "chat_sessions": [
  1441.       {
  1442.         "last_updated": null,
  1443.         "user_read_counts": [
  1444.           {
  1445.             "user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  1446.             "min": 0,
  1447.             "max": 0
  1448.           }
  1449.         ],
  1450.         "original_request": {
  1451.           "gateway": null,
  1452.           "data": {
  1453.             "initial_message": null,
  1454.             "originating_side": "consumer",
  1455.             "agent": null,
  1456.             "consumer": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  1457.             "user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  1458.             "campaign_id": null,
  1459.             "stream_id": "stream_572760a0-270d-4637-bf47-3b5d36f0a4be",
  1460.             "pype_id": "pype_95d029ff-5884-478a-801b-53b6c29ba65d",
  1461.             "id": null
  1462.           },
  1463.           "version": 1,
  1464.           "auth_token": "aRXc1c42ADwjLf2MHdW8x69MLYOrLoem",
  1465.           "reply_to": "06151E5F-40F4-41F6-9941-AC72FA86ACF1-A58BDDE70C56602938650068FE9F607D",
  1466.           "user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  1467.           "correlation_id": "850A56F3-0533-4A72-9EA6-46B59C224BA8",
  1468.           "request_action": "new",
  1469.           "request_type": "x_chat",
  1470.           "type": "request"
  1471.         },
  1472.         "end_comment": null,
  1473.         "ended_by": "292cd931-4895-48ed-a994-82dc17f69b83",
  1474.         "end_ts": 1471894805,
  1475.         "end_tags": null,
  1476.         "agent_response_ts": null,
  1477.         "start_ts": 1471890711,
  1478.         "to_be_migrated": false,
  1479.         "version": null,
  1480.         "read_receipts": [],
  1481.         "delivery_receipts": [],
  1482.         "status": "ended",
  1483.         "island_id": null,
  1484.         "history": [
  1485.           {
  1486.             "chat_msg": {
  1487.               "metadata": {
  1488.                 "from_name": "David Young",
  1489.                 "pype_name": "stagepype1@example.com",
  1490.                 "stream_name": "Promotions"
  1491.               },
  1492.               "timestamp": 1471890711000,
  1493.               "campaign_id": null,
  1494.               "seq_num": 1,
  1495.               "app_object": null,
  1496.               "msg_type": "text",
  1497.               "file_status": "uploading",
  1498.               "file": null,
  1499.               "msg": "Shahs has",
  1500.               "from_side": "consumer",
  1501.               "from": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  1502.               "chat_id": "037e7c40-ced4-4842-b017-e7df259dd2da",
  1503.               "msg_action": "new",
  1504.               "client_msg_id": "E098577C-5A04-48D7-A116-92AAFA61C852",
  1505.               "id": "037e7c40-ced4-4842-b017-e7df259dd2da.1"
  1506.             }
  1507.           }
  1508.         ],
  1509.         "seq_num": 1,
  1510.         "timestamp": 1471890711000,
  1511.         "originating_side": "consumer",
  1512.         "originator_name": "David Young",
  1513.         "originator_user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  1514.         "initiating_side": null,
  1515.         "initial_msg": null,
  1516.         "participant_history": [
  1517.           {
  1518.             "action": "added",
  1519.             "participant_type": "agent",
  1520.             "user_id": "292cd931-4895-48ed-a994-82dc17f69b83"
  1521.           },
  1522.           {
  1523.             "action": "added",
  1524.             "participant_type": "consumer",
  1525.             "user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586"
  1526.           }
  1527.         ],
  1528.         "participants": {
  1529.           "agent": "292cd931-4895-48ed-a994-82dc17f69b83",
  1530.           "consumer": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586"
  1531.         },
  1532.         "campaign_id": null,
  1533.         "stream_name": "Promotions",
  1534.         "pype_name": "stagepype1@example.com",
  1535.         "stream_id": "stream_572760a0-270d-4637-bf47-3b5d36f0a4be",
  1536.         "pype_id": "pype_95d029ff-5884-478a-801b-53b6c29ba65d",
  1537.         "bot_name": null,
  1538.         "agent_name": "agent1 ln",
  1539.         "consumer_name": "David Young",
  1540.         "bot": null,
  1541.         "agent": "292cd931-4895-48ed-a994-82dc17f69b83",
  1542.         "consumer": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  1543.         "agent_is_assigned": true,
  1544.         "bot_enabled": false,
  1545.         "id": "037e7c40-ced4-4842-b017-e7df259dd2da"
  1546.       },
  1547.       {
  1548.         "last_updated": null,
  1549.         "user_read_counts": [
  1550.           {
  1551.             "user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  1552.             "min": 0,
  1553.             "max": 0
  1554.           }
  1555.         ],
  1556.         "original_request": {
  1557.           "gateway": null,
  1558.           "data": {
  1559.             "initial_message": null,
  1560.             "originating_side": "consumer",
  1561.             "agent": null,
  1562.             "consumer": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  1563.             "user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  1564.             "campaign_id": null,
  1565.             "stream_id": "stream_572760a0-270d-4637-bf47-3b5d36f0a4be",
  1566.             "pype_id": "pype_95d029ff-5884-478a-801b-53b6c29ba65d",
  1567.             "id": null
  1568.           },
  1569.           "version": 1,
  1570.           "auth_token": "aRXc1c42ADwjLf2MHdW8x69MLYOrLoem",
  1571.           "reply_to": "06151E5F-40F4-41F6-9941-AC72FA86ACF1-A58BDDE70C56602938650068FE9F607D",
  1572.           "user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  1573.           "correlation_id": "3F9306F6-43EA-4EEF-9CA2-EC8E98927110",
  1574.           "request_action": "new",
  1575.           "request_type": "x_chat",
  1576.           "type": "request"
  1577.         },
  1578.         "end_comment": null,
  1579.         "ended_by": null,
  1580.         "end_ts": null,
  1581.         "end_tags": null,
  1582.         "agent_response_ts": null,
  1583.         "start_ts": 1471894828,
  1584.         "to_be_migrated": false,
  1585.         "version": null,
  1586.         "read_receipts": [],
  1587.         "delivery_receipts": [],
  1588.         "status": "active",
  1589.         "island_id": null,
  1590.         "history": [
  1591.           {
  1592.             "chat_msg": {
  1593.               "metadata": {
  1594.                 "from_name": "David Young",
  1595.                 "pype_name": "stagepype1@example.com",
  1596.                 "stream_name": "Promotions"
  1597.               },
  1598.               "timestamp": 1471894828000,
  1599.               "campaign_id": null,
  1600.               "seq_num": 1,
  1601.               "app_object": null,
  1602.               "msg_type": "text",
  1603.               "file_status": "uploading",
  1604.               "file": null,
  1605.               "msg": "Www",
  1606.               "from_side": "consumer",
  1607.               "from": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  1608.               "chat_id": "bc23ad43-f214-40d7-8e95-9973e0ebe52a",
  1609.               "msg_action": "new",
  1610.               "client_msg_id": "8AA55ABF-3ADE-40A2-8292-83A802840676",
  1611.               "id": "bc23ad43-f214-40d7-8e95-9973e0ebe52a.1"
  1612.             }
  1613.           }
  1614.         ],
  1615.         "seq_num": 1,
  1616.         "timestamp": 1471894828000,
  1617.         "originating_side": "consumer",
  1618.         "originator_name": "David Young",
  1619.         "originator_user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  1620.         "initiating_side": null,
  1621.         "initial_msg": null,
  1622.         "participant_history": [
  1623.           {
  1624.             "action": "added",
  1625.             "participant_type": "agent",
  1626.             "user_id": "292cd931-4895-48ed-a994-82dc17f69b83"
  1627.           },
  1628.           {
  1629.             "action": "added",
  1630.             "participant_type": "consumer",
  1631.             "user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586"
  1632.           }
  1633.         ],
  1634.         "participants": {
  1635.           "agent": "292cd931-4895-48ed-a994-82dc17f69b83",
  1636.           "consumer": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586"
  1637.         },
  1638.         "campaign_id": null,
  1639.         "stream_name": "Promotions",
  1640.         "pype_name": "stagepype1@example.com",
  1641.         "stream_id": "stream_572760a0-270d-4637-bf47-3b5d36f0a4be",
  1642.         "pype_id": "pype_95d029ff-5884-478a-801b-53b6c29ba65d",
  1643.         "bot_name": null,
  1644.         "agent_name": "agent1 ln",
  1645.         "consumer_name": "David Young",
  1646.         "bot": null,
  1647.         "agent": "292cd931-4895-48ed-a994-82dc17f69b83",
  1648.         "consumer": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  1649.         "agent_is_assigned": true,
  1650.         "bot_enabled": false,
  1651.         "id": "bc23ad43-f214-40d7-8e95-9973e0ebe52a"
  1652.       },
  1653.       {
  1654.         "last_updated": null,
  1655.         "user_read_counts": [
  1656.           {
  1657.             "user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  1658.             "min": 0,
  1659.             "max": 0
  1660.           }
  1661.         ],
  1662.         "original_request": {
  1663.           "gateway": null,
  1664.           "data": {
  1665.             "initial_message": null,
  1666.             "originating_side": "consumer",
  1667.             "agent": null,
  1668.             "consumer": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  1669.             "user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  1670.             "campaign_id": null,
  1671.             "stream_id": "stream_1de9741d-533c-4308-a1a0-dfd9fe581011",
  1672.             "pype_id": "pype_95d029ff-5884-478a-801b-53b6c29ba65d",
  1673.             "id": null
  1674.           },
  1675.           "version": 1,
  1676.           "auth_token": "aRXc1c42ADwjLf2MHdW8x69MLYOrLoem",
  1677.           "reply_to": "06151E5F-40F4-41F6-9941-AC72FA86ACF1-A58BDDE70C56602938650068FE9F607D",
  1678.           "user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  1679.           "correlation_id": "EF8E5DC8-2C4D-46DC-A3A1-82ECFF1A3D8F",
  1680.           "request_action": "new",
  1681.           "request_type": "x_chat",
  1682.           "type": "request"
  1683.         },
  1684.         "end_comment": null,
  1685.         "ended_by": null,
  1686.         "end_ts": null,
  1687.         "end_tags": null,
  1688.         "agent_response_ts": null,
  1689.         "start_ts": 1471890201,
  1690.         "to_be_migrated": false,
  1691.         "version": null,
  1692.         "read_receipts": [],
  1693.         "delivery_receipts": [],
  1694.         "status": "active",
  1695.         "island_id": null,
  1696.         "history": [
  1697.           {
  1698.             "chat_msg": {
  1699.               "metadata": {
  1700.                 "from_name": "David Young",
  1701.                 "pype_name": "stagepype1@example.com",
  1702.                 "stream_name": "News"
  1703.               },
  1704.               "timestamp": 1471890220000,
  1705.               "campaign_id": null,
  1706.               "seq_num": 4,
  1707.               "app_object": null,
  1708.               "msg_type": "text",
  1709.               "file_status": "uploading",
  1710.               "file": null,
  1711.               "msg": "Ddddhhjpprre",
  1712.               "from_side": "consumer",
  1713.               "from": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  1714.               "chat_id": "027f4848-4947-443f-8d1b-09dcc53f8702",
  1715.               "msg_action": "new",
  1716.               "client_msg_id": "2252DE0E-7D53-45D3-AADA-FCBD1D8A0256",
  1717.               "id": "027f4848-4947-443f-8d1b-09dcc53f8702.4"
  1718.             }
  1719.           },
  1720.           {
  1721.             "chat_msg": {
  1722.               "metadata": {
  1723.                 "from_name": "David Young",
  1724.                 "pype_name": "stagepype1@example.com",
  1725.                 "stream_name": "News"
  1726.               },
  1727.               "timestamp": 1471890214000,
  1728.               "campaign_id": null,
  1729.               "seq_num": 3,
  1730.               "app_object": null,
  1731.               "msg_type": "text",
  1732.               "file_status": "uploading",
  1733.               "file": null,
  1734.               "msg": "Fffffhh",
  1735.               "from_side": "consumer",
  1736.               "from": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  1737.               "chat_id": "027f4848-4947-443f-8d1b-09dcc53f8702",
  1738.               "msg_action": "new",
  1739.               "client_msg_id": "74A8AEB6-A003-481B-A749-252F085FA02A",
  1740.               "id": "027f4848-4947-443f-8d1b-09dcc53f8702.3"
  1741.             }
  1742.           },
  1743.           {
  1744.             "chat_msg": {
  1745.               "metadata": {
  1746.                 "from_name": "David Young",
  1747.                 "pype_name": "stagepype1@example.com",
  1748.                 "stream_name": "News"
  1749.               },
  1750.               "timestamp": 1471890206000,
  1751.               "campaign_id": null,
  1752.               "seq_num": 2,
  1753.               "app_object": null,
  1754.               "msg_type": "text",
  1755.               "file_status": "uploading",
  1756.               "file": null,
  1757.               "msg": "Ccc",
  1758.               "from_side": "consumer",
  1759.               "from": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  1760.               "chat_id": "027f4848-4947-443f-8d1b-09dcc53f8702",
  1761.               "msg_action": "new",
  1762.               "client_msg_id": "90A5743F-41E1-4ADE-9A4F-FA93FB1AA4EF",
  1763.               "id": "027f4848-4947-443f-8d1b-09dcc53f8702.2"
  1764.             }
  1765.           },
  1766.           {
  1767.             "chat_msg": {
  1768.               "metadata": {
  1769.                 "from_name": "David Young",
  1770.                 "pype_name": "stagepype1@example.com",
  1771.                 "stream_name": "News"
  1772.               },
  1773.               "timestamp": 1471890201000,
  1774.               "campaign_id": null,
  1775.               "seq_num": 1,
  1776.               "app_object": null,
  1777.               "msg_type": "text",
  1778.               "file_status": "uploading",
  1779.               "file": null,
  1780.               "msg": "We're",
  1781.               "from_side": "consumer",
  1782.               "from": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  1783.               "chat_id": "027f4848-4947-443f-8d1b-09dcc53f8702",
  1784.               "msg_action": "new",
  1785.               "client_msg_id": "DA47E991-FA2B-4F6F-B4AB-F4A87801ADE8",
  1786.               "id": "027f4848-4947-443f-8d1b-09dcc53f8702.1"
  1787.             }
  1788.           }
  1789.         ],
  1790.         "seq_num": 4,
  1791.         "timestamp": 1471890201000,
  1792.         "originating_side": "consumer",
  1793.         "originator_name": "David Young",
  1794.         "originator_user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  1795.         "initiating_side": null,
  1796.         "initial_msg": null,
  1797.         "participant_history": [
  1798.           {
  1799.             "action": "added",
  1800.             "participant_type": "agent",
  1801.             "user_id": "292cd931-4895-48ed-a994-82dc17f69b83"
  1802.           },
  1803.           {
  1804.             "action": "added",
  1805.             "participant_type": "consumer",
  1806.             "user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586"
  1807.           }
  1808.         ],
  1809.         "participants": {
  1810.           "agent": "292cd931-4895-48ed-a994-82dc17f69b83",
  1811.           "consumer": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586"
  1812.         },
  1813.         "campaign_id": null,
  1814.         "stream_name": "News",
  1815.         "pype_name": "stagepype1@example.com",
  1816.         "stream_id": "stream_1de9741d-533c-4308-a1a0-dfd9fe581011",
  1817.         "pype_id": "pype_95d029ff-5884-478a-801b-53b6c29ba65d",
  1818.         "bot_name": null,
  1819.         "agent_name": "agent1 ln",
  1820.         "consumer_name": "David Young",
  1821.         "bot": null,
  1822.         "agent": "292cd931-4895-48ed-a994-82dc17f69b83",
  1823.         "consumer": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  1824.         "agent_is_assigned": true,
  1825.         "bot_enabled": false,
  1826.         "id": "027f4848-4947-443f-8d1b-09dcc53f8702"
  1827.       },
  1828.       {
  1829.         "last_updated": null,
  1830.         "user_read_counts": [
  1831.           {
  1832.             "user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  1833.             "min": 0,
  1834.             "max": 0
  1835.           }
  1836.         ],
  1837.         "original_request": {
  1838.           "gateway": null,
  1839.           "data": {
  1840.             "initial_message": null,
  1841.             "originating_side": "consumer",
  1842.             "agent": null,
  1843.             "consumer": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  1844.             "user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  1845.             "campaign_id": null,
  1846.             "stream_id": "stream_deebdd12-8200-4012-b4af-ed7f04336501",
  1847.             "pype_id": "pype_95d029ff-5884-478a-801b-53b6c29ba65d",
  1848.             "id": null
  1849.           },
  1850.           "version": 1,
  1851.           "auth_token": "aRXc1c42ADwjLf2MHdW8x69MLYOrLoem",
  1852.           "reply_to": "06151E5F-40F4-41F6-9941-AC72FA86ACF1-A58BDDE70C56602938650068FE9F607D",
  1853.           "user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  1854.           "correlation_id": "6A1C02A7-0A16-435B-A2DE-25FBE80D09D2",
  1855.           "request_action": "new",
  1856.           "request_type": "x_chat",
  1857.           "type": "request"
  1858.         },
  1859.         "end_comment": null,
  1860.         "ended_by": null,
  1861.         "end_ts": null,
  1862.         "end_tags": null,
  1863.         "agent_response_ts": null,
  1864.         "start_ts": 1471890229,
  1865.         "to_be_migrated": false,
  1866.         "version": null,
  1867.         "read_receipts": [],
  1868.         "delivery_receipts": [],
  1869.         "status": "active",
  1870.         "island_id": null,
  1871.         "history": [
  1872.           {
  1873.             "chat_msg": {
  1874.               "metadata": {
  1875.                 "from_name": "David Young",
  1876.                 "pype_name": "stagepype1@example.com",
  1877.                 "stream_name": "Support"
  1878.               },
  1879.               "timestamp": 1471890616000,
  1880.               "campaign_id": null,
  1881.               "seq_num": 2,
  1882.               "app_object": null,
  1883.               "msg_type": "text",
  1884.               "file_status": "uploading",
  1885.               "file": null,
  1886.               "msg": "Smashes",
  1887.               "from_side": "consumer",
  1888.               "from": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  1889.               "chat_id": "7260ddbf-fb62-4466-ad2d-fbbc5eebeaa6",
  1890.               "msg_action": "new",
  1891.               "client_msg_id": "CE5350A8-6754-407E-92AF-D755C55543AD",
  1892.               "id": "7260ddbf-fb62-4466-ad2d-fbbc5eebeaa6.2"
  1893.             }
  1894.           },
  1895.           {
  1896.             "chat_msg": {
  1897.               "metadata": {
  1898.                 "from_name": "David Young",
  1899.                 "pype_name": "stagepype1@example.com",
  1900.                 "stream_name": "Support"
  1901.               },
  1902.               "timestamp": 1471890229000,
  1903.               "campaign_id": null,
  1904.               "seq_num": 1,
  1905.               "app_object": null,
  1906.               "msg_type": "text",
  1907.               "file_status": "uploading",
  1908.               "file": null,
  1909.               "msg": "Ghosh shave",
  1910.               "from_side": "consumer",
  1911.               "from": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  1912.               "chat_id": "7260ddbf-fb62-4466-ad2d-fbbc5eebeaa6",
  1913.               "msg_action": "new",
  1914.               "client_msg_id": "37181EEE-295F-436F-834E-EDD791674512",
  1915.               "id": "7260ddbf-fb62-4466-ad2d-fbbc5eebeaa6.1"
  1916.             }
  1917.           }
  1918.         ],
  1919.         "seq_num": 2,
  1920.         "timestamp": 1471890229000,
  1921.         "originating_side": "consumer",
  1922.         "originator_name": "David Young",
  1923.         "originator_user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  1924.         "initiating_side": null,
  1925.         "initial_msg": null,
  1926.         "participant_history": [
  1927.           {
  1928.             "action": "added",
  1929.             "participant_type": "agent",
  1930.             "user_id": "292cd931-4895-48ed-a994-82dc17f69b83"
  1931.           },
  1932.           {
  1933.             "action": "added",
  1934.             "participant_type": "consumer",
  1935.             "user_id": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586"
  1936.           }
  1937.         ],
  1938.         "participants": {
  1939.           "agent": "292cd931-4895-48ed-a994-82dc17f69b83",
  1940.           "consumer": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586"
  1941.         },
  1942.         "campaign_id": null,
  1943.         "stream_name": "Support",
  1944.         "pype_name": "stagepype1@example.com",
  1945.         "stream_id": "stream_deebdd12-8200-4012-b4af-ed7f04336501",
  1946.         "pype_id": "pype_95d029ff-5884-478a-801b-53b6c29ba65d",
  1947.         "bot_name": null,
  1948.         "agent_name": "agent1 ln",
  1949.         "consumer_name": "David Young",
  1950.         "bot": null,
  1951.         "agent": "292cd931-4895-48ed-a994-82dc17f69b83",
  1952.         "consumer": "user_75f64209-3cdb-4db4-a4c8-9ff6137f2586",
  1953.         "agent_is_assigned": true,
  1954.         "bot_enabled": false,
  1955.         "id": "7260ddbf-fb62-4466-ad2d-fbbc5eebeaa6"
  1956.       }
  1957.     ]
  1958.   },
  1959.   "source_action": "new",
  1960.   "correlation_id": "189e3822-85a4-253b-e290-7c41453653fb",
  1961.   "detail": "list_chat_sessions_with_consumer_at_pype",
  1962.   "resp_details": null,
  1963.   "resp_status": null,
  1964.   "type": "response"
  1965. }
Add Comment
Please, Sign In to add comment