Built motion from commit 753c950e.|2.5.42
[motion2.git] / server / api / cmList / cmList.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 _0x47d4=['register','length','save','remove','update','emit','removeListener'];(function(_0x1e5303,_0x36c0f0){var _0xd1556b=function(_0x1b959e){while(--_0x1b959e){_0x1e5303['push'](_0x1e5303['shift']());}};_0xd1556b(++_0x36c0f0);}(_0x47d4,0xfe));var _0x447d=function(_0x246112,_0x686c3){_0x246112=_0x246112-0x0;var _0x3801f6=_0x47d4[_0x246112];return _0x3801f6;};'use strict';var CmListEvents=require('./cmList.events');var events=[_0x447d('0x0'),_0x447d('0x1'),_0x447d('0x2')];function createListener(_0x178a72,_0x313d05){return function(_0x4a5c17){_0x313d05[_0x447d('0x3')](_0x178a72,_0x4a5c17);};}function removeListener(_0x21c291,_0x118f45){return function(){CmListEvents[_0x447d('0x4')](_0x21c291,_0x118f45);};}exports[_0x447d('0x5')]=function(_0x5f2a68){for(var _0x1c4f2d=0x0,_0x32e433=events[_0x447d('0x6')];_0x1c4f2d<_0x32e433;_0x1c4f2d++){var _0x367b16=events[_0x1c4f2d];var _0x5cea44=createListener('cmList:'+_0x367b16,_0x5f2a68);CmListEvents['on'](_0x367b16,_0x5cea44);}};