Built motion from commit 0900f080.|2.5.45
[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 _0x5cbf=['int_desk_fields','idField','FieldId','../../config/logger','api','moment','request-promise','path','rimraf','../../config/environment','./intDeskField.attributes','exports','DeskField'];(function(_0x39fb96,_0xfa3a2a){var _0x4c3143=function(_0x1bdd9b){while(--_0x1bdd9b){_0x39fb96['push'](_0x39fb96['shift']());}};_0x4c3143(++_0xfa3a2a);}(_0x5cbf,0x9f));var _0xf5cb=function(_0x186376,_0x5d988a){_0x186376=_0x186376-0x0;var _0x2dbdd9=_0x5cbf[_0x186376];return _0x2dbdd9;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0xf5cb('0x0'))(_0xf5cb('0x1'));var moment=require(_0xf5cb('0x2'));var BPromise=require('bluebird');var rp=require(_0xf5cb('0x3'));var fs=require('fs');var path=require(_0xf5cb('0x4'));var rimraf=require(_0xf5cb('0x5'));var config=require(_0xf5cb('0x6'));var attributes=require(_0xf5cb('0x7'));module[_0xf5cb('0x8')]=function(_0x1ca071,_0x52568f){return _0x1ca071['define'](_0xf5cb('0x9'),attributes,{'tableName':_0xf5cb('0xa'),'paranoid':![],'indexes':[{'name':'desk_unique_index','fields':[_0xf5cb('0xb'),_0xf5cb('0xc')],'unique':!![]}],'timestamps':!![]});};