Built motion from commit (unavailable).|2.5.31
[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 _0x1cd7=['emit','removeListener','length','./dashboardItem.events','save','remove'];(function(_0x2272c4,_0x27d5ea){var _0x1f20e3=function(_0x21eb4a){while(--_0x21eb4a){_0x2272c4['push'](_0x2272c4['shift']());}};_0x1f20e3(++_0x27d5ea);}(_0x1cd7,0xc3));var _0x71cd=function(_0x36f9dd,_0x33e0f5){_0x36f9dd=_0x36f9dd-0x0;var _0x7e5fac=_0x1cd7[_0x36f9dd];return _0x7e5fac;};'use strict';var DashboardItemEvents=require(_0x71cd('0x0'));var events=[_0x71cd('0x1'),_0x71cd('0x2'),'update'];function createListener(_0x23387e,_0x52b1ca){return function(_0x1b9b8b){_0x52b1ca[_0x71cd('0x3')](_0x23387e,_0x1b9b8b);};}function removeListener(_0x1f0472,_0x3ece1d){return function(){DashboardItemEvents[_0x71cd('0x4')](_0x1f0472,_0x3ece1d);};}exports['register']=function(_0x15dae3){for(var _0x58a50d=0x0,_0x4166df=events[_0x71cd('0x5')];_0x58a50d<_0x4166df;_0x58a50d++){var _0x45dc09=events[_0x58a50d];var _0x5e29de=createListener('dashboardItem:'+_0x45dc09,_0x15dae3);DashboardItemEvents['on'](_0x45dc09,_0x5e29de);}};