Built motion from commit (unavailable).|2.5.1
[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 _0xfbc8=['removeListener','length','openchannelQueue:','save','emit'];(function(_0x4cb272,_0x52c0e9){var _0x57b4aa=function(_0x1efefb){while(--_0x1efefb){_0x4cb272['push'](_0x4cb272['shift']());}};_0x57b4aa(++_0x52c0e9);}(_0xfbc8,0x17f));var _0x8fbc=function(_0x5f09c5,_0x2bfca0){_0x5f09c5=_0x5f09c5-0x0;var _0x426ad9=_0xfbc8[_0x5f09c5];return _0x426ad9;};'use strict';var OpenchannelQueueEvents=require('./openchannelQueue.events');var events=[_0x8fbc('0x0'),'remove','update'];function createListener(_0x3d1da2,_0x329831){return function(_0x401a3e){_0x329831[_0x8fbc('0x1')](_0x3d1da2,_0x401a3e);};}function removeListener(_0x22c5f9,_0x54dd5b){return function(){OpenchannelQueueEvents[_0x8fbc('0x2')](_0x22c5f9,_0x54dd5b);};}exports['register']=function(_0x3e1580){for(var _0x39a9c2=0x0,_0x5659d7=events[_0x8fbc('0x3')];_0x39a9c2<_0x5659d7;_0x39a9c2++){var _0x4d8b9b=events[_0x39a9c2];var _0x112026=createListener(_0x8fbc('0x4')+_0x4d8b9b,_0x3e1580);OpenchannelQueueEvents['on'](_0x4d8b9b,_0x112026);}};