Built motion from commit (unavailable).|2.5.9
[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 _0xf2a3=['removeListener','register','length','openchannelQueue:','./openchannelQueue.events'];(function(_0x2b4d26,_0x279b45){var _0x1b5a40=function(_0x42837d){while(--_0x42837d){_0x2b4d26['push'](_0x2b4d26['shift']());}};_0x1b5a40(++_0x279b45);}(_0xf2a3,0x86));var _0x3f2a=function(_0x1e45ec,_0x2e11eb){_0x1e45ec=_0x1e45ec-0x0;var _0x42f22d=_0xf2a3[_0x1e45ec];return _0x42f22d;};'use strict';var OpenchannelQueueEvents=require(_0x3f2a('0x0'));var events=['save','remove','update'];function createListener(_0x281746,_0x2662a9){return function(_0x53d073){_0x2662a9['emit'](_0x281746,_0x53d073);};}function removeListener(_0x45b2ce,_0x2d0e0f){return function(){OpenchannelQueueEvents[_0x3f2a('0x1')](_0x45b2ce,_0x2d0e0f);};}exports[_0x3f2a('0x2')]=function(_0x47e727){for(var _0x396efd=0x0,_0x56fe56=events[_0x3f2a('0x3')];_0x396efd<_0x56fe56;_0x396efd++){var _0x15a1df=events[_0x396efd];var _0xacbd43=createListener(_0x3f2a('0x4')+_0x15a1df,_0x47e727);OpenchannelQueueEvents['on'](_0x15a1df,_0xacbd43);}};