try {
    var $customer_Table = $('#customer-table');
    if ($customer_Table.length > 0) {

        var customer_DataTable = $customer_Table.DataTable({
            "searchDelay": 700,
            "ordering": false, responsive: !0,
            "lengthMenu": [[10, 25, 50, 100, 500, 1000, -1], [10, 25, 50, 100, 500, 1000, "All"]],
            "processing": true, // for show progress bar
            "serverSide": true, // for process server side
            "orderMulti": false, // for disable multiple column at once
            "ajax": {
                "url": "/customer",
                "type": "POST",
                "datatype": "json",
                data: function (json) {
                    //json.SearchapplicationByNumber = permissionJson.SearchapplicationByNumber;
                    //json.StatusID = $(".__application-status-filter").val();
                    //json.StatusIDOne = $(".__application-qualitycheck-filter").val();
                    return json;
                },
            },
            "language":
            {
                "processing": "<i class='fas fa-spinner fa-spin'></i>",
            },
            "columns": [
                { "data": "CustomerName" },
                { "data": "MobileNumber" },
                { "data": "EmailId" },
                { "data": "ApplicationCount" },
                { "data": "IPAddress" },
                { "data": "LastLogin" },
                { "data": "CreatedDate" }
            ],
            columnDefs: [                
                {
                    targets: 0,
                    render: function (data, type, item) {
                        return '<a title="View Application Details" target="_black" href="/customer/details/' + item.CustomerID + '">' + item.CustomerName + '</a>';
                    }
                }
            ]
        });
    }
} catch (ex) { }