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