Built motion from commit e6806ed6.|2.6.0
[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 _0x8a35=['length','./openchannelQueue.events','save','remove','register'];(function(_0x57c738,_0xbdf887){var _0x52cbed=function(_0x4d29e2){while(--_0x4d29e2){_0x57c738['push'](_0x57c738['shift']());}};_0x52cbed(++_0xbdf887);}(_0x8a35,0x173));var _0x58a3=function(_0x4b369d,_0x265eb8){_0x4b369d=_0x4b369d-0x0;var _0x571a98=_0x8a35[_0x4b369d];return _0x571a98;};'use strict';var OpenchannelQueueEvents=require(_0x58a3('0x0'));var events=[_0x58a3('0x1'),_0x58a3('0x2'),'update'];function createListener(_0x4c660c,_0xa99f38){return function(_0x48c2ed){_0xa99f38['emit'](_0x4c660c,_0x48c2ed);};}function removeListener(_0x3e1715,_0x398d5c){return function(){OpenchannelQueueEvents['removeListener'](_0x3e1715,_0x398d5c);};}exports[_0x58a3('0x3')]=function(_0x6ac2ca){for(var _0x25ef2c=0x0,_0x80e24d=events[_0x58a3('0x4')];_0x25ef2c<_0x80e24d;_0x25ef2c++){var _0xc0ed24=events[_0x25ef2c];var _0x2bc6fe=createListener('openchannelQueue:'+_0xc0ed24,_0x6ac2ca);OpenchannelQueueEvents['on'](_0xc0ed24,_0x2bc6fe);}};