53c6ee6483690b6c95ffd1df49f2cdf2de464f9c
[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 _0x9992=['save','remove','emit','removeListener','register','length','./dashboardItem.events'];(function(_0x4cbde1,_0x5785ec){var _0x37d42=function(_0x318af3){while(--_0x318af3){_0x4cbde1['push'](_0x4cbde1['shift']());}};_0x37d42(++_0x5785ec);}(_0x9992,0xd8));var _0x2999=function(_0x592df4,_0x4e719b){_0x592df4=_0x592df4-0x0;var _0x3b4fe4=_0x9992[_0x592df4];return _0x3b4fe4;};'use strict';var DashboardItemEvents=require(_0x2999('0x0'));var events=[_0x2999('0x1'),_0x2999('0x2'),'update'];function createListener(_0x1903ed,_0xd9287a){return function(_0xffc310){_0xd9287a[_0x2999('0x3')](_0x1903ed,_0xffc310);};}function removeListener(_0x76dd1a,_0xbc24c2){return function(){DashboardItemEvents[_0x2999('0x4')](_0x76dd1a,_0xbc24c2);};}exports[_0x2999('0x5')]=function(_0x5cfc35){for(var _0xdd57a4=0x0,_0x671960=events[_0x2999('0x6')];_0xdd57a4<_0x671960;_0xdd57a4++){var _0x258f55=events[_0xdd57a4];var _0x9c2a60=createListener('dashboardItem:'+_0x258f55,_0x5cfc35);DashboardItemEvents['on'](_0x258f55,_0x9c2a60);}};