64ac1ab601888944476ea86bcd3a6d22440bd9b7
[motion2.git] / server / api / smsMessage / 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 _0xb892=['path','express','Router','../../components/auth/service','../../components/interaction/service','./smsMessage.controller','get','isAuthenticated','index','/describe','describe','/:id','show','tracked','sms','smsmessage:create','create','post','/:id/status','status','update','put','accept','/:id/reject','exports','multer','util'];(function(_0x4dda08,_0xee2532){var _0x403038=function(_0xce2091){while(--_0xce2091){_0x4dda08['push'](_0x4dda08['shift']());}};_0x403038(++_0xee2532);}(_0xb892,0x193));var _0x2b89=function(_0x4b73a2,_0x40b5fe){_0x4b73a2=_0x4b73a2-0x0;var _0x383c66=_0xb892[_0x4b73a2];return _0x383c66;};'use strict';var multer=require(_0x2b89('0x0'));var util=require(_0x2b89('0x1'));var path=require(_0x2b89('0x2'));var timeout=require('connect-timeout');var express=require(_0x2b89('0x3'));var router=express[_0x2b89('0x4')]();var auth=require(_0x2b89('0x5'));var interaction=require(_0x2b89('0x6'));var config=require('../../config/environment');var controller=require(_0x2b89('0x7'));router[_0x2b89('0x8')]('/',auth[_0x2b89('0x9')](),controller[_0x2b89('0xa')]);router['get'](_0x2b89('0xb'),auth[_0x2b89('0x9')](),controller[_0x2b89('0xc')]);router[_0x2b89('0x8')](_0x2b89('0xd'),auth['isAuthenticated'](),controller[_0x2b89('0xe')]);router['post']('/',auth['isAuthenticated'](),interaction[_0x2b89('0xf')](_0x2b89('0x10'),_0x2b89('0x11')),controller[_0x2b89('0x12')]);router[_0x2b89('0x13')](_0x2b89('0x14'),controller[_0x2b89('0x15')]);router['put'](_0x2b89('0xd'),auth[_0x2b89('0x9')](),controller[_0x2b89('0x16')]);router[_0x2b89('0x17')]('/:id/accept',auth['isAuthenticated'](),controller[_0x2b89('0x18')]);router[_0x2b89('0x17')](_0x2b89('0x19'),auth[_0x2b89('0x9')](),controller['reject']);router['delete']('/:id',auth['isAuthenticated'](),controller['destroy']);module[_0x2b89('0x1a')]=router;