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 _0xb2e0=['emit','removeListener','register','length','./userNotification.events','save','remove','update'];(function(_0x473f1d,_0x304c77){var _0x249482=function(_0x55c607){while(--_0x55c607){_0x473f1d['push'](_0x473f1d['shift']());}};_0x249482(++_0x304c77);}(_0xb2e0,0x1ac));var _0x0b2e=function(_0x1dbdc5,_0xe577fa){_0x1dbdc5=_0x1dbdc5-0x0;var _0x12dc3c=_0xb2e0[_0x1dbdc5];return _0x12dc3c;};'use strict';var UserNotificationEvents=require(_0x0b2e('0x0'));var events=[_0x0b2e('0x1'),_0x0b2e('0x2'),_0x0b2e('0x3')];function createListener(_0x128ac7,_0xc7b732){return function(_0x4f6426){_0xc7b732[_0x0b2e('0x4')](_0x128ac7,_0x4f6426);};}function removeListener(_0x447371,_0x25676e){return function(){UserNotificationEvents[_0x0b2e('0x5')](_0x447371,_0x25676e);};}exports[_0x0b2e('0x6')]=function(_0x27151e){for(var _0x4db7ee=0x0,_0x255b59=events[_0x0b2e('0x7')];_0x4db7ee<_0x255b59;_0x4db7ee++){var _0xfdbefc=events[_0x4db7ee];var _0x3b3b5e=createListener('userNotification:'+_0xfdbefc,_0x27151e);UserNotificationEvents['on'](_0xfdbefc,_0x3b3b5e);}};