Built motion from commit 994c64e1.|2.6.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 _0x5a0f=['removeListener','register','length','cmList:','./cmList.events','remove','update','emit'];(function(_0x1c6868,_0x42fccd){var _0x6121ef=function(_0x528dc3){while(--_0x528dc3){_0x1c6868['push'](_0x1c6868['shift']());}};_0x6121ef(++_0x42fccd);}(_0x5a0f,0x1e4));var _0xf5a0=function(_0x558bf8,_0x42fb1a){_0x558bf8=_0x558bf8-0x0;var _0x22d4e8=_0x5a0f[_0x558bf8];return _0x22d4e8;};'use strict';var CmListEvents=require(_0xf5a0('0x0'));var events=['save',_0xf5a0('0x1'),_0xf5a0('0x2')];function createListener(_0x4a19fd,_0x5c1c56){return function(_0x50ed87){_0x5c1c56[_0xf5a0('0x3')](_0x4a19fd,_0x50ed87);};}function removeListener(_0x2bee25,_0x499f35){return function(){CmListEvents[_0xf5a0('0x4')](_0x2bee25,_0x499f35);};}exports[_0xf5a0('0x5')]=function(_0x11a078){for(var _0x202f8a=0x0,_0x36322a=events[_0xf5a0('0x6')];_0x202f8a<_0x36322a;_0x202f8a++){var _0x3c0d2e=events[_0x202f8a];var _0x4c0266=createListener(_0xf5a0('0x7')+_0x3c0d2e,_0x11a078);CmListEvents['on'](_0x3c0d2e,_0x4c0266);}};