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 _0x035c=['save','remove','emit','removeListener','register','length','smsQueue:','./smsQueue.events'];(function(_0x399ed8,_0x3bf5fc){var _0xac521c=function(_0x109e15){while(--_0x109e15){_0x399ed8['push'](_0x399ed8['shift']());}};_0xac521c(++_0x3bf5fc);}(_0x035c,0x17f));var _0xc035=function(_0xbd79b5,_0x4b25e4){_0xbd79b5=_0xbd79b5-0x0;var _0x22f99f=_0x035c[_0xbd79b5];return _0x22f99f;};'use strict';var SmsQueueEvents=require(_0xc035('0x0'));var events=[_0xc035('0x1'),_0xc035('0x2'),'update'];function createListener(_0x19e75b,_0x2aba22){return function(_0x1e3414){_0x2aba22[_0xc035('0x3')](_0x19e75b,_0x1e3414);};}function removeListener(_0x148712,_0x322f2e){return function(){SmsQueueEvents[_0xc035('0x4')](_0x148712,_0x322f2e);};}exports[_0xc035('0x5')]=function(_0x249530){for(var _0x47b05d=0x0,_0xb4654e=events[_0xc035('0x6')];_0x47b05d<_0xb4654e;_0x47b05d++){var _0x52d971=events[_0x47b05d];var _0x4184a0=createListener(_0xc035('0x7')+_0x52d971,_0x249530);SmsQueueEvents['on'](_0x52d971,_0x4184a0);}};