Built motion from commit (unavailable).|2.5.31
[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 _0xa791=['openchannelQueue:','remove','update','emit','removeListener','register','length'];(function(_0x2b04bf,_0x4703ae){var _0x176f42=function(_0x239096){while(--_0x239096){_0x2b04bf['push'](_0x2b04bf['shift']());}};_0x176f42(++_0x4703ae);}(_0xa791,0x135));var _0x1a79=function(_0x2ac615,_0x5b739c){_0x2ac615=_0x2ac615-0x0;var _0x24a496=_0xa791[_0x2ac615];return _0x24a496;};'use strict';var OpenchannelQueueEvents=require('./openchannelQueue.events');var events=['save',_0x1a79('0x0'),_0x1a79('0x1')];function createListener(_0x176b9a,_0x4a0092){return function(_0x1c0826){_0x4a0092[_0x1a79('0x2')](_0x176b9a,_0x1c0826);};}function removeListener(_0xafcd1c,_0x2bf419){return function(){OpenchannelQueueEvents[_0x1a79('0x3')](_0xafcd1c,_0x2bf419);};}exports[_0x1a79('0x4')]=function(_0x4c5346){for(var _0x462d8b=0x0,_0x1ee05f=events[_0x1a79('0x5')];_0x462d8b<_0x1ee05f;_0x462d8b++){var _0x2bbce9=events[_0x462d8b];var _0x3d2ab5=createListener(_0x1a79('0x6')+_0x2bbce9,_0x4c5346);OpenchannelQueueEvents['on'](_0x2bbce9,_0x3d2ab5);}};