Built motion from commit (unavailable).|2.5.10
[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 _0xfd8f=['./cmList.events','save','update','register','length','cmList:'];(function(_0x11193b,_0x398ade){var _0x3d661f=function(_0x2f0cd2){while(--_0x2f0cd2){_0x11193b['push'](_0x11193b['shift']());}};_0x3d661f(++_0x398ade);}(_0xfd8f,0xae));var _0xffd8=function(_0x8adb98,_0x179876){_0x8adb98=_0x8adb98-0x0;var _0x14d046=_0xfd8f[_0x8adb98];return _0x14d046;};'use strict';var CmListEvents=require(_0xffd8('0x0'));var events=[_0xffd8('0x1'),'remove',_0xffd8('0x2')];function createListener(_0xd82853,_0x180ca5){return function(_0x28015c){_0x180ca5['emit'](_0xd82853,_0x28015c);};}function removeListener(_0x123f30,_0x190f79){return function(){CmListEvents['removeListener'](_0x123f30,_0x190f79);};}exports[_0xffd8('0x3')]=function(_0x135be6){for(var _0x2ca514=0x0,_0x1785ea=events[_0xffd8('0x4')];_0x2ca514<_0x1785ea;_0x2ca514++){var _0x254e4f=events[_0x2ca514];var _0x519e5d=createListener(_0xffd8('0x5')+_0x254e4f,_0x135be6);CmListEvents['on'](_0x254e4f,_0x519e5d);}};