Built motion from commit 2b9af5da.|2.6.26
[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 _0x6594=['Tag','Subjects','type','content','variableName','Variable','FreshdeskField','Descriptions','key','keyType','keyContent','Fields','customField','GetFreshdeskAccount','name','username','apiKey','remoteUri','Configurations'];(function(_0x5cc171,_0x78d01e){var _0x2f1a3c=function(_0x12ffe4){while(--_0x12ffe4){_0x5cc171['push'](_0x5cc171['shift']());}};_0x2f1a3c(++_0x78d01e);}(_0x6594,0xcb));var _0x4659=function(_0x323c4b,_0x281826){_0x323c4b=_0x323c4b-0x0;var _0x5264dd=_0x6594[_0x323c4b];return _0x5264dd;};'use strict';var client=require('../../client');exports['getFreshdeskAccounts']=function(){return function(_0x567a59){return client['Request'](_0x4659('0x0'),{'options':{'raw':![],'attributes':['id',_0x4659('0x1'),_0x4659('0x2'),_0x4659('0x3'),_0x4659('0x4'),'serverUrl'],'include':[{'model':'FreshdeskConfiguration','as':_0x4659('0x5'),'attributes':['id',_0x4659('0x1')],'include':[{'model':_0x4659('0x6'),'attributes':['id',_0x4659('0x1')]},{'model':'FreshdeskField','as':_0x4659('0x7'),'attributes':['id',_0x4659('0x8'),_0x4659('0x9'),_0x4659('0xa')],'include':[{'model':_0x4659('0xb'),'as':_0x4659('0xb'),'attributes':['id','name']}]},{'model':_0x4659('0xc'),'as':_0x4659('0xd'),'attributes':['id',_0x4659('0x8'),_0x4659('0x9'),_0x4659('0xe'),_0x4659('0xf'),_0x4659('0x10'),'variableName'],'include':[{'model':'Variable','as':_0x4659('0xb'),'attributes':['id',_0x4659('0x1')]}]},{'model':_0x4659('0xc'),'as':_0x4659('0x11'),'attributes':['id',_0x4659('0x8'),_0x4659('0x9'),'idField','nameField',_0x4659('0x12'),'variableName'],'include':[{'model':_0x4659('0xb'),'as':_0x4659('0xb'),'attributes':['id',_0x4659('0x1')]}]}]}]},'log':'GetFreshdeskAccount'});};};