Built motion from commit (unavailable).|2.5.12
[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 _0xf435=['save','remove','update','emit','removeListener','cmList:'];(function(_0x3a711b,_0x519913){var _0x314d7d=function(_0x5caabd){while(--_0x5caabd){_0x3a711b['push'](_0x3a711b['shift']());}};_0x314d7d(++_0x519913);}(_0xf435,0x174));var _0x5f43=function(_0x535af1,_0x239264){_0x535af1=_0x535af1-0x0;var _0x11840a=_0xf435[_0x535af1];return _0x11840a;};'use strict';var CmListEvents=require('./cmList.events');var events=[_0x5f43('0x0'),_0x5f43('0x1'),_0x5f43('0x2')];function createListener(_0x1d26a9,_0x2f05a4){return function(_0x502de7){_0x2f05a4[_0x5f43('0x3')](_0x1d26a9,_0x502de7);};}function removeListener(_0x968d6a,_0x312c99){return function(){CmListEvents[_0x5f43('0x4')](_0x968d6a,_0x312c99);};}exports['register']=function(_0x15e341){for(var _0xfcd787=0x0,_0x39adbd=events['length'];_0xfcd787<_0x39adbd;_0xfcd787++){var _0x2f4620=events[_0xfcd787];var _0x2dc16e=createListener(_0x5f43('0x5')+_0x2f4620,_0x15e341);CmListEvents['on'](_0x2f4620,_0x2dc16e);}};