Built motion from commit 25580385.|2.6.2
[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 _0x0b46=['length','openchannelQueue:','./openchannelQueue.events','save','remove','update','emit','register'];(function(_0x5b2135,_0x3d90d7){var _0x18948e=function(_0x36e72d){while(--_0x36e72d){_0x5b2135['push'](_0x5b2135['shift']());}};_0x18948e(++_0x3d90d7);}(_0x0b46,0x132));var _0x60b4=function(_0x580d0e,_0x1e5f43){_0x580d0e=_0x580d0e-0x0;var _0xb51111=_0x0b46[_0x580d0e];return _0xb51111;};'use strict';var OpenchannelQueueEvents=require(_0x60b4('0x0'));var events=[_0x60b4('0x1'),_0x60b4('0x2'),_0x60b4('0x3')];function createListener(_0x4b7899,_0x56a61f){return function(_0x314915){_0x56a61f[_0x60b4('0x4')](_0x4b7899,_0x314915);};}function removeListener(_0x73858f,_0x4daf29){return function(){OpenchannelQueueEvents['removeListener'](_0x73858f,_0x4daf29);};}exports[_0x60b4('0x5')]=function(_0x483a08){for(var _0x38d6fd=0x0,_0x78f8a6=events[_0x60b4('0x6')];_0x38d6fd<_0x78f8a6;_0x38d6fd++){var _0x24fafc=events[_0x38d6fd];var _0x393d8a=createListener(_0x60b4('0x7')+_0x24fafc,_0x483a08);OpenchannelQueueEvents['on'](_0x24fafc,_0x393d8a);}};