bc52c5d03d2b048ac0cfc0c45c4ac1f2e55e20ea
[motion2.git] / server / services / ami / rpc / integrations / zendesk.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 _0xf313=['authType','serverUrl','type','Configurations','Tag','ZendeskField','variableName','Variable','Descriptions','content','keyType','keyContent','idField','nameField','customField','../../client','getZendeskAccounts','GetZendeskAccount','name','username','password','token','remoteUri'];(function(_0x2e53c7,_0x10f33c){var _0xb85976=function(_0xf09adc){while(--_0xf09adc){_0x2e53c7['push'](_0x2e53c7['shift']());}};_0xb85976(++_0x10f33c);}(_0xf313,0x17f));var _0x3f31=function(_0x397e5f,_0x454c8f){_0x397e5f=_0x397e5f-0x0;var _0x5302b8=_0xf313[_0x397e5f];return _0x5302b8;};'use strict';var client=require(_0x3f31('0x0'));exports[_0x3f31('0x1')]=function(){return function(_0x59ddb3){return client['Request'](_0x3f31('0x2'),{'options':{'raw':![],'attributes':['id',_0x3f31('0x3'),_0x3f31('0x4'),_0x3f31('0x5'),_0x3f31('0x6'),_0x3f31('0x7'),_0x3f31('0x8'),_0x3f31('0x9'),_0x3f31('0xa')],'include':[{'model':'ZendeskConfiguration','as':_0x3f31('0xb'),'attributes':['id',_0x3f31('0x3')],'include':[{'model':_0x3f31('0xc'),'attributes':['id',_0x3f31('0x3')]},{'model':_0x3f31('0xd'),'as':'Subjects','attributes':['id',_0x3f31('0xa'),'content',_0x3f31('0xe')],'include':[{'model':_0x3f31('0xf'),'as':_0x3f31('0xf'),'attributes':['id',_0x3f31('0x3')]}]},{'model':_0x3f31('0xd'),'as':_0x3f31('0x10'),'attributes':['id',_0x3f31('0xa'),_0x3f31('0x11'),'key',_0x3f31('0x12'),_0x3f31('0x13'),'variableName'],'include':[{'model':_0x3f31('0xf'),'as':_0x3f31('0xf'),'attributes':['id',_0x3f31('0x3')]}]},{'model':'ZendeskField','as':'Fields','attributes':['id',_0x3f31('0xa'),_0x3f31('0x11'),_0x3f31('0x14'),_0x3f31('0x15'),_0x3f31('0x16'),_0x3f31('0xe')],'include':[{'model':_0x3f31('0xf'),'as':_0x3f31('0xf'),'attributes':['id',_0x3f31('0x3')]}]}]}]},'log':_0x3f31('0x2')});};};