Built motion from commit eddce310.|2.6.12
[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 _0x0ac0=['FreshdeskField','Subjects','type','content','variableName','Descriptions','keyType','Variable','Fields','idField','../../client','getFreshdeskAccounts','GetFreshdeskAccount','name','username','apiKey','remoteUri','serverUrl','FreshdeskConfiguration','Configurations','Tag'];(function(_0x2d7f0e,_0x3e6fbd){var _0x110b07=function(_0x557b00){while(--_0x557b00){_0x2d7f0e['push'](_0x2d7f0e['shift']());}};_0x110b07(++_0x3e6fbd);}(_0x0ac0,0x130));var _0x00ac=function(_0x51ac09,_0x383098){_0x51ac09=_0x51ac09-0x0;var _0x3f827d=_0x0ac0[_0x51ac09];return _0x3f827d;};'use strict';var client=require(_0x00ac('0x0'));exports[_0x00ac('0x1')]=function(){return function(_0x23846a){return client['Request'](_0x00ac('0x2'),{'options':{'raw':![],'attributes':['id',_0x00ac('0x3'),_0x00ac('0x4'),_0x00ac('0x5'),_0x00ac('0x6'),_0x00ac('0x7')],'include':[{'model':_0x00ac('0x8'),'as':_0x00ac('0x9'),'attributes':['id','name'],'include':[{'model':_0x00ac('0xa'),'attributes':['id',_0x00ac('0x3')]},{'model':_0x00ac('0xb'),'as':_0x00ac('0xc'),'attributes':['id',_0x00ac('0xd'),_0x00ac('0xe'),_0x00ac('0xf')],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0x00ac('0x3')]}]},{'model':_0x00ac('0xb'),'as':_0x00ac('0x10'),'attributes':['id',_0x00ac('0xd'),_0x00ac('0xe'),'key',_0x00ac('0x11'),'keyContent',_0x00ac('0xf')],'include':[{'model':'Variable','as':_0x00ac('0x12'),'attributes':['id',_0x00ac('0x3')]}]},{'model':_0x00ac('0xb'),'as':_0x00ac('0x13'),'attributes':['id','type','content',_0x00ac('0x14'),'nameField','customField',_0x00ac('0xf')],'include':[{'model':_0x00ac('0x12'),'as':'Variable','attributes':['id',_0x00ac('0x3')]}]}]}]},'log':'GetFreshdeskAccount'});};};