Built motion from commit 9d7072cc.|2.5.39
[motion2.git] / server / api / cmCompany / cmCompany.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 _0xfb8c=['CmCompany','cm_companies','util','moment','request-promise','path','rimraf','../../config/environment','exports'];(function(_0x3e31fe,_0x164383){var _0x5c3442=function(_0xc41632){while(--_0xc41632){_0x3e31fe['push'](_0x3e31fe['shift']());}};_0x5c3442(++_0x164383);}(_0xfb8c,0x1cd));var _0xcfb8=function(_0x14aee6,_0x48cad0){_0x14aee6=_0x14aee6-0x0;var _0x1c6f4e=_0xfb8c[_0x14aee6];return _0x1c6f4e;};'use strict';var _=require('lodash');var util=require(_0xcfb8('0x0'));var logger=require('../../config/logger')('api');var moment=require(_0xcfb8('0x1'));var BPromise=require('bluebird');var rp=require(_0xcfb8('0x2'));var fs=require('fs');var path=require(_0xcfb8('0x3'));var rimraf=require(_0xcfb8('0x4'));var config=require(_0xcfb8('0x5'));var attributes=require('./cmCompany.attributes');module[_0xcfb8('0x6')]=function(_0x43feeb,_0x77b8be){return _0x43feeb['define'](_0xcfb8('0x7'),attributes,{'tableName':_0xcfb8('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};