Built motion from commit (unavailable).|2.3.1
[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 _0x11ee=['./cmList.events','save','remove','update','emit','removeListener','register','length','cmList:'];(function(_0x3101a5,_0x4e6168){var _0x436775=function(_0x398078){while(--_0x398078){_0x3101a5['push'](_0x3101a5['shift']());}};_0x436775(++_0x4e6168);}(_0x11ee,0x1dd));var _0xe11e=function(_0xc4376d,_0x2e6841){_0xc4376d=_0xc4376d-0x0;var _0x291524=_0x11ee[_0xc4376d];return _0x291524;};'use strict';var CmListEvents=require(_0xe11e('0x0'));var events=[_0xe11e('0x1'),_0xe11e('0x2'),_0xe11e('0x3')];function createListener(_0x48f911,_0x291e5b){return function(_0x5fcbe7){_0x291e5b[_0xe11e('0x4')](_0x48f911,_0x5fcbe7);};}function removeListener(_0x520e55,_0x10de5e){return function(){CmListEvents[_0xe11e('0x5')](_0x520e55,_0x10de5e);};}exports[_0xe11e('0x6')]=function(_0x198209){for(var _0x5e8a86=0x0,_0x2f46fb=events[_0xe11e('0x7')];_0x5e8a86<_0x2f46fb;_0x5e8a86++){var _0xda3980=events[_0x5e8a86];var _0x586f84=createListener(_0xe11e('0x8')+_0xda3980,_0x198209);CmListEvents['on'](_0xda3980,_0x586f84);}};