Built motion from commit b0a9a629.|2.6.33
[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 _0x7c13=['./openchannelQueue.events','save','remove','update','emit','removeListener','length','openchannelQueue:'];(function(_0x31a912,_0x287cb7){var _0x53c32b=function(_0x2187c4){while(--_0x2187c4){_0x31a912['push'](_0x31a912['shift']());}};_0x53c32b(++_0x287cb7);}(_0x7c13,0x120));var _0x37c1=function(_0x3c1312,_0x45bfdb){_0x3c1312=_0x3c1312-0x0;var _0x5b4831=_0x7c13[_0x3c1312];return _0x5b4831;};'use strict';var OpenchannelQueueEvents=require(_0x37c1('0x0'));var events=[_0x37c1('0x1'),_0x37c1('0x2'),_0x37c1('0x3')];function createListener(_0x21d9a4,_0x3cd673){return function(_0x5ee768){_0x3cd673[_0x37c1('0x4')](_0x21d9a4,_0x5ee768);};}function removeListener(_0x4a38eb,_0x3c789e){return function(){OpenchannelQueueEvents[_0x37c1('0x5')](_0x4a38eb,_0x3c789e);};}exports['register']=function(_0x39ee01){for(var _0x77dc48=0x0,_0x42284b=events[_0x37c1('0x6')];_0x77dc48<_0x42284b;_0x77dc48++){var _0x227b89=events[_0x77dc48];var _0xdfa6d0=createListener(_0x37c1('0x7')+_0x227b89,_0x39ee01);OpenchannelQueueEvents['on'](_0x227b89,_0xdfa6d0);}};