a378b7766c271ccf66db09a8fc0dae038447b211
[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 _0x89dd=['../../components/auth/service','../../components/interaction/service','isAuthenticated','index','get','/:id','show','post','create','put','update','destroy','exports','multer','util','path','connect-timeout','express','fs-extra'];(function(_0x154192,_0x2d360f){var _0x3c2792=function(_0x2e257b){while(--_0x2e257b){_0x154192['push'](_0x154192['shift']());}};_0x3c2792(++_0x2d360f);}(_0x89dd,0xcb));var _0xd89d=function(_0x3a989a,_0x13557c){_0x3a989a=_0x3a989a-0x0;var _0x549e16=_0x89dd[_0x3a989a];return _0x549e16;};'use strict';var multer=require(_0xd89d('0x0'));var util=require(_0xd89d('0x1'));var path=require(_0xd89d('0x2'));var timeout=require(_0xd89d('0x3'));var express=require(_0xd89d('0x4'));var router=express['Router']();var fs_extra=require(_0xd89d('0x5'));var auth=require(_0xd89d('0x6'));var interaction=require(_0xd89d('0x7'));var config=require('../../config/environment');var controller=require('./smsApplication.controller');router['get']('/',auth[_0xd89d('0x8')](),controller[_0xd89d('0x9')]);router[_0xd89d('0xa')](_0xd89d('0xb'),auth[_0xd89d('0x8')](),controller[_0xd89d('0xc')]);router[_0xd89d('0xd')]('/',auth[_0xd89d('0x8')](),controller[_0xd89d('0xe')]);router[_0xd89d('0xf')](_0xd89d('0xb'),auth[_0xd89d('0x8')](),controller[_0xd89d('0x10')]);router['delete'](_0xd89d('0xb'),auth[_0xd89d('0x8')](),controller[_0xd89d('0x11')]);module[_0xd89d('0x12')]=router;