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 _0xdaf9=['../../components/auth/service','../../components/interaction/service','./smsMessage.controller','get','isAuthenticated','/describe','describe','/:id','show','post','tracked','sms','smsmessage:create','status','put','/:id/reject','reject','destroy','multer','util','path','express'];(function(_0x364f3d,_0x32d81d){var _0x248c05=function(_0x1c63db){while(--_0x1c63db){_0x364f3d['push'](_0x364f3d['shift']());}};_0x248c05(++_0x32d81d);}(_0xdaf9,0xac));var _0x9daf=function(_0x3e79de,_0xce06da){_0x3e79de=_0x3e79de-0x0;var _0x1244c8=_0xdaf9[_0x3e79de];return _0x1244c8;};'use strict';var multer=require(_0x9daf('0x0'));var util=require(_0x9daf('0x1'));var path=require(_0x9daf('0x2'));var timeout=require('connect-timeout');var express=require(_0x9daf('0x3'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0x9daf('0x4'));var interaction=require(_0x9daf('0x5'));var config=require('../../config/environment');var controller=require(_0x9daf('0x6'));router[_0x9daf('0x7')]('/',auth[_0x9daf('0x8')](),controller['index']);router[_0x9daf('0x7')](_0x9daf('0x9'),auth[_0x9daf('0x8')](),controller[_0x9daf('0xa')]);router[_0x9daf('0x7')](_0x9daf('0xb'),auth['isAuthenticated'](),controller[_0x9daf('0xc')]);router[_0x9daf('0xd')]('/',auth['isAuthenticated'](),interaction[_0x9daf('0xe')](_0x9daf('0xf'),_0x9daf('0x10')),controller['create']);router[_0x9daf('0xd')]('/:id/status',controller[_0x9daf('0x11')]);router[_0x9daf('0x12')](_0x9daf('0xb'),auth[_0x9daf('0x8')](),controller['update']);router[_0x9daf('0x12')]('/:id/accept',auth[_0x9daf('0x8')](),controller['accept']);router[_0x9daf('0x12')](_0x9daf('0x13'),auth[_0x9daf('0x8')](),controller[_0x9daf('0x14')]);router['delete'](_0x9daf('0xb'),auth[_0x9daf('0x8')](),controller[_0x9daf('0x15')]);module['exports']=router;