Built motion from commit a61a4a20.|2.5.46
[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 _0x5c86=['./intFreshdeskField.attributes','define','FreshdeskField','freshdesk_unique_index','idField','../../config/logger','api','moment','request-promise','path','rimraf'];(function(_0x5ced50,_0x4cb654){var _0x334ebf=function(_0xcf813f){while(--_0xcf813f){_0x5ced50['push'](_0x5ced50['shift']());}};_0x334ebf(++_0x4cb654);}(_0x5c86,0x73));var _0x65c8=function(_0x397e5f,_0x454c8f){_0x397e5f=_0x397e5f-0x0;var _0x5302b8=_0x5c86[_0x397e5f];return _0x5302b8;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x65c8('0x0'))(_0x65c8('0x1'));var moment=require(_0x65c8('0x2'));var BPromise=require('bluebird');var rp=require(_0x65c8('0x3'));var fs=require('fs');var path=require(_0x65c8('0x4'));var rimraf=require(_0x65c8('0x5'));var config=require('../../config/environment');var attributes=require(_0x65c8('0x6'));module['exports']=function(_0x3b5a2f,_0x17916a){return _0x3b5a2f[_0x65c8('0x7')](_0x65c8('0x8'),attributes,{'tableName':'int_freshdesk_fields','paranoid':![],'indexes':[{'name':_0x65c8('0x9'),'fields':[_0x65c8('0xa'),'FieldId'],'unique':!![]}],'timestamps':!![]});};