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