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 _0xbb64=['whatsappInteraction:','update','emit','removeListener','length'];(function(_0x3f71a0,_0x2c18be){var _0x2d28b3=function(_0x3b7e0b){while(--_0x3b7e0b){_0x3f71a0['push'](_0x3f71a0['shift']());}};_0x2d28b3(++_0x2c18be);}(_0xbb64,0x1dc));var _0x4bb6=function(_0x418dd6,_0x3437be){_0x418dd6=_0x418dd6-0x0;var _0x23d332=_0xbb64[_0x418dd6];return _0x23d332;};'use strict';var WhatsappInteractionEvents=require('./whatsappInteraction.events');var events=['save','remove',_0x4bb6('0x0')];function createListener(_0x3d5ebf,_0x54df91){return function(_0x3ce270){_0x54df91[_0x4bb6('0x1')](_0x3d5ebf,_0x3ce270);};}function removeListener(_0x5794cc,_0x222495){return function(){WhatsappInteractionEvents[_0x4bb6('0x2')](_0x5794cc,_0x222495);};}exports['register']=function(_0x454b4c){for(var _0x314cfe=0x0,_0x1e5bdf=events[_0x4bb6('0x3')];_0x314cfe<_0x1e5bdf;_0x314cfe++){var _0x31c195=events[_0x314cfe];var _0x1f3269=createListener(_0x4bb6('0x4')+_0x31c195,_0x454b4c);WhatsappInteractionEvents['on'](_0x31c195,_0x1f3269);}};