5a861852288f2d79ef28bd2f53e31b27c099e65c
[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 _0xfee8=['Descriptions','key','keyType','keyContent','idField','nameField','customField','Tag','Tags','../../client','getDeskAccounts','Request','GetDeskAccount','name','description','username','password','remoteUri','type','serverUrl','DeskField','Subjects','variableName','Variable'];(function(_0x1cf1a2,_0x3b390e){var _0x3efb16=function(_0xbf916e){while(--_0xbf916e){_0x1cf1a2['push'](_0x1cf1a2['shift']());}};_0x3efb16(++_0x3b390e);}(_0xfee8,0xf9));var _0x8fee=function(_0x458363,_0x1675db){_0x458363=_0x458363-0x0;var _0x4d0290=_0xfee8[_0x458363];return _0x4d0290;};'use strict';var client=require(_0x8fee('0x0'));exports[_0x8fee('0x1')]=function(){return function(_0x1b07a7){return client[_0x8fee('0x2')](_0x8fee('0x3'),{'options':{'raw':![],'attributes':['id',_0x8fee('0x4'),_0x8fee('0x5'),_0x8fee('0x6'),_0x8fee('0x7'),_0x8fee('0x8'),'authType',_0x8fee('0x9'),_0x8fee('0xa')],'include':[{'model':'DeskConfiguration','as':'Configurations','attributes':['id','name'],'include':[{'model':_0x8fee('0xb'),'as':_0x8fee('0xc'),'attributes':['id',_0x8fee('0x9'),'content',_0x8fee('0xd')],'include':[{'model':'Variable','as':_0x8fee('0xe'),'attributes':['id',_0x8fee('0x4')]}]},{'model':'DeskField','as':_0x8fee('0xf'),'attributes':['id',_0x8fee('0x9'),'content',_0x8fee('0x10'),_0x8fee('0x11'),_0x8fee('0x12'),_0x8fee('0xd')],'include':[{'model':_0x8fee('0xe'),'as':_0x8fee('0xe'),'attributes':['id',_0x8fee('0x4')]}]},{'model':_0x8fee('0xb'),'as':'Fields','attributes':['id',_0x8fee('0x9'),'content',_0x8fee('0x13'),_0x8fee('0x14'),_0x8fee('0x15'),_0x8fee('0xd')],'include':[{'model':_0x8fee('0xe'),'as':_0x8fee('0xe'),'attributes':['id',_0x8fee('0x4')]}]},{'model':_0x8fee('0x16'),'as':_0x8fee('0x17'),'attributes':['id',_0x8fee('0x4')]}]}]},'log':'GetDeskAccount'});};};