Built motion from commit 85f716e9.|2.6.8
[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 _0x7f89=['addAgents','/:id','destroy','delete','removeTeams','removeAgents','exports','multer','util','path','express','../../components/auth/service','../../components/interaction/service','../../config/environment','./openchannelQueue.controller','get','/describe','describe','show','/:id/members','isAuthenticated','/:id/teams','getTeams','/:id/users','getAgents','post','addTeams'];(function(_0x46698a,_0x8de1e4){var _0x356db0=function(_0x19e83c){while(--_0x19e83c){_0x46698a['push'](_0x46698a['shift']());}};_0x356db0(++_0x8de1e4);}(_0x7f89,0x73));var _0x97f8=function(_0x34357e,_0x5af72a){_0x34357e=_0x34357e-0x0;var _0x488189=_0x7f89[_0x34357e];return _0x488189;};'use strict';var multer=require(_0x97f8('0x0'));var util=require(_0x97f8('0x1'));var path=require(_0x97f8('0x2'));var timeout=require('connect-timeout');var express=require(_0x97f8('0x3'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0x97f8('0x4'));var interaction=require(_0x97f8('0x5'));var config=require(_0x97f8('0x6'));var controller=require(_0x97f8('0x7'));router[_0x97f8('0x8')]('/',auth['isAuthenticated'](),controller['index']);router[_0x97f8('0x8')](_0x97f8('0x9'),auth['isAuthenticated'](),controller[_0x97f8('0xa')]);router[_0x97f8('0x8')]('/:id',auth['isAuthenticated'](),controller[_0x97f8('0xb')]);router[_0x97f8('0x8')](_0x97f8('0xc'),auth[_0x97f8('0xd')](),controller['getMembers']);router[_0x97f8('0x8')](_0x97f8('0xe'),auth[_0x97f8('0xd')](),controller[_0x97f8('0xf')]);router[_0x97f8('0x8')](_0x97f8('0x10'),auth[_0x97f8('0xd')](),controller[_0x97f8('0x11')]);router['post']('/',auth[_0x97f8('0xd')](),controller['create']);router[_0x97f8('0x12')](_0x97f8('0xe'),auth[_0x97f8('0xd')](),controller[_0x97f8('0x13')]);router[_0x97f8('0x12')](_0x97f8('0x10'),auth['isAuthenticated'](),controller[_0x97f8('0x14')]);router['put']('/:id',auth[_0x97f8('0xd')](),controller['update']);router['delete'](_0x97f8('0x15'),auth[_0x97f8('0xd')](),controller[_0x97f8('0x16')]);router[_0x97f8('0x17')](_0x97f8('0xe'),auth[_0x97f8('0xd')](),controller[_0x97f8('0x18')]);router[_0x97f8('0x17')]('/:id/users',auth[_0x97f8('0xd')](),controller[_0x97f8('0x19')]);module[_0x97f8('0x1a')]=router;