Built motion from commit e02f907f.|2.6.14
[motion2.git] / server / api / dashboard / dashboard.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 _0xa99e=['dashboard:','remove','emit','removeListener','register','length'];(function(_0x566602,_0x1468e0){var _0x13e1a8=function(_0x25f7a6){while(--_0x25f7a6){_0x566602['push'](_0x566602['shift']());}};_0x13e1a8(++_0x1468e0);}(_0xa99e,0x1ab));var _0xea99=function(_0x58daf0,_0x31ae89){_0x58daf0=_0x58daf0-0x0;var _0x390a6b=_0xa99e[_0x58daf0];return _0x390a6b;};'use strict';var DashboardEvents=require('./dashboard.events');var events=['save',_0xea99('0x0'),'update'];function createListener(_0x3c812e,_0x268558){return function(_0x5ba5ab){_0x268558[_0xea99('0x1')](_0x3c812e,_0x5ba5ab);};}function removeListener(_0x5196c0,_0x476432){return function(){DashboardEvents[_0xea99('0x2')](_0x5196c0,_0x476432);};}exports[_0xea99('0x3')]=function(_0x1e98d9){for(var _0x33faad=0x0,_0x4eaa56=events[_0xea99('0x4')];_0x33faad<_0x4eaa56;_0x33faad++){var _0x35b27f=events[_0x33faad];var _0x55e77a=createListener(_0xea99('0x5')+_0x35b27f,_0x1e98d9);DashboardEvents['on'](_0x35b27f,_0x55e77a);}};