Built motion from commit 9d0783e6.|2.6.13
[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 _0xa4ff=['request-promise','path','rimraf','../../config/environment','exports','Template','tools_templates','lodash','api','moment'];(function(_0x1b9866,_0x4e5e55){var _0x483123=function(_0x2fb748){while(--_0x2fb748){_0x1b9866['push'](_0x1b9866['shift']());}};_0x483123(++_0x4e5e55);}(_0xa4ff,0xb1));var _0xfa4f=function(_0x35228c,_0x1e6824){_0x35228c=_0x35228c-0x0;var _0x56b5c0=_0xa4ff[_0x35228c];return _0x56b5c0;};'use strict';var _=require(_0xfa4f('0x0'));var util=require('util');var logger=require('../../config/logger')(_0xfa4f('0x1'));var moment=require(_0xfa4f('0x2'));var BPromise=require('bluebird');var rp=require(_0xfa4f('0x3'));var fs=require('fs');var path=require(_0xfa4f('0x4'));var rimraf=require(_0xfa4f('0x5'));var config=require(_0xfa4f('0x6'));var attributes=require('./template.attributes');module[_0xfa4f('0x7')]=function(_0x18992b,_0x2134b9){return _0x18992b['define'](_0xfa4f('0x8'),attributes,{'tableName':_0xfa4f('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};