Built motion from commit 511216ff.|2.6.34
[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 _0x2bb0=['serverUrl','FreshdeskConfiguration','Configurations','name','Tag','FreshdeskField','type','content','variableName','Variable','Descriptions','key','keyType','idField','customField','../../client','getFreshdeskAccounts','GetFreshdeskAccount','apiKey'];(function(_0x190140,_0x3cd521){var _0x5de288=function(_0x42a9e7){while(--_0x42a9e7){_0x190140['push'](_0x190140['shift']());}};_0x5de288(++_0x3cd521);}(_0x2bb0,0xf3));var _0x02bb=function(_0x306cb2,_0x49693f){_0x306cb2=_0x306cb2-0x0;var _0x5b744e=_0x2bb0[_0x306cb2];return _0x5b744e;};'use strict';var client=require(_0x02bb('0x0'));exports[_0x02bb('0x1')]=function(){return function(_0x3cad3f){return client['Request'](_0x02bb('0x2'),{'options':{'raw':![],'attributes':['id','name','username',_0x02bb('0x3'),'remoteUri',_0x02bb('0x4')],'include':[{'model':_0x02bb('0x5'),'as':_0x02bb('0x6'),'attributes':['id',_0x02bb('0x7')],'include':[{'model':_0x02bb('0x8'),'attributes':['id',_0x02bb('0x7')]},{'model':_0x02bb('0x9'),'as':'Subjects','attributes':['id',_0x02bb('0xa'),_0x02bb('0xb'),_0x02bb('0xc')],'include':[{'model':'Variable','as':_0x02bb('0xd'),'attributes':['id','name']}]},{'model':_0x02bb('0x9'),'as':_0x02bb('0xe'),'attributes':['id','type',_0x02bb('0xb'),_0x02bb('0xf'),_0x02bb('0x10'),'keyContent',_0x02bb('0xc')],'include':[{'model':'Variable','as':_0x02bb('0xd'),'attributes':['id',_0x02bb('0x7')]}]},{'model':_0x02bb('0x9'),'as':'Fields','attributes':['id',_0x02bb('0xa'),_0x02bb('0xb'),_0x02bb('0x11'),'nameField',_0x02bb('0x12'),'variableName'],'include':[{'model':_0x02bb('0xd'),'as':_0x02bb('0xd'),'attributes':['id',_0x02bb('0x7')]}]}]}]},'log':_0x02bb('0x2')});};};