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 _0x37a4=['removeListener','length','smsQueue:','save','update','emit'];(function(_0x23257e,_0x108e5b){var _0x41199a=function(_0x11464b){while(--_0x11464b){_0x23257e['push'](_0x23257e['shift']());}};_0x41199a(++_0x108e5b);}(_0x37a4,0x1dd));var _0x437a=function(_0x379ad8,_0x13c7e3){_0x379ad8=_0x379ad8-0x0;var _0x11a862=_0x37a4[_0x379ad8];return _0x11a862;};'use strict';var SmsQueueEvents=require('./smsQueue.events');var events=[_0x437a('0x0'),'remove',_0x437a('0x1')];function createListener(_0x47b4de,_0x1afddc){return function(_0x5828ed){_0x1afddc[_0x437a('0x2')](_0x47b4de,_0x5828ed);};}function removeListener(_0x452d46,_0x29526b){return function(){SmsQueueEvents[_0x437a('0x3')](_0x452d46,_0x29526b);};}exports['register']=function(_0x23d365){for(var _0x7b4b34=0x0,_0xe77051=events[_0x437a('0x4')];_0x7b4b34<_0xe77051;_0x7b4b34++){var _0x5de36f=events[_0x7b4b34];var _0x5a6155=createListener(_0x437a('0x5')+_0x5de36f,_0x23d365);SmsQueueEvents['on'](_0x5de36f,_0x5a6155);}};