e0321bff246b172e66bebcc51c4171f274d71c93
[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 _0xef17=['removeListener','cmList:','./cmList.events','save','remove','update','emit'];(function(_0x23923e,_0x2c0335){var _0x480cc7=function(_0xca6a0f){while(--_0xca6a0f){_0x23923e['push'](_0x23923e['shift']());}};_0x480cc7(++_0x2c0335);}(_0xef17,0x136));var _0x7ef1=function(_0x39c0ba,_0x202032){_0x39c0ba=_0x39c0ba-0x0;var _0x34081b=_0xef17[_0x39c0ba];return _0x34081b;};'use strict';var CmListEvents=require(_0x7ef1('0x0'));var events=[_0x7ef1('0x1'),_0x7ef1('0x2'),_0x7ef1('0x3')];function createListener(_0x601558,_0x2c0aac){return function(_0x280431){_0x2c0aac[_0x7ef1('0x4')](_0x601558,_0x280431);};}function removeListener(_0x2daaa6,_0x538a0a){return function(){CmListEvents[_0x7ef1('0x5')](_0x2daaa6,_0x538a0a);};}exports['register']=function(_0x138ed1){for(var _0x498596=0x0,_0x34a040=events['length'];_0x498596<_0x34a040;_0x498596++){var _0x5aec63=events[_0x498596];var _0x10c896=createListener(_0x7ef1('0x6')+_0x5aec63,_0x138ed1);CmListEvents['on'](_0x5aec63,_0x10c896);}};