c43c6afacf9d7788f73d091dec66e34ce15419f2
[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 _0x9c22=['destroy','exports','multer','path','../../components/auth/service','../../components/interaction/service','../../config/environment','./smsApplication.controller','isAuthenticated','/:id','show','create','update','delete'];(function(_0x261289,_0x5e1c13){var _0x4a6764=function(_0x15102b){while(--_0x15102b){_0x261289['push'](_0x261289['shift']());}};_0x4a6764(++_0x5e1c13);}(_0x9c22,0x136));var _0x29c2=function(_0x1a4b42,_0x198645){_0x1a4b42=_0x1a4b42-0x0;var _0x4e78a9=_0x9c22[_0x1a4b42];return _0x4e78a9;};'use strict';var multer=require(_0x29c2('0x0'));var util=require('util');var path=require(_0x29c2('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var auth=require(_0x29c2('0x2'));var interaction=require(_0x29c2('0x3'));var config=require(_0x29c2('0x4'));var controller=require(_0x29c2('0x5'));router['get']('/',auth[_0x29c2('0x6')](),controller['index']);router['get'](_0x29c2('0x7'),auth[_0x29c2('0x6')](),controller[_0x29c2('0x8')]);router['post']('/',auth[_0x29c2('0x6')](),controller[_0x29c2('0x9')]);router['put'](_0x29c2('0x7'),auth[_0x29c2('0x6')](),controller[_0x29c2('0xa')]);router[_0x29c2('0xb')](_0x29c2('0x7'),auth[_0x29c2('0x6')](),controller[_0x29c2('0xc')]);module[_0x29c2('0xd')]=router;