f7ddb72272a7f9aa4492cfe5a3fa02f3459c5bb8
[motion2.git] / server / api / smsInteraction / 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 _0x2210=['post','/:id/messages','addMessage','/:id/tags','sms','smsinteraction:addtags','put','/:id','tracked','smsinteraction:update','smsinteraction:destroy','destroy','delete','exports','multer','util','path','Router','../../components/auth/service','../../components/interaction/service','./smsInteraction.controller','get','index','isAuthenticated','describe','getMessages','/:id/download'];(function(_0x301200,_0x149e5e){var _0x26e3f2=function(_0x28b794){while(--_0x28b794){_0x301200['push'](_0x301200['shift']());}};_0x26e3f2(++_0x149e5e);}(_0x2210,0x1f4));var _0x0221=function(_0x4243a3,_0x447337){_0x4243a3=_0x4243a3-0x0;var _0x1b2a33=_0x2210[_0x4243a3];return _0x1b2a33;};'use strict';var multer=require(_0x0221('0x0'));var util=require(_0x0221('0x1'));var path=require(_0x0221('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x0221('0x3')]();var auth=require(_0x0221('0x4'));var interaction=require(_0x0221('0x5'));var config=require('../../config/environment');var controller=require(_0x0221('0x6'));router[_0x0221('0x7')]('/',auth['isAuthenticated'](),controller[_0x0221('0x8')]);router['get']('/describe',auth[_0x0221('0x9')](),controller[_0x0221('0xa')]);router['get']('/:id',auth[_0x0221('0x9')](),controller['show']);router[_0x0221('0x7')]('/:id/messages',auth[_0x0221('0x9')](),controller[_0x0221('0xb')]);router[_0x0221('0x7')](_0x0221('0xc'),auth['isAuthenticated'](),controller['download']);router[_0x0221('0xd')]('/',auth[_0x0221('0x9')](),controller['create']);router[_0x0221('0xd')](_0x0221('0xe'),auth['isAuthenticated'](),controller[_0x0221('0xf')]);router[_0x0221('0xd')](_0x0221('0x10'),auth[_0x0221('0x9')](),interaction['tracked'](_0x0221('0x11'),_0x0221('0x12')),controller['addTags']);router[_0x0221('0x13')](_0x0221('0x14'),auth[_0x0221('0x9')](),interaction[_0x0221('0x15')]('sms',_0x0221('0x16')),controller['update']);router['delete']('/:id',auth[_0x0221('0x9')](),interaction[_0x0221('0x15')](_0x0221('0x11'),_0x0221('0x17')),controller[_0x0221('0x18')]);router[_0x0221('0x19')](_0x0221('0x10'),auth[_0x0221('0x9')](),controller['removeTags']);module[_0x0221('0x1a')]=router;