Built motion from commit f0a64034.|2.6.11
[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 _0x02bf=['./userProfileResource.attributes','exports','define','UserProfileResource','user_profile_has_resources','compositeIndex','resourceId','api','moment','bluebird','request-promise','path','rimraf'];(function(_0x1b81d8,_0xaf392e){var _0xa87898=function(_0x5ac996){while(--_0x5ac996){_0x1b81d8['push'](_0x1b81d8['shift']());}};_0xa87898(++_0xaf392e);}(_0x02bf,0x1c1));var _0xf02b=function(_0x405385,_0x56f573){_0x405385=_0x405385-0x0;var _0x43837b=_0x02bf[_0x405385];return _0x43837b;};'use strict';var _=require('lodash');var util=require('util');var logger=require('../../config/logger')(_0xf02b('0x0'));var moment=require(_0xf02b('0x1'));var BPromise=require(_0xf02b('0x2'));var rp=require(_0xf02b('0x3'));var fs=require('fs');var path=require(_0xf02b('0x4'));var rimraf=require(_0xf02b('0x5'));var config=require('../../config/environment');var attributes=require(_0xf02b('0x6'));module[_0xf02b('0x7')]=function(_0x2323eb,_0x3fb16d){return _0x2323eb[_0xf02b('0x8')](_0xf02b('0x9'),attributes,{'tableName':_0xf02b('0xa'),'paranoid':![],'indexes':[{'name':_0xf02b('0xb'),'fields':[_0xf02b('0xc'),'sectionId']}],'timestamps':!![]});};