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 _0xd598=['register','length','smsQueue:','emit'];(function(_0x571dbc,_0x400df9){var _0x55043c=function(_0x47df3b){while(--_0x47df3b){_0x571dbc['push'](_0x571dbc['shift']());}};_0x55043c(++_0x400df9);}(_0xd598,0x1bf));var _0x8d59=function(_0xa464c9,_0x7c86d8){_0xa464c9=_0xa464c9-0x0;var _0x3d73c4=_0xd598[_0xa464c9];return _0x3d73c4;};'use strict';var SmsQueueEvents=require('./smsQueue.events');var events=['save','remove','update'];function createListener(_0xc1de4c,_0x1343a6){return function(_0x3c1f1e){_0x1343a6[_0x8d59('0x0')](_0xc1de4c,_0x3c1f1e);};}function removeListener(_0x1f9cc4,_0x902a8a){return function(){SmsQueueEvents['removeListener'](_0x1f9cc4,_0x902a8a);};}exports[_0x8d59('0x1')]=function(_0x1253da){for(var _0x5196b0=0x0,_0xd39afa=events[_0x8d59('0x2')];_0x5196b0<_0xd39afa;_0x5196b0++){var _0x259661=events[_0x5196b0];var _0x33133c=createListener(_0x8d59('0x3')+_0x259661,_0x1253da);SmsQueueEvents['on'](_0x259661,_0x33133c);}};