Get values from cti script

PHOTO EMBED

Thu Dec 02 2021 14:29:10 GMT+0000 (UTC)

Saved by @mathiasVDD #javascript

var test = new AnywhereCTIService();
test.INTERACTION_DEPARTMENT

for (var defaultField in test.INTERACTION_DEPARTMENT) {
    gs.log(defaultField);
            if (Object.hasOwnProperty.call(test.INTERACTION_DEPARTMENT, defaultField)) {
                var defaultFieldValue = test.INTERACTION_DEPARTMENT[defaultField];
                gs.log(defaultFieldValue);
            }
        }
content_copyCOPY