273c12b8e53aa977a9ca87f533d28b95294cb9a4
[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 _0x233b=['isAuthenticated','index','/:id','show','post','create','delete','destroy','path','../../components/auth/service','../../components/interaction/service','./smsApplication.controller','get'];(function(_0x596053,_0x1a9efd){var _0x1fb180=function(_0x14ccdf){while(--_0x14ccdf){_0x596053['push'](_0x596053['shift']());}};_0x1fb180(++_0x1a9efd);}(_0x233b,0x19b));var _0xb233=function(_0x199572,_0x33e667){_0x199572=_0x199572-0x0;var _0x13cfa3=_0x233b[_0x199572];return _0x13cfa3;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xb233('0x0'));var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var auth=require(_0xb233('0x1'));var interaction=require(_0xb233('0x2'));var config=require('../../config/environment');var controller=require(_0xb233('0x3'));router[_0xb233('0x4')]('/',auth[_0xb233('0x5')](),controller[_0xb233('0x6')]);router[_0xb233('0x4')](_0xb233('0x7'),auth['isAuthenticated'](),controller[_0xb233('0x8')]);router[_0xb233('0x9')]('/',auth['isAuthenticated'](),controller[_0xb233('0xa')]);router['put'](_0xb233('0x7'),auth['isAuthenticated'](),controller['update']);router[_0xb233('0xb')](_0xb233('0x7'),auth[_0xb233('0x5')](),controller[_0xb233('0xc')]);module['exports']=router;