0f055b81949486441e3798bedc6e458a5d2f0f9f
[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 _0xb3ae=['emit','removeListener','length','./openchannelQueue.events'];(function(_0x1d9db9,_0x33cd24){var _0x29c3d9=function(_0x53e769){while(--_0x53e769){_0x1d9db9['push'](_0x1d9db9['shift']());}};_0x29c3d9(++_0x33cd24);}(_0xb3ae,0x97));var _0xeb3a=function(_0x2641f9,_0x26715f){_0x2641f9=_0x2641f9-0x0;var _0x585741=_0xb3ae[_0x2641f9];return _0x585741;};'use strict';var OpenchannelQueueEvents=require(_0xeb3a('0x0'));var events=['save','remove','update'];function createListener(_0x7955a9,_0x23466a){return function(_0x312e44){_0x23466a[_0xeb3a('0x1')](_0x7955a9,_0x312e44);};}function removeListener(_0x7f7721,_0x3414ac){return function(){OpenchannelQueueEvents[_0xeb3a('0x2')](_0x7f7721,_0x3414ac);};}exports['register']=function(_0x4dda5a){for(var _0x273a87=0x0,_0x1753d5=events[_0xeb3a('0x3')];_0x273a87<_0x1753d5;_0x273a87++){var _0x58a220=events[_0x273a87];var _0x456b69=createListener('openchannelQueue:'+_0x58a220,_0x4dda5a);OpenchannelQueueEvents['on'](_0x58a220,_0x456b69);}};