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 _0x1f92=['smsQueue:','save','remove','emit','removeListener','length'];(function(_0x538286,_0x2f1b5d){var _0x21d076=function(_0x1332ac){while(--_0x1332ac){_0x538286['push'](_0x538286['shift']());}};_0x21d076(++_0x2f1b5d);}(_0x1f92,0x1a5));var _0x21f9=function(_0x5d09c8,_0x29a815){_0x5d09c8=_0x5d09c8-0x0;var _0x630853=_0x1f92[_0x5d09c8];return _0x630853;};'use strict';var SmsQueueEvents=require('./smsQueue.events');var events=[_0x21f9('0x0'),_0x21f9('0x1'),'update'];function createListener(_0x4d8536,_0x5ae767){return function(_0x40978f){_0x5ae767[_0x21f9('0x2')](_0x4d8536,_0x40978f);};}function removeListener(_0x257ba0,_0x43d0a5){return function(){SmsQueueEvents[_0x21f9('0x3')](_0x257ba0,_0x43d0a5);};}exports['register']=function(_0x20ce94){for(var _0x1dcc42=0x0,_0x7a695c=events[_0x21f9('0x4')];_0x1dcc42<_0x7a695c;_0x1dcc42++){var _0x23f365=events[_0x1dcc42];var _0x342820=createListener(_0x21f9('0x5')+_0x23f365,_0x20ce94);SmsQueueEvents['on'](_0x23f365,_0x342820);}};