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 _0x2c37=['update','emit','register','length','whatsappQueue:','save','remove'];(function(_0xcc48af,_0x3639cd){var _0x89d1ee=function(_0x470b89){while(--_0x470b89){_0xcc48af['push'](_0xcc48af['shift']());}};_0x89d1ee(++_0x3639cd);}(_0x2c37,0x1e1));var _0x72c3=function(_0x2fb552,_0x1f72de){_0x2fb552=_0x2fb552-0x0;var _0x15109f=_0x2c37[_0x2fb552];return _0x15109f;};'use strict';var WhatsappQueueEvents=require('./whatsappQueue.events');var events=[_0x72c3('0x0'),_0x72c3('0x1'),_0x72c3('0x2')];function createListener(_0x2cc96f,_0x49bc32){return function(_0x31d0ea){_0x49bc32[_0x72c3('0x3')](_0x2cc96f,_0x31d0ea);};}function removeListener(_0x236503,_0x58d214){return function(){WhatsappQueueEvents['removeListener'](_0x236503,_0x58d214);};}exports[_0x72c3('0x4')]=function(_0x2fe10d){for(var _0x2894f6=0x0,_0x547210=events[_0x72c3('0x5')];_0x2894f6<_0x547210;_0x2894f6++){var _0x21c856=events[_0x2894f6];var _0x56a65c=createListener(_0x72c3('0x6')+_0x21c856,_0x2fe10d);WhatsappQueueEvents['on'](_0x21c856,_0x56a65c);}};