2712e8a4fcf0dafae9d8ab93b711e0aa55c5c244
[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 _0x8d5d=['lodash','../../config/logger','moment','bluebird','path','rimraf','../../config/environment','exports','define','ZohoField','int_zoho_fields','zoho_unique_index','idField'];(function(_0x492700,_0x3a0e74){var _0x1a33d5=function(_0x1111d2){while(--_0x1111d2){_0x492700['push'](_0x492700['shift']());}};_0x1a33d5(++_0x3a0e74);}(_0x8d5d,0x1ad));var _0xd8d5=function(_0x4c780e,_0x374951){_0x4c780e=_0x4c780e-0x0;var _0x56398a=_0x8d5d[_0x4c780e];return _0x56398a;};'use strict';var _=require(_0xd8d5('0x0'));var util=require('util');var logger=require(_0xd8d5('0x1'))('api');var moment=require(_0xd8d5('0x2'));var BPromise=require(_0xd8d5('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xd8d5('0x4'));var rimraf=require(_0xd8d5('0x5'));var config=require(_0xd8d5('0x6'));var attributes=require('./intZohoField.attributes');module[_0xd8d5('0x7')]=function(_0x23a432,_0x3f1e31){return _0x23a432[_0xd8d5('0x8')](_0xd8d5('0x9'),attributes,{'tableName':_0xd8d5('0xa'),'paranoid':![],'indexes':[{'name':_0xd8d5('0xb'),'fields':[_0xd8d5('0xc'),'FieldId'],'unique':!![]}],'timestamps':!![]});};