Built motion from commit bab6f49e.|2.6.17
[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 _0xc5d5=['update','emit','register','length','dashboardItem:','./dashboardItem.events','remove'];(function(_0x37851e,_0x13765c){var _0x5af6be=function(_0x2777a2){while(--_0x2777a2){_0x37851e['push'](_0x37851e['shift']());}};_0x5af6be(++_0x13765c);}(_0xc5d5,0x178));var _0x5c5d=function(_0x1c7f13,_0x1a5fff){_0x1c7f13=_0x1c7f13-0x0;var _0x5739d2=_0xc5d5[_0x1c7f13];return _0x5739d2;};'use strict';var DashboardItemEvents=require(_0x5c5d('0x0'));var events=['save',_0x5c5d('0x1'),_0x5c5d('0x2')];function createListener(_0xb0ed7e,_0x26a7a6){return function(_0x588a0e){_0x26a7a6[_0x5c5d('0x3')](_0xb0ed7e,_0x588a0e);};}function removeListener(_0x499936,_0x16e40e){return function(){DashboardItemEvents['removeListener'](_0x499936,_0x16e40e);};}exports[_0x5c5d('0x4')]=function(_0x28ae97){for(var _0x1ea287=0x0,_0x2c86ad=events[_0x5c5d('0x5')];_0x1ea287<_0x2c86ad;_0x1ea287++){var _0x49fa3b=events[_0x1ea287];var _0x228565=createListener(_0x5c5d('0x6')+_0x49fa3b,_0x28ae97);DashboardItemEvents['on'](_0x49fa3b,_0x228565);}};