Built motion from commit (unavailable).|2.5.17
[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 _0x9f0e=['openchannelQueue:','./openchannelQueue.events','save','update','emit','removeListener'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x9f0e,0x6d));var _0xe9f0=function(_0xb37913,_0x394937){_0xb37913=_0xb37913-0x0;var _0x2d0bfa=_0x9f0e[_0xb37913];return _0x2d0bfa;};'use strict';var OpenchannelQueueEvents=require(_0xe9f0('0x0'));var events=[_0xe9f0('0x1'),'remove',_0xe9f0('0x2')];function createListener(_0x52d8aa,_0x4e2ceb){return function(_0x3140a9){_0x4e2ceb[_0xe9f0('0x3')](_0x52d8aa,_0x3140a9);};}function removeListener(_0x55fb70,_0x510224){return function(){OpenchannelQueueEvents[_0xe9f0('0x4')](_0x55fb70,_0x510224);};}exports['register']=function(_0x3c3f0e){for(var _0x3f34be=0x0,_0x55ac53=events['length'];_0x3f34be<_0x55ac53;_0x3f34be++){var _0x729d48=events[_0x3f34be];var _0x584245=createListener(_0xe9f0('0x5')+_0x729d48,_0x3c3f0e);OpenchannelQueueEvents['on'](_0x729d48,_0x584245);}};