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 _0x7f91=['whatsappQueue:','./whatsappQueue.events','save','remove','update','emit','removeListener','register','length'];(function(_0x4b9be9,_0x453a7b){var _0x15881a=function(_0x3f66c6){while(--_0x3f66c6){_0x4b9be9['push'](_0x4b9be9['shift']());}};_0x15881a(++_0x453a7b);}(_0x7f91,0x172));var _0x17f9=function(_0x41bd33,_0x8dd533){_0x41bd33=_0x41bd33-0x0;var _0x1ef83a=_0x7f91[_0x41bd33];return _0x1ef83a;};'use strict';var WhatsappQueueEvents=require(_0x17f9('0x0'));var events=[_0x17f9('0x1'),_0x17f9('0x2'),_0x17f9('0x3')];function createListener(_0x2fc548,_0x50c23e){return function(_0x19bbdc){_0x50c23e[_0x17f9('0x4')](_0x2fc548,_0x19bbdc);};}function removeListener(_0x180129,_0x7d6518){return function(){WhatsappQueueEvents[_0x17f9('0x5')](_0x180129,_0x7d6518);};}exports[_0x17f9('0x6')]=function(_0x40fa3e){for(var _0x59e5d3=0x0,_0x3d2da8=events[_0x17f9('0x7')];_0x59e5d3<_0x3d2da8;_0x59e5d3++){var _0x1d8fe8=events[_0x59e5d3];var _0x15c9e5=createListener(_0x17f9('0x8')+_0x1d8fe8,_0x40fa3e);WhatsappQueueEvents['on'](_0x1d8fe8,_0x15c9e5);}};