 {"id":67,"date":"2026-03-24T10:06:51","date_gmt":"2026-03-24T10:06:51","guid":{"rendered":"https:\/\/wp-poc.ahk-prod.com\/?page_id=67"},"modified":"2026-03-24T10:36:32","modified_gmt":"2026-03-24T10:36:32","slug":"call-transactions","status":"publish","type":"page","link":"https:\/\/wp-poc.ahk-prod.com\/index.php\/call-transactions\/","title":{"rendered":""},"content":{"rendered":"\r\n<link rel=\"stylesheet\" href=\"https:\/\/cdn.datatables.net\/1.13.6\/css\/jquery.dataTables.min.css\">\r\n<script src=\"https:\/\/code.jquery.com\/jquery-3.6.0.min.js\"><\/script>\r\n<script src=\"https:\/\/cdn.datatables.net\/1.13.6\/js\/jquery.dataTables.min.js\"><\/script>\r\n\r\n<style>\r\n.call-wrapper { width:100%; max-width:100%; margin:0 auto; font-family:Arial; }\r\n\r\n.wp-site-blocks, .entry-content { max-width:100% !important; }\r\n\r\n#callTable { width:100% !important; border-collapse:collapse; }\r\n\r\n#callTable thead th {\r\n    font-size:14px;\r\n    padding:10px;\r\n    text-align:left;\r\n}\r\n\r\n#callTable tbody td {\r\n    font-size:13px;\r\n    padding:8px;\r\n    vertical-align:middle;\r\n}\r\n\r\n#callTable tbody tr { height:40px; }\r\n\r\n#callTable tbody tr:nth-child(even) { background:#f9fafb; }\r\n#callTable tbody tr:hover { background:#f1f5f9; }\r\n\r\n.status-badge {\r\n    padding:3px 8px;\r\n    border-radius:5px;\r\n    font-size:11px;\r\n    color:#fff;\r\n}\r\n.status-success { background:#16a34a; }\r\n.status-failed { background:#dc2626; }\r\n.status-initiated { background:#2563eb; }\r\n\r\n.draft-badge {\r\n    background:#f59e0b;\r\n    color:#fff;\r\n    padding:3px 7px;\r\n    border-radius:5px;\r\n    font-size:11px;\r\n}\r\n\r\n.delete-btn {\r\n    background:#dc2626;\r\n    color:#fff;\r\n    border:none;\r\n    padding:5px 8px;\r\n    border-radius:5px;\r\n    cursor:pointer;\r\n    font-size:12px;\r\n}\r\n.delete-btn:hover { background:#b91c1c; }\r\n\r\n.dataTables_wrapper { overflow-x:auto; }\r\n<\/style>\r\n\r\n<div class=\"call-wrapper\">\r\n<h2>Call Transactions<\/h2>\r\n\r\n<table id=\"callTable\" class=\"display\">\r\n<thead>\r\n<tr>\r\n<th><input type=\"checkbox\" id=\"selectAll\"><\/th>\r\n<th>Name<\/th>\r\n<th>Case<\/th>\r\n<th>Phone<\/th>\r\n<th>Status<\/th>\r\n<th>Conversation<\/th>\r\n<th>Duration<\/th>\r\n<th>Transcript<\/th>\r\n<th>Date<\/th>\r\n<th>Status<\/th>\r\n<th>Action<\/th>\r\n<\/tr>\r\n<\/thead>\r\n\r\n<tbody>\r\n<tr>\r\n<td><input type=\"checkbox\"><\/td>\r\n<td>Nithya<\/td>\r\n<td>1234<\/td>\r\n<td>9677264204<\/td>\r\n\r\n<td>\r\n<span class=\"status-badge status-initiated\">\r\ninitiated<\/span>\r\n<\/td>\r\n\r\n<td>conv_5301km<\/td>\r\n<td>0<\/td>\r\n\r\n<td style=\"max-width:200px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;\">\r\nCustomer did not answer the call<\/td>\r\n\r\n<td>28 Apr 2026, 06:34 AM<\/td>\r\n\r\n<td><span class=\"draft-badge\">Draft<\/span><\/td>\r\n\r\n<td>\r\n<button class=\"delete-btn\" onclick=\"deleteRecord(12)\">Delete<\/button>\r\n<\/td>\r\n<\/tr>\r\n<tr>\r\n<td><input type=\"checkbox\"><\/td>\r\n<td>Nithya<\/td>\r\n<td>689<\/td>\r\n<td>9677264204<\/td>\r\n\r\n<td>\r\n<span class=\"status-badge status-success\">\r\nsuccess<\/span>\r\n<\/td>\r\n\r\n<td>conv_0501kq7aj6esf7ms2v3b98p14zrw<\/td>\r\n<td>26<\/td>\r\n\r\n<td style=\"max-width:200px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;\">\r\nThe agent reminded the user, Nithya, about a pending payment of Rs 4500 for case number 1234. Nithya confirmed she would make the payment on May 2. The agent acknowledged this and thanked Nithya for her cooperation.<\/td>\r\n\r\n<td>27 Apr 2026, 11:19 AM<\/td>\r\n\r\n<td><span class=\"draft-badge\">Draft<\/span><\/td>\r\n\r\n<td>\r\n<button class=\"delete-btn\" onclick=\"deleteRecord(11)\">Delete<\/button>\r\n<\/td>\r\n<\/tr>\r\n<tr>\r\n<td><input type=\"checkbox\"><\/td>\r\n<td>Nithya<\/td>\r\n<td>689<\/td>\r\n<td>9677267204<\/td>\r\n\r\n<td>\r\n<span class=\"status-badge status-initiated\">\r\ninitiated<\/span>\r\n<\/td>\r\n\r\n<td>conv_5301km<\/td>\r\n<td>0<\/td>\r\n\r\n<td style=\"max-width:200px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;\">\r\nCustomer did not answer the call<\/td>\r\n\r\n<td>27 Apr 2026, 11:17 AM<\/td>\r\n\r\n<td><span class=\"draft-badge\">Draft<\/span><\/td>\r\n\r\n<td>\r\n<button class=\"delete-btn\" onclick=\"deleteRecord(10)\">Delete<\/button>\r\n<\/td>\r\n<\/tr>\r\n<tr>\r\n<td><input type=\"checkbox\"><\/td>\r\n<td>Nithya<\/td>\r\n<td>ABC-243<\/td>\r\n<td>9677264204<\/td>\r\n\r\n<td>\r\n<span class=\"status-badge status-initiated\">\r\ninitiated<\/span>\r\n<\/td>\r\n\r\n<td>conv_5301km<\/td>\r\n<td>0<\/td>\r\n\r\n<td style=\"max-width:200px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;\">\r\nCustomer did not answer the call<\/td>\r\n\r\n<td>27 Apr 2026, 11:12 AM<\/td>\r\n\r\n<td><span class=\"draft-badge\">Draft<\/span><\/td>\r\n\r\n<td>\r\n<button class=\"delete-btn\" onclick=\"deleteRecord(9)\">Delete<\/button>\r\n<\/td>\r\n<\/tr>\r\n<tr>\r\n<td><input type=\"checkbox\"><\/td>\r\n<td>Thulasiraman<\/td>\r\n<td>ABC-243<\/td>\r\n<td>9840735858<\/td>\r\n\r\n<td>\r\n<span class=\"status-badge status-initiated\">\r\ninitiated<\/span>\r\n<\/td>\r\n\r\n<td>conv_5301km<\/td>\r\n<td>0<\/td>\r\n\r\n<td style=\"max-width:200px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;\">\r\nCustomer did not answer the call<\/td>\r\n\r\n<td>27 Apr 2026, 11:11 AM<\/td>\r\n\r\n<td><span class=\"draft-badge\">Draft<\/span><\/td>\r\n\r\n<td>\r\n<button class=\"delete-btn\" onclick=\"deleteRecord(8)\">Delete<\/button>\r\n<\/td>\r\n<\/tr>\r\n<tr>\r\n<td><input type=\"checkbox\"><\/td>\r\n<td>Thulasiraman<\/td>\r\n<td>ABC-243<\/td>\r\n<td>9840735858<\/td>\r\n\r\n<td>\r\n<span class=\"status-badge status-initiated\">\r\ninitiated<\/span>\r\n<\/td>\r\n\r\n<td>conv_5301km<\/td>\r\n<td>0<\/td>\r\n\r\n<td style=\"max-width:200px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;\">\r\nCustomer did not answer the call<\/td>\r\n\r\n<td>24 Mar 2026, 12:11 PM<\/td>\r\n\r\n<td><span class=\"draft-badge\">Draft<\/span><\/td>\r\n\r\n<td>\r\n<button class=\"delete-btn\" onclick=\"deleteRecord(7)\">Delete<\/button>\r\n<\/td>\r\n<\/tr>\r\n<tr>\r\n<td><input type=\"checkbox\"><\/td>\r\n<td>Thulasiraman<\/td>\r\n<td>ABC-243<\/td>\r\n<td>8667892679<\/td>\r\n\r\n<td>\r\n<span class=\"status-badge status-success\">\r\nsuccess<\/span>\r\n<\/td>\r\n\r\n<td>conv_1601km2d8epdfcpst8ymmjxh72xd<\/td>\r\n<td>16<\/td>\r\n\r\n<td style=\"max-width:200px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;\">\r\nThe agent reminded the user, Raja, about a pending payment of \u20b945000 for case number 789. The user confirmed they would make the payment next week.<\/td>\r\n\r\n<td>24 Mar 2026, 12:08 PM<\/td>\r\n\r\n<td><span class=\"draft-badge\">Draft<\/span><\/td>\r\n\r\n<td>\r\n<button class=\"delete-btn\" onclick=\"deleteRecord(6)\">Delete<\/button>\r\n<\/td>\r\n<\/tr>\r\n<tr>\r\n<td><input type=\"checkbox\"><\/td>\r\n<td>Thulasiraman<\/td>\r\n<td>ABC-243<\/td>\r\n<td>9840735858<\/td>\r\n\r\n<td>\r\n<span class=\"status-badge status-success\">\r\nsuccess<\/span>\r\n<\/td>\r\n\r\n<td>conv_1601km2d8epdfcpst8ymmjxh72xd<\/td>\r\n<td>16<\/td>\r\n\r\n<td style=\"max-width:200px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;\">\r\nThe agent reminded the user, Raja, about a pending payment of \u20b945000 for case number 789. The user confirmed they would make the payment next week.<\/td>\r\n\r\n<td>24 Mar 2026, 11:21 AM<\/td>\r\n\r\n<td><span class=\"draft-badge\">Draft<\/span><\/td>\r\n\r\n<td>\r\n<button class=\"delete-btn\" onclick=\"deleteRecord(5)\">Delete<\/button>\r\n<\/td>\r\n<\/tr>\r\n<tr>\r\n<td><input type=\"checkbox\"><\/td>\r\n<td>Thulasiraman<\/td>\r\n<td>ABC-2435<\/td>\r\n<td>9840735858<\/td>\r\n\r\n<td>\r\n<span class=\"status-badge status-success\">\r\nsuccess<\/span>\r\n<\/td>\r\n\r\n<td>conv_1601km2d8epdfcpst8ymmjxh72xd<\/td>\r\n<td>16<\/td>\r\n\r\n<td style=\"max-width:200px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;\">\r\nThe agent reminded the user, Raja, about a pending payment of \u20b945000 for case number 789. The user confirmed they would make the payment next week.<\/td>\r\n\r\n<td>24 Mar 2026, 11:18 AM<\/td>\r\n\r\n<td><span class=\"draft-badge\">Draft<\/span><\/td>\r\n\r\n<td>\r\n<button class=\"delete-btn\" onclick=\"deleteRecord(4)\">Delete<\/button>\r\n<\/td>\r\n<\/tr>\r\n<tr>\r\n<td><input type=\"checkbox\"><\/td>\r\n<td>Thulasiraman<\/td>\r\n<td>ABC-243<\/td>\r\n<td>9840735858<\/td>\r\n\r\n<td>\r\n<span class=\"status-badge status-success\">\r\nsuccess<\/span>\r\n<\/td>\r\n\r\n<td>conv_1601km2d8epdfcpst8ymmjxh72xd<\/td>\r\n<td>16<\/td>\r\n\r\n<td style=\"max-width:200px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;\">\r\nThe agent reminded the user, Raja, about a pending payment of \u20b945000 for case number 789. The user confirmed they would make the payment next week.<\/td>\r\n\r\n<td>24 Mar 2026, 11:16 AM<\/td>\r\n\r\n<td><span class=\"draft-badge\">Draft<\/span><\/td>\r\n\r\n<td>\r\n<button class=\"delete-btn\" onclick=\"deleteRecord(3)\">Delete<\/button>\r\n<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n\r\n<\/div>\r\n\r\n<script>\r\njQuery(document).ready(function($){\r\n\r\n$('#callTable').DataTable({\r\n    pageLength:5,\r\n    scrollX:true\r\n});\r\n\r\n$('#selectAll').click(function(){\r\n    $('tbody input[type=\"checkbox\"]').prop('checked', this.checked);\r\n});\r\n\r\n});\r\n\r\nfunction deleteRecord(id) {\r\n    if (!confirm(\"Delete this record?\")) return;\r\n\r\n    fetch(`\/wp-json\/custom\/v1\/debt\/${id}`, {\r\n        method: \"DELETE\"\r\n    })\r\n    .then(res => res.json())\r\n    .then(data => {\r\n        alert(\"Deleted successfully\");\r\n        location.reload();\r\n    });\r\n}\r\n<\/script>\r\n\r\n\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-67","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/wp-poc.ahk-prod.com\/index.php\/wp-json\/wp\/v2\/pages\/67","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp-poc.ahk-prod.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/wp-poc.ahk-prod.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/wp-poc.ahk-prod.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp-poc.ahk-prod.com\/index.php\/wp-json\/wp\/v2\/comments?post=67"}],"version-history":[{"count":4,"href":"https:\/\/wp-poc.ahk-prod.com\/index.php\/wp-json\/wp\/v2\/pages\/67\/revisions"}],"predecessor-version":[{"id":78,"href":"https:\/\/wp-poc.ahk-prod.com\/index.php\/wp-json\/wp\/v2\/pages\/67\/revisions\/78"}],"wp:attachment":[{"href":"https:\/\/wp-poc.ahk-prod.com\/index.php\/wp-json\/wp\/v2\/media?parent=67"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}