Built motion from commit 1fd437e9.|2.6.19
[motion2.git] / server / services / ami / rpc / integrations / freshdesk.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 _0xf2a6=['apiKey','remoteUri','serverUrl','FreshdeskConfiguration','Configurations','name','Tag','FreshdeskField','type','content','variableName','Variable','Descriptions','keyType','idField','nameField','customField','../../client','GetFreshdeskAccount','username'];(function(_0x164c1f,_0x42388b){var _0x269d75=function(_0x15952f){while(--_0x15952f){_0x164c1f['push'](_0x164c1f['shift']());}};_0x269d75(++_0x42388b);}(_0xf2a6,0x13d));var _0x6f2a=function(_0x5d946d,_0x57531b){_0x5d946d=_0x5d946d-0x0;var _0x39fd27=_0xf2a6[_0x5d946d];return _0x39fd27;};'use strict';var client=require(_0x6f2a('0x0'));exports['getFreshdeskAccounts']=function(){return function(_0x4e1d7e){return client['Request'](_0x6f2a('0x1'),{'options':{'raw':![],'attributes':['id','name',_0x6f2a('0x2'),_0x6f2a('0x3'),_0x6f2a('0x4'),_0x6f2a('0x5')],'include':[{'model':_0x6f2a('0x6'),'as':_0x6f2a('0x7'),'attributes':['id',_0x6f2a('0x8')],'include':[{'model':_0x6f2a('0x9'),'attributes':['id',_0x6f2a('0x8')]},{'model':_0x6f2a('0xa'),'as':'Subjects','attributes':['id',_0x6f2a('0xb'),_0x6f2a('0xc'),_0x6f2a('0xd')],'include':[{'model':_0x6f2a('0xe'),'as':'Variable','attributes':['id',_0x6f2a('0x8')]}]},{'model':'FreshdeskField','as':_0x6f2a('0xf'),'attributes':['id',_0x6f2a('0xb'),_0x6f2a('0xc'),'key',_0x6f2a('0x10'),'keyContent',_0x6f2a('0xd')],'include':[{'model':_0x6f2a('0xe'),'as':_0x6f2a('0xe'),'attributes':['id','name']}]},{'model':_0x6f2a('0xa'),'as':'Fields','attributes':['id',_0x6f2a('0xb'),_0x6f2a('0xc'),_0x6f2a('0x11'),_0x6f2a('0x12'),_0x6f2a('0x13'),'variableName'],'include':[{'model':_0x6f2a('0xe'),'as':_0x6f2a('0xe'),'attributes':['id',_0x6f2a('0x8')]}]}]}]},'log':_0x6f2a('0x1')});};};