Built motion from commit 52c8a02d.|2.6.29
[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 _0x536f=['../../components/auth/service','../../components/interaction/service','./smsMessage.controller','isAuthenticated','index','get','describe','/:id','tracked','create','post','/:id/status','status','put','/:id/accept','accept','/:id/reject','reject','delete','destroy','multer','Router','fs-extra'];(function(_0x42cae2,_0x284ef8){var _0x5f256f=function(_0x41abc8){while(--_0x41abc8){_0x42cae2['push'](_0x42cae2['shift']());}};_0x5f256f(++_0x284ef8);}(_0x536f,0x70));var _0xf536=function(_0x321bb2,_0x202794){_0x321bb2=_0x321bb2-0x0;var _0x9c12ed=_0x536f[_0x321bb2];return _0x9c12ed;};'use strict';var multer=require(_0xf536('0x0'));var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express[_0xf536('0x1')]();var fs_extra=require(_0xf536('0x2'));var auth=require(_0xf536('0x3'));var interaction=require(_0xf536('0x4'));var config=require('../../config/environment');var controller=require(_0xf536('0x5'));router['get']('/',auth[_0xf536('0x6')](),controller[_0xf536('0x7')]);router[_0xf536('0x8')]('/describe',auth['isAuthenticated'](),controller[_0xf536('0x9')]);router[_0xf536('0x8')](_0xf536('0xa'),auth[_0xf536('0x6')](),controller['show']);router['post']('/',auth[_0xf536('0x6')](),interaction[_0xf536('0xb')]('sms','smsmessage:create'),controller[_0xf536('0xc')]);router[_0xf536('0xd')](_0xf536('0xe'),controller[_0xf536('0xf')]);router[_0xf536('0x10')]('/:id',auth[_0xf536('0x6')](),controller['update']);router[_0xf536('0x10')](_0xf536('0x11'),auth[_0xf536('0x6')](),controller[_0xf536('0x12')]);router[_0xf536('0x10')](_0xf536('0x13'),auth[_0xf536('0x6')](),controller[_0xf536('0x14')]);router[_0xf536('0x15')](_0xf536('0xa'),auth[_0xf536('0x6')](),controller[_0xf536('0x16')]);module['exports']=router;