Built motion from commit (unavailable).|2.4.17
[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 _0x9539=['keyType','keyContent','Fields','nameField','customField','../../client','getZendeskAccounts','Request','GetZendeskAccount','name','username','password','token','authType','serverUrl','type','ZendeskConfiguration','Configurations','content','variableName','Variable','ZendeskField','Descriptions','key'];(function(_0x884888,_0x59a444){var _0x41c741=function(_0x560a3f){while(--_0x560a3f){_0x884888['push'](_0x884888['shift']());}};_0x41c741(++_0x59a444);}(_0x9539,0xad));var _0x9953=function(_0x22c8fb,_0x99f35f){_0x22c8fb=_0x22c8fb-0x0;var _0x104e6d=_0x9539[_0x22c8fb];return _0x104e6d;};'use strict';var client=require(_0x9953('0x0'));exports[_0x9953('0x1')]=function(){return function(_0x1bf1b8){return client[_0x9953('0x2')](_0x9953('0x3'),{'options':{'raw':![],'attributes':['id',_0x9953('0x4'),_0x9953('0x5'),_0x9953('0x6'),_0x9953('0x7'),'remoteUri',_0x9953('0x8'),_0x9953('0x9'),_0x9953('0xa')],'include':[{'model':_0x9953('0xb'),'as':_0x9953('0xc'),'attributes':['id',_0x9953('0x4')],'include':[{'model':'Tag','attributes':['id','name']},{'model':'ZendeskField','as':'Subjects','attributes':['id',_0x9953('0xa'),_0x9953('0xd'),_0x9953('0xe')],'include':[{'model':_0x9953('0xf'),'as':'Variable','attributes':['id','name']}]},{'model':_0x9953('0x10'),'as':_0x9953('0x11'),'attributes':['id',_0x9953('0xa'),_0x9953('0xd'),_0x9953('0x12'),_0x9953('0x13'),_0x9953('0x14'),_0x9953('0xe')],'include':[{'model':'Variable','as':_0x9953('0xf'),'attributes':['id',_0x9953('0x4')]}]},{'model':'ZendeskField','as':_0x9953('0x15'),'attributes':['id','type','content','idField',_0x9953('0x16'),_0x9953('0x17'),'variableName'],'include':[{'model':_0x9953('0xf'),'as':_0x9953('0xf'),'attributes':['id',_0x9953('0x4')]}]}]}]},'log':_0x9953('0x3')});};};