Built motion from commit 775e2a94.|2.6.3
[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 _0x616a=['tracked','sms','smsmessage:create','status','update','/:id/accept','put','reject','delete','exports','multer','util','path','connect-timeout','express','fs-extra','../../components/interaction/service','../../config/environment','./smsMessage.controller','isAuthenticated','index','get','describe','/:id','post'];(function(_0x321bb2,_0x202794){var _0x9c12ed=function(_0x263dd3){while(--_0x263dd3){_0x321bb2['push'](_0x321bb2['shift']());}};_0x9c12ed(++_0x202794);}(_0x616a,0x11d));var _0xa616=function(_0x2720ea,_0x35de36){_0x2720ea=_0x2720ea-0x0;var _0x57b1a7=_0x616a[_0x2720ea];return _0x57b1a7;};'use strict';var multer=require(_0xa616('0x0'));var util=require(_0xa616('0x1'));var path=require(_0xa616('0x2'));var timeout=require(_0xa616('0x3'));var express=require(_0xa616('0x4'));var router=express['Router']();var fs_extra=require(_0xa616('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0xa616('0x6'));var config=require(_0xa616('0x7'));var controller=require(_0xa616('0x8'));router['get']('/',auth[_0xa616('0x9')](),controller[_0xa616('0xa')]);router[_0xa616('0xb')]('/describe',auth[_0xa616('0x9')](),controller[_0xa616('0xc')]);router[_0xa616('0xb')](_0xa616('0xd'),auth[_0xa616('0x9')](),controller['show']);router[_0xa616('0xe')]('/',auth['isAuthenticated'](),interaction[_0xa616('0xf')](_0xa616('0x10'),_0xa616('0x11')),controller['create']);router['post']('/:id/status',controller[_0xa616('0x12')]);router['put'](_0xa616('0xd'),auth['isAuthenticated'](),controller[_0xa616('0x13')]);router['put'](_0xa616('0x14'),auth[_0xa616('0x9')](),controller['accept']);router[_0xa616('0x15')]('/:id/reject',auth[_0xa616('0x9')](),controller[_0xa616('0x16')]);router[_0xa616('0x17')](_0xa616('0xd'),auth['isAuthenticated'](),controller['destroy']);module[_0xa616('0x18')]=router;