Built motion from commit bbec7235.|2.6.20
[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 _0x79e5=['FieldId','lodash','util','../../config/logger','moment','bluebird','request-promise','../../config/environment','define','FreshdeskField','int_freshdesk_fields','freshdesk_unique_index'];(function(_0x112fdf,_0x280fd9){var _0x4f2ad5=function(_0x523e0e){while(--_0x523e0e){_0x112fdf['push'](_0x112fdf['shift']());}};_0x4f2ad5(++_0x280fd9);}(_0x79e5,0x79));var _0x579e=function(_0x414aae,_0x1cc924){_0x414aae=_0x414aae-0x0;var _0x4cecd6=_0x79e5[_0x414aae];return _0x4cecd6;};'use strict';var _=require(_0x579e('0x0'));var util=require(_0x579e('0x1'));var logger=require(_0x579e('0x2'))('api');var moment=require(_0x579e('0x3'));var BPromise=require(_0x579e('0x4'));var rp=require(_0x579e('0x5'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0x579e('0x6'));var attributes=require('./intFreshdeskField.attributes');module['exports']=function(_0x5bc82e,_0x47f13f){return _0x5bc82e[_0x579e('0x7')](_0x579e('0x8'),attributes,{'tableName':_0x579e('0x9'),'paranoid':![],'indexes':[{'name':_0x579e('0xa'),'fields':['idField',_0x579e('0xb')],'unique':!![]}],'timestamps':!![]});};