Built motion from commit (unavailable).|2.5.1
[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 _0x4c89=['length','remove','emit','removeListener','register'];(function(_0x43a5c7,_0x2286bf){var _0x3b12a2=function(_0x1f8f53){while(--_0x1f8f53){_0x43a5c7['push'](_0x43a5c7['shift']());}};_0x3b12a2(++_0x2286bf);}(_0x4c89,0xf6));var _0x94c8=function(_0x10894b,_0x21a68d){_0x10894b=_0x10894b-0x0;var _0x308464=_0x4c89[_0x10894b];return _0x308464;};'use strict';var DashboardItemEvents=require('./dashboardItem.events');var events=['save',_0x94c8('0x0'),'update'];function createListener(_0x20de11,_0x2bbeb8){return function(_0x13cc87){_0x2bbeb8[_0x94c8('0x1')](_0x20de11,_0x13cc87);};}function removeListener(_0x5cb6b4,_0x3b36dc){return function(){DashboardItemEvents[_0x94c8('0x2')](_0x5cb6b4,_0x3b36dc);};}exports[_0x94c8('0x3')]=function(_0x43cc78){for(var _0x4f7fb0=0x0,_0x51f303=events[_0x94c8('0x4')];_0x4f7fb0<_0x51f303;_0x4f7fb0++){var _0x479c19=events[_0x4f7fb0];var _0x15080d=createListener('dashboardItem:'+_0x479c19,_0x43cc78);DashboardItemEvents['on'](_0x479c19,_0x15080d);}};