e12b68518765f67d0616c388d71bc05b87a7e610
[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 _0x8ab0=['DeskField','Subjects','content','variableName','Variable','Descriptions','type','keyType','Fields','idField','nameField','customField','Tag','Tags','GetDeskAccount','../../client','getDeskAccounts','name','description','username','password','authType','serverUrl','Configurations'];(function(_0x77dac7,_0x337325){var _0x485b60=function(_0x4ed666){while(--_0x4ed666){_0x77dac7['push'](_0x77dac7['shift']());}};_0x485b60(++_0x337325);}(_0x8ab0,0x15f));var _0x08ab=function(_0x125571,_0x37d17c){_0x125571=_0x125571-0x0;var _0x5eca5f=_0x8ab0[_0x125571];return _0x5eca5f;};'use strict';var client=require(_0x08ab('0x0'));exports[_0x08ab('0x1')]=function(){return function(_0x34a166){return client['Request']('GetDeskAccount',{'options':{'raw':![],'attributes':['id',_0x08ab('0x2'),_0x08ab('0x3'),_0x08ab('0x4'),_0x08ab('0x5'),'remoteUri',_0x08ab('0x6'),'type',_0x08ab('0x7')],'include':[{'model':'DeskConfiguration','as':_0x08ab('0x8'),'attributes':['id',_0x08ab('0x2')],'include':[{'model':_0x08ab('0x9'),'as':_0x08ab('0xa'),'attributes':['id','type',_0x08ab('0xb'),_0x08ab('0xc')],'include':[{'model':_0x08ab('0xd'),'as':_0x08ab('0xd'),'attributes':['id',_0x08ab('0x2')]}]},{'model':'DeskField','as':_0x08ab('0xe'),'attributes':['id',_0x08ab('0xf'),_0x08ab('0xb'),'key',_0x08ab('0x10'),'keyContent','variableName'],'include':[{'model':_0x08ab('0xd'),'as':'Variable','attributes':['id','name']}]},{'model':_0x08ab('0x9'),'as':_0x08ab('0x11'),'attributes':['id',_0x08ab('0xf'),_0x08ab('0xb'),_0x08ab('0x12'),_0x08ab('0x13'),_0x08ab('0x14'),_0x08ab('0xc')],'include':[{'model':_0x08ab('0xd'),'as':_0x08ab('0xd'),'attributes':['id',_0x08ab('0x2')]}]},{'model':_0x08ab('0x15'),'as':_0x08ab('0x16'),'attributes':['id',_0x08ab('0x2')]}]}]},'log':_0x08ab('0x17')});};};