f6814ff9b14c0116164bb35b038c9672547e6d90
[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 _0x6266=['delete','destroy','exports','multer','path','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','./smsMessage.controller','get','/describe','isAuthenticated','describe','/:id','show','post','sms','smsmessage:create','status','put','update','/:id/accept','accept','/:id/reject','reject'];(function(_0x3550e8,_0x424fea){var _0x18eb61=function(_0x2dcb49){while(--_0x2dcb49){_0x3550e8['push'](_0x3550e8['shift']());}};_0x18eb61(++_0x424fea);}(_0x6266,0xa5));var _0x6626=function(_0x36924f,_0x133e21){_0x36924f=_0x36924f-0x0;var _0x562c01=_0x6266[_0x36924f];return _0x562c01;};'use strict';var multer=require(_0x6626('0x0'));var util=require('util');var path=require(_0x6626('0x1'));var timeout=require(_0x6626('0x2'));var express=require(_0x6626('0x3'));var router=express[_0x6626('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0x6626('0x5'));var config=require(_0x6626('0x6'));var controller=require(_0x6626('0x7'));router['get']('/',auth['isAuthenticated'](),controller['index']);router[_0x6626('0x8')](_0x6626('0x9'),auth[_0x6626('0xa')](),controller[_0x6626('0xb')]);router['get'](_0x6626('0xc'),auth['isAuthenticated'](),controller[_0x6626('0xd')]);router[_0x6626('0xe')]('/',auth[_0x6626('0xa')](),interaction['tracked'](_0x6626('0xf'),_0x6626('0x10')),controller['create']);router[_0x6626('0xe')]('/:id/status',controller[_0x6626('0x11')]);router[_0x6626('0x12')](_0x6626('0xc'),auth[_0x6626('0xa')](),controller[_0x6626('0x13')]);router[_0x6626('0x12')](_0x6626('0x14'),auth[_0x6626('0xa')](),controller[_0x6626('0x15')]);router['put'](_0x6626('0x16'),auth[_0x6626('0xa')](),controller[_0x6626('0x17')]);router[_0x6626('0x18')](_0x6626('0xc'),auth[_0x6626('0xa')](),controller[_0x6626('0x19')]);module[_0x6626('0x1a')]=router;