b99618c5ab6cda24135df52c5596262f7b6ac9bf
[motion2.git] / server / api / smsAccount / 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 _0xfcc9=['./smsAccount.controller','get','index','isAuthenticated','describe','/:id','show','/:id/dispositions','/:id/canned_answers','/:id/applications','getApplications','/:id/interactions','getInteractions','statusGet','getAgents','post','addAnswer','notify','addApplications','/:id/send','send','status','/:id/users','addAgents','put','update','delete','destroy','removeDispositions','removeAnswers','removeAgents','exports','multer','util','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment'];(function(_0x4e3205,_0x4369bf){var _0x47e3a9=function(_0x3f6205){while(--_0x3f6205){_0x4e3205['push'](_0x4e3205['shift']());}};_0x47e3a9(++_0x4369bf);}(_0xfcc9,0x1cd));var _0x9fcc=function(_0x272d97,_0x3cb745){_0x272d97=_0x272d97-0x0;var _0x40fc01=_0xfcc9[_0x272d97];return _0x40fc01;};'use strict';var multer=require(_0x9fcc('0x0'));var util=require(_0x9fcc('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x9fcc('0x2'));var router=express['Router']();var fs_extra=require(_0x9fcc('0x3'));var auth=require(_0x9fcc('0x4'));var interaction=require(_0x9fcc('0x5'));var config=require(_0x9fcc('0x6'));var controller=require(_0x9fcc('0x7'));router[_0x9fcc('0x8')]('/',auth['isAuthenticated'](),controller[_0x9fcc('0x9')]);router['get']('/describe',auth[_0x9fcc('0xa')](),controller[_0x9fcc('0xb')]);router[_0x9fcc('0x8')](_0x9fcc('0xc'),auth[_0x9fcc('0xa')](),controller[_0x9fcc('0xd')]);router['get'](_0x9fcc('0xe'),auth['isAuthenticated'](),controller['getDispositions']);router['get'](_0x9fcc('0xf'),auth['isAuthenticated'](),controller['getAnswers']);router[_0x9fcc('0x8')](_0x9fcc('0x10'),auth[_0x9fcc('0xa')](),controller[_0x9fcc('0x11')]);router[_0x9fcc('0x8')](_0x9fcc('0x12'),auth['isAuthenticated'](),controller[_0x9fcc('0x13')]);router[_0x9fcc('0x8')]('/:id/status',controller[_0x9fcc('0x14')]);router[_0x9fcc('0x8')]('/:id/users',auth[_0x9fcc('0xa')](),controller[_0x9fcc('0x15')]);router['post']('/',auth[_0x9fcc('0xa')](),controller['create']);router[_0x9fcc('0x16')](_0x9fcc('0xe'),auth[_0x9fcc('0xa')](),controller['addDisposition']);router[_0x9fcc('0x16')](_0x9fcc('0xf'),auth[_0x9fcc('0xa')](),controller[_0x9fcc('0x17')]);router['post']('/:id/notify',controller[_0x9fcc('0x18')]);router['post'](_0x9fcc('0x10'),auth[_0x9fcc('0xa')](),controller[_0x9fcc('0x19')]);router[_0x9fcc('0x16')](_0x9fcc('0x1a'),auth[_0x9fcc('0xa')](),controller[_0x9fcc('0x1b')]);router[_0x9fcc('0x16')]('/:id/status',controller[_0x9fcc('0x1c')]);router['post'](_0x9fcc('0x1d'),auth[_0x9fcc('0xa')](),controller[_0x9fcc('0x1e')]);router[_0x9fcc('0x1f')](_0x9fcc('0xc'),auth[_0x9fcc('0xa')](),controller[_0x9fcc('0x20')]);router[_0x9fcc('0x21')](_0x9fcc('0xc'),auth[_0x9fcc('0xa')](),controller[_0x9fcc('0x22')]);router['delete']('/:id/dispositions',auth[_0x9fcc('0xa')](),controller[_0x9fcc('0x23')]);router[_0x9fcc('0x21')](_0x9fcc('0xf'),auth[_0x9fcc('0xa')](),controller[_0x9fcc('0x24')]);router[_0x9fcc('0x21')](_0x9fcc('0x1d'),auth[_0x9fcc('0xa')](),controller[_0x9fcc('0x25')]);module[_0x9fcc('0x26')]=router;