d09b5beaecea2a509d332445aeabce5274649a0f
[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 _0x094b=['exports','multer','path','connect-timeout','express','Router','./smsMessage.controller','get','isAuthenticated','index','/:id','post','tracked','sms','create','/:id/status','put','update','accept','/:id/reject','reject','delete'];(function(_0x40a045,_0x516f0e){var _0x1a687c=function(_0x48c9fe){while(--_0x48c9fe){_0x40a045['push'](_0x40a045['shift']());}};_0x1a687c(++_0x516f0e);}(_0x094b,0x11f));var _0xb094=function(_0x490cd3,_0x97d5ee){_0x490cd3=_0x490cd3-0x0;var _0x3320d7=_0x094b[_0x490cd3];return _0x3320d7;};'use strict';var multer=require(_0xb094('0x0'));var util=require('util');var path=require(_0xb094('0x1'));var timeout=require(_0xb094('0x2'));var express=require(_0xb094('0x3'));var router=express[_0xb094('0x4')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0xb094('0x5'));router[_0xb094('0x6')]('/',auth[_0xb094('0x7')](),controller[_0xb094('0x8')]);router[_0xb094('0x6')]('/describe',auth[_0xb094('0x7')](),controller['describe']);router['get'](_0xb094('0x9'),auth['isAuthenticated'](),controller['show']);router[_0xb094('0xa')]('/',auth[_0xb094('0x7')](),interaction[_0xb094('0xb')](_0xb094('0xc'),'smsmessage:create'),controller[_0xb094('0xd')]);router[_0xb094('0xa')](_0xb094('0xe'),controller['status']);router[_0xb094('0xf')](_0xb094('0x9'),auth['isAuthenticated'](),controller[_0xb094('0x10')]);router[_0xb094('0xf')]('/:id/accept',auth['isAuthenticated'](),controller[_0xb094('0x11')]);router['put'](_0xb094('0x12'),auth[_0xb094('0x7')](),controller[_0xb094('0x13')]);router[_0xb094('0x14')](_0xb094('0x9'),auth[_0xb094('0x7')](),controller['destroy']);module[_0xb094('0x15')]=router;