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