Built motion from commit f7863d46.|2.5.41
[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 _0x3ac5=['emit','removeListener','register','cmList:','save','remove','update'];(function(_0x48f2f2,_0x20b79c){var _0x508ee9=function(_0x3a46d7){while(--_0x3a46d7){_0x48f2f2['push'](_0x48f2f2['shift']());}};_0x508ee9(++_0x20b79c);}(_0x3ac5,0x7b));var _0x53ac=function(_0x5b813d,_0x4aa2ad){_0x5b813d=_0x5b813d-0x0;var _0x562357=_0x3ac5[_0x5b813d];return _0x562357;};'use strict';var CmListEvents=require('./cmList.events');var events=[_0x53ac('0x0'),_0x53ac('0x1'),_0x53ac('0x2')];function createListener(_0x21521a,_0x3591b5){return function(_0xbe21f){_0x3591b5[_0x53ac('0x3')](_0x21521a,_0xbe21f);};}function removeListener(_0x1a6f49,_0x17874b){return function(){CmListEvents[_0x53ac('0x4')](_0x1a6f49,_0x17874b);};}exports[_0x53ac('0x5')]=function(_0x432e02){for(var _0x2ddda1=0x0,_0x77f592=events['length'];_0x2ddda1<_0x77f592;_0x2ddda1++){var _0x184614=events[_0x2ddda1];var _0x6da078=createListener(_0x53ac('0x6')+_0x184614,_0x432e02);CmListEvents['on'](_0x184614,_0x6da078);}};