Built motion from commit 0900f080.|2.5.45
[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 _0xfd67=['update','emit','removeListener','length','dashboardItem:'];(function(_0x215767,_0xfdbe24){var _0x5eecb8=function(_0x4c137e){while(--_0x4c137e){_0x215767['push'](_0x215767['shift']());}};_0x5eecb8(++_0xfdbe24);}(_0xfd67,0x104));var _0x7fd6=function(_0xfae23b,_0x2be4ba){_0xfae23b=_0xfae23b-0x0;var _0x200640=_0xfd67[_0xfae23b];return _0x200640;};'use strict';var DashboardItemEvents=require('./dashboardItem.events');var events=['save','remove',_0x7fd6('0x0')];function createListener(_0x3558d1,_0x32e3be){return function(_0x44343c){_0x32e3be[_0x7fd6('0x1')](_0x3558d1,_0x44343c);};}function removeListener(_0x181e2a,_0x1f483f){return function(){DashboardItemEvents[_0x7fd6('0x2')](_0x181e2a,_0x1f483f);};}exports['register']=function(_0x4c1116){for(var _0x2ba68b=0x0,_0x86b035=events[_0x7fd6('0x3')];_0x2ba68b<_0x86b035;_0x2ba68b++){var _0x1f1090=events[_0x2ba68b];var _0x1ac2b9=createListener(_0x7fd6('0x4')+_0x1f1090,_0x4c1116);DashboardItemEvents['on'](_0x1f1090,_0x1ac2b9);}};