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 _0xb5d7=['emit','removeListener','length','./whatsappInteraction.events','save','remove','update'];(function(_0x34ec72,_0x3c254a){var _0x749b21=function(_0x2af816){while(--_0x2af816){_0x34ec72['push'](_0x34ec72['shift']());}};_0x749b21(++_0x3c254a);}(_0xb5d7,0x73));var _0x7b5d=function(_0x3b380d,_0x4bf247){_0x3b380d=_0x3b380d-0x0;var _0x54502b=_0xb5d7[_0x3b380d];return _0x54502b;};'use strict';var WhatsappInteractionEvents=require(_0x7b5d('0x0'));var events=[_0x7b5d('0x1'),_0x7b5d('0x2'),_0x7b5d('0x3')];function createListener(_0x299e51,_0x110f0e){return function(_0x73f3d2){_0x110f0e[_0x7b5d('0x4')](_0x299e51,_0x73f3d2);};}function removeListener(_0x5a0509,_0x2a9566){return function(){WhatsappInteractionEvents[_0x7b5d('0x5')](_0x5a0509,_0x2a9566);};}exports['register']=function(_0x42bd6a){for(var _0x3a8b7e=0x0,_0x1c0eb9=events[_0x7b5d('0x6')];_0x3a8b7e<_0x1c0eb9;_0x3a8b7e++){var _0x18c1e4=events[_0x3a8b7e];var _0x597a28=createListener('whatsappInteraction:'+_0x18c1e4,_0x42bd6a);WhatsappInteractionEvents['on'](_0x18c1e4,_0x597a28);}};