Built motion from commit 14588770.|2.5.38
[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 _0xd46c=['emit','removeListener','register','length','openchannelQueue:','./openchannelQueue.events','update'];(function(_0x18e769,_0x269ee7){var _0x8b69d9=function(_0x2cc61a){while(--_0x2cc61a){_0x18e769['push'](_0x18e769['shift']());}};_0x8b69d9(++_0x269ee7);}(_0xd46c,0xa6));var _0xcd46=function(_0x2100c5,_0x5b998b){_0x2100c5=_0x2100c5-0x0;var _0x42e105=_0xd46c[_0x2100c5];return _0x42e105;};'use strict';var OpenchannelQueueEvents=require(_0xcd46('0x0'));var events=['save','remove',_0xcd46('0x1')];function createListener(_0x1672d8,_0x464a79){return function(_0x1877ac){_0x464a79[_0xcd46('0x2')](_0x1672d8,_0x1877ac);};}function removeListener(_0x57270b,_0x45457c){return function(){OpenchannelQueueEvents[_0xcd46('0x3')](_0x57270b,_0x45457c);};}exports[_0xcd46('0x4')]=function(_0x35f1fd){for(var _0x453774=0x0,_0x254a0c=events[_0xcd46('0x5')];_0x453774<_0x254a0c;_0x453774++){var _0x51c70b=events[_0x453774];var _0x375d40=createListener(_0xcd46('0x6')+_0x51c70b,_0x35f1fd);OpenchannelQueueEvents['on'](_0x51c70b,_0x375d40);}};