Built motion from commit 994c64e1.|2.6.1
[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 _0x6f59=['name','username','apiKey','remoteUri','serverUrl','FreshdeskConfiguration','Configurations','Tag','FreshdeskField','type','variableName','Variable','Descriptions','content','key','keyType','keyContent','Fields','idField','nameField','customField','../../client','getFreshdeskAccounts','Request','GetFreshdeskAccount'];(function(_0xf50820,_0x56f041){var _0x2a9b10=function(_0x33f0f4){while(--_0x33f0f4){_0xf50820['push'](_0xf50820['shift']());}};_0x2a9b10(++_0x56f041);}(_0x6f59,0x1be));var _0x96f5=function(_0x67815a,_0x1bb287){_0x67815a=_0x67815a-0x0;var _0x5e380f=_0x6f59[_0x67815a];return _0x5e380f;};'use strict';var client=require(_0x96f5('0x0'));exports[_0x96f5('0x1')]=function(){return function(_0x2da9ec){return client[_0x96f5('0x2')](_0x96f5('0x3'),{'options':{'raw':![],'attributes':['id',_0x96f5('0x4'),_0x96f5('0x5'),_0x96f5('0x6'),_0x96f5('0x7'),_0x96f5('0x8')],'include':[{'model':_0x96f5('0x9'),'as':_0x96f5('0xa'),'attributes':['id','name'],'include':[{'model':_0x96f5('0xb'),'attributes':['id','name']},{'model':_0x96f5('0xc'),'as':'Subjects','attributes':['id',_0x96f5('0xd'),'content',_0x96f5('0xe')],'include':[{'model':_0x96f5('0xf'),'as':_0x96f5('0xf'),'attributes':['id',_0x96f5('0x4')]}]},{'model':'FreshdeskField','as':_0x96f5('0x10'),'attributes':['id',_0x96f5('0xd'),_0x96f5('0x11'),_0x96f5('0x12'),_0x96f5('0x13'),_0x96f5('0x14'),_0x96f5('0xe')],'include':[{'model':_0x96f5('0xf'),'as':_0x96f5('0xf'),'attributes':['id',_0x96f5('0x4')]}]},{'model':_0x96f5('0xc'),'as':_0x96f5('0x15'),'attributes':['id',_0x96f5('0xd'),'content',_0x96f5('0x16'),_0x96f5('0x17'),_0x96f5('0x18'),_0x96f5('0xe')],'include':[{'model':_0x96f5('0xf'),'as':_0x96f5('0xf'),'attributes':['id','name']}]}]}]},'log':_0x96f5('0x3')});};};