Built motion from commit (unavailable).|2.5.14
[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 _0x6132=['save','remove','update','emit','removeListener','length','./cmList.events'];(function(_0x5da702,_0x26c19d){var _0xedb955=function(_0x268dd0){while(--_0x268dd0){_0x5da702['push'](_0x5da702['shift']());}};_0xedb955(++_0x26c19d);}(_0x6132,0x13a));var _0x2613=function(_0x605f43,_0x4f148c){_0x605f43=_0x605f43-0x0;var _0x4acc17=_0x6132[_0x605f43];return _0x4acc17;};'use strict';var CmListEvents=require(_0x2613('0x0'));var events=[_0x2613('0x1'),_0x2613('0x2'),_0x2613('0x3')];function createListener(_0x4a191a,_0x2e19a7){return function(_0x1a9371){_0x2e19a7[_0x2613('0x4')](_0x4a191a,_0x1a9371);};}function removeListener(_0x35c979,_0x555746){return function(){CmListEvents[_0x2613('0x5')](_0x35c979,_0x555746);};}exports['register']=function(_0x59240d){for(var _0x30cac4=0x0,_0x309663=events[_0x2613('0x6')];_0x30cac4<_0x309663;_0x30cac4++){var _0x465a32=events[_0x30cac4];var _0xe295ea=createListener('cmList:'+_0x465a32,_0x59240d);CmListEvents['on'](_0x465a32,_0xe295ea);}};