Built motion from commit 753c950e.|2.5.42
[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 _0x1116=['rimraf','./cmCompany.attributes','exports','define','CmCompany','cm_companies','lodash','../../config/logger','bluebird','path'];(function(_0x1c3df3,_0x102dc1){var _0x325b63=function(_0x2d67be){while(--_0x2d67be){_0x1c3df3['push'](_0x1c3df3['shift']());}};_0x325b63(++_0x102dc1);}(_0x1116,0x114));var _0x6111=function(_0xffa198,_0x5a8940){_0xffa198=_0xffa198-0x0;var _0x1e4b50=_0x1116[_0xffa198];return _0x1e4b50;};'use strict';var _=require(_0x6111('0x0'));var util=require('util');var logger=require(_0x6111('0x1'))('api');var moment=require('moment');var BPromise=require(_0x6111('0x2'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x6111('0x3'));var rimraf=require(_0x6111('0x4'));var config=require('../../config/environment');var attributes=require(_0x6111('0x5'));module[_0x6111('0x6')]=function(_0x15dbb3,_0x4f15b8){return _0x15dbb3[_0x6111('0x7')](_0x6111('0x8'),attributes,{'tableName':_0x6111('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};