Built motion from commit c1aa34a0.|2.6.28
[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 _0xace8=['removeListener','length','cmList:','./cmList.events','save','remove','update'];(function(_0x5b8566,_0x2152e2){var _0x557e4b=function(_0x52908f){while(--_0x52908f){_0x5b8566['push'](_0x5b8566['shift']());}};_0x557e4b(++_0x2152e2);}(_0xace8,0x88));var _0x8ace=function(_0x52d441,_0x343fb0){_0x52d441=_0x52d441-0x0;var _0x5cf70f=_0xace8[_0x52d441];return _0x5cf70f;};'use strict';var CmListEvents=require(_0x8ace('0x0'));var events=[_0x8ace('0x1'),_0x8ace('0x2'),_0x8ace('0x3')];function createListener(_0x2810d7,_0x7046bc){return function(_0x21b48c){_0x7046bc['emit'](_0x2810d7,_0x21b48c);};}function removeListener(_0x198de9,_0x3c8d2a){return function(){CmListEvents[_0x8ace('0x4')](_0x198de9,_0x3c8d2a);};}exports['register']=function(_0x56b566){for(var _0x571c6c=0x0,_0x2c8d91=events[_0x8ace('0x5')];_0x571c6c<_0x2c8d91;_0x571c6c++){var _0xf7c200=events[_0x571c6c];var _0x42d103=createListener(_0x8ace('0x6')+_0xf7c200,_0x56b566);CmListEvents['on'](_0xf7c200,_0x42d103);}};