b0ed7fd9c736026a25fc3bcca48783fd55528497
[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 _0xa4ee=['define','UserProfileResource','compositeIndex','resourceId','sectionId','util','../../config/logger','api','bluebird','request-promise','path','rimraf','../../config/environment','exports'];(function(_0x5404f6,_0x5900a7){var _0x13230b=function(_0x15be12){while(--_0x15be12){_0x5404f6['push'](_0x5404f6['shift']());}};_0x13230b(++_0x5900a7);}(_0xa4ee,0x91));var _0xea4e=function(_0x4a8418,_0x39078a){_0x4a8418=_0x4a8418-0x0;var _0x390174=_0xa4ee[_0x4a8418];return _0x390174;};'use strict';var _=require('lodash');var util=require(_0xea4e('0x0'));var logger=require(_0xea4e('0x1'))(_0xea4e('0x2'));var moment=require('moment');var BPromise=require(_0xea4e('0x3'));var rp=require(_0xea4e('0x4'));var fs=require('fs');var path=require(_0xea4e('0x5'));var rimraf=require(_0xea4e('0x6'));var config=require(_0xea4e('0x7'));var attributes=require('./userProfileResource.attributes');module[_0xea4e('0x8')]=function(_0x5c4c75,_0x19c046){return _0x5c4c75[_0xea4e('0x9')](_0xea4e('0xa'),attributes,{'tableName':'user_profile_has_resources','paranoid':![],'indexes':[{'name':_0xea4e('0xb'),'fields':[_0xea4e('0xc'),_0xea4e('0xd')]}],'timestamps':!![]});};