Built motion from commit (unavailable).|2.5.0
[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 _0xe57c=['update','removeListener','register','./dashboard.events'];(function(_0x3ecc86,_0x4df963){var _0x2d3d31=function(_0x1e34c0){while(--_0x1e34c0){_0x3ecc86['push'](_0x3ecc86['shift']());}};_0x2d3d31(++_0x4df963);}(_0xe57c,0x1c3));var _0xce57=function(_0x426bb9,_0x2bea77){_0x426bb9=_0x426bb9-0x0;var _0x500938=_0xe57c[_0x426bb9];return _0x500938;};'use strict';var DashboardEvents=require(_0xce57('0x0'));var events=['save','remove',_0xce57('0x1')];function createListener(_0x43827c,_0x22025c){return function(_0x599fc8){_0x22025c['emit'](_0x43827c,_0x599fc8);};}function removeListener(_0x500707,_0x53ba09){return function(){DashboardEvents[_0xce57('0x2')](_0x500707,_0x53ba09);};}exports[_0xce57('0x3')]=function(_0x3377e4){for(var _0x49933b=0x0,_0x19c8bc=events['length'];_0x49933b<_0x19c8bc;_0x49933b++){var _0x267327=events[_0x49933b];var _0x141615=createListener('dashboard:'+_0x267327,_0x3377e4);DashboardEvents['on'](_0x267327,_0x141615);}};