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 _0x5c3e=['save','remove','emit','removeListener','register','whatsappInteraction:'];(function(_0x3fbdc9,_0x13a05b){var _0x2a053=function(_0x19c6c2){while(--_0x19c6c2){_0x3fbdc9['push'](_0x3fbdc9['shift']());}};_0x2a053(++_0x13a05b);}(_0x5c3e,0x1b0));var _0xe5c3=function(_0x195d6e,_0x1b8568){_0x195d6e=_0x195d6e-0x0;var _0x21a1a4=_0x5c3e[_0x195d6e];return _0x21a1a4;};'use strict';var WhatsappInteractionEvents=require('./whatsappInteraction.events');var events=[_0xe5c3('0x0'),_0xe5c3('0x1'),'update'];function createListener(_0x3f6f2f,_0x4400e4){return function(_0x20901b){_0x4400e4[_0xe5c3('0x2')](_0x3f6f2f,_0x20901b);};}function removeListener(_0x282421,_0x3d3c49){return function(){WhatsappInteractionEvents[_0xe5c3('0x3')](_0x282421,_0x3d3c49);};}exports[_0xe5c3('0x4')]=function(_0x39a987){for(var _0x354e37=0x0,_0x19d552=events['length'];_0x354e37<_0x19d552;_0x354e37++){var _0x4145d3=events[_0x354e37];var _0x47240d=createListener(_0xe5c3('0x5')+_0x4145d3,_0x39a987);WhatsappInteractionEvents['on'](_0x4145d3,_0x47240d);}};