Built motion from commit 85328c08.|2.5.50
[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 _0x2327=['./cmList.events','save','remove','update','emit','length','cmList:'];(function(_0x459f23,_0x3298f7){var _0x3d5b16=function(_0x412778){while(--_0x412778){_0x459f23['push'](_0x459f23['shift']());}};_0x3d5b16(++_0x3298f7);}(_0x2327,0x12d));var _0x7232=function(_0x29ba06,_0x33f931){_0x29ba06=_0x29ba06-0x0;var _0x496d18=_0x2327[_0x29ba06];return _0x496d18;};'use strict';var CmListEvents=require(_0x7232('0x0'));var events=[_0x7232('0x1'),_0x7232('0x2'),_0x7232('0x3')];function createListener(_0x9fe583,_0x366903){return function(_0x3863d8){_0x366903[_0x7232('0x4')](_0x9fe583,_0x3863d8);};}function removeListener(_0x7f95d1,_0x38c88d){return function(){CmListEvents['removeListener'](_0x7f95d1,_0x38c88d);};}exports['register']=function(_0x4329ec){for(var _0x491878=0x0,_0x1fa230=events[_0x7232('0x5')];_0x491878<_0x1fa230;_0x491878++){var _0x55b690=events[_0x491878];var _0xc642bc=createListener(_0x7232('0x6')+_0x55b690,_0x4329ec);CmListEvents['on'](_0x55b690,_0xc642bc);}};