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 _0x28e6=['save','remove','emit','length','whatsappQueue:'];(function(_0xa6941e,_0x21ce55){var _0x1d7acd=function(_0x2fab8a){while(--_0x2fab8a){_0xa6941e['push'](_0xa6941e['shift']());}};_0x1d7acd(++_0x21ce55);}(_0x28e6,0x181));var _0x628e=function(_0x4fbfea,_0x33df62){_0x4fbfea=_0x4fbfea-0x0;var _0x4a4f0=_0x28e6[_0x4fbfea];return _0x4a4f0;};'use strict';var WhatsappQueueEvents=require('./whatsappQueue.events');var events=[_0x628e('0x0'),_0x628e('0x1'),'update'];function createListener(_0x5e6d61,_0x3cca81){return function(_0x14285d){_0x3cca81[_0x628e('0x2')](_0x5e6d61,_0x14285d);};}function removeListener(_0x3ac15e,_0x95b0c3){return function(){WhatsappQueueEvents['removeListener'](_0x3ac15e,_0x95b0c3);};}exports['register']=function(_0x20c439){for(var _0x3d0064=0x0,_0x43b159=events[_0x628e('0x3')];_0x3d0064<_0x43b159;_0x3d0064++){var _0x3537b9=events[_0x3d0064];var _0x3359e4=createListener(_0x628e('0x4')+_0x3537b9,_0x20c439);WhatsappQueueEvents['on'](_0x3537b9,_0x3359e4);}};