1a9d1852aed6fa34c1cd422393ea0eece65c4b8a
[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 _0x6ccf=['removeListener','register','length','openchannelQueue:','./openchannelQueue.events','emit'];(function(_0x210be7,_0x7872f6){var _0x1566ba=function(_0xca934f){while(--_0xca934f){_0x210be7['push'](_0x210be7['shift']());}};_0x1566ba(++_0x7872f6);}(_0x6ccf,0x1d8));var _0xf6cc=function(_0x5cc8,_0x1faa02){_0x5cc8=_0x5cc8-0x0;var _0x450661=_0x6ccf[_0x5cc8];return _0x450661;};'use strict';var OpenchannelQueueEvents=require(_0xf6cc('0x0'));var events=['save','remove','update'];function createListener(_0x11a59a,_0xe81b0d){return function(_0x463ff){_0xe81b0d[_0xf6cc('0x1')](_0x11a59a,_0x463ff);};}function removeListener(_0x27f842,_0x1f9acc){return function(){OpenchannelQueueEvents[_0xf6cc('0x2')](_0x27f842,_0x1f9acc);};}exports[_0xf6cc('0x3')]=function(_0x2f8d2c){for(var _0x315155=0x0,_0x196e52=events[_0xf6cc('0x4')];_0x315155<_0x196e52;_0x315155++){var _0x29f251=events[_0x315155];var _0x20bdd6=createListener(_0xf6cc('0x5')+_0x29f251,_0x2f8d2c);OpenchannelQueueEvents['on'](_0x29f251,_0x20bdd6);}};