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 _0x6f43=['whatsappMessage:','./whatsappMessage.events','update','emit','register','length'];(function(_0x11a55c,_0x4eced9){var _0x26c390=function(_0x5b0662){while(--_0x5b0662){_0x11a55c['push'](_0x11a55c['shift']());}};_0x26c390(++_0x4eced9);}(_0x6f43,0xaf));var _0x36f4=function(_0x15ea09,_0x2f30ab){_0x15ea09=_0x15ea09-0x0;var _0x3e9c78=_0x6f43[_0x15ea09];return _0x3e9c78;};'use strict';var WhatsappMessageEvents=require(_0x36f4('0x0'));var events=['save','remove',_0x36f4('0x1')];function createListener(_0x352340,_0x48eae3){return function(_0x279e81){_0x48eae3[_0x36f4('0x2')](_0x352340,_0x279e81);};}function removeListener(_0x1689e4,_0x33b1fa){return function(){WhatsappMessageEvents['removeListener'](_0x1689e4,_0x33b1fa);};}exports[_0x36f4('0x3')]=function(_0xf20687){for(var _0x23f4c1=0x0,_0x13939e=events[_0x36f4('0x4')];_0x23f4c1<_0x13939e;_0x23f4c1++){var _0x72627=events[_0x23f4c1];var _0x1a53ac=createListener(_0x36f4('0x5')+_0x72627,_0xf20687);WhatsappMessageEvents['on'](_0x72627,_0x1a53ac);}};