Built motion from commit 96f8de6d.|2.6.3
[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 _0x2f1e=['length','dashboard:','save','remove','update','emit','removeListener','register'];(function(_0x21d320,_0x30a345){var _0x2fadaf=function(_0x433b7e){while(--_0x433b7e){_0x21d320['push'](_0x21d320['shift']());}};_0x2fadaf(++_0x30a345);}(_0x2f1e,0x72));var _0xe2f1=function(_0xfaf19d,_0x57304b){_0xfaf19d=_0xfaf19d-0x0;var _0x14a9d9=_0x2f1e[_0xfaf19d];return _0x14a9d9;};'use strict';var DashboardEvents=require('./dashboard.events');var events=[_0xe2f1('0x0'),_0xe2f1('0x1'),_0xe2f1('0x2')];function createListener(_0x20aa82,_0x89fe9b){return function(_0x338c9d){_0x89fe9b[_0xe2f1('0x3')](_0x20aa82,_0x338c9d);};}function removeListener(_0x5d99b5,_0x585736){return function(){DashboardEvents[_0xe2f1('0x4')](_0x5d99b5,_0x585736);};}exports[_0xe2f1('0x5')]=function(_0xab2c56){for(var _0x35344e=0x0,_0x344fa5=events[_0xe2f1('0x6')];_0x35344e<_0x344fa5;_0x35344e++){var _0x26cf00=events[_0x35344e];var _0x573633=createListener(_0xe2f1('0x7')+_0x26cf00,_0xab2c56);DashboardEvents['on'](_0x26cf00,_0x573633);}};