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 _0x5e22=['removeListener','register','notification:','./notification.events','save','remove','update'];(function(_0xc4298f,_0x5488e4){var _0x2926be=function(_0x4f1ae0){while(--_0x4f1ae0){_0xc4298f['push'](_0xc4298f['shift']());}};_0x2926be(++_0x5488e4);}(_0x5e22,0x1d8));var _0x25e2=function(_0x2261ce,_0x9ed8b6){_0x2261ce=_0x2261ce-0x0;var _0x524640=_0x5e22[_0x2261ce];return _0x524640;};'use strict';var NotificationEvents=require(_0x25e2('0x0'));var events=[_0x25e2('0x1'),_0x25e2('0x2'),_0x25e2('0x3')];function createListener(_0x21715b,_0x303652){return function(_0x7d8fee){_0x303652['emit'](_0x21715b,_0x7d8fee);};}function removeListener(_0x25350f,_0x68bb24){return function(){NotificationEvents[_0x25e2('0x4')](_0x25350f,_0x68bb24);};}exports[_0x25e2('0x5')]=function(_0x6922f2){for(var _0x32e58f=0x0,_0xf849cb=events['length'];_0x32e58f<_0xf849cb;_0x32e58f++){var _0x11341b=events[_0x32e58f];var _0x305b7d=createListener(_0x25e2('0x6')+_0x11341b,_0x6922f2);NotificationEvents['on'](_0x11341b,_0x305b7d);}};