Built motion from commit da617fac.|2.6.6
[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 _0x3f22=['resourceId','sectionId','lodash','util','../../config/logger','api','bluebird','path','../../config/environment','./userProfileResource.attributes','exports','define','UserProfileResource','compositeIndex'];(function(_0x5aec67,_0xb2e85){var _0x461761=function(_0x1f888f){while(--_0x1f888f){_0x5aec67['push'](_0x5aec67['shift']());}};_0x461761(++_0xb2e85);}(_0x3f22,0xc6));var _0x23f2=function(_0x16e785,_0x4becf2){_0x16e785=_0x16e785-0x0;var _0x409d26=_0x3f22[_0x16e785];return _0x409d26;};'use strict';var _=require(_0x23f2('0x0'));var util=require(_0x23f2('0x1'));var logger=require(_0x23f2('0x2'))(_0x23f2('0x3'));var moment=require('moment');var BPromise=require(_0x23f2('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x23f2('0x5'));var rimraf=require('rimraf');var config=require(_0x23f2('0x6'));var attributes=require(_0x23f2('0x7'));module[_0x23f2('0x8')]=function(_0x5e0bca,_0x3bb19a){return _0x5e0bca[_0x23f2('0x9')](_0x23f2('0xa'),attributes,{'tableName':'user_profile_has_resources','paranoid':![],'indexes':[{'name':_0x23f2('0xb'),'fields':[_0x23f2('0xc'),_0x23f2('0xd')]}],'timestamps':!![]});};