Built motion from commit d1eab355.|2.6.28
[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 _0x72f7=['register','length','openchannelQueue:','save','remove','update','removeListener'];(function(_0x3e3407,_0x15155d){var _0x5de138=function(_0x72cf55){while(--_0x72cf55){_0x3e3407['push'](_0x3e3407['shift']());}};_0x5de138(++_0x15155d);}(_0x72f7,0x153));var _0x772f=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x72f7[_0x3dd15e];return _0x231fd0;};'use strict';var OpenchannelQueueEvents=require('./openchannelQueue.events');var events=[_0x772f('0x0'),_0x772f('0x1'),_0x772f('0x2')];function createListener(_0x1097b7,_0x147a2a){return function(_0xda648c){_0x147a2a['emit'](_0x1097b7,_0xda648c);};}function removeListener(_0x2e8bbb,_0x28158c){return function(){OpenchannelQueueEvents[_0x772f('0x3')](_0x2e8bbb,_0x28158c);};}exports[_0x772f('0x4')]=function(_0x5e48bc){for(var _0x10408b=0x0,_0x2e6a9c=events[_0x772f('0x5')];_0x10408b<_0x2e6a9c;_0x10408b++){var _0x418345=events[_0x10408b];var _0x51d0ff=createListener(_0x772f('0x6')+_0x418345,_0x5e48bc);OpenchannelQueueEvents['on'](_0x418345,_0x51d0ff);}};