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 _0x74f3=['length','whatsappInteraction:','./whatsappInteraction.events','save','remove','update','emit','register'];(function(_0x5ddb1c,_0x5ea4df){var _0x354adc=function(_0x2dfb1f){while(--_0x2dfb1f){_0x5ddb1c['push'](_0x5ddb1c['shift']());}};_0x354adc(++_0x5ea4df);}(_0x74f3,0x1a2));var _0x374f=function(_0x2586f2,_0xdb8e0c){_0x2586f2=_0x2586f2-0x0;var _0x5c54c1=_0x74f3[_0x2586f2];return _0x5c54c1;};'use strict';var WhatsappInteractionEvents=require(_0x374f('0x0'));var events=[_0x374f('0x1'),_0x374f('0x2'),_0x374f('0x3')];function createListener(_0x1b9155,_0x384217){return function(_0x12df73){_0x384217[_0x374f('0x4')](_0x1b9155,_0x12df73);};}function removeListener(_0x1f4d89,_0x112d4d){return function(){WhatsappInteractionEvents['removeListener'](_0x1f4d89,_0x112d4d);};}exports[_0x374f('0x5')]=function(_0x351db4){for(var _0xc6e7b9=0x0,_0x905d66=events[_0x374f('0x6')];_0xc6e7b9<_0x905d66;_0xc6e7b9++){var _0x44d982=events[_0xc6e7b9];var _0x127703=createListener(_0x374f('0x7')+_0x44d982,_0x351db4);WhatsappInteractionEvents['on'](_0x44d982,_0x127703);}};