Built motion from commit 9d1906d1.|2.5.40
[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 _0x98cf=['emit','register','length','dashboard:','remove'];(function(_0x5eb564,_0xdfc93){var _0x5958e1=function(_0x3f3757){while(--_0x3f3757){_0x5eb564['push'](_0x5eb564['shift']());}};_0x5958e1(++_0xdfc93);}(_0x98cf,0xae));var _0xf98c=function(_0xb00d6b,_0x50e403){_0xb00d6b=_0xb00d6b-0x0;var _0x3010d5=_0x98cf[_0xb00d6b];return _0x3010d5;};'use strict';var DashboardEvents=require('./dashboard.events');var events=['save',_0xf98c('0x0'),'update'];function createListener(_0x59386a,_0x533d16){return function(_0xa23d80){_0x533d16[_0xf98c('0x1')](_0x59386a,_0xa23d80);};}function removeListener(_0x121f46,_0x1955ca){return function(){DashboardEvents['removeListener'](_0x121f46,_0x1955ca);};}exports[_0xf98c('0x2')]=function(_0x241387){for(var _0x1092c2=0x0,_0x3b5a31=events[_0xf98c('0x3')];_0x1092c2<_0x3b5a31;_0x1092c2++){var _0x5a9ad4=events[_0x1092c2];var _0x94bde1=createListener(_0xf98c('0x4')+_0x5a9ad4,_0x241387);DashboardEvents['on'](_0x5a9ad4,_0x94bde1);}};