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 _0x2cb8=['removeListener','register','notification:','./notification.events','update','emit'];(function(_0x163083,_0x376de7){var _0x2330ef=function(_0x463fee){while(--_0x463fee){_0x163083['push'](_0x163083['shift']());}};_0x2330ef(++_0x376de7);}(_0x2cb8,0x123));var _0x82cb=function(_0x19c3c7,_0xdd0cff){_0x19c3c7=_0x19c3c7-0x0;var _0x1e6aee=_0x2cb8[_0x19c3c7];return _0x1e6aee;};'use strict';var NotificationEvents=require(_0x82cb('0x0'));var events=['save','remove',_0x82cb('0x1')];function createListener(_0x1bcc52,_0x20108b){return function(_0x42988d){_0x20108b[_0x82cb('0x2')](_0x1bcc52,_0x42988d);};}function removeListener(_0x5e2de3,_0x3be072){return function(){NotificationEvents[_0x82cb('0x3')](_0x5e2de3,_0x3be072);};}exports[_0x82cb('0x4')]=function(_0xea0616){for(var _0x2d3091=0x0,_0x133a0d=events['length'];_0x2d3091<_0x133a0d;_0x2d3091++){var _0x495492=events[_0x2d3091];var _0x7cd526=createListener(_0x82cb('0x5')+_0x495492,_0xea0616);NotificationEvents['on'](_0x495492,_0x7cd526);}};