b73a1c3ecdc8db9acfbfa28ddaaf651bf70ca198
[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 _0x34aa=['update','emit','removeListener','register','length','./cmList.events','remove'];(function(_0x46b22a,_0x5bf83a){var _0x44c2e8=function(_0x21b6fc){while(--_0x21b6fc){_0x46b22a['push'](_0x46b22a['shift']());}};_0x44c2e8(++_0x5bf83a);}(_0x34aa,0x171));var _0xa34a=function(_0x33ebf5,_0x258ec6){_0x33ebf5=_0x33ebf5-0x0;var _0x66957b=_0x34aa[_0x33ebf5];return _0x66957b;};'use strict';var CmListEvents=require(_0xa34a('0x0'));var events=['save',_0xa34a('0x1'),_0xa34a('0x2')];function createListener(_0xbb3857,_0x1fc924){return function(_0x496e55){_0x1fc924[_0xa34a('0x3')](_0xbb3857,_0x496e55);};}function removeListener(_0x30f3a2,_0x284561){return function(){CmListEvents[_0xa34a('0x4')](_0x30f3a2,_0x284561);};}exports[_0xa34a('0x5')]=function(_0x475f8f){for(var _0x27349c=0x0,_0x43f9ea=events[_0xa34a('0x6')];_0x27349c<_0x43f9ea;_0x27349c++){var _0x45f2b4=events[_0x27349c];var _0x467864=createListener('cmList:'+_0x45f2b4,_0x475f8f);CmListEvents['on'](_0x45f2b4,_0x467864);}};