Built motion from commit c738b9ac.|2.6.25
[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 _0xb1f1=['remove','update','emit','dashboardItem:','./dashboardItem.events'];(function(_0x303e4a,_0x15b625){var _0x320909=function(_0x4647be){while(--_0x4647be){_0x303e4a['push'](_0x303e4a['shift']());}};_0x320909(++_0x15b625);}(_0xb1f1,0x162));var _0x1b1f=function(_0x3b5250,_0x7a0b2c){_0x3b5250=_0x3b5250-0x0;var _0xc844a1=_0xb1f1[_0x3b5250];return _0xc844a1;};'use strict';var DashboardItemEvents=require(_0x1b1f('0x0'));var events=['save',_0x1b1f('0x1'),_0x1b1f('0x2')];function createListener(_0x13dd9f,_0x5350dc){return function(_0x4c75f3){_0x5350dc[_0x1b1f('0x3')](_0x13dd9f,_0x4c75f3);};}function removeListener(_0x4de4f8,_0x109888){return function(){DashboardItemEvents['removeListener'](_0x4de4f8,_0x109888);};}exports['register']=function(_0x176cd0){for(var _0x1825fd=0x0,_0x2072b1=events['length'];_0x1825fd<_0x2072b1;_0x1825fd++){var _0x55aab8=events[_0x1825fd];var _0x4967ab=createListener(_0x1b1f('0x4')+_0x55aab8,_0x176cd0);DashboardItemEvents['on'](_0x55aab8,_0x4967ab);}};