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 _0x04b7=['isAuthenticated','describe','/:id','post','tracked','sms','/:id/status','status','put','update','/:id/accept','accept','/:id/reject','reject','delete','multer','util','path','connect-timeout','express','Router','../../components/auth/service','index','get','/describe'];(function(_0x4427b0,_0x473192){var _0x23faf2=function(_0x3e7276){while(--_0x3e7276){_0x4427b0['push'](_0x4427b0['shift']());}};_0x23faf2(++_0x473192);}(_0x04b7,0xf0));var _0x704b=function(_0x34a8c8,_0x31e259){_0x34a8c8=_0x34a8c8-0x0;var _0x1fe6e5=_0x04b7[_0x34a8c8];return _0x1fe6e5;};'use strict';var multer=require(_0x704b('0x0'));var util=require(_0x704b('0x1'));var path=require(_0x704b('0x2'));var timeout=require(_0x704b('0x3'));var express=require(_0x704b('0x4'));var router=express[_0x704b('0x5')]();var auth=require(_0x704b('0x6'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require('./smsMessage.controller');router['get']('/',auth['isAuthenticated'](),controller[_0x704b('0x7')]);router[_0x704b('0x8')](_0x704b('0x9'),auth[_0x704b('0xa')](),controller[_0x704b('0xb')]);router[_0x704b('0x8')](_0x704b('0xc'),auth[_0x704b('0xa')](),controller['show']);router[_0x704b('0xd')]('/',auth[_0x704b('0xa')](),interaction[_0x704b('0xe')](_0x704b('0xf'),'smsmessage:create'),controller['create']);router['post'](_0x704b('0x10'),controller[_0x704b('0x11')]);router[_0x704b('0x12')]('/:id',auth[_0x704b('0xa')](),controller[_0x704b('0x13')]);router['put'](_0x704b('0x14'),auth['isAuthenticated'](),controller[_0x704b('0x15')]);router[_0x704b('0x12')](_0x704b('0x16'),auth['isAuthenticated'](),controller[_0x704b('0x17')]);router[_0x704b('0x18')](_0x704b('0xc'),auth[_0x704b('0xa')](),controller['destroy']);module['exports']=router;