2f21634d369b2c299057ab81ae0c57bfd859bf14
[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 _0x3eef=['Tags','GetDeskAccount','../../client','getDeskAccounts','Request','name','username','password','authType','type','DeskConfiguration','Configurations','Subjects','content','variableName','Variable','DeskField','Descriptions','key','keyType','keyContent','nameField','Tag'];(function(_0x348681,_0x486a1d){var _0x30d4b7=function(_0x4b6cb1){while(--_0x4b6cb1){_0x348681['push'](_0x348681['shift']());}};_0x30d4b7(++_0x486a1d);}(_0x3eef,0xba));var _0xf3ee=function(_0x41155d,_0x18df2c){_0x41155d=_0x41155d-0x0;var _0x18025a=_0x3eef[_0x41155d];return _0x18025a;};'use strict';var client=require(_0xf3ee('0x0'));exports[_0xf3ee('0x1')]=function(){return function(_0x4854e1){return client[_0xf3ee('0x2')]('GetDeskAccount',{'options':{'raw':![],'attributes':['id',_0xf3ee('0x3'),'description',_0xf3ee('0x4'),_0xf3ee('0x5'),'remoteUri',_0xf3ee('0x6'),_0xf3ee('0x7'),'serverUrl'],'include':[{'model':_0xf3ee('0x8'),'as':_0xf3ee('0x9'),'attributes':['id',_0xf3ee('0x3')],'include':[{'model':'DeskField','as':_0xf3ee('0xa'),'attributes':['id',_0xf3ee('0x7'),_0xf3ee('0xb'),_0xf3ee('0xc')],'include':[{'model':_0xf3ee('0xd'),'as':_0xf3ee('0xd'),'attributes':['id','name']}]},{'model':_0xf3ee('0xe'),'as':_0xf3ee('0xf'),'attributes':['id',_0xf3ee('0x7'),'content',_0xf3ee('0x10'),_0xf3ee('0x11'),_0xf3ee('0x12'),_0xf3ee('0xc')],'include':[{'model':_0xf3ee('0xd'),'as':_0xf3ee('0xd'),'attributes':['id',_0xf3ee('0x3')]}]},{'model':_0xf3ee('0xe'),'as':'Fields','attributes':['id',_0xf3ee('0x7'),_0xf3ee('0xb'),'idField',_0xf3ee('0x13'),'customField',_0xf3ee('0xc')],'include':[{'model':_0xf3ee('0xd'),'as':_0xf3ee('0xd'),'attributes':['id',_0xf3ee('0x3')]}]},{'model':_0xf3ee('0x14'),'as':_0xf3ee('0x15'),'attributes':['id',_0xf3ee('0x3')]}]}]},'log':_0xf3ee('0x16')});};};