Built motion from commit 53172ac8.|2.6.30
[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 _0x58fe=['sectionId','userProfileId','util','api','moment','bluebird','request-promise','rimraf','./userProfileSection.attributes','exports','define','UserProfileSection','user_profile_has_sections','compositeIndex'];(function(_0x602374,_0x3f5a68){var _0x16ac60=function(_0xa35edd){while(--_0xa35edd){_0x602374['push'](_0x602374['shift']());}};_0x16ac60(++_0x3f5a68);}(_0x58fe,0x160));var _0xe58f=function(_0x2fe689,_0x5794e5){_0x2fe689=_0x2fe689-0x0;var _0x35ea44=_0x58fe[_0x2fe689];return _0x35ea44;};'use strict';var _=require('lodash');var util=require(_0xe58f('0x0'));var logger=require('../../config/logger')(_0xe58f('0x1'));var moment=require(_0xe58f('0x2'));var BPromise=require(_0xe58f('0x3'));var rp=require(_0xe58f('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0xe58f('0x5'));var config=require('../../config/environment');var attributes=require(_0xe58f('0x6'));module[_0xe58f('0x7')]=function(_0x89327c,_0x54e876){return _0x89327c[_0xe58f('0x8')](_0xe58f('0x9'),attributes,{'tableName':_0xe58f('0xa'),'paranoid':![],'indexes':[{'name':_0xe58f('0xb'),'fields':[_0xe58f('0xc'),_0xe58f('0xd')]}],'timestamps':!![]});};