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 _0x7bd7=['save','remove','emit','removeListener','whatsappInteraction:','./whatsappInteraction.events'];(function(_0x5a8269,_0xfb2f54){var _0x539ed7=function(_0x31ce98){while(--_0x31ce98){_0x5a8269['push'](_0x5a8269['shift']());}};_0x539ed7(++_0xfb2f54);}(_0x7bd7,0x155));var _0x77bd=function(_0x1cdcb4,_0x4991fd){_0x1cdcb4=_0x1cdcb4-0x0;var _0x5c855c=_0x7bd7[_0x1cdcb4];return _0x5c855c;};'use strict';var WhatsappInteractionEvents=require(_0x77bd('0x0'));var events=[_0x77bd('0x1'),_0x77bd('0x2'),'update'];function createListener(_0x126a19,_0x4d6997){return function(_0x39bd36){_0x4d6997[_0x77bd('0x3')](_0x126a19,_0x39bd36);};}function removeListener(_0x3b681d,_0x3c47b4){return function(){WhatsappInteractionEvents[_0x77bd('0x4')](_0x3b681d,_0x3c47b4);};}exports['register']=function(_0x403e28){for(var _0x2bc058=0x0,_0x1414c6=events['length'];_0x2bc058<_0x1414c6;_0x2bc058++){var _0x5ef7fd=events[_0x2bc058];var _0x2031d7=createListener(_0x77bd('0x5')+_0x5ef7fd,_0x403e28);WhatsappInteractionEvents['on'](_0x5ef7fd,_0x2031d7);}};