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 _0x4b9f=['./smsQueue.events','save','remove','register','smsQueue:'];(function(_0x5c10f7,_0x1f47fc){var _0x2427fd=function(_0x166203){while(--_0x166203){_0x5c10f7['push'](_0x5c10f7['shift']());}};_0x2427fd(++_0x1f47fc);}(_0x4b9f,0xaf));var _0xf4b9=function(_0x17d9e3,_0x1f969c){_0x17d9e3=_0x17d9e3-0x0;var _0x14192d=_0x4b9f[_0x17d9e3];return _0x14192d;};'use strict';var SmsQueueEvents=require(_0xf4b9('0x0'));var events=[_0xf4b9('0x1'),_0xf4b9('0x2'),'update'];function createListener(_0x2ac036,_0x5a4067){return function(_0x35e75e){_0x5a4067['emit'](_0x2ac036,_0x35e75e);};}function removeListener(_0x55c66d,_0x2bcf9c){return function(){SmsQueueEvents['removeListener'](_0x55c66d,_0x2bcf9c);};}exports[_0xf4b9('0x3')]=function(_0x5e3d53){for(var _0x529f67=0x0,_0x433598=events['length'];_0x529f67<_0x433598;_0x529f67++){var _0xb63866=events[_0x529f67];var _0x3eedf3=createListener(_0xf4b9('0x4')+_0xb63866,_0x5e3d53);SmsQueueEvents['on'](_0xb63866,_0x3eedf3);}};