3367592524071c1a3ef26fcce9071659b0767c18
[motion2.git] / server / api / smsApplication / 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 _0xc7d9=['update','destroy','multer','util','path','express','Router','../../components/auth/service','../../config/environment','./smsApplication.controller','isAuthenticated','index','get','/:id','create'];(function(_0x27af45,_0x1b57aa){var _0x18df21=function(_0x4b7679){while(--_0x4b7679){_0x27af45['push'](_0x27af45['shift']());}};_0x18df21(++_0x1b57aa);}(_0xc7d9,0x6b));var _0x9c7d=function(_0x2d7f0e,_0x3e6fbd){_0x2d7f0e=_0x2d7f0e-0x0;var _0x110b07=_0xc7d9[_0x2d7f0e];return _0x110b07;};'use strict';var multer=require(_0x9c7d('0x0'));var util=require(_0x9c7d('0x1'));var path=require(_0x9c7d('0x2'));var timeout=require('connect-timeout');var express=require(_0x9c7d('0x3'));var router=express[_0x9c7d('0x4')]();var auth=require(_0x9c7d('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x9c7d('0x6'));var controller=require(_0x9c7d('0x7'));router['get']('/',auth[_0x9c7d('0x8')](),controller[_0x9c7d('0x9')]);router[_0x9c7d('0xa')](_0x9c7d('0xb'),auth[_0x9c7d('0x8')](),controller['show']);router['post']('/',auth[_0x9c7d('0x8')](),controller[_0x9c7d('0xc')]);router['put'](_0x9c7d('0xb'),auth['isAuthenticated'](),controller[_0x9c7d('0xd')]);router['delete'](_0x9c7d('0xb'),auth['isAuthenticated'](),controller[_0x9c7d('0xe')]);module['exports']=router;