Built motion from commit e1760111.|2.6.18
[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 _0x0a0d=['../../config/logger','moment','bluebird','path','rimraf','../../config/environment','./intFreshdeskField.attributes','exports','define','FreshdeskField','int_freshdesk_fields','freshdesk_unique_index','FieldId','lodash','util'];(function(_0xefa0de,_0x458134){var _0x1b20e7=function(_0x1daef2){while(--_0x1daef2){_0xefa0de['push'](_0xefa0de['shift']());}};_0x1b20e7(++_0x458134);}(_0x0a0d,0x85));var _0xd0a0=function(_0xf80b3,_0x25d5f3){_0xf80b3=_0xf80b3-0x0;var _0x10c489=_0x0a0d[_0xf80b3];return _0x10c489;};'use strict';var _=require(_0xd0a0('0x0'));var util=require(_0xd0a0('0x1'));var logger=require(_0xd0a0('0x2'))('api');var moment=require(_0xd0a0('0x3'));var BPromise=require(_0xd0a0('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xd0a0('0x5'));var rimraf=require(_0xd0a0('0x6'));var config=require(_0xd0a0('0x7'));var attributes=require(_0xd0a0('0x8'));module[_0xd0a0('0x9')]=function(_0x157924,_0xeee5f8){return _0x157924[_0xd0a0('0xa')](_0xd0a0('0xb'),attributes,{'tableName':_0xd0a0('0xc'),'paranoid':![],'indexes':[{'name':_0xd0a0('0xd'),'fields':['idField',_0xd0a0('0xe')],'unique':!![]}],'timestamps':!![]});};