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 _0xed7c=['./userNotification.events','save','remove','update','register','userNotification:'];(function(_0x17e915,_0x3ba4e0){var _0x4e91da=function(_0x3848b5){while(--_0x3848b5){_0x17e915['push'](_0x17e915['shift']());}};_0x4e91da(++_0x3ba4e0);}(_0xed7c,0x13e));var _0xced7=function(_0x436ebe,_0x53045c){_0x436ebe=_0x436ebe-0x0;var _0x3a282=_0xed7c[_0x436ebe];return _0x3a282;};'use strict';var UserNotificationEvents=require(_0xced7('0x0'));var events=[_0xced7('0x1'),_0xced7('0x2'),_0xced7('0x3')];function createListener(_0x58ef8c,_0x263211){return function(_0x1af0d0){_0x263211['emit'](_0x58ef8c,_0x1af0d0);};}function removeListener(_0x29fdfa,_0x3e51f5){return function(){UserNotificationEvents['removeListener'](_0x29fdfa,_0x3e51f5);};}exports[_0xced7('0x4')]=function(_0x1a8de1){for(var _0x52ad55=0x0,_0x3f5fc7=events['length'];_0x52ad55<_0x3f5fc7;_0x52ad55++){var _0x295623=events[_0x52ad55];var _0x42cc2e=createListener(_0xced7('0x5')+_0x295623,_0x1a8de1);UserNotificationEvents['on'](_0x295623,_0x42cc2e);}};