Built motion from commit (unavailable).|2.5.4
[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 _0x8362=['update','delete','destroy','multer','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./smsApplication.controller','get','isAuthenticated','index','/:id','show','post','put'];(function(_0x3a5c99,_0x3713d1){var _0x60c912=function(_0x430245){while(--_0x430245){_0x3a5c99['push'](_0x3a5c99['shift']());}};_0x60c912(++_0x3713d1);}(_0x8362,0x16c));var _0x2836=function(_0x13d82f,_0x5674b5){_0x13d82f=_0x13d82f-0x0;var _0x4673cd=_0x8362[_0x13d82f];return _0x4673cd;};'use strict';var multer=require(_0x2836('0x0'));var util=require('util');var path=require(_0x2836('0x1'));var timeout=require(_0x2836('0x2'));var express=require(_0x2836('0x3'));var router=express[_0x2836('0x4')]();var auth=require(_0x2836('0x5'));var interaction=require(_0x2836('0x6'));var config=require(_0x2836('0x7'));var controller=require(_0x2836('0x8'));router[_0x2836('0x9')]('/',auth[_0x2836('0xa')](),controller[_0x2836('0xb')]);router[_0x2836('0x9')](_0x2836('0xc'),auth[_0x2836('0xa')](),controller[_0x2836('0xd')]);router[_0x2836('0xe')]('/',auth[_0x2836('0xa')](),controller['create']);router[_0x2836('0xf')]('/:id',auth['isAuthenticated'](),controller[_0x2836('0x10')]);router[_0x2836('0x11')](_0x2836('0xc'),auth[_0x2836('0xa')](),controller[_0x2836('0x12')]);module['exports']=router;