Built motion from commit (unavailable).|2.5.13
[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 _0xb68e=['emit','register','length','./openchannelQueue.events','save','remove'];(function(_0x432682,_0x253044){var _0x463d05=function(_0xa73403){while(--_0xa73403){_0x432682['push'](_0x432682['shift']());}};_0x463d05(++_0x253044);}(_0xb68e,0x14d));var _0xeb68=function(_0x583f1e,_0x5ca4f3){_0x583f1e=_0x583f1e-0x0;var _0x16d236=_0xb68e[_0x583f1e];return _0x16d236;};'use strict';var OpenchannelQueueEvents=require(_0xeb68('0x0'));var events=[_0xeb68('0x1'),_0xeb68('0x2'),'update'];function createListener(_0x221d33,_0x372b25){return function(_0x15fb9f){_0x372b25[_0xeb68('0x3')](_0x221d33,_0x15fb9f);};}function removeListener(_0x50559b,_0x55d8e8){return function(){OpenchannelQueueEvents['removeListener'](_0x50559b,_0x55d8e8);};}exports[_0xeb68('0x4')]=function(_0xc870d6){for(var _0x4de590=0x0,_0x447d6e=events[_0xeb68('0x5')];_0x4de590<_0x447d6e;_0x4de590++){var _0x5a5d30=events[_0x4de590];var _0x4cafd9=createListener('openchannelQueue:'+_0x5a5d30,_0xc870d6);OpenchannelQueueEvents['on'](_0x5a5d30,_0x4cafd9);}};