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 _0xd58e=['update','emit','removeListener','register','length','whatsappMessage:','./whatsappMessage.events','save'];(function(_0x448344,_0x4b9ece){var _0x4f71fa=function(_0x3e136d){while(--_0x3e136d){_0x448344['push'](_0x448344['shift']());}};_0x4f71fa(++_0x4b9ece);}(_0xd58e,0x86));var _0xed58=function(_0x4f7986,_0x56bb25){_0x4f7986=_0x4f7986-0x0;var _0xc32759=_0xd58e[_0x4f7986];return _0xc32759;};'use strict';var WhatsappMessageEvents=require(_0xed58('0x0'));var events=[_0xed58('0x1'),'remove',_0xed58('0x2')];function createListener(_0x5079a5,_0x22b407){return function(_0x33e9b7){_0x22b407[_0xed58('0x3')](_0x5079a5,_0x33e9b7);};}function removeListener(_0x492915,_0x368378){return function(){WhatsappMessageEvents[_0xed58('0x4')](_0x492915,_0x368378);};}exports[_0xed58('0x5')]=function(_0x352d55){for(var _0x27e1fe=0x0,_0xbbd146=events[_0xed58('0x6')];_0x27e1fe<_0xbbd146;_0x27e1fe++){var _0x4f7703=events[_0x27e1fe];var _0x48aadb=createListener(_0xed58('0x7')+_0x4f7703,_0x352d55);WhatsappMessageEvents['on'](_0x4f7703,_0x48aadb);}};