Built motion from commit d5e4af8c.|2.6.23
[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 _0x12ff=['/:id/teams','getTeams','/:id/users','post','create','addTeams','put','/:id','update','delete','removeTeams','removeAgents','util','connect-timeout','express','fs-extra','../../components/auth/service','../../config/environment','./smsQueue.controller','isAuthenticated','get','/describe','/:id/members'];(function(_0x4f9d23,_0x3282c4){var _0x5b15ea=function(_0x4fe3c1){while(--_0x4fe3c1){_0x4f9d23['push'](_0x4f9d23['shift']());}};_0x5b15ea(++_0x3282c4);}(_0x12ff,0x165));var _0xf12f=function(_0x3c9520,_0x187f3c){_0x3c9520=_0x3c9520-0x0;var _0xbe7616=_0x12ff[_0x3c9520];return _0xbe7616;};'use strict';var multer=require('multer');var util=require(_0xf12f('0x0'));var path=require('path');var timeout=require(_0xf12f('0x1'));var express=require(_0xf12f('0x2'));var router=express['Router']();var fs_extra=require(_0xf12f('0x3'));var auth=require(_0xf12f('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0xf12f('0x5'));var controller=require(_0xf12f('0x6'));router['get']('/',auth[_0xf12f('0x7')](),controller['index']);router[_0xf12f('0x8')](_0xf12f('0x9'),auth[_0xf12f('0x7')](),controller['describe']);router[_0xf12f('0x8')]('/:id',auth['isAuthenticated'](),controller['show']);router[_0xf12f('0x8')](_0xf12f('0xa'),auth[_0xf12f('0x7')](),controller['getMembers']);router[_0xf12f('0x8')](_0xf12f('0xb'),auth['isAuthenticated'](),controller[_0xf12f('0xc')]);router[_0xf12f('0x8')](_0xf12f('0xd'),auth[_0xf12f('0x7')](),controller['getAgents']);router[_0xf12f('0xe')]('/',auth['isAuthenticated'](),controller[_0xf12f('0xf')]);router['post'](_0xf12f('0xb'),auth['isAuthenticated'](),controller[_0xf12f('0x10')]);router['post']('/:id/users',auth['isAuthenticated'](),controller['addAgents']);router[_0xf12f('0x11')](_0xf12f('0x12'),auth[_0xf12f('0x7')](),controller[_0xf12f('0x13')]);router[_0xf12f('0x14')](_0xf12f('0x12'),auth['isAuthenticated'](),controller['destroy']);router[_0xf12f('0x14')](_0xf12f('0xb'),auth[_0xf12f('0x7')](),controller[_0xf12f('0x15')]);router[_0xf12f('0x14')](_0xf12f('0xd'),auth[_0xf12f('0x7')](),controller[_0xf12f('0x16')]);module['exports']=router;