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 _0x315d=['remove','removeListener','register','whatsappInteraction:','./whatsappInteraction.events'];(function(_0x1f9f37,_0x18776e){var _0x21c080=function(_0x4acb93){while(--_0x4acb93){_0x1f9f37['push'](_0x1f9f37['shift']());}};_0x21c080(++_0x18776e);}(_0x315d,0x13f));var _0xd315=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x315d[_0x3dd15e];return _0x231fd0;};'use strict';var WhatsappInteractionEvents=require(_0xd315('0x0'));var events=['save',_0xd315('0x1'),'update'];function createListener(_0x19e3fb,_0x41b033){return function(_0x18d144){_0x41b033['emit'](_0x19e3fb,_0x18d144);};}function removeListener(_0x5e6a1a,_0x1da5fd){return function(){WhatsappInteractionEvents[_0xd315('0x2')](_0x5e6a1a,_0x1da5fd);};}exports[_0xd315('0x3')]=function(_0x229c12){for(var _0x55a62=0x0,_0x389cb2=events['length'];_0x55a62<_0x389cb2;_0x55a62++){var _0xe86b73=events[_0x55a62];var _0x5054bc=createListener(_0xd315('0x4')+_0xe86b73,_0x229c12);WhatsappInteractionEvents['on'](_0xe86b73,_0x5054bc);}};