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 _0x347f=['remove','register','length','smsQueue:','./smsQueue.events','save'];(function(_0x341eca,_0x3b58aa){var _0x18c18a=function(_0x148874){while(--_0x148874){_0x341eca['push'](_0x341eca['shift']());}};_0x18c18a(++_0x3b58aa);}(_0x347f,0x1ba));var _0xf347=function(_0x3947c9,_0x4d6c97){_0x3947c9=_0x3947c9-0x0;var _0x2e7871=_0x347f[_0x3947c9];return _0x2e7871;};'use strict';var SmsQueueEvents=require(_0xf347('0x0'));var events=[_0xf347('0x1'),_0xf347('0x2'),'update'];function createListener(_0x2fc58f,_0x580569){return function(_0x155acd){_0x580569['emit'](_0x2fc58f,_0x155acd);};}function removeListener(_0x571e4a,_0x26bc04){return function(){SmsQueueEvents['removeListener'](_0x571e4a,_0x26bc04);};}exports[_0xf347('0x3')]=function(_0x3fc475){for(var _0x55c907=0x0,_0x34467a=events[_0xf347('0x4')];_0x55c907<_0x34467a;_0x55c907++){var _0x6b37f0=events[_0x55c907];var _0x463388=createListener(_0xf347('0x5')+_0x6b37f0,_0x3fc475);SmsQueueEvents['on'](_0x6b37f0,_0x463388);}};