Built motion from commit 9d0783e6.|2.6.13
[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 _0xfae1=['./cmList.events','save','removeListener','register','length'];(function(_0x467924,_0x3464ed){var _0x2d7f30=function(_0x588411){while(--_0x588411){_0x467924['push'](_0x467924['shift']());}};_0x2d7f30(++_0x3464ed);}(_0xfae1,0x69));var _0x1fae=function(_0x2c71c9,_0x36292b){_0x2c71c9=_0x2c71c9-0x0;var _0x29f48f=_0xfae1[_0x2c71c9];return _0x29f48f;};'use strict';var CmListEvents=require(_0x1fae('0x0'));var events=[_0x1fae('0x1'),'remove','update'];function createListener(_0x7c5482,_0x223aba){return function(_0x3014cb){_0x223aba['emit'](_0x7c5482,_0x3014cb);};}function removeListener(_0x2aaeac,_0x35b754){return function(){CmListEvents[_0x1fae('0x2')](_0x2aaeac,_0x35b754);};}exports[_0x1fae('0x3')]=function(_0x3be11b){for(var _0xe07f0c=0x0,_0xdddeb3=events[_0x1fae('0x4')];_0xe07f0c<_0xdddeb3;_0xe07f0c++){var _0x52c3da=events[_0xe07f0c];var _0x4e310d=createListener('cmList:'+_0x52c3da,_0x3be11b);CmListEvents['on'](_0x52c3da,_0x4e310d);}};