2abda5c043a77d4a18f3bee4f30d16c01e60531a
[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 _0x70ff=['register','length','openchannelQueue:','save','emit','removeListener'];(function(_0x5dd2cd,_0x2b2e96){var _0x448d2b=function(_0x1d48e8){while(--_0x1d48e8){_0x5dd2cd['push'](_0x5dd2cd['shift']());}};_0x448d2b(++_0x2b2e96);}(_0x70ff,0x123));var _0xf70f=function(_0x737a1f,_0x235fef){_0x737a1f=_0x737a1f-0x0;var _0x16eba1=_0x70ff[_0x737a1f];return _0x16eba1;};'use strict';var OpenchannelQueueEvents=require('./openchannelQueue.events');var events=[_0xf70f('0x0'),'remove','update'];function createListener(_0x970897,_0xee5cc1){return function(_0x1f5029){_0xee5cc1[_0xf70f('0x1')](_0x970897,_0x1f5029);};}function removeListener(_0x330e48,_0x19187e){return function(){OpenchannelQueueEvents[_0xf70f('0x2')](_0x330e48,_0x19187e);};}exports[_0xf70f('0x3')]=function(_0x3e29cc){for(var _0x281ed9=0x0,_0x329b8a=events[_0xf70f('0x4')];_0x281ed9<_0x329b8a;_0x281ed9++){var _0x9d7c25=events[_0x281ed9];var _0x2736c0=createListener(_0xf70f('0x5')+_0x9d7c25,_0x3e29cc);OpenchannelQueueEvents['on'](_0x9d7c25,_0x2736c0);}};