Built motion from commit a61a4a20.|2.5.46
[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 _0xb1cb=['removeListener','register','length','cmList:','save','remove','update'];(function(_0x2595a6,_0x48fc45){var _0x460197=function(_0x18f9db){while(--_0x18f9db){_0x2595a6['push'](_0x2595a6['shift']());}};_0x460197(++_0x48fc45);}(_0xb1cb,0x1bd));var _0xbb1c=function(_0x3d42d8,_0x4cffaa){_0x3d42d8=_0x3d42d8-0x0;var _0x27fc41=_0xb1cb[_0x3d42d8];return _0x27fc41;};'use strict';var CmListEvents=require('./cmList.events');var events=[_0xbb1c('0x0'),_0xbb1c('0x1'),_0xbb1c('0x2')];function createListener(_0x4c5fe2,_0x2c0b5b){return function(_0x25e58e){_0x2c0b5b['emit'](_0x4c5fe2,_0x25e58e);};}function removeListener(_0x33af6c,_0x52aa4f){return function(){CmListEvents[_0xbb1c('0x3')](_0x33af6c,_0x52aa4f);};}exports[_0xbb1c('0x4')]=function(_0x511b98){for(var _0x3462f0=0x0,_0xfce270=events[_0xbb1c('0x5')];_0x3462f0<_0xfce270;_0x3462f0++){var _0x1eae7c=events[_0x3462f0];var _0x546db7=createListener(_0xbb1c('0x6')+_0x1eae7c,_0x511b98);CmListEvents['on'](_0x1eae7c,_0x546db7);}};