1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0xfbee=['/:id','show','post','tracked','sms','smsmessage:create','create','status','update','put','/:id/accept','accept','/:id/reject','reject','destroy','multer','util','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','isAuthenticated','index','get','/describe','describe'];(function(_0xc57f7b,_0x245c94){var _0x1a6cb2=function(_0x3049ff){while(--_0x3049ff){_0xc57f7b['push'](_0xc57f7b['shift']());}};_0x1a6cb2(++_0x245c94);}(_0xfbee,0xb1));var _0xefbe=function(_0x14c552,_0x9a0dee){_0x14c552=_0x14c552-0x0;var _0x29dbef=_0xfbee[_0x14c552];return _0x29dbef;};'use strict';var multer=require(_0xefbe('0x0'));var util=require(_0xefbe('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0xefbe('0x2'));var router=express[_0xefbe('0x3')]();var auth=require(_0xefbe('0x4'));var interaction=require(_0xefbe('0x5'));var config=require(_0xefbe('0x6'));var controller=require('./smsMessage.controller');router['get']('/',auth[_0xefbe('0x7')](),controller[_0xefbe('0x8')]);router[_0xefbe('0x9')](_0xefbe('0xa'),auth[_0xefbe('0x7')](),controller[_0xefbe('0xb')]);router[_0xefbe('0x9')](_0xefbe('0xc'),auth[_0xefbe('0x7')](),controller[_0xefbe('0xd')]);router[_0xefbe('0xe')]('/',auth[_0xefbe('0x7')](),interaction[_0xefbe('0xf')](_0xefbe('0x10'),_0xefbe('0x11')),controller[_0xefbe('0x12')]);router[_0xefbe('0xe')]('/:id/status',controller[_0xefbe('0x13')]);router['put'](_0xefbe('0xc'),auth[_0xefbe('0x7')](),controller[_0xefbe('0x14')]);router[_0xefbe('0x15')](_0xefbe('0x16'),auth[_0xefbe('0x7')](),controller[_0xefbe('0x17')]);router[_0xefbe('0x15')](_0xefbe('0x18'),auth['isAuthenticated'](),controller[_0xefbe('0x19')]);router['delete'](_0xefbe('0xc'),auth[_0xefbe('0x7')](),controller[_0xefbe('0x1a')]);module['exports']=router;