6b3e12862b264323710b9dd1b976a32ba7f4712f
[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 _0x9e96=['destroy','exports','multer','path','connect-timeout','express','Router','../../components/auth/service','../../config/environment','get','isAuthenticated','index','/:id','create','delete'];(function(_0x46097c,_0x56e667){var _0x2eeac0=function(_0x31d611){while(--_0x31d611){_0x46097c['push'](_0x46097c['shift']());}};_0x2eeac0(++_0x56e667);}(_0x9e96,0x1f1));var _0x69e9=function(_0x16d437,_0x3f51b8){_0x16d437=_0x16d437-0x0;var _0x541acb=_0x9e96[_0x16d437];return _0x541acb;};'use strict';var multer=require(_0x69e9('0x0'));var util=require('util');var path=require(_0x69e9('0x1'));var timeout=require(_0x69e9('0x2'));var express=require(_0x69e9('0x3'));var router=express[_0x69e9('0x4')]();var auth=require(_0x69e9('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x69e9('0x6'));var controller=require('./smsApplication.controller');router[_0x69e9('0x7')]('/',auth[_0x69e9('0x8')](),controller[_0x69e9('0x9')]);router['get'](_0x69e9('0xa'),auth[_0x69e9('0x8')](),controller['show']);router['post']('/',auth[_0x69e9('0x8')](),controller[_0x69e9('0xb')]);router['put'](_0x69e9('0xa'),auth['isAuthenticated'](),controller['update']);router[_0x69e9('0xc')](_0x69e9('0xa'),auth[_0x69e9('0x8')](),controller[_0x69e9('0xd')]);module[_0x69e9('0xe')]=router;