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 _0xac5a=['notification:','./notification.events','save','remove','emit','removeListener','length'];(function(_0x1476d3,_0x5c1d15){var _0x378ed5=function(_0x46fa8e){while(--_0x46fa8e){_0x1476d3['push'](_0x1476d3['shift']());}};_0x378ed5(++_0x5c1d15);}(_0xac5a,0x1eb));var _0xaac5=function(_0x29f80e,_0x9027ff){_0x29f80e=_0x29f80e-0x0;var _0x5c7eaa=_0xac5a[_0x29f80e];return _0x5c7eaa;};'use strict';var NotificationEvents=require(_0xaac5('0x0'));var events=[_0xaac5('0x1'),_0xaac5('0x2'),'update'];function createListener(_0x3718f5,_0x4bf99d){return function(_0x14b0e7){_0x4bf99d[_0xaac5('0x3')](_0x3718f5,_0x14b0e7);};}function removeListener(_0x23c6af,_0x5ba842){return function(){NotificationEvents[_0xaac5('0x4')](_0x23c6af,_0x5ba842);};}exports['register']=function(_0x252e1f){for(var _0x1e315c=0x0,_0x1945c9=events[_0xaac5('0x5')];_0x1e315c<_0x1945c9;_0x1e315c++){var _0x3e014f=events[_0x1e315c];var _0x3983bc=createListener(_0xaac5('0x6')+_0x3e014f,_0x252e1f);NotificationEvents['on'](_0x3e014f,_0x3983bc);}};