Built motion from commit e0fa946e.|2.6.5
[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 _0xe8fe=['save','update','emit','removeListener','register','dashboardItem:'];(function(_0x1f875e,_0x300fce){var _0x57b3f7=function(_0x4a1509){while(--_0x4a1509){_0x1f875e['push'](_0x1f875e['shift']());}};_0x57b3f7(++_0x300fce);}(_0xe8fe,0x192));var _0xee8f=function(_0x5090d4,_0x1950a7){_0x5090d4=_0x5090d4-0x0;var _0x56c310=_0xe8fe[_0x5090d4];return _0x56c310;};'use strict';var DashboardItemEvents=require('./dashboardItem.events');var events=[_0xee8f('0x0'),'remove',_0xee8f('0x1')];function createListener(_0x2c9953,_0x558f9f){return function(_0xc7ef56){_0x558f9f[_0xee8f('0x2')](_0x2c9953,_0xc7ef56);};}function removeListener(_0x2f790d,_0x11f15b){return function(){DashboardItemEvents[_0xee8f('0x3')](_0x2f790d,_0x11f15b);};}exports[_0xee8f('0x4')]=function(_0x1062f0){for(var _0x3741a0=0x0,_0xa8eb2c=events['length'];_0x3741a0<_0xa8eb2c;_0x3741a0++){var _0x37384e=events[_0x3741a0];var _0x1e5abb=createListener(_0xee8f('0x5')+_0x37384e,_0x1062f0);DashboardItemEvents['on'](_0x37384e,_0x1e5abb);}};