Built motion from commit ffdca78c.|2.6.24
[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 _0x9c01=['path','rimraf','./intDeskField.attributes','define','DeskField','idField','FieldId','lodash','util','../../config/logger','moment','bluebird'];(function(_0x19bb95,_0x12b1f6){var _0xc0b4=function(_0xde4ab6){while(--_0xde4ab6){_0x19bb95['push'](_0x19bb95['shift']());}};_0xc0b4(++_0x12b1f6);}(_0x9c01,0x10f));var _0x19c0=function(_0xa8cf83,_0x3b61dd){_0xa8cf83=_0xa8cf83-0x0;var _0x2365d0=_0x9c01[_0xa8cf83];return _0x2365d0;};'use strict';var _=require(_0x19c0('0x0'));var util=require(_0x19c0('0x1'));var logger=require(_0x19c0('0x2'))('api');var moment=require(_0x19c0('0x3'));var BPromise=require(_0x19c0('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x19c0('0x5'));var rimraf=require(_0x19c0('0x6'));var config=require('../../config/environment');var attributes=require(_0x19c0('0x7'));module['exports']=function(_0x47fca2,_0x3c788d){return _0x47fca2[_0x19c0('0x8')](_0x19c0('0x9'),attributes,{'tableName':'int_desk_fields','paranoid':![],'indexes':[{'name':'desk_unique_index','fields':[_0x19c0('0xa'),_0x19c0('0xb')],'unique':!![]}],'timestamps':!![]});};