Built motion from commit (unavailable).|2.5.10
[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 _0x122b=['save','update','emit','removeListener','register','length','dashboard:','./dashboard.events'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x122b,0xb7));var _0xb122=function(_0x178e48,_0x3c9509){_0x178e48=_0x178e48-0x0;var _0x440d7e=_0x122b[_0x178e48];return _0x440d7e;};'use strict';var DashboardEvents=require(_0xb122('0x0'));var events=[_0xb122('0x1'),'remove',_0xb122('0x2')];function createListener(_0x2dbdc4,_0x1f66c4){return function(_0x3a0de4){_0x1f66c4[_0xb122('0x3')](_0x2dbdc4,_0x3a0de4);};}function removeListener(_0x8844d7,_0x342e46){return function(){DashboardEvents[_0xb122('0x4')](_0x8844d7,_0x342e46);};}exports[_0xb122('0x5')]=function(_0x553692){for(var _0x160eb4=0x0,_0x24cf6c=events[_0xb122('0x6')];_0x160eb4<_0x24cf6c;_0x160eb4++){var _0x224761=events[_0x160eb4];var _0x20157d=createListener(_0xb122('0x7')+_0x224761,_0x553692);DashboardEvents['on'](_0x224761,_0x20157d);}};