Built motion from commit (unavailable).|2.5.9
[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 _0x7b88=['resourceId','sectionId','lodash','../../config/logger','api','bluebird','request-promise','path','rimraf','../../config/environment','./userProfileResource.attributes','exports','define','UserProfileResource','user_profile_has_resources','compositeIndex'];(function(_0x26d187,_0x2b734d){var _0x5d44bb=function(_0x5baff0){while(--_0x5baff0){_0x26d187['push'](_0x26d187['shift']());}};_0x5d44bb(++_0x2b734d);}(_0x7b88,0x1e2));var _0x87b8=function(_0x4a9fb1,_0x273043){_0x4a9fb1=_0x4a9fb1-0x0;var _0x348672=_0x7b88[_0x4a9fb1];return _0x348672;};'use strict';var _=require(_0x87b8('0x0'));var util=require('util');var logger=require(_0x87b8('0x1'))(_0x87b8('0x2'));var moment=require('moment');var BPromise=require(_0x87b8('0x3'));var rp=require(_0x87b8('0x4'));var fs=require('fs');var path=require(_0x87b8('0x5'));var rimraf=require(_0x87b8('0x6'));var config=require(_0x87b8('0x7'));var attributes=require(_0x87b8('0x8'));module[_0x87b8('0x9')]=function(_0x2567a8,_0x3e4584){return _0x2567a8[_0x87b8('0xa')](_0x87b8('0xb'),attributes,{'tableName':_0x87b8('0xc'),'paranoid':![],'indexes':[{'name':_0x87b8('0xd'),'fields':[_0x87b8('0xe'),_0x87b8('0xf')]}],'timestamps':!![]});};