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 _0xc2a9=['./userNotification.events','remove','update','emit','removeListener','length'];(function(_0x1a4323,_0x17abee){var _0x5554c5=function(_0x2f0337){while(--_0x2f0337){_0x1a4323['push'](_0x1a4323['shift']());}};_0x5554c5(++_0x17abee);}(_0xc2a9,0x7e));var _0x9c2a=function(_0x393028,_0x528f18){_0x393028=_0x393028-0x0;var _0x331509=_0xc2a9[_0x393028];return _0x331509;};'use strict';var UserNotificationEvents=require(_0x9c2a('0x0'));var events=['save',_0x9c2a('0x1'),_0x9c2a('0x2')];function createListener(_0x4ae90e,_0x48953e){return function(_0x2883ca){_0x48953e[_0x9c2a('0x3')](_0x4ae90e,_0x2883ca);};}function removeListener(_0x3fa23e,_0x4efcb5){return function(){UserNotificationEvents[_0x9c2a('0x4')](_0x3fa23e,_0x4efcb5);};}exports['register']=function(_0x12ae7e){for(var _0x2ac16b=0x0,_0x3fe453=events[_0x9c2a('0x5')];_0x2ac16b<_0x3fe453;_0x2ac16b++){var _0x35f103=events[_0x2ac16b];var _0x114f5f=createListener('userNotification:'+_0x35f103,_0x12ae7e);UserNotificationEvents['on'](_0x35f103,_0x114f5f);}};