Built motion from commit c738b9ac.|2.6.25
[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 _0xa0eb=['user_profile_has_resources','sectionId','lodash','util','api','bluebird','path','rimraf','../../config/environment','define','UserProfileResource'];(function(_0xbe723b,_0x129194){var _0x4ef048=function(_0x4e217f){while(--_0x4e217f){_0xbe723b['push'](_0xbe723b['shift']());}};_0x4ef048(++_0x129194);}(_0xa0eb,0x70));var _0xba0e=function(_0x321bb2,_0x202794){_0x321bb2=_0x321bb2-0x0;var _0x9c12ed=_0xa0eb[_0x321bb2];return _0x9c12ed;};'use strict';var _=require(_0xba0e('0x0'));var util=require(_0xba0e('0x1'));var logger=require('../../config/logger')(_0xba0e('0x2'));var moment=require('moment');var BPromise=require(_0xba0e('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xba0e('0x4'));var rimraf=require(_0xba0e('0x5'));var config=require(_0xba0e('0x6'));var attributes=require('./userProfileResource.attributes');module['exports']=function(_0x42cd2b,_0x233a32){return _0x42cd2b[_0xba0e('0x7')](_0xba0e('0x8'),attributes,{'tableName':_0xba0e('0x9'),'paranoid':![],'indexes':[{'name':'compositeIndex','fields':['resourceId',_0xba0e('0xa')]}],'timestamps':!![]});};