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 _0xb001=['emit','removeListener','register','length','notification:','./notification.events','save','remove'];(function(_0x45f249,_0x2a14bd){var _0x13a6b1=function(_0x2c4240){while(--_0x2c4240){_0x45f249['push'](_0x45f249['shift']());}};_0x13a6b1(++_0x2a14bd);}(_0xb001,0x8d));var _0x1b00=function(_0x4d613c,_0x55f220){_0x4d613c=_0x4d613c-0x0;var _0x301fe3=_0xb001[_0x4d613c];return _0x301fe3;};'use strict';var NotificationEvents=require(_0x1b00('0x0'));var events=[_0x1b00('0x1'),_0x1b00('0x2'),'update'];function createListener(_0x5a1037,_0x315766){return function(_0x397f20){_0x315766[_0x1b00('0x3')](_0x5a1037,_0x397f20);};}function removeListener(_0x5255e5,_0x1e8276){return function(){NotificationEvents[_0x1b00('0x4')](_0x5255e5,_0x1e8276);};}exports[_0x1b00('0x5')]=function(_0x31764f){for(var _0x5010a0=0x0,_0x52e688=events[_0x1b00('0x6')];_0x5010a0<_0x52e688;_0x5010a0++){var _0x2034f8=events[_0x5010a0];var _0x1640c3=createListener(_0x1b00('0x7')+_0x2034f8,_0x31764f);NotificationEvents['on'](_0x2034f8,_0x1640c3);}};