Built motion from commit f8768ebe.|2.6.15
[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 _0xf4b6=['status','put','/:id/accept','/:id/reject','exports','multer','path','connect-timeout','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/describe','describe','/:id','smsmessage:create','create','post'];(function(_0xaa0309,_0x1c8008){var _0x5de7ce=function(_0x3aa6ae){while(--_0x3aa6ae){_0xaa0309['push'](_0xaa0309['shift']());}};_0x5de7ce(++_0x1c8008);}(_0xf4b6,0x1a9));var _0x6f4b=function(_0x5c1d4b,_0x4dd17c){_0x5c1d4b=_0x5c1d4b-0x0;var _0x1b3c5b=_0xf4b6[_0x5c1d4b];return _0x1b3c5b;};'use strict';var multer=require(_0x6f4b('0x0'));var util=require('util');var path=require(_0x6f4b('0x1'));var timeout=require(_0x6f4b('0x2'));var express=require('express');var router=express['Router']();var fs_extra=require(_0x6f4b('0x3'));var auth=require(_0x6f4b('0x4'));var interaction=require(_0x6f4b('0x5'));var config=require(_0x6f4b('0x6'));var controller=require('./smsMessage.controller');router[_0x6f4b('0x7')]('/',auth[_0x6f4b('0x8')](),controller[_0x6f4b('0x9')]);router[_0x6f4b('0x7')](_0x6f4b('0xa'),auth['isAuthenticated'](),controller[_0x6f4b('0xb')]);router[_0x6f4b('0x7')](_0x6f4b('0xc'),auth['isAuthenticated'](),controller['show']);router['post']('/',auth[_0x6f4b('0x8')](),interaction['tracked']('sms',_0x6f4b('0xd')),controller[_0x6f4b('0xe')]);router[_0x6f4b('0xf')]('/:id/status',controller[_0x6f4b('0x10')]);router['put'](_0x6f4b('0xc'),auth['isAuthenticated'](),controller['update']);router[_0x6f4b('0x11')](_0x6f4b('0x12'),auth[_0x6f4b('0x8')](),controller['accept']);router[_0x6f4b('0x11')](_0x6f4b('0x13'),auth[_0x6f4b('0x8')](),controller['reject']);router['delete'](_0x6f4b('0xc'),auth[_0x6f4b('0x8')](),controller['destroy']);module[_0x6f4b('0x14')]=router;