Built motion from commit 00bf23f6.|2.6.16
[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 _0x8144=['emit','removeListener','register','length','dashboard:','save','remove','update'];(function(_0x5bf19f,_0x25f9e2){var _0x2f3d8e=function(_0x4da48b){while(--_0x4da48b){_0x5bf19f['push'](_0x5bf19f['shift']());}};_0x2f3d8e(++_0x25f9e2);}(_0x8144,0x135));var _0x4814=function(_0x395bee,_0x9c8ed7){_0x395bee=_0x395bee-0x0;var _0xbb3085=_0x8144[_0x395bee];return _0xbb3085;};'use strict';var DashboardEvents=require('./dashboard.events');var events=[_0x4814('0x0'),_0x4814('0x1'),_0x4814('0x2')];function createListener(_0x687940,_0x129ca6){return function(_0x3bc447){_0x129ca6[_0x4814('0x3')](_0x687940,_0x3bc447);};}function removeListener(_0x148a88,_0x440202){return function(){DashboardEvents[_0x4814('0x4')](_0x148a88,_0x440202);};}exports[_0x4814('0x5')]=function(_0x4e2d10){for(var _0x153292=0x0,_0x4792bb=events[_0x4814('0x6')];_0x153292<_0x4792bb;_0x153292++){var _0x2e2d3b=events[_0x153292];var _0x2ecee3=createListener(_0x4814('0x7')+_0x2e2d3b,_0x4e2d10);DashboardEvents['on'](_0x2e2d3b,_0x2ecee3);}};