Built motion from commit 9d7072cc.|2.5.39
[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 _0xb845=['resourceId','sectionId','../../config/logger','api','moment','path','../../config/environment','./userProfileResource.attributes','exports','define','UserProfileResource','user_profile_has_resources'];(function(_0x48de19,_0x30eb77){var _0x2e0690=function(_0x1966cd){while(--_0x1966cd){_0x48de19['push'](_0x48de19['shift']());}};_0x2e0690(++_0x30eb77);}(_0xb845,0x19a));var _0x5b84=function(_0x476392,_0x43d678){_0x476392=_0x476392-0x0;var _0x25d9f4=_0xb845[_0x476392];return _0x25d9f4;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x5b84('0x0'))(_0x5b84('0x1'));var moment=require(_0x5b84('0x2'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x5b84('0x3'));var rimraf=require('rimraf');var config=require(_0x5b84('0x4'));var attributes=require(_0x5b84('0x5'));module[_0x5b84('0x6')]=function(_0x51a0d3,_0x1e787d){return _0x51a0d3[_0x5b84('0x7')](_0x5b84('0x8'),attributes,{'tableName':_0x5b84('0x9'),'paranoid':![],'indexes':[{'name':'compositeIndex','fields':[_0x5b84('0xa'),_0x5b84('0xb')]}],'timestamps':!![]});};