Built motion from commit 4d4d9a88.|2.6.26
[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 _0x8b78=['destroy','exports','multer','path','express','Router','fs-extra','../../components/auth/service','../../config/environment','get','isAuthenticated','index','/describe','describe','/:id','post','tracked','sms','create','/:id/status','put','/:id/accept','reject','delete'];(function(_0x1064bc,_0x206f12){var _0x5edc45=function(_0x5087bd){while(--_0x5087bd){_0x1064bc['push'](_0x1064bc['shift']());}};_0x5edc45(++_0x206f12);}(_0x8b78,0xaa));var _0x88b7=function(_0xa2ea9b,_0x107abe){_0xa2ea9b=_0xa2ea9b-0x0;var _0x12119b=_0x8b78[_0xa2ea9b];return _0x12119b;};'use strict';var multer=require(_0x88b7('0x0'));var util=require('util');var path=require(_0x88b7('0x1'));var timeout=require('connect-timeout');var express=require(_0x88b7('0x2'));var router=express[_0x88b7('0x3')]();var fs_extra=require(_0x88b7('0x4'));var auth=require(_0x88b7('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x88b7('0x6'));var controller=require('./smsMessage.controller');router[_0x88b7('0x7')]('/',auth[_0x88b7('0x8')](),controller[_0x88b7('0x9')]);router['get'](_0x88b7('0xa'),auth[_0x88b7('0x8')](),controller[_0x88b7('0xb')]);router['get'](_0x88b7('0xc'),auth[_0x88b7('0x8')](),controller['show']);router[_0x88b7('0xd')]('/',auth[_0x88b7('0x8')](),interaction[_0x88b7('0xe')](_0x88b7('0xf'),'smsmessage:create'),controller[_0x88b7('0x10')]);router['post'](_0x88b7('0x11'),controller['status']);router[_0x88b7('0x12')](_0x88b7('0xc'),auth['isAuthenticated'](),controller['update']);router['put'](_0x88b7('0x13'),auth[_0x88b7('0x8')](),controller['accept']);router[_0x88b7('0x12')]('/:id/reject',auth['isAuthenticated'](),controller[_0x88b7('0x14')]);router[_0x88b7('0x15')]('/:id',auth[_0x88b7('0x8')](),controller[_0x88b7('0x16')]);module[_0x88b7('0x17')]=router;