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 _0x913e=['save','remove','removeListener','whatsappInteraction:'];(function(_0x5cb1af,_0x4bdc8c){var _0x8d7940=function(_0x3db70a){while(--_0x3db70a){_0x5cb1af['push'](_0x5cb1af['shift']());}};_0x8d7940(++_0x4bdc8c);}(_0x913e,0xf4));var _0xe913=function(_0xf5d71c,_0x2613a6){_0xf5d71c=_0xf5d71c-0x0;var _0x5af672=_0x913e[_0xf5d71c];return _0x5af672;};'use strict';var WhatsappInteractionEvents=require('./whatsappInteraction.events');var events=[_0xe913('0x0'),_0xe913('0x1'),'update'];function createListener(_0x270ee6,_0x374eaa){return function(_0x11c30e){_0x374eaa['emit'](_0x270ee6,_0x11c30e);};}function removeListener(_0x34f37b,_0x37bcf9){return function(){WhatsappInteractionEvents[_0xe913('0x2')](_0x34f37b,_0x37bcf9);};}exports['register']=function(_0x1b4a98){for(var _0x56b78a=0x0,_0x2dcae3=events['length'];_0x56b78a<_0x2dcae3;_0x56b78a++){var _0x384242=events[_0x56b78a];var _0x36cd80=createListener(_0xe913('0x3')+_0x384242,_0x1b4a98);WhatsappInteractionEvents['on'](_0x384242,_0x36cd80);}};