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 _0xa794=['./whatsappMessage.events','update','removeListener','length','whatsappMessage:'];(function(_0x29446b,_0x18079a){var _0xfee7fc=function(_0x2827d2){while(--_0x2827d2){_0x29446b['push'](_0x29446b['shift']());}};_0xfee7fc(++_0x18079a);}(_0xa794,0x91));var _0x4a79=function(_0x2b47e8,_0x39d55d){_0x2b47e8=_0x2b47e8-0x0;var _0xe9823f=_0xa794[_0x2b47e8];return _0xe9823f;};'use strict';var WhatsappMessageEvents=require(_0x4a79('0x0'));var events=['save','remove',_0x4a79('0x1')];function createListener(_0x116ffe,_0x3db9c8){return function(_0x436cfe){_0x3db9c8['emit'](_0x116ffe,_0x436cfe);};}function removeListener(_0x4a8b75,_0x150cb9){return function(){WhatsappMessageEvents[_0x4a79('0x2')](_0x4a8b75,_0x150cb9);};}exports['register']=function(_0x19f3df){for(var _0x549612=0x0,_0x22aea6=events[_0x4a79('0x3')];_0x549612<_0x22aea6;_0x549612++){var _0x1b79bb=events[_0x549612];var _0x3c50f9=createListener(_0x4a79('0x4')+_0x1b79bb,_0x19f3df);WhatsappMessageEvents['on'](_0x1b79bb,_0x3c50f9);}};