Built motion from commit (unavailable).|2.5.0
[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 _0xda54=['../../config/logger','api','request-promise','rimraf','define','UserProfileSection','compositeIndex','sectionId','userProfileId','lodash','util'];(function(_0x321bb2,_0x202794){var _0x9c12ed=function(_0x263dd3){while(--_0x263dd3){_0x321bb2['push'](_0x321bb2['shift']());}};_0x9c12ed(++_0x202794);}(_0xda54,0xa3));var _0x4da5=function(_0x45313f,_0x46caf4){_0x45313f=_0x45313f-0x0;var _0x402910=_0xda54[_0x45313f];return _0x402910;};'use strict';var _=require(_0x4da5('0x0'));var util=require(_0x4da5('0x1'));var logger=require(_0x4da5('0x2'))(_0x4da5('0x3'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x4da5('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0x4da5('0x5'));var config=require('../../config/environment');var attributes=require('./userProfileSection.attributes');module['exports']=function(_0x419789,_0x5bbbcb){return _0x419789[_0x4da5('0x6')](_0x4da5('0x7'),attributes,{'tableName':'user_profile_has_sections','paranoid':![],'indexes':[{'name':_0x4da5('0x8'),'fields':[_0x4da5('0x9'),_0x4da5('0xa')]}],'timestamps':!![]});};