Built motion from commit c116dc8b.|2.6.30
[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 _0x7f69=['length','cmList:','./cmList.events','remove','update','removeListener'];(function(_0x18c5b8,_0x5b1c5c){var _0x11bbc3=function(_0x1472f4){while(--_0x1472f4){_0x18c5b8['push'](_0x18c5b8['shift']());}};_0x11bbc3(++_0x5b1c5c);}(_0x7f69,0x1b2));var _0x97f6=function(_0x3c504b,_0x437693){_0x3c504b=_0x3c504b-0x0;var _0x2e5354=_0x7f69[_0x3c504b];return _0x2e5354;};'use strict';var CmListEvents=require(_0x97f6('0x0'));var events=['save',_0x97f6('0x1'),_0x97f6('0x2')];function createListener(_0x2e6426,_0x3091ad){return function(_0x1e27a1){_0x3091ad['emit'](_0x2e6426,_0x1e27a1);};}function removeListener(_0xd1ce2,_0x28bb45){return function(){CmListEvents[_0x97f6('0x3')](_0xd1ce2,_0x28bb45);};}exports['register']=function(_0x26ef47){for(var _0x1f34cc=0x0,_0x9ad2c4=events[_0x97f6('0x4')];_0x1f34cc<_0x9ad2c4;_0x1f34cc++){var _0x150d44=events[_0x1f34cc];var _0xb02543=createListener(_0x97f6('0x5')+_0x150d44,_0x26ef47);CmListEvents['on'](_0x150d44,_0xb02543);}};