Built motion from commit (unavailable).|2.5.22
[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 _0x06e2=['./dashboard.events','save','update','removeListener','register','length','dashboard:'];(function(_0x46997a,_0x559efc){var _0x3c7ca0=function(_0x26547d){while(--_0x26547d){_0x46997a['push'](_0x46997a['shift']());}};_0x3c7ca0(++_0x559efc);}(_0x06e2,0x1d5));var _0x206e=function(_0x4f6ea5,_0xc00e8d){_0x4f6ea5=_0x4f6ea5-0x0;var _0x12b6b8=_0x06e2[_0x4f6ea5];return _0x12b6b8;};'use strict';var DashboardEvents=require(_0x206e('0x0'));var events=[_0x206e('0x1'),'remove',_0x206e('0x2')];function createListener(_0x5a4da2,_0x242a09){return function(_0xdff9e5){_0x242a09['emit'](_0x5a4da2,_0xdff9e5);};}function removeListener(_0x4dabe0,_0x1a22ae){return function(){DashboardEvents[_0x206e('0x3')](_0x4dabe0,_0x1a22ae);};}exports[_0x206e('0x4')]=function(_0x9846f7){for(var _0x4be579=0x0,_0x24c6e0=events[_0x206e('0x5')];_0x4be579<_0x24c6e0;_0x4be579++){var _0x2ed1fb=events[_0x4be579];var _0x26e22b=createListener(_0x206e('0x6')+_0x2ed1fb,_0x9846f7);DashboardEvents['on'](_0x2ed1fb,_0x26e22b);}};