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 _0xa840=['length','whatsappInteraction:','./whatsappInteraction.events','emit','removeListener','register'];(function(_0x19628b,_0x449889){var _0x4164a3=function(_0x12485c){while(--_0x12485c){_0x19628b['push'](_0x19628b['shift']());}};_0x4164a3(++_0x449889);}(_0xa840,0xa4));var _0x0a84=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xa840[_0x3dd15e];return _0x231fd0;};'use strict';var WhatsappInteractionEvents=require(_0x0a84('0x0'));var events=['save','remove','update'];function createListener(_0xfb6ab2,_0x67119a){return function(_0x29f17d){_0x67119a[_0x0a84('0x1')](_0xfb6ab2,_0x29f17d);};}function removeListener(_0x1636f3,_0x546fc0){return function(){WhatsappInteractionEvents[_0x0a84('0x2')](_0x1636f3,_0x546fc0);};}exports[_0x0a84('0x3')]=function(_0x190c68){for(var _0xdb2d2a=0x0,_0x17ab18=events[_0x0a84('0x4')];_0xdb2d2a<_0x17ab18;_0xdb2d2a++){var _0xa3e892=events[_0xdb2d2a];var _0x4bad00=createListener(_0x0a84('0x5')+_0xa3e892,_0x190c68);WhatsappInteractionEvents['on'](_0xa3e892,_0x4bad00);}};