Built motion from commit (unavailable).|2.2.2
[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 _0xbd56=['removeListener','length','cmList:','./cmList.events','save','remove','update','emit'];(function(_0x187693,_0x1d34db){var _0x23732b=function(_0x19a4cf){while(--_0x19a4cf){_0x187693['push'](_0x187693['shift']());}};_0x23732b(++_0x1d34db);}(_0xbd56,0x143));var _0x6bd5=function(_0x172803,_0x46cff2){_0x172803=_0x172803-0x0;var _0x1e06f1=_0xbd56[_0x172803];return _0x1e06f1;};'use strict';var CmListEvents=require(_0x6bd5('0x0'));var events=[_0x6bd5('0x1'),_0x6bd5('0x2'),_0x6bd5('0x3')];function createListener(_0x17e0da,_0x5a6d27){return function(_0x5325e5){_0x5a6d27[_0x6bd5('0x4')](_0x17e0da,_0x5325e5);};}function removeListener(_0x4b31f2,_0x36a018){return function(){CmListEvents[_0x6bd5('0x5')](_0x4b31f2,_0x36a018);};}exports['register']=function(_0x4f4301){for(var _0x303fb2=0x0,_0x1f2bbf=events[_0x6bd5('0x6')];_0x303fb2<_0x1f2bbf;_0x303fb2++){var _0x167808=events[_0x303fb2];var _0xa550de=createListener(_0x6bd5('0x7')+_0x167808,_0x4f4301);CmListEvents['on'](_0x167808,_0xa550de);}};