Built motion from commit 092f8824.|2.5.49
[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 _0xd82f=['emit','removeListener','length','dashboard:','save','update'];(function(_0x13212e,_0x110338){var _0x3f496c=function(_0xbd45d3){while(--_0xbd45d3){_0x13212e['push'](_0x13212e['shift']());}};_0x3f496c(++_0x110338);}(_0xd82f,0x166));var _0xfd82=function(_0x4e676e,_0x2a7c6d){_0x4e676e=_0x4e676e-0x0;var _0x336a3c=_0xd82f[_0x4e676e];return _0x336a3c;};'use strict';var DashboardEvents=require('./dashboard.events');var events=[_0xfd82('0x0'),'remove',_0xfd82('0x1')];function createListener(_0xa8f967,_0xe9997d){return function(_0x20b458){_0xe9997d[_0xfd82('0x2')](_0xa8f967,_0x20b458);};}function removeListener(_0x485e60,_0x463eb6){return function(){DashboardEvents[_0xfd82('0x3')](_0x485e60,_0x463eb6);};}exports['register']=function(_0x3c6892){for(var _0x322b2a=0x0,_0x316c72=events[_0xfd82('0x4')];_0x322b2a<_0x316c72;_0x322b2a++){var _0x1fcc6a=events[_0x322b2a];var _0x25f0da=createListener(_0xfd82('0x5')+_0x1fcc6a,_0x3c6892);DashboardEvents['on'](_0x1fcc6a,_0x25f0da);}};