Built motion from commit 85328c08.|2.5.50
[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 _0xa3b9=['reject','delete','exports','multer','util','path','connect-timeout','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','index','/describe','isAuthenticated','describe','/:id','show','tracked','smsmessage:create','post','status','put','update','accept','/:id/reject'];(function(_0xf6433f,_0x23cf95){var _0x5085bf=function(_0x3d69fd){while(--_0x3d69fd){_0xf6433f['push'](_0xf6433f['shift']());}};_0x5085bf(++_0x23cf95);}(_0xa3b9,0x6b));var _0x9a3b=function(_0x60a3cc,_0x5cb5e4){_0x60a3cc=_0x60a3cc-0x0;var _0x57db5e=_0xa3b9[_0x60a3cc];return _0x57db5e;};'use strict';var multer=require(_0x9a3b('0x0'));var util=require(_0x9a3b('0x1'));var path=require(_0x9a3b('0x2'));var timeout=require(_0x9a3b('0x3'));var express=require('express');var router=express['Router']();var fs_extra=require(_0x9a3b('0x4'));var auth=require(_0x9a3b('0x5'));var interaction=require(_0x9a3b('0x6'));var config=require(_0x9a3b('0x7'));var controller=require('./smsMessage.controller');router[_0x9a3b('0x8')]('/',auth['isAuthenticated'](),controller[_0x9a3b('0x9')]);router[_0x9a3b('0x8')](_0x9a3b('0xa'),auth[_0x9a3b('0xb')](),controller[_0x9a3b('0xc')]);router[_0x9a3b('0x8')](_0x9a3b('0xd'),auth[_0x9a3b('0xb')](),controller[_0x9a3b('0xe')]);router['post']('/',auth['isAuthenticated'](),interaction[_0x9a3b('0xf')]('sms',_0x9a3b('0x10')),controller['create']);router[_0x9a3b('0x11')]('/:id/status',controller[_0x9a3b('0x12')]);router[_0x9a3b('0x13')](_0x9a3b('0xd'),auth[_0x9a3b('0xb')](),controller[_0x9a3b('0x14')]);router['put']('/:id/accept',auth[_0x9a3b('0xb')](),controller[_0x9a3b('0x15')]);router[_0x9a3b('0x13')](_0x9a3b('0x16'),auth[_0x9a3b('0xb')](),controller[_0x9a3b('0x17')]);router[_0x9a3b('0x18')](_0x9a3b('0xd'),auth[_0x9a3b('0xb')](),controller['destroy']);module[_0x9a3b('0x19')]=router;