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 _0xd625=['register','length','whatsappMessage:','./whatsappMessage.events','save','remove','update','emit'];(function(_0x140059,_0x309762){var _0x2171b6=function(_0xba5388){while(--_0xba5388){_0x140059['push'](_0x140059['shift']());}};_0x2171b6(++_0x309762);}(_0xd625,0xbb));var _0x5d62=function(_0x134c2e,_0x3573c4){_0x134c2e=_0x134c2e-0x0;var _0x2825db=_0xd625[_0x134c2e];return _0x2825db;};'use strict';var WhatsappMessageEvents=require(_0x5d62('0x0'));var events=[_0x5d62('0x1'),_0x5d62('0x2'),_0x5d62('0x3')];function createListener(_0x22853f,_0x528a2a){return function(_0x22f5dc){_0x528a2a[_0x5d62('0x4')](_0x22853f,_0x22f5dc);};}function removeListener(_0x1a33cb,_0x364f65){return function(){WhatsappMessageEvents['removeListener'](_0x1a33cb,_0x364f65);};}exports[_0x5d62('0x5')]=function(_0x471e02){for(var _0x1412fd=0x0,_0x3ed68e=events[_0x5d62('0x6')];_0x1412fd<_0x3ed68e;_0x1412fd++){var _0xf6e283=events[_0x1412fd];var _0x1d4ab1=createListener(_0x5d62('0x7')+_0xf6e283,_0x471e02);WhatsappMessageEvents['on'](_0xf6e283,_0x1d4ab1);}};