Built motion from commit (unavailable).|2.5.23
[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 _0x36f3=['register','cmList:','save','remove','update','emit'];(function(_0x25e905,_0x42f080){var _0x4d1f16=function(_0x575f79){while(--_0x575f79){_0x25e905['push'](_0x25e905['shift']());}};_0x4d1f16(++_0x42f080);}(_0x36f3,0xe6));var _0x336f=function(_0x596e23,_0x3356e1){_0x596e23=_0x596e23-0x0;var _0x3fcb54=_0x36f3[_0x596e23];return _0x3fcb54;};'use strict';var CmListEvents=require('./cmList.events');var events=[_0x336f('0x0'),_0x336f('0x1'),_0x336f('0x2')];function createListener(_0x16d8d7,_0x144f4c){return function(_0x10f6b8){_0x144f4c[_0x336f('0x3')](_0x16d8d7,_0x10f6b8);};}function removeListener(_0x475ff4,_0xfe7edc){return function(){CmListEvents['removeListener'](_0x475ff4,_0xfe7edc);};}exports[_0x336f('0x4')]=function(_0x267661){for(var _0xf85f24=0x0,_0x4ef72f=events['length'];_0xf85f24<_0x4ef72f;_0xf85f24++){var _0x3963d1=events[_0xf85f24];var _0x3aab62=createListener(_0x336f('0x5')+_0x3963d1,_0x267661);CmListEvents['on'](_0x3963d1,_0x3aab62);}};