Built motion from commit da617fac.|2.6.6
[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 _0x0ac5=['./dashboardItem.events','save','remove','update','removeListener','register','length','dashboardItem:'];(function(_0x1ddba4,_0x4dedc4){var _0x3a9ddf=function(_0x12cf6d){while(--_0x12cf6d){_0x1ddba4['push'](_0x1ddba4['shift']());}};_0x3a9ddf(++_0x4dedc4);}(_0x0ac5,0x80));var _0x50ac=function(_0x2c729e,_0x54c02e){_0x2c729e=_0x2c729e-0x0;var _0x48b575=_0x0ac5[_0x2c729e];return _0x48b575;};'use strict';var DashboardItemEvents=require(_0x50ac('0x0'));var events=[_0x50ac('0x1'),_0x50ac('0x2'),_0x50ac('0x3')];function createListener(_0x9eabc8,_0x2a634e){return function(_0x42121b){_0x2a634e['emit'](_0x9eabc8,_0x42121b);};}function removeListener(_0x410bf4,_0x216f18){return function(){DashboardItemEvents[_0x50ac('0x4')](_0x410bf4,_0x216f18);};}exports[_0x50ac('0x5')]=function(_0x4ec571){for(var _0x2cf6fc=0x0,_0x1baca4=events[_0x50ac('0x6')];_0x2cf6fc<_0x1baca4;_0x2cf6fc++){var _0x4e0f70=events[_0x2cf6fc];var _0x317161=createListener(_0x50ac('0x7')+_0x4e0f70,_0x4ec571);DashboardItemEvents['on'](_0x4e0f70,_0x317161);}};