5d3e067fb5b85a72c1211b7f9003f58d46999f54
[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 _0x2ef3=['../../components/interaction/service','../../config/environment','get','isAuthenticated','/describe','describe','/:id','show','/:id/messages','/:id/download','download','post','create','addMessage','tracked','smsinteraction:addtags','addTags','put','smsinteraction:update','update','delete','sms','smsinteraction:destroy','/:id/tags','removeTags','exports','multer','util','path','connect-timeout','express','Router'];(function(_0x38c5bb,_0x153bdb){var _0x5cbd09=function(_0xe17565){while(--_0xe17565){_0x38c5bb['push'](_0x38c5bb['shift']());}};_0x5cbd09(++_0x153bdb);}(_0x2ef3,0xba));var _0x32ef=function(_0x234ba6,_0x481f5d){_0x234ba6=_0x234ba6-0x0;var _0x39ce7e=_0x2ef3[_0x234ba6];return _0x39ce7e;};'use strict';var multer=require(_0x32ef('0x0'));var util=require(_0x32ef('0x1'));var path=require(_0x32ef('0x2'));var timeout=require(_0x32ef('0x3'));var express=require(_0x32ef('0x4'));var router=express[_0x32ef('0x5')]();var auth=require('../../components/auth/service');var interaction=require(_0x32ef('0x6'));var config=require(_0x32ef('0x7'));var controller=require('./smsInteraction.controller');router[_0x32ef('0x8')]('/',auth[_0x32ef('0x9')](),controller['index']);router['get'](_0x32ef('0xa'),auth[_0x32ef('0x9')](),controller[_0x32ef('0xb')]);router[_0x32ef('0x8')](_0x32ef('0xc'),auth[_0x32ef('0x9')](),controller[_0x32ef('0xd')]);router[_0x32ef('0x8')](_0x32ef('0xe'),auth[_0x32ef('0x9')](),controller['getMessages']);router['get'](_0x32ef('0xf'),auth[_0x32ef('0x9')](),controller[_0x32ef('0x10')]);router[_0x32ef('0x11')]('/',auth['isAuthenticated'](),controller[_0x32ef('0x12')]);router['post'](_0x32ef('0xe'),auth['isAuthenticated'](),controller[_0x32ef('0x13')]);router[_0x32ef('0x11')]('/:id/tags',auth['isAuthenticated'](),interaction[_0x32ef('0x14')]('sms',_0x32ef('0x15')),controller[_0x32ef('0x16')]);router[_0x32ef('0x17')](_0x32ef('0xc'),auth['isAuthenticated'](),interaction['tracked']('sms',_0x32ef('0x18')),controller[_0x32ef('0x19')]);router[_0x32ef('0x1a')]('/:id',auth['isAuthenticated'](),interaction[_0x32ef('0x14')](_0x32ef('0x1b'),_0x32ef('0x1c')),controller['destroy']);router[_0x32ef('0x1a')](_0x32ef('0x1d'),auth['isAuthenticated'](),controller[_0x32ef('0x1e')]);module[_0x32ef('0x1f')]=router;