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 _0x84d5=['update','register','length','whatsappQueue:','./whatsappQueue.events','save','remove'];(function(_0x58d40f,_0x18f78d){var _0x56572c=function(_0x298f77){while(--_0x298f77){_0x58d40f['push'](_0x58d40f['shift']());}};_0x56572c(++_0x18f78d);}(_0x84d5,0xd6));var _0x584d=function(_0x73c4d8,_0x1194d8){_0x73c4d8=_0x73c4d8-0x0;var _0x31e802=_0x84d5[_0x73c4d8];return _0x31e802;};'use strict';var WhatsappQueueEvents=require(_0x584d('0x0'));var events=[_0x584d('0x1'),_0x584d('0x2'),_0x584d('0x3')];function createListener(_0x3cf2d2,_0x4a28ac){return function(_0x58c2af){_0x4a28ac['emit'](_0x3cf2d2,_0x58c2af);};}function removeListener(_0x5f17e1,_0x35f9be){return function(){WhatsappQueueEvents['removeListener'](_0x5f17e1,_0x35f9be);};}exports[_0x584d('0x4')]=function(_0x136b2b){for(var _0x4904ea=0x0,_0x14ea79=events[_0x584d('0x5')];_0x4904ea<_0x14ea79;_0x4904ea++){var _0x1d5257=events[_0x4904ea];var _0x8a0ef9=createListener(_0x584d('0x6')+_0x1d5257,_0x136b2b);WhatsappQueueEvents['on'](_0x1d5257,_0x8a0ef9);}};