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