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 _0x47a1=['length','smsQueue:','./smsQueue.events','save','remove','removeListener'];(function(_0x1e279b,_0x10a409){var _0x117303=function(_0x5b9f23){while(--_0x5b9f23){_0x1e279b['push'](_0x1e279b['shift']());}};_0x117303(++_0x10a409);}(_0x47a1,0x98));var _0x147a=function(_0x370738,_0x11112a){_0x370738=_0x370738-0x0;var _0xb5f131=_0x47a1[_0x370738];return _0xb5f131;};'use strict';var SmsQueueEvents=require(_0x147a('0x0'));var events=[_0x147a('0x1'),_0x147a('0x2'),'update'];function createListener(_0x53bb76,_0x224d31){return function(_0x1bee92){_0x224d31['emit'](_0x53bb76,_0x1bee92);};}function removeListener(_0x32c355,_0x1e4a71){return function(){SmsQueueEvents[_0x147a('0x3')](_0x32c355,_0x1e4a71);};}exports['register']=function(_0x359f8d){for(var _0x453ade=0x0,_0x4e4523=events[_0x147a('0x4')];_0x453ade<_0x4e4523;_0x453ade++){var _0x42eb2e=events[_0x453ade];var _0x2ac4e3=createListener(_0x147a('0x5')+_0x42eb2e,_0x359f8d);SmsQueueEvents['on'](_0x42eb2e,_0x2ac4e3);}};