dddc77031cb1431306c9334cef08107ce5afad33
[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 _0x14ca=['put','update','accept','reject','delete','destroy','multer','util','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','./smsMessage.controller','get','isAuthenticated','index','/describe','describe','/:id','show','post','tracked','sms'];(function(_0x58c851,_0x1f3d96){var _0x534d8a=function(_0x10c1a0){while(--_0x10c1a0){_0x58c851['push'](_0x58c851['shift']());}};_0x534d8a(++_0x1f3d96);}(_0x14ca,0x148));var _0xa14c=function(_0x447730,_0x151c13){_0x447730=_0x447730-0x0;var _0x2f8683=_0x14ca[_0x447730];return _0x2f8683;};'use strict';var multer=require(_0xa14c('0x0'));var util=require(_0xa14c('0x1'));var path=require('path');var timeout=require(_0xa14c('0x2'));var express=require('express');var router=express[_0xa14c('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0xa14c('0x4'));var interaction=require(_0xa14c('0x5'));var config=require('../../config/environment');var controller=require(_0xa14c('0x6'));router[_0xa14c('0x7')]('/',auth[_0xa14c('0x8')](),controller[_0xa14c('0x9')]);router['get'](_0xa14c('0xa'),auth[_0xa14c('0x8')](),controller[_0xa14c('0xb')]);router[_0xa14c('0x7')](_0xa14c('0xc'),auth[_0xa14c('0x8')](),controller[_0xa14c('0xd')]);router[_0xa14c('0xe')]('/',auth[_0xa14c('0x8')](),interaction[_0xa14c('0xf')](_0xa14c('0x10'),'smsmessage:create'),controller['create']);router[_0xa14c('0xe')]('/:id/status',controller['status']);router[_0xa14c('0x11')](_0xa14c('0xc'),auth['isAuthenticated'](),controller[_0xa14c('0x12')]);router[_0xa14c('0x11')]('/:id/accept',auth[_0xa14c('0x8')](),controller[_0xa14c('0x13')]);router[_0xa14c('0x11')]('/:id/reject',auth[_0xa14c('0x8')](),controller[_0xa14c('0x14')]);router[_0xa14c('0x15')](_0xa14c('0xc'),auth[_0xa14c('0x8')](),controller[_0xa14c('0x16')]);module['exports']=router;