0d24a5736f7a05f2eec47a2bd2fe3cff903a0ce5
[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 _0xdb85=['register','length','openchannelQueue:','./openchannelQueue.events','save','update','emit','removeListener'];(function(_0x15f297,_0x9d48fb){var _0x4b4fa3=function(_0x5d944d){while(--_0x5d944d){_0x15f297['push'](_0x15f297['shift']());}};_0x4b4fa3(++_0x9d48fb);}(_0xdb85,0x1f3));var _0x5db8=function(_0x1081a3,_0x2ac784){_0x1081a3=_0x1081a3-0x0;var _0x5696a2=_0xdb85[_0x1081a3];return _0x5696a2;};'use strict';var OpenchannelQueueEvents=require(_0x5db8('0x0'));var events=[_0x5db8('0x1'),'remove',_0x5db8('0x2')];function createListener(_0x7731b6,_0x3b8b19){return function(_0x304e3f){_0x3b8b19[_0x5db8('0x3')](_0x7731b6,_0x304e3f);};}function removeListener(_0x5ac0e4,_0x2023e3){return function(){OpenchannelQueueEvents[_0x5db8('0x4')](_0x5ac0e4,_0x2023e3);};}exports[_0x5db8('0x5')]=function(_0x5e6dd3){for(var _0x20bb41=0x0,_0x483263=events[_0x5db8('0x6')];_0x20bb41<_0x483263;_0x20bb41++){var _0x4bf95c=events[_0x20bb41];var _0xb33181=createListener(_0x5db8('0x7')+_0x4bf95c,_0x5e6dd3);OpenchannelQueueEvents['on'](_0x4bf95c,_0xb33181);}};