92dadac85f2a9b73955304d53cebed2641744256
[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 _0xa76f=['length','openchannelQueue:','./openchannelQueue.events','remove','emit','removeListener','register'];(function(_0x1e5170,_0x3318c4){var _0x598b0a=function(_0x36b3db){while(--_0x36b3db){_0x1e5170['push'](_0x1e5170['shift']());}};_0x598b0a(++_0x3318c4);}(_0xa76f,0x18a));var _0xfa76=function(_0x5dd8ab,_0x27460d){_0x5dd8ab=_0x5dd8ab-0x0;var _0x1dcba3=_0xa76f[_0x5dd8ab];return _0x1dcba3;};'use strict';var OpenchannelQueueEvents=require(_0xfa76('0x0'));var events=['save',_0xfa76('0x1'),'update'];function createListener(_0x8304ba,_0x441955){return function(_0xd73e24){_0x441955[_0xfa76('0x2')](_0x8304ba,_0xd73e24);};}function removeListener(_0x433359,_0x4dd6bd){return function(){OpenchannelQueueEvents[_0xfa76('0x3')](_0x433359,_0x4dd6bd);};}exports[_0xfa76('0x4')]=function(_0x2aedcc){for(var _0x2e2129=0x0,_0x29b065=events[_0xfa76('0x5')];_0x2e2129<_0x29b065;_0x2e2129++){var _0x56b95b=events[_0x2e2129];var _0x579c44=createListener(_0xfa76('0x6')+_0x56b95b,_0x2aedcc);OpenchannelQueueEvents['on'](_0x56b95b,_0x579c44);}};