Built motion from commit b0a9a629.|2.6.33
[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 _0x7f5e=['cmList:','emit','removeListener'];(function(_0x2dd849,_0x3bd1bf){var _0x38ba4e=function(_0xd89ddc){while(--_0xd89ddc){_0x2dd849['push'](_0x2dd849['shift']());}};_0x38ba4e(++_0x3bd1bf);}(_0x7f5e,0x18d));var _0xe7f5=function(_0x20a584,_0xe384a5){_0x20a584=_0x20a584-0x0;var _0x4b41a8=_0x7f5e[_0x20a584];return _0x4b41a8;};'use strict';var CmListEvents=require('./cmList.events');var events=['save','remove','update'];function createListener(_0x3f6ae8,_0x5c5563){return function(_0x484794){_0x5c5563[_0xe7f5('0x0')](_0x3f6ae8,_0x484794);};}function removeListener(_0x591852,_0x994866){return function(){CmListEvents[_0xe7f5('0x1')](_0x591852,_0x994866);};}exports['register']=function(_0xb79e10){for(var _0x29f208=0x0,_0xb2d31d=events['length'];_0x29f208<_0xb2d31d;_0x29f208++){var _0x3869a6=events[_0x29f208];var _0x1f7700=createListener(_0xe7f5('0x2')+_0x3869a6,_0xb79e10);CmListEvents['on'](_0x3869a6,_0x1f7700);}};