Built motion from commit ddca4d0d.|2.5.47
[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 _0xbe79=['/:id/status','status','put','update','/:id/accept','accept','/:id/reject','delete','destroy','exports','multer','path','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./smsMessage.controller','isAuthenticated','index','get','/describe','describe','/:id','show','post','tracked','sms'];(function(_0x4565bf,_0x5ad9d6){var _0x5610ba=function(_0x170988){while(--_0x170988){_0x4565bf['push'](_0x4565bf['shift']());}};_0x5610ba(++_0x5ad9d6);}(_0xbe79,0x1e6));var _0x9be7=function(_0x55a97f,_0x483394){_0x55a97f=_0x55a97f-0x0;var _0x31ba32=_0xbe79[_0x55a97f];return _0x31ba32;};'use strict';var multer=require(_0x9be7('0x0'));var util=require('util');var path=require(_0x9be7('0x1'));var timeout=require('connect-timeout');var express=require(_0x9be7('0x2'));var router=express[_0x9be7('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x9be7('0x4'));var interaction=require(_0x9be7('0x5'));var config=require(_0x9be7('0x6'));var controller=require(_0x9be7('0x7'));router['get']('/',auth[_0x9be7('0x8')](),controller[_0x9be7('0x9')]);router[_0x9be7('0xa')](_0x9be7('0xb'),auth[_0x9be7('0x8')](),controller[_0x9be7('0xc')]);router[_0x9be7('0xa')](_0x9be7('0xd'),auth[_0x9be7('0x8')](),controller[_0x9be7('0xe')]);router[_0x9be7('0xf')]('/',auth['isAuthenticated'](),interaction[_0x9be7('0x10')](_0x9be7('0x11'),'smsmessage:create'),controller['create']);router[_0x9be7('0xf')](_0x9be7('0x12'),controller[_0x9be7('0x13')]);router[_0x9be7('0x14')](_0x9be7('0xd'),auth['isAuthenticated'](),controller[_0x9be7('0x15')]);router['put'](_0x9be7('0x16'),auth[_0x9be7('0x8')](),controller[_0x9be7('0x17')]);router[_0x9be7('0x14')](_0x9be7('0x18'),auth[_0x9be7('0x8')](),controller['reject']);router[_0x9be7('0x19')](_0x9be7('0xd'),auth[_0x9be7('0x8')](),controller[_0x9be7('0x1a')]);module[_0x9be7('0x1b')]=router;