615940b8decedff36495fd6afa479867eace2c2e
[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 _0x0c8b=['removeAgents','multer','util','path','connect-timeout','express','../../components/auth/service','../../components/interaction/service','./smsQueue.controller','get','isAuthenticated','/:id','show','/:id/teams','getTeams','/:id/users','getAgents','post','create','addTeams','put','update','delete','destroy','removeTeams'];(function(_0x10213e,_0x9c65f0){var _0x2af929=function(_0x588e75){while(--_0x588e75){_0x10213e['push'](_0x10213e['shift']());}};_0x2af929(++_0x9c65f0);}(_0x0c8b,0x65));var _0xb0c8=function(_0x24237f,_0x4cf32c){_0x24237f=_0x24237f-0x0;var _0x48298e=_0x0c8b[_0x24237f];return _0x48298e;};'use strict';var multer=require(_0xb0c8('0x0'));var util=require(_0xb0c8('0x1'));var path=require(_0xb0c8('0x2'));var timeout=require(_0xb0c8('0x3'));var express=require(_0xb0c8('0x4'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0xb0c8('0x5'));var interaction=require(_0xb0c8('0x6'));var config=require('../../config/environment');var controller=require(_0xb0c8('0x7'));router[_0xb0c8('0x8')]('/',auth[_0xb0c8('0x9')](),controller['index']);router[_0xb0c8('0x8')]('/describe',auth[_0xb0c8('0x9')](),controller['describe']);router[_0xb0c8('0x8')](_0xb0c8('0xa'),auth[_0xb0c8('0x9')](),controller[_0xb0c8('0xb')]);router[_0xb0c8('0x8')]('/:id/members',auth[_0xb0c8('0x9')](),controller['getMembers']);router[_0xb0c8('0x8')](_0xb0c8('0xc'),auth[_0xb0c8('0x9')](),controller[_0xb0c8('0xd')]);router['get'](_0xb0c8('0xe'),auth[_0xb0c8('0x9')](),controller[_0xb0c8('0xf')]);router[_0xb0c8('0x10')]('/',auth[_0xb0c8('0x9')](),controller[_0xb0c8('0x11')]);router[_0xb0c8('0x10')](_0xb0c8('0xc'),auth[_0xb0c8('0x9')](),controller[_0xb0c8('0x12')]);router[_0xb0c8('0x10')](_0xb0c8('0xe'),auth[_0xb0c8('0x9')](),controller['addAgents']);router[_0xb0c8('0x13')](_0xb0c8('0xa'),auth[_0xb0c8('0x9')](),controller[_0xb0c8('0x14')]);router[_0xb0c8('0x15')](_0xb0c8('0xa'),auth['isAuthenticated'](),controller[_0xb0c8('0x16')]);router[_0xb0c8('0x15')](_0xb0c8('0xc'),auth[_0xb0c8('0x9')](),controller[_0xb0c8('0x17')]);router[_0xb0c8('0x15')](_0xb0c8('0xe'),auth['isAuthenticated'](),controller[_0xb0c8('0x18')]);module['exports']=router;