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 _0x8ed2=['register','length','smsQueue:','./smsQueue.events','save','update','emit','removeListener'];(function(_0x4eeba5,_0x3c5738){var _0x22fe8a=function(_0x85cda0){while(--_0x85cda0){_0x4eeba5['push'](_0x4eeba5['shift']());}};_0x22fe8a(++_0x3c5738);}(_0x8ed2,0x153));var _0x28ed=function(_0x1219ad,_0xf41743){_0x1219ad=_0x1219ad-0x0;var _0x491958=_0x8ed2[_0x1219ad];return _0x491958;};'use strict';var SmsQueueEvents=require(_0x28ed('0x0'));var events=[_0x28ed('0x1'),'remove',_0x28ed('0x2')];function createListener(_0x3c8192,_0x302c19){return function(_0x44b05b){_0x302c19[_0x28ed('0x3')](_0x3c8192,_0x44b05b);};}function removeListener(_0x4fcd2f,_0x565084){return function(){SmsQueueEvents[_0x28ed('0x4')](_0x4fcd2f,_0x565084);};}exports[_0x28ed('0x5')]=function(_0x360e10){for(var _0xf1e3fb=0x0,_0x2da350=events[_0x28ed('0x6')];_0xf1e3fb<_0x2da350;_0xf1e3fb++){var _0x4c8073=events[_0xf1e3fb];var _0x3768f6=createListener(_0x28ed('0x7')+_0x4c8073,_0x360e10);SmsQueueEvents['on'](_0x4c8073,_0x3768f6);}};