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 _0x1118=['userNotification:','./userNotification.events','save','remove','emit','removeListener','length'];(function(_0x40efb5,_0x18c786){var _0xf10173=function(_0x5ef8b3){while(--_0x5ef8b3){_0x40efb5['push'](_0x40efb5['shift']());}};_0xf10173(++_0x18c786);}(_0x1118,0x1c1));var _0x8111=function(_0x56ae11,_0x5e7de8){_0x56ae11=_0x56ae11-0x0;var _0x3fc1f0=_0x1118[_0x56ae11];return _0x3fc1f0;};'use strict';var UserNotificationEvents=require(_0x8111('0x0'));var events=[_0x8111('0x1'),_0x8111('0x2'),'update'];function createListener(_0x38204b,_0x4dd179){return function(_0x2a2f05){_0x4dd179[_0x8111('0x3')](_0x38204b,_0x2a2f05);};}function removeListener(_0x147120,_0x1f3ebd){return function(){UserNotificationEvents[_0x8111('0x4')](_0x147120,_0x1f3ebd);};}exports['register']=function(_0x563b94){for(var _0x2ea525=0x0,_0x351cbb=events[_0x8111('0x5')];_0x2ea525<_0x351cbb;_0x2ea525++){var _0x374e6e=events[_0x2ea525];var _0x4d4876=createListener(_0x8111('0x6')+_0x374e6e,_0x563b94);UserNotificationEvents['on'](_0x374e6e,_0x4d4876);}};