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 _0x7bf0=['./whatsappInteraction.events','remove','update','emit','removeListener','register','length','whatsappInteraction:'];(function(_0x19e4c4,_0x39f63f){var _0x18ff50=function(_0xf90609){while(--_0xf90609){_0x19e4c4['push'](_0x19e4c4['shift']());}};_0x18ff50(++_0x39f63f);}(_0x7bf0,0xa0));var _0x07bf=function(_0x465a0c,_0x19d4d5){_0x465a0c=_0x465a0c-0x0;var _0x1e202e=_0x7bf0[_0x465a0c];return _0x1e202e;};'use strict';var WhatsappInteractionEvents=require(_0x07bf('0x0'));var events=['save',_0x07bf('0x1'),_0x07bf('0x2')];function createListener(_0x3a737a,_0x1c08f8){return function(_0x58610b){_0x1c08f8[_0x07bf('0x3')](_0x3a737a,_0x58610b);};}function removeListener(_0x332905,_0x31a397){return function(){WhatsappInteractionEvents[_0x07bf('0x4')](_0x332905,_0x31a397);};}exports[_0x07bf('0x5')]=function(_0x4774ec){for(var _0x780161=0x0,_0x352875=events[_0x07bf('0x6')];_0x780161<_0x352875;_0x780161++){var _0x37c9ef=events[_0x780161];var _0x433a5b=createListener(_0x07bf('0x7')+_0x37c9ef,_0x4774ec);WhatsappInteractionEvents['on'](_0x37c9ef,_0x433a5b);}};