Built motion from commit (unavailable).|2.5.4
[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 _0x9809=['api','moment','bluebird','path','../../config/environment','./intDeskField.attributes','exports','define','int_desk_fields','idField','FieldId','util'];(function(_0x57b54c,_0x54ce0d){var _0x59cc19=function(_0xa33bc6){while(--_0xa33bc6){_0x57b54c['push'](_0x57b54c['shift']());}};_0x59cc19(++_0x54ce0d);}(_0x9809,0x137));var _0x9980=function(_0x25ed3b,_0xe5f003){_0x25ed3b=_0x25ed3b-0x0;var _0x2faccb=_0x9809[_0x25ed3b];return _0x2faccb;};'use strict';var _=require('lodash');var util=require(_0x9980('0x0'));var logger=require('../../config/logger')(_0x9980('0x1'));var moment=require(_0x9980('0x2'));var BPromise=require(_0x9980('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x9980('0x4'));var rimraf=require('rimraf');var config=require(_0x9980('0x5'));var attributes=require(_0x9980('0x6'));module[_0x9980('0x7')]=function(_0x598e6d,_0x3921b9){return _0x598e6d[_0x9980('0x8')]('DeskField',attributes,{'tableName':_0x9980('0x9'),'paranoid':![],'indexes':[{'name':'desk_unique_index','fields':[_0x9980('0xa'),_0x9980('0xb')],'unique':!![]}],'timestamps':!![]});};