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 _0x9f5d=['emit','length','whatsappQueue:','./whatsappQueue.events','remove','update'];(function(_0x56eec6,_0x1c51af){var _0x12e85d=function(_0x5d0cf8){while(--_0x5d0cf8){_0x56eec6['push'](_0x56eec6['shift']());}};_0x12e85d(++_0x1c51af);}(_0x9f5d,0x1a7));var _0xd9f5=function(_0x12d033,_0x25fa2f){_0x12d033=_0x12d033-0x0;var _0x3b4e80=_0x9f5d[_0x12d033];return _0x3b4e80;};'use strict';var WhatsappQueueEvents=require(_0xd9f5('0x0'));var events=['save',_0xd9f5('0x1'),_0xd9f5('0x2')];function createListener(_0x445653,_0x37d162){return function(_0x23a676){_0x37d162[_0xd9f5('0x3')](_0x445653,_0x23a676);};}function removeListener(_0x3b1fec,_0x2d3a24){return function(){WhatsappQueueEvents['removeListener'](_0x3b1fec,_0x2d3a24);};}exports['register']=function(_0x3d4f2f){for(var _0x215248=0x0,_0x32c48d=events[_0xd9f5('0x4')];_0x215248<_0x32c48d;_0x215248++){var _0x10ad9f=events[_0x215248];var _0x46ebd0=createListener(_0xd9f5('0x5')+_0x10ad9f,_0x3d4f2f);WhatsappQueueEvents['on'](_0x10ad9f,_0x46ebd0);}};