PageSourceSearch

https://support.mygoldcare.com/App/Filters/customFieldFilter.js?0bc586309ba499d2d788ef4a5445f97f

js mygoldcare.com collected 2026-10-08 12:43:51 UTC 1,107 bytes, 26 lines download raw bytes

1angular.module('TSCustomerHub')
2    .filter('formatCustomField', function ($filter) {
3        return function (fieldValue, fieldName, columns) {
4            var result = fieldValue;
5
6            if (fieldValue) {
7                for (i = 0; i < columns.length; i++) {
8                    if (fieldName == columns[i].FieldText) {
9                        switch (columns[i].Type.toLowerCase()) {
10                            case 'datetime':
11                                result = $filter('date')(moment.utc(fieldValue).local().format('MM/DD/YYYY h:mm A'));
12                                break;
13                            case 'date':
14                                result = $filter('date')(moment.utc(fieldValue).local().format('MM/DD/YYYY'));
15                                break;
16                            case 'time':
17                                result = $filter('date')(moment.utc(fieldValue).local().format('hh:mm:ss A'));
18                                break;
19                        };
20                    }
21                }
22            }
23
24            return result;
25        }
26    });

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.