Built motion from commit (unavailable).|2.5.3
[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 _0x52b5=['define','DeskField','int_desk_fields','desk_unique_index','idField','api','request-promise','path','../../config/environment','./intDeskField.attributes','exports'];(function(_0x58afd5,_0x534a48){var _0x3e503b=function(_0x27ba44){while(--_0x27ba44){_0x58afd5['push'](_0x58afd5['shift']());}};_0x3e503b(++_0x534a48);}(_0x52b5,0x10d));var _0x552b=function(_0x59cb48,_0x3e9b50){_0x59cb48=_0x59cb48-0x0;var _0x45b4d5=_0x52b5[_0x59cb48];return _0x45b4d5;};'use strict';var _=require('lodash');var util=require('util');var logger=require('../../config/logger')(_0x552b('0x0'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x552b('0x1'));var fs=require('fs');var path=require(_0x552b('0x2'));var rimraf=require('rimraf');var config=require(_0x552b('0x3'));var attributes=require(_0x552b('0x4'));module[_0x552b('0x5')]=function(_0x5a9250,_0x91e09f){return _0x5a9250[_0x552b('0x6')](_0x552b('0x7'),attributes,{'tableName':_0x552b('0x8'),'paranoid':![],'indexes':[{'name':_0x552b('0x9'),'fields':[_0x552b('0xa'),'FieldId'],'unique':!![]}],'timestamps':!![]});};