Built motion from commit c738b9ac.|2.6.25
[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 _0x3a7d=['register','length','dashboard:','./dashboard.events','save','remove','emit','removeListener'];(function(_0x2327ee,_0x375626){var _0x43737=function(_0x2d2006){while(--_0x2d2006){_0x2327ee['push'](_0x2327ee['shift']());}};_0x43737(++_0x375626);}(_0x3a7d,0x7b));var _0xd3a7=function(_0x39f675,_0x2f957d){_0x39f675=_0x39f675-0x0;var _0x365060=_0x3a7d[_0x39f675];return _0x365060;};'use strict';var DashboardEvents=require(_0xd3a7('0x0'));var events=[_0xd3a7('0x1'),_0xd3a7('0x2'),'update'];function createListener(_0x18b9cc,_0x2b0ac0){return function(_0x1c7efc){_0x2b0ac0[_0xd3a7('0x3')](_0x18b9cc,_0x1c7efc);};}function removeListener(_0x10baa5,_0x658d35){return function(){DashboardEvents[_0xd3a7('0x4')](_0x10baa5,_0x658d35);};}exports[_0xd3a7('0x5')]=function(_0x2d77a6){for(var _0x2e967c=0x0,_0x5ac74b=events[_0xd3a7('0x6')];_0x2e967c<_0x5ac74b;_0x2e967c++){var _0x4afbe2=events[_0x2e967c];var _0xf9be8a=createListener(_0xd3a7('0x7')+_0x4afbe2,_0x2d77a6);DashboardEvents['on'](_0x4afbe2,_0xf9be8a);}};