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 _0x1d1e=['register','length','save','remove','update','emit','removeListener'];(function(_0x12ad86,_0x243f0a){var _0x2ccfe8=function(_0x44f7ca){while(--_0x44f7ca){_0x12ad86['push'](_0x12ad86['shift']());}};_0x2ccfe8(++_0x243f0a);}(_0x1d1e,0x1e5));var _0xe1d1=function(_0x91ae2,_0x43bbf5){_0x91ae2=_0x91ae2-0x0;var _0x9c07da=_0x1d1e[_0x91ae2];return _0x9c07da;};'use strict';var WhatsappMessageEvents=require('./whatsappMessage.events');var events=[_0xe1d1('0x0'),_0xe1d1('0x1'),_0xe1d1('0x2')];function createListener(_0x58b081,_0x34a071){return function(_0xe56389){_0x34a071[_0xe1d1('0x3')](_0x58b081,_0xe56389);};}function removeListener(_0x3c2b69,_0x1a8e2d){return function(){WhatsappMessageEvents[_0xe1d1('0x4')](_0x3c2b69,_0x1a8e2d);};}exports[_0xe1d1('0x5')]=function(_0xd8a4be){for(var _0x2828fe=0x0,_0x366554=events[_0xe1d1('0x6')];_0x2828fe<_0x366554;_0x2828fe++){var _0x72cecb=events[_0x2828fe];var _0x3f60e4=createListener('whatsappMessage:'+_0x72cecb,_0xd8a4be);WhatsappMessageEvents['on'](_0x72cecb,_0x3f60e4);}};