Built motion from commit (unavailable).|2.4.18
[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 _0x85a6=['exports','multer','path','express','../../components/auth/service','./smsMessage.controller','get','isAuthenticated','index','/describe','describe','/:id','show','post','tracked','sms','smsmessage:create','create','status','update','put','/:id/reject','delete','destroy'];(function(_0x4a7e98,_0x250137){var _0x27d10d=function(_0x378768){while(--_0x378768){_0x4a7e98['push'](_0x4a7e98['shift']());}};_0x27d10d(++_0x250137);}(_0x85a6,0x169));var _0x685a=function(_0x5710a1,_0x1b114b){_0x5710a1=_0x5710a1-0x0;var _0x1557f8=_0x85a6[_0x5710a1];return _0x1557f8;};'use strict';var multer=require(_0x685a('0x0'));var util=require('util');var path=require(_0x685a('0x1'));var timeout=require('connect-timeout');var express=require(_0x685a('0x2'));var router=express['Router']();var auth=require(_0x685a('0x3'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x685a('0x4'));router[_0x685a('0x5')]('/',auth[_0x685a('0x6')](),controller[_0x685a('0x7')]);router['get'](_0x685a('0x8'),auth[_0x685a('0x6')](),controller[_0x685a('0x9')]);router[_0x685a('0x5')](_0x685a('0xa'),auth[_0x685a('0x6')](),controller[_0x685a('0xb')]);router[_0x685a('0xc')]('/',auth[_0x685a('0x6')](),interaction[_0x685a('0xd')](_0x685a('0xe'),_0x685a('0xf')),controller[_0x685a('0x10')]);router[_0x685a('0xc')]('/:id/status',controller[_0x685a('0x11')]);router['put']('/:id',auth[_0x685a('0x6')](),controller[_0x685a('0x12')]);router[_0x685a('0x13')]('/:id/accept',auth[_0x685a('0x6')](),controller['accept']);router[_0x685a('0x13')](_0x685a('0x14'),auth['isAuthenticated'](),controller['reject']);router[_0x685a('0x15')](_0x685a('0xa'),auth[_0x685a('0x6')](),controller[_0x685a('0x16')]);module[_0x685a('0x17')]=router;