f08839d4978cd2ca61bbd82f4657eed7a4a0081a
[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 _0x859b=['destroy','multer','util','path','connect-timeout','express','../../config/environment','./smsQueueReport.controller','get','isAuthenticated','/describe','describe','show','post','create','put','/:id','update','delete'];(function(_0x952a2f,_0x26024c){var _0x3c6c08=function(_0x32ba1f){while(--_0x32ba1f){_0x952a2f['push'](_0x952a2f['shift']());}};_0x3c6c08(++_0x26024c);}(_0x859b,0xf8));var _0xb859=function(_0xa22410,_0xec9b93){_0xa22410=_0xa22410-0x0;var _0x4bd1fc=_0x859b[_0xa22410];return _0x4bd1fc;};'use strict';var multer=require(_0xb859('0x0'));var util=require(_0xb859('0x1'));var path=require(_0xb859('0x2'));var timeout=require(_0xb859('0x3'));var express=require(_0xb859('0x4'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xb859('0x5'));var controller=require(_0xb859('0x6'));router[_0xb859('0x7')]('/',auth[_0xb859('0x8')](),controller['index']);router[_0xb859('0x7')](_0xb859('0x9'),auth[_0xb859('0x8')](),controller[_0xb859('0xa')]);router['get']('/:id',auth[_0xb859('0x8')](),controller[_0xb859('0xb')]);router[_0xb859('0xc')]('/',auth[_0xb859('0x8')](),controller[_0xb859('0xd')]);router[_0xb859('0xe')](_0xb859('0xf'),auth['isAuthenticated'](),controller[_0xb859('0x10')]);router[_0xb859('0x11')](_0xb859('0xf'),auth['isAuthenticated'](),controller[_0xb859('0x12')]);module['exports']=router;