Built motion from commit 25580385.|2.6.2
[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 _0x5fe0=['save','remove','removeListener','cmList:'];(function(_0x3f0fce,_0x1f8e80){var _0x427a1d=function(_0x3b5b23){while(--_0x3b5b23){_0x3f0fce['push'](_0x3f0fce['shift']());}};_0x427a1d(++_0x1f8e80);}(_0x5fe0,0x70));var _0x05fe=function(_0xecbce8,_0x4f8f47){_0xecbce8=_0xecbce8-0x0;var _0x4ce561=_0x5fe0[_0xecbce8];return _0x4ce561;};'use strict';var CmListEvents=require('./cmList.events');var events=[_0x05fe('0x0'),_0x05fe('0x1'),'update'];function createListener(_0x1a204b,_0x591380){return function(_0x19c82a){_0x591380['emit'](_0x1a204b,_0x19c82a);};}function removeListener(_0x750f18,_0x2789c5){return function(){CmListEvents[_0x05fe('0x2')](_0x750f18,_0x2789c5);};}exports['register']=function(_0x506d02){for(var _0x302fda=0x0,_0x1566ec=events['length'];_0x302fda<_0x1566ec;_0x302fda++){var _0x4014ce=events[_0x302fda];var _0x36e3b8=createListener(_0x05fe('0x3')+_0x4014ce,_0x506d02);CmListEvents['on'](_0x4014ce,_0x36e3b8);}};