2381bc0f94afc57959e64a050da72bcc28589573
[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 _0xff61=['post','create','put','/:id','update','delete','destroy','exports','multer','util','connect-timeout','express','../../components/interaction/service','../../config/environment','./smsApplication.controller','get','isAuthenticated','index'];(function(_0xc52364,_0x4076ca){var _0x4171d3=function(_0x5466f3){while(--_0x5466f3){_0xc52364['push'](_0xc52364['shift']());}};_0x4171d3(++_0x4076ca);}(_0xff61,0x182));var _0x1ff6=function(_0x5bb73e,_0x208b1f){_0x5bb73e=_0x5bb73e-0x0;var _0x45a8f3=_0xff61[_0x5bb73e];return _0x45a8f3;};'use strict';var multer=require(_0x1ff6('0x0'));var util=require(_0x1ff6('0x1'));var path=require('path');var timeout=require(_0x1ff6('0x2'));var express=require(_0x1ff6('0x3'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x1ff6('0x4'));var config=require(_0x1ff6('0x5'));var controller=require(_0x1ff6('0x6'));router[_0x1ff6('0x7')]('/',auth[_0x1ff6('0x8')](),controller[_0x1ff6('0x9')]);router[_0x1ff6('0x7')]('/:id',auth['isAuthenticated'](),controller['show']);router[_0x1ff6('0xa')]('/',auth[_0x1ff6('0x8')](),controller[_0x1ff6('0xb')]);router[_0x1ff6('0xc')](_0x1ff6('0xd'),auth[_0x1ff6('0x8')](),controller[_0x1ff6('0xe')]);router[_0x1ff6('0xf')](_0x1ff6('0xd'),auth['isAuthenticated'](),controller[_0x1ff6('0x10')]);module[_0x1ff6('0x11')]=router;