Built motion from commit e02f907f.|2.6.14
[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 _0xfc74=['delete','/:id','destroy','removeTeams','removeAgents','exports','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','isAuthenticated','index','get','/describe','describe','show','getMembers','/:id/teams','/:id/users','getAgents','post','addTeams','addAgents','put','update'];(function(_0x50e0b4,_0x1057f7){var _0x2fa8b0=function(_0x3766bc){while(--_0x3766bc){_0x50e0b4['push'](_0x50e0b4['shift']());}};_0x2fa8b0(++_0x1057f7);}(_0xfc74,0x9c));var _0x4fc7=function(_0x27b311,_0x385093){_0x27b311=_0x27b311-0x0;var _0x2d9cf7=_0xfc74[_0x27b311];return _0x2d9cf7;};'use strict';var multer=require(_0x4fc7('0x0'));var util=require(_0x4fc7('0x1'));var path=require(_0x4fc7('0x2'));var timeout=require(_0x4fc7('0x3'));var express=require(_0x4fc7('0x4'));var router=express[_0x4fc7('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0x4fc7('0x6'));var interaction=require(_0x4fc7('0x7'));var config=require(_0x4fc7('0x8'));var controller=require('./smsQueue.controller');router['get']('/',auth[_0x4fc7('0x9')](),controller[_0x4fc7('0xa')]);router[_0x4fc7('0xb')](_0x4fc7('0xc'),auth[_0x4fc7('0x9')](),controller[_0x4fc7('0xd')]);router[_0x4fc7('0xb')]('/:id',auth[_0x4fc7('0x9')](),controller[_0x4fc7('0xe')]);router[_0x4fc7('0xb')]('/:id/members',auth['isAuthenticated'](),controller[_0x4fc7('0xf')]);router[_0x4fc7('0xb')](_0x4fc7('0x10'),auth[_0x4fc7('0x9')](),controller['getTeams']);router[_0x4fc7('0xb')](_0x4fc7('0x11'),auth['isAuthenticated'](),controller[_0x4fc7('0x12')]);router[_0x4fc7('0x13')]('/',auth[_0x4fc7('0x9')](),controller['create']);router['post'](_0x4fc7('0x10'),auth[_0x4fc7('0x9')](),controller[_0x4fc7('0x14')]);router[_0x4fc7('0x13')](_0x4fc7('0x11'),auth[_0x4fc7('0x9')](),controller[_0x4fc7('0x15')]);router[_0x4fc7('0x16')]('/:id',auth[_0x4fc7('0x9')](),controller[_0x4fc7('0x17')]);router[_0x4fc7('0x18')](_0x4fc7('0x19'),auth[_0x4fc7('0x9')](),controller[_0x4fc7('0x1a')]);router[_0x4fc7('0x18')]('/:id/teams',auth[_0x4fc7('0x9')](),controller[_0x4fc7('0x1b')]);router[_0x4fc7('0x18')](_0x4fc7('0x11'),auth[_0x4fc7('0x9')](),controller[_0x4fc7('0x1c')]);module[_0x4fc7('0x1d')]=router;