Built motion from commit (unavailable).|2.5.26
[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 _0x68f5=['register','cmList:','./cmList.events','save','remove','emit','removeListener'];(function(_0xe9b57d,_0x4ab7fb){var _0xd37548=function(_0x4b5a80){while(--_0x4b5a80){_0xe9b57d['push'](_0xe9b57d['shift']());}};_0xd37548(++_0x4ab7fb);}(_0x68f5,0x11a));var _0x568f=function(_0x7b18d3,_0x4bbfd3){_0x7b18d3=_0x7b18d3-0x0;var _0x12732c=_0x68f5[_0x7b18d3];return _0x12732c;};'use strict';var CmListEvents=require(_0x568f('0x0'));var events=[_0x568f('0x1'),_0x568f('0x2'),'update'];function createListener(_0x25a405,_0x44b6ad){return function(_0x23bd5b){_0x44b6ad[_0x568f('0x3')](_0x25a405,_0x23bd5b);};}function removeListener(_0x425217,_0x5de1c0){return function(){CmListEvents[_0x568f('0x4')](_0x425217,_0x5de1c0);};}exports[_0x568f('0x5')]=function(_0x31444b){for(var _0x3181fd=0x0,_0x4ca62c=events['length'];_0x3181fd<_0x4ca62c;_0x3181fd++){var _0x953f02=events[_0x3181fd];var _0x3568a0=createListener(_0x568f('0x6')+_0x953f02,_0x31444b);CmListEvents['on'](_0x953f02,_0x3568a0);}};