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