Built motion from commit 9b156c94.|2.6.22
[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 _0x3c2a=['remove','update','removeListener','register','./dashboard.events','save'];(function(_0x2fa310,_0x1557fb){var _0x41b6a0=function(_0x221a55){while(--_0x221a55){_0x2fa310['push'](_0x2fa310['shift']());}};_0x41b6a0(++_0x1557fb);}(_0x3c2a,0xb8));var _0xa3c2=function(_0x42f92e,_0x33951c){_0x42f92e=_0x42f92e-0x0;var _0x5ab5f1=_0x3c2a[_0x42f92e];return _0x5ab5f1;};'use strict';var DashboardEvents=require(_0xa3c2('0x0'));var events=[_0xa3c2('0x1'),_0xa3c2('0x2'),_0xa3c2('0x3')];function createListener(_0x2f67c0,_0x407148){return function(_0x343845){_0x407148['emit'](_0x2f67c0,_0x343845);};}function removeListener(_0x3bdca9,_0x9dc3c1){return function(){DashboardEvents[_0xa3c2('0x4')](_0x3bdca9,_0x9dc3c1);};}exports[_0xa3c2('0x5')]=function(_0x4d6363){for(var _0x73b560=0x0,_0xe8372d=events['length'];_0x73b560<_0xe8372d;_0x73b560++){var _0x1e214f=events[_0x73b560];var _0x144b20=createListener('dashboard:'+_0x1e214f,_0x4d6363);DashboardEvents['on'](_0x1e214f,_0x144b20);}};