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