93d8fe6cd7928ece58fd62e62aa208e069d829ef
[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 _0x3c68=['remove','update','emit','removeListener','register','length','dashboard:','./dashboard.events','save'];(function(_0x104513,_0x166e91){var _0x59600d=function(_0x3fac2f){while(--_0x3fac2f){_0x104513['push'](_0x104513['shift']());}};_0x59600d(++_0x166e91);}(_0x3c68,0x10c));var _0x83c6=function(_0x4a63d9,_0x2e32e1){_0x4a63d9=_0x4a63d9-0x0;var _0xca3ba0=_0x3c68[_0x4a63d9];return _0xca3ba0;};'use strict';var DashboardEvents=require(_0x83c6('0x0'));var events=[_0x83c6('0x1'),_0x83c6('0x2'),_0x83c6('0x3')];function createListener(_0xc135a5,_0x2dc4f5){return function(_0x43f17f){_0x2dc4f5[_0x83c6('0x4')](_0xc135a5,_0x43f17f);};}function removeListener(_0x4f04c9,_0x31dfae){return function(){DashboardEvents[_0x83c6('0x5')](_0x4f04c9,_0x31dfae);};}exports[_0x83c6('0x6')]=function(_0x59e973){for(var _0x49b4c4=0x0,_0x5021be=events[_0x83c6('0x7')];_0x49b4c4<_0x5021be;_0x49b4c4++){var _0x1792de=events[_0x49b4c4];var _0x35f537=createListener(_0x83c6('0x8')+_0x1792de,_0x59e973);DashboardEvents['on'](_0x1792de,_0x35f537);}};