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