5a735ae9747e01b8cd8d7e354b0b25d3202aa124
[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 _0x858a=['customField','Tag','Tags','../../client','getDeskAccounts','Request','GetDeskAccount','name','description','username','password','remoteUri','authType','type','DeskConfiguration','Configurations','DeskField','Subjects','content','variableName','Variable','Descriptions','keyType','keyContent','Fields','idField','nameField'];(function(_0x4e89fa,_0x416b29){var _0x3ad31c=function(_0xe79e3e){while(--_0xe79e3e){_0x4e89fa['push'](_0x4e89fa['shift']());}};_0x3ad31c(++_0x416b29);}(_0x858a,0x17d));var _0xa858=function(_0xa148b7,_0x2f3eb2){_0xa148b7=_0xa148b7-0x0;var _0x51efd3=_0x858a[_0xa148b7];return _0x51efd3;};'use strict';var client=require(_0xa858('0x0'));exports[_0xa858('0x1')]=function(){return function(_0x1844b0){return client[_0xa858('0x2')](_0xa858('0x3'),{'options':{'raw':![],'attributes':['id',_0xa858('0x4'),_0xa858('0x5'),_0xa858('0x6'),_0xa858('0x7'),_0xa858('0x8'),_0xa858('0x9'),_0xa858('0xa'),'serverUrl'],'include':[{'model':_0xa858('0xb'),'as':_0xa858('0xc'),'attributes':['id',_0xa858('0x4')],'include':[{'model':_0xa858('0xd'),'as':_0xa858('0xe'),'attributes':['id','type',_0xa858('0xf'),_0xa858('0x10')],'include':[{'model':'Variable','as':_0xa858('0x11'),'attributes':['id',_0xa858('0x4')]}]},{'model':_0xa858('0xd'),'as':_0xa858('0x12'),'attributes':['id',_0xa858('0xa'),'content','key',_0xa858('0x13'),_0xa858('0x14'),_0xa858('0x10')],'include':[{'model':_0xa858('0x11'),'as':_0xa858('0x11'),'attributes':['id','name']}]},{'model':'DeskField','as':_0xa858('0x15'),'attributes':['id','type',_0xa858('0xf'),_0xa858('0x16'),_0xa858('0x17'),_0xa858('0x18'),'variableName'],'include':[{'model':_0xa858('0x11'),'as':_0xa858('0x11'),'attributes':['id',_0xa858('0x4')]}]},{'model':_0xa858('0x19'),'as':_0xa858('0x1a'),'attributes':['id','name']}]}]},'log':_0xa858('0x3')});};};