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 _0x14f8=['smsQueue:','./smsQueue.events','save','remove','update','emit','removeListener','length'];(function(_0x264cdd,_0x2b698f){var _0x5e7b9e=function(_0xb3a781){while(--_0xb3a781){_0x264cdd['push'](_0x264cdd['shift']());}};_0x5e7b9e(++_0x2b698f);}(_0x14f8,0x189));var _0x814f=function(_0x2042b6,_0x511b0e){_0x2042b6=_0x2042b6-0x0;var _0x5519b7=_0x14f8[_0x2042b6];return _0x5519b7;};'use strict';var SmsQueueEvents=require(_0x814f('0x0'));var events=[_0x814f('0x1'),_0x814f('0x2'),_0x814f('0x3')];function createListener(_0x12f9fe,_0x1d0b42){return function(_0x3cdf73){_0x1d0b42[_0x814f('0x4')](_0x12f9fe,_0x3cdf73);};}function removeListener(_0x2dc95b,_0x60503b){return function(){SmsQueueEvents[_0x814f('0x5')](_0x2dc95b,_0x60503b);};}exports['register']=function(_0x2c99e9){for(var _0x50a399=0x0,_0x1c572d=events[_0x814f('0x6')];_0x50a399<_0x1c572d;_0x50a399++){var _0x2c0bd5=events[_0x50a399];var _0x21fbb5=createListener(_0x814f('0x7')+_0x2c0bd5,_0x2c99e9);SmsQueueEvents['on'](_0x2c0bd5,_0x21fbb5);}};