Built motion from commit (unavailable).|2.5.22
[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 _0x83d0=['save','remove','update','emit','removeListener','register','cmList:','./cmList.events'];(function(_0x5acd16,_0x1eb2b4){var _0x1a5cdd=function(_0x1cca56){while(--_0x1cca56){_0x5acd16['push'](_0x5acd16['shift']());}};_0x1a5cdd(++_0x1eb2b4);}(_0x83d0,0xb7));var _0x083d=function(_0x1a7625,_0x41857c){_0x1a7625=_0x1a7625-0x0;var _0x1afc5d=_0x83d0[_0x1a7625];return _0x1afc5d;};'use strict';var CmListEvents=require(_0x083d('0x0'));var events=[_0x083d('0x1'),_0x083d('0x2'),_0x083d('0x3')];function createListener(_0x408a00,_0x2d89ab){return function(_0x564d1d){_0x2d89ab[_0x083d('0x4')](_0x408a00,_0x564d1d);};}function removeListener(_0x4ff4cb,_0x5625dc){return function(){CmListEvents[_0x083d('0x5')](_0x4ff4cb,_0x5625dc);};}exports[_0x083d('0x6')]=function(_0x3c4b8c){for(var _0x2e75e8=0x0,_0x472c6b=events['length'];_0x2e75e8<_0x472c6b;_0x2e75e8++){var _0x4ec2e7=events[_0x2e75e8];var _0xddbf58=createListener(_0x083d('0x7')+_0x4ec2e7,_0x3c4b8c);CmListEvents['on'](_0x4ec2e7,_0xddbf58);}};