d28815621766cd26214342e69373ae9f2f3f78e5
[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 _0x81cc=['exports','define','DeskField','desk_unique_index','idField','FieldId','lodash','util','../../config/logger','api','request-promise','rimraf','../../config/environment','./intDeskField.attributes'];(function(_0x4b73a2,_0x40b5fe){var _0x383c66=function(_0x3917ae){while(--_0x3917ae){_0x4b73a2['push'](_0x4b73a2['shift']());}};_0x383c66(++_0x40b5fe);}(_0x81cc,0x1e2));var _0xc81c=function(_0x35b05b,_0x67342){_0x35b05b=_0x35b05b-0x0;var _0xea225a=_0x81cc[_0x35b05b];return _0xea225a;};'use strict';var _=require(_0xc81c('0x0'));var util=require(_0xc81c('0x1'));var logger=require(_0xc81c('0x2'))(_0xc81c('0x3'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0xc81c('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0xc81c('0x5'));var config=require(_0xc81c('0x6'));var attributes=require(_0xc81c('0x7'));module[_0xc81c('0x8')]=function(_0x42b9d6,_0x1ed1a4){return _0x42b9d6[_0xc81c('0x9')](_0xc81c('0xa'),attributes,{'tableName':'int_desk_fields','paranoid':![],'indexes':[{'name':_0xc81c('0xb'),'fields':[_0xc81c('0xc'),_0xc81c('0xd')],'unique':!![]}],'timestamps':!![]});};