Built motion from commit (unavailable).|2.5.15
[motion2.git] / server / api / notification / notification.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 _0x55e0=['notification:','./notification.events','remove','emit','removeListener'];(function(_0x3fcc20,_0x57c31b){var _0x15d3ce=function(_0x575619){while(--_0x575619){_0x3fcc20['push'](_0x3fcc20['shift']());}};_0x15d3ce(++_0x57c31b);}(_0x55e0,0xd8));var _0x055e=function(_0x5b474c,_0x53a6e5){_0x5b474c=_0x5b474c-0x0;var _0x6f3112=_0x55e0[_0x5b474c];return _0x6f3112;};'use strict';var NotificationEvents=require(_0x055e('0x0'));var events=['save',_0x055e('0x1'),'update'];function createListener(_0x18c9de,_0xa2e65d){return function(_0x540219){_0xa2e65d[_0x055e('0x2')](_0x18c9de,_0x540219);};}function removeListener(_0x193d1b,_0x267f28){return function(){NotificationEvents[_0x055e('0x3')](_0x193d1b,_0x267f28);};}exports['register']=function(_0x504ae4){for(var _0x299414=0x0,_0x1b9281=events['length'];_0x299414<_0x1b9281;_0x299414++){var _0x2887e2=events[_0x299414];var _0x4305e2=createListener(_0x055e('0x4')+_0x2887e2,_0x504ae4);NotificationEvents['on'](_0x2887e2,_0x4305e2);}};