Built motion from commit (unavailable).|2.4.21
[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 _0x4c84=['save','remove','update','removeListener','register','length','dashboardItem:','./dashboardItem.events'];(function(_0x288325,_0x26e4ff){var _0x3b9fd7=function(_0x1f2816){while(--_0x1f2816){_0x288325['push'](_0x288325['shift']());}};_0x3b9fd7(++_0x26e4ff);}(_0x4c84,0xff));var _0x44c8=function(_0x48b870,_0x103cff){_0x48b870=_0x48b870-0x0;var _0x560188=_0x4c84[_0x48b870];return _0x560188;};'use strict';var DashboardItemEvents=require(_0x44c8('0x0'));var events=[_0x44c8('0x1'),_0x44c8('0x2'),_0x44c8('0x3')];function createListener(_0x3ecf74,_0x41422d){return function(_0x7422d7){_0x41422d['emit'](_0x3ecf74,_0x7422d7);};}function removeListener(_0x59ee29,_0x33a272){return function(){DashboardItemEvents[_0x44c8('0x4')](_0x59ee29,_0x33a272);};}exports[_0x44c8('0x5')]=function(_0x3afd2e){for(var _0x3371c7=0x0,_0x4157ef=events[_0x44c8('0x6')];_0x3371c7<_0x4157ef;_0x3371c7++){var _0x2b9d87=events[_0x3371c7];var _0x128321=createListener(_0x44c8('0x7')+_0x2b9d87,_0x3afd2e);DashboardItemEvents['on'](_0x2b9d87,_0x128321);}};