facd2539448a5cd008b5f9b7e9e8d581bd8612bb
[motion2.git] / server / api / openchannelQueue / index.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 _0x3419=['./openchannelQueue.controller','get','index','/describe','isAuthenticated','/:id','show','/:id/members','/:id/users','getAgents','post','create','update','delete','destroy','/:id/teams','removeTeams','exports','multer','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../config/environment'];(function(_0x5b458e,_0x59c405){var _0x5c7fb6=function(_0x151988){while(--_0x151988){_0x5b458e['push'](_0x5b458e['shift']());}};_0x5c7fb6(++_0x59c405);}(_0x3419,0xe2));var _0x9341=function(_0x16539a,_0x31409a){_0x16539a=_0x16539a-0x0;var _0x200796=_0x3419[_0x16539a];return _0x200796;};'use strict';var multer=require(_0x9341('0x0'));var util=require('util');var path=require(_0x9341('0x1'));var timeout=require(_0x9341('0x2'));var express=require(_0x9341('0x3'));var router=express[_0x9341('0x4')]();var fs_extra=require(_0x9341('0x5'));var auth=require(_0x9341('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0x9341('0x7'));var controller=require(_0x9341('0x8'));router[_0x9341('0x9')]('/',auth['isAuthenticated'](),controller[_0x9341('0xa')]);router[_0x9341('0x9')](_0x9341('0xb'),auth[_0x9341('0xc')](),controller['describe']);router[_0x9341('0x9')](_0x9341('0xd'),auth[_0x9341('0xc')](),controller[_0x9341('0xe')]);router[_0x9341('0x9')](_0x9341('0xf'),auth[_0x9341('0xc')](),controller['getMembers']);router[_0x9341('0x9')]('/:id/teams',auth[_0x9341('0xc')](),controller['getTeams']);router[_0x9341('0x9')](_0x9341('0x10'),auth['isAuthenticated'](),controller[_0x9341('0x11')]);router[_0x9341('0x12')]('/',auth['isAuthenticated'](),controller[_0x9341('0x13')]);router[_0x9341('0x12')]('/:id/teams',auth['isAuthenticated'](),controller['addTeams']);router[_0x9341('0x12')]('/:id/users',auth[_0x9341('0xc')](),controller['addAgents']);router['put'](_0x9341('0xd'),auth[_0x9341('0xc')](),controller[_0x9341('0x14')]);router[_0x9341('0x15')](_0x9341('0xd'),auth[_0x9341('0xc')](),controller[_0x9341('0x16')]);router['delete'](_0x9341('0x17'),auth[_0x9341('0xc')](),controller[_0x9341('0x18')]);router[_0x9341('0x15')](_0x9341('0x10'),auth[_0x9341('0xc')](),controller['removeAgents']);module[_0x9341('0x19')]=router;