Built motion from commit 56b8093a.|2.6.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 _0xc27f=['index','/describe','/:id','tracked','sms','smsmessage:create','create','post','/:id/status','status','put','update','/:id/accept','accept','/:id/reject','reject','delete','multer','util','path','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./smsMessage.controller','get','isAuthenticated'];(function(_0xa30db1,_0x431b2f){var _0x19309c=function(_0x74cbb1){while(--_0x74cbb1){_0xa30db1['push'](_0xa30db1['shift']());}};_0x19309c(++_0x431b2f);}(_0xc27f,0x85));var _0xfc27=function(_0x1fe7a4,_0x2484c4){_0x1fe7a4=_0x1fe7a4-0x0;var _0x3572ec=_0xc27f[_0x1fe7a4];return _0x3572ec;};'use strict';var multer=require(_0xfc27('0x0'));var util=require(_0xfc27('0x1'));var path=require(_0xfc27('0x2'));var timeout=require('connect-timeout');var express=require(_0xfc27('0x3'));var router=express[_0xfc27('0x4')]();var fs_extra=require(_0xfc27('0x5'));var auth=require(_0xfc27('0x6'));var interaction=require(_0xfc27('0x7'));var config=require(_0xfc27('0x8'));var controller=require(_0xfc27('0x9'));router[_0xfc27('0xa')]('/',auth[_0xfc27('0xb')](),controller[_0xfc27('0xc')]);router[_0xfc27('0xa')](_0xfc27('0xd'),auth[_0xfc27('0xb')](),controller['describe']);router[_0xfc27('0xa')](_0xfc27('0xe'),auth[_0xfc27('0xb')](),controller['show']);router['post']('/',auth['isAuthenticated'](),interaction[_0xfc27('0xf')](_0xfc27('0x10'),_0xfc27('0x11')),controller[_0xfc27('0x12')]);router[_0xfc27('0x13')](_0xfc27('0x14'),controller[_0xfc27('0x15')]);router[_0xfc27('0x16')](_0xfc27('0xe'),auth[_0xfc27('0xb')](),controller[_0xfc27('0x17')]);router[_0xfc27('0x16')](_0xfc27('0x18'),auth[_0xfc27('0xb')](),controller[_0xfc27('0x19')]);router[_0xfc27('0x16')](_0xfc27('0x1a'),auth['isAuthenticated'](),controller[_0xfc27('0x1b')]);router[_0xfc27('0x1c')](_0xfc27('0xe'),auth['isAuthenticated'](),controller['destroy']);module['exports']=router;