Built motion from commit (unavailable).|2.5.11
[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 _0x96e0=['emit','length','./cmList.events','remove'];(function(_0x184c2c,_0x46777d){var _0x356f01=function(_0xfa6fb){while(--_0xfa6fb){_0x184c2c['push'](_0x184c2c['shift']());}};_0x356f01(++_0x46777d);}(_0x96e0,0x7e));var _0x096e=function(_0x1d54a1,_0xc1ddb1){_0x1d54a1=_0x1d54a1-0x0;var _0x4ee11a=_0x96e0[_0x1d54a1];return _0x4ee11a;};'use strict';var CmListEvents=require(_0x096e('0x0'));var events=['save',_0x096e('0x1'),'update'];function createListener(_0x54dd70,_0x43c589){return function(_0x43f196){_0x43c589[_0x096e('0x2')](_0x54dd70,_0x43f196);};}function removeListener(_0xaf295b,_0x58d22d){return function(){CmListEvents['removeListener'](_0xaf295b,_0x58d22d);};}exports['register']=function(_0xb2bebc){for(var _0x18a103=0x0,_0x23c5ab=events[_0x096e('0x3')];_0x18a103<_0x23c5ab;_0x18a103++){var _0x1f773=events[_0x18a103];var _0x790c0c=createListener('cmList:'+_0x1f773,_0xb2bebc);CmListEvents['on'](_0x1f773,_0x790c0c);}};