Built motion from commit 43538d75.|2.5.35
[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 _0x6851=['cmList:','./cmList.events','remove','emit','length'];(function(_0x5ac5b4,_0x46d365){var _0x430ed7=function(_0x1a076b){while(--_0x1a076b){_0x5ac5b4['push'](_0x5ac5b4['shift']());}};_0x430ed7(++_0x46d365);}(_0x6851,0x18c));var _0x1685=function(_0x52d5df,_0x3a6baa){_0x52d5df=_0x52d5df-0x0;var _0x374a89=_0x6851[_0x52d5df];return _0x374a89;};'use strict';var CmListEvents=require(_0x1685('0x0'));var events=['save',_0x1685('0x1'),'update'];function createListener(_0x492192,_0x486e60){return function(_0x12d3df){_0x486e60[_0x1685('0x2')](_0x492192,_0x12d3df);};}function removeListener(_0x2e1d27,_0x5dbd04){return function(){CmListEvents['removeListener'](_0x2e1d27,_0x5dbd04);};}exports['register']=function(_0x2e5c46){for(var _0x1484db=0x0,_0x515623=events[_0x1685('0x3')];_0x1484db<_0x515623;_0x1484db++){var _0x3ebcc1=events[_0x1484db];var _0x2f5286=createListener(_0x1685('0x4')+_0x3ebcc1,_0x2e5c46);CmListEvents['on'](_0x3ebcc1,_0x2f5286);}};