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 _0x50e5=['update','emit','removeListener','register','length','smsQueue:','save','remove'];(function(_0x481ddc,_0x1517cf){var _0x449c7f=function(_0x5ccb21){while(--_0x5ccb21){_0x481ddc['push'](_0x481ddc['shift']());}};_0x449c7f(++_0x1517cf);}(_0x50e5,0xe6));var _0x550e=function(_0x4a3457,_0x235beb){_0x4a3457=_0x4a3457-0x0;var _0x4e37d4=_0x50e5[_0x4a3457];return _0x4e37d4;};'use strict';var SmsQueueEvents=require('./smsQueue.events');var events=[_0x550e('0x0'),_0x550e('0x1'),_0x550e('0x2')];function createListener(_0x3bfd25,_0x3ef920){return function(_0x38d364){_0x3ef920[_0x550e('0x3')](_0x3bfd25,_0x38d364);};}function removeListener(_0x24f9c0,_0xb7ba86){return function(){SmsQueueEvents[_0x550e('0x4')](_0x24f9c0,_0xb7ba86);};}exports[_0x550e('0x5')]=function(_0x412286){for(var _0xf7ce95=0x0,_0x327a63=events[_0x550e('0x6')];_0xf7ce95<_0x327a63;_0xf7ce95++){var _0x5128e1=events[_0xf7ce95];var _0x1d685e=createListener(_0x550e('0x7')+_0x5128e1,_0x412286);SmsQueueEvents['on'](_0x5128e1,_0x1d685e);}};