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 _0xfd82=['removeListener','register','length','save','remove','update','emit'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0xfd82,0xff));var _0x2fd8=function(_0x160cd7,_0x540c04){_0x160cd7=_0x160cd7-0x0;var _0x2b7574=_0xfd82[_0x160cd7];return _0x2b7574;};'use strict';var SmsQueueEvents=require('./smsQueue.events');var events=[_0x2fd8('0x0'),_0x2fd8('0x1'),_0x2fd8('0x2')];function createListener(_0x5b3adb,_0x36b86a){return function(_0x5c2437){_0x36b86a[_0x2fd8('0x3')](_0x5b3adb,_0x5c2437);};}function removeListener(_0x2a2e1c,_0x3d71a2){return function(){SmsQueueEvents[_0x2fd8('0x4')](_0x2a2e1c,_0x3d71a2);};}exports[_0x2fd8('0x5')]=function(_0x6a3696){for(var _0x3200f4=0x0,_0x381743=events[_0x2fd8('0x6')];_0x3200f4<_0x381743;_0x3200f4++){var _0x46f652=events[_0x3200f4];var _0x516d4f=createListener('smsQueue:'+_0x46f652,_0x6a3696);SmsQueueEvents['on'](_0x46f652,_0x516d4f);}};