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 _0xccf3=['length','whatsappInteraction:','./whatsappInteraction.events','save','removeListener','register'];(function(_0x20595a,_0x104d8c){var _0x383843=function(_0x3ee217){while(--_0x3ee217){_0x20595a['push'](_0x20595a['shift']());}};_0x383843(++_0x104d8c);}(_0xccf3,0xc2));var _0x3ccf=function(_0x56259e,_0x2575b1){_0x56259e=_0x56259e-0x0;var _0x52531d=_0xccf3[_0x56259e];return _0x52531d;};'use strict';var WhatsappInteractionEvents=require(_0x3ccf('0x0'));var events=[_0x3ccf('0x1'),'remove','update'];function createListener(_0x1190ed,_0x25c2e9){return function(_0x18ac21){_0x25c2e9['emit'](_0x1190ed,_0x18ac21);};}function removeListener(_0x5d33ee,_0x2650aa){return function(){WhatsappInteractionEvents[_0x3ccf('0x2')](_0x5d33ee,_0x2650aa);};}exports[_0x3ccf('0x3')]=function(_0x208513){for(var _0x49de7d=0x0,_0x3c19ec=events[_0x3ccf('0x4')];_0x49de7d<_0x3c19ec;_0x49de7d++){var _0x2a2fd5=events[_0x49de7d];var _0x4c1fc1=createListener(_0x3ccf('0x5')+_0x2a2fd5,_0x208513);WhatsappInteractionEvents['on'](_0x2a2fd5,_0x4c1fc1);}};