d476db47933e6ea033220e0345dbffcc65fe280b
[motion2.git] / server / api / smsQueueReport / 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 _0x5f83=['index','isAuthenticated','describe','show','post','create','/:id','update','delete','destroy','multer','util','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get'];(function(_0x178e48,_0x3c9509){var _0x440d7e=function(_0xc2f8a0){while(--_0xc2f8a0){_0x178e48['push'](_0x178e48['shift']());}};_0x440d7e(++_0x3c9509);}(_0x5f83,0x8f));var _0x35f8=function(_0x2ceb54,_0xa177ee){_0x2ceb54=_0x2ceb54-0x0;var _0x2ab4ca=_0x5f83[_0x2ceb54];return _0x2ab4ca;};'use strict';var multer=require(_0x35f8('0x0'));var util=require(_0x35f8('0x1'));var path=require('path');var timeout=require(_0x35f8('0x2'));var express=require(_0x35f8('0x3'));var router=express[_0x35f8('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x35f8('0x5'));var interaction=require(_0x35f8('0x6'));var config=require(_0x35f8('0x7'));var controller=require('./smsQueueReport.controller');router[_0x35f8('0x8')]('/',auth['isAuthenticated'](),controller[_0x35f8('0x9')]);router[_0x35f8('0x8')]('/describe',auth[_0x35f8('0xa')](),controller[_0x35f8('0xb')]);router[_0x35f8('0x8')]('/:id',auth['isAuthenticated'](),controller[_0x35f8('0xc')]);router[_0x35f8('0xd')]('/',auth[_0x35f8('0xa')](),controller[_0x35f8('0xe')]);router['put'](_0x35f8('0xf'),auth[_0x35f8('0xa')](),controller[_0x35f8('0x10')]);router[_0x35f8('0x11')](_0x35f8('0xf'),auth[_0x35f8('0xa')](),controller[_0x35f8('0x12')]);module['exports']=router;