e544e4646eeb73142fa16bba4ffb59657e060e96
[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 _0xe307=['serverUrl','VtigerConfiguration','Configurations','VtigerField','type','content','variableName','Variable','key','keyType','keyContent','Fields','idField','nameField','customField','getVtigerAccounts','Request','GetVtigerAccount','name','description','username','accessKey','remoteUri'];(function(_0x40e465,_0x141313){var _0x5c422d=function(_0x15af87){while(--_0x15af87){_0x40e465['push'](_0x40e465['shift']());}};_0x5c422d(++_0x141313);}(_0xe307,0x6b));var _0x7e30=function(_0x175819,_0x5f4eb5){_0x175819=_0x175819-0x0;var _0x383fb0=_0xe307[_0x175819];return _0x383fb0;};'use strict';var client=require('../../client');exports[_0x7e30('0x0')]=function(){return function(_0x56b81a){return client[_0x7e30('0x1')](_0x7e30('0x2'),{'options':{'raw':![],'attributes':['id',_0x7e30('0x3'),_0x7e30('0x4'),_0x7e30('0x5'),_0x7e30('0x6'),_0x7e30('0x7'),_0x7e30('0x8')],'include':[{'model':_0x7e30('0x9'),'as':_0x7e30('0xa'),'attributes':['id','name'],'include':[{'model':_0x7e30('0xb'),'as':'Subjects','attributes':['id',_0x7e30('0xc'),_0x7e30('0xd'),_0x7e30('0xe')],'include':[{'model':_0x7e30('0xf'),'as':'Variable','attributes':['id',_0x7e30('0x3')]}]},{'model':'VtigerField','as':'Descriptions','attributes':['id','type',_0x7e30('0xd'),_0x7e30('0x10'),_0x7e30('0x11'),_0x7e30('0x12'),_0x7e30('0xe')],'include':[{'model':_0x7e30('0xf'),'as':_0x7e30('0xf'),'attributes':['id',_0x7e30('0x3')]}]},{'model':_0x7e30('0xb'),'as':_0x7e30('0x13'),'attributes':['id',_0x7e30('0xc'),_0x7e30('0xd'),_0x7e30('0x14'),_0x7e30('0x15'),_0x7e30('0x16'),_0x7e30('0xe')],'include':[{'model':_0x7e30('0xf'),'as':'Variable','attributes':['id',_0x7e30('0x3')]}]}]}]},'log':_0x7e30('0x2')});};};