Built motion from commit 9d1906d1.|2.5.40
[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 _0xaf3e=['removeListener','register','length','cmList:','./cmList.events','save','update'];(function(_0x235884,_0x1c4355){var _0x211158=function(_0x3d620c){while(--_0x3d620c){_0x235884['push'](_0x235884['shift']());}};_0x211158(++_0x1c4355);}(_0xaf3e,0xcf));var _0xeaf3=function(_0x9e0cb3,_0x9cd497){_0x9e0cb3=_0x9e0cb3-0x0;var _0x5926b7=_0xaf3e[_0x9e0cb3];return _0x5926b7;};'use strict';var CmListEvents=require(_0xeaf3('0x0'));var events=[_0xeaf3('0x1'),'remove',_0xeaf3('0x2')];function createListener(_0x4b0d1d,_0x169ca4){return function(_0x2d2fea){_0x169ca4['emit'](_0x4b0d1d,_0x2d2fea);};}function removeListener(_0x18d8a3,_0x3cd900){return function(){CmListEvents[_0xeaf3('0x3')](_0x18d8a3,_0x3cd900);};}exports[_0xeaf3('0x4')]=function(_0x320838){for(var _0x5e6e69=0x0,_0x33071f=events[_0xeaf3('0x5')];_0x5e6e69<_0x33071f;_0x5e6e69++){var _0xa51f56=events[_0x5e6e69];var _0x120b24=createListener(_0xeaf3('0x6')+_0xa51f56,_0x320838);CmListEvents['on'](_0xa51f56,_0x120b24);}};