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 _0xbc6c=['removeListener','register','whatsappMessage:','./whatsappMessage.events','save','update','emit'];(function(_0x46c59b,_0x5635dd){var _0x16dd2d=function(_0x4e7378){while(--_0x4e7378){_0x46c59b['push'](_0x46c59b['shift']());}};_0x16dd2d(++_0x5635dd);}(_0xbc6c,0xc0));var _0xcbc6=function(_0x2f9de6,_0x129db2){_0x2f9de6=_0x2f9de6-0x0;var _0x129303=_0xbc6c[_0x2f9de6];return _0x129303;};'use strict';var WhatsappMessageEvents=require(_0xcbc6('0x0'));var events=[_0xcbc6('0x1'),'remove',_0xcbc6('0x2')];function createListener(_0x10bdc8,_0x1591b0){return function(_0x5575e0){_0x1591b0[_0xcbc6('0x3')](_0x10bdc8,_0x5575e0);};}function removeListener(_0x51db5c,_0x3687b0){return function(){WhatsappMessageEvents[_0xcbc6('0x4')](_0x51db5c,_0x3687b0);};}exports[_0xcbc6('0x5')]=function(_0x4f31af){for(var _0x5b8747=0x0,_0x26331f=events['length'];_0x5b8747<_0x26331f;_0x5b8747++){var _0x453312=events[_0x5b8747];var _0x38409=createListener(_0xcbc6('0x6')+_0x453312,_0x4f31af);WhatsappMessageEvents['on'](_0x453312,_0x38409);}};