e2137028e058e3757b6cf7ae69225bdb90da1947
[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 _0x046a=['/:id/status','status','update','/:id/accept','accept','put','/:id/reject','reject','delete','destroy','multer','path','connect-timeout','express','Router','./smsMessage.controller','get','isAuthenticated','index','/describe','describe','/:id','show','post','tracked','sms','smsmessage:create','create'];(function(_0x85031d,_0x46eb8f){var _0x3eda33=function(_0x459fa2){while(--_0x459fa2){_0x85031d['push'](_0x85031d['shift']());}};_0x3eda33(++_0x46eb8f);}(_0x046a,0x122));var _0xa046=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0x046a[_0x14add3];return _0x4a174f;};'use strict';var multer=require(_0xa046('0x0'));var util=require('util');var path=require(_0xa046('0x1'));var timeout=require(_0xa046('0x2'));var express=require(_0xa046('0x3'));var router=express[_0xa046('0x4')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0xa046('0x5'));router[_0xa046('0x6')]('/',auth[_0xa046('0x7')](),controller[_0xa046('0x8')]);router['get'](_0xa046('0x9'),auth[_0xa046('0x7')](),controller[_0xa046('0xa')]);router['get'](_0xa046('0xb'),auth[_0xa046('0x7')](),controller[_0xa046('0xc')]);router[_0xa046('0xd')]('/',auth['isAuthenticated'](),interaction[_0xa046('0xe')](_0xa046('0xf'),_0xa046('0x10')),controller[_0xa046('0x11')]);router[_0xa046('0xd')](_0xa046('0x12'),controller[_0xa046('0x13')]);router['put'](_0xa046('0xb'),auth[_0xa046('0x7')](),controller[_0xa046('0x14')]);router['put'](_0xa046('0x15'),auth[_0xa046('0x7')](),controller[_0xa046('0x16')]);router[_0xa046('0x17')](_0xa046('0x18'),auth[_0xa046('0x7')](),controller[_0xa046('0x19')]);router[_0xa046('0x1a')]('/:id',auth['isAuthenticated'](),controller[_0xa046('0x1b')]);module['exports']=router;