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 _0xf344=['save','remove','update','removeListener','register','notification:','./notification.events'];(function(_0x417750,_0x36f4e1){var _0x3f193f=function(_0x5cdf25){while(--_0x5cdf25){_0x417750['push'](_0x417750['shift']());}};_0x3f193f(++_0x36f4e1);}(_0xf344,0x172));var _0x4f34=function(_0x5df014,_0x343b29){_0x5df014=_0x5df014-0x0;var _0x3ee41d=_0xf344[_0x5df014];return _0x3ee41d;};'use strict';var NotificationEvents=require(_0x4f34('0x0'));var events=[_0x4f34('0x1'),_0x4f34('0x2'),_0x4f34('0x3')];function createListener(_0x37e241,_0x581a40){return function(_0x582600){_0x581a40['emit'](_0x37e241,_0x582600);};}function removeListener(_0x422730,_0x188890){return function(){NotificationEvents[_0x4f34('0x4')](_0x422730,_0x188890);};}exports[_0x4f34('0x5')]=function(_0x2899b1){for(var _0x585136=0x0,_0x297320=events['length'];_0x585136<_0x297320;_0x585136++){var _0x1dc664=events[_0x585136];var _0x279d6a=createListener(_0x4f34('0x6')+_0x1dc664,_0x2899b1);NotificationEvents['on'](_0x1dc664,_0x279d6a);}};