Built motion from commit 9e1399f3.|2.5.37
[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 _0x8a0a=['length','cmList:','./cmList.events','save','update'];(function(_0x22e513,_0x53d375){var _0x55d29b=function(_0x2ccff5){while(--_0x2ccff5){_0x22e513['push'](_0x22e513['shift']());}};_0x55d29b(++_0x53d375);}(_0x8a0a,0x8e));var _0xa8a0=function(_0x5ebed7,_0x4e57ab){_0x5ebed7=_0x5ebed7-0x0;var _0x247402=_0x8a0a[_0x5ebed7];return _0x247402;};'use strict';var CmListEvents=require(_0xa8a0('0x0'));var events=[_0xa8a0('0x1'),'remove',_0xa8a0('0x2')];function createListener(_0x24a259,_0x3eed49){return function(_0x50d473){_0x3eed49['emit'](_0x24a259,_0x50d473);};}function removeListener(_0x23b7e4,_0xa081d3){return function(){CmListEvents['removeListener'](_0x23b7e4,_0xa081d3);};}exports['register']=function(_0x592499){for(var _0x4f8ca8=0x0,_0x36ee67=events[_0xa8a0('0x3')];_0x4f8ca8<_0x36ee67;_0x4f8ca8++){var _0x353d8f=events[_0x4f8ca8];var _0x99b6ca=createListener(_0xa8a0('0x4')+_0x353d8f,_0x592499);CmListEvents['on'](_0x353d8f,_0x99b6ca);}};