Built motion from commit (unavailable).|2.5.4
[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 _0x2c74=['./dashboard.events','save','remove','update','emit','removeListener','length','dashboard:'];(function(_0x1cf5c8,_0xe8e966){var _0x26898d=function(_0x52da74){while(--_0x52da74){_0x1cf5c8['push'](_0x1cf5c8['shift']());}};_0x26898d(++_0xe8e966);}(_0x2c74,0x150));var _0x42c7=function(_0x4b9023,_0x4592cc){_0x4b9023=_0x4b9023-0x0;var _0x502620=_0x2c74[_0x4b9023];return _0x502620;};'use strict';var DashboardEvents=require(_0x42c7('0x0'));var events=[_0x42c7('0x1'),_0x42c7('0x2'),_0x42c7('0x3')];function createListener(_0x11c10d,_0x3ac10c){return function(_0x3e5fde){_0x3ac10c[_0x42c7('0x4')](_0x11c10d,_0x3e5fde);};}function removeListener(_0x2c946a,_0x6dc1ad){return function(){DashboardEvents[_0x42c7('0x5')](_0x2c946a,_0x6dc1ad);};}exports['register']=function(_0x1baac7){for(var _0x253399=0x0,_0x57682c=events[_0x42c7('0x6')];_0x253399<_0x57682c;_0x253399++){var _0x1b05d5=events[_0x253399];var _0x3bd6df=createListener(_0x42c7('0x7')+_0x1b05d5,_0x1baac7);DashboardEvents['on'](_0x1b05d5,_0x3bd6df);}};