c715ae6d16a5d38bf60ec8fada29510d92882035
[motion2.git] / server / api / intDeskField / intDeskField.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 _0x1d45=['exports','int_desk_fields','FieldId','api','moment','bluebird','request-promise','path','rimraf','../../config/environment'];(function(_0x3dbf98,_0xb3d23a){var _0x6808ce=function(_0x1deed4){while(--_0x1deed4){_0x3dbf98['push'](_0x3dbf98['shift']());}};_0x6808ce(++_0xb3d23a);}(_0x1d45,0x14d));var _0x51d4=function(_0x5a79e2,_0x319b1a){_0x5a79e2=_0x5a79e2-0x0;var _0x266c45=_0x1d45[_0x5a79e2];return _0x266c45;};'use strict';var _=require('lodash');var util=require('util');var logger=require('../../config/logger')(_0x51d4('0x0'));var moment=require(_0x51d4('0x1'));var BPromise=require(_0x51d4('0x2'));var rp=require(_0x51d4('0x3'));var fs=require('fs');var path=require(_0x51d4('0x4'));var rimraf=require(_0x51d4('0x5'));var config=require(_0x51d4('0x6'));var attributes=require('./intDeskField.attributes');module[_0x51d4('0x7')]=function(_0x477544,_0x4048be){return _0x477544['define']('DeskField',attributes,{'tableName':_0x51d4('0x8'),'paranoid':![],'indexes':[{'name':'desk_unique_index','fields':['idField',_0x51d4('0x9')],'unique':!![]}],'timestamps':!![]});};