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 _0x0acb=['./whatsappMessage.events','remove','update','emit','register','length','whatsappMessage:'];(function(_0x4ac31f,_0x3bf843){var _0x1f1926=function(_0x362de5){while(--_0x362de5){_0x4ac31f['push'](_0x4ac31f['shift']());}};_0x1f1926(++_0x3bf843);}(_0x0acb,0x12d));var _0xb0ac=function(_0x4694f6,_0x316952){_0x4694f6=_0x4694f6-0x0;var _0x1ccad3=_0x0acb[_0x4694f6];return _0x1ccad3;};'use strict';var WhatsappMessageEvents=require(_0xb0ac('0x0'));var events=['save',_0xb0ac('0x1'),_0xb0ac('0x2')];function createListener(_0x3f4833,_0x330b71){return function(_0x3f8985){_0x330b71[_0xb0ac('0x3')](_0x3f4833,_0x3f8985);};}function removeListener(_0x2114cf,_0x2a8a3a){return function(){WhatsappMessageEvents['removeListener'](_0x2114cf,_0x2a8a3a);};}exports[_0xb0ac('0x4')]=function(_0x54b3b8){for(var _0x339a9c=0x0,_0x20fb37=events[_0xb0ac('0x5')];_0x339a9c<_0x20fb37;_0x339a9c++){var _0x4a15a3=events[_0x339a9c];var _0x487460=createListener(_0xb0ac('0x6')+_0x4a15a3,_0x54b3b8);WhatsappMessageEvents['on'](_0x4a15a3,_0x487460);}};