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 _0xf764=['removeListener','register','length','whatsappQueue:','save','remove','update','emit'];(function(_0x5be235,_0x46833c){var _0x21c7ce=function(_0x39d565){while(--_0x39d565){_0x5be235['push'](_0x5be235['shift']());}};_0x21c7ce(++_0x46833c);}(_0xf764,0x19c));var _0x4f76=function(_0x162a5e,_0x2b060a){_0x162a5e=_0x162a5e-0x0;var _0x581db4=_0xf764[_0x162a5e];return _0x581db4;};'use strict';var WhatsappQueueEvents=require('./whatsappQueue.events');var events=[_0x4f76('0x0'),_0x4f76('0x1'),_0x4f76('0x2')];function createListener(_0x5eefa0,_0x30cbe7){return function(_0x589528){_0x30cbe7[_0x4f76('0x3')](_0x5eefa0,_0x589528);};}function removeListener(_0x5824f3,_0x481378){return function(){WhatsappQueueEvents[_0x4f76('0x4')](_0x5824f3,_0x481378);};}exports[_0x4f76('0x5')]=function(_0x3f9c73){for(var _0x3ff64b=0x0,_0x3db698=events[_0x4f76('0x6')];_0x3ff64b<_0x3db698;_0x3ff64b++){var _0x3ca649=events[_0x3ff64b];var _0x32d5b5=createListener(_0x4f76('0x7')+_0x3ca649,_0x3f9c73);WhatsappQueueEvents['on'](_0x3ca649,_0x32d5b5);}};