This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Zalora Segment Event to POND API Schema Transformer | |
| * | |
| * This function transforms a Segment event object into the specified POND API schema | |
| * based on the mapping tables provided in the document. | |
| * | |
| * @param {object} event The incoming Segment event object. | |
| * @returns {object|null} The transformed POND payload object, or null if the event type is unhandled. | |
| */ | |
| function transformEvent(event) { |