ec86c34de1315744b5d98ec24226be9101f4df28
[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 _0x4122=['post','create','put','update','destroy','exports','multer','util','path','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./UserSmsInteraction.controller','get','isAuthenticated','/:id','show'];(function(_0x3947c9,_0x4d6c97){var _0x2e7871=function(_0x1236cc){while(--_0x1236cc){_0x3947c9['push'](_0x3947c9['shift']());}};_0x2e7871(++_0x4d6c97);}(_0x4122,0x16e));var _0x2412=function(_0x122ef9,_0x451d2a){_0x122ef9=_0x122ef9-0x0;var _0x42fba0=_0x4122[_0x122ef9];return _0x42fba0;};'use strict';var multer=require(_0x2412('0x0'));var util=require(_0x2412('0x1'));var path=require(_0x2412('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x2412('0x3')]();var auth=require(_0x2412('0x4'));var interaction=require(_0x2412('0x5'));var config=require(_0x2412('0x6'));var controller=require(_0x2412('0x7'));router[_0x2412('0x8')]('/',auth[_0x2412('0x9')](),controller['index']);router[_0x2412('0x8')](_0x2412('0xa'),auth['isAuthenticated'](),controller[_0x2412('0xb')]);router[_0x2412('0xc')]('/',auth[_0x2412('0x9')](),controller[_0x2412('0xd')]);router[_0x2412('0xe')](_0x2412('0xa'),auth[_0x2412('0x9')](),controller[_0x2412('0xf')]);router['delete'](_0x2412('0xa'),auth[_0x2412('0x9')](),controller[_0x2412('0x10')]);module[_0x2412('0x11')]=router;