0049f5f36a650600217ba9906b61a73be1165a38
[motion2.git] / server / api / smsMessage / index.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0xa774=['put','update','/:id/accept','accept','exports','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','./smsMessage.controller','get','isAuthenticated','/describe','/:id','show','post','tracked','sms','smsmessage:create','status'];(function(_0x2305c2,_0x18fb84){var _0x41aae8=function(_0x12cf3b){while(--_0x12cf3b){_0x2305c2['push'](_0x2305c2['shift']());}};_0x41aae8(++_0x18fb84);}(_0xa774,0x194));var _0x4a77=function(_0x4b055c,_0x4b870b){_0x4b055c=_0x4b055c-0x0;var _0x4b62bb=_0xa774[_0x4b055c];return _0x4b62bb;};'use strict';var multer=require('multer');var util=require('util');var path=require('path');var timeout=require(_0x4a77('0x0'));var express=require(_0x4a77('0x1'));var router=express[_0x4a77('0x2')]();var auth=require(_0x4a77('0x3'));var interaction=require(_0x4a77('0x4'));var config=require('../../config/environment');var controller=require(_0x4a77('0x5'));router[_0x4a77('0x6')]('/',auth[_0x4a77('0x7')](),controller['index']);router[_0x4a77('0x6')](_0x4a77('0x8'),auth[_0x4a77('0x7')](),controller['describe']);router[_0x4a77('0x6')](_0x4a77('0x9'),auth[_0x4a77('0x7')](),controller[_0x4a77('0xa')]);router[_0x4a77('0xb')]('/',auth[_0x4a77('0x7')](),interaction[_0x4a77('0xc')](_0x4a77('0xd'),_0x4a77('0xe')),controller['create']);router[_0x4a77('0xb')]('/:id/status',controller[_0x4a77('0xf')]);router[_0x4a77('0x10')](_0x4a77('0x9'),auth[_0x4a77('0x7')](),controller[_0x4a77('0x11')]);router[_0x4a77('0x10')](_0x4a77('0x12'),auth['isAuthenticated'](),controller[_0x4a77('0x13')]);router[_0x4a77('0x10')]('/:id/reject',auth[_0x4a77('0x7')](),controller['reject']);router['delete']('/:id',auth[_0x4a77('0x7')](),controller['destroy']);module[_0x4a77('0x14')]=router;