4d504fd3b13545535e4e4435018472554af5a16e
[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 _0x22f3=['../../config/environment','get','index','/describe','describe','/:id','isAuthenticated','show','post','tracked','sms','smsmessage:create','create','/:id/status','status','put','update','accept','/:id/reject','reject','delete','destroy','multer','util','path','connect-timeout','express','fs-extra','../../components/interaction/service'];(function(_0x289e47,_0x236017){var _0xcd70a2=function(_0x3b2087){while(--_0x3b2087){_0x289e47['push'](_0x289e47['shift']());}};_0xcd70a2(++_0x236017);}(_0x22f3,0x155));var _0x322f=function(_0x574b4d,_0x3b6ffb){_0x574b4d=_0x574b4d-0x0;var _0x467a23=_0x22f3[_0x574b4d];return _0x467a23;};'use strict';var multer=require(_0x322f('0x0'));var util=require(_0x322f('0x1'));var path=require(_0x322f('0x2'));var timeout=require(_0x322f('0x3'));var express=require(_0x322f('0x4'));var router=express['Router']();var fs_extra=require(_0x322f('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x322f('0x6'));var config=require(_0x322f('0x7'));var controller=require('./smsMessage.controller');router[_0x322f('0x8')]('/',auth['isAuthenticated'](),controller[_0x322f('0x9')]);router['get'](_0x322f('0xa'),auth['isAuthenticated'](),controller[_0x322f('0xb')]);router[_0x322f('0x8')](_0x322f('0xc'),auth[_0x322f('0xd')](),controller[_0x322f('0xe')]);router[_0x322f('0xf')]('/',auth[_0x322f('0xd')](),interaction[_0x322f('0x10')](_0x322f('0x11'),_0x322f('0x12')),controller[_0x322f('0x13')]);router['post'](_0x322f('0x14'),controller[_0x322f('0x15')]);router[_0x322f('0x16')](_0x322f('0xc'),auth[_0x322f('0xd')](),controller[_0x322f('0x17')]);router[_0x322f('0x16')]('/:id/accept',auth[_0x322f('0xd')](),controller[_0x322f('0x18')]);router[_0x322f('0x16')](_0x322f('0x19'),auth[_0x322f('0xd')](),controller[_0x322f('0x1a')]);router[_0x322f('0x1b')](_0x322f('0xc'),auth['isAuthenticated'](),controller[_0x322f('0x1c')]);module['exports']=router;