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 _0x4287=['removeListener','register','length','whatsappQueue:','./whatsappQueue.events','remove','update','emit'];(function(_0x21a9d9,_0x4d5ac8){var _0x46adce=function(_0xfdd336){while(--_0xfdd336){_0x21a9d9['push'](_0x21a9d9['shift']());}};_0x46adce(++_0x4d5ac8);}(_0x4287,0x1cc));var _0x7428=function(_0x504956,_0x1e8cde){_0x504956=_0x504956-0x0;var _0x476fd5=_0x4287[_0x504956];return _0x476fd5;};'use strict';var WhatsappQueueEvents=require(_0x7428('0x0'));var events=['save',_0x7428('0x1'),_0x7428('0x2')];function createListener(_0x1b43a5,_0x33d9d3){return function(_0xe3b211){_0x33d9d3[_0x7428('0x3')](_0x1b43a5,_0xe3b211);};}function removeListener(_0x56cfff,_0x21d449){return function(){WhatsappQueueEvents[_0x7428('0x4')](_0x56cfff,_0x21d449);};}exports[_0x7428('0x5')]=function(_0x891793){for(var _0x466faa=0x0,_0x1ecbbd=events[_0x7428('0x6')];_0x466faa<_0x1ecbbd;_0x466faa++){var _0x3b4bc3=events[_0x466faa];var _0x47bac5=createListener(_0x7428('0x7')+_0x3b4bc3,_0x891793);WhatsappQueueEvents['on'](_0x3b4bc3,_0x47bac5);}};