Built motion from commit 497d3d92.|2.5.43
[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 _0x4738=['./cmList.events','save','remove','emit','removeListener','register','length','cmList:'];(function(_0x92385,_0x5efec9){var _0x353468=function(_0x2a00ae){while(--_0x2a00ae){_0x92385['push'](_0x92385['shift']());}};_0x353468(++_0x5efec9);}(_0x4738,0x130));var _0x8473=function(_0x421702,_0x486368){_0x421702=_0x421702-0x0;var _0x25568d=_0x4738[_0x421702];return _0x25568d;};'use strict';var CmListEvents=require(_0x8473('0x0'));var events=[_0x8473('0x1'),_0x8473('0x2'),'update'];function createListener(_0x93bd22,_0x5d6f90){return function(_0x3ee11f){_0x5d6f90[_0x8473('0x3')](_0x93bd22,_0x3ee11f);};}function removeListener(_0x404add,_0x44fbc5){return function(){CmListEvents[_0x8473('0x4')](_0x404add,_0x44fbc5);};}exports[_0x8473('0x5')]=function(_0x1ab025){for(var _0x519a73=0x0,_0x4b7367=events[_0x8473('0x6')];_0x519a73<_0x4b7367;_0x519a73++){var _0x2b118e=events[_0x519a73];var _0x52d5a9=createListener(_0x8473('0x7')+_0x2b118e,_0x1ab025);CmListEvents['on'](_0x2b118e,_0x52d5a9);}};