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 _0xe3aa=['length','update','removeListener'];(function(_0x4c7c73,_0x1c2aea){var _0x1d1af0=function(_0x11c48e){while(--_0x11c48e){_0x4c7c73['push'](_0x4c7c73['shift']());}};_0x1d1af0(++_0x1c2aea);}(_0xe3aa,0x19c));var _0xae3a=function(_0x1c93d0,_0x14939a){_0x1c93d0=_0x1c93d0-0x0;var _0x482150=_0xe3aa[_0x1c93d0];return _0x482150;};'use strict';var WhatsappInteractionEvents=require('./whatsappInteraction.events');var events=['save','remove',_0xae3a('0x0')];function createListener(_0x1cff94,_0x2696e1){return function(_0x454541){_0x2696e1['emit'](_0x1cff94,_0x454541);};}function removeListener(_0x445ae8,_0x5874cf){return function(){WhatsappInteractionEvents[_0xae3a('0x1')](_0x445ae8,_0x5874cf);};}exports['register']=function(_0x1647a6){for(var _0x3c19b0=0x0,_0x2361c7=events[_0xae3a('0x2')];_0x3c19b0<_0x2361c7;_0x3c19b0++){var _0x3529b1=events[_0x3c19b0];var _0x5975a1=createListener('whatsappInteraction:'+_0x3529b1,_0x1647a6);WhatsappInteractionEvents['on'](_0x3529b1,_0x5975a1);}};