ce0f456ff34a4d12b68bcadfd48ed985a6e58ba4
[motion2.git] / server / api / userProfileResource / userProfileResource.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 _0x91d3=['UserProfileResource','user_profile_has_resources','resourceId','lodash','../../config/logger','api','bluebird','request-promise','path','rimraf','../../config/environment','./userProfileResource.attributes','exports'];(function(_0x20791f,_0x18bf5f){var _0x40889b=function(_0x306650){while(--_0x306650){_0x20791f['push'](_0x20791f['shift']());}};_0x40889b(++_0x18bf5f);}(_0x91d3,0x85));var _0x391d=function(_0x130e47,_0x148dd6){_0x130e47=_0x130e47-0x0;var _0x5cd996=_0x91d3[_0x130e47];return _0x5cd996;};'use strict';var _=require(_0x391d('0x0'));var util=require('util');var logger=require(_0x391d('0x1'))(_0x391d('0x2'));var moment=require('moment');var BPromise=require(_0x391d('0x3'));var rp=require(_0x391d('0x4'));var fs=require('fs');var path=require(_0x391d('0x5'));var rimraf=require(_0x391d('0x6'));var config=require(_0x391d('0x7'));var attributes=require(_0x391d('0x8'));module[_0x391d('0x9')]=function(_0x1c1503,_0x58c176){return _0x1c1503['define'](_0x391d('0xa'),attributes,{'tableName':_0x391d('0xb'),'paranoid':![],'indexes':[{'name':'compositeIndex','fields':[_0x391d('0xc'),'sectionId']}],'timestamps':!![]});};