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