Built motion from commit (unavailable).|2.5.2
[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 _0xb491=['emit','removeListener','register','cmList:','./cmList.events','save','remove','update'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0xb491,0x18c));var _0x1b49=function(_0x2e3dfc,_0x454d6c){_0x2e3dfc=_0x2e3dfc-0x0;var _0x4b1245=_0xb491[_0x2e3dfc];return _0x4b1245;};'use strict';var CmListEvents=require(_0x1b49('0x0'));var events=[_0x1b49('0x1'),_0x1b49('0x2'),_0x1b49('0x3')];function createListener(_0xe8da2c,_0x231040){return function(_0x48f2f4){_0x231040[_0x1b49('0x4')](_0xe8da2c,_0x48f2f4);};}function removeListener(_0x807af7,_0x50201b){return function(){CmListEvents[_0x1b49('0x5')](_0x807af7,_0x50201b);};}exports[_0x1b49('0x6')]=function(_0x22b7c1){for(var _0x5d9945=0x0,_0x212aee=events['length'];_0x5d9945<_0x212aee;_0x5d9945++){var _0x4636f4=events[_0x5d9945];var _0x3d5da7=createListener(_0x1b49('0x7')+_0x4636f4,_0x22b7c1);CmListEvents['on'](_0x4636f4,_0x3d5da7);}};