Built motion from commit (unavailable).|2.5.29
[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 _0xbf96=['register','length','openchannelQueue:','./openchannelQueue.events','save','remove','update','emit'];(function(_0x232131,_0x1841e2){var _0x35a2b2=function(_0x3f510c){while(--_0x3f510c){_0x232131['push'](_0x232131['shift']());}};_0x35a2b2(++_0x1841e2);}(_0xbf96,0x8b));var _0x6bf9=function(_0x3f46ae,_0x308db1){_0x3f46ae=_0x3f46ae-0x0;var _0x35541a=_0xbf96[_0x3f46ae];return _0x35541a;};'use strict';var OpenchannelQueueEvents=require(_0x6bf9('0x0'));var events=[_0x6bf9('0x1'),_0x6bf9('0x2'),_0x6bf9('0x3')];function createListener(_0x38a3f8,_0xbfb85a){return function(_0x1a59a5){_0xbfb85a[_0x6bf9('0x4')](_0x38a3f8,_0x1a59a5);};}function removeListener(_0x20c611,_0x5ac018){return function(){OpenchannelQueueEvents['removeListener'](_0x20c611,_0x5ac018);};}exports[_0x6bf9('0x5')]=function(_0x3f8622){for(var _0xf5a7ca=0x0,_0x37467c=events[_0x6bf9('0x6')];_0xf5a7ca<_0x37467c;_0xf5a7ca++){var _0x306644=events[_0xf5a7ca];var _0x137961=createListener(_0x6bf9('0x7')+_0x306644,_0x3f8622);OpenchannelQueueEvents['on'](_0x306644,_0x137961);}};