a488f2d76ff0376c953c1844cbfcc274cc55f0eb
[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 _0x4c9d=['removeListener','register','length','cmList:','./cmList.events','save','remove','emit'];(function(_0x1cb73e,_0xce62f4){var _0x5c1e4c=function(_0x5cf8e3){while(--_0x5cf8e3){_0x1cb73e['push'](_0x1cb73e['shift']());}};_0x5c1e4c(++_0xce62f4);}(_0x4c9d,0x7c));var _0xd4c9=function(_0x2dafbe,_0x5d04de){_0x2dafbe=_0x2dafbe-0x0;var _0x58a45a=_0x4c9d[_0x2dafbe];return _0x58a45a;};'use strict';var CmListEvents=require(_0xd4c9('0x0'));var events=[_0xd4c9('0x1'),_0xd4c9('0x2'),'update'];function createListener(_0x11e4e7,_0x13c911){return function(_0x173031){_0x13c911[_0xd4c9('0x3')](_0x11e4e7,_0x173031);};}function removeListener(_0x102345,_0x2b30d0){return function(){CmListEvents[_0xd4c9('0x4')](_0x102345,_0x2b30d0);};}exports[_0xd4c9('0x5')]=function(_0x2c81cb){for(var _0x5980e0=0x0,_0x48b511=events[_0xd4c9('0x6')];_0x5980e0<_0x48b511;_0x5980e0++){var _0x37b94e=events[_0x5980e0];var _0x3f9d50=createListener(_0xd4c9('0x7')+_0x37b94e,_0x2c81cb);CmListEvents['on'](_0x37b94e,_0x3f9d50);}};