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 _0xaba7=['save','whatsappQueue:'];(function(_0x2dadb9,_0x42cfe6){var _0x2f0097=function(_0x21163f){while(--_0x21163f){_0x2dadb9['push'](_0x2dadb9['shift']());}};_0x2f0097(++_0x42cfe6);}(_0xaba7,0x1da));var _0x7aba=function(_0x3eaf5e,_0x3c9120){_0x3eaf5e=_0x3eaf5e-0x0;var _0x2e7aad=_0xaba7[_0x3eaf5e];return _0x2e7aad;};'use strict';var WhatsappQueueEvents=require('./whatsappQueue.events');var events=[_0x7aba('0x0'),'remove','update'];function createListener(_0x376702,_0xdeb623){return function(_0x4c26e5){_0xdeb623['emit'](_0x376702,_0x4c26e5);};}function removeListener(_0x4e1714,_0x1470f8){return function(){WhatsappQueueEvents['removeListener'](_0x4e1714,_0x1470f8);};}exports['register']=function(_0x4788e1){for(var _0x107f59=0x0,_0x170744=events['length'];_0x107f59<_0x170744;_0x107f59++){var _0x3a72c9=events[_0x107f59];var _0x1b5899=createListener(_0x7aba('0x1')+_0x3a72c9,_0x4788e1);WhatsappQueueEvents['on'](_0x3a72c9,_0x1b5899);}};