Built motion from commit 47436d59.|2.6.7
[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 _0x49f1=['save','remove','update','emit','./dashboardItem.events'];(function(_0x36884e,_0x48008f){var _0x1cc367=function(_0x388a78){while(--_0x388a78){_0x36884e['push'](_0x36884e['shift']());}};_0x1cc367(++_0x48008f);}(_0x49f1,0x112));var _0x149f=function(_0x372f27,_0x1395fc){_0x372f27=_0x372f27-0x0;var _0x12b5f4=_0x49f1[_0x372f27];return _0x12b5f4;};'use strict';var DashboardItemEvents=require(_0x149f('0x0'));var events=[_0x149f('0x1'),_0x149f('0x2'),_0x149f('0x3')];function createListener(_0x5eb4b4,_0x116b08){return function(_0xfa87ee){_0x116b08[_0x149f('0x4')](_0x5eb4b4,_0xfa87ee);};}function removeListener(_0x1bfe30,_0x7b11ad){return function(){DashboardItemEvents['removeListener'](_0x1bfe30,_0x7b11ad);};}exports['register']=function(_0x8346c3){for(var _0x1f7993=0x0,_0x111f34=events['length'];_0x1f7993<_0x111f34;_0x1f7993++){var _0x63bfff=events[_0x1f7993];var _0x48d1ea=createListener('dashboardItem:'+_0x63bfff,_0x8346c3);DashboardItemEvents['on'](_0x63bfff,_0x48d1ea);}};