f5f90a2653247e3857a442b395ecf9294d64b21a
[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 _0xe56f=['save','update','emit','register','length','./openchannelQueue.events'];(function(_0xe97629,_0x54e280){var _0x3c5229=function(_0x1bfb55){while(--_0x1bfb55){_0xe97629['push'](_0xe97629['shift']());}};_0x3c5229(++_0x54e280);}(_0xe56f,0x14f));var _0xfe56=function(_0x2e8c02,_0x2f3571){_0x2e8c02=_0x2e8c02-0x0;var _0x5d60bd=_0xe56f[_0x2e8c02];return _0x5d60bd;};'use strict';var OpenchannelQueueEvents=require(_0xfe56('0x0'));var events=[_0xfe56('0x1'),'remove',_0xfe56('0x2')];function createListener(_0x21e86d,_0xf4cb7e){return function(_0x41d2ba){_0xf4cb7e[_0xfe56('0x3')](_0x21e86d,_0x41d2ba);};}function removeListener(_0x533d32,_0x3873c4){return function(){OpenchannelQueueEvents['removeListener'](_0x533d32,_0x3873c4);};}exports[_0xfe56('0x4')]=function(_0x44c2ba){for(var _0x1f465b=0x0,_0x18ad5a=events[_0xfe56('0x5')];_0x1f465b<_0x18ad5a;_0x1f465b++){var _0x41425c=events[_0x1f465b];var _0x520232=createListener('openchannelQueue:'+_0x41425c,_0x44c2ba);OpenchannelQueueEvents['on'](_0x41425c,_0x520232);}};