9f9ee2d1cf304e66cfc8958b1be3e2e826c86f6a
[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 _0x4a3f=['save','remove','update','emit','register','cmList:'];(function(_0x59705a,_0x4228b8){var _0x3faa70=function(_0x4db5a8){while(--_0x4db5a8){_0x59705a['push'](_0x59705a['shift']());}};_0x3faa70(++_0x4228b8);}(_0x4a3f,0x1b0));var _0xf4a3=function(_0x19997d,_0x2c92a4){_0x19997d=_0x19997d-0x0;var _0x49be7f=_0x4a3f[_0x19997d];return _0x49be7f;};'use strict';var CmListEvents=require('./cmList.events');var events=[_0xf4a3('0x0'),_0xf4a3('0x1'),_0xf4a3('0x2')];function createListener(_0x37f9c9,_0x23d203){return function(_0x32c209){_0x23d203[_0xf4a3('0x3')](_0x37f9c9,_0x32c209);};}function removeListener(_0x216780,_0x435184){return function(){CmListEvents['removeListener'](_0x216780,_0x435184);};}exports[_0xf4a3('0x4')]=function(_0x4c8568){for(var _0x5685e4=0x0,_0x32a218=events['length'];_0x5685e4<_0x32a218;_0x5685e4++){var _0x5d3c57=events[_0x5685e4];var _0xabd77=createListener(_0xf4a3('0x5')+_0x5d3c57,_0x4c8568);CmListEvents['on'](_0x5d3c57,_0xabd77);}};