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 _0x24c5=['update','emit','removeListener','register','length','save','remove'];(function(_0x51941c,_0x3fe3b6){var _0xf641fd=function(_0x5d04c4){while(--_0x5d04c4){_0x51941c['push'](_0x51941c['shift']());}};_0xf641fd(++_0x3fe3b6);}(_0x24c5,0x163));var _0x524c=function(_0x4b5e5d,_0x33af8a){_0x4b5e5d=_0x4b5e5d-0x0;var _0x51f252=_0x24c5[_0x4b5e5d];return _0x51f252;};'use strict';var WhatsappMessageEvents=require('./whatsappMessage.events');var events=[_0x524c('0x0'),_0x524c('0x1'),_0x524c('0x2')];function createListener(_0x5c2cf3,_0x31927f){return function(_0x100e5f){_0x31927f[_0x524c('0x3')](_0x5c2cf3,_0x100e5f);};}function removeListener(_0x752702,_0x475c98){return function(){WhatsappMessageEvents[_0x524c('0x4')](_0x752702,_0x475c98);};}exports[_0x524c('0x5')]=function(_0x19245d){for(var _0x452778=0x0,_0x1be1ed=events[_0x524c('0x6')];_0x452778<_0x1be1ed;_0x452778++){var _0x5e7e54=events[_0x452778];var _0x114d0b=createListener('whatsappMessage:'+_0x5e7e54,_0x19245d);WhatsappMessageEvents['on'](_0x5e7e54,_0x114d0b);}};