23eca48013cf184c9c14f072b04c373eef2022cc
[motion2.git] / server / api / intZohoField / intZohoField.model.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 _0xe952=['int_zoho_fields','idField','FieldId','util','../../config/logger','api','moment','path','../../config/environment','./intZohoField.attributes','exports','define','ZohoField'];(function(_0x566816,_0x73fea5){var _0x36719c=function(_0x4cb076){while(--_0x4cb076){_0x566816['push'](_0x566816['shift']());}};_0x36719c(++_0x73fea5);}(_0xe952,0x85));var _0x2e95=function(_0x23e9b3,_0x53367f){_0x23e9b3=_0x23e9b3-0x0;var _0x3d3d82=_0xe952[_0x23e9b3];return _0x3d3d82;};'use strict';var _=require('lodash');var util=require(_0x2e95('0x0'));var logger=require(_0x2e95('0x1'))(_0x2e95('0x2'));var moment=require(_0x2e95('0x3'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x2e95('0x4'));var rimraf=require('rimraf');var config=require(_0x2e95('0x5'));var attributes=require(_0x2e95('0x6'));module[_0x2e95('0x7')]=function(_0x31b0c6,_0x3c7ecd){return _0x31b0c6[_0x2e95('0x8')](_0x2e95('0x9'),attributes,{'tableName':_0x2e95('0xa'),'paranoid':![],'indexes':[{'name':'zoho_unique_index','fields':[_0x2e95('0xb'),_0x2e95('0xc')],'unique':!![]}],'timestamps':!![]});};