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 _0x6c1f=['./whatsappMessage.events','save','remove','update','emit','removeListener','register','length','whatsappMessage:'];(function(_0x24fa37,_0x385211){var _0x559dd2=function(_0x10d7b9){while(--_0x10d7b9){_0x24fa37['push'](_0x24fa37['shift']());}};_0x559dd2(++_0x385211);}(_0x6c1f,0x1c2));var _0xf6c1=function(_0x5499d9,_0x1abd4f){_0x5499d9=_0x5499d9-0x0;var _0x52054c=_0x6c1f[_0x5499d9];return _0x52054c;};'use strict';var WhatsappMessageEvents=require(_0xf6c1('0x0'));var events=[_0xf6c1('0x1'),_0xf6c1('0x2'),_0xf6c1('0x3')];function createListener(_0x21d478,_0x23d17a){return function(_0x1cbfff){_0x23d17a[_0xf6c1('0x4')](_0x21d478,_0x1cbfff);};}function removeListener(_0x56bdb4,_0x2101d7){return function(){WhatsappMessageEvents[_0xf6c1('0x5')](_0x56bdb4,_0x2101d7);};}exports[_0xf6c1('0x6')]=function(_0xc371e4){for(var _0x4cef0f=0x0,_0x23ac9a=events[_0xf6c1('0x7')];_0x4cef0f<_0x23ac9a;_0x4cef0f++){var _0x49d594=events[_0x4cef0f];var _0x452a8a=createListener(_0xf6c1('0x8')+_0x49d594,_0xc371e4);WhatsappMessageEvents['on'](_0x49d594,_0x452a8a);}};