b23792fd7efaaea43581ff8cf06bcb28c7e54f6e
[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 _0x7292=['getFreshdeskAccounts','Request','GetFreshdeskAccount','name','username','remoteUri','serverUrl','FreshdeskConfiguration','Configurations','Tag','FreshdeskField','Subjects','variableName','Variable','Descriptions','type','content','key','keyType','keyContent','idField','nameField','customField','../../client'];(function(_0x4110af,_0x54221f){var _0x31b28f=function(_0x1c2a0c){while(--_0x1c2a0c){_0x4110af['push'](_0x4110af['shift']());}};_0x31b28f(++_0x54221f);}(_0x7292,0x107));var _0x2729=function(_0x2b4411,_0x2625ed){_0x2b4411=_0x2b4411-0x0;var _0x8e41ef=_0x7292[_0x2b4411];return _0x8e41ef;};'use strict';var client=require(_0x2729('0x0'));exports[_0x2729('0x1')]=function(){return function(_0x3df7a6){return client[_0x2729('0x2')](_0x2729('0x3'),{'options':{'raw':![],'attributes':['id',_0x2729('0x4'),_0x2729('0x5'),'apiKey',_0x2729('0x6'),_0x2729('0x7')],'include':[{'model':_0x2729('0x8'),'as':_0x2729('0x9'),'attributes':['id',_0x2729('0x4')],'include':[{'model':_0x2729('0xa'),'attributes':['id',_0x2729('0x4')]},{'model':_0x2729('0xb'),'as':_0x2729('0xc'),'attributes':['id','type','content',_0x2729('0xd')],'include':[{'model':_0x2729('0xe'),'as':'Variable','attributes':['id',_0x2729('0x4')]}]},{'model':_0x2729('0xb'),'as':_0x2729('0xf'),'attributes':['id',_0x2729('0x10'),_0x2729('0x11'),_0x2729('0x12'),_0x2729('0x13'),_0x2729('0x14'),_0x2729('0xd')],'include':[{'model':'Variable','as':_0x2729('0xe'),'attributes':['id',_0x2729('0x4')]}]},{'model':_0x2729('0xb'),'as':'Fields','attributes':['id',_0x2729('0x10'),_0x2729('0x11'),_0x2729('0x15'),_0x2729('0x16'),_0x2729('0x17'),_0x2729('0xd')],'include':[{'model':_0x2729('0xe'),'as':_0x2729('0xe'),'attributes':['id','name']}]}]}]},'log':_0x2729('0x3')});};};