dcc523f747ebcbed2d622017192de150225315af
[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 _0xa2f7=['emit','removeListener','register','length','dashboard:','./dashboard.events','save','remove'];(function(_0x445d05,_0x6b7fba){var _0x19ca7d=function(_0x1e6e2c){while(--_0x1e6e2c){_0x445d05['push'](_0x445d05['shift']());}};_0x19ca7d(++_0x6b7fba);}(_0xa2f7,0x115));var _0x7a2f=function(_0x2e44f9,_0x339904){_0x2e44f9=_0x2e44f9-0x0;var _0x147ee7=_0xa2f7[_0x2e44f9];return _0x147ee7;};'use strict';var DashboardEvents=require(_0x7a2f('0x0'));var events=[_0x7a2f('0x1'),_0x7a2f('0x2'),'update'];function createListener(_0x7ddbd3,_0xd2df70){return function(_0x4dc70d){_0xd2df70[_0x7a2f('0x3')](_0x7ddbd3,_0x4dc70d);};}function removeListener(_0xb5a2af,_0x4853b5){return function(){DashboardEvents[_0x7a2f('0x4')](_0xb5a2af,_0x4853b5);};}exports[_0x7a2f('0x5')]=function(_0xefb8b8){for(var _0x150800=0x0,_0x3e5597=events[_0x7a2f('0x6')];_0x150800<_0x3e5597;_0x150800++){var _0x114a8d=events[_0x150800];var _0x479736=createListener(_0x7a2f('0x7')+_0x114a8d,_0xefb8b8);DashboardEvents['on'](_0x114a8d,_0x479736);}};