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 _0x0f64=['./whatsappInteraction.events','update','removeListener','length','whatsappInteraction:'];(function(_0x1aa88f,_0x3b186f){var _0x3e0b82=function(_0x1ce00d){while(--_0x1ce00d){_0x1aa88f['push'](_0x1aa88f['shift']());}};_0x3e0b82(++_0x3b186f);}(_0x0f64,0x122));var _0x40f6=function(_0x490c06,_0x45c211){_0x490c06=_0x490c06-0x0;var _0x8cf552=_0x0f64[_0x490c06];return _0x8cf552;};'use strict';var WhatsappInteractionEvents=require(_0x40f6('0x0'));var events=['save','remove',_0x40f6('0x1')];function createListener(_0xab4846,_0x4a417f){return function(_0x3d3f6f){_0x4a417f['emit'](_0xab4846,_0x3d3f6f);};}function removeListener(_0x1fd0b9,_0x423fef){return function(){WhatsappInteractionEvents[_0x40f6('0x2')](_0x1fd0b9,_0x423fef);};}exports['register']=function(_0x254595){for(var _0x2799c4=0x0,_0x11ea14=events[_0x40f6('0x3')];_0x2799c4<_0x11ea14;_0x2799c4++){var _0xfe02f3=events[_0x2799c4];var _0x4e4f5b=createListener(_0x40f6('0x4')+_0xfe02f3,_0x254595);WhatsappInteractionEvents['on'](_0xfe02f3,_0x4e4f5b);}};