ba51a1b87169009782a9cf42741b4529a7daf519
[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 _0x31ac=['desk_unique_index','FieldId','api','bluebird','./intDeskField.attributes','define','DeskField'];(function(_0x52a988,_0x43a459){var _0x3d07a7=function(_0x4d335b){while(--_0x4d335b){_0x52a988['push'](_0x52a988['shift']());}};_0x3d07a7(++_0x43a459);}(_0x31ac,0xf7));var _0xc31a=function(_0x1785bf,_0x485813){_0x1785bf=_0x1785bf-0x0;var _0xda5f95=_0x31ac[_0x1785bf];return _0xda5f95;};'use strict';var _=require('lodash');var util=require('util');var logger=require('../../config/logger')(_0xc31a('0x0'));var moment=require('moment');var BPromise=require(_0xc31a('0x1'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0xc31a('0x2'));module['exports']=function(_0x32bfdb,_0x1a791c){return _0x32bfdb[_0xc31a('0x3')](_0xc31a('0x4'),attributes,{'tableName':'int_desk_fields','paranoid':![],'indexes':[{'name':_0xc31a('0x5'),'fields':['idField',_0xc31a('0x6')],'unique':!![]}],'timestamps':!![]});};