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 _0xaa8a=['register','length','smsQueue:','save','emit','removeListener'];(function(_0x53f005,_0xfae300){var _0x3c3464=function(_0xb01fe8){while(--_0xb01fe8){_0x53f005['push'](_0x53f005['shift']());}};_0x3c3464(++_0xfae300);}(_0xaa8a,0x10b));var _0xaaa8=function(_0x59bcb1,_0x5a4b6c){_0x59bcb1=_0x59bcb1-0x0;var _0x4a737f=_0xaa8a[_0x59bcb1];return _0x4a737f;};'use strict';var SmsQueueEvents=require('./smsQueue.events');var events=[_0xaaa8('0x0'),'remove','update'];function createListener(_0x36d2c5,_0x3fe784){return function(_0x303680){_0x3fe784[_0xaaa8('0x1')](_0x36d2c5,_0x303680);};}function removeListener(_0x14bcfe,_0x1b6652){return function(){SmsQueueEvents[_0xaaa8('0x2')](_0x14bcfe,_0x1b6652);};}exports[_0xaaa8('0x3')]=function(_0x129431){for(var _0x799a99=0x0,_0x44ad52=events[_0xaaa8('0x4')];_0x799a99<_0x44ad52;_0x799a99++){var _0x38b696=events[_0x799a99];var _0x492f84=createListener(_0xaaa8('0x5')+_0x38b696,_0x129431);SmsQueueEvents['on'](_0x38b696,_0x492f84);}};