c5c0194d717390d845f2cdc44d592d7913585ea4
[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 _0x9eb6=['authType','type','DeskConfiguration','Configurations','content','variableName','Variable','Descriptions','key','keyContent','DeskField','nameField','customField','Tags','getDeskAccounts','Request','GetDeskAccount','name','description','username'];(function(_0x111650,_0x2ded4b){var _0x40fdc6=function(_0x123046){while(--_0x123046){_0x111650['push'](_0x111650['shift']());}};_0x40fdc6(++_0x2ded4b);}(_0x9eb6,0xea));var _0x69eb=function(_0x16b9ed,_0x56517a){_0x16b9ed=_0x16b9ed-0x0;var _0x66b1f8=_0x9eb6[_0x16b9ed];return _0x66b1f8;};'use strict';var client=require('../../client');exports[_0x69eb('0x0')]=function(){return function(_0x26e01c){return client[_0x69eb('0x1')](_0x69eb('0x2'),{'options':{'raw':![],'attributes':['id',_0x69eb('0x3'),_0x69eb('0x4'),_0x69eb('0x5'),'password','remoteUri',_0x69eb('0x6'),_0x69eb('0x7'),'serverUrl'],'include':[{'model':_0x69eb('0x8'),'as':_0x69eb('0x9'),'attributes':['id',_0x69eb('0x3')],'include':[{'model':'DeskField','as':'Subjects','attributes':['id','type',_0x69eb('0xa'),_0x69eb('0xb')],'include':[{'model':_0x69eb('0xc'),'as':'Variable','attributes':['id',_0x69eb('0x3')]}]},{'model':'DeskField','as':_0x69eb('0xd'),'attributes':['id',_0x69eb('0x7'),_0x69eb('0xa'),_0x69eb('0xe'),'keyType',_0x69eb('0xf'),'variableName'],'include':[{'model':_0x69eb('0xc'),'as':_0x69eb('0xc'),'attributes':['id',_0x69eb('0x3')]}]},{'model':_0x69eb('0x10'),'as':'Fields','attributes':['id',_0x69eb('0x7'),_0x69eb('0xa'),'idField',_0x69eb('0x11'),_0x69eb('0x12'),_0x69eb('0xb')],'include':[{'model':_0x69eb('0xc'),'as':'Variable','attributes':['id',_0x69eb('0x3')]}]},{'model':'Tag','as':_0x69eb('0x13'),'attributes':['id',_0x69eb('0x3')]}]}]},'log':_0x69eb('0x2')});};};