53fc3300f0c865f2e4535298835fc1d191dcc6a5
[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 _0x95be=['openchannelQueue:','save','remove','update','emit','register','length'];(function(_0x4bef0a,_0x4d4c4a){var _0x5a3831=function(_0x1d5016){while(--_0x1d5016){_0x4bef0a['push'](_0x4bef0a['shift']());}};_0x5a3831(++_0x4d4c4a);}(_0x95be,0x1ac));var _0xe95b=function(_0x3393d5,_0x5f459e){_0x3393d5=_0x3393d5-0x0;var _0xf05cc8=_0x95be[_0x3393d5];return _0xf05cc8;};'use strict';var OpenchannelQueueEvents=require('./openchannelQueue.events');var events=[_0xe95b('0x0'),_0xe95b('0x1'),_0xe95b('0x2')];function createListener(_0x34c155,_0x4673cc){return function(_0x5d0168){_0x4673cc[_0xe95b('0x3')](_0x34c155,_0x5d0168);};}function removeListener(_0x4b26e7,_0x4a9f0a){return function(){OpenchannelQueueEvents['removeListener'](_0x4b26e7,_0x4a9f0a);};}exports[_0xe95b('0x4')]=function(_0x36596a){for(var _0xb0da1e=0x0,_0x206327=events[_0xe95b('0x5')];_0xb0da1e<_0x206327;_0xb0da1e++){var _0x29cadf=events[_0xb0da1e];var _0x113afd=createListener(_0xe95b('0x6')+_0x29cadf,_0x36596a);OpenchannelQueueEvents['on'](_0x29cadf,_0x113afd);}};