f1c9d9e59031dbdf4736c0c07788e7306210b07d
[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 _0x231c=['./dashboardItem.events','update','emit','removeListener','register','length','dashboardItem:'];(function(_0x353d3d,_0xc7ebc){var _0x1c5409=function(_0x54838e){while(--_0x54838e){_0x353d3d['push'](_0x353d3d['shift']());}};_0x1c5409(++_0xc7ebc);}(_0x231c,0x13b));var _0xc231=function(_0x12e5f7,_0x4d51bf){_0x12e5f7=_0x12e5f7-0x0;var _0x2c97ee=_0x231c[_0x12e5f7];return _0x2c97ee;};'use strict';var DashboardItemEvents=require(_0xc231('0x0'));var events=['save','remove',_0xc231('0x1')];function createListener(_0x495bdc,_0x110e64){return function(_0x54c597){_0x110e64[_0xc231('0x2')](_0x495bdc,_0x54c597);};}function removeListener(_0x5f307e,_0xc41deb){return function(){DashboardItemEvents[_0xc231('0x3')](_0x5f307e,_0xc41deb);};}exports[_0xc231('0x4')]=function(_0x32757e){for(var _0x32a7f8=0x0,_0xd6a652=events[_0xc231('0x5')];_0x32a7f8<_0xd6a652;_0x32a7f8++){var _0x2102c7=events[_0x32a7f8];var _0x54d91e=createListener(_0xc231('0x6')+_0x2102c7,_0x32757e);DashboardItemEvents['on'](_0x2102c7,_0x54d91e);}};