Built motion from commit 13c3002c.|2.6.9
[motion2.git] / server / services / ami / rpc / integrations / vtiger.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 _0x5790=['accessKey','remoteUri','VtigerConfiguration','Configurations','type','content','Variable','VtigerField','key','keyContent','variableName','Fields','nameField','customField','getVtigerAccounts','Request','GetVtigerAccount','name','description','username'];(function(_0x4226d6,_0x3864ca){var _0x19655b=function(_0x1d43a1){while(--_0x1d43a1){_0x4226d6['push'](_0x4226d6['shift']());}};_0x19655b(++_0x3864ca);}(_0x5790,0x112));var _0x0579=function(_0x2641f9,_0x26715f){_0x2641f9=_0x2641f9-0x0;var _0x585741=_0x5790[_0x2641f9];return _0x585741;};'use strict';var client=require('../../client');exports[_0x0579('0x0')]=function(){return function(_0x38c218){return client[_0x0579('0x1')](_0x0579('0x2'),{'options':{'raw':![],'attributes':['id',_0x0579('0x3'),_0x0579('0x4'),_0x0579('0x5'),_0x0579('0x6'),_0x0579('0x7'),'serverUrl'],'include':[{'model':_0x0579('0x8'),'as':_0x0579('0x9'),'attributes':['id',_0x0579('0x3')],'include':[{'model':'VtigerField','as':'Subjects','attributes':['id',_0x0579('0xa'),_0x0579('0xb'),'variableName'],'include':[{'model':'Variable','as':_0x0579('0xc'),'attributes':['id',_0x0579('0x3')]}]},{'model':_0x0579('0xd'),'as':'Descriptions','attributes':['id',_0x0579('0xa'),'content',_0x0579('0xe'),'keyType',_0x0579('0xf'),_0x0579('0x10')],'include':[{'model':_0x0579('0xc'),'as':_0x0579('0xc'),'attributes':['id',_0x0579('0x3')]}]},{'model':_0x0579('0xd'),'as':_0x0579('0x11'),'attributes':['id',_0x0579('0xa'),'content','idField',_0x0579('0x12'),_0x0579('0x13'),_0x0579('0x10')],'include':[{'model':_0x0579('0xc'),'as':_0x0579('0xc'),'attributes':['id',_0x0579('0x3')]}]}]}]},'log':'GetVtigerAccount'});};};