Built motion from commit (unavailable).|2.5.4
[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 _0xb722=['addAgents','put','/:id','update','destroy','delete','removeDispositions','removeAnswers','exports','util','path','connect-timeout','Router','../../components/interaction/service','../../config/environment','./smsAccount.controller','get','/describe','isAuthenticated','describe','show','getDispositions','getAnswers','/:id/applications','statusGet','/:id/users','post','create','/:id/dispositions','/:id/canned_answers','addAnswer','/:id/notify','notify','addApplications','/:id/send','send','/:id/status','status'];(function(_0x102267,_0x1eabe8){var _0x2c07c5=function(_0x10e790){while(--_0x10e790){_0x102267['push'](_0x102267['shift']());}};_0x2c07c5(++_0x1eabe8);}(_0xb722,0x1d1));var _0x2b72=function(_0x5ca04d,_0x39e697){_0x5ca04d=_0x5ca04d-0x0;var _0x3a5dec=_0xb722[_0x5ca04d];return _0x3a5dec;};'use strict';var multer=require('multer');var util=require(_0x2b72('0x0'));var path=require(_0x2b72('0x1'));var timeout=require(_0x2b72('0x2'));var express=require('express');var router=express[_0x2b72('0x3')]();var auth=require('../../components/auth/service');var interaction=require(_0x2b72('0x4'));var config=require(_0x2b72('0x5'));var controller=require(_0x2b72('0x6'));router[_0x2b72('0x7')]('/',auth['isAuthenticated'](),controller['index']);router[_0x2b72('0x7')](_0x2b72('0x8'),auth[_0x2b72('0x9')](),controller[_0x2b72('0xa')]);router[_0x2b72('0x7')]('/:id',auth[_0x2b72('0x9')](),controller[_0x2b72('0xb')]);router[_0x2b72('0x7')]('/:id/dispositions',auth[_0x2b72('0x9')](),controller[_0x2b72('0xc')]);router['get']('/:id/canned_answers',auth['isAuthenticated'](),controller[_0x2b72('0xd')]);router[_0x2b72('0x7')](_0x2b72('0xe'),auth['isAuthenticated'](),controller['getApplications']);router[_0x2b72('0x7')]('/:id/interactions',auth['isAuthenticated'](),controller['getInteractions']);router['get']('/:id/status',controller[_0x2b72('0xf')]);router[_0x2b72('0x7')](_0x2b72('0x10'),auth[_0x2b72('0x9')](),controller['getAgents']);router[_0x2b72('0x11')]('/',auth[_0x2b72('0x9')](),controller[_0x2b72('0x12')]);router[_0x2b72('0x11')](_0x2b72('0x13'),auth[_0x2b72('0x9')](),controller['addDisposition']);router[_0x2b72('0x11')](_0x2b72('0x14'),auth[_0x2b72('0x9')](),controller[_0x2b72('0x15')]);router[_0x2b72('0x11')](_0x2b72('0x16'),controller[_0x2b72('0x17')]);router[_0x2b72('0x11')]('/:id/applications',auth[_0x2b72('0x9')](),controller[_0x2b72('0x18')]);router[_0x2b72('0x11')](_0x2b72('0x19'),auth[_0x2b72('0x9')](),controller[_0x2b72('0x1a')]);router[_0x2b72('0x11')](_0x2b72('0x1b'),controller[_0x2b72('0x1c')]);router['post'](_0x2b72('0x10'),auth[_0x2b72('0x9')](),controller[_0x2b72('0x1d')]);router[_0x2b72('0x1e')](_0x2b72('0x1f'),auth[_0x2b72('0x9')](),controller[_0x2b72('0x20')]);router['delete']('/:id',auth[_0x2b72('0x9')](),controller[_0x2b72('0x21')]);router[_0x2b72('0x22')](_0x2b72('0x13'),auth[_0x2b72('0x9')](),controller[_0x2b72('0x23')]);router[_0x2b72('0x22')](_0x2b72('0x14'),auth[_0x2b72('0x9')](),controller[_0x2b72('0x24')]);router[_0x2b72('0x22')](_0x2b72('0x10'),auth[_0x2b72('0x9')](),controller['removeAgents']);module[_0x2b72('0x25')]=router;