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 _0x8b2a=['length','whatsappQueue:','save','remove','update','emit','register'];(function(_0x255d5b,_0x4f6f35){var _0x3e141a=function(_0x249ee2){while(--_0x249ee2){_0x255d5b['push'](_0x255d5b['shift']());}};_0x3e141a(++_0x4f6f35);}(_0x8b2a,0x1c2));var _0xa8b2=function(_0x49adfd,_0x136735){_0x49adfd=_0x49adfd-0x0;var _0x518e53=_0x8b2a[_0x49adfd];return _0x518e53;};'use strict';var WhatsappQueueEvents=require('./whatsappQueue.events');var events=[_0xa8b2('0x0'),_0xa8b2('0x1'),_0xa8b2('0x2')];function createListener(_0x4939b0,_0x2feb8c){return function(_0x57dd16){_0x2feb8c[_0xa8b2('0x3')](_0x4939b0,_0x57dd16);};}function removeListener(_0x3f365f,_0x26005f){return function(){WhatsappQueueEvents['removeListener'](_0x3f365f,_0x26005f);};}exports[_0xa8b2('0x4')]=function(_0x190a6c){for(var _0x3b7661=0x0,_0x2af49c=events[_0xa8b2('0x5')];_0x3b7661<_0x2af49c;_0x3b7661++){var _0x35000b=events[_0x3b7661];var _0x2af0c3=createListener(_0xa8b2('0x6')+_0x35000b,_0x190a6c);WhatsappQueueEvents['on'](_0x35000b,_0x2af0c3);}};