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 _0x9bde=['whatsappInteraction:','./whatsappInteraction.events','emit','removeListener'];(function(_0x19dbc0,_0x180cad){var _0xf0b964=function(_0x59fd98){while(--_0x59fd98){_0x19dbc0['push'](_0x19dbc0['shift']());}};_0xf0b964(++_0x180cad);}(_0x9bde,0xb9));var _0xe9bd=function(_0x5633eb,_0x2dc4a5){_0x5633eb=_0x5633eb-0x0;var _0x2e87aa=_0x9bde[_0x5633eb];return _0x2e87aa;};'use strict';var WhatsappInteractionEvents=require(_0xe9bd('0x0'));var events=['save','remove','update'];function createListener(_0x3c8a1d,_0x3b742f){return function(_0x48daf0){_0x3b742f[_0xe9bd('0x1')](_0x3c8a1d,_0x48daf0);};}function removeListener(_0x516bf1,_0x819c98){return function(){WhatsappInteractionEvents[_0xe9bd('0x2')](_0x516bf1,_0x819c98);};}exports['register']=function(_0x5186f6){for(var _0x48bd63=0x0,_0x5b7ec2=events['length'];_0x48bd63<_0x5b7ec2;_0x48bd63++){var _0x4fa252=events[_0x48bd63];var _0x452fce=createListener(_0xe9bd('0x3')+_0x4fa252,_0x5186f6);WhatsappInteractionEvents['on'](_0x4fa252,_0x452fce);}};