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 _0xf7e5=['register','length','whatsappMessage:','./whatsappMessage.events','save','remove','update','emit','removeListener'];(function(_0x1ff528,_0x26caa4){var _0x5df0ab=function(_0x1a0f35){while(--_0x1a0f35){_0x1ff528['push'](_0x1ff528['shift']());}};_0x5df0ab(++_0x26caa4);}(_0xf7e5,0x159));var _0x5f7e=function(_0x56e693,_0x3e9c0b){_0x56e693=_0x56e693-0x0;var _0xff14d8=_0xf7e5[_0x56e693];return _0xff14d8;};'use strict';var WhatsappMessageEvents=require(_0x5f7e('0x0'));var events=[_0x5f7e('0x1'),_0x5f7e('0x2'),_0x5f7e('0x3')];function createListener(_0xd9e6ae,_0x323126){return function(_0xf49f84){_0x323126[_0x5f7e('0x4')](_0xd9e6ae,_0xf49f84);};}function removeListener(_0x4ac3fa,_0x5c91ec){return function(){WhatsappMessageEvents[_0x5f7e('0x5')](_0x4ac3fa,_0x5c91ec);};}exports[_0x5f7e('0x6')]=function(_0x3067d9){for(var _0x64618=0x0,_0x221ed4=events[_0x5f7e('0x7')];_0x64618<_0x221ed4;_0x64618++){var _0x115bfc=events[_0x64618];var _0x1ebc42=createListener(_0x5f7e('0x8')+_0x115bfc,_0x3067d9);WhatsappMessageEvents['on'](_0x115bfc,_0x1ebc42);}};