Built motion from commit (unavailable).|2.5.4
[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 _0x4c9d=['removeListener','register','length','cmList:','./cmList.events','save','remove','emit'];(function(_0x641f18,_0x2919e8){var _0x16eefe=function(_0x578a89){while(--_0x578a89){_0x641f18['push'](_0x641f18['shift']());}};_0x16eefe(++_0x2919e8);}(_0x4c9d,0x7c));var _0xd4c9=function(_0x3ab51d,_0x2fa01d){_0x3ab51d=_0x3ab51d-0x0;var _0x29a04e=_0x4c9d[_0x3ab51d];return _0x29a04e;};'use strict';var CmListEvents=require(_0xd4c9('0x0'));var events=[_0xd4c9('0x1'),_0xd4c9('0x2'),'update'];function createListener(_0x11e4e7,_0x13c911){return function(_0x173031){_0x13c911[_0xd4c9('0x3')](_0x11e4e7,_0x173031);};}function removeListener(_0x102345,_0x2b30d0){return function(){CmListEvents[_0xd4c9('0x4')](_0x102345,_0x2b30d0);};}exports[_0xd4c9('0x5')]=function(_0x2c81cb){for(var _0x5980e0=0x0,_0x48b511=events[_0xd4c9('0x6')];_0x5980e0<_0x48b511;_0x5980e0++){var _0x37b94e=events[_0x5980e0];var _0x3f9d50=createListener(_0xd4c9('0x7')+_0x37b94e,_0x2c81cb);CmListEvents['on'](_0x37b94e,_0x3f9d50);}};