5d8331cabbc911196acf4a55741c7623a7373a1e
[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 _0x9a2b=['removeListener','register','length','dashboardItem:','./dashboardItem.events','save','remove','emit'];(function(_0x465b9a,_0x63e455){var _0x4414da=function(_0x3cb8a9){while(--_0x3cb8a9){_0x465b9a['push'](_0x465b9a['shift']());}};_0x4414da(++_0x63e455);}(_0x9a2b,0xcc));var _0xb9a2=function(_0x907c3d,_0x1e8850){_0x907c3d=_0x907c3d-0x0;var _0x16684c=_0x9a2b[_0x907c3d];return _0x16684c;};'use strict';var DashboardItemEvents=require(_0xb9a2('0x0'));var events=[_0xb9a2('0x1'),_0xb9a2('0x2'),'update'];function createListener(_0xb0341e,_0x5f1967){return function(_0x36606f){_0x5f1967[_0xb9a2('0x3')](_0xb0341e,_0x36606f);};}function removeListener(_0x42c8e9,_0x2a29ac){return function(){DashboardItemEvents[_0xb9a2('0x4')](_0x42c8e9,_0x2a29ac);};}exports[_0xb9a2('0x5')]=function(_0x4695f9){for(var _0x31521d=0x0,_0x50d75f=events[_0xb9a2('0x6')];_0x31521d<_0x50d75f;_0x31521d++){var _0x206b77=events[_0x31521d];var _0xffcad=createListener(_0xb9a2('0x7')+_0x206b77,_0x4695f9);DashboardItemEvents['on'](_0x206b77,_0xffcad);}};