Built motion from commit a679711e.|2.6.15
[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 _0xa596=['idField','nameField','customField','../../client','getFreshdeskAccounts','Request','GetFreshdeskAccount','name','username','apiKey','remoteUri','serverUrl','FreshdeskConfiguration','Tag','FreshdeskField','Subjects','type','variableName','Variable','Descriptions','content','keyType','keyContent','Fields'];(function(_0xec814,_0x590ac3){var _0x3e5c2c=function(_0x4b6ae5){while(--_0x4b6ae5){_0xec814['push'](_0xec814['shift']());}};_0x3e5c2c(++_0x590ac3);}(_0xa596,0x7b));var _0x6a59=function(_0x1e45f8,_0x16b4b3){_0x1e45f8=_0x1e45f8-0x0;var _0x46d3e1=_0xa596[_0x1e45f8];return _0x46d3e1;};'use strict';var client=require(_0x6a59('0x0'));exports[_0x6a59('0x1')]=function(){return function(_0x5b127f){return client[_0x6a59('0x2')](_0x6a59('0x3'),{'options':{'raw':![],'attributes':['id',_0x6a59('0x4'),_0x6a59('0x5'),_0x6a59('0x6'),_0x6a59('0x7'),_0x6a59('0x8')],'include':[{'model':_0x6a59('0x9'),'as':'Configurations','attributes':['id',_0x6a59('0x4')],'include':[{'model':_0x6a59('0xa'),'attributes':['id',_0x6a59('0x4')]},{'model':_0x6a59('0xb'),'as':_0x6a59('0xc'),'attributes':['id',_0x6a59('0xd'),'content',_0x6a59('0xe')],'include':[{'model':'Variable','as':_0x6a59('0xf'),'attributes':['id','name']}]},{'model':'FreshdeskField','as':_0x6a59('0x10'),'attributes':['id',_0x6a59('0xd'),_0x6a59('0x11'),'key',_0x6a59('0x12'),_0x6a59('0x13'),'variableName'],'include':[{'model':_0x6a59('0xf'),'as':'Variable','attributes':['id',_0x6a59('0x4')]}]},{'model':_0x6a59('0xb'),'as':_0x6a59('0x14'),'attributes':['id',_0x6a59('0xd'),_0x6a59('0x11'),_0x6a59('0x15'),_0x6a59('0x16'),_0x6a59('0x17'),_0x6a59('0xe')],'include':[{'model':_0x6a59('0xf'),'as':_0x6a59('0xf'),'attributes':['id','name']}]}]}]},'log':_0x6a59('0x3')});};};