5b64ecf6814e1e0d18be246673575cd8fd16e31f
[motion2.git] / server / api / dashboard / dashboard.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 _0x10e6=['remove','emit','removeListener','length','dashboard:','save'];(function(_0x4cf647,_0x518610){var _0x59d578=function(_0x2bb714){while(--_0x2bb714){_0x4cf647['push'](_0x4cf647['shift']());}};_0x59d578(++_0x518610);}(_0x10e6,0x13d));var _0x610e=function(_0x162780,_0x47f2e2){_0x162780=_0x162780-0x0;var _0x1ea2dc=_0x10e6[_0x162780];return _0x1ea2dc;};'use strict';var DashboardEvents=require('./dashboard.events');var events=[_0x610e('0x0'),_0x610e('0x1'),'update'];function createListener(_0x4fbf47,_0x3c8e40){return function(_0x564f04){_0x3c8e40[_0x610e('0x2')](_0x4fbf47,_0x564f04);};}function removeListener(_0x537ec3,_0x4ed2a4){return function(){DashboardEvents[_0x610e('0x3')](_0x537ec3,_0x4ed2a4);};}exports['register']=function(_0xd5c1ba){for(var _0x37ead1=0x0,_0x769bc4=events[_0x610e('0x4')];_0x37ead1<_0x769bc4;_0x37ead1++){var _0x34c457=events[_0x37ead1];var _0xa74ad=createListener(_0x610e('0x5')+_0x34c457,_0xd5c1ba);DashboardEvents['on'](_0x34c457,_0xa74ad);}};