558c88243a7e693d3e2f205cf04aa41c8e6bf568
[motion2.git] / server / api / userProfileSection / userProfileSection.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 _0xd1c7=['lodash','util','api','moment','bluebird','request-promise','rimraf','../../config/environment','./userProfileSection.attributes','exports','define','UserProfileSection','user_profile_has_sections','compositeIndex','userProfileId'];(function(_0x4398bc,_0x1e825b){var _0x128e55=function(_0x140b5e){while(--_0x140b5e){_0x4398bc['push'](_0x4398bc['shift']());}};_0x128e55(++_0x1e825b);}(_0xd1c7,0x14a));var _0x7d1c=function(_0x55f122,_0x56edaf){_0x55f122=_0x55f122-0x0;var _0x1a28d6=_0xd1c7[_0x55f122];return _0x1a28d6;};'use strict';var _=require(_0x7d1c('0x0'));var util=require(_0x7d1c('0x1'));var logger=require('../../config/logger')(_0x7d1c('0x2'));var moment=require(_0x7d1c('0x3'));var BPromise=require(_0x7d1c('0x4'));var rp=require(_0x7d1c('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x7d1c('0x6'));var config=require(_0x7d1c('0x7'));var attributes=require(_0x7d1c('0x8'));module[_0x7d1c('0x9')]=function(_0x34bd99,_0x4e72b1){return _0x34bd99[_0x7d1c('0xa')](_0x7d1c('0xb'),attributes,{'tableName':_0x7d1c('0xc'),'paranoid':![],'indexes':[{'name':_0x7d1c('0xd'),'fields':['sectionId',_0x7d1c('0xe')]}],'timestamps':!![]});};