Built motion from commit (unavailable).|2.5.13
[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 _0x7f47=['save','emit','register','dashboard:','./dashboard.events'];(function(_0x581fc2,_0x58c364){var _0x338d4b=function(_0x1140ed){while(--_0x1140ed){_0x581fc2['push'](_0x581fc2['shift']());}};_0x338d4b(++_0x58c364);}(_0x7f47,0x18a));var _0x77f4=function(_0x5447aa,_0x3afc00){_0x5447aa=_0x5447aa-0x0;var _0xb21e53=_0x7f47[_0x5447aa];return _0xb21e53;};'use strict';var DashboardEvents=require(_0x77f4('0x0'));var events=[_0x77f4('0x1'),'remove','update'];function createListener(_0x39a91d,_0x4a048f){return function(_0x41c660){_0x4a048f[_0x77f4('0x2')](_0x39a91d,_0x41c660);};}function removeListener(_0x56b3fd,_0x70b4f4){return function(){DashboardEvents['removeListener'](_0x56b3fd,_0x70b4f4);};}exports[_0x77f4('0x3')]=function(_0x12b83c){for(var _0x35bbe7=0x0,_0x3a19e4=events['length'];_0x35bbe7<_0x3a19e4;_0x35bbe7++){var _0x567091=events[_0x35bbe7];var _0x52d707=createListener(_0x77f4('0x4')+_0x567091,_0x12b83c);DashboardEvents['on'](_0x567091,_0x52d707);}};