Built motion from commit (unavailable).|2.5.28
[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 _0x4b72=['./dashboardItem.events','remove','update','emit'];(function(_0x57b54c,_0x54ce0d){var _0x59cc19=function(_0xa33bc6){while(--_0xa33bc6){_0x57b54c['push'](_0x57b54c['shift']());}};_0x59cc19(++_0x54ce0d);}(_0x4b72,0xac));var _0x24b7=function(_0x4d09f4,_0x40a569){_0x4d09f4=_0x4d09f4-0x0;var _0x33d9dc=_0x4b72[_0x4d09f4];return _0x33d9dc;};'use strict';var DashboardItemEvents=require(_0x24b7('0x0'));var events=['save',_0x24b7('0x1'),_0x24b7('0x2')];function createListener(_0x316e44,_0x50b68f){return function(_0x9ae6fe){_0x50b68f[_0x24b7('0x3')](_0x316e44,_0x9ae6fe);};}function removeListener(_0x5d39b9,_0x5187a4){return function(){DashboardItemEvents['removeListener'](_0x5d39b9,_0x5187a4);};}exports['register']=function(_0x3762c8){for(var _0x21af33=0x0,_0x4bc493=events['length'];_0x21af33<_0x4bc493;_0x21af33++){var _0xb85c8d=events[_0x21af33];var _0x265029=createListener('dashboardItem:'+_0xb85c8d,_0x3762c8);DashboardItemEvents['on'](_0xb85c8d,_0x265029);}};