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 _0xc34e=['./whatsappInteraction.events','remove','update','register','length','whatsappInteraction:'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0xc34e,0xb4));var _0xec34=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xc34e[_0x3dd15e];return _0x231fd0;};'use strict';var WhatsappInteractionEvents=require(_0xec34('0x0'));var events=['save',_0xec34('0x1'),_0xec34('0x2')];function createListener(_0x1f3df1,_0x17df40){return function(_0x4ac82a){_0x17df40['emit'](_0x1f3df1,_0x4ac82a);};}function removeListener(_0x117f4b,_0x139503){return function(){WhatsappInteractionEvents['removeListener'](_0x117f4b,_0x139503);};}exports[_0xec34('0x3')]=function(_0xfe5500){for(var _0x406b67=0x0,_0x5a668f=events[_0xec34('0x4')];_0x406b67<_0x5a668f;_0x406b67++){var _0x174b2e=events[_0x406b67];var _0x6ae472=createListener(_0xec34('0x5')+_0x174b2e,_0xfe5500);WhatsappInteractionEvents['on'](_0x174b2e,_0x6ae472);}};