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 _0xeef6=['remove','update','emit','register','length','whatsappInteraction:','save'];(function(_0x24ffd3,_0x43bf4b){var _0x5725f4=function(_0x400062){while(--_0x400062){_0x24ffd3['push'](_0x24ffd3['shift']());}};_0x5725f4(++_0x43bf4b);}(_0xeef6,0xbc));var _0x6eef=function(_0x1cc8fe,_0x105328){_0x1cc8fe=_0x1cc8fe-0x0;var _0x230054=_0xeef6[_0x1cc8fe];return _0x230054;};'use strict';var WhatsappInteractionEvents=require('./whatsappInteraction.events');var events=[_0x6eef('0x0'),_0x6eef('0x1'),_0x6eef('0x2')];function createListener(_0x1bfc4c,_0x4ba693){return function(_0x3145b0){_0x4ba693[_0x6eef('0x3')](_0x1bfc4c,_0x3145b0);};}function removeListener(_0x3903eb,_0x29c0f2){return function(){WhatsappInteractionEvents['removeListener'](_0x3903eb,_0x29c0f2);};}exports[_0x6eef('0x4')]=function(_0x3fdf8b){for(var _0x54a15e=0x0,_0x5dc173=events[_0x6eef('0x5')];_0x54a15e<_0x5dc173;_0x54a15e++){var _0x3c1711=events[_0x54a15e];var _0x136d39=createListener(_0x6eef('0x6')+_0x3c1711,_0x3fdf8b);WhatsappInteractionEvents['on'](_0x3c1711,_0x136d39);}};