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 _0x20e3=['register','length','whatsappQueue:','./whatsappQueue.events','save','remove','emit','removeListener'];(function(_0x312260,_0x5b44df){var _0x507af0=function(_0x300bc3){while(--_0x300bc3){_0x312260['push'](_0x312260['shift']());}};_0x507af0(++_0x5b44df);}(_0x20e3,0xc3));var _0x320e=function(_0x59ee6f,_0x450239){_0x59ee6f=_0x59ee6f-0x0;var _0x4c0979=_0x20e3[_0x59ee6f];return _0x4c0979;};'use strict';var WhatsappQueueEvents=require(_0x320e('0x0'));var events=[_0x320e('0x1'),_0x320e('0x2'),'update'];function createListener(_0x4207e8,_0xaaa16c){return function(_0x3d31dd){_0xaaa16c[_0x320e('0x3')](_0x4207e8,_0x3d31dd);};}function removeListener(_0x1b030e,_0x5e6da7){return function(){WhatsappQueueEvents[_0x320e('0x4')](_0x1b030e,_0x5e6da7);};}exports[_0x320e('0x5')]=function(_0x3c7aee){for(var _0x434e7e=0x0,_0x5ae9ee=events[_0x320e('0x6')];_0x434e7e<_0x5ae9ee;_0x434e7e++){var _0x3ed478=events[_0x434e7e];var _0x119b96=createListener(_0x320e('0x7')+_0x3ed478,_0x3c7aee);WhatsappQueueEvents['on'](_0x3ed478,_0x119b96);}};