/*
* ADOBE CONFIDENTIAL
*
* Copyright (c) 2015 Adobe Systems Incorporated. All rights reserved.
*
* NOTICE:  All information contained herein is, and remains
* the property of Adobe Systems Incorporated and its suppliers,
* if any.  The intellectual and technical concepts contained
* herein are proprietary to Adobe Systems Incorporated and its
* suppliers and are protected by trade secret or copyright law.
* Dissemination of this information or reproduction of this material
* is strictly forbidden unless prior written permission is obtained
* from Adobe Systems Incorporated.
*/

/*global stringIDToTypeID, ActionDescriptor, executeAction, DialogModes, params, alert */

// Required params:
//  - subcategory: subcategory to log in headlights (e.g. "CremaAction")
//  - event: feature name to log in headlights (e.g. "AddedAsset")

var headlightsActionID = stringIDToTypeID("headlightsLog");
var desc = new ActionDescriptor();
desc.putString(stringIDToTypeID("subcategory"), "<%= subcategory %>");
desc.putString(stringIDToTypeID("eventRecord"), String("<%= eventName %>"));
executeAction(headlightsActionID, desc, DialogModes.NO);
