Built motion from commit c116dc8b.|2.6.30
[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 _0xcc86=['length','dashboard:','save','remove','update','emit','removeListener'];(function(_0x3975e5,_0x3f0aee){var _0x30baff=function(_0x59b826){while(--_0x59b826){_0x3975e5['push'](_0x3975e5['shift']());}};_0x30baff(++_0x3f0aee);}(_0xcc86,0xf0));var _0x6cc8=function(_0x12973c,_0xa02ab6){_0x12973c=_0x12973c-0x0;var _0x365ef7=_0xcc86[_0x12973c];return _0x365ef7;};'use strict';var DashboardEvents=require('./dashboard.events');var events=[_0x6cc8('0x0'),_0x6cc8('0x1'),_0x6cc8('0x2')];function createListener(_0x283f45,_0x2ae3e7){return function(_0x43f310){_0x2ae3e7[_0x6cc8('0x3')](_0x283f45,_0x43f310);};}function removeListener(_0x466cec,_0x2aaf66){return function(){DashboardEvents[_0x6cc8('0x4')](_0x466cec,_0x2aaf66);};}exports['register']=function(_0x52c701){for(var _0x51f867=0x0,_0x715965=events[_0x6cc8('0x5')];_0x51f867<_0x715965;_0x51f867++){var _0x45749e=events[_0x51f867];var _0x365eb8=createListener(_0x6cc8('0x6')+_0x45749e,_0x52c701);DashboardEvents['on'](_0x45749e,_0x365eb8);}};