Built motion from commit (unavailable).|2.5.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 _0xdc86=['../../config/environment','get','isAuthenticated','index','/describe','describe','/:id/members','getMembers','/:id/teams','getTeams','/:id/users','post','addAgents','put','/:id','update','delete','destroy','removeTeams','removeAgents','util','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service'];(function(_0x4a9fb1,_0x273043){var _0x348672=function(_0x142b69){while(--_0x142b69){_0x4a9fb1['push'](_0x4a9fb1['shift']());}};_0x348672(++_0x273043);}(_0xdc86,0x118));var _0x6dc8=function(_0x4792c8,_0x5158a1){_0x4792c8=_0x4792c8-0x0;var _0x35edb1=_0xdc86[_0x4792c8];return _0x35edb1;};'use strict';var multer=require('multer');var util=require(_0x6dc8('0x0'));var path=require('path');var timeout=require(_0x6dc8('0x1'));var express=require('express');var router=express[_0x6dc8('0x2')]();var fs_extra=require(_0x6dc8('0x3'));var auth=require(_0x6dc8('0x4'));var interaction=require(_0x6dc8('0x5'));var config=require(_0x6dc8('0x6'));var controller=require('./smsQueue.controller');router[_0x6dc8('0x7')]('/',auth[_0x6dc8('0x8')](),controller[_0x6dc8('0x9')]);router[_0x6dc8('0x7')](_0x6dc8('0xa'),auth[_0x6dc8('0x8')](),controller[_0x6dc8('0xb')]);router[_0x6dc8('0x7')]('/:id',auth[_0x6dc8('0x8')](),controller['show']);router[_0x6dc8('0x7')](_0x6dc8('0xc'),auth[_0x6dc8('0x8')](),controller[_0x6dc8('0xd')]);router['get'](_0x6dc8('0xe'),auth[_0x6dc8('0x8')](),controller[_0x6dc8('0xf')]);router[_0x6dc8('0x7')](_0x6dc8('0x10'),auth[_0x6dc8('0x8')](),controller['getAgents']);router[_0x6dc8('0x11')]('/',auth['isAuthenticated'](),controller['create']);router[_0x6dc8('0x11')](_0x6dc8('0xe'),auth[_0x6dc8('0x8')](),controller['addTeams']);router[_0x6dc8('0x11')](_0x6dc8('0x10'),auth[_0x6dc8('0x8')](),controller[_0x6dc8('0x12')]);router[_0x6dc8('0x13')](_0x6dc8('0x14'),auth[_0x6dc8('0x8')](),controller[_0x6dc8('0x15')]);router[_0x6dc8('0x16')]('/:id',auth['isAuthenticated'](),controller[_0x6dc8('0x17')]);router[_0x6dc8('0x16')](_0x6dc8('0xe'),auth[_0x6dc8('0x8')](),controller[_0x6dc8('0x18')]);router['delete']('/:id/users',auth['isAuthenticated'](),controller[_0x6dc8('0x19')]);module['exports']=router;