Built motion from commit (unavailable).|2.5.0
[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 _0x2e0c=['remove','removeListener','length','dashboard:','./dashboard.events','save'];(function(_0x296588,_0x49f98d){var _0x2f6d92=function(_0x3f424c){while(--_0x3f424c){_0x296588['push'](_0x296588['shift']());}};_0x2f6d92(++_0x49f98d);}(_0x2e0c,0xb8));var _0xc2e0=function(_0x299b0b,_0x1e5b52){_0x299b0b=_0x299b0b-0x0;var _0x249e7b=_0x2e0c[_0x299b0b];return _0x249e7b;};'use strict';var DashboardEvents=require(_0xc2e0('0x0'));var events=[_0xc2e0('0x1'),_0xc2e0('0x2'),'update'];function createListener(_0x41675d,_0x53191d){return function(_0xfaea9a){_0x53191d['emit'](_0x41675d,_0xfaea9a);};}function removeListener(_0x43b8fe,_0x2a815d){return function(){DashboardEvents[_0xc2e0('0x3')](_0x43b8fe,_0x2a815d);};}exports['register']=function(_0x2f6e38){for(var _0x2acbef=0x0,_0x3bf43a=events[_0xc2e0('0x4')];_0x2acbef<_0x3bf43a;_0x2acbef++){var _0x3b426f=events[_0x2acbef];var _0x5f5013=createListener(_0xc2e0('0x5')+_0x3b426f,_0x2f6e38);DashboardEvents['on'](_0x3b426f,_0x5f5013);}};