60817dd5d0e9538f7a20099c34c64d07b8a99609
[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 _0x443f=['emit','removeListener','length','dashboardItem:','save','update'];(function(_0x3d5f06,_0x389c52){var _0x3e2a46=function(_0x2d6f04){while(--_0x2d6f04){_0x3d5f06['push'](_0x3d5f06['shift']());}};_0x3e2a46(++_0x389c52);}(_0x443f,0x1d8));var _0xf443=function(_0x43f2b1,_0x339938){_0x43f2b1=_0x43f2b1-0x0;var _0x4259f9=_0x443f[_0x43f2b1];return _0x4259f9;};'use strict';var DashboardItemEvents=require('./dashboardItem.events');var events=[_0xf443('0x0'),'remove',_0xf443('0x1')];function createListener(_0x196d36,_0x3ce104){return function(_0x586909){_0x3ce104[_0xf443('0x2')](_0x196d36,_0x586909);};}function removeListener(_0x5c6ed4,_0x1847b9){return function(){DashboardItemEvents[_0xf443('0x3')](_0x5c6ed4,_0x1847b9);};}exports['register']=function(_0x6bb2ce){for(var _0x269de3=0x0,_0x230334=events[_0xf443('0x4')];_0x269de3<_0x230334;_0x269de3++){var _0x2545ec=events[_0x269de3];var _0x1c21bd=createListener(_0xf443('0x5')+_0x2545ec,_0x6bb2ce);DashboardItemEvents['on'](_0x2545ec,_0x1c21bd);}};