Built motion from commit da24aabd.|2.6.20
[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 _0xe264=['register','length','openchannelQueue:','./openchannelQueue.events','save','remove'];(function(_0x467b33,_0x148f33){var _0x1ca4fc=function(_0x42a125){while(--_0x42a125){_0x467b33['push'](_0x467b33['shift']());}};_0x1ca4fc(++_0x148f33);}(_0xe264,0x9f));var _0x4e26=function(_0x4191bc,_0x3096c5){_0x4191bc=_0x4191bc-0x0;var _0x1ffd4e=_0xe264[_0x4191bc];return _0x1ffd4e;};'use strict';var OpenchannelQueueEvents=require(_0x4e26('0x0'));var events=[_0x4e26('0x1'),_0x4e26('0x2'),'update'];function createListener(_0x1e9a6f,_0x5be5a8){return function(_0x95c916){_0x5be5a8['emit'](_0x1e9a6f,_0x95c916);};}function removeListener(_0x32cef8,_0x4438c3){return function(){OpenchannelQueueEvents['removeListener'](_0x32cef8,_0x4438c3);};}exports[_0x4e26('0x3')]=function(_0x2d8290){for(var _0x5c77ad=0x0,_0x82e4b6=events[_0x4e26('0x4')];_0x5c77ad<_0x82e4b6;_0x5c77ad++){var _0x287753=events[_0x5c77ad];var _0x18b5dd=createListener(_0x4e26('0x5')+_0x287753,_0x2d8290);OpenchannelQueueEvents['on'](_0x287753,_0x18b5dd);}};