10959286831131803fd70926071161225978f8e0
[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 _0x868d=['../../config/logger','api','bluebird','rimraf','../../config/environment','exports','define','FreshsalesField','freshsales_unique_index','idField','FieldId','lodash'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x868d,0x143));var _0xd868=function(_0xe6b674,_0x267db9){_0xe6b674=_0xe6b674-0x0;var _0x2a6236=_0x868d[_0xe6b674];return _0x2a6236;};'use strict';var _=require(_0xd868('0x0'));var util=require('util');var logger=require(_0xd868('0x1'))(_0xd868('0x2'));var moment=require('moment');var BPromise=require(_0xd868('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0xd868('0x4'));var config=require(_0xd868('0x5'));var attributes=require('./intFreshsalesField.attributes');module[_0xd868('0x6')]=function(_0x36e13e,_0x444c4e){return _0x36e13e[_0xd868('0x7')](_0xd868('0x8'),attributes,{'tableName':'int_freshsales_fields','paranoid':![],'indexes':[{'name':_0xd868('0x9'),'fields':[_0xd868('0xa'),_0xd868('0xb')],'unique':!![]}],'timestamps':!![]});};