Built motion from commit 85328c08.|2.5.50
[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 _0xd7f6=['moment','request-promise','../../config/environment','exports','define','UserProfileSection','compositeIndex','sectionId','util','../../config/logger','api'];(function(_0x44c696,_0x5c9b22){var _0x224306=function(_0x17a088){while(--_0x17a088){_0x44c696['push'](_0x44c696['shift']());}};_0x224306(++_0x5c9b22);}(_0xd7f6,0xc3));var _0x6d7f=function(_0x45a96d,_0x5434b6){_0x45a96d=_0x45a96d-0x0;var _0x34460a=_0xd7f6[_0x45a96d];return _0x34460a;};'use strict';var _=require('lodash');var util=require(_0x6d7f('0x0'));var logger=require(_0x6d7f('0x1'))(_0x6d7f('0x2'));var moment=require(_0x6d7f('0x3'));var BPromise=require('bluebird');var rp=require(_0x6d7f('0x4'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0x6d7f('0x5'));var attributes=require('./userProfileSection.attributes');module[_0x6d7f('0x6')]=function(_0x227230,_0xc3788a){return _0x227230[_0x6d7f('0x7')](_0x6d7f('0x8'),attributes,{'tableName':'user_profile_has_sections','paranoid':![],'indexes':[{'name':_0x6d7f('0x9'),'fields':[_0x6d7f('0xa'),'userProfileId']}],'timestamps':!![]});};