Built motion from commit (unavailable).|2.5.0
[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 _0xd09e=['rimraf','../../config/environment','./intFreshsalesField.attributes','exports','define','FreshsalesField','int_freshsales_fields','freshsales_unique_index','idField','FieldId','lodash','util','api','bluebird'];(function(_0x29e700,_0x5666f4){var _0xe0b251=function(_0x103fdb){while(--_0x103fdb){_0x29e700['push'](_0x29e700['shift']());}};_0xe0b251(++_0x5666f4);}(_0xd09e,0xdc));var _0xed09=function(_0x349f5e,_0x3da4d1){_0x349f5e=_0x349f5e-0x0;var _0x280439=_0xd09e[_0x349f5e];return _0x280439;};'use strict';var _=require(_0xed09('0x0'));var util=require(_0xed09('0x1'));var logger=require('../../config/logger')(_0xed09('0x2'));var moment=require('moment');var BPromise=require(_0xed09('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0xed09('0x4'));var config=require(_0xed09('0x5'));var attributes=require(_0xed09('0x6'));module[_0xed09('0x7')]=function(_0x27ba52,_0x1515c6){return _0x27ba52[_0xed09('0x8')](_0xed09('0x9'),attributes,{'tableName':_0xed09('0xa'),'paranoid':![],'indexes':[{'name':_0xed09('0xb'),'fields':[_0xed09('0xc'),_0xed09('0xd')],'unique':!![]}],'timestamps':!![]});};