Built motion from commit 753c950e.|2.5.42
[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 _0x2bff=['dashboardItem:','./dashboardItem.events','save','update','emit','removeListener','register','length'];(function(_0x1381c3,_0x51ce78){var _0xbf2638=function(_0x2607b5){while(--_0x2607b5){_0x1381c3['push'](_0x1381c3['shift']());}};_0xbf2638(++_0x51ce78);}(_0x2bff,0xe1));var _0xf2bf=function(_0x19790a,_0x5c73a5){_0x19790a=_0x19790a-0x0;var _0x47d41a=_0x2bff[_0x19790a];return _0x47d41a;};'use strict';var DashboardItemEvents=require(_0xf2bf('0x0'));var events=[_0xf2bf('0x1'),'remove',_0xf2bf('0x2')];function createListener(_0x53148e,_0x3d633e){return function(_0x17aee5){_0x3d633e[_0xf2bf('0x3')](_0x53148e,_0x17aee5);};}function removeListener(_0x723c23,_0x368947){return function(){DashboardItemEvents[_0xf2bf('0x4')](_0x723c23,_0x368947);};}exports[_0xf2bf('0x5')]=function(_0x3b1c28){for(var _0x4fcb88=0x0,_0x547251=events[_0xf2bf('0x6')];_0x4fcb88<_0x547251;_0x4fcb88++){var _0x4ea37d=events[_0x4fcb88];var _0x396c55=createListener(_0xf2bf('0x7')+_0x4ea37d,_0x3b1c28);DashboardItemEvents['on'](_0x4ea37d,_0x396c55);}};