Built motion from commit (unavailable).|2.3.4
[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 _0xd8a2=['remove','update','register','dashboard:','./dashboard.events','save'];(function(_0x4f49af,_0x47e992){var _0x28ef1a=function(_0x3b3081){while(--_0x3b3081){_0x4f49af['push'](_0x4f49af['shift']());}};_0x28ef1a(++_0x47e992);}(_0xd8a2,0x1ae));var _0x2d8a=function(_0x3da2e0,_0xc20c7f){_0x3da2e0=_0x3da2e0-0x0;var _0x3b728c=_0xd8a2[_0x3da2e0];return _0x3b728c;};'use strict';var DashboardEvents=require(_0x2d8a('0x0'));var events=[_0x2d8a('0x1'),_0x2d8a('0x2'),_0x2d8a('0x3')];function createListener(_0x1cb19f,_0xc9ab9d){return function(_0x179e7c){_0xc9ab9d['emit'](_0x1cb19f,_0x179e7c);};}function removeListener(_0x47c2ad,_0x41e632){return function(){DashboardEvents['removeListener'](_0x47c2ad,_0x41e632);};}exports[_0x2d8a('0x4')]=function(_0x6ac9c9){for(var _0x76709e=0x0,_0x152bad=events['length'];_0x76709e<_0x152bad;_0x76709e++){var _0x33228a=events[_0x76709e];var _0x59c886=createListener(_0x2d8a('0x5')+_0x33228a,_0x6ac9c9);DashboardEvents['on'](_0x33228a,_0x59c886);}};