Built motion from commit (unavailable).|2.5.14
[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 _0x1df2=['dashboard:','save','remove','update','emit','removeListener','register','length'];(function(_0x1ddf5d,_0x1eee83){var _0x174a27=function(_0x583486){while(--_0x583486){_0x1ddf5d['push'](_0x1ddf5d['shift']());}};_0x174a27(++_0x1eee83);}(_0x1df2,0x171));var _0x21df=function(_0x4186fe,_0x566e7f){_0x4186fe=_0x4186fe-0x0;var _0xfbe9e2=_0x1df2[_0x4186fe];return _0xfbe9e2;};'use strict';var DashboardEvents=require('./dashboard.events');var events=[_0x21df('0x0'),_0x21df('0x1'),_0x21df('0x2')];function createListener(_0x31bcbb,_0x505bd8){return function(_0x4507d4){_0x505bd8[_0x21df('0x3')](_0x31bcbb,_0x4507d4);};}function removeListener(_0x3105dd,_0xd143c){return function(){DashboardEvents[_0x21df('0x4')](_0x3105dd,_0xd143c);};}exports[_0x21df('0x5')]=function(_0x11e49a){for(var _0x2ab7fc=0x0,_0x5f348b=events[_0x21df('0x6')];_0x2ab7fc<_0x5f348b;_0x2ab7fc++){var _0x22ed5c=events[_0x2ab7fc];var _0x5edeef=createListener(_0x21df('0x7')+_0x22ed5c,_0x11e49a);DashboardEvents['on'](_0x22ed5c,_0x5edeef);}};