Built motion from commit b0a9a629.|2.6.33
[motion2.git] / server / api / cannedAnswer / cannedAnswer.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 _0xf875=['moment','request-promise','path','./cannedAnswer.attributes','exports','tools_canned_answers','lodash','../../config/logger','api'];(function(_0x142691,_0x281ee4){var _0x7ff861=function(_0x19f6a3){while(--_0x19f6a3){_0x142691['push'](_0x142691['shift']());}};_0x7ff861(++_0x281ee4);}(_0xf875,0x138));var _0x5f87=function(_0xe2421b,_0x456d1d){_0xe2421b=_0xe2421b-0x0;var _0x5aa147=_0xf875[_0xe2421b];return _0x5aa147;};'use strict';var _=require(_0x5f87('0x0'));var util=require('util');var logger=require(_0x5f87('0x1'))(_0x5f87('0x2'));var moment=require(_0x5f87('0x3'));var BPromise=require('bluebird');var rp=require(_0x5f87('0x4'));var fs=require('fs');var path=require(_0x5f87('0x5'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x5f87('0x6'));module[_0x5f87('0x7')]=function(_0x2753a7,_0x1ae2d8){return _0x2753a7['define']('CannedAnswer',attributes,{'tableName':_0x5f87('0x8'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':'utf8mb4','collate':'utf8mb4_unicode_ci'});};