Built motion from commit 5293bb2a.|2.6.30
[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 _0x25ef=['remove','update','emit','removeListener','register','length','cmList:','./cmList.events'];(function(_0x2ffcdf,_0x5e8cc6){var _0x2715aa=function(_0x588b1f){while(--_0x588b1f){_0x2ffcdf['push'](_0x2ffcdf['shift']());}};_0x2715aa(++_0x5e8cc6);}(_0x25ef,0xf7));var _0xf25e=function(_0x477864,_0x2fc625){_0x477864=_0x477864-0x0;var _0x37d121=_0x25ef[_0x477864];return _0x37d121;};'use strict';var CmListEvents=require(_0xf25e('0x0'));var events=['save',_0xf25e('0x1'),_0xf25e('0x2')];function createListener(_0x23c690,_0x55b7bb){return function(_0x212544){_0x55b7bb[_0xf25e('0x3')](_0x23c690,_0x212544);};}function removeListener(_0x58f621,_0x5806b6){return function(){CmListEvents[_0xf25e('0x4')](_0x58f621,_0x5806b6);};}exports[_0xf25e('0x5')]=function(_0x148f96){for(var _0x47f98a=0x0,_0x3d5a1a=events[_0xf25e('0x6')];_0x47f98a<_0x3d5a1a;_0x47f98a++){var _0x706c6c=events[_0x47f98a];var _0x15500a=createListener(_0xf25e('0x7')+_0x706c6c,_0x148f96);CmListEvents['on'](_0x706c6c,_0x15500a);}};