d84b7e966db111e2b24009b53179b672cb4f6631
[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 _0x75f5=['destroy','exports','multer','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id','show','post','create','update'];(function(_0x3e5086,_0x48f4a2){var _0xfeb102=function(_0x5a945f){while(--_0x5a945f){_0x3e5086['push'](_0x3e5086['shift']());}};_0xfeb102(++_0x48f4a2);}(_0x75f5,0x152));var _0x575f=function(_0x3f553b,_0x49a9c2){_0x3f553b=_0x3f553b-0x0;var _0x183c4e=_0x75f5[_0x3f553b];return _0x183c4e;};'use strict';var multer=require(_0x575f('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x575f('0x1'));var express=require('express');var router=express[_0x575f('0x2')]();var auth=require(_0x575f('0x3'));var interaction=require(_0x575f('0x4'));var config=require(_0x575f('0x5'));var controller=require('./smsApplication.controller');router[_0x575f('0x6')]('/',auth[_0x575f('0x7')](),controller[_0x575f('0x8')]);router[_0x575f('0x6')](_0x575f('0x9'),auth[_0x575f('0x7')](),controller[_0x575f('0xa')]);router[_0x575f('0xb')]('/',auth[_0x575f('0x7')](),controller[_0x575f('0xc')]);router['put'](_0x575f('0x9'),auth[_0x575f('0x7')](),controller[_0x575f('0xd')]);router['delete']('/:id',auth['isAuthenticated'](),controller[_0x575f('0xe')]);module[_0x575f('0xf')]=router;