24844235d50be9c9f86926e0f8fb829b1b59d592
[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 _0xeed7=['./dashboard.events','save','remove','update','emit','removeListener','length','dashboard:'];(function(_0x2132a3,_0x4639e9){var _0x21890c=function(_0x34b73d){while(--_0x34b73d){_0x2132a3['push'](_0x2132a3['shift']());}};_0x21890c(++_0x4639e9);}(_0xeed7,0x188));var _0x7eed=function(_0x828468,_0x11bc0e){_0x828468=_0x828468-0x0;var _0x859765=_0xeed7[_0x828468];return _0x859765;};'use strict';var DashboardEvents=require(_0x7eed('0x0'));var events=[_0x7eed('0x1'),_0x7eed('0x2'),_0x7eed('0x3')];function createListener(_0x34257d,_0x3ca6d9){return function(_0xb6d2ef){_0x3ca6d9[_0x7eed('0x4')](_0x34257d,_0xb6d2ef);};}function removeListener(_0xa43536,_0x24f9b1){return function(){DashboardEvents[_0x7eed('0x5')](_0xa43536,_0x24f9b1);};}exports['register']=function(_0x2ef2d2){for(var _0x112b13=0x0,_0x2c9f47=events[_0x7eed('0x6')];_0x112b13<_0x2c9f47;_0x112b13++){var _0x58747f=events[_0x112b13];var _0x3e50b7=createListener(_0x7eed('0x7')+_0x58747f,_0x2ef2d2);DashboardEvents['on'](_0x58747f,_0x3e50b7);}};