d809072e686b0ffec375858782468d562cae66ae
[motion2.git] / server / api / intFreshsalesField / intFreshsalesField.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 _0x72a1=['util','api','bluebird','request-promise','path','../../config/environment','exports','FreshsalesField','int_freshsales_fields','freshsales_unique_index','idField'];(function(_0x2c1f2f,_0x323a9e){var _0x1f4b9=function(_0x3d9d47){while(--_0x3d9d47){_0x2c1f2f['push'](_0x2c1f2f['shift']());}};_0x1f4b9(++_0x323a9e);}(_0x72a1,0x1ce));var _0x172a=function(_0x6b4fe4,_0x4f2c29){_0x6b4fe4=_0x6b4fe4-0x0;var _0x46b758=_0x72a1[_0x6b4fe4];return _0x46b758;};'use strict';var _=require('lodash');var util=require(_0x172a('0x0'));var logger=require('../../config/logger')(_0x172a('0x1'));var moment=require('moment');var BPromise=require(_0x172a('0x2'));var rp=require(_0x172a('0x3'));var fs=require('fs');var path=require(_0x172a('0x4'));var rimraf=require('rimraf');var config=require(_0x172a('0x5'));var attributes=require('./intFreshsalesField.attributes');module[_0x172a('0x6')]=function(_0x5bc607,_0x13724a){return _0x5bc607['define'](_0x172a('0x7'),attributes,{'tableName':_0x172a('0x8'),'paranoid':![],'indexes':[{'name':_0x172a('0x9'),'fields':[_0x172a('0xa'),'FieldId'],'unique':!![]}],'timestamps':!![]});};