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 _0x8f2a=['update','removeListener','register','length','whatsappQueue:','save','remove'];(function(_0x29b609,_0x19d388){var _0x54c952=function(_0xb3c38d){while(--_0xb3c38d){_0x29b609['push'](_0x29b609['shift']());}};_0x54c952(++_0x19d388);}(_0x8f2a,0x98));var _0xa8f2=function(_0x25b439,_0xb20872){_0x25b439=_0x25b439-0x0;var _0xbf2210=_0x8f2a[_0x25b439];return _0xbf2210;};'use strict';var WhatsappQueueEvents=require('./whatsappQueue.events');var events=[_0xa8f2('0x0'),_0xa8f2('0x1'),_0xa8f2('0x2')];function createListener(_0x305441,_0x3b792b){return function(_0x241354){_0x3b792b['emit'](_0x305441,_0x241354);};}function removeListener(_0x4ce8a3,_0x5d3358){return function(){WhatsappQueueEvents[_0xa8f2('0x3')](_0x4ce8a3,_0x5d3358);};}exports[_0xa8f2('0x4')]=function(_0x6dd430){for(var _0x124631=0x0,_0x4f6a9d=events[_0xa8f2('0x5')];_0x124631<_0x4f6a9d;_0x124631++){var _0x3e02d1=events[_0x124631];var _0x4ed201=createListener(_0xa8f2('0x6')+_0x3e02d1,_0x6dd430);WhatsappQueueEvents['on'](_0x3e02d1,_0x4ed201);}};