Built motion from commit b5996064.|2.6.21
[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 _0x3867=['emit','removeListener','register','length','cmList:','./cmList.events','save','remove'];(function(_0x50007c,_0x1cbf11){var _0x5c1ec7=function(_0x52d038){while(--_0x52d038){_0x50007c['push'](_0x50007c['shift']());}};_0x5c1ec7(++_0x1cbf11);}(_0x3867,0x175));var _0x7386=function(_0x1011e6,_0x470614){_0x1011e6=_0x1011e6-0x0;var _0x228274=_0x3867[_0x1011e6];return _0x228274;};'use strict';var CmListEvents=require(_0x7386('0x0'));var events=[_0x7386('0x1'),_0x7386('0x2'),'update'];function createListener(_0x56f11b,_0x6cc3f1){return function(_0x2572c5){_0x6cc3f1[_0x7386('0x3')](_0x56f11b,_0x2572c5);};}function removeListener(_0x2cfe49,_0x38542d){return function(){CmListEvents[_0x7386('0x4')](_0x2cfe49,_0x38542d);};}exports[_0x7386('0x5')]=function(_0xb4db7c){for(var _0x15b8e7=0x0,_0x5b46ec=events[_0x7386('0x6')];_0x15b8e7<_0x5b46ec;_0x15b8e7++){var _0x363d5a=events[_0x15b8e7];var _0x567cff=createListener(_0x7386('0x7')+_0x363d5a,_0xb4db7c);CmListEvents['on'](_0x363d5a,_0x567cff);}};