Built motion from commit 26d08302.|2.6.31
[motion2.git] / server / api / smsQueue / 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 _0x63bc=['exports','multer','util','path','express','fs-extra','../../components/interaction/service','../../config/environment','get','isAuthenticated','/describe','describe','show','/:id/members','/:id/teams','getTeams','/:id/users','create','post','addTeams','addAgents','put','/:id','update','delete','destroy','removeAgents'];(function(_0x3bb5b4,_0x128455){var _0x586c60=function(_0x179226){while(--_0x179226){_0x3bb5b4['push'](_0x3bb5b4['shift']());}};_0x586c60(++_0x128455);}(_0x63bc,0x10f));var _0xc63b=function(_0xb54ccc,_0x2c67c5){_0xb54ccc=_0xb54ccc-0x0;var _0x5b2420=_0x63bc[_0xb54ccc];return _0x5b2420;};'use strict';var multer=require(_0xc63b('0x0'));var util=require(_0xc63b('0x1'));var path=require(_0xc63b('0x2'));var timeout=require('connect-timeout');var express=require(_0xc63b('0x3'));var router=express['Router']();var fs_extra=require(_0xc63b('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0xc63b('0x5'));var config=require(_0xc63b('0x6'));var controller=require('./smsQueue.controller');router[_0xc63b('0x7')]('/',auth[_0xc63b('0x8')](),controller['index']);router[_0xc63b('0x7')](_0xc63b('0x9'),auth['isAuthenticated'](),controller[_0xc63b('0xa')]);router[_0xc63b('0x7')]('/:id',auth[_0xc63b('0x8')](),controller[_0xc63b('0xb')]);router[_0xc63b('0x7')](_0xc63b('0xc'),auth[_0xc63b('0x8')](),controller['getMembers']);router[_0xc63b('0x7')](_0xc63b('0xd'),auth[_0xc63b('0x8')](),controller[_0xc63b('0xe')]);router['get'](_0xc63b('0xf'),auth[_0xc63b('0x8')](),controller['getAgents']);router['post']('/',auth[_0xc63b('0x8')](),controller[_0xc63b('0x10')]);router[_0xc63b('0x11')](_0xc63b('0xd'),auth[_0xc63b('0x8')](),controller[_0xc63b('0x12')]);router['post']('/:id/users',auth[_0xc63b('0x8')](),controller[_0xc63b('0x13')]);router[_0xc63b('0x14')](_0xc63b('0x15'),auth[_0xc63b('0x8')](),controller[_0xc63b('0x16')]);router[_0xc63b('0x17')](_0xc63b('0x15'),auth[_0xc63b('0x8')](),controller[_0xc63b('0x18')]);router[_0xc63b('0x17')]('/:id/teams',auth[_0xc63b('0x8')](),controller['removeTeams']);router[_0xc63b('0x17')](_0xc63b('0xf'),auth[_0xc63b('0x8')](),controller[_0xc63b('0x19')]);module[_0xc63b('0x1a')]=router;