f40d17bbf30044dfe40fe869444db9ae18c96bbd
[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 _0xecea=['addAgents','put','update','delete','destroy','/:id/teams','removeTeams','removeAgents','exports','multer','util','path','express','Router','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/describe','describe','/:id','getMembers','getTeams','/:id/users','post'];(function(_0x38209c,_0x1c0e7e){var _0x44eebb=function(_0x10721f){while(--_0x10721f){_0x38209c['push'](_0x38209c['shift']());}};_0x44eebb(++_0x1c0e7e);}(_0xecea,0xd9));var _0xaece=function(_0x3ae1aa,_0xa535d0){_0x3ae1aa=_0x3ae1aa-0x0;var _0x32801e=_0xecea[_0x3ae1aa];return _0x32801e;};'use strict';var multer=require(_0xaece('0x0'));var util=require(_0xaece('0x1'));var path=require(_0xaece('0x2'));var timeout=require('connect-timeout');var express=require(_0xaece('0x3'));var router=express[_0xaece('0x4')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0xaece('0x5'));var config=require(_0xaece('0x6'));var controller=require('./openchannelQueue.controller');router[_0xaece('0x7')]('/',auth[_0xaece('0x8')](),controller[_0xaece('0x9')]);router[_0xaece('0x7')](_0xaece('0xa'),auth[_0xaece('0x8')](),controller[_0xaece('0xb')]);router['get'](_0xaece('0xc'),auth[_0xaece('0x8')](),controller['show']);router[_0xaece('0x7')]('/:id/members',auth[_0xaece('0x8')](),controller[_0xaece('0xd')]);router[_0xaece('0x7')]('/:id/teams',auth[_0xaece('0x8')](),controller[_0xaece('0xe')]);router[_0xaece('0x7')](_0xaece('0xf'),auth['isAuthenticated'](),controller['getAgents']);router['post']('/',auth['isAuthenticated'](),controller['create']);router['post']('/:id/teams',auth[_0xaece('0x8')](),controller['addTeams']);router[_0xaece('0x10')]('/:id/users',auth[_0xaece('0x8')](),controller[_0xaece('0x11')]);router[_0xaece('0x12')](_0xaece('0xc'),auth[_0xaece('0x8')](),controller[_0xaece('0x13')]);router[_0xaece('0x14')](_0xaece('0xc'),auth[_0xaece('0x8')](),controller[_0xaece('0x15')]);router[_0xaece('0x14')](_0xaece('0x16'),auth[_0xaece('0x8')](),controller[_0xaece('0x17')]);router['delete'](_0xaece('0xf'),auth['isAuthenticated'](),controller[_0xaece('0x18')]);module[_0xaece('0x19')]=router;