Built motion from commit da617fac.|2.6.6
[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 _0x36c3=['update','emit','removeListener','length','cmList:','save','remove'];(function(_0xe9f235,_0x3385ce){var _0x151875=function(_0x177c83){while(--_0x177c83){_0xe9f235['push'](_0xe9f235['shift']());}};_0x151875(++_0x3385ce);}(_0x36c3,0x132));var _0x336c=function(_0x127074,_0x3bd855){_0x127074=_0x127074-0x0;var _0x4c9463=_0x36c3[_0x127074];return _0x4c9463;};'use strict';var CmListEvents=require('./cmList.events');var events=[_0x336c('0x0'),_0x336c('0x1'),_0x336c('0x2')];function createListener(_0x8bb688,_0x5a51bc){return function(_0x1a1c2e){_0x5a51bc[_0x336c('0x3')](_0x8bb688,_0x1a1c2e);};}function removeListener(_0x518cbc,_0x3a293d){return function(){CmListEvents[_0x336c('0x4')](_0x518cbc,_0x3a293d);};}exports['register']=function(_0x28c2e1){for(var _0x984420=0x0,_0x1be751=events[_0x336c('0x5')];_0x984420<_0x1be751;_0x984420++){var _0x145e20=events[_0x984420];var _0x2c5315=createListener(_0x336c('0x6')+_0x145e20,_0x28c2e1);CmListEvents['on'](_0x145e20,_0x2c5315);}};