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 _0x06ab=['length','smsQueue:','./smsQueue.events','save','remove','update','emit'];(function(_0x4840d4,_0x1f243b){var _0x5de5e5=function(_0x300e4c){while(--_0x300e4c){_0x4840d4['push'](_0x4840d4['shift']());}};_0x5de5e5(++_0x1f243b);}(_0x06ab,0xf7));var _0xb06a=function(_0x1ad734,_0x2aa4d5){_0x1ad734=_0x1ad734-0x0;var _0x110c4c=_0x06ab[_0x1ad734];return _0x110c4c;};'use strict';var SmsQueueEvents=require(_0xb06a('0x0'));var events=[_0xb06a('0x1'),_0xb06a('0x2'),_0xb06a('0x3')];function createListener(_0x34331a,_0x328f4e){return function(_0x1fa50f){_0x328f4e[_0xb06a('0x4')](_0x34331a,_0x1fa50f);};}function removeListener(_0x22aeb5,_0x16567b){return function(){SmsQueueEvents['removeListener'](_0x22aeb5,_0x16567b);};}exports['register']=function(_0x4f5c06){for(var _0x30052c=0x0,_0x362273=events[_0xb06a('0x5')];_0x30052c<_0x362273;_0x30052c++){var _0x4a69ec=events[_0x30052c];var _0xccb3dd=createListener(_0xb06a('0x6')+_0x4a69ec,_0x4f5c06);SmsQueueEvents['on'](_0x4a69ec,_0xccb3dd);}};