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 _0x6c10=['./smsQueue.events','save','emit','removeListener','register','length','smsQueue:'];(function(_0x12a7e4,_0x2cb1e8){var _0x455185=function(_0x2b6e3f){while(--_0x2b6e3f){_0x12a7e4['push'](_0x12a7e4['shift']());}};_0x455185(++_0x2cb1e8);}(_0x6c10,0xb6));var _0x06c1=function(_0x25248b,_0x3c8491){_0x25248b=_0x25248b-0x0;var _0x509939=_0x6c10[_0x25248b];return _0x509939;};'use strict';var SmsQueueEvents=require(_0x06c1('0x0'));var events=[_0x06c1('0x1'),'remove','update'];function createListener(_0x6bb5a1,_0x342679){return function(_0x29410e){_0x342679[_0x06c1('0x2')](_0x6bb5a1,_0x29410e);};}function removeListener(_0x1be19c,_0x5daaf0){return function(){SmsQueueEvents[_0x06c1('0x3')](_0x1be19c,_0x5daaf0);};}exports[_0x06c1('0x4')]=function(_0x22e4d2){for(var _0x4b8758=0x0,_0x3b1d4d=events[_0x06c1('0x5')];_0x4b8758<_0x3b1d4d;_0x4b8758++){var _0x1756f4=events[_0x4b8758];var _0x5ad7b0=createListener(_0x06c1('0x6')+_0x1756f4,_0x22e4d2);SmsQueueEvents['on'](_0x1756f4,_0x5ad7b0);}};