Built motion from commit (unavailable).|2.5.25
[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 _0x3c6b=['update','emit','removeListener','register','./dashboard.events','save'];(function(_0x142a48,_0x17511b){var _0x47c206=function(_0x5d349f){while(--_0x5d349f){_0x142a48['push'](_0x142a48['shift']());}};_0x47c206(++_0x17511b);}(_0x3c6b,0x130));var _0xb3c6=function(_0x57d28c,_0x30a81c){_0x57d28c=_0x57d28c-0x0;var _0x250f1f=_0x3c6b[_0x57d28c];return _0x250f1f;};'use strict';var DashboardEvents=require(_0xb3c6('0x0'));var events=[_0xb3c6('0x1'),'remove',_0xb3c6('0x2')];function createListener(_0x45d0a2,_0x2bb7e9){return function(_0x45400c){_0x2bb7e9[_0xb3c6('0x3')](_0x45d0a2,_0x45400c);};}function removeListener(_0x3b1f0c,_0x349888){return function(){DashboardEvents[_0xb3c6('0x4')](_0x3b1f0c,_0x349888);};}exports[_0xb3c6('0x5')]=function(_0x27d07d){for(var _0x1c281c=0x0,_0x395059=events['length'];_0x1c281c<_0x395059;_0x1c281c++){var _0x65f8f5=events[_0x1c281c];var _0x471c32=createListener('dashboard:'+_0x65f8f5,_0x27d07d);DashboardEvents['on'](_0x65f8f5,_0x471c32);}};