Built motion from commit 4e7c323b.|2.5.34
[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 _0x8208=['length','./cmList.events','emit','removeListener','register'];(function(_0x472fc9,_0x3efea8){var _0x2fe66a=function(_0x2ef588){while(--_0x2ef588){_0x472fc9['push'](_0x472fc9['shift']());}};_0x2fe66a(++_0x3efea8);}(_0x8208,0xe2));var _0x8820=function(_0x564ab2,_0x95987){_0x564ab2=_0x564ab2-0x0;var _0x42c823=_0x8208[_0x564ab2];return _0x42c823;};'use strict';var CmListEvents=require(_0x8820('0x0'));var events=['save','remove','update'];function createListener(_0x3ffad7,_0xd29be1){return function(_0x37ee55){_0xd29be1[_0x8820('0x1')](_0x3ffad7,_0x37ee55);};}function removeListener(_0x565322,_0x4fc39e){return function(){CmListEvents[_0x8820('0x2')](_0x565322,_0x4fc39e);};}exports[_0x8820('0x3')]=function(_0x19ae5c){for(var _0x48de3e=0x0,_0x54a804=events[_0x8820('0x4')];_0x48de3e<_0x54a804;_0x48de3e++){var _0x1bd1ce=events[_0x48de3e];var _0x427e8a=createListener('cmList:'+_0x1bd1ce,_0x19ae5c);CmListEvents['on'](_0x1bd1ce,_0x427e8a);}};