22dd99117ff408f48289c35ef5b126e5431bd77d
[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 _0xfba8=['put','update','delete','destroy','removeTeams','exports','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','index','/describe','isAuthenticated','describe','/:id','show','/:id/members','getMembers','getTeams','/:id/users','post','/:id/teams','addTeams'];(function(_0x335d2c,_0x52272b){var _0xe265c1=function(_0x566f00){while(--_0x566f00){_0x335d2c['push'](_0x335d2c['shift']());}};_0xe265c1(++_0x52272b);}(_0xfba8,0x1d6));var _0x8fba=function(_0x3a4804,_0x33318c){_0x3a4804=_0x3a4804-0x0;var _0x205f20=_0xfba8[_0x3a4804];return _0x205f20;};'use strict';var multer=require(_0x8fba('0x0'));var util=require(_0x8fba('0x1'));var path=require(_0x8fba('0x2'));var timeout=require(_0x8fba('0x3'));var express=require(_0x8fba('0x4'));var router=express[_0x8fba('0x5')]();var auth=require(_0x8fba('0x6'));var interaction=require(_0x8fba('0x7'));var config=require(_0x8fba('0x8'));var controller=require('./smsQueue.controller');router[_0x8fba('0x9')]('/',auth['isAuthenticated'](),controller[_0x8fba('0xa')]);router[_0x8fba('0x9')](_0x8fba('0xb'),auth[_0x8fba('0xc')](),controller[_0x8fba('0xd')]);router[_0x8fba('0x9')](_0x8fba('0xe'),auth['isAuthenticated'](),controller[_0x8fba('0xf')]);router['get'](_0x8fba('0x10'),auth[_0x8fba('0xc')](),controller[_0x8fba('0x11')]);router[_0x8fba('0x9')]('/:id/teams',auth[_0x8fba('0xc')](),controller[_0x8fba('0x12')]);router['get'](_0x8fba('0x13'),auth[_0x8fba('0xc')](),controller['getAgents']);router['post']('/',auth[_0x8fba('0xc')](),controller['create']);router[_0x8fba('0x14')](_0x8fba('0x15'),auth[_0x8fba('0xc')](),controller[_0x8fba('0x16')]);router[_0x8fba('0x14')](_0x8fba('0x13'),auth['isAuthenticated'](),controller['addAgents']);router[_0x8fba('0x17')](_0x8fba('0xe'),auth[_0x8fba('0xc')](),controller[_0x8fba('0x18')]);router[_0x8fba('0x19')](_0x8fba('0xe'),auth['isAuthenticated'](),controller[_0x8fba('0x1a')]);router[_0x8fba('0x19')](_0x8fba('0x15'),auth[_0x8fba('0xc')](),controller[_0x8fba('0x1b')]);router[_0x8fba('0x19')](_0x8fba('0x13'),auth[_0x8fba('0xc')](),controller['removeAgents']);module[_0x8fba('0x1c')]=router;