Built motion from commit (unavailable).|2.5.30
[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 _0x38b2=['./userProfileResource.attributes','exports','define','UserProfileResource','user_profile_has_resources','compositeIndex','resourceId','lodash','../../config/logger','moment','bluebird','request-promise','rimraf','../../config/environment'];(function(_0x38d004,_0x516ec2){var _0x221b3e=function(_0x16b53e){while(--_0x16b53e){_0x38d004['push'](_0x38d004['shift']());}};_0x221b3e(++_0x516ec2);}(_0x38b2,0x85));var _0x238b=function(_0x1e67cc,_0x165fb9){_0x1e67cc=_0x1e67cc-0x0;var _0x3c1878=_0x38b2[_0x1e67cc];return _0x3c1878;};'use strict';var _=require(_0x238b('0x0'));var util=require('util');var logger=require(_0x238b('0x1'))('api');var moment=require(_0x238b('0x2'));var BPromise=require(_0x238b('0x3'));var rp=require(_0x238b('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0x238b('0x5'));var config=require(_0x238b('0x6'));var attributes=require(_0x238b('0x7'));module[_0x238b('0x8')]=function(_0x5c12cc,_0x4c409e){return _0x5c12cc[_0x238b('0x9')](_0x238b('0xa'),attributes,{'tableName':_0x238b('0xb'),'paranoid':![],'indexes':[{'name':_0x238b('0xc'),'fields':[_0x238b('0xd'),'sectionId']}],'timestamps':!![]});};