4856c1d6deb8ca7ed77dfc26a36eb0253209a47d
[motion2.git] / server / api / dashboardItem / dashboardItem.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 _0x82f0=['emit','removeListener','register','length','dashboardItem:','./dashboardItem.events','remove','update'];(function(_0x266e98,_0x597291){var _0x29e243=function(_0x29b00b){while(--_0x29b00b){_0x266e98['push'](_0x266e98['shift']());}};_0x29e243(++_0x597291);}(_0x82f0,0xbd));var _0x082f=function(_0x30ae5e,_0x391fc4){_0x30ae5e=_0x30ae5e-0x0;var _0x1f2e93=_0x82f0[_0x30ae5e];return _0x1f2e93;};'use strict';var DashboardItemEvents=require(_0x082f('0x0'));var events=['save',_0x082f('0x1'),_0x082f('0x2')];function createListener(_0x553413,_0x1756de){return function(_0x1e2ed2){_0x1756de[_0x082f('0x3')](_0x553413,_0x1e2ed2);};}function removeListener(_0x93be9a,_0x4133b6){return function(){DashboardItemEvents[_0x082f('0x4')](_0x93be9a,_0x4133b6);};}exports[_0x082f('0x5')]=function(_0x5dc066){for(var _0x885924=0x0,_0x2e68d3=events[_0x082f('0x6')];_0x885924<_0x2e68d3;_0x885924++){var _0x2d1e4e=events[_0x885924];var _0x46c5ad=createListener(_0x082f('0x7')+_0x2d1e4e,_0x5dc066);DashboardItemEvents['on'](_0x2d1e4e,_0x46c5ad);}};