658ac3809cb7ab69b26a04a95b5a83e0a1cc8dd4
[motion2.git] / server / api / template / template.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 _0xb36e=['moment','path','rimraf','../../config/environment','./template.attributes','exports','define','Template','tools_templates','lodash','util','../../config/logger','api'];(function(_0x2b224d,_0x477c8e){var _0x520c3c=function(_0x3ac6cf){while(--_0x3ac6cf){_0x2b224d['push'](_0x2b224d['shift']());}};_0x520c3c(++_0x477c8e);}(_0xb36e,0x14e));var _0xeb36=function(_0x505f40,_0xff4fa3){_0x505f40=_0x505f40-0x0;var _0x17d277=_0xb36e[_0x505f40];return _0x17d277;};'use strict';var _=require(_0xeb36('0x0'));var util=require(_0xeb36('0x1'));var logger=require(_0xeb36('0x2'))(_0xeb36('0x3'));var moment=require(_0xeb36('0x4'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0xeb36('0x5'));var rimraf=require(_0xeb36('0x6'));var config=require(_0xeb36('0x7'));var attributes=require(_0xeb36('0x8'));module[_0xeb36('0x9')]=function(_0x524844,_0x412339){return _0x524844[_0xeb36('0xa')](_0xeb36('0xb'),attributes,{'tableName':_0xeb36('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};