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 _0xd219=['register','length','whatsappQueue:','./whatsappQueue.events','save','remove','update','emit','removeListener'];(function(_0x103fbc,_0xebf843){var _0x5c9228=function(_0x308c0d){while(--_0x308c0d){_0x103fbc['push'](_0x103fbc['shift']());}};_0x5c9228(++_0xebf843);}(_0xd219,0x13e));var _0x9d21=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0xd219[_0x14add3];return _0x4a174f;};'use strict';var WhatsappQueueEvents=require(_0x9d21('0x0'));var events=[_0x9d21('0x1'),_0x9d21('0x2'),_0x9d21('0x3')];function createListener(_0x3cc760,_0x792c13){return function(_0x309bdc){_0x792c13[_0x9d21('0x4')](_0x3cc760,_0x309bdc);};}function removeListener(_0xcd4745,_0x53f77d){return function(){WhatsappQueueEvents[_0x9d21('0x5')](_0xcd4745,_0x53f77d);};}exports[_0x9d21('0x6')]=function(_0x5974f2){for(var _0x302b27=0x0,_0x4c3f0f=events[_0x9d21('0x7')];_0x302b27<_0x4c3f0f;_0x302b27++){var _0x1ffe1b=events[_0x302b27];var _0xf9866b=createListener(_0x9d21('0x8')+_0x1ffe1b,_0x5974f2);WhatsappQueueEvents['on'](_0x1ffe1b,_0xf9866b);}};