Built motion from commit 10af8726.|2.6.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 _0xa3db=['length','openchannelQueue:','./openchannelQueue.events','save','remove','update','removeListener'];(function(_0x2a4cc6,_0x3ed438){var _0x381547=function(_0x44daba){while(--_0x44daba){_0x2a4cc6['push'](_0x2a4cc6['shift']());}};_0x381547(++_0x3ed438);}(_0xa3db,0x10c));var _0xba3d=function(_0x36a6ab,_0x58015f){_0x36a6ab=_0x36a6ab-0x0;var _0x526d4a=_0xa3db[_0x36a6ab];return _0x526d4a;};'use strict';var OpenchannelQueueEvents=require(_0xba3d('0x0'));var events=[_0xba3d('0x1'),_0xba3d('0x2'),_0xba3d('0x3')];function createListener(_0xd845ae,_0x734379){return function(_0x5d7bdc){_0x734379['emit'](_0xd845ae,_0x5d7bdc);};}function removeListener(_0x2fb742,_0x56f56e){return function(){OpenchannelQueueEvents[_0xba3d('0x4')](_0x2fb742,_0x56f56e);};}exports['register']=function(_0x3f8f46){for(var _0x12481b=0x0,_0x477583=events[_0xba3d('0x5')];_0x12481b<_0x477583;_0x12481b++){var _0x1bd181=events[_0x12481b];var _0x426868=createListener(_0xba3d('0x6')+_0x1bd181,_0x3f8f46);OpenchannelQueueEvents['on'](_0x1bd181,_0x426868);}};