1a73bb84b0960a7c67648000c90f0e8632696e59
[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 _0x5bf1=['lodash','../../config/logger','moment','bluebird','request-promise','rimraf','./intZohoField.attributes','exports','define','ZohoField','int_zoho_fields','idField','FieldId'];(function(_0x2fb8a8,_0x25fd34){var _0x4c182c=function(_0xe180fd){while(--_0xe180fd){_0x2fb8a8['push'](_0x2fb8a8['shift']());}};_0x4c182c(++_0x25fd34);}(_0x5bf1,0xdd));var _0x15bf=function(_0x321bb2,_0x202794){_0x321bb2=_0x321bb2-0x0;var _0x9c12ed=_0x5bf1[_0x321bb2];return _0x9c12ed;};'use strict';var _=require(_0x15bf('0x0'));var util=require('util');var logger=require(_0x15bf('0x1'))('api');var moment=require(_0x15bf('0x2'));var BPromise=require(_0x15bf('0x3'));var rp=require(_0x15bf('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0x15bf('0x5'));var config=require('../../config/environment');var attributes=require(_0x15bf('0x6'));module[_0x15bf('0x7')]=function(_0x3eac59,_0x947681){return _0x3eac59[_0x15bf('0x8')](_0x15bf('0x9'),attributes,{'tableName':_0x15bf('0xa'),'paranoid':![],'indexes':[{'name':'zoho_unique_index','fields':[_0x15bf('0xb'),_0x15bf('0xc')],'unique':!![]}],'timestamps':!![]});};