Built motion from commit d5e4af8c.|2.6.23
[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 _0x55f9=['dashboard:','./dashboard.events','save','remove','update','emit','removeListener','register','length'];(function(_0x8980,_0x3e943b){var _0x3491a6=function(_0x1acbf3){while(--_0x1acbf3){_0x8980['push'](_0x8980['shift']());}};_0x3491a6(++_0x3e943b);}(_0x55f9,0xa3));var _0x955f=function(_0x5a2e46,_0x3b4094){_0x5a2e46=_0x5a2e46-0x0;var _0x33bdbf=_0x55f9[_0x5a2e46];return _0x33bdbf;};'use strict';var DashboardEvents=require(_0x955f('0x0'));var events=[_0x955f('0x1'),_0x955f('0x2'),_0x955f('0x3')];function createListener(_0x100857,_0x15f2c1){return function(_0x26560f){_0x15f2c1[_0x955f('0x4')](_0x100857,_0x26560f);};}function removeListener(_0x1cab26,_0x10b31a){return function(){DashboardEvents[_0x955f('0x5')](_0x1cab26,_0x10b31a);};}exports[_0x955f('0x6')]=function(_0x237bf7){for(var _0x1305d1=0x0,_0x480037=events[_0x955f('0x7')];_0x1305d1<_0x480037;_0x1305d1++){var _0xf813a8=events[_0x1305d1];var _0x19777c=createListener(_0x955f('0x8')+_0xf813a8,_0x237bf7);DashboardEvents['on'](_0xf813a8,_0x19777c);}};