/*
 * Copyright 2014-2016 Hewlett-Packard Development Company, L.P.
 * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
 */

define([
    'jquery'
], function($) {

    return {
        types: {
            ABANDONMENT: 'abandonment',
            CLICK_THROUGH: 'clickthrough',
            PAGE: 'page'
        },

        log: function (event) {
            $.ajax('../api/public/stats', {
                contentType: 'application/json',
                data: JSON.stringify(event),
                method: 'POST'
            });
        }
    };

});
/*
 * Copyright 2014-2016 Hewlett-Packard Development Company, L.P.
 * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
 */

define([
    'jquery'
], function($) {

    return {
        types: {
            ABANDONMENT: 'abandonment',
            CLICK_THROUGH: 'clickthrough',
            PAGE: 'page'
        },

        clickTypes: {
            FULL_PREVIEW: 'full_preview',
            ORIGINAL: 'original',
            PREVIEW: 'preview'
        },

        log: function (event) {
            $.ajax('../api/public/stats', {
                contentType: 'application/json',
                data: JSON.stringify(event),
                method: 'POST'
            });
        }
    };

});
Add click types to Javascript
[FIND-46] Add click types to Javascript

[rev: matthew.gordon]
