8f7fcca6dd2cd5477712dd34e5e92dbaa371f101
[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 _0x56bd=['path','rimraf','./intFreshsalesField.attributes','exports','define','FreshsalesField','int_freshsales_fields','idField','FieldId','util','../../config/logger','api','bluebird','request-promise'];(function(_0x5984cf,_0x58aaff){var _0x558fcf=function(_0xcdae0c){while(--_0xcdae0c){_0x5984cf['push'](_0x5984cf['shift']());}};_0x558fcf(++_0x58aaff);}(_0x56bd,0xe9));var _0xd56b=function(_0x4740b1,_0x33f54b){_0x4740b1=_0x4740b1-0x0;var _0x4fd16c=_0x56bd[_0x4740b1];return _0x4fd16c;};'use strict';var _=require('lodash');var util=require(_0xd56b('0x0'));var logger=require(_0xd56b('0x1'))(_0xd56b('0x2'));var moment=require('moment');var BPromise=require(_0xd56b('0x3'));var rp=require(_0xd56b('0x4'));var fs=require('fs');var path=require(_0xd56b('0x5'));var rimraf=require(_0xd56b('0x6'));var config=require('../../config/environment');var attributes=require(_0xd56b('0x7'));module[_0xd56b('0x8')]=function(_0x1ac686,_0x18a88e){return _0x1ac686[_0xd56b('0x9')](_0xd56b('0xa'),attributes,{'tableName':_0xd56b('0xb'),'paranoid':![],'indexes':[{'name':'freshsales_unique_index','fields':[_0xd56b('0xc'),_0xd56b('0xd')],'unique':!![]}],'timestamps':!![]});};