c088267dab33cfb5d6f5cdd9463b422c1686dafa
[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 _0xdf60=['../../client','getDeskAccounts','GetDeskAccount','description','username','password','remoteUri','authType','type','DeskConfiguration','Configurations','name','DeskField','Subjects','content','variableName','Variable','Descriptions','key','keyContent','Fields','idField','customField','Tags'];(function(_0x20cb20,_0x256051){var _0x2fcf4b=function(_0x26200b){while(--_0x26200b){_0x20cb20['push'](_0x20cb20['shift']());}};_0x2fcf4b(++_0x256051);}(_0xdf60,0x1c8));var _0x0df6=function(_0x4b82dd,_0x15be5d){_0x4b82dd=_0x4b82dd-0x0;var _0x31139a=_0xdf60[_0x4b82dd];return _0x31139a;};'use strict';var client=require(_0x0df6('0x0'));exports[_0x0df6('0x1')]=function(){return function(_0x548895){return client['Request'](_0x0df6('0x2'),{'options':{'raw':![],'attributes':['id','name',_0x0df6('0x3'),_0x0df6('0x4'),_0x0df6('0x5'),_0x0df6('0x6'),_0x0df6('0x7'),_0x0df6('0x8'),'serverUrl'],'include':[{'model':_0x0df6('0x9'),'as':_0x0df6('0xa'),'attributes':['id',_0x0df6('0xb')],'include':[{'model':_0x0df6('0xc'),'as':_0x0df6('0xd'),'attributes':['id','type',_0x0df6('0xe'),_0x0df6('0xf')],'include':[{'model':_0x0df6('0x10'),'as':'Variable','attributes':['id',_0x0df6('0xb')]}]},{'model':'DeskField','as':_0x0df6('0x11'),'attributes':['id','type',_0x0df6('0xe'),_0x0df6('0x12'),'keyType',_0x0df6('0x13'),'variableName'],'include':[{'model':_0x0df6('0x10'),'as':'Variable','attributes':['id',_0x0df6('0xb')]}]},{'model':_0x0df6('0xc'),'as':_0x0df6('0x14'),'attributes':['id',_0x0df6('0x8'),_0x0df6('0xe'),_0x0df6('0x15'),'nameField',_0x0df6('0x16'),_0x0df6('0xf')],'include':[{'model':_0x0df6('0x10'),'as':_0x0df6('0x10'),'attributes':['id',_0x0df6('0xb')]}]},{'model':'Tag','as':_0x0df6('0x17'),'attributes':['id',_0x0df6('0xb')]}]}]},'log':'GetDeskAccount'});};};