Built motion from commit 1ea47bf4.|2.6.34
[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 _0x13a1=['./template.attributes','exports','define','Template','tools_templates','lodash','../../config/logger','moment','bluebird','request-promise','path','rimraf'];(function(_0x4318ee,_0x1f9e7f){var _0x52e97b=function(_0x339826){while(--_0x339826){_0x4318ee['push'](_0x4318ee['shift']());}};_0x52e97b(++_0x1f9e7f);}(_0x13a1,0x1e5));var _0x113a=function(_0x190b22,_0x20a6b8){_0x190b22=_0x190b22-0x0;var _0x9093c3=_0x13a1[_0x190b22];return _0x9093c3;};'use strict';var _=require(_0x113a('0x0'));var util=require('util');var logger=require(_0x113a('0x1'))('api');var moment=require(_0x113a('0x2'));var BPromise=require(_0x113a('0x3'));var rp=require(_0x113a('0x4'));var fs=require('fs');var path=require(_0x113a('0x5'));var rimraf=require(_0x113a('0x6'));var config=require('../../config/environment');var attributes=require(_0x113a('0x7'));module[_0x113a('0x8')]=function(_0x8c9180,_0x5acf0a){return _0x8c9180[_0x113a('0x9')](_0x113a('0xa'),attributes,{'tableName':_0x113a('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};