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 _0xc850=['register','./userNotification.events','remove','emit'];(function(_0x4926f5,_0x110796){var _0x1f076d=function(_0x4801c4){while(--_0x4801c4){_0x4926f5['push'](_0x4926f5['shift']());}};_0x1f076d(++_0x110796);}(_0xc850,0xfd));var _0x0c85=function(_0x500a1f,_0x14745f){_0x500a1f=_0x500a1f-0x0;var _0x2f5bd7=_0xc850[_0x500a1f];return _0x2f5bd7;};'use strict';var UserNotificationEvents=require(_0x0c85('0x0'));var events=['save',_0x0c85('0x1'),'update'];function createListener(_0x450ec6,_0xf4618){return function(_0x431b11){_0xf4618[_0x0c85('0x2')](_0x450ec6,_0x431b11);};}function removeListener(_0x2916bc,_0x732728){return function(){UserNotificationEvents['removeListener'](_0x2916bc,_0x732728);};}exports[_0x0c85('0x3')]=function(_0x187d33){for(var _0x5496cc=0x0,_0x2fec74=events['length'];_0x5496cc<_0x2fec74;_0x5496cc++){var _0x37a91a=events[_0x5496cc];var _0x40b82d=createListener('userNotification:'+_0x37a91a,_0x187d33);UserNotificationEvents['on'](_0x37a91a,_0x40b82d);}};