cb7eb17669951618ddc8905b2d0c8bad6399ead7
[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 _0x9e1c=['save','update','emit','register','length','./dashboardItem.events'];(function(_0x1e8bc2,_0x4de6d7){var _0x5e9654=function(_0xc4a9bc){while(--_0xc4a9bc){_0x1e8bc2['push'](_0x1e8bc2['shift']());}};_0x5e9654(++_0x4de6d7);}(_0x9e1c,0x161));var _0xc9e1=function(_0x537a79,_0x1f569e){_0x537a79=_0x537a79-0x0;var _0x42de13=_0x9e1c[_0x537a79];return _0x42de13;};'use strict';var DashboardItemEvents=require(_0xc9e1('0x0'));var events=[_0xc9e1('0x1'),'remove',_0xc9e1('0x2')];function createListener(_0x3aeeab,_0x43b2b4){return function(_0x17fb27){_0x43b2b4[_0xc9e1('0x3')](_0x3aeeab,_0x17fb27);};}function removeListener(_0x2509c7,_0x1e8946){return function(){DashboardItemEvents['removeListener'](_0x2509c7,_0x1e8946);};}exports[_0xc9e1('0x4')]=function(_0x5a381d){for(var _0x306450=0x0,_0x13aa4d=events[_0xc9e1('0x5')];_0x306450<_0x13aa4d;_0x306450++){var _0x5425ae=events[_0x306450];var _0x2956d9=createListener('dashboardItem:'+_0x5425ae,_0x5a381d);DashboardItemEvents['on'](_0x5425ae,_0x2956d9);}};