22008d8098c5c52fbd8601d642c98d99e696cc47
[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 _0x011a=['connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./smsMessage.controller','get','isAuthenticated','show','tracked','sms','smsmessage:create','create','post','status','put','/:id','update','/:id/accept','accept','reject','delete','destroy','multer','util','path'];(function(_0x199572,_0x33e667){var _0x13cfa3=function(_0x53c075){while(--_0x53c075){_0x199572['push'](_0x199572['shift']());}};_0x13cfa3(++_0x33e667);}(_0x011a,0x1c8));var _0xa011=function(_0x469a2d,_0x53bcbe){_0x469a2d=_0x469a2d-0x0;var _0x148147=_0x011a[_0x469a2d];return _0x148147;};'use strict';var multer=require(_0xa011('0x0'));var util=require(_0xa011('0x1'));var path=require(_0xa011('0x2'));var timeout=require(_0xa011('0x3'));var express=require('express');var router=express[_0xa011('0x4')]();var fs_extra=require(_0xa011('0x5'));var auth=require(_0xa011('0x6'));var interaction=require(_0xa011('0x7'));var config=require(_0xa011('0x8'));var controller=require(_0xa011('0x9'));router[_0xa011('0xa')]('/',auth[_0xa011('0xb')](),controller['index']);router['get']('/describe',auth[_0xa011('0xb')](),controller['describe']);router[_0xa011('0xa')]('/:id',auth[_0xa011('0xb')](),controller[_0xa011('0xc')]);router['post']('/',auth[_0xa011('0xb')](),interaction[_0xa011('0xd')](_0xa011('0xe'),_0xa011('0xf')),controller[_0xa011('0x10')]);router[_0xa011('0x11')]('/:id/status',controller[_0xa011('0x12')]);router[_0xa011('0x13')](_0xa011('0x14'),auth[_0xa011('0xb')](),controller[_0xa011('0x15')]);router[_0xa011('0x13')](_0xa011('0x16'),auth[_0xa011('0xb')](),controller[_0xa011('0x17')]);router[_0xa011('0x13')]('/:id/reject',auth[_0xa011('0xb')](),controller[_0xa011('0x18')]);router[_0xa011('0x19')](_0xa011('0x14'),auth[_0xa011('0xb')](),controller[_0xa011('0x1a')]);module['exports']=router;