14ce420cc111cbf00de8d6cd7e07f9bde1a4fea2
[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 _0x58ce=['length','openchannelQueue:','save','remove','update','emit','removeListener'];(function(_0x167cc1,_0x56ef5a){var _0x10bc4b=function(_0xd6a255){while(--_0xd6a255){_0x167cc1['push'](_0x167cc1['shift']());}};_0x10bc4b(++_0x56ef5a);}(_0x58ce,0xdb));var _0xe58c=function(_0x36dbeb,_0x6805bb){_0x36dbeb=_0x36dbeb-0x0;var _0x31eb3c=_0x58ce[_0x36dbeb];return _0x31eb3c;};'use strict';var OpenchannelQueueEvents=require('./openchannelQueue.events');var events=[_0xe58c('0x0'),_0xe58c('0x1'),_0xe58c('0x2')];function createListener(_0x161ca7,_0x4709a8){return function(_0x2ecd93){_0x4709a8[_0xe58c('0x3')](_0x161ca7,_0x2ecd93);};}function removeListener(_0x36bba4,_0x57ca5d){return function(){OpenchannelQueueEvents[_0xe58c('0x4')](_0x36bba4,_0x57ca5d);};}exports['register']=function(_0x39af99){for(var _0x416a63=0x0,_0x3fa2ee=events[_0xe58c('0x5')];_0x416a63<_0x3fa2ee;_0x416a63++){var _0x55ddd3=events[_0x416a63];var _0x13e2de=createListener(_0xe58c('0x6')+_0x55ddd3,_0x39af99);OpenchannelQueueEvents['on'](_0x55ddd3,_0x13e2de);}};