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