Built motion from commit bab6f49e.|2.6.17
[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 _0xef42=['removeListener','register','length','dashboard:','save','remove','update','emit'];(function(_0x470f24,_0x2436a9){var _0x2c6fc8=function(_0x3ef190){while(--_0x3ef190){_0x470f24['push'](_0x470f24['shift']());}};_0x2c6fc8(++_0x2436a9);}(_0xef42,0x74));var _0x2ef4=function(_0x3eb017,_0x145f85){_0x3eb017=_0x3eb017-0x0;var _0x54f041=_0xef42[_0x3eb017];return _0x54f041;};'use strict';var DashboardEvents=require('./dashboard.events');var events=[_0x2ef4('0x0'),_0x2ef4('0x1'),_0x2ef4('0x2')];function createListener(_0x416580,_0x1a9777){return function(_0x5b1cfa){_0x1a9777[_0x2ef4('0x3')](_0x416580,_0x5b1cfa);};}function removeListener(_0x21984f,_0x3036ab){return function(){DashboardEvents[_0x2ef4('0x4')](_0x21984f,_0x3036ab);};}exports[_0x2ef4('0x5')]=function(_0x33fdec){for(var _0x49b3dd=0x0,_0x31aa22=events[_0x2ef4('0x6')];_0x49b3dd<_0x31aa22;_0x49b3dd++){var _0x1d7b99=events[_0x49b3dd];var _0x3771b3=createListener(_0x2ef4('0x7')+_0x1d7b99,_0x33fdec);DashboardEvents['on'](_0x1d7b99,_0x3771b3);}};