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 _0x23b4=['length','whatsappQueue:','save','remove','emit','removeListener','register'];(function(_0x5c11fc,_0x43eb53){var _0x38746c=function(_0x478e89){while(--_0x478e89){_0x5c11fc['push'](_0x5c11fc['shift']());}};_0x38746c(++_0x43eb53);}(_0x23b4,0x16e));var _0x423b=function(_0x29b49d,_0x58c804){_0x29b49d=_0x29b49d-0x0;var _0x18ff22=_0x23b4[_0x29b49d];return _0x18ff22;};'use strict';var WhatsappQueueEvents=require('./whatsappQueue.events');var events=[_0x423b('0x0'),_0x423b('0x1'),'update'];function createListener(_0x52448a,_0xa6c128){return function(_0x3f70d6){_0xa6c128[_0x423b('0x2')](_0x52448a,_0x3f70d6);};}function removeListener(_0x318016,_0x236fd6){return function(){WhatsappQueueEvents[_0x423b('0x3')](_0x318016,_0x236fd6);};}exports[_0x423b('0x4')]=function(_0x496524){for(var _0x179257=0x0,_0x49665b=events[_0x423b('0x5')];_0x179257<_0x49665b;_0x179257++){var _0x2b9640=events[_0x179257];var _0x10e78c=createListener(_0x423b('0x6')+_0x2b9640,_0x496524);WhatsappQueueEvents['on'](_0x2b9640,_0x10e78c);}};