c101273d0d18bc40a23f04a3c6f68fb019b08b44
[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 _0x9ac6=['register','length','cmList:','save','remove','emit'];(function(_0x1db78c,_0x37ea25){var _0x1e7df4=function(_0x3d60b7){while(--_0x3d60b7){_0x1db78c['push'](_0x1db78c['shift']());}};_0x1e7df4(++_0x37ea25);}(_0x9ac6,0x1a7));var _0x69ac=function(_0x141598,_0x16c3a6){_0x141598=_0x141598-0x0;var _0x2d3360=_0x9ac6[_0x141598];return _0x2d3360;};'use strict';var CmListEvents=require('./cmList.events');var events=[_0x69ac('0x0'),_0x69ac('0x1'),'update'];function createListener(_0x43c4c6,_0x1d7bd9){return function(_0x19936f){_0x1d7bd9[_0x69ac('0x2')](_0x43c4c6,_0x19936f);};}function removeListener(_0x36a4c2,_0x45db83){return function(){CmListEvents['removeListener'](_0x36a4c2,_0x45db83);};}exports[_0x69ac('0x3')]=function(_0x397482){for(var _0x4c7b44=0x0,_0x137a05=events[_0x69ac('0x4')];_0x4c7b44<_0x137a05;_0x4c7b44++){var _0x270d6d=events[_0x4c7b44];var _0x1305f0=createListener(_0x69ac('0x5')+_0x270d6d,_0x397482);CmListEvents['on'](_0x270d6d,_0x1305f0);}};