Built motion from commit 639a1a7f.|2.6.19
[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 _0xcb3c=['addAgents','put','update','delete','destroy','removeTeams','removeAgents','exports','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../config/environment','./openchannelQueue.controller','get','index','/describe','isAuthenticated','describe','/:id','show','/:id/members','getMembers','/:id/users','post','create','/:id/teams','addTeams'];(function(_0x303064,_0x12f0c2){var _0x5a1d3d=function(_0x5b9d81){while(--_0x5b9d81){_0x303064['push'](_0x303064['shift']());}};_0x5a1d3d(++_0x12f0c2);}(_0xcb3c,0x19b));var _0xccb3=function(_0x1bb0b6,_0x1734b7){_0x1bb0b6=_0x1bb0b6-0x0;var _0x45f16b=_0xcb3c[_0x1bb0b6];return _0x45f16b;};'use strict';var multer=require(_0xccb3('0x0'));var util=require(_0xccb3('0x1'));var path=require(_0xccb3('0x2'));var timeout=require(_0xccb3('0x3'));var express=require(_0xccb3('0x4'));var router=express[_0xccb3('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0xccb3('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0xccb3('0x7'));var controller=require(_0xccb3('0x8'));router[_0xccb3('0x9')]('/',auth['isAuthenticated'](),controller[_0xccb3('0xa')]);router[_0xccb3('0x9')](_0xccb3('0xb'),auth[_0xccb3('0xc')](),controller[_0xccb3('0xd')]);router[_0xccb3('0x9')](_0xccb3('0xe'),auth[_0xccb3('0xc')](),controller[_0xccb3('0xf')]);router[_0xccb3('0x9')](_0xccb3('0x10'),auth[_0xccb3('0xc')](),controller[_0xccb3('0x11')]);router[_0xccb3('0x9')]('/:id/teams',auth[_0xccb3('0xc')](),controller['getTeams']);router['get'](_0xccb3('0x12'),auth['isAuthenticated'](),controller['getAgents']);router[_0xccb3('0x13')]('/',auth['isAuthenticated'](),controller[_0xccb3('0x14')]);router[_0xccb3('0x13')](_0xccb3('0x15'),auth[_0xccb3('0xc')](),controller[_0xccb3('0x16')]);router[_0xccb3('0x13')]('/:id/users',auth['isAuthenticated'](),controller[_0xccb3('0x17')]);router[_0xccb3('0x18')]('/:id',auth['isAuthenticated'](),controller[_0xccb3('0x19')]);router[_0xccb3('0x1a')](_0xccb3('0xe'),auth[_0xccb3('0xc')](),controller[_0xccb3('0x1b')]);router[_0xccb3('0x1a')](_0xccb3('0x15'),auth[_0xccb3('0xc')](),controller[_0xccb3('0x1c')]);router[_0xccb3('0x1a')](_0xccb3('0x12'),auth[_0xccb3('0xc')](),controller[_0xccb3('0x1d')]);module[_0xccb3('0x1e')]=router;