c35fd2beda4fab600e9e20cd66314ab5872a5c1e
[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 _0xf386=['../../components/auth/service','../../config/environment','get','isAuthenticated','index','/:id','show','/:id/members','getTeams','/:id/users','getAgents','post','create','addTeams','update','delete','/:id/teams','removeTeams','removeAgents','exports','path','Router','fs-extra'];(function(_0x53ea2d,_0x521b53){var _0x5dfb4a=function(_0x59082c){while(--_0x59082c){_0x53ea2d['push'](_0x53ea2d['shift']());}};_0x5dfb4a(++_0x521b53);}(_0xf386,0x184));var _0x6f38=function(_0x313eca,_0x3b3f33){_0x313eca=_0x313eca-0x0;var _0x19775a=_0xf386[_0x313eca];return _0x19775a;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x6f38('0x0'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x6f38('0x1')]();var fs_extra=require(_0x6f38('0x2'));var auth=require(_0x6f38('0x3'));var interaction=require('../../components/interaction/service');var config=require(_0x6f38('0x4'));var controller=require('./smsQueue.controller');router[_0x6f38('0x5')]('/',auth[_0x6f38('0x6')](),controller[_0x6f38('0x7')]);router['get']('/describe',auth[_0x6f38('0x6')](),controller['describe']);router[_0x6f38('0x5')](_0x6f38('0x8'),auth[_0x6f38('0x6')](),controller[_0x6f38('0x9')]);router[_0x6f38('0x5')](_0x6f38('0xa'),auth[_0x6f38('0x6')](),controller['getMembers']);router[_0x6f38('0x5')]('/:id/teams',auth[_0x6f38('0x6')](),controller[_0x6f38('0xb')]);router[_0x6f38('0x5')](_0x6f38('0xc'),auth[_0x6f38('0x6')](),controller[_0x6f38('0xd')]);router[_0x6f38('0xe')]('/',auth[_0x6f38('0x6')](),controller[_0x6f38('0xf')]);router[_0x6f38('0xe')]('/:id/teams',auth['isAuthenticated'](),controller[_0x6f38('0x10')]);router[_0x6f38('0xe')](_0x6f38('0xc'),auth[_0x6f38('0x6')](),controller['addAgents']);router['put'](_0x6f38('0x8'),auth['isAuthenticated'](),controller[_0x6f38('0x11')]);router[_0x6f38('0x12')]('/:id',auth[_0x6f38('0x6')](),controller['destroy']);router[_0x6f38('0x12')](_0x6f38('0x13'),auth['isAuthenticated'](),controller[_0x6f38('0x14')]);router[_0x6f38('0x12')](_0x6f38('0xc'),auth[_0x6f38('0x6')](),controller[_0x6f38('0x15')]);module[_0x6f38('0x16')]=router;