63f5025862c3830a5f686ce7bbe79cfb5bf677e5
[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 _0x2e06=['DeskField','int_desk_fields','idField','FieldId','lodash','util','../../config/logger','api','path','rimraf','../../config/environment','./intDeskField.attributes','exports','define'];(function(_0x14e736,_0x1abd99){var _0x5d9a28=function(_0x4c321b){while(--_0x4c321b){_0x14e736['push'](_0x14e736['shift']());}};_0x5d9a28(++_0x1abd99);}(_0x2e06,0x74));var _0x62e0=function(_0x524b0f,_0x4dad34){_0x524b0f=_0x524b0f-0x0;var _0x462e25=_0x2e06[_0x524b0f];return _0x462e25;};'use strict';var _=require(_0x62e0('0x0'));var util=require(_0x62e0('0x1'));var logger=require(_0x62e0('0x2'))(_0x62e0('0x3'));var moment=require('moment');var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x62e0('0x4'));var rimraf=require(_0x62e0('0x5'));var config=require(_0x62e0('0x6'));var attributes=require(_0x62e0('0x7'));module[_0x62e0('0x8')]=function(_0x2e97d0,_0xd1352d){return _0x2e97d0[_0x62e0('0x9')](_0x62e0('0xa'),attributes,{'tableName':_0x62e0('0xb'),'paranoid':![],'indexes':[{'name':'desk_unique_index','fields':[_0x62e0('0xc'),_0x62e0('0xd')],'unique':!![]}],'timestamps':!![]});};