Built motion from commit 44377920.|2.6.11
[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 _0x9032=['api','path','rimraf','../../config/environment','define','Template','tools_templates','util','../../config/logger'];(function(_0x28ee85,_0x1f10b6){var _0x213145=function(_0x4902d5){while(--_0x4902d5){_0x28ee85['push'](_0x28ee85['shift']());}};_0x213145(++_0x1f10b6);}(_0x9032,0x103));var _0x2903=function(_0x36b1b9,_0x1e8915){_0x36b1b9=_0x36b1b9-0x0;var _0x418f43=_0x9032[_0x36b1b9];return _0x418f43;};'use strict';var _=require('lodash');var util=require(_0x2903('0x0'));var logger=require(_0x2903('0x1'))(_0x2903('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x2903('0x3'));var rimraf=require(_0x2903('0x4'));var config=require(_0x2903('0x5'));var attributes=require('./template.attributes');module['exports']=function(_0x4a54ab,_0x5c785b){return _0x4a54ab[_0x2903('0x6')](_0x2903('0x7'),attributes,{'tableName':_0x2903('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};