Built motion from commit (unavailable).|2.5.7
[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 _0xab98=['../../config/logger','api','request-promise','path','../../config/environment','exports','define','int_freshdesk_fields','freshdesk_unique_index'];(function(_0x4e7e2c,_0x44ec66){var _0x160310=function(_0x1bc4a8){while(--_0x1bc4a8){_0x4e7e2c['push'](_0x4e7e2c['shift']());}};_0x160310(++_0x44ec66);}(_0xab98,0xbd));var _0x8ab9=function(_0x4e7f3f,_0x5c57da){_0x4e7f3f=_0x4e7f3f-0x0;var _0x441fd2=_0xab98[_0x4e7f3f];return _0x441fd2;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x8ab9('0x0'))(_0x8ab9('0x1'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x8ab9('0x2'));var fs=require('fs');var path=require(_0x8ab9('0x3'));var rimraf=require('rimraf');var config=require(_0x8ab9('0x4'));var attributes=require('./intFreshdeskField.attributes');module[_0x8ab9('0x5')]=function(_0x568846,_0x3ca184){return _0x568846[_0x8ab9('0x6')]('FreshdeskField',attributes,{'tableName':_0x8ab9('0x7'),'paranoid':![],'indexes':[{'name':_0x8ab9('0x8'),'fields':['idField','FieldId'],'unique':!![]}],'timestamps':!![]});};