1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
13 // * The SOFTWARE PRODUCT is protected by copyright laws and international *
14 // * copyright treaties, as well as other intellectual property laws and *
15 // * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
17 // *************************************************************************
18 var _0x0467=['save','remove','update','emit','removeListener','register','length','whatsappInteraction:'];(function(_0x4408d7,_0x163a55){var _0xe32416=function(_0x530171){while(--_0x530171){_0x4408d7['push'](_0x4408d7['shift']());}};_0xe32416(++_0x163a55);}(_0x0467,0x80));var _0x7046=function(_0x501510,_0x61caa9){_0x501510=_0x501510-0x0;var _0x1e6ee5=_0x0467[_0x501510];return _0x1e6ee5;};'use strict';var WhatsappInteractionEvents=require('./whatsappInteraction.events');var events=[_0x7046('0x0'),_0x7046('0x1'),_0x7046('0x2')];function createListener(_0x79eb3,_0x2cb684){return function(_0x3b9fa9){_0x2cb684[_0x7046('0x3')](_0x79eb3,_0x3b9fa9);};}function removeListener(_0x282982,_0x14ef4d){return function(){WhatsappInteractionEvents[_0x7046('0x4')](_0x282982,_0x14ef4d);};}exports[_0x7046('0x5')]=function(_0x5edd75){for(var _0x4eae92=0x0,_0x594742=events[_0x7046('0x6')];_0x4eae92<_0x594742;_0x4eae92++){var _0x1ce32e=events[_0x4eae92];var _0x5ec2b6=createListener(_0x7046('0x7')+_0x1ce32e,_0x5edd75);WhatsappInteractionEvents['on'](_0x1ce32e,_0x5ec2b6);}};