Built motion from commit bab6f49e.|2.6.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 _0xb3a3=['./openchannelQueue.events','save','remove','update','emit','openchannelQueue:'];(function(_0xcbb68b,_0x113ac5){var _0x1d3981=function(_0x512b92){while(--_0x512b92){_0xcbb68b['push'](_0xcbb68b['shift']());}};_0x1d3981(++_0x113ac5);}(_0xb3a3,0x90));var _0x3b3a=function(_0x1c90be,_0x23daec){_0x1c90be=_0x1c90be-0x0;var _0x9c8fad=_0xb3a3[_0x1c90be];return _0x9c8fad;};'use strict';var OpenchannelQueueEvents=require(_0x3b3a('0x0'));var events=[_0x3b3a('0x1'),_0x3b3a('0x2'),_0x3b3a('0x3')];function createListener(_0x4a9911,_0x41d8c2){return function(_0x5dcd7a){_0x41d8c2[_0x3b3a('0x4')](_0x4a9911,_0x5dcd7a);};}function removeListener(_0x4e6cbb,_0x2a0cd4){return function(){OpenchannelQueueEvents['removeListener'](_0x4e6cbb,_0x2a0cd4);};}exports['register']=function(_0x380e2f){for(var _0x169f7c=0x0,_0x5a5476=events['length'];_0x169f7c<_0x5a5476;_0x169f7c++){var _0x124f82=events[_0x169f7c];var _0x1dddd1=createListener(_0x3b3a('0x5')+_0x124f82,_0x380e2f);OpenchannelQueueEvents['on'](_0x124f82,_0x1dddd1);}};