9d57a4a0216e230a1e2bcd828b70060aa8e4133e
[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 _0x3e91=['path','express','Router','../../components/interaction/service','../../config/environment','./smsApplication.controller','isAuthenticated','index','get','/:id','show','post','put','exports','multer','util'];(function(_0x516927,_0xb4aad0){var _0x30749b=function(_0x2ca6cc){while(--_0x2ca6cc){_0x516927['push'](_0x516927['shift']());}};_0x30749b(++_0xb4aad0);}(_0x3e91,0x1ee));var _0x13e9=function(_0x5b7ce0,_0x144145){_0x5b7ce0=_0x5b7ce0-0x0;var _0x39d49e=_0x3e91[_0x5b7ce0];return _0x39d49e;};'use strict';var multer=require(_0x13e9('0x0'));var util=require(_0x13e9('0x1'));var path=require(_0x13e9('0x2'));var timeout=require('connect-timeout');var express=require(_0x13e9('0x3'));var router=express[_0x13e9('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0x13e9('0x5'));var config=require(_0x13e9('0x6'));var controller=require(_0x13e9('0x7'));router['get']('/',auth[_0x13e9('0x8')](),controller[_0x13e9('0x9')]);router[_0x13e9('0xa')](_0x13e9('0xb'),auth[_0x13e9('0x8')](),controller[_0x13e9('0xc')]);router[_0x13e9('0xd')]('/',auth['isAuthenticated'](),controller['create']);router[_0x13e9('0xe')](_0x13e9('0xb'),auth['isAuthenticated'](),controller['update']);router['delete'](_0x13e9('0xb'),auth[_0x13e9('0x8')](),controller['destroy']);module[_0x13e9('0xf')]=router;