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 _0x7774=['save','update','emit','removeListener','register','whatsappInteraction:','./whatsappInteraction.events'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x7774,0x7d));var _0x4777=function(_0x8afdd0,_0x548ad1){_0x8afdd0=_0x8afdd0-0x0;var _0x3de7ac=_0x7774[_0x8afdd0];return _0x3de7ac;};'use strict';var WhatsappInteractionEvents=require(_0x4777('0x0'));var events=[_0x4777('0x1'),'remove',_0x4777('0x2')];function createListener(_0x265870,_0x26bf36){return function(_0x4966c0){_0x26bf36[_0x4777('0x3')](_0x265870,_0x4966c0);};}function removeListener(_0xd9b007,_0x28bc84){return function(){WhatsappInteractionEvents[_0x4777('0x4')](_0xd9b007,_0x28bc84);};}exports[_0x4777('0x5')]=function(_0x535dcf){for(var _0x5729da=0x0,_0x1fb535=events['length'];_0x5729da<_0x1fb535;_0x5729da++){var _0x1dfb5d=events[_0x5729da];var _0x20656f=createListener(_0x4777('0x6')+_0x1dfb5d,_0x535dcf);WhatsappInteractionEvents['on'](_0x1dfb5d,_0x20656f);}};