3bcee2c37d00db32cb0e238516fa631c0714e272
[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 _0x3c1a=['request-promise','rimraf','./intFreshsalesField.attributes','exports','int_freshsales_fields','freshsales_unique_index','idField','FieldId','lodash','util','../../config/logger','api','moment','bluebird'];(function(_0x353203,_0x2d39cf){var _0x5ab951=function(_0x3873ed){while(--_0x3873ed){_0x353203['push'](_0x353203['shift']());}};_0x5ab951(++_0x2d39cf);}(_0x3c1a,0xda));var _0xa3c1=function(_0x4792c8,_0x5158a1){_0x4792c8=_0x4792c8-0x0;var _0x35edb1=_0x3c1a[_0x4792c8];return _0x35edb1;};'use strict';var _=require(_0xa3c1('0x0'));var util=require(_0xa3c1('0x1'));var logger=require(_0xa3c1('0x2'))(_0xa3c1('0x3'));var moment=require(_0xa3c1('0x4'));var BPromise=require(_0xa3c1('0x5'));var rp=require(_0xa3c1('0x6'));var fs=require('fs');var path=require('path');var rimraf=require(_0xa3c1('0x7'));var config=require('../../config/environment');var attributes=require(_0xa3c1('0x8'));module[_0xa3c1('0x9')]=function(_0x3f6cab,_0x2da4d2){return _0x3f6cab['define']('FreshsalesField',attributes,{'tableName':_0xa3c1('0xa'),'paranoid':![],'indexes':[{'name':_0xa3c1('0xb'),'fields':[_0xa3c1('0xc'),_0xa3c1('0xd')],'unique':!![]}],'timestamps':!![]});};