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