14fca48c0b2f2dfa4ca4b0a4a1874e2d4bd584e9
[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 _0xc97f=['length','openchannelQueue:','./openchannelQueue.events','save','remove','emit','removeListener','register'];(function(_0x2a2424,_0x2c537b){var _0x3722a7=function(_0x15978b){while(--_0x15978b){_0x2a2424['push'](_0x2a2424['shift']());}};_0x3722a7(++_0x2c537b);}(_0xc97f,0xca));var _0xfc97=function(_0x1252bb,_0x27f681){_0x1252bb=_0x1252bb-0x0;var _0x3cde4c=_0xc97f[_0x1252bb];return _0x3cde4c;};'use strict';var OpenchannelQueueEvents=require(_0xfc97('0x0'));var events=[_0xfc97('0x1'),_0xfc97('0x2'),'update'];function createListener(_0x55d9f6,_0x4cea6e){return function(_0x2d6a46){_0x4cea6e[_0xfc97('0x3')](_0x55d9f6,_0x2d6a46);};}function removeListener(_0x1633e5,_0xabb827){return function(){OpenchannelQueueEvents[_0xfc97('0x4')](_0x1633e5,_0xabb827);};}exports[_0xfc97('0x5')]=function(_0x22fbe5){for(var _0x414c65=0x0,_0x15c48e=events[_0xfc97('0x6')];_0x414c65<_0x15c48e;_0x414c65++){var _0x354ed5=events[_0x414c65];var _0x2ce07e=createListener(_0xfc97('0x7')+_0x354ed5,_0x22fbe5);OpenchannelQueueEvents['on'](_0x354ed5,_0x2ce07e);}};