Built motion from commit (unavailable).|2.5.13
[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 _0x8f9d=['removeListener','length','cmList:','./cmList.events','remove','emit'];(function(_0x5250f3,_0x290ede){var _0xeeb39=function(_0x2bfcf7){while(--_0x2bfcf7){_0x5250f3['push'](_0x5250f3['shift']());}};_0xeeb39(++_0x290ede);}(_0x8f9d,0x93));var _0xd8f9=function(_0x42cae2,_0x284ef8){_0x42cae2=_0x42cae2-0x0;var _0x5f256f=_0x8f9d[_0x42cae2];return _0x5f256f;};'use strict';var CmListEvents=require(_0xd8f9('0x0'));var events=['save',_0xd8f9('0x1'),'update'];function createListener(_0x682953,_0x421dcb){return function(_0x119296){_0x421dcb[_0xd8f9('0x2')](_0x682953,_0x119296);};}function removeListener(_0x1f9331,_0x1b82b8){return function(){CmListEvents[_0xd8f9('0x3')](_0x1f9331,_0x1b82b8);};}exports['register']=function(_0x1c37be){for(var _0x24dd1e=0x0,_0x25d417=events[_0xd8f9('0x4')];_0x24dd1e<_0x25d417;_0x24dd1e++){var _0xf6105=events[_0x24dd1e];var _0x5c410f=createListener(_0xd8f9('0x5')+_0xf6105,_0x1c37be);CmListEvents['on'](_0xf6105,_0x5c410f);}};