08c148e54ee573c24c42bd9cc94a09883e64a378
[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 _0x79ab=['name','description','username','password','remoteUri','serverUrl','DeskConfiguration','Configurations','DeskField','Subjects','type','content','variableName','Variable','Descriptions','key','keyType','keyContent','Fields','idField','nameField','customField','Tag','Tags','getDeskAccounts','GetDeskAccount'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0x79ab,0x102));var _0xb79a=function(_0x310448,_0x59f6bd){_0x310448=_0x310448-0x0;var _0xc0124b=_0x79ab[_0x310448];return _0xc0124b;};'use strict';var client=require('../../client');exports[_0xb79a('0x0')]=function(){return function(_0xf9412c){return client['Request'](_0xb79a('0x1'),{'options':{'raw':![],'attributes':['id',_0xb79a('0x2'),_0xb79a('0x3'),_0xb79a('0x4'),_0xb79a('0x5'),_0xb79a('0x6'),'authType','type',_0xb79a('0x7')],'include':[{'model':_0xb79a('0x8'),'as':_0xb79a('0x9'),'attributes':['id',_0xb79a('0x2')],'include':[{'model':_0xb79a('0xa'),'as':_0xb79a('0xb'),'attributes':['id',_0xb79a('0xc'),_0xb79a('0xd'),_0xb79a('0xe')],'include':[{'model':_0xb79a('0xf'),'as':'Variable','attributes':['id','name']}]},{'model':_0xb79a('0xa'),'as':_0xb79a('0x10'),'attributes':['id',_0xb79a('0xc'),_0xb79a('0xd'),_0xb79a('0x11'),_0xb79a('0x12'),_0xb79a('0x13'),_0xb79a('0xe')],'include':[{'model':_0xb79a('0xf'),'as':'Variable','attributes':['id','name']}]},{'model':_0xb79a('0xa'),'as':_0xb79a('0x14'),'attributes':['id',_0xb79a('0xc'),_0xb79a('0xd'),_0xb79a('0x15'),_0xb79a('0x16'),_0xb79a('0x17'),_0xb79a('0xe')],'include':[{'model':_0xb79a('0xf'),'as':_0xb79a('0xf'),'attributes':['id',_0xb79a('0x2')]}]},{'model':_0xb79a('0x18'),'as':_0xb79a('0x19'),'attributes':['id',_0xb79a('0x2')]}]}]},'log':_0xb79a('0x1')});};};