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 _0x1f86=['remove','emit','removeListener','length','smsQueue:','./smsQueue.events','save'];(function(_0x42cae2,_0x284ef8){var _0x5f256f=function(_0x41abc8){while(--_0x41abc8){_0x42cae2['push'](_0x42cae2['shift']());}};_0x5f256f(++_0x284ef8);}(_0x1f86,0x19b));var _0x61f8=function(_0x26cebc,_0x4fbbfa){_0x26cebc=_0x26cebc-0x0;var _0x18cf95=_0x1f86[_0x26cebc];return _0x18cf95;};'use strict';var SmsQueueEvents=require(_0x61f8('0x0'));var events=[_0x61f8('0x1'),_0x61f8('0x2'),'update'];function createListener(_0x298efc,_0x446287){return function(_0x283832){_0x446287[_0x61f8('0x3')](_0x298efc,_0x283832);};}function removeListener(_0x278b9e,_0x340737){return function(){SmsQueueEvents[_0x61f8('0x4')](_0x278b9e,_0x340737);};}exports['register']=function(_0x329bf0){for(var _0x581c60=0x0,_0x4b0986=events[_0x61f8('0x5')];_0x581c60<_0x4b0986;_0x581c60++){var _0x2decaa=events[_0x581c60];var _0x357530=createListener(_0x61f8('0x6')+_0x2decaa,_0x329bf0);SmsQueueEvents['on'](_0x2decaa,_0x357530);}};