a21ff58003c29a97d29f62bfd68df4ba8a1f27fe
[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 _0x67f3=['length','./dashboardItem.events','save','remove','update','emit','removeListener'];(function(_0x37bf40,_0x20c90a){var _0x552c29=function(_0x5c517c){while(--_0x5c517c){_0x37bf40['push'](_0x37bf40['shift']());}};_0x552c29(++_0x20c90a);}(_0x67f3,0x8d));var _0x367f=function(_0x19950b,_0x53d0d7){_0x19950b=_0x19950b-0x0;var _0x3c6b41=_0x67f3[_0x19950b];return _0x3c6b41;};'use strict';var DashboardItemEvents=require(_0x367f('0x0'));var events=[_0x367f('0x1'),_0x367f('0x2'),_0x367f('0x3')];function createListener(_0x18cd2f,_0x293300){return function(_0x44b915){_0x293300[_0x367f('0x4')](_0x18cd2f,_0x44b915);};}function removeListener(_0x1eb954,_0x5e9612){return function(){DashboardItemEvents[_0x367f('0x5')](_0x1eb954,_0x5e9612);};}exports['register']=function(_0x3f45c9){for(var _0x54121d=0x0,_0x2a7db8=events[_0x367f('0x6')];_0x54121d<_0x2a7db8;_0x54121d++){var _0x1e555a=events[_0x54121d];var _0x6bf8c2=createListener('dashboardItem:'+_0x1e555a,_0x3f45c9);DashboardItemEvents['on'](_0x1e555a,_0x6bf8c2);}};