Built motion from commit (unavailable).|2.4.18
[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 _0x11a6=['/:id/reject','reject','delete','destroy','exports','multer','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./smsMessage.controller','get','index','/describe','isAuthenticated','show','sms','smsmessage:create','create','post','/:id','put','accept'];(function(_0x4c5ba5,_0x513b37){var _0xaa8afe=function(_0x14260f){while(--_0x14260f){_0x4c5ba5['push'](_0x4c5ba5['shift']());}};_0xaa8afe(++_0x513b37);}(_0x11a6,0x1c7));var _0x611a=function(_0x2f684a,_0x122a29){_0x2f684a=_0x2f684a-0x0;var _0x5b1afe=_0x11a6[_0x2f684a];return _0x5b1afe;};'use strict';var multer=require(_0x611a('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x611a('0x1'));var express=require(_0x611a('0x2'));var router=express[_0x611a('0x3')]();var auth=require(_0x611a('0x4'));var interaction=require(_0x611a('0x5'));var config=require(_0x611a('0x6'));var controller=require(_0x611a('0x7'));router[_0x611a('0x8')]('/',auth['isAuthenticated'](),controller[_0x611a('0x9')]);router[_0x611a('0x8')](_0x611a('0xa'),auth[_0x611a('0xb')](),controller['describe']);router[_0x611a('0x8')]('/:id',auth[_0x611a('0xb')](),controller[_0x611a('0xc')]);router['post']('/',auth[_0x611a('0xb')](),interaction['tracked'](_0x611a('0xd'),_0x611a('0xe')),controller[_0x611a('0xf')]);router[_0x611a('0x10')]('/:id/status',controller['status']);router['put'](_0x611a('0x11'),auth[_0x611a('0xb')](),controller['update']);router[_0x611a('0x12')]('/:id/accept',auth[_0x611a('0xb')](),controller[_0x611a('0x13')]);router[_0x611a('0x12')](_0x611a('0x14'),auth['isAuthenticated'](),controller[_0x611a('0x15')]);router[_0x611a('0x16')](_0x611a('0x11'),auth['isAuthenticated'](),controller[_0x611a('0x17')]);module[_0x611a('0x18')]=router;