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 _0x1e99=['remove','update','emit','removeListener','length','whatsappInteraction:','./whatsappInteraction.events'];(function(_0x47604d,_0x15a014){var _0x388e4c=function(_0x42a446){while(--_0x42a446){_0x47604d['push'](_0x47604d['shift']());}};_0x388e4c(++_0x15a014);}(_0x1e99,0x16b));var _0x91e9=function(_0x5b9dcc,_0x47f5e0){_0x5b9dcc=_0x5b9dcc-0x0;var _0x30dc49=_0x1e99[_0x5b9dcc];return _0x30dc49;};'use strict';var WhatsappInteractionEvents=require(_0x91e9('0x0'));var events=['save',_0x91e9('0x1'),_0x91e9('0x2')];function createListener(_0xbbfc29,_0x38252a){return function(_0x50270c){_0x38252a[_0x91e9('0x3')](_0xbbfc29,_0x50270c);};}function removeListener(_0x1a9bc4,_0x5ef602){return function(){WhatsappInteractionEvents[_0x91e9('0x4')](_0x1a9bc4,_0x5ef602);};}exports['register']=function(_0x35635d){for(var _0x33f200=0x0,_0xf64939=events[_0x91e9('0x5')];_0x33f200<_0xf64939;_0x33f200++){var _0x1957cc=events[_0x33f200];var _0x1a3d40=createListener(_0x91e9('0x6')+_0x1957cc,_0x35635d);WhatsappInteractionEvents['on'](_0x1957cc,_0x1a3d40);}};