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