Built motion from commit e8d9bd62.|2.6.25
[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 _0x7846=['bluebird','path','rimraf','../../config/environment','./template.attributes','exports','define','Template','tools_templates','lodash','util','api','moment'];(function(_0x58f363,_0x135c64){var _0xcb2c83=function(_0x55d7fd){while(--_0x55d7fd){_0x58f363['push'](_0x58f363['shift']());}};_0xcb2c83(++_0x135c64);}(_0x7846,0xf3));var _0x6784=function(_0xfd5f37,_0x24a79c){_0xfd5f37=_0xfd5f37-0x0;var _0x11bd01=_0x7846[_0xfd5f37];return _0x11bd01;};'use strict';var _=require(_0x6784('0x0'));var util=require(_0x6784('0x1'));var logger=require('../../config/logger')(_0x6784('0x2'));var moment=require(_0x6784('0x3'));var BPromise=require(_0x6784('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x6784('0x5'));var rimraf=require(_0x6784('0x6'));var config=require(_0x6784('0x7'));var attributes=require(_0x6784('0x8'));module[_0x6784('0x9')]=function(_0x5e6336,_0x18279){return _0x5e6336[_0x6784('0xa')](_0x6784('0xb'),attributes,{'tableName':_0x6784('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};