Built motion from commit bab6f49e.|2.6.17
[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 _0xfeba=['../../config/logger','api','bluebird','request-promise','path','rimraf','./intDeskField.attributes','exports','define','int_desk_fields','desk_unique_index','idField','util'];(function(_0x237636,_0x2a7c64){var _0x40348d=function(_0x33feba){while(--_0x33feba){_0x237636['push'](_0x237636['shift']());}};_0x40348d(++_0x2a7c64);}(_0xfeba,0x8e));var _0xafeb=function(_0x75df59,_0x4afd7f){_0x75df59=_0x75df59-0x0;var _0x24a868=_0xfeba[_0x75df59];return _0x24a868;};'use strict';var _=require('lodash');var util=require(_0xafeb('0x0'));var logger=require(_0xafeb('0x1'))(_0xafeb('0x2'));var moment=require('moment');var BPromise=require(_0xafeb('0x3'));var rp=require(_0xafeb('0x4'));var fs=require('fs');var path=require(_0xafeb('0x5'));var rimraf=require(_0xafeb('0x6'));var config=require('../../config/environment');var attributes=require(_0xafeb('0x7'));module[_0xafeb('0x8')]=function(_0x12e03d,_0x13819a){return _0x12e03d[_0xafeb('0x9')]('DeskField',attributes,{'tableName':_0xafeb('0xa'),'paranoid':![],'indexes':[{'name':_0xafeb('0xb'),'fields':[_0xafeb('0xc'),'FieldId'],'unique':!![]}],'timestamps':!![]});};