db8ca438fdc2e7aa2ae37aff32e5b3b2bd76f79a
[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 _0x8a06=['isAuthenticated','/describe','describe','/:id','show','post','tracked','sms','smsmessage:create','create','/:id/status','status','put','update','/:id/accept','accept','reject','delete','exports','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','./smsMessage.controller','get'];(function(_0x1899ae,_0x5b5ad6){var _0x243c83=function(_0x3688e5){while(--_0x3688e5){_0x1899ae['push'](_0x1899ae['shift']());}};_0x243c83(++_0x5b5ad6);}(_0x8a06,0xbb));var _0x68a0=function(_0x8c6164,_0x1dc7db){_0x8c6164=_0x8c6164-0x0;var _0x1ca172=_0x8a06[_0x8c6164];return _0x1ca172;};'use strict';var multer=require('multer');var util=require(_0x68a0('0x0'));var path=require(_0x68a0('0x1'));var timeout=require(_0x68a0('0x2'));var express=require(_0x68a0('0x3'));var router=express[_0x68a0('0x4')]();var auth=require(_0x68a0('0x5'));var interaction=require(_0x68a0('0x6'));var config=require('../../config/environment');var controller=require(_0x68a0('0x7'));router[_0x68a0('0x8')]('/',auth[_0x68a0('0x9')](),controller['index']);router[_0x68a0('0x8')](_0x68a0('0xa'),auth[_0x68a0('0x9')](),controller[_0x68a0('0xb')]);router['get'](_0x68a0('0xc'),auth['isAuthenticated'](),controller[_0x68a0('0xd')]);router[_0x68a0('0xe')]('/',auth[_0x68a0('0x9')](),interaction[_0x68a0('0xf')](_0x68a0('0x10'),_0x68a0('0x11')),controller[_0x68a0('0x12')]);router[_0x68a0('0xe')](_0x68a0('0x13'),controller[_0x68a0('0x14')]);router[_0x68a0('0x15')](_0x68a0('0xc'),auth['isAuthenticated'](),controller[_0x68a0('0x16')]);router[_0x68a0('0x15')](_0x68a0('0x17'),auth['isAuthenticated'](),controller[_0x68a0('0x18')]);router[_0x68a0('0x15')]('/:id/reject',auth[_0x68a0('0x9')](),controller[_0x68a0('0x19')]);router[_0x68a0('0x1a')](_0x68a0('0xc'),auth[_0x68a0('0x9')](),controller['destroy']);module[_0x68a0('0x1b')]=router;