Built motion from commit 9d1906d1.|2.5.40
[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 _0x5431=['exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/describe','describe','/:id','show','/:id/members','getMembers','getTeams','/:id/users','getAgents','create','post','/:id/teams','addTeams','addAgents','put','update','delete','destroy','removeAgents'];(function(_0x24d4ee,_0x26f188){var _0x3f04f6=function(_0x43830a){while(--_0x43830a){_0x24d4ee['push'](_0x24d4ee['shift']());}};_0x3f04f6(++_0x26f188);}(_0x5431,0x161));var _0x1543=function(_0x421f5c,_0x5171d8){_0x421f5c=_0x421f5c-0x0;var _0x19924a=_0x5431[_0x421f5c];return _0x19924a;};'use strict';var multer=require(_0x1543('0x0'));var util=require(_0x1543('0x1'));var path=require(_0x1543('0x2'));var timeout=require(_0x1543('0x3'));var express=require(_0x1543('0x4'));var router=express[_0x1543('0x5')]();var fs_extra=require(_0x1543('0x6'));var auth=require('../../components/auth/service');var interaction=require(_0x1543('0x7'));var config=require(_0x1543('0x8'));var controller=require('./smsQueue.controller');router[_0x1543('0x9')]('/',auth[_0x1543('0xa')](),controller[_0x1543('0xb')]);router[_0x1543('0x9')](_0x1543('0xc'),auth[_0x1543('0xa')](),controller[_0x1543('0xd')]);router[_0x1543('0x9')](_0x1543('0xe'),auth[_0x1543('0xa')](),controller[_0x1543('0xf')]);router['get'](_0x1543('0x10'),auth[_0x1543('0xa')](),controller[_0x1543('0x11')]);router[_0x1543('0x9')]('/:id/teams',auth[_0x1543('0xa')](),controller[_0x1543('0x12')]);router[_0x1543('0x9')](_0x1543('0x13'),auth[_0x1543('0xa')](),controller[_0x1543('0x14')]);router['post']('/',auth[_0x1543('0xa')](),controller[_0x1543('0x15')]);router[_0x1543('0x16')](_0x1543('0x17'),auth[_0x1543('0xa')](),controller[_0x1543('0x18')]);router[_0x1543('0x16')](_0x1543('0x13'),auth['isAuthenticated'](),controller[_0x1543('0x19')]);router[_0x1543('0x1a')](_0x1543('0xe'),auth[_0x1543('0xa')](),controller[_0x1543('0x1b')]);router[_0x1543('0x1c')](_0x1543('0xe'),auth[_0x1543('0xa')](),controller[_0x1543('0x1d')]);router[_0x1543('0x1c')](_0x1543('0x17'),auth[_0x1543('0xa')](),controller['removeTeams']);router[_0x1543('0x1c')](_0x1543('0x13'),auth[_0x1543('0xa')](),controller[_0x1543('0x1e')]);module[_0x1543('0x1f')]=router;