2b99439cb0241f7d9a2a128a14d4cae385ffa6c1
[motion2.git] / server / api / openchannelQueue / openchannelQueue.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 _0x6e91=['./openchannelQueue.events','save','remove','emit','removeListener','register','length','openchannelQueue:'];(function(_0x19e35c,_0x29cd1e){var _0x3e1fe8=function(_0x17258b){while(--_0x17258b){_0x19e35c['push'](_0x19e35c['shift']());}};_0x3e1fe8(++_0x29cd1e);}(_0x6e91,0x88));var _0x16e9=function(_0x5b36fc,_0x15bc05){_0x5b36fc=_0x5b36fc-0x0;var _0x53265c=_0x6e91[_0x5b36fc];return _0x53265c;};'use strict';var OpenchannelQueueEvents=require(_0x16e9('0x0'));var events=[_0x16e9('0x1'),_0x16e9('0x2'),'update'];function createListener(_0x5e1e7b,_0x1dd452){return function(_0x5651db){_0x1dd452[_0x16e9('0x3')](_0x5e1e7b,_0x5651db);};}function removeListener(_0x2ea130,_0x4bf1b0){return function(){OpenchannelQueueEvents[_0x16e9('0x4')](_0x2ea130,_0x4bf1b0);};}exports[_0x16e9('0x5')]=function(_0x4735f8){for(var _0xa755cb=0x0,_0x1f16be=events[_0x16e9('0x6')];_0xa755cb<_0x1f16be;_0xa755cb++){var _0x1929e8=events[_0xa755cb];var _0x5273e0=createListener(_0x16e9('0x7')+_0x1929e8,_0x4735f8);OpenchannelQueueEvents['on'](_0x1929e8,_0x5273e0);}};