ae3b378b8b72a75e659e69384651f64ca292f27a
[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 _0xfa8c=['../../config/environment','./smsMessage.controller','isAuthenticated','get','/describe','describe','/:id','show','sms','smsmessage:create','post','/:id/status','status','put','update','/:id/accept','/:id/reject','reject','destroy','multer','util','path','connect-timeout','express','Router','../../components/auth/service'];(function(_0x402c9b,_0xb75c5){var _0x30a963=function(_0x51c7cd){while(--_0x51c7cd){_0x402c9b['push'](_0x402c9b['shift']());}};_0x30a963(++_0xb75c5);}(_0xfa8c,0x165));var _0xcfa8=function(_0x46d3e0,_0x4f9173){_0x46d3e0=_0x46d3e0-0x0;var _0x30a54d=_0xfa8c[_0x46d3e0];return _0x30a54d;};'use strict';var multer=require(_0xcfa8('0x0'));var util=require(_0xcfa8('0x1'));var path=require(_0xcfa8('0x2'));var timeout=require(_0xcfa8('0x3'));var express=require(_0xcfa8('0x4'));var router=express[_0xcfa8('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0xcfa8('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0xcfa8('0x7'));var controller=require(_0xcfa8('0x8'));router['get']('/',auth[_0xcfa8('0x9')](),controller['index']);router[_0xcfa8('0xa')](_0xcfa8('0xb'),auth['isAuthenticated'](),controller[_0xcfa8('0xc')]);router[_0xcfa8('0xa')](_0xcfa8('0xd'),auth['isAuthenticated'](),controller[_0xcfa8('0xe')]);router['post']('/',auth[_0xcfa8('0x9')](),interaction['tracked'](_0xcfa8('0xf'),_0xcfa8('0x10')),controller['create']);router[_0xcfa8('0x11')](_0xcfa8('0x12'),controller[_0xcfa8('0x13')]);router[_0xcfa8('0x14')](_0xcfa8('0xd'),auth[_0xcfa8('0x9')](),controller[_0xcfa8('0x15')]);router[_0xcfa8('0x14')](_0xcfa8('0x16'),auth['isAuthenticated'](),controller['accept']);router[_0xcfa8('0x14')](_0xcfa8('0x17'),auth['isAuthenticated'](),controller[_0xcfa8('0x18')]);router['delete'](_0xcfa8('0xd'),auth[_0xcfa8('0x9')](),controller[_0xcfa8('0x19')]);module['exports']=router;