Built motion from commit 19a84241.|2.5.34
[motion2.git] / server / api / intFreshdeskField / intFreshdeskField.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 _0x7a34=['define','FreshdeskField','freshdesk_unique_index','FieldId','../../config/logger','api','bluebird','request-promise','../../config/environment'];(function(_0x879e31,_0x139d02){var _0x3467e8=function(_0x544fc6){while(--_0x544fc6){_0x879e31['push'](_0x879e31['shift']());}};_0x3467e8(++_0x139d02);}(_0x7a34,0xa6));var _0x47a3=function(_0x14c604,_0xb422b1){_0x14c604=_0x14c604-0x0;var _0x20a92a=_0x7a34[_0x14c604];return _0x20a92a;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x47a3('0x0'))(_0x47a3('0x1'));var moment=require('moment');var BPromise=require(_0x47a3('0x2'));var rp=require(_0x47a3('0x3'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0x47a3('0x4'));var attributes=require('./intFreshdeskField.attributes');module['exports']=function(_0x28903f,_0x4b8374){return _0x28903f[_0x47a3('0x5')](_0x47a3('0x6'),attributes,{'tableName':'int_freshdesk_fields','paranoid':![],'indexes':[{'name':_0x47a3('0x7'),'fields':['idField',_0x47a3('0x8')],'unique':!![]}],'timestamps':!![]});};