Built motion from commit (unavailable).|2.5.29
[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 _0x598a=['save','remove','update','removeListener','register','userNotification:','./userNotification.events'];(function(_0x10d34b,_0x4fef76){var _0x92b0bf=function(_0x16e291){while(--_0x16e291){_0x10d34b['push'](_0x10d34b['shift']());}};_0x92b0bf(++_0x4fef76);}(_0x598a,0xfb));var _0xa598=function(_0x5f0872,_0x404069){_0x5f0872=_0x5f0872-0x0;var _0x159807=_0x598a[_0x5f0872];return _0x159807;};'use strict';var UserNotificationEvents=require(_0xa598('0x0'));var events=[_0xa598('0x1'),_0xa598('0x2'),_0xa598('0x3')];function createListener(_0x414db5,_0x4d3555){return function(_0x3a2794){_0x4d3555['emit'](_0x414db5,_0x3a2794);};}function removeListener(_0x4958fc,_0x4a1f8d){return function(){UserNotificationEvents[_0xa598('0x4')](_0x4958fc,_0x4a1f8d);};}exports[_0xa598('0x5')]=function(_0x41ebaa){for(var _0x2b0ef0=0x0,_0xc65a6c=events['length'];_0x2b0ef0<_0xc65a6c;_0x2b0ef0++){var _0x51fa08=events[_0x2b0ef0];var _0x4279e3=createListener(_0xa598('0x6')+_0x51fa08,_0x41ebaa);UserNotificationEvents['on'](_0x51fa08,_0x4279e3);}};