Built motion from commit (unavailable).|2.4.10
[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 _0x8a17=['./dashboardItem.events','remove','emit','length'];(function(_0x1d2634,_0x1e9ae8){var _0x2ed180=function(_0x4597fa){while(--_0x4597fa){_0x1d2634['push'](_0x1d2634['shift']());}};_0x2ed180(++_0x1e9ae8);}(_0x8a17,0x158));var _0x78a1=function(_0x5534fe,_0x43c22e){_0x5534fe=_0x5534fe-0x0;var _0x3d1dc2=_0x8a17[_0x5534fe];return _0x3d1dc2;};'use strict';var DashboardItemEvents=require(_0x78a1('0x0'));var events=['save',_0x78a1('0x1'),'update'];function createListener(_0x39f082,_0x39568e){return function(_0x40e4f1){_0x39568e[_0x78a1('0x2')](_0x39f082,_0x40e4f1);};}function removeListener(_0x443d1a,_0x415982){return function(){DashboardItemEvents['removeListener'](_0x443d1a,_0x415982);};}exports['register']=function(_0x2f1e46){for(var _0x321660=0x0,_0x33f65f=events[_0x78a1('0x3')];_0x321660<_0x33f65f;_0x321660++){var _0x26569c=events[_0x321660];var _0x281b1d=createListener('dashboardItem:'+_0x26569c,_0x2f1e46);DashboardItemEvents['on'](_0x26569c,_0x281b1d);}};