Built motion from commit d5e4af8c.|2.6.23
[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 _0x2ce4=['rimraf','exports','define','CmCompany','lodash','api','moment','request-promise'];(function(_0x1b51f9,_0x46240e){var _0x46cf16=function(_0x3034c3){while(--_0x3034c3){_0x1b51f9['push'](_0x1b51f9['shift']());}};_0x46cf16(++_0x46240e);}(_0x2ce4,0x16c));var _0x42ce=function(_0x190134,_0x366609){_0x190134=_0x190134-0x0;var _0x2a654=_0x2ce4[_0x190134];return _0x2a654;};'use strict';var _=require(_0x42ce('0x0'));var util=require('util');var logger=require('../../config/logger')(_0x42ce('0x1'));var moment=require(_0x42ce('0x2'));var BPromise=require('bluebird');var rp=require(_0x42ce('0x3'));var fs=require('fs');var path=require('path');var rimraf=require(_0x42ce('0x4'));var config=require('../../config/environment');var attributes=require('./cmCompany.attributes');module[_0x42ce('0x5')]=function(_0x1f8e71,_0x12c2f1){return _0x1f8e71[_0x42ce('0x6')](_0x42ce('0x7'),attributes,{'tableName':'cm_companies','paranoid':![],'indexes':[],'timestamps':!![]});};