Built motion from commit (unavailable).|2.5.21
[motion2.git] / server / api / UserSmsInteraction / 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 _0x0c67=['../../components/auth/service','../../components/interaction/service','./UserSmsInteraction.controller','get','isAuthenticated','/:id','post','create','delete','multer','path','express','Router'];(function(_0x17758e,_0x540ccd){var _0x174785=function(_0xd8769d){while(--_0xd8769d){_0x17758e['push'](_0x17758e['shift']());}};_0x174785(++_0x540ccd);}(_0x0c67,0x1dd));var _0x70c6=function(_0x57fd1a,_0x45b211){_0x57fd1a=_0x57fd1a-0x0;var _0x3d0fe4=_0x0c67[_0x57fd1a];return _0x3d0fe4;};'use strict';var multer=require(_0x70c6('0x0'));var util=require('util');var path=require(_0x70c6('0x1'));var timeout=require('connect-timeout');var express=require(_0x70c6('0x2'));var router=express[_0x70c6('0x3')]();var auth=require(_0x70c6('0x4'));var interaction=require(_0x70c6('0x5'));var config=require('../../config/environment');var controller=require(_0x70c6('0x6'));router[_0x70c6('0x7')]('/',auth[_0x70c6('0x8')](),controller['index']);router[_0x70c6('0x7')](_0x70c6('0x9'),auth['isAuthenticated'](),controller['show']);router[_0x70c6('0xa')]('/',auth['isAuthenticated'](),controller[_0x70c6('0xb')]);router['put']('/:id',auth[_0x70c6('0x8')](),controller['update']);router[_0x70c6('0xc')](_0x70c6('0x9'),auth[_0x70c6('0x8')](),controller['destroy']);module['exports']=router;