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