Built motion from commit bab6f49e.|2.6.17
[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 _0x3e1a=['emit','register','length','cmList:','./cmList.events','save','remove'];(function(_0x521f8b,_0x54e1ac){var _0x3426f7=function(_0x42ca5d){while(--_0x42ca5d){_0x521f8b['push'](_0x521f8b['shift']());}};_0x3426f7(++_0x54e1ac);}(_0x3e1a,0x170));var _0xa3e1=function(_0x564c65,_0x504121){_0x564c65=_0x564c65-0x0;var _0x12c588=_0x3e1a[_0x564c65];return _0x12c588;};'use strict';var CmListEvents=require(_0xa3e1('0x0'));var events=[_0xa3e1('0x1'),_0xa3e1('0x2'),'update'];function createListener(_0x1cabcb,_0x43f9ee){return function(_0x5e8c30){_0x43f9ee[_0xa3e1('0x3')](_0x1cabcb,_0x5e8c30);};}function removeListener(_0x2ead9f,_0x65a1e8){return function(){CmListEvents['removeListener'](_0x2ead9f,_0x65a1e8);};}exports[_0xa3e1('0x4')]=function(_0x11b849){for(var _0x4755a0=0x0,_0x843325=events[_0xa3e1('0x5')];_0x4755a0<_0x843325;_0x4755a0++){var _0x27f055=events[_0x4755a0];var _0x16d849=createListener(_0xa3e1('0x6')+_0x27f055,_0x11b849);CmListEvents['on'](_0x27f055,_0x16d849);}};