Built motion from commit (unavailable).|2.5.22
[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 _0xdba6=['register','openchannelQueue:','./openchannelQueue.events','save','emit','removeListener'];(function(_0x3f1394,_0x1336fd){var _0x4477e8=function(_0x67dde0){while(--_0x67dde0){_0x3f1394['push'](_0x3f1394['shift']());}};_0x4477e8(++_0x1336fd);}(_0xdba6,0x134));var _0x6dba=function(_0x93036a,_0x370bf1){_0x93036a=_0x93036a-0x0;var _0x2e6dcb=_0xdba6[_0x93036a];return _0x2e6dcb;};'use strict';var OpenchannelQueueEvents=require(_0x6dba('0x0'));var events=[_0x6dba('0x1'),'remove','update'];function createListener(_0x36d7bf,_0x181735){return function(_0x300ced){_0x181735[_0x6dba('0x2')](_0x36d7bf,_0x300ced);};}function removeListener(_0x210d34,_0xe5fd8d){return function(){OpenchannelQueueEvents[_0x6dba('0x3')](_0x210d34,_0xe5fd8d);};}exports[_0x6dba('0x4')]=function(_0x4479d9){for(var _0x5aa68e=0x0,_0x122995=events['length'];_0x5aa68e<_0x122995;_0x5aa68e++){var _0x50b237=events[_0x5aa68e];var _0x4cff08=createListener(_0x6dba('0x5')+_0x50b237,_0x4479d9);OpenchannelQueueEvents['on'](_0x50b237,_0x4cff08);}};