Built motion from commit (unavailable).|2.5.2
[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 _0x670a=['length','dashboardItem:','./dashboardItem.events','save','remove','emit','removeListener','register'];(function(_0x19e35c,_0x29cd1e){var _0x3e1fe8=function(_0x17258b){while(--_0x17258b){_0x19e35c['push'](_0x19e35c['shift']());}};_0x3e1fe8(++_0x29cd1e);}(_0x670a,0xea));var _0xa670=function(_0x41450d,_0x4fc34d){_0x41450d=_0x41450d-0x0;var _0x4b8bbe=_0x670a[_0x41450d];return _0x4b8bbe;};'use strict';var DashboardItemEvents=require(_0xa670('0x0'));var events=[_0xa670('0x1'),_0xa670('0x2'),'update'];function createListener(_0x480cbe,_0x101acc){return function(_0x49215e){_0x101acc[_0xa670('0x3')](_0x480cbe,_0x49215e);};}function removeListener(_0x2bd78e,_0x53d2c6){return function(){DashboardItemEvents[_0xa670('0x4')](_0x2bd78e,_0x53d2c6);};}exports[_0xa670('0x5')]=function(_0x4f53e3){for(var _0x24529f=0x0,_0x49f468=events[_0xa670('0x6')];_0x24529f<_0x49f468;_0x24529f++){var _0x1c3eb5=events[_0x24529f];var _0x35b761=createListener(_0xa670('0x7')+_0x1c3eb5,_0x4f53e3);DashboardItemEvents['on'](_0x1c3eb5,_0x35b761);}};