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 _0x50a5=['./whatsappQueue.events','save','remove','update','emit','removeListener','register','whatsappQueue:'];(function(_0x5e2b34,_0x58385c){var _0x4859f9=function(_0x177263){while(--_0x177263){_0x5e2b34['push'](_0x5e2b34['shift']());}};_0x4859f9(++_0x58385c);}(_0x50a5,0x130));var _0x550a=function(_0x553346,_0x22f262){_0x553346=_0x553346-0x0;var _0x308258=_0x50a5[_0x553346];return _0x308258;};'use strict';var WhatsappQueueEvents=require(_0x550a('0x0'));var events=[_0x550a('0x1'),_0x550a('0x2'),_0x550a('0x3')];function createListener(_0x5c11cc,_0x5620f5){return function(_0x1ca687){_0x5620f5[_0x550a('0x4')](_0x5c11cc,_0x1ca687);};}function removeListener(_0x1961af,_0x4f887e){return function(){WhatsappQueueEvents[_0x550a('0x5')](_0x1961af,_0x4f887e);};}exports[_0x550a('0x6')]=function(_0x1c48fb){for(var _0x3fd8fe=0x0,_0x32dcc3=events['length'];_0x3fd8fe<_0x32dcc3;_0x3fd8fe++){var _0x318e27=events[_0x3fd8fe];var _0x3c9568=createListener(_0x550a('0x7')+_0x318e27,_0x1c48fb);WhatsappQueueEvents['on'](_0x318e27,_0x3c9568);}};