Built motion from commit 19a84241.|2.5.34
[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 _0xb3c1=['openchannelQueue:','save','update','register','length'];(function(_0x4cf98e,_0xba4b79){var _0x1623ac=function(_0x459bc0){while(--_0x459bc0){_0x4cf98e['push'](_0x4cf98e['shift']());}};_0x1623ac(++_0xba4b79);}(_0xb3c1,0x105));var _0x1b3c=function(_0x20a584,_0xe384a5){_0x20a584=_0x20a584-0x0;var _0x4b41a8=_0xb3c1[_0x20a584];return _0x4b41a8;};'use strict';var OpenchannelQueueEvents=require('./openchannelQueue.events');var events=[_0x1b3c('0x0'),'remove',_0x1b3c('0x1')];function createListener(_0x17ea77,_0x34dfac){return function(_0x471e2d){_0x34dfac['emit'](_0x17ea77,_0x471e2d);};}function removeListener(_0x2be622,_0x3d227c){return function(){OpenchannelQueueEvents['removeListener'](_0x2be622,_0x3d227c);};}exports[_0x1b3c('0x2')]=function(_0x47fb40){for(var _0x30e386=0x0,_0x2bd216=events[_0x1b3c('0x3')];_0x30e386<_0x2bd216;_0x30e386++){var _0x3ff03b=events[_0x30e386];var _0x4193f9=createListener(_0x1b3c('0x4')+_0x3ff03b,_0x47fb40);OpenchannelQueueEvents['on'](_0x3ff03b,_0x4193f9);}};