Built motion from commit c116dc8b.|2.6.30
[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 _0xaf8d=['save','remove','removeListener','register','length','openchannelQueue:','./openchannelQueue.events'];(function(_0x45783c,_0x49c56d){var _0x1161da=function(_0x3c5d41){while(--_0x3c5d41){_0x45783c['push'](_0x45783c['shift']());}};_0x1161da(++_0x49c56d);}(_0xaf8d,0x125));var _0xdaf8=function(_0x3c8d27,_0x3f566c){_0x3c8d27=_0x3c8d27-0x0;var _0x590432=_0xaf8d[_0x3c8d27];return _0x590432;};'use strict';var OpenchannelQueueEvents=require(_0xdaf8('0x0'));var events=[_0xdaf8('0x1'),_0xdaf8('0x2'),'update'];function createListener(_0x4c5748,_0x55a150){return function(_0x50aaff){_0x55a150['emit'](_0x4c5748,_0x50aaff);};}function removeListener(_0x2769ab,_0x5f5096){return function(){OpenchannelQueueEvents[_0xdaf8('0x3')](_0x2769ab,_0x5f5096);};}exports[_0xdaf8('0x4')]=function(_0x58d813){for(var _0x290043=0x0,_0x1fc60d=events[_0xdaf8('0x5')];_0x290043<_0x1fc60d;_0x290043++){var _0x3422d8=events[_0x290043];var _0x2ebcf3=createListener(_0xdaf8('0x6')+_0x3422d8,_0x58d813);OpenchannelQueueEvents['on'](_0x3422d8,_0x2ebcf3);}};