8296869bf05db1e0958e5d53515ca43bb908c27c
[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 _0xf996=['customField','../../client','getFreshdeskAccounts','GetFreshdeskAccount','apiKey','remoteUri','serverUrl','FreshdeskConfiguration','Configurations','name','Tag','FreshdeskField','Subjects','content','Variable','Descriptions','type','key','keyType','variableName','Fields','idField','nameField'];(function(_0x15b1cd,_0x2db0c5){var _0x73f160=function(_0x23dd5c){while(--_0x23dd5c){_0x15b1cd['push'](_0x15b1cd['shift']());}};_0x73f160(++_0x2db0c5);}(_0xf996,0x74));var _0x6f99=function(_0xdbf751,_0x5530ba){_0xdbf751=_0xdbf751-0x0;var _0x577219=_0xf996[_0xdbf751];return _0x577219;};'use strict';var client=require(_0x6f99('0x0'));exports[_0x6f99('0x1')]=function(){return function(_0x31b31e){return client['Request'](_0x6f99('0x2'),{'options':{'raw':![],'attributes':['id','name','username',_0x6f99('0x3'),_0x6f99('0x4'),_0x6f99('0x5')],'include':[{'model':_0x6f99('0x6'),'as':_0x6f99('0x7'),'attributes':['id',_0x6f99('0x8')],'include':[{'model':_0x6f99('0x9'),'attributes':['id',_0x6f99('0x8')]},{'model':_0x6f99('0xa'),'as':_0x6f99('0xb'),'attributes':['id','type',_0x6f99('0xc'),'variableName'],'include':[{'model':_0x6f99('0xd'),'as':_0x6f99('0xd'),'attributes':['id',_0x6f99('0x8')]}]},{'model':_0x6f99('0xa'),'as':_0x6f99('0xe'),'attributes':['id',_0x6f99('0xf'),_0x6f99('0xc'),_0x6f99('0x10'),_0x6f99('0x11'),'keyContent',_0x6f99('0x12')],'include':[{'model':'Variable','as':'Variable','attributes':['id','name']}]},{'model':_0x6f99('0xa'),'as':_0x6f99('0x13'),'attributes':['id',_0x6f99('0xf'),_0x6f99('0xc'),_0x6f99('0x14'),_0x6f99('0x15'),_0x6f99('0x16'),_0x6f99('0x12')],'include':[{'model':_0x6f99('0xd'),'as':_0x6f99('0xd'),'attributes':['id',_0x6f99('0x8')]}]}]}]},'log':_0x6f99('0x2')});};};