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 _0xdf77=['./userNotification.events','save','update','register','length','userNotification:'];(function(_0x353738,_0x23d396){var _0x336ed8=function(_0x20937f){while(--_0x20937f){_0x353738['push'](_0x353738['shift']());}};_0x336ed8(++_0x23d396);}(_0xdf77,0x174));var _0x7df7=function(_0x3c30a4,_0x152fd6){_0x3c30a4=_0x3c30a4-0x0;var _0x4f3e14=_0xdf77[_0x3c30a4];return _0x4f3e14;};'use strict';var UserNotificationEvents=require(_0x7df7('0x0'));var events=[_0x7df7('0x1'),'remove',_0x7df7('0x2')];function createListener(_0x4791b6,_0x495bc0){return function(_0x55e5d9){_0x495bc0['emit'](_0x4791b6,_0x55e5d9);};}function removeListener(_0x161060,_0x10ae95){return function(){UserNotificationEvents['removeListener'](_0x161060,_0x10ae95);};}exports[_0x7df7('0x3')]=function(_0x2b908e){for(var _0x461dbd=0x0,_0x2fecad=events[_0x7df7('0x4')];_0x461dbd<_0x2fecad;_0x461dbd++){var _0x16f3aa=events[_0x461dbd];var _0x5c114a=createListener(_0x7df7('0x5')+_0x16f3aa,_0x2b908e);UserNotificationEvents['on'](_0x16f3aa,_0x5c114a);}};