Built motion from commit 9e1399f3.|2.5.37
[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 _0xf3b9=['register','openchannelQueue:','./openchannelQueue.events','remove','emit'];(function(_0x220d63,_0x2ac173){var _0xffccaa=function(_0x6b794b){while(--_0x6b794b){_0x220d63['push'](_0x220d63['shift']());}};_0xffccaa(++_0x2ac173);}(_0xf3b9,0x1b5));var _0x9f3b=function(_0x3be7de,_0x16a63d){_0x3be7de=_0x3be7de-0x0;var _0x99d03d=_0xf3b9[_0x3be7de];return _0x99d03d;};'use strict';var OpenchannelQueueEvents=require(_0x9f3b('0x0'));var events=['save',_0x9f3b('0x1'),'update'];function createListener(_0x44bca1,_0x2e475a){return function(_0x173fa5){_0x2e475a[_0x9f3b('0x2')](_0x44bca1,_0x173fa5);};}function removeListener(_0x608c53,_0x51f6a1){return function(){OpenchannelQueueEvents['removeListener'](_0x608c53,_0x51f6a1);};}exports[_0x9f3b('0x3')]=function(_0xe7f99e){for(var _0x5a4532=0x0,_0x3410b9=events['length'];_0x5a4532<_0x3410b9;_0x5a4532++){var _0x5785f1=events[_0x5a4532];var _0x5dd7dd=createListener(_0x9f3b('0x4')+_0x5785f1,_0xe7f99e);OpenchannelQueueEvents['on'](_0x5785f1,_0x5dd7dd);}};