Built motion from commit (unavailable).|2.5.29
[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 _0x32ca=['/:id/status','status','put','/:id','update','/:id/accept','/:id/reject','reject','delete','destroy','exports','multer','util','path','express','Router','fs-extra','../../components/auth/service','isAuthenticated','index','get','show','tracked','sms','create','post'];(function(_0x4a45b4,_0x59804f){var _0x1a99c9=function(_0x3aa517){while(--_0x3aa517){_0x4a45b4['push'](_0x4a45b4['shift']());}};_0x1a99c9(++_0x59804f);}(_0x32ca,0xdb));var _0xa32c=function(_0x5913b4,_0x240b15){_0x5913b4=_0x5913b4-0x0;var _0x595d5b=_0x32ca[_0x5913b4];return _0x595d5b;};'use strict';var multer=require(_0xa32c('0x0'));var util=require(_0xa32c('0x1'));var path=require(_0xa32c('0x2'));var timeout=require('connect-timeout');var express=require(_0xa32c('0x3'));var router=express[_0xa32c('0x4')]();var fs_extra=require(_0xa32c('0x5'));var auth=require(_0xa32c('0x6'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require('./smsMessage.controller');router['get']('/',auth[_0xa32c('0x7')](),controller[_0xa32c('0x8')]);router[_0xa32c('0x9')]('/describe',auth[_0xa32c('0x7')](),controller['describe']);router[_0xa32c('0x9')]('/:id',auth[_0xa32c('0x7')](),controller[_0xa32c('0xa')]);router['post']('/',auth['isAuthenticated'](),interaction[_0xa32c('0xb')](_0xa32c('0xc'),'smsmessage:create'),controller[_0xa32c('0xd')]);router[_0xa32c('0xe')](_0xa32c('0xf'),controller[_0xa32c('0x10')]);router[_0xa32c('0x11')](_0xa32c('0x12'),auth['isAuthenticated'](),controller[_0xa32c('0x13')]);router[_0xa32c('0x11')](_0xa32c('0x14'),auth[_0xa32c('0x7')](),controller['accept']);router['put'](_0xa32c('0x15'),auth[_0xa32c('0x7')](),controller[_0xa32c('0x16')]);router[_0xa32c('0x17')](_0xa32c('0x12'),auth[_0xa32c('0x7')](),controller[_0xa32c('0x18')]);module[_0xa32c('0x19')]=router;