Built motion from commit (unavailable).|2.5.24
[motion2.git] / server / api / userNotification / userNotification.socket.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0xa4bd=['removeListener','register','length','userNotification:','./userNotification.events','save','remove','emit'];(function(_0x4ddbc1,_0x314a4e){var _0x39db1b=function(_0x2cdcac){while(--_0x2cdcac){_0x4ddbc1['push'](_0x4ddbc1['shift']());}};_0x39db1b(++_0x314a4e);}(_0xa4bd,0x1e4));var _0xda4b=function(_0xdcfc6,_0x52e31e){_0xdcfc6=_0xdcfc6-0x0;var _0x5208d2=_0xa4bd[_0xdcfc6];return _0x5208d2;};'use strict';var UserNotificationEvents=require(_0xda4b('0x0'));var events=[_0xda4b('0x1'),_0xda4b('0x2'),'update'];function createListener(_0x3ee575,_0x1330a5){return function(_0x11c201){_0x1330a5[_0xda4b('0x3')](_0x3ee575,_0x11c201);};}function removeListener(_0x2b900e,_0xc42c1c){return function(){UserNotificationEvents[_0xda4b('0x4')](_0x2b900e,_0xc42c1c);};}exports[_0xda4b('0x5')]=function(_0x3b9c97){for(var _0x3afa0b=0x0,_0x490a68=events[_0xda4b('0x6')];_0x3afa0b<_0x490a68;_0x3afa0b++){var _0x29f805=events[_0x3afa0b];var _0x212d98=createListener(_0xda4b('0x7')+_0x29f805,_0x3b9c97);UserNotificationEvents['on'](_0x29f805,_0x212d98);}};