428191697cbc1b38f3d749cec0de799a217c3d53
[motion2.git] / server / services / ami / rpc / integrations / desk.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 _0x5de0=['GetDeskAccount','name','description','username','password','remoteUri','authType','serverUrl','Configurations','type','content','variableName','Variable','DeskField','Descriptions','key','keyContent','Fields','idField','nameField','customField','Tags','Request'];(function(_0x40f726,_0xdcd7c0){var _0x47042a=function(_0x3e3139){while(--_0x3e3139){_0x40f726['push'](_0x40f726['shift']());}};_0x47042a(++_0xdcd7c0);}(_0x5de0,0xb7));var _0x05de=function(_0x1f4801,_0x9d2f16){_0x1f4801=_0x1f4801-0x0;var _0x357c0b=_0x5de0[_0x1f4801];return _0x357c0b;};'use strict';var client=require('../../client');exports['getDeskAccounts']=function(){return function(_0x4abca4){return client[_0x05de('0x0')](_0x05de('0x1'),{'options':{'raw':![],'attributes':['id',_0x05de('0x2'),_0x05de('0x3'),_0x05de('0x4'),_0x05de('0x5'),_0x05de('0x6'),_0x05de('0x7'),'type',_0x05de('0x8')],'include':[{'model':'DeskConfiguration','as':_0x05de('0x9'),'attributes':['id',_0x05de('0x2')],'include':[{'model':'DeskField','as':'Subjects','attributes':['id',_0x05de('0xa'),_0x05de('0xb'),_0x05de('0xc')],'include':[{'model':_0x05de('0xd'),'as':'Variable','attributes':['id',_0x05de('0x2')]}]},{'model':_0x05de('0xe'),'as':_0x05de('0xf'),'attributes':['id','type',_0x05de('0xb'),_0x05de('0x10'),'keyType',_0x05de('0x11'),_0x05de('0xc')],'include':[{'model':_0x05de('0xd'),'as':_0x05de('0xd'),'attributes':['id',_0x05de('0x2')]}]},{'model':_0x05de('0xe'),'as':_0x05de('0x12'),'attributes':['id','type',_0x05de('0xb'),_0x05de('0x13'),_0x05de('0x14'),_0x05de('0x15'),_0x05de('0xc')],'include':[{'model':'Variable','as':_0x05de('0xd'),'attributes':['id','name']}]},{'model':'Tag','as':_0x05de('0x16'),'attributes':['id','name']}]}]},'log':_0x05de('0x1')});};};