960da328699e2eb81b57c92483094853e7a1a7be
[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 _0x6a37=['remove','update','emit','removeListener','register','./openchannelQueue.events','save'];(function(_0x4c7fcf,_0x6b133c){var _0x4d26e9=function(_0x5e2dd0){while(--_0x5e2dd0){_0x4c7fcf['push'](_0x4c7fcf['shift']());}};_0x4d26e9(++_0x6b133c);}(_0x6a37,0xbb));var _0x76a3=function(_0x30033a,_0x5ce4a6){_0x30033a=_0x30033a-0x0;var _0x5e3518=_0x6a37[_0x30033a];return _0x5e3518;};'use strict';var OpenchannelQueueEvents=require(_0x76a3('0x0'));var events=[_0x76a3('0x1'),_0x76a3('0x2'),_0x76a3('0x3')];function createListener(_0x3df3dc,_0xc92319){return function(_0x11d258){_0xc92319[_0x76a3('0x4')](_0x3df3dc,_0x11d258);};}function removeListener(_0x4835e6,_0x5da94f){return function(){OpenchannelQueueEvents[_0x76a3('0x5')](_0x4835e6,_0x5da94f);};}exports[_0x76a3('0x6')]=function(_0x4e3554){for(var _0x4c8444=0x0,_0x1194e7=events['length'];_0x4c8444<_0x1194e7;_0x4c8444++){var _0x4f8691=events[_0x4c8444];var _0x4d773e=createListener('openchannelQueue:'+_0x4f8691,_0x4e3554);OpenchannelQueueEvents['on'](_0x4f8691,_0x4d773e);}};