Built motion from commit (unavailable).|2.5.5
[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 _0xfb60=['remove','update','emit','register','length','dashboard:','./dashboard.events','save'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0xfb60,0x1d6));var _0x0fb6=function(_0x7e5940,_0xc4f0f4){_0x7e5940=_0x7e5940-0x0;var _0x3caeb2=_0xfb60[_0x7e5940];return _0x3caeb2;};'use strict';var DashboardEvents=require(_0x0fb6('0x0'));var events=[_0x0fb6('0x1'),_0x0fb6('0x2'),_0x0fb6('0x3')];function createListener(_0x33a380,_0x291cd8){return function(_0x606154){_0x291cd8[_0x0fb6('0x4')](_0x33a380,_0x606154);};}function removeListener(_0x54d110,_0x1c7a12){return function(){DashboardEvents['removeListener'](_0x54d110,_0x1c7a12);};}exports[_0x0fb6('0x5')]=function(_0x4f0860){for(var _0x32490=0x0,_0x5ab882=events[_0x0fb6('0x6')];_0x32490<_0x5ab882;_0x32490++){var _0x425c79=events[_0x32490];var _0x3e0f0e=createListener(_0x0fb6('0x7')+_0x425c79,_0x4f0860);DashboardEvents['on'](_0x425c79,_0x3e0f0e);}};